@periskope/types 0.6.400 → 0.6.402

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.
@@ -0,0 +1,14 @@
1
+ export type PeriskopePlanInvoice = {
2
+ lines: {
3
+ data: {
4
+ id: string;
5
+ description: string;
6
+ amount: number;
7
+ }[];
8
+ };
9
+ total: number;
10
+ starting_balance: number;
11
+ ending_balance: number;
12
+ amount_due: number;
13
+ };
14
+ //# sourceMappingURL=billing.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.types.d.ts","sourceRoot":"","sources":["../src/billing.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,EAAE,EAAE,MAAM,CAAC;YACX,WAAW,EAAE,MAAM,CAAC;YACpB,MAAM,EAAE,MAAM,CAAA;SACf,EAAE,CAAC;KACL,CAAA;IACD,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2736,8 +2736,8 @@ export type Database = {
2736
2736
  };
2737
2737
  check_feature_flag_access: {
2738
2738
  Args: {
2739
- feature_input: string;
2740
2739
  org_id_input: string;
2740
+ feature_input: string;
2741
2741
  };
2742
2742
  Returns: boolean;
2743
2743
  };
@@ -2746,8 +2746,8 @@ export type Database = {
2746
2746
  chat_properties_row: Database["public"]["Tables"]["tbl_chat_properties"]["Row"];
2747
2747
  };
2748
2748
  Returns: {
2749
- new_chat_access: Json;
2750
2749
  result_chat_id: string;
2750
+ new_chat_access: Json;
2751
2751
  }[];
2752
2752
  };
