@periskope/types 0.6.145 → 0.6.147
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 +9 -17
- package/dist/rules.types.js +286 -42
- package/dist/supabase.types.d.ts +293 -255
- package/dist/types.d.ts +16 -44
- package/package.json +1 -1
- package/rules.types.ts +311 -105
- package/supabase.types.ts +2134 -2102
- package/types.ts +81 -49
package/types.ts
CHANGED
|
@@ -83,6 +83,14 @@ export type OrgMetadata = {
|
|
|
83
83
|
default_stage: { id: string; label: string };
|
|
84
84
|
}[];
|
|
85
85
|
partition?: boolean;
|
|
86
|
+
tickets: {
|
|
87
|
+
prefix?: string;
|
|
88
|
+
emoji_ticketing: {
|
|
89
|
+
is_enabled?: boolean;
|
|
90
|
+
is_message_enabled?: boolean;
|
|
91
|
+
message_template?: string;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
86
94
|
};
|
|
87
95
|
|
|
88
96
|
type AccessScopes = {
|
|
@@ -146,7 +154,8 @@ export type ChatType = Merge<
|
|
|
146
154
|
unread_count?: { [key: string]: number };
|
|
147
155
|
active_phone: string | null;
|
|
148
156
|
flag_count_map?: { [key: string]: number };
|
|
149
|
-
|
|
157
|
+
is_archived?: boolean;
|
|
158
|
+
is_pinned?: boolean;
|
|
150
159
|
}
|
|
151
160
|
>;
|
|
152
161
|
|
|
@@ -606,7 +615,6 @@ export type ChatRuleInfoType = Merge<
|
|
|
606
615
|
| 'created_at'
|
|
607
616
|
| 'group_description'
|
|
608
617
|
| 'info_admins_only'
|
|
609
|
-
| 'is_archived'
|
|
610
618
|
| 'is_exited'
|
|
611
619
|
| 'is_muted'
|
|
612
620
|
| 'org_id'
|
|
@@ -618,23 +626,41 @@ export type ChatRuleInfoType = Merge<
|
|
|
618
626
|
{
|
|
619
627
|
has_flagged_messages: boolean;
|
|
620
628
|
labels: string[];
|
|
621
|
-
members:
|
|
629
|
+
members: string[];
|
|
622
630
|
custom_properties: { [key: string]: string } | null;
|
|
623
631
|
}
|
|
624
632
|
>;
|
|
625
633
|
|
|
626
|
-
export type SenderRuleInfoType =
|
|
627
|
-
|
|
634
|
+
export type SenderRuleInfoType = Merge<
|
|
635
|
+
Omit<
|
|
628
636
|
Merge<Tables<'tbl_contacts'>, Tables<'tbl_chat_participants'>>,
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
637
|
+
| 'verified_name'
|
|
638
|
+
| 'verified_level'
|
|
639
|
+
| 'updated_at'
|
|
640
|
+
| 'short_name'
|
|
641
|
+
| 'pushname'
|
|
642
|
+
| 'periskope_name'
|
|
643
|
+
| 'org_phone'
|
|
644
|
+
| 'number'
|
|
645
|
+
| 'name'
|
|
646
|
+
| 'label_ids'
|
|
647
|
+
| 'is_wa_contact'
|
|
648
|
+
| 'is_user'
|
|
649
|
+
| 'is_my_contact'
|
|
650
|
+
| 'is_me'
|
|
651
|
+
| 'is_imported'
|
|
652
|
+
| 'is_group'
|
|
653
|
+
| 'is_blocked'
|
|
654
|
+
| 'contact_color'
|
|
655
|
+
| 'business_profile'
|
|
656
|
+
| 'id'
|
|
657
|
+
| 'contact_image'
|
|
658
|
+
| 'contact_type'
|
|
659
|
+
| 'chat_id'
|
|
633
660
|
>,
|
|
634
661
|
{
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
label_ids: { [key: string]: boolean } | null;
|
|
662
|
+
is_internal: boolean;
|
|
663
|
+
labels: string[] | null;
|
|
638
664
|
}
|
|
639
665
|
>;
|
|
640
666
|
|
|
@@ -642,16 +668,48 @@ export type MessageRuleInfoType = {
|
|
|
642
668
|
chat: ChatRuleInfoType;
|
|
643
669
|
sender: SenderRuleInfoType;
|
|
644
670
|
message: OverrideProperties<
|
|
645
|
-
|
|
671
|
+
Omit<
|
|
672
|
+
Tables<'tbl_chat_messages'>,
|
|
673
|
+
| 'vcards'
|
|
674
|
+
| 'updated_at'
|
|
675
|
+
| 'unique_id'
|
|
676
|
+
| 'token'
|
|
677
|
+
| 'to'
|
|
678
|
+
| 'sent_message_id'
|
|
679
|
+
| 'raw_data'
|
|
680
|
+
| 'delivery_info'
|
|
681
|
+
| 'poll_results'
|
|
682
|
+
| 'poll_info'
|
|
683
|
+
| 'order_id'
|
|
684
|
+
| 'mentioned_ids'
|
|
685
|
+
| 'media_key'
|
|
686
|
+
| 'location'
|
|
687
|
+
| 'links'
|
|
688
|
+
| 'is_status'
|
|
689
|
+
| 'is_starred'
|
|
690
|
+
| 'is_gif'
|
|
691
|
+
| 'is_forwarded'
|
|
692
|
+
| 'is_ephemeral'
|
|
693
|
+
| 'is_deleted'
|
|
694
|
+
| 'fts'
|
|
695
|
+
| 'quoted_message_id'
|
|
696
|
+
| 'invite_v4'
|
|
697
|
+
| 'id'
|
|
698
|
+
| 'has_reaction'
|
|
699
|
+
| 'has_media'
|
|
700
|
+
| 'duration'
|
|
701
|
+
| 'broadcast'
|
|
702
|
+
| 'broadcast_id'
|
|
703
|
+
| 'device_type'
|
|
704
|
+
| 'forwarding_score'
|
|
705
|
+
| 'from'
|
|
706
|
+
| 'from_me'
|
|
707
|
+
| 'message_ticket_id'
|
|
708
|
+
| 'prev_body'
|
|
709
|
+
| 'flag_response_time'
|
|
710
|
+
| 'flag_metadata'
|
|
711
|
+
>,
|
|
646
712
|
{
|
|
647
|
-
delivery_info: DeliveryInfoType | null;
|
|
648
|
-
flag_metadata: MessageFlagType | null;
|
|
649
|
-
id: {
|
|
650
|
-
id: string;
|
|
651
|
-
remote: string;
|
|
652
|
-
from_me: boolean;
|
|
653
|
-
serialized: string;
|
|
654
|
-
} | null;
|
|
655
713
|
media: MediaType | null;
|
|
656
714
|
}
|
|
657
715
|
>;
|
|
@@ -661,22 +719,9 @@ export type ReactionRuleInfoType = {
|
|
|
661
719
|
chat: ChatRuleInfoType;
|
|
662
720
|
sender: SenderRuleInfoType;
|
|
663
721
|
message: MessageRuleInfoType['message'];
|
|
664
|
-
reaction:
|
|
722
|
+
reaction: Pick<
|
|
665
723
|
Tables<'tbl_chat_reactions'>,
|
|
666
|
-
|
|
667
|
-
id: {
|
|
668
|
-
id: string;
|
|
669
|
-
remote: string;
|
|
670
|
-
from_me: boolean;
|
|
671
|
-
serialized: string;
|
|
672
|
-
};
|
|
673
|
-
msg_id: {
|
|
674
|
-
id: string;
|
|
675
|
-
remote: string;
|
|
676
|
-
from_me: boolean;
|
|
677
|
-
serialized: string;
|
|
678
|
-
};
|
|
679
|
-
}
|
|
724
|
+
'reaction' | 'sender_id' | 'message_id' | 'chat_id' | 'reaction_id'
|
|
680
725
|
>;
|
|
681
726
|
};
|
|
682
727
|
|
|
@@ -693,27 +738,14 @@ export type TicketRuleInfoType = {
|
|
|
693
738
|
| 'assignee'
|
|
694
739
|
| 'due_date'
|
|
695
740
|
| 'priority'
|
|
696
|
-
| 'closed_at'
|
|
697
|
-
| 'label_ids'
|
|
698
741
|
| 'raised_by'
|
|
699
742
|
| 'ticket_id'
|
|
700
743
|
| 'created_at'
|
|
701
744
|
| 'is_deleted'
|
|
702
|
-
| 'assigned_by'
|
|
703
|
-
| 'response_time'
|
|
704
|
-
| 'last_updated_at'
|
|
705
|
-
| 'close_ticket_metadata'
|
|
706
|
-
| 'quoted_message_id'
|
|
707
745
|
>,
|
|
708
746
|
{
|
|
709
747
|
labels: string[] | null;
|
|
710
748
|
custom_properties: { [key: string]: string } | null;
|
|
711
|
-
close_ticket_metadata: {
|
|
712
|
-
closed_at: string;
|
|
713
|
-
closed_by: string;
|
|
714
|
-
closed_message: string;
|
|
715
|
-
send_reply_message_id: string;
|
|
716
|
-
};
|
|
717
749
|
}
|
|
718
750
|
>;
|
|
719
751
|
message: MessageRuleInfoType['message'];
|