@periskope/types 0.6.266 → 0.6.268
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 +165 -53
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +1 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/mod_json_type.ps1 +108 -108
- package/mod_json_type.sh +22 -22
- package/package.json +19 -19
- package/src/index.ts +4 -4
- package/src/object.types.ts +100 -100
- package/src/rules.types.ts +2109 -2109
- package/src/supabase.types.ts +208 -150
- package/src/types.ts +1241 -1238
- package/tsconfig.json +18 -18
- package/update_package.ps1 +21 -21
- package/tsconfig.tsbuildinfo +0 -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: {
|
|
@@ -1714,13 +1689,6 @@ export type Database = {
|
|
|
1714
1689
|
user_id?: string | null;
|
|
1715
1690
|
};
|
|
1716
1691
|
Relationships: [
|
|
1717
|
-
{
|
|
1718
|
-
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1719
|
-
columns: ["user_id"];
|
|
1720
|
-
isOneToOne: false;
|
|
1721
|
-
referencedRelation: "users";
|
|
1722
|
-
referencedColumns: ["id"];
|
|
1723
|
-
},
|
|
1724
1692
|
{
|
|
1725
1693
|
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1726
1694
|
columns: ["org_id"];
|
|
@@ -2266,7 +2234,7 @@ export type Database = {
|
|
|
2266
2234
|
label_ids: Json | null;
|
|
2267
2235
|
latest_message: Json | null;
|
|
2268
2236
|
member_count: number | null;
|
|
2269
|
-
|
|
2237
|
+
member_unread_count: Json | null;
|
|
2270
2238
|
messages_admins_only: boolean | null;
|
|
2271
2239
|
org_id: string | null;
|
|
2272
2240
|
org_phone: string | null;
|
|
@@ -2789,6 +2757,18 @@ export type Database = {
|
|
|
2789
2757
|
vcards: string[] | null;
|
|
2790
2758
|
}[];
|
|
2791
2759
|
};
|
|
2760
|
+
update_jsonb_column: {
|
|
2761
|
+
Args: {
|
|
2762
|
+
table_name_input: string;
|
|
2763
|
+
column_name_input: string;
|
|
2764
|
+
id_name_input: string;
|
|
2765
|
+
id_value_input: string;
|
|
2766
|
+
json_input: Json;
|
|
2767
|
+
replace_input?: boolean;
|
|
2768
|
+
org_id_input?: string;
|
|
2769
|
+
};
|
|
2770
|
+
Returns: undefined;
|
|
2771
|
+
};
|
|
2792
2772
|
update_labels: {
|
|
2793
2773
|
Args: {
|
|
2794
2774
|
org_id_input: string;
|
|
@@ -2899,6 +2879,7 @@ export type Database = {
|
|
|
2899
2879
|
created_at: string | null;
|
|
2900
2880
|
id: string;
|
|
2901
2881
|
last_accessed_at: string | null;
|
|
2882
|
+
level: number | null;
|
|
2902
2883
|
metadata: Json | null;
|
|
2903
2884
|
name: string | null;
|
|
2904
2885
|
owner: string | null;
|
|
@@ -2913,6 +2894,7 @@ export type Database = {
|
|
|
2913
2894
|
created_at?: string | null;
|
|
2914
2895
|
id?: string;
|
|
2915
2896
|
last_accessed_at?: string | null;
|
|
2897
|
+
level?: number | null;
|
|
2916
2898
|
metadata?: Json | null;
|
|
2917
2899
|
name?: string | null;
|
|
2918
2900
|
owner?: string | null;
|
|
@@ -2927,6 +2909,7 @@ export type Database = {
|
|
|
2927
2909
|
created_at?: string | null;
|
|
2928
2910
|
id?: string;
|
|
2929
2911
|
last_accessed_at?: string | null;
|
|
2912
|
+
level?: number | null;
|
|
2930
2913
|
metadata?: Json | null;
|
|
2931
2914
|
name?: string | null;
|
|
2932
2915
|
owner?: string | null;
|
|
@@ -2946,6 +2929,38 @@ export type Database = {
|
|
|
2946
2929
|
}
|
|
2947
2930
|
];
|
|
2948
2931
|
};
|
|
2932
|
+
prefixes: {
|
|
2933
|
+
Row: {
|
|
2934
|
+
bucket_id: string;
|
|
2935
|
+
created_at: string | null;
|
|
2936
|
+
level: number;
|
|
2937
|
+
name: string;
|
|
2938
|
+
updated_at: string | null;
|
|
2939
|
+
};
|
|
2940
|
+
Insert: {
|
|
2941
|
+
bucket_id: string;
|
|
2942
|
+
created_at?: string | null;
|
|
2943
|
+
level?: number;
|
|
2944
|
+
name: string;
|
|
2945
|
+
updated_at?: string | null;
|
|
2946
|
+
};
|
|
2947
|
+
Update: {
|
|
2948
|
+
bucket_id?: string;
|
|
2949
|
+
created_at?: string | null;
|
|
2950
|
+
level?: number;
|
|
2951
|
+
name?: string;
|
|
2952
|
+
updated_at?: string | null;
|
|
2953
|
+
};
|
|
2954
|
+
Relationships: [
|
|
2955
|
+
{
|
|
2956
|
+
foreignKeyName: "prefixes_bucketId_fkey";
|
|
2957
|
+
columns: ["bucket_id"];
|
|
2958
|
+
isOneToOne: false;
|
|
2959
|
+
referencedRelation: "buckets";
|
|
2960
|
+
referencedColumns: ["id"];
|
|
2961
|
+
}
|
|
2962
|
+
];
|
|
2963
|
+
};
|
|
2949
2964
|
s3_multipart_uploads: {
|
|
2950
2965
|
Row: {
|
|
2951
2966
|
bucket_id: string;
|
|
@@ -3049,6 +3064,13 @@ export type Database = {
|
|
|
3049
3064
|
[_ in never]: never;
|
|
3050
3065
|
};
|
|
3051
3066
|
Functions: {
|
|
3067
|
+
add_prefixes: {
|
|
3068
|
+
Args: {
|
|
3069
|
+
_bucket_id: string;
|
|
3070
|
+
_name: string;
|
|
3071
|
+
};
|
|
3072
|
+
Returns: undefined;
|
|
3073
|
+
};
|
|
3052
3074
|
can_insert_object: {
|
|
3053
3075
|
Args: {
|
|
3054
3076
|
bucketid: string;
|
|
@@ -3058,6 +3080,13 @@ export type Database = {
|
|
|
3058
3080
|
};
|
|
3059
3081
|
Returns: undefined;
|
|
3060
3082
|
};
|
|
3083
|
+
delete_prefix: {
|
|
3084
|
+
Args: {
|
|
3085
|
+
_bucket_id: string;
|
|
3086
|
+
_name: string;
|
|
3087
|
+
};
|
|
3088
|
+
Returns: boolean;
|
|
3089
|
+
};
|
|
3061
3090
|
extension: {
|
|
3062
3091
|
Args: {
|
|
3063
3092
|
name: string;
|
|
@@ -3076,6 +3105,24 @@ export type Database = {
|
|
|
3076
3105
|
};
|
|
3077
3106
|
Returns: string[];
|
|
3078
3107
|
};
|
|
3108
|
+
get_level: {
|
|
3109
|
+
Args: {
|
|
3110
|
+
name: string;
|
|
3111
|
+
};
|
|
3112
|
+
Returns: number;
|
|
3113
|
+
};
|
|
3114
|
+
get_prefix: {
|
|
3115
|
+
Args: {
|
|
3116
|
+
name: string;
|
|
3117
|
+
};
|
|
3118
|
+
Returns: string;
|
|
3119
|
+
};
|
|
3120
|
+
get_prefixes: {
|
|
3121
|
+
Args: {
|
|
3122
|
+
name: string;
|
|
3123
|
+
};
|
|
3124
|
+
Returns: string[];
|
|
3125
|
+
};
|
|
3079
3126
|
get_size_by_bucket: {
|
|
3080
3127
|
Args: Record<PropertyKey, never>;
|
|
3081
3128
|
Returns: {
|
|
@@ -3138,6 +3185,63 @@ export type Database = {
|
|
|
3138
3185
|
metadata: Json;
|
|
3139
3186
|
}[];
|
|
3140
3187
|
};
|
|
3188
|
+
search_legacy_v1: {
|
|
3189
|
+
Args: {
|
|
3190
|
+
prefix: string;
|
|
3191
|
+
bucketname: string;
|
|
3192
|
+
limits?: number;
|
|
3193
|
+
levels?: number;
|
|
3194
|
+
offsets?: number;
|
|
3195
|
+
search?: string;
|
|
3196
|
+
sortcolumn?: string;
|
|
3197
|
+
sortorder?: string;
|
|
3198
|
+
};
|
|
3199
|
+
Returns: {
|
|
3200
|
+
name: string;
|
|
3201
|
+
id: string;
|
|
3202
|
+
updated_at: string;
|
|
3203
|
+
created_at: string;
|
|
3204
|
+
last_accessed_at: string;
|
|
3205
|
+
metadata: Json;
|
|
3206
|
+
}[];
|
|
3207
|
+
};
|
|
3208
|
+
search_v1_optimised: {
|
|
3209
|
+
Args: {
|
|
3210
|
+
prefix: string;
|
|
3211
|
+
bucketname: string;
|
|
3212
|
+
limits?: number;
|
|
3213
|
+
levels?: number;
|
|
3214
|
+
offsets?: number;
|
|
3215
|
+
search?: string;
|
|
3216
|
+
sortcolumn?: string;
|
|
3217
|
+
sortorder?: string;
|
|
3218
|
+
};
|
|
3219
|
+
Returns: {
|
|
3220
|
+
name: string;
|
|
3221
|
+
id: string;
|
|
3222
|
+
updated_at: string;
|
|
3223
|
+
created_at: string;
|
|
3224
|
+
last_accessed_at: string;
|
|
3225
|
+
metadata: Json;
|
|
3226
|
+
}[];
|
|
3227
|
+
};
|
|
3228
|
+
search_v2: {
|
|
3229
|
+
Args: {
|
|
3230
|
+
prefix: string;
|
|
3231
|
+
bucket_name: string;
|
|
3232
|
+
limits?: number;
|
|
3233
|
+
levels?: number;
|
|
3234
|
+
start_after?: string;
|
|
3235
|
+
};
|
|
3236
|
+
Returns: {
|
|
3237
|
+
key: string;
|
|
3238
|
+
name: string;
|
|
3239
|
+
id: string;
|
|
3240
|
+
updated_at: string;
|
|
3241
|
+
created_at: string;
|
|
3242
|
+
metadata: Json;
|
|
3243
|
+
}[];
|
|
3244
|
+
};
|
|
3141
3245
|
};
|
|
3142
3246
|
Enums: {
|
|
3143
3247
|
[_ in never]: never;
|
|
@@ -3147,53 +3251,61 @@ export type Database = {
|
|
|
3147
3251
|
};
|
|
3148
3252
|
};
|
|
3149
3253
|
};
|
|
3150
|
-
type
|
|
3151
|
-
export type Tables<
|
|
3254
|
+
type DefaultSchema = Database[Extract<keyof Database, "public">];
|
|
3255
|
+
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3152
3256
|
schema: keyof Database;
|
|
3153
|
-
}, TableName extends
|
|
3257
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3154
3258
|
schema: keyof Database;
|
|
3155
|
-
} ? keyof (Database[
|
|
3259
|
+
} ? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3156
3260
|
schema: keyof Database;
|
|
3157
|
-
} ? (Database[
|
|
3261
|
+
} ? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3158
3262
|
Row: infer R;
|
|
3159
|
-
} ? R : never :
|
|
3263
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
3160
3264
|
Row: infer R;
|
|
3161
3265
|
} ? R : never : never;
|
|
3162
|
-
export type TablesInsert<
|
|
3266
|
+
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3163
3267
|
schema: keyof Database;
|
|
3164
|
-
}, TableName extends
|
|
3268
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3165
3269
|
schema: keyof Database;
|
|
3166
|
-
} ? keyof Database[
|
|
3270
|
+
} ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3167
3271
|
schema: keyof Database;
|
|
3168
|
-
} ? Database[
|
|
3272
|
+
} ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3169
3273
|
Insert: infer I;
|
|
3170
|
-
} ? I : never :
|
|
3274
|
+
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3171
3275
|
Insert: infer I;
|
|
3172
3276
|
} ? I : never : never;
|
|
3173
|
-
export type TablesUpdate<
|
|
3277
|
+
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3174
3278
|
schema: keyof Database;
|
|
3175
|
-
}, TableName extends
|
|
3279
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3176
3280
|
schema: keyof Database;
|
|
3177
|
-
} ? keyof Database[
|
|
3281
|
+
} ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3178
3282
|
schema: keyof Database;
|
|
3179
|
-
} ? Database[
|
|
3283
|
+
} ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3180
3284
|
Update: infer U;
|
|
3181
|
-
} ? U : never :
|
|
3285
|
+
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3182
3286
|
Update: infer U;
|
|
3183
3287
|
} ? U : never : never;
|
|
3184
|
-
export type Enums<
|
|
3288
|
+
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
3289
|
+
schema: keyof Database;
|
|
3290
|
+
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3291
|
+
schema: keyof Database;
|
|
3292
|
+
} ? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
3293
|
+
schema: keyof Database;
|
|
3294
|
+
} ? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
3295
|
+
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
3185
3296
|
schema: keyof Database;
|
|
3186
|
-
},
|
|
3297
|
+
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3187
3298
|
schema: keyof Database;
|
|
3188
|
-
} ? keyof Database[
|
|
3299
|
+
} ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
3189
3300
|
schema: keyof Database;
|
|
3190
|
-
} ? Database[
|
|
3301
|
+
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3191
3302
|
export declare const Constants: {
|
|
3192
3303
|
readonly internal: {
|
|
3193
3304
|
readonly Enums: {};
|
|
3194
3305
|
};
|
|
3195
3306
|
readonly public: {
|
|
3196
3307
|
readonly Enums: {
|
|
3308
|
+
readonly enum_ai_context_type: readonly ["faq", "document"];
|
|
3197
3309
|
readonly enum_broadcast_status: readonly ["inprogress", "completed", "stopped", "expired"];
|
|
3198
3310
|
readonly enum_chat_colors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
|
|
3199
3311
|
readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
|