@wix/auto_sdk_papyrus_documents 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +17 -17
  2. package/build/cjs/index.js +138 -138
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +524 -524
  5. package/build/cjs/index.typings.js +122 -122
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +529 -529
  8. package/build/cjs/meta.js +112 -112
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +22 -22
  11. package/build/cjs/schemas.js +298 -260
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +17 -17
  14. package/build/es/index.mjs +138 -138
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +524 -524
  17. package/build/es/index.typings.mjs +122 -122
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +529 -529
  20. package/build/es/meta.mjs +112 -112
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +22 -22
  23. package/build/es/schemas.mjs +298 -260
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +17 -17
  26. package/build/internal/cjs/index.typings.d.ts +550 -550
  27. package/build/internal/cjs/meta.d.ts +560 -560
  28. package/build/internal/cjs/schemas.d.ts +22 -22
  29. package/build/internal/es/index.d.mts +17 -17
  30. package/build/internal/es/index.typings.d.mts +550 -550
  31. package/build/internal/es/meta.d.mts +560 -560
  32. package/build/internal/es/schemas.d.mts +22 -22
  33. package/package.json +2 -2
  34. package/build/internal/cjs/index.js +0 -1118
  35. package/build/internal/cjs/index.js.map +0 -1
  36. package/build/internal/cjs/index.typings.js +0 -872
  37. package/build/internal/cjs/index.typings.js.map +0 -1
  38. package/build/internal/cjs/meta.js +0 -716
  39. package/build/internal/cjs/meta.js.map +0 -1
  40. package/build/internal/cjs/schemas.js +0 -666
  41. package/build/internal/cjs/schemas.js.map +0 -1
  42. package/build/internal/es/index.mjs +0 -1067
  43. package/build/internal/es/index.mjs.map +0 -1
  44. package/build/internal/es/index.typings.mjs +0 -826
  45. package/build/internal/es/index.typings.mjs.map +0 -1
  46. package/build/internal/es/meta.mjs +0 -669
  47. package/build/internal/es/meta.mjs.map +0 -1
  48. package/build/internal/es/schemas.mjs +0 -610
  49. package/build/internal/es/schemas.mjs.map +0 -1
@@ -1,5 +1,27 @@
1
1
  import * as z from 'zod';
