@wix/sdk-types 1.17.5 → 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.
@@ -1,7 +1,7 @@
1
1
  import { MonitoringClient } from '@wix/monitoring-types';
2
2
  import { PlatformShowError } from '@wix/error-handler-types/v2';
3
3
  export { ErrorCodesMap, ErrorHandlerPublicAPI as ErrorHandler, ResolvedError, ShowErrorMapFunction, ShowErrorProps, StatusCodeMap } from '@wix/error-handler-types/v2';
4
- import { ConditionalExcept, EmptyObject, Simplify, Paths, SetRequiredDeep, JsonObject } from 'type-fest';
4
+ import { ConditionalExcept, EmptyObject, Simplify, Paths, SetNonNullableDeep, SetRequiredDeep, JsonObject } from 'type-fest';
5
5
  export { ErrorHandlerInternalAPI as WixClientErrorHandler } from '@wix/error-handler-types';
6
6
 
7
7
  type HostModule<T, H extends Host> = {
@@ -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;
@@ -346,7 +348,7 @@ type NonNullablePaths<T, K extends Paths<T, {
346
348
  maxRecursionDepth: MaxDepth;
347
349
  }>, MaxDepth extends number = 11> = globalThis.SDKTypeMode extends {
348
350
  strict: true;
349
- } ? SetRequiredDeep<T, K> : T;
351
+ } ? SetNonNullableDeep<SetRequiredDeep<T, K>, K & Paths<SetRequiredDeep<T, K>>> : T;
350
352
 
