@periskope/types 0.6.223 → 0.6.225
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/supabase.types.d.ts +26 -197
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +0 -78
- package/dist/types.d.ts +85 -7
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +10 -1
- package/package.json +1 -1
- package/src/types.ts +97 -7
- package/tsconfig.tsbuildinfo +1 -1
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2,31 +2,6 @@ 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
|
-
};
|
|
30
5
|
internal: {
|
|
31
6
|
Tables: {
|
|
32
7
|
config: {
|
|
@@ -587,7 +562,7 @@ export type Database = {
|
|
|
587
562
|
raw_data: Json | null;
|
|
588
563
|
sender_phone: string | null;
|
|
589
564
|
sent_message_id: string | null;
|
|
590
|
-
timestamp: string
|
|
565
|
+
timestamp: string;
|
|
591
566
|
to: string | null;
|
|
592
567
|
token: string | null;
|
|
593
568
|
unique_id: string | null;
|
|
@@ -641,7 +616,7 @@ export type Database = {
|
|
|
641
616
|
raw_data?: Json | null;
|
|
642
617
|
sender_phone?: string | null;
|
|
643
618
|
sent_message_id?: string | null;
|
|
644
|
-
timestamp
|
|
619
|
+
timestamp: string;
|
|
645
620
|
to?: string | null;
|
|
646
621
|
token?: string | null;
|
|
647
622
|
unique_id?: string | null;
|
|
@@ -695,7 +670,7 @@ export type Database = {
|
|
|
695
670
|
raw_data?: Json | null;
|
|
696
671
|
sender_phone?: string | null;
|
|
697
672
|
sent_message_id?: string | null;
|
|
698
|
-
timestamp?: string
|
|
673
|
+
timestamp?: string;
|
|
699
674
|
to?: string | null;
|
|
700
675
|
token?: string | null;
|
|
701
676
|
unique_id?: string | null;
|
|
@@ -2645,7 +2620,7 @@ export type Database = {
|
|
|
2645
2620
|
raw_data: Json | null;
|
|
2646
2621
|
sender_phone: string | null;
|
|
2647
2622
|
sent_message_id: string | null;
|
|
2648
|
-
timestamp: string
|
|
2623
|
+
timestamp: string;
|
|
2649
2624
|
to: string | null;
|
|
2650
2625
|
token: string | null;
|
|
2651
2626
|
unique_id: string | null;
|
|
@@ -2754,7 +2729,6 @@ export type Database = {
|
|
|
2754
2729
|
created_at: string | null;
|
|
2755
2730
|
id: string;
|
|
2756
2731
|
last_accessed_at: string | null;
|
|
2757
|
-
level: number | null;
|
|
2758
2732
|
metadata: Json | null;
|
|
2759
2733
|
name: string | null;
|
|
2760
2734
|
owner: string | null;
|
|
@@ -2769,7 +2743,6 @@ export type Database = {
|
|
|
2769
2743
|
created_at?: string | null;
|
|
2770
2744
|
id?: string;
|
|
2771
2745
|
last_accessed_at?: string | null;
|
|
2772
|
-
level?: number | null;
|
|
2773
2746
|
metadata?: Json | null;
|
|
2774
2747
|
name?: string | null;
|
|
2775
2748
|
owner?: string | null;
|
|
@@ -2784,7 +2757,6 @@ export type Database = {
|
|
|
2784
2757
|
created_at?: string | null;
|
|
2785
2758
|
id?: string;
|
|
2786
2759
|
last_accessed_at?: string | null;
|
|
2787
|
-
level?: number | null;
|
|
2788
2760
|
metadata?: Json | null;
|
|
2789
2761
|
name?: string | null;
|
|
2790
2762
|
owner?: string | null;
|
|
@@ -2804,38 +2776,6 @@ export type Database = {
|
|
|
2804
2776
|
}
|
|
2805
2777
|
];
|
|
2806
2778
|
};
|
|
2807
|
-
prefixes: {
|
|
2808
|
-
Row: {
|
|
2809
|
-
bucket_id: string;
|
|
2810
|
-
created_at: string | null;
|
|
2811
|
-
level: number;
|
|
2812
|
-
name: string;
|
|
2813
|
-
updated_at: string | null;
|
|
2814
|
-
};
|
|
2815
|
-
Insert: {
|
|
2816
|
-
bucket_id: string;
|
|
2817
|
-
created_at?: string | null;
|
|
2818
|
-
level?: number;
|
|
2819
|
-
name: string;
|
|
2820
|
-
updated_at?: string | null;
|
|
2821
|
-
};
|
|
2822
|
-
Update: {
|
|
2823
|
-
bucket_id?: string;
|
|
2824
|
-
created_at?: string | null;
|
|
2825
|
-
level?: number;
|
|
2826
|
-
name?: string;
|
|
2827
|
-
updated_at?: string | null;
|
|
2828
|
-
};
|
|
2829
|
-
Relationships: [
|
|
2830
|
-
{
|
|
2831
|
-
foreignKeyName: "prefixes_bucketId_fkey";
|
|
2832
|
-
columns: ["bucket_id"];
|
|
2833
|
-
isOneToOne: false;
|
|
2834
|
-
referencedRelation: "buckets";
|
|
2835
|
-
referencedColumns: ["id"];
|
|
2836
|
-
}
|
|
2837
|
-
];
|
|
2838
|
-
};
|
|
2839
2779
|
s3_multipart_uploads: {
|
|
2840
2780
|
Row: {
|
|
2841
2781
|
bucket_id: string;
|
|
@@ -2939,13 +2879,6 @@ export type Database = {
|
|
|
2939
2879
|
[_ in never]: never;
|
|
2940
2880
|
};
|
|
2941
2881
|
Functions: {
|
|
2942
|
-
add_prefixes: {
|
|
2943
|
-
Args: {
|
|
2944
|
-
_bucket_id: string;
|
|
2945
|
-
_name: string;
|
|
2946
|
-
};
|
|
2947
|
-
Returns: undefined;
|
|
2948
|
-
};
|
|
2949
2882
|
can_insert_object: {
|
|
2950
2883
|
Args: {
|
|
2951
2884
|
bucketid: string;
|
|
@@ -2955,13 +2888,6 @@ export type Database = {
|
|
|
2955
2888
|
};
|
|
2956
2889
|
Returns: undefined;
|
|
2957
2890
|
};
|
|
2958
|
-
delete_prefix: {
|
|
2959
|
-
Args: {
|
|
2960
|
-
_bucket_id: string;
|
|
2961
|
-
_name: string;
|
|
2962
|
-
};
|
|
2963
|
-
Returns: boolean;
|
|
2964
|
-
};
|
|
2965
2891
|
extension: {
|
|
2966
2892
|
Args: {
|
|
2967
2893
|
name: string;
|
|
@@ -2980,24 +2906,6 @@ export type Database = {
|
|
|
2980
2906
|
};
|
|
2981
2907
|
Returns: string[];
|
|
2982
2908
|
};
|
|
2983
|
-
get_level: {
|
|
2984
|
-
Args: {
|
|
2985
|
-
name: string;
|
|
2986
|
-
};
|
|
2987
|
-
Returns: number;
|
|
2988
|
-
};
|
|
2989
|
-
get_prefix: {
|
|
2990
|
-
Args: {
|
|
2991
|
-
name: string;
|
|
2992
|
-
};
|
|
2993
|
-
Returns: string;
|
|
2994
|
-
};
|
|
2995
|
-
get_prefixes: {
|
|
2996
|
-
Args: {
|
|
2997
|
-
name: string;
|
|
2998
|
-
};
|
|
2999
|
-
Returns: string[];
|
|
3000
|
-
};
|
|
3001
2909
|
get_size_by_bucket: {
|
|
3002
2910
|
Args: Record<PropertyKey, never>;
|
|
3003
2911
|
Returns: {
|
|
@@ -3060,63 +2968,6 @@ export type Database = {
|
|
|
3060
2968
|
metadata: Json;
|
|
3061
2969
|
}[];
|
|
3062
2970
|
};
|
|
3063
|
-
search_legacy_v1: {
|
|
3064
|
-
Args: {
|
|
3065
|
-
prefix: string;
|
|
3066
|
-
bucketname: string;
|
|
3067
|
-
limits?: number;
|
|
3068
|
-
levels?: number;
|
|
3069
|
-
offsets?: number;
|
|
3070
|
-
search?: string;
|
|
3071
|
-
sortcolumn?: string;
|
|
3072
|
-
sortorder?: string;
|
|
3073
|
-
};
|
|
3074
|
-
Returns: {
|
|
3075
|
-
name: string;
|
|
3076
|
-
id: string;
|
|
3077
|
-
updated_at: string;
|
|
3078
|
-
created_at: string;
|
|
3079
|
-
last_accessed_at: string;
|
|
3080
|
-
metadata: Json;
|
|
3081
|
-
}[];
|
|
3082
|
-
};
|
|
3083
|
-
search_v1_optimised: {
|
|
3084
|
-
Args: {
|
|
3085
|
-
prefix: string;
|
|
3086
|
-
bucketname: string;
|
|
3087
|
-
limits?: number;
|
|
3088
|
-
levels?: number;
|
|
3089
|
-
offsets?: number;
|
|
3090
|
-
search?: string;
|
|
3091
|
-
sortcolumn?: string;
|
|
3092
|
-
sortorder?: string;
|
|
3093
|
-
};
|
|
3094
|
-
Returns: {
|
|
3095
|
-
name: string;
|
|
3096
|
-
id: string;
|
|
3097
|
-
updated_at: string;
|
|
3098
|
-
created_at: string;
|
|
3099
|
-
last_accessed_at: string;
|
|
3100
|
-
metadata: Json;
|
|
3101
|
-
}[];
|
|
3102
|
-
};
|
|
3103
|
-
search_v2: {
|
|
3104
|
-
Args: {
|
|
3105
|
-
prefix: string;
|
|
3106
|
-
bucket_name: string;
|
|
3107
|
-
limits?: number;
|
|
3108
|
-
levels?: number;
|
|
3109
|
-
start_after?: string;
|
|
3110
|
-
};
|
|
3111
|
-
Returns: {
|
|
3112
|
-
key: string;
|
|
3113
|
-
name: string;
|
|
3114
|
-
id: string;
|
|
3115
|
-
updated_at: string;
|
|
3116
|
-
created_at: string;
|
|
3117
|
-
metadata: Json;
|
|
3118
|
-
}[];
|
|
3119
|
-
};
|
|
3120
2971
|
};
|
|
3121
2972
|
Enums: {
|
|
3122
2973
|
[_ in never]: never;
|
|
@@ -3126,75 +2977,53 @@ export type Database = {
|
|
|
3126
2977
|
};
|
|
3127
2978
|
};
|
|
3128
2979
|
};
|
|
3129
|
-
type
|
|
3130
|
-
export type Tables<
|
|
2980
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
2981
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
3131
2982
|
schema: keyof Database;
|
|
3132
|
-
}, TableName extends
|
|
2983
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
3133
2984
|
schema: keyof Database;
|
|
3134
|
-
} ? keyof (Database[
|
|
2985
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
3135
2986
|
schema: keyof Database;
|
|
3136
|
-
} ? (Database[
|
|
2987
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3137
2988
|
Row: infer R;
|
|
3138
|
-
} ? R : never :
|
|
2989
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
3139
2990
|
Row: infer R;
|
|
3140
2991
|
} ? R : never : never;
|
|
3141
|
-
export type TablesInsert<
|
|
2992
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
3142
2993
|
schema: keyof Database;
|
|
3143
|
-
}, TableName extends
|
|
2994
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
3144
2995
|
schema: keyof Database;
|
|
3145
|
-
} ? keyof Database[
|
|
2996
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
3146
2997
|
schema: keyof Database;
|
|
3147
|
-
} ? Database[
|
|
2998
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3148
2999
|
Insert: infer I;
|
|
3149
|
-
} ? I : never :
|
|
3000
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3150
3001
|
Insert: infer I;
|
|
3151
3002
|
} ? I : never : never;
|
|
3152
|
-
export type TablesUpdate<
|
|
3003
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
3153
3004
|
schema: keyof Database;
|
|
3154
|
-
}, TableName extends
|
|
3005
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
3155
3006
|
schema: keyof Database;
|
|
3156
|
-
} ? keyof Database[
|
|
3007
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
3157
3008
|
schema: keyof Database;
|
|
3158
|
-
} ? Database[
|
|
3009
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3159
3010
|
Update: infer U;
|
|
3160
|
-
} ? U : never :
|
|
3011
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3161
3012
|
Update: infer U;
|
|
3162
3013
|
} ? U : never : never;
|
|
3163
|
-
export type Enums<
|
|
3014
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
3164
3015
|
schema: keyof Database;
|
|
3165
|
-
}, EnumName extends
|
|
3016
|
+
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
3166
3017
|
schema: keyof Database;
|
|
3167
|
-
} ? keyof Database[
|
|
3018
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
3168
3019
|
schema: keyof Database;
|
|
3169
|
-
} ? Database[
|
|
3170
|
-
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof
|
|
3020
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
3021
|
+
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] | {
|
|
3171
3022
|
schema: keyof Database;
|
|
3172
3023
|
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3173
3024
|
schema: keyof Database;
|
|
3174
3025
|
} ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
3175
3026
|
schema: keyof Database;
|
|
3176
|
-
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof
|
|
3177
|
-
export declare const Constants: {
|
|
3178
|
-
readonly graphql_public: {
|
|
3179
|
-
readonly Enums: {};
|
|
3180
|
-
};
|
|
3181
|
-
readonly internal: {
|
|
3182
|
-
readonly Enums: {};
|
|
3183
|
-
};
|
|
3184
|
-
readonly public: {
|
|
3185
|
-
readonly Enums: {
|
|
3186
|
-
readonly enum_broadcast_status: readonly ["inprogress", "completed", "stopped", "expired"];
|
|
3187
|
-
readonly enum_chat_colors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
|
|
3188
|
-
readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
|
|
3189
|
-
readonly enum_credit_transaction_type: readonly ["credit", "debit"];
|
|
3190
|
-
readonly enum_integration_name: readonly ["org.created", "org.updated", "org.member.created", "org.member.updated", "org.phone.created", "org.phone.connected", "org.phone.disconnected", "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"];
|
|
3191
|
-
readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "gsheets"];
|
|
3192
|
-
readonly enum_member_role: readonly ["admin", "member"];
|
|
3193
|
-
};
|
|
3194
|
-
};
|
|
3195
|
-
readonly storage: {
|
|
3196
|
-
readonly Enums: {};
|
|
3197
|
-
};
|
|
3198
|
-
};
|
|
3027
|
+
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] ? PublicSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3199
3028
|
export {};
|
|
3200
3029
|
//# sourceMappingURL=supabase.types.d.ts.map
|