@periskope/types 0.6.456 → 0.6.458
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.d.ts +7 -7
- package/dist/supabase.types.d.ts +140 -0
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/types.d.ts +13 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/supabase.types.ts +140 -0
- package/src/types.ts +16 -1
package/dist/rules.types.d.ts
CHANGED
|
@@ -432,31 +432,31 @@ export type Rule = OverrideProperties<Tables<'tbl_automation_rules'>, {
|
|
|
432
432
|
export declare const RuleInfoSchemaMap: {
|
|
433
433
|
message: {
|
|
434
434
|
triggers: readonly ["message.created", "message.updated", "message.flagged", "message.unflagged", "message.deleted"];
|
|
435
|
-
variableMaps: (Record<"message.
|
|
435
|
+
variableMaps: (Record<"message.org_id" | "message.chat_id" | "message.org_phone" | "message.author" | "message.body" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType>)[];
|
|
436
436
|
};
|
|
437
437
|
ticket: {
|
|
438
438
|
triggers: readonly ["ticket.created", "ticket.updated", "ticket.closed", "ticket.label.updated", "ticket.message.attached"];
|
|
439
|
-
variableMaps: (Record<"message.
|
|
439
|
+
variableMaps: (Record<"message.org_id" | "message.chat_id" | "message.org_phone" | "message.author" | "message.body" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"ticket.created_at" | "ticket.org_id" | "ticket.chat_id" | "ticket.ticket_id" | "ticket.assignee" | "ticket.due_date" | "ticket.priority" | "ticket.status" | "ticket.is_deleted" | "ticket.labels" | "ticket.custom_properties" | "ticket.subject" | "ticket.raised_by", VariableNameValueType>)[];
|
|
440
440
|
};
|
|
441
441
|
chat: {
|
|
442
442
|
triggers: readonly ["chat.created", "chat.label.updated"];
|
|
443
|
-
variableMaps: Record<"chat.
|
|
443
|
+
variableMaps: Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType>[];
|
|
444
444
|
};
|
|
445
445
|
reaction: {
|
|
446
446
|
triggers: readonly ["reaction.added"];
|
|
447
|
-
variableMaps: (Record<"message.
|
|
447
|
+
variableMaps: (Record<"message.org_id" | "message.chat_id" | "message.org_phone" | "message.author" | "message.body" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"reaction.chat_id" | "reaction.reaction" | "reaction.message_id" | "reaction.sender_id" | "reaction.reaction_id", VariableNameValueType>)[];
|
|
448
448
|
};
|
|
449
449
|
task: {
|
|
450
450
|
triggers: readonly ["task.created", "task.assignee.updated"];
|
|
451
|
-
variableMaps: (Record<"chat.
|
|
451
|
+
variableMaps: (Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"task.created_at" | "task.org_id" | "task.assignee" | "task.due_date" | "task.notes" | "task.priority" | "task.status" | "task.task_id" | "task.title", VariableNameValueType>)[];
|
|
452
452
|
};
|
|
453
453
|
call: {
|
|
454
454
|
triggers: readonly ["call.created"];
|
|
455
|
-
variableMaps: (Record<"chat.
|
|
455
|
+
variableMaps: (Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"call_notification.org_id" | "call_notification.chat_id" | "call_notification.author" | "call_notification.timestamp" | "call_notification.notification_id" | "call_notification.isVideo" | "call_notification.isOutgoing" | "call_notification.call_result", VariableNameValueType>)[];
|
|
456
456
|
};
|
|
457
457
|
member: {
|
|
458
458
|
triggers: readonly ["member.joined"];
|
|
459
|
-
variableMaps: (Record<"chat.
|
|
459
|
+
variableMaps: (Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"member_notification.type" | "member_notification.org_id" | "member_notification.chat_id" | "member_notification.org_phone" | "member_notification.timestamp" | "member_notification.notification_id" | "member_notification.recipientids", VariableNameValueType>)[];
|
|
460
460
|
};
|
|
461
461
|
};
|
|
462
462
|
export declare const additionalAssigneeOptions: {
|
package/dist/supabase.types.d.ts
CHANGED
|
@@ -893,6 +893,67 @@ export type Database = {
|
|
|
893
893
|
}
|
|
894
894
|
];
|
|
895
895
|
};
|
|
896
|
+
tbl_broadcast_chatlist: {
|
|
897
|
+
Row: {
|
|
898
|
+
chat_ids: string[];
|
|
899
|
+
created_at: string;
|
|
900
|
+
updated_at: string | null;
|
|
901
|
+
created_by: string | null;
|
|
902
|
+
message_payload: Json | null;
|
|
903
|
+
org_id: string;
|
|
904
|
+
org_phone: string | null;
|
|
905
|
+
template_id: string;
|
|
906
|
+
template_name: string;
|
|
907
|
+
variables: Json | null;
|
|
908
|
+
};
|
|
909
|
+
Insert: {
|
|
910
|
+
chat_ids?: string[];
|
|
911
|
+
created_at?: string;
|
|
912
|
+
updated_at?: string | null;
|
|
913
|
+
created_by?: string | null;
|
|
914
|
+
message_payload?: Json | null;
|
|
915
|
+
org_id: string;
|
|
916
|
+
org_phone?: string | null;
|
|
917
|
+
template_id?: string;
|
|
918
|
+
template_name: string;
|
|
919
|
+
variables?: Json | null;
|
|
920
|
+
};
|
|
921
|
+
Update: {
|
|
922
|
+
chat_ids?: string[];
|
|
923
|
+
created_at?: string;
|
|
924
|
+
updated_at?: string | null;
|
|
925
|
+
created_by?: string | null;
|
|
926
|
+
message_payload?: Json | null;
|
|
927
|
+
org_id?: string;
|
|
928
|
+
org_phone?: string | null;
|
|
929
|
+
template_id?: string;
|
|
930
|
+
template_name?: string;
|
|
931
|
+
variables?: Json | null;
|
|
932
|
+
};
|
|
933
|
+
Relationships: [
|
|
934
|
+
{
|
|
935
|
+
foreignKeyName: "tbl_broadcast_chatlist_org_id_fkey";
|
|
936
|
+
columns: ["org_id"];
|
|
937
|
+
isOneToOne: false;
|
|
938
|
+
referencedRelation: "tbl_org";
|
|
939
|
+
referencedColumns: ["org_id"];
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
foreignKeyName: "tbl_broadcast_chatlist_org_id_fkey";
|
|
943
|
+
columns: ["org_id"];
|
|
944
|
+
isOneToOne: false;
|
|
945
|
+
referencedRelation: "view_org";
|
|
946
|
+
referencedColumns: ["org_id"];
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
foreignKeyName: "tbl_broadcast_chatlist_org_id_fkey";
|
|
950
|
+
columns: ["org_id"];
|
|
951
|
+
isOneToOne: false;
|
|
952
|
+
referencedRelation: "view_org_all";
|
|
953
|
+
referencedColumns: ["org_id"];
|
|
954
|
+
}
|
|
955
|
+
];
|
|
956
|
+
};
|
|
896
957
|
tbl_broadcast_logs: {
|
|
897
958
|
Row: {
|
|
898
959
|
broadcast_id: string;
|
|
@@ -987,8 +1048,12 @@ export type Database = {
|
|
|
987
1048
|
message_payload: Json | null;
|
|
988
1049
|
org_id: string;
|
|
989
1050
|
org_phone: string | null;
|
|
1051
|
+
org_phones: string[] | null;
|
|
1052
|
+
parent_broadcast_id: string | null;
|
|
990
1053
|
performed_at: string | null;
|
|
991
1054
|
performed_by: string | null;
|
|
1055
|
+
previous_retries: Json | null;
|
|
1056
|
+
retry_count: number;
|
|
992
1057
|
scheduled_at: string | null;
|
|
993
1058
|
variables: Json | null;
|
|
994
1059
|
};
|
|
@@ -1001,8 +1066,12 @@ export type Database = {
|
|
|
1001
1066
|
message_payload?: Json | null;
|
|
1002
1067
|
org_id: string;
|
|
1003
1068
|
org_phone?: string | null;
|
|
1069
|
+
org_phones?: string[] | null;
|
|
1070
|
+
parent_broadcast_id?: string | null;
|
|
1004
1071
|
performed_at?: string | null;
|
|
1005
1072
|
performed_by?: string | null;
|
|
1073
|
+
previous_retries?: Json | null;
|
|
1074
|
+
retry_count?: number;
|
|
1006
1075
|
scheduled_at?: string | null;
|
|
1007
1076
|
variables?: Json | null;
|
|
1008
1077
|
};
|
|
@@ -1015,8 +1084,12 @@ export type Database = {
|
|
|
1015
1084
|
message_payload?: Json | null;
|
|
1016
1085
|
org_id?: string;
|
|
1017
1086
|
org_phone?: string | null;
|
|
1087
|
+
org_phones?: string[] | null;
|
|
1088
|
+
parent_broadcast_id?: string | null;
|
|
1018
1089
|
performed_at?: string | null;
|
|
1019
1090
|
performed_by?: string | null;
|
|
1091
|
+
previous_retries?: Json | null;
|
|
1092
|
+
retry_count?: number;
|
|
1020
1093
|
scheduled_at?: string | null;
|
|
1021
1094
|
variables?: Json | null;
|
|
1022
1095
|
};
|
|
@@ -2800,6 +2873,65 @@ export type Database = {
|
|
|
2800
2873
|
}
|
|
2801
2874
|
];
|
|
2802
2875
|
};
|
|
2876
|
+
tbl_recurring_broadcasts: {
|
|
2877
|
+
Row: {
|
|
2878
|
+
chat_ids: string[];
|
|
2879
|
+
created_at: string;
|
|
2880
|
+
delay: number | null;
|
|
2881
|
+
scheduled_id: string;
|
|
2882
|
+
is_active: boolean;
|
|
2883
|
+
message_payload: Json;
|
|
2884
|
+
next_occurrence_at: string;
|
|
2885
|
+
occurrence_count: number;
|
|
2886
|
+
org_id: string;
|
|
2887
|
+
org_phones: string[] | null;
|
|
2888
|
+
performed_by: string | null;
|
|
2889
|
+
repeat_config: Json;
|
|
2890
|
+
updated_at: string;
|
|
2891
|
+
variables: Json | null;
|
|
2892
|
+
};
|
|
2893
|
+
Insert: {
|
|
2894
|
+
chat_ids: string[];
|
|
2895
|
+
created_at?: string;
|
|
2896
|
+
delay?: number | null;
|
|
2897
|
+
scheduled_id?: string;
|
|
2898
|
+
is_active?: boolean;
|
|
2899
|
+
message_payload: Json;
|
|
2900
|
+
next_occurrence_at: string;
|
|
2901
|
+
occurrence_count?: number;
|
|
2902
|
+
org_id: string;
|
|
2903
|
+
org_phones?: string[] | null;
|
|
2904
|
+
performed_by?: string | null;
|
|
2905
|
+
repeat_config: Json;
|
|
2906
|
+
updated_at?: string;
|
|
2907
|
+
variables?: Json | null;
|
|
2908
|
+
};
|
|
2909
|
+
Update: {
|
|
2910
|
+
chat_ids?: string[];
|
|
2911
|
+
created_at?: string;
|
|
2912
|
+
delay?: number | null;
|
|
2913
|
+
scheduled_id?: string;
|
|
2914
|
+
is_active?: boolean;
|
|
2915
|
+
message_payload?: Json;
|
|
2916
|
+
next_occurrence_at?: string;
|
|
2917
|
+
occurrence_count?: number;
|
|
2918
|
+
org_id?: string;
|
|
2919
|
+
org_phones?: string[] | null;
|
|
2920
|
+
performed_by?: string | null;
|
|
2921
|
+
repeat_config?: Json;
|
|
2922
|
+
updated_at?: string;
|
|
2923
|
+
variables?: Json | null;
|
|
2924
|
+
};
|
|
2925
|
+
Relationships: [
|
|
2926
|
+
{
|
|
2927
|
+
foreignKeyName: "tbl_recurring_broadcasts_org_id_fkey";
|
|
2928
|
+
columns: ["org_id"];
|
|
2929
|
+
isOneToOne: false;
|
|
2930
|
+
referencedRelation: "tbl_org";
|
|
2931
|
+
referencedColumns: ["org_id"];
|
|
2932
|
+
}
|
|
2933
|
+
];
|
|
2934
|
+
};
|
|
2803
2935
|
tbl_recurring_messages: {
|
|
2804
2936
|
Row: {
|
|
2805
2937
|
chat_id: string;
|
|
@@ -3163,12 +3295,19 @@ export type Database = {
|
|
|
3163
3295
|
failed_chats: number | null;
|
|
3164
3296
|
message_payload: Json | null;
|
|
3165
3297
|
org_id: string | null;
|
|
3298
|
+
parent_broadcast_id: string | null;
|
|
3166
3299
|
pending_chats: number | null;
|
|
3167
3300
|
performed_at: string | null;
|
|
3168
3301
|
performed_by: string | null;
|
|
3302
|
+
previous_retries: Json | null;
|
|
3169
3303
|
read_percentage: number | null;
|
|
3304
|
+
retry_count: number | null;
|
|
3170
3305
|
scheduled_at: string | null;
|
|
3171
3306
|
sent_chats: number | null;
|
|
3307
|
+
is_active: boolean | null;
|
|
3308
|
+
next_occurrence_at: string | null;
|
|
3309
|
+
occurrence_count: number | null;
|
|
3310
|
+
repeat_config: Json | null;
|
|
3172
3311
|
total_chats: number | null;
|
|
3173
3312
|
total_delivered_count: number | null;
|
|
3174
3313
|
total_member_count: number | null;
|
|
@@ -3625,6 +3764,7 @@ export type Database = {
|
|
|
3625
3764
|
chat_id_input?: string[];
|
|
3626
3765
|
chat_type_input?: string;
|
|
3627
3766
|
end_date_input?: string;
|
|
3767
|
+
filter_by_input?: string;
|
|
3628
3768
|
limit_input?: number;
|
|
3629
3769
|
offset_input?: number;
|
|
3630
3770
|
org_id_input: string;
|