@simonarcher/fika-types 1.1.3 → 1.1.6

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/shop.d.ts CHANGED
@@ -313,7 +313,7 @@ export interface ShopContactDetails {
313
313
  };
314
314
  updatedAt?: Date;
315
315
  }
316
- export type ShopFeatureKey = 'powerOutlets' | 'laptopFriendly' | 'outdoorSeating' | 'indoorSeating' | 'accessibility' | 'alcohol' | 'breakfast' | 'lunch' | 'vegetarian' | 'petFriendly' | 'restrooms' | 'parking' | 'wifi' | 'acceptsCash' | 'acceptsCreditCards' | 'acceptsNfc' | 'discountOnReusableCup' | 'glutenFree' | 'loyaltyCard' | 'takeaway' | 'delivery';
316
+ export type ShopFeatureKey = 'powerOutlets' | 'laptopFriendly' | 'outdoorSeating' | 'indoorSeating' | 'accessibility' | 'alcohol' | 'breakfast' | 'lunch' | 'vegetarian' | 'petFriendly' | 'restrooms' | 'parking' | 'wifi' | 'acceptsCash' | 'acceptsCreditCards' | 'acceptsNfc' | 'discountOnReusableCup' | 'glutenFree' | 'loyaltyCard' | 'takeaway' | 'delivery' | 'inHouseRoasting' | 'walkInOnly';
317
317
  export type ShopSpecialtyKey = 'pourOverSpecialty' | 'espressoExpert' | 'singleOriginFocus' | 'localRoaster' | 'brewingEducation' | 'cuppingEvents' | 'matchaSpecialty' | 'decafSpecialty' | 'inHouseRoastery' | 'relaxingVibes' | 'bustlingEnergy' | 'quietStudySpace' | 'uniqueExperience' | 'instagramWorthy' | 'cozyAmbiance' | 'freshPastries' | 'homemadeTreats' | 'artisanBread' | 'localBakery' | 'healthyOptions' | 'dessertDestination' | 'inHouseBakery' | 'signatureBakedGoods' | 'lgbtqFriendly' | 'womenOwned' | 'familyOwned' | 'communityHub' | 'sociallyConscious' | 'localArtSupport' | 'liveMusic' | 'localArt' | 'bookExchange' | 'boardGames' | 'culturalEvents' | 'workshopSpace' | 'laptopFriendlyPro' | 'meetingSpaceAvailable' | 'quietZones' | 'fastWifi' | 'longStayWelcome' | 'coworkingVibes';
318
318
  export type SpecialtyCategoryKey = 'Coffee Excellence' | 'Atmosphere' | 'Food & Treats' | 'Community & Values' | 'Entertainment' | 'Work & Study';
319
319
  export interface ShopSpecialties {
@@ -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;
@@ -2461,6 +2566,56 @@ export type Database = {
2461
2566
  }
2462
2567
  ];
2463
2568
  };
