@wix/auto_sdk_papyrus_documents 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +115 -0
- package/build/cjs/index.js +1101 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1465 -0
- package/build/cjs/index.typings.js +863 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1030 -0
- package/build/cjs/meta.js +705 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/schemas.d.ts +411 -0
- package/build/cjs/schemas.js +658 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +115 -0
- package/build/es/index.mjs +1050 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1465 -0
- package/build/es/index.typings.mjs +817 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1030 -0
- package/build/es/meta.mjs +658 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/schemas.d.mts +411 -0
- package/build/es/schemas.mjs +602 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +115 -0
- package/build/internal/cjs/index.js +1101 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1465 -0
- package/build/internal/cjs/index.typings.js +863 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1030 -0
- package/build/internal/cjs/meta.js +705 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/schemas.d.ts +411 -0
- package/build/internal/cjs/schemas.js +658 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +115 -0
- package/build/internal/es/index.mjs +1050 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +1465 -0
- package/build/internal/es/index.typings.mjs +817 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1030 -0
- package/build/internal/es/meta.mjs +658 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/schemas.d.mts +411 -0
- package/build/internal/es/schemas.mjs +602 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +61 -0
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { RawHttpResponse, CreateDocumentOptions, GetDocumentOptions, DeleteDocumentResponse, UpdateDocumentOptions, UpdateDocumentResponse, DownloadDocumentOptions, DownloadDocumentResponse, DownloadDocumentApplicationErrors, GetDownloadUrlOptions, GetDownloadUrlResponse, DownloadDocumentSourceOptions, DownloadDocumentSourceResponse, DownloadDocumentSourceApplicationErrors, DocumentCreatedEnvelope, DocumentDeletedEnvelope, DocumentRenderDelayedEnvelope, DocumentRenderFailedEnvelope, DocumentRenderedEnvelope, DocumentUpdatedEnvelope, DocumentQuery, QueryDocumentOptions, typedQueryDocument, DocumentsQueryBuilder } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, BackgroundSetting, BaseEventMetadata, CommonQueryWithEntityContext, ContentDisposition, ContentDispositionWithLiterals, CreateDocumentRequest, CreateDocumentResponse, CursorPaging, Cursors, DebugOptions, DeleteDocumentByExternalIdRequest, DeleteDocumentByExternalIdResponse, DeleteDocumentRequest, Document, DocumentContent, DocumentFile, DocumentQuerySpec, DocumentRenderDelayed, DocumentRenderFailed, DocumentRendered, DocumentsQueryResult, DomainEvent, DomainEventBodyOneOf, DownloadDocumentRequest, DownloadDocumentSourceRequest, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FocalPoint, Format, FormatWithLiterals, GetCachedHtmlRequest, GetDocumentRequest, GetDocumentResponse, GetDownloadPageRequest, GetDownloadUrlOptionsDocumentOneOf, GetDownloadUrlRequest, GetDownloadUrlRequestDocumentOneOf, GetRendererInfoRequest, GetRendererInfoResponse, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, ImageSetting, MessageEnvelope, PageOverflow, PageOverflowWithLiterals, PageSettings, Paging, PagingMetadataV2, PaperSize, PaperSizeWithLiterals, QueryDocumentRequest, QueryDocumentResponse, QueryV2, QueryV2PagingMethodOneOf, RedirectToDocumentRequest, RenderDelayedEventConfig, RenderDocumentByIdRequest, RenderDocumentRequest, RenderFormat, RenderFormatWithLiterals, RenderStatus, RenderStatusWithLiterals, RequestedFields, RequestedFieldsWithLiterals, ResizeOption, ResizeOptionWithLiterals, RestoreInfo, SelectSetting, SettingsGroup, SortOrder, SortOrderWithLiterals, Sorting, TemplateSettings, TemplateSettingsOverride, TextContent, TextSetting, UpdateDocumentRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixMpClientVersion, WixMpClientVersionWithLiterals, utils } from './index.typings.js';
|
|
4
|
+
|
|
5
|
+
declare function getDownloadPage$1(httpClient: HttpClient): GetDownloadPageSignature;
|
|
6
|
+
interface GetDownloadPageSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Get Document.
|
|
9
|
+
*/
|
|
10
|
+
(file: string | null): Promise<RawHttpResponse>;
|
|
11
|
+
}
|
|
12
|
+
declare function redirectToDocument$1(httpClient: HttpClient): RedirectToDocumentSignature;
|
|
13
|
+
interface RedirectToDocumentSignature {
|
|
14
|
+
/**
|
|
15
|
+
* Get Document.
|
|
16
|
+
*/
|
|
17
|
+
(file: string | null): Promise<RawHttpResponse>;
|
|
18
|
+
}
|
|
19
|
+
declare function createDocument$1(httpClient: HttpClient): CreateDocumentSignature;
|
|
20
|
+
interface CreateDocumentSignature {
|
|
21
|
+
/**
|
|
22
|
+
* Creates a new Document
|
|
23
|
+
* @returns The created Document
|
|
24
|
+
*/
|
|
25
|
+
(options?: CreateDocumentOptions): Promise<Document>;
|
|
26
|
+
}
|
|
27
|
+
declare function getDocument$1(httpClient: HttpClient): GetDocumentSignature;
|
|
28
|
+
interface GetDocumentSignature {
|
|
29
|
+
/**
|
|
30
|
+
* Get Document.
|
|
31
|
+
* @param - ID of the Document to retrieve
|
|
32
|
+
* @returns The retrieved Document
|
|
33
|
+
*/
|
|
34
|
+
(documentId: string, options?: GetDocumentOptions): Promise<Document>;
|
|
35
|
+
}
|
|
36
|
+
declare function deleteDocument$1(httpClient: HttpClient): DeleteDocumentSignature;
|
|
37
|
+
interface DeleteDocumentSignature {
|
|
38
|
+
/**
|
|
39
|
+
* Deletes Document.
|
|
40
|
+
* @param - ID of the Document to delete
|
|
41
|
+
*/
|
|
42
|
+
(documentId: string): Promise<DeleteDocumentResponse>;
|
|
43
|
+
}
|
|
44
|
+
declare function updateDocument$1(httpClient: HttpClient): UpdateDocumentSignature;
|
|
45
|
+
interface UpdateDocumentSignature {
|
|
46
|
+
/**
|
|
47
|
+
* Updates Document. Currently supports only render_status, file_id and static_url updates.
|
|
48
|
+
* @param - Document ID.
|
|
49
|
+
*/
|
|
50
|
+
(_id: string | null, options?: UpdateDocumentOptions): Promise<UpdateDocumentResponse>;
|
|
51
|
+
}
|
|
52
|
+
declare function downloadDocument$1(httpClient: HttpClient): DownloadDocumentSignature;
|
|
53
|
+
interface DownloadDocumentSignature {
|
|
54
|
+
/**
|
|
55
|
+
* Downloads document.
|
|
56
|
+
* @param - ID of the Document to retrieve
|
|
57
|
+
*/
|
|
58
|
+
(documentId: string, options?: DownloadDocumentOptions): Promise<DownloadDocumentResponse & {
|
|
59
|
+
__applicationErrorsType?: DownloadDocumentApplicationErrors;
|
|
60
|
+
}>;
|
|
61
|
+
}
|
|
62
|
+
declare function getDownloadUrl$1(httpClient: HttpClient): GetDownloadUrlSignature;
|
|
63
|
+
interface GetDownloadUrlSignature {
|
|
64
|
+
/**
|
|
65
|
+
* Resolves document download url.
|
|
66
|
+
*/
|
|
67
|
+
(options?: GetDownloadUrlOptions): Promise<GetDownloadUrlResponse>;
|
|
68
|
+
}
|
|
69
|
+
declare function downloadDocumentSource$1(httpClient: HttpClient): DownloadDocumentSourceSignature;
|
|
70
|
+
interface DownloadDocumentSourceSignature {
|
|
71
|
+
/**
|
|
72
|
+
* Downloads document.
|
|
73
|
+
* @param - ID of the Document to retrieve
|
|
74
|
+
*/
|
|
75
|
+
(documentId: string, options?: DownloadDocumentSourceOptions): Promise<DownloadDocumentSourceResponse & {
|
|
76
|
+
__applicationErrorsType?: DownloadDocumentSourceApplicationErrors;
|
|
77
|
+
}>;
|
|
78
|
+
}
|
|
79
|
+
declare const onDocumentCreated$1: EventDefinition<DocumentCreatedEnvelope, "wix.papyrus.v1.document_created">;
|
|
80
|
+
declare const onDocumentDeleted$1: EventDefinition<DocumentDeletedEnvelope, "wix.papyrus.v1.document_deleted">;
|
|
81
|
+
declare const onDocumentRenderDelayed$1: EventDefinition<DocumentRenderDelayedEnvelope, "wix.papyrus.v1.document_document_render_delayed">;
|
|
82
|
+
declare const onDocumentRenderFailed$1: EventDefinition<DocumentRenderFailedEnvelope, "wix.papyrus.v1.document_document_render_failed">;
|
|
83
|
+
declare const onDocumentRendered$1: EventDefinition<DocumentRenderedEnvelope, "wix.papyrus.v1.document_document_rendered">;
|
|
84
|
+
declare const onDocumentUpdated$1: EventDefinition<DocumentUpdatedEnvelope, "wix.papyrus.v1.document_updated">;
|
|
85
|
+
|
|
86
|
+
declare function customQueryDocument(httpClient: HttpClient): {
|
|
87
|
+
(query: DocumentQuery, options?: QueryDocumentOptions): ReturnType<typeof typedQueryDocument>;
|
|
88
|
+
(options?: QueryDocumentOptions): DocumentsQueryBuilder;
|
|
89
|
+
};
|
|
90
|
+
declare const getDownloadPage: MaybeContext<BuildRESTFunction<typeof getDownloadPage$1> & typeof getDownloadPage$1>;
|
|
91
|
+
declare const redirectToDocument: MaybeContext<BuildRESTFunction<typeof redirectToDocument$1> & typeof redirectToDocument$1>;
|
|
92
|
+
declare const createDocument: MaybeContext<BuildRESTFunction<typeof createDocument$1> & typeof createDocument$1>;
|
|
93
|
+
declare const getDocument: MaybeContext<BuildRESTFunction<typeof getDocument$1> & typeof getDocument$1>;
|
|
94
|
+
declare const deleteDocument: MaybeContext<BuildRESTFunction<typeof deleteDocument$1> & typeof deleteDocument$1>;
|
|
95
|
+
declare const updateDocument: MaybeContext<BuildRESTFunction<typeof updateDocument$1> & typeof updateDocument$1>;
|
|
96
|
+
declare const downloadDocument: MaybeContext<BuildRESTFunction<typeof downloadDocument$1> & typeof downloadDocument$1>;
|
|
97
|
+
declare const getDownloadUrl: MaybeContext<BuildRESTFunction<typeof getDownloadUrl$1> & typeof getDownloadUrl$1>;
|
|
98
|
+
declare const downloadDocumentSource: MaybeContext<BuildRESTFunction<typeof downloadDocumentSource$1> & typeof downloadDocumentSource$1>;
|
|
99
|
+
declare const queryDocument: MaybeContext<BuildRESTFunction<typeof customQueryDocument> & typeof customQueryDocument>;
|
|
100
|
+
/** */
|
|
101
|
+
declare const onDocumentCreated: BuildEventDefinition<typeof onDocumentCreated$1> & typeof onDocumentCreated$1;
|
|
102
|
+
/** */
|
|
103
|
+
declare const onDocumentDeleted: BuildEventDefinition<typeof onDocumentDeleted$1> & typeof onDocumentDeleted$1;
|
|
104
|
+
/**
|
|
105
|
+
* Event is sent after specific time if configured and RenderStatus is ACCEPTED/RENDERING.
|
|
106
|
+
*/
|
|
107
|
+
declare const onDocumentRenderDelayed: BuildEventDefinition<typeof onDocumentRenderDelayed$1> & typeof onDocumentRenderDelayed$1;
|
|
108
|
+
/** */
|
|
109
|
+
declare const onDocumentRenderFailed: BuildEventDefinition<typeof onDocumentRenderFailed$1> & typeof onDocumentRenderFailed$1;
|
|
110
|
+
/** */
|
|
111
|
+
declare const onDocumentRendered: BuildEventDefinition<typeof onDocumentRendered$1> & typeof onDocumentRendered$1;
|
|
112
|
+
/** */
|
|
113
|
+
declare const onDocumentUpdated: BuildEventDefinition<typeof onDocumentUpdated$1> & typeof onDocumentUpdated$1;
|
|
114
|
+
|
|
115
|
+
export { CreateDocumentOptions, DeleteDocumentResponse, DocumentCreatedEnvelope, DocumentDeletedEnvelope, DocumentQuery, DocumentRenderDelayedEnvelope, DocumentRenderFailedEnvelope, DocumentRenderedEnvelope, DocumentUpdatedEnvelope, DocumentsQueryBuilder, DownloadDocumentApplicationErrors, DownloadDocumentOptions, DownloadDocumentResponse, DownloadDocumentSourceApplicationErrors, DownloadDocumentSourceOptions, DownloadDocumentSourceResponse, GetDocumentOptions, GetDownloadUrlOptions, GetDownloadUrlResponse, QueryDocumentOptions, RawHttpResponse, UpdateDocumentOptions, UpdateDocumentResponse, createDocument, deleteDocument, downloadDocument, downloadDocumentSource, getDocument, getDownloadPage, getDownloadUrl, onDocumentCreated, onDocumentDeleted, onDocumentRenderDelayed, onDocumentRenderFailed, onDocumentRendered, onDocumentUpdated, queryDocument, redirectToDocument, updateDocument };
|