@wix/papyrus 1.0.5 → 1.0.6
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.6",
|
|
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.5"
|
|
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": "45383aec33c9c68afa2e7acb4ae500947de829e5a4baec22f5bd8df9"
|
|
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;
|
|
@@ -790,6 +799,39 @@ declare global {
|
|
|
790
799
|
}
|
|
791
800
|
}
|
|
792
801
|
|
|
802
|
+
declare global {
|
|
803
|
+
interface ContextualClient {
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
declare global {
|
|
807
|
+
/**
|
|
808
|
+
* A global interface to set the exposure toggle for the SDK.
|
|
809
|
+
* @example
|
|
810
|
+
* ```ts
|
|
811
|
+
* declare global {
|
|
812
|
+
* interface SDKExposureToggle {
|
|
813
|
+
* alpha: true;
|
|
814
|
+
* }
|
|
815
|
+
* }
|
|
816
|
+
*/
|
|
817
|
+
interface SDKExposureToggle {
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
declare global {
|
|
821
|
+
/**
|
|
822
|
+
* A global interface to set the type mode for the SDK.
|
|
823
|
+
* @example
|
|
824
|
+
* ```ts
|
|
825
|
+
* declare global {
|
|
826
|
+
* interface SDKTypeMode {
|
|
827
|
+
* strict: true;
|
|
828
|
+
* }
|
|
829
|
+
* }
|
|
830
|
+
*/
|
|
831
|
+
interface SDKTypeMode {
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
|
|
793
835
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
794
836
|
|
|
795
837
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<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;
|
|
@@ -790,6 +799,39 @@ declare global {
|
|
|
790
799
|
}
|
|
791
800
|
}
|
|
792
801
|
|
|
802
|
+
declare global {
|
|
803
|
+
interface ContextualClient {
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
declare global {
|
|
807
|
+
/**
|
|
808
|
+
* A global interface to set the exposure toggle for the SDK.
|
|
809
|
+
* @example
|
|
810
|
+
* ```ts
|
|
811
|
+
* declare global {
|
|
812
|
+
* interface SDKExposureToggle {
|
|
813
|
+
* alpha: true;
|
|
814
|
+
* }
|
|
815
|
+
* }
|
|
816
|
+
*/
|
|
817
|
+
interface SDKExposureToggle {
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
declare global {
|
|
821
|
+
/**
|
|
822
|
+
* A global interface to set the type mode for the SDK.
|
|
823
|
+
* @example
|
|
824
|
+
* ```ts
|
|
825
|
+
* declare global {
|
|
826
|
+
* interface SDKTypeMode {
|
|
827
|
+
* strict: true;
|
|
828
|
+
* }
|
|
829
|
+
* }
|
|
830
|
+
*/
|
|
831
|
+
interface SDKTypeMode {
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
|
|
793
835
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
794
836
|
|
|
795
837
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|