@ampsec/platform-client 81.7.0 → 81.8.1
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/build/src/dto/flows.dto.d.ts +781 -110
- package/build/src/dto/flows.dto.js +13 -6
- package/build/src/dto/flows.dto.js.map +1 -1
- package/build/src/dto/platform/platform.flows.dto.d.ts +432 -36
- package/build/src/services/engagements.service.d.ts +3 -0
- package/build/src/services/engagements.service.js +1 -0
- package/build/src/services/engagements.service.js.map +1 -1
- package/build/src/services/settings.service.js +3 -1
- package/build/src/services/settings.service.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/flows.dto.ts +14 -5
- package/src/services/engagements.service.ts +1 -0
- package/src/services/settings.service.ts +3 -1
|
@@ -405,6 +405,43 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
405
405
|
units?: string | undefined;
|
|
406
406
|
}>;
|
|
407
407
|
engagementChannelConnectorIds: z.ZodArray<z.ZodString, "many">;
|
|
408
|
+
redirection: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
409
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL>;
|
|
410
|
+
channelId: z.ZodString;
|
|
411
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
412
|
+
}, "strip", z.ZodTypeAny, {
|
|
413
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
414
|
+
channelId: string;
|
|
415
|
+
includeUser: boolean;
|
|
416
|
+
}, {
|
|
417
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
418
|
+
channelId: string;
|
|
419
|
+
includeUser?: boolean | undefined;
|
|
420
|
+
}>, z.ZodObject<{
|
|
421
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL>;
|
|
422
|
+
channelId: z.ZodString;
|
|
423
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
426
|
+
channelId: string;
|
|
427
|
+
includeUser: boolean;
|
|
428
|
+
}, {
|
|
429
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
430
|
+
channelId: string;
|
|
431
|
+
includeUser?: boolean | undefined;
|
|
432
|
+
}>, z.ZodObject<{
|
|
433
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL>;
|
|
434
|
+
channelId: z.ZodString;
|
|
435
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
436
|
+
}, "strip", z.ZodTypeAny, {
|
|
437
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
438
|
+
channelId: string;
|
|
439
|
+
includeUser: boolean;
|
|
440
|
+
}, {
|
|
441
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
442
|
+
channelId: string;
|
|
443
|
+
includeUser?: boolean | undefined;
|
|
444
|
+
}>]>>;
|
|
408
445
|
}, "strip", z.ZodTypeAny, {
|
|
409
446
|
interval: {
|
|
410
447
|
minutes: number;
|
|
@@ -412,6 +449,19 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
412
449
|
units?: string | undefined;
|
|
413
450
|
};
|
|
414
451
|
engagementChannelConnectorIds: string[];
|
|
452
|
+
redirection?: {
|
|
453
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
454
|
+
channelId: string;
|
|
455
|
+
includeUser: boolean;
|
|
456
|
+
} | {
|
|
457
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
458
|
+
channelId: string;
|
|
459
|
+
includeUser: boolean;
|
|
460
|
+
} | {
|
|
461
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
462
|
+
channelId: string;
|
|
463
|
+
includeUser: boolean;
|
|
464
|
+
} | undefined;
|
|
415
465
|
}, {
|
|
416
466
|
interval: {
|
|
417
467
|
minutes: number;
|
|
@@ -419,6 +469,19 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
419
469
|
units?: string | undefined;
|
|
420
470
|
};
|
|
421
471
|
engagementChannelConnectorIds: string[];
|
|
472
|
+
redirection?: {
|
|
473
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
474
|
+
channelId: string;
|
|
475
|
+
includeUser?: boolean | undefined;
|
|
476
|
+
} | {
|
|
477
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
478
|
+
channelId: string;
|
|
479
|
+
includeUser?: boolean | undefined;
|
|
480
|
+
} | {
|
|
481
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
482
|
+
channelId: string;
|
|
483
|
+
includeUser?: boolean | undefined;
|
|
484
|
+
} | undefined;
|
|
422
485
|
}>>;
|
|
423
486
|
escalationToManager: z.ZodOptional<z.ZodObject<{
|
|
424
487
|
interval: z.ZodObject<{
|
|
@@ -435,6 +498,43 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
435
498
|
units?: string | undefined;
|
|
436
499
|
}>;
|
|
437
500
|
engagementChannelConnectorIds: z.ZodArray<z.ZodString, "many">;
|
|
501
|
+
redirection: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
502
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL>;
|
|
503
|
+
channelId: z.ZodString;
|
|
504
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
505
|
+
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
507
|
+
channelId: string;
|
|
508
|
+
includeUser: boolean;
|
|
509
|
+
}, {
|
|
510
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
511
|
+
channelId: string;
|
|
512
|
+
includeUser?: boolean | undefined;
|
|
513
|
+
}>, z.ZodObject<{
|
|
514
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL>;
|
|
515
|
+
channelId: z.ZodString;
|
|
516
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
517
|
+
}, "strip", z.ZodTypeAny, {
|
|
518
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
519
|
+
channelId: string;
|
|
520
|
+
includeUser: boolean;
|
|
521
|
+
}, {
|
|
522
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
523
|
+
channelId: string;
|
|
524
|
+
includeUser?: boolean | undefined;
|
|
525
|
+
}>, z.ZodObject<{
|
|
526
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL>;
|
|
527
|
+
channelId: z.ZodString;
|
|
528
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
529
|
+
}, "strip", z.ZodTypeAny, {
|
|
530
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
531
|
+
channelId: string;
|
|
532
|
+
includeUser: boolean;
|
|
533
|
+
}, {
|
|
534
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
535
|
+
channelId: string;
|
|
536
|
+
includeUser?: boolean | undefined;
|
|
537
|
+
}>]>>;
|
|
438
538
|
}, "strip", z.ZodTypeAny, {
|
|
439
539
|
interval: {
|
|
440
540
|
minutes: number;
|
|
@@ -442,6 +542,19 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
442
542
|
units?: string | undefined;
|
|
443
543
|
};
|
|
444
544
|
engagementChannelConnectorIds: string[];
|
|
545
|
+
redirection?: {
|
|
546
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
547
|
+
channelId: string;
|
|
548
|
+
includeUser: boolean;
|
|
549
|
+
} | {
|
|
550
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
551
|
+
channelId: string;
|
|
552
|
+
includeUser: boolean;
|
|
553
|
+
} | {
|
|
554
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
555
|
+
channelId: string;
|
|
556
|
+
includeUser: boolean;
|
|
557
|
+
} | undefined;
|
|
445
558
|
}, {
|
|
446
559
|
interval: {
|
|
447
560
|
minutes: number;
|
|
@@ -449,6 +562,19 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
449
562
|
units?: string | undefined;
|
|
450
563
|
};
|
|
451
564
|
engagementChannelConnectorIds: string[];
|
|
565
|
+
redirection?: {
|
|
566
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
567
|
+
channelId: string;
|
|
568
|
+
includeUser?: boolean | undefined;
|
|
569
|
+
} | {
|
|
570
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
571
|
+
channelId: string;
|
|
572
|
+
includeUser?: boolean | undefined;
|
|
573
|
+
} | {
|
|
574
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
575
|
+
channelId: string;
|
|
576
|
+
includeUser?: boolean | undefined;
|
|
577
|
+
} | undefined;
|
|
452
578
|
}>>;
|
|
453
579
|
redirection: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
454
580
|
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL>;
|
|
@@ -474,6 +600,18 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
474
600
|
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
475
601
|
channelId: string;
|
|
476
602
|
includeUser?: boolean | undefined;
|
|
603
|
+
}>, z.ZodObject<{
|
|
604
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL>;
|
|
605
|
+
channelId: z.ZodString;
|
|
606
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
607
|
+
}, "strip", z.ZodTypeAny, {
|
|
608
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
609
|
+
channelId: string;
|
|
610
|
+
includeUser: boolean;
|
|
611
|
+
}, {
|
|
612
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
613
|
+
channelId: string;
|
|
614
|
+
includeUser?: boolean | undefined;
|
|
477
615
|
}>]>>;
|
|
478
616
|
rewards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
479
617
|
isUpperBound: z.ZodBoolean;
|
|
@@ -618,6 +756,19 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
618
756
|
actionLabel: string;
|
|
619
757
|
}[] | undefined;
|
|
620
758
|
} | undefined;
|
|
759
|
+
redirection?: {
|
|
760
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
761
|
+
channelId: string;
|
|
762
|
+
includeUser: boolean;
|
|
763
|
+
} | {
|
|
764
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
765
|
+
channelId: string;
|
|
766
|
+
includeUser: boolean;
|
|
767
|
+
} | {
|
|
768
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
769
|
+
channelId: string;
|
|
770
|
+
includeUser: boolean;
|
|
771
|
+
} | undefined;
|
|
621
772
|
tone?: {
|
|
622
773
|
kind?: string | undefined;
|
|
623
774
|
} | undefined;
|
|
@@ -660,6 +811,19 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
660
811
|
units?: string | undefined;
|
|
661
812
|
};
|
|
662
813
|
engagementChannelConnectorIds: string[];
|
|
814
|
+
redirection?: {
|
|
815
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
816
|
+
channelId: string;
|
|
817
|
+
includeUser: boolean;
|
|
818
|
+
} | {
|
|
819
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
820
|
+
channelId: string;
|
|
821
|
+
includeUser: boolean;
|
|
822
|
+
} | {
|
|
823
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
824
|
+
channelId: string;
|
|
825
|
+
includeUser: boolean;
|
|
826
|
+
} | undefined;
|
|
663
827
|
} | undefined;
|
|
664
828
|
escalationToManager?: {
|
|
665
829
|
interval: {
|
|
@@ -668,15 +832,19 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
668
832
|
units?: string | undefined;
|
|
669
833
|
};
|
|
670
834
|
engagementChannelConnectorIds: string[];
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
835
|
+
redirection?: {
|
|
836
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
837
|
+
channelId: string;
|
|
838
|
+
includeUser: boolean;
|
|
839
|
+
} | {
|
|
840
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
841
|
+
channelId: string;
|
|
842
|
+
includeUser: boolean;
|
|
843
|
+
} | {
|
|
844
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
845
|
+
channelId: string;
|
|
846
|
+
includeUser: boolean;
|
|
847
|
+
} | undefined;
|
|
680
848
|
} | undefined;
|
|
681
849
|
rewards?: {
|
|
682
850
|
minutes: number;
|
|
@@ -767,6 +935,19 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
767
935
|
actionLabel: string;
|
|
768
936
|
}[] | undefined;
|
|
769
937
|
} | undefined;
|
|
938
|
+
redirection?: {
|
|
939
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
940
|
+
channelId: string;
|
|
941
|
+
includeUser?: boolean | undefined;
|
|
942
|
+
} | {
|
|
943
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
944
|
+
channelId: string;
|
|
945
|
+
includeUser?: boolean | undefined;
|
|
946
|
+
} | {
|
|
947
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
948
|
+
channelId: string;
|
|
949
|
+
includeUser?: boolean | undefined;
|
|
950
|
+
} | undefined;
|
|
770
951
|
fslStrategy?: "STANDARD" | undefined;
|
|
771
952
|
tone?: {
|
|
772
953
|
kind?: string | undefined;
|
|
@@ -810,6 +991,19 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
810
991
|
units?: string | undefined;
|
|
811
992
|
};
|
|
812
993
|
engagementChannelConnectorIds: string[];
|
|
994
|
+
redirection?: {
|
|
995
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
996
|
+
channelId: string;
|
|
997
|
+
includeUser?: boolean | undefined;
|
|
998
|
+
} | {
|
|
999
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1000
|
+
channelId: string;
|
|
1001
|
+
includeUser?: boolean | undefined;
|
|
1002
|
+
} | {
|
|
1003
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1004
|
+
channelId: string;
|
|
1005
|
+
includeUser?: boolean | undefined;
|
|
1006
|
+
} | undefined;
|
|
813
1007
|
} | undefined;
|
|
814
1008
|
escalationToManager?: {
|
|
815
1009
|
interval: {
|
|
@@ -818,15 +1012,19 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
818
1012
|
units?: string | undefined;
|
|
819
1013
|
};
|
|
820
1014
|
engagementChannelConnectorIds: string[];
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
1015
|
+
redirection?: {
|
|
1016
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1017
|
+
channelId: string;
|
|
1018
|
+
includeUser?: boolean | undefined;
|
|
1019
|
+
} | {
|
|
1020
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1021
|
+
channelId: string;
|
|
1022
|
+
includeUser?: boolean | undefined;
|
|
1023
|
+
} | {
|
|
1024
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1025
|
+
channelId: string;
|
|
1026
|
+
includeUser?: boolean | undefined;
|
|
1027
|
+
} | undefined;
|
|
830
1028
|
} | undefined;
|
|
831
1029
|
rewards?: {
|
|
832
1030
|
minutes: number;
|
|
@@ -1252,6 +1450,43 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1252
1450
|
units?: string | undefined;
|
|
1253
1451
|
}>;
|
|
1254
1452
|
engagementChannelConnectorIds: z.ZodArray<z.ZodString, "many">;
|
|
1453
|
+
redirection: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1454
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL>;
|
|
1455
|
+
channelId: z.ZodString;
|
|
1456
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
1457
|
+
}, "strip", z.ZodTypeAny, {
|
|
1458
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1459
|
+
channelId: string;
|
|
1460
|
+
includeUser: boolean;
|
|
1461
|
+
}, {
|
|
1462
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1463
|
+
channelId: string;
|
|
1464
|
+
includeUser?: boolean | undefined;
|
|
1465
|
+
}>, z.ZodObject<{
|
|
1466
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL>;
|
|
1467
|
+
channelId: z.ZodString;
|
|
1468
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
1469
|
+
}, "strip", z.ZodTypeAny, {
|
|
1470
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1471
|
+
channelId: string;
|
|
1472
|
+
includeUser: boolean;
|
|
1473
|
+
}, {
|
|
1474
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1475
|
+
channelId: string;
|
|
1476
|
+
includeUser?: boolean | undefined;
|
|
1477
|
+
}>, z.ZodObject<{
|
|
1478
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL>;
|
|
1479
|
+
channelId: z.ZodString;
|
|
1480
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
1481
|
+
}, "strip", z.ZodTypeAny, {
|
|
1482
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1483
|
+
channelId: string;
|
|
1484
|
+
includeUser: boolean;
|
|
1485
|
+
}, {
|
|
1486
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1487
|
+
channelId: string;
|
|
1488
|
+
includeUser?: boolean | undefined;
|
|
1489
|
+
}>]>>;
|
|
1255
1490
|
}, "strip", z.ZodTypeAny, {
|
|
1256
1491
|
interval: {
|
|
1257
1492
|
minutes: number;
|
|
@@ -1259,6 +1494,19 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1259
1494
|
units?: string | undefined;
|
|
1260
1495
|
};
|
|
1261
1496
|
engagementChannelConnectorIds: string[];
|
|
1497
|
+
redirection?: {
|
|
1498
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1499
|
+
channelId: string;
|
|
1500
|
+
includeUser: boolean;
|
|
1501
|
+
} | {
|
|
1502
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1503
|
+
channelId: string;
|
|
1504
|
+
includeUser: boolean;
|
|
1505
|
+
} | {
|
|
1506
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1507
|
+
channelId: string;
|
|
1508
|
+
includeUser: boolean;
|
|
1509
|
+
} | undefined;
|
|
1262
1510
|
}, {
|
|
1263
1511
|
interval: {
|
|
1264
1512
|
minutes: number;
|
|
@@ -1266,6 +1514,19 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1266
1514
|
units?: string | undefined;
|
|
1267
1515
|
};
|
|
1268
1516
|
engagementChannelConnectorIds: string[];
|
|
1517
|
+
redirection?: {
|
|
1518
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1519
|
+
channelId: string;
|
|
1520
|
+
includeUser?: boolean | undefined;
|
|
1521
|
+
} | {
|
|
1522
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1523
|
+
channelId: string;
|
|
1524
|
+
includeUser?: boolean | undefined;
|
|
1525
|
+
} | {
|
|
1526
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1527
|
+
channelId: string;
|
|
1528
|
+
includeUser?: boolean | undefined;
|
|
1529
|
+
} | undefined;
|
|
1269
1530
|
}>>;
|
|
1270
1531
|
escalationToManager: z.ZodOptional<z.ZodObject<{
|
|
1271
1532
|
interval: z.ZodObject<{
|
|
@@ -1282,6 +1543,43 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1282
1543
|
units?: string | undefined;
|
|
1283
1544
|
}>;
|
|
1284
1545
|
engagementChannelConnectorIds: z.ZodArray<z.ZodString, "many">;
|
|
1546
|
+
redirection: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1547
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL>;
|
|
1548
|
+
channelId: z.ZodString;
|
|
1549
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
1550
|
+
}, "strip", z.ZodTypeAny, {
|
|
1551
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1552
|
+
channelId: string;
|
|
1553
|
+
includeUser: boolean;
|
|
1554
|
+
}, {
|
|
1555
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1556
|
+
channelId: string;
|
|
1557
|
+
includeUser?: boolean | undefined;
|
|
1558
|
+
}>, z.ZodObject<{
|
|
1559
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL>;
|
|
1560
|
+
channelId: z.ZodString;
|
|
1561
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
1562
|
+
}, "strip", z.ZodTypeAny, {
|
|
1563
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1564
|
+
channelId: string;
|
|
1565
|
+
includeUser: boolean;
|
|
1566
|
+
}, {
|
|
1567
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1568
|
+
channelId: string;
|
|
1569
|
+
includeUser?: boolean | undefined;
|
|
1570
|
+
}>, z.ZodObject<{
|
|
1571
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL>;
|
|
1572
|
+
channelId: z.ZodString;
|
|
1573
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
1574
|
+
}, "strip", z.ZodTypeAny, {
|
|
1575
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1576
|
+
channelId: string;
|
|
1577
|
+
includeUser: boolean;
|
|
1578
|
+
}, {
|
|
1579
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1580
|
+
channelId: string;
|
|
1581
|
+
includeUser?: boolean | undefined;
|
|
1582
|
+
}>]>>;
|
|
1285
1583
|
}, "strip", z.ZodTypeAny, {
|
|
1286
1584
|
interval: {
|
|
1287
1585
|
minutes: number;
|
|
@@ -1289,6 +1587,19 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1289
1587
|
units?: string | undefined;
|
|
1290
1588
|
};
|
|
1291
1589
|
engagementChannelConnectorIds: string[];
|
|
1590
|
+
redirection?: {
|
|
1591
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1592
|
+
channelId: string;
|
|
1593
|
+
includeUser: boolean;
|
|
1594
|
+
} | {
|
|
1595
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1596
|
+
channelId: string;
|
|
1597
|
+
includeUser: boolean;
|
|
1598
|
+
} | {
|
|
1599
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1600
|
+
channelId: string;
|
|
1601
|
+
includeUser: boolean;
|
|
1602
|
+
} | undefined;
|
|
1292
1603
|
}, {
|
|
1293
1604
|
interval: {
|
|
1294
1605
|
minutes: number;
|
|
@@ -1296,6 +1607,19 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1296
1607
|
units?: string | undefined;
|
|
1297
1608
|
};
|
|
1298
1609
|
engagementChannelConnectorIds: string[];
|
|
1610
|
+
redirection?: {
|
|
1611
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1612
|
+
channelId: string;
|
|
1613
|
+
includeUser?: boolean | undefined;
|
|
1614
|
+
} | {
|
|
1615
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1616
|
+
channelId: string;
|
|
1617
|
+
includeUser?: boolean | undefined;
|
|
1618
|
+
} | {
|
|
1619
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1620
|
+
channelId: string;
|
|
1621
|
+
includeUser?: boolean | undefined;
|
|
1622
|
+
} | undefined;
|
|
1299
1623
|
}>>;
|
|
1300
1624
|
redirection: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1301
1625
|
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL>;
|
|
@@ -1321,6 +1645,18 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1321
1645
|
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1322
1646
|
channelId: string;
|
|
1323
1647
|
includeUser?: boolean | undefined;
|
|
1648
|
+
}>, z.ZodObject<{
|
|
1649
|
+
kind: z.ZodLiteral<import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL>;
|
|
1650
|
+
channelId: z.ZodString;
|
|
1651
|
+
includeUser: z.ZodDefault<z.ZodBoolean>;
|
|
1652
|
+
}, "strip", z.ZodTypeAny, {
|
|
1653
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1654
|
+
channelId: string;
|
|
1655
|
+
includeUser: boolean;
|
|
1656
|
+
}, {
|
|
1657
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1658
|
+
channelId: string;
|
|
1659
|
+
includeUser?: boolean | undefined;
|
|
1324
1660
|
}>]>>;
|
|
1325
1661
|
rewards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1326
1662
|
isUpperBound: z.ZodBoolean;
|
|
@@ -1460,6 +1796,19 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1460
1796
|
actionLabel: string;
|
|
1461
1797
|
}[] | undefined;
|
|
1462
1798
|
} | undefined;
|
|
1799
|
+
redirection?: {
|
|
1800
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1801
|
+
channelId: string;
|
|
1802
|
+
includeUser: boolean;
|
|
1803
|
+
} | {
|
|
1804
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1805
|
+
channelId: string;
|
|
1806
|
+
includeUser: boolean;
|
|
1807
|
+
} | {
|
|
1808
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1809
|
+
channelId: string;
|
|
1810
|
+
includeUser: boolean;
|
|
1811
|
+
} | undefined;
|
|
1463
1812
|
tone?: {
|
|
1464
1813
|
kind?: string | undefined;
|
|
1465
1814
|
} | undefined;
|
|
@@ -1502,6 +1851,19 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1502
1851
|
units?: string | undefined;
|
|
1503
1852
|
};
|
|
1504
1853
|
engagementChannelConnectorIds: string[];
|
|
1854
|
+
redirection?: {
|
|
1855
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1856
|
+
channelId: string;
|
|
1857
|
+
includeUser: boolean;
|
|
1858
|
+
} | {
|
|
1859
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1860
|
+
channelId: string;
|
|
1861
|
+
includeUser: boolean;
|
|
1862
|
+
} | {
|
|
1863
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1864
|
+
channelId: string;
|
|
1865
|
+
includeUser: boolean;
|
|
1866
|
+
} | undefined;
|
|
1505
1867
|
} | undefined;
|
|
1506
1868
|
escalationToManager?: {
|
|
1507
1869
|
interval: {
|
|
@@ -1510,15 +1872,19 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1510
1872
|
units?: string | undefined;
|
|
1511
1873
|
};
|
|
1512
1874
|
engagementChannelConnectorIds: string[];
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1875
|
+
redirection?: {
|
|
1876
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1877
|
+
channelId: string;
|
|
1878
|
+
includeUser: boolean;
|
|
1879
|
+
} | {
|
|
1880
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1881
|
+
channelId: string;
|
|
1882
|
+
includeUser: boolean;
|
|
1883
|
+
} | {
|
|
1884
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1885
|
+
channelId: string;
|
|
1886
|
+
includeUser: boolean;
|
|
1887
|
+
} | undefined;
|
|
1522
1888
|
} | undefined;
|
|
1523
1889
|
rewards?: {
|
|
1524
1890
|
minutes: number;
|
|
@@ -1617,6 +1983,19 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1617
1983
|
actionLabel: string;
|
|
1618
1984
|
}[] | undefined;
|
|
1619
1985
|
} | undefined;
|
|
1986
|
+
redirection?: {
|
|
1987
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
1988
|
+
channelId: string;
|
|
1989
|
+
includeUser?: boolean | undefined;
|
|
1990
|
+
} | {
|
|
1991
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
1992
|
+
channelId: string;
|
|
1993
|
+
includeUser?: boolean | undefined;
|
|
1994
|
+
} | {
|
|
1995
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
1996
|
+
channelId: string;
|
|
1997
|
+
includeUser?: boolean | undefined;
|
|
1998
|
+
} | undefined;
|
|
1620
1999
|
fslStrategy?: "STANDARD" | undefined;
|
|
1621
2000
|
tone?: {
|
|
1622
2001
|
kind?: string | undefined;
|
|
@@ -1660,6 +2039,19 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1660
2039
|
units?: string | undefined;
|
|
1661
2040
|
};
|
|
1662
2041
|
engagementChannelConnectorIds: string[];
|
|
2042
|
+
redirection?: {
|
|
2043
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
2044
|
+
channelId: string;
|
|
2045
|
+
includeUser?: boolean | undefined;
|
|
2046
|
+
} | {
|
|
2047
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
2048
|
+
channelId: string;
|
|
2049
|
+
includeUser?: boolean | undefined;
|
|
2050
|
+
} | {
|
|
2051
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
2052
|
+
channelId: string;
|
|
2053
|
+
includeUser?: boolean | undefined;
|
|
2054
|
+
} | undefined;
|
|
1663
2055
|
} | undefined;
|
|
1664
2056
|
escalationToManager?: {
|
|
1665
2057
|
interval: {
|
|
@@ -1668,15 +2060,19 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1668
2060
|
units?: string | undefined;
|
|
1669
2061
|
};
|
|
1670
2062
|
engagementChannelConnectorIds: string[];
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
2063
|
+
redirection?: {
|
|
2064
|
+
kind: import("../flows.dto").EngagementRedirectionKind.SLACK_CHANNEL;
|
|
2065
|
+
channelId: string;
|
|
2066
|
+
includeUser?: boolean | undefined;
|
|
2067
|
+
} | {
|
|
2068
|
+
kind: import("../flows.dto").EngagementRedirectionKind.TEAMS_CHANNEL;
|
|
2069
|
+
channelId: string;
|
|
2070
|
+
includeUser?: boolean | undefined;
|
|
2071
|
+
} | {
|
|
2072
|
+
kind: import("../flows.dto").EngagementRedirectionKind.EMAIL_CHANNEL;
|
|
2073
|
+
channelId: string;
|
|
2074
|
+
includeUser?: boolean | undefined;
|
|
2075
|
+
} | undefined;
|
|
1680
2076
|
} | undefined;
|
|
1681
2077
|
rewards?: {
|
|
1682
2078
|
minutes: number;
|
|
@@ -7,16 +7,19 @@ declare const _TriggerRequest: z.ZodObject<{
|
|
|
7
7
|
allowDuplicates: z.ZodDefault<z.ZodBoolean>;
|
|
8
8
|
overrideGhostMode: z.ZodDefault<z.ZodBoolean>;
|
|
9
9
|
forceTrigger: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
overrideWorkingHours: z.ZodDefault<z.ZodBoolean>;
|
|
10
11
|
}, "strip", z.ZodTypeAny, {
|
|
11
12
|
overrideGhostMode: boolean;
|
|
12
13
|
forceTrigger: boolean;
|
|
13
14
|
fids: string[];
|
|
14
15
|
allowDuplicates: boolean;
|
|
16
|
+
overrideWorkingHours: boolean;
|
|
15
17
|
}, {
|
|
16
18
|
fids: string[];
|
|
17
19
|
overrideGhostMode?: boolean | undefined;
|
|
18
20
|
forceTrigger?: boolean | undefined;
|
|
19
21
|
allowDuplicates?: boolean | undefined;
|
|
22
|
+
overrideWorkingHours?: boolean | undefined;
|
|
20
23
|
}>;
|
|
21
24
|
type TriggerRequest = z.infer<typeof _TriggerRequest>;
|
|
22
25
|
type EngagementMessage = {
|
|
@@ -9,6 +9,7 @@ const _TriggerRequest = zod_1.z.object({
|
|
|
9
9
|
allowDuplicates: zod_1.z.boolean().default(true),
|
|
10
10
|
overrideGhostMode: zod_1.z.boolean().default(false),
|
|
11
11
|
forceTrigger: zod_1.z.boolean().default(false),
|
|
12
|
+
overrideWorkingHours: zod_1.z.boolean().default(false),
|
|
12
13
|
});
|
|
13
14
|
class EngagementService {
|
|
14
15
|
constructor(rest, targetApi = 'api') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engagements.service.js","sourceRoot":"","sources":["../../../src/services/engagements.service.ts"],"names":[],"mappings":";;;AAEA,2CAA2D;AAC3D,6BAAsB;AACtB,gCAAsG;AAEtG,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACzB,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAC1C,iBAAiB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC7C,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"engagements.service.js","sourceRoot":"","sources":["../../../src/services/engagements.service.ts"],"names":[],"mappings":";;;AAEA,2CAA2D;AAC3D,6BAAsB;AACtB,gCAAsG;AAEtG,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACzB,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAC1C,iBAAiB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC7C,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACxC,oBAAoB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACjD,CAAC,CAAC;AASH,MAAa,iBAAiB;IAG5B,YAAY,IAAgB,EAAE,YAAuB,KAAK;QAK1D,YAAO,GAAG,KAAK,EAAE,cAA8B,EAA8B,EAAE;YAC7E,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,yBAAyB;gBAC/C,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,cAAc;aACrB,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,GAAG,CAAC,IAAyB,CAAC;YAC9C,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC;QAbA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAaD;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,4BAA4B,CAAC,GAAW,EAAE,aAAsB,EAAE,mBAA4B,EAAE,MAAM,GAAG,CAAC,EAAE,KAAK,GAAG,EAAE;QAC1H,IAAI,IAAI,CAAC,SAAS,KAAK,+BAAmB,EAAE,CAAC;YAC3C,MAAM,IAAI,KAAK,CAAC,yCAAyC,+BAAmB,aAAa,CAAC,CAAC;QAC7F,CAAC;QACD,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,SAAS,yBAAyB,CAAC;QACxD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;YAC/B,GAAG;YACH,MAAM,EAAE,KAAK;YACb,MAAM,EAAE;gBACN,GAAG;gBACH,aAAa;gBACb,mBAAmB;gBACnB,KAAK;gBACL,MAAM;aACP;SACF,CAAC,CAAC;QACH,OAAO,IAAA,iBAAW,EAAC,mCAA6B,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC;CACF;AAlDD,8CAkDC"}
|