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