@periskope/types 0.6.163 → 0.6.165
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/dist/rules.types.js +4 -4
- package/dist/supabase.types.d.ts +58 -0
- package/dist/types.d.ts +33 -0
- package/package.json +1 -1
- package/rules.types.ts +4 -4
- package/supabase.types.ts +2740 -2680
- package/types.ts +40 -0
package/dist/rules.types.js
CHANGED
|
@@ -677,8 +677,8 @@ exports.ActionNameMap = {
|
|
|
677
677
|
],
|
|
678
678
|
required: false,
|
|
679
679
|
},
|
|
680
|
-
|
|
681
|
-
id: '
|
|
680
|
+
debounce_message_time: {
|
|
681
|
+
id: 'debounce_message_time',
|
|
682
682
|
type: 'dynamic',
|
|
683
683
|
label: 'Debounce Messages Time',
|
|
684
684
|
placeholder: 'Enter time',
|
|
@@ -739,8 +739,8 @@ exports.ActionNameMap = {
|
|
|
739
739
|
],
|
|
740
740
|
required: false,
|
|
741
741
|
},
|
|
742
|
-
|
|
743
|
-
id: '
|
|
742
|
+
debounce_message_time: {
|
|
743
|
+
id: 'debounce_message_time',
|
|
744
744
|
type: 'dynamic',
|
|
745
745
|
label: 'Debounce Messages Time',
|
|
746
746
|
placeholder: 'Enter time',
|
package/dist/supabase.types.d.ts
CHANGED
|
@@ -1688,6 +1688,64 @@ export type Database = {
|
|
|
1688
1688
|
}
|
|
1689
1689
|
];
|
|
1690
1690
|
};
|
|
1691
|
+
tbl_rules_logs: {
|
|
1692
|
+
Row: {
|
|
1693
|
+
actions_progress: Json | null;
|
|
1694
|
+
conditions_progress: Json | null;
|
|
1695
|
+
created_at: string;
|
|
1696
|
+
log_id: string;
|
|
1697
|
+
metadata: Json | null;
|
|
1698
|
+
org_id: string;
|
|
1699
|
+
rule_id: string;
|
|
1700
|
+
trace_id: string | null;
|
|
1701
|
+
trigger: string;
|
|
1702
|
+
};
|
|
1703
|
+
Insert: {
|
|
1704
|
+
actions_progress?: Json | null;
|
|
1705
|
+
conditions_progress?: Json | null;
|
|
1706
|
+
created_at?: string;
|
|
1707
|
+
log_id?: string;
|
|
1708
|
+
metadata?: Json | null;
|
|
1709
|
+
org_id: string;
|
|
1710
|
+
rule_id: string;
|
|
1711
|
+
trace_id?: string | null;
|
|
1712
|
+
trigger: string;
|
|
1713
|
+
};
|
|
1714
|
+
Update: {
|
|
1715
|
+
actions_progress?: Json | null;
|
|
1716
|
+
conditions_progress?: Json | null;
|
|
1717
|
+
created_at?: string;
|
|
1718
|
+
log_id?: string;
|
|
1719
|
+
metadata?: Json | null;
|
|
1720
|
+
org_id?: string;
|
|
1721
|
+
rule_id?: string;
|
|
1722
|
+
trace_id?: string | null;
|
|
1723
|
+
trigger?: string;
|
|
1724
|
+
};
|
|
1725
|
+
Relationships: [
|
|
1726
|
+
{
|
|
1727
|
+
foreignKeyName: "tbl_rules_logs_org_id_fkey";
|
|
1728
|
+
columns: ["org_id"];
|
|
1729
|
+
isOneToOne: false;
|
|
1730
|
+
referencedRelation: "tbl_org";
|
|
1731
|
+
referencedColumns: ["org_id"];
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
foreignKeyName: "tbl_rules_logs_org_id_fkey";
|
|
1735
|
+
columns: ["org_id"];
|
|
1736
|
+
isOneToOne: false;
|
|
1737
|
+
referencedRelation: "view_org";
|
|
1738
|
+
referencedColumns: ["org_id"];
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
foreignKeyName: "tbl_rules_logs_rule_id_fkey";
|
|
1742
|
+
columns: ["rule_id"];
|
|
1743
|
+
isOneToOne: false;
|
|
1744
|
+
referencedRelation: "tbl_automation_rules";
|
|
1745
|
+
referencedColumns: ["id"];
|
|
1746
|
+
}
|
|
1747
|
+
];
|
|
1748
|
+
};
|
|
1691
1749
|
tbl_scheduled_messages: {
|
|
1692
1750
|
Row: {
|
|
1693
1751
|
chat_id: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -490,4 +490,37 @@ export type TicketRuleInfoType = {
|
|
|
490
490
|
message: MessageRuleInfoType['message'];
|
|
491
491
|
};
|
|
492
492
|
export type FeatureFlagReturnType = Record<string, boolean>;
|
|
493
|
+
export type RuleLogsType = OverrideProperties<Tables<'tbl_rules_logs'>, {
|
|
494
|
+
actions_progress: {
|
|
495
|
+
action_id: string;
|
|
496
|
+
action_type: Rule['actions'][number]['type'];
|
|
497
|
+
action_delay: Rule['actions'][number]['delay'];
|
|
498
|
+
ran_at: string | null;
|
|
499
|
+
action_status: 'success' | 'failed' | 'pending';
|
|
500
|
+
action_response: {
|
|
501
|
+
success: boolean;
|
|
502
|
+
data: Record<string, unknown> | null;
|
|
503
|
+
error: {
|
|
504
|
+
message: string;
|
|
505
|
+
name: string;
|
|
506
|
+
stack?: string;
|
|
507
|
+
_error?: Error | Record<string, unknown>;
|
|
508
|
+
} | null;
|
|
509
|
+
};
|
|
510
|
+
}[];
|
|
511
|
+
metadata: {
|
|
512
|
+
conditions: Rule['conditions'];
|
|
513
|
+
actions: Rule['actions'];
|
|
514
|
+
data: Record<string, unknown>;
|
|
515
|
+
};
|
|
516
|
+
conditions_progress: {
|
|
517
|
+
is_valid: boolean;
|
|
518
|
+
validation_progress: Record<string, {
|
|
519
|
+
res: boolean;
|
|
520
|
+
filter: Rule['conditions']['filters'][number];
|
|
521
|
+
value: unknown;
|
|
522
|
+
}>;
|
|
523
|
+
checked_at: string | null;
|
|
524
|
+
};
|
|
525
|
+
}>;
|
|
493
526
|
export {};
|
package/package.json
CHANGED
package/rules.types.ts
CHANGED
|
@@ -1107,8 +1107,8 @@ export const ActionNameMap: Record<
|
|
|
1107
1107
|
],
|
|
1108
1108
|
required: false,
|
|
1109
1109
|
},
|
|
1110
|
-
|
|
1111
|
-
id: '
|
|
1110
|
+
debounce_message_time: {
|
|
1111
|
+
id: 'debounce_message_time',
|
|
1112
1112
|
type: 'dynamic',
|
|
1113
1113
|
label: 'Debounce Messages Time',
|
|
1114
1114
|
placeholder: 'Enter time',
|
|
@@ -1169,8 +1169,8 @@ export const ActionNameMap: Record<
|
|
|
1169
1169
|
],
|
|
1170
1170
|
required: false,
|
|
1171
1171
|
},
|
|
1172
|
-
|
|
1173
|
-
id: '
|
|
1172
|
+
debounce_message_time: {
|
|
1173
|
+
id: 'debounce_message_time',
|
|
1174
1174
|
type: 'dynamic',
|
|
1175
1175
|
label: 'Debounce Messages Time',
|
|
1176
1176
|
placeholder: 'Enter time',
|