@luxuryescapes/contract-svc-lab-v2 0.1.28 → 0.1.30
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/server.d.ts +64 -0
- package/package.json +2 -3
package/dist/server.d.ts
CHANGED
|
@@ -66,6 +66,10 @@ export interface paths {
|
|
|
66
66
|
"/api/lab/v2/evaluate": {
|
|
67
67
|
post: operations["evaluateExperiments"];
|
|
68
68
|
};
|
|
69
|
+
"/api/lab/v2/feature-flags": {
|
|
70
|
+
/** Public, read only. Returns the requested flags that are on for this caller, with their payloads. Audiences use the signed-in member; rollout uses `domain_id`. Not cacheable. */
|
|
71
|
+
post: operations["evaluateFeatureFlags"];
|
|
72
|
+
};
|
|
69
73
|
}
|
|
70
74
|
export interface components {
|
|
71
75
|
schemas: {
|
|
@@ -732,6 +736,8 @@ export interface operations {
|
|
|
732
736
|
id: number;
|
|
733
737
|
is_exclude: boolean;
|
|
734
738
|
}[];
|
|
739
|
+
/** @description Share of visitors in basis points (10000 = everyone). Omitted keeps the current rollout. */
|
|
740
|
+
rollout?: number;
|
|
735
741
|
};
|
|
736
742
|
};
|
|
737
743
|
};
|
|
@@ -1491,6 +1497,64 @@ export interface operations {
|
|
|
1491
1497
|
requestBody: {
|
|
1492
1498
|
content: {
|
|
1493
1499
|
"application/json": {
|
|
1500
|
+
/**
|
|
1501
|
+
* Format: uuid
|
|
1502
|
+
* @description Snowplow domain_userid, used only for rollout. Keep it stable across login. Null when there is none: only full rollouts match.
|
|
1503
|
+
*/
|
|
1504
|
+
domain_id: string | null;
|
|
1505
|
+
attributes: {
|
|
1506
|
+
[key: string]: unknown;
|
|
1507
|
+
};
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1512
|
+
/** Public, read only. Returns the requested flags that are on for this caller, with their payloads. Audiences use the signed-in member; rollout uses `domain_id`. Not cacheable. */
|
|
1513
|
+
evaluateFeatureFlags: {
|
|
1514
|
+
parameters: {};
|
|
1515
|
+
responses: {
|
|
1516
|
+
/** 200 response */
|
|
1517
|
+
200: {
|
|
1518
|
+
content: {
|
|
1519
|
+
"application/json": {
|
|
1520
|
+
status: 200;
|
|
1521
|
+
message: string;
|
|
1522
|
+
/** @description Flags that are on for this caller, with payloads. A missing key is off: use the default behaviour. Per caller, so never share it between users. */
|
|
1523
|
+
result: {
|
|
1524
|
+
[key: string]: {
|
|
1525
|
+
payload: {
|
|
1526
|
+
[key: string]: unknown;
|
|
1527
|
+
};
|
|
1528
|
+
};
|
|
1529
|
+
};
|
|
1530
|
+
};
|
|
1531
|
+
};
|
|
1532
|
+
};
|
|
1533
|
+
/** 400 response */
|
|
1534
|
+
400: {
|
|
1535
|
+
content: {
|
|
1536
|
+
"application/json": {
|
|
1537
|
+
status: 400;
|
|
1538
|
+
message: string;
|
|
1539
|
+
errors?: {
|
|
1540
|
+
message: string;
|
|
1541
|
+
path?: string;
|
|
1542
|
+
}[];
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
/** payload */
|
|
1548
|
+
requestBody: {
|
|
1549
|
+
content: {
|
|
1550
|
+
"application/json": {
|
|
1551
|
+
/** @description Case-sensitive. More than the maximum is a 400; keys are never dropped. */
|
|
1552
|
+
keys: string[];
|
|
1553
|
+
/**
|
|
1554
|
+
* Format: uuid
|
|
1555
|
+
* @description Snowplow domain_userid, used only for rollout, as for POST /evaluate. Services forward the browser value. Null when there is none: only full rollouts match.
|
|
1556
|
+
*/
|
|
1557
|
+
domain_id: string | null;
|
|
1494
1558
|
attributes: {
|
|
1495
1559
|
[key: string]: unknown;
|
|
1496
1560
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxuryescapes/contract-svc-lab-v2",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -11,11 +11,10 @@
|
|
|
11
11
|
"repository": "git@github.com:lux-group/svc-lab-v2.git",
|
|
12
12
|
"author": "@lux-group/team-cx-platform",
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"rimraf": "6.1.3",
|
|
15
14
|
"typescript": "^7.0.2"
|
|
16
15
|
},
|
|
17
16
|
"scripts": {
|
|
18
|
-
"build": "
|
|
17
|
+
"build": "rm -rf dist && tsc --project ./tsconfig.build.json",
|
|
19
18
|
"prepack": "yarn build"
|
|
20
19
|
},
|
|
21
20
|
"volta": {
|