351
353
  /**
352
354
  * Constant used to indicate all applicable operators for a field type
package/build/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { MonitoringClient } from '@wix/monitoring-types';
2
2
  import { PlatformShowError } from '@wix/error-handler-types/v2';
3
3
  export { ErrorCodesMap, ErrorHandlerPublicAPI as ErrorHandler, ResolvedError, ShowErrorMapFunction, ShowErrorProps, StatusCodeMap } from '@wix/error-handler-types/v2';
4
- import { ConditionalExcept, EmptyObject, Simplify, Paths, SetRequiredDeep, JsonObject } from 'type-fest';
4
+ import { ConditionalExcept, EmptyObject, Simplify, Paths, SetNonNullableDeep, SetRequiredDeep, JsonObject } from 'type-fest';
5
5
  export { ErrorHandlerInternalAPI as WixClientErrorHandler } from '@wix/error-handler-types';
6
6
 
7
7
  type HostModule<T, H extends Host> = {
@@ -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;
@@ -346,7 +348,7 @@ type NonNullablePaths<T, K extends Paths<T, {
346
348
  maxRecursionDepth: MaxDepth;
347
349
  }>, MaxDepth extends number = 11> = globalThis.SDKTypeMode extends {
348
350
  strict: true;
349
- } ? SetRequiredDeep<T, K> : T;
351
+ } ? SetNonNullableDeep<SetRequiredDeep<T, K>, K & Paths<SetRequiredDeep<T, K>>> : T;
350
352
 
351
353
  /**
352
354
  * Constant used to indicate all applicable operators for a field type
package/build/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { MonitoringClient } from '@wix/monitoring-types';
2
2
  import { PlatformShowError } from '@wix/error-handler-types/v2';
3
3
  export { ErrorCodesMap, ErrorHandlerPublicAPI as ErrorHandler, ResolvedError, ShowErrorMapFunction, ShowErrorProps, StatusCodeMap } from '@wix/error-handler-types/v2';
4
- import { ConditionalExcept, EmptyObject, Simplify, Paths, SetRequiredDeep, JsonObject } from 'type-fest';
4
+ import { ConditionalExcept, EmptyObject, Simplify, Paths, SetNonNullableDeep, SetRequiredDeep, JsonObject } from 'type-fest';
5
5
  export { ErrorHandlerInternalAPI as WixClientErrorHandler } from '@wix/error-handler-types';
6
6
 
7
7
  type HostModule<T, H extends Host> = {
@@ -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;
@@ -346,7 +348,7 @@ type NonNullablePaths<T, K extends Paths<T, {
346
348
  maxRecursionDepth: MaxDepth;
347
349
  }>, MaxDepth extends number = 11> = globalThis.SDKTypeMode extends {
348
350
  strict: true;
349
- } ? SetRequiredDeep<T, K> : T;
351
+ } ? SetNonNullableDeep<SetRequiredDeep<T, K>, K & Paths<SetRequiredDeep<T, K>>> : T;
350
352
 
351
353
  /**
352
354
  * Constant used to indicate all applicable operators for a field type
@@ -1,7 +1,7 @@
1
1
  import { MonitoringClient } from '@wix/monitoring-types';
2
2
  import { ErrorHandlerAPI, PlatformShowError } from '@wix/error-handler-types/v2';
3
3
  export { ErrorCodesMap, ErrorHandlerPublicAPI as ErrorHandler, ResolvedError, ShowErrorMapFunction, ShowErrorProps, StatusCodeMap } from '@wix/error-handler-types/v2';
4
- import { ConditionalExcept, EmptyObject, Simplify, Paths, SetRequiredDeep, JsonObject } from 'type-fest';
4
+ import { ConditionalExcept, EmptyObject, Simplify, Paths, SetNonNullableDeep, SetRequiredDeep, JsonObject } from 'type-fest';
5
5
  export { ErrorHandlerInternalAPI as WixClientErrorHandler } from '@wix/error-handler-types';
6
6
 
7
7
  interface BiLogger {
@@ -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;
@@ -404,7 +406,7 @@ type NonNullablePaths<T, K extends Paths<T, {
404
406
  maxRecursionDepth: MaxDepth;
405
407
  }>, MaxDepth extends number = 11> = globalThis.SDKTypeMode extends {
406
408
  strict: true;
407
- } ? SetRequiredDeep<T, K> : T;
409
+ } ? SetNonNullableDeep<SetRequiredDeep<T, K>, K & Paths<SetRequiredDeep<T, K>>> : T;
408
410
 
409
411
  /**
410
412
  * Constant used to indicate all applicable operators for a field type
@@ -1,7 +1,7 @@
1
1
  import { MonitoringClient } from '@wix/monitoring-types';
2
2
  import { ErrorHandlerAPI, PlatformShowError } from '@wix/error-handler-types/v2';
3
3
  export { ErrorCodesMap, ErrorHandlerPublicAPI as ErrorHandler, ResolvedError, ShowErrorMapFunction, ShowErrorProps, StatusCodeMap } from '@wix/error-handler-types/v2';
4
- import { ConditionalExcept, EmptyObject, Simplify, Paths, SetRequiredDeep, JsonObject } from 'type-fest';
4
+ import { ConditionalExcept, EmptyObject, Simplify, Paths, SetNonNullableDeep, SetRequiredDeep, JsonObject } from 'type-fest';
5
5
  export { ErrorHandlerInternalAPI as WixClientErrorHandler } from '@wix/error-handler-types';
6
6
 
7
7
  interface BiLogger {
@@ -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;
@@ -404,7 +406,7 @@ type NonNullablePaths<T, K extends Paths<T, {
404
406
  maxRecursionDepth: MaxDepth;
405
407
  }>, MaxDepth extends number = 11> = globalThis.SDKTypeMode extends {
406
408
  strict: true;
407
- } ? SetRequiredDeep<T, K> : T;
409
+ } ? SetNonNullableDeep<SetRequiredDeep<T, K>, K & Paths<SetRequiredDeep<T, K>>> : T;
408
410
 
409
411
  /**
410
412
  * Constant used to indicate all applicable operators for a field type
@@ -1,7 +1,7 @@
1
1
  import { MonitoringClient } from '@wix/monitoring-types';
2
2
  import { ErrorHandlerAPI, PlatformShowError } from '@wix/error-handler-types/v2';
3
3
  export { ErrorCodesMap, ErrorHandlerPublicAPI as ErrorHandler, ResolvedError, ShowErrorMapFunction, ShowErrorProps, StatusCodeMap } from '@wix/error-handler-types/v2';
4
- import { ConditionalExcept, EmptyObject, Simplify, Paths, SetRequiredDeep, JsonObject } from 'type-fest';
4
+ import { ConditionalExcept, EmptyObject, Simplify, Paths, SetNonNullableDeep, SetRequiredDeep, JsonObject } from 'type-fest';
5
5
  export { ErrorHandlerInternalAPI as WixClientErrorHandler } from '@wix/error-handler-types';
6
6
 
7
7
  interface BiLogger {
@@ -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;
@@ -404,7 +406,7 @@ type NonNullablePaths<T, K extends Paths<T, {
404
406
  maxRecursionDepth: MaxDepth;
405
407
  }>, MaxDepth extends number = 11> = globalThis.SDKTypeMode extends {
406
408
  strict: true;
407
- } ? SetRequiredDeep<T, K> : T;
409
+ } ? SetNonNullableDeep<SetRequiredDeep<T, K>, K & Paths<SetRequiredDeep<T, K>>> : T;
408
410
 
409
411
  /**
410
412
  * Constant used to indicate all applicable operators for a field type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk-types",
3
- "version": "1.17.5",
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": "db830ffd08e27bb7db1c480c3f9ec43b0988a139aafd5fd7da849047"
65
+ "falconPackageHash": "232a10a9f8c3885c05f7177a1eaa3a106a16420867cf09b0a59a579f"
66
66
  }