@wix/sdk-types
Advanced tools
Comparing version 1.5.6 to 1.5.7
@@ -46,3 +46,3 @@ type HostModule<T, H extends Host> = { | ||
}>; | ||
decodeJWT?: (token: string, verifyCallerClaims?: boolean) => { | ||
decodeJWT?: (token: string, verifyCallerClaims?: boolean) => Promise<{ | ||
decoded: { | ||
@@ -52,3 +52,3 @@ data: string; | ||
valid: boolean; | ||
}; | ||
}>; | ||
}; | ||
@@ -61,6 +61,7 @@ type BoundAuthenticationStrategy = { | ||
type EventDefinition<Payload = unknown> = { | ||
type: string; | ||
type EventDefinition<Payload = unknown, Type extends string = string> = { | ||
type: Type; | ||
__payload: Payload; | ||
}; | ||
declare function EventDefinition<Type extends string>(type: Type): <Payload = unknown>() => EventDefinition<Payload, Type>; | ||
@@ -72,2 +73,2 @@ type SPIDefinition<TInput, TResult> = { | ||
export type { APIMetadata, AuthenticationStrategy, BoundAuthenticationStrategy, BuildRESTFunction, EventDefinition, Host, HostModule, HostModuleAPI, HttpClient, HttpResponse, RESTFunctionDescriptor, RequestOptions, RequestOptionsFactory, SPIDefinition }; | ||
export { type APIMetadata, type AuthenticationStrategy, type BoundAuthenticationStrategy, type BuildRESTFunction, EventDefinition, type Host, type HostModule, type HostModuleAPI, type HttpClient, type HttpResponse, type RESTFunctionDescriptor, type RequestOptions, type RequestOptionsFactory, type SPIDefinition }; |
@@ -6,2 +6,6 @@ "use strict"; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
@@ -19,2 +23,14 @@ if (from && typeof from === "object" || typeof from === "function") { | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
EventDefinition: () => EventDefinition | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
// src/webhooks.ts | ||
function EventDefinition(type) { | ||
return () => ({ type }); | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
EventDefinition | ||
}); |
{ | ||
"name": "@wix/sdk-types", | ||
"version": "1.5.6", | ||
"version": "1.5.7", | ||
"license": "UNLICENSED", | ||
@@ -60,3 +60,3 @@ "author": { | ||
}, | ||
"falconPackageHash": "413000daa6e1e75d69913de2edf89efad884bb828fc97e9482f472a3" | ||
"falconPackageHash": "11cd2184d696f61c8d1abb447f1f9be0194458f59c8e3b52a4a42c54" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
7590
112