@wix/api-client
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -64,6 +64,6 @@ import { AuthenticationStrategy, BoundAuthenticationStrategy, BuildRESTFunction, Host, HostModule, HostModuleAPI, RESTFunctionDescriptor, EventDefinition } from '@wix/sdk-types'; | ||
webhooks: { | ||
process<ExpectedEvents extends EventDefinition[] = []>(jwt: string, opts?: { | ||
process<ExpectedEvents extends EventDefinition<any>[] = []>(jwt: string, opts?: { | ||
expectedEvents: ExpectedEvents; | ||
}): ProcessedEvent<ExpectedEvents>; | ||
processRequest<ExpectedEvents extends EventDefinition[] = []>(request: Request, opts?: { | ||
processRequest<ExpectedEvents extends EventDefinition<any>[] = []>(request: Request, opts?: { | ||
expectedEvents: ExpectedEvents; | ||
@@ -73,4 +73,4 @@ }): Promise<ProcessedEvent<ExpectedEvents>>; | ||
} & BuildDescriptors<T, H>; | ||
type ResolvePossibleEvents<T extends EventDefinition[]> = { | ||
[K in keyof T]: T[K] extends EventDefinition ? { | ||
type ResolvePossibleEvents<T extends EventDefinition<any>[]> = { | ||
[K in keyof T]: T[K] extends EventDefinition<any> ? { | ||
eventType: T[K]['type']; | ||
@@ -80,3 +80,3 @@ payload: T[K]['__payload']; | ||
} extends (infer U)[] ? U : never; | ||
export type ProcessedEvent<T extends EventDefinition[] = []> = { | ||
export type ProcessedEvent<T extends EventDefinition<any>[] = []> = { | ||
instanceId: string; | ||
@@ -83,0 +83,0 @@ } & (T['length'] extends 0 ? { |
{ | ||
"name": "@wix/api-client", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"license": "UNLICENSED", | ||
@@ -24,6 +24,6 @@ "main": "build/index.js", | ||
"@babel/runtime": "^7.23.2", | ||
"@wix/identity": "^1.0.71", | ||
"@wix/image-kit": "^1.49.0", | ||
"@wix/identity": "^1.0.72", | ||
"@wix/image-kit": "^1.50.0", | ||
"@wix/redirects": "^1.0.32", | ||
"@wix/sdk-types": "^1.5.4", | ||
"@wix/sdk-types": "^1.5.5", | ||
"crypto-js": "^4.2.0", | ||
@@ -36,4 +36,4 @@ "jsonwebtoken": "^9.0.2", | ||
"devDependencies": { | ||
"@wix/metro-runtime": "^1.1613.0", | ||
"@wix/sdk": "1.7.1" | ||
"@wix/metro-runtime": "^1.1616.0", | ||
"@wix/sdk": "1.7.2" | ||
}, | ||
@@ -51,3 +51,3 @@ "wix": { | ||
}, | ||
"falconPackageHash": "6012bbbe38c3ddee37d832d703a5da27fc969e90d1cfd9875e982d11" | ||
"falconPackageHash": "7e631ffc2f146e6bf55d6dcd916531cf8b460c7623dcc3953e49516b" | ||
} |
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
63680
Updated@wix/identity@^1.0.72
Updated@wix/image-kit@^1.50.0
Updated@wix/sdk-types@^1.5.5