@wix/sdk-types
Advanced tools
Comparing version 1.12.4 to 1.12.5
@@ -43,2 +43,3 @@ type HostModule<T, H extends Host> = { | ||
type HTTPMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS'; | ||
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T; | ||
@@ -60,3 +61,3 @@ interface HttpClient { | ||
type RequestOptions<_TResponse = any, Data = any> = { | ||
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS'; | ||
method: HTTPMethod; | ||
url: string; | ||
@@ -72,2 +73,14 @@ data?: Data; | ||
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never; | ||
type RestModuleMeta<TMethod extends HTTPMethod = HTTPMethod, TPathParams = unknown, RequestType = unknown, TOriginalRequestType = unknown, ResponseType = unknown, OriginalResponseType = unknown> = { | ||
getUrl(context: { | ||
host: string; | ||
}): string; | ||
httpMethod: TMethod; | ||
pathParams: TPathParams; | ||
path: string; | ||
__requestType: RequestType; | ||
__originalRequestType: TOriginalRequestType; | ||
__responseType: ResponseType; | ||
__originalResponseType: OriginalResponseType; | ||
}; | ||
@@ -522,2 +535,2 @@ type AuthenticationStrategy<Host = unknown> = { | ||
export { type APIMetadata, type AmbassadorFactory, type AmbassadorFunctionDescriptor, type AmbassadorRequestOptions, type AuthenticationStrategy, type BaseEventMetadata, type BoundAuthenticationStrategy, type BuildAmbassadorFunction, type BuildDescriptors, type BuildEventDefinition, type BuildRESTFunction, type BuildServicePluginDefinition, type Descriptors, EventDefinition, type EventHandler, type EventIdentity, type Host, type HostModule, type HostModuleAPI, type HttpClient, type HttpResponse, type MaybeContext, type Method, type PublicMetadata, type RESTFunctionDescriptor, type RequestContext, type RequestOptions, type RequestOptionsFactory, SERVICE_PLUGIN_ERROR_TYPE, type ServicePluginContract, ServicePluginDefinition, type ServicePluginMethodInput, type ServicePluginMethodMetadata }; | ||
export { type APIMetadata, type AmbassadorFactory, type AmbassadorFunctionDescriptor, type AmbassadorRequestOptions, type AuthenticationStrategy, type BaseEventMetadata, type BoundAuthenticationStrategy, type BuildAmbassadorFunction, type BuildDescriptors, type BuildEventDefinition, type BuildRESTFunction, type BuildServicePluginDefinition, type Descriptors, EventDefinition, type EventHandler, type EventIdentity, type HTTPMethod, type Host, type HostModule, type HostModuleAPI, type HttpClient, type HttpResponse, type MaybeContext, type Method, type PublicMetadata, type RESTFunctionDescriptor, type RequestContext, type RequestOptions, type RequestOptionsFactory, type RestModuleMeta, SERVICE_PLUGIN_ERROR_TYPE, type ServicePluginContract, ServicePluginDefinition, type ServicePluginMethodInput, type ServicePluginMethodMetadata }; |
{ | ||
"name": "@wix/sdk-types", | ||
"version": "1.12.4", | ||
"version": "1.12.5", | ||
"license": "UNLICENSED", | ||
@@ -31,8 +31,8 @@ "author": { | ||
"devDependencies": { | ||
"@types/node": "^20.17.1", | ||
"@types/node": "^20.17.9", | ||
"eslint": "^8.57.1", | ||
"eslint-config-sdk": "0.0.0", | ||
"tsup": "^7.3.0", | ||
"type-fest": "^4.26.1", | ||
"typescript": "^5.6.3" | ||
"type-fest": "^4.29.0", | ||
"typescript": "^5.7.2" | ||
}, | ||
@@ -62,3 +62,3 @@ "yoshiFlowLibrary": { | ||
}, | ||
"falconPackageHash": "8469d4de3131c4bcc8fc47df34db04866cf00b50a23e8a32eb180346" | ||
"falconPackageHash": "0d2624979aa91d2fdf561413936058ec3500f8622d610fd50c7cc8da" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40377
555