2
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>;
3
25
  declare const CreateDocumentRequest: z.ZodObject<{
4
26
  options: z.ZodOptional<z.ZodObject<{
5
27
  document: z.ZodOptional<z.ZodObject<{
@@ -389,27 +411,5 @@ declare const DownloadDocumentSourceRequest: z.ZodObject<{
389
411
  declare const DownloadDocumentSourceResponse: z.ZodObject<{
390
412
  downloadUrl: z.ZodOptional<z.ZodString>;
391
413
  }, z.core.$strip>;
392
- declare const GetDownloadPageRequest: z.ZodObject<{
393
- file: z.ZodString;
394
- }, z.core.$strip>;
395
- declare const GetDownloadPageResponse: z.ZodObject<{
396
- body: z.ZodOptional<z.ZodString>;
397
- statusCode: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
398
- headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
399
- key: z.ZodOptional<z.ZodString>;
400
- value: z.ZodOptional<z.ZodString>;
401
- }, z.core.$strip>>>;
402
- }, z.core.$strip>;
403
- declare const RedirectToDocumentRequest: z.ZodObject<{
404
- file: z.ZodString;
405
- }, z.core.$strip>;
406
- declare const RedirectToDocumentResponse: z.ZodObject<{
407
- body: z.ZodOptional<z.ZodString>;
408
- statusCode: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
409
- headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
410
- key: z.ZodOptional<z.ZodString>;
411
- value: z.ZodOptional<z.ZodString>;
412
- }, z.core.$strip>>>;
413
- }, z.core.$strip>;
414
414
 
415
415
  export { CreateDocumentRequest, CreateDocumentResponse, DeleteDocumentRequest, DeleteDocumentResponse, DownloadDocumentRequest, DownloadDocumentResponse, DownloadDocumentSourceRequest, DownloadDocumentSourceResponse, GetDocumentRequest, GetDocumentResponse, GetDownloadPageRequest, GetDownloadPageResponse, GetDownloadUrlRequest, GetDownloadUrlResponse, QueryDocumentRequest, QueryDocumentResponse, RedirectToDocumentRequest, RedirectToDocumentResponse, UpdateDocumentRequest, UpdateDocumentResponse };
@@ -1,7 +1,21 @@
1
1
  import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { CreateDocumentOptions, GetDocumentOptions, DeleteDocumentResponse, UpdateDocumentOptions, UpdateDocumentResponse, DownloadDocumentOptions, DownloadDocumentResponse, DownloadDocumentApplicationErrors, GetDownloadUrlOptions, GetDownloadUrlResponse, DownloadDocumentSourceOptions, DownloadDocumentSourceResponse, DownloadDocumentSourceApplicationErrors, RawHttpResponse, DocumentCreatedEnvelope, DocumentDeletedEnvelope, DocumentRenderDelayedEnvelope, DocumentRenderFailedEnvelope, DocumentRenderedEnvelope, DocumentUpdatedEnvelope, DocumentQuery, QueryDocumentOptions, typedQueryDocument, DocumentsQueryBuilder } from './index.typings.mjs';
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.mjs';
3
3
  export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, 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.mjs';
4
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
+ }
5
19
  declare function createDocument$1(httpClient: HttpClient): CreateDocumentSignature;
6
20
  interface CreateDocumentSignature {
7
21
  /**
@@ -62,20 +76,6 @@ interface DownloadDocumentSourceSignature {
62
76
  __applicationErrorsType?: DownloadDocumentSourceApplicationErrors;
63
77
  }>;
64
78
  }
65
- declare function getDownloadPage$1(httpClient: HttpClient): GetDownloadPageSignature;
66
- interface GetDownloadPageSignature {
67
- /**
68
- * Get Document.
69
- */
70
- (file: string | null): Promise<RawHttpResponse>;
71
- }
72
- declare function redirectToDocument$1(httpClient: HttpClient): RedirectToDocumentSignature;
73
- interface RedirectToDocumentSignature {
74
- /**
75
- * Get Document.
76
- */
77
- (file: string | null): Promise<RawHttpResponse>;
78
- }
79
79
  declare const onDocumentCreated$1: EventDefinition<DocumentCreatedEnvelope, "wix.papyrus.v1.document_created">;
80
80
  declare const onDocumentDeleted$1: EventDefinition<DocumentDeletedEnvelope, "wix.papyrus.v1.document_deleted">;
81
81
  declare const onDocumentRenderDelayed$1: EventDefinition<DocumentRenderDelayedEnvelope, "wix.papyrus.v1.document_document_render_delayed">;
@@ -87,6 +87,8 @@ declare function customQueryDocument(httpClient: HttpClient): {
87
87
  (query: DocumentQuery, options?: QueryDocumentOptions): ReturnType<typeof typedQueryDocument>;
88
88
  (options?: QueryDocumentOptions): DocumentsQueryBuilder;
89
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>;
90
92
  declare const createDocument: MaybeContext<BuildRESTFunction<typeof createDocument$1> & typeof createDocument$1>;
91
93
  declare const getDocument: MaybeContext<BuildRESTFunction<typeof getDocument$1> & typeof getDocument$1>;
92
94
  declare const deleteDocument: MaybeContext<BuildRESTFunction<typeof deleteDocument$1> & typeof deleteDocument$1>;
@@ -94,8 +96,6 @@ declare const updateDocument: MaybeContext<BuildRESTFunction<typeof updateDocume
94
96
  declare const downloadDocument: MaybeContext<BuildRESTFunction<typeof downloadDocument$1> & typeof downloadDocument$1>;
95
97
  declare const getDownloadUrl: MaybeContext<BuildRESTFunction<typeof getDownloadUrl$1> & typeof getDownloadUrl$1>;
96
98
  declare const downloadDocumentSource: MaybeContext<BuildRESTFunction<typeof downloadDocumentSource$1> & typeof downloadDocumentSource$1>;
97
- declare const getDownloadPage: MaybeContext<BuildRESTFunction<typeof getDownloadPage$1> & typeof getDownloadPage$1>;
98
- declare const redirectToDocument: MaybeContext<BuildRESTFunction<typeof redirectToDocument$1> & typeof redirectToDocument$1>;
99
99
  declare const queryDocument: MaybeContext<BuildRESTFunction<typeof customQueryDocument> & typeof customQueryDocument>;
100
100
  /** */
101
101
  declare const onDocumentCreated: BuildEventDefinition<typeof onDocumentCreated$1> & typeof onDocumentCreated$1;