@wix/papyrus 1.0.10 → 1.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/papyrus",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -21,7 +21,7 @@
21
21
  "type-bundles"
22
22
  ],
23
23
  "dependencies": {
24
- "@wix/papyrus_documents": "1.0.9"
24
+ "@wix/papyrus_documents": "^1.0.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "glob": "^10.4.1",
@@ -45,5 +45,5 @@
45
45
  "fqdn": ""
46
46
  }
47
47
  },
48
- "falconPackageHash": "dff06167a6ebeacf4a2b61fb6d4e1d2b2457b0bd24f1613ec97eec6e"
48
+ "falconPackageHash": "3c195abb9627599a7ceffddd257ab0a2b77406fecb1f44b565d8fa6c"
49
49
  }
@@ -769,16 +769,27 @@ type HttpResponse<T = any> = {
769
769
  headers: any;
770
770
  request?: any;
771
771
  };
772
+ type ResponseTransformer$1 = (data: any) => any;
772
773
  type RequestOptions<_TResponse = any, Data = any> = {
773
774
  method: HTTPMethod;
774
775
  url: string;
775
776
  data?: Data;
776
777
  params?: URLSearchParams;
778
+ fallback?: RequestOptions<any, any>[];
779
+ /**
780
+ * The array option is for interoperability, defacto only the first function is used
781
+ * if an array is provided
782
+ */
783
+ transformResponse?: ResponseTransformer$1 | ResponseTransformer$1[];
777
784
  } & APIMetadata;
778
785
  type APIMetadata = {
779
786
  methodFqn?: string;
780
787
  entityFqdn?: string;
781
788
  packageName?: string;
789
+ migrationOptions?: MigrationOptions;
790
+ };
791
+ type MigrationOptions = {
792
+ optInTransformResponse?: boolean;
782
793
  };
783
794
  type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
784
795
  type EventDefinition<Payload = unknown, Type extends string = string> = {
@@ -846,123 +857,123 @@ declare const onDocumentUpdated: ReturnType<typeof createEventModule<typeof publ
846
857
  declare const onDocumentRendered: ReturnType<typeof createEventModule<typeof publicOnDocumentRendered>>;
847
858
  declare const onDocumentRenderFailed: ReturnType<typeof createEventModule<typeof publicOnDocumentRenderFailed>>;
848
859
 
849
- type context_ActionEvent = ActionEvent;
850
- type context_BackgroundSetting = BackgroundSetting;
851
- type context_BaseEventMetadata = BaseEventMetadata;
852
- type context_CreateDocumentOptions = CreateDocumentOptions;
853
- type context_CreateDocumentRequest = CreateDocumentRequest;
854
- type context_CreateDocumentResponse = CreateDocumentResponse;
855
- type context_CreateDocumentResponseNonNullableFields = CreateDocumentResponseNonNullableFields;
856
- type context_CursorPaging = CursorPaging;
857
- type context_Cursors = Cursors;
858
- type context_DeleteDocumentRequest = DeleteDocumentRequest;
859
- type context_DeleteDocumentResponse = DeleteDocumentResponse;
860
- type context_DeleteDocumentResponseNonNullableFields = DeleteDocumentResponseNonNullableFields;
861
- type context_Document = Document;
862
- type context_DocumentContent = DocumentContent;
863
- type context_DocumentCreatedEnvelope = DocumentCreatedEnvelope;
864
- type context_DocumentDeletedEnvelope = DocumentDeletedEnvelope;
865
- type context_DocumentFile = DocumentFile;
866
- type context_DocumentNonNullableFields = DocumentNonNullableFields;
867
- type context_DocumentRenderDelayed = DocumentRenderDelayed;
868
- type context_DocumentRenderDelayedEnvelope = DocumentRenderDelayedEnvelope;
869
- type context_DocumentRenderFailed = DocumentRenderFailed;
870
- type context_DocumentRenderFailedEnvelope = DocumentRenderFailedEnvelope;
871
- type context_DocumentRendered = DocumentRendered;
872
- type context_DocumentRenderedEnvelope = DocumentRenderedEnvelope;
873
- type context_DocumentUpdatedEnvelope = DocumentUpdatedEnvelope;
874
- type context_DocumentsQueryBuilder = DocumentsQueryBuilder;
875
- type context_DocumentsQueryResult = DocumentsQueryResult;
876
- type context_DomainEvent = DomainEvent;
877
- type context_DomainEventBodyOneOf = DomainEventBodyOneOf;
878
- type context_DownloadDocumentOptions = DownloadDocumentOptions;
879
- type context_DownloadDocumentRequest = DownloadDocumentRequest;
880
- type context_DownloadDocumentResponse = DownloadDocumentResponse;
881
- type context_DownloadDocumentResponseNonNullableFields = DownloadDocumentResponseNonNullableFields;
882
- type context_DownloadDocumentSourceRequest = DownloadDocumentSourceRequest;
883
- type context_DownloadDocumentSourceResponse = DownloadDocumentSourceResponse;
884
- type context_DownloadDocumentSourceResponseNonNullableFields = DownloadDocumentSourceResponseNonNullableFields;
885
- type context_Empty = Empty;
886
- type context_EntityCreatedEvent = EntityCreatedEvent;
887
- type context_EntityDeletedEvent = EntityDeletedEvent;
888
- type context_EntityUpdatedEvent = EntityUpdatedEvent;
889
- type context_EventMetadata = EventMetadata;
890
- type context_Format = Format;
891
- declare const context_Format: typeof Format;
892
- type context_GetDocumentOptions = GetDocumentOptions;
893
- type context_GetDocumentRequest = GetDocumentRequest;
894
- type context_GetDocumentResponse = GetDocumentResponse;
895
- type context_GetDocumentResponseNonNullableFields = GetDocumentResponseNonNullableFields;
896
- type context_GetDownloadPageRequest = GetDownloadPageRequest;
897
- type context_GetDownloadUrlOptions = GetDownloadUrlOptions;
898
- type context_GetDownloadUrlRequest = GetDownloadUrlRequest;
899
- type context_GetDownloadUrlRequestDocumentOneOf = GetDownloadUrlRequestDocumentOneOf;
900
- type context_GetDownloadUrlResponse = GetDownloadUrlResponse;
901
- type context_GetDownloadUrlResponseNonNullableFields = GetDownloadUrlResponseNonNullableFields;
902
- type context_HeadersEntry = HeadersEntry;
903
- type context_IdentificationData = IdentificationData;
904
- type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
905
- type context_ImageSetting = ImageSetting;
906
- type context_MessageEnvelope = MessageEnvelope;
907
- type context_PageSettings = PageSettings;
908
- type context_Paging = Paging;
909
- type context_PagingMetadataV2 = PagingMetadataV2;
910
- type context_PaperSize = PaperSize;
911
- declare const context_PaperSize: typeof PaperSize;
912
- type context_QueryDocumentOptions = QueryDocumentOptions;
913
- type context_QueryDocumentRequest = QueryDocumentRequest;
914
- type context_QueryDocumentResponse = QueryDocumentResponse;
915
- type context_QueryDocumentResponseNonNullableFields = QueryDocumentResponseNonNullableFields;
916
- type context_QueryV2 = QueryV2;
917
- type context_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
918
- type context_RawHttpResponse = RawHttpResponse;
919
- type context_RawHttpResponseNonNullableFields = RawHttpResponseNonNullableFields;
920
- type context_RenderDelayedEventConfig = RenderDelayedEventConfig;
921
- type context_RenderDocumentByIdRequest = RenderDocumentByIdRequest;
922
- type context_RenderDocumentRequestV2 = RenderDocumentRequestV2;
923
- type context_RenderFormat = RenderFormat;
924
- declare const context_RenderFormat: typeof RenderFormat;
925
- type context_RenderStatus = RenderStatus;
926
- declare const context_RenderStatus: typeof RenderStatus;
927
- type context_RequestedFields = RequestedFields;
928
- declare const context_RequestedFields: typeof RequestedFields;
929
- type context_ResizeOption = ResizeOption;
930
- declare const context_ResizeOption: typeof ResizeOption;
931
- type context_RestoreInfo = RestoreInfo;
932
- type context_SelectSetting = SelectSetting;
933
- type context_SettingsGroup = SettingsGroup;
934
- type context_SortOrder = SortOrder;
935
- declare const context_SortOrder: typeof SortOrder;
936
- type context_Sorting = Sorting;
937
- type context_TemplateSettings = TemplateSettings;
938
- type context_TemplateSettingsOverride = TemplateSettingsOverride;
939
- type context_TextContent = TextContent;
940
- type context_TextSetting = TextSetting;
941
- type context_UpdateDocumentOptions = UpdateDocumentOptions;
942
- type context_UpdateDocumentRequest = UpdateDocumentRequest;
943
- type context_UpdateDocumentResponse = UpdateDocumentResponse;
944
- type context_UpdateDocumentResponseNonNullableFields = UpdateDocumentResponseNonNullableFields;
945
- type context_WebhookIdentityType = WebhookIdentityType;
946
- declare const context_WebhookIdentityType: typeof WebhookIdentityType;
947
- type context_WixMpClientVersion = WixMpClientVersion;
948
- declare const context_WixMpClientVersion: typeof WixMpClientVersion;
949
- declare const context_createDocument: typeof createDocument;
950
- declare const context_deleteDocument: typeof deleteDocument;
951
- declare const context_downloadDocument: typeof downloadDocument;
952
- declare const context_downloadDocumentSource: typeof downloadDocumentSource;
953
- declare const context_getDocument: typeof getDocument;
954
- declare const context_getDownloadPage: typeof getDownloadPage;
955
- declare const context_getDownloadUrl: typeof getDownloadUrl;
956
- declare const context_onDocumentCreated: typeof onDocumentCreated;
957
- declare const context_onDocumentDeleted: typeof onDocumentDeleted;
958
- declare const context_onDocumentRenderDelayed: typeof onDocumentRenderDelayed;
959
- declare const context_onDocumentRenderFailed: typeof onDocumentRenderFailed;
960
- declare const context_onDocumentRendered: typeof onDocumentRendered;
961
- declare const context_onDocumentUpdated: typeof onDocumentUpdated;
962
- declare const context_queryDocument: typeof queryDocument;
963
- declare const context_updateDocument: typeof updateDocument;
964
- declare namespace context {
965
- export { type context_ActionEvent as ActionEvent, type context_BackgroundSetting as BackgroundSetting, type context_BaseEventMetadata as BaseEventMetadata, type context_CreateDocumentOptions as CreateDocumentOptions, type context_CreateDocumentRequest as CreateDocumentRequest, type context_CreateDocumentResponse as CreateDocumentResponse, type context_CreateDocumentResponseNonNullableFields as CreateDocumentResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_Cursors as Cursors, type context_DeleteDocumentRequest as DeleteDocumentRequest, type context_DeleteDocumentResponse as DeleteDocumentResponse, type context_DeleteDocumentResponseNonNullableFields as DeleteDocumentResponseNonNullableFields, type context_Document as Document, type context_DocumentContent as DocumentContent, type context_DocumentCreatedEnvelope as DocumentCreatedEnvelope, type context_DocumentDeletedEnvelope as DocumentDeletedEnvelope, type context_DocumentFile as DocumentFile, type context_DocumentNonNullableFields as DocumentNonNullableFields, type context_DocumentRenderDelayed as DocumentRenderDelayed, type context_DocumentRenderDelayedEnvelope as DocumentRenderDelayedEnvelope, type context_DocumentRenderFailed as DocumentRenderFailed, type context_DocumentRenderFailedEnvelope as DocumentRenderFailedEnvelope, type context_DocumentRendered as DocumentRendered, type context_DocumentRenderedEnvelope as DocumentRenderedEnvelope, type context_DocumentUpdatedEnvelope as DocumentUpdatedEnvelope, type context_DocumentsQueryBuilder as DocumentsQueryBuilder, type context_DocumentsQueryResult as DocumentsQueryResult, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_DownloadDocumentOptions as DownloadDocumentOptions, type context_DownloadDocumentRequest as DownloadDocumentRequest, type context_DownloadDocumentResponse as DownloadDocumentResponse, type context_DownloadDocumentResponseNonNullableFields as DownloadDocumentResponseNonNullableFields, type context_DownloadDocumentSourceRequest as DownloadDocumentSourceRequest, type context_DownloadDocumentSourceResponse as DownloadDocumentSourceResponse, type context_DownloadDocumentSourceResponseNonNullableFields as DownloadDocumentSourceResponseNonNullableFields, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, context_Format as Format, type context_GetDocumentOptions as GetDocumentOptions, type context_GetDocumentRequest as GetDocumentRequest, type context_GetDocumentResponse as GetDocumentResponse, type context_GetDocumentResponseNonNullableFields as GetDocumentResponseNonNullableFields, type context_GetDownloadPageRequest as GetDownloadPageRequest, type context_GetDownloadUrlOptions as GetDownloadUrlOptions, type context_GetDownloadUrlRequest as GetDownloadUrlRequest, type context_GetDownloadUrlRequestDocumentOneOf as GetDownloadUrlRequestDocumentOneOf, type context_GetDownloadUrlResponse as GetDownloadUrlResponse, type context_GetDownloadUrlResponseNonNullableFields as GetDownloadUrlResponseNonNullableFields, type context_HeadersEntry as HeadersEntry, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ImageSetting as ImageSetting, type context_MessageEnvelope as MessageEnvelope, type context_PageSettings as PageSettings, type context_Paging as Paging, type context_PagingMetadataV2 as PagingMetadataV2, context_PaperSize as PaperSize, type context_QueryDocumentOptions as QueryDocumentOptions, type context_QueryDocumentRequest as QueryDocumentRequest, type context_QueryDocumentResponse as QueryDocumentResponse, type context_QueryDocumentResponseNonNullableFields as QueryDocumentResponseNonNullableFields, type context_QueryV2 as QueryV2, type context_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context_RawHttpResponse as RawHttpResponse, type context_RawHttpResponseNonNullableFields as RawHttpResponseNonNullableFields, type context_RenderDelayedEventConfig as RenderDelayedEventConfig, type context_RenderDocumentByIdRequest as RenderDocumentByIdRequest, type context_RenderDocumentRequestV2 as RenderDocumentRequestV2, context_RenderFormat as RenderFormat, context_RenderStatus as RenderStatus, context_RequestedFields as RequestedFields, context_ResizeOption as ResizeOption, type context_RestoreInfo as RestoreInfo, type context_SelectSetting as SelectSetting, type context_SettingsGroup as SettingsGroup, context_SortOrder as SortOrder, type context_Sorting as Sorting, type context_TemplateSettings as TemplateSettings, type context_TemplateSettingsOverride as TemplateSettingsOverride, type context_TextContent as TextContent, type context_TextSetting as TextSetting, type context_UpdateDocumentOptions as UpdateDocumentOptions, type context_UpdateDocumentRequest as UpdateDocumentRequest, type context_UpdateDocumentResponse as UpdateDocumentResponse, type context_UpdateDocumentResponseNonNullableFields as UpdateDocumentResponseNonNullableFields, context_WebhookIdentityType as WebhookIdentityType, context_WixMpClientVersion as WixMpClientVersion, context_createDocument as createDocument, context_deleteDocument as deleteDocument, context_downloadDocument as downloadDocument, context_downloadDocumentSource as downloadDocumentSource, context_getDocument as getDocument, context_getDownloadPage as getDownloadPage, context_getDownloadUrl as getDownloadUrl, context_onDocumentCreated as onDocumentCreated, context_onDocumentDeleted as onDocumentDeleted, context_onDocumentRenderDelayed as onDocumentRenderDelayed, context_onDocumentRenderFailed as onDocumentRenderFailed, context_onDocumentRendered as onDocumentRendered, context_onDocumentUpdated as onDocumentUpdated, context_queryDocument as queryDocument, context_updateDocument as updateDocument };
860
+ type context_d_ActionEvent = ActionEvent;
861
+ type context_d_BackgroundSetting = BackgroundSetting;
862
+ type context_d_BaseEventMetadata = BaseEventMetadata;
863
+ type context_d_CreateDocumentOptions = CreateDocumentOptions;
864
+ type context_d_CreateDocumentRequest = CreateDocumentRequest;
865
+ type context_d_CreateDocumentResponse = CreateDocumentResponse;
866
+ type context_d_CreateDocumentResponseNonNullableFields = CreateDocumentResponseNonNullableFields;
867
+ type context_d_CursorPaging = CursorPaging;
868
+ type context_d_Cursors = Cursors;
869
+ type context_d_DeleteDocumentRequest = DeleteDocumentRequest;
870
+ type context_d_DeleteDocumentResponse = DeleteDocumentResponse;
871
+ type context_d_DeleteDocumentResponseNonNullableFields = DeleteDocumentResponseNonNullableFields;
872
+ type context_d_Document = Document;
873
+ type context_d_DocumentContent = DocumentContent;
874
+ type context_d_DocumentCreatedEnvelope = DocumentCreatedEnvelope;
875
+ type context_d_DocumentDeletedEnvelope = DocumentDeletedEnvelope;
876
+ type context_d_DocumentFile = DocumentFile;
877
+ type context_d_DocumentNonNullableFields = DocumentNonNullableFields;
878
+ type context_d_DocumentRenderDelayed = DocumentRenderDelayed;
879
+ type context_d_DocumentRenderDelayedEnvelope = DocumentRenderDelayedEnvelope;
880
+ type context_d_DocumentRenderFailed = DocumentRenderFailed;
881
+ type context_d_DocumentRenderFailedEnvelope = DocumentRenderFailedEnvelope;
882
+ type context_d_DocumentRendered = DocumentRendered;
883
+ type context_d_DocumentRenderedEnvelope = DocumentRenderedEnvelope;
884
+ type context_d_DocumentUpdatedEnvelope = DocumentUpdatedEnvelope;
885
+ type context_d_DocumentsQueryBuilder = DocumentsQueryBuilder;
886
+ type context_d_DocumentsQueryResult = DocumentsQueryResult;
887
+ type context_d_DomainEvent = DomainEvent;
888
+ type context_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
889
+ type context_d_DownloadDocumentOptions = DownloadDocumentOptions;
890
+ type context_d_DownloadDocumentRequest = DownloadDocumentRequest;
891
+ type context_d_DownloadDocumentResponse = DownloadDocumentResponse;
892
+ type context_d_DownloadDocumentResponseNonNullableFields = DownloadDocumentResponseNonNullableFields;
893
+ type context_d_DownloadDocumentSourceRequest = DownloadDocumentSourceRequest;
894
+ type context_d_DownloadDocumentSourceResponse = DownloadDocumentSourceResponse;
895
+ type context_d_DownloadDocumentSourceResponseNonNullableFields = DownloadDocumentSourceResponseNonNullableFields;
896
+ type context_d_Empty = Empty;
897
+ type context_d_EntityCreatedEvent = EntityCreatedEvent;
898
+ type context_d_EntityDeletedEvent = EntityDeletedEvent;
899
+ type context_d_EntityUpdatedEvent = EntityUpdatedEvent;
900
+ type context_d_EventMetadata = EventMetadata;
901
+ type context_d_Format = Format;
902
+ declare const context_d_Format: typeof Format;
903
+ type context_d_GetDocumentOptions = GetDocumentOptions;
904
+ type context_d_GetDocumentRequest = GetDocumentRequest;
905
+ type context_d_GetDocumentResponse = GetDocumentResponse;
906
+ type context_d_GetDocumentResponseNonNullableFields = GetDocumentResponseNonNullableFields;
907
+ type context_d_GetDownloadPageRequest = GetDownloadPageRequest;
908
+ type context_d_GetDownloadUrlOptions = GetDownloadUrlOptions;
909
+ type context_d_GetDownloadUrlRequest = GetDownloadUrlRequest;
910
+ type context_d_GetDownloadUrlRequestDocumentOneOf = GetDownloadUrlRequestDocumentOneOf;
911
+ type context_d_GetDownloadUrlResponse = GetDownloadUrlResponse;
912
+ type context_d_GetDownloadUrlResponseNonNullableFields = GetDownloadUrlResponseNonNullableFields;
913
+ type context_d_HeadersEntry = HeadersEntry;
914
+ type context_d_IdentificationData = IdentificationData;
915
+ type context_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
916
+ type context_d_ImageSetting = ImageSetting;
917
+ type context_d_MessageEnvelope = MessageEnvelope;
918
+ type context_d_PageSettings = PageSettings;
919
+ type context_d_Paging = Paging;
920
+ type context_d_PagingMetadataV2 = PagingMetadataV2;
921
+ type context_d_PaperSize = PaperSize;
922
+ declare const context_d_PaperSize: typeof PaperSize;
923
+ type context_d_QueryDocumentOptions = QueryDocumentOptions;
924
+ type context_d_QueryDocumentRequest = QueryDocumentRequest;
925
+ type context_d_QueryDocumentResponse = QueryDocumentResponse;
926
+ type context_d_QueryDocumentResponseNonNullableFields = QueryDocumentResponseNonNullableFields;
927
+ type context_d_QueryV2 = QueryV2;
928
+ type context_d_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
929
+ type context_d_RawHttpResponse = RawHttpResponse;
930
+ type context_d_RawHttpResponseNonNullableFields = RawHttpResponseNonNullableFields;
931
+ type context_d_RenderDelayedEventConfig = RenderDelayedEventConfig;
932
+ type context_d_RenderDocumentByIdRequest = RenderDocumentByIdRequest;
933
+ type context_d_RenderDocumentRequestV2 = RenderDocumentRequestV2;
934
+ type context_d_RenderFormat = RenderFormat;
935
+ declare const context_d_RenderFormat: typeof RenderFormat;
936
+ type context_d_RenderStatus = RenderStatus;
937
+ declare const context_d_RenderStatus: typeof RenderStatus;
938
+ type context_d_RequestedFields = RequestedFields;
939
+ declare const context_d_RequestedFields: typeof RequestedFields;
940
+ type context_d_ResizeOption = ResizeOption;
941
+ declare const context_d_ResizeOption: typeof ResizeOption;
942
+ type context_d_RestoreInfo = RestoreInfo;
943
+ type context_d_SelectSetting = SelectSetting;
944
+ type context_d_SettingsGroup = SettingsGroup;
945
+ type context_d_SortOrder = SortOrder;
946
+ declare const context_d_SortOrder: typeof SortOrder;
947
+ type context_d_Sorting = Sorting;
948
+ type context_d_TemplateSettings = TemplateSettings;
949
+ type context_d_TemplateSettingsOverride = TemplateSettingsOverride;
950
+ type context_d_TextContent = TextContent;
951
+ type context_d_TextSetting = TextSetting;
952
+ type context_d_UpdateDocumentOptions = UpdateDocumentOptions;
953
+ type context_d_UpdateDocumentRequest = UpdateDocumentRequest;
954
+ type context_d_UpdateDocumentResponse = UpdateDocumentResponse;
955
+ type context_d_UpdateDocumentResponseNonNullableFields = UpdateDocumentResponseNonNullableFields;
956
+ type context_d_WebhookIdentityType = WebhookIdentityType;
957
+ declare const context_d_WebhookIdentityType: typeof WebhookIdentityType;
958
+ type context_d_WixMpClientVersion = WixMpClientVersion;
959
+ declare const context_d_WixMpClientVersion: typeof WixMpClientVersion;
960
+ declare const context_d_createDocument: typeof createDocument;
961
+ declare const context_d_deleteDocument: typeof deleteDocument;
962
+ declare const context_d_downloadDocument: typeof downloadDocument;
963
+ declare const context_d_downloadDocumentSource: typeof downloadDocumentSource;
964
+ declare const context_d_getDocument: typeof getDocument;
965
+ declare const context_d_getDownloadPage: typeof getDownloadPage;
966
+ declare const context_d_getDownloadUrl: typeof getDownloadUrl;
967
+ declare const context_d_onDocumentCreated: typeof onDocumentCreated;
968
+ declare const context_d_onDocumentDeleted: typeof onDocumentDeleted;
969
+ declare const context_d_onDocumentRenderDelayed: typeof onDocumentRenderDelayed;
970
+ declare const context_d_onDocumentRenderFailed: typeof onDocumentRenderFailed;
971
+ declare const context_d_onDocumentRendered: typeof onDocumentRendered;
972
+ declare const context_d_onDocumentUpdated: typeof onDocumentUpdated;
973
+ declare const context_d_queryDocument: typeof queryDocument;
974
+ declare const context_d_updateDocument: typeof updateDocument;
975
+ declare namespace context_d {
976
+ export { type context_d_ActionEvent as ActionEvent, type context_d_BackgroundSetting as BackgroundSetting, type context_d_BaseEventMetadata as BaseEventMetadata, type context_d_CreateDocumentOptions as CreateDocumentOptions, type context_d_CreateDocumentRequest as CreateDocumentRequest, type context_d_CreateDocumentResponse as CreateDocumentResponse, type context_d_CreateDocumentResponseNonNullableFields as CreateDocumentResponseNonNullableFields, type context_d_CursorPaging as CursorPaging, type context_d_Cursors as Cursors, type context_d_DeleteDocumentRequest as DeleteDocumentRequest, type context_d_DeleteDocumentResponse as DeleteDocumentResponse, type context_d_DeleteDocumentResponseNonNullableFields as DeleteDocumentResponseNonNullableFields, type context_d_Document as Document, type context_d_DocumentContent as DocumentContent, type context_d_DocumentCreatedEnvelope as DocumentCreatedEnvelope, type context_d_DocumentDeletedEnvelope as DocumentDeletedEnvelope, type context_d_DocumentFile as DocumentFile, type context_d_DocumentNonNullableFields as DocumentNonNullableFields, type context_d_DocumentRenderDelayed as DocumentRenderDelayed, type context_d_DocumentRenderDelayedEnvelope as DocumentRenderDelayedEnvelope, type context_d_DocumentRenderFailed as DocumentRenderFailed, type context_d_DocumentRenderFailedEnvelope as DocumentRenderFailedEnvelope, type context_d_DocumentRendered as DocumentRendered, type context_d_DocumentRenderedEnvelope as DocumentRenderedEnvelope, type context_d_DocumentUpdatedEnvelope as DocumentUpdatedEnvelope, type context_d_DocumentsQueryBuilder as DocumentsQueryBuilder, type context_d_DocumentsQueryResult as DocumentsQueryResult, type context_d_DomainEvent as DomainEvent, type context_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_d_DownloadDocumentOptions as DownloadDocumentOptions, type context_d_DownloadDocumentRequest as DownloadDocumentRequest, type context_d_DownloadDocumentResponse as DownloadDocumentResponse, type context_d_DownloadDocumentResponseNonNullableFields as DownloadDocumentResponseNonNullableFields, type context_d_DownloadDocumentSourceRequest as DownloadDocumentSourceRequest, type context_d_DownloadDocumentSourceResponse as DownloadDocumentSourceResponse, type context_d_DownloadDocumentSourceResponseNonNullableFields as DownloadDocumentSourceResponseNonNullableFields, type context_d_Empty as Empty, type context_d_EntityCreatedEvent as EntityCreatedEvent, type context_d_EntityDeletedEvent as EntityDeletedEvent, type context_d_EntityUpdatedEvent as EntityUpdatedEvent, type context_d_EventMetadata as EventMetadata, context_d_Format as Format, type context_d_GetDocumentOptions as GetDocumentOptions, type context_d_GetDocumentRequest as GetDocumentRequest, type context_d_GetDocumentResponse as GetDocumentResponse, type context_d_GetDocumentResponseNonNullableFields as GetDocumentResponseNonNullableFields, type context_d_GetDownloadPageRequest as GetDownloadPageRequest, type context_d_GetDownloadUrlOptions as GetDownloadUrlOptions, type context_d_GetDownloadUrlRequest as GetDownloadUrlRequest, type context_d_GetDownloadUrlRequestDocumentOneOf as GetDownloadUrlRequestDocumentOneOf, type context_d_GetDownloadUrlResponse as GetDownloadUrlResponse, type context_d_GetDownloadUrlResponseNonNullableFields as GetDownloadUrlResponseNonNullableFields, type context_d_HeadersEntry as HeadersEntry, type context_d_IdentificationData as IdentificationData, type context_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_d_ImageSetting as ImageSetting, type context_d_MessageEnvelope as MessageEnvelope, type context_d_PageSettings as PageSettings, type context_d_Paging as Paging, type context_d_PagingMetadataV2 as PagingMetadataV2, context_d_PaperSize as PaperSize, type context_d_QueryDocumentOptions as QueryDocumentOptions, type context_d_QueryDocumentRequest as QueryDocumentRequest, type context_d_QueryDocumentResponse as QueryDocumentResponse, type context_d_QueryDocumentResponseNonNullableFields as QueryDocumentResponseNonNullableFields, type context_d_QueryV2 as QueryV2, type context_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context_d_RawHttpResponse as RawHttpResponse, type context_d_RawHttpResponseNonNullableFields as RawHttpResponseNonNullableFields, type context_d_RenderDelayedEventConfig as RenderDelayedEventConfig, type context_d_RenderDocumentByIdRequest as RenderDocumentByIdRequest, type context_d_RenderDocumentRequestV2 as RenderDocumentRequestV2, context_d_RenderFormat as RenderFormat, context_d_RenderStatus as RenderStatus, context_d_RequestedFields as RequestedFields, context_d_ResizeOption as ResizeOption, type context_d_RestoreInfo as RestoreInfo, type context_d_SelectSetting as SelectSetting, type context_d_SettingsGroup as SettingsGroup, context_d_SortOrder as SortOrder, type context_d_Sorting as Sorting, type context_d_TemplateSettings as TemplateSettings, type context_d_TemplateSettingsOverride as TemplateSettingsOverride, type context_d_TextContent as TextContent, type context_d_TextSetting as TextSetting, type context_d_UpdateDocumentOptions as UpdateDocumentOptions, type context_d_UpdateDocumentRequest as UpdateDocumentRequest, type context_d_UpdateDocumentResponse as UpdateDocumentResponse, type context_d_UpdateDocumentResponseNonNullableFields as UpdateDocumentResponseNonNullableFields, context_d_WebhookIdentityType as WebhookIdentityType, context_d_WixMpClientVersion as WixMpClientVersion, context_d_createDocument as createDocument, context_d_deleteDocument as deleteDocument, context_d_downloadDocument as downloadDocument, context_d_downloadDocumentSource as downloadDocumentSource, context_d_getDocument as getDocument, context_d_getDownloadPage as getDownloadPage, context_d_getDownloadUrl as getDownloadUrl, context_d_onDocumentCreated as onDocumentCreated, context_d_onDocumentDeleted as onDocumentDeleted, context_d_onDocumentRenderDelayed as onDocumentRenderDelayed, context_d_onDocumentRenderFailed as onDocumentRenderFailed, context_d_onDocumentRendered as onDocumentRendered, context_d_onDocumentUpdated as onDocumentUpdated, context_d_queryDocument as queryDocument, context_d_updateDocument as updateDocument };
966
977
  }
967
978
 
968
- export { context as documents };
979
+ export { context_d as documents };
@@ -769,16 +769,27 @@ type HttpResponse<T = any> = {
769
769
  headers: any;
770
770
  request?: any;
771
771
  };
772
+ type ResponseTransformer$1 = (data: any) => any;
772
773
  type RequestOptions<_TResponse = any, Data = any> = {
773
774
  method: HTTPMethod;
774
775
  url: string;
775
776
  data?: Data;
776
777
  params?: URLSearchParams;
778
+ fallback?: RequestOptions<any, any>[];
779
+ /**
780
+ * The array option is for interoperability, defacto only the first function is used
781
+ * if an array is provided
782
+ */
783
+ transformResponse?: ResponseTransformer$1 | ResponseTransformer$1[];
777
784
  } & APIMetadata;
778
785
  type APIMetadata = {
779
786
  methodFqn?: string;
780
787
  entityFqdn?: string;
781
788
  packageName?: string;
789
+ migrationOptions?: MigrationOptions;
790
+ };
791
+ type MigrationOptions = {
792
+ optInTransformResponse?: boolean;
782
793
  };
783
794
  type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
784
795
  type EventDefinition<Payload = unknown, Type extends string = string> = {
@@ -748,18 +748,18 @@ declare function downloadDocumentSource(): __PublicMethodMetaInfo<'GET', {
748
748
  documentId: string;
749
749
  }, DownloadDocumentSourceRequest, DownloadDocumentSourceRequest$1, DownloadDocumentSourceResponse & DownloadDocumentSourceResponseNonNullableFields, DownloadDocumentSourceResponse$1 & DownloadDocumentSourceResponseNonNullableFields$1>;
750
750
 
751
- type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
752
- declare const meta_createDocument: typeof createDocument;
753
- declare const meta_deleteDocument: typeof deleteDocument;
754
- declare const meta_downloadDocument: typeof downloadDocument;
755
- declare const meta_downloadDocumentSource: typeof downloadDocumentSource;
756
- declare const meta_getDocument: typeof getDocument;
757
- declare const meta_getDownloadPage: typeof getDownloadPage;
758
- declare const meta_getDownloadUrl: typeof getDownloadUrl;
759
- declare const meta_queryDocument: typeof queryDocument;
760
- declare const meta_updateDocument: typeof updateDocument;
761
- declare namespace meta {
762
- export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_createDocument as createDocument, meta_deleteDocument as deleteDocument, meta_downloadDocument as downloadDocument, meta_downloadDocumentSource as downloadDocumentSource, meta_getDocument as getDocument, meta_getDownloadPage as getDownloadPage, meta_getDownloadUrl as getDownloadUrl, meta_queryDocument as queryDocument, meta_updateDocument as updateDocument };
751
+ type meta_d___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
752
+ declare const meta_d_createDocument: typeof createDocument;
753
+ declare const meta_d_deleteDocument: typeof deleteDocument;
754
+ declare const meta_d_downloadDocument: typeof downloadDocument;
755
+ declare const meta_d_downloadDocumentSource: typeof downloadDocumentSource;
756
+ declare const meta_d_getDocument: typeof getDocument;
757
+ declare const meta_d_getDownloadPage: typeof getDownloadPage;
758
+ declare const meta_d_getDownloadUrl: typeof getDownloadUrl;
759
+ declare const meta_d_queryDocument: typeof queryDocument;
760
+ declare const meta_d_updateDocument: typeof updateDocument;
761
+ declare namespace meta_d {
762
+ export { type meta_d___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_d_createDocument as createDocument, meta_d_deleteDocument as deleteDocument, meta_d_downloadDocument as downloadDocument, meta_d_downloadDocumentSource as downloadDocumentSource, meta_d_getDocument as getDocument, meta_d_getDownloadPage as getDownloadPage, meta_d_getDownloadUrl as getDownloadUrl, meta_d_queryDocument as queryDocument, meta_d_updateDocument as updateDocument };
763
763
  }
764
764
 
765
- export { meta as documents };
765
+ export { meta_d as documents };