@periskope/types 0.6.58 → 0.6.61
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/supabase.types.d.ts +73 -35
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/supabase.types.ts +73 -35
- package/types.ts +1 -0
package/dist/supabase.types.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface Database {
|
|
|
46
46
|
completed_at?: string | null;
|
|
47
47
|
created_at?: string;
|
|
48
48
|
message_payload?: Json | null;
|
|
49
|
-
org_id
|
|
49
|
+
org_id: string;
|
|
50
50
|
performed_by?: string | null;
|
|
51
51
|
scheduled_at?: string | null;
|
|
52
52
|
};
|
|
@@ -82,7 +82,7 @@ export interface Database {
|
|
|
82
82
|
Insert: {
|
|
83
83
|
created_at?: string;
|
|
84
84
|
message_payload?: Json | null;
|
|
85
|
-
org_id
|
|
85
|
+
org_id: string;
|
|
86
86
|
template_id?: string;
|
|
87
87
|
template_name?: string | null;
|
|
88
88
|
updated_at?: string | null;
|
|
@@ -120,7 +120,7 @@ export interface Database {
|
|
|
120
120
|
email: string;
|
|
121
121
|
has_access?: boolean | null;
|
|
122
122
|
last_read_timestamp?: string | null;
|
|
123
|
-
org_id
|
|
123
|
+
org_id: string;
|
|
124
124
|
};
|
|
125
125
|
Update: {
|
|
126
126
|
active_phone?: string | null;
|
|
@@ -130,15 +130,7 @@ export interface Database {
|
|
|
130
130
|
last_read_timestamp?: string | null;
|
|
131
131
|
org_id?: string;
|
|
132
132
|
};
|
|
133
|
-
Relationships: [
|
|
134
|
-
{
|
|
135
|
-
foreignKeyName: "tbl_chat_access_org_id_email_fkey";
|
|
136
|
-
columns: ["org_id", "email"];
|
|
137
|
-
isOneToOne: false;
|
|
138
|
-
referencedRelation: "tbl_org_members";
|
|
139
|
-
referencedColumns: ["org_id", "email"];
|
|
140
|
-
}
|
|
141
|
-
];
|
|
133
|
+
Relationships: [];
|
|
142
134
|
};
|
|
143
135
|
tbl_chat_messages: {
|
|
144
136
|
Row: {
|
|
@@ -442,15 +434,7 @@ export interface Database {
|
|
|
442
434
|
timestamp?: string | null;
|
|
443
435
|
unique_id?: string | null;
|
|
444
436
|
};
|
|
445
|
-
Relationships: [
|
|
446
|
-
{
|
|
447
|
-
foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones";
|
|
448
|
-
columns: ["org_id", "org_phone"];
|
|
449
|
-
isOneToOne: false;
|
|
450
|
-
referencedRelation: "tbl_org_phones";
|
|
451
|
-
referencedColumns: ["org_id", "org_phone"];
|
|
452
|
-
}
|
|
453
|
-
];
|
|
437
|
+
Relationships: [];
|
|
454
438
|
};
|
|
455
439
|
tbl_chat_tickets: {
|
|
456
440
|
Row: {
|
|
@@ -464,7 +448,7 @@ export interface Database {
|
|
|
464
448
|
last_updated_at: string;
|
|
465
449
|
org_id: string;
|
|
466
450
|
priority: number | null;
|
|
467
|
-
quoted_message_id: string;
|
|
451
|
+
quoted_message_id: string | null;
|
|
468
452
|
raised_by: string | null;
|
|
469
453
|
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
470
454
|
subject: string;
|
|
@@ -479,9 +463,9 @@ export interface Database {
|
|
|
479
463
|
is_deleted?: boolean;
|
|
480
464
|
label_ids?: Json | null;
|
|
481
465
|
last_updated_at?: string;
|
|
482
|
-
org_id
|
|
466
|
+
org_id: string;
|
|
483
467
|
priority?: number | null;
|
|
484
|
-
quoted_message_id
|
|
468
|
+
quoted_message_id?: string | null;
|
|
485
469
|
raised_by?: string | null;
|
|
486
470
|
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
487
471
|
subject: string;
|
|
@@ -498,7 +482,7 @@ export interface Database {
|
|
|
498
482
|
last_updated_at?: string;
|
|
499
483
|
org_id?: string;
|
|
500
484
|
priority?: number | null;
|
|
501
|
-
quoted_message_id?: string;
|
|
485
|
+
quoted_message_id?: string | null;
|
|
502
486
|
raised_by?: string | null;
|
|
503
487
|
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
504
488
|
subject?: string;
|
|
@@ -519,6 +503,7 @@ export interface Database {
|
|
|
519
503
|
archived: boolean | null;
|
|
520
504
|
chat_id: string;
|
|
521
505
|
chat_image: string | null;
|
|
506
|
+
custom_properties: Json | null;
|
|
522
507
|
group_metadata: Json | null;
|
|
523
508
|
id: Json | null;
|
|
524
509
|
invite_link: string | null;
|
|
@@ -541,6 +526,7 @@ export interface Database {
|
|
|
541
526
|
archived?: boolean | null;
|
|
542
527
|
chat_id: string;
|
|
543
528
|
chat_image?: string | null;
|
|
529
|
+
custom_properties?: Json | null;
|
|
544
530
|
group_metadata?: Json | null;
|
|
545
531
|
id?: Json | null;
|
|
546
532
|
invite_link?: string | null;
|
|
@@ -563,6 +549,7 @@ export interface Database {
|
|
|
563
549
|
archived?: boolean | null;
|
|
564
550
|
chat_id?: string;
|
|
565
551
|
chat_image?: string | null;
|
|
552
|
+
custom_properties?: Json | null;
|
|
566
553
|
group_metadata?: Json | null;
|
|
567
554
|
id?: Json | null;
|
|
568
555
|
invite_link?: string | null;
|
|
@@ -683,6 +670,47 @@ export interface Database {
|
|
|
683
670
|
}
|
|
684
671
|
];
|
|
685
672
|
};
|
|
673
|
+
tbl_custom_properties: {
|
|
674
|
+
Row: {
|
|
675
|
+
created_at: string;
|
|
676
|
+
created_by: string | null;
|
|
677
|
+
org_id: string | null;
|
|
678
|
+
property_id: string;
|
|
679
|
+
property_name: string;
|
|
680
|
+
property_value: string | null;
|
|
681
|
+
property_value_type: string | null;
|
|
682
|
+
type: string | null;
|
|
683
|
+
};
|
|
684
|
+
Insert: {
|
|
685
|
+
created_at?: string;
|
|
686
|
+
created_by?: string | null;
|
|
687
|
+
org_id?: string | null;
|
|
688
|
+
property_id?: string;
|
|
689
|
+
property_name: string;
|
|
690
|
+
property_value?: string | null;
|
|
691
|
+
property_value_type?: string | null;
|
|
692
|
+
type?: string | null;
|
|
693
|
+
};
|
|
694
|
+
Update: {
|
|
695
|
+
created_at?: string;
|
|
696
|
+
created_by?: string | null;
|
|
697
|
+
org_id?: string | null;
|
|
698
|
+
property_id?: string;
|
|
699
|
+
property_name?: string;
|
|
700
|
+
property_value?: string | null;
|
|
701
|
+
property_value_type?: string | null;
|
|
702
|
+
type?: string | null;
|
|
703
|
+
};
|
|
704
|
+
Relationships: [
|
|
705
|
+
{
|
|
706
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
707
|
+
columns: ["org_id"];
|
|
708
|
+
isOneToOne: false;
|
|
709
|
+
referencedRelation: "tbl_org";
|
|
710
|
+
referencedColumns: ["org_id"];
|
|
711
|
+
}
|
|
712
|
+
];
|
|
713
|
+
};
|
|
686
714
|
tbl_org: {
|
|
687
715
|
Row: {
|
|
688
716
|
created_at: string;
|
|
@@ -736,7 +764,7 @@ export interface Database {
|
|
|
736
764
|
created_at?: string;
|
|
737
765
|
label_id?: string;
|
|
738
766
|
name: string;
|
|
739
|
-
org_id
|
|
767
|
+
org_id: string;
|
|
740
768
|
type?: string;
|
|
741
769
|
};
|
|
742
770
|
Update: {
|
|
@@ -831,7 +859,7 @@ export interface Database {
|
|
|
831
859
|
Insert: {
|
|
832
860
|
created_at?: string;
|
|
833
861
|
is_ready?: boolean | null;
|
|
834
|
-
org_id
|
|
862
|
+
org_id: string;
|
|
835
863
|
org_phone?: string | null;
|
|
836
864
|
phone_id?: string;
|
|
837
865
|
phone_image?: string | null;
|
|
@@ -910,6 +938,7 @@ export interface Database {
|
|
|
910
938
|
chat_name: string | null;
|
|
911
939
|
chat_org_phones: string[] | null;
|
|
912
940
|
chat_type: string | null;
|
|
941
|
+
custom_properties: Json | null;
|
|
913
942
|
group_description: string | null;
|
|
914
943
|
has_access: boolean | null;
|
|
915
944
|
invite_link: string | null;
|
|
@@ -933,6 +962,12 @@ export interface Database {
|
|
|
933
962
|
};
|
|
934
963
|
};
|
|
935
964
|
Functions: {
|
|
965
|
+
custom_access_token_hook: {
|
|
966
|
+
Args: {
|
|
967
|
+
event: Json;
|
|
968
|
+
};
|
|
969
|
+
Returns: Json;
|
|
970
|
+
};
|
|
936
971
|
gen_id: {
|
|
937
972
|
Args: {
|
|
938
973
|
prefix: string;
|
|
@@ -943,7 +978,7 @@ export interface Database {
|
|
|
943
978
|
};
|
|
944
979
|
gen_ticket_id: {
|
|
945
980
|
Args: {
|
|
946
|
-
org_id_input
|
|
981
|
+
org_id_input: string;
|
|
947
982
|
};
|
|
948
983
|
Returns: string;
|
|
949
984
|
};
|
|
@@ -951,27 +986,28 @@ export interface Database {
|
|
|
951
986
|
Args: {
|
|
952
987
|
broadcast_id_input: string;
|
|
953
988
|
chat_id_input?: string;
|
|
954
|
-
org_id_input?: string;
|
|
955
989
|
};
|
|
956
990
|
Returns: Json;
|
|
957
991
|
};
|
|
958
992
|
get_chat_labels_data: {
|
|
959
993
|
Args: {
|
|
994
|
+
org_id_input: string;
|
|
960
995
|
chat_ids_input?: string[];
|
|
961
996
|
};
|
|
962
997
|
Returns: unknown;
|
|
963
998
|
};
|
|
964
999
|
get_chats: {
|
|
965
1000
|
Args: {
|
|
1001
|
+
org_id_input: string;
|
|
966
1002
|
chat_id_input?: string[];
|
|
967
1003
|
with_metadata?: boolean;
|
|
968
1004
|
last_updated_at_input?: string;
|
|
969
|
-
org_id_input?: string;
|
|
970
1005
|
};
|
|
971
1006
|
Returns: Json;
|
|
972
1007
|
};
|
|
973
1008
|
get_contacts: {
|
|
974
1009
|
Args: {
|
|
1010
|
+
org_id_input: string;
|
|
975
1011
|
contact_ids_input?: string[];
|
|
976
1012
|
last_updated_at_input?: string;
|
|
977
1013
|
};
|
|
@@ -979,6 +1015,7 @@ export interface Database {
|
|
|
979
1015
|
};
|
|
980
1016
|
get_dashboard_statistics: {
|
|
981
1017
|
Args: {
|
|
1018
|
+
org_id_input: string;
|
|
982
1019
|
type_input?: string;
|
|
983
1020
|
interval_input?: unknown;
|
|
984
1021
|
};
|
|
@@ -986,30 +1023,30 @@ export interface Database {
|
|
|
986
1023
|
};
|
|
987
1024
|
get_export_chats_data: {
|
|
988
1025
|
Args: {
|
|
989
|
-
|
|
990
|
-
|
|
1026
|
+
org_id_input: string;
|
|
1027
|
+
chat_ids?: string[];
|
|
991
1028
|
};
|
|
992
1029
|
Returns: Json;
|
|
993
1030
|
};
|
|
994
1031
|
get_messages_notifications_reactions: {
|
|
995
1032
|
Args: {
|
|
1033
|
+
org_id_input: string;
|
|
996
1034
|
chat_id_input?: string[];
|
|
997
1035
|
message_limit_input?: number;
|
|
998
1036
|
reaction_notification_limit_input?: number;
|
|
999
|
-
org_id_input?: string;
|
|
1000
1037
|
last_updated_at_input?: string;
|
|
1001
1038
|
};
|
|
1002
1039
|
Returns: Json;
|
|
1003
1040
|
};
|
|
1004
1041
|
get_org: {
|
|
1005
1042
|
Args: {
|
|
1006
|
-
org_id_input
|
|
1043
|
+
org_id_input: string;
|
|
1007
1044
|
};
|
|
1008
1045
|
Returns: Json;
|
|
1009
1046
|
};
|
|
1010
1047
|
list_org_from_user: {
|
|
1011
1048
|
Args: Record<PropertyKey, never>;
|
|
1012
|
-
Returns:
|
|
1049
|
+
Returns: unknown;
|
|
1013
1050
|
};
|
|
1014
1051
|
list_role_from_user: {
|
|
1015
1052
|
Args: Record<PropertyKey, never>;
|
|
@@ -1017,6 +1054,7 @@ export interface Database {
|
|
|
1017
1054
|
};
|
|
1018
1055
|
update_labels: {
|
|
1019
1056
|
Args: {
|
|
1057
|
+
org_id_input: string;
|
|
1020
1058
|
tbl_type: string;
|
|
1021
1059
|
label_ids_input: Json;
|
|
1022
1060
|
row_id_input: string[];
|
package/dist/types.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export type OrgType = OverrideProperties<Tables<'tbl_org'> & {
|
|
|
39
39
|
members: Tables<'tbl_org_members'>[];
|
|
40
40
|
phones: Tables<'tbl_org_phones'>[];
|
|
41
41
|
labels: Tables<'tbl_org_labels'>[];
|
|
42
|
+
custom_properties: Tables<'tbl_custom_properties'>[];
|
|
42
43
|
}, {
|
|
43
44
|
org_plan: OrgPlan<AllPlans | Enterprise>;
|
|
44
45
|
stripe_customer_details: _Stripe.Customer | null;
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface Database {
|
|
|
45
45
|
completed_at?: string | null
|
|
46
46
|
created_at?: string
|
|
47
47
|
message_payload?: Json | null
|
|
48
|
-
org_id
|
|
48
|
+
org_id: string
|
|
49
49
|
performed_by?: string | null
|
|
50
50
|
scheduled_at?: string | null
|
|
51
51
|
}
|
|
@@ -81,7 +81,7 @@ export interface Database {
|
|
|
81
81
|
Insert: {
|
|
82
82
|
created_at?: string
|
|
83
83
|
message_payload?: Json | null
|
|
84
|
-
org_id
|
|
84
|
+
org_id: string
|
|
85
85
|
template_id?: string
|
|
86
86
|
template_name?: string | null
|
|
87
87
|
updated_at?: string | null
|
|
@@ -119,7 +119,7 @@ export interface Database {
|
|
|
119
119
|
email: string
|
|
120
120
|
has_access?: boolean | null
|
|
121
121
|
last_read_timestamp?: string | null
|
|
122
|
-
org_id
|
|
122
|
+
org_id: string
|
|
123
123
|
}
|
|
124
124
|
Update: {
|
|
125
125
|
active_phone?: string | null
|
|
@@ -129,15 +129,7 @@ export interface Database {
|
|
|
129
129
|
last_read_timestamp?: string | null
|
|
130
130
|
org_id?: string
|
|
131
131
|
}
|
|
132
|
-
Relationships: [
|
|
133
|
-
{
|
|
134
|
-
foreignKeyName: "tbl_chat_access_org_id_email_fkey"
|
|
135
|
-
columns: ["org_id", "email"]
|
|
136
|
-
isOneToOne: false
|
|
137
|
-
referencedRelation: "tbl_org_members"
|
|
138
|
-
referencedColumns: ["org_id", "email"]
|
|
139
|
-
}
|
|
140
|
-
]
|
|
132
|
+
Relationships: []
|
|
141
133
|
}
|
|
142
134
|
tbl_chat_messages: {
|
|
143
135
|
Row: {
|
|
@@ -441,15 +433,7 @@ export interface Database {
|
|
|
441
433
|
timestamp?: string | null
|
|
442
434
|
unique_id?: string | null
|
|
443
435
|
}
|
|
444
|
-
Relationships: [
|
|
445
|
-
{
|
|
446
|
-
foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones"
|
|
447
|
-
columns: ["org_id", "org_phone"]
|
|
448
|
-
isOneToOne: false
|
|
449
|
-
referencedRelation: "tbl_org_phones"
|
|
450
|
-
referencedColumns: ["org_id", "org_phone"]
|
|
451
|
-
}
|
|
452
|
-
]
|
|
436
|
+
Relationships: []
|
|
453
437
|
}
|
|
454
438
|
tbl_chat_tickets: {
|
|
455
439
|
Row: {
|
|
@@ -463,7 +447,7 @@ export interface Database {
|
|
|
463
447
|
last_updated_at: string
|
|
464
448
|
org_id: string
|
|
465
449
|
priority: number | null
|
|
466
|
-
quoted_message_id: string
|
|
450
|
+
quoted_message_id: string | null
|
|
467
451
|
raised_by: string | null
|
|
468
452
|
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null
|
|
469
453
|
subject: string
|
|
@@ -478,9 +462,9 @@ export interface Database {
|
|
|
478
462
|
is_deleted?: boolean
|
|
479
463
|
label_ids?: Json | null
|
|
480
464
|
last_updated_at?: string
|
|
481
|
-
org_id
|
|
465
|
+
org_id: string
|
|
482
466
|
priority?: number | null
|
|
483
|
-
quoted_message_id
|
|
467
|
+
quoted_message_id?: string | null
|
|
484
468
|
raised_by?: string | null
|
|
485
469
|
status?:
|
|
486
470
|
| Database["public"]["Enums"]["enum_chat_tickets_status"]
|
|
@@ -499,7 +483,7 @@ export interface Database {
|
|
|
499
483
|
last_updated_at?: string
|
|
500
484
|
org_id?: string
|
|
501
485
|
priority?: number | null
|
|
502
|
-
quoted_message_id?: string
|
|
486
|
+
quoted_message_id?: string | null
|
|
503
487
|
raised_by?: string | null
|
|
504
488
|
status?:
|
|
505
489
|
| Database["public"]["Enums"]["enum_chat_tickets_status"]
|
|
@@ -522,6 +506,7 @@ export interface Database {
|
|
|
522
506
|
archived: boolean | null
|
|
523
507
|
chat_id: string
|
|
524
508
|
chat_image: string | null
|
|
509
|
+
custom_properties: Json | null
|
|
525
510
|
group_metadata: Json | null
|
|
526
511
|
id: Json | null
|
|
527
512
|
invite_link: string | null
|
|
@@ -544,6 +529,7 @@ export interface Database {
|
|
|
544
529
|
archived?: boolean | null
|
|
545
530
|
chat_id: string
|
|
546
531
|
chat_image?: string | null
|
|
532
|
+
custom_properties?: Json | null
|
|
547
533
|
group_metadata?: Json | null
|
|
548
534
|
id?: Json | null
|
|
549
535
|
invite_link?: string | null
|
|
@@ -566,6 +552,7 @@ export interface Database {
|
|
|
566
552
|
archived?: boolean | null
|
|
567
553
|
chat_id?: string
|
|
568
554
|
chat_image?: string | null
|
|
555
|
+
custom_properties?: Json | null
|
|
569
556
|
group_metadata?: Json | null
|
|
570
557
|
id?: Json | null
|
|
571
558
|
invite_link?: string | null
|
|
@@ -686,6 +673,47 @@ export interface Database {
|
|
|
686
673
|
}
|
|
687
674
|
]
|
|
688
675
|
}
|
|
676
|
+
tbl_custom_properties: {
|
|
677
|
+
Row: {
|
|
678
|
+
created_at: string
|
|
679
|
+
created_by: string | null
|
|
680
|
+
org_id: string | null
|
|
681
|
+
property_id: string
|
|
682
|
+
property_name: string
|
|
683
|
+
property_value: string | null
|
|
684
|
+
property_value_type: string | null
|
|
685
|
+
type: string | null
|
|
686
|
+
}
|
|
687
|
+
Insert: {
|
|
688
|
+
created_at?: string
|
|
689
|
+
created_by?: string | null
|
|
690
|
+
org_id?: string | null
|
|
691
|
+
property_id?: string
|
|
692
|
+
property_name: string
|
|
693
|
+
property_value?: string | null
|
|
694
|
+
property_value_type?: string | null
|
|
695
|
+
type?: string | null
|
|
696
|
+
}
|
|
697
|
+
Update: {
|
|
698
|
+
created_at?: string
|
|
699
|
+
created_by?: string | null
|
|
700
|
+
org_id?: string | null
|
|
701
|
+
property_id?: string
|
|
702
|
+
property_name?: string
|
|
703
|
+
property_value?: string | null
|
|
704
|
+
property_value_type?: string | null
|
|
705
|
+
type?: string | null
|
|
706
|
+
}
|
|
707
|
+
Relationships: [
|
|
708
|
+
{
|
|
709
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey"
|
|
710
|
+
columns: ["org_id"]
|
|
711
|
+
isOneToOne: false
|
|
712
|
+
referencedRelation: "tbl_org"
|
|
713
|
+
referencedColumns: ["org_id"]
|
|
714
|
+
}
|
|
715
|
+
]
|
|
716
|
+
}
|
|
689
717
|
tbl_org: {
|
|
690
718
|
Row: {
|
|
691
719
|
created_at: string
|
|
@@ -739,7 +767,7 @@ export interface Database {
|
|
|
739
767
|
created_at?: string
|
|
740
768
|
label_id?: string
|
|
741
769
|
name: string
|
|
742
|
-
org_id
|
|
770
|
+
org_id: string
|
|
743
771
|
type?: string
|
|
744
772
|
}
|
|
745
773
|
Update: {
|
|
@@ -834,7 +862,7 @@ export interface Database {
|
|
|
834
862
|
Insert: {
|
|
835
863
|
created_at?: string
|
|
836
864
|
is_ready?: boolean | null
|
|
837
|
-
org_id
|
|
865
|
+
org_id: string
|
|
838
866
|
org_phone?: string | null
|
|
839
867
|
phone_id?: string
|
|
840
868
|
phone_image?: string | null
|
|
@@ -913,6 +941,7 @@ export interface Database {
|
|
|
913
941
|
chat_name: string | null
|
|
914
942
|
chat_org_phones: string[] | null
|
|
915
943
|
chat_type: string | null
|
|
944
|
+
custom_properties: Json | null
|
|
916
945
|
group_description: string | null
|
|
917
946
|
has_access: boolean | null
|
|
918
947
|
invite_link: string | null
|
|
@@ -936,6 +965,12 @@ export interface Database {
|
|
|
936
965
|
}
|
|
937
966
|
}
|
|
938
967
|
Functions: {
|
|
968
|
+
custom_access_token_hook: {
|
|
969
|
+
Args: {
|
|
970
|
+
event: Json
|
|
971
|
+
}
|
|
972
|
+
Returns: Json
|
|
973
|
+
}
|
|
939
974
|
gen_id: {
|
|
940
975
|
Args: {
|
|
941
976
|
prefix: string
|
|
@@ -946,7 +981,7 @@ export interface Database {
|
|
|
946
981
|
}
|
|
947
982
|
gen_ticket_id: {
|
|
948
983
|
Args: {
|
|
949
|
-
org_id_input
|
|
984
|
+
org_id_input: string
|
|
950
985
|
}
|
|
951
986
|
Returns: string
|
|
952
987
|
}
|
|
@@ -954,27 +989,28 @@ export interface Database {
|
|
|
954
989
|
Args: {
|
|
955
990
|
broadcast_id_input: string
|
|
956
991
|
chat_id_input?: string
|
|
957
|
-
org_id_input?: string
|
|
958
992
|
}
|
|
959
993
|
Returns: Json
|
|
960
994
|
}
|
|
961
995
|
get_chat_labels_data: {
|
|
962
996
|
Args: {
|
|
997
|
+
org_id_input: string
|
|
963
998
|
chat_ids_input?: string[]
|
|
964
999
|
}
|
|
965
1000
|
Returns: unknown
|
|
966
1001
|
}
|
|
967
1002
|
get_chats: {
|
|
968
1003
|
Args: {
|
|
1004
|
+
org_id_input: string
|
|
969
1005
|
chat_id_input?: string[]
|
|
970
1006
|
with_metadata?: boolean
|
|
971
1007
|
last_updated_at_input?: string
|
|
972
|
-
org_id_input?: string
|
|
973
1008
|
}
|
|
974
1009
|
Returns: Json
|
|
975
1010
|
}
|
|
976
1011
|
get_contacts: {
|
|
977
1012
|
Args: {
|
|
1013
|
+
org_id_input: string
|
|
978
1014
|
contact_ids_input?: string[]
|
|
979
1015
|
last_updated_at_input?: string
|
|
980
1016
|
}
|
|
@@ -982,6 +1018,7 @@ export interface Database {
|
|
|
982
1018
|
}
|
|
983
1019
|
get_dashboard_statistics: {
|
|
984
1020
|
Args: {
|
|
1021
|
+
org_id_input: string
|
|
985
1022
|
type_input?: string
|
|
986
1023
|
interval_input?: unknown
|
|
987
1024
|
}
|
|
@@ -989,30 +1026,30 @@ export interface Database {
|
|
|
989
1026
|
}
|
|
990
1027
|
get_export_chats_data: {
|
|
991
1028
|
Args: {
|
|
992
|
-
|
|
993
|
-
|
|
1029
|
+
org_id_input: string
|
|
1030
|
+
chat_ids?: string[]
|
|
994
1031
|
}
|
|
995
1032
|
Returns: Json
|
|
996
1033
|
}
|
|
997
1034
|
get_messages_notifications_reactions: {
|
|
998
1035
|
Args: {
|
|
1036
|
+
org_id_input: string
|
|
999
1037
|
chat_id_input?: string[]
|
|
1000
1038
|
message_limit_input?: number
|
|
1001
1039
|
reaction_notification_limit_input?: number
|
|
1002
|
-
org_id_input?: string
|
|
1003
1040
|
last_updated_at_input?: string
|
|
1004
1041
|
}
|
|
1005
1042
|
Returns: Json
|
|
1006
1043
|
}
|
|
1007
1044
|
get_org: {
|
|
1008
1045
|
Args: {
|
|
1009
|
-
org_id_input
|
|
1046
|
+
org_id_input: string
|
|
1010
1047
|
}
|
|
1011
1048
|
Returns: Json
|
|
1012
1049
|
}
|
|
1013
1050
|
list_org_from_user: {
|
|
1014
1051
|
Args: Record<PropertyKey, never>
|
|
1015
|
-
Returns:
|
|
1052
|
+
Returns: unknown
|
|
1016
1053
|
}
|
|
1017
1054
|
list_role_from_user: {
|
|
1018
1055
|
Args: Record<PropertyKey, never>
|
|
@@ -1020,6 +1057,7 @@ export interface Database {
|
|
|
1020
1057
|
}
|
|
1021
1058
|
update_labels: {
|
|
1022
1059
|
Args: {
|
|
1060
|
+
org_id_input: string
|
|
1023
1061
|
tbl_type: string
|
|
1024
1062
|
label_ids_input: Json
|
|
1025
1063
|
row_id_input: string[]
|
package/types.ts
CHANGED
|
@@ -58,6 +58,7 @@ export type OrgType = OverrideProperties<
|
|
|
58
58
|
members: Tables<'tbl_org_members'>[];
|
|
59
59
|
phones: Tables<'tbl_org_phones'>[];
|
|
60
60
|
labels: Tables<'tbl_org_labels'>[];
|
|
61
|
+
custom_properties: Tables<'tbl_custom_properties'>[];
|
|
61
62
|
},
|
|
62
63
|
{
|
|
63
64
|
org_plan: OrgPlan<AllPlans | Enterprise>;
|