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

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 +60 -0
  2. package/package.json +1 -1
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: {};
@@ -986,6 +989,63 @@ export interface operations {
986
989
  };
987
990
  };
988
991
  };
992
+ evaluateExperiments: {
993
+ parameters: {};
994
+ responses: {
995
+ /** 200 response */
996
+ 200: {
997
+ content: {
998
+ "application/json": {
999
+ status: 200;
1000
+ message: string;
1001
+ result: {
1002
+ configs: {
1003
+ name: string;
1004
+ payload: {
1005
+ [key: string]: unknown;
1006
+ };
1007
+ }[];
1008
+ uis: {
1009
+ id: number;
1010
+ experiment_id: number;
1011
+ type: "header_banner" | "popup" | "snackbar";
1012
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1013
+ match_mode: "include" | "exclude";
1014
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1015
+ offer_ids: string[];
1016
+ payload: {
1017
+ [key: string]: unknown;
1018
+ };
1019
+ }[];
1020
+ };
1021
+ };
1022
+ };
1023
+ };
1024
+ /** 400 response */
1025
+ 400: {
1026
+ content: {
1027
+ "application/json": {
1028
+ status: 400;
1029
+ message: string;
1030
+ errors?: {
1031
+ message: string;
1032
+ path?: string;
1033
+ }[];
1034
+ };
1035
+ };
1036
+ };
1037
+ };
1038
+ /** payload */
1039
+ requestBody: {
1040
+ content: {
1041
+ "application/json": {
1042
+ attributes: {
1043
+ [key: string]: unknown;
1044
+ };
1045
+ };
1046
+ };
1047
+ };
1048
+ };
989
1049
  }
990
1050
  export interface external {
991
1051
  }
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.10",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [