@wix/auto_sdk_papyrus_documents 1.0.0 → 1.0.2

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 +18 -18
  2. package/build/cjs/index.js +173 -156
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +552 -528
  5. package/build/cjs/index.typings.js +136 -127
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +536 -525
  8. package/build/cjs/meta.js +125 -114
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +26 -22
  11. package/build/cjs/schemas.js +317 -271
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +18 -18
  14. package/build/es/index.mjs +173 -156
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +552 -528
  17. package/build/es/index.typings.mjs +136 -127
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +536 -525
  20. package/build/es/meta.mjs +125 -114
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +26 -22
  23. package/build/es/schemas.mjs +317 -271
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +18 -18
  26. package/build/internal/cjs/index.typings.d.ts +616 -523
  27. package/build/internal/cjs/meta.d.ts +642 -516
  28. package/build/internal/cjs/schemas.d.ts +26 -22
  29. package/build/internal/es/index.d.mts +18 -18
  30. package/build/internal/es/index.typings.d.mts +616 -523
  31. package/build/internal/es/meta.d.mts +642 -516
  32. package/build/internal/es/schemas.d.mts +26 -22
  33. package/package.json +4 -4
  34. package/build/internal/cjs/index.js +0 -1101
  35. package/build/internal/cjs/index.js.map +0 -1
  36. package/build/internal/cjs/index.typings.js +0 -863
  37. package/build/internal/cjs/index.typings.js.map +0 -1
  38. package/build/internal/cjs/meta.js +0 -705
  39. package/build/internal/cjs/meta.js.map +0 -1
  40. package/build/internal/cjs/schemas.js +0 -658
  41. package/build/internal/cjs/schemas.js.map +0 -1
  42. package/build/internal/es/index.mjs +0 -1050
  43. package/build/internal/es/index.mjs.map +0 -1
  44. package/build/internal/es/index.typings.mjs +0 -817
  45. package/build/internal/es/index.typings.mjs.map +0 -1
  46. package/build/internal/es/meta.mjs +0 -658
  47. package/build/internal/es/meta.mjs.map +0 -1
  48. package/build/internal/es/schemas.mjs +0 -602
  49. package/build/internal/es/schemas.mjs.map +0 -1
@@ -1,27 +1,5 @@
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>;
25
3
  declare const CreateDocumentRequest: z.ZodObject<{
26
4
  options: z.ZodOptional<z.ZodObject<{
27
5
  document: z.ZodOptional<z.ZodObject<{
@@ -204,6 +182,10 @@ declare const QueryDocumentRequest: z.ZodObject<{
204
182
  ASC: "ASC";
205
183
  DESC: "DESC";
206
184
  }>>;
185
+ origin: z.ZodOptional<z.ZodObject<{
186
+ latitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
187
+ longitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
188
+ }, z.core.$strip>>;
207
189
  }, z.core.$strip>>>;
208
190
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
209
191
  paging: z.ZodOptional<z.ZodNever>;
@@ -407,5 +389,27 @@ declare const DownloadDocumentSourceRequest: z.ZodObject<{
407
389
  declare const DownloadDocumentSourceResponse: z.ZodObject<{
408
390
  downloadUrl: z.ZodOptional<z.ZodString>;
409
391
  }, 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>;
410
414
 
411
415
  export { CreateDocumentRequest, CreateDocumentResponse, DeleteDocumentRequest, DeleteDocumentResponse, DownloadDocumentRequest, DownloadDocumentResponse, DownloadDocumentSourceRequest, DownloadDocumentSourceResponse, GetDocumentRequest, GetDocumentResponse, GetDownloadPageRequest, GetDownloadPageResponse, GetDownloadUrlRequest, GetDownloadUrlResponse, QueryDocumentRequest, QueryDocumentResponse, RedirectToDocumentRequest, RedirectToDocumentResponse, UpdateDocumentRequest, UpdateDocumentResponse };
@@ -1,21 +1,7 @@
1
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.mjs';
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.mjs';
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';
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
- }
19
5
  declare function createDocument$1(httpClient: HttpClient): CreateDocumentSignature;
20
6
  interface CreateDocumentSignature {
21
7
  /**
@@ -76,6 +62,20 @@ interface DownloadDocumentSourceSignature {
76
62
  __applicationErrorsType?: DownloadDocumentSourceApplicationErrors;
77
63
  }>;
78
64
  }
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,8 +87,6 @@ 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>;
92
90
  declare const createDocument: MaybeContext<BuildRESTFunction<typeof createDocument$1> & typeof createDocument$1>;
93
91
  declare const getDocument: MaybeContext<BuildRESTFunction<typeof getDocument$1> & typeof getDocument$1>;
94
92
  declare const deleteDocument: MaybeContext<BuildRESTFunction<typeof deleteDocument$1> & typeof deleteDocument$1>;
@@ -96,6 +94,8 @@ declare const updateDocument: MaybeContext<BuildRESTFunction<typeof updateDocume
96
94
  declare const downloadDocument: MaybeContext<BuildRESTFunction<typeof downloadDocument$1> & typeof downloadDocument$1>;
97
95
  declare const getDownloadUrl: MaybeContext<BuildRESTFunction<typeof getDownloadUrl$1> & typeof getDownloadUrl$1>;
98
96
  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;