@luxuryescapes/contract-svc-lab-v2 0.1.26 → 0.1.28
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 +92 -4
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -42,15 +42,19 @@ export interface paths {
|
|
|
42
42
|
put: operations["replaceCampaignItems"];
|
|
43
43
|
};
|
|
44
44
|
"/api/lab/v2/admin/campaigns": {
|
|
45
|
-
/** List scheduled campaigns for the admin overview */
|
|
45
|
+
/** List scheduled and always-on campaigns for the admin overview */
|
|
46
46
|
get: operations["listCampaigns"];
|
|
47
|
-
/** Create an empty scheduled
|
|
47
|
+
/** Create an empty campaign (scheduled by default) with an optional draft schedule */
|
|
48
48
|
post: operations["createCampaign"];
|
|
49
49
|
};
|
|
50
50
|
"/api/lab/v2/items/{id}": {
|
|
51
51
|
/** 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
52
|
get: operations["getItemPayload"];
|
|
53
53
|
};
|
|
54
|
+
"/api/lab/v2/preview/campaigns/{id}": {
|
|
55
|
+
/** Public. Returns saved UI elements only, regardless of enabled state, campaign schedule, targeting, or rollout. Cached for 30 seconds. Invalid UI payloads are omitted. */
|
|
56
|
+
get: operations["getPreviewCampaign"];
|
|
57
|
+
};
|
|
54
58
|
"/api/lab/v2/preview/ui/{id}": {
|
|
55
59
|
/** Public. Returns the latest saved UI payload without checking enabled state, campaign schedule, targeting, or rollout. Cached for 30 seconds in browsers and shared caches. */
|
|
56
60
|
get: operations["getPreviewUi"];
|
|
@@ -580,6 +584,10 @@ export interface operations {
|
|
|
580
584
|
result: {
|
|
581
585
|
id: number;
|
|
582
586
|
name: string;
|
|
587
|
+
/** @description scheduled is live inside its schedule; always_on is live while enable is true */
|
|
588
|
+
type: "scheduled" | "always_on";
|
|
589
|
+
/** @description Turns an always_on campaign on; scheduled campaigns ignore it */
|
|
590
|
+
enable: boolean;
|
|
583
591
|
priority: number;
|
|
584
592
|
rollout: number;
|
|
585
593
|
seed: number;
|
|
@@ -646,6 +654,10 @@ export interface operations {
|
|
|
646
654
|
result: {
|
|
647
655
|
id: number;
|
|
648
656
|
name: string;
|
|
657
|
+
/** @description scheduled is live inside its schedule; always_on is live while enable is true */
|
|
658
|
+
type: "scheduled" | "always_on";
|
|
659
|
+
/** @description Turns an always_on campaign on; scheduled campaigns ignore it */
|
|
660
|
+
enable: boolean;
|
|
649
661
|
priority: number;
|
|
650
662
|
rollout: number;
|
|
651
663
|
seed: number;
|
|
@@ -700,6 +712,10 @@ export interface operations {
|
|
|
700
712
|
content: {
|
|
701
713
|
"application/json": {
|
|
702
714
|
name: string;
|
|
715
|
+
/** @description scheduled is live inside its schedule; always_on is live while enable is true */
|
|
716
|
+
type: "scheduled" | "always_on";
|
|
717
|
+
/** @description Turns an always_on campaign on; scheduled campaigns ignore it */
|
|
718
|
+
enable: boolean;
|
|
703
719
|
priority: number;
|
|
704
720
|
schedule: {
|
|
705
721
|
/** Format: date-time */
|
|
@@ -999,7 +1015,7 @@ export interface operations {
|
|
|
999
1015
|
};
|
|
1000
1016
|
};
|
|
1001
1017
|
};
|
|
1002
|
-
/** List scheduled campaigns for the admin overview */
|
|
1018
|
+
/** List scheduled and always-on campaigns for the admin overview */
|
|
1003
1019
|
listCampaigns: {
|
|
1004
1020
|
parameters: {
|
|
1005
1021
|
query: {
|
|
@@ -1025,6 +1041,10 @@ export interface operations {
|
|
|
1025
1041
|
result: {
|
|
1026
1042
|
id: number;
|
|
1027
1043
|
name: string;
|
|
1044
|
+
/** @description scheduled is live inside its schedule; always_on is live while enable is true */
|
|
1045
|
+
type: "scheduled" | "always_on";
|
|
1046
|
+
/** @description Turns an always_on campaign on; scheduled campaigns ignore it */
|
|
1047
|
+
enable: boolean;
|
|
1028
1048
|
priority: number;
|
|
1029
1049
|
rollout: number;
|
|
1030
1050
|
seed: number;
|
|
@@ -1073,7 +1093,7 @@ export interface operations {
|
|
|
1073
1093
|
};
|
|
1074
1094
|
};
|
|
1075
1095
|
};
|
|
1076
|
-
/** Create an empty scheduled
|
|
1096
|
+
/** Create an empty campaign (scheduled by default) with an optional draft schedule */
|
|
1077
1097
|
createCampaign: {
|
|
1078
1098
|
parameters: {};
|
|
1079
1099
|
responses: {
|
|
@@ -1086,6 +1106,10 @@ export interface operations {
|
|
|
1086
1106
|
result: {
|
|
1087
1107
|
id: number;
|
|
1088
1108
|
name: string;
|
|
1109
|
+
/** @description scheduled is live inside its schedule; always_on is live while enable is true */
|
|
1110
|
+
type: "scheduled" | "always_on";
|
|
1111
|
+
/** @description Turns an always_on campaign on; scheduled campaigns ignore it */
|
|
1112
|
+
enable: boolean;
|
|
1089
1113
|
priority: number;
|
|
1090
1114
|
rollout: number;
|
|
1091
1115
|
seed: number;
|
|
@@ -1131,6 +1155,10 @@ export interface operations {
|
|
|
1131
1155
|
content: {
|
|
1132
1156
|
"application/json": {
|
|
1133
1157
|
name: string;
|
|
1158
|
+
/** @description scheduled is live inside its schedule; always_on is live while enable is true */
|
|
1159
|
+
type?: "scheduled" | "always_on";
|
|
1160
|
+
/** @description Turns an always_on campaign on; scheduled campaigns ignore it */
|
|
1161
|
+
enable?: boolean;
|
|
1134
1162
|
priority?: number;
|
|
1135
1163
|
targeting_conditions?: {
|
|
1136
1164
|
[key: string]: unknown;
|
|
@@ -1209,6 +1237,66 @@ export interface operations {
|
|
|
1209
1237
|
};
|
|
1210
1238
|
};
|
|
1211
1239
|
};
|
|
1240
|
+
/** Public. Returns saved UI elements only, regardless of enabled state, campaign schedule, targeting, or rollout. Cached for 30 seconds. Invalid UI payloads are omitted. */
|
|
1241
|
+
getPreviewCampaign: {
|
|
1242
|
+
parameters: {
|
|
1243
|
+
path: {
|
|
1244
|
+
id: string;
|
|
1245
|
+
};
|
|
1246
|
+
};
|
|
1247
|
+
responses: {
|
|
1248
|
+
/** 200 response */
|
|
1249
|
+
200: {
|
|
1250
|
+
content: {
|
|
1251
|
+
"application/json": {
|
|
1252
|
+
status: 200;
|
|
1253
|
+
message: string;
|
|
1254
|
+
result: ({
|
|
1255
|
+
/** Format: uuid */
|
|
1256
|
+
id: string;
|
|
1257
|
+
kind: "ui";
|
|
1258
|
+
type: "header_banner";
|
|
1259
|
+
payload: components["schemas"]["HeaderBannerPayload"];
|
|
1260
|
+
} | {
|
|
1261
|
+
/** Format: uuid */
|
|
1262
|
+
id: string;
|
|
1263
|
+
kind: "ui";
|
|
1264
|
+
type: "popup";
|
|
1265
|
+
payload: components["schemas"]["PopupPayload"];
|
|
1266
|
+
} | {
|
|
1267
|
+
/** Format: uuid */
|
|
1268
|
+
id: string;
|
|
1269
|
+
kind: "ui";
|
|
1270
|
+
type: "snackbar";
|
|
1271
|
+
payload: components["schemas"]["SnackbarPayload"];
|
|
1272
|
+
})[];
|
|
1273
|
+
};
|
|
1274
|
+
};
|
|
1275
|
+
};
|
|
1276
|
+
/** 400 response */
|
|
1277
|
+
400: {
|
|
1278
|
+
content: {
|
|
1279
|
+
"application/json": {
|
|
1280
|
+
status: 400;
|
|
1281
|
+
message: string;
|
|
1282
|
+
errors?: {
|
|
1283
|
+
message: string;
|
|
1284
|
+
path?: string;
|
|
1285
|
+
}[];
|
|
1286
|
+
};
|
|
1287
|
+
};
|
|
1288
|
+
};
|
|
1289
|
+
/** 404 response */
|
|
1290
|
+
404: {
|
|
1291
|
+
content: {
|
|
1292
|
+
"application/json": {
|
|
1293
|
+
status: 404;
|
|
1294
|
+
message: string;
|
|
1295
|
+
};
|
|
1296
|
+
};
|
|
1297
|
+
};
|
|
1298
|
+
};
|
|
1299
|
+
};
|
|
1212
1300
|
/** Public. Returns the latest saved UI payload without checking enabled state, campaign schedule, targeting, or rollout. Cached for 30 seconds in browsers and shared caches. */
|
|
1213
1301
|
getPreviewUi: {
|
|
1214
1302
|
parameters: {
|