@luxuryescapes/contract-svc-lab-v2 0.1.30 → 0.1.31
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 +362 -0
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -47,6 +47,17 @@ export interface paths {
|
|
|
47
47
|
/** Create an empty campaign (scheduled by default) with an optional draft schedule */
|
|
48
48
|
post: operations["createCampaign"];
|
|
49
49
|
};
|
|
50
|
+
"/api/lab/v2/admin/feature-flags/{id}": {
|
|
51
|
+
get: operations["getFeatureFlag"];
|
|
52
|
+
/** Replaces everything but the key and seed. */
|
|
53
|
+
put: operations["updateFeatureFlag"];
|
|
54
|
+
/** Only a disabled flag can be deleted; a flag that is on returns 409. Callers asking for its key get it as off. Recreating it reshuffles its rollout. */
|
|
55
|
+
delete: operations["deleteFeatureFlag"];
|
|
56
|
+
};
|
|
57
|
+
"/api/lab/v2/admin/feature-flags": {
|
|
58
|
+
get: operations["listFeatureFlags"];
|
|
59
|
+
post: operations["createFeatureFlag"];
|
|
60
|
+
};
|
|
50
61
|
"/api/lab/v2/items/{id}": {
|
|
51
62
|
/** Public and identical for every user, so CDN-cacheable. Ids that evaluate cannot return (unknown, disabled, or of a campaign that is not live) get 404. */
|
|
52
63
|
get: operations["getItemPayload"];
|
|
@@ -1180,6 +1191,357 @@ export interface operations {
|
|
|
1180
1191
|
};
|
|
1181
1192
|
};
|
|
1182
1193
|
};
|
|
1194
|
+
getFeatureFlag: {
|
|
1195
|
+
parameters: {
|
|
1196
|
+
path: {
|
|
1197
|
+
id: string;
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1200
|
+
responses: {
|
|
1201
|
+
/** 200 response */
|
|
1202
|
+
200: {
|
|
1203
|
+
content: {
|
|
1204
|
+
"application/json": {
|
|
1205
|
+
status: 200;
|
|
1206
|
+
message: string;
|
|
1207
|
+
result: {
|
|
1208
|
+
id: number;
|
|
1209
|
+
key: string;
|
|
1210
|
+
enable: boolean;
|
|
1211
|
+
/** @description Share of callers in basis points: 10000 is everyone */
|
|
1212
|
+
rollout: number;
|
|
1213
|
+
targeting_conditions: {
|
|
1214
|
+
[key: string]: unknown;
|
|
1215
|
+
} | null;
|
|
1216
|
+
audience_targeting_join: boolean;
|
|
1217
|
+
audiences: {
|
|
1218
|
+
id: number;
|
|
1219
|
+
is_exclude: boolean;
|
|
1220
|
+
}[];
|
|
1221
|
+
/** @description Any JSON object, returned inline to every caller the flag is on for. Public. */
|
|
1222
|
+
payload: {
|
|
1223
|
+
[key: string]: unknown;
|
|
1224
|
+
};
|
|
1225
|
+
seed: number;
|
|
1226
|
+
/** Format: date-time */
|
|
1227
|
+
created_at: string;
|
|
1228
|
+
/** Format: date-time */
|
|
1229
|
+
updated_at: string;
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
/** 400 response */
|
|
1235
|
+
400: {
|
|
1236
|
+
content: {
|
|
1237
|
+
"application/json": {
|
|
1238
|
+
status: 400;
|
|
1239
|
+
message: string;
|
|
1240
|
+
errors?: {
|
|
1241
|
+
message: string;
|
|
1242
|
+
path?: string;
|
|
1243
|
+
}[];
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
};
|
|
1247
|
+
/** 404 response */
|
|
1248
|
+
404: {
|
|
1249
|
+
content: {
|
|
1250
|
+
"application/json": {
|
|
1251
|
+
status: 404;
|
|
1252
|
+
message: string;
|
|
1253
|
+
};
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
};
|
|
1258
|
+
/** Replaces everything but the key and seed. */
|
|
1259
|
+
updateFeatureFlag: {
|
|
1260
|
+
parameters: {
|
|
1261
|
+
path: {
|
|
1262
|
+
id: string;
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1265
|
+
responses: {
|
|
1266
|
+
/** 200 response */
|
|
1267
|
+
200: {
|
|
1268
|
+
content: {
|
|
1269
|
+
"application/json": {
|
|
1270
|
+
status: 200;
|
|
1271
|
+
message: string;
|
|
1272
|
+
result: {
|
|
1273
|
+
id: number;
|
|
1274
|
+
key: string;
|
|
1275
|
+
enable: boolean;
|
|
1276
|
+
/** @description Share of callers in basis points: 10000 is everyone */
|
|
1277
|
+
rollout: number;
|
|
1278
|
+
targeting_conditions: {
|
|
1279
|
+
[key: string]: unknown;
|
|
1280
|
+
} | null;
|
|
1281
|
+
audience_targeting_join: boolean;
|
|
1282
|
+
audiences: {
|
|
1283
|
+
id: number;
|
|
1284
|
+
is_exclude: boolean;
|
|
1285
|
+
}[];
|
|
1286
|
+
/** @description Any JSON object, returned inline to every caller the flag is on for. Public. */
|
|
1287
|
+
payload: {
|
|
1288
|
+
[key: string]: unknown;
|
|
1289
|
+
};
|
|
1290
|
+
seed: number;
|
|
1291
|
+
/** Format: date-time */
|
|
1292
|
+
created_at: string;
|
|
1293
|
+
/** Format: date-time */
|
|
1294
|
+
updated_at: string;
|
|
1295
|
+
};
|
|
1296
|
+
};
|
|
1297
|
+
};
|
|
1298
|
+
};
|
|
1299
|
+
/** 400 response */
|
|
1300
|
+
400: {
|
|
1301
|
+
content: {
|
|
1302
|
+
"application/json": {
|
|
1303
|
+
status: 400;
|
|
1304
|
+
message: string;
|
|
1305
|
+
errors?: {
|
|
1306
|
+
message: string;
|
|
1307
|
+
path?: string;
|
|
1308
|
+
}[];
|
|
1309
|
+
};
|
|
1310
|
+
};
|
|
1311
|
+
};
|
|
1312
|
+
/** 404 response */
|
|
1313
|
+
404: {
|
|
1314
|
+
content: {
|
|
1315
|
+
"application/json": {
|
|
1316
|
+
status: 404;
|
|
1317
|
+
message: string;
|
|
1318
|
+
};
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1321
|
+
};
|
|
1322
|
+
/** payload */
|
|
1323
|
+
requestBody: {
|
|
1324
|
+
content: {
|
|
1325
|
+
"application/json": {
|
|
1326
|
+
enable: boolean;
|
|
1327
|
+
/** @description Share of callers in basis points: 10000 is everyone */
|
|
1328
|
+
rollout: number;
|
|
1329
|
+
targeting_conditions: {
|
|
1330
|
+
[key: string]: unknown;
|
|
1331
|
+
} | null;
|
|
1332
|
+
audience_targeting_join: boolean;
|
|
1333
|
+
audiences: {
|
|
1334
|
+
id: number;
|
|
1335
|
+
is_exclude: boolean;
|
|
1336
|
+
}[];
|
|
1337
|
+
/** @description Any JSON object, returned inline to every caller the flag is on for. Public. */
|
|
1338
|
+
payload: {
|
|
1339
|
+
[key: string]: unknown;
|
|
1340
|
+
};
|
|
1341
|
+
};
|
|
1342
|
+
};
|
|
1343
|
+
};
|
|
1344
|
+
};
|
|
1345
|
+
/** Only a disabled flag can be deleted; a flag that is on returns 409. Callers asking for its key get it as off. Recreating it reshuffles its rollout. */
|
|
1346
|
+
deleteFeatureFlag: {
|
|
1347
|
+
parameters: {
|
|
1348
|
+
path: {
|
|
1349
|
+
id: string;
|
|
1350
|
+
};
|
|
1351
|
+
};
|
|
1352
|
+
responses: {
|
|
1353
|
+
/** 200 response */
|
|
1354
|
+
200: {
|
|
1355
|
+
content: {
|
|
1356
|
+
"application/json": {
|
|
1357
|
+
status: 200;
|
|
1358
|
+
message: string;
|
|
1359
|
+
result: {
|
|
1360
|
+
[key: string]: unknown;
|
|
1361
|
+
};
|
|
1362
|
+
};
|
|
1363
|
+
};
|
|
1364
|
+
};
|
|
1365
|
+
/** 400 response */
|
|
1366
|
+
400: {
|
|
1367
|
+
content: {
|
|
1368
|
+
"application/json": {
|
|
1369
|
+
status: 400;
|
|
1370
|
+
message: string;
|
|
1371
|
+
errors?: {
|
|
1372
|
+
message: string;
|
|
1373
|
+
path?: string;
|
|
1374
|
+
}[];
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
};
|
|
1378
|
+
/** 404 response */
|
|
1379
|
+
404: {
|
|
1380
|
+
content: {
|
|
1381
|
+
"application/json": {
|
|
1382
|
+
status: 404;
|
|
1383
|
+
message: string;
|
|
1384
|
+
};
|
|
1385
|
+
};
|
|
1386
|
+
};
|
|
1387
|
+
/** 409 response */
|
|
1388
|
+
409: {
|
|
1389
|
+
content: {
|
|
1390
|
+
"application/json": {
|
|
1391
|
+
status: 409;
|
|
1392
|
+
message: string;
|
|
1393
|
+
};
|
|
1394
|
+
};
|
|
1395
|
+
};
|
|
1396
|
+
};
|
|
1397
|
+
};
|
|
1398
|
+
listFeatureFlags: {
|
|
1399
|
+
parameters: {
|
|
1400
|
+
query: {
|
|
1401
|
+
/** Number of items to skip before starting to collect the result set */
|
|
1402
|
+
offset?: number;
|
|
1403
|
+
/** Number of items to return */
|
|
1404
|
+
limit?: number;
|
|
1405
|
+
/** Property to sort by */
|
|
1406
|
+
sort_by?: "key" | "created_at" | "id";
|
|
1407
|
+
/** Sort order */
|
|
1408
|
+
sort_order?: "asc" | "desc";
|
|
1409
|
+
/** Filter term to filter results */
|
|
1410
|
+
filter?: string;
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
responses: {
|
|
1414
|
+
/** 200 response */
|
|
1415
|
+
200: {
|
|
1416
|
+
content: {
|
|
1417
|
+
"application/json": {
|
|
1418
|
+
status: 200;
|
|
1419
|
+
message: string;
|
|
1420
|
+
result: {
|
|
1421
|
+
id: number;
|
|
1422
|
+
key: string;
|
|
1423
|
+
enable: boolean;
|
|
1424
|
+
/** @description Share of callers in basis points: 10000 is everyone */
|
|
1425
|
+
rollout: number;
|
|
1426
|
+
targeting_conditions: {
|
|
1427
|
+
[key: string]: unknown;
|
|
1428
|
+
} | null;
|
|
1429
|
+
audience_targeting_join: boolean;
|
|
1430
|
+
audiences: {
|
|
1431
|
+
id: number;
|
|
1432
|
+
is_exclude: boolean;
|
|
1433
|
+
}[];
|
|
1434
|
+
/** @description Any JSON object, returned inline to every caller the flag is on for. Public. */
|
|
1435
|
+
payload: {
|
|
1436
|
+
[key: string]: unknown;
|
|
1437
|
+
};
|
|
1438
|
+
seed: number;
|
|
1439
|
+
/** Format: date-time */
|
|
1440
|
+
created_at: string;
|
|
1441
|
+
/** Format: date-time */
|
|
1442
|
+
updated_at: string;
|
|
1443
|
+
}[];
|
|
1444
|
+
pagination: {
|
|
1445
|
+
limit: number;
|
|
1446
|
+
offset: number;
|
|
1447
|
+
total_items: number;
|
|
1448
|
+
has_next: boolean;
|
|
1449
|
+
has_previous: boolean;
|
|
1450
|
+
};
|
|
1451
|
+
};
|
|
1452
|
+
};
|
|
1453
|
+
};
|
|
1454
|
+
/** 400 response */
|
|
1455
|
+
400: {
|
|
1456
|
+
content: {
|
|
1457
|
+
"application/json": {
|
|
1458
|
+
status: 400;
|
|
1459
|
+
message: string;
|
|
1460
|
+
errors?: {
|
|
1461
|
+
message: string;
|
|
1462
|
+
path?: string;
|
|
1463
|
+
}[];
|
|
1464
|
+
};
|
|
1465
|
+
};
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
createFeatureFlag: {
|
|
1470
|
+
parameters: {};
|
|
1471
|
+
responses: {
|
|
1472
|
+
/** 201 response */
|
|
1473
|
+
201: {
|
|
1474
|
+
content: {
|
|
1475
|
+
"application/json": {
|
|
1476
|
+
status: 201;
|
|
1477
|
+
message: string;
|
|
1478
|
+
result: {
|
|
1479
|
+
id: number;
|
|
1480
|
+
key: string;
|
|
1481
|
+
enable: boolean;
|
|
1482
|
+
/** @description Share of callers in basis points: 10000 is everyone */
|
|
1483
|
+
rollout: number;
|
|
1484
|
+
targeting_conditions: {
|
|
1485
|
+
[key: string]: unknown;
|
|
1486
|
+
} | null;
|
|
1487
|
+
audience_targeting_join: boolean;
|
|
1488
|
+
audiences: {
|
|
1489
|
+
id: number;
|
|
1490
|
+
is_exclude: boolean;
|
|
1491
|
+
}[];
|
|
1492
|
+
/** @description Any JSON object, returned inline to every caller the flag is on for. Public. */
|
|
1493
|
+
payload: {
|
|
1494
|
+
[key: string]: unknown;
|
|
1495
|
+
};
|
|
1496
|
+
seed: number;
|
|
1497
|
+
/** Format: date-time */
|
|
1498
|
+
created_at: string;
|
|
1499
|
+
/** Format: date-time */
|
|
1500
|
+
updated_at: string;
|
|
1501
|
+
};
|
|
1502
|
+
};
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
/** 400 response */
|
|
1506
|
+
400: {
|
|
1507
|
+
content: {
|
|
1508
|
+
"application/json": {
|
|
1509
|
+
status: 400;
|
|
1510
|
+
message: string;
|
|
1511
|
+
errors?: {
|
|
1512
|
+
message: string;
|
|
1513
|
+
path?: string;
|
|
1514
|
+
}[];
|
|
1515
|
+
};
|
|
1516
|
+
};
|
|
1517
|
+
};
|
|
1518
|
+
};
|
|
1519
|
+
/** payload */
|
|
1520
|
+
requestBody: {
|
|
1521
|
+
content: {
|
|
1522
|
+
"application/json": {
|
|
1523
|
+
/** @description Case-sensitive and unique. Fixed after create: clients ask for the flag by key. */
|
|
1524
|
+
key: string;
|
|
1525
|
+
enable?: boolean;
|
|
1526
|
+
/** @description Share of callers in basis points: 10000 is everyone */
|
|
1527
|
+
rollout?: number;
|
|
1528
|
+
targeting_conditions?: {
|
|
1529
|
+
[key: string]: unknown;
|
|
1530
|
+
} | null;
|
|
1531
|
+
audience_targeting_join?: boolean;
|
|
1532
|
+
/** @description Defaults to the Everyone audience, so a new flag can be turned on as is */
|
|
1533
|
+
audiences?: {
|
|
1534
|
+
id: number;
|
|
1535
|
+
is_exclude: boolean;
|
|
1536
|
+
}[];
|
|
1537
|
+
/** @description Any JSON object, returned inline to every caller the flag is on for. Public. */
|
|
1538
|
+
payload?: {
|
|
1539
|
+
[key: string]: unknown;
|
|
1540
|
+
};
|
|
1541
|
+
};
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1183
1545
|
/** Public and identical for every user, so CDN-cacheable. Ids that evaluate cannot return (unknown, disabled, or of a campaign that is not live) get 404. */
|
|
1184
1546
|
getItemPayload: {
|
|
1185
1547
|
parameters: {
|