@wix/sdk-types 1.17.6 → 1.17.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.
@@ -68,7 +68,9 @@ type Host<Environment = unknown> = {
68
68
  };
69
69
 
70
70
  type HTTPMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
71
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
71
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient, options?: {
72
+ validateRequestSchema?: boolean;
73
+ }) => T;
72
74
  interface HttpClient {
73
75
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
74
76
  fetchWithAuth: typeof fetch;
package/build/index.d.mts CHANGED
@@ -68,7 +68,9 @@ type Host<Environment = unknown> = {
68
68
  };
69
69
 
70
70
  type HTTPMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
71
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
71
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient, options?: {
72
+ validateRequestSchema?: boolean;
73
+ }) => T;
72
74
  interface HttpClient {
73
75
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
74
76
  fetchWithAuth: typeof fetch;
package/build/index.d.ts CHANGED
@@ -68,7 +68,9 @@ type Host<Environment = unknown> = {
68
68
  };
69
69
 
70
70
  type HTTPMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
71
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
71
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient, options?: {
72
+ validateRequestSchema?: boolean;
73
+ }) => T;
72
74
  interface HttpClient {
73
75
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
74
76
  fetchWithAuth: typeof fetch;
@@ -126,7 +126,9 @@ type Host<Environment = unknown> = {
126
126
  };
127
127
 
128
128
  type HTTPMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
129
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
129
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient, options?: {
130
+ validateRequestSchema?: boolean;
131
+ }) => T;
130
132
  interface HttpClient {
131
133
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
132
134
  fetchWithAuth: typeof fetch;
@@ -126,7 +126,9 @@ type Host<Environment = unknown> = {
126
126
  };
127
127
 
128
128
  type HTTPMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
129
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
129
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient, options?: {
130
+ validateRequestSchema?: boolean;
131
+ }) => T;
130
132
  interface HttpClient {
131
133
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
132
134
  fetchWithAuth: typeof fetch;
@@ -126,7 +126,9 @@ type Host<Environment = unknown> = {
126
126
  };
127
127
 
128
128
  type HTTPMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
129
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
129
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient, options?: {
130
+ validateRequestSchema?: boolean;
131
+ }) => T;
130
132
  interface HttpClient {
131
133
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
132
134
  fetchWithAuth: typeof fetch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk-types",
3
- "version": "1.17.6",
3
+ "version": "1.17.7",
4
4
  "author": {
5
5
  "name": "Ronny Ringel",
6
6
  "email": "ronnyr@wix.com"
@@ -62,5 +62,5 @@
62
62
  ]
63
63
  }
64
64
  },
65
- "falconPackageHash": "5576669101b6b4d52fa492f1299f63fc7c65b45dd1fda16b68fe1ebf"
65
+ "falconPackageHash": "232a10a9f8c3885c05f7177a1eaa3a106a16420867cf09b0a59a579f"
66
66
  }