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