@wix/papyrus 1.0.10 → 1.0.11
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.
|
|
3
|
+
"version": "1.0.11",
|
|
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.
|
|
24
|
+
"@wix/papyrus_documents": "1.0.10"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"glob": "^10.4.1",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"fqdn": ""
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"falconPackageHash": "
|
|
48
|
+
"falconPackageHash": "7a65fa93cc260496f54a47d9f262f7e3f81db8bb185b2f19112332a5"
|
|
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> = {
|
|
@@ -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> = {
|