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

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 +142 -0
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -40,6 +40,10 @@ export interface paths {
40
40
  get: operations["listCampaignConfigs"];
41
41
  put: operations["replaceCampaignConfigs"];
42
42
  };
43
+ "/api/lab/v2/admin/campaigns/{id}/uis": {
44
+ get: operations["listCampaignUis"];
45
+ put: operations["replaceCampaignUis"];
46
+ };
43
47
  "/api/lab/v2/admin/campaigns": {
44
48
  /** List scheduled campaigns for the admin overview */
45
49
  get: operations["listCampaigns"];
@@ -874,6 +878,144 @@ export interface operations {
874
878
  };
875
879
  };
876
880
  };
881
+ listCampaignUis: {
882
+ parameters: {
883
+ path: {
884
+ id: string;
885
+ };
886
+ header: {
887
+ /** Cookie */
888
+ Cookie: string;
889
+ };
890
+ };
891
+ responses: {
892
+ /** 200 response */
893
+ 200: {
894
+ content: {
895
+ "application/json": {
896
+ status: 200;
897
+ message: string;
898
+ result: {
899
+ id: number;
900
+ type: "header_banner" | "popup" | "snackbar";
901
+ enable: boolean;
902
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
903
+ match_mode: "include" | "exclude";
904
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
905
+ offer_ids: string[];
906
+ payload: {
907
+ [key: string]: unknown;
908
+ };
909
+ /** Format: date-time */
910
+ created_at: string;
911
+ /** Format: date-time */
912
+ updated_at: string;
913
+ }[];
914
+ };
915
+ };
916
+ };
917
+ /** 400 response */
918
+ 400: {
919
+ content: {
920
+ "application/json": {
921
+ status: 400;
922
+ message: string;
923
+ errors?: {
924
+ message: string;
925
+ path?: string;
926
+ }[];
927
+ };
928
+ };
929
+ };
930
+ /** 404 response */
931
+ 404: {
932
+ content: {
933
+ "application/json": {
934
+ status: 404;
935
+ message: string;
936
+ };
937
+ };
938
+ };
939
+ };
940
+ };
941
+ replaceCampaignUis: {
942
+ parameters: {
943
+ path: {
944
+ id: string;
945
+ };
946
+ header: {
947
+ /** Cookie */
948
+ Cookie: string;
949
+ };
950
+ };
951
+ responses: {
952
+ /** 200 response */
953
+ 200: {
954
+ content: {
955
+ "application/json": {
956
+ status: 200;
957
+ message: string;
958
+ result: {
959
+ id: number;
960
+ type: "header_banner" | "popup" | "snackbar";
961
+ enable: boolean;
962
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
963
+ match_mode: "include" | "exclude";
964
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
965
+ offer_ids: string[];
966
+ payload: {
967
+ [key: string]: unknown;
968
+ };
969
+ /** Format: date-time */
970
+ created_at: string;
971
+ /** Format: date-time */
972
+ updated_at: string;
973
+ }[];
974
+ };
975
+ };
976
+ };
977
+ /** 400 response */
978
+ 400: {
979
+ content: {
980
+ "application/json": {
981
+ status: 400;
982
+ message: string;
983
+ errors?: {
984
+ message: string;
985
+ path?: string;
986
+ }[];
987
+ };
988
+ };
989
+ };
990
+ /** 404 response */
991
+ 404: {
992
+ content: {
993
+ "application/json": {
994
+ status: 404;
995
+ message: string;
996
+ };
997
+ };
998
+ };
999
+ };
1000
+ /** payload */
1001
+ requestBody: {
1002
+ content: {
1003
+ "application/json": {
1004
+ uis: {
1005
+ type: "header_banner" | "popup" | "snackbar";
1006
+ enable: boolean;
1007
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1008
+ match_mode: "include" | "exclude";
1009
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1010
+ offer_ids: string[];
1011
+ payload: {
1012
+ [key: string]: unknown;
1013
+ };
1014
+ }[];
1015
+ };
1016
+ };
1017
+ };
1018
+ };
877
1019
  /** List scheduled campaigns for the admin overview */
878
1020
  listCampaigns: {
879
1021
  parameters: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [