@wix/auto_sdk_export-async-job_export-async-job 1.0.3 → 1.0.5
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 +30 -1
- package/build/cjs/index.js +371 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1118 -1
- package/build/cjs/index.typings.js +349 -15
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +319 -1
- package/build/cjs/meta.js +173 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +30 -0
- package/build/es/index.mjs +337 -0
- package/build/es/index.mjs.map +1 -0
- package/build/{internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.d.ts → es/index.typings.d.mts} +151 -164
- package/build/es/index.typings.mjs +315 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +319 -0
- package/build/es/meta.mjs +148 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +30 -1
- package/build/internal/cjs/index.js +371 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +1118 -1
- package/build/internal/cjs/index.typings.js +349 -15
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +319 -1
- package/build/internal/cjs/meta.js +173 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +30 -0
- package/build/internal/es/index.mjs +337 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/{cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.d.ts → internal/es/index.typings.d.mts} +151 -164
- package/build/internal/es/index.typings.mjs +315 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +319 -0
- package/build/internal/es/meta.mjs +148 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +12 -10
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.d.ts +0 -6
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js +0 -21
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js.map +0 -1
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.d.ts +0 -5
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js +0 -102
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js.map +0 -1
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.d.ts +0 -16
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js +0 -66
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js.map +0 -1
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.d.ts +0 -23
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js +0 -31
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js.map +0 -1
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.d.ts +0 -1132
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js +0 -146
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js.map +0 -1
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js +0 -254
- package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.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/fedinfra-exportservice-v1-export-async-job-export-async-job.context.d.ts +0 -6
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js +0 -6
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js.map +0 -1
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.d.ts +0 -5
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js +0 -97
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js.map +0 -1
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.d.ts +0 -16
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js +0 -38
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js.map +0 -1
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.d.ts +0 -23
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js +0 -14
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js.map +0 -1
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.d.ts +0 -1132
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js +0 -143
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js.map +0 -1
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.d.ts +0 -1131
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js +0 -226
- package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js.map +0 -1
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.d.ts +0 -6
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js +0 -21
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js.map +0 -1
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.d.ts +0 -5
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js +0 -102
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js.map +0 -1
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.d.ts +0 -16
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js +0 -66
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js.map +0 -1
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.d.ts +0 -23
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js +0 -31
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js.map +0 -1
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.d.ts +0 -1132
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js +0 -146
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js.map +0 -1
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js +0 -254
- package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.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/fedinfra-exportservice-v1-export-async-job-export-async-job.context.d.ts +0 -6
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js +0 -6
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js.map +0 -1
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.d.ts +0 -5
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js +0 -97
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js.map +0 -1
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.d.ts +0 -16
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js +0 -38
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js.map +0 -1
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.d.ts +0 -23
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js +0 -14
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js.map +0 -1
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.d.ts +0 -1132
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js +0 -143
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js.map +0 -1
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.d.ts +0 -1131
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js +0 -226
- package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js.map +0 -1
package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.d.ts
DELETED
|
@@ -1,1132 +0,0 @@
|
|
|
1
|
-
export interface ExportAsyncJob {
|
|
2
|
-
/**
|
|
3
|
-
* @format GUID
|
|
4
|
-
* @readonly
|
|
5
|
-
*/
|
|
6
|
-
id?: string;
|
|
7
|
-
data?: ExportAsyncJobData;
|
|
8
|
-
status?: Status;
|
|
9
|
-
/** @readonly */
|
|
10
|
-
createDate?: Date | null;
|
|
11
|
-
/** @readonly */
|
|
12
|
-
updateDate?: Date | null;
|
|
13
|
-
}
|
|
14
|
-
export interface ExportAsyncJobData {
|
|
15
|
-
/** original request data for the export */
|
|
16
|
-
query?: ExportQueryV2;
|
|
17
|
-
/** translated CSV headers */
|
|
18
|
-
fields?: FieldDescriptor[];
|
|
19
|
-
arrayFieldDelimiter?: ArrayFieldDelimiter;
|
|
20
|
-
/** The target method to query data from */
|
|
21
|
-
methodMetadata?: MethodMetadata;
|
|
22
|
-
/** Custom spec for the target method's request/response */
|
|
23
|
-
methodSpec?: MethodSpec;
|
|
24
|
-
userId?: string;
|
|
25
|
-
subDir?: string | null;
|
|
26
|
-
format?: string;
|
|
27
|
-
uploadId?: string;
|
|
28
|
-
/** @maxLength 255 */
|
|
29
|
-
saveAs?: string | null;
|
|
30
|
-
/** the progress of fetching all data update during the process multiple times */
|
|
31
|
-
pagingMetadata?: PagingMetadataV2;
|
|
32
|
-
iterationsCount?: number;
|
|
33
|
-
processedItemsCount?: number;
|
|
34
|
-
completionStep?: string | null;
|
|
35
|
-
/** how many times the export was reset */
|
|
36
|
-
resetCount?: number;
|
|
37
|
-
/** at final step update the signed_url to download the result from */
|
|
38
|
-
signedUrl?: string;
|
|
39
|
-
/** when failed during the process update the error details */
|
|
40
|
-
error?: Details;
|
|
41
|
-
testParams?: Record<string, any> | null;
|
|
42
|
-
}
|
|
43
|
-
export interface ExportQueryV2 extends ExportQueryV2PagingMethodOneOf {
|
|
44
|
-
/** Paging options to limit and skip the number of items. */
|
|
45
|
-
paging?: Paging;
|
|
46
|
-
/** 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`. */
|
|
47
|
-
cursorPaging?: ExportCursorPaging;
|
|
48
|
-
/**
|
|
49
|
-
* Filter object in the following format:
|
|
50
|
-
* `"filter" : {
|
|
51
|
-
* "fieldName1": "value1",
|
|
52
|
-
* "fieldName2":{"$operator":"value2"}
|
|
53
|
-
* }`
|
|
54
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
55
|
-
*/
|
|
56
|
-
filter?: Record<string, any> | null;
|
|
57
|
-
/**
|
|
58
|
-
* Sort object in the following format:
|
|
59
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
60
|
-
*/
|
|
61
|
-
sort?: Sorting[];
|
|
62
|
-
/** 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. */
|
|
63
|
-
fields?: string[];
|
|
64
|
-
/** 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. */
|
|
65
|
-
fieldsets?: string[];
|
|
66
|
-
}
|
|
67
|
-
/** @oneof */
|
|
68
|
-
export interface ExportQueryV2PagingMethodOneOf {
|
|
69
|
-
/** Paging options to limit and skip the number of items. */
|
|
70
|
-
paging?: Paging;
|
|
71
|
-
/** 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`. */
|
|
72
|
-
cursorPaging?: ExportCursorPaging;
|
|
73
|
-
}
|
|
74
|
-
export interface Sorting {
|
|
75
|
-
/**
|
|
76
|
-
* Name of the field to sort by.
|
|
77
|
-
* @maxLength 512
|
|
78
|
-
*/
|
|
79
|
-
fieldName?: string;
|
|
80
|
-
/** Sort order. */
|
|
81
|
-
order?: SortOrder;
|
|
82
|
-
}
|
|
83
|
-
export declare enum SortOrder {
|
|
84
|
-
ASC = "ASC",
|
|
85
|
-
DESC = "DESC"
|
|
86
|
-
}
|
|
87
|
-
export interface Paging {
|
|
88
|
-
/** Number of items to load. */
|
|
89
|
-
limit?: number | null;
|
|
90
|
-
/** Number of items to skip in the current sort order. */
|
|
91
|
-
offset?: number | null;
|
|
92
|
-
}
|
|
93
|
-
export interface ExportCursorPaging {
|
|
94
|
-
/** @max 10000 */
|
|
95
|
-
limit?: number | null;
|
|
96
|
-
cursor?: string | null;
|
|
97
|
-
}
|
|
98
|
-
export interface FieldDescriptor {
|
|
99
|
-
/** the path to the field out of the query response items */
|
|
100
|
-
id?: string;
|
|
101
|
-
/** how to present the filed in the CSV headers (translated) */
|
|
102
|
-
header?: string;
|
|
103
|
-
}
|
|
104
|
-
export declare enum ArrayFieldDelimiter {
|
|
105
|
-
SEMICOLON = "SEMICOLON",
|
|
106
|
-
SEMICOLON_AND_SPACE = "SEMICOLON_AND_SPACE"
|
|
107
|
-
}
|
|
108
|
-
export interface MethodMetadata {
|
|
109
|
-
artifact?: string;
|
|
110
|
-
service?: string;
|
|
111
|
-
method?: string;
|
|
112
|
-
}
|
|
113
|
-
export interface MethodSpec {
|
|
114
|
-
requestQueryFieldNumber?: QueryFieldNumber;
|
|
115
|
-
responseRepeatedFieldName?: string | null;
|
|
116
|
-
responsePagingMetadataFieldName?: string | null;
|
|
117
|
-
}
|
|
118
|
-
export declare enum QueryFieldNumber {
|
|
119
|
-
/** message QuerySomethingRequest { .wix.common.QueryV2 query = 1; } */
|
|
120
|
-
DEFAULT = "DEFAULT",
|
|
121
|
-
FIELD_2 = "FIELD_2",
|
|
122
|
-
FIELD_3 = "FIELD_3",
|
|
123
|
-
FIELD_4 = "FIELD_4",
|
|
124
|
-
FIELD_5 = "FIELD_5",
|
|
125
|
-
FIELD_6 = "FIELD_6",
|
|
126
|
-
FIELD_7 = "FIELD_7",
|
|
127
|
-
/** message QuerySomethingRequest { .wix.common.QueryV2 query = 8; } */
|
|
128
|
-
FIELD_8 = "FIELD_8",
|
|
129
|
-
FIELD_9 = "FIELD_9"
|
|
130
|
-
}
|
|
131
|
-
export interface PagingMetadataV2 {
|
|
132
|
-
/** Number of items returned in the response. */
|
|
133
|
-
count?: number | null;
|
|
134
|
-
/** Offset that was requested. */
|
|
135
|
-
offset?: number | null;
|
|
136
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
137
|
-
total?: number | null;
|
|
138
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
139
|
-
tooManyToCount?: boolean | null;
|
|
140
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
141
|
-
cursors?: Cursors;
|
|
142
|
-
}
|
|
143
|
-
export interface Cursors {
|
|
144
|
-
/**
|
|
145
|
-
* Cursor string pointing to the next page in the list of results.
|
|
146
|
-
* @maxLength 16000
|
|
147
|
-
*/
|
|
148
|
-
next?: string | null;
|
|
149
|
-
/**
|
|
150
|
-
* Cursor pointing to the previous page in the list of results.
|
|
151
|
-
* @maxLength 16000
|
|
152
|
-
*/
|
|
153
|
-
prev?: string | null;
|
|
154
|
-
}
|
|
155
|
-
export interface Details extends DetailsKindOneOf {
|
|
156
|
-
applicationError?: ApplicationError;
|
|
157
|
-
validationError?: ValidationError;
|
|
158
|
-
systemError?: SystemError;
|
|
159
|
-
/**
|
|
160
|
-
* deprecated in API's - to enable migration from rendering arbitrary tracing to rest response
|
|
161
|
-
* @deprecated
|
|
162
|
-
*/
|
|
163
|
-
tracing?: Record<string, string>;
|
|
164
|
-
}
|
|
165
|
-
/** @oneof */
|
|
166
|
-
export interface DetailsKindOneOf {
|
|
167
|
-
applicationError?: ApplicationError;
|
|
168
|
-
validationError?: ValidationError;
|
|
169
|
-
systemError?: SystemError;
|
|
170
|
-
}
|
|
171
|
-
export interface ApplicationError {
|
|
172
|
-
/** Error code. */
|
|
173
|
-
code?: string;
|
|
174
|
-
/** Description of the error. */
|
|
175
|
-
description?: string;
|
|
176
|
-
/** Data related to the error. */
|
|
177
|
-
data?: Record<string, any> | null;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* example result:
|
|
181
|
-
* {
|
|
182
|
-
* "fieldViolations": [
|
|
183
|
-
* {
|
|
184
|
-
* "field": "fieldA",
|
|
185
|
-
* "description": "invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]",
|
|
186
|
-
* "violatedRule": "OTHER",
|
|
187
|
-
* "ruleName": "INVALID_NOTE",
|
|
188
|
-
* "data": {
|
|
189
|
-
* "value": "FI"
|
|
190
|
-
* }
|
|
191
|
-
* },
|
|
192
|
-
* {
|
|
193
|
-
* "field": "fieldB",
|
|
194
|
-
* "description": "field value out of range. supported range: [0-20]",
|
|
195
|
-
* "violatedRule": "MAX",
|
|
196
|
-
* "data": {
|
|
197
|
-
* "threshold": 20
|
|
198
|
-
* }
|
|
199
|
-
* },
|
|
200
|
-
* {
|
|
201
|
-
* "field": "fieldC",
|
|
202
|
-
* "description": "invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]",
|
|
203
|
-
* "violatedRule": "FORMAT",
|
|
204
|
-
* "data": {
|
|
205
|
-
* "type": "PHONE"
|
|
206
|
-
* }
|
|
207
|
-
* }
|
|
208
|
-
* ]
|
|
209
|
-
* }
|
|
210
|
-
*/
|
|
211
|
-
export interface ValidationError {
|
|
212
|
-
fieldViolations?: FieldViolation[];
|
|
213
|
-
}
|
|
214
|
-
export declare enum RuleType {
|
|
215
|
-
VALIDATION = "VALIDATION",
|
|
216
|
-
OTHER = "OTHER",
|
|
217
|
-
MAX = "MAX",
|
|
218
|
-
MIN = "MIN",
|
|
219
|
-
MAX_LENGTH = "MAX_LENGTH",
|
|
220
|
-
MIN_LENGTH = "MIN_LENGTH",
|
|
221
|
-
MAX_SIZE = "MAX_SIZE",
|
|
222
|
-
MIN_SIZE = "MIN_SIZE",
|
|
223
|
-
FORMAT = "FORMAT",
|
|
224
|
-
DECIMAL_LTE = "DECIMAL_LTE",
|
|
225
|
-
DECIMAL_GTE = "DECIMAL_GTE",
|
|
226
|
-
DECIMAL_LT = "DECIMAL_LT",
|
|
227
|
-
DECIMAL_GT = "DECIMAL_GT",
|
|
228
|
-
DECIMAL_MAX_SCALE = "DECIMAL_MAX_SCALE",
|
|
229
|
-
INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE",
|
|
230
|
-
REQUIRED_FIELD = "REQUIRED_FIELD",
|
|
231
|
-
FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
|
|
232
|
-
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
|
|
233
|
-
EXACT_LENGTH = "EXACT_LENGTH",
|
|
234
|
-
EXACT_SIZE = "EXACT_SIZE",
|
|
235
|
-
REQUIRED_ONE_OF_FIELD = "REQUIRED_ONE_OF_FIELD"
|
|
236
|
-
}
|
|
237
|
-
export interface FieldViolation {
|
|
238
|
-
field?: string;
|
|
239
|
-
description?: string;
|
|
240
|
-
violatedRule?: RuleType;
|
|
241
|
-
/** applicable when violated_rule=OTHER */
|
|
242
|
-
ruleName?: string | null;
|
|
243
|
-
data?: Record<string, any> | null;
|
|
244
|
-
}
|
|
245
|
-
export interface SystemError {
|
|
246
|
-
/** Error code. */
|
|
247
|
-
errorCode?: string | null;
|
|
248
|
-
}
|
|
249
|
-
export declare enum Status {
|
|
250
|
-
UNKNOWN = "UNKNOWN",
|
|
251
|
-
/** Job is created, but hasn't started yet. */
|
|
252
|
-
INITIALIZED = "INITIALIZED",
|
|
253
|
-
/** Job has started and is in progress. */
|
|
254
|
-
PROCESSING = "PROCESSING",
|
|
255
|
-
/** Job is finished. */
|
|
256
|
-
FINISHED = "FINISHED",
|
|
257
|
-
/** Job has failed. */
|
|
258
|
-
FAILED = "FAILED"
|
|
259
|
-
}
|
|
260
|
-
export interface CreateExportAsyncJobRequest {
|
|
261
|
-
/** WQL expression */
|
|
262
|
-
query: ExportQueryV2;
|
|
263
|
-
/** translated CSV headers */
|
|
264
|
-
fields: FieldDescriptor[];
|
|
265
|
-
arrayFieldDelimiter?: ArrayFieldDelimiter;
|
|
266
|
-
/** The target method to query data from */
|
|
267
|
-
methodMetadata: MethodMetadata;
|
|
268
|
-
/** The target method to query data from */
|
|
269
|
-
methodSpec?: MethodSpec;
|
|
270
|
-
/** @maxLength 255 */
|
|
271
|
-
saveAs?: string | null;
|
|
272
|
-
/** Test params */
|
|
273
|
-
testParams?: Record<string, any> | null;
|
|
274
|
-
}
|
|
275
|
-
export interface CreateExportAsyncJobResponse {
|
|
276
|
-
/** The retrieved Exports */
|
|
277
|
-
job?: ExportAsyncJob;
|
|
278
|
-
}
|
|
279
|
-
export interface GetExportAsyncJobRequest {
|
|
280
|
-
/**
|
|
281
|
-
* Id of the Export to retrieve
|
|
282
|
-
* @format GUID
|
|
283
|
-
*/
|
|
284
|
-
jobId: string;
|
|
285
|
-
}
|
|
286
|
-
export interface GetExportAsyncJobResponse {
|
|
287
|
-
/** The retrieved ExportAsyncJob */
|
|
288
|
-
job?: ExportAsyncJob;
|
|
289
|
-
}
|
|
290
|
-
export interface CancelExportAsyncJobRequest {
|
|
291
|
-
/**
|
|
292
|
-
* Id of the Export to retrieve
|
|
293
|
-
* @format GUID
|
|
294
|
-
*/
|
|
295
|
-
jobId?: string;
|
|
296
|
-
}
|
|
297
|
-
export interface CancelExportAsyncJobResponse {
|
|
298
|
-
/** The retrieved ExportAsyncJob */
|
|
299
|
-
job?: ExportAsyncJob;
|
|
300
|
-
}
|
|
301
|
-
export interface GenerateExportAsyncJobDownloadUrlRequest {
|
|
302
|
-
/**
|
|
303
|
-
* Id of the Export to retrieve
|
|
304
|
-
* @format GUID
|
|
305
|
-
*/
|
|
306
|
-
jobId?: string;
|
|
307
|
-
}
|
|
308
|
-
export interface GenerateExportAsyncJobDownloadUrlResponse {
|
|
309
|
-
/** The retrieved ExportAsyncJob */
|
|
310
|
-
job?: ExportAsyncJob;
|
|
311
|
-
}
|
|
312
|
-
export interface QueryRequestLoose {
|
|
313
|
-
/** WQL expression */
|
|
314
|
-
query?: ExportQueryV2;
|
|
315
|
-
}
|
|
316
|
-
export interface QueryVariantsExportSpiResponse {
|
|
317
|
-
items?: ProductOrVariant[];
|
|
318
|
-
pagingMetadata?: PagingMetadataV2;
|
|
319
|
-
}
|
|
320
|
-
export interface ProductOrVariant {
|
|
321
|
-
kind?: string;
|
|
322
|
-
product?: Product;
|
|
323
|
-
variant?: StoreVariant;
|
|
324
|
-
}
|
|
325
|
-
export interface Product {
|
|
326
|
-
/**
|
|
327
|
-
* Product ID (generated automatically by the catalog).
|
|
328
|
-
* @readonly
|
|
329
|
-
*/
|
|
330
|
-
id?: string;
|
|
331
|
-
/**
|
|
332
|
-
* Product name.
|
|
333
|
-
*
|
|
334
|
-
* Min: 1 character
|
|
335
|
-
* Max: 80 characters
|
|
336
|
-
* @minLength 1
|
|
337
|
-
* @maxLength 80
|
|
338
|
-
*/
|
|
339
|
-
name?: string | null;
|
|
340
|
-
/**
|
|
341
|
-
* A friendly URL name (generated automatically by the catalog when a product is created), can be updated.
|
|
342
|
-
* @maxLength 100
|
|
343
|
-
*/
|
|
344
|
-
slug?: string;
|
|
345
|
-
/** Whether the product is visible to site visitors. */
|
|
346
|
-
visible?: boolean | null;
|
|
347
|
-
/** Currently, only creating physical products ( `"productType": "physical"` ) is supported via the API. */
|
|
348
|
-
productType?: ProductType;
|
|
349
|
-
/**
|
|
350
|
-
* Product description. Accepts [rich text](https://dev.wix.com/api/rest/wix-stores/rich-text).
|
|
351
|
-
* @maxLength 8000
|
|
352
|
-
*/
|
|
353
|
-
description?: string | null;
|
|
354
|
-
/**
|
|
355
|
-
* Stock keeping unit. If [variant management](https://support.wix.com/en/article/wix-stores-adding-and-customizing-product-options#setting-different-prices-for-variants) is enabled, SKUs will be set per variant, and this field will be empty.
|
|
356
|
-
* @maxLength 40
|
|
357
|
-
*/
|
|
358
|
-
sku?: string | null;
|
|
359
|
-
/**
|
|
360
|
-
* Product weight. If [variant management](https://support.wix.com/en/article/wix-stores-adding-and-customizing-product-options#setting-different-prices-for-variants) is enabled, weight will be set per variant, and this field will be empty.
|
|
361
|
-
* @max 999999999.99
|
|
362
|
-
*/
|
|
363
|
-
weight?: number | null;
|
|
364
|
-
/**
|
|
365
|
-
* Product weight range. The minimum and maximum weights of all the variants.
|
|
366
|
-
* @readonly
|
|
367
|
-
*/
|
|
368
|
-
weightRange?: NumericPropertyRange;
|
|
369
|
-
/**
|
|
370
|
-
* Product inventory status (in future this will be writable via Inventory API).
|
|
371
|
-
* @readonly
|
|
372
|
-
*/
|
|
373
|
-
stock?: Stock;
|
|
374
|
-
/**
|
|
375
|
-
* Deprecated (use `priceData` instead).
|
|
376
|
-
* @readonly
|
|
377
|
-
* @deprecated
|
|
378
|
-
*/
|
|
379
|
-
price?: PriceData;
|
|
380
|
-
/** Price data. */
|
|
381
|
-
priceData?: PriceData;
|
|
382
|
-
/**
|
|
383
|
-
* Price data, converted to the currency specified in request header.
|
|
384
|
-
* @readonly
|
|
385
|
-
*/
|
|
386
|
-
convertedPriceData?: PriceData;
|
|
387
|
-
/**
|
|
388
|
-
* Product price range. The minimum and maximum prices of all the variants.
|
|
389
|
-
* @readonly
|
|
390
|
-
*/
|
|
391
|
-
priceRange?: NumericPropertyRange;
|
|
392
|
-
/** Cost and profit data. */
|
|
393
|
-
costAndProfitData?: CostAndProfitData;
|
|
394
|
-
/**
|
|
395
|
-
* Product cost range. The minimum and maximum costs of all the variants.
|
|
396
|
-
* @readonly
|
|
397
|
-
*/
|
|
398
|
-
costRange?: NumericPropertyRange;
|
|
399
|
-
/** Price per unit data. */
|
|
400
|
-
pricePerUnitData?: PricePerUnitData;
|
|
401
|
-
/** Additional text that the store owner can assign to the product (e.g. shipping details, refund policy, etc.). */
|
|
402
|
-
additionalInfoSections?: AdditionalInfoSection[];
|
|
403
|
-
/**
|
|
404
|
-
* Deprecated (use `ribbon` instead).
|
|
405
|
-
* @readonly
|
|
406
|
-
* @deprecated
|
|
407
|
-
*/
|
|
408
|
-
ribbons?: Ribbon[];
|
|
409
|
-
/**
|
|
410
|
-
* Media items (images, videos etc) associated with this product (writable via [Add Product Media](https://dev.wix.com/api/rest/wix-stores/catalog/products/add-product-media) endpoint).
|
|
411
|
-
* @readonly
|
|
412
|
-
*/
|
|
413
|
-
media?: Media;
|
|
414
|
-
/**
|
|
415
|
-
* Text box for the customer to add a message to their order (e.g., customization request). Currently writable only from the UI.
|
|
416
|
-
* @readonly
|
|
417
|
-
*/
|
|
418
|
-
customTextFields?: CustomTextField[];
|
|
419
|
-
/** Whether variants are being managed for this product - enables unique SKU, price and weight per variant. Also affects inventory data. */
|
|
420
|
-
manageVariants?: boolean | null;
|
|
421
|
-
/**
|
|
422
|
-
* Options for this product.
|
|
423
|
-
* @maxSize 6
|
|
424
|
-
*/
|
|
425
|
-
productOptions?: ProductOption[];
|
|
426
|
-
/**
|
|
427
|
-
* Product page URL for this product (generated automatically by the server).
|
|
428
|
-
* @readonly
|
|
429
|
-
*/
|
|
430
|
-
productPageUrl?: PageUrl;
|
|
431
|
-
/**
|
|
432
|
-
* Product’s unique numeric ID (assigned in ascending order).
|
|
433
|
-
* Primarily used for sorting and filtering when crawling all products.
|
|
434
|
-
* @readonly
|
|
435
|
-
*/
|
|
436
|
-
numericId?: string;
|
|
437
|
-
/**
|
|
438
|
-
* Inventory item ID - ID referencing the inventory system.
|
|
439
|
-
* @readonly
|
|
440
|
-
*/
|
|
441
|
-
inventoryItemId?: string;
|
|
442
|
-
/** Discount deducted from the product's original price. */
|
|
443
|
-
discount?: Discount;
|
|
444
|
-
/**
|
|
445
|
-
* A list of all collection IDs that this product is included in (writable via the Catalog > Collection APIs).
|
|
446
|
-
* @readonly
|
|
447
|
-
*/
|
|
448
|
-
collectionIds?: string[];
|
|
449
|
-
/**
|
|
450
|
-
* Product variants, will be provided if the request was sent with the `includeVariants: true`.
|
|
451
|
-
*
|
|
452
|
-
* Max: 1,000 variants
|
|
453
|
-
* @readonly
|
|
454
|
-
* @maxSize 1000
|
|
455
|
-
*/
|
|
456
|
-
variants?: Variant[];
|
|
457
|
-
/**
|
|
458
|
-
* Date and time the product was last updated.
|
|
459
|
-
* @readonly
|
|
460
|
-
*/
|
|
461
|
-
lastUpdated?: Date | null;
|
|
462
|
-
/**
|
|
463
|
-
* Date and time the product was created.
|
|
464
|
-
* @readonly
|
|
465
|
-
*/
|
|
466
|
-
createdDate?: Date | null;
|
|
467
|
-
/** Custom SEO data for the product. */
|
|
468
|
-
seoData?: SeoSchema;
|
|
469
|
-
/**
|
|
470
|
-
* Product ribbon. Used to highlight relevant information about a product. For example, "Sale", "New Arrival", "Sold Out".
|
|
471
|
-
* @maxLength 30
|
|
472
|
-
*/
|
|
473
|
-
ribbon?: string | null;
|
|
474
|
-
/**
|
|
475
|
-
* Product brand. Including a brand name can help improve site and product [visibility on search engines](https://support.wix.com/en/article/adding-brand-names-to-boost-product-page-seo-in-wix-stores).
|
|
476
|
-
* @minLength 1
|
|
477
|
-
* @maxLength 50
|
|
478
|
-
*/
|
|
479
|
-
brand?: string | null;
|
|
480
|
-
}
|
|
481
|
-
export declare enum ProductType {
|
|
482
|
-
unspecified_product_type = "unspecified_product_type",
|
|
483
|
-
physical = "physical",
|
|
484
|
-
digital = "digital"
|
|
485
|
-
}
|
|
486
|
-
export interface NumericPropertyRange {
|
|
487
|
-
/** Minimum value. */
|
|
488
|
-
minValue?: number;
|
|
489
|
-
/** Maximum value. */
|
|
490
|
-
maxValue?: number;
|
|
491
|
-
}
|
|
492
|
-
export interface Stock {
|
|
493
|
-
/** Whether inventory is being tracked */
|
|
494
|
-
trackInventory?: boolean;
|
|
495
|
-
/**
|
|
496
|
-
* Quantity currently left in inventory
|
|
497
|
-
* @max 99999
|
|
498
|
-
*/
|
|
499
|
-
quantity?: number | null;
|
|
500
|
-
/**
|
|
501
|
-
* Whether the product is currently in stock (relevant only when tracking manually)
|
|
502
|
-
* Deprecated (use `inventoryStatus` instead)
|
|
503
|
-
* @deprecated
|
|
504
|
-
*/
|
|
505
|
-
inStock?: boolean;
|
|
506
|
-
/**
|
|
507
|
-
* The current status of the inventory
|
|
508
|
-
* + `IN_STOCK` - In stock
|
|
509
|
-
* + `OUT_OF_STOCK` - Not in stock
|
|
510
|
-
* + `PARTIALLY_OUT_OF_STOCK` - Some of the variants are not in stock
|
|
511
|
-
*/
|
|
512
|
-
inventoryStatus?: InventoryStatus;
|
|
513
|
-
}
|
|
514
|
-
export declare enum InventoryStatus {
|
|
515
|
-
/** In stock */
|
|
516
|
-
IN_STOCK = "IN_STOCK",
|
|
517
|
-
/** Not in stock */
|
|
518
|
-
OUT_OF_STOCK = "OUT_OF_STOCK",
|
|
519
|
-
/** Some of the variants are not in stock */
|
|
520
|
-
PARTIALLY_OUT_OF_STOCK = "PARTIALLY_OUT_OF_STOCK"
|
|
521
|
-
}
|
|
522
|
-
export interface PriceData {
|
|
523
|
-
/**
|
|
524
|
-
* Product price currency
|
|
525
|
-
* @readonly
|
|
526
|
-
*/
|
|
527
|
-
currency?: string;
|
|
528
|
-
/**
|
|
529
|
-
* Product price
|
|
530
|
-
* @max 999999999.99
|
|
531
|
-
*/
|
|
532
|
-
price?: number | null;
|
|
533
|
-
/**
|
|
534
|
-
* Discounted product price (if no discounted price is set, the product price is returned)
|
|
535
|
-
* @readonly
|
|
536
|
-
*/
|
|
537
|
-
discountedPrice?: number;
|
|
538
|
-
/**
|
|
539
|
-
* The product price and discounted price, formatted with the currency
|
|
540
|
-
* @readonly
|
|
541
|
-
*/
|
|
542
|
-
formatted?: FormattedPrice;
|
|
543
|
-
/**
|
|
544
|
-
* Price per unit
|
|
545
|
-
* @readonly
|
|
546
|
-
*/
|
|
547
|
-
pricePerUnit?: number | null;
|
|
548
|
-
}
|
|
549
|
-
export interface FormattedPrice {
|
|
550
|
-
/** Product price formatted with the currency */
|
|
551
|
-
price?: string;
|
|
552
|
-
/** Discounted product price formatted with the currency (if no discounted price is set, the product formatted price is returned) */
|
|
553
|
-
discountedPrice?: string;
|
|
554
|
-
/**
|
|
555
|
-
* Price per unit
|
|
556
|
-
* @readonly
|
|
557
|
-
*/
|
|
558
|
-
pricePerUnit?: string | null;
|
|
559
|
-
}
|
|
560
|
-
export interface CostAndProfitData {
|
|
561
|
-
/**
|
|
562
|
-
* Item cost.
|
|
563
|
-
* @max 999999999.99
|
|
564
|
-
*/
|
|
565
|
-
itemCost?: number | null;
|
|
566
|
-
/**
|
|
567
|
-
* Item cost formatted with currency symbol.
|
|
568
|
-
* @readonly
|
|
569
|
-
*/
|
|
570
|
-
formattedItemCost?: string;
|
|
571
|
-
/**
|
|
572
|
-
* Profit. Calculated by reducing `cost` from `discounted_price`.
|
|
573
|
-
* @readonly
|
|
574
|
-
* @max 999999999.99
|
|
575
|
-
*/
|
|
576
|
-
profit?: number;
|
|
577
|
-
/**
|
|
578
|
-
* Profit formatted with currency symbol.
|
|
579
|
-
* @readonly
|
|
580
|
-
*/
|
|
581
|
-
formattedProfit?: string;
|
|
582
|
-
/**
|
|
583
|
-
* Profit Margin. Calculated by dividing `profit` by `discounted_price`.
|
|
584
|
-
* The result is rounded to 4 decimal places.
|
|
585
|
-
* @readonly
|
|
586
|
-
* @max 1
|
|
587
|
-
*/
|
|
588
|
-
profitMargin?: number;
|
|
589
|
-
}
|
|
590
|
-
export interface PricePerUnitData {
|
|
591
|
-
/**
|
|
592
|
-
* Total quantity
|
|
593
|
-
* @min 0.01
|
|
594
|
-
* @max 999999999.99
|
|
595
|
-
*/
|
|
596
|
-
totalQuantity?: number;
|
|
597
|
-
/** Total measurement unit */
|
|
598
|
-
totalMeasurementUnit?: MeasurementUnit;
|
|
599
|
-
/**
|
|
600
|
-
* Base quantity
|
|
601
|
-
* @min 0.01
|
|
602
|
-
* @max 999999999.99
|
|
603
|
-
*/
|
|
604
|
-
baseQuantity?: number;
|
|
605
|
-
/** Base measurement unit */
|
|
606
|
-
baseMeasurementUnit?: MeasurementUnit;
|
|
607
|
-
}
|
|
608
|
-
export declare enum MeasurementUnit {
|
|
609
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
610
|
-
ML = "ML",
|
|
611
|
-
CL = "CL",
|
|
612
|
-
L = "L",
|
|
613
|
-
CBM = "CBM",
|
|
614
|
-
MG = "MG",
|
|
615
|
-
G = "G",
|
|
616
|
-
KG = "KG",
|
|
617
|
-
MM = "MM",
|
|
618
|
-
CM = "CM",
|
|
619
|
-
M = "M",
|
|
620
|
-
SQM = "SQM",
|
|
621
|
-
OZ = "OZ",
|
|
622
|
-
LB = "LB",
|
|
623
|
-
FLOZ = "FLOZ",
|
|
624
|
-
PT = "PT",
|
|
625
|
-
QT = "QT",
|
|
626
|
-
GAL = "GAL",
|
|
627
|
-
IN = "IN",
|
|
628
|
-
FT = "FT",
|
|
629
|
-
YD = "YD",
|
|
630
|
-
SQFT = "SQFT"
|
|
631
|
-
}
|
|
632
|
-
export interface AdditionalInfoSection {
|
|
633
|
-
/**
|
|
634
|
-
* Product info section title
|
|
635
|
-
* @maxLength 50
|
|
636
|
-
*/
|
|
637
|
-
title?: string;
|
|
638
|
-
/**
|
|
639
|
-
* Product info section description
|
|
640
|
-
* @maxLength 16000
|
|
641
|
-
*/
|
|
642
|
-
description?: string;
|
|
643
|
-
}
|
|
644
|
-
export interface Ribbon {
|
|
645
|
-
/**
|
|
646
|
-
* Ribbon text
|
|
647
|
-
* @maxLength 30
|
|
648
|
-
*/
|
|
649
|
-
text?: string;
|
|
650
|
-
}
|
|
651
|
-
export interface Media {
|
|
652
|
-
/** Primary media (image, video etc) associated with this product. */
|
|
653
|
-
mainMedia?: MediaItem;
|
|
654
|
-
/** Media (images, videos etc) associated with this product. */
|
|
655
|
-
items?: MediaItem[];
|
|
656
|
-
}
|
|
657
|
-
export interface MediaItem extends MediaItemItemOneOf {
|
|
658
|
-
/** Image data (URL, size). */
|
|
659
|
-
image?: MediaItemUrlAndSize;
|
|
660
|
-
/** Video data (URL, size). */
|
|
661
|
-
video?: MediaItemVideo;
|
|
662
|
-
/** Media item thumbnail details. */
|
|
663
|
-
thumbnail?: MediaItemUrlAndSize;
|
|
664
|
-
/** Media item type (image, video, etc.). */
|
|
665
|
-
mediaType?: MediaItemType;
|
|
666
|
-
/** Media item title. */
|
|
667
|
-
title?: string;
|
|
668
|
-
/** Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`). */
|
|
669
|
-
id?: string;
|
|
670
|
-
}
|
|
671
|
-
/** @oneof */
|
|
672
|
-
export interface MediaItemItemOneOf {
|
|
673
|
-
/** Image data (URL, size). */
|
|
674
|
-
image?: MediaItemUrlAndSize;
|
|
675
|
-
/** Video data (URL, size). */
|
|
676
|
-
video?: MediaItemVideo;
|
|
677
|
-
}
|
|
678
|
-
export interface MediaItemUrlAndSize {
|
|
679
|
-
/**
|
|
680
|
-
* Media item URL.
|
|
681
|
-
* @format WEB_URL
|
|
682
|
-
*/
|
|
683
|
-
url?: string;
|
|
684
|
-
/** Media item width. */
|
|
685
|
-
width?: number;
|
|
686
|
-
/** Media item height. */
|
|
687
|
-
height?: number;
|
|
688
|
-
/** Media format (mp4, png, etc.). */
|
|
689
|
-
format?: string | null;
|
|
690
|
-
/** Alt text. This text will be shown in case the image is not available. */
|
|
691
|
-
altText?: string | null;
|
|
692
|
-
}
|
|
693
|
-
export declare enum MediaItemType {
|
|
694
|
-
unspecified_media_item_type = "unspecified_media_item_type",
|
|
695
|
-
/** Image media type. */
|
|
696
|
-
image = "image",
|
|
697
|
-
/** Video media type. */
|
|
698
|
-
video = "video",
|
|
699
|
-
/** Audio media type. */
|
|
700
|
-
audio = "audio",
|
|
701
|
-
/** Document media type. */
|
|
702
|
-
document = "document",
|
|
703
|
-
/** Zip media type. */
|
|
704
|
-
zip = "zip"
|
|
705
|
-
}
|
|
706
|
-
export interface MediaItemVideo {
|
|
707
|
-
/** Data (URL, size) about each resolution for which this video is available. */
|
|
708
|
-
files?: MediaItemUrlAndSize[];
|
|
709
|
-
/** ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`. */
|
|
710
|
-
stillFrameMediaId?: string;
|
|
711
|
-
}
|
|
712
|
-
export interface CustomTextField {
|
|
713
|
-
/**
|
|
714
|
-
* Text box title
|
|
715
|
-
* @maxLength 100
|
|
716
|
-
*/
|
|
717
|
-
title?: string;
|
|
718
|
-
/**
|
|
719
|
-
* Text box input max length
|
|
720
|
-
* @max 500
|
|
721
|
-
*/
|
|
722
|
-
maxLength?: number;
|
|
723
|
-
/** Whether this text box is mandatory */
|
|
724
|
-
mandatory?: boolean;
|
|
725
|
-
}
|
|
726
|
-
export interface ProductOption {
|
|
727
|
-
/**
|
|
728
|
-
* Option type.
|
|
729
|
-
* @readonly
|
|
730
|
-
*/
|
|
731
|
-
optionType?: OptionType;
|
|
732
|
-
/**
|
|
733
|
-
* Option name.
|
|
734
|
-
* @minLength 1
|
|
735
|
-
* @maxLength 50
|
|
736
|
-
*/
|
|
737
|
-
name?: string;
|
|
738
|
-
/**
|
|
739
|
-
* Choices available for this option.
|
|
740
|
-
* @minSize 1
|
|
741
|
-
* @maxSize 100
|
|
742
|
-
*/
|
|
743
|
-
choices?: Choice[];
|
|
744
|
-
}
|
|
745
|
-
export declare enum OptionType {
|
|
746
|
-
/** Unspecified option type. */
|
|
747
|
-
unspecified_option_type = "unspecified_option_type",
|
|
748
|
-
/** Drop down. */
|
|
749
|
-
drop_down = "drop_down",
|
|
750
|
-
/** Color. */
|
|
751
|
-
color = "color"
|
|
752
|
-
}
|
|
753
|
-
export interface Choice {
|
|
754
|
-
/**
|
|
755
|
-
* Choice value.
|
|
756
|
-
* @minLength 1
|
|
757
|
-
* @maxLength 50
|
|
758
|
-
*/
|
|
759
|
-
value?: string;
|
|
760
|
-
/**
|
|
761
|
-
* Choice description.
|
|
762
|
-
* @minLength 1
|
|
763
|
-
* @maxLength 50
|
|
764
|
-
*/
|
|
765
|
-
description?: string;
|
|
766
|
-
/**
|
|
767
|
-
* Media items (images, videos) associated with this choice
|
|
768
|
-
* @readonly
|
|
769
|
-
*/
|
|
770
|
-
media?: Media;
|
|
771
|
-
/**
|
|
772
|
-
* Based on the customer’s choices, which (if any) variants that include the selected choices are in stock
|
|
773
|
-
* @readonly
|
|
774
|
-
*/
|
|
775
|
-
inStock?: boolean;
|
|
776
|
-
/**
|
|
777
|
-
* Based on the customer’s choices, which (if any) variants that include the selected choices are visible
|
|
778
|
-
* @readonly
|
|
779
|
-
*/
|
|
780
|
-
visible?: boolean;
|
|
781
|
-
}
|
|
782
|
-
export interface PageUrl {
|
|
783
|
-
/** Base URL. For premium sites, this is the domain. For free sites, this is the site URL (e.g mysite.wixsite.com/mysite). */
|
|
784
|
-
base?: string;
|
|
785
|
-
/** Path to the product page - e.g /product-page/a-product. */
|
|
786
|
-
path?: string;
|
|
787
|
-
}
|
|
788
|
-
export interface Discount {
|
|
789
|
-
/**
|
|
790
|
-
* Discount type:
|
|
791
|
-
* + `"AMOUNT"`
|
|
792
|
-
* + `"PERCENT"`
|
|
793
|
-
*/
|
|
794
|
-
type?: DiscountType;
|
|
795
|
-
/** Discount value */
|
|
796
|
-
value?: number;
|
|
797
|
-
}
|
|
798
|
-
export declare enum DiscountType {
|
|
799
|
-
UNDEFINED = "UNDEFINED",
|
|
800
|
-
/** No discount */
|
|
801
|
-
NONE = "NONE",
|
|
802
|
-
/** Discount by a fixed amount */
|
|
803
|
-
AMOUNT = "AMOUNT",
|
|
804
|
-
/** Discount by a percentage */
|
|
805
|
-
PERCENT = "PERCENT"
|
|
806
|
-
}
|
|
807
|
-
export interface Variant {
|
|
808
|
-
/**
|
|
809
|
-
* Requested Variant ID
|
|
810
|
-
* @format GUID
|
|
811
|
-
*/
|
|
812
|
-
id?: string;
|
|
813
|
-
/** Specific choices within a selection, as option-choice key-value pairs */
|
|
814
|
-
choices?: Record<string, string>;
|
|
815
|
-
variant?: VariantDataWithNoStock;
|
|
816
|
-
/**
|
|
817
|
-
* Variant inventory status.
|
|
818
|
-
* @readonly
|
|
819
|
-
*/
|
|
820
|
-
stock?: VariantStock;
|
|
821
|
-
}
|
|
822
|
-
export interface VariantDataWithNoStock {
|
|
823
|
-
/** Variant price. */
|
|
824
|
-
priceData?: PriceData;
|
|
825
|
-
/**
|
|
826
|
-
* Variant price data, converted to currency requested in header.
|
|
827
|
-
* @readonly
|
|
828
|
-
*/
|
|
829
|
-
convertedPriceData?: PriceData;
|
|
830
|
-
/** Cost and profit data. */
|
|
831
|
-
costAndProfitData?: CostAndProfitData;
|
|
832
|
-
/** Variant weight. */
|
|
833
|
-
weight?: number;
|
|
834
|
-
/** Variant SKU (stock keeping unit). */
|
|
835
|
-
sku?: string;
|
|
836
|
-
/** Whether the variant is visible to customers. */
|
|
837
|
-
visible?: boolean;
|
|
838
|
-
}
|
|
839
|
-
export interface VariantStock {
|
|
840
|
-
/** Whether inventory is being tracked. */
|
|
841
|
-
trackQuantity?: boolean;
|
|
842
|
-
/**
|
|
843
|
-
* Quantity currently left in inventory.
|
|
844
|
-
* @max 99999
|
|
845
|
-
*/
|
|
846
|
-
quantity?: number | null;
|
|
847
|
-
/** Whether the product is currently in stock (relevant only when tracking manually). */
|
|
848
|
-
inStock?: boolean;
|
|
849
|
-
}
|
|
850
|
-
/**
|
|
851
|
-
* The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
|
|
852
|
-
* The search engines use this information for ranking purposes, or to display snippets in the search results.
|
|
853
|
-
* This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
|
|
854
|
-
*/
|
|
855
|
-
export interface SeoSchema {
|
|
856
|
-
/** SEO tag information. */
|
|
857
|
-
tags?: Tag[];
|
|
858
|
-
/** SEO general settings. */
|
|
859
|
-
settings?: Settings;
|
|
860
|
-
}
|
|
861
|
-
export interface Keyword {
|
|
862
|
-
/** Keyword value. */
|
|
863
|
-
term?: string;
|
|
864
|
-
/** Whether the keyword is the main focus keyword. */
|
|
865
|
-
isMain?: boolean;
|
|
866
|
-
/**
|
|
867
|
-
* The source that added the keyword terms to the SEO settings.
|
|
868
|
-
* @maxLength 1000
|
|
869
|
-
*/
|
|
870
|
-
origin?: string | null;
|
|
871
|
-
}
|
|
872
|
-
export interface Tag {
|
|
873
|
-
/**
|
|
874
|
-
* SEO tag type.
|
|
875
|
-
*
|
|
876
|
-
*
|
|
877
|
-
* Supported values: `title`, `meta`, `script`, `link`.
|
|
878
|
-
*/
|
|
879
|
-
type?: string;
|
|
880
|
-
/**
|
|
881
|
-
* A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
|
|
882
|
-
* For example: `{"name": "description", "content": "the description itself"}`.
|
|
883
|
-
*/
|
|
884
|
-
props?: Record<string, any> | null;
|
|
885
|
-
/** SEO tag meta data. For example, `{"height": 300, "width": 240}`. */
|
|
886
|
-
meta?: Record<string, any> | null;
|
|
887
|
-
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
888
|
-
children?: string;
|
|
889
|
-
/** Whether the tag is a custom tag. */
|
|
890
|
-
custom?: boolean;
|
|
891
|
-
/** Whether the tag is disabled. */
|
|
892
|
-
disabled?: boolean;
|
|
893
|
-
}
|
|
894
|
-
export interface Settings {
|
|
895
|
-
/**
|
|
896
|
-
* Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
|
|
897
|
-
*
|
|
898
|
-
*
|
|
899
|
-
* Default: `false` (Auto Redirect is enabled.)
|
|
900
|
-
*/
|
|
901
|
-
preventAutoRedirect?: boolean;
|
|
902
|
-
/**
|
|
903
|
-
* User-selected keyword terms for a specific page.
|
|
904
|
-
* @maxSize 5
|
|
905
|
-
*/
|
|
906
|
-
keywords?: Keyword[];
|
|
907
|
-
}
|
|
908
|
-
export interface SecuredMedia {
|
|
909
|
-
/**
|
|
910
|
-
* Media ID in Wix Media Manager.
|
|
911
|
-
* @minLength 1
|
|
912
|
-
* @maxLength 100
|
|
913
|
-
*/
|
|
914
|
-
id?: string;
|
|
915
|
-
/**
|
|
916
|
-
* Original filename.
|
|
917
|
-
* @minLength 1
|
|
918
|
-
* @maxLength 1000
|
|
919
|
-
*/
|
|
920
|
-
fileName?: string;
|
|
921
|
-
/** File type. */
|
|
922
|
-
fileType?: FileType;
|
|
923
|
-
}
|
|
924
|
-
export declare enum FileType {
|
|
925
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
926
|
-
SECURE_PICTURE = "SECURE_PICTURE",
|
|
927
|
-
SECURE_VIDEO = "SECURE_VIDEO",
|
|
928
|
-
SECURE_DOCUMENT = "SECURE_DOCUMENT",
|
|
929
|
-
SECURE_MUSIC = "SECURE_MUSIC",
|
|
930
|
-
SECURE_ARCHIVE = "SECURE_ARCHIVE"
|
|
931
|
-
}
|
|
932
|
-
export interface StoreVariant {
|
|
933
|
-
/** Store variant ID. Comprised of the `productId` and the `variantId`, separated by a hyphen: {productId}.{variantId}. */
|
|
934
|
-
id?: string;
|
|
935
|
-
/**
|
|
936
|
-
* Variant ID.
|
|
937
|
-
* @format GUID
|
|
938
|
-
*/
|
|
939
|
-
variantId?: string;
|
|
940
|
-
/** Product ID. */
|
|
941
|
-
productId?: string;
|
|
942
|
-
/**
|
|
943
|
-
* Variant name.
|
|
944
|
-
* @minLength 1
|
|
945
|
-
* @maxLength 80
|
|
946
|
-
*/
|
|
947
|
-
variantName?: string;
|
|
948
|
-
/**
|
|
949
|
-
* Product name.
|
|
950
|
-
* @minLength 1
|
|
951
|
-
* @maxLength 80
|
|
952
|
-
*/
|
|
953
|
-
productName?: string;
|
|
954
|
-
/** Whether the variant is managed or represents a product. */
|
|
955
|
-
managedVariant?: boolean;
|
|
956
|
-
/**
|
|
957
|
-
* Variant SKU (stock keeping unit).
|
|
958
|
-
* @maxLength 40
|
|
959
|
-
*/
|
|
960
|
-
sku?: string;
|
|
961
|
-
/** Variant inventory status. */
|
|
962
|
-
stock?: VariantStock;
|
|
963
|
-
/** The selected options of this variant. For example, `{"Color": "Blue", "Size": "Large"}`. */
|
|
964
|
-
choices?: Record<string, string>;
|
|
965
|
-
/**
|
|
966
|
-
* Collections that include this variant.
|
|
967
|
-
* @format GUID
|
|
968
|
-
*/
|
|
969
|
-
collectionIds?: string[];
|
|
970
|
-
/**
|
|
971
|
-
* Media items (images, videos) associated with this variant.
|
|
972
|
-
* @readonly
|
|
973
|
-
*/
|
|
974
|
-
media?: PlatformMedia;
|
|
975
|
-
/** Preorder information. */
|
|
976
|
-
preorderInfo?: PreorderInfo;
|
|
977
|
-
}
|
|
978
|
-
export interface PlatformMedia extends PlatformMediaMediaOneOf {
|
|
979
|
-
image?: Image;
|
|
980
|
-
video?: VideoV2;
|
|
981
|
-
}
|
|
982
|
-
/** @oneof */
|
|
983
|
-
export interface PlatformMediaMediaOneOf {
|
|
984
|
-
image?: Image;
|
|
985
|
-
video?: VideoV2;
|
|
986
|
-
}
|
|
987
|
-
export interface Image {
|
|
988
|
-
/** WixMedia image ID. */
|
|
989
|
-
id?: string;
|
|
990
|
-
/** Image URL. */
|
|
991
|
-
url?: string;
|
|
992
|
-
/**
|
|
993
|
-
* Original image height.
|
|
994
|
-
* @readonly
|
|
995
|
-
*/
|
|
996
|
-
height?: number;
|
|
997
|
-
/**
|
|
998
|
-
* Original image width.
|
|
999
|
-
* @readonly
|
|
1000
|
-
*/
|
|
1001
|
-
width?: number;
|
|
1002
|
-
/** Image alt text. */
|
|
1003
|
-
altText?: string | null;
|
|
1004
|
-
/**
|
|
1005
|
-
* Image filename.
|
|
1006
|
-
* @readonly
|
|
1007
|
-
*/
|
|
1008
|
-
filename?: string | null;
|
|
1009
|
-
}
|
|
1010
|
-
export interface FocalPoint {
|
|
1011
|
-
/** X-coordinate of the focal point. */
|
|
1012
|
-
x?: number;
|
|
1013
|
-
/** Y-coordinate of the focal point. */
|
|
1014
|
-
y?: number;
|
|
1015
|
-
/** crop by height */
|
|
1016
|
-
height?: number | null;
|
|
1017
|
-
/** crop by width */
|
|
1018
|
-
width?: number | null;
|
|
1019
|
-
}
|
|
1020
|
-
export interface VideoV2 {
|
|
1021
|
-
/** WixMedia ID. */
|
|
1022
|
-
id?: string;
|
|
1023
|
-
/**
|
|
1024
|
-
* Available resolutions for the video, starting with the optimal resolution.
|
|
1025
|
-
* @readonly
|
|
1026
|
-
* @maxSize 100
|
|
1027
|
-
*/
|
|
1028
|
-
resolutions?: VideoResolution[];
|
|
1029
|
-
/**
|
|
1030
|
-
* Video filename.
|
|
1031
|
-
* @readonly
|
|
1032
|
-
*/
|
|
1033
|
-
filename?: string | null;
|
|
1034
|
-
}
|
|
1035
|
-
export interface VideoResolution {
|
|
1036
|
-
/** Video URL. */
|
|
1037
|
-
url?: string;
|
|
1038
|
-
/** Video height. */
|
|
1039
|
-
height?: number;
|
|
1040
|
-
/** Video width. */
|
|
1041
|
-
width?: number;
|
|
1042
|
-
/** Video format for example, mp4, hls. */
|
|
1043
|
-
format?: string;
|
|
1044
|
-
}
|
|
1045
|
-
export interface PreorderInfo {
|
|
1046
|
-
/** Whether the item is available for preorder. */
|
|
1047
|
-
enabled?: boolean;
|
|
1048
|
-
/**
|
|
1049
|
-
* A message the buyer will see when the item is out of stock and preorder is enabled.
|
|
1050
|
-
* @minLength 1
|
|
1051
|
-
* @maxLength 250
|
|
1052
|
-
*/
|
|
1053
|
-
message?: string | null;
|
|
1054
|
-
/**
|
|
1055
|
-
* Number of products that can be preordered after stock reaches zero.
|
|
1056
|
-
* @max 100000
|
|
1057
|
-
*/
|
|
1058
|
-
limit?: number | null;
|
|
1059
|
-
}
|
|
1060
|
-
export interface QueryProductsExportSpiResponse {
|
|
1061
|
-
items?: ProductOrVariantV2[];
|
|
1062
|
-
pagingMetadata?: PagingMetadataV2;
|
|
1063
|
-
}
|
|
1064
|
-
export interface ProductOrVariantV2 {
|
|
1065
|
-
kind?: string;
|
|
1066
|
-
product?: Product;
|
|
1067
|
-
variant?: Variant;
|
|
1068
|
-
}
|
|
1069
|
-
interface SortingNonNullableFields {
|
|
1070
|
-
fieldName: string;
|
|
1071
|
-
order: SortOrder;
|
|
1072
|
-
}
|
|
1073
|
-
interface ExportQueryV2NonNullableFields {
|
|
1074
|
-
sort: SortingNonNullableFields[];
|
|
1075
|
-
fields: string[];
|
|
1076
|
-
fieldsets: string[];
|
|
1077
|
-
}
|
|
1078
|
-
interface FieldDescriptorNonNullableFields {
|
|
1079
|
-
id: string;
|
|
1080
|
-
header: string;
|
|
1081
|
-
}
|
|
1082
|
-
interface MethodMetadataNonNullableFields {
|
|
1083
|
-
artifact: string;
|
|
1084
|
-
service: string;
|
|
1085
|
-
method: string;
|
|
1086
|
-
}
|
|
1087
|
-
interface MethodSpecNonNullableFields {
|
|
1088
|
-
requestQueryFieldNumber: QueryFieldNumber;
|
|
1089
|
-
}
|
|
1090
|
-
interface ApplicationErrorNonNullableFields {
|
|
1091
|
-
code: string;
|
|
1092
|
-
description: string;
|
|
1093
|
-
}
|
|
1094
|
-
interface FieldViolationNonNullableFields {
|
|
1095
|
-
field: string;
|
|
1096
|
-
description: string;
|
|
1097
|
-
violatedRule: RuleType;
|
|
1098
|
-
}
|
|
1099
|
-
interface ValidationErrorNonNullableFields {
|
|
1100
|
-
fieldViolations: FieldViolationNonNullableFields[];
|
|
1101
|
-
}
|
|
1102
|
-
interface DetailsNonNullableFields {
|
|
1103
|
-
applicationError?: ApplicationErrorNonNullableFields;
|
|
1104
|
-
validationError?: ValidationErrorNonNullableFields;
|
|
1105
|
-
}
|
|
1106
|
-
interface ExportAsyncJobDataNonNullableFields {
|
|
1107
|
-
query?: ExportQueryV2NonNullableFields;
|
|
1108
|
-
fields: FieldDescriptorNonNullableFields[];
|
|
1109
|
-
arrayFieldDelimiter: ArrayFieldDelimiter;
|
|
1110
|
-
methodMetadata?: MethodMetadataNonNullableFields;
|
|
1111
|
-
methodSpec?: MethodSpecNonNullableFields;
|
|
1112
|
-
userId: string;
|
|
1113
|
-
format: string;
|
|
1114
|
-
uploadId: string;
|
|
1115
|
-
iterationsCount: number;
|
|
1116
|
-
processedItemsCount: number;
|
|
1117
|
-
resetCount: number;
|
|
1118
|
-
signedUrl: string;
|
|
1119
|
-
error?: DetailsNonNullableFields;
|
|
1120
|
-
}
|
|
1121
|
-
interface ExportAsyncJobNonNullableFields {
|
|
1122
|
-
id: string;
|
|
1123
|
-
data?: ExportAsyncJobDataNonNullableFields;
|
|
1124
|
-
status: Status;
|
|
1125
|
-
}
|
|
1126
|
-
export interface CreateExportAsyncJobResponseNonNullableFields {
|
|
1127
|
-
job?: ExportAsyncJobNonNullableFields;
|
|
1128
|
-
}
|
|
1129
|
-
export interface GetExportAsyncJobResponseNonNullableFields {
|
|
1130
|
-
job?: ExportAsyncJobNonNullableFields;
|
|
1131
|
-
}
|
|
1132
|
-
export {};
|