@periskope/types 0.6.287 → 0.6.289

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
@@ -2,4 +2,5 @@ export * from './object.types';
2
2
  export * from './rules.types';
3
3
  export * from './supabase.types';
4
4
  export * from './types';
5
+ export * from './workflows.types';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -18,3 +18,4 @@ __exportStar(require("./object.types"), exports);
18
18
  __exportStar(require("./rules.types"), exports);
19
19
  __exportStar(require("./supabase.types"), exports);
20
20
  __exportStar(require("./types"), exports);
21
+ __exportStar(require("./workflows.types"), exports);
@@ -2,6 +2,31 @@ export type Json = {
2
2
  [key: string]: any;
3
3
  } | any;
4
4
  export type Database = {
5
+ graphql_public: {
6
+ Tables: {
7
+ [_ in never]: never;
8
+ };
9
+ Views: {
10
+ [_ in never]: never;
11
+ };
12
+ Functions: {
13
+ graphql: {
14
+ Args: {
15
+ operationName?: string;
16
+ query?: string;
17
+ variables?: Json;
18
+ extensions?: Json;
19
+ };
20
+ Returns: Json;
21
+ };
22
+ };
23
+ Enums: {
24
+ [_ in never]: never;
25
+ };
26
+ CompositeTypes: {
27
+ [_ in never]: never;
28
+ };
29
+ };
5
30
  internal: {
6
31
  Tables: {
7
32
  config: {
@@ -1037,6 +1062,7 @@ export type Database = {
1037
1062
  created_at: string;
1038
1063
  custom_properties: Json | null;
1039
1064
  due_date: string | null;
1065
+ first_assigned_at: string | null;
1040
1066
  freshdesk_metadata: Json | null;
1041
1067
  hubspot_metadata: Json | null;
1042
1068
  is_deleted: boolean;
@@ -1061,6 +1087,7 @@ export type Database = {
1061
1087
  created_at?: string;
1062
1088
  custom_properties?: Json | null;
1063
1089
  due_date?: string | null;
1090
+ first_assigned_at?: string | null;
1064
1091
  freshdesk_metadata?: Json | null;
1065
1092
  hubspot_metadata?: Json | null;
1066
1093
  is_deleted?: boolean;
@@ -1085,6 +1112,7 @@ export type Database = {
1085
1112
  created_at?: string;
1086
1113
  custom_properties?: Json | null;
1087
1114
  due_date?: string | null;
1115
+ first_assigned_at?: string | null;
1088
1116
  freshdesk_metadata?: Json | null;
1089
1117
  hubspot_metadata?: Json | null;
1090
1118
  is_deleted?: boolean;
@@ -1983,6 +2011,63 @@ export type Database = {
1983
2011
  }
1984
2012
  ];
1985
2013
  };
2014
+ tbl_org_workflows: {
2015
+ Row: {
2016
+ actions: Json;
2017
+ created_at: string;
2018
+ deleted_at: string | null;
2019
+ id: string;
2020
+ is_active: boolean;
2021
+ name: string;
2022
+ org_id: string;
2023
+ trigger: string;
2024
+ trigger_metadata: Json;
2025
+ updated_at: string;
2026
+ updated_by: string;
2027
+ };
2028
+ Insert: {
2029
+ actions?: Json;
2030
+ created_at?: string;
2031
+ deleted_at?: string | null;
2032
+ id?: string;
2033
+ is_active?: boolean;
2034
+ name: string;
2035
+ org_id: string;
2036
+ trigger: string;
2037
+ trigger_metadata?: Json;
2038
+ updated_at?: string;
2039
+ updated_by: string;
2040
+ };
2041
+ Update: {
2042
+ actions?: Json;
2043
+ created_at?: string;
2044
+ deleted_at?: string | null;
2045
+ id?: string;
2046
+ is_active?: boolean;
2047
+ name?: string;
2048
+ org_id?: string;
2049
+ trigger?: string;
2050
+ trigger_metadata?: Json;
2051
+ updated_at?: string;
2052
+ updated_by?: string;
2053
+ };
2054
+ Relationships: [
2055
+ {
2056
+ foreignKeyName: "tbl_org_workflows_org_id_fkey";
2057
+ columns: ["org_id"];
2058
+ isOneToOne: false;
2059
+ referencedRelation: "tbl_org";
2060
+ referencedColumns: ["org_id"];
2061
+ },
2062
+ {
2063
+ foreignKeyName: "tbl_org_workflows_org_id_fkey";
2064
+ columns: ["org_id"];
2065
+ isOneToOne: false;
2066
+ referencedRelation: "view_org";
2067
+ referencedColumns: ["org_id"];
2068
+ }
2069
+ ];
2070
+ };
1986
2071
  tbl_quick_replies: {
1987
2072
  Row: {
1988
2073
  command: string | null;
@@ -2324,6 +2409,7 @@ export type Database = {
2324
2409
  info_admins_only: boolean | null;
2325
2410
  initiated_by: string | null;
2326
2411
  invite_link: string | null;
2412
+ is_archived: boolean | null;
2327
2413
  is_exited: boolean | null;
2328
2414
  is_muted: boolean | null;
2329
2415
  label_ids: Json | null;
@@ -2527,6 +2613,14 @@ export type Database = {
2527
2613
  };
2528
2614
  Returns: Json;
2529
2615
  };
2616
+ get_chat_workflow_info: {
2617
+ Args: {
2618
+ chat_id_input: string;
2619
+ org_id_input: string;
2620
+ org_phone_input: string;
2621
+ };
2622
+ Returns: Json;
2623
+ };
2530
2624
  get_chats: {
2531
2625
  Args: {
2532
2626
  org_id_input: string;
@@ -2618,6 +2712,16 @@ export type Database = {
2618
2712
  };
2619
2713
  Returns: Json;
2620
2714
  };
2715
+ get_message_workflow_info: {
2716
+ Args: {
2717
+ chat_id_input: string;
2718
+ org_id_input: string;
2719
+ org_phone_input: string;
2720
+ message_id_input: string;
2721
+ sender_id_input: string;
2722
+ };
2723
+ Returns: Json;
2724
+ };
2621
2725
  get_messages_notifications_reactions: {
2622
2726
  Args: {
2623
2727
  org_id_input: string;
@@ -2681,6 +2785,15 @@ export type Database = {
2681
2785
  };
2682
2786
  Returns: Json;
2683
2787
  };
2788
+ get_sender_workflow_info: {
2789
+ Args: {
2790
+ chat_id_input: string;
2791
+ org_id_input: string;
2792
+ org_phone_input: string;
2793
+ contact_id_input: string;
2794
+ };
2795
+ Returns: Json;
2796
+ };
2684
2797
  get_team_metrics_between_dates: {
2685
2798
  Args: {
2686
2799
  org_id_input: string;
@@ -3405,6 +3518,9 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
3405
3518
  schema: keyof Database;
3406
3519
  } ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
3407
3520
  export declare const Constants: {
3521
+ readonly graphql_public: {
3522
+ readonly Enums: {};
3523
+ };
3408
3524
  readonly internal: {
3409
3525
  readonly Enums: {};
3410
3526
  };