2753
2753
  custom_access_token_hook: {
@@ -2758,23 +2758,23 @@ export type Database = {
2758
2758
  };
2759
2759
  delete_org_data_in_batches: {
2760
2760
  Args: {
2761
- batch_size_input: number;
2762
- loop_size_input: number;
2763
2761
  org_id_input: string;
2764
2762
  table_names_input: string[];
2763
+ batch_size_input: number;
2764
+ loop_size_input: number;
2765
2765
  };
2766
2766
  Returns: {
2767
2767
  deleted_org_id: string;
2768
- remaining_rows: number;
2769
2768
  table_name: string;
2770
2769
  total_deleted_rows: number;
2770
+ remaining_rows: number;
2771
2771
  }[];
2772
2772
  };
2773
2773
  gen_id: {
2774
2774
  Args: {
2775
- alphabet?: string;
2776
2775
  prefix: string;
2777
2776
  size?: number;
2777
+ alphabet?: string;
2778
2778
  };
2779
2779
  Returns: string;
2780
2780
  };
@@ -2786,10 +2786,10 @@ export type Database = {
2786
2786
  };
2787
2787
  generate_access_token: {
2788
2788
  Args: {
2789
- metadata_input?: Json;
2790
2789
  name_input?: string;
2791
- org_id_input?: string;
2792
2790
  type_input?: Database["public"]["Enums"]["enum_integration_type"];
2791
+ org_id_input?: string;
2792
+ metadata_input?: Json;
2793
2793
  };
2794
2794
  Returns: Json;
2795
2795
  };
@@ -2804,15 +2804,15 @@ export type Database = {
2804
2804
  };
2805
2805
  get_chat_labels_data: {
2806
2806
  Args: {
2807
- chat_ids_input?: string[];
2808
2807
  org_id_input: string;
2808
+ chat_ids_input?: string[];
2809
2809
  };
2810
2810
  Returns: Json[];
2811
2811
  };
2812
2812
  get_chat_properties_by_chat_ids: {
2813
2813
  Args: {
2814
- chat_id_input?: string[];
2815
2814
  org_id_input: string;
2815
+ chat_id_input?: string[];
2816
2816
  };
2817
2817
  Returns: Json;
2818
2818
  };
@@ -2834,12 +2834,12 @@ export type Database = {
2834
2834
  };
2835
2835
  get_chats: {
2836
2836
  Args: {
2837
- batch_limit?: number;
2838
- batch_offset?: number;
2839
- chat_id_input?: string[];
2840
- last_updated_at?: string;
2841
2837
  org_id_input: string;
2838
+ chat_id_input?: string[];
2842
2839
  with_members?: boolean;
2840
+ last_updated_at?: string;
2841
+ batch_limit?: number;
2842
+ batch_offset?: number;
2843
2843
  };
2844
2844
  Returns: Json;
2845
2845
  };
@@ -2853,48 +2853,48 @@ export type Database = {
2853
2853
  };
2854
2854
  get_contacts: {
2855
2855
  Args: {
2856
+ org_id_input: string;
2856
2857
  contact_ids_input?: string[];
2857
- is_internal_input?: boolean;
2858
+ sync_phone_contacts?: boolean;
2859
+ search_input?: string;
2858
2860
  label_ids_input?: string[];
2859
- limit_input?: number;
2861
+ is_internal_input?: boolean;
2860
2862
  offset_input?: number;
2861
- org_id_input: string;
2862
- search_input?: string;
2863
- sync_phone_contacts?: boolean;
2863
+ limit_input?: number;
2864
2864
  };
2865
2865
  Returns: Json;
2866
2866
  };
2867
2867
  get_export_chats_data: {
2868
2868
  Args: {
2869
+ org_id_input: string;
2869
2870
  chat_id_input?: string[];
2870
2871
  chat_type_input?: string;
2872
+ start_date_input?: string;
2871
2873
  end_date_input?: string;
2872
2874
  limit_input?: number;
2873
2875
  offset_input?: number;
2874
- org_id_input: string;
2875
- start_date_input?: string;
2876
2876
  };
2877
2877
  Returns: Json;
2878
2878
  };
2879
2879
  get_export_members_data: {
2880
2880
  Args: {
2881
+ org_id_input: string;
2881
2882
  chat_id_input?: string[];
2882
- limit_input?: number;
2883
2883
  offset_input?: number;
2884
- org_id_input: string;
2884
+ limit_input?: number;
2885
2885
  };
2886
2886
  Returns: Json;
2887
2887
  };
2888
2888
  get_export_tickets_data: {
2889
2889
  Args: {
2890
- end_date_input?: string;
2891
- limit_input?: number;
2892
- offset_input?: number;
2893
2890
  org_id_input: string;
2894
- priority_input?: number;
2891
+ ticket_id_input?: string[];
2895
2892
  start_date_input?: string;
2893
+ end_date_input?: string;
2896
2894
  status_input?: Database["public"]["Enums"]["enum_chat_tickets_status"];
2897
- ticket_id_input?: string[];
2895
+ priority_input?: number;
2896
+ offset_input?: number;
2897
+ limit_input?: number;
2898
2898
  };
2899
2899
  Returns: Json;
2900
2900
  };
@@ -2906,9 +2906,9 @@ export type Database = {
2906
2906
  };
2907
2907
  get_formatted_cp_values: {
2908
2908
  Args: {
2909
- cp_type?: string;
2910
- custom_properties_value_input?: Json;
2911
2909
  org_id_input: string;
2910
+ custom_properties_value_input?: Json;
2911
+ cp_type?: string;
2912
2912
  rules_format?: boolean;
2913
2913
  };
2914
2914
  Returns: Json;
@@ -2921,8 +2921,8 @@ export type Database = {
2921
2921
  };
2922
2922
  get_message_rule_info: {
2923
2923
  Args: {
2924
- chat_id_input: string;
2925
2924
  message_id_input: string;
2925
+ chat_id_input: string;
2926
2926
  org_id_input: string;
2927
2927
  org_phone_input: string;
2928
2928
  sender_id_input: string;
@@ -2932,19 +2932,19 @@ export type Database = {
2932
2932
  get_message_workflow_info: {
2933
2933
  Args: {
2934
2934
  chat_id_input: string;
2935
- message_id_input: string;
2936
2935
  org_id_input: string;
2937
2936
  org_phone_input: string;
2937
+ message_id_input: string;
2938
2938
  sender_id_input: string;
2939
2939
  };
2940
2940
  Returns: Json;
2941
2941
  };
2942
2942
  get_messages_notifications_reactions: {
2943
2943
  Args: {
2944
+ org_id_input: string;
2944
2945
  chat_id_input?: string[];
2945
2946
  limit_input?: number;
2946
2947
  offset_input?: number;
2947
- org_id_input: string;
2948
2948
  };
2949
2949
  Returns: Json;
2950
2950
  };
@@ -2969,18 +2969,29 @@ export type Database = {
2969
2969
  };
2970
2970
  get_phone_chat_map: {
2971
2971
  Args: {
2972
- chat_ids_input: string[];
2973
2972
  org_id_input: string;
2973
+ chat_ids_input: string[];
2974
2974
  };
2975
2975
  Returns: Json;
2976
2976
  };
2977
2977
  get_reaction_rule_info: {
2978
2978
  Args: {
2979
- chat_id_input: string;
2979
+ reaction_id_input: string;
2980
2980
  message_id_input: string;
2981
+ chat_id_input: string;
2981
2982
  org_id_input: string;
2982
2983
  org_phone_input: string;
2984
+ sender_id_input: string;
2985
+ };
2986
+ Returns: Json;
2987
+ };
2988
+ get_reaction_workflow_info: {
2989
+ Args: {
2983
2990
  reaction_id_input: string;
2991
+ message_id_input: string;
2992
+ chat_id_input: string;
2993
+ org_id_input: string;
2994
+ org_phone_input: string;
2984
2995
  sender_id_input: string;
2985
2996
  };
2986
2997
  Returns: Json;
@@ -2999,9 +3010,9 @@ export type Database = {
2999
3010
  get_sender_workflow_info: {
3000
3011
  Args: {
3001
3012
  chat_id_input: string;
3002
- contact_id_input: string;
3003
3013
  org_id_input: string;
3004
3014
  org_phone_input: string;
3015
+ contact_id_input: string;
3005
3016
  };
3006
3017
  Returns: Json;
3007
3018
  };
@@ -3015,23 +3026,30 @@ export type Database = {
3015
3026
  };
3016
3027
  get_task_rule_info: {
3017
3028
  Args: {
3018
- chat_id_input?: string;
3019
- message_id_input?: string;
3029
+ task_id_input: string;
3030
+ task_type_input: string;
3020
3031
  org_id_input: string;
3032
+ chat_id_input?: string;
3021
3033
  org_phone_input?: string;
3022
3034
  sender_id_input?: string;
3023
- task_id_input: string;
3024
- task_type_input: string;
3025
3035
  ticket_id_input?: string;
3036
+ message_id_input?: string;
3026
3037
  unique_message_id_input?: string;
3027
3038
  };
3028
3039
  Returns: Json;
3029
3040
  };
3041
+ get_task_workflow_info: {
3042
+ Args: {
3043
+ task_id_input: string;
3044
+ org_id_input: string;
3045
+ };
3046
+ Returns: Json;
3047
+ };
3030
3048
  get_ticket_info: {
3031
3049
  Args: {
3032
- chat_id_input?: string;
3033
- org_id_input?: string;
3034
3050
  ticket_id_input?: string;
3051
+ org_id_input?: string;
3052
+ chat_id_input?: string;
3035
3053
  unique_message_id_input?: string;
3036
3054
  with_attached_messages?: boolean;
3037
3055
  };
@@ -3039,20 +3057,29 @@ export type Database = {
3039
3057
  };
3040
3058
  get_ticket_rule_info: {
3041
3059
  Args: {
3060
+ ticket_id_input: string;
3061
+ unique_message_id_input: string;
3042
3062
  chat_id_input: string;
3043
3063
  org_id_input: string;
3064
+ };
3065
+ Returns: Json;
3066
+ };
3067
+ get_ticket_workflow_info: {
3068
+ Args: {
3044
3069
  ticket_id_input: string;
3045
- unique_message_id_input: string;
3070
+ chat_id_input: string;
3071
+ org_id_input: string;
3072
+ unique_id_input: string;
3046
3073
  };
3047
3074
  Returns: Json;
3048
3075
  };
3049
3076
  get_tickets: {
3050
3077
  Args: {
3051
- batch_limit?: number;
3052
- batch_offset?: number;
3053
- last_updated_at?: string;
3054
3078
  org_id_input: string;
3055
3079
  ticket_id_input?: string[];
3080
+ last_updated_at?: string;
3081
+ batch_limit?: number;
3082
+ batch_offset?: number;
3056
3083
  };
3057
3084
  Returns: Json;
3058
3085
  };
@@ -3066,30 +3093,29 @@ export type Database = {
3066
3093
  };
3067
3094
  refresh_chat_properties: {
3068
3095
  Args: {
3069
- chat_id_input?: string;
3070
3096
  org_id_input: string;
3097
+ chat_id_input?: string;
3071
3098
  };
3072
3099
  Returns: undefined;
3073
3100
  };
3074
3101
  update_chat_properties: {
3075
3102
  Args: {
3076
- chat_id_input: string[];
3077
3103
  column_name: string;
3104
+ org_id_input: string;
3105
+ chat_id_input: string[];
3078
3106
  column_value_input?: string;
3079
3107
  key_input?: string;
3080
- org_id_input: string;
3081
3108
  value_input?: Json;
3082
3109
  };
3083
3110
  Returns: undefined;
3084
3111
  };
3085
3112
  update_chat_unread_count: {
3086
3113
  Args: {
3114
+ org_id_input: string;
3087
3115
  chat_id_input: string[];
3116
+ sync_unread_count?: boolean;
3088
3117
  email_input?: string;
3089
- org_id_input: string;
3090
3118
  org_phone_input?: string;
3091
- sync_unread_count?: boolean;
3092
- unread_count_input?: number;
3093
3119
  };
3094
3120
  Returns: {
3095
3121
  archived: boolean | null;
@@ -3126,21 +3152,21 @@ export type Database = {
3126
3152
  update_custom_properties: {
3127
3153
  Args: {
3128
3154
  org_id_input: string;
3129
- replace_properties?: boolean;
3130
3155
  row_properties_map: Json;
3156
+ replace_properties?: boolean;
3131
3157
  };
3132
3158
  Returns: undefined;
3133
3159
  };
3134
3160
  update_flag: {
3135
3161
  Args: {
3136
- chat_id_input?: string;
3162
+ org_id_input: string;
3137
3163
  flag_metadata_input: Json;
3138
3164
  flag_status_input?: boolean;
3139
- full_update?: boolean;
3140
- org_id_input: string;
3165
+ chat_id_input?: string;
3166
+ unique_message_id_input?: string;
3141
3167
  org_phone_input?: string;
3142
3168
  replace?: boolean;
3143
- unique_message_id_input?: string;
3169
+ full_update?: boolean;
3144
3170
  };
3145
3171
  Returns: {
3146
3172
  ack: string | null;
@@ -3199,29 +3225,29 @@ export type Database = {
3199
3225
  };
3200
3226
  update_jsonb_column: {
3201
3227
  Args: {
3228
+ table_name_input: string;
3202
3229
  column_name_input: string;
3203
3230
  id_name_input: string;
3204
3231
  id_value_input: string;
3205
3232
  json_input: Json;
3206
- org_id_input?: string;
3207
3233
  replace_input?: boolean;
3208
- table_name_input: string;
3234
+ org_id_input?: string;
3209
3235
  };
3210
3236
  Returns: undefined;
3211
3237
  };
3212
3238
  update_labels: {
3213
3239
  Args: {
3214
3240
  org_id_input: string;
3215
- replace_labels?: boolean;
3216
- row_label_map: Json;
3217
3241
  tbl_type: string;
3242
+ row_label_map: Json;
3243
+ replace_labels?: boolean;
3218
3244
  };
3219
3245
  Returns: undefined;
3220
3246
  };
3221
3247
  update_org_metadata: {
3222
3248
  Args: {
3223
- key_input?: string;
3224
3249
  org_id_input: string;
3250
+ key_input?: string;
3225
3251
  value_input?: Json;
3226
3252
  };
3227
3253
  Returns: undefined;
@@ -3229,26 +3255,26 @@ export type Database = {
3229
3255
  update_override_chat_access: {
3230
3256
  Args: {
3231
3257
  org_id_input: string;
3232
- replace_properties?: boolean;
3233
3258
  row_properties_map: Json;
3259
+ replace_properties?: boolean;
3234
3260
  };
3235
3261
  Returns: undefined;
3236
3262
  };
3237
3263
  update_rule_log_entry: {
3238
3264
  Args: {
3265
+ log_id_input: string;
3239
3266
  action_id?: string;
3240
3267
  action_update?: Json;
3241
3268
  conditions_update?: Json;
3242
- log_id_input: string;
3243
3269
  metadata_update?: Json;
3244
3270
  };
3245
3271
  Returns: Json;
3246
3272
  };
3247
3273
  upsert_participants: {
3248
3274
  Args: {
3249
- chat_id_input: string;
3250
3275
  org_id_input: string;
3251
3276
  org_phone_input: string;
3277
+ chat_id_input: string;
3252
3278
  participants_input: Json;
3253
3279
  };
3254
3280
  Returns: undefined;
@@ -3261,7 +3287,7 @@ export type Database = {
3261
3287
  enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
3262
3288
  enum_credit_transaction_type: "credit" | "debit";
3263
3289
  enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated" | "message.flagged" | "message.unflagged" | "chat.label.updated" | "reaction.added" | "message.ticket.attached" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.phone.qr" | "org.phone.updated" | "note.created" | "chat.custom_properties.updated";
3264
- enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "zohocrm" | "gsheets";
3290
+ enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets" | "zohocrm";
3265
3291
  enum_member_role: "admin" | "member";
3266
3292
  };
3267
3293
  CompositeTypes: {
@@ -3644,7 +3670,7 @@ export declare const Constants: {
3644
3670
  readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
3645
3671
  readonly enum_credit_transaction_type: readonly ["credit", "debit"];
3646
3672
  readonly enum_integration_name: readonly ["org.created", "org.updated", "org.member.created", "org.member.updated", "org.subscription.trial_will_end", "chat.created", "chat.updated", "chat.notification.created", "message.created", "message.updated", "message.deleted", "message.ack.updated", "reaction.created", "reaction.updated", "ticket.created", "ticket.updated", "ticket.deleted", "org.integrations.updated", "message.flagged", "message.unflagged", "chat.label.updated", "reaction.added", "message.ticket.attached", "org.phone.created", "org.phone.connected", "org.phone.disconnected", "org.phone.qr", "org.phone.updated", "note.created", "chat.custom_properties.updated"];
3647
- readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "zohocrm", "gsheets"];
3673
+ readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "gsheets", "zohocrm"];
3648
3674
  readonly enum_member_role: readonly ["admin", "member"];
3649
3675
  };
3650
3676
  };