@luxuryescapes/contract-svc-lab-v2 0.1.9 → 0.1.11

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.
Files changed (2) hide show
  1. package/dist/server.d.ts +103 -0
  2. package/package.json +4 -5
package/dist/server.d.ts CHANGED
@@ -46,6 +46,9 @@ export interface paths {
46
46
  /** Create an empty scheduled campaign with an optional draft schedule */
47
47
  post: operations["createCampaign"];
48
48
  };
49
+ "/api/lab/v2/evaluate": {
50
+ post: operations["evaluateExperiments"];
51
+ };
49
52
  }
50
53
  export interface components {
51
54
  schemas: {};
@@ -556,6 +559,14 @@ export interface operations {
556
559
  enable: boolean;
557
560
  rollout: number;
558
561
  seed: number;
562
+ targeting_conditions: {
563
+ [key: string]: unknown;
564
+ } | null;
565
+ audience_targeting_join: boolean;
566
+ audiences: {
567
+ id: number;
568
+ is_exclude: boolean;
569
+ }[];
559
570
  schedule: {
560
571
  /** Format: date-time */
561
572
  starts_at: string | null;
@@ -619,6 +630,14 @@ export interface operations {
619
630
  enable: boolean;
620
631
  rollout: number;
621
632
  seed: number;
633
+ targeting_conditions: {
634
+ [key: string]: unknown;
635
+ } | null;
636
+ audience_targeting_join: boolean;
637
+ audiences: {
638
+ id: number;
639
+ is_exclude: boolean;
640
+ }[];
622
641
  schedule: {
623
642
  /** Format: date-time */
624
643
  starts_at: string | null;
@@ -670,6 +689,14 @@ export interface operations {
670
689
  ends_at: string | null;
671
690
  timezone: string;
672
691
  };
692
+ targeting_conditions: {
693
+ [key: string]: unknown;
694
+ } | null;
695
+ audience_targeting_join: boolean;
696
+ audiences: {
697
+ id: number;
698
+ is_exclude: boolean;
699
+ }[];
673
700
  };
674
701
  };
675
702
  };
@@ -881,6 +908,14 @@ export interface operations {
881
908
  enable: boolean;
882
909
  rollout: number;
883
910
  seed: number;
911
+ targeting_conditions: {
912
+ [key: string]: unknown;
913
+ } | null;
914
+ audience_targeting_join: boolean;
915
+ audiences: {
916
+ id: number;
917
+ is_exclude: boolean;
918
+ }[];
884
919
  schedule: {
885
920
  /** Format: date-time */
886
921
  starts_at: string | null;
@@ -940,6 +975,14 @@ export interface operations {
940
975
  enable: boolean;
941
976
  rollout: number;
942
977
  seed: number;
978
+ targeting_conditions: {
979
+ [key: string]: unknown;
980
+ } | null;
981
+ audience_targeting_join: boolean;
982
+ audiences: {
983
+ id: number;
984
+ is_exclude: boolean;
985
+ }[];
943
986
  schedule: {
944
987
  /** Format: date-time */
945
988
  starts_at: string | null;
@@ -975,6 +1018,9 @@ export interface operations {
975
1018
  "application/json": {
976
1019
  name: string;
977
1020
  priority?: number;
1021
+ targeting_conditions?: {
1022
+ [key: string]: unknown;
1023
+ } | null;
978
1024
  schedule?: {
979
1025
  /** Format: date-time */
980
1026
  starts_at?: string | null;
@@ -986,6 +1032,63 @@ export interface operations {
986
1032
  };
987
1033
  };
988
1034
  };
1035
+ evaluateExperiments: {
1036
+ parameters: {};
1037
+ responses: {
1038
+ /** 200 response */
1039
+ 200: {
1040
+ content: {
1041
+ "application/json": {
1042
+ status: 200;
1043
+ message: string;
1044
+ result: {
1045
+ configs: {
1046
+ name: string;
1047
+ payload: {
1048
+ [key: string]: unknown;
1049
+ };
1050
+ }[];
1051
+ uis: {
1052
+ id: number;
1053
+ experiment_id: number;
1054
+ type: "header_banner" | "popup" | "snackbar";
1055
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1056
+ match_mode: "include" | "exclude";
1057
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1058
+ offer_ids: string[];
1059
+ payload: {
1060
+ [key: string]: unknown;
1061
+ };
1062
+ }[];
1063
+ };
1064
+ };
1065
+ };
1066
+ };
1067
+ /** 400 response */
1068
+ 400: {
1069
+ content: {
1070
+ "application/json": {
1071
+ status: 400;
1072
+ message: string;
1073
+ errors?: {
1074
+ message: string;
1075
+ path?: string;
1076
+ }[];
1077
+ };
1078
+ };
1079
+ };
1080
+ };
1081
+ /** payload */
1082
+ requestBody: {
1083
+ content: {
1084
+ "application/json": {
1085
+ attributes: {
1086
+ [key: string]: unknown;
1087
+ };
1088
+ };
1089
+ };
1090
+ };
1091
+ };
989
1092
  }
990
1093
  export interface external {
991
1094
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [
@@ -15,8 +15,7 @@
15
15
  "typescript": "^7.0.2"
16
16
  },
17
17
  "scripts": {
18
- "build": "tsc --project ./tsconfig.build.json",
19
- "prebuild": "rimraf dist",
20
- "prepublishOnly": "yarn install && yarn build"
18
+ "build": "rimraf dist && tsc --project ./tsconfig.build.json",
19
+ "prepack": "yarn build"
21
20
  }
22
- }
21
+ }