@wix/sdk-types
Advanced tools
Comparing version
@@ -40,18 +40,2 @@ import { MonitoringClient } from '@wix/monitoring-types'; | ||
} | ||
declare class Experiments extends ReadOnlyExperiments { | ||
private readonly loaders; | ||
private readonly baseUrl; | ||
private requestContext; | ||
readonly useNewApi: boolean; | ||
private onError; | ||
constructor(obj?: ExperimentsProps); | ||
add(obj: ExperimentsBag): void; | ||
private _addLoader; | ||
private _getUrlWithFallback; | ||
load(scope: string): Promise<void>; | ||
conduct(spec: string, fallbackValue?: string): Promise<string>; | ||
pending(): boolean; | ||
ready(): Promise<any>; | ||
_addConductResult(spec: string, conductResponse: string): Promise<string>; | ||
} | ||
interface ExperimentsBag { | ||
@@ -63,33 +47,2 @@ [key: string]: string | boolean; | ||
} | ||
interface ExperimentsProps extends ReadOnlyExperimentsOptions { | ||
useNewApi?: boolean; | ||
baseUrl?: string; | ||
scope?: string; | ||
scopes?: string[]; | ||
requestContext?: RequestContext$1; | ||
onError?: (error: Error) => void; | ||
} | ||
type RequestContext$1 = RequestContextMetasite & OneOf<RequestContextOwner, RequestContextVisitors>; | ||
interface RequestContextMetasite { | ||
overrideCriteria?: { | ||
entityId: string; | ||
}; | ||
} | ||
interface RequestContextOwner { | ||
forSiteOwner?: { | ||
loggedInUserId: string; | ||
siteOwnerId: string; | ||
}; | ||
} | ||
interface RequestContextVisitors { | ||
forSiteVisitors?: { | ||
visitorId: string; | ||
siteOwnerId: string; | ||
}; | ||
} | ||
type OneOf<T1, T2> = ({ | ||
[P in keyof T1]?: never; | ||
} & T2) | ({ | ||
[P in keyof T2]?: never; | ||
} & T1); | ||
@@ -136,3 +89,3 @@ type Conductor = { | ||
*/ | ||
getPetriExperimentsClient?: () => Experiments; | ||
getPetriExperimentsClient?: () => ReadOnlyExperiments; | ||
/** | ||
@@ -139,0 +92,0 @@ * Optional function to get conductor experiments |
{ | ||
"name": "@wix/sdk-types", | ||
"version": "1.13.12", | ||
"version": "1.13.13", | ||
"license": "MIT", | ||
@@ -36,3 +36,3 @@ "author": { | ||
"devDependencies": { | ||
"@types/node": "^20.17.30", | ||
"@types/node": "^20.17.31", | ||
"eslint": "^8.57.1", | ||
@@ -63,3 +63,3 @@ "eslint-config-sdk": "0.0.0", | ||
}, | ||
"falconPackageHash": "30c9904511db4ec394c30380f2bf0130223ee527b2e35e0f4963f149" | ||
"falconPackageHash": "6d0bd6b55864debf549a0f6e0ea8aabdf9747f35cf33cfa81b7af5ab" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
84120
-4.57%850
-5.24%1
Infinity%