@simonarcher/fika-types 1.1.2 → 1.1.5
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.d.ts +224 -2
- package/dist/supabase.js +23 -1
- package/package.json +1 -1
package/dist/supabase.d.ts
CHANGED
|
@@ -1221,6 +1221,108 @@ export type Database = {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
];
|
|
1223
1223
|
};
|
|
1224
|
+
menu_item_coffee_beans: {
|
|
1225
|
+
Row: {
|
|
1226
|
+
coffee_bean_id: string;
|
|
1227
|
+
created_at: string;
|
|
1228
|
+
id: string;
|
|
1229
|
+
menu_item_id: string;
|
|
1230
|
+
};
|
|
1231
|
+
Insert: {
|
|
1232
|
+
coffee_bean_id: string;
|
|
1233
|
+
created_at?: string;
|
|
1234
|
+
id?: string;
|
|
1235
|
+
menu_item_id: string;
|
|
1236
|
+
};
|
|
1237
|
+
Update: {
|
|
1238
|
+
coffee_bean_id?: string;
|
|
1239
|
+
created_at?: string;
|
|
1240
|
+
id?: string;
|
|
1241
|
+
menu_item_id?: string;
|
|
1242
|
+
};
|
|
1243
|
+
Relationships: [
|
|
1244
|
+
{
|
|
1245
|
+
foreignKeyName: "menu_item_coffee_beans_coffee_bean_id_fkey";
|
|
1246
|
+
columns: ["coffee_bean_id"];
|
|
1247
|
+
isOneToOne: false;
|
|
1248
|
+
referencedRelation: "coffee_beans";
|
|
1249
|
+
referencedColumns: ["id"];
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
foreignKeyName: "menu_item_coffee_beans_menu_item_id_fkey";
|
|
1253
|
+
columns: ["menu_item_id"];
|
|
1254
|
+
isOneToOne: false;
|
|
1255
|
+
referencedRelation: "menu_items";
|
|
1256
|
+
referencedColumns: ["id"];
|
|
1257
|
+
}
|
|
1258
|
+
];
|
|
1259
|
+
};
|
|
1260
|
+
menu_items: {
|
|
1261
|
+
Row: {
|
|
1262
|
+
available: boolean;
|
|
1263
|
+
category: Database["public"]["Enums"]["menu_item_category"];
|
|
1264
|
+
created_at: string;
|
|
1265
|
+
currency: string;
|
|
1266
|
+
description: string | null;
|
|
1267
|
+
drink_type: Database["public"]["Enums"]["menu_item_drink_type"] | null;
|
|
1268
|
+
food_type: Database["public"]["Enums"]["menu_item_food_type"] | null;
|
|
1269
|
+
id: string;
|
|
1270
|
+
image: string | null;
|
|
1271
|
+
name: string;
|
|
1272
|
+
price: number;
|
|
1273
|
+
product_id: string | null;
|
|
1274
|
+
shop_id: string;
|
|
1275
|
+
updated_at: string;
|
|
1276
|
+
};
|
|
1277
|
+
Insert: {
|
|
1278
|
+
available?: boolean;
|
|
1279
|
+
category?: Database["public"]["Enums"]["menu_item_category"];
|
|
1280
|
+
created_at?: string;
|
|
1281
|
+
currency?: string;
|
|
1282
|
+
description?: string | null;
|
|
1283
|
+
drink_type?: Database["public"]["Enums"]["menu_item_drink_type"] | null;
|
|
1284
|
+
food_type?: Database["public"]["Enums"]["menu_item_food_type"] | null;
|
|
1285
|
+
id?: string;
|
|
1286
|
+
image?: string | null;
|
|
1287
|
+
name: string;
|
|
1288
|
+
price: number;
|
|
1289
|
+
product_id?: string | null;
|
|
1290
|
+
shop_id: string;
|
|
1291
|
+
updated_at?: string;
|
|
1292
|
+
};
|
|
1293
|
+
Update: {
|
|
1294
|
+
available?: boolean;
|
|
1295
|
+
category?: Database["public"]["Enums"]["menu_item_category"];
|
|
1296
|
+
created_at?: string;
|
|
1297
|
+
currency?: string;
|
|
1298
|
+
description?: string | null;
|
|
1299
|
+
drink_type?: Database["public"]["Enums"]["menu_item_drink_type"] | null;
|
|
1300
|
+
food_type?: Database["public"]["Enums"]["menu_item_food_type"] | null;
|
|
1301
|
+
id?: string;
|
|
1302
|
+
image?: string | null;
|
|
1303
|
+
name?: string;
|
|
1304
|
+
price?: number;
|
|
1305
|
+
product_id?: string | null;
|
|
1306
|
+
shop_id?: string;
|
|
1307
|
+
updated_at?: string;
|
|
1308
|
+
};
|
|
1309
|
+
Relationships: [
|
|
1310
|
+
{
|
|
1311
|
+
foreignKeyName: "menu_items_shop_id_fkey";
|
|
1312
|
+
columns: ["shop_id"];
|
|
1313
|
+
isOneToOne: false;
|
|
1314
|
+
referencedRelation: "shop_stats";
|
|
1315
|
+
referencedColumns: ["id"];
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
foreignKeyName: "menu_items_shop_id_fkey";
|
|
1319
|
+
columns: ["shop_id"];
|
|
1320
|
+
isOneToOne: false;
|
|
1321
|
+
referencedRelation: "shops";
|
|
1322
|
+
referencedColumns: ["id"];
|
|
1323
|
+
}
|
|
1324
|
+
];
|
|
1325
|
+
};
|
|
1224
1326
|
news: {
|
|
1225
1327
|
Row: {
|
|
1226
1328
|
author_id: string | null;
|
|
@@ -1234,6 +1336,7 @@ export type Database = {
|
|
|
1234
1336
|
id: string;
|
|
1235
1337
|
image: string | null;
|
|
1236
1338
|
is_published: boolean | null;
|
|
1339
|
+
likes: string[] | null;
|
|
1237
1340
|
metadata: Json | null;
|
|
1238
1341
|
posted_by: string | null;
|
|
1239
1342
|
published_at: string | null;
|
|
@@ -1258,6 +1361,7 @@ export type Database = {
|
|
|
1258
1361
|
id?: string;
|
|
1259
1362
|
image?: string | null;
|
|
1260
1363
|
is_published?: boolean | null;
|
|
1364
|
+
likes?: string[] | null;
|
|
1261
1365
|
metadata?: Json | null;
|
|
1262
1366
|
posted_by?: string | null;
|
|
1263
1367
|
published_at?: string | null;
|
|
@@ -1282,6 +1386,7 @@ export type Database = {
|
|
|
1282
1386
|
id?: string;
|
|
1283
1387
|
image?: string | null;
|
|
1284
1388
|
is_published?: boolean | null;
|
|
1389
|
+
likes?: string[] | null;
|
|
1285
1390
|
metadata?: Json | null;
|
|
1286
1391
|
posted_by?: string | null;
|
|
1287
1392
|
published_at?: string | null;
|
|
@@ -2359,6 +2464,54 @@ export type Database = {
|
|
|
2359
2464
|
}
|
|
2360
2465
|
];
|
|
2361
2466
|
};
|
|
2467
|
+
shop_daily_visitor_stats: {
|
|
2468
|
+
Row: {
|
|
2469
|
+
created_at: string | null;
|
|
2470
|
+
date: string;
|
|
2471
|
+
id: string;
|
|
2472
|
+
shop_id: string;
|
|
2473
|
+
total_check_ins: number | null;
|
|
2474
|
+
unique_visitors: number | null;
|
|
2475
|
+
updated_at: string | null;
|
|
2476
|
+
user_check_ins: Json | null;
|
|
2477
|
+
};
|
|
2478
|
+
Insert: {
|
|
2479
|
+
created_at?: string | null;
|
|
2480
|
+
date: string;
|
|
2481
|
+
id?: string;
|
|
2482
|
+
shop_id: string;
|
|
2483
|
+
total_check_ins?: number | null;
|
|
2484
|
+
unique_visitors?: number | null;
|
|
2485
|
+
updated_at?: string | null;
|
|
2486
|
+
user_check_ins?: Json | null;
|
|
2487
|
+
};
|
|
2488
|
+
Update: {
|
|
2489
|
+
created_at?: string | null;
|
|
2490
|
+
date?: string;
|
|
2491
|
+
id?: string;
|
|
2492
|
+
shop_id?: string;
|
|
2493
|
+
total_check_ins?: number | null;
|
|
2494
|
+
unique_visitors?: number | null;
|
|
2495
|
+
updated_at?: string | null;
|
|
2496
|
+
user_check_ins?: Json | null;
|
|
2497
|
+
};
|
|
2498
|
+
Relationships: [
|
|
2499
|
+
{
|
|
2500
|
+
foreignKeyName: "shop_daily_visitor_stats_shop_id_fkey";
|
|
2501
|
+
columns: ["shop_id"];
|
|
2502
|
+
isOneToOne: false;
|
|
2503
|
+
referencedRelation: "shop_stats";
|
|
2504
|
+
referencedColumns: ["id"];
|
|
2505
|
+
},
|
|
2506
|
+
{
|
|
2507
|
+
foreignKeyName: "shop_daily_visitor_stats_shop_id_fkey";
|
|
2508
|
+
columns: ["shop_id"];
|
|
2509
|
+
isOneToOne: false;
|
|
2510
|
+
referencedRelation: "shops";
|
|
2511
|
+
referencedColumns: ["id"];
|
|
2512
|
+
}
|
|
2513
|
+
];
|
|
2514
|
+
};
|
|
2362
2515
|
shop_favourites: {
|
|
2363
2516
|
Row: {
|
|
2364
2517
|
created_at: string | null;
|
|
@@ -2584,6 +2737,66 @@ export type Database = {
|
|
|
2584
2737
|
}
|
|
2585
2738
|
];
|
|
2586
2739
|
};
|
|
2740
|
+
shop_visitors: {
|
|
2741
|
+
Row: {
|
|
2742
|
+
first_check_in: string | null;
|
|
2743
|
+
last_check_in: string | null;
|
|
2744
|
+
shop_id: string;
|
|
2745
|
+
total_check_ins: number | null;
|
|
2746
|
+
user_id: string;
|
|
2747
|
+
};
|
|
2748
|
+
Insert: {
|
|
2749
|
+
first_check_in?: string | null;
|
|
2750
|
+
last_check_in?: string | null;
|
|
2751
|
+
shop_id: string;
|
|
2752
|
+
total_check_ins?: number | null;
|
|
2753
|
+
user_id: string;
|
|
2754
|
+
};
|
|
2755
|
+
Update: {
|
|
2756
|
+
first_check_in?: string | null;
|
|
2757
|
+
last_check_in?: string | null;
|
|
2758
|
+
shop_id?: string;
|
|
2759
|
+
total_check_ins?: number | null;
|
|
2760
|
+
user_id?: string;
|
|
2761
|
+
};
|
|
2762
|
+
Relationships: [
|
|
2763
|
+
{
|
|
2764
|
+
foreignKeyName: "shop_visitors_shop_id_fkey";
|
|
2765
|
+
columns: ["shop_id"];
|
|
2766
|
+
isOneToOne: false;
|
|
2767
|
+
referencedRelation: "shop_stats";
|
|
2768
|
+
referencedColumns: ["id"];
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
foreignKeyName: "shop_visitors_shop_id_fkey";
|
|
2772
|
+
columns: ["shop_id"];
|
|
2773
|
+
isOneToOne: false;
|
|
2774
|
+
referencedRelation: "shops";
|
|
2775
|
+
referencedColumns: ["id"];
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
foreignKeyName: "shop_visitors_user_id_fkey";
|
|
2779
|
+
columns: ["user_id"];
|
|
2780
|
+
isOneToOne: false;
|
|
2781
|
+
referencedRelation: "leaderboard";
|
|
2782
|
+
referencedColumns: ["id"];
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
foreignKeyName: "shop_visitors_user_id_fkey";
|
|
2786
|
+
columns: ["user_id"];
|
|
2787
|
+
isOneToOne: false;
|
|
2788
|
+
referencedRelation: "user_activity_summary";
|
|
2789
|
+
referencedColumns: ["id"];
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
foreignKeyName: "shop_visitors_user_id_fkey";
|
|
2793
|
+
columns: ["user_id"];
|
|
2794
|
+
isOneToOne: false;
|
|
2795
|
+
referencedRelation: "users";
|
|
2796
|
+
referencedColumns: ["id"];
|
|
2797
|
+
}
|
|
2798
|
+
];
|
|
2799
|
+
};
|
|
2587
2800
|
shops: {
|
|
2588
2801
|
Row: {
|
|
2589
2802
|
active: boolean | null;
|
|
@@ -2594,6 +2807,7 @@ export type Database = {
|
|
|
2594
2807
|
brew_methods: string[] | null;
|
|
2595
2808
|
city: string | null;
|
|
2596
2809
|
coffee_brewing_methods: Json | null;
|
|
2810
|
+
community_stats: Json | null;
|
|
2597
2811
|
contact_details: Json | null;
|
|
2598
2812
|
country_code: string | null;
|
|
2599
2813
|
cover_image: string | null;
|
|
@@ -2633,6 +2847,7 @@ export type Database = {
|
|
|
2633
2847
|
brew_methods?: string[] | null;
|
|
2634
2848
|
city?: string | null;
|
|
2635
2849
|
coffee_brewing_methods?: Json | null;
|
|
2850
|
+
community_stats?: Json | null;
|
|
2636
2851
|
contact_details?: Json | null;
|
|
2637
2852
|
country_code?: string | null;
|
|
2638
2853
|
cover_image?: string | null;
|
|
@@ -2672,6 +2887,7 @@ export type Database = {
|
|
|
2672
2887
|
brew_methods?: string[] | null;
|
|
2673
2888
|
city?: string | null;
|
|
2674
2889
|
coffee_brewing_methods?: Json | null;
|
|
2890
|
+
community_stats?: Json | null;
|
|
2675
2891
|
contact_details?: Json | null;
|
|
2676
2892
|
country_code?: string | null;
|
|
2677
2893
|
cover_image?: string | null;
|
|
@@ -4178,7 +4394,9 @@ export type Database = {
|
|
|
4178
4394
|
[_ in never]: never;
|
|
4179
4395
|
};
|
|
4180
4396
|
Enums: {
|
|
4181
|
-
|
|
4397
|
+
menu_item_category: "drink" | "food";
|
|
4398
|
+
menu_item_drink_type: "Filter" | "ColdBrew" | "Specialty" | "Espresso" | "Milk" | "Tea" | "Iced" | "Extras" | "Other";
|
|
4399
|
+
menu_item_food_type: "Breakfast" | "Lunch" | "Pastry" | "Snack" | "Sweets" | "Sandwiches" | "Other";
|
|
4182
4400
|
};
|
|
4183
4401
|
CompositeTypes: {
|
|
4184
4402
|
[_ in never]: never;
|
|
@@ -4236,7 +4454,11 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
|
|
|
4236
4454
|
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
4237
4455
|
export declare const Constants: {
|
|
4238
4456
|
readonly public: {
|
|
4239
|
-
readonly Enums: {
|
|
4457
|
+
readonly Enums: {
|
|
4458
|
+
readonly menu_item_category: readonly ["drink", "food"];
|
|
4459
|
+
readonly menu_item_drink_type: readonly ["Filter", "ColdBrew", "Specialty", "Espresso", "Milk", "Tea", "Iced", "Extras", "Other"];
|
|
4460
|
+
readonly menu_item_food_type: readonly ["Breakfast", "Lunch", "Pastry", "Snack", "Sweets", "Sandwiches", "Other"];
|
|
4461
|
+
};
|
|
4240
4462
|
};
|
|
4241
4463
|
};
|
|
4242
4464
|
export {};
|
package/dist/supabase.js
CHANGED
|
@@ -3,6 +3,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Constants = void 0;
|
|
4
4
|
exports.Constants = {
|
|
5
5
|
public: {
|
|
6
|
-
Enums: {
|
|
6
|
+
Enums: {
|
|
7
|
+
menu_item_category: ["drink", "food"],
|
|
8
|
+
menu_item_drink_type: [
|
|
9
|
+
"Filter",
|
|
10
|
+
"ColdBrew",
|
|
11
|
+
"Specialty",
|
|
12
|
+
"Espresso",
|
|
13
|
+
"Milk",
|
|
14
|
+
"Tea",
|
|
15
|
+
"Iced",
|
|
16
|
+
"Extras",
|
|
17
|
+
"Other",
|
|
18
|
+
],
|
|
19
|
+
menu_item_food_type: [
|
|
20
|
+
"Breakfast",
|
|
21
|
+
"Lunch",
|
|
22
|
+
"Pastry",
|
|
23
|
+
"Snack",
|
|
24
|
+
"Sweets",
|
|
25
|
+
"Sandwiches",
|
|
26
|
+
"Other",
|
|
27
|
+
],
|
|
28
|
+
},
|
|
7
29
|
},
|
|
8
30
|
};
|