@wix/papyrus 1.0.5 → 1.0.7
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.7",
|
|
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.6"
|
|
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": "5cba69a72ce4e5aca98f69c145198b32c5077b14997bd394c33887f7"
|
|
49
49
|
}
|
|
@@ -746,11 +746,20 @@ interface GetDownloadUrlOptions extends GetDownloadUrlRequestDocumentOneOf {
|
|
|
746
746
|
urlExpirationInSeconds?: number | null;
|
|
747
747
|
}
|
|
748
748
|
|
|
749
|
+
declare global {
|
|
750
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
751
|
+
interface SymbolConstructor {
|
|
752
|
+
readonly observable: symbol;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
type HTTPMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
749
757
|
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
750
758
|
interface HttpClient {
|
|
751
759
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
752
760
|
fetchWithAuth: typeof fetch;
|
|
753
761
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
762
|
+
getActiveToken?: () => string | undefined;
|
|
754
763
|
}
|
|
755
764
|
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
756
765
|
type HttpResponse<T = any> = {
|
|
@@ -761,7 +770,7 @@ type HttpResponse<T = any> = {
|
|
|
761
770
|
request?: any;
|
|
762
771
|
};
|
|
763
772
|
type RequestOptions<_TResponse = any, Data = any> = {
|
|
764
|
-
method:
|
|
773
|
+
method: HTTPMethod;
|
|
765
774
|
url: string;
|
|
766
775
|
data?: Data;
|
|
767
776
|
params?: URLSearchParams;
|
|
@@ -784,10 +793,37 @@ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void
|
|
|
784
793
|
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
785
794
|
|
|
786
795
|
declare global {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
796
|
+
interface ContextualClient {
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
declare global {
|
|
800
|
+
/**
|
|
801
|
+
* A global interface to set the exposure toggle for the SDK.
|
|
802
|
+
* @example
|
|
803
|
+
* ```ts
|
|
804
|
+
* declare global {
|
|
805
|
+
* interface SDKExposureToggle {
|
|
806
|
+
* alpha: true;
|
|
807
|
+
* }
|
|
808
|
+
* }
|
|
809
|
+
*/
|
|
810
|
+
interface SDKExposureToggle {
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
declare global {
|
|
815
|
+
/**
|
|
816
|
+
* A global interface to set the type mode for the SDK.
|
|
817
|
+
* @example
|
|
818
|
+
* ```ts
|
|
819
|
+
* declare global {
|
|
820
|
+
* interface SDKTypeMode {
|
|
821
|
+
* strict: true;
|
|
822
|
+
* }
|
|
823
|
+
* }
|
|
824
|
+
*/
|
|
825
|
+
interface SDKTypeMode {
|
|
826
|
+
}
|
|
791
827
|
}
|
|
792
828
|
|
|
793
829
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
@@ -746,11 +746,20 @@ interface GetDownloadUrlOptions extends GetDownloadUrlRequestDocumentOneOf {
|
|
|
746
746
|
urlExpirationInSeconds?: number | null;
|
|
747
747
|
}
|
|
748
748
|
|
|
749
|
+
declare global {
|
|
750
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
751
|
+
interface SymbolConstructor {
|
|
752
|
+
readonly observable: symbol;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
type HTTPMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
749
757
|
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
750
758
|
interface HttpClient {
|
|
751
759
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
752
760
|
fetchWithAuth: typeof fetch;
|
|
753
761
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
762
|
+
getActiveToken?: () => string | undefined;
|
|
754
763
|
}
|
|
755
764
|
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
756
765
|
type HttpResponse<T = any> = {
|
|
@@ -761,7 +770,7 @@ type HttpResponse<T = any> = {
|
|
|
761
770
|
request?: any;
|
|
762
771
|
};
|
|
763
772
|
type RequestOptions<_TResponse = any, Data = any> = {
|
|
764
|
-
method:
|
|
773
|
+
method: HTTPMethod;
|
|
765
774
|
url: string;
|
|
766
775
|
data?: Data;
|
|
767
776
|
params?: URLSearchParams;
|
|
@@ -784,10 +793,37 @@ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void
|
|
|
784
793
|
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
785
794
|
|
|
786
795
|
declare global {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
796
|
+
interface ContextualClient {
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
declare global {
|
|
800
|
+
/**
|
|
801
|
+
* A global interface to set the exposure toggle for the SDK.
|
|
802
|
+
* @example
|
|
803
|
+
* ```ts
|
|
804
|
+
* declare global {
|
|
805
|
+
* interface SDKExposureToggle {
|
|
806
|
+
* alpha: true;
|
|
807
|
+
* }
|
|
808
|
+
* }
|
|
809
|
+
*/
|
|
810
|
+
interface SDKExposureToggle {
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
declare global {
|
|
815
|
+
/**
|
|
816
|
+
* A global interface to set the type mode for the SDK.
|
|
817
|
+
* @example
|
|
818
|
+
* ```ts
|
|
819
|
+
* declare global {
|
|
820
|
+
* interface SDKTypeMode {
|
|
821
|
+
* strict: true;
|
|
822
|
+
* }
|
|
823
|
+
* }
|
|
824
|
+
*/
|
|
825
|
+
interface SDKTypeMode {
|
|
826
|
+
}
|
|
791
827
|
}
|
|
792
828
|
|
|
793
829
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|