@periskope/types 0.6.186 → 0.6.188

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.
@@ -829,12 +829,14 @@ export type Database = {
829
829
  closed_at: number | null;
830
830
  custom_properties: Json | null;
831
831
  flag_count_map: Json | null;
832
+ freshdesk_metadata: Json | null;
832
833
  hubspot_metadata: Json | null;
833
834
  label_ids: Json | null;
834
835
  latest_message_timestamp: string | null;
835
836
  org_id: string;
836
837
  unread_count: Json | null;
837
838
  updated_at: string | null;
839
+ zohodesk_metadata: Json | null;
838
840
  };
839
841
  Insert: {
840
842
  assigned_to?: string | null;
@@ -847,12 +849,14 @@ export type Database = {
847
849
  closed_at?: number | null;
848
850
  custom_properties?: Json | null;
849
851
  flag_count_map?: Json | null;
852
+ freshdesk_metadata?: Json | null;
850
853
  hubspot_metadata?: Json | null;
851
854
  label_ids?: Json | null;
852
855
  latest_message_timestamp?: string | null;
853
856
  org_id: string;
854
857
  unread_count?: Json | null;
855
858
  updated_at?: string | null;
859
+ zohodesk_metadata?: Json | null;
856
860
  };
857
861
  Update: {
858
862
  assigned_to?: string | null;
@@ -865,12 +869,14 @@ export type Database = {
865
869
  closed_at?: number | null;
866
870
  custom_properties?: Json | null;
867
871
  flag_count_map?: Json | null;
872
+ freshdesk_metadata?: Json | null;
868
873
  hubspot_metadata?: Json | null;
869
874
  label_ids?: Json | null;
870
875
  latest_message_timestamp?: string | null;
871
876
  org_id?: string;
872
877
  unread_count?: Json | null;
873
878
  updated_at?: string | null;
879
+ zohodesk_metadata?: Json | null;
874
880
  };
875
881
  Relationships: [];
876
882
  };
@@ -2143,6 +2149,7 @@ export type Database = {
2143
2149
  created_at: string | null;
2144
2150
  custom_properties: Json | null;
2145
2151
  flag_count_map: Json | null;
2152
+ freshdesk_metadata: Json | null;
2146
2153
  group_description: string | null;
2147
2154
  hubspot_metadata: Json | null;
2148
2155
  info_admins_only: boolean | null;
@@ -2157,6 +2164,7 @@ export type Database = {
2157
2164
  org_id: string | null;
2158
2165
  org_phone: string | null;
2159
2166
  updated_at: string | null;
2167
+ zohodesk_metadata: Json | null;
2160
2168
  };
2161
2169
  Relationships: [];
2162
2170
  };
@@ -2528,14 +2536,67 @@ export type Database = {
2528
2536
  update_flag: {
2529
2537
  Args: {
2530
2538
  org_id_input: string;
2531
- chat_id_input: string;
2532
2539
  flag_metadata_input: Json;
2533
- flag_status_input: boolean;
2540
+ flag_status_input?: boolean;
2541
+ chat_id_input?: string;
2534
2542
  unique_message_id_input?: string;
2535
2543
  org_phone_input?: string;
2536
2544
  replace?: boolean;
2537
2545
  };
2538
- Returns: undefined;
2546
+ Returns: {
2547
+ ack: string | null;
2548
+ author: string | null;
2549
+ body: string | null;
2550
+ broadcast: boolean | null;
2551
+ broadcast_id: string | null;
2552
+ chat_id: string | null;
2553
+ delivery_info: Json | null;
2554
+ device_type: string | null;
2555
+ duration: string | null;
2556
+ flag_metadata: Json | null;
2557
+ flag_response_time: number | null;
2558
+ flag_status: boolean | null;
2559
+ forwarding_score: number | null;
2560
+ from: string | null;
2561
+ from_me: boolean | null;
2562
+ fts: unknown | null;
2563
+ has_media: boolean | null;
2564
+ has_quoted_msg: boolean | null;
2565
+ has_reaction: boolean | null;
2566
+ id: Json | null;
2567
+ invite_v4: Json | null;
2568
+ is_deleted: boolean | null;
2569
+ is_ephemeral: boolean | null;
2570
+ is_forwarded: boolean | null;
2571
+ is_gif: boolean | null;
2572
+ is_starred: boolean | null;
2573
+ is_status: boolean | null;
2574
+ links: Json | null;
2575
+ location: Json | null;
2576
+ media: Json | null;
2577
+ media_key: string | null;
2578
+ mentioned_ids: string[] | null;
2579
+ message_id: string;
2580
+ message_ticket_id: string | null;
2581
+ message_type: string | null;
2582
+ order_id: string | null;
2583
+ org_id: string;
2584
+ org_phone: string;
2585
+ performed_by: string | null;
2586
+ poll_info: Json | null;
2587
+ poll_results: Json | null;
2588
+ prev_body: string | null;
2589
+ quoted_message_id: string | null;
2590
+ raw_data: Json | null;
2591
+ sender_phone: string | null;
2592
+ sent_message_id: string | null;
2593
+ timestamp: string | null;
2594
+ to: string | null;
2595
+ token: string | null;
2596
+ unique_id: string | null;
2597
+ updated_at: string | null;
2598
+ vcards: string[] | null;
2599
+ }[];
2539
2600
  };
2540
2601
  update_labels: {
2541
2602
  Args: {
@@ -2634,7 +2695,6 @@ export type Database = {
2634
2695
  owner_id: string | null;
2635
2696
  path_tokens: string[] | null;
2636
2697
  updated_at: string | null;
2637
- user_metadata: Json | null;
2638
2698
  version: string | null;
2639
2699
  };
2640
2700
  Insert: {
@@ -2648,7 +2708,6 @@ export type Database = {
2648
2708
  owner_id?: string | null;
2649
2709
  path_tokens?: string[] | null;
2650
2710
  updated_at?: string | null;
2651
- user_metadata?: Json | null;
2652
2711
  version?: string | null;
2653
2712
  };
2654
2713
  Update: {
@@ -2662,7 +2721,6 @@ export type Database = {
2662
2721
  owner_id?: string | null;
2663
2722
  path_tokens?: string[] | null;
2664
2723
  updated_at?: string | null;
2665
- user_metadata?: Json | null;
2666
2724
  version?: string | null;
2667
2725
  };
2668
2726
  Relationships: [
package/dist/types.d.ts CHANGED
@@ -165,6 +165,8 @@ export type ChatType = Merge<Tables<'view_chats'>, {
165
165
  is_pinned?: boolean;
166
166
  closed_at?: number | null;
167
167
  common_chats?: string[];
168
+ freshdesk_metadata?: Record<string, any>;
169
+ zohodesk_metadata?: Record<string, any>;
168
170
  }>;
169
171
  export type MediaType = {
170
172
  path?: string;
@@ -618,4 +620,29 @@ export type TaskType = OverrideProperties<Tables<'tbl_org_tasks'>, {
618
620
  } | null;
619
621
  type: 'todo' | 'chat' | 'message' | 'ticket';
620
622
  }>;
623
+ type Choice = {
624
+ id: number;
625
+ label: string;
626
+ value: string;
627
+ position: number;
628
+ };
629
+ export type FreshdeskCustomFieldType = {
630
+ id: number;
631
+ name: string;
632
+ label: string;
633
+ position: number;
634
+ required_for_agents: boolean;
635
+ archived: boolean;
636
+ customers_can_edit: boolean;
637
+ label_for_customers: string;
638
+ required_for_customers: boolean;
639
+ customers_can_filter: boolean;
640
+ required_for_closure: boolean;
641
+ displayed_to_customers: boolean;
642
+ type: string;
643
+ default: boolean;
644
+ created_at: string;
645
+ updated_at: string;
646
+ choices?: Choice[];
647
+ };
621
648
  export {};
package/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './rules.types';
2
- export * from './supabase.types';
3
- export * from './types';
1
+ export * from './rules.types';
2
+ export * from './supabase.types';
3
+ export * from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.186",
3
+ "version": "0.6.188",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",