2569
+ shop_awards: {
2570
+ Row: {
2571
+ id: string;
2572
+ shop_id: string;
2573
+ type: string;
2574
+ award_type: string;
2575
+ title: string;
2576
+ year: number | null;
2577
+ notes: string | null;
2578
+ image_url: string | null;
2579
+ issued_by: string | null;
2580
+ created_at: string | null;
2581
+ updated_at: string | null;
2582
+ };
2583
+ Insert: {
2584
+ id?: string;
2585
+ shop_id: string;
2586
+ type: string;
2587
+ award_type: string;
2588
+ title: string;
2589
+ year?: number | null;
2590
+ notes?: string | null;
2591
+ image_url?: string | null;
2592
+ issued_by?: string | null;
2593
+ created_at?: string | null;
2594
+ updated_at?: string | null;
2595
+ };
2596
+ Update: {
2597
+ id?: string;
2598
+ shop_id?: string;
2599
+ type?: string;
2600
+ award_type?: string;
2601
+ title?: string;
2602
+ year?: number | null;
2603
+ notes?: string | null;
2604
+ image_url?: string | null;
2605
+ issued_by?: string | null;
2606
+ created_at?: string | null;
2607
+ updated_at?: string | null;
2608
+ };
2609
+ Relationships: [
2610
+ {
2611
+ foreignKeyName: "shop_awards_shop_id_fkey";
2612
+ columns: ["shop_id"];
2613
+ isOneToOne: false;
2614
+ referencedRelation: "shops";
2615
+ referencedColumns: ["id"];
2616
+ }
2617
+ ];
2618
+ };
2464
2619
  shop_followers: {
2465
2620
  Row: {
2466
2621
  created_at: string | null;
@@ -3777,8 +3932,12 @@ export type Database = {
3777
3932
  created_at: string;
3778
3933
  description: string | null;
3779
3934
  id: string;
3935
+ is_editable: boolean;
3780
3936
  is_public: boolean | null;
3937
+ list_type: string;
3781
3938
  name: string;
3939
+ system_list_type: string | null;
3940
+ tags: string[];
3782
3941
  updated_at: string;
3783
3942
  user_id: string;
3784
3943
  };
@@ -3787,8 +3946,12 @@ export type Database = {
3787
3946
  created_at?: string;
3788
3947
  description?: string | null;
3789
3948
  id: string;
3949
+ is_editable?: boolean;
3790
3950
  is_public?: boolean | null;
3951
+ list_type?: string;
3791
3952
  name: string;
3953
+ system_list_type?: string | null;
3954
+ tags?: string[];
3792
3955
  updated_at?: string;
3793
3956
  user_id: string;
3794
3957
  };
@@ -3797,8 +3960,12 @@ export type Database = {
3797
3960
  created_at?: string;
3798
3961
  description?: string | null;
3799
3962
  id?: string;
3963
+ is_editable?: boolean;
3800
3964
  is_public?: boolean | null;
3965
+ list_type?: string;
3801
3966
  name?: string;
3967
+ system_list_type?: string | null;
3968
+ tags?: string[];
3802
3969
  updated_at?: string;
3803
3970
  user_id?: string;
3804
3971
  };
@@ -4034,6 +4201,7 @@ export type Database = {
4034
4201
  metadata: Json | null;
4035
4202
  photo_url: string | null;
4036
4203
  points: number | null;
4204
+ primary_coffee_identity: string | null;
4037
4205
  profile_image: string | null;
4038
4206
  provider_data: Json | null;
4039
4207
  refresh_token: string | null;
@@ -4061,6 +4229,7 @@ export type Database = {
4061
4229
  metadata?: Json | null;
4062
4230
  photo_url?: string | null;
4063
4231
  points?: number | null;
4232
+ primary_coffee_identity?: string | null;
4064
4233
  profile_image?: string | null;
4065
4234
  provider_data?: Json | null;
4066
4235
  refresh_token?: string | null;
@@ -4088,6 +4257,7 @@ export type Database = {
4088
4257
  metadata?: Json | null;
4089
4258
  photo_url?: string | null;
4090
4259
  points?: number | null;
4260
+ primary_coffee_identity?: string | null;
4091
4261
  profile_image?: string | null;
4092
4262
  provider_data?: Json | null;
4093
4263
  refresh_token?: string | null;
@@ -4289,7 +4459,9 @@ export type Database = {
4289
4459
  [_ in never]: never;
4290
4460
  };
4291
4461
  Enums: {
4292
- [_ in never]: never;
4462
+ menu_item_category: "drink" | "food";
4463
+ menu_item_drink_type: "Filter" | "ColdBrew" | "Specialty" | "Espresso" | "Milk" | "Tea" | "Iced" | "Extras" | "Other";
4464
+ menu_item_food_type: "Breakfast" | "Lunch" | "Pastry" | "Snack" | "Sweets" | "Sandwiches" | "Other";
4293
4465
  };
4294
4466
  CompositeTypes: {
4295
4467
  [_ in never]: never;
@@ -4347,7 +4519,11 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
4347
4519
  } ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
4348
4520
  export declare const Constants: {
4349
4521
  readonly public: {
4350
- readonly Enums: {};
4522
+ readonly Enums: {
4523
+ readonly menu_item_category: readonly ["drink", "food"];
4524
+ readonly menu_item_drink_type: readonly ["Filter", "ColdBrew", "Specialty", "Espresso", "Milk", "Tea", "Iced", "Extras", "Other"];
4525
+ readonly menu_item_food_type: readonly ["Breakfast", "Lunch", "Pastry", "Snack", "Sweets", "Sandwiches", "Other"];
4526
+ };
4351
4527
  };
4352
4528
  };
4353
4529
  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
  };
package/dist/user.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export type CoffeeIdentity = 'casual_drinker' | 'enthusiast' | 'barista' | 'shop_owner';
1
2
  export interface User {
2
3
  id: string;
3
4
  email: string;
@@ -21,6 +22,7 @@ export interface User {
21
22
  };
22
23
  expoPushTokens?: string[];
23
24
  featuredStickerIds?: string[];
25
+ primaryCoffeeIdentity?: CoffeeIdentity | null;
24
26
  notificationPreferences?: {
25
27
  channels: {
26
28
  [channelId: string]: {
@@ -47,6 +49,7 @@ export interface PublicUser {
47
49
  createdAt: Date;
48
50
  shopLists?: string[];
49
51
  featuredStickerIds?: string[];
52
+ primaryCoffeeIdentity?: CoffeeIdentity | null;
50
53
  }
51
54
  export interface CreateUserAccountRequest {
52
55
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonarcher/fika-types",
3
- "version": "1.1.3",
3
+ "version": "1.1.6",
4
4
  "description": "Shared TypeScript types for Fika projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",