@periskope/types 0.6.163 → 0.6.164

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/types.ts CHANGED
@@ -772,3 +772,43 @@ export type TicketRuleInfoType = {
772
772
  message: MessageRuleInfoType['message'];
773
773
  };
774
774
  export type FeatureFlagReturnType = Record<string, boolean>;
775
+
776
+ export type RuleLogsType = OverrideProperties<
777
+ Tables<'tbl_rules_logs'>,
778
+ {
779
+ actions_progress: {
780
+ action_id: string;
781
+ action_type: Rule['actions'][number]['type'];
782
+ action_delay: Rule['actions'][number]['delay'];
783
+ ran_at: string | null;
784
+ action_status: 'success' | 'failed' | 'pending';
785
+ action_response: {
786
+ success: boolean;
787
+ data: Record<string, unknown> | null;
788
+ error: {
789
+ message: string;
790
+ name: string;
791
+ stack?: string;
792
+ _error?: Error | Record<string, unknown>;
793
+ } | null;
794
+ };
795
+ }[];
796
+ metadata: {
797
+ conditions: Rule['conditions'];
798
+ actions: Rule['actions'];
799
+ data: Record<string, unknown>;
800
+ };
801
+ conditions_progress: {
802
+ is_valid: boolean;
803
+ validation_progress: Record<
804
+ string,
805
+ {
806
+ res: boolean;
807
+ filter: Rule['conditions']['filters'][number];
808
+ value: unknown;
809
+ }
810
+ >;
811
+ checked_at: string;
812
+ };
813
+ }
814
+ >;