@periskope/types 0.6.144 → 0.6.146
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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/supabase.types.d.ts +12 -42
- package/dist/types.d.ts +10 -74
- package/index.ts +1 -1
- package/package.json +1 -1
- package/supabase.types.ts +2540 -2570
- package/types.ts +593 -709
- package/dist/rules.types.d.ts +0 -273
- package/dist/rules.types.js +0 -679
- package/rules.types.ts +0 -1102
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./rules.types"), exports);
|
|
18
17
|
__exportStar(require("./supabase.types"), exports);
|
|
19
18
|
__exportStar(require("./types"), exports);
|
package/dist/supabase.types.d.ts
CHANGED
|
@@ -1750,13 +1750,11 @@ export type Database = {
|
|
|
1750
1750
|
chat_type: string | null;
|
|
1751
1751
|
created_at: string | null;
|
|
1752
1752
|
custom_properties: Json | null;
|
|
1753
|
-
flag_count: number | null;
|
|
1754
1753
|
flag_count_map: Json | null;
|
|
1755
1754
|
group_description: string | null;
|
|
1756
1755
|
hubspot_metadata: Json | null;
|
|
1757
1756
|
info_admins_only: boolean | null;
|
|
1758
1757
|
invite_link: string | null;
|
|
1759
|
-
is_archived: boolean | null;
|
|
1760
1758
|
is_exited: boolean | null;
|
|
1761
1759
|
is_muted: boolean | null;
|
|
1762
1760
|
label_ids: Json | null;
|
|
@@ -1864,6 +1862,15 @@ export type Database = {
|
|
|
1864
1862
|
};
|
|
1865
1863
|
Returns: boolean;
|
|
1866
1864
|
};
|
|
1865
|
+
find_discrepancies: {
|
|
1866
|
+
Args: {
|
|
1867
|
+
p_org_id: string;
|
|
1868
|
+
};
|
|
1869
|
+
Returns: {
|
|
1870
|
+
a_chat_id: string;
|
|
1871
|
+
discrepancy_count: number;
|
|
1872
|
+
}[];
|
|
1873
|
+
};
|
|
1867
1874
|
gen_id: {
|
|
1868
1875
|
Args: {
|
|
1869
1876
|
prefix: string;
|
|
@@ -1902,14 +1909,6 @@ export type Database = {
|
|
|
1902
1909
|
};
|
|
1903
1910
|
Returns: Json[];
|
|
1904
1911
|
};
|
|
1905
|
-
get_chat_rule_info: {
|
|
1906
|
-
Args: {
|
|
1907
|
-
chat_id_input: string;
|
|
1908
|
-
org_id_input: string;
|
|
1909
|
-
org_phone_input: string;
|
|
1910
|
-
};
|
|
1911
|
-
Returns: Json;
|
|
1912
|
-
};
|
|
1913
1912
|
get_chats: {
|
|
1914
1913
|
Args: {
|
|
1915
1914
|
org_id_input: string;
|
|
@@ -1962,16 +1961,6 @@ export type Database = {
|
|
|
1962
1961
|
};
|
|
1963
1962
|
Returns: Json;
|
|
1964
1963
|
};
|
|
1965
|
-
get_message_rule_info: {
|
|
1966
|
-
Args: {
|
|
1967
|
-
message_id_input: string;
|
|
1968
|
-
chat_id_input: string;
|
|
1969
|
-
org_id_input: string;
|
|
1970
|
-
org_phone_input: string;
|
|
1971
|
-
sender_id_input: string;
|
|
1972
|
-
};
|
|
1973
|
-
Returns: Json;
|
|
1974
|
-
};
|
|
1975
1964
|
get_messages_notifications_reactions: {
|
|
1976
1965
|
Args: {
|
|
1977
1966
|
org_id_input: string;
|
|
@@ -2000,17 +1989,6 @@ export type Database = {
|
|
|
2000
1989
|
};
|
|
2001
1990
|
Returns: Json;
|
|
2002
1991
|
};
|
|
2003
|
-
get_reaction_rule_info: {
|
|
2004
|
-
Args: {
|
|
2005
|
-
reaction_id_input: string;
|
|
2006
|
-
message_id_input: string;
|
|
2007
|
-
chat_id_input: string;
|
|
2008
|
-
org_id_input: string;
|
|
2009
|
-
org_phone_input: string;
|
|
2010
|
-
sender_id_input: string;
|
|
2011
|
-
};
|
|
2012
|
-
Returns: Json;
|
|
2013
|
-
};
|
|
2014
1992
|
get_team_metrics_between_dates: {
|
|
2015
1993
|
Args: {
|
|
2016
1994
|
org_id_input: string;
|
|
@@ -2029,15 +2007,6 @@ export type Database = {
|
|
|
2029
2007
|
};
|
|
2030
2008
|
Returns: Json;
|
|
2031
2009
|
};
|
|
2032
|
-
get_ticket_rule_info: {
|
|
2033
|
-
Args: {
|
|
2034
|
-
ticket_id_input: string;
|
|
2035
|
-
unique_message_id_input: string;
|
|
2036
|
-
chat_id_input: string;
|
|
2037
|
-
org_id_input: string;
|
|
2038
|
-
};
|
|
2039
|
-
Returns: Json;
|
|
2040
|
-
};
|
|
2041
2010
|
get_universal_search_result: {
|
|
2042
2011
|
Args: {
|
|
2043
2012
|
search_category_input: string;
|
|
@@ -2070,8 +2039,9 @@ export type Database = {
|
|
|
2070
2039
|
column_name: string;
|
|
2071
2040
|
org_id_input: string;
|
|
2072
2041
|
chat_id_input: string[];
|
|
2073
|
-
|
|
2074
|
-
|
|
2042
|
+
column_value_input?: string;
|
|
2043
|
+
key_input?: string;
|
|
2044
|
+
value_input?: Json;
|
|
2075
2045
|
};
|
|
2076
2046
|
Returns: undefined;
|
|
2077
2047
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -66,6 +66,14 @@ export type OrgMetadata = {
|
|
|
66
66
|
};
|
|
67
67
|
}[];
|
|
68
68
|
partition?: boolean;
|
|
69
|
+
tickets: {
|
|
70
|
+
prefix?: string;
|
|
71
|
+
emoji_ticketing: {
|
|
72
|
+
is_enabled?: boolean;
|
|
73
|
+
is_message_enabled?: boolean;
|
|
74
|
+
message_template?: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
69
77
|
};
|
|
70
78
|
type AccessScopes = {
|
|
71
79
|
integrations: boolean;
|
|
@@ -124,7 +132,8 @@ export type ChatType = Merge<Tables<'view_chats'>, {
|
|
|
124
132
|
flag_count_map?: {
|
|
125
133
|
[key: string]: number;
|
|
126
134
|
};
|
|
127
|
-
|
|
135
|
+
is_archived?: boolean;
|
|
136
|
+
is_pinned?: boolean;
|
|
128
137
|
}>;
|
|
129
138
|
export type MediaType = {
|
|
130
139
|
path: string;
|
|
@@ -419,77 +428,4 @@ export type DeliveryInfoType = {
|
|
|
419
428
|
read_count: number;
|
|
420
429
|
delivered_count: number;
|
|
421
430
|
};
|
|
422
|
-
export type ChatRuleInfoType = Merge<Pick<Tables<'view_chats'>, 'assigned_to' | 'chat_id' | 'chat_name' | 'chat_type' | 'created_at' | 'group_description' | 'info_admins_only' | 'is_archived' | 'is_exited' | 'is_muted' | 'org_id' | 'org_phone' | 'chat_org_phones' | 'messages_admins_only' | 'custom_properties'>, {
|
|
423
|
-
has_flagged_messages: boolean;
|
|
424
|
-
labels: string[];
|
|
425
|
-
members: SenderRuleInfoType[];
|
|
426
|
-
custom_properties: {
|
|
427
|
-
[key: string]: string;
|
|
428
|
-
} | null;
|
|
429
|
-
}>;
|
|
430
|
-
export type SenderRuleInfoType = OverrideProperties<Merge<Merge<Tables<'tbl_contacts'>, Tables<'tbl_chat_participants'>>, {
|
|
431
|
-
is_internal: boolean;
|
|
432
|
-
labels: string[] | null;
|
|
433
|
-
}>, {
|
|
434
|
-
id: {
|
|
435
|
-
[key: string]: string;
|
|
436
|
-
} | null;
|
|
437
|
-
business_profile: {
|
|
438
|
-
[key: string]: string;
|
|
439
|
-
} | null;
|
|
440
|
-
label_ids: {
|
|
441
|
-
[key: string]: boolean;
|
|
442
|
-
} | null;
|
|
443
|
-
}>;
|
|
444
|
-
export type MessageRuleInfoType = {
|
|
445
|
-
chat: ChatRuleInfoType;
|
|
446
|
-
sender: SenderRuleInfoType;
|
|
447
|
-
message: OverrideProperties<Tables<'tbl_chat_messages'>, {
|
|
448
|
-
delivery_info: DeliveryInfoType | null;
|
|
449
|
-
flag_metadata: MessageFlagType | null;
|
|
450
|
-
id: {
|
|
451
|
-
id: string;
|
|
452
|
-
remote: string;
|
|
453
|
-
from_me: boolean;
|
|
454
|
-
serialized: string;
|
|
455
|
-
} | null;
|
|
456
|
-
media: MediaType | null;
|
|
457
|
-
}>;
|
|
458
|
-
};
|
|
459
|
-
export type ReactionRuleInfoType = {
|
|
460
|
-
chat: ChatRuleInfoType;
|
|
461
|
-
sender: SenderRuleInfoType;
|
|
462
|
-
message: MessageRuleInfoType['message'];
|
|
463
|
-
reaction: OverrideProperties<Tables<'tbl_chat_reactions'>, {
|
|
464
|
-
id: {
|
|
465
|
-
id: string;
|
|
466
|
-
remote: string;
|
|
467
|
-
from_me: boolean;
|
|
468
|
-
serialized: string;
|
|
469
|
-
};
|
|
470
|
-
msg_id: {
|
|
471
|
-
id: string;
|
|
472
|
-
remote: string;
|
|
473
|
-
from_me: boolean;
|
|
474
|
-
serialized: string;
|
|
475
|
-
};
|
|
476
|
-
}>;
|
|
477
|
-
};
|
|
478
|
-
export type TicketRuleInfoType = {
|
|
479
|
-
chat: ChatRuleInfoType;
|
|
480
|
-
sender: SenderRuleInfoType;
|
|
481
|
-
ticket: Merge<Pick<Tables<'tbl_chat_tickets'>, 'org_id' | 'status' | 'chat_id' | 'subject' | 'assignee' | 'due_date' | 'priority' | 'closed_at' | 'label_ids' | 'raised_by' | 'ticket_id' | 'created_at' | 'is_deleted' | 'assigned_by' | 'response_time' | 'last_updated_at' | 'close_ticket_metadata' | 'quoted_message_id'>, {
|
|
482
|
-
labels: string[] | null;
|
|
483
|
-
custom_properties: {
|
|
484
|
-
[key: string]: string;
|
|
485
|
-
} | null;
|
|
486
|
-
close_ticket_metadata: {
|
|
487
|
-
closed_at: string;
|
|
488
|
-
closed_by: string;
|
|
489
|
-
closed_message: string;
|
|
490
|
-
send_reply_message_id: string;
|
|
491
|
-
};
|
|
492
|
-
}>;
|
|
493
|
-
message: MessageRuleInfoType['message'];
|
|
494
|
-
};
|
|
495
431
|
export {};
|
package/index.ts
CHANGED