@wix/auto_sdk_papyrus_documents 1.0.0
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 +115 -0
- package/build/cjs/index.js +1101 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1465 -0
- package/build/cjs/index.typings.js +863 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1030 -0
- package/build/cjs/meta.js +705 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/schemas.d.ts +411 -0
- package/build/cjs/schemas.js +658 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +115 -0
- package/build/es/index.mjs +1050 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1465 -0
- package/build/es/index.typings.mjs +817 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1030 -0
- package/build/es/meta.mjs +658 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/schemas.d.mts +411 -0
- package/build/es/schemas.mjs +602 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +115 -0
- package/build/internal/cjs/index.js +1101 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1465 -0
- package/build/internal/cjs/index.typings.js +863 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1030 -0
- package/build/internal/cjs/meta.js +705 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/schemas.d.ts +411 -0
- package/build/internal/cjs/schemas.js +658 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +115 -0
- package/build/internal/es/index.mjs +1050 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +1465 -0
- package/build/internal/es/index.typings.mjs +817 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1030 -0
- package/build/internal/es/meta.mjs +658 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/schemas.d.mts +411 -0
- package/build/internal/es/schemas.mjs +602 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +61 -0
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,1030 @@
|
|
|
1
|
+
import { GetDownloadPageRequest as GetDownloadPageRequest$1, RawHttpResponse as RawHttpResponse$1, RedirectToDocumentRequest as RedirectToDocumentRequest$1, CreateDocumentRequest as CreateDocumentRequest$1, CreateDocumentResponse as CreateDocumentResponse$1, GetDocumentRequest as GetDocumentRequest$1, GetDocumentResponse as GetDocumentResponse$1, DeleteDocumentRequest as DeleteDocumentRequest$1, DeleteDocumentResponse as DeleteDocumentResponse$1, QueryDocumentRequest as QueryDocumentRequest$1, QueryDocumentResponse as QueryDocumentResponse$1, UpdateDocumentRequest as UpdateDocumentRequest$1, UpdateDocumentResponse as UpdateDocumentResponse$1, DownloadDocumentRequest as DownloadDocumentRequest$1, DownloadDocumentResponse as DownloadDocumentResponse$1, GetDownloadUrlRequest as GetDownloadUrlRequest$1, GetDownloadUrlResponse as GetDownloadUrlResponse$1, DownloadDocumentSourceRequest as DownloadDocumentSourceRequest$1, DownloadDocumentSourceResponse as DownloadDocumentSourceResponse$1 } from './index.typings.js';
|
|
2
|
+
import '@wix/sdk-types';
|
|
3
|
+
|
|
4
|
+
/** Document is the main entity of DocumentService. */
|
|
5
|
+
interface Document {
|
|
6
|
+
/**
|
|
7
|
+
* Document ID.
|
|
8
|
+
* @format GUID
|
|
9
|
+
* @readonly
|
|
10
|
+
*/
|
|
11
|
+
id?: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Represents the time this Document was created.
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
createdDate?: Date | null;
|
|
17
|
+
/**
|
|
18
|
+
* Represents the time this Document was last updated.
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
updatedDate?: Date | null;
|
|
22
|
+
/**
|
|
23
|
+
* Document render status.
|
|
24
|
+
* @readonly
|
|
25
|
+
*/
|
|
26
|
+
renderStatus?: RenderStatusWithLiterals;
|
|
27
|
+
/**
|
|
28
|
+
* URL to download document. Returned only when Document is in `READY` state.
|
|
29
|
+
* @format WEB_URL
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
|
+
downloadUrl?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Template ID. When this parameter used the document will be rendered with this template default settings
|
|
35
|
+
* @minLength 1
|
|
36
|
+
* @maxLength 20
|
|
37
|
+
* @immutable
|
|
38
|
+
*/
|
|
39
|
+
templateId?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Unique per tenant external ID, for example order number. Used to retrieve Document later.
|
|
42
|
+
* @minLength 1
|
|
43
|
+
* @maxLength 100
|
|
44
|
+
* @immutable
|
|
45
|
+
*/
|
|
46
|
+
externalId?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* Unique per tenant template external ID, for example ticket definition ID. Used to lookup corresponding template & template settings.
|
|
49
|
+
* @maxLength 100
|
|
50
|
+
* @immutable
|
|
51
|
+
*/
|
|
52
|
+
templateSettingsExternalId?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Template settings ID.
|
|
55
|
+
* @format GUID
|
|
56
|
+
* @immutable
|
|
57
|
+
*/
|
|
58
|
+
templateSettingsId?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* The app slug of the template
|
|
61
|
+
* @minLength 1
|
|
62
|
+
* @maxLength 20
|
|
63
|
+
* @immutable
|
|
64
|
+
*/
|
|
65
|
+
appSlug?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* The type of the template.
|
|
68
|
+
* @minLength 1
|
|
69
|
+
* @maxLength 20
|
|
70
|
+
* @immutable
|
|
71
|
+
*/
|
|
72
|
+
templateType?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Document content that is injected into template.
|
|
75
|
+
* @immutable
|
|
76
|
+
*/
|
|
77
|
+
content?: DocumentContent;
|
|
78
|
+
/**
|
|
79
|
+
* Number of hours after which document will be eventually expired and its content erased.
|
|
80
|
+
* @min 1
|
|
81
|
+
* @max 43800
|
|
82
|
+
* @immutable
|
|
83
|
+
*/
|
|
84
|
+
expiresInHours?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Represents the time this document becomes expired.
|
|
87
|
+
* @readonly
|
|
88
|
+
*/
|
|
89
|
+
expirationDate?: Date | null;
|
|
90
|
+
/**
|
|
91
|
+
* Document format. Defaults to `PDF`.
|
|
92
|
+
* @immutable
|
|
93
|
+
*/
|
|
94
|
+
format?: FormatWithLiterals;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the link to the uploaded document is public or private.
|
|
97
|
+
* For public document static URL will be returned.
|
|
98
|
+
* For private document temporary URL will be generated by DocumentService.DownloadDocument.
|
|
99
|
+
* @immutable
|
|
100
|
+
*/
|
|
101
|
+
public?: boolean | null;
|
|
102
|
+
/**
|
|
103
|
+
* Optional filename (without extension) to be used for the downloadable document.
|
|
104
|
+
* @minLength 1
|
|
105
|
+
* @maxLength 50
|
|
106
|
+
*/
|
|
107
|
+
fileName?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Client defined content checksum. Can be used for content comparison.
|
|
110
|
+
* @minLength 1
|
|
111
|
+
* @maxLength 64
|
|
112
|
+
* @immutable
|
|
113
|
+
*/
|
|
114
|
+
contentChecksum?: string | null;
|
|
115
|
+
/** Rendering notification config. */
|
|
116
|
+
renderDelayedEventConfig?: RenderDelayedEventConfig;
|
|
117
|
+
/**
|
|
118
|
+
* Size in bytes of a rendered document. Returned only when Document is in `READY` state.
|
|
119
|
+
* @readonly
|
|
120
|
+
*/
|
|
121
|
+
sizeInBytes?: number | null;
|
|
122
|
+
}
|
|
123
|
+
declare enum RenderStatus {
|
|
124
|
+
UNKNOWN = "UNKNOWN",
|
|
125
|
+
/** Document was accepted and is waiting to be rendered. */
|
|
126
|
+
ACCEPTED = "ACCEPTED",
|
|
127
|
+
/** Rendering is in progress. */
|
|
128
|
+
RENDERING = "RENDERING",
|
|
129
|
+
/** Rendering finished successfully and document is ready to download. */
|
|
130
|
+
READY = "READY",
|
|
131
|
+
/** Rendering failed. */
|
|
132
|
+
FAILED = "FAILED",
|
|
133
|
+
/** Rendered document expired and is no longer available for download. */
|
|
134
|
+
EXPIRED = "EXPIRED"
|
|
135
|
+
}
|
|
136
|
+
/** @enumType */
|
|
137
|
+
type RenderStatusWithLiterals = RenderStatus | 'UNKNOWN' | 'ACCEPTED' | 'RENDERING' | 'READY' | 'FAILED' | 'EXPIRED';
|
|
138
|
+
interface DocumentContent {
|
|
139
|
+
/**
|
|
140
|
+
* Document pages. Each page is reference as $page.
|
|
141
|
+
* @minSize 1
|
|
142
|
+
* @maxSize 100
|
|
143
|
+
*/
|
|
144
|
+
pages?: Record<string, any>[] | null;
|
|
145
|
+
/** Other document content referenced by $content variable */
|
|
146
|
+
content?: Record<string, any> | null;
|
|
147
|
+
/**
|
|
148
|
+
* ISO 639-1 language code of content (used in translations).
|
|
149
|
+
* @format LANGUAGE
|
|
150
|
+
*/
|
|
151
|
+
language?: string;
|
|
152
|
+
/**
|
|
153
|
+
* e.g. en-US.
|
|
154
|
+
* @minLength 2
|
|
155
|
+
* @maxLength 35
|
|
156
|
+
*/
|
|
157
|
+
locale?: string | null;
|
|
158
|
+
}
|
|
159
|
+
declare enum Format {
|
|
160
|
+
UNKNOWN = "UNKNOWN",
|
|
161
|
+
PDF = "PDF"
|
|
162
|
+
}
|
|
163
|
+
/** @enumType */
|
|
164
|
+
type FormatWithLiterals = Format | 'UNKNOWN' | 'PDF';
|
|
165
|
+
interface TemplateSettingsOverride {
|
|
166
|
+
/**
|
|
167
|
+
* Indices (0-based) of pages with template settings override.
|
|
168
|
+
* @max 99
|
|
169
|
+
*/
|
|
170
|
+
pageIndices?: number[];
|
|
171
|
+
/**
|
|
172
|
+
* Template settings ID.
|
|
173
|
+
* @format GUID
|
|
174
|
+
*/
|
|
175
|
+
templateSettingsId?: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Unique per tenant template external ID, for example ticket definition ID. Used to lookup corresponding template & template settings.
|
|
178
|
+
* @maxLength 100
|
|
179
|
+
*/
|
|
180
|
+
templateSettingsExternalId?: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* Template ID. When this parameter used the page will be rendered with this template default settings
|
|
183
|
+
* @minLength 1
|
|
184
|
+
* @maxLength 20
|
|
185
|
+
* @immutable
|
|
186
|
+
*/
|
|
187
|
+
templateId?: string | null;
|
|
188
|
+
}
|
|
189
|
+
interface PageSettings {
|
|
190
|
+
/**
|
|
191
|
+
* Indices (0-based) of pages with template settings override.
|
|
192
|
+
* @max 99
|
|
193
|
+
*/
|
|
194
|
+
pageIndices?: number[];
|
|
195
|
+
/**
|
|
196
|
+
* Template settings ID.
|
|
197
|
+
* @format GUID
|
|
198
|
+
*/
|
|
199
|
+
templateSettingsId?: string | null;
|
|
200
|
+
/**
|
|
201
|
+
* Unique per tenant template external ID, for example ticket definition ID. Used to lookup corresponding template & template settings.
|
|
202
|
+
* @maxLength 100
|
|
203
|
+
*/
|
|
204
|
+
templateSettingsExternalId?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* Template ID. When this parameter used the page will be rendered with this template default settings
|
|
207
|
+
* @minLength 1
|
|
208
|
+
* @maxLength 20
|
|
209
|
+
* @immutable
|
|
210
|
+
*/
|
|
211
|
+
templateId?: string | null;
|
|
212
|
+
}
|
|
213
|
+
declare enum WixMpClientVersion {
|
|
214
|
+
UNKNOWN = "UNKNOWN",
|
|
215
|
+
MP_V1 = "MP_V1",
|
|
216
|
+
MP_V2 = "MP_V2"
|
|
217
|
+
}
|
|
218
|
+
/** @enumType */
|
|
219
|
+
type WixMpClientVersionWithLiterals = WixMpClientVersion | 'UNKNOWN' | 'MP_V1' | 'MP_V2';
|
|
220
|
+
interface RenderDelayedEventConfig {
|
|
221
|
+
/**
|
|
222
|
+
* Controls DocumentRenderDelayed action event sending.
|
|
223
|
+
* Event will be sent after time_in_queue_minutes if document render status is ACCEPTED/RENDERING.
|
|
224
|
+
* @min 5
|
|
225
|
+
* @max 120
|
|
226
|
+
* @immutable
|
|
227
|
+
*/
|
|
228
|
+
timeInQueueMinutes?: number;
|
|
229
|
+
}
|
|
230
|
+
interface DebugOptions {
|
|
231
|
+
/**
|
|
232
|
+
* Overrides statics for this document during the rendering
|
|
233
|
+
* @maxLength 60
|
|
234
|
+
* @immutable
|
|
235
|
+
*/
|
|
236
|
+
staticsVersionOverride?: string | null;
|
|
237
|
+
}
|
|
238
|
+
interface RenderDocumentRequest {
|
|
239
|
+
/** Template settings. */
|
|
240
|
+
templateSettings?: TemplateSettings;
|
|
241
|
+
/** Document content. */
|
|
242
|
+
content?: DocumentContent;
|
|
243
|
+
/** Output format, defaults to PDF. */
|
|
244
|
+
outputFormat?: RenderFormatWithLiterals;
|
|
245
|
+
/**
|
|
246
|
+
* Overrides papyrusTemplatesStaticsUrl: "//static.parastorage.com/services/papyrus-templates-statics/${version_override}/"
|
|
247
|
+
* @maxLength 100
|
|
248
|
+
*/
|
|
249
|
+
versionOverride?: string | null;
|
|
250
|
+
/**
|
|
251
|
+
* Overrides static versions for the statics config.
|
|
252
|
+
* @maxSize 10
|
|
253
|
+
*/
|
|
254
|
+
staticOverrides?: Record<string, string>;
|
|
255
|
+
}
|
|
256
|
+
interface TemplateSettings {
|
|
257
|
+
/**
|
|
258
|
+
* Auto generated ID.
|
|
259
|
+
* @format GUID
|
|
260
|
+
* @readonly
|
|
261
|
+
*/
|
|
262
|
+
id?: string | null;
|
|
263
|
+
/**
|
|
264
|
+
* Wix app definition ID.
|
|
265
|
+
* @minLength 1
|
|
266
|
+
* @maxLength 20
|
|
267
|
+
*/
|
|
268
|
+
appSlug?: string | null;
|
|
269
|
+
/**
|
|
270
|
+
* The type of the template.
|
|
271
|
+
* @minLength 1
|
|
272
|
+
* @maxLength 20
|
|
273
|
+
*/
|
|
274
|
+
templateType?: string | null;
|
|
275
|
+
/**
|
|
276
|
+
* The id of the template.
|
|
277
|
+
* @minLength 1
|
|
278
|
+
* @maxLength 20
|
|
279
|
+
*/
|
|
280
|
+
templateId?: string | null;
|
|
281
|
+
/**
|
|
282
|
+
* Template settings external ID. For example ticket definition ID.
|
|
283
|
+
* Must be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)
|
|
284
|
+
* @minLength 1
|
|
285
|
+
* @maxLength 100
|
|
286
|
+
*/
|
|
287
|
+
externalId?: string | null;
|
|
288
|
+
/**
|
|
289
|
+
* Date settings were created.
|
|
290
|
+
* @readonly
|
|
291
|
+
*/
|
|
292
|
+
createdDate?: Date | null;
|
|
293
|
+
/**
|
|
294
|
+
* Date settings were updated.
|
|
295
|
+
* @readonly
|
|
296
|
+
*/
|
|
297
|
+
updatedDate?: Date | null;
|
|
298
|
+
/** @maxSize 10 */
|
|
299
|
+
settingGroups?: SettingsGroup[];
|
|
300
|
+
/** Paper size */
|
|
301
|
+
paperSize?: PaperSizeWithLiterals;
|
|
302
|
+
pageOverflow?: PageOverflowWithLiterals;
|
|
303
|
+
}
|
|
304
|
+
interface TextSetting {
|
|
305
|
+
/**
|
|
306
|
+
* Font family class name
|
|
307
|
+
* @maxLength 20
|
|
308
|
+
*/
|
|
309
|
+
fontFamily?: string | null;
|
|
310
|
+
/**
|
|
311
|
+
* Font style class names
|
|
312
|
+
* @maxSize 10
|
|
313
|
+
* @maxLength 20
|
|
314
|
+
*/
|
|
315
|
+
fontStyle?: string[];
|
|
316
|
+
/**
|
|
317
|
+
* Text alignment class name
|
|
318
|
+
* @maxLength 20
|
|
319
|
+
*/
|
|
320
|
+
textAlignment?: string | null;
|
|
321
|
+
/**
|
|
322
|
+
* Text color hex code
|
|
323
|
+
* @minLength 7
|
|
324
|
+
* @maxLength 7
|
|
325
|
+
*/
|
|
326
|
+
textColor?: string | null;
|
|
327
|
+
/**
|
|
328
|
+
* Font size
|
|
329
|
+
* @min 1
|
|
330
|
+
*/
|
|
331
|
+
fontSize?: number | null;
|
|
332
|
+
/** Text content setting */
|
|
333
|
+
textContent?: TextContent[];
|
|
334
|
+
}
|
|
335
|
+
interface TextContent {
|
|
336
|
+
/**
|
|
337
|
+
* @minLength 3
|
|
338
|
+
* @maxLength 50
|
|
339
|
+
*/
|
|
340
|
+
id?: string;
|
|
341
|
+
/** @maxLength 500 */
|
|
342
|
+
value?: string | null;
|
|
343
|
+
visible?: boolean;
|
|
344
|
+
}
|
|
345
|
+
interface ImageSetting {
|
|
346
|
+
/** Wix media Image */
|
|
347
|
+
image?: Image;
|
|
348
|
+
/** Image resizing mode */
|
|
349
|
+
resize?: ResizeOptionWithLiterals;
|
|
350
|
+
}
|
|
351
|
+
interface Image {
|
|
352
|
+
/** WixMedia image ID. */
|
|
353
|
+
id?: string;
|
|
354
|
+
/** Image URL. */
|
|
355
|
+
url?: string;
|
|
356
|
+
/**
|
|
357
|
+
* Original image height.
|
|
358
|
+
* @readonly
|
|
359
|
+
*/
|
|
360
|
+
height?: number;
|
|
361
|
+
/**
|
|
362
|
+
* Original image width.
|
|
363
|
+
* @readonly
|
|
364
|
+
*/
|
|
365
|
+
width?: number;
|
|
366
|
+
/** Image alt text. */
|
|
367
|
+
altText?: string | null;
|
|
368
|
+
/**
|
|
369
|
+
* Image filename.
|
|
370
|
+
* @readonly
|
|
371
|
+
*/
|
|
372
|
+
filename?: string | null;
|
|
373
|
+
}
|
|
374
|
+
interface FocalPoint {
|
|
375
|
+
/** X-coordinate of the focal point. */
|
|
376
|
+
x?: number;
|
|
377
|
+
/** Y-coordinate of the focal point. */
|
|
378
|
+
y?: number;
|
|
379
|
+
/** crop by height */
|
|
380
|
+
height?: number | null;
|
|
381
|
+
/** crop by width */
|
|
382
|
+
width?: number | null;
|
|
383
|
+
}
|
|
384
|
+
declare enum ResizeOption {
|
|
385
|
+
/** Automatically resizes full image to fit image field */
|
|
386
|
+
FIT = "FIT",
|
|
387
|
+
/** Enables user to manually crop image to fit image field */
|
|
388
|
+
CROP = "CROP"
|
|
389
|
+
}
|
|
390
|
+
/** @enumType */
|
|
391
|
+
type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';
|
|
392
|
+
interface SelectSetting {
|
|
393
|
+
/** Selected value */
|
|
394
|
+
value?: string | null;
|
|
395
|
+
/**
|
|
396
|
+
* Color hex code
|
|
397
|
+
* @minLength 7
|
|
398
|
+
* @maxLength 7
|
|
399
|
+
*/
|
|
400
|
+
primaryColor?: string | null;
|
|
401
|
+
/**
|
|
402
|
+
* Color hex code
|
|
403
|
+
* @minLength 7
|
|
404
|
+
* @maxLength 7
|
|
405
|
+
*/
|
|
406
|
+
secondaryColor?: string | null;
|
|
407
|
+
/** Size */
|
|
408
|
+
size?: number | null;
|
|
409
|
+
}
|
|
410
|
+
interface BackgroundSetting {
|
|
411
|
+
/**
|
|
412
|
+
* Color of the background hex code
|
|
413
|
+
* @minLength 7
|
|
414
|
+
* @maxLength 9
|
|
415
|
+
*/
|
|
416
|
+
color?: string | null;
|
|
417
|
+
/** Wix media Image */
|
|
418
|
+
image?: Image;
|
|
419
|
+
}
|
|
420
|
+
interface SettingsGroup {
|
|
421
|
+
/**
|
|
422
|
+
* Id of the control group
|
|
423
|
+
* @minLength 5
|
|
424
|
+
* @maxLength 50
|
|
425
|
+
*/
|
|
426
|
+
groupId?: string;
|
|
427
|
+
/**
|
|
428
|
+
* Display settings.
|
|
429
|
+
* @maxSize 20
|
|
430
|
+
*/
|
|
431
|
+
display?: Record<string, boolean>;
|
|
432
|
+
/**
|
|
433
|
+
* Texts settings.
|
|
434
|
+
* @maxSize 20
|
|
435
|
+
*/
|
|
436
|
+
texts?: Record<string, TextSetting>;
|
|
437
|
+
/**
|
|
438
|
+
* Images settings.
|
|
439
|
+
* @maxSize 10
|
|
440
|
+
*/
|
|
441
|
+
images?: Record<string, ImageSetting>;
|
|
442
|
+
/**
|
|
443
|
+
* Select option settings.
|
|
444
|
+
* @maxSize 20
|
|
445
|
+
*/
|
|
446
|
+
selects?: Record<string, SelectSetting>;
|
|
447
|
+
/**
|
|
448
|
+
* Backgrounds settings.
|
|
449
|
+
* @maxSize 20
|
|
450
|
+
*/
|
|
451
|
+
backgrounds?: Record<string, BackgroundSetting>;
|
|
452
|
+
}
|
|
453
|
+
declare enum PaperSize {
|
|
454
|
+
A4_PORTRAIT = "A4_PORTRAIT",
|
|
455
|
+
A4_LANDSCAPE = "A4_LANDSCAPE"
|
|
456
|
+
}
|
|
457
|
+
/** @enumType */
|
|
458
|
+
type PaperSizeWithLiterals = PaperSize | 'A4_PORTRAIT' | 'A4_LANDSCAPE';
|
|
459
|
+
declare enum PageOverflow {
|
|
460
|
+
CONTENT_HIDDEN = "CONTENT_HIDDEN",
|
|
461
|
+
CONTENT_BREAK = "CONTENT_BREAK"
|
|
462
|
+
}
|
|
463
|
+
/** @enumType */
|
|
464
|
+
type PageOverflowWithLiterals = PageOverflow | 'CONTENT_HIDDEN' | 'CONTENT_BREAK';
|
|
465
|
+
declare enum RenderFormat {
|
|
466
|
+
/** content-type: application/pdf */
|
|
467
|
+
PDF = "PDF",
|
|
468
|
+
/** content-type: text/html */
|
|
469
|
+
HTML = "HTML"
|
|
470
|
+
}
|
|
471
|
+
/** @enumType */
|
|
472
|
+
type RenderFormatWithLiterals = RenderFormat | 'PDF' | 'HTML';
|
|
473
|
+
interface RawHttpResponse {
|
|
474
|
+
body?: Uint8Array;
|
|
475
|
+
statusCode?: number | null;
|
|
476
|
+
headers?: HeadersEntry[];
|
|
477
|
+
}
|
|
478
|
+
interface HeadersEntry {
|
|
479
|
+
key?: string;
|
|
480
|
+
value?: string;
|
|
481
|
+
}
|
|
482
|
+
interface RenderDocumentByIdRequest {
|
|
483
|
+
/**
|
|
484
|
+
* Document ID.
|
|
485
|
+
* @format GUID
|
|
486
|
+
*/
|
|
487
|
+
documentId?: string | null;
|
|
488
|
+
/** Output format, defaults to PDF. */
|
|
489
|
+
outputFormat?: RenderFormatWithLiterals;
|
|
490
|
+
}
|
|
491
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
492
|
+
createdEvent?: EntityCreatedEvent;
|
|
493
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
494
|
+
deletedEvent?: EntityDeletedEvent;
|
|
495
|
+
actionEvent?: ActionEvent;
|
|
496
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
497
|
+
id?: string;
|
|
498
|
+
/**
|
|
499
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
500
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
501
|
+
*/
|
|
502
|
+
entityFqdn?: string;
|
|
503
|
+
/**
|
|
504
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
505
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
506
|
+
*/
|
|
507
|
+
slug?: string;
|
|
508
|
+
/** ID of the entity associated with the event. */
|
|
509
|
+
entityId?: string;
|
|
510
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
511
|
+
eventTime?: Date | null;
|
|
512
|
+
/**
|
|
513
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
514
|
+
* (for example, GDPR).
|
|
515
|
+
*/
|
|
516
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
517
|
+
/** If present, indicates the action that triggered the event. */
|
|
518
|
+
originatedFrom?: string | null;
|
|
519
|
+
/**
|
|
520
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
521
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
522
|
+
*/
|
|
523
|
+
entityEventSequence?: string | null;
|
|
524
|
+
}
|
|
525
|
+
/** @oneof */
|
|
526
|
+
interface DomainEventBodyOneOf {
|
|
527
|
+
createdEvent?: EntityCreatedEvent;
|
|
528
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
529
|
+
deletedEvent?: EntityDeletedEvent;
|
|
530
|
+
actionEvent?: ActionEvent;
|
|
531
|
+
}
|
|
532
|
+
interface EntityCreatedEvent {
|
|
533
|
+
entityAsJson?: string;
|
|
534
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
535
|
+
restoreInfo?: RestoreInfo;
|
|
536
|
+
}
|
|
537
|
+
interface RestoreInfo {
|
|
538
|
+
deletedDate?: Date | null;
|
|
539
|
+
}
|
|
540
|
+
interface EntityUpdatedEvent {
|
|
541
|
+
/**
|
|
542
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
543
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
544
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
545
|
+
*/
|
|
546
|
+
currentEntityAsJson?: string;
|
|
547
|
+
}
|
|
548
|
+
interface EntityDeletedEvent {
|
|
549
|
+
/** Entity that was deleted. */
|
|
550
|
+
deletedEntityAsJson?: string | null;
|
|
551
|
+
}
|
|
552
|
+
interface ActionEvent {
|
|
553
|
+
bodyAsJson?: string;
|
|
554
|
+
}
|
|
555
|
+
interface Empty {
|
|
556
|
+
}
|
|
557
|
+
interface GetRendererInfoRequest {
|
|
558
|
+
}
|
|
559
|
+
interface GetRendererInfoResponse {
|
|
560
|
+
/** Renderer info */
|
|
561
|
+
info?: Record<string, string>;
|
|
562
|
+
}
|
|
563
|
+
interface GetCachedHtmlRequest {
|
|
564
|
+
/**
|
|
565
|
+
* Html Access Key.
|
|
566
|
+
* @maxLength 100
|
|
567
|
+
*/
|
|
568
|
+
htmlAccessKey?: string;
|
|
569
|
+
/**
|
|
570
|
+
* Meta Site Id.
|
|
571
|
+
* @format GUID
|
|
572
|
+
*/
|
|
573
|
+
metaSiteId?: string | null;
|
|
574
|
+
}
|
|
575
|
+
interface GetDownloadPageRequest {
|
|
576
|
+
/** @maxLength 1000 */
|
|
577
|
+
file: string | null;
|
|
578
|
+
}
|
|
579
|
+
interface RedirectToDocumentRequest {
|
|
580
|
+
/** @maxLength 1000 */
|
|
581
|
+
file: string | null;
|
|
582
|
+
}
|
|
583
|
+
interface DocumentRenderDelayed {
|
|
584
|
+
/** Document that is being rendered. */
|
|
585
|
+
document?: Document;
|
|
586
|
+
}
|
|
587
|
+
interface CreateDocumentRequest {
|
|
588
|
+
/** Document to be created */
|
|
589
|
+
document?: Document;
|
|
590
|
+
}
|
|
591
|
+
interface CreateDocumentResponse {
|
|
592
|
+
/** The created Document */
|
|
593
|
+
document?: Document;
|
|
594
|
+
}
|
|
595
|
+
interface GetDocumentRequest {
|
|
596
|
+
/**
|
|
597
|
+
* ID of the Document to retrieve
|
|
598
|
+
* @format GUID
|
|
599
|
+
*/
|
|
600
|
+
documentId: string;
|
|
601
|
+
/** @maxSize 1 */
|
|
602
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
603
|
+
}
|
|
604
|
+
declare enum RequestedFields {
|
|
605
|
+
/** Include `documentContent` in the response. */
|
|
606
|
+
DOCUMENT_CONTENT = "DOCUMENT_CONTENT"
|
|
607
|
+
}
|
|
608
|
+
/** @enumType */
|
|
609
|
+
type RequestedFieldsWithLiterals = RequestedFields | 'DOCUMENT_CONTENT';
|
|
610
|
+
interface GetDocumentResponse {
|
|
611
|
+
/** The retrieved Document */
|
|
612
|
+
document?: Document;
|
|
613
|
+
}
|
|
614
|
+
interface DeleteDocumentRequest {
|
|
615
|
+
/**
|
|
616
|
+
* ID of the Document to delete
|
|
617
|
+
* @format GUID
|
|
618
|
+
*/
|
|
619
|
+
documentId: string;
|
|
620
|
+
}
|
|
621
|
+
interface DeleteDocumentResponse {
|
|
622
|
+
/** Deleted document. */
|
|
623
|
+
document?: Document;
|
|
624
|
+
}
|
|
625
|
+
interface DeleteDocumentByExternalIdRequest {
|
|
626
|
+
/**
|
|
627
|
+
* External ID of the Document to delete
|
|
628
|
+
* @minLength 1
|
|
629
|
+
* @maxLength 100
|
|
630
|
+
*/
|
|
631
|
+
externalId?: string;
|
|
632
|
+
}
|
|
633
|
+
interface DeleteDocumentByExternalIdResponse {
|
|
634
|
+
/** Deleted document. */
|
|
635
|
+
document?: Document;
|
|
636
|
+
}
|
|
637
|
+
interface QueryDocumentRequest {
|
|
638
|
+
/** WQL expression */
|
|
639
|
+
query: QueryV2;
|
|
640
|
+
/** @maxSize 1 */
|
|
641
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
642
|
+
}
|
|
643
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
644
|
+
/** Paging options to limit and offset the number of items. */
|
|
645
|
+
paging?: Paging;
|
|
646
|
+
/** 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`. */
|
|
647
|
+
cursorPaging?: CursorPaging;
|
|
648
|
+
/**
|
|
649
|
+
* Filter object.
|
|
650
|
+
*
|
|
651
|
+
* Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
652
|
+
*/
|
|
653
|
+
filter?: Record<string, any> | null;
|
|
654
|
+
/**
|
|
655
|
+
* Sort object.
|
|
656
|
+
*
|
|
657
|
+
* Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
658
|
+
*/
|
|
659
|
+
sort?: Sorting[];
|
|
660
|
+
/** 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. */
|
|
661
|
+
fields?: string[];
|
|
662
|
+
/** 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. */
|
|
663
|
+
fieldsets?: string[];
|
|
664
|
+
}
|
|
665
|
+
/** @oneof */
|
|
666
|
+
interface QueryV2PagingMethodOneOf {
|
|
667
|
+
/** Paging options to limit and offset the number of items. */
|
|
668
|
+
paging?: Paging;
|
|
669
|
+
/** 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`. */
|
|
670
|
+
cursorPaging?: CursorPaging;
|
|
671
|
+
}
|
|
672
|
+
interface Sorting {
|
|
673
|
+
/**
|
|
674
|
+
* Name of the field to sort by.
|
|
675
|
+
* @maxLength 512
|
|
676
|
+
*/
|
|
677
|
+
fieldName?: string;
|
|
678
|
+
/** Sort order. */
|
|
679
|
+
order?: SortOrderWithLiterals;
|
|
680
|
+
}
|
|
681
|
+
declare enum SortOrder {
|
|
682
|
+
ASC = "ASC",
|
|
683
|
+
DESC = "DESC"
|
|
684
|
+
}
|
|
685
|
+
/** @enumType */
|
|
686
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
687
|
+
interface Paging {
|
|
688
|
+
/** Number of items to load. */
|
|
689
|
+
limit?: number | null;
|
|
690
|
+
/** Number of items to skip in the current sort order. */
|
|
691
|
+
offset?: number | null;
|
|
692
|
+
}
|
|
693
|
+
interface CursorPaging {
|
|
694
|
+
/**
|
|
695
|
+
* Maximum number of items to return in the results.
|
|
696
|
+
* @max 100
|
|
697
|
+
*/
|
|
698
|
+
limit?: number | null;
|
|
699
|
+
/**
|
|
700
|
+
* Pointer to the next or previous page in the list of results.
|
|
701
|
+
*
|
|
702
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
703
|
+
* Not relevant for the first request.
|
|
704
|
+
* @maxLength 16000
|
|
705
|
+
*/
|
|
706
|
+
cursor?: string | null;
|
|
707
|
+
}
|
|
708
|
+
interface QueryDocumentResponse {
|
|
709
|
+
/** The retrieved Documents */
|
|
710
|
+
documents?: Document[];
|
|
711
|
+
/** Query results' metadata */
|
|
712
|
+
metadata?: PagingMetadataV2;
|
|
713
|
+
}
|
|
714
|
+
interface PagingMetadataV2 {
|
|
715
|
+
/** Number of items returned in the response. */
|
|
716
|
+
count?: number | null;
|
|
717
|
+
/** Offset that was requested. */
|
|
718
|
+
offset?: number | null;
|
|
719
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
720
|
+
total?: number | null;
|
|
721
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
722
|
+
tooManyToCount?: boolean | null;
|
|
723
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
724
|
+
cursors?: Cursors;
|
|
725
|
+
}
|
|
726
|
+
interface Cursors {
|
|
727
|
+
/**
|
|
728
|
+
* Cursor string pointing to the next page in the list of results.
|
|
729
|
+
* @maxLength 16000
|
|
730
|
+
*/
|
|
731
|
+
next?: string | null;
|
|
732
|
+
/**
|
|
733
|
+
* Cursor pointing to the previous page in the list of results.
|
|
734
|
+
* @maxLength 16000
|
|
735
|
+
*/
|
|
736
|
+
prev?: string | null;
|
|
737
|
+
}
|
|
738
|
+
interface UpdateDocumentRequest {
|
|
739
|
+
/**
|
|
740
|
+
* Document ID.
|
|
741
|
+
* @format GUID
|
|
742
|
+
* @readonly
|
|
743
|
+
*/
|
|
744
|
+
id: string | null;
|
|
745
|
+
/** Document render status. */
|
|
746
|
+
renderStatus?: RenderStatusWithLiterals;
|
|
747
|
+
/** Rendered document file. */
|
|
748
|
+
file?: DocumentFile;
|
|
749
|
+
/** Rendered document source HTML file. */
|
|
750
|
+
sourceFile?: DocumentFile;
|
|
751
|
+
}
|
|
752
|
+
interface DocumentFile {
|
|
753
|
+
/** File ID. */
|
|
754
|
+
fileId?: string | null;
|
|
755
|
+
/** File URL. Defined only for public documents. */
|
|
756
|
+
staticUrl?: string | null;
|
|
757
|
+
/** File path. */
|
|
758
|
+
filePath?: string | null;
|
|
759
|
+
/** Size in bytes. */
|
|
760
|
+
sizeInBytes?: number | null;
|
|
761
|
+
}
|
|
762
|
+
interface UpdateDocumentResponse {
|
|
763
|
+
/** The created Document */
|
|
764
|
+
document?: Document;
|
|
765
|
+
}
|
|
766
|
+
interface DocumentRendered {
|
|
767
|
+
/** Rendered document */
|
|
768
|
+
document?: Document;
|
|
769
|
+
}
|
|
770
|
+
interface DocumentRenderFailed {
|
|
771
|
+
/** Document that failed to render */
|
|
772
|
+
document?: Document;
|
|
773
|
+
}
|
|
774
|
+
interface DownloadDocumentRequest {
|
|
775
|
+
/**
|
|
776
|
+
* ID of the Document to retrieve
|
|
777
|
+
* @format GUID
|
|
778
|
+
*/
|
|
779
|
+
documentId: string;
|
|
780
|
+
/**
|
|
781
|
+
* URL expiration time. Only relevant for private documents.
|
|
782
|
+
* @min 600
|
|
783
|
+
* @max 86400
|
|
784
|
+
*/
|
|
785
|
+
urlExpirationInSeconds?: number | null;
|
|
786
|
+
/**
|
|
787
|
+
* Whether the link downloads the file or opens the file in the browser.
|
|
788
|
+
* Default: `ATTACHMENT`
|
|
789
|
+
*/
|
|
790
|
+
contentDisposition?: ContentDispositionWithLiterals;
|
|
791
|
+
}
|
|
792
|
+
declare enum ContentDisposition {
|
|
793
|
+
/** The link downloads the file. */
|
|
794
|
+
ATTACHMENT = "ATTACHMENT",
|
|
795
|
+
/** The link opens the file in the browser. */
|
|
796
|
+
INLINE = "INLINE"
|
|
797
|
+
}
|
|
798
|
+
/** @enumType */
|
|
799
|
+
type ContentDispositionWithLiterals = ContentDisposition | 'ATTACHMENT' | 'INLINE';
|
|
800
|
+
interface DownloadDocumentResponse {
|
|
801
|
+
/** Download URL. */
|
|
802
|
+
downloadUrl?: string;
|
|
803
|
+
/** URL expiration timestamp. Not provided for public documents because their links do not expire. */
|
|
804
|
+
expirationDate?: Date | null;
|
|
805
|
+
}
|
|
806
|
+
interface GetDownloadUrlRequest extends GetDownloadUrlRequestDocumentOneOf {
|
|
807
|
+
/**
|
|
808
|
+
* ID of the Document to retrieve
|
|
809
|
+
* @format GUID
|
|
810
|
+
*/
|
|
811
|
+
documentId?: string | null;
|
|
812
|
+
/**
|
|
813
|
+
* ID of the Document to retrieve
|
|
814
|
+
* @minLength 1
|
|
815
|
+
* @maxLength 100
|
|
816
|
+
*/
|
|
817
|
+
externalId?: string | null;
|
|
818
|
+
/**
|
|
819
|
+
* Signed file token
|
|
820
|
+
* @minLength 1
|
|
821
|
+
* @maxLength 500
|
|
822
|
+
*/
|
|
823
|
+
fileToken?: string | null;
|
|
824
|
+
/**
|
|
825
|
+
* URL expiration time. Only relevant for private documents.
|
|
826
|
+
* @min 600
|
|
827
|
+
* @max 86400
|
|
828
|
+
*/
|
|
829
|
+
urlExpirationInSeconds?: number | null;
|
|
830
|
+
/** @maxLength 100 */
|
|
831
|
+
downloadButtonText?: string | null;
|
|
832
|
+
/**
|
|
833
|
+
* Whether the link downloads the file or opens the file in the browser.
|
|
834
|
+
* Default: `ATTACHMENT`
|
|
835
|
+
*/
|
|
836
|
+
contentDisposition?: ContentDispositionWithLiterals;
|
|
837
|
+
}
|
|
838
|
+
/** @oneof */
|
|
839
|
+
interface GetDownloadUrlRequestDocumentOneOf {
|
|
840
|
+
/**
|
|
841
|
+
* ID of the Document to retrieve
|
|
842
|
+
* @format GUID
|
|
843
|
+
*/
|
|
844
|
+
documentId?: string | null;
|
|
845
|
+
/**
|
|
846
|
+
* ID of the Document to retrieve
|
|
847
|
+
* @minLength 1
|
|
848
|
+
* @maxLength 100
|
|
849
|
+
*/
|
|
850
|
+
externalId?: string | null;
|
|
851
|
+
/**
|
|
852
|
+
* Signed file token
|
|
853
|
+
* @minLength 1
|
|
854
|
+
* @maxLength 500
|
|
855
|
+
*/
|
|
856
|
+
fileToken?: string | null;
|
|
857
|
+
}
|
|
858
|
+
interface GetDownloadUrlResponse {
|
|
859
|
+
/** Download URL. */
|
|
860
|
+
downloadUrl?: string | null;
|
|
861
|
+
/** URL expiration timestamp. Not provided for public documents because their links do not expire. */
|
|
862
|
+
expirationDate?: Date | null;
|
|
863
|
+
/**
|
|
864
|
+
* Document ID.
|
|
865
|
+
* @format GUID
|
|
866
|
+
*/
|
|
867
|
+
documentId?: string | null;
|
|
868
|
+
/** Document render status. */
|
|
869
|
+
renderStatus?: RenderStatusWithLiterals;
|
|
870
|
+
/** Download URL. */
|
|
871
|
+
downloadPageUrl?: string | null;
|
|
872
|
+
/**
|
|
873
|
+
* Client defined content checksum. Can be used for content comparison.
|
|
874
|
+
* @minLength 1
|
|
875
|
+
* @maxLength 64
|
|
876
|
+
*/
|
|
877
|
+
contentChecksum?: string | null;
|
|
878
|
+
}
|
|
879
|
+
interface DownloadDocumentSourceRequest {
|
|
880
|
+
/**
|
|
881
|
+
* ID of the Document to retrieve
|
|
882
|
+
* @format GUID
|
|
883
|
+
*/
|
|
884
|
+
documentId: string;
|
|
885
|
+
/**
|
|
886
|
+
* Whether the link downloads the file or opens the file in the browser.
|
|
887
|
+
* Default: `ATTACHMENT`
|
|
888
|
+
*/
|
|
889
|
+
contentDisposition?: ContentDispositionWithLiterals;
|
|
890
|
+
}
|
|
891
|
+
interface DownloadDocumentSourceResponse {
|
|
892
|
+
/** Download URL. Expires after 10 minutes. */
|
|
893
|
+
downloadUrl?: string;
|
|
894
|
+
}
|
|
895
|
+
interface MessageEnvelope {
|
|
896
|
+
/**
|
|
897
|
+
* App instance ID.
|
|
898
|
+
* @format GUID
|
|
899
|
+
*/
|
|
900
|
+
instanceId?: string | null;
|
|
901
|
+
/**
|
|
902
|
+
* Event type.
|
|
903
|
+
* @maxLength 150
|
|
904
|
+
*/
|
|
905
|
+
eventType?: string;
|
|
906
|
+
/** The identification type and identity data. */
|
|
907
|
+
identity?: IdentificationData;
|
|
908
|
+
/** Stringify payload. */
|
|
909
|
+
data?: string;
|
|
910
|
+
/** Details related to the account */
|
|
911
|
+
accountInfo?: AccountInfo;
|
|
912
|
+
}
|
|
913
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
914
|
+
/**
|
|
915
|
+
* ID of a site visitor that has not logged in to the site.
|
|
916
|
+
* @format GUID
|
|
917
|
+
*/
|
|
918
|
+
anonymousVisitorId?: string;
|
|
919
|
+
/**
|
|
920
|
+
* ID of a site visitor that has logged in to the site.
|
|
921
|
+
* @format GUID
|
|
922
|
+
*/
|
|
923
|
+
memberId?: string;
|
|
924
|
+
/**
|
|
925
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
926
|
+
* @format GUID
|
|
927
|
+
*/
|
|
928
|
+
wixUserId?: string;
|
|
929
|
+
/**
|
|
930
|
+
* ID of an app.
|
|
931
|
+
* @format GUID
|
|
932
|
+
*/
|
|
933
|
+
appId?: string;
|
|
934
|
+
/** @readonly */
|
|
935
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
936
|
+
}
|
|
937
|
+
/** @oneof */
|
|
938
|
+
interface IdentificationDataIdOneOf {
|
|
939
|
+
/**
|
|
940
|
+
* ID of a site visitor that has not logged in to the site.
|
|
941
|
+
* @format GUID
|
|
942
|
+
*/
|
|
943
|
+
anonymousVisitorId?: string;
|
|
944
|
+
/**
|
|
945
|
+
* ID of a site visitor that has logged in to the site.
|
|
946
|
+
* @format GUID
|
|
947
|
+
*/
|
|
948
|
+
memberId?: string;
|
|
949
|
+
/**
|
|
950
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
951
|
+
* @format GUID
|
|
952
|
+
*/
|
|
953
|
+
wixUserId?: string;
|
|
954
|
+
/**
|
|
955
|
+
* ID of an app.
|
|
956
|
+
* @format GUID
|
|
957
|
+
*/
|
|
958
|
+
appId?: string;
|
|
959
|
+
}
|
|
960
|
+
declare enum WebhookIdentityType {
|
|
961
|
+
UNKNOWN = "UNKNOWN",
|
|
962
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
963
|
+
MEMBER = "MEMBER",
|
|
964
|
+
WIX_USER = "WIX_USER",
|
|
965
|
+
APP = "APP"
|
|
966
|
+
}
|
|
967
|
+
/** @enumType */
|
|
968
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
969
|
+
interface AccountInfo {
|
|
970
|
+
/**
|
|
971
|
+
* ID of the Wix account associated with the event.
|
|
972
|
+
* @format GUID
|
|
973
|
+
*/
|
|
974
|
+
accountId?: string | null;
|
|
975
|
+
/**
|
|
976
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
977
|
+
* @format GUID
|
|
978
|
+
*/
|
|
979
|
+
parentAccountId?: string | null;
|
|
980
|
+
/**
|
|
981
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
982
|
+
* @format GUID
|
|
983
|
+
*/
|
|
984
|
+
siteId?: string | null;
|
|
985
|
+
}
|
|
986
|
+
/** @docsIgnore */
|
|
987
|
+
type DownloadDocumentApplicationErrors = {
|
|
988
|
+
code?: 'DOCUMENT_NOT_READY';
|
|
989
|
+
description?: string;
|
|
990
|
+
data?: Record<string, any>;
|
|
991
|
+
};
|
|
992
|
+
/** @docsIgnore */
|
|
993
|
+
type DownloadDocumentSourceApplicationErrors = {
|
|
994
|
+
code?: 'DOCUMENT_NOT_READY';
|
|
995
|
+
description?: string;
|
|
996
|
+
data?: Record<string, any>;
|
|
997
|
+
};
|
|
998
|
+
|
|
999
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
1000
|
+
getUrl: (context: any) => string;
|
|
1001
|
+
httpMethod: K;
|
|
1002
|
+
path: string;
|
|
1003
|
+
pathParams: M;
|
|
1004
|
+
__requestType: T;
|
|
1005
|
+
__originalRequestType: S;
|
|
1006
|
+
__responseType: Q;
|
|
1007
|
+
__originalResponseType: R;
|
|
1008
|
+
};
|
|
1009
|
+
declare function getDownloadPage(): __PublicMethodMetaInfo<'GET', {}, GetDownloadPageRequest$1, GetDownloadPageRequest, RawHttpResponse$1, RawHttpResponse>;
|
|
1010
|
+
declare function redirectToDocument(): __PublicMethodMetaInfo<'GET', {}, RedirectToDocumentRequest$1, RedirectToDocumentRequest, RawHttpResponse$1, RawHttpResponse>;
|
|
1011
|
+
declare function createDocument(): __PublicMethodMetaInfo<'POST', {}, CreateDocumentRequest$1, CreateDocumentRequest, CreateDocumentResponse$1, CreateDocumentResponse>;
|
|
1012
|
+
declare function getDocument(): __PublicMethodMetaInfo<'GET', {
|
|
1013
|
+
documentId: string;
|
|
1014
|
+
}, GetDocumentRequest$1, GetDocumentRequest, GetDocumentResponse$1, GetDocumentResponse>;
|
|
1015
|
+
declare function deleteDocument(): __PublicMethodMetaInfo<'DELETE', {
|
|
1016
|
+
documentId: string;
|
|
1017
|
+
}, DeleteDocumentRequest$1, DeleteDocumentRequest, DeleteDocumentResponse$1, DeleteDocumentResponse>;
|
|
1018
|
+
declare function queryDocument(): __PublicMethodMetaInfo<'POST', {}, QueryDocumentRequest$1, QueryDocumentRequest, QueryDocumentResponse$1, QueryDocumentResponse>;
|
|
1019
|
+
declare function updateDocument(): __PublicMethodMetaInfo<'PATCH', {
|
|
1020
|
+
id: string;
|
|
1021
|
+
}, UpdateDocumentRequest$1, UpdateDocumentRequest, UpdateDocumentResponse$1, UpdateDocumentResponse>;
|
|
1022
|
+
declare function downloadDocument(): __PublicMethodMetaInfo<'GET', {
|
|
1023
|
+
documentId: string;
|
|
1024
|
+
}, DownloadDocumentRequest$1, DownloadDocumentRequest, DownloadDocumentResponse$1, DownloadDocumentResponse>;
|
|
1025
|
+
declare function getDownloadUrl(): __PublicMethodMetaInfo<'GET', {}, GetDownloadUrlRequest$1, GetDownloadUrlRequest, GetDownloadUrlResponse$1, GetDownloadUrlResponse>;
|
|
1026
|
+
declare function downloadDocumentSource(): __PublicMethodMetaInfo<'GET', {
|
|
1027
|
+
documentId: string;
|
|
1028
|
+
}, DownloadDocumentSourceRequest$1, DownloadDocumentSourceRequest, DownloadDocumentSourceResponse$1, DownloadDocumentSourceResponse>;
|
|
1029
|
+
|
|
1030
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type BackgroundSetting as BackgroundSettingOriginal, ContentDisposition as ContentDispositionOriginal, type ContentDispositionWithLiterals as ContentDispositionWithLiteralsOriginal, type CreateDocumentRequest as CreateDocumentRequestOriginal, type CreateDocumentResponse as CreateDocumentResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DebugOptions as DebugOptionsOriginal, type DeleteDocumentByExternalIdRequest as DeleteDocumentByExternalIdRequestOriginal, type DeleteDocumentByExternalIdResponse as DeleteDocumentByExternalIdResponseOriginal, type DeleteDocumentRequest as DeleteDocumentRequestOriginal, type DeleteDocumentResponse as DeleteDocumentResponseOriginal, type DocumentContent as DocumentContentOriginal, type DocumentFile as DocumentFileOriginal, type Document as DocumentOriginal, type DocumentRenderDelayed as DocumentRenderDelayedOriginal, type DocumentRenderFailed as DocumentRenderFailedOriginal, type DocumentRendered as DocumentRenderedOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DownloadDocumentApplicationErrors as DownloadDocumentApplicationErrorsOriginal, type DownloadDocumentRequest as DownloadDocumentRequestOriginal, type DownloadDocumentResponse as DownloadDocumentResponseOriginal, type DownloadDocumentSourceApplicationErrors as DownloadDocumentSourceApplicationErrorsOriginal, type DownloadDocumentSourceRequest as DownloadDocumentSourceRequestOriginal, type DownloadDocumentSourceResponse as DownloadDocumentSourceResponseOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FocalPoint as FocalPointOriginal, Format as FormatOriginal, type FormatWithLiterals as FormatWithLiteralsOriginal, type GetCachedHtmlRequest as GetCachedHtmlRequestOriginal, type GetDocumentRequest as GetDocumentRequestOriginal, type GetDocumentResponse as GetDocumentResponseOriginal, type GetDownloadPageRequest as GetDownloadPageRequestOriginal, type GetDownloadUrlRequestDocumentOneOf as GetDownloadUrlRequestDocumentOneOfOriginal, type GetDownloadUrlRequest as GetDownloadUrlRequestOriginal, type GetDownloadUrlResponse as GetDownloadUrlResponseOriginal, type GetRendererInfoRequest as GetRendererInfoRequestOriginal, type GetRendererInfoResponse as GetRendererInfoResponseOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type ImageSetting as ImageSettingOriginal, type MessageEnvelope as MessageEnvelopeOriginal, PageOverflow as PageOverflowOriginal, type PageOverflowWithLiterals as PageOverflowWithLiteralsOriginal, type PageSettings as PageSettingsOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, PaperSize as PaperSizeOriginal, type PaperSizeWithLiterals as PaperSizeWithLiteralsOriginal, type QueryDocumentRequest as QueryDocumentRequestOriginal, type QueryDocumentResponse as QueryDocumentResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RawHttpResponse as RawHttpResponseOriginal, type RedirectToDocumentRequest as RedirectToDocumentRequestOriginal, type RenderDelayedEventConfig as RenderDelayedEventConfigOriginal, type RenderDocumentByIdRequest as RenderDocumentByIdRequestOriginal, type RenderDocumentRequest as RenderDocumentRequestOriginal, RenderFormat as RenderFormatOriginal, type RenderFormatWithLiterals as RenderFormatWithLiteralsOriginal, RenderStatus as RenderStatusOriginal, type RenderStatusWithLiterals as RenderStatusWithLiteralsOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, ResizeOption as ResizeOptionOriginal, type ResizeOptionWithLiterals as ResizeOptionWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type SelectSetting as SelectSettingOriginal, type SettingsGroup as SettingsGroupOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TemplateSettings as TemplateSettingsOriginal, type TemplateSettingsOverride as TemplateSettingsOverrideOriginal, type TextContent as TextContentOriginal, type TextSetting as TextSettingOriginal, type UpdateDocumentRequest as UpdateDocumentRequestOriginal, type UpdateDocumentResponse as UpdateDocumentResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WixMpClientVersion as WixMpClientVersionOriginal, type WixMpClientVersionWithLiterals as WixMpClientVersionWithLiteralsOriginal, type __PublicMethodMetaInfo, createDocument, deleteDocument, downloadDocument, downloadDocumentSource, getDocument, getDownloadPage, getDownloadUrl, queryDocument, redirectToDocument, updateDocument };
|