@luxuryescapes/contract-svc-lab-v2 0.1.22 → 0.1.24

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 +124 -276
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -36,13 +36,10 @@ export interface paths {
36
36
  put: operations["updateCampaign"];
37
37
  delete: operations["deleteCampaign"];
38
38
  };
39
- "/api/lab/v2/admin/campaigns/{id}/configs": {
40
- get: operations["listCampaignConfigs"];
41
- put: operations["replaceCampaignConfigs"];
42
- };
43
- "/api/lab/v2/admin/campaigns/{id}/uis": {
44
- get: operations["listCampaignUis"];
45
- put: operations["replaceCampaignUis"];
39
+ "/api/lab/v2/admin/campaigns/{id}/items": {
40
+ get: operations["listCampaignItems"];
41
+ /** Items are matched by config name or UI type: matched items are edited in place and keep their id, new ones are created, omitted ones are deleted. */
42
+ put: operations["replaceCampaignItems"];
46
43
  };
47
44
  "/api/lab/v2/admin/campaigns": {
48
45
  /** List scheduled campaigns for the admin overview */
@@ -130,10 +127,6 @@ export interface operations {
130
127
  /** Filter term to filter results */
131
128
  filter?: string;
132
129
  };
133
- header: {
134
- /** Cookie */
135
- Cookie: string;
136
- };
137
130
  };
138
131
  responses: {
139
132
  /** 200 response */
@@ -179,12 +172,7 @@ export interface operations {
179
172
  };
180
173
  /** Create an empty audience */
181
174
  createAudience: {
182
- parameters: {
183
- header: {
184
- /** Cookie */
185
- Cookie: string;
186
- };
187
- };
175
+ parameters: {};
188
176
  responses: {
189
177
  /** 201 response */
190
178
  201: {
@@ -235,10 +223,6 @@ export interface operations {
235
223
  path: {
236
224
  id: number;
237
225
  };
238
- header: {
239
- /** Cookie */
240
- Cookie: string;
241
- };
242
226
  };
243
227
  responses: {
244
228
  /** 200 response */
@@ -277,10 +261,6 @@ export interface operations {
277
261
  path: {
278
262
  id: number;
279
263
  };
280
- header: {
281
- /** Cookie */
282
- Cookie: string;
283
- };
284
264
  };
285
265
  responses: {
286
266
  /** 204 response */
@@ -321,10 +301,6 @@ export interface operations {
321
301
  path: {
322
302
  id: number;
323
303
  };
324
- header: {
325
- /** Cookie */
326
- Cookie: string;
327
- };
328
304
  };
329
305
  responses: {
330
306
  /** 200 response */
@@ -385,10 +361,6 @@ export interface operations {
385
361
  path: {
386
362
  id: number;
387
363
  };
388
- header: {
389
- /** Cookie */
390
- Cookie: string;
391
- };
392
364
  };
393
365
  responses: {
394
366
  /** 200 response */
@@ -438,10 +410,6 @@ export interface operations {
438
410
  limit?: number;
439
411
  cursor?: string;
440
412
  };
441
- header: {
442
- /** Cookie */
443
- Cookie: string;
444
- };
445
413
  };
446
414
  responses: {
447
415
  /** 200 response */
@@ -493,10 +461,6 @@ export interface operations {
493
461
  path: {
494
462
  id: number;
495
463
  };
496
- header: {
497
- /** Cookie */
498
- Cookie: string;
499
- };
500
464
  };
501
465
  responses: {
502
466
  /** 200 response */
@@ -560,10 +524,6 @@ export interface operations {
560
524
  path: {
561
525
  id: number;
562
526
  };
563
- header: {
564
- /** Cookie */
565
- Cookie: string;
566
- };
567
527
  };
568
528
  responses: {
569
529
  /** 200 response */
@@ -601,10 +561,6 @@ export interface operations {
601
561
  path: {
602
562
  id: string;
603
563
  };
604
- header: {
605
- /** Cookie */
606
- Cookie: string;
607
- };
608
564
  };
609
565
  responses: {
610
566
  /** 200 response */
@@ -671,10 +627,6 @@ export interface operations {
671
627
  path: {
672
628
  id: string;
673
629
  };
674
- header: {
675
- /** Cookie */
676
- Cookie: string;
677
- };
678
630
  };
679
631
  responses: {
680
632
  /** 200 response */
@@ -765,10 +717,6 @@ export interface operations {
765
717
  path: {
766
718
  id: string;
767
719
  };
768
- header: {
769
- /** Cookie */
770
- Cookie: string;
771
- };
772
720
  };
773
721
  responses: {
774
722
  /** 200 response */
@@ -807,15 +755,11 @@ export interface operations {
807
755
  };
808
756
  };
809
757
  };
810
- listCampaignConfigs: {
758
+ listCampaignItems: {
811
759
  parameters: {
812
760
  path: {
813
761
  id: string;
814
762
  };
815
- header: {
816
- /** Cookie */
817
- Cookie: string;
818
- };
819
763
  };
820
764
  responses: {
821
765
  /** 200 response */
@@ -825,17 +769,63 @@ export interface operations {
825
769
  status: 200;
826
770
  message: string;
827
771
  result: {
828
- id: number;
829
- name: string;
830
- enable: boolean;
831
- payload: {
832
- [key: string]: unknown;
833
- };
834
- /** Format: date-time */
835
- created_at: string;
836
- /** Format: date-time */
837
- updated_at: string;
838
- }[];
772
+ configs: {
773
+ /** Format: uuid */
774
+ id: string;
775
+ name: string;
776
+ enable: boolean;
777
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
778
+ payload: {
779
+ [key: string]: unknown;
780
+ };
781
+ /** Format: date-time */
782
+ created_at: string;
783
+ /** Format: date-time */
784
+ updated_at: string;
785
+ }[];
786
+ uis: ({
787
+ type: "header_banner";
788
+ /** Format: uuid */
789
+ id: string;
790
+ enable: boolean;
791
+ match_mode: "include" | "exclude";
792
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
793
+ offer_ids: string[];
794
+ /** Format: date-time */
795
+ created_at: string;
796
+ /** Format: date-time */
797
+ updated_at: string;
798
+ payload: components["schemas"]["HeaderBannerPayload"];
799
+ } | {
800
+ type: "popup";
801
+ /** Format: uuid */
802
+ id: string;
803
+ enable: boolean;
804
+ match_mode: "include" | "exclude";
805
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
806
+ offer_ids: string[];
807
+ /** Format: date-time */
808
+ created_at: string;
809
+ /** Format: date-time */
810
+ updated_at: string;
811
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
812
+ payload: components["schemas"]["PopupPayload"];
813
+ } | {
814
+ type: "snackbar";
815
+ /** Format: uuid */
816
+ id: string;
817
+ enable: boolean;
818
+ match_mode: "include" | "exclude";
819
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
820
+ offer_ids: string[];
821
+ /** Format: date-time */
822
+ created_at: string;
823
+ /** Format: date-time */
824
+ updated_at: string;
825
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
826
+ payload: components["schemas"]["SnackbarPayload"];
827
+ })[];
828
+ };
839
829
  };
840
830
  };
841
831
  };
@@ -863,15 +853,12 @@ export interface operations {
863
853
  };
864
854
  };
865
855
  };
866
- replaceCampaignConfigs: {
856
+ /** Items are matched by config name or UI type: matched items are edited in place and keep their id, new ones are created, omitted ones are deleted. */
857
+ replaceCampaignItems: {
867
858
  parameters: {
868
859
  path: {
869
860
  id: string;
870
861
  };
871
- header: {
872
- /** Cookie */
873
- Cookie: string;
874
- };
875
862
  };
876
863
  responses: {
877
864
  /** 200 response */
@@ -881,17 +868,63 @@ export interface operations {
881
868
  status: 200;
882
869
  message: string;
883
870
  result: {
884
- id: number;
885
- name: string;
886
- enable: boolean;
887
- payload: {
888
- [key: string]: unknown;
889
- };
890
- /** Format: date-time */
891
- created_at: string;
892
- /** Format: date-time */
893
- updated_at: string;
894
- }[];
871
+ configs: {
872
+ /** Format: uuid */
873
+ id: string;
874
+ name: string;
875
+ enable: boolean;
876
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
877
+ payload: {
878
+ [key: string]: unknown;
879
+ };
880
+ /** Format: date-time */
881
+ created_at: string;
882
+ /** Format: date-time */
883
+ updated_at: string;
884
+ }[];
885
+ uis: ({
886
+ type: "header_banner";
887
+ /** Format: uuid */
888
+ id: string;
889
+ enable: boolean;
890
+ match_mode: "include" | "exclude";
891
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
892
+ offer_ids: string[];
893
+ /** Format: date-time */
894
+ created_at: string;
895
+ /** Format: date-time */
896
+ updated_at: string;
897
+ payload: components["schemas"]["HeaderBannerPayload"];
898
+ } | {
899
+ type: "popup";
900
+ /** Format: uuid */
901
+ id: string;
902
+ enable: boolean;
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
+ /** Format: date-time */
907
+ created_at: string;
908
+ /** Format: date-time */
909
+ updated_at: string;
910
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
911
+ payload: components["schemas"]["PopupPayload"];
912
+ } | {
913
+ type: "snackbar";
914
+ /** Format: uuid */
915
+ id: string;
916
+ enable: boolean;
917
+ match_mode: "include" | "exclude";
918
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
919
+ offer_ids: string[];
920
+ /** Format: date-time */
921
+ created_at: string;
922
+ /** Format: date-time */
923
+ updated_at: string;
924
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
925
+ payload: components["schemas"]["SnackbarPayload"];
926
+ })[];
927
+ };
895
928
  };
896
929
  };
897
930
  };
@@ -925,183 +958,11 @@ export interface operations {
925
958
  configs: {
926
959
  name: string;
927
960
  enable: boolean;
961
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
928
962
  payload: {
929
963
  [key: string]: unknown;
930
964
  };
931
965
  }[];
932
- };
933
- };
934
- };
935
- };
936
- listCampaignUis: {
937
- parameters: {
938
- path: {
939
- id: string;
940
- };
941
- header: {
942
- /** Cookie */
943
- Cookie: string;
944
- };
945
- };
946
- responses: {
947
- /** 200 response */
948
- 200: {
949
- content: {
950
- "application/json": {
951
- status: 200;
952
- message: string;
953
- result: ({
954
- type: "header_banner";
955
- id: number;
956
- enable: boolean;
957
- match_mode: "include" | "exclude";
958
- trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
959
- offer_ids: string[];
960
- /** Format: date-time */
961
- created_at: string;
962
- /** Format: date-time */
963
- updated_at: string;
964
- payload: components["schemas"]["HeaderBannerPayload"];
965
- } | {
966
- type: "popup";
967
- id: number;
968
- enable: boolean;
969
- match_mode: "include" | "exclude";
970
- trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
971
- offer_ids: string[];
972
- /** Format: date-time */
973
- created_at: string;
974
- /** Format: date-time */
975
- updated_at: string;
976
- display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
977
- payload: components["schemas"]["PopupPayload"];
978
- } | {
979
- type: "snackbar";
980
- id: number;
981
- enable: boolean;
982
- match_mode: "include" | "exclude";
983
- trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
984
- offer_ids: string[];
985
- /** Format: date-time */
986
- created_at: string;
987
- /** Format: date-time */
988
- updated_at: string;
989
- display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
990
- payload: components["schemas"]["SnackbarPayload"];
991
- })[];
992
- };
993
- };
994
- };
995
- /** 400 response */
996
- 400: {
997
- content: {
998
- "application/json": {
999
- status: 400;
1000
- message: string;
1001
- errors?: {
1002
- message: string;
1003
- path?: string;
1004
- }[];
1005
- };
1006
- };
1007
- };
1008
- /** 404 response */
1009
- 404: {
1010
- content: {
1011
- "application/json": {
1012
- status: 404;
1013
- message: string;
1014
- };
1015
- };
1016
- };
1017
- };
1018
- };
1019
- replaceCampaignUis: {
1020
- parameters: {
1021
- path: {
1022
- id: string;
1023
- };
1024
- header: {
1025
- /** Cookie */
1026
- Cookie: string;
1027
- };
1028
- };
1029
- responses: {
1030
- /** 200 response */
1031
- 200: {
1032
- content: {
1033
- "application/json": {
1034
- status: 200;
1035
- message: string;
1036
- result: ({
1037
- type: "header_banner";
1038
- id: number;
1039
- enable: boolean;
1040
- match_mode: "include" | "exclude";
1041
- trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1042
- offer_ids: string[];
1043
- /** Format: date-time */
1044
- created_at: string;
1045
- /** Format: date-time */
1046
- updated_at: string;
1047
- payload: components["schemas"]["HeaderBannerPayload"];
1048
- } | {
1049
- type: "popup";
1050
- id: number;
1051
- enable: boolean;
1052
- match_mode: "include" | "exclude";
1053
- trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1054
- offer_ids: string[];
1055
- /** Format: date-time */
1056
- created_at: string;
1057
- /** Format: date-time */
1058
- updated_at: string;
1059
- display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1060
- payload: components["schemas"]["PopupPayload"];
1061
- } | {
1062
- type: "snackbar";
1063
- id: number;
1064
- enable: boolean;
1065
- match_mode: "include" | "exclude";
1066
- trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1067
- offer_ids: string[];
1068
- /** Format: date-time */
1069
- created_at: string;
1070
- /** Format: date-time */
1071
- updated_at: string;
1072
- display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1073
- payload: components["schemas"]["SnackbarPayload"];
1074
- })[];
1075
- };
1076
- };
1077
- };
1078
- /** 400 response */
1079
- 400: {
1080
- content: {
1081
- "application/json": {
1082
- status: 400;
1083
- message: string;
1084
- errors?: {
1085
- message: string;
1086
- path?: string;
1087
- }[];
1088
- };
1089
- };
1090
- };
1091
- /** 404 response */
1092
- 404: {
1093
- content: {
1094
- "application/json": {
1095
- status: 404;
1096
- message: string;
1097
- };
1098
- };
1099
- };
1100
- };
1101
- /** payload */
1102
- requestBody: {
1103
- content: {
1104
- "application/json": {
1105
966
  uis: ({
1106
967
  type: "header_banner";
1107
968
  enable: boolean;
@@ -1145,10 +1006,6 @@ export interface operations {
1145
1006
  /** Filter term to filter results */
1146
1007
  filter?: string;
1147
1008
  };
1148
- header: {
1149
- /** Cookie */
1150
- Cookie: string;
1151
- };
1152
1009
  };
1153
1010
  responses: {
1154
1011
  /** 200 response */
@@ -1210,12 +1067,7 @@ export interface operations {
1210
1067
  };
1211
1068
  /** Create an empty scheduled campaign with an optional draft schedule */
1212
1069
  createCampaign: {
1213
- parameters: {
1214
- header: {
1215
- /** Cookie */
1216
- Cookie: string;
1217
- };
1218
- };
1070
+ parameters: {};
1219
1071
  responses: {
1220
1072
  /** 201 response */
1221
1073
  201: {
@@ -1292,10 +1144,6 @@ export interface operations {
1292
1144
  path: {
1293
1145
  id: number;
1294
1146
  };
1295
- header: {
1296
- /** Cookie */
1297
- Cookie: string;
1298
- };
1299
1147
  };
1300
1148
  responses: {
1301
1149
  /** 200 response */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [