@periskope/types 0.6.230 → 0.6.231
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 +181 -45
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +0 -75
- package/mod_json_type.sh +0 -0
- package/package.json +19 -19
- package/src/supabase.types.ts +6 -0
- package/src/types.ts +8 -0
- package/tsconfig.tsbuildinfo +1 -0
package/dist/supabase.types.d.ts
CHANGED
|
@@ -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: {
|
|
@@ -562,7 +587,7 @@ export type Database = {
|
|
|
562
587
|
raw_data: Json | null;
|
|
563
588
|
sender_phone: string | null;
|
|
564
589
|
sent_message_id: string | null;
|
|
565
|
-
timestamp: string;
|
|
590
|
+
timestamp: string | null;
|
|
566
591
|
to: string | null;
|
|
567
592
|
token: string | null;
|
|
568
593
|
unique_id: string | null;
|
|
@@ -616,7 +641,7 @@ export type Database = {
|
|
|
616
641
|
raw_data?: Json | null;
|
|
617
642
|
sender_phone?: string | null;
|
|
618
643
|
sent_message_id?: string | null;
|
|
619
|
-
timestamp
|
|
644
|
+
timestamp?: string | null;
|
|
620
645
|
to?: string | null;
|
|
621
646
|
token?: string | null;
|
|
622
647
|
unique_id?: string | null;
|
|
@@ -670,7 +695,7 @@ export type Database = {
|
|
|
670
695
|
raw_data?: Json | null;
|
|
671
696
|
sender_phone?: string | null;
|
|
672
697
|
sent_message_id?: string | null;
|
|
673
|
-
timestamp?: string;
|
|
698
|
+
timestamp?: string | null;
|
|
674
699
|
to?: string | null;
|
|
675
700
|
token?: string | null;
|
|
676
701
|
unique_id?: string | null;
|
|
@@ -1583,10 +1608,12 @@ export type Database = {
|
|
|
1583
1608
|
invited_at: string | null;
|
|
1584
1609
|
invited_by: string | null;
|
|
1585
1610
|
is_active: boolean;
|
|
1611
|
+
is_online: boolean;
|
|
1586
1612
|
is_owner: boolean | null;
|
|
1587
1613
|
label_ids: string[] | null;
|
|
1588
1614
|
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1589
1615
|
member_image: string | null;
|
|
1616
|
+
member_metadata: Json | null;
|
|
1590
1617
|
member_name: string | null;
|
|
1591
1618
|
org_id: string;
|
|
1592
1619
|
org_phones: string[] | null;
|
|
@@ -1600,10 +1627,12 @@ export type Database = {
|
|
|
1600
1627
|
invited_at?: string | null;
|
|
1601
1628
|
invited_by?: string | null;
|
|
1602
1629
|
is_active?: boolean;
|
|
1630
|
+
is_online?: boolean;
|
|
1603
1631
|
is_owner?: boolean | null;
|
|
1604
1632
|
label_ids?: string[] | null;
|
|
1605
1633
|
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1606
1634
|
member_image?: string | null;
|
|
1635
|
+
member_metadata?: Json | null;
|
|
1607
1636
|
member_name?: string | null;
|
|
1608
1637
|
org_id: string;
|
|
1609
1638
|
org_phones?: string[] | null;
|
|
@@ -1617,10 +1646,12 @@ export type Database = {
|
|
|
1617
1646
|
invited_at?: string | null;
|
|
1618
1647
|
invited_by?: string | null;
|
|
1619
1648
|
is_active?: boolean;
|
|
1649
|
+
is_online?: boolean;
|
|
1620
1650
|
is_owner?: boolean | null;
|
|
1621
1651
|
label_ids?: string[] | null;
|
|
1622
1652
|
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1623
1653
|
member_image?: string | null;
|
|
1654
|
+
member_metadata?: Json | null;
|
|
1624
1655
|
member_name?: string | null;
|
|
1625
1656
|
org_id?: string;
|
|
1626
1657
|
org_phones?: string[] | null;
|
|
@@ -2665,7 +2696,7 @@ export type Database = {
|
|
|
2665
2696
|
raw_data: Json | null;
|
|
2666
2697
|
sender_phone: string | null;
|
|
2667
2698
|
sent_message_id: string | null;
|
|
2668
|
-
timestamp: string;
|
|
2699
|
+
timestamp: string | null;
|
|
2669
2700
|
to: string | null;
|
|
2670
2701
|
token: string | null;
|
|
2671
2702
|
unique_id: string | null;
|
|
@@ -2782,6 +2813,7 @@ export type Database = {
|
|
|
2782
2813
|
created_at: string | null;
|
|
2783
2814
|
id: string;
|
|
2784
2815
|
last_accessed_at: string | null;
|
|
2816
|
+
level: number | null;
|
|
2785
2817
|
metadata: Json | null;
|
|
2786
2818
|
name: string | null;
|
|
2787
2819
|
owner: string | null;
|
|
@@ -2796,6 +2828,7 @@ export type Database = {
|
|
|
2796
2828
|
created_at?: string | null;
|
|
2797
2829
|
id?: string;
|
|
2798
2830
|
last_accessed_at?: string | null;
|
|
2831
|
+
level?: number | null;
|
|
2799
2832
|
metadata?: Json | null;
|
|
2800
2833
|
name?: string | null;
|
|
2801
2834
|
owner?: string | null;
|
|
@@ -2810,6 +2843,7 @@ export type Database = {
|
|
|
2810
2843
|
created_at?: string | null;
|
|
2811
2844
|
id?: string;
|
|
2812
2845
|
last_accessed_at?: string | null;
|
|
2846
|
+
level?: number | null;
|
|
2813
2847
|
metadata?: Json | null;
|
|
2814
2848
|
name?: string | null;
|
|
2815
2849
|
owner?: string | null;
|
|
@@ -2829,6 +2863,38 @@ export type Database = {
|
|
|
2829
2863
|
}
|
|
2830
2864
|
];
|
|
2831
2865
|
};
|
|
2866
|
+
prefixes: {
|
|
2867
|
+
Row: {
|
|
2868
|
+
bucket_id: string;
|
|
2869
|
+
created_at: string | null;
|
|
2870
|
+
level: number;
|
|
2871
|
+
name: string;
|
|
2872
|
+
updated_at: string | null;
|
|
2873
|
+
};
|
|
2874
|
+
Insert: {
|
|
2875
|
+
bucket_id: string;
|
|
2876
|
+
created_at?: string | null;
|
|
2877
|
+
level?: number;
|
|
2878
|
+
name: string;
|
|
2879
|
+
updated_at?: string | null;
|
|
2880
|
+
};
|
|
2881
|
+
Update: {
|
|
2882
|
+
bucket_id?: string;
|
|
2883
|
+
created_at?: string | null;
|
|
2884
|
+
level?: number;
|
|
2885
|
+
name?: string;
|
|
2886
|
+
updated_at?: string | null;
|
|
2887
|
+
};
|
|
2888
|
+
Relationships: [
|
|
2889
|
+
{
|
|
2890
|
+
foreignKeyName: "prefixes_bucketId_fkey";
|
|
2891
|
+
columns: ["bucket_id"];
|
|
2892
|
+
isOneToOne: false;
|
|
2893
|
+
referencedRelation: "buckets";
|
|
2894
|
+
referencedColumns: ["id"];
|
|
2895
|
+
}
|
|
2896
|
+
];
|
|
2897
|
+
};
|
|
2832
2898
|
s3_multipart_uploads: {
|
|
2833
2899
|
Row: {
|
|
2834
2900
|
bucket_id: string;
|
|
@@ -2932,6 +2998,13 @@ export type Database = {
|
|
|
2932
2998
|
[_ in never]: never;
|
|
2933
2999
|
};
|
|
2934
3000
|
Functions: {
|
|
3001
|
+
add_prefixes: {
|
|
3002
|
+
Args: {
|
|
3003
|
+
_bucket_id: string;
|
|
3004
|
+
_name: string;
|
|
3005
|
+
};
|
|
3006
|
+
Returns: undefined;
|
|
3007
|
+
};
|
|
2935
3008
|
can_insert_object: {
|
|
2936
3009
|
Args: {
|
|
2937
3010
|
bucketid: string;
|
|
@@ -2941,6 +3014,13 @@ export type Database = {
|
|
|
2941
3014
|
};
|
|
2942
3015
|
Returns: undefined;
|
|
2943
3016
|
};
|
|
3017
|
+
delete_prefix: {
|
|
3018
|
+
Args: {
|
|
3019
|
+
_bucket_id: string;
|
|
3020
|
+
_name: string;
|
|
3021
|
+
};
|
|
3022
|
+
Returns: boolean;
|
|
3023
|
+
};
|
|
2944
3024
|
extension: {
|
|
2945
3025
|
Args: {
|
|
2946
3026
|
name: string;
|
|
@@ -2959,6 +3039,24 @@ export type Database = {
|
|
|
2959
3039
|
};
|
|
2960
3040
|
Returns: string[];
|
|
2961
3041
|
};
|
|
3042
|
+
get_level: {
|
|
3043
|
+
Args: {
|
|
3044
|
+
name: string;
|
|
3045
|
+
};
|
|
3046
|
+
Returns: number;
|
|
3047
|
+
};
|
|
3048
|
+
get_prefix: {
|
|
3049
|
+
Args: {
|
|
3050
|
+
name: string;
|
|
3051
|
+
};
|
|
3052
|
+
Returns: string;
|
|
3053
|
+
};
|
|
3054
|
+
get_prefixes: {
|
|
3055
|
+
Args: {
|
|
3056
|
+
name: string;
|
|
3057
|
+
};
|
|
3058
|
+
Returns: string[];
|
|
3059
|
+
};
|
|
2962
3060
|
get_size_by_bucket: {
|
|
2963
3061
|
Args: Record<PropertyKey, never>;
|
|
2964
3062
|
Returns: {
|
|
@@ -3021,6 +3119,63 @@ export type Database = {
|
|
|
3021
3119
|
metadata: Json;
|
|
3022
3120
|
}[];
|
|
3023
3121
|
};
|
|
3122
|
+
search_legacy_v1: {
|
|
3123
|
+
Args: {
|
|
3124
|
+
prefix: string;
|
|
3125
|
+
bucketname: string;
|
|
3126
|
+
limits?: number;
|
|
3127
|
+
levels?: number;
|
|
3128
|
+
offsets?: number;
|
|
3129
|
+
search?: string;
|
|
3130
|
+
sortcolumn?: string;
|
|
3131
|
+
sortorder?: string;
|
|
3132
|
+
};
|
|
3133
|
+
Returns: {
|
|
3134
|
+
name: string;
|
|
3135
|
+
id: string;
|
|
3136
|
+
updated_at: string;
|
|
3137
|
+
created_at: string;
|
|
3138
|
+
last_accessed_at: string;
|
|
3139
|
+
metadata: Json;
|
|
3140
|
+
}[];
|
|
3141
|
+
};
|
|
3142
|
+
search_v1_optimised: {
|
|
3143
|
+
Args: {
|
|
3144
|
+
prefix: string;
|
|
3145
|
+
bucketname: string;
|
|
3146
|
+
limits?: number;
|
|
3147
|
+
levels?: number;
|
|
3148
|
+
offsets?: number;
|
|
3149
|
+
search?: string;
|
|
3150
|
+
sortcolumn?: string;
|
|
3151
|
+
sortorder?: string;
|
|
3152
|
+
};
|
|
3153
|
+
Returns: {
|
|
3154
|
+
name: string;
|
|
3155
|
+
id: string;
|
|
3156
|
+
updated_at: string;
|
|
3157
|
+
created_at: string;
|
|
3158
|
+
last_accessed_at: string;
|
|
3159
|
+
metadata: Json;
|
|
3160
|
+
}[];
|
|
3161
|
+
};
|
|
3162
|
+
search_v2: {
|
|
3163
|
+
Args: {
|
|
3164
|
+
prefix: string;
|
|
3165
|
+
bucket_name: string;
|
|
3166
|
+
limits?: number;
|
|
3167
|
+
levels?: number;
|
|
3168
|
+
start_after?: string;
|
|
3169
|
+
};
|
|
3170
|
+
Returns: {
|
|
3171
|
+
key: string;
|
|
3172
|
+
name: string;
|
|
3173
|
+
id: string;
|
|
3174
|
+
updated_at: string;
|
|
3175
|
+
created_at: string;
|
|
3176
|
+
metadata: Json;
|
|
3177
|
+
}[];
|
|
3178
|
+
};
|
|
3024
3179
|
};
|
|
3025
3180
|
Enums: {
|
|
3026
3181
|
[_ in never]: never;
|
|
@@ -3030,72 +3185,53 @@ export type Database = {
|
|
|
3030
3185
|
};
|
|
3031
3186
|
};
|
|
3032
3187
|
};
|
|
3033
|
-
type
|
|
3034
|
-
export type Tables<
|
|
3188
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
3189
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
3035
3190
|
schema: keyof Database;
|
|
3036
|
-
}, TableName extends
|
|
3191
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
3037
3192
|
schema: keyof Database;
|
|
3038
|
-
} ? keyof (Database[
|
|
3193
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
3039
3194
|
schema: keyof Database;
|
|
3040
|
-
} ? (Database[
|
|
3195
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3041
3196
|
Row: infer R;
|
|
3042
|
-
} ? R : never :
|
|
3197
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
3043
3198
|
Row: infer R;
|
|
3044
3199
|
} ? R : never : never;
|
|
3045
|
-
export type TablesInsert<
|
|
3200
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
3046
3201
|
schema: keyof Database;
|
|
3047
|
-
}, TableName extends
|
|
3202
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
3048
3203
|
schema: keyof Database;
|
|
3049
|
-
} ? keyof Database[
|
|
3204
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
3050
3205
|
schema: keyof Database;
|
|
3051
|
-
} ? Database[
|
|
3206
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3052
3207
|
Insert: infer I;
|
|
3053
|
-
} ? I : never :
|
|
3208
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3054
3209
|
Insert: infer I;
|
|
3055
3210
|
} ? I : never : never;
|
|
3056
|
-
export type TablesUpdate<
|
|
3211
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
3057
3212
|
schema: keyof Database;
|
|
3058
|
-
}, TableName extends
|
|
3213
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
3059
3214
|
schema: keyof Database;
|
|
3060
|
-
} ? keyof Database[
|
|
3215
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
3061
3216
|
schema: keyof Database;
|
|
3062
|
-
} ? Database[
|
|
3217
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3063
3218
|
Update: infer U;
|
|
3064
|
-
} ? U : never :
|
|
3219
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3065
3220
|
Update: infer U;
|
|
3066
3221
|
} ? U : never : never;
|
|
3067
|
-
export type Enums<
|
|
3222
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
3068
3223
|
schema: keyof Database;
|
|
3069
|
-
}, EnumName extends
|
|
3224
|
+
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
3070
3225
|
schema: keyof Database;
|
|
3071
|
-
} ? keyof Database[
|
|
3226
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
3072
3227
|
schema: keyof Database;
|
|
3073
|
-
} ? Database[
|
|
3074
|
-
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof
|
|
3228
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
3229
|
+
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] | {
|
|
3075
3230
|
schema: keyof Database;
|
|
3076
3231
|
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3077
3232
|
schema: keyof Database;
|
|
3078
3233
|
} ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
3079
3234
|
schema: keyof Database;
|
|
3080
|
-
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof
|
|
3081
|
-
export declare const Constants: {
|
|
3082
|
-
readonly internal: {
|
|
3083
|
-
readonly Enums: {};
|
|
3084
|
-
};
|
|
3085
|
-
readonly public: {
|
|
3086
|
-
readonly Enums: {
|
|
3087
|
-
readonly enum_broadcast_status: readonly ["inprogress", "completed", "stopped", "expired"];
|
|
3088
|
-
readonly enum_chat_colors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
|
|
3089
|
-
readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
|
|
3090
|
-
readonly enum_credit_transaction_type: readonly ["credit", "debit"];
|
|
3091
|
-
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"];
|
|
3092
|
-
readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "gsheets"];
|
|
3093
|
-
readonly enum_member_role: readonly ["admin", "member"];
|
|
3094
|
-
};
|
|
3095
|
-
};
|
|
3096
|
-
readonly storage: {
|
|
3097
|
-
readonly Enums: {};
|
|
3098
|
-
};
|
|
3099
|
-
};
|
|
3235
|
+
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] ? PublicSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3100
3236
|
export {};
|
|
3101
3237
|
//# sourceMappingURL=supabase.types.d.ts.map
|