@ampsec/platform-client 59.3.1 → 59.4.0
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 +576 -32
- package/build/src/dto/flows.dto.js +63 -12
- package/build/src/dto/flows.dto.js.map +1 -1
- package/build/src/dto/platform/platform.flows.dto.d.ts +334 -30
- package/build/src/dto/platform/platform.flows.dto.js +8 -2
- package/build/src/dto/platform/platform.flows.dto.js.map +1 -1
- package/build/src/services/flowSpecs.service.d.ts +9 -0
- package/build/src/services/flowSpecs.service.js +32 -0
- package/build/src/services/flowSpecs.service.js.map +1 -0
- package/package.json +1 -1
- package/src/dto/flows.dto.ts +72 -12
- package/src/dto/platform/platform.flows.dto.ts +9 -3
- package/src/services/flowSpecs.service.ts +36 -0
|
@@ -658,124 +658,525 @@ export declare const _FlowStateFilter: z.ZodObject<{
|
|
|
658
658
|
sort?: Record<string, "ASC" | "DESC"> | undefined;
|
|
659
659
|
}>;
|
|
660
660
|
export type FlowStateFilter = z.infer<typeof _FlowStateFilter>;
|
|
661
|
+
export declare const _FlowSpecCreateDto: z.ZodObject<{
|
|
662
|
+
name: z.ZodString;
|
|
663
|
+
description: z.ZodString;
|
|
664
|
+
}, "strip", z.ZodTypeAny, {
|
|
665
|
+
name: string;
|
|
666
|
+
description: string;
|
|
667
|
+
}, {
|
|
668
|
+
name: string;
|
|
669
|
+
description: string;
|
|
670
|
+
}>;
|
|
671
|
+
export type FlowSpecCreateDto = z.infer<typeof _FlowSpecCreateDto>;
|
|
672
|
+
export declare enum FlowSpecStatusKind {
|
|
673
|
+
ACTIVE = "ACTIVE",
|
|
674
|
+
PAUSED = "PAUSED",
|
|
675
|
+
ERROR = "ERROR"
|
|
676
|
+
}
|
|
677
|
+
declare const _FlowTrigger: z.ZodObject<{
|
|
678
|
+
key: z.ZodString;
|
|
679
|
+
displayValue: z.ZodOptional<z.ZodString>;
|
|
680
|
+
}, "strip", z.ZodTypeAny, {
|
|
681
|
+
key: string;
|
|
682
|
+
displayValue?: string | undefined;
|
|
683
|
+
}, {
|
|
684
|
+
key: string;
|
|
685
|
+
displayValue?: string | undefined;
|
|
686
|
+
}>;
|
|
687
|
+
export type FlowTrigger = z.infer<typeof _FlowTrigger>;
|
|
688
|
+
declare const _FlowTriggerFilter: z.ZodObject<{
|
|
689
|
+
trigger: z.ZodArray<z.ZodObject<{
|
|
690
|
+
key: z.ZodString;
|
|
691
|
+
displayValue: z.ZodOptional<z.ZodString>;
|
|
692
|
+
}, "strip", z.ZodTypeAny, {
|
|
693
|
+
key: string;
|
|
694
|
+
displayValue?: string | undefined;
|
|
695
|
+
}, {
|
|
696
|
+
key: string;
|
|
697
|
+
displayValue?: string | undefined;
|
|
698
|
+
}>, "many">;
|
|
699
|
+
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
700
|
+
}, "strip", z.ZodTypeAny, {
|
|
701
|
+
trigger: {
|
|
702
|
+
key: string;
|
|
703
|
+
displayValue?: string | undefined;
|
|
704
|
+
}[];
|
|
705
|
+
custom?: Record<string, unknown> | undefined;
|
|
706
|
+
}, {
|
|
707
|
+
trigger: {
|
|
708
|
+
key: string;
|
|
709
|
+
displayValue?: string | undefined;
|
|
710
|
+
}[];
|
|
711
|
+
custom?: Record<string, unknown> | undefined;
|
|
712
|
+
}>;
|
|
713
|
+
export type FlowTriggerFilter = z.infer<typeof _FlowTriggerFilter>;
|
|
714
|
+
export declare const _FlowInterval: z.ZodObject<{
|
|
715
|
+
minutes: z.ZodNumber;
|
|
716
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
717
|
+
units: z.ZodOptional<z.ZodString>;
|
|
718
|
+
}, "strip", z.ZodTypeAny, {
|
|
719
|
+
minutes: number;
|
|
720
|
+
value?: number | undefined;
|
|
721
|
+
units?: string | undefined;
|
|
722
|
+
}, {
|
|
723
|
+
minutes: number;
|
|
724
|
+
value?: number | undefined;
|
|
725
|
+
units?: string | undefined;
|
|
726
|
+
}>;
|
|
727
|
+
export type FlowInterval = z.infer<typeof _FlowInterval>;
|
|
728
|
+
export declare const _FlowActions: z.ZodObject<{
|
|
729
|
+
includeInstructions: z.ZodOptional<z.ZodBoolean>;
|
|
730
|
+
expirationActionId: z.ZodOptional<z.ZodString>;
|
|
731
|
+
}, "strip", z.ZodTypeAny, {
|
|
732
|
+
includeInstructions?: boolean | undefined;
|
|
733
|
+
expirationActionId?: string | undefined;
|
|
734
|
+
}, {
|
|
735
|
+
includeInstructions?: boolean | undefined;
|
|
736
|
+
expirationActionId?: string | undefined;
|
|
737
|
+
}>;
|
|
738
|
+
export type FlowActions = z.infer<typeof _FlowActions>;
|
|
739
|
+
export declare const _FlowRewardsConfig: z.ZodObject<{
|
|
740
|
+
isUpperBound: z.ZodBoolean;
|
|
741
|
+
points: z.ZodNumber;
|
|
742
|
+
minutes: z.ZodNumber;
|
|
743
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
744
|
+
units: z.ZodOptional<z.ZodString>;
|
|
745
|
+
}, "strip", z.ZodTypeAny, {
|
|
746
|
+
minutes: number;
|
|
747
|
+
isUpperBound: boolean;
|
|
748
|
+
points: number;
|
|
749
|
+
value?: number | undefined;
|
|
750
|
+
units?: string | undefined;
|
|
751
|
+
}, {
|
|
752
|
+
minutes: number;
|
|
753
|
+
isUpperBound: boolean;
|
|
754
|
+
points: number;
|
|
755
|
+
value?: number | undefined;
|
|
756
|
+
units?: string | undefined;
|
|
757
|
+
}>;
|
|
758
|
+
export type FlowRewardsConfig = z.infer<typeof _FlowRewardsConfig>;
|
|
661
759
|
export declare const _FlowSpecDto: z.ZodObject<{
|
|
662
760
|
createdAt: z.ZodString;
|
|
663
761
|
updatedAt: z.ZodString;
|
|
664
762
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
665
763
|
id: z.ZodString;
|
|
666
|
-
tid: z.
|
|
764
|
+
tid: z.ZodString;
|
|
765
|
+
status: z.ZodNativeEnum<typeof FlowSpecStatusKind>;
|
|
667
766
|
name: z.ZodString;
|
|
668
|
-
|
|
767
|
+
description: z.ZodString;
|
|
768
|
+
fslStrategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["STANDARD"]>>>;
|
|
669
769
|
triggerFilter: z.ZodObject<{
|
|
670
|
-
trigger: z.
|
|
770
|
+
trigger: z.ZodArray<z.ZodObject<{
|
|
771
|
+
key: z.ZodString;
|
|
772
|
+
displayValue: z.ZodOptional<z.ZodString>;
|
|
773
|
+
}, "strip", z.ZodTypeAny, {
|
|
774
|
+
key: string;
|
|
775
|
+
displayValue?: string | undefined;
|
|
776
|
+
}, {
|
|
777
|
+
key: string;
|
|
778
|
+
displayValue?: string | undefined;
|
|
779
|
+
}>, "many">;
|
|
671
780
|
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
672
781
|
}, "strip", z.ZodTypeAny, {
|
|
673
|
-
trigger:
|
|
782
|
+
trigger: {
|
|
783
|
+
key: string;
|
|
784
|
+
displayValue?: string | undefined;
|
|
785
|
+
}[];
|
|
674
786
|
custom?: Record<string, unknown> | undefined;
|
|
675
787
|
}, {
|
|
676
|
-
trigger:
|
|
788
|
+
trigger: {
|
|
789
|
+
key: string;
|
|
790
|
+
displayValue?: string | undefined;
|
|
791
|
+
}[];
|
|
677
792
|
custom?: Record<string, unknown> | undefined;
|
|
678
793
|
}>;
|
|
679
794
|
filter: z.ZodObject<{
|
|
680
|
-
cohorts: z.
|
|
795
|
+
cohorts: z.ZodArray<z.ZodUnknown, "many">;
|
|
681
796
|
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
682
797
|
}, "strip", z.ZodTypeAny, {
|
|
683
|
-
cohorts
|
|
798
|
+
cohorts: unknown[];
|
|
684
799
|
custom?: Record<string, unknown> | undefined;
|
|
685
800
|
}, {
|
|
686
|
-
cohorts
|
|
801
|
+
cohorts: unknown[];
|
|
687
802
|
custom?: Record<string, unknown> | undefined;
|
|
688
803
|
}>;
|
|
804
|
+
engagementChannelCids: z.ZodArray<z.ZodString, "many">;
|
|
805
|
+
tone: z.ZodOptional<z.ZodObject<{
|
|
806
|
+
kind: z.ZodString;
|
|
807
|
+
}, "strip", z.ZodTypeAny, {
|
|
808
|
+
kind: string;
|
|
809
|
+
}, {
|
|
810
|
+
kind: string;
|
|
811
|
+
}>>;
|
|
812
|
+
targetResolution: z.ZodOptional<z.ZodObject<{
|
|
813
|
+
minutes: z.ZodNumber;
|
|
814
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
815
|
+
units: z.ZodOptional<z.ZodString>;
|
|
816
|
+
}, "strip", z.ZodTypeAny, {
|
|
817
|
+
minutes: number;
|
|
818
|
+
value?: number | undefined;
|
|
819
|
+
units?: string | undefined;
|
|
820
|
+
}, {
|
|
821
|
+
minutes: number;
|
|
822
|
+
value?: number | undefined;
|
|
823
|
+
units?: string | undefined;
|
|
824
|
+
}>>;
|
|
825
|
+
reminderInterval: z.ZodOptional<z.ZodObject<{
|
|
826
|
+
minutes: z.ZodNumber;
|
|
827
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
828
|
+
units: z.ZodOptional<z.ZodString>;
|
|
829
|
+
}, "strip", z.ZodTypeAny, {
|
|
830
|
+
minutes: number;
|
|
831
|
+
value?: number | undefined;
|
|
832
|
+
units?: string | undefined;
|
|
833
|
+
}, {
|
|
834
|
+
minutes: number;
|
|
835
|
+
value?: number | undefined;
|
|
836
|
+
units?: string | undefined;
|
|
837
|
+
}>>;
|
|
838
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
839
|
+
includeInstructions: z.ZodOptional<z.ZodBoolean>;
|
|
840
|
+
expirationActionId: z.ZodOptional<z.ZodString>;
|
|
841
|
+
}, "strip", z.ZodTypeAny, {
|
|
842
|
+
includeInstructions?: boolean | undefined;
|
|
843
|
+
expirationActionId?: string | undefined;
|
|
844
|
+
}, {
|
|
845
|
+
includeInstructions?: boolean | undefined;
|
|
846
|
+
expirationActionId?: string | undefined;
|
|
847
|
+
}>>;
|
|
848
|
+
rewards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
849
|
+
isUpperBound: z.ZodBoolean;
|
|
850
|
+
points: z.ZodNumber;
|
|
851
|
+
minutes: z.ZodNumber;
|
|
852
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
853
|
+
units: z.ZodOptional<z.ZodString>;
|
|
854
|
+
}, "strip", z.ZodTypeAny, {
|
|
855
|
+
minutes: number;
|
|
856
|
+
isUpperBound: boolean;
|
|
857
|
+
points: number;
|
|
858
|
+
value?: number | undefined;
|
|
859
|
+
units?: string | undefined;
|
|
860
|
+
}, {
|
|
861
|
+
minutes: number;
|
|
862
|
+
isUpperBound: boolean;
|
|
863
|
+
points: number;
|
|
864
|
+
value?: number | undefined;
|
|
865
|
+
units?: string | undefined;
|
|
866
|
+
}>, "many">>;
|
|
867
|
+
activity: z.ZodOptional<z.ZodObject<{
|
|
868
|
+
lastTriggered: z.ZodOptional<z.ZodString>;
|
|
869
|
+
activeCount: z.ZodDefault<z.ZodNumber>;
|
|
870
|
+
totalCount: z.ZodDefault<z.ZodNumber>;
|
|
871
|
+
}, "strip", z.ZodTypeAny, {
|
|
872
|
+
activeCount: number;
|
|
873
|
+
totalCount: number;
|
|
874
|
+
lastTriggered?: string | undefined;
|
|
875
|
+
}, {
|
|
876
|
+
lastTriggered?: string | undefined;
|
|
877
|
+
activeCount?: number | undefined;
|
|
878
|
+
totalCount?: number | undefined;
|
|
879
|
+
}>>;
|
|
689
880
|
}, "strip", z.ZodTypeAny, {
|
|
690
881
|
filter: {
|
|
691
|
-
cohorts
|
|
882
|
+
cohorts: unknown[];
|
|
692
883
|
custom?: Record<string, unknown> | undefined;
|
|
693
884
|
};
|
|
694
885
|
name: string;
|
|
886
|
+
description: string;
|
|
887
|
+
status: FlowSpecStatusKind;
|
|
695
888
|
id: string;
|
|
889
|
+
tid: string;
|
|
696
890
|
createdAt: string;
|
|
697
891
|
updatedAt: string;
|
|
698
892
|
deletedAt: string | null;
|
|
699
893
|
fslStrategy: "STANDARD";
|
|
700
894
|
triggerFilter: {
|
|
701
|
-
trigger:
|
|
895
|
+
trigger: {
|
|
896
|
+
key: string;
|
|
897
|
+
displayValue?: string | undefined;
|
|
898
|
+
}[];
|
|
702
899
|
custom?: Record<string, unknown> | undefined;
|
|
703
900
|
};
|
|
704
|
-
|
|
901
|
+
engagementChannelCids: string[];
|
|
902
|
+
tone?: {
|
|
903
|
+
kind: string;
|
|
904
|
+
} | undefined;
|
|
905
|
+
targetResolution?: {
|
|
906
|
+
minutes: number;
|
|
907
|
+
value?: number | undefined;
|
|
908
|
+
units?: string | undefined;
|
|
909
|
+
} | undefined;
|
|
910
|
+
reminderInterval?: {
|
|
911
|
+
minutes: number;
|
|
912
|
+
value?: number | undefined;
|
|
913
|
+
units?: string | undefined;
|
|
914
|
+
} | undefined;
|
|
915
|
+
actions?: {
|
|
916
|
+
includeInstructions?: boolean | undefined;
|
|
917
|
+
expirationActionId?: string | undefined;
|
|
918
|
+
} | undefined;
|
|
919
|
+
rewards?: {
|
|
920
|
+
minutes: number;
|
|
921
|
+
isUpperBound: boolean;
|
|
922
|
+
points: number;
|
|
923
|
+
value?: number | undefined;
|
|
924
|
+
units?: string | undefined;
|
|
925
|
+
}[] | undefined;
|
|
926
|
+
activity?: {
|
|
927
|
+
activeCount: number;
|
|
928
|
+
totalCount: number;
|
|
929
|
+
lastTriggered?: string | undefined;
|
|
930
|
+
} | undefined;
|
|
705
931
|
}, {
|
|
706
932
|
filter: {
|
|
707
|
-
cohorts
|
|
933
|
+
cohorts: unknown[];
|
|
708
934
|
custom?: Record<string, unknown> | undefined;
|
|
709
935
|
};
|
|
710
936
|
name: string;
|
|
937
|
+
description: string;
|
|
938
|
+
status: FlowSpecStatusKind;
|
|
711
939
|
id: string;
|
|
940
|
+
tid: string;
|
|
712
941
|
createdAt: string;
|
|
713
942
|
updatedAt: string;
|
|
714
943
|
deletedAt: string | null;
|
|
715
|
-
fslStrategy: "STANDARD";
|
|
716
944
|
triggerFilter: {
|
|
717
|
-
trigger:
|
|
945
|
+
trigger: {
|
|
946
|
+
key: string;
|
|
947
|
+
displayValue?: string | undefined;
|
|
948
|
+
}[];
|
|
718
949
|
custom?: Record<string, unknown> | undefined;
|
|
719
950
|
};
|
|
720
|
-
|
|
951
|
+
engagementChannelCids: string[];
|
|
952
|
+
fslStrategy?: "STANDARD" | undefined;
|
|
953
|
+
tone?: {
|
|
954
|
+
kind: string;
|
|
955
|
+
} | undefined;
|
|
956
|
+
targetResolution?: {
|
|
957
|
+
minutes: number;
|
|
958
|
+
value?: number | undefined;
|
|
959
|
+
units?: string | undefined;
|
|
960
|
+
} | undefined;
|
|
961
|
+
reminderInterval?: {
|
|
962
|
+
minutes: number;
|
|
963
|
+
value?: number | undefined;
|
|
964
|
+
units?: string | undefined;
|
|
965
|
+
} | undefined;
|
|
966
|
+
actions?: {
|
|
967
|
+
includeInstructions?: boolean | undefined;
|
|
968
|
+
expirationActionId?: string | undefined;
|
|
969
|
+
} | undefined;
|
|
970
|
+
rewards?: {
|
|
971
|
+
minutes: number;
|
|
972
|
+
isUpperBound: boolean;
|
|
973
|
+
points: number;
|
|
974
|
+
value?: number | undefined;
|
|
975
|
+
units?: string | undefined;
|
|
976
|
+
}[] | undefined;
|
|
977
|
+
activity?: {
|
|
978
|
+
lastTriggered?: string | undefined;
|
|
979
|
+
activeCount?: number | undefined;
|
|
980
|
+
totalCount?: number | undefined;
|
|
981
|
+
} | undefined;
|
|
721
982
|
}>;
|
|
722
983
|
export type FlowSpecDto = z.infer<typeof _FlowSpecDto>;
|
|
723
984
|
export declare const _FlowSpecUpsertDto: z.ZodObject<{
|
|
724
985
|
filter: z.ZodObject<{
|
|
725
|
-
cohorts: z.
|
|
986
|
+
cohorts: z.ZodArray<z.ZodUnknown, "many">;
|
|
726
987
|
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
727
988
|
}, "strip", z.ZodTypeAny, {
|
|
728
|
-
cohorts
|
|
989
|
+
cohorts: unknown[];
|
|
729
990
|
custom?: Record<string, unknown> | undefined;
|
|
730
991
|
}, {
|
|
731
|
-
cohorts
|
|
992
|
+
cohorts: unknown[];
|
|
732
993
|
custom?: Record<string, unknown> | undefined;
|
|
733
994
|
}>;
|
|
734
995
|
name: z.ZodString;
|
|
735
|
-
|
|
736
|
-
|
|
996
|
+
description: z.ZodString;
|
|
997
|
+
status: z.ZodNativeEnum<typeof FlowSpecStatusKind>;
|
|
998
|
+
tid: z.ZodString;
|
|
999
|
+
fslStrategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["STANDARD"]>>>;
|
|
737
1000
|
triggerFilter: z.ZodObject<{
|
|
738
|
-
trigger: z.
|
|
1001
|
+
trigger: z.ZodArray<z.ZodObject<{
|
|
1002
|
+
key: z.ZodString;
|
|
1003
|
+
displayValue: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
}, "strip", z.ZodTypeAny, {
|
|
1005
|
+
key: string;
|
|
1006
|
+
displayValue?: string | undefined;
|
|
1007
|
+
}, {
|
|
1008
|
+
key: string;
|
|
1009
|
+
displayValue?: string | undefined;
|
|
1010
|
+
}>, "many">;
|
|
739
1011
|
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
740
1012
|
}, "strip", z.ZodTypeAny, {
|
|
741
|
-
trigger:
|
|
1013
|
+
trigger: {
|
|
1014
|
+
key: string;
|
|
1015
|
+
displayValue?: string | undefined;
|
|
1016
|
+
}[];
|
|
742
1017
|
custom?: Record<string, unknown> | undefined;
|
|
743
1018
|
}, {
|
|
744
|
-
trigger:
|
|
1019
|
+
trigger: {
|
|
1020
|
+
key: string;
|
|
1021
|
+
displayValue?: string | undefined;
|
|
1022
|
+
}[];
|
|
745
1023
|
custom?: Record<string, unknown> | undefined;
|
|
746
1024
|
}>;
|
|
1025
|
+
engagementChannelCids: z.ZodArray<z.ZodString, "many">;
|
|
1026
|
+
tone: z.ZodOptional<z.ZodObject<{
|
|
1027
|
+
kind: z.ZodString;
|
|
1028
|
+
}, "strip", z.ZodTypeAny, {
|
|
1029
|
+
kind: string;
|
|
1030
|
+
}, {
|
|
1031
|
+
kind: string;
|
|
1032
|
+
}>>;
|
|
1033
|
+
targetResolution: z.ZodOptional<z.ZodObject<{
|
|
1034
|
+
minutes: z.ZodNumber;
|
|
1035
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1036
|
+
units: z.ZodOptional<z.ZodString>;
|
|
1037
|
+
}, "strip", z.ZodTypeAny, {
|
|
1038
|
+
minutes: number;
|
|
1039
|
+
value?: number | undefined;
|
|
1040
|
+
units?: string | undefined;
|
|
1041
|
+
}, {
|
|
1042
|
+
minutes: number;
|
|
1043
|
+
value?: number | undefined;
|
|
1044
|
+
units?: string | undefined;
|
|
1045
|
+
}>>;
|
|
1046
|
+
reminderInterval: z.ZodOptional<z.ZodObject<{
|
|
1047
|
+
minutes: z.ZodNumber;
|
|
1048
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1049
|
+
units: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
}, "strip", z.ZodTypeAny, {
|
|
1051
|
+
minutes: number;
|
|
1052
|
+
value?: number | undefined;
|
|
1053
|
+
units?: string | undefined;
|
|
1054
|
+
}, {
|
|
1055
|
+
minutes: number;
|
|
1056
|
+
value?: number | undefined;
|
|
1057
|
+
units?: string | undefined;
|
|
1058
|
+
}>>;
|
|
1059
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
1060
|
+
includeInstructions: z.ZodOptional<z.ZodBoolean>;
|
|
1061
|
+
expirationActionId: z.ZodOptional<z.ZodString>;
|
|
1062
|
+
}, "strip", z.ZodTypeAny, {
|
|
1063
|
+
includeInstructions?: boolean | undefined;
|
|
1064
|
+
expirationActionId?: string | undefined;
|
|
1065
|
+
}, {
|
|
1066
|
+
includeInstructions?: boolean | undefined;
|
|
1067
|
+
expirationActionId?: string | undefined;
|
|
1068
|
+
}>>;
|
|
1069
|
+
rewards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1070
|
+
isUpperBound: z.ZodBoolean;
|
|
1071
|
+
points: z.ZodNumber;
|
|
1072
|
+
minutes: z.ZodNumber;
|
|
1073
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1074
|
+
units: z.ZodOptional<z.ZodString>;
|
|
1075
|
+
}, "strip", z.ZodTypeAny, {
|
|
1076
|
+
minutes: number;
|
|
1077
|
+
isUpperBound: boolean;
|
|
1078
|
+
points: number;
|
|
1079
|
+
value?: number | undefined;
|
|
1080
|
+
units?: string | undefined;
|
|
1081
|
+
}, {
|
|
1082
|
+
minutes: number;
|
|
1083
|
+
isUpperBound: boolean;
|
|
1084
|
+
points: number;
|
|
1085
|
+
value?: number | undefined;
|
|
1086
|
+
units?: string | undefined;
|
|
1087
|
+
}>, "many">>;
|
|
747
1088
|
id: z.ZodOptional<z.ZodString>;
|
|
748
1089
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
749
1090
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
750
1091
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
751
1092
|
}, "strip", z.ZodTypeAny, {
|
|
752
1093
|
filter: {
|
|
753
|
-
cohorts
|
|
1094
|
+
cohorts: unknown[];
|
|
754
1095
|
custom?: Record<string, unknown> | undefined;
|
|
755
1096
|
};
|
|
756
1097
|
name: string;
|
|
1098
|
+
description: string;
|
|
1099
|
+
status: FlowSpecStatusKind;
|
|
1100
|
+
tid: string;
|
|
757
1101
|
fslStrategy: "STANDARD";
|
|
758
1102
|
triggerFilter: {
|
|
759
|
-
trigger:
|
|
1103
|
+
trigger: {
|
|
1104
|
+
key: string;
|
|
1105
|
+
displayValue?: string | undefined;
|
|
1106
|
+
}[];
|
|
760
1107
|
custom?: Record<string, unknown> | undefined;
|
|
761
1108
|
};
|
|
762
|
-
|
|
1109
|
+
engagementChannelCids: string[];
|
|
1110
|
+
tone?: {
|
|
1111
|
+
kind: string;
|
|
1112
|
+
} | undefined;
|
|
1113
|
+
targetResolution?: {
|
|
1114
|
+
minutes: number;
|
|
1115
|
+
value?: number | undefined;
|
|
1116
|
+
units?: string | undefined;
|
|
1117
|
+
} | undefined;
|
|
1118
|
+
reminderInterval?: {
|
|
1119
|
+
minutes: number;
|
|
1120
|
+
value?: number | undefined;
|
|
1121
|
+
units?: string | undefined;
|
|
1122
|
+
} | undefined;
|
|
1123
|
+
actions?: {
|
|
1124
|
+
includeInstructions?: boolean | undefined;
|
|
1125
|
+
expirationActionId?: string | undefined;
|
|
1126
|
+
} | undefined;
|
|
1127
|
+
rewards?: {
|
|
1128
|
+
minutes: number;
|
|
1129
|
+
isUpperBound: boolean;
|
|
1130
|
+
points: number;
|
|
1131
|
+
value?: number | undefined;
|
|
1132
|
+
units?: string | undefined;
|
|
1133
|
+
}[] | undefined;
|
|
763
1134
|
id?: string | undefined;
|
|
764
1135
|
createdAt?: string | undefined;
|
|
765
1136
|
updatedAt?: string | undefined;
|
|
766
1137
|
deletedAt?: string | null | undefined;
|
|
767
1138
|
}, {
|
|
768
1139
|
filter: {
|
|
769
|
-
cohorts
|
|
1140
|
+
cohorts: unknown[];
|
|
770
1141
|
custom?: Record<string, unknown> | undefined;
|
|
771
1142
|
};
|
|
772
1143
|
name: string;
|
|
773
|
-
|
|
1144
|
+
description: string;
|
|
1145
|
+
status: FlowSpecStatusKind;
|
|
1146
|
+
tid: string;
|
|
774
1147
|
triggerFilter: {
|
|
775
|
-
trigger:
|
|
1148
|
+
trigger: {
|
|
1149
|
+
key: string;
|
|
1150
|
+
displayValue?: string | undefined;
|
|
1151
|
+
}[];
|
|
776
1152
|
custom?: Record<string, unknown> | undefined;
|
|
777
1153
|
};
|
|
778
|
-
|
|
1154
|
+
engagementChannelCids: string[];
|
|
1155
|
+
fslStrategy?: "STANDARD" | undefined;
|
|
1156
|
+
tone?: {
|
|
1157
|
+
kind: string;
|
|
1158
|
+
} | undefined;
|
|
1159
|
+
targetResolution?: {
|
|
1160
|
+
minutes: number;
|
|
1161
|
+
value?: number | undefined;
|
|
1162
|
+
units?: string | undefined;
|
|
1163
|
+
} | undefined;
|
|
1164
|
+
reminderInterval?: {
|
|
1165
|
+
minutes: number;
|
|
1166
|
+
value?: number | undefined;
|
|
1167
|
+
units?: string | undefined;
|
|
1168
|
+
} | undefined;
|
|
1169
|
+
actions?: {
|
|
1170
|
+
includeInstructions?: boolean | undefined;
|
|
1171
|
+
expirationActionId?: string | undefined;
|
|
1172
|
+
} | undefined;
|
|
1173
|
+
rewards?: {
|
|
1174
|
+
minutes: number;
|
|
1175
|
+
isUpperBound: boolean;
|
|
1176
|
+
points: number;
|
|
1177
|
+
value?: number | undefined;
|
|
1178
|
+
units?: string | undefined;
|
|
1179
|
+
}[] | undefined;
|
|
779
1180
|
id?: string | undefined;
|
|
780
1181
|
createdAt?: string | undefined;
|
|
781
1182
|
updatedAt?: string | undefined;
|
|
@@ -784,17 +1185,97 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
|
|
|
784
1185
|
export type FlowSpecUpsertDto = z.infer<typeof _FlowSpecUpsertDto>;
|
|
785
1186
|
export declare const _FlowSpecFilter: z.ZodObject<{
|
|
786
1187
|
name: z.ZodOptional<z.ZodString>;
|
|
1188
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
status: z.ZodOptional<z.ZodNativeEnum<typeof FlowSpecStatusKind>>;
|
|
787
1190
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
788
1191
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
789
1192
|
id: z.ZodOptional<z.ZodString>;
|
|
790
|
-
tid: z.ZodOptional<z.
|
|
1193
|
+
tid: z.ZodOptional<z.ZodString>;
|
|
791
1194
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
792
1195
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
793
1196
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
794
|
-
fslStrategy: z.ZodOptional<z.ZodEnum<["STANDARD"]
|
|
1197
|
+
fslStrategy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["STANDARD"]>>>>;
|
|
1198
|
+
engagementChannelCids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1199
|
+
tone: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1200
|
+
kind: z.ZodString;
|
|
1201
|
+
}, "strip", z.ZodTypeAny, {
|
|
1202
|
+
kind: string;
|
|
1203
|
+
}, {
|
|
1204
|
+
kind: string;
|
|
1205
|
+
}>>>;
|
|
1206
|
+
targetResolution: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1207
|
+
minutes: z.ZodNumber;
|
|
1208
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1209
|
+
units: z.ZodOptional<z.ZodString>;
|
|
1210
|
+
}, "strip", z.ZodTypeAny, {
|
|
1211
|
+
minutes: number;
|
|
1212
|
+
value?: number | undefined;
|
|
1213
|
+
units?: string | undefined;
|
|
1214
|
+
}, {
|
|
1215
|
+
minutes: number;
|
|
1216
|
+
value?: number | undefined;
|
|
1217
|
+
units?: string | undefined;
|
|
1218
|
+
}>>>;
|
|
1219
|
+
reminderInterval: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1220
|
+
minutes: z.ZodNumber;
|
|
1221
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1222
|
+
units: z.ZodOptional<z.ZodString>;
|
|
1223
|
+
}, "strip", z.ZodTypeAny, {
|
|
1224
|
+
minutes: number;
|
|
1225
|
+
value?: number | undefined;
|
|
1226
|
+
units?: string | undefined;
|
|
1227
|
+
}, {
|
|
1228
|
+
minutes: number;
|
|
1229
|
+
value?: number | undefined;
|
|
1230
|
+
units?: string | undefined;
|
|
1231
|
+
}>>>;
|
|
1232
|
+
actions: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1233
|
+
includeInstructions: z.ZodOptional<z.ZodBoolean>;
|
|
1234
|
+
expirationActionId: z.ZodOptional<z.ZodString>;
|
|
1235
|
+
}, "strip", z.ZodTypeAny, {
|
|
1236
|
+
includeInstructions?: boolean | undefined;
|
|
1237
|
+
expirationActionId?: string | undefined;
|
|
1238
|
+
}, {
|
|
1239
|
+
includeInstructions?: boolean | undefined;
|
|
1240
|
+
expirationActionId?: string | undefined;
|
|
1241
|
+
}>>>;
|
|
1242
|
+
rewards: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1243
|
+
isUpperBound: z.ZodBoolean;
|
|
1244
|
+
points: z.ZodNumber;
|
|
1245
|
+
minutes: z.ZodNumber;
|
|
1246
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1247
|
+
units: z.ZodOptional<z.ZodString>;
|
|
1248
|
+
}, "strip", z.ZodTypeAny, {
|
|
1249
|
+
minutes: number;
|
|
1250
|
+
isUpperBound: boolean;
|
|
1251
|
+
points: number;
|
|
1252
|
+
value?: number | undefined;
|
|
1253
|
+
units?: string | undefined;
|
|
1254
|
+
}, {
|
|
1255
|
+
minutes: number;
|
|
1256
|
+
isUpperBound: boolean;
|
|
1257
|
+
points: number;
|
|
1258
|
+
value?: number | undefined;
|
|
1259
|
+
units?: string | undefined;
|
|
1260
|
+
}>, "many">>>;
|
|
1261
|
+
activity: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1262
|
+
lastTriggered: z.ZodOptional<z.ZodString>;
|
|
1263
|
+
activeCount: z.ZodDefault<z.ZodNumber>;
|
|
1264
|
+
totalCount: z.ZodDefault<z.ZodNumber>;
|
|
1265
|
+
}, "strip", z.ZodTypeAny, {
|
|
1266
|
+
activeCount: number;
|
|
1267
|
+
totalCount: number;
|
|
1268
|
+
lastTriggered?: string | undefined;
|
|
1269
|
+
}, {
|
|
1270
|
+
lastTriggered?: string | undefined;
|
|
1271
|
+
activeCount?: number | undefined;
|
|
1272
|
+
totalCount?: number | undefined;
|
|
1273
|
+
}>>>;
|
|
795
1274
|
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ASC", "DESC"]>>>;
|
|
796
1275
|
}, "strip", z.ZodTypeAny, {
|
|
797
1276
|
name?: string | undefined;
|
|
1277
|
+
description?: string | undefined;
|
|
1278
|
+
status?: FlowSpecStatusKind | undefined;
|
|
798
1279
|
limit?: number | undefined;
|
|
799
1280
|
offset?: number | undefined;
|
|
800
1281
|
id?: string | undefined;
|
|
@@ -803,9 +1284,41 @@ export declare const _FlowSpecFilter: z.ZodObject<{
|
|
|
803
1284
|
updatedAt?: string | undefined;
|
|
804
1285
|
deletedAt?: string | null | undefined;
|
|
805
1286
|
fslStrategy?: "STANDARD" | undefined;
|
|
1287
|
+
engagementChannelCids?: string[] | undefined;
|
|
1288
|
+
tone?: {
|
|
1289
|
+
kind: string;
|
|
1290
|
+
} | undefined;
|
|
1291
|
+
targetResolution?: {
|
|
1292
|
+
minutes: number;
|
|
1293
|
+
value?: number | undefined;
|
|
1294
|
+
units?: string | undefined;
|
|
1295
|
+
} | undefined;
|
|
1296
|
+
reminderInterval?: {
|
|
1297
|
+
minutes: number;
|
|
1298
|
+
value?: number | undefined;
|
|
1299
|
+
units?: string | undefined;
|
|
1300
|
+
} | undefined;
|
|
1301
|
+
actions?: {
|
|
1302
|
+
includeInstructions?: boolean | undefined;
|
|
1303
|
+
expirationActionId?: string | undefined;
|
|
1304
|
+
} | undefined;
|
|
1305
|
+
rewards?: {
|
|
1306
|
+
minutes: number;
|
|
1307
|
+
isUpperBound: boolean;
|
|
1308
|
+
points: number;
|
|
1309
|
+
value?: number | undefined;
|
|
1310
|
+
units?: string | undefined;
|
|
1311
|
+
}[] | undefined;
|
|
1312
|
+
activity?: {
|
|
1313
|
+
activeCount: number;
|
|
1314
|
+
totalCount: number;
|
|
1315
|
+
lastTriggered?: string | undefined;
|
|
1316
|
+
} | undefined;
|
|
806
1317
|
sort?: Record<string, "ASC" | "DESC"> | undefined;
|
|
807
1318
|
}, {
|
|
808
1319
|
name?: string | undefined;
|
|
1320
|
+
description?: string | undefined;
|
|
1321
|
+
status?: FlowSpecStatusKind | undefined;
|
|
809
1322
|
limit?: number | undefined;
|
|
810
1323
|
offset?: number | undefined;
|
|
811
1324
|
id?: string | undefined;
|
|
@@ -814,6 +1327,37 @@ export declare const _FlowSpecFilter: z.ZodObject<{
|
|
|
814
1327
|
updatedAt?: string | undefined;
|
|
815
1328
|
deletedAt?: string | null | undefined;
|
|
816
1329
|
fslStrategy?: "STANDARD" | undefined;
|
|
1330
|
+
engagementChannelCids?: string[] | undefined;
|
|
1331
|
+
tone?: {
|
|
1332
|
+
kind: string;
|
|
1333
|
+
} | undefined;
|
|
1334
|
+
targetResolution?: {
|
|
1335
|
+
minutes: number;
|
|
1336
|
+
value?: number | undefined;
|
|
1337
|
+
units?: string | undefined;
|
|
1338
|
+
} | undefined;
|
|
1339
|
+
reminderInterval?: {
|
|
1340
|
+
minutes: number;
|
|
1341
|
+
value?: number | undefined;
|
|
1342
|
+
units?: string | undefined;
|
|
1343
|
+
} | undefined;
|
|
1344
|
+
actions?: {
|
|
1345
|
+
includeInstructions?: boolean | undefined;
|
|
1346
|
+
expirationActionId?: string | undefined;
|
|
1347
|
+
} | undefined;
|
|
1348
|
+
rewards?: {
|
|
1349
|
+
minutes: number;
|
|
1350
|
+
isUpperBound: boolean;
|
|
1351
|
+
points: number;
|
|
1352
|
+
value?: number | undefined;
|
|
1353
|
+
units?: string | undefined;
|
|
1354
|
+
}[] | undefined;
|
|
1355
|
+
activity?: {
|
|
1356
|
+
lastTriggered?: string | undefined;
|
|
1357
|
+
activeCount?: number | undefined;
|
|
1358
|
+
totalCount?: number | undefined;
|
|
1359
|
+
} | undefined;
|
|
817
1360
|
sort?: Record<string, "ASC" | "DESC"> | undefined;
|
|
818
1361
|
}>;
|
|
819
1362
|
export type FlowSpecFilter = z.infer<typeof _FlowSpecFilter>;
|
|
1363
|
+
export {};
|