@periskope/types 0.6.248 → 0.6.249
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 +73 -171
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +0 -75
- package/package.json +1 -1
- package/src/supabase.types.ts +165 -270
- package/tsconfig.tsbuildinfo +1 -1
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: {
|
|
@@ -259,6 +284,20 @@ export type Database = {
|
|
|
259
284
|
trigger?: string;
|
|
260
285
|
};
|
|
261
286
|
Relationships: [
|
|
287
|
+
{
|
|
288
|
+
foreignKeyName: "public_tbl_automation_rules_org_id_fkey";
|
|
289
|
+
columns: ["org_id"];
|
|
290
|
+
isOneToOne: false;
|
|
291
|
+
referencedRelation: "tbl_org";
|
|
292
|
+
referencedColumns: ["org_id"];
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
foreignKeyName: "public_tbl_automation_rules_org_id_fkey";
|
|
296
|
+
columns: ["org_id"];
|
|
297
|
+
isOneToOne: false;
|
|
298
|
+
referencedRelation: "view_org";
|
|
299
|
+
referencedColumns: ["org_id"];
|
|
300
|
+
},
|
|
262
301
|
{
|
|
263
302
|
foreignKeyName: "tbl_automation_rules_org_id_fkey";
|
|
264
303
|
columns: ["org_id"];
|
|
@@ -1496,6 +1535,8 @@ export type Database = {
|
|
|
1496
1535
|
org_metadata: Json | null;
|
|
1497
1536
|
org_name: string | null;
|
|
1498
1537
|
org_plan: Json | null;
|
|
1538
|
+
server_zone: string | null;
|
|
1539
|
+
signing_key: string | null;
|
|
1499
1540
|
stripe_customer_details: Json | null;
|
|
1500
1541
|
stripe_customer_id: string | null;
|
|
1501
1542
|
stripe_subscription_details: Json | null;
|
|
@@ -1510,6 +1551,8 @@ export type Database = {
|
|
|
1510
1551
|
org_metadata?: Json | null;
|
|
1511
1552
|
org_name?: string | null;
|
|
1512
1553
|
org_plan?: Json | null;
|
|
1554
|
+
server_zone?: string | null;
|
|
1555
|
+
signing_key?: string | null;
|
|
1513
1556
|
stripe_customer_details?: Json | null;
|
|
1514
1557
|
stripe_customer_id?: string | null;
|
|
1515
1558
|
stripe_subscription_details?: Json | null;
|
|
@@ -1524,6 +1567,8 @@ export type Database = {
|
|
|
1524
1567
|
org_metadata?: Json | null;
|
|
1525
1568
|
org_name?: string | null;
|
|
1526
1569
|
org_plan?: Json | null;
|
|
1570
|
+
server_zone?: string | null;
|
|
1571
|
+
signing_key?: string | null;
|
|
1527
1572
|
stripe_customer_details?: Json | null;
|
|
1528
1573
|
stripe_customer_id?: string | null;
|
|
1529
1574
|
stripe_subscription_details?: Json | null;
|
|
@@ -1632,6 +1677,13 @@ export type Database = {
|
|
|
1632
1677
|
user_id?: string | null;
|
|
1633
1678
|
};
|
|
1634
1679
|
Relationships: [
|
|
1680
|
+
{
|
|
1681
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1682
|
+
columns: ["user_id"];
|
|
1683
|
+
isOneToOne: false;
|
|
1684
|
+
referencedRelation: "users";
|
|
1685
|
+
referencedColumns: ["id"];
|
|
1686
|
+
},
|
|
1635
1687
|
{
|
|
1636
1688
|
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1637
1689
|
columns: ["org_id"];
|
|
@@ -2714,7 +2766,7 @@ export type Database = {
|
|
|
2714
2766
|
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
2715
2767
|
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
2716
2768
|
enum_credit_transaction_type: "credit" | "debit";
|
|
2717
|
-
enum_integration_name: "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";
|
|
2769
|
+
enum_integration_name: "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" | "org.phone.qr";
|
|
2718
2770
|
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets";
|
|
2719
2771
|
enum_member_role: "admin" | "member";
|
|
2720
2772
|
};
|
|
@@ -2790,7 +2842,6 @@ export type Database = {
|
|
|
2790
2842
|
created_at: string | null;
|
|
2791
2843
|
id: string;
|
|
2792
2844
|
last_accessed_at: string | null;
|
|
2793
|
-
level: number | null;
|
|
2794
2845
|
metadata: Json | null;
|
|
2795
2846
|
name: string | null;
|
|
2796
2847
|
owner: string | null;
|
|
@@ -2805,7 +2856,6 @@ export type Database = {
|
|
|
2805
2856
|
created_at?: string | null;
|
|
2806
2857
|
id?: string;
|
|
2807
2858
|
last_accessed_at?: string | null;
|
|
2808
|
-
level?: number | null;
|
|
2809
2859
|
metadata?: Json | null;
|
|
2810
2860
|
name?: string | null;
|
|
2811
2861
|
owner?: string | null;
|
|
@@ -2820,7 +2870,6 @@ export type Database = {
|
|
|
2820
2870
|
created_at?: string | null;
|
|
2821
2871
|
id?: string;
|
|
2822
2872
|
last_accessed_at?: string | null;
|
|
2823
|
-
level?: number | null;
|
|
2824
2873
|
metadata?: Json | null;
|
|
2825
2874
|
name?: string | null;
|
|
2826
2875
|
owner?: string | null;
|
|
@@ -2840,38 +2889,6 @@ export type Database = {
|
|
|
2840
2889
|
}
|
|
2841
2890
|
];
|
|
2842
2891
|
};
|
|
2843
|
-
prefixes: {
|
|
2844
|
-
Row: {
|
|
2845
|
-
bucket_id: string;
|
|
2846
|
-
created_at: string | null;
|
|
2847
|
-
level: number;
|
|
2848
|
-
name: string;
|
|
2849
|
-
updated_at: string | null;
|
|
2850
|
-
};
|
|
2851
|
-
Insert: {
|
|
2852
|
-
bucket_id: string;
|
|
2853
|
-
created_at?: string | null;
|
|
2854
|
-
level?: number;
|
|
2855
|
-
name: string;
|
|
2856
|
-
updated_at?: string | null;
|
|
2857
|
-
};
|
|
2858
|
-
Update: {
|
|
2859
|
-
bucket_id?: string;
|
|
2860
|
-
created_at?: string | null;
|
|
2861
|
-
level?: number;
|
|
2862
|
-
name?: string;
|
|
2863
|
-
updated_at?: string | null;
|
|
2864
|
-
};
|
|
2865
|
-
Relationships: [
|
|
2866
|
-
{
|
|
2867
|
-
foreignKeyName: "prefixes_bucketId_fkey";
|
|
2868
|
-
columns: ["bucket_id"];
|
|
2869
|
-
isOneToOne: false;
|
|
2870
|
-
referencedRelation: "buckets";
|
|
2871
|
-
referencedColumns: ["id"];
|
|
2872
|
-
}
|
|
2873
|
-
];
|
|
2874
|
-
};
|
|
2875
2892
|
s3_multipart_uploads: {
|
|
2876
2893
|
Row: {
|
|
2877
2894
|
bucket_id: string;
|
|
@@ -2975,13 +2992,6 @@ export type Database = {
|
|
|
2975
2992
|
[_ in never]: never;
|
|
2976
2993
|
};
|
|
2977
2994
|
Functions: {
|
|
2978
|
-
add_prefixes: {
|
|
2979
|
-
Args: {
|
|
2980
|
-
_bucket_id: string;
|
|
2981
|
-
_name: string;
|
|
2982
|
-
};
|
|
2983
|
-
Returns: undefined;
|
|
2984
|
-
};
|
|
2985
2995
|
can_insert_object: {
|
|
2986
2996
|
Args: {
|
|
2987
2997
|
bucketid: string;
|
|
@@ -2991,13 +3001,6 @@ export type Database = {
|
|
|
2991
3001
|
};
|
|
2992
3002
|
Returns: undefined;
|
|
2993
3003
|
};
|
|
2994
|
-
delete_prefix: {
|
|
2995
|
-
Args: {
|
|
2996
|
-
_bucket_id: string;
|
|
2997
|
-
_name: string;
|
|
2998
|
-
};
|
|
2999
|
-
Returns: boolean;
|
|
3000
|
-
};
|
|
3001
3004
|
extension: {
|
|
3002
3005
|
Args: {
|
|
3003
3006
|
name: string;
|
|
@@ -3016,24 +3019,6 @@ export type Database = {
|
|
|
3016
3019
|
};
|
|
3017
3020
|
Returns: string[];
|
|
3018
3021
|
};
|
|
3019
|
-
get_level: {
|
|
3020
|
-
Args: {
|
|
3021
|
-
name: string;
|
|
3022
|
-
};
|
|
3023
|
-
Returns: number;
|
|
3024
|
-
};
|
|
3025
|
-
get_prefix: {
|
|
3026
|
-
Args: {
|
|
3027
|
-
name: string;
|
|
3028
|
-
};
|
|
3029
|
-
Returns: string;
|
|
3030
|
-
};
|
|
3031
|
-
get_prefixes: {
|
|
3032
|
-
Args: {
|
|
3033
|
-
name: string;
|
|
3034
|
-
};
|
|
3035
|
-
Returns: string[];
|
|
3036
|
-
};
|
|
3037
3022
|
get_size_by_bucket: {
|
|
3038
3023
|
Args: Record<PropertyKey, never>;
|
|
3039
3024
|
Returns: {
|
|
@@ -3096,63 +3081,6 @@ export type Database = {
|
|
|
3096
3081
|
metadata: Json;
|
|
3097
3082
|
}[];
|
|
3098
3083
|
};
|
|
3099
|
-
search_legacy_v1: {
|
|
3100
|
-
Args: {
|
|
3101
|
-
prefix: string;
|
|
3102
|
-
bucketname: string;
|
|
3103
|
-
limits?: number;
|
|
3104
|
-
levels?: number;
|
|
3105
|
-
offsets?: number;
|
|
3106
|
-
search?: string;
|
|
3107
|
-
sortcolumn?: string;
|
|
3108
|
-
sortorder?: string;
|
|
3109
|
-
};
|
|
3110
|
-
Returns: {
|
|
3111
|
-
name: string;
|
|
3112
|
-
id: string;
|
|
3113
|
-
updated_at: string;
|
|
3114
|
-
created_at: string;
|
|
3115
|
-
last_accessed_at: string;
|
|
3116
|
-
metadata: Json;
|
|
3117
|
-
}[];
|
|
3118
|
-
};
|
|
3119
|
-
search_v1_optimised: {
|
|
3120
|
-
Args: {
|
|
3121
|
-
prefix: string;
|
|
3122
|
-
bucketname: string;
|
|
3123
|
-
limits?: number;
|
|
3124
|
-
levels?: number;
|
|
3125
|
-
offsets?: number;
|
|
3126
|
-
search?: string;
|
|
3127
|
-
sortcolumn?: string;
|
|
3128
|
-
sortorder?: string;
|
|
3129
|
-
};
|
|
3130
|
-
Returns: {
|
|
3131
|
-
name: string;
|
|
3132
|
-
id: string;
|
|
3133
|
-
updated_at: string;
|
|
3134
|
-
created_at: string;
|
|
3135
|
-
last_accessed_at: string;
|
|
3136
|
-
metadata: Json;
|
|
3137
|
-
}[];
|
|
3138
|
-
};
|
|
3139
|
-
search_v2: {
|
|
3140
|
-
Args: {
|
|
3141
|
-
prefix: string;
|
|
3142
|
-
bucket_name: string;
|
|
3143
|
-
limits?: number;
|
|
3144
|
-
levels?: number;
|
|
3145
|
-
start_after?: string;
|
|
3146
|
-
};
|
|
3147
|
-
Returns: {
|
|
3148
|
-
key: string;
|
|
3149
|
-
name: string;
|
|
3150
|
-
id: string;
|
|
3151
|
-
updated_at: string;
|
|
3152
|
-
created_at: string;
|
|
3153
|
-
metadata: Json;
|
|
3154
|
-
}[];
|
|
3155
|
-
};
|
|
3156
3084
|
};
|
|
3157
3085
|
Enums: {
|
|
3158
3086
|
[_ in never]: never;
|
|
@@ -3162,72 +3090,46 @@ export type Database = {
|
|
|
3162
3090
|
};
|
|
3163
3091
|
};
|
|
3164
3092
|
};
|
|
3165
|
-
type
|
|
3166
|
-
export type Tables<
|
|
3093
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
3094
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
3167
3095
|
schema: keyof Database;
|
|
3168
|
-
}, TableName extends
|
|
3096
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
3169
3097
|
schema: keyof Database;
|
|
3170
|
-
} ? keyof (Database[
|
|
3098
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
3171
3099
|
schema: keyof Database;
|
|
3172
|
-
} ? (Database[
|
|
3100
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3173
3101
|
Row: infer R;
|
|
3174
|
-
} ? R : never :
|
|
3102
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
3175
3103
|
Row: infer R;
|
|
3176
3104
|
} ? R : never : never;
|
|
3177
|
-
export type TablesInsert<
|
|
3105
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
3178
3106
|
schema: keyof Database;
|
|
3179
|
-
}, TableName extends
|
|
3107
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
3180
3108
|
schema: keyof Database;
|
|
3181
|
-
} ? keyof Database[
|
|
3109
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
3182
3110
|
schema: keyof Database;
|
|
3183
|
-
} ? Database[
|
|
3111
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3184
3112
|
Insert: infer I;
|
|
3185
|
-
} ? I : never :
|
|
3113
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3186
3114
|
Insert: infer I;
|
|
3187
3115
|
} ? I : never : never;
|
|
3188
|
-
export type TablesUpdate<
|
|
3116
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
3189
3117
|
schema: keyof Database;
|
|
3190
|
-
}, TableName extends
|
|
3118
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
3191
3119
|
schema: keyof Database;
|
|
3192
|
-
} ? keyof Database[
|
|
3120
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
3193
3121
|
schema: keyof Database;
|
|
3194
|
-
} ? Database[
|
|
3122
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3195
3123
|
Update: infer U;
|
|
3196
|
-
} ? U : never :
|
|
3124
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3197
3125
|
Update: infer U;
|
|
3198
3126
|
} ? U : never : never;
|
|
3199
|
-
export type Enums<
|
|
3200
|
-
schema: keyof Database;
|
|
3201
|
-
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3202
|
-
schema: keyof Database;
|
|
3203
|
-
} ? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
3127
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
3204
3128
|
schema: keyof Database;
|
|
3205
|
-
}
|
|
3206
|
-
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
3129
|
+
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
3207
3130
|
schema: keyof Database;
|
|
3208
|
-
}
|
|
3131
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
3209
3132
|
schema: keyof Database;
|
|
3210
|
-
} ?
|
|
3211
|
-
schema: keyof Database;
|
|
3212
|
-
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3213
|
-
export declare const Constants: {
|
|
3214
|
-
readonly internal: {
|
|
3215
|
-
readonly Enums: {};
|
|
3216
|
-
};
|
|
3217
|
-
readonly public: {
|
|
3218
|
-
readonly Enums: {
|
|
3219
|
-
readonly enum_broadcast_status: readonly ["inprogress", "completed", "stopped", "expired"];
|
|
3220
|
-
readonly enum_chat_colors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
|
|
3221
|
-
readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
|
|
3222
|
-
readonly enum_credit_transaction_type: readonly ["credit", "debit"];
|
|
3223
|
-
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"];
|
|
3224
|
-
readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "gsheets"];
|
|
3225
|
-
readonly enum_member_role: readonly ["admin", "member"];
|
|
3226
|
-
};
|
|
3227
|
-
};
|
|
3228
|
-
readonly storage: {
|
|
3229
|
-
readonly Enums: {};
|
|
3230
|
-
};
|
|
3231
|
-
};
|
|
3133
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
3232
3134
|
export {};
|
|
3233
3135
|
//# sourceMappingURL=supabase.types.d.ts.map
|