@wix/auto_sdk_papyrus_documents 1.0.11 → 1.0.13
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 +187 -210
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +524 -524
- package/build/cjs/index.typings.js +147 -158
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +529 -529
- package/build/cjs/meta.js +137 -148
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +17 -17
- package/build/es/index.mjs +187 -210
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +524 -524
- package/build/es/index.typings.mjs +147 -158
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +529 -529
- package/build/es/meta.mjs +137 -148
- 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 +550 -550
- package/build/internal/cjs/meta.d.ts +560 -560
- 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/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { 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
|
|
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.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/** Document is the main entity of DocumentService. */
|
|
@@ -235,328 +235,258 @@ 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
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
ATTACHMENT = "ATTACHMENT",
|
|
461
|
-
/** The link opens the file in the browser. */
|
|
462
|
-
INLINE = "INLINE"
|
|
340
|
+
id?: string;
|
|
341
|
+
/** @maxLength 500 */
|
|
342
|
+
value?: string | null;
|
|
343
|
+
visible?: boolean;
|
|
463
344
|
}
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
|
|
469
|
-
/** URL expiration timestamp. Not provided for public documents because their links do not expire. */
|
|
470
|
-
expirationDate?: Date | null;
|
|
345
|
+
interface ImageSetting {
|
|
346
|
+
/** Wix media Image */
|
|
347
|
+
image?: Image;
|
|
348
|
+
/** Image resizing mode */
|
|
349
|
+
resize?: ResizeOptionWithLiterals;
|
|
471
350
|
}
|
|
472
|
-
interface
|
|
351
|
+
interface Image {
|
|
352
|
+
/** WixMedia image ID. */
|
|
353
|
+
id?: string;
|
|
354
|
+
/** Image URL. */
|
|
355
|
+
url?: string;
|
|
473
356
|
/**
|
|
474
|
-
*
|
|
475
|
-
* @
|
|
357
|
+
* Original image height.
|
|
358
|
+
* @readonly
|
|
476
359
|
*/
|
|
477
|
-
|
|
360
|
+
height?: number;
|
|
478
361
|
/**
|
|
479
|
-
*
|
|
480
|
-
* @
|
|
481
|
-
* @maxLength 100
|
|
362
|
+
* Original image width.
|
|
363
|
+
* @readonly
|
|
482
364
|
*/
|
|
483
|
-
|
|
365
|
+
width?: number;
|
|
366
|
+
/** Image alt text. */
|
|
367
|
+
altText?: string | null;
|
|
484
368
|
/**
|
|
485
|
-
*
|
|
486
|
-
* @
|
|
487
|
-
* @maxLength 500
|
|
369
|
+
* Image filename.
|
|
370
|
+
* @readonly
|
|
488
371
|
*/
|
|
489
|
-
|
|
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;
|
|
490
395
|
/**
|
|
491
|
-
*
|
|
492
|
-
* @
|
|
493
|
-
* @
|
|
396
|
+
* Color hex code
|
|
397
|
+
* @minLength 7
|
|
398
|
+
* @maxLength 7
|
|
494
399
|
*/
|
|
495
|
-
|
|
496
|
-
/** @maxLength 100 */
|
|
497
|
-
downloadButtonText?: string | null;
|
|
400
|
+
primaryColor?: string | null;
|
|
498
401
|
/**
|
|
499
|
-
*
|
|
500
|
-
*
|
|
402
|
+
* Color hex code
|
|
403
|
+
* @minLength 7
|
|
404
|
+
* @maxLength 7
|
|
501
405
|
*/
|
|
502
|
-
|
|
406
|
+
secondaryColor?: string | null;
|
|
407
|
+
/** Size */
|
|
408
|
+
size?: number | null;
|
|
503
409
|
}
|
|
504
|
-
|
|
505
|
-
interface GetDownloadUrlRequestDocumentOneOf {
|
|
410
|
+
interface BackgroundSetting {
|
|
506
411
|
/**
|
|
507
|
-
*
|
|
508
|
-
* @
|
|
412
|
+
* Color of the background hex code
|
|
413
|
+
* @minLength 7
|
|
414
|
+
* @maxLength 9
|
|
509
415
|
*/
|
|
510
|
-
|
|
416
|
+
color?: string | null;
|
|
417
|
+
/** Wix media Image */
|
|
418
|
+
image?: Image;
|
|
419
|
+
}
|
|
420
|
+
interface SettingsGroup {
|
|
511
421
|
/**
|
|
512
|
-
*
|
|
513
|
-
* @minLength
|
|
514
|
-
* @maxLength
|
|
422
|
+
* Id of the control group
|
|
423
|
+
* @minLength 5
|
|
424
|
+
* @maxLength 50
|
|
515
425
|
*/
|
|
516
|
-
|
|
426
|
+
groupId?: string;
|
|
517
427
|
/**
|
|
518
|
-
*
|
|
519
|
-
* @
|
|
520
|
-
* @maxLength 500
|
|
428
|
+
* Display settings.
|
|
429
|
+
* @maxSize 20
|
|
521
430
|
*/
|
|
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;
|
|
431
|
+
display?: Record<string, boolean>;
|
|
529
432
|
/**
|
|
530
|
-
*
|
|
531
|
-
* @
|
|
433
|
+
* Texts settings.
|
|
434
|
+
* @maxSize 20
|
|
532
435
|
*/
|
|
533
|
-
|
|
534
|
-
/** Document render status. */
|
|
535
|
-
renderStatus?: RenderStatusWithLiterals;
|
|
536
|
-
/** Download URL. */
|
|
537
|
-
downloadPageUrl?: string | null;
|
|
436
|
+
texts?: Record<string, TextSetting>;
|
|
538
437
|
/**
|
|
539
|
-
*
|
|
540
|
-
* @
|
|
541
|
-
* @maxLength 64
|
|
438
|
+
* Images settings.
|
|
439
|
+
* @maxSize 10
|
|
542
440
|
*/
|
|
543
|
-
|
|
544
|
-
}
|
|
545
|
-
interface DownloadDocumentSourceRequest {
|
|
441
|
+
images?: Record<string, ImageSetting>;
|
|
546
442
|
/**
|
|
547
|
-
*
|
|
548
|
-
* @
|
|
443
|
+
* Select option settings.
|
|
444
|
+
* @maxSize 20
|
|
549
445
|
*/
|
|
550
|
-
|
|
446
|
+
selects?: Record<string, SelectSetting>;
|
|
551
447
|
/**
|
|
552
|
-
*
|
|
553
|
-
*
|
|
448
|
+
* Backgrounds settings.
|
|
449
|
+
* @maxSize 20
|
|
554
450
|
*/
|
|
555
|
-
|
|
451
|
+
backgrounds?: Record<string, BackgroundSetting>;
|
|
556
452
|
}
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
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;
|
|
560
490
|
}
|
|
561
491
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
562
492
|
createdEvent?: EntityCreatedEvent;
|
|
@@ -624,375 +554,445 @@ interface ActionEvent {
|
|
|
624
554
|
}
|
|
625
555
|
interface Empty {
|
|
626
556
|
}
|
|
627
|
-
interface
|
|
557
|
+
interface GetRendererInfoRequest {
|
|
558
|
+
}
|
|
559
|
+
interface GetRendererInfoResponse {
|
|
560
|
+
/** Renderer info */
|
|
561
|
+
info?: Record<string, string>;
|
|
562
|
+
}
|
|
563
|
+
interface GetCachedHtmlRequest {
|
|
628
564
|
/**
|
|
629
|
-
*
|
|
630
|
-
* @
|
|
565
|
+
* Html Access Key.
|
|
566
|
+
* @maxLength 100
|
|
631
567
|
*/
|
|
632
|
-
|
|
568
|
+
htmlAccessKey?: string;
|
|
633
569
|
/**
|
|
634
|
-
*
|
|
635
|
-
* @
|
|
570
|
+
* Meta Site Id.
|
|
571
|
+
* @format GUID
|
|
636
572
|
*/
|
|
637
|
-
|
|
638
|
-
/** The identification type and identity data. */
|
|
639
|
-
identity?: IdentificationData;
|
|
640
|
-
/** Stringify payload. */
|
|
641
|
-
data?: string;
|
|
642
|
-
/** Details related to the account */
|
|
643
|
-
accountInfo?: AccountInfo;
|
|
573
|
+
metaSiteId?: string | null;
|
|
644
574
|
}
|
|
645
|
-
interface
|
|
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 {
|
|
646
596
|
/**
|
|
647
|
-
* ID of
|
|
597
|
+
* ID of the Document to retrieve
|
|
648
598
|
* @format GUID
|
|
649
599
|
*/
|
|
650
|
-
|
|
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 {
|
|
651
615
|
/**
|
|
652
|
-
* ID of
|
|
616
|
+
* ID of the Document to delete
|
|
653
617
|
* @format GUID
|
|
654
618
|
*/
|
|
655
|
-
|
|
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;
|
|
656
648
|
/**
|
|
657
|
-
*
|
|
658
|
-
*
|
|
649
|
+
* Filter object.
|
|
650
|
+
*
|
|
651
|
+
* Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
659
652
|
*/
|
|
660
|
-
|
|
653
|
+
filter?: Record<string, any> | null;
|
|
661
654
|
/**
|
|
662
|
-
*
|
|
663
|
-
*
|
|
655
|
+
* Sort object.
|
|
656
|
+
*
|
|
657
|
+
* Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
664
658
|
*/
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
|
|
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[];
|
|
668
664
|
}
|
|
669
665
|
/** @oneof */
|
|
670
|
-
interface
|
|
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 {
|
|
671
673
|
/**
|
|
672
|
-
*
|
|
673
|
-
* @
|
|
674
|
+
* Name of the field to sort by.
|
|
675
|
+
* @maxLength 512
|
|
674
676
|
*/
|
|
675
|
-
|
|
677
|
+
fieldName?: string;
|
|
678
|
+
/** Sort order. */
|
|
679
|
+
order?: SortOrderWithLiterals;
|
|
676
680
|
/**
|
|
677
|
-
*
|
|
678
|
-
*
|
|
681
|
+
* Origin point for geo-distance sorting on a GEO field
|
|
682
|
+
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
679
683
|
*/
|
|
680
|
-
|
|
684
|
+
origin?: AddressLocation;
|
|
685
|
+
}
|
|
686
|
+
declare enum SortOrder {
|
|
687
|
+
ASC = "ASC",
|
|
688
|
+
DESC = "DESC"
|
|
689
|
+
}
|
|
690
|
+
/** @enumType */
|
|
691
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
692
|
+
interface AddressLocation {
|
|
693
|
+
/** Address latitude. */
|
|
694
|
+
latitude?: number | null;
|
|
695
|
+
/** Address longitude. */
|
|
696
|
+
longitude?: number | null;
|
|
697
|
+
}
|
|
698
|
+
interface Paging {
|
|
699
|
+
/** Number of items to load. */
|
|
700
|
+
limit?: number | null;
|
|
701
|
+
/** Number of items to skip in the current sort order. */
|
|
702
|
+
offset?: number | null;
|
|
703
|
+
}
|
|
704
|
+
interface CursorPaging {
|
|
681
705
|
/**
|
|
682
|
-
*
|
|
683
|
-
* @
|
|
706
|
+
* Maximum number of items to return in the results.
|
|
707
|
+
* @max 100
|
|
684
708
|
*/
|
|
685
|
-
|
|
709
|
+
limit?: number | null;
|
|
686
710
|
/**
|
|
687
|
-
*
|
|
688
|
-
*
|
|
711
|
+
* Pointer to the next or previous page in the list of results.
|
|
712
|
+
*
|
|
713
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
714
|
+
* Not relevant for the first request.
|
|
715
|
+
* @maxLength 16000
|
|
689
716
|
*/
|
|
690
|
-
|
|
717
|
+
cursor?: string | null;
|
|
691
718
|
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
APP = "APP"
|
|
719
|
+
interface QueryDocumentResponse {
|
|
720
|
+
/** The retrieved Documents */
|
|
721
|
+
documents?: Document[];
|
|
722
|
+
/** Query results' metadata */
|
|
723
|
+
metadata?: PagingMetadataV2;
|
|
698
724
|
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
725
|
+
interface PagingMetadataV2 {
|
|
726
|
+
/** Number of items returned in the response. */
|
|
727
|
+
count?: number | null;
|
|
728
|
+
/** Offset that was requested. */
|
|
729
|
+
offset?: number | null;
|
|
730
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
731
|
+
total?: number | null;
|
|
732
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
733
|
+
tooManyToCount?: boolean | null;
|
|
734
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
735
|
+
cursors?: Cursors;
|
|
736
|
+
}
|
|
737
|
+
interface Cursors {
|
|
702
738
|
/**
|
|
703
|
-
*
|
|
704
|
-
* @
|
|
739
|
+
* Cursor string pointing to the next page in the list of results.
|
|
740
|
+
* @maxLength 16000
|
|
705
741
|
*/
|
|
706
|
-
|
|
742
|
+
next?: string | null;
|
|
707
743
|
/**
|
|
708
|
-
*
|
|
709
|
-
* @
|
|
744
|
+
* Cursor pointing to the previous page in the list of results.
|
|
745
|
+
* @maxLength 16000
|
|
710
746
|
*/
|
|
711
|
-
|
|
747
|
+
prev?: string | null;
|
|
748
|
+
}
|
|
749
|
+
interface UpdateDocumentRequest {
|
|
712
750
|
/**
|
|
713
|
-
* ID
|
|
751
|
+
* Document ID.
|
|
714
752
|
* @format GUID
|
|
753
|
+
* @readonly
|
|
715
754
|
*/
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
file
|
|
755
|
+
id: string | null;
|
|
756
|
+
/** Document render status. */
|
|
757
|
+
renderStatus?: RenderStatusWithLiterals;
|
|
758
|
+
/** Rendered document file. */
|
|
759
|
+
file?: DocumentFile;
|
|
760
|
+
/** Rendered document source HTML file. */
|
|
761
|
+
sourceFile?: DocumentFile;
|
|
721
762
|
}
|
|
722
|
-
interface
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
763
|
+
interface DocumentFile {
|
|
764
|
+
/** File ID. */
|
|
765
|
+
fileId?: string | null;
|
|
766
|
+
/** File URL. Defined only for public documents. */
|
|
767
|
+
staticUrl?: string | null;
|
|
768
|
+
/** File path. */
|
|
769
|
+
filePath?: string | null;
|
|
770
|
+
/** Size in bytes. */
|
|
771
|
+
sizeInBytes?: number | null;
|
|
726
772
|
}
|
|
727
|
-
interface
|
|
728
|
-
|
|
729
|
-
|
|
773
|
+
interface UpdateDocumentResponse {
|
|
774
|
+
/** The created Document */
|
|
775
|
+
document?: Document;
|
|
730
776
|
}
|
|
731
|
-
interface
|
|
732
|
-
/**
|
|
733
|
-
|
|
777
|
+
interface DocumentRendered {
|
|
778
|
+
/** Rendered document */
|
|
779
|
+
document?: Document;
|
|
734
780
|
}
|
|
735
|
-
interface
|
|
736
|
-
/**
|
|
737
|
-
|
|
738
|
-
/** Document content. */
|
|
739
|
-
content?: DocumentContent;
|
|
740
|
-
/** Output format, defaults to PDF. */
|
|
741
|
-
outputFormat?: RenderFormatWithLiterals;
|
|
742
|
-
/**
|
|
743
|
-
* Overrides papyrusTemplatesStaticsUrl: "//static.parastorage.com/services/papyrus-templates-statics/${version_override}/"
|
|
744
|
-
* @maxLength 100
|
|
745
|
-
*/
|
|
746
|
-
versionOverride?: string | null;
|
|
747
|
-
/**
|
|
748
|
-
* Overrides static versions for the statics config.
|
|
749
|
-
* @maxSize 10
|
|
750
|
-
*/
|
|
751
|
-
staticOverrides?: Record<string, string>;
|
|
781
|
+
interface DocumentRenderFailed {
|
|
782
|
+
/** Document that failed to render */
|
|
783
|
+
document?: Document;
|
|
752
784
|
}
|
|
753
|
-
interface
|
|
785
|
+
interface DownloadDocumentRequest {
|
|
754
786
|
/**
|
|
755
|
-
*
|
|
787
|
+
* ID of the Document to retrieve
|
|
756
788
|
* @format GUID
|
|
757
|
-
* @readonly
|
|
758
789
|
*/
|
|
759
|
-
|
|
790
|
+
documentId: string;
|
|
760
791
|
/**
|
|
761
|
-
*
|
|
762
|
-
* @
|
|
763
|
-
* @
|
|
792
|
+
* URL expiration time. Only relevant for private documents.
|
|
793
|
+
* @min 600
|
|
794
|
+
* @max 86400
|
|
764
795
|
*/
|
|
765
|
-
|
|
796
|
+
urlExpirationInSeconds?: number | null;
|
|
766
797
|
/**
|
|
767
|
-
*
|
|
768
|
-
*
|
|
769
|
-
* @maxLength 20
|
|
798
|
+
* Whether the link downloads the file or opens the file in the browser.
|
|
799
|
+
* Default: `ATTACHMENT`
|
|
770
800
|
*/
|
|
771
|
-
|
|
801
|
+
contentDisposition?: ContentDispositionWithLiterals;
|
|
802
|
+
}
|
|
803
|
+
declare enum ContentDisposition {
|
|
804
|
+
/** The link downloads the file. */
|
|
805
|
+
ATTACHMENT = "ATTACHMENT",
|
|
806
|
+
/** The link opens the file in the browser. */
|
|
807
|
+
INLINE = "INLINE"
|
|
808
|
+
}
|
|
809
|
+
/** @enumType */
|
|
810
|
+
type ContentDispositionWithLiterals = ContentDisposition | 'ATTACHMENT' | 'INLINE';
|
|
811
|
+
interface DownloadDocumentResponse {
|
|
812
|
+
/** Download URL. */
|
|
813
|
+
downloadUrl?: string;
|
|
814
|
+
/** URL expiration timestamp. Not provided for public documents because their links do not expire. */
|
|
815
|
+
expirationDate?: Date | null;
|
|
816
|
+
}
|
|
817
|
+
interface GetDownloadUrlRequest extends GetDownloadUrlRequestDocumentOneOf {
|
|
772
818
|
/**
|
|
773
|
-
*
|
|
774
|
-
* @
|
|
775
|
-
* @maxLength 20
|
|
819
|
+
* ID of the Document to retrieve
|
|
820
|
+
* @format GUID
|
|
776
821
|
*/
|
|
777
|
-
|
|
822
|
+
documentId?: string | null;
|
|
778
823
|
/**
|
|
779
|
-
*
|
|
780
|
-
* Must be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)
|
|
824
|
+
* ID of the Document to retrieve
|
|
781
825
|
* @minLength 1
|
|
782
826
|
* @maxLength 100
|
|
783
827
|
*/
|
|
784
828
|
externalId?: string | null;
|
|
785
829
|
/**
|
|
786
|
-
*
|
|
787
|
-
* @
|
|
788
|
-
|
|
789
|
-
createdDate?: Date | null;
|
|
790
|
-
/**
|
|
791
|
-
* Date settings were updated.
|
|
792
|
-
* @readonly
|
|
830
|
+
* Signed file token
|
|
831
|
+
* @minLength 1
|
|
832
|
+
* @maxLength 500
|
|
793
833
|
*/
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
pageOverflow?: PageOverflowWithLiterals;
|
|
800
|
-
}
|
|
801
|
-
interface TextSetting {
|
|
802
|
-
/**
|
|
803
|
-
* Font family class name
|
|
804
|
-
* @maxLength 20
|
|
834
|
+
fileToken?: string | null;
|
|
835
|
+
/**
|
|
836
|
+
* URL expiration time. Only relevant for private documents.
|
|
837
|
+
* @min 600
|
|
838
|
+
* @max 86400
|
|
805
839
|
*/
|
|
806
|
-
|
|
840
|
+
urlExpirationInSeconds?: number | null;
|
|
841
|
+
/** @maxLength 100 */
|
|
842
|
+
downloadButtonText?: string | null;
|
|
807
843
|
/**
|
|
808
|
-
*
|
|
809
|
-
*
|
|
810
|
-
* @maxLength 20
|
|
844
|
+
* Whether the link downloads the file or opens the file in the browser.
|
|
845
|
+
* Default: `ATTACHMENT`
|
|
811
846
|
*/
|
|
812
|
-
|
|
847
|
+
contentDisposition?: ContentDispositionWithLiterals;
|
|
848
|
+
}
|
|
849
|
+
/** @oneof */
|
|
850
|
+
interface GetDownloadUrlRequestDocumentOneOf {
|
|
813
851
|
/**
|
|
814
|
-
*
|
|
815
|
-
* @
|
|
852
|
+
* ID of the Document to retrieve
|
|
853
|
+
* @format GUID
|
|
816
854
|
*/
|
|
817
|
-
|
|
855
|
+
documentId?: string | null;
|
|
818
856
|
/**
|
|
819
|
-
*
|
|
820
|
-
* @minLength
|
|
821
|
-
* @maxLength
|
|
857
|
+
* ID of the Document to retrieve
|
|
858
|
+
* @minLength 1
|
|
859
|
+
* @maxLength 100
|
|
822
860
|
*/
|
|
823
|
-
|
|
861
|
+
externalId?: string | null;
|
|
824
862
|
/**
|
|
825
|
-
*
|
|
826
|
-
* @
|
|
863
|
+
* Signed file token
|
|
864
|
+
* @minLength 1
|
|
865
|
+
* @maxLength 500
|
|
827
866
|
*/
|
|
828
|
-
|
|
829
|
-
/** Text content setting */
|
|
830
|
-
textContent?: TextContent[];
|
|
867
|
+
fileToken?: string | null;
|
|
831
868
|
}
|
|
832
|
-
interface
|
|
869
|
+
interface GetDownloadUrlResponse {
|
|
870
|
+
/** Download URL. */
|
|
871
|
+
downloadUrl?: string | null;
|
|
872
|
+
/** URL expiration timestamp. Not provided for public documents because their links do not expire. */
|
|
873
|
+
expirationDate?: Date | null;
|
|
833
874
|
/**
|
|
834
|
-
*
|
|
835
|
-
* @
|
|
875
|
+
* Document ID.
|
|
876
|
+
* @format GUID
|
|
836
877
|
*/
|
|
837
|
-
|
|
838
|
-
/**
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
interface ImageSetting {
|
|
843
|
-
/** Wix media Image */
|
|
844
|
-
image?: Image;
|
|
845
|
-
/** Image resizing mode */
|
|
846
|
-
resize?: ResizeOptionWithLiterals;
|
|
847
|
-
}
|
|
848
|
-
interface Image {
|
|
849
|
-
/** WixMedia image ID. */
|
|
850
|
-
id?: string;
|
|
851
|
-
/** Image URL. */
|
|
852
|
-
url?: string;
|
|
878
|
+
documentId?: string | null;
|
|
879
|
+
/** Document render status. */
|
|
880
|
+
renderStatus?: RenderStatusWithLiterals;
|
|
881
|
+
/** Download URL. */
|
|
882
|
+
downloadPageUrl?: string | null;
|
|
853
883
|
/**
|
|
854
|
-
*
|
|
855
|
-
* @
|
|
884
|
+
* Client defined content checksum. Can be used for content comparison.
|
|
885
|
+
* @minLength 1
|
|
886
|
+
* @maxLength 64
|
|
856
887
|
*/
|
|
857
|
-
|
|
888
|
+
contentChecksum?: string | null;
|
|
889
|
+
}
|
|
890
|
+
interface DownloadDocumentSourceRequest {
|
|
858
891
|
/**
|
|
859
|
-
*
|
|
860
|
-
* @
|
|
892
|
+
* ID of the Document to retrieve
|
|
893
|
+
* @format GUID
|
|
861
894
|
*/
|
|
862
|
-
|
|
863
|
-
/** Image alt text. */
|
|
864
|
-
altText?: string | null;
|
|
895
|
+
documentId: string;
|
|
865
896
|
/**
|
|
866
|
-
*
|
|
867
|
-
*
|
|
897
|
+
* Whether the link downloads the file or opens the file in the browser.
|
|
898
|
+
* Default: `ATTACHMENT`
|
|
868
899
|
*/
|
|
869
|
-
|
|
870
|
-
}
|
|
871
|
-
interface FocalPoint {
|
|
872
|
-
/** X-coordinate of the focal point. */
|
|
873
|
-
x?: number;
|
|
874
|
-
/** Y-coordinate of the focal point. */
|
|
875
|
-
y?: number;
|
|
876
|
-
/** crop by height */
|
|
877
|
-
height?: number | null;
|
|
878
|
-
/** crop by width */
|
|
879
|
-
width?: number | null;
|
|
900
|
+
contentDisposition?: ContentDispositionWithLiterals;
|
|
880
901
|
}
|
|
881
|
-
|
|
882
|
-
/**
|
|
883
|
-
|
|
884
|
-
/** Enables user to manually crop image to fit image field */
|
|
885
|
-
CROP = "CROP"
|
|
902
|
+
interface DownloadDocumentSourceResponse {
|
|
903
|
+
/** Download URL. Expires after 10 minutes. */
|
|
904
|
+
downloadUrl?: string;
|
|
886
905
|
}
|
|
887
|
-
|
|
888
|
-
type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';
|
|
889
|
-
interface SelectSetting {
|
|
890
|
-
/** Selected value */
|
|
891
|
-
value?: string | null;
|
|
906
|
+
interface MessageEnvelope {
|
|
892
907
|
/**
|
|
893
|
-
*
|
|
894
|
-
* @
|
|
895
|
-
* @maxLength 7
|
|
908
|
+
* App instance ID.
|
|
909
|
+
* @format GUID
|
|
896
910
|
*/
|
|
897
|
-
|
|
911
|
+
instanceId?: string | null;
|
|
898
912
|
/**
|
|
899
|
-
*
|
|
900
|
-
* @
|
|
901
|
-
* @maxLength 7
|
|
913
|
+
* Event type.
|
|
914
|
+
* @maxLength 150
|
|
902
915
|
*/
|
|
903
|
-
|
|
904
|
-
/**
|
|
905
|
-
|
|
916
|
+
eventType?: string;
|
|
917
|
+
/** The identification type and identity data. */
|
|
918
|
+
identity?: IdentificationData;
|
|
919
|
+
/** Stringify payload. */
|
|
920
|
+
data?: string;
|
|
921
|
+
/** Details related to the account */
|
|
922
|
+
accountInfo?: AccountInfo;
|
|
906
923
|
}
|
|
907
|
-
interface
|
|
924
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
908
925
|
/**
|
|
909
|
-
*
|
|
910
|
-
* @
|
|
911
|
-
* @maxLength 9
|
|
926
|
+
* ID of a site visitor that has not logged in to the site.
|
|
927
|
+
* @format GUID
|
|
912
928
|
*/
|
|
913
|
-
|
|
914
|
-
/** Wix media Image */
|
|
915
|
-
image?: Image;
|
|
916
|
-
}
|
|
917
|
-
interface SettingsGroup {
|
|
929
|
+
anonymousVisitorId?: string;
|
|
918
930
|
/**
|
|
919
|
-
*
|
|
920
|
-
* @
|
|
921
|
-
* @maxLength 50
|
|
931
|
+
* ID of a site visitor that has logged in to the site.
|
|
932
|
+
* @format GUID
|
|
922
933
|
*/
|
|
923
|
-
|
|
934
|
+
memberId?: string;
|
|
924
935
|
/**
|
|
925
|
-
*
|
|
926
|
-
* @
|
|
936
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
937
|
+
* @format GUID
|
|
927
938
|
*/
|
|
928
|
-
|
|
939
|
+
wixUserId?: string;
|
|
929
940
|
/**
|
|
930
|
-
*
|
|
931
|
-
* @
|
|
941
|
+
* ID of an app.
|
|
942
|
+
* @format GUID
|
|
932
943
|
*/
|
|
933
|
-
|
|
944
|
+
appId?: string;
|
|
945
|
+
/** @readonly */
|
|
946
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
947
|
+
}
|
|
948
|
+
/** @oneof */
|
|
949
|
+
interface IdentificationDataIdOneOf {
|
|
934
950
|
/**
|
|
935
|
-
*
|
|
936
|
-
* @
|
|
951
|
+
* ID of a site visitor that has not logged in to the site.
|
|
952
|
+
* @format GUID
|
|
937
953
|
*/
|
|
938
|
-
|
|
954
|
+
anonymousVisitorId?: string;
|
|
939
955
|
/**
|
|
940
|
-
*
|
|
941
|
-
* @
|
|
956
|
+
* ID of a site visitor that has logged in to the site.
|
|
957
|
+
* @format GUID
|
|
942
958
|
*/
|
|
943
|
-
|
|
959
|
+
memberId?: string;
|
|
944
960
|
/**
|
|
945
|
-
*
|
|
946
|
-
* @
|
|
961
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
962
|
+
* @format GUID
|
|
947
963
|
*/
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
/** @enumType */
|
|
955
|
-
type PaperSizeWithLiterals = PaperSize | 'A4_PORTRAIT' | 'A4_LANDSCAPE';
|
|
956
|
-
declare enum PageOverflow {
|
|
957
|
-
CONTENT_HIDDEN = "CONTENT_HIDDEN",
|
|
958
|
-
CONTENT_BREAK = "CONTENT_BREAK"
|
|
964
|
+
wixUserId?: string;
|
|
965
|
+
/**
|
|
966
|
+
* ID of an app.
|
|
967
|
+
* @format GUID
|
|
968
|
+
*/
|
|
969
|
+
appId?: string;
|
|
959
970
|
}
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
HTML = "HTML"
|
|
971
|
+
declare enum WebhookIdentityType {
|
|
972
|
+
UNKNOWN = "UNKNOWN",
|
|
973
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
974
|
+
MEMBER = "MEMBER",
|
|
975
|
+
WIX_USER = "WIX_USER",
|
|
976
|
+
APP = "APP"
|
|
967
977
|
}
|
|
968
978
|
/** @enumType */
|
|
969
|
-
type
|
|
970
|
-
interface
|
|
979
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
980
|
+
interface AccountInfo {
|
|
971
981
|
/**
|
|
972
|
-
*
|
|
982
|
+
* ID of the Wix account associated with the event.
|
|
973
983
|
* @format GUID
|
|
974
984
|
*/
|
|
975
|
-
|
|
976
|
-
/** Output format, defaults to PDF. */
|
|
977
|
-
outputFormat?: RenderFormatWithLiterals;
|
|
978
|
-
}
|
|
979
|
-
interface GetRendererInfoRequest {
|
|
980
|
-
}
|
|
981
|
-
interface GetRendererInfoResponse {
|
|
982
|
-
/** Renderer info */
|
|
983
|
-
info?: Record<string, string>;
|
|
984
|
-
}
|
|
985
|
-
interface GetCachedHtmlRequest {
|
|
985
|
+
accountId?: string | null;
|
|
986
986
|
/**
|
|
987
|
-
*
|
|
988
|
-
* @
|
|
987
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
988
|
+
* @format GUID
|
|
989
989
|
*/
|
|
990
|
-
|
|
990
|
+
parentAccountId?: string | null;
|
|
991
991
|
/**
|
|
992
|
-
*
|
|
992
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
993
993
|
* @format GUID
|
|
994
994
|
*/
|
|
995
|
-
|
|
995
|
+
siteId?: string | null;
|
|
996
996
|
}
|
|
997
997
|
/** @docsIgnore */
|
|
998
998
|
type DownloadDocumentApplicationErrors = {
|
|
@@ -1017,6 +1017,8 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
1017
1017
|
__responseType: Q;
|
|
1018
1018
|
__originalResponseType: R;
|
|
1019
1019
|
};
|
|
1020
|
+
declare function getDownloadPage(): __PublicMethodMetaInfo<'GET', {}, GetDownloadPageRequest$1, GetDownloadPageRequest, RawHttpResponse$1, RawHttpResponse>;
|
|
1021
|
+
declare function redirectToDocument(): __PublicMethodMetaInfo<'GET', {}, RedirectToDocumentRequest$1, RedirectToDocumentRequest, RawHttpResponse$1, RawHttpResponse>;
|
|
1020
1022
|
declare function createDocument(): __PublicMethodMetaInfo<'POST', {}, CreateDocumentRequest$1, CreateDocumentRequest, CreateDocumentResponse$1, CreateDocumentResponse>;
|
|
1021
1023
|
declare function getDocument(): __PublicMethodMetaInfo<'GET', {
|
|
1022
1024
|
documentId: string;
|
|
@@ -1035,7 +1037,5 @@ declare function getDownloadUrl(): __PublicMethodMetaInfo<'GET', {}, GetDownload
|
|
|
1035
1037
|
declare function downloadDocumentSource(): __PublicMethodMetaInfo<'GET', {
|
|
1036
1038
|
documentId: string;
|
|
1037
1039
|
}, DownloadDocumentSourceRequest$1, DownloadDocumentSourceRequest, DownloadDocumentSourceResponse$1, DownloadDocumentSourceResponse>;
|
|
1038
|
-
declare function getDownloadPage(): __PublicMethodMetaInfo<'GET', {}, GetDownloadPageRequest$1, GetDownloadPageRequest, RawHttpResponse$1, RawHttpResponse>;
|
|
1039
|
-
declare function redirectToDocument(): __PublicMethodMetaInfo<'GET', {}, RedirectToDocumentRequest$1, RedirectToDocumentRequest, RawHttpResponse$1, RawHttpResponse>;
|
|
1040
1040
|
|
|
1041
1041
|
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, 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 };
|