@wix/auto_sdk_papyrus_documents 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +17 -17
- package/build/cjs/index.js +138 -138
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +524 -524
- package/build/cjs/index.typings.js +122 -122
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +529 -529
- package/build/cjs/meta.js +112 -112
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +22 -22
- package/build/cjs/schemas.js +26 -26
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +17 -17
- package/build/es/index.mjs +138 -138
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +524 -524
- package/build/es/index.typings.mjs +122 -122
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +529 -529
- package/build/es/meta.mjs +112 -112
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +22 -22
- package/build/es/schemas.mjs +26 -26
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +17 -17
- package/build/internal/cjs/index.typings.d.ts +550 -550
- package/build/internal/cjs/meta.d.ts +560 -560
- package/build/internal/cjs/schemas.d.ts +22 -22
- package/build/internal/es/index.d.mts +17 -17
- package/build/internal/es/index.typings.d.mts +550 -550
- package/build/internal/es/meta.d.mts +560 -560
- package/build/internal/es/schemas.d.mts +22 -22
- package/package.json +2 -2
|
@@ -235,328 +235,235 @@ interface DebugOptions {
|
|
|
235
235
|
*/
|
|
236
236
|
staticsVersionOverride?: string | null;
|
|
237
237
|
}
|
|
238
|
-
interface
|
|
239
|
-
/**
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
|
|
245
|
-
}
|
|
246
|
-
interface CreateDocumentResponse {
|
|
247
|
-
/** The created Document */
|
|
248
|
-
document?: Document;
|
|
249
|
-
}
|
|
250
|
-
interface GetDocumentRequest {
|
|
238
|
+
interface RenderDocumentRequest {
|
|
239
|
+
/** Template settings. */
|
|
240
|
+
templateSettings?: TemplateSettings;
|
|
241
|
+
/** Document content. */
|
|
242
|
+
content?: DocumentContent;
|
|
243
|
+
/** Output format, defaults to PDF. */
|
|
244
|
+
outputFormat?: RenderFormatWithLiterals;
|
|
251
245
|
/**
|
|
252
|
-
*
|
|
253
|
-
* @
|
|
246
|
+
* Overrides papyrusTemplatesStaticsUrl: "//static.parastorage.com/services/papyrus-templates-statics/${version_override}/"
|
|
247
|
+
* @maxLength 100
|
|
254
248
|
*/
|
|
255
|
-
|
|
256
|
-
/** @maxSize 1 */
|
|
257
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
258
|
-
}
|
|
259
|
-
declare enum RequestedFields {
|
|
260
|
-
/** Include `documentContent` in the response. */
|
|
261
|
-
DOCUMENT_CONTENT = "DOCUMENT_CONTENT"
|
|
262
|
-
}
|
|
263
|
-
/** @enumType */
|
|
264
|
-
type RequestedFieldsWithLiterals = RequestedFields | 'DOCUMENT_CONTENT';
|
|
265
|
-
interface GetDocumentResponse {
|
|
266
|
-
/** The retrieved Document */
|
|
267
|
-
document?: Document;
|
|
268
|
-
}
|
|
269
|
-
interface DeleteDocumentRequest {
|
|
249
|
+
versionOverride?: string | null;
|
|
270
250
|
/**
|
|
271
|
-
*
|
|
272
|
-
* @
|
|
251
|
+
* Overrides static versions for the statics config.
|
|
252
|
+
* @maxSize 10
|
|
273
253
|
*/
|
|
274
|
-
|
|
275
|
-
}
|
|
276
|
-
interface DeleteDocumentResponse {
|
|
277
|
-
/** Deleted document. */
|
|
278
|
-
document?: Document;
|
|
254
|
+
staticOverrides?: Record<string, string>;
|
|
279
255
|
}
|
|
280
|
-
interface
|
|
256
|
+
interface TemplateSettings {
|
|
281
257
|
/**
|
|
282
|
-
*
|
|
283
|
-
* @
|
|
284
|
-
* @
|
|
258
|
+
* Auto generated ID.
|
|
259
|
+
* @format GUID
|
|
260
|
+
* @readonly
|
|
285
261
|
*/
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
interface DeleteDocumentByExternalIdResponse {
|
|
289
|
-
/** Deleted document. */
|
|
290
|
-
document?: Document;
|
|
291
|
-
}
|
|
292
|
-
interface QueryDocumentRequest {
|
|
293
|
-
/** WQL expression */
|
|
294
|
-
query: QueryV2;
|
|
295
|
-
/** @maxSize 1 */
|
|
296
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
297
|
-
}
|
|
298
|
-
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
299
|
-
/** Paging options to limit and offset the number of items. */
|
|
300
|
-
paging?: Paging;
|
|
301
|
-
/** 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`. */
|
|
302
|
-
cursorPaging?: CursorPaging;
|
|
262
|
+
_id?: string | null;
|
|
303
263
|
/**
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
264
|
+
* Wix app definition ID.
|
|
265
|
+
* @minLength 1
|
|
266
|
+
* @maxLength 20
|
|
307
267
|
*/
|
|
308
|
-
|
|
268
|
+
appSlug?: string | null;
|
|
309
269
|
/**
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
270
|
+
* The type of the template.
|
|
271
|
+
* @minLength 1
|
|
272
|
+
* @maxLength 20
|
|
313
273
|
*/
|
|
314
|
-
|
|
315
|
-
/** 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. */
|
|
316
|
-
fields?: string[];
|
|
317
|
-
/** 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. */
|
|
318
|
-
fieldsets?: string[];
|
|
319
|
-
}
|
|
320
|
-
/** @oneof */
|
|
321
|
-
interface QueryV2PagingMethodOneOf {
|
|
322
|
-
/** Paging options to limit and offset the number of items. */
|
|
323
|
-
paging?: Paging;
|
|
324
|
-
/** 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`. */
|
|
325
|
-
cursorPaging?: CursorPaging;
|
|
326
|
-
}
|
|
327
|
-
interface Sorting {
|
|
274
|
+
templateType?: string | null;
|
|
328
275
|
/**
|
|
329
|
-
*
|
|
330
|
-
* @
|
|
276
|
+
* The id of the template.
|
|
277
|
+
* @minLength 1
|
|
278
|
+
* @maxLength 20
|
|
331
279
|
*/
|
|
332
|
-
|
|
333
|
-
/** Sort order. */
|
|
334
|
-
order?: SortOrderWithLiterals;
|
|
280
|
+
templateId?: string | null;
|
|
335
281
|
/**
|
|
336
|
-
*
|
|
337
|
-
*
|
|
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
|
|
338
286
|
*/
|
|
339
|
-
|
|
340
|
-
}
|
|
341
|
-
declare enum SortOrder {
|
|
342
|
-
ASC = "ASC",
|
|
343
|
-
DESC = "DESC"
|
|
344
|
-
}
|
|
345
|
-
/** @enumType */
|
|
346
|
-
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
347
|
-
interface AddressLocation {
|
|
348
|
-
/** Address latitude. */
|
|
349
|
-
latitude?: number | null;
|
|
350
|
-
/** Address longitude. */
|
|
351
|
-
longitude?: number | null;
|
|
352
|
-
}
|
|
353
|
-
interface Paging {
|
|
354
|
-
/** Number of items to load. */
|
|
355
|
-
limit?: number | null;
|
|
356
|
-
/** Number of items to skip in the current sort order. */
|
|
357
|
-
offset?: number | null;
|
|
358
|
-
}
|
|
359
|
-
interface CursorPaging {
|
|
287
|
+
externalId?: string | null;
|
|
360
288
|
/**
|
|
361
|
-
*
|
|
362
|
-
* @
|
|
289
|
+
* Date settings were created.
|
|
290
|
+
* @readonly
|
|
363
291
|
*/
|
|
364
|
-
|
|
292
|
+
_createdDate?: Date | null;
|
|
365
293
|
/**
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
369
|
-
* Not relevant for the first request.
|
|
370
|
-
* @maxLength 16000
|
|
294
|
+
* Date settings were updated.
|
|
295
|
+
* @readonly
|
|
371
296
|
*/
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
metadata?: PagingMetadataV2;
|
|
379
|
-
}
|
|
380
|
-
interface PagingMetadataV2 {
|
|
381
|
-
/** Number of items returned in the response. */
|
|
382
|
-
count?: number | null;
|
|
383
|
-
/** Offset that was requested. */
|
|
384
|
-
offset?: number | null;
|
|
385
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
386
|
-
total?: number | null;
|
|
387
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
388
|
-
tooManyToCount?: boolean | null;
|
|
389
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
390
|
-
cursors?: Cursors;
|
|
297
|
+
_updatedDate?: Date | null;
|
|
298
|
+
/** @maxSize 10 */
|
|
299
|
+
settingGroups?: SettingsGroup[];
|
|
300
|
+
/** Paper size */
|
|
301
|
+
paperSize?: PaperSizeWithLiterals;
|
|
302
|
+
pageOverflow?: PageOverflowWithLiterals;
|
|
391
303
|
}
|
|
392
|
-
interface
|
|
304
|
+
interface TextSetting {
|
|
393
305
|
/**
|
|
394
|
-
*
|
|
395
|
-
* @maxLength
|
|
306
|
+
* Font family class name
|
|
307
|
+
* @maxLength 20
|
|
396
308
|
*/
|
|
397
|
-
|
|
309
|
+
fontFamily?: string | null;
|
|
398
310
|
/**
|
|
399
|
-
*
|
|
400
|
-
* @
|
|
311
|
+
* Font style class names
|
|
312
|
+
* @maxSize 10
|
|
313
|
+
* @maxLength 20
|
|
401
314
|
*/
|
|
402
|
-
|
|
403
|
-
}
|
|
404
|
-
interface UpdateDocumentRequest {
|
|
315
|
+
fontStyle?: string[];
|
|
405
316
|
/**
|
|
406
|
-
*
|
|
407
|
-
* @
|
|
408
|
-
* @readonly
|
|
317
|
+
* Text alignment class name
|
|
318
|
+
* @maxLength 20
|
|
409
319
|
*/
|
|
410
|
-
|
|
411
|
-
/** Document render status. */
|
|
412
|
-
renderStatus?: RenderStatusWithLiterals;
|
|
413
|
-
/** Rendered document file. */
|
|
414
|
-
file?: DocumentFile;
|
|
415
|
-
/** Rendered document source HTML file. */
|
|
416
|
-
sourceFile?: DocumentFile;
|
|
417
|
-
}
|
|
418
|
-
interface DocumentFile {
|
|
419
|
-
/** File ID. */
|
|
420
|
-
fileId?: string | null;
|
|
421
|
-
/** File URL. Defined only for public documents. */
|
|
422
|
-
staticUrl?: string | null;
|
|
423
|
-
/** File path. */
|
|
424
|
-
filePath?: string | null;
|
|
425
|
-
/** Size in bytes. */
|
|
426
|
-
sizeInBytes?: number | null;
|
|
427
|
-
}
|
|
428
|
-
interface UpdateDocumentResponse {
|
|
429
|
-
/** The created Document */
|
|
430
|
-
document?: Document;
|
|
431
|
-
}
|
|
432
|
-
interface DocumentRendered {
|
|
433
|
-
/** Rendered document */
|
|
434
|
-
document?: Document;
|
|
435
|
-
}
|
|
436
|
-
interface DocumentRenderFailed {
|
|
437
|
-
/** Document that failed to render */
|
|
438
|
-
document?: Document;
|
|
439
|
-
}
|
|
440
|
-
interface DownloadDocumentRequest {
|
|
320
|
+
textAlignment?: string | null;
|
|
441
321
|
/**
|
|
442
|
-
*
|
|
443
|
-
* @
|
|
322
|
+
* Text color hex code
|
|
323
|
+
* @minLength 7
|
|
324
|
+
* @maxLength 7
|
|
444
325
|
*/
|
|
445
|
-
|
|
326
|
+
textColor?: string | null;
|
|
446
327
|
/**
|
|
447
|
-
*
|
|
448
|
-
* @min
|
|
449
|
-
* @max 86400
|
|
328
|
+
* Font size
|
|
329
|
+
* @min 1
|
|
450
330
|
*/
|
|
451
|
-
|
|
331
|
+
fontSize?: number | null;
|
|
332
|
+
/** Text content setting */
|
|
333
|
+
textContent?: TextContent[];
|
|
334
|
+
}
|
|
335
|
+
interface TextContent {
|
|
452
336
|
/**
|
|
453
|
-
*
|
|
454
|
-
*
|
|
337
|
+
* @minLength 3
|
|
338
|
+
* @maxLength 50
|
|
455
339
|
*/
|
|
456
|
-
|
|
340
|
+
_id?: string;
|
|
341
|
+
/** @maxLength 500 */
|
|
342
|
+
value?: string | null;
|
|
343
|
+
visible?: boolean;
|
|
457
344
|
}
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
|
|
345
|
+
interface ImageSetting {
|
|
346
|
+
/** Wix media Image */
|
|
347
|
+
image?: string;
|
|
348
|
+
/** Image resizing mode */
|
|
349
|
+
resize?: ResizeOptionWithLiterals;
|
|
350
|
+
}
|
|
351
|
+
interface FocalPoint {
|
|
352
|
+
/** X-coordinate of the focal point. */
|
|
353
|
+
x?: number;
|
|
354
|
+
/** Y-coordinate of the focal point. */
|
|
355
|
+
y?: number;
|
|
356
|
+
/** crop by height */
|
|
357
|
+
height?: number | null;
|
|
358
|
+
/** crop by width */
|
|
359
|
+
width?: number | null;
|
|
463
360
|
}
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
|
|
469
|
-
/** URL expiration timestamp. Not provided for public documents because their links do not expire. */
|
|
470
|
-
expirationDate?: Date | null;
|
|
361
|
+
declare enum ResizeOption {
|
|
362
|
+
/** Automatically resizes full image to fit image field */
|
|
363
|
+
FIT = "FIT",
|
|
364
|
+
/** Enables user to manually crop image to fit image field */
|
|
365
|
+
CROP = "CROP"
|
|
471
366
|
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
documentId?: string | null;
|
|
367
|
+
/** @enumType */
|
|
368
|
+
type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';
|
|
369
|
+
interface SelectSetting {
|
|
370
|
+
/** Selected value */
|
|
371
|
+
value?: string | null;
|
|
478
372
|
/**
|
|
479
|
-
*
|
|
480
|
-
* @minLength
|
|
481
|
-
* @maxLength
|
|
373
|
+
* Color hex code
|
|
374
|
+
* @minLength 7
|
|
375
|
+
* @maxLength 7
|
|
482
376
|
*/
|
|
483
|
-
|
|
377
|
+
primaryColor?: string | null;
|
|
484
378
|
/**
|
|
485
|
-
*
|
|
486
|
-
* @minLength
|
|
487
|
-
* @maxLength
|
|
379
|
+
* Color hex code
|
|
380
|
+
* @minLength 7
|
|
381
|
+
* @maxLength 7
|
|
488
382
|
*/
|
|
489
|
-
|
|
383
|
+
secondaryColor?: string | null;
|
|
384
|
+
/** Size */
|
|
385
|
+
size?: number | null;
|
|
386
|
+
}
|
|
387
|
+
interface BackgroundSetting {
|
|
490
388
|
/**
|
|
491
|
-
*
|
|
492
|
-
* @
|
|
493
|
-
* @
|
|
389
|
+
* Color of the background hex code
|
|
390
|
+
* @minLength 7
|
|
391
|
+
* @maxLength 9
|
|
494
392
|
*/
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
|
|
393
|
+
color?: string | null;
|
|
394
|
+
/** Wix media Image */
|
|
395
|
+
image?: string;
|
|
396
|
+
}
|
|
397
|
+
interface SettingsGroup {
|
|
498
398
|
/**
|
|
499
|
-
*
|
|
500
|
-
*
|
|
399
|
+
* Id of the control group
|
|
400
|
+
* @minLength 5
|
|
401
|
+
* @maxLength 50
|
|
501
402
|
*/
|
|
502
|
-
|
|
503
|
-
}
|
|
504
|
-
/** @oneof */
|
|
505
|
-
interface GetDownloadUrlRequestDocumentOneOf {
|
|
403
|
+
groupId?: string;
|
|
506
404
|
/**
|
|
507
|
-
*
|
|
508
|
-
* @
|
|
405
|
+
* Display settings.
|
|
406
|
+
* @maxSize 20
|
|
509
407
|
*/
|
|
510
|
-
|
|
408
|
+
display?: Record<string, boolean>;
|
|
511
409
|
/**
|
|
512
|
-
*
|
|
513
|
-
* @
|
|
514
|
-
* @maxLength 100
|
|
410
|
+
* Texts settings.
|
|
411
|
+
* @maxSize 20
|
|
515
412
|
*/
|
|
516
|
-
|
|
413
|
+
texts?: Record<string, TextSetting>;
|
|
517
414
|
/**
|
|
518
|
-
*
|
|
519
|
-
* @
|
|
520
|
-
* @maxLength 500
|
|
415
|
+
* Images settings.
|
|
416
|
+
* @maxSize 10
|
|
521
417
|
*/
|
|
522
|
-
|
|
523
|
-
}
|
|
524
|
-
interface GetDownloadUrlResponse {
|
|
525
|
-
/** Download URL. */
|
|
526
|
-
downloadUrl?: string | null;
|
|
527
|
-
/** URL expiration timestamp. Not provided for public documents because their links do not expire. */
|
|
528
|
-
expirationDate?: Date | null;
|
|
418
|
+
images?: Record<string, ImageSetting>;
|
|
529
419
|
/**
|
|
530
|
-
*
|
|
531
|
-
* @
|
|
420
|
+
* Select option settings.
|
|
421
|
+
* @maxSize 20
|
|
532
422
|
*/
|
|
533
|
-
|
|
534
|
-
/** Document render status. */
|
|
535
|
-
renderStatus?: RenderStatusWithLiterals;
|
|
536
|
-
/** Download URL. */
|
|
537
|
-
downloadPageUrl?: string | null;
|
|
423
|
+
selects?: Record<string, SelectSetting>;
|
|
538
424
|
/**
|
|
539
|
-
*
|
|
540
|
-
* @
|
|
541
|
-
* @maxLength 64
|
|
425
|
+
* Backgrounds settings.
|
|
426
|
+
* @maxSize 20
|
|
542
427
|
*/
|
|
543
|
-
|
|
428
|
+
backgrounds?: Record<string, BackgroundSetting>;
|
|
544
429
|
}
|
|
545
|
-
|
|
430
|
+
declare enum PaperSize {
|
|
431
|
+
A4_PORTRAIT = "A4_PORTRAIT",
|
|
432
|
+
A4_LANDSCAPE = "A4_LANDSCAPE"
|
|
433
|
+
}
|
|
434
|
+
/** @enumType */
|
|
435
|
+
type PaperSizeWithLiterals = PaperSize | 'A4_PORTRAIT' | 'A4_LANDSCAPE';
|
|
436
|
+
declare enum PageOverflow {
|
|
437
|
+
CONTENT_HIDDEN = "CONTENT_HIDDEN",
|
|
438
|
+
CONTENT_BREAK = "CONTENT_BREAK"
|
|
439
|
+
}
|
|
440
|
+
/** @enumType */
|
|
441
|
+
type PageOverflowWithLiterals = PageOverflow | 'CONTENT_HIDDEN' | 'CONTENT_BREAK';
|
|
442
|
+
declare enum RenderFormat {
|
|
443
|
+
/** content-type: application/pdf */
|
|
444
|
+
PDF = "PDF",
|
|
445
|
+
/** content-type: text/html */
|
|
446
|
+
HTML = "HTML"
|
|
447
|
+
}
|
|
448
|
+
/** @enumType */
|
|
449
|
+
type RenderFormatWithLiterals = RenderFormat | 'PDF' | 'HTML';
|
|
450
|
+
interface RawHttpResponse {
|
|
451
|
+
body?: Uint8Array;
|
|
452
|
+
statusCode?: number | null;
|
|
453
|
+
headers?: HeadersEntry[];
|
|
454
|
+
}
|
|
455
|
+
interface HeadersEntry {
|
|
456
|
+
key?: string;
|
|
457
|
+
value?: string;
|
|
458
|
+
}
|
|
459
|
+
interface RenderDocumentByIdRequest {
|
|
546
460
|
/**
|
|
547
|
-
*
|
|
461
|
+
* Document ID.
|
|
548
462
|
* @format GUID
|
|
549
463
|
*/
|
|
550
|
-
documentId
|
|
551
|
-
/**
|
|
552
|
-
|
|
553
|
-
* Default: `ATTACHMENT`
|
|
554
|
-
*/
|
|
555
|
-
contentDisposition?: ContentDispositionWithLiterals;
|
|
556
|
-
}
|
|
557
|
-
interface DownloadDocumentSourceResponse {
|
|
558
|
-
/** Download URL. Expires after 10 minutes. */
|
|
559
|
-
downloadUrl?: string;
|
|
464
|
+
documentId?: string | null;
|
|
465
|
+
/** Output format, defaults to PDF. */
|
|
466
|
+
outputFormat?: RenderFormatWithLiterals;
|
|
560
467
|
}
|
|
561
468
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
562
469
|
createdEvent?: EntityCreatedEvent;
|
|
@@ -622,352 +529,445 @@ interface ActionEvent {
|
|
|
622
529
|
}
|
|
623
530
|
interface Empty {
|
|
624
531
|
}
|
|
625
|
-
interface
|
|
532
|
+
interface GetRendererInfoRequest {
|
|
533
|
+
}
|
|
534
|
+
interface GetRendererInfoResponse {
|
|
535
|
+
/** Renderer info */
|
|
536
|
+
info?: Record<string, string>;
|
|
537
|
+
}
|
|
538
|
+
interface GetCachedHtmlRequest {
|
|
626
539
|
/**
|
|
627
|
-
*
|
|
628
|
-
* @
|
|
540
|
+
* Html Access Key.
|
|
541
|
+
* @maxLength 100
|
|
629
542
|
*/
|
|
630
|
-
|
|
543
|
+
htmlAccessKey?: string;
|
|
631
544
|
/**
|
|
632
|
-
*
|
|
633
|
-
* @
|
|
545
|
+
* Meta Site Id.
|
|
546
|
+
* @format GUID
|
|
634
547
|
*/
|
|
635
|
-
|
|
636
|
-
/** The identification type and identity data. */
|
|
637
|
-
identity?: IdentificationData;
|
|
638
|
-
/** Stringify payload. */
|
|
639
|
-
data?: string;
|
|
640
|
-
/** Details related to the account */
|
|
641
|
-
accountInfo?: AccountInfo;
|
|
548
|
+
metaSiteId?: string | null;
|
|
642
549
|
}
|
|
643
|
-
interface
|
|
550
|
+
interface GetDownloadPageRequest {
|
|
551
|
+
/** @maxLength 1000 */
|
|
552
|
+
file: string | null;
|
|
553
|
+
}
|
|
554
|
+
interface RedirectToDocumentRequest {
|
|
555
|
+
/** @maxLength 1000 */
|
|
556
|
+
file: string | null;
|
|
557
|
+
}
|
|
558
|
+
interface DocumentRenderDelayed {
|
|
559
|
+
/** Document that is being rendered. */
|
|
560
|
+
document?: Document;
|
|
561
|
+
}
|
|
562
|
+
interface CreateDocumentRequest {
|
|
563
|
+
/** Document to be created */
|
|
564
|
+
document?: Document;
|
|
565
|
+
}
|
|
566
|
+
interface CreateDocumentResponse {
|
|
567
|
+
/** The created Document */
|
|
568
|
+
document?: Document;
|
|
569
|
+
}
|
|
570
|
+
interface GetDocumentRequest {
|
|
644
571
|
/**
|
|
645
|
-
* ID of
|
|
572
|
+
* ID of the Document to retrieve
|
|
646
573
|
* @format GUID
|
|
647
574
|
*/
|
|
648
|
-
|
|
575
|
+
documentId: string;
|
|
576
|
+
/** @maxSize 1 */
|
|
577
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
578
|
+
}
|
|
579
|
+
declare enum RequestedFields {
|
|
580
|
+
/** Include `documentContent` in the response. */
|
|
581
|
+
DOCUMENT_CONTENT = "DOCUMENT_CONTENT"
|
|
582
|
+
}
|
|
583
|
+
/** @enumType */
|
|
584
|
+
type RequestedFieldsWithLiterals = RequestedFields | 'DOCUMENT_CONTENT';
|
|
585
|
+
interface GetDocumentResponse {
|
|
586
|
+
/** The retrieved Document */
|
|
587
|
+
document?: Document;
|
|
588
|
+
}
|
|
589
|
+
interface DeleteDocumentRequest {
|
|
649
590
|
/**
|
|
650
|
-
* ID of
|
|
591
|
+
* ID of the Document to delete
|
|
651
592
|
* @format GUID
|
|
652
593
|
*/
|
|
653
|
-
|
|
594
|
+
documentId: string;
|
|
595
|
+
}
|
|
596
|
+
interface DeleteDocumentResponse {
|
|
597
|
+
/** Deleted document. */
|
|
598
|
+
document?: Document;
|
|
599
|
+
}
|
|
600
|
+
interface DeleteDocumentByExternalIdRequest {
|
|
654
601
|
/**
|
|
655
|
-
* ID of
|
|
656
|
-
* @
|
|
602
|
+
* External ID of the Document to delete
|
|
603
|
+
* @minLength 1
|
|
604
|
+
* @maxLength 100
|
|
605
|
+
*/
|
|
606
|
+
externalId?: string;
|
|
607
|
+
}
|
|
608
|
+
interface DeleteDocumentByExternalIdResponse {
|
|
609
|
+
/** Deleted document. */
|
|
610
|
+
document?: Document;
|
|
611
|
+
}
|
|
612
|
+
interface QueryDocumentRequest {
|
|
613
|
+
/** WQL expression */
|
|
614
|
+
query: QueryV2;
|
|
615
|
+
/** @maxSize 1 */
|
|
616
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
617
|
+
}
|
|
618
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
619
|
+
/** Paging options to limit and offset the number of items. */
|
|
620
|
+
paging?: Paging;
|
|
621
|
+
/** 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`. */
|
|
622
|
+
cursorPaging?: CursorPaging;
|
|
623
|
+
/**
|
|
624
|
+
* Filter object.
|
|
625
|
+
*
|
|
626
|
+
* Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
657
627
|
*/
|
|
658
|
-
|
|
628
|
+
filter?: Record<string, any> | null;
|
|
659
629
|
/**
|
|
660
|
-
*
|
|
661
|
-
*
|
|
630
|
+
* Sort object.
|
|
631
|
+
*
|
|
632
|
+
* Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
662
633
|
*/
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
|
|
634
|
+
sort?: Sorting[];
|
|
635
|
+
/** 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. */
|
|
636
|
+
fields?: string[];
|
|
637
|
+
/** 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. */
|
|
638
|
+
fieldsets?: string[];
|
|
666
639
|
}
|
|
667
640
|
/** @oneof */
|
|
668
|
-
interface
|
|
641
|
+
interface QueryV2PagingMethodOneOf {
|
|
642
|
+
/** Paging options to limit and offset the number of items. */
|
|
643
|
+
paging?: Paging;
|
|
644
|
+
/** 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`. */
|
|
645
|
+
cursorPaging?: CursorPaging;
|
|
646
|
+
}
|
|
647
|
+
interface Sorting {
|
|
669
648
|
/**
|
|
670
|
-
*
|
|
671
|
-
* @
|
|
649
|
+
* Name of the field to sort by.
|
|
650
|
+
* @maxLength 512
|
|
672
651
|
*/
|
|
673
|
-
|
|
652
|
+
fieldName?: string;
|
|
653
|
+
/** Sort order. */
|
|
654
|
+
order?: SortOrderWithLiterals;
|
|
674
655
|
/**
|
|
675
|
-
*
|
|
676
|
-
*
|
|
656
|
+
* Origin point for geo-distance sorting on a GEO field
|
|
657
|
+
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
677
658
|
*/
|
|
678
|
-
|
|
659
|
+
origin?: AddressLocation;
|
|
660
|
+
}
|
|
661
|
+
declare enum SortOrder {
|
|
662
|
+
ASC = "ASC",
|
|
663
|
+
DESC = "DESC"
|
|
664
|
+
}
|
|
665
|
+
/** @enumType */
|
|
666
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
667
|
+
interface AddressLocation {
|
|
668
|
+
/** Address latitude. */
|
|
669
|
+
latitude?: number | null;
|
|
670
|
+
/** Address longitude. */
|
|
671
|
+
longitude?: number | null;
|
|
672
|
+
}
|
|
673
|
+
interface Paging {
|
|
674
|
+
/** Number of items to load. */
|
|
675
|
+
limit?: number | null;
|
|
676
|
+
/** Number of items to skip in the current sort order. */
|
|
677
|
+
offset?: number | null;
|
|
678
|
+
}
|
|
679
|
+
interface CursorPaging {
|
|
679
680
|
/**
|
|
680
|
-
*
|
|
681
|
-
* @
|
|
681
|
+
* Maximum number of items to return in the results.
|
|
682
|
+
* @max 100
|
|
682
683
|
*/
|
|
683
|
-
|
|
684
|
+
limit?: number | null;
|
|
684
685
|
/**
|
|
685
|
-
*
|
|
686
|
-
*
|
|
686
|
+
* Pointer to the next or previous page in the list of results.
|
|
687
|
+
*
|
|
688
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
689
|
+
* Not relevant for the first request.
|
|
690
|
+
* @maxLength 16000
|
|
687
691
|
*/
|
|
688
|
-
|
|
692
|
+
cursor?: string | null;
|
|
689
693
|
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
APP = "APP"
|
|
694
|
+
interface QueryDocumentResponse {
|
|
695
|
+
/** The retrieved Documents */
|
|
696
|
+
documents?: Document[];
|
|
697
|
+
/** Query results' metadata */
|
|
698
|
+
metadata?: PagingMetadataV2;
|
|
696
699
|
}
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
+
interface PagingMetadataV2 {
|
|
701
|
+
/** Number of items returned in the response. */
|
|
702
|
+
count?: number | null;
|
|
703
|
+
/** Offset that was requested. */
|
|
704
|
+
offset?: number | null;
|
|
705
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
706
|
+
total?: number | null;
|
|
707
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
708
|
+
tooManyToCount?: boolean | null;
|
|
709
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
710
|
+
cursors?: Cursors;
|
|
711
|
+
}
|
|
712
|
+
interface Cursors {
|
|
700
713
|
/**
|
|
701
|
-
*
|
|
702
|
-
* @
|
|
714
|
+
* Cursor string pointing to the next page in the list of results.
|
|
715
|
+
* @maxLength 16000
|
|
703
716
|
*/
|
|
704
|
-
|
|
717
|
+
next?: string | null;
|
|
705
718
|
/**
|
|
706
|
-
*
|
|
707
|
-
* @
|
|
719
|
+
* Cursor pointing to the previous page in the list of results.
|
|
720
|
+
* @maxLength 16000
|
|
708
721
|
*/
|
|
709
|
-
|
|
722
|
+
prev?: string | null;
|
|
723
|
+
}
|
|
724
|
+
interface UpdateDocumentRequest {
|
|
710
725
|
/**
|
|
711
|
-
* ID
|
|
726
|
+
* Document ID.
|
|
712
727
|
* @format GUID
|
|
728
|
+
* @readonly
|
|
713
729
|
*/
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
/**
|
|
718
|
-
file
|
|
730
|
+
_id: string | null;
|
|
731
|
+
/** Document render status. */
|
|
732
|
+
renderStatus?: RenderStatusWithLiterals;
|
|
733
|
+
/** Rendered document file. */
|
|
734
|
+
file?: DocumentFile;
|
|
735
|
+
/** Rendered document source HTML file. */
|
|
736
|
+
sourceFile?: DocumentFile;
|
|
719
737
|
}
|
|
720
|
-
interface
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
738
|
+
interface DocumentFile {
|
|
739
|
+
/** File ID. */
|
|
740
|
+
fileId?: string | null;
|
|
741
|
+
/** File URL. Defined only for public documents. */
|
|
742
|
+
staticUrl?: string | null;
|
|
743
|
+
/** File path. */
|
|
744
|
+
filePath?: string | null;
|
|
745
|
+
/** Size in bytes. */
|
|
746
|
+
sizeInBytes?: number | null;
|
|
724
747
|
}
|
|
725
|
-
interface
|
|
726
|
-
|
|
727
|
-
|
|
748
|
+
interface UpdateDocumentResponse {
|
|
749
|
+
/** The created Document */
|
|
750
|
+
document?: Document;
|
|
728
751
|
}
|
|
729
|
-
interface
|
|
730
|
-
/**
|
|
731
|
-
|
|
752
|
+
interface DocumentRendered {
|
|
753
|
+
/** Rendered document */
|
|
754
|
+
document?: Document;
|
|
732
755
|
}
|
|
733
|
-
interface
|
|
734
|
-
/**
|
|
735
|
-
|
|
736
|
-
/** Document content. */
|
|
737
|
-
content?: DocumentContent;
|
|
738
|
-
/** Output format, defaults to PDF. */
|
|
739
|
-
outputFormat?: RenderFormatWithLiterals;
|
|
740
|
-
/**
|
|
741
|
-
* Overrides papyrusTemplatesStaticsUrl: "//static.parastorage.com/services/papyrus-templates-statics/${version_override}/"
|
|
742
|
-
* @maxLength 100
|
|
743
|
-
*/
|
|
744
|
-
versionOverride?: string | null;
|
|
745
|
-
/**
|
|
746
|
-
* Overrides static versions for the statics config.
|
|
747
|
-
* @maxSize 10
|
|
748
|
-
*/
|
|
749
|
-
staticOverrides?: Record<string, string>;
|
|
756
|
+
interface DocumentRenderFailed {
|
|
757
|
+
/** Document that failed to render */
|
|
758
|
+
document?: Document;
|
|
750
759
|
}
|
|
751
|
-
interface
|
|
760
|
+
interface DownloadDocumentRequest {
|
|
752
761
|
/**
|
|
753
|
-
*
|
|
762
|
+
* ID of the Document to retrieve
|
|
754
763
|
* @format GUID
|
|
755
|
-
* @readonly
|
|
756
764
|
*/
|
|
757
|
-
|
|
765
|
+
documentId: string;
|
|
758
766
|
/**
|
|
759
|
-
*
|
|
760
|
-
* @
|
|
761
|
-
* @
|
|
767
|
+
* URL expiration time. Only relevant for private documents.
|
|
768
|
+
* @min 600
|
|
769
|
+
* @max 86400
|
|
762
770
|
*/
|
|
763
|
-
|
|
771
|
+
urlExpirationInSeconds?: number | null;
|
|
764
772
|
/**
|
|
765
|
-
*
|
|
766
|
-
*
|
|
767
|
-
* @maxLength 20
|
|
773
|
+
* Whether the link downloads the file or opens the file in the browser.
|
|
774
|
+
* Default: `ATTACHMENT`
|
|
768
775
|
*/
|
|
769
|
-
|
|
776
|
+
contentDisposition?: ContentDispositionWithLiterals;
|
|
777
|
+
}
|
|
778
|
+
declare enum ContentDisposition {
|
|
779
|
+
/** The link downloads the file. */
|
|
780
|
+
ATTACHMENT = "ATTACHMENT",
|
|
781
|
+
/** The link opens the file in the browser. */
|
|
782
|
+
INLINE = "INLINE"
|
|
783
|
+
}
|
|
784
|
+
/** @enumType */
|
|
785
|
+
type ContentDispositionWithLiterals = ContentDisposition | 'ATTACHMENT' | 'INLINE';
|
|
786
|
+
interface DownloadDocumentResponse {
|
|
787
|
+
/** Download URL. */
|
|
788
|
+
downloadUrl?: string;
|
|
789
|
+
/** URL expiration timestamp. Not provided for public documents because their links do not expire. */
|
|
790
|
+
expirationDate?: Date | null;
|
|
791
|
+
}
|
|
792
|
+
interface GetDownloadUrlRequest extends GetDownloadUrlRequestDocumentOneOf {
|
|
770
793
|
/**
|
|
771
|
-
*
|
|
772
|
-
* @
|
|
773
|
-
* @maxLength 20
|
|
794
|
+
* ID of the Document to retrieve
|
|
795
|
+
* @format GUID
|
|
774
796
|
*/
|
|
775
|
-
|
|
797
|
+
documentId?: string | null;
|
|
776
798
|
/**
|
|
777
|
-
*
|
|
778
|
-
* Must be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)
|
|
799
|
+
* ID of the Document to retrieve
|
|
779
800
|
* @minLength 1
|
|
780
801
|
* @maxLength 100
|
|
781
802
|
*/
|
|
782
803
|
externalId?: string | null;
|
|
783
804
|
/**
|
|
784
|
-
*
|
|
785
|
-
* @
|
|
805
|
+
* Signed file token
|
|
806
|
+
* @minLength 1
|
|
807
|
+
* @maxLength 500
|
|
786
808
|
*/
|
|
787
|
-
|
|
809
|
+
fileToken?: string | null;
|
|
788
810
|
/**
|
|
789
|
-
*
|
|
790
|
-
* @
|
|
811
|
+
* URL expiration time. Only relevant for private documents.
|
|
812
|
+
* @min 600
|
|
813
|
+
* @max 86400
|
|
791
814
|
*/
|
|
792
|
-
|
|
793
|
-
/** @
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
|
|
797
|
-
|
|
815
|
+
urlExpirationInSeconds?: number | null;
|
|
816
|
+
/** @maxLength 100 */
|
|
817
|
+
downloadButtonText?: string | null;
|
|
818
|
+
/**
|
|
819
|
+
* Whether the link downloads the file or opens the file in the browser.
|
|
820
|
+
* Default: `ATTACHMENT`
|
|
821
|
+
*/
|
|
822
|
+
contentDisposition?: ContentDispositionWithLiterals;
|
|
798
823
|
}
|
|
799
|
-
|
|
824
|
+
/** @oneof */
|
|
825
|
+
interface GetDownloadUrlRequestDocumentOneOf {
|
|
800
826
|
/**
|
|
801
|
-
*
|
|
802
|
-
* @
|
|
827
|
+
* ID of the Document to retrieve
|
|
828
|
+
* @format GUID
|
|
803
829
|
*/
|
|
804
|
-
|
|
830
|
+
documentId?: string | null;
|
|
805
831
|
/**
|
|
806
|
-
*
|
|
807
|
-
* @
|
|
808
|
-
* @maxLength
|
|
832
|
+
* ID of the Document to retrieve
|
|
833
|
+
* @minLength 1
|
|
834
|
+
* @maxLength 100
|
|
809
835
|
*/
|
|
810
|
-
|
|
836
|
+
externalId?: string | null;
|
|
811
837
|
/**
|
|
812
|
-
*
|
|
813
|
-
* @
|
|
838
|
+
* Signed file token
|
|
839
|
+
* @minLength 1
|
|
840
|
+
* @maxLength 500
|
|
814
841
|
*/
|
|
815
|
-
|
|
842
|
+
fileToken?: string | null;
|
|
843
|
+
}
|
|
844
|
+
interface GetDownloadUrlResponse {
|
|
845
|
+
/** Download URL. */
|
|
846
|
+
downloadUrl?: string | null;
|
|
847
|
+
/** URL expiration timestamp. Not provided for public documents because their links do not expire. */
|
|
848
|
+
expirationDate?: Date | null;
|
|
816
849
|
/**
|
|
817
|
-
*
|
|
818
|
-
* @
|
|
819
|
-
* @maxLength 7
|
|
850
|
+
* Document ID.
|
|
851
|
+
* @format GUID
|
|
820
852
|
*/
|
|
821
|
-
|
|
853
|
+
documentId?: string | null;
|
|
854
|
+
/** Document render status. */
|
|
855
|
+
renderStatus?: RenderStatusWithLiterals;
|
|
856
|
+
/** Download URL. */
|
|
857
|
+
downloadPageUrl?: string | null;
|
|
822
858
|
/**
|
|
823
|
-
*
|
|
824
|
-
* @
|
|
859
|
+
* Client defined content checksum. Can be used for content comparison.
|
|
860
|
+
* @minLength 1
|
|
861
|
+
* @maxLength 64
|
|
825
862
|
*/
|
|
826
|
-
|
|
827
|
-
/** Text content setting */
|
|
828
|
-
textContent?: TextContent[];
|
|
863
|
+
contentChecksum?: string | null;
|
|
829
864
|
}
|
|
830
|
-
interface
|
|
865
|
+
interface DownloadDocumentSourceRequest {
|
|
831
866
|
/**
|
|
832
|
-
*
|
|
833
|
-
* @
|
|
867
|
+
* ID of the Document to retrieve
|
|
868
|
+
* @format GUID
|
|
834
869
|
*/
|
|
835
|
-
|
|
836
|
-
/**
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
/** Wix media Image */
|
|
842
|
-
image?: string;
|
|
843
|
-
/** Image resizing mode */
|
|
844
|
-
resize?: ResizeOptionWithLiterals;
|
|
845
|
-
}
|
|
846
|
-
interface FocalPoint {
|
|
847
|
-
/** X-coordinate of the focal point. */
|
|
848
|
-
x?: number;
|
|
849
|
-
/** Y-coordinate of the focal point. */
|
|
850
|
-
y?: number;
|
|
851
|
-
/** crop by height */
|
|
852
|
-
height?: number | null;
|
|
853
|
-
/** crop by width */
|
|
854
|
-
width?: number | null;
|
|
870
|
+
documentId: string;
|
|
871
|
+
/**
|
|
872
|
+
* Whether the link downloads the file or opens the file in the browser.
|
|
873
|
+
* Default: `ATTACHMENT`
|
|
874
|
+
*/
|
|
875
|
+
contentDisposition?: ContentDispositionWithLiterals;
|
|
855
876
|
}
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
|
|
859
|
-
/** Enables user to manually crop image to fit image field */
|
|
860
|
-
CROP = "CROP"
|
|
877
|
+
interface DownloadDocumentSourceResponse {
|
|
878
|
+
/** Download URL. Expires after 10 minutes. */
|
|
879
|
+
downloadUrl?: string;
|
|
861
880
|
}
|
|
862
|
-
|
|
863
|
-
type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';
|
|
864
|
-
interface SelectSetting {
|
|
865
|
-
/** Selected value */
|
|
866
|
-
value?: string | null;
|
|
881
|
+
interface MessageEnvelope {
|
|
867
882
|
/**
|
|
868
|
-
*
|
|
869
|
-
* @
|
|
870
|
-
* @maxLength 7
|
|
883
|
+
* App instance ID.
|
|
884
|
+
* @format GUID
|
|
871
885
|
*/
|
|
872
|
-
|
|
886
|
+
instanceId?: string | null;
|
|
873
887
|
/**
|
|
874
|
-
*
|
|
875
|
-
* @
|
|
876
|
-
* @maxLength 7
|
|
888
|
+
* Event type.
|
|
889
|
+
* @maxLength 150
|
|
877
890
|
*/
|
|
878
|
-
|
|
879
|
-
/**
|
|
880
|
-
|
|
891
|
+
eventType?: string;
|
|
892
|
+
/** The identification type and identity data. */
|
|
893
|
+
identity?: IdentificationData;
|
|
894
|
+
/** Stringify payload. */
|
|
895
|
+
data?: string;
|
|
896
|
+
/** Details related to the account */
|
|
897
|
+
accountInfo?: AccountInfo;
|
|
881
898
|
}
|
|
882
|
-
interface
|
|
899
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
883
900
|
/**
|
|
884
|
-
*
|
|
885
|
-
* @
|
|
886
|
-
* @maxLength 9
|
|
901
|
+
* ID of a site visitor that has not logged in to the site.
|
|
902
|
+
* @format GUID
|
|
887
903
|
*/
|
|
888
|
-
|
|
889
|
-
/** Wix media Image */
|
|
890
|
-
image?: string;
|
|
891
|
-
}
|
|
892
|
-
interface SettingsGroup {
|
|
904
|
+
anonymousVisitorId?: string;
|
|
893
905
|
/**
|
|
894
|
-
*
|
|
895
|
-
* @
|
|
896
|
-
* @maxLength 50
|
|
906
|
+
* ID of a site visitor that has logged in to the site.
|
|
907
|
+
* @format GUID
|
|
897
908
|
*/
|
|
898
|
-
|
|
909
|
+
memberId?: string;
|
|
899
910
|
/**
|
|
900
|
-
*
|
|
901
|
-
* @
|
|
911
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
912
|
+
* @format GUID
|
|
902
913
|
*/
|
|
903
|
-
|
|
914
|
+
wixUserId?: string;
|
|
904
915
|
/**
|
|
905
|
-
*
|
|
906
|
-
* @
|
|
916
|
+
* ID of an app.
|
|
917
|
+
* @format GUID
|
|
907
918
|
*/
|
|
908
|
-
|
|
919
|
+
appId?: string;
|
|
920
|
+
/** @readonly */
|
|
921
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
922
|
+
}
|
|
923
|
+
/** @oneof */
|
|
924
|
+
interface IdentificationDataIdOneOf {
|
|
909
925
|
/**
|
|
910
|
-
*
|
|
911
|
-
* @
|
|
926
|
+
* ID of a site visitor that has not logged in to the site.
|
|
927
|
+
* @format GUID
|
|
912
928
|
*/
|
|
913
|
-
|
|
929
|
+
anonymousVisitorId?: string;
|
|
914
930
|
/**
|
|
915
|
-
*
|
|
916
|
-
* @
|
|
931
|
+
* ID of a site visitor that has logged in to the site.
|
|
932
|
+
* @format GUID
|
|
917
933
|
*/
|
|
918
|
-
|
|
934
|
+
memberId?: string;
|
|
919
935
|
/**
|
|
920
|
-
*
|
|
921
|
-
* @
|
|
936
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
937
|
+
* @format GUID
|
|
922
938
|
*/
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
/** @enumType */
|
|
930
|
-
type PaperSizeWithLiterals = PaperSize | 'A4_PORTRAIT' | 'A4_LANDSCAPE';
|
|
931
|
-
declare enum PageOverflow {
|
|
932
|
-
CONTENT_HIDDEN = "CONTENT_HIDDEN",
|
|
933
|
-
CONTENT_BREAK = "CONTENT_BREAK"
|
|
939
|
+
wixUserId?: string;
|
|
940
|
+
/**
|
|
941
|
+
* ID of an app.
|
|
942
|
+
* @format GUID
|
|
943
|
+
*/
|
|
944
|
+
appId?: string;
|
|
934
945
|
}
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
HTML = "HTML"
|
|
946
|
+
declare enum WebhookIdentityType {
|
|
947
|
+
UNKNOWN = "UNKNOWN",
|
|
948
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
949
|
+
MEMBER = "MEMBER",
|
|
950
|
+
WIX_USER = "WIX_USER",
|
|
951
|
+
APP = "APP"
|
|
942
952
|
}
|
|
943
953
|
/** @enumType */
|
|
944
|
-
type
|
|
945
|
-
interface
|
|
954
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
955
|
+
interface AccountInfo {
|
|
946
956
|
/**
|
|
947
|
-
*
|
|
957
|
+
* ID of the Wix account associated with the event.
|
|
948
958
|
* @format GUID
|
|
949
959
|
*/
|
|
950
|
-
|
|
951
|
-
/** Output format, defaults to PDF. */
|
|
952
|
-
outputFormat?: RenderFormatWithLiterals;
|
|
953
|
-
}
|
|
954
|
-
interface GetRendererInfoRequest {
|
|
955
|
-
}
|
|
956
|
-
interface GetRendererInfoResponse {
|
|
957
|
-
/** Renderer info */
|
|
958
|
-
info?: Record<string, string>;
|
|
959
|
-
}
|
|
960
|
-
interface GetCachedHtmlRequest {
|
|
960
|
+
accountId?: string | null;
|
|
961
961
|
/**
|
|
962
|
-
*
|
|
963
|
-
* @
|
|
962
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
963
|
+
* @format GUID
|
|
964
964
|
*/
|
|
965
|
-
|
|
965
|
+
parentAccountId?: string | null;
|
|
966
966
|
/**
|
|
967
|
-
*
|
|
967
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
968
968
|
* @format GUID
|
|
969
969
|
*/
|
|
970
|
-
|
|
970
|
+
siteId?: string | null;
|
|
971
971
|
}
|
|
972
972
|
/** @docsIgnore */
|
|
973
973
|
type DownloadDocumentApplicationErrors = {
|
|
@@ -1211,6 +1211,22 @@ interface DocumentUpdatedEnvelope {
|
|
|
1211
1211
|
* @slug updated
|
|
1212
1212
|
*/
|
|
1213
1213
|
declare function onDocumentUpdated(handler: (event: DocumentUpdatedEnvelope) => void | Promise<void>): void;
|
|
1214
|
+
/**
|
|
1215
|
+
* Get Document.
|
|
1216
|
+
* @public
|
|
1217
|
+
* @requiredField file
|
|
1218
|
+
* @permissionId PAPYRUS.DOWNLOAD_DOCUMENT
|
|
1219
|
+
* @fqn wix.papyrus.v1.DownloadPageController.GetDownloadPage
|
|
1220
|
+
*/
|
|
1221
|
+
declare function getDownloadPage(file: string | null): Promise<RawHttpResponse>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Get Document.
|
|
1224
|
+
* @public
|
|
1225
|
+
* @requiredField file
|
|
1226
|
+
* @permissionId PAPYRUS.DOWNLOAD_DOCUMENT
|
|
1227
|
+
* @fqn wix.papyrus.v1.DownloadPageController.RedirectToDocument
|
|
1228
|
+
*/
|
|
1229
|
+
declare function redirectToDocument(file: string | null): Promise<RawHttpResponse>;
|
|
1214
1230
|
/**
|
|
1215
1231
|
* Creates a new Document
|
|
1216
1232
|
* @public
|
|
@@ -1469,21 +1485,5 @@ interface DownloadDocumentSourceOptions {
|
|
|
1469
1485
|
*/
|
|
1470
1486
|
contentDisposition?: ContentDispositionWithLiterals;
|
|
1471
1487
|
}
|
|
1472
|
-
/**
|
|
1473
|
-
* Get Document.
|
|
1474
|
-
* @public
|
|
1475
|
-
* @requiredField file
|
|
1476
|
-
* @permissionId PAPYRUS.DOWNLOAD_DOCUMENT
|
|
1477
|
-
* @fqn wix.papyrus.v1.DownloadPageController.GetDownloadPage
|
|
1478
|
-
*/
|
|
1479
|
-
declare function getDownloadPage(file: string | null): Promise<RawHttpResponse>;
|
|
1480
|
-
/**
|
|
1481
|
-
* Get Document.
|
|
1482
|
-
* @public
|
|
1483
|
-
* @requiredField file
|
|
1484
|
-
* @permissionId PAPYRUS.DOWNLOAD_DOCUMENT
|
|
1485
|
-
* @fqn wix.papyrus.v1.DownloadPageController.RedirectToDocument
|
|
1486
|
-
*/
|
|
1487
|
-
declare function redirectToDocument(file: string | null): Promise<RawHttpResponse>;
|
|
1488
1488
|
|
|
1489
1489
|
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type BackgroundSetting, type BaseEventMetadata, type CommonQueryWithEntityContext, ContentDisposition, type ContentDispositionWithLiterals, type CreateDocumentOptions, type CreateDocumentRequest, type CreateDocumentResponse, type CursorPaging, type Cursors, type DebugOptions, type DeleteDocumentByExternalIdRequest, type DeleteDocumentByExternalIdResponse, type DeleteDocumentRequest, type DeleteDocumentResponse, type Document, type DocumentContent, type DocumentCreatedEnvelope, type DocumentDeletedEnvelope, type DocumentFile, type DocumentQuery, type DocumentQuerySpec, type DocumentRenderDelayed, type DocumentRenderDelayedEnvelope, type DocumentRenderFailed, type DocumentRenderFailedEnvelope, type DocumentRendered, type DocumentRenderedEnvelope, type DocumentUpdatedEnvelope, type DocumentsQueryBuilder, type DocumentsQueryResult, type DomainEvent, type DomainEventBodyOneOf, type DownloadDocumentApplicationErrors, type DownloadDocumentOptions, type DownloadDocumentRequest, type DownloadDocumentResponse, type DownloadDocumentSourceApplicationErrors, type DownloadDocumentSourceOptions, type DownloadDocumentSourceRequest, type DownloadDocumentSourceResponse, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type FocalPoint, Format, type FormatWithLiterals, type GetCachedHtmlRequest, type GetDocumentOptions, type GetDocumentRequest, type GetDocumentResponse, type GetDownloadPageRequest, type GetDownloadUrlOptions, type GetDownloadUrlOptionsDocumentOneOf, type GetDownloadUrlRequest, type GetDownloadUrlRequestDocumentOneOf, type GetDownloadUrlResponse, type GetRendererInfoRequest, type GetRendererInfoResponse, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type ImageSetting, type MessageEnvelope, PageOverflow, type PageOverflowWithLiterals, type PageSettings, type Paging, type PagingMetadataV2, PaperSize, type PaperSizeWithLiterals, type QueryDocumentOptions, type QueryDocumentRequest, type QueryDocumentResponse, type QueryV2, type QueryV2PagingMethodOneOf, type RawHttpResponse, type RedirectToDocumentRequest, type RenderDelayedEventConfig, type RenderDocumentByIdRequest, type RenderDocumentRequest, RenderFormat, type RenderFormatWithLiterals, RenderStatus, type RenderStatusWithLiterals, RequestedFields, type RequestedFieldsWithLiterals, ResizeOption, type ResizeOptionWithLiterals, type RestoreInfo, type SelectSetting, type SettingsGroup, SortOrder, type SortOrderWithLiterals, type Sorting, type TemplateSettings, type TemplateSettingsOverride, type TextContent, type TextSetting, type UpdateDocumentOptions, type UpdateDocumentRequest, type UpdateDocumentResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WixMpClientVersion, type WixMpClientVersionWithLiterals, createDocument, deleteDocument, downloadDocument, downloadDocumentSource, getDocument, getDownloadPage, getDownloadUrl, onDocumentCreated, onDocumentDeleted, onDocumentRenderDelayed, onDocumentRenderFailed, onDocumentRendered, onDocumentUpdated, queryDocument, redirectToDocument, typedQueryDocument, updateDocument, utils };
|