@luxuryescapes/contract-svc-lab-v2 0.1.27 → 0.1.29
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 +35 -4
- package/package.json +2 -3
package/dist/server.d.ts
CHANGED
|
@@ -42,9 +42,9 @@ 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}": {
|
|
@@ -584,6 +584,10 @@ export interface operations {
|
|
|
584
584
|
result: {
|
|
585
585
|
id: number;
|
|
586
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;
|
|
587
591
|
priority: number;
|
|
588
592
|
rollout: number;
|
|
589
593
|
seed: number;
|
|
@@ -650,6 +654,10 @@ export interface operations {
|
|
|
650
654
|
result: {
|
|
651
655
|
id: number;
|
|
652
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;
|
|
653
661
|
priority: number;
|
|
654
662
|
rollout: number;
|
|
655
663
|
seed: number;
|
|
@@ -704,6 +712,10 @@ export interface operations {
|
|
|
704
712
|
content: {
|
|
705
713
|
"application/json": {
|
|
706
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;
|
|
707
719
|
priority: number;
|
|
708
720
|
schedule: {
|
|
709
721
|
/** Format: date-time */
|
|
@@ -720,6 +732,8 @@ export interface operations {
|
|
|
720
732
|
id: number;
|
|
721
733
|
is_exclude: boolean;
|
|
722
734
|
}[];
|
|
735
|
+
/** @description Share of visitors in basis points (10000 = everyone). Omitted keeps the current rollout. */
|
|
736
|
+
rollout?: number;
|
|
723
737
|
};
|
|
724
738
|
};
|
|
725
739
|
};
|
|
@@ -1003,7 +1017,7 @@ export interface operations {
|
|
|
1003
1017
|
};
|
|
1004
1018
|
};
|
|
1005
1019
|
};
|
|
1006
|
-
/** List scheduled campaigns for the admin overview */
|
|
1020
|
+
/** List scheduled and always-on campaigns for the admin overview */
|
|
1007
1021
|
listCampaigns: {
|
|
1008
1022
|
parameters: {
|
|
1009
1023
|
query: {
|
|
@@ -1029,6 +1043,10 @@ export interface operations {
|
|
|
1029
1043
|
result: {
|
|
1030
1044
|
id: number;
|
|
1031
1045
|
name: string;
|
|
1046
|
+
/** @description scheduled is live inside its schedule; always_on is live while enable is true */
|
|
1047
|
+
type: "scheduled" | "always_on";
|
|
1048
|
+
/** @description Turns an always_on campaign on; scheduled campaigns ignore it */
|
|
1049
|
+
enable: boolean;
|
|
1032
1050
|
priority: number;
|
|
1033
1051
|
rollout: number;
|
|
1034
1052
|
seed: number;
|
|
@@ -1077,7 +1095,7 @@ export interface operations {
|
|
|
1077
1095
|
};
|
|
1078
1096
|
};
|
|
1079
1097
|
};
|
|
1080
|
-
/** Create an empty scheduled
|
|
1098
|
+
/** Create an empty campaign (scheduled by default) with an optional draft schedule */
|
|
1081
1099
|
createCampaign: {
|
|
1082
1100
|
parameters: {};
|
|
1083
1101
|
responses: {
|
|
@@ -1090,6 +1108,10 @@ export interface operations {
|
|
|
1090
1108
|
result: {
|
|
1091
1109
|
id: number;
|
|
1092
1110
|
name: string;
|
|
1111
|
+
/** @description scheduled is live inside its schedule; always_on is live while enable is true */
|
|
1112
|
+
type: "scheduled" | "always_on";
|
|
1113
|
+
/** @description Turns an always_on campaign on; scheduled campaigns ignore it */
|
|
1114
|
+
enable: boolean;
|
|
1093
1115
|
priority: number;
|
|
1094
1116
|
rollout: number;
|
|
1095
1117
|
seed: number;
|
|
@@ -1135,6 +1157,10 @@ export interface operations {
|
|
|
1135
1157
|
content: {
|
|
1136
1158
|
"application/json": {
|
|
1137
1159
|
name: string;
|
|
1160
|
+
/** @description scheduled is live inside its schedule; always_on is live while enable is true */
|
|
1161
|
+
type?: "scheduled" | "always_on";
|
|
1162
|
+
/** @description Turns an always_on campaign on; scheduled campaigns ignore it */
|
|
1163
|
+
enable?: boolean;
|
|
1138
1164
|
priority?: number;
|
|
1139
1165
|
targeting_conditions?: {
|
|
1140
1166
|
[key: string]: unknown;
|
|
@@ -1467,6 +1493,11 @@ export interface operations {
|
|
|
1467
1493
|
requestBody: {
|
|
1468
1494
|
content: {
|
|
1469
1495
|
"application/json": {
|
|
1496
|
+
/**
|
|
1497
|
+
* Format: uuid
|
|
1498
|
+
* @description Snowplow domain_userid, used only for rollout. Keep it stable across login. Null when there is none: only full rollouts match.
|
|
1499
|
+
*/
|
|
1500
|
+
domain_id: string | null;
|
|
1470
1501
|
attributes: {
|
|
1471
1502
|
[key: string]: unknown;
|
|
1472
1503
|
};
|
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.29",
|
|
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": {
|