@uniformdev/context 17.7.1-alpha.34 → 18.0.0

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.
@@ -1,4 +1,4 @@
1
- import { p as paths$7 } from './v2-manifest.swagger-200ca5ee.js';
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
- declare type EnrichmentGet = paths$5['/api/v1/enrichments']['get'];
1651
- declare type EnrichmentGetParameters = EnrichmentGet['parameters']['query'];
1652
- declare type EnrichmentGetResponse = EnrichmentGet['responses']['200']['content']['application/json'];
1653
- declare type EnrichmentCategory = components$5['schemas']['EnrichmentCategory'];
1654
- declare type EnrichmentCategoryWithValues = components$5['schemas']['EnrichmentCategoryWithValues'];
1655
- declare type EnrichmentValue = components$5['schemas']['EnrichmentValue'];
1656
- declare type EnrichmentPut = paths$5['/api/v1/enrichments']['put'];
1657
- declare type EnrichmentPutParameters = EnrichmentPut['requestBody']['content']['application/json'];
1658
- declare type EnrichmentDelete = paths$5['/api/v1/enrichments']['delete'];
1659
- declare type EnrichmentDeleteParameters = EnrichmentDelete['requestBody']['content']['application/json'];
1660
- declare type EnrichmentValuePut = paths$6['/api/v1/enrichment-values']['put'];
1661
- declare type EnrichmentValuePutParameters = EnrichmentValuePut['requestBody']['content']['application/json'];
1662
- declare type EnrichmentValueDelete = paths$6['/api/v1/enrichment-values']['delete'];
1663
- declare type EnrichmentValueDeleteParameters = EnrichmentValueDelete['requestBody']['content']['application/json'];
1664
- declare type ManifestGet = paths$7['/api/v2/manifest']['get'];
1665
- declare type ManifestGetParameters = ManifestGet['parameters']['query'];
1666
- declare type ManifestGetResponse = ManifestGet['responses']['200']['content']['application/json'];
1667
- declare type AggregateGet = paths$4['/api/v2/aggregate']['get'];
1668
- declare type AggregateGetParameters = AggregateGet['parameters']['query'];
1669
- declare type AggregateGetResponse = AggregateGet['responses']['200']['content']['application/json'];
1670
- declare type Aggregate = components$4['schemas']['AggregateData'];
1671
- declare type AggregatePut = paths$4['/api/v2/aggregate']['put'];
1672
- declare type AggregatePutParameters = AggregatePut['requestBody']['content']['application/json'];
1673
- declare type AggregateDelete = paths$4['/api/v2/aggregate']['delete'];
1674
- declare type AggregateDeleteParameters = AggregateDelete['requestBody']['content']['application/json'];
1675
- declare type DimensionGet = paths$3['/api/v2/dimension']['get'];
1676
- declare type DimensionGetParameters = DimensionGet['parameters']['query'];
1677
- declare type DimensionGetResponse = DimensionGet['responses']['200']['content']['application/json'];
1678
- declare type DimensionDefinition = components$3['schemas']['DimensionDefinition'];
1679
- declare type QuirkGet = paths$2['/api/v2/quirk']['get'];
1680
- declare type QuirkGetParameters = QuirkGet['parameters']['query'];
1681
- declare type QuirkGetResponse = QuirkGet['responses']['200']['content']['application/json'];
1682
- declare type Quirk = components$2['schemas']['Quirk'];
1683
- declare type QuirkPut = paths$2['/api/v2/quirk']['put'];
1684
- declare type QuirkPutParameters = QuirkPut['requestBody']['content']['application/json'];
1685
- declare type QuirkDelete = paths$2['/api/v2/quirk']['delete'];
1686
- declare type QuirkDeleteParameters = QuirkDelete['requestBody']['content']['application/json'];
1687
- declare type TestGet = paths['/api/v2/test']['get'];
1688
- declare type TestGetParameters = TestGet['parameters']['query'];
1689
- declare type TestGetResponse = TestGet['responses']['200']['content']['application/json'];
1690
- declare type Test = components['schemas']['Test'];
1691
- declare type TestPut = paths['/api/v2/test']['put'];
1692
- declare type TestPutParameters = TestPut['requestBody']['content']['application/json'];
1693
- declare type TestDelete = paths['/api/v2/test']['delete'];
1694
- declare type TestDeleteParameters = TestDelete['requestBody']['content']['application/json'];
1695
- declare type SignalGet = paths$1['/api/v2/signal']['get'];
1696
- declare type SignalGetParameters = SignalGet['parameters']['query'];
1697
- declare type SignalGetResponse = SignalGet['responses']['200']['content']['application/json'];
1698
- declare type SignalWithId = components$1['schemas']['SignalWithId'];
1699
- declare type RootSignalCriteriaGroup = components$6['schemas']['RootSignalCriteriaGroup'];
1700
- declare type CookieCriteria = components$6['schemas']['CookieCriteria'];
1701
- declare type QueryStringCriteria = components$6['schemas']['QueryStringCriteria'];
1702
- declare type QuirkCriteria = components$6['schemas']['QuirkCriteria'];
1703
- declare type EventCriteria = components$6['schemas']['EventCriteria'];
1704
- declare type CurrentPageCriteria = components$6['schemas']['CurrentPageCriteria'];
1705
- declare type PageViewCountCriteria = components$6['schemas']['PageViewCountCriteria'];
1706
- declare type SignalPut = paths$1['/api/v2/signal']['put'];
1707
- declare type SignalPutParameters = SignalPut['requestBody']['content']['application/json'];
1708
- declare type SignalDelete = paths$1['/api/v2/signal']['delete'];
1709
- declare type SignalDeleteParameters = SignalDelete['requestBody']['content']['application/json'];
1710
- declare type ContextDefinitions = {
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-cb64a6b4.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-cb64a6b4.js';
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-200ca5ee.js';
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
- declare type CookieTransitionDataStoreOptions = {
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
- declare type EdgeTransitionDataStoreOptions = TransitionDataStoreOptions & {
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
- declare type LinearDecayOptions = {
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
- declare type ConsoleDebugLogDrainOptions = {
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
- declare type EdgePersonalizeComponentOptions = {
147
+ type EdgePersonalizeComponentOptions = {
148
148
  name: string;
149
149
  count?: number;
150
150
  };
151
- declare type EdgeTestComponentOptions = {
151
+ type EdgeTestComponentOptions = {
152
152
  name: string;
153
153
  };
154
154
  declare const EdgeNodeTagName = "nesitag";
155
155
 
156
- declare type QuickConnectConfig = {
156
+ type QuickConnectConfig = {
157
157
  apiKey: string;
158
158
  projectId: string;
159
159
  apiHost?: string;