@uniformdev/context 17.7.0 → 17.7.1-alpha.167
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.
- package/dist/api/api.d.ts +8 -8
- package/dist/api/api.js +558 -2
- package/dist/api/api.mjs +507 -2
- package/dist/cli/cli.d.ts +3 -3
- package/dist/cli/cli.js +21322 -81
- package/dist/cli/cli.mjs +21318 -81
- package/dist/{contextTypes-1907a553.d.ts → contextTypes-defd0c5d.d.ts} +62 -62
- package/dist/index.d.ts +10 -10
- package/dist/index.esm.js +1842 -3
- package/dist/index.js +1907 -3
- package/dist/index.mjs +1842 -3
- package/dist/{types-cb64a6b4.d.ts → types-1c9fdbd2.d.ts} +75 -75
- package/dist/{v2-manifest.swagger-200ca5ee.d.ts → v2-manifest.swagger-74a3dcac.d.ts} +0 -0
- package/package.json +5 -5
@@ -1,4 +1,4 @@
|
|
1
|
-
import { p as paths$7 } from './v2-manifest.swagger-
|
1
|
+
import { p as paths$7 } from './v2-manifest.swagger-74a3dcac.js';
|
2
2
|
|
3
3
|
interface components$6 {
|
4
4
|
schemas: {
|
@@ -1647,67 +1647,67 @@ interface external {
|
|
1647
1647
|
};
|
1648
1648
|
}
|
1649
1649
|
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1698
|
-
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1650
|
+
type EnrichmentGet = paths$5['/api/v1/enrichments']['get'];
|
1651
|
+
type EnrichmentGetParameters = EnrichmentGet['parameters']['query'];
|
1652
|
+
type EnrichmentGetResponse = EnrichmentGet['responses']['200']['content']['application/json'];
|
1653
|
+
type EnrichmentCategory = components$5['schemas']['EnrichmentCategory'];
|
1654
|
+
type EnrichmentCategoryWithValues = components$5['schemas']['EnrichmentCategoryWithValues'];
|
1655
|
+
type EnrichmentValue = components$5['schemas']['EnrichmentValue'];
|
1656
|
+
type EnrichmentPut = paths$5['/api/v1/enrichments']['put'];
|
1657
|
+
type EnrichmentPutParameters = EnrichmentPut['requestBody']['content']['application/json'];
|
1658
|
+
type EnrichmentDelete = paths$5['/api/v1/enrichments']['delete'];
|
1659
|
+
type EnrichmentDeleteParameters = EnrichmentDelete['requestBody']['content']['application/json'];
|
1660
|
+
type EnrichmentValuePut = paths$6['/api/v1/enrichment-values']['put'];
|
1661
|
+
type EnrichmentValuePutParameters = EnrichmentValuePut['requestBody']['content']['application/json'];
|
1662
|
+
type EnrichmentValueDelete = paths$6['/api/v1/enrichment-values']['delete'];
|
1663
|
+
type EnrichmentValueDeleteParameters = EnrichmentValueDelete['requestBody']['content']['application/json'];
|
1664
|
+
type ManifestGet = paths$7['/api/v2/manifest']['get'];
|
1665
|
+
type ManifestGetParameters = ManifestGet['parameters']['query'];
|
1666
|
+
type ManifestGetResponse = ManifestGet['responses']['200']['content']['application/json'];
|
1667
|
+
type AggregateGet = paths$4['/api/v2/aggregate']['get'];
|
1668
|
+
type AggregateGetParameters = AggregateGet['parameters']['query'];
|
1669
|
+
type AggregateGetResponse = AggregateGet['responses']['200']['content']['application/json'];
|
1670
|
+
type Aggregate = components$4['schemas']['AggregateData'];
|
1671
|
+
type AggregatePut = paths$4['/api/v2/aggregate']['put'];
|
1672
|
+
type AggregatePutParameters = AggregatePut['requestBody']['content']['application/json'];
|
1673
|
+
type AggregateDelete = paths$4['/api/v2/aggregate']['delete'];
|
1674
|
+
type AggregateDeleteParameters = AggregateDelete['requestBody']['content']['application/json'];
|
1675
|
+
type DimensionGet = paths$3['/api/v2/dimension']['get'];
|
1676
|
+
type DimensionGetParameters = DimensionGet['parameters']['query'];
|
1677
|
+
type DimensionGetResponse = DimensionGet['responses']['200']['content']['application/json'];
|
1678
|
+
type DimensionDefinition = components$3['schemas']['DimensionDefinition'];
|
1679
|
+
type QuirkGet = paths$2['/api/v2/quirk']['get'];
|
1680
|
+
type QuirkGetParameters = QuirkGet['parameters']['query'];
|
1681
|
+
type QuirkGetResponse = QuirkGet['responses']['200']['content']['application/json'];
|
1682
|
+
type Quirk = components$2['schemas']['Quirk'];
|
1683
|
+
type QuirkPut = paths$2['/api/v2/quirk']['put'];
|
1684
|
+
type QuirkPutParameters = QuirkPut['requestBody']['content']['application/json'];
|
1685
|
+
type QuirkDelete = paths$2['/api/v2/quirk']['delete'];
|
1686
|
+
type QuirkDeleteParameters = QuirkDelete['requestBody']['content']['application/json'];
|
1687
|
+
type TestGet = paths['/api/v2/test']['get'];
|
1688
|
+
type TestGetParameters = TestGet['parameters']['query'];
|
1689
|
+
type TestGetResponse = TestGet['responses']['200']['content']['application/json'];
|
1690
|
+
type Test = components['schemas']['Test'];
|
1691
|
+
type TestPut = paths['/api/v2/test']['put'];
|
1692
|
+
type TestPutParameters = TestPut['requestBody']['content']['application/json'];
|
1693
|
+
type TestDelete = paths['/api/v2/test']['delete'];
|
1694
|
+
type TestDeleteParameters = TestDelete['requestBody']['content']['application/json'];
|
1695
|
+
type SignalGet = paths$1['/api/v2/signal']['get'];
|
1696
|
+
type SignalGetParameters = SignalGet['parameters']['query'];
|
1697
|
+
type SignalGetResponse = SignalGet['responses']['200']['content']['application/json'];
|
1698
|
+
type SignalWithId = components$1['schemas']['SignalWithId'];
|
1699
|
+
type RootSignalCriteriaGroup = components$6['schemas']['RootSignalCriteriaGroup'];
|
1700
|
+
type CookieCriteria = components$6['schemas']['CookieCriteria'];
|
1701
|
+
type QueryStringCriteria = components$6['schemas']['QueryStringCriteria'];
|
1702
|
+
type QuirkCriteria = components$6['schemas']['QuirkCriteria'];
|
1703
|
+
type EventCriteria = components$6['schemas']['EventCriteria'];
|
1704
|
+
type CurrentPageCriteria = components$6['schemas']['CurrentPageCriteria'];
|
1705
|
+
type PageViewCountCriteria = components$6['schemas']['PageViewCountCriteria'];
|
1706
|
+
type SignalPut = paths$1['/api/v2/signal']['put'];
|
1707
|
+
type SignalPutParameters = SignalPut['requestBody']['content']['application/json'];
|
1708
|
+
type SignalDelete = paths$1['/api/v2/signal']['delete'];
|
1709
|
+
type SignalDeleteParameters = SignalDelete['requestBody']['content']['application/json'];
|
1710
|
+
type ContextDefinitions = {
|
1711
1711
|
aggregates?: Array<Aggregate>;
|
1712
1712
|
quirks?: Array<Quirk>;
|
1713
1713
|
signals?: Array<SignalWithId>;
|
package/dist/index.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage } from './types-
|
2
|
-
export { A as AggregateDimension, X as AggregateDimensionInput, a1 as BehaviorTag, j as Context, i as ContextEvents, g as ContextOptions, C as ContextPlugin, aq as ContextState, ar as ContextStateUpdate, c as CriteriaEvaluator, F as CriteriaEvaluatorParameters, E as CriteriaEvaluatorResult, D as DecayFunction, ah as DecayOptions, m as DevToolsActions, q as DevToolsDataEvent, n as DevToolsEvent, o as DevToolsEvents, u as DevToolsForgetEvent, r as DevToolsHelloEvent, p as DevToolsLogEvent, t as DevToolsRawCommandsEvent, l as DevToolsState, k as DevToolsUiVersion, s as DevToolsUpdateEvent, _ as DimensionMatch, R as EnrichmentCategory, an as EnrichmentData, ao as EventData, G as GroupCriteriaEvaluator, ac as IdentifyCommand, L as LogDrain, f as LogMessage, z as LogMessageGroup, y as LogMessageSingle, v as LogMessages, B as ManifestInstance, I as ManifestV2, M as MessageCategory, x as MessageFunc, a7 as ModifyScoreCommand, a8 as ModifySessionScoreCommand, U as NumberMatch, O as OutputSeverity, P as PersonalizationEvent, J as PersonalizationManifest, $ as PersonalizeOptions, a3 as PersonalizedResult, a2 as PersonalizedVariant, al as Quirks, af as SERVER_STATE_ID, S as ScoreVector, ae as ServerToClientTransitionState, a9 as SetConsentCommand, ad as SetControlGroupCommand, aa as SetQuirkCommand, ab as SetTestCommand, w as Severity, K as Signal, Q as SignalCriteria, N as SignalCriteriaGroup, H as SignalData, a6 as StorageCommand, a as StorageCommands, d as StringMatch, W as TestDefinition, h as TestEvent, Y as TestOptions, a5 as TestResult, a4 as TestVariant, am as Tests, T as TransitionDataStore, ag as TransitionDataStoreEvents, b as TransitionDataStoreOptions, e as VariantMatchCriteria, V as VisitorData, ak as VisitorDataStore, aj as VisitorDataStoreEvents, ai as VisitorDataStoreOptions, ap as emptyVisitorData, a0 as personalizeVariations, Z as testVariations } from './types-
|
1
|
+
import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage } from './types-1c9fdbd2.js';
|
2
|
+
export { A as AggregateDimension, X as AggregateDimensionInput, a1 as BehaviorTag, j as Context, i as ContextEvents, g as ContextOptions, C as ContextPlugin, aq as ContextState, ar as ContextStateUpdate, c as CriteriaEvaluator, F as CriteriaEvaluatorParameters, E as CriteriaEvaluatorResult, D as DecayFunction, ah as DecayOptions, m as DevToolsActions, q as DevToolsDataEvent, n as DevToolsEvent, o as DevToolsEvents, u as DevToolsForgetEvent, r as DevToolsHelloEvent, p as DevToolsLogEvent, t as DevToolsRawCommandsEvent, l as DevToolsState, k as DevToolsUiVersion, s as DevToolsUpdateEvent, _ as DimensionMatch, R as EnrichmentCategory, an as EnrichmentData, ao as EventData, G as GroupCriteriaEvaluator, ac as IdentifyCommand, L as LogDrain, f as LogMessage, z as LogMessageGroup, y as LogMessageSingle, v as LogMessages, B as ManifestInstance, I as ManifestV2, M as MessageCategory, x as MessageFunc, a7 as ModifyScoreCommand, a8 as ModifySessionScoreCommand, U as NumberMatch, O as OutputSeverity, P as PersonalizationEvent, J as PersonalizationManifest, $ as PersonalizeOptions, a3 as PersonalizedResult, a2 as PersonalizedVariant, al as Quirks, af as SERVER_STATE_ID, S as ScoreVector, ae as ServerToClientTransitionState, a9 as SetConsentCommand, ad as SetControlGroupCommand, aa as SetQuirkCommand, ab as SetTestCommand, w as Severity, K as Signal, Q as SignalCriteria, N as SignalCriteriaGroup, H as SignalData, a6 as StorageCommand, a as StorageCommands, d as StringMatch, W as TestDefinition, h as TestEvent, Y as TestOptions, a5 as TestResult, a4 as TestVariant, am as Tests, T as TransitionDataStore, ag as TransitionDataStoreEvents, b as TransitionDataStoreOptions, e as VariantMatchCriteria, V as VisitorData, ak as VisitorDataStore, aj as VisitorDataStoreEvents, ai as VisitorDataStoreOptions, ap as emptyVisitorData, a0 as personalizeVariations, Z as testVariations } from './types-1c9fdbd2.js';
|
3
3
|
import Cookies from 'js-cookie';
|
4
4
|
import 'mitt';
|
5
|
-
import './v2-manifest.swagger-
|
5
|
+
import './v2-manifest.swagger-74a3dcac.js';
|
6
6
|
|
7
7
|
/**
|
8
8
|
* Creates a new log drain that will log to the console.
|
@@ -21,7 +21,7 @@ declare function enableConsoleLogDrain(level: OutputSeverity): ContextPlugin;
|
|
21
21
|
/** Computes aggregated scores based on other dimensions */
|
22
22
|
declare function computeAggregateDimensions(primitiveScores: ScoreVector, aggregates: Record<string, AggregateDimension>): ScoreVector;
|
23
23
|
|
24
|
-
|
24
|
+
type CookieTransitionDataStoreOptions = {
|
25
25
|
/**
|
26
26
|
* The value of the score cookie during server-side rendering.
|
27
27
|
* Should be parsed from the incoming request.
|
@@ -52,7 +52,7 @@ declare class CookieTransitionDataStore extends TransitionDataStore {
|
|
52
52
|
handleUpdateData(_: StorageCommands[], computedValue: VisitorData): Promise<void>;
|
53
53
|
}
|
54
54
|
|
55
|
-
|
55
|
+
type EdgeTransitionDataStoreOptions = TransitionDataStoreOptions & {
|
56
56
|
serverCookieValue?: string;
|
57
57
|
visitorIdCookieName?: string;
|
58
58
|
};
|
@@ -63,7 +63,7 @@ declare class EdgeTransitionDataStore extends TransitionDataStore {
|
|
63
63
|
handleUpdateData(commands: StorageCommands[]): Promise<void>;
|
64
64
|
}
|
65
65
|
|
66
|
-
|
66
|
+
type LinearDecayOptions = {
|
67
67
|
/**
|
68
68
|
* The length of time before decay starts, in msec.
|
69
69
|
* Default: 1 day (8.64e7)
|
@@ -109,7 +109,7 @@ declare function isStringMatch(lhs: string | number | null | undefined, match: S
|
|
109
109
|
declare function explainStringMatch(lhs: string | number | null | undefined, match: StringMatch): string;
|
110
110
|
declare function explainStringMatchCriteria(match: StringMatch): string;
|
111
111
|
|
112
|
-
|
112
|
+
type ConsoleDebugLogDrainOptions = {
|
113
113
|
enableOnServer?: boolean;
|
114
114
|
};
|
115
115
|
/**
|
@@ -144,16 +144,16 @@ declare enum ScriptType {
|
|
144
144
|
TestEnd = "nesi-test-end",
|
145
145
|
Unknown = "unknown"
|
146
146
|
}
|
147
|
-
|
147
|
+
type EdgePersonalizeComponentOptions = {
|
148
148
|
name: string;
|
149
149
|
count?: number;
|
150
150
|
};
|
151
|
-
|
151
|
+
type EdgeTestComponentOptions = {
|
152
152
|
name: string;
|
153
153
|
};
|
154
154
|
declare const EdgeNodeTagName = "nesitag";
|
155
155
|
|
156
|
-
|
156
|
+
type QuickConnectConfig = {
|
157
157
|
apiKey: string;
|
158
158
|
projectId: string;
|
159
159
|
apiHost?: string;
|