@periskope/types 0.6.145 → 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 CHANGED
@@ -1,3 +1,2 @@
1
- export * from './rules.types';
2
1
  export * from './supabase.types';
3
2
  export * from './types';
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);
@@ -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
- key_input: string;
2074
- value_input: Json;
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
- pin?: boolean;
135
+ is_archived?: boolean;
136
+ is_pinned?: boolean;
128
137
  }>;
129
138
  export type MediaType = {
130
139
  path: string;
@@ -419,85 +428,4 @@ export type DeliveryInfoType = {
419
428
  read_count: number;
420
429
  delivered_count: number;
421
430
  };
422
- export type OrgCreditsType = {
423
- org_id: string;
424
- recurring_allowance: number;
425
- recurring_balance: number;
426
- topup_balance: number;
427
- total_credits_used: number;
428
- next_renewal_date: string;
429
- };
430
- 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'>, {
431
- has_flagged_messages: boolean;
432
- labels: string[];
433
- members: SenderRuleInfoType[];
434
- custom_properties: {
435
- [key: string]: string;
436
- } | null;
437
- }>;
438
- export type SenderRuleInfoType = OverrideProperties<Merge<Merge<Tables<'tbl_contacts'>, Tables<'tbl_chat_participants'>>, {
439
- is_internal: boolean;
440
- labels: string[] | null;
441
- }>, {
442
- id: {
443
- [key: string]: string;
444
- } | null;
445
- business_profile: {
446
- [key: string]: string;
447
- } | null;
448
- label_ids: {
449
- [key: string]: boolean;
450
- } | null;
451
- }>;
452
- export type MessageRuleInfoType = {
453
- chat: ChatRuleInfoType;
454
- sender: SenderRuleInfoType;
455
- message: OverrideProperties<Tables<'tbl_chat_messages'>, {
456
- delivery_info: DeliveryInfoType | null;
457
- flag_metadata: MessageFlagType | null;
458
- id: {
459
- id: string;
460
- remote: string;
461
- from_me: boolean;
462
- serialized: string;
463
- } | null;
464
- media: MediaType | null;
465
- }>;
466
- };
467
- export type ReactionRuleInfoType = {
468
- chat: ChatRuleInfoType;
469
- sender: SenderRuleInfoType;
470
- message: MessageRuleInfoType['message'];
471
- reaction: OverrideProperties<Tables<'tbl_chat_reactions'>, {
472
- id: {
473
- id: string;
474
- remote: string;
475
- from_me: boolean;
476
- serialized: string;
477
- };
478
- msg_id: {
479
- id: string;
480
- remote: string;
481
- from_me: boolean;
482
- serialized: string;
483
- };
484
- }>;
485
- };
486
- export type TicketRuleInfoType = {
487
- chat: ChatRuleInfoType;
488
- sender: SenderRuleInfoType;
489
- 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'>, {
490
- labels: string[] | null;
491
- custom_properties: {
492
- [key: string]: string;
493
- } | null;
494
- close_ticket_metadata: {
495
- closed_at: string;
496
- closed_by: string;
497
- closed_message: string;
498
- send_reply_message_id: string;
499
- };
500
- }>;
501
- message: MessageRuleInfoType['message'];
502
- };
503
431
  export {};
package/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './rules.types';
2
1
  export * from './supabase.types';
3
2
  export * from './types';
3
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.145",
3
+ "version": "0.6.146",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",