@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 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../meta.ts","../../../src/papyrus-v1-document-documents.http.ts","../../../src/papyrus-v1-document-documents.types.ts","../../../src/papyrus-v1-document-documents.meta.ts"],"sourcesContent":["export * from './src/papyrus-v1-document-documents.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPapyrusV1DocumentServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._base_domain_': [\n {\n srcPath: '/papyrus-document',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/papyrus-document/v1/documents',\n destPath: '/v1/documents',\n },\n ],\n 'papyrus.wixapps.net': [\n {\n srcPath: '/download',\n destPath: '/download',\n },\n {\n srcPath: '/papyrus-document',\n destPath: '',\n },\n {\n srcPath: '/view',\n destPath: '/view',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/papyrus-document',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/papyrus-document',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveWixPapyrusV1DownloadPageControllerUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._base_domain_': [\n {\n srcPath: '/papyrus-document',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/papyrus-document/v1/documents',\n destPath: '/v1/documents',\n },\n ],\n 'papyrus.wixapps.net': [\n {\n srcPath: '/download',\n destPath: '/download',\n },\n {\n srcPath: '/papyrus-document',\n destPath: '',\n },\n {\n srcPath: '/view',\n destPath: '/view',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/papyrus-document',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/papyrus-document',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_papyrus_documents';\n\n/** Get Document. */\nexport function getDownloadPage(payload: object): RequestOptionsFactory<any> {\n function __getDownloadPage({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.document',\n method: 'GET' as any,\n methodFqn: 'wix.papyrus.v1.DownloadPageController.GetDownloadPage',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1DownloadPageControllerUrl({\n protoPath: '/download',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'body' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDownloadPage;\n}\n\n/** Get Document. */\nexport function redirectToDocument(\n payload: object\n): RequestOptionsFactory<any> {\n function __redirectToDocument({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.document',\n method: 'GET' as any,\n methodFqn: 'wix.papyrus.v1.DownloadPageController.RedirectToDocument',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1DownloadPageControllerUrl({\n protoPath: '/view',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'body' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __redirectToDocument;\n}\n\n/** Creates a new Document */\nexport function createDocument(payload: object): RequestOptionsFactory<any> {\n function __createDocument({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'document.createdDate' },\n { path: 'document.updatedDate' },\n { path: 'document.expirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.document',\n method: 'POST' as any,\n methodFqn: 'wix.papyrus.v1.DocumentService.CreateDocument',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1DocumentServiceUrl({\n protoPath: '/v1/documents',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'document.createdDate' },\n { path: 'document.updatedDate' },\n { path: 'document.expirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createDocument;\n}\n\n/** Get Document. */\nexport function getDocument(payload: object): RequestOptionsFactory<any> {\n function __getDocument({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.document',\n method: 'GET' as any,\n methodFqn: 'wix.papyrus.v1.DocumentService.GetDocument',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1DocumentServiceUrl({\n protoPath: '/v1/documents/{documentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'document.createdDate' },\n { path: 'document.updatedDate' },\n { path: 'document.expirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDocument;\n}\n\n/** Deletes Document. */\nexport function deleteDocument(payload: object): RequestOptionsFactory<any> {\n function __deleteDocument({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.document',\n method: 'DELETE' as any,\n methodFqn: 'wix.papyrus.v1.DocumentService.DeleteDocument',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1DocumentServiceUrl({\n protoPath: '/v1/documents/{documentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'document.createdDate' },\n { path: 'document.updatedDate' },\n { path: 'document.expirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __deleteDocument;\n}\n\n/** Query Documents using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) */\nexport function queryDocument(payload: object): RequestOptionsFactory<any> {\n function __queryDocument({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.document',\n method: 'POST' as any,\n methodFqn: 'wix.papyrus.v1.DocumentService.QueryDocument',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1DocumentServiceUrl({\n protoPath: '/v1/documents/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'documents.createdDate' },\n { path: 'documents.updatedDate' },\n { path: 'documents.expirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryDocument;\n}\n\n/** Updates Document. Currently supports only render_status, file_id and static_url updates. */\nexport function updateDocument(payload: object): RequestOptionsFactory<any> {\n function __updateDocument({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.document',\n method: 'PATCH' as any,\n methodFqn: 'wix.papyrus.v1.DocumentService.UpdateDocument',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1DocumentServiceUrl({\n protoPath: '/v1/documents/{id}',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'document.createdDate' },\n { path: 'document.updatedDate' },\n { path: 'document.expirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateDocument;\n}\n\n/** Downloads document. */\nexport function downloadDocument(payload: object): RequestOptionsFactory<any> {\n function __downloadDocument({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.document',\n method: 'GET' as any,\n methodFqn: 'wix.papyrus.v1.DocumentService.DownloadDocument',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1DocumentServiceUrl({\n protoPath: '/v1/documents/download/{documentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'expirationDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __downloadDocument;\n}\n\n/** Resolves document download url. */\nexport function getDownloadUrl(payload: object): RequestOptionsFactory<any> {\n function __getDownloadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.document',\n method: 'GET' as any,\n methodFqn: 'wix.papyrus.v1.DocumentService.GetDownloadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1DocumentServiceUrl({\n protoPath: '/v1/documents/download-url',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'expirationDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDownloadUrl;\n}\n\n/** Downloads document. */\nexport function downloadDocumentSource(\n payload: object\n): RequestOptionsFactory<any> {\n function __downloadDocumentSource({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.document',\n method: 'GET' as any,\n methodFqn: 'wix.papyrus.v1.DocumentService.DownloadDocumentSource',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1DocumentServiceUrl({\n protoPath: '/v1/documents/download/{documentId}/source',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __downloadDocumentSource;\n}\n","/** Document is the main entity of DocumentService. */\nexport interface Document {\n /**\n * Document ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Represents the time this Document was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Represents the time this Document was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Document render status.\n * @readonly\n */\n renderStatus?: RenderStatusWithLiterals;\n /**\n * URL to download document. Returned only when Document is in `READY` state.\n * @format WEB_URL\n * @readonly\n */\n downloadUrl?: string | null;\n /**\n * Template ID. When this parameter used the document will be rendered with this template default settings\n * @minLength 1\n * @maxLength 20\n * @immutable\n */\n templateId?: string | null;\n /**\n * Unique per tenant external ID, for example order number. Used to retrieve Document later.\n * @minLength 1\n * @maxLength 100\n * @immutable\n */\n externalId?: string | null;\n /**\n * Unique per tenant template external ID, for example ticket definition ID. Used to lookup corresponding template & template settings.\n * @maxLength 100\n * @immutable\n */\n templateSettingsExternalId?: string | null;\n /**\n * Template settings ID.\n * @format GUID\n * @immutable\n */\n templateSettingsId?: string | null;\n /**\n * The app slug of the template\n * @minLength 1\n * @maxLength 20\n * @immutable\n */\n appSlug?: string | null;\n /**\n * The type of the template.\n * @minLength 1\n * @maxLength 20\n * @immutable\n */\n templateType?: string | null;\n /**\n * Document content that is injected into template.\n * @immutable\n */\n content?: DocumentContent;\n /**\n * Number of hours after which document will be eventually expired and its content erased.\n * @min 1\n * @max 43800\n * @immutable\n */\n expiresInHours?: number;\n /**\n * Represents the time this document becomes expired.\n * @readonly\n */\n expirationDate?: Date | null;\n /**\n * Document format. Defaults to `PDF`.\n * @immutable\n */\n format?: FormatWithLiterals;\n /**\n * Whether the link to the uploaded document is public or private.\n * For public document static URL will be returned.\n * For private document temporary URL will be generated by DocumentService.DownloadDocument.\n * @immutable\n */\n public?: boolean | null;\n /**\n * Optional filename (without extension) to be used for the downloadable document.\n * @minLength 1\n * @maxLength 50\n */\n fileName?: string | null;\n /**\n * Client defined content checksum. Can be used for content comparison.\n * @minLength 1\n * @maxLength 64\n * @immutable\n */\n contentChecksum?: string | null;\n /** Rendering notification config. */\n renderDelayedEventConfig?: RenderDelayedEventConfig;\n /**\n * Size in bytes of a rendered document. Returned only when Document is in `READY` state.\n * @readonly\n */\n sizeInBytes?: number | null;\n}\n\nexport enum RenderStatus {\n UNKNOWN = 'UNKNOWN',\n /** Document was accepted and is waiting to be rendered. */\n ACCEPTED = 'ACCEPTED',\n /** Rendering is in progress. */\n RENDERING = 'RENDERING',\n /** Rendering finished successfully and document is ready to download. */\n READY = 'READY',\n /** Rendering failed. */\n FAILED = 'FAILED',\n /** Rendered document expired and is no longer available for download. */\n EXPIRED = 'EXPIRED',\n}\n\n/** @enumType */\nexport type RenderStatusWithLiterals =\n | RenderStatus\n | 'UNKNOWN'\n | 'ACCEPTED'\n | 'RENDERING'\n | 'READY'\n | 'FAILED'\n | 'EXPIRED';\n\nexport interface DocumentContent {\n /**\n * Document pages. Each page is reference as $page.\n * @minSize 1\n * @maxSize 100\n */\n pages?: Record<string, any>[] | null;\n /** Other document content referenced by $content variable */\n content?: Record<string, any> | null;\n /**\n * ISO 639-1 language code of content (used in translations).\n * @format LANGUAGE\n */\n language?: string;\n /**\n * e.g. en-US.\n * @minLength 2\n * @maxLength 35\n */\n locale?: string | null;\n}\n\nexport enum Format {\n UNKNOWN = 'UNKNOWN',\n PDF = 'PDF',\n}\n\n/** @enumType */\nexport type FormatWithLiterals = Format | 'UNKNOWN' | 'PDF';\n\nexport interface TemplateSettingsOverride {\n /**\n * Indices (0-based) of pages with template settings override.\n * @max 99\n */\n pageIndices?: number[];\n /**\n * Template settings ID.\n * @format GUID\n */\n templateSettingsId?: string | null;\n /**\n * Unique per tenant template external ID, for example ticket definition ID. Used to lookup corresponding template & template settings.\n * @maxLength 100\n */\n templateSettingsExternalId?: string | null;\n /**\n * Template ID. When this parameter used the page will be rendered with this template default settings\n * @minLength 1\n * @maxLength 20\n * @immutable\n */\n templateId?: string | null;\n}\n\nexport interface PageSettings {\n /**\n * Indices (0-based) of pages with template settings override.\n * @max 99\n */\n pageIndices?: number[];\n /**\n * Template settings ID.\n * @format GUID\n */\n templateSettingsId?: string | null;\n /**\n * Unique per tenant template external ID, for example ticket definition ID. Used to lookup corresponding template & template settings.\n * @maxLength 100\n */\n templateSettingsExternalId?: string | null;\n /**\n * Template ID. When this parameter used the page will be rendered with this template default settings\n * @minLength 1\n * @maxLength 20\n * @immutable\n */\n templateId?: string | null;\n}\n\nexport enum WixMpClientVersion {\n UNKNOWN = 'UNKNOWN',\n MP_V1 = 'MP_V1',\n MP_V2 = 'MP_V2',\n}\n\n/** @enumType */\nexport type WixMpClientVersionWithLiterals =\n | WixMpClientVersion\n | 'UNKNOWN'\n | 'MP_V1'\n | 'MP_V2';\n\nexport interface RenderDelayedEventConfig {\n /**\n * Controls DocumentRenderDelayed action event sending.\n * Event will be sent after time_in_queue_minutes if document render status is ACCEPTED/RENDERING.\n * @min 5\n * @max 120\n * @immutable\n */\n timeInQueueMinutes?: number;\n}\n\nexport interface DebugOptions {\n /**\n * Overrides statics for this document during the rendering\n * @maxLength 60\n * @immutable\n */\n staticsVersionOverride?: string | null;\n}\n\nexport interface RenderDocumentRequest {\n /** Template settings. */\n templateSettings?: TemplateSettings;\n /** Document content. */\n content?: DocumentContent;\n /** Output format, defaults to PDF. */\n outputFormat?: RenderFormatWithLiterals;\n /**\n * Overrides papyrusTemplatesStaticsUrl: \"//static.parastorage.com/services/papyrus-templates-statics/${version_override}/\"\n * @maxLength 100\n */\n versionOverride?: string | null;\n /**\n * Overrides static versions for the statics config.\n * @maxSize 10\n */\n staticOverrides?: Record<string, string>;\n}\n\nexport interface TemplateSettings {\n /**\n * Auto generated ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Wix app definition ID.\n * @minLength 1\n * @maxLength 20\n */\n appSlug?: string | null;\n /**\n * The type of the template.\n * @minLength 1\n * @maxLength 20\n */\n templateType?: string | null;\n /**\n * The id of the template.\n * @minLength 1\n * @maxLength 20\n */\n templateId?: string | null;\n /**\n * Template settings external ID. For example ticket definition ID.\n * Must be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Date settings were created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date settings were updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** @maxSize 10 */\n settingGroups?: SettingsGroup[];\n /** Paper size */\n paperSize?: PaperSizeWithLiterals;\n pageOverflow?: PageOverflowWithLiterals;\n}\n\nexport interface TextSetting {\n /**\n * Font family class name\n * @maxLength 20\n */\n fontFamily?: string | null;\n /**\n * Font style class names\n * @maxSize 10\n * @maxLength 20\n */\n fontStyle?: string[];\n /**\n * Text alignment class name\n * @maxLength 20\n */\n textAlignment?: string | null;\n /**\n * Text color hex code\n * @minLength 7\n * @maxLength 7\n */\n textColor?: string | null;\n /**\n * Font size\n * @min 1\n */\n fontSize?: number | null;\n /** Text content setting */\n textContent?: TextContent[];\n}\n\nexport interface TextContent {\n /**\n * @minLength 3\n * @maxLength 50\n */\n id?: string;\n /** @maxLength 500 */\n value?: string | null;\n visible?: boolean;\n}\n\nexport interface ImageSetting {\n /** Wix media Image */\n image?: Image;\n /** Image resizing mode */\n resize?: ResizeOptionWithLiterals;\n}\n\nexport interface Image {\n /** WixMedia image ID. */\n id?: string;\n /** Image URL. */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /** Image alt text. */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n */\n filename?: string | null;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport enum ResizeOption {\n /** Automatically resizes full image to fit image field */\n FIT = 'FIT',\n /** Enables user to manually crop image to fit image field */\n CROP = 'CROP',\n}\n\n/** @enumType */\nexport type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';\n\nexport interface SelectSetting {\n /** Selected value */\n value?: string | null;\n /**\n * Color hex code\n * @minLength 7\n * @maxLength 7\n */\n primaryColor?: string | null;\n /**\n * Color hex code\n * @minLength 7\n * @maxLength 7\n */\n secondaryColor?: string | null;\n /** Size */\n size?: number | null;\n}\n\nexport interface BackgroundSetting {\n /**\n * Color of the background hex code\n * @minLength 7\n * @maxLength 9\n */\n color?: string | null;\n /** Wix media Image */\n image?: Image;\n}\n\nexport interface SettingsGroup {\n /**\n * Id of the control group\n * @minLength 5\n * @maxLength 50\n */\n groupId?: string;\n /**\n * Display settings.\n * @maxSize 20\n */\n display?: Record<string, boolean>;\n /**\n * Texts settings.\n * @maxSize 20\n */\n texts?: Record<string, TextSetting>;\n /**\n * Images settings.\n * @maxSize 10\n */\n images?: Record<string, ImageSetting>;\n /**\n * Select option settings.\n * @maxSize 20\n */\n selects?: Record<string, SelectSetting>;\n /**\n * Backgrounds settings.\n * @maxSize 20\n */\n backgrounds?: Record<string, BackgroundSetting>;\n}\n\nexport enum PaperSize {\n A4_PORTRAIT = 'A4_PORTRAIT',\n A4_LANDSCAPE = 'A4_LANDSCAPE',\n}\n\n/** @enumType */\nexport type PaperSizeWithLiterals = PaperSize | 'A4_PORTRAIT' | 'A4_LANDSCAPE';\n\nexport enum PageOverflow {\n CONTENT_HIDDEN = 'CONTENT_HIDDEN',\n CONTENT_BREAK = 'CONTENT_BREAK',\n}\n\n/** @enumType */\nexport type PageOverflowWithLiterals =\n | PageOverflow\n | 'CONTENT_HIDDEN'\n | 'CONTENT_BREAK';\n\nexport enum RenderFormat {\n /** content-type: application/pdf */\n PDF = 'PDF',\n /** content-type: text/html */\n HTML = 'HTML',\n}\n\n/** @enumType */\nexport type RenderFormatWithLiterals = RenderFormat | 'PDF' | 'HTML';\n\nexport interface RawHttpResponse {\n body?: Uint8Array;\n statusCode?: number | null;\n headers?: HeadersEntry[];\n}\n\nexport interface HeadersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface RenderDocumentByIdRequest {\n /**\n * Document ID.\n * @format GUID\n */\n documentId?: string | null;\n /** Output format, defaults to PDF. */\n outputFormat?: RenderFormatWithLiterals;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface GetRendererInfoRequest {}\n\nexport interface GetRendererInfoResponse {\n /** Renderer info */\n info?: Record<string, string>;\n}\n\nexport interface GetCachedHtmlRequest {\n /**\n * Html Access Key.\n * @maxLength 100\n */\n htmlAccessKey?: string;\n /**\n * Meta Site Id.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\nexport interface GetDownloadPageRequest {\n /** @maxLength 1000 */\n file: string | null;\n}\n\nexport interface RedirectToDocumentRequest {\n /** @maxLength 1000 */\n file: string | null;\n}\n\nexport interface DocumentRenderDelayed {\n /** Document that is being rendered. */\n document?: Document;\n}\n\nexport interface CreateDocumentRequest {\n /** Document to be created */\n document?: Document;\n}\n\nexport interface CreateDocumentResponse {\n /** The created Document */\n document?: Document;\n}\n\nexport interface GetDocumentRequest {\n /**\n * ID of the Document to retrieve\n * @format GUID\n */\n documentId: string;\n /** @maxSize 1 */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport enum RequestedFields {\n /** Include `documentContent` in the response. */\n DOCUMENT_CONTENT = 'DOCUMENT_CONTENT',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals = RequestedFields | 'DOCUMENT_CONTENT';\n\nexport interface GetDocumentResponse {\n /** The retrieved Document */\n document?: Document;\n}\n\nexport interface DeleteDocumentRequest {\n /**\n * ID of the Document to delete\n * @format GUID\n */\n documentId: string;\n}\n\nexport interface DeleteDocumentResponse {\n /** Deleted document. */\n document?: Document;\n}\n\nexport interface DeleteDocumentByExternalIdRequest {\n /**\n * External ID of the Document to delete\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string;\n}\n\nexport interface DeleteDocumentByExternalIdResponse {\n /** Deleted document. */\n document?: Document;\n}\n\nexport interface QueryDocumentRequest {\n /** WQL expression */\n query: QueryV2;\n /** @maxSize 1 */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** 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`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** 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. */\n fields?: string[];\n /** 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. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** 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`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryDocumentResponse {\n /** The retrieved Documents */\n documents?: Document[];\n /** Query results' metadata */\n metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface UpdateDocumentRequest {\n /**\n * Document ID.\n * @format GUID\n * @readonly\n */\n id: string | null;\n /** Document render status. */\n renderStatus?: RenderStatusWithLiterals;\n /** Rendered document file. */\n file?: DocumentFile;\n /** Rendered document source HTML file. */\n sourceFile?: DocumentFile;\n}\n\nexport interface DocumentFile {\n /** File ID. */\n fileId?: string | null;\n /** File URL. Defined only for public documents. */\n staticUrl?: string | null;\n /** File path. */\n filePath?: string | null;\n /** Size in bytes. */\n sizeInBytes?: number | null;\n}\n\nexport interface UpdateDocumentResponse {\n /** The created Document */\n document?: Document;\n}\n\nexport interface DocumentRendered {\n /** Rendered document */\n document?: Document;\n}\n\nexport interface DocumentRenderFailed {\n /** Document that failed to render */\n document?: Document;\n}\n\nexport interface DownloadDocumentRequest {\n /**\n * ID of the Document to retrieve\n * @format GUID\n */\n documentId: string;\n /**\n * URL expiration time. Only relevant for private documents.\n * @min 600\n * @max 86400\n */\n urlExpirationInSeconds?: number | null;\n /**\n * Whether the link downloads the file or opens the file in the browser.\n * Default: `ATTACHMENT`\n */\n contentDisposition?: ContentDispositionWithLiterals;\n}\n\nexport enum ContentDisposition {\n /** The link downloads the file. */\n ATTACHMENT = 'ATTACHMENT',\n /** The link opens the file in the browser. */\n INLINE = 'INLINE',\n}\n\n/** @enumType */\nexport type ContentDispositionWithLiterals =\n | ContentDisposition\n | 'ATTACHMENT'\n | 'INLINE';\n\nexport interface DownloadDocumentResponse {\n /** Download URL. */\n downloadUrl?: string;\n /** URL expiration timestamp. Not provided for public documents because their links do not expire. */\n expirationDate?: Date | null;\n}\n\nexport interface GetDownloadUrlRequest\n extends GetDownloadUrlRequestDocumentOneOf {\n /**\n * ID of the Document to retrieve\n * @format GUID\n */\n documentId?: string | null;\n /**\n * ID of the Document to retrieve\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Signed file token\n * @minLength 1\n * @maxLength 500\n */\n fileToken?: string | null;\n /**\n * URL expiration time. Only relevant for private documents.\n * @min 600\n * @max 86400\n */\n urlExpirationInSeconds?: number | null;\n /** @maxLength 100 */\n downloadButtonText?: string | null;\n /**\n * Whether the link downloads the file or opens the file in the browser.\n * Default: `ATTACHMENT`\n */\n contentDisposition?: ContentDispositionWithLiterals;\n}\n\n/** @oneof */\nexport interface GetDownloadUrlRequestDocumentOneOf {\n /**\n * ID of the Document to retrieve\n * @format GUID\n */\n documentId?: string | null;\n /**\n * ID of the Document to retrieve\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Signed file token\n * @minLength 1\n * @maxLength 500\n */\n fileToken?: string | null;\n}\n\nexport interface GetDownloadUrlResponse {\n /** Download URL. */\n downloadUrl?: string | null;\n /** URL expiration timestamp. Not provided for public documents because their links do not expire. */\n expirationDate?: Date | null;\n /**\n * Document ID.\n * @format GUID\n */\n documentId?: string | null;\n /** Document render status. */\n renderStatus?: RenderStatusWithLiterals;\n /** Download URL. */\n downloadPageUrl?: string | null;\n /**\n * Client defined content checksum. Can be used for content comparison.\n * @minLength 1\n * @maxLength 64\n */\n contentChecksum?: string | null;\n}\n\nexport interface DownloadDocumentSourceRequest {\n /**\n * ID of the Document to retrieve\n * @format GUID\n */\n documentId: string;\n /**\n * Whether the link downloads the file or opens the file in the browser.\n * Default: `ATTACHMENT`\n */\n contentDisposition?: ContentDispositionWithLiterals;\n}\n\nexport interface DownloadDocumentSourceResponse {\n /** Download URL. Expires after 10 minutes. */\n downloadUrl?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type DownloadDocumentApplicationErrors = {\n code?: 'DOCUMENT_NOT_READY';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type DownloadDocumentSourceApplicationErrors = {\n code?: 'DOCUMENT_NOT_READY';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixPapyrusV1Document from './papyrus-v1-document-documents.http.js';\nimport * as ambassadorWixPapyrusV1DocumentTypes from './papyrus-v1-document-documents.types.js';\nimport * as ambassadorWixPapyrusV1DocumentUniversalTypes from './papyrus-v1-document-documents.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getDownloadPage(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPapyrusV1DocumentUniversalTypes.GetDownloadPageRequest,\n ambassadorWixPapyrusV1DocumentTypes.GetDownloadPageRequest,\n ambassadorWixPapyrusV1DocumentUniversalTypes.RawHttpResponse,\n ambassadorWixPapyrusV1DocumentTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1Document.getDownloadPage(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/download',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function redirectToDocument(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPapyrusV1DocumentUniversalTypes.RedirectToDocumentRequest,\n ambassadorWixPapyrusV1DocumentTypes.RedirectToDocumentRequest,\n ambassadorWixPapyrusV1DocumentUniversalTypes.RawHttpResponse,\n ambassadorWixPapyrusV1DocumentTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1Document.redirectToDocument(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/view',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createDocument(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPapyrusV1DocumentUniversalTypes.CreateDocumentRequest,\n ambassadorWixPapyrusV1DocumentTypes.CreateDocumentRequest,\n ambassadorWixPapyrusV1DocumentUniversalTypes.CreateDocumentResponse,\n ambassadorWixPapyrusV1DocumentTypes.CreateDocumentResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1Document.createDocument(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/documents',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getDocument(): __PublicMethodMetaInfo<\n 'GET',\n { documentId: string },\n ambassadorWixPapyrusV1DocumentUniversalTypes.GetDocumentRequest,\n ambassadorWixPapyrusV1DocumentTypes.GetDocumentRequest,\n ambassadorWixPapyrusV1DocumentUniversalTypes.GetDocumentResponse,\n ambassadorWixPapyrusV1DocumentTypes.GetDocumentResponse\n> {\n const payload = { documentId: ':documentId' } as any;\n\n const getRequestOptions = ambassadorWixPapyrusV1Document.getDocument(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/documents/{documentId}',\n pathParams: { documentId: 'documentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteDocument(): __PublicMethodMetaInfo<\n 'DELETE',\n { documentId: string },\n ambassadorWixPapyrusV1DocumentUniversalTypes.DeleteDocumentRequest,\n ambassadorWixPapyrusV1DocumentTypes.DeleteDocumentRequest,\n ambassadorWixPapyrusV1DocumentUniversalTypes.DeleteDocumentResponse,\n ambassadorWixPapyrusV1DocumentTypes.DeleteDocumentResponse\n> {\n const payload = { documentId: ':documentId' } as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1Document.deleteDocument(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/documents/{documentId}',\n pathParams: { documentId: 'documentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryDocument(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPapyrusV1DocumentUniversalTypes.QueryDocumentRequest,\n ambassadorWixPapyrusV1DocumentTypes.QueryDocumentRequest,\n ambassadorWixPapyrusV1DocumentUniversalTypes.QueryDocumentResponse,\n ambassadorWixPapyrusV1DocumentTypes.QueryDocumentResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1Document.queryDocument(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/documents/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateDocument(): __PublicMethodMetaInfo<\n 'PATCH',\n { id: string },\n ambassadorWixPapyrusV1DocumentUniversalTypes.UpdateDocumentRequest,\n ambassadorWixPapyrusV1DocumentTypes.UpdateDocumentRequest,\n ambassadorWixPapyrusV1DocumentUniversalTypes.UpdateDocumentResponse,\n ambassadorWixPapyrusV1DocumentTypes.UpdateDocumentResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1Document.updateDocument(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/documents/{id}',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function downloadDocument(): __PublicMethodMetaInfo<\n 'GET',\n { documentId: string },\n ambassadorWixPapyrusV1DocumentUniversalTypes.DownloadDocumentRequest,\n ambassadorWixPapyrusV1DocumentTypes.DownloadDocumentRequest,\n ambassadorWixPapyrusV1DocumentUniversalTypes.DownloadDocumentResponse,\n ambassadorWixPapyrusV1DocumentTypes.DownloadDocumentResponse\n> {\n const payload = { documentId: ':documentId' } as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1Document.downloadDocument(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/documents/download/{documentId}',\n pathParams: { documentId: 'documentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getDownloadUrl(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPapyrusV1DocumentUniversalTypes.GetDownloadUrlRequest,\n ambassadorWixPapyrusV1DocumentTypes.GetDownloadUrlRequest,\n ambassadorWixPapyrusV1DocumentUniversalTypes.GetDownloadUrlResponse,\n ambassadorWixPapyrusV1DocumentTypes.GetDownloadUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1Document.getDownloadUrl(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/documents/download-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function downloadDocumentSource(): __PublicMethodMetaInfo<\n 'GET',\n { documentId: string },\n ambassadorWixPapyrusV1DocumentUniversalTypes.DownloadDocumentSourceRequest,\n ambassadorWixPapyrusV1DocumentTypes.DownloadDocumentSourceRequest,\n ambassadorWixPapyrusV1DocumentUniversalTypes.DownloadDocumentSourceResponse,\n ambassadorWixPapyrusV1DocumentTypes.DownloadDocumentSourceResponse\n> {\n const payload = { documentId: ':documentId' } as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1Document.downloadDocumentSource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/documents/download/{documentId}/source',\n pathParams: { documentId: 'documentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Document as DocumentOriginal,\n RenderStatus as RenderStatusOriginal,\n RenderStatusWithLiterals as RenderStatusWithLiteralsOriginal,\n DocumentContent as DocumentContentOriginal,\n Format as FormatOriginal,\n FormatWithLiterals as FormatWithLiteralsOriginal,\n TemplateSettingsOverride as TemplateSettingsOverrideOriginal,\n PageSettings as PageSettingsOriginal,\n WixMpClientVersion as WixMpClientVersionOriginal,\n WixMpClientVersionWithLiterals as WixMpClientVersionWithLiteralsOriginal,\n RenderDelayedEventConfig as RenderDelayedEventConfigOriginal,\n DebugOptions as DebugOptionsOriginal,\n RenderDocumentRequest as RenderDocumentRequestOriginal,\n TemplateSettings as TemplateSettingsOriginal,\n TextSetting as TextSettingOriginal,\n TextContent as TextContentOriginal,\n ImageSetting as ImageSettingOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n ResizeOption as ResizeOptionOriginal,\n ResizeOptionWithLiterals as ResizeOptionWithLiteralsOriginal,\n SelectSetting as SelectSettingOriginal,\n BackgroundSetting as BackgroundSettingOriginal,\n SettingsGroup as SettingsGroupOriginal,\n PaperSize as PaperSizeOriginal,\n PaperSizeWithLiterals as PaperSizeWithLiteralsOriginal,\n PageOverflow as PageOverflowOriginal,\n PageOverflowWithLiterals as PageOverflowWithLiteralsOriginal,\n RenderFormat as RenderFormatOriginal,\n RenderFormatWithLiterals as RenderFormatWithLiteralsOriginal,\n RawHttpResponse as RawHttpResponseOriginal,\n HeadersEntry as HeadersEntryOriginal,\n RenderDocumentByIdRequest as RenderDocumentByIdRequestOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n GetRendererInfoRequest as GetRendererInfoRequestOriginal,\n GetRendererInfoResponse as GetRendererInfoResponseOriginal,\n GetCachedHtmlRequest as GetCachedHtmlRequestOriginal,\n GetDownloadPageRequest as GetDownloadPageRequestOriginal,\n RedirectToDocumentRequest as RedirectToDocumentRequestOriginal,\n DocumentRenderDelayed as DocumentRenderDelayedOriginal,\n CreateDocumentRequest as CreateDocumentRequestOriginal,\n CreateDocumentResponse as CreateDocumentResponseOriginal,\n GetDocumentRequest as GetDocumentRequestOriginal,\n RequestedFields as RequestedFieldsOriginal,\n RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal,\n GetDocumentResponse as GetDocumentResponseOriginal,\n DeleteDocumentRequest as DeleteDocumentRequestOriginal,\n DeleteDocumentResponse as DeleteDocumentResponseOriginal,\n DeleteDocumentByExternalIdRequest as DeleteDocumentByExternalIdRequestOriginal,\n DeleteDocumentByExternalIdResponse as DeleteDocumentByExternalIdResponseOriginal,\n QueryDocumentRequest as QueryDocumentRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n Paging as PagingOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryDocumentResponse as QueryDocumentResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n UpdateDocumentRequest as UpdateDocumentRequestOriginal,\n DocumentFile as DocumentFileOriginal,\n UpdateDocumentResponse as UpdateDocumentResponseOriginal,\n DocumentRendered as DocumentRenderedOriginal,\n DocumentRenderFailed as DocumentRenderFailedOriginal,\n DownloadDocumentRequest as DownloadDocumentRequestOriginal,\n ContentDisposition as ContentDispositionOriginal,\n ContentDispositionWithLiterals as ContentDispositionWithLiteralsOriginal,\n DownloadDocumentResponse as DownloadDocumentResponseOriginal,\n GetDownloadUrlRequest as GetDownloadUrlRequestOriginal,\n GetDownloadUrlRequestDocumentOneOf as GetDownloadUrlRequestDocumentOneOfOriginal,\n GetDownloadUrlResponse as GetDownloadUrlResponseOriginal,\n DownloadDocumentSourceRequest as DownloadDocumentSourceRequestOriginal,\n DownloadDocumentSourceResponse as DownloadDocumentSourceResponseOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n DownloadDocumentApplicationErrors as DownloadDocumentApplicationErrorsOriginal,\n DownloadDocumentSourceApplicationErrors as DownloadDocumentSourceApplicationErrorsOriginal,\n} from './papyrus-v1-document-documents.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,sBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,sBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,sCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,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AkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,YAAY,aAAa;AAAA,IACvC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,kBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC2B,eAAe,OAAO;AAEvD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,0BAOd;AACA,QAAM,UAAU,EAAE,YAAY,cAAc;AAE5C,QAAM,oBAC2B,uBAAuB,OAAO;AAE/D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,YAAY,aAAa;AAAA,IACvC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createDocument","deleteDocument","downloadDocument","downloadDocumentSource","getDocument","getDownloadPage","getDownloadUrl","queryDocument","redirectToDocument","updateDocument","import_timestamp","import_rest_modules","payload","RenderStatus","Format","WixMpClientVersion","ResizeOption","PaperSize","PageOverflow","RenderFormat","RequestedFields","SortOrder","ContentDisposition","WebhookIdentityType","getDownloadPage","redirectToDocument","createDocument","getDocument","deleteDocument","queryDocument","updateDocument","downloadDocument","getDownloadUrl","downloadDocumentSource"]}
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const GetDownloadPageRequest: z.ZodObject<{
|
|
4
|
+
file: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
declare const GetDownloadPageResponse: z.ZodObject<{
|
|
7
|
+
body: z.ZodOptional<z.ZodString>;
|
|
8
|
+
statusCode: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
9
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
key: z.ZodOptional<z.ZodString>;
|
|
11
|
+
value: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const RedirectToDocumentRequest: z.ZodObject<{
|
|
15
|
+
file: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const RedirectToDocumentResponse: z.ZodObject<{
|
|
18
|
+
body: z.ZodOptional<z.ZodString>;
|
|
19
|
+
statusCode: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
20
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
|
+
key: z.ZodOptional<z.ZodString>;
|
|
22
|
+
value: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const CreateDocumentRequest: z.ZodObject<{
|
|
26
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
document: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
30
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
31
|
+
renderStatus: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
UNKNOWN: "UNKNOWN";
|
|
33
|
+
ACCEPTED: "ACCEPTED";
|
|
34
|
+
RENDERING: "RENDERING";
|
|
35
|
+
READY: "READY";
|
|
36
|
+
FAILED: "FAILED";
|
|
37
|
+
EXPIRED: "EXPIRED";
|
|
38
|
+
}>>;
|
|
39
|
+
downloadUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
40
|
+
templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
|
+
externalId: z.ZodString;
|
|
42
|
+
templateSettingsExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
|
+
templateSettingsId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
appSlug: z.ZodString;
|
|
45
|
+
templateType: z.ZodString;
|
|
46
|
+
content: z.ZodObject<{
|
|
47
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
48
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
49
|
+
language: z.ZodOptional<z.ZodString>;
|
|
50
|
+
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
expiresInHours: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
expirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
54
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
UNKNOWN: "UNKNOWN";
|
|
56
|
+
PDF: "PDF";
|
|
57
|
+
}>>;
|
|
58
|
+
public: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
59
|
+
fileName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
60
|
+
contentChecksum: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
61
|
+
renderDelayedEventConfig: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
timeInQueueMinutes: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
sizeInBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
declare const CreateDocumentResponse: z.ZodObject<{
|
|
69
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
71
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
72
|
+
renderStatus: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
UNKNOWN: "UNKNOWN";
|
|
74
|
+
ACCEPTED: "ACCEPTED";
|
|
75
|
+
RENDERING: "RENDERING";
|
|
76
|
+
READY: "READY";
|
|
77
|
+
FAILED: "FAILED";
|
|
78
|
+
EXPIRED: "EXPIRED";
|
|
79
|
+
}>>;
|
|
80
|
+
downloadUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
81
|
+
templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
82
|
+
externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
83
|
+
templateSettingsExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
84
|
+
templateSettingsId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
85
|
+
appSlug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
86
|
+
templateType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
87
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
89
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
90
|
+
language: z.ZodOptional<z.ZodString>;
|
|
91
|
+
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
expiresInHours: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
expirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
95
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
UNKNOWN: "UNKNOWN";
|
|
97
|
+
PDF: "PDF";
|
|
98
|
+
}>>;
|
|
99
|
+
public: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
100
|
+
fileName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
101
|
+
contentChecksum: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
102
|
+
renderDelayedEventConfig: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
timeInQueueMinutes: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
sizeInBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
declare const GetDocumentRequest: z.ZodObject<{
|
|
108
|
+
documentId: z.ZodString;
|
|
109
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
111
|
+
DOCUMENT_CONTENT: "DOCUMENT_CONTENT";
|
|
112
|
+
}>>>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
declare const GetDocumentResponse: z.ZodObject<{
|
|
116
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
117
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
118
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
119
|
+
renderStatus: z.ZodOptional<z.ZodEnum<{
|
|
120
|
+
UNKNOWN: "UNKNOWN";
|
|
121
|
+
ACCEPTED: "ACCEPTED";
|
|
122
|
+
RENDERING: "RENDERING";
|
|
123
|
+
READY: "READY";
|
|
124
|
+
FAILED: "FAILED";
|
|
125
|
+
EXPIRED: "EXPIRED";
|
|
126
|
+
}>>;
|
|
127
|
+
downloadUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
128
|
+
templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
129
|
+
externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
130
|
+
templateSettingsExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
131
|
+
templateSettingsId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
132
|
+
appSlug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
133
|
+
templateType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
134
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
136
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
137
|
+
language: z.ZodOptional<z.ZodString>;
|
|
138
|
+
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
expiresInHours: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
expirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
142
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
UNKNOWN: "UNKNOWN";
|
|
144
|
+
PDF: "PDF";
|
|
145
|
+
}>>;
|
|
146
|
+
public: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
147
|
+
fileName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
148
|
+
contentChecksum: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
149
|
+
renderDelayedEventConfig: z.ZodOptional<z.ZodObject<{
|
|
150
|
+
timeInQueueMinutes: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
sizeInBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
declare const DeleteDocumentRequest: z.ZodObject<{
|
|
155
|
+
documentId: z.ZodString;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
declare const DeleteDocumentResponse: z.ZodObject<{
|
|
158
|
+
document: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
160
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
161
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
162
|
+
renderStatus: z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
UNKNOWN: "UNKNOWN";
|
|
164
|
+
ACCEPTED: "ACCEPTED";
|
|
165
|
+
RENDERING: "RENDERING";
|
|
166
|
+
READY: "READY";
|
|
167
|
+
FAILED: "FAILED";
|
|
168
|
+
EXPIRED: "EXPIRED";
|
|
169
|
+
}>>;
|
|
170
|
+
downloadUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
171
|
+
templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
172
|
+
externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
173
|
+
templateSettingsExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
174
|
+
templateSettingsId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
175
|
+
appSlug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
176
|
+
templateType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
177
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
178
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
179
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
180
|
+
language: z.ZodOptional<z.ZodString>;
|
|
181
|
+
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
expiresInHours: z.ZodOptional<z.ZodNumber>;
|
|
184
|
+
expirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
185
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
186
|
+
UNKNOWN: "UNKNOWN";
|
|
187
|
+
PDF: "PDF";
|
|
188
|
+
}>>;
|
|
189
|
+
public: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
190
|
+
fileName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
191
|
+
contentChecksum: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
192
|
+
renderDelayedEventConfig: z.ZodOptional<z.ZodObject<{
|
|
193
|
+
timeInQueueMinutes: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
sizeInBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
declare const QueryDocumentRequest: z.ZodObject<{
|
|
199
|
+
query: z.ZodIntersection<z.ZodObject<{
|
|
200
|
+
filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
201
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
202
|
+
fieldName: z.ZodOptional<z.ZodString>;
|
|
203
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
204
|
+
ASC: "ASC";
|
|
205
|
+
DESC: "DESC";
|
|
206
|
+
}>>;
|
|
207
|
+
}, z.core.$strip>>>;
|
|
208
|
+
}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
209
|
+
paging: z.ZodOptional<z.ZodNever>;
|
|
210
|
+
cursorPaging: z.ZodOptional<z.ZodNever>;
|
|
211
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
212
|
+
cursorPaging: z.ZodOptional<z.ZodNever>;
|
|
213
|
+
paging: z.ZodObject<{
|
|
214
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
215
|
+
offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
218
|
+
paging: z.ZodOptional<z.ZodNever>;
|
|
219
|
+
cursorPaging: z.ZodObject<{
|
|
220
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
221
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
}, z.core.$strip>]>>;
|
|
224
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
226
|
+
DOCUMENT_CONTENT: "DOCUMENT_CONTENT";
|
|
227
|
+
}>>>;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
}, z.core.$strip>;
|
|
230
|
+
declare const QueryDocumentResponse: z.ZodObject<{
|
|
231
|
+
documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
232
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
233
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
234
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
235
|
+
renderStatus: z.ZodOptional<z.ZodEnum<{
|
|
236
|
+
UNKNOWN: "UNKNOWN";
|
|
237
|
+
ACCEPTED: "ACCEPTED";
|
|
238
|
+
RENDERING: "RENDERING";
|
|
239
|
+
READY: "READY";
|
|
240
|
+
FAILED: "FAILED";
|
|
241
|
+
EXPIRED: "EXPIRED";
|
|
242
|
+
}>>;
|
|
243
|
+
downloadUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
244
|
+
templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
245
|
+
externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
246
|
+
templateSettingsExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
247
|
+
templateSettingsId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
248
|
+
appSlug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
249
|
+
templateType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
250
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
251
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
252
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
253
|
+
language: z.ZodOptional<z.ZodString>;
|
|
254
|
+
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
255
|
+
}, z.core.$strip>>;
|
|
256
|
+
expiresInHours: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
expirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
258
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
259
|
+
UNKNOWN: "UNKNOWN";
|
|
260
|
+
PDF: "PDF";
|
|
261
|
+
}>>;
|
|
262
|
+
public: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
263
|
+
fileName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
264
|
+
contentChecksum: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
265
|
+
renderDelayedEventConfig: z.ZodOptional<z.ZodObject<{
|
|
266
|
+
timeInQueueMinutes: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
}, z.core.$strip>>;
|
|
268
|
+
sizeInBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
269
|
+
}, z.core.$strip>>>;
|
|
270
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
271
|
+
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
272
|
+
offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
273
|
+
total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
274
|
+
tooManyToCount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
275
|
+
cursors: z.ZodOptional<z.ZodObject<{
|
|
276
|
+
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
277
|
+
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
}, z.core.$strip>>;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
declare const UpdateDocumentRequest: z.ZodObject<{
|
|
282
|
+
_id: z.ZodString;
|
|
283
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
284
|
+
renderStatus: z.ZodOptional<z.ZodEnum<{
|
|
285
|
+
UNKNOWN: "UNKNOWN";
|
|
286
|
+
ACCEPTED: "ACCEPTED";
|
|
287
|
+
RENDERING: "RENDERING";
|
|
288
|
+
READY: "READY";
|
|
289
|
+
FAILED: "FAILED";
|
|
290
|
+
EXPIRED: "EXPIRED";
|
|
291
|
+
}>>;
|
|
292
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
fileId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
294
|
+
staticUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
295
|
+
filePath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
296
|
+
sizeInBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
297
|
+
}, z.core.$strip>>;
|
|
298
|
+
sourceFile: z.ZodOptional<z.ZodObject<{
|
|
299
|
+
fileId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
300
|
+
staticUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
301
|
+
filePath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
302
|
+
sizeInBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
303
|
+
}, z.core.$strip>>;
|
|
304
|
+
}, z.core.$strip>>;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
declare const UpdateDocumentResponse: z.ZodObject<{
|
|
307
|
+
document: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
309
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
310
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
311
|
+
renderStatus: z.ZodOptional<z.ZodEnum<{
|
|
312
|
+
UNKNOWN: "UNKNOWN";
|
|
313
|
+
ACCEPTED: "ACCEPTED";
|
|
314
|
+
RENDERING: "RENDERING";
|
|
315
|
+
READY: "READY";
|
|
316
|
+
FAILED: "FAILED";
|
|
317
|
+
EXPIRED: "EXPIRED";
|
|
318
|
+
}>>;
|
|
319
|
+
downloadUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
320
|
+
templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
321
|
+
externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
322
|
+
templateSettingsExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
323
|
+
templateSettingsId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
324
|
+
appSlug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
325
|
+
templateType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
326
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
327
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
328
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
329
|
+
language: z.ZodOptional<z.ZodString>;
|
|
330
|
+
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
331
|
+
}, z.core.$strip>>;
|
|
332
|
+
expiresInHours: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
expirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
334
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
335
|
+
UNKNOWN: "UNKNOWN";
|
|
336
|
+
PDF: "PDF";
|
|
337
|
+
}>>;
|
|
338
|
+
public: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
339
|
+
fileName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
340
|
+
contentChecksum: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
341
|
+
renderDelayedEventConfig: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
timeInQueueMinutes: z.ZodOptional<z.ZodNumber>;
|
|
343
|
+
}, z.core.$strip>>;
|
|
344
|
+
sizeInBytes: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
345
|
+
}, z.core.$strip>>;
|
|
346
|
+
}, z.core.$strip>;
|
|
347
|
+
declare const DownloadDocumentRequest: z.ZodObject<{
|
|
348
|
+
documentId: z.ZodString;
|
|
349
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
urlExpirationInSeconds: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
351
|
+
contentDisposition: z.ZodOptional<z.ZodEnum<{
|
|
352
|
+
ATTACHMENT: "ATTACHMENT";
|
|
353
|
+
INLINE: "INLINE";
|
|
354
|
+
}>>;
|
|
355
|
+
}, z.core.$strip>>;
|
|
356
|
+
}, z.core.$strip>;
|
|
357
|
+
declare const DownloadDocumentResponse: z.ZodObject<{
|
|
358
|
+
downloadUrl: z.ZodOptional<z.ZodString>;
|
|
359
|
+
expirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
360
|
+
}, z.core.$strip>;
|
|
361
|
+
declare const GetDownloadUrlRequest: z.ZodObject<{
|
|
362
|
+
options: z.ZodIntersection<z.ZodObject<{
|
|
363
|
+
urlExpirationInSeconds: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
364
|
+
downloadButtonText: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
365
|
+
contentDisposition: z.ZodOptional<z.ZodEnum<{
|
|
366
|
+
ATTACHMENT: "ATTACHMENT";
|
|
367
|
+
INLINE: "INLINE";
|
|
368
|
+
}>>;
|
|
369
|
+
}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
370
|
+
externalId: z.ZodOptional<z.ZodNever>;
|
|
371
|
+
fileToken: z.ZodOptional<z.ZodNever>;
|
|
372
|
+
documentId: z.ZodString;
|
|
373
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
374
|
+
documentId: z.ZodOptional<z.ZodNever>;
|
|
375
|
+
fileToken: z.ZodOptional<z.ZodNever>;
|
|
376
|
+
externalId: z.ZodString;
|
|
377
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
378
|
+
documentId: z.ZodOptional<z.ZodNever>;
|
|
379
|
+
externalId: z.ZodOptional<z.ZodNever>;
|
|
380
|
+
fileToken: z.ZodString;
|
|
381
|
+
}, z.core.$strip>]>>;
|
|
382
|
+
}, z.core.$strip>;
|
|
383
|
+
declare const GetDownloadUrlResponse: z.ZodObject<{
|
|
384
|
+
downloadUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
385
|
+
expirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
386
|
+
documentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
387
|
+
renderStatus: z.ZodOptional<z.ZodEnum<{
|
|
388
|
+
UNKNOWN: "UNKNOWN";
|
|
389
|
+
ACCEPTED: "ACCEPTED";
|
|
390
|
+
RENDERING: "RENDERING";
|
|
391
|
+
READY: "READY";
|
|
392
|
+
FAILED: "FAILED";
|
|
393
|
+
EXPIRED: "EXPIRED";
|
|
394
|
+
}>>;
|
|
395
|
+
downloadPageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
396
|
+
contentChecksum: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
397
|
+
}, z.core.$strip>;
|
|
398
|
+
declare const DownloadDocumentSourceRequest: z.ZodObject<{
|
|
399
|
+
documentId: z.ZodString;
|
|
400
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
401
|
+
contentDisposition: z.ZodOptional<z.ZodEnum<{
|
|
402
|
+
ATTACHMENT: "ATTACHMENT";
|
|
403
|
+
INLINE: "INLINE";
|
|
404
|
+
}>>;
|
|
405
|
+
}, z.core.$strip>>;
|
|
406
|
+
}, z.core.$strip>;
|
|
407
|
+
declare const DownloadDocumentSourceResponse: z.ZodObject<{
|
|
408
|
+
downloadUrl: z.ZodOptional<z.ZodString>;
|
|
409
|
+
}, z.core.$strip>;
|
|
410
|
+
|
|
411
|
+
export { CreateDocumentRequest, CreateDocumentResponse, DeleteDocumentRequest, DeleteDocumentResponse, DownloadDocumentRequest, DownloadDocumentResponse, DownloadDocumentSourceRequest, DownloadDocumentSourceResponse, GetDocumentRequest, GetDocumentResponse, GetDownloadPageRequest, GetDownloadPageResponse, GetDownloadUrlRequest, GetDownloadUrlResponse, QueryDocumentRequest, QueryDocumentResponse, RedirectToDocumentRequest, RedirectToDocumentResponse, UpdateDocumentRequest, UpdateDocumentResponse };
|