@uniformdev/context 16.2.1-alpha.60 → 16.2.1-nuxt.274
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 +49 -5
- package/dist/api/api.js +2 -2
- package/dist/api/api.mjs +2 -2
- package/dist/cli/cli.d.ts +3 -9
- package/dist/cli/cli.js +77 -61
- package/dist/cli/cli.mjs +77 -61
- package/dist/{contextTypes-572b0d33.d.ts → contextTypes-995f9126.d.ts} +94 -8
- package/dist/index.d.ts +3 -3
- package/dist/{types-682b51bf.d.ts → types-17d56dd5.d.ts} +1 -1
- package/dist/{v2-manifest.swagger-ff2af13e.d.ts → v2-manifest.swagger-2ea6ebb4.d.ts} +26 -2
- package/package.json +8 -7
@@ -1,4 +1,4 @@
|
|
1
|
-
import { p as paths$7 } from './v2-manifest.swagger-
|
1
|
+
import { p as paths$7 } from './v2-manifest.swagger-2ea6ebb4.js';
|
2
2
|
|
3
3
|
/**
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
@@ -382,6 +382,8 @@ interface paths$4 {
|
|
382
382
|
* @description Skips updating aggregate inputs and upserts only the aggregate definition.
|
383
383
|
* Inputs data is still required, but is ignored and not saved or validated.
|
384
384
|
* Useful when creating aggregates that reference each other: Create the definitions, then the inputs.
|
385
|
+
*
|
386
|
+
* @default false
|
385
387
|
*/
|
386
388
|
skipInputs?: boolean;
|
387
389
|
};
|
@@ -420,6 +422,8 @@ interface components$5 {
|
|
420
422
|
* @description The type of aggregate
|
421
423
|
* 0: Audience
|
422
424
|
* 1: Intent
|
425
|
+
*
|
426
|
+
* @enum {number}
|
423
427
|
*/
|
424
428
|
type: 0 | 1;
|
425
429
|
inputs: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["AggregateDimensionInput"][];
|
@@ -487,12 +491,17 @@ interface external$4 {
|
|
487
491
|
* 's' = current session (expires after a period of inactivity)
|
488
492
|
* 'p' = permanent (expires as far in the future as possible, may be limited by browser security settings)
|
489
493
|
* 't' = transient (score tracks the current state of the criteria every time scores are updated)
|
494
|
+
*
|
495
|
+
* @enum {string}
|
490
496
|
*/
|
491
497
|
dur: "s" | "p" | "t";
|
492
498
|
crit: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["RootSignalCriteriaGroup"];
|
493
499
|
};
|
494
500
|
RootSignalCriteriaGroup: {
|
495
|
-
/**
|
501
|
+
/**
|
502
|
+
* @description Criteria type (Group of other criteria)
|
503
|
+
* @enum {string}
|
504
|
+
*/
|
496
505
|
type: "G";
|
497
506
|
/**
|
498
507
|
* @description The logical operator to apply to the criteria groups
|
@@ -502,13 +511,17 @@ interface external$4 {
|
|
502
511
|
* Default is `&` if unspecified.
|
503
512
|
*
|
504
513
|
* @default &
|
514
|
+
* @enum {string}
|
505
515
|
*/
|
506
516
|
op?: "&" | "|";
|
507
517
|
/** @description The criteria clauses that make up this grouping of criteria */
|
508
518
|
clauses: (external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
|
509
519
|
};
|
510
520
|
SignalCriteriaGroup: {
|
511
|
-
/**
|
521
|
+
/**
|
522
|
+
* @description Criteria type (Group of other criteria)
|
523
|
+
* @enum {string}
|
524
|
+
*/
|
512
525
|
type: "G";
|
513
526
|
/**
|
514
527
|
* @description The logical operator to apply to the criteria groups
|
@@ -516,6 +529,8 @@ interface external$4 {
|
|
516
529
|
* | = OR
|
517
530
|
*
|
518
531
|
* Default is `&` if unspecified.
|
532
|
+
*
|
533
|
+
* @enum {string}
|
519
534
|
*/
|
520
535
|
op?: "&" | "|";
|
521
536
|
/** @description The criteria clauses that make up this grouping of criteria */
|
@@ -524,6 +539,7 @@ interface external$4 {
|
|
524
539
|
SignalCriteria: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["CookieCriteria"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["QueryStringCriteria"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["QuirkCriteria"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["EventCriteria"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["CurrentPageCriteria"] | external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["PageViewCountCriteria"];
|
525
540
|
/** @description Matches a URL query string parameter value */
|
526
541
|
QueryStringCriteria: {
|
542
|
+
/** @enum {string} */
|
527
543
|
type: "QS";
|
528
544
|
/** @description The name of the query string parameter to match */
|
529
545
|
queryName: string;
|
@@ -532,6 +548,7 @@ interface external$4 {
|
|
532
548
|
};
|
533
549
|
/** @description Matches a web cookie value */
|
534
550
|
CookieCriteria: {
|
551
|
+
/** @enum {string} */
|
535
552
|
type: "CK";
|
536
553
|
/** @description The name of the cookie to match */
|
537
554
|
cookieName: string;
|
@@ -540,6 +557,7 @@ interface external$4 {
|
|
540
557
|
};
|
541
558
|
/** @description Matches a visitor quirk key and value */
|
542
559
|
QuirkCriteria: {
|
560
|
+
/** @enum {string} */
|
543
561
|
type: "QK";
|
544
562
|
/** @description The name of the quirk key to match */
|
545
563
|
key: string;
|
@@ -548,6 +566,7 @@ interface external$4 {
|
|
548
566
|
};
|
549
567
|
/** @description Matches an analytics event name being fired */
|
550
568
|
EventCriteria: {
|
569
|
+
/** @enum {string} */
|
551
570
|
type: "EVT";
|
552
571
|
/** @description How to match the event name */
|
553
572
|
event: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
|
@@ -557,11 +576,13 @@ interface external$4 {
|
|
557
576
|
* Does not include the query string or protocol and hostname (i.e. NOT https://foo.com/path/to/page.html?query=something)
|
558
577
|
*/
|
559
578
|
CurrentPageCriteria: {
|
579
|
+
/** @enum {string} */
|
560
580
|
type: "PV";
|
561
581
|
/** @description The page/route path to match as a page that has been visited */
|
562
582
|
path: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
|
563
583
|
};
|
564
584
|
PageViewCountCriteria: {
|
585
|
+
/** @enum {string} */
|
565
586
|
type: "PVC";
|
566
587
|
/** @description The expression to match the page view count against */
|
567
588
|
match: external$4["uniform-context-types.swagger.yml"]["components"]["schemas"]["NumberMatch"];
|
@@ -577,6 +598,8 @@ interface external$4 {
|
|
577
598
|
* '//' = regular expression match
|
578
599
|
*
|
579
600
|
* Any of the above can be prefixed with '!' to invert the match (i.e. != for 'not an exact match')
|
601
|
+
*
|
602
|
+
* @enum {string}
|
580
603
|
*/
|
581
604
|
op: "=" | "~" | "//" | "!=" | "!~" | "!//";
|
582
605
|
/** @description The case sensitivity of the match. Defaults to false if unspecified. */
|
@@ -586,6 +609,8 @@ interface external$4 {
|
|
586
609
|
* @description The type of match to perform
|
587
610
|
* '*' = exists with any value
|
588
611
|
* '!*' = does not exist
|
612
|
+
*
|
613
|
+
* @enum {string}
|
589
614
|
*/
|
590
615
|
op: "*" | "!*";
|
591
616
|
};
|
@@ -599,6 +624,8 @@ interface external$4 {
|
|
599
624
|
* '!=' = not an exact match
|
600
625
|
* '<' = less than match expression
|
601
626
|
* '>' = greater than match expression
|
627
|
+
*
|
628
|
+
* @enum {string}
|
602
629
|
*/
|
603
630
|
op: "=" | "<" | ">" | "!=";
|
604
631
|
};
|
@@ -629,6 +656,7 @@ interface external$4 {
|
|
629
656
|
* Default if unspecified: '+'
|
630
657
|
*
|
631
658
|
* @default +
|
659
|
+
* @enum {string}
|
632
660
|
*/
|
633
661
|
sign?: "+" | "-" | "c";
|
634
662
|
};
|
@@ -683,6 +711,8 @@ interface components$4 {
|
|
683
711
|
* AGG: Aggregation (intent or audience)
|
684
712
|
* ENR: Enrichment
|
685
713
|
* SIG: Signal
|
714
|
+
*
|
715
|
+
* @enum {string}
|
686
716
|
*/
|
687
717
|
category: "AGG" | "ENR" | "SIG";
|
688
718
|
/**
|
@@ -957,6 +987,7 @@ interface components$2 {
|
|
957
987
|
name: string;
|
958
988
|
winning_variant_id?: string;
|
959
989
|
default_variant_id?: string;
|
990
|
+
/** @default false */
|
960
991
|
closed?: boolean;
|
961
992
|
};
|
962
993
|
};
|
@@ -1141,12 +1172,17 @@ interface external {
|
|
1141
1172
|
* 's' = current session (expires after a period of inactivity)
|
1142
1173
|
* 'p' = permanent (expires as far in the future as possible, may be limited by browser security settings)
|
1143
1174
|
* 't' = transient (score tracks the current state of the criteria every time scores are updated)
|
1175
|
+
*
|
1176
|
+
* @enum {string}
|
1144
1177
|
*/
|
1145
1178
|
dur: "s" | "p" | "t";
|
1146
1179
|
crit: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["RootSignalCriteriaGroup"];
|
1147
1180
|
};
|
1148
1181
|
RootSignalCriteriaGroup: {
|
1149
|
-
/**
|
1182
|
+
/**
|
1183
|
+
* @description Criteria type (Group of other criteria)
|
1184
|
+
* @enum {string}
|
1185
|
+
*/
|
1150
1186
|
type: "G";
|
1151
1187
|
/**
|
1152
1188
|
* @description The logical operator to apply to the criteria groups
|
@@ -1156,13 +1192,17 @@ interface external {
|
|
1156
1192
|
* Default is `&` if unspecified.
|
1157
1193
|
*
|
1158
1194
|
* @default &
|
1195
|
+
* @enum {string}
|
1159
1196
|
*/
|
1160
1197
|
op?: "&" | "|";
|
1161
1198
|
/** @description The criteria clauses that make up this grouping of criteria */
|
1162
1199
|
clauses: (external["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
|
1163
1200
|
};
|
1164
1201
|
SignalCriteriaGroup: {
|
1165
|
-
/**
|
1202
|
+
/**
|
1203
|
+
* @description Criteria type (Group of other criteria)
|
1204
|
+
* @enum {string}
|
1205
|
+
*/
|
1166
1206
|
type: "G";
|
1167
1207
|
/**
|
1168
1208
|
* @description The logical operator to apply to the criteria groups
|
@@ -1170,6 +1210,8 @@ interface external {
|
|
1170
1210
|
* | = OR
|
1171
1211
|
*
|
1172
1212
|
* Default is `&` if unspecified.
|
1213
|
+
*
|
1214
|
+
* @enum {string}
|
1173
1215
|
*/
|
1174
1216
|
op?: "&" | "|";
|
1175
1217
|
/** @description The criteria clauses that make up this grouping of criteria */
|
@@ -1178,6 +1220,7 @@ interface external {
|
|
1178
1220
|
SignalCriteria: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["CookieCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["QueryStringCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["QuirkCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["EventCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["CurrentPageCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["PageViewCountCriteria"];
|
1179
1221
|
/** @description Matches a URL query string parameter value */
|
1180
1222
|
QueryStringCriteria: {
|
1223
|
+
/** @enum {string} */
|
1181
1224
|
type: "QS";
|
1182
1225
|
/** @description The name of the query string parameter to match */
|
1183
1226
|
queryName: string;
|
@@ -1186,6 +1229,7 @@ interface external {
|
|
1186
1229
|
};
|
1187
1230
|
/** @description Matches a web cookie value */
|
1188
1231
|
CookieCriteria: {
|
1232
|
+
/** @enum {string} */
|
1189
1233
|
type: "CK";
|
1190
1234
|
/** @description The name of the cookie to match */
|
1191
1235
|
cookieName: string;
|
@@ -1194,6 +1238,7 @@ interface external {
|
|
1194
1238
|
};
|
1195
1239
|
/** @description Matches a visitor quirk key and value */
|
1196
1240
|
QuirkCriteria: {
|
1241
|
+
/** @enum {string} */
|
1197
1242
|
type: "QK";
|
1198
1243
|
/** @description The name of the quirk key to match */
|
1199
1244
|
key: string;
|
@@ -1202,6 +1247,7 @@ interface external {
|
|
1202
1247
|
};
|
1203
1248
|
/** @description Matches an analytics event name being fired */
|
1204
1249
|
EventCriteria: {
|
1250
|
+
/** @enum {string} */
|
1205
1251
|
type: "EVT";
|
1206
1252
|
/** @description How to match the event name */
|
1207
1253
|
event: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
|
@@ -1211,11 +1257,13 @@ interface external {
|
|
1211
1257
|
* Does not include the query string or protocol and hostname (i.e. NOT https://foo.com/path/to/page.html?query=something)
|
1212
1258
|
*/
|
1213
1259
|
CurrentPageCriteria: {
|
1260
|
+
/** @enum {string} */
|
1214
1261
|
type: "PV";
|
1215
1262
|
/** @description The page/route path to match as a page that has been visited */
|
1216
1263
|
path: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
|
1217
1264
|
};
|
1218
1265
|
PageViewCountCriteria: {
|
1266
|
+
/** @enum {string} */
|
1219
1267
|
type: "PVC";
|
1220
1268
|
/** @description The expression to match the page view count against */
|
1221
1269
|
match: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["NumberMatch"];
|
@@ -1231,6 +1279,8 @@ interface external {
|
|
1231
1279
|
* '//' = regular expression match
|
1232
1280
|
*
|
1233
1281
|
* Any of the above can be prefixed with '!' to invert the match (i.e. != for 'not an exact match')
|
1282
|
+
*
|
1283
|
+
* @enum {string}
|
1234
1284
|
*/
|
1235
1285
|
op: "=" | "~" | "//" | "!=" | "!~" | "!//";
|
1236
1286
|
/** @description The case sensitivity of the match. Defaults to false if unspecified. */
|
@@ -1240,6 +1290,8 @@ interface external {
|
|
1240
1290
|
* @description The type of match to perform
|
1241
1291
|
* '*' = exists with any value
|
1242
1292
|
* '!*' = does not exist
|
1293
|
+
*
|
1294
|
+
* @enum {string}
|
1243
1295
|
*/
|
1244
1296
|
op: "*" | "!*";
|
1245
1297
|
};
|
@@ -1253,6 +1305,8 @@ interface external {
|
|
1253
1305
|
* '!=' = not an exact match
|
1254
1306
|
* '<' = less than match expression
|
1255
1307
|
* '>' = greater than match expression
|
1308
|
+
*
|
1309
|
+
* @enum {string}
|
1256
1310
|
*/
|
1257
1311
|
op: "=" | "<" | ">" | "!=";
|
1258
1312
|
};
|
@@ -1283,6 +1337,7 @@ interface external {
|
|
1283
1337
|
* Default if unspecified: '+'
|
1284
1338
|
*
|
1285
1339
|
* @default +
|
1340
|
+
* @enum {string}
|
1286
1341
|
*/
|
1287
1342
|
sign?: "+" | "-" | "c";
|
1288
1343
|
};
|
@@ -1318,12 +1373,17 @@ interface components {
|
|
1318
1373
|
* 's' = current session (expires after a period of inactivity)
|
1319
1374
|
* 'p' = permanent (expires as far in the future as possible, may be limited by browser security settings)
|
1320
1375
|
* 't' = transient (score tracks the current state of the criteria every time scores are updated)
|
1376
|
+
*
|
1377
|
+
* @enum {string}
|
1321
1378
|
*/
|
1322
1379
|
dur: "s" | "p" | "t";
|
1323
1380
|
crit: components["schemas"]["RootSignalCriteriaGroup"];
|
1324
1381
|
};
|
1325
1382
|
RootSignalCriteriaGroup: {
|
1326
|
-
/**
|
1383
|
+
/**
|
1384
|
+
* @description Criteria type (Group of other criteria)
|
1385
|
+
* @enum {string}
|
1386
|
+
*/
|
1327
1387
|
type: "G";
|
1328
1388
|
/**
|
1329
1389
|
* @description The logical operator to apply to the criteria groups
|
@@ -1333,13 +1393,17 @@ interface components {
|
|
1333
1393
|
* Default is `&` if unspecified.
|
1334
1394
|
*
|
1335
1395
|
* @default &
|
1396
|
+
* @enum {string}
|
1336
1397
|
*/
|
1337
1398
|
op?: "&" | "|";
|
1338
1399
|
/** @description The criteria clauses that make up this grouping of criteria */
|
1339
1400
|
clauses: (components["schemas"]["SignalCriteriaGroup"] | components["schemas"]["SignalCriteria"])[];
|
1340
1401
|
};
|
1341
1402
|
SignalCriteriaGroup: {
|
1342
|
-
/**
|
1403
|
+
/**
|
1404
|
+
* @description Criteria type (Group of other criteria)
|
1405
|
+
* @enum {string}
|
1406
|
+
*/
|
1343
1407
|
type: "G";
|
1344
1408
|
/**
|
1345
1409
|
* @description The logical operator to apply to the criteria groups
|
@@ -1347,6 +1411,8 @@ interface components {
|
|
1347
1411
|
* | = OR
|
1348
1412
|
*
|
1349
1413
|
* Default is `&` if unspecified.
|
1414
|
+
*
|
1415
|
+
* @enum {string}
|
1350
1416
|
*/
|
1351
1417
|
op?: "&" | "|";
|
1352
1418
|
/** @description The criteria clauses that make up this grouping of criteria */
|
@@ -1355,6 +1421,7 @@ interface components {
|
|
1355
1421
|
SignalCriteria: components["schemas"]["CookieCriteria"] | components["schemas"]["QueryStringCriteria"] | components["schemas"]["QuirkCriteria"] | components["schemas"]["EventCriteria"] | components["schemas"]["CurrentPageCriteria"] | components["schemas"]["PageViewCountCriteria"];
|
1356
1422
|
/** @description Matches a URL query string parameter value */
|
1357
1423
|
QueryStringCriteria: {
|
1424
|
+
/** @enum {string} */
|
1358
1425
|
type: "QS";
|
1359
1426
|
/** @description The name of the query string parameter to match */
|
1360
1427
|
queryName: string;
|
@@ -1363,6 +1430,7 @@ interface components {
|
|
1363
1430
|
};
|
1364
1431
|
/** @description Matches a web cookie value */
|
1365
1432
|
CookieCriteria: {
|
1433
|
+
/** @enum {string} */
|
1366
1434
|
type: "CK";
|
1367
1435
|
/** @description The name of the cookie to match */
|
1368
1436
|
cookieName: string;
|
@@ -1371,6 +1439,7 @@ interface components {
|
|
1371
1439
|
};
|
1372
1440
|
/** @description Matches a visitor quirk key and value */
|
1373
1441
|
QuirkCriteria: {
|
1442
|
+
/** @enum {string} */
|
1374
1443
|
type: "QK";
|
1375
1444
|
/** @description The name of the quirk key to match */
|
1376
1445
|
key: string;
|
@@ -1379,6 +1448,7 @@ interface components {
|
|
1379
1448
|
};
|
1380
1449
|
/** @description Matches an analytics event name being fired */
|
1381
1450
|
EventCriteria: {
|
1451
|
+
/** @enum {string} */
|
1382
1452
|
type: "EVT";
|
1383
1453
|
/** @description How to match the event name */
|
1384
1454
|
event: components["schemas"]["StringMatch"];
|
@@ -1388,11 +1458,13 @@ interface components {
|
|
1388
1458
|
* Does not include the query string or protocol and hostname (i.e. NOT https://foo.com/path/to/page.html?query=something)
|
1389
1459
|
*/
|
1390
1460
|
CurrentPageCriteria: {
|
1461
|
+
/** @enum {string} */
|
1391
1462
|
type: "PV";
|
1392
1463
|
/** @description The page/route path to match as a page that has been visited */
|
1393
1464
|
path: components["schemas"]["StringMatch"];
|
1394
1465
|
};
|
1395
1466
|
PageViewCountCriteria: {
|
1467
|
+
/** @enum {string} */
|
1396
1468
|
type: "PVC";
|
1397
1469
|
/** @description The expression to match the page view count against */
|
1398
1470
|
match: components["schemas"]["NumberMatch"];
|
@@ -1408,6 +1480,8 @@ interface components {
|
|
1408
1480
|
* '//' = regular expression match
|
1409
1481
|
*
|
1410
1482
|
* Any of the above can be prefixed with '!' to invert the match (i.e. != for 'not an exact match')
|
1483
|
+
*
|
1484
|
+
* @enum {string}
|
1411
1485
|
*/
|
1412
1486
|
op: "=" | "~" | "//" | "!=" | "!~" | "!//";
|
1413
1487
|
/** @description The case sensitivity of the match. Defaults to false if unspecified. */
|
@@ -1417,6 +1491,8 @@ interface components {
|
|
1417
1491
|
* @description The type of match to perform
|
1418
1492
|
* '*' = exists with any value
|
1419
1493
|
* '!*' = does not exist
|
1494
|
+
*
|
1495
|
+
* @enum {string}
|
1420
1496
|
*/
|
1421
1497
|
op: "*" | "!*";
|
1422
1498
|
};
|
@@ -1430,6 +1506,8 @@ interface components {
|
|
1430
1506
|
* '!=' = not an exact match
|
1431
1507
|
* '<' = less than match expression
|
1432
1508
|
* '>' = greater than match expression
|
1509
|
+
*
|
1510
|
+
* @enum {string}
|
1433
1511
|
*/
|
1434
1512
|
op: "=" | "<" | ">" | "!=";
|
1435
1513
|
};
|
@@ -1460,6 +1538,7 @@ interface components {
|
|
1460
1538
|
* Default if unspecified: '+'
|
1461
1539
|
*
|
1462
1540
|
* @default +
|
1541
|
+
* @enum {string}
|
1463
1542
|
*/
|
1464
1543
|
sign?: "+" | "-" | "c";
|
1465
1544
|
};
|
@@ -1530,5 +1609,12 @@ declare type SignalPut = paths['/api/v2/signal']['put'];
|
|
1530
1609
|
declare type SignalPutParameters = SignalPut['requestBody']['content']['application/json'];
|
1531
1610
|
declare type SignalDelete = paths['/api/v2/signal']['delete'];
|
1532
1611
|
declare type SignalDeleteParameters = SignalDelete['requestBody']['content']['application/json'];
|
1612
|
+
declare type ContextDefinitions = {
|
1613
|
+
aggregates?: Array<Aggregate>;
|
1614
|
+
quirks?: Array<Quirk>;
|
1615
|
+
signals?: Array<SignalWithId>;
|
1616
|
+
enrichments?: Array<EnrichmentCategoryWithValues>;
|
1617
|
+
tests?: Array<Test>;
|
1618
|
+
};
|
1533
1619
|
|
1534
|
-
export {
|
1620
|
+
export { AggregateGetParameters as A, SignalWithId as B, ContextDefinitions as C, DimensionGetParameters as D, EnrichmentGetParameters as E, CookieCriteria as F, QueryStringCriteria as G, QuirkCriteria as H, EventCriteria as I, CurrentPageCriteria as J, ManifestGetParameters as M, PageViewCountCriteria as P, QuirkGetParameters as Q, RootSignalCriteriaGroup as R, SignalGetParameters as S, TestGetParameters as T, AggregateGetResponse as a, AggregatePutParameters as b, AggregateDeleteParameters as c, DimensionGetResponse as d, EnrichmentGetResponse as e, EnrichmentPutParameters as f, EnrichmentDeleteParameters as g, EnrichmentValuePutParameters as h, EnrichmentValueDeleteParameters as i, ManifestGetResponse as j, QuirkGetResponse as k, QuirkPutParameters as l, QuirkDeleteParameters as m, SignalGetResponse as n, SignalPutParameters as o, SignalDeleteParameters as p, TestGetResponse as q, TestPutParameters as r, TestDeleteParameters as s, DimensionDefinition as t, EnrichmentCategory as u, EnrichmentCategoryWithValues as v, EnrichmentValue as w, Aggregate as x, Quirk as y, Test as z };
|
package/dist/index.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { T as TransitionDataStore, S as StorageCommands, V as VisitorData, a as TransitionDataStoreOptions, D as DecayFunction, O as OutputSeverity, L as LogDrain, C as ContextPlugin, b as CriteriaEvaluator, c as StringMatch, d as ScoreVector, A as AggregateDimension, e as VariantMatchCriteria, f as LogMessage } from './types-
|
2
|
-
export { A as AggregateDimension, l as AggregateDimensionInput, ac as BehaviorTag, a0 as Context, $ as ContextEvents, Y as ContextOptions, C as ContextPlugin, t as ContextState, u as ContextStateUpdate, b as CriteriaEvaluator, n as CriteriaEvaluatorParameters, m as CriteriaEvaluatorResult, D as DecayFunction, H as DecayOptions, aj as DevToolsActions, an as DevToolsDataEvent, ak as DevToolsEvent, al as DevToolsEvents, ar as DevToolsForgetEvent, ao as DevToolsHelloEvent, am as DevToolsLogEvent, aq as DevToolsRawCommandsEvent, ai as DevToolsState, ah as DevToolsUiVersion, ap as DevToolsUpdateEvent, ab as DimensionMatch, E as EnrichmentCategory, q as EnrichmentData, r as EventData, G as GroupCriteriaEvaluator, I as IdentifyCommand, L as LogDrain, f as LogMessage, a6 as LogMessageGroup, a5 as LogMessageSingle, a1 as LogMessages, M as ManifestInstance, g as ManifestV2, a3 as MessageCategory, a4 as MessageFunc, w as ModifyScoreCommand, x as ModifySessionScoreCommand, N as NumberMatch, O as OutputSeverity, Z as PersonalizationEvent, P as PersonalizationManifest, a9 as PersonalizeOptions, ae as PersonalizedResult, ad as PersonalizedVariant, Q as Quirks, W as SERVER_STATE_ID, d as ScoreVector, U as ServerToClientTransitionState, y as SetConsentCommand, F as SetControlGroupCommand, z as SetQuirkCommand, B as SetTestCommand, a2 as Severity, h as Signal, j as SignalCriteria, i as SignalCriteriaGroup, o as SignalData, v as StorageCommand, S as StorageCommands, c as StringMatch, k as TestDefinition, _ as TestEvent, a8 as TestOptions, ag as TestResult, af as TestVariant, p as Tests, T as TransitionDataStore, X as TransitionDataStoreEvents, a as TransitionDataStoreOptions, e as VariantMatchCriteria, V as VisitorData, R as VisitorDataStore, K as VisitorDataStoreEvents, J as VisitorDataStoreOptions, s as emptyVisitorData, aa as personalizeVariations, a7 as testVariations } from './types-
|
1
|
+
import { T as TransitionDataStore, S as StorageCommands, V as VisitorData, a as TransitionDataStoreOptions, D as DecayFunction, O as OutputSeverity, L as LogDrain, C as ContextPlugin, b as CriteriaEvaluator, c as StringMatch, d as ScoreVector, A as AggregateDimension, e as VariantMatchCriteria, f as LogMessage } from './types-17d56dd5.js';
|
2
|
+
export { A as AggregateDimension, l as AggregateDimensionInput, ac as BehaviorTag, a0 as Context, $ as ContextEvents, Y as ContextOptions, C as ContextPlugin, t as ContextState, u as ContextStateUpdate, b as CriteriaEvaluator, n as CriteriaEvaluatorParameters, m as CriteriaEvaluatorResult, D as DecayFunction, H as DecayOptions, aj as DevToolsActions, an as DevToolsDataEvent, ak as DevToolsEvent, al as DevToolsEvents, ar as DevToolsForgetEvent, ao as DevToolsHelloEvent, am as DevToolsLogEvent, aq as DevToolsRawCommandsEvent, ai as DevToolsState, ah as DevToolsUiVersion, ap as DevToolsUpdateEvent, ab as DimensionMatch, E as EnrichmentCategory, q as EnrichmentData, r as EventData, G as GroupCriteriaEvaluator, I as IdentifyCommand, L as LogDrain, f as LogMessage, a6 as LogMessageGroup, a5 as LogMessageSingle, a1 as LogMessages, M as ManifestInstance, g as ManifestV2, a3 as MessageCategory, a4 as MessageFunc, w as ModifyScoreCommand, x as ModifySessionScoreCommand, N as NumberMatch, O as OutputSeverity, Z as PersonalizationEvent, P as PersonalizationManifest, a9 as PersonalizeOptions, ae as PersonalizedResult, ad as PersonalizedVariant, Q as Quirks, W as SERVER_STATE_ID, d as ScoreVector, U as ServerToClientTransitionState, y as SetConsentCommand, F as SetControlGroupCommand, z as SetQuirkCommand, B as SetTestCommand, a2 as Severity, h as Signal, j as SignalCriteria, i as SignalCriteriaGroup, o as SignalData, v as StorageCommand, S as StorageCommands, c as StringMatch, k as TestDefinition, _ as TestEvent, a8 as TestOptions, ag as TestResult, af as TestVariant, p as Tests, T as TransitionDataStore, X as TransitionDataStoreEvents, a as TransitionDataStoreOptions, e as VariantMatchCriteria, V as VisitorData, R as VisitorDataStore, K as VisitorDataStoreEvents, J as VisitorDataStoreOptions, s as emptyVisitorData, aa as personalizeVariations, a7 as testVariations } from './types-17d56dd5.js';
|
3
3
|
import Cookies from 'js-cookie';
|
4
4
|
import 'mitt';
|
5
|
-
import './v2-manifest.swagger-
|
5
|
+
import './v2-manifest.swagger-2ea6ebb4.js';
|
6
6
|
|
7
7
|
declare type CookieTransitionDataStoreOptions = {
|
8
8
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as mitt from 'mitt';
|
2
|
-
import { c as components, e as external } from './v2-manifest.swagger-
|
2
|
+
import { c as components, e as external } from './v2-manifest.swagger-2ea6ebb4.js';
|
3
3
|
|
4
4
|
declare type StorageCommand<TID extends string = string, TData = unknown> = {
|
5
5
|
type: TID;
|
@@ -136,12 +136,17 @@ interface external {
|
|
136
136
|
* 's' = current session (expires after a period of inactivity)
|
137
137
|
* 'p' = permanent (expires as far in the future as possible, may be limited by browser security settings)
|
138
138
|
* 't' = transient (score tracks the current state of the criteria every time scores are updated)
|
139
|
+
*
|
140
|
+
* @enum {string}
|
139
141
|
*/
|
140
142
|
dur: "s" | "p" | "t";
|
141
143
|
crit: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["RootSignalCriteriaGroup"];
|
142
144
|
};
|
143
145
|
RootSignalCriteriaGroup: {
|
144
|
-
/**
|
146
|
+
/**
|
147
|
+
* @description Criteria type (Group of other criteria)
|
148
|
+
* @enum {string}
|
149
|
+
*/
|
145
150
|
type: "G";
|
146
151
|
/**
|
147
152
|
* @description The logical operator to apply to the criteria groups
|
@@ -151,13 +156,17 @@ interface external {
|
|
151
156
|
* Default is `&` if unspecified.
|
152
157
|
*
|
153
158
|
* @default &
|
159
|
+
* @enum {string}
|
154
160
|
*/
|
155
161
|
op?: "&" | "|";
|
156
162
|
/** @description The criteria clauses that make up this grouping of criteria */
|
157
163
|
clauses: (external["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteriaGroup"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["SignalCriteria"])[];
|
158
164
|
};
|
159
165
|
SignalCriteriaGroup: {
|
160
|
-
/**
|
166
|
+
/**
|
167
|
+
* @description Criteria type (Group of other criteria)
|
168
|
+
* @enum {string}
|
169
|
+
*/
|
161
170
|
type: "G";
|
162
171
|
/**
|
163
172
|
* @description The logical operator to apply to the criteria groups
|
@@ -165,6 +174,8 @@ interface external {
|
|
165
174
|
* | = OR
|
166
175
|
*
|
167
176
|
* Default is `&` if unspecified.
|
177
|
+
*
|
178
|
+
* @enum {string}
|
168
179
|
*/
|
169
180
|
op?: "&" | "|";
|
170
181
|
/** @description The criteria clauses that make up this grouping of criteria */
|
@@ -173,6 +184,7 @@ interface external {
|
|
173
184
|
SignalCriteria: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["CookieCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["QueryStringCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["QuirkCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["EventCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["CurrentPageCriteria"] | external["uniform-context-types.swagger.yml"]["components"]["schemas"]["PageViewCountCriteria"];
|
174
185
|
/** @description Matches a URL query string parameter value */
|
175
186
|
QueryStringCriteria: {
|
187
|
+
/** @enum {string} */
|
176
188
|
type: "QS";
|
177
189
|
/** @description The name of the query string parameter to match */
|
178
190
|
queryName: string;
|
@@ -181,6 +193,7 @@ interface external {
|
|
181
193
|
};
|
182
194
|
/** @description Matches a web cookie value */
|
183
195
|
CookieCriteria: {
|
196
|
+
/** @enum {string} */
|
184
197
|
type: "CK";
|
185
198
|
/** @description The name of the cookie to match */
|
186
199
|
cookieName: string;
|
@@ -189,6 +202,7 @@ interface external {
|
|
189
202
|
};
|
190
203
|
/** @description Matches a visitor quirk key and value */
|
191
204
|
QuirkCriteria: {
|
205
|
+
/** @enum {string} */
|
192
206
|
type: "QK";
|
193
207
|
/** @description The name of the quirk key to match */
|
194
208
|
key: string;
|
@@ -197,6 +211,7 @@ interface external {
|
|
197
211
|
};
|
198
212
|
/** @description Matches an analytics event name being fired */
|
199
213
|
EventCriteria: {
|
214
|
+
/** @enum {string} */
|
200
215
|
type: "EVT";
|
201
216
|
/** @description How to match the event name */
|
202
217
|
event: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
|
@@ -206,11 +221,13 @@ interface external {
|
|
206
221
|
* Does not include the query string or protocol and hostname (i.e. NOT https://foo.com/path/to/page.html?query=something)
|
207
222
|
*/
|
208
223
|
CurrentPageCriteria: {
|
224
|
+
/** @enum {string} */
|
209
225
|
type: "PV";
|
210
226
|
/** @description The page/route path to match as a page that has been visited */
|
211
227
|
path: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["StringMatch"];
|
212
228
|
};
|
213
229
|
PageViewCountCriteria: {
|
230
|
+
/** @enum {string} */
|
214
231
|
type: "PVC";
|
215
232
|
/** @description The expression to match the page view count against */
|
216
233
|
match: external["uniform-context-types.swagger.yml"]["components"]["schemas"]["NumberMatch"];
|
@@ -226,6 +243,8 @@ interface external {
|
|
226
243
|
* '//' = regular expression match
|
227
244
|
*
|
228
245
|
* Any of the above can be prefixed with '!' to invert the match (i.e. != for 'not an exact match')
|
246
|
+
*
|
247
|
+
* @enum {string}
|
229
248
|
*/
|
230
249
|
op: "=" | "~" | "//" | "!=" | "!~" | "!//";
|
231
250
|
/** @description The case sensitivity of the match. Defaults to false if unspecified. */
|
@@ -235,6 +254,8 @@ interface external {
|
|
235
254
|
* @description The type of match to perform
|
236
255
|
* '*' = exists with any value
|
237
256
|
* '!*' = does not exist
|
257
|
+
*
|
258
|
+
* @enum {string}
|
238
259
|
*/
|
239
260
|
op: "*" | "!*";
|
240
261
|
};
|
@@ -248,6 +269,8 @@ interface external {
|
|
248
269
|
* '!=' = not an exact match
|
249
270
|
* '<' = less than match expression
|
250
271
|
* '>' = greater than match expression
|
272
|
+
*
|
273
|
+
* @enum {string}
|
251
274
|
*/
|
252
275
|
op: "=" | "<" | ">" | "!=";
|
253
276
|
};
|
@@ -278,6 +301,7 @@ interface external {
|
|
278
301
|
* Default if unspecified: '+'
|
279
302
|
*
|
280
303
|
* @default +
|
304
|
+
* @enum {string}
|
281
305
|
*/
|
282
306
|
sign?: "+" | "-" | "c";
|
283
307
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/context",
|
3
|
-
"version": "16.2.1-
|
3
|
+
"version": "16.2.1-nuxt.274+0a8a48855",
|
4
4
|
"description": "Uniform Context core package",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -44,26 +44,27 @@
|
|
44
44
|
},
|
45
45
|
"sideEffects": false,
|
46
46
|
"scripts": {
|
47
|
-
"build": "
|
48
|
-
"
|
47
|
+
"build": "run-s update-openapi build:ts",
|
48
|
+
"build:ts": "tsup --minify",
|
49
|
+
"dev": "run-s update-openapi dev:ts",
|
50
|
+
"dev:ts": "tsup --watch",
|
49
51
|
"clean": "rimraf dist",
|
50
52
|
"test": "jest --maxWorkers=1",
|
51
53
|
"lint": "eslint \"src/**/*.{js,ts,tsx}\"",
|
52
54
|
"format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
|
53
|
-
"update-openapi": "
|
55
|
+
"update-openapi": "tsx ./scripts/update-openapi.cts",
|
54
56
|
"benchmark:build": "tsup src/storage/__benchmarks__/storage.benchmark.ts",
|
55
57
|
"benchmark:run": "node ./dist/storage.benchmark.js"
|
56
58
|
},
|
57
59
|
"devDependencies": {
|
58
60
|
"@types/js-cookie": "3.0.2",
|
59
61
|
"@types/yargs": "17.0.10",
|
60
|
-
"@uniformdev/cli": "^16.2.1-
|
62
|
+
"@uniformdev/cli": "^16.2.1-nuxt.274+0a8a48855",
|
61
63
|
"benny": "3.7.1",
|
62
64
|
"yargs": "17.5.1"
|
63
65
|
},
|
64
66
|
"dependencies": {
|
65
67
|
"dequal": "^2.0.2",
|
66
|
-
"isomorphic-unfetch": "^3.1.0",
|
67
68
|
"js-cookie": "3.0.1",
|
68
69
|
"mitt": "^3.0.0",
|
69
70
|
"p-limit": "^3.1.0",
|
@@ -75,5 +76,5 @@
|
|
75
76
|
"publishConfig": {
|
76
77
|
"access": "public"
|
77
78
|
},
|
78
|
-
"gitHead": "
|
79
|
+
"gitHead": "0a8a48855ef532336761a3872c3d515ab6b9113e"
|
79
80
|
}
|