@flowselections/floriday-klanten-module 1.0.4 → 1.0.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.
@@ -476,6 +476,276 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
476
476
  };
477
477
  Relationships: [];
478
478
  };
479
+ dashboard_ai_conversations: {
480
+ Row: {
481
+ created_at: string;
482
+ id: string;
483
+ messages: import("./types").Json;
484
+ page_id: string | null;
485
+ title: string | null;
486
+ updated_at: string;
487
+ user_id: string;
488
+ };
489
+ Insert: {
490
+ created_at?: string;
491
+ id?: string;
492
+ messages?: import("./types").Json;
493
+ page_id?: string | null;
494
+ title?: string | null;
495
+ updated_at?: string;
496
+ user_id: string;
497
+ };
498
+ Update: {
499
+ created_at?: string;
500
+ id?: string;
501
+ messages?: import("./types").Json;
502
+ page_id?: string | null;
503
+ title?: string | null;
504
+ updated_at?: string;
505
+ user_id?: string;
506
+ };
507
+ Relationships: [{
508
+ foreignKeyName: "dashboard_ai_conversations_page_id_fkey";
509
+ columns: ["page_id"];
510
+ isOneToOne: false;
511
+ referencedRelation: "dashboard_pages";
512
+ referencedColumns: ["id"];
513
+ }];
514
+ };
515
+ dashboard_alert_events: {
516
+ Row: {
517
+ acknowledged: boolean;
518
+ block_id: string;
519
+ created_at: string;
520
+ id: string;
521
+ message: string | null;
522
+ page_id: string;
523
+ severity: string;
524
+ threshold: number | null;
525
+ user_id: string;
526
+ value: number | null;
527
+ };
528
+ Insert: {
529
+ acknowledged?: boolean;
530
+ block_id: string;
531
+ created_at?: string;
532
+ id?: string;
533
+ message?: string | null;
534
+ page_id: string;
535
+ severity?: string;
536
+ threshold?: number | null;
537
+ user_id: string;
538
+ value?: number | null;
539
+ };
540
+ Update: {
541
+ acknowledged?: boolean;
542
+ block_id?: string;
543
+ created_at?: string;
544
+ id?: string;
545
+ message?: string | null;
546
+ page_id?: string;
547
+ severity?: string;
548
+ threshold?: number | null;
549
+ user_id?: string;
550
+ value?: number | null;
551
+ };
552
+ Relationships: [{
553
+ foreignKeyName: "dashboard_alert_events_block_id_fkey";
554
+ columns: ["block_id"];
555
+ isOneToOne: false;
556
+ referencedRelation: "dashboard_blocks";
557
+ referencedColumns: ["id"];
558
+ }, {
559
+ foreignKeyName: "dashboard_alert_events_page_id_fkey";
560
+ columns: ["page_id"];
561
+ isOneToOne: false;
562
+ referencedRelation: "dashboard_pages";
563
+ referencedColumns: ["id"];
564
+ }];
565
+ };
566
+ dashboard_block_templates: {
567
+ Row: {
568
+ config: import("./types").Json;
569
+ created_at: string;
570
+ description: string | null;
571
+ id: string;
572
+ is_public: boolean;
573
+ name: string;
574
+ type: string;
575
+ updated_at: string;
576
+ user_id: string;
577
+ };
578
+ Insert: {
579
+ config?: import("./types").Json;
580
+ created_at?: string;
581
+ description?: string | null;
582
+ id?: string;
583
+ is_public?: boolean;
584
+ name: string;
585
+ type: string;
586
+ updated_at?: string;
587
+ user_id: string;
588
+ };
589
+ Update: {
590
+ config?: import("./types").Json;
591
+ created_at?: string;
592
+ description?: string | null;
593
+ id?: string;
594
+ is_public?: boolean;
595
+ name?: string;
596
+ type?: string;
597
+ updated_at?: string;
598
+ user_id?: string;
599
+ };
600
+ Relationships: [];
601
+ };
602
+ dashboard_blocks: {
603
+ Row: {
604
+ config: import("./types").Json;
605
+ created_at: string;
606
+ filters: import("./types").Json;
607
+ id: string;
608
+ layout: import("./types").Json;
609
+ page_id: string;
610
+ permissions: import("./types").Json;
611
+ sort_order: number;
612
+ title: string;
613
+ type: string;
614
+ updated_at: string;
615
+ };
616
+ Insert: {
617
+ config?: import("./types").Json;
618
+ created_at?: string;
619
+ filters?: import("./types").Json;
620
+ id?: string;
621
+ layout?: import("./types").Json;
622
+ page_id: string;
623
+ permissions?: import("./types").Json;
624
+ sort_order?: number;
625
+ title: string;
626
+ type: string;
627
+ updated_at?: string;
628
+ };
629
+ Update: {
630
+ config?: import("./types").Json;
631
+ created_at?: string;
632
+ filters?: import("./types").Json;
633
+ id?: string;
634
+ layout?: import("./types").Json;
635
+ page_id?: string;
636
+ permissions?: import("./types").Json;
637
+ sort_order?: number;
638
+ title?: string;
639
+ type?: string;
640
+ updated_at?: string;
641
+ };
642
+ Relationships: [{
643
+ foreignKeyName: "dashboard_blocks_page_id_fkey";
644
+ columns: ["page_id"];
645
+ isOneToOne: false;
646
+ referencedRelation: "dashboard_pages";
647
+ referencedColumns: ["id"];
648
+ }];
649
+ };
650
+ dashboard_daily_reports: {
651
+ Row: {
652
+ created_at: string;
653
+ highlights: import("./types").Json | null;
654
+ id: string;
655
+ page_id: string;
656
+ summary: string;
657
+ user_id: string;
658
+ };
659
+ Insert: {
660
+ created_at?: string;
661
+ highlights?: import("./types").Json | null;
662
+ id?: string;
663
+ page_id: string;
664
+ summary: string;
665
+ user_id: string;
666
+ };
667
+ Update: {
668
+ created_at?: string;
669
+ highlights?: import("./types").Json | null;
670
+ id?: string;
671
+ page_id?: string;
672
+ summary?: string;
673
+ user_id?: string;
674
+ };
675
+ Relationships: [{
676
+ foreignKeyName: "dashboard_daily_reports_page_id_fkey";
677
+ columns: ["page_id"];
678
+ isOneToOne: false;
679
+ referencedRelation: "dashboard_pages";
680
+ referencedColumns: ["id"];
681
+ }];
682
+ };
683
+ dashboard_pages: {
684
+ Row: {
685
+ created_at: string;
686
+ icon: string | null;
687
+ id: string;
688
+ is_default: boolean;
689
+ name: string;
690
+ shared_with: string[];
691
+ sort_order: number;
692
+ updated_at: string;
693
+ user_id: string;
694
+ };
695
+ Insert: {
696
+ created_at?: string;
697
+ icon?: string | null;
698
+ id?: string;
699
+ is_default?: boolean;
700
+ name: string;
701
+ shared_with?: string[];
702
+ sort_order?: number;
703
+ updated_at?: string;
704
+ user_id: string;
705
+ };
706
+ Update: {
707
+ created_at?: string;
708
+ icon?: string | null;
709
+ id?: string;
710
+ is_default?: boolean;
711
+ name?: string;
712
+ shared_with?: string[];
713
+ sort_order?: number;
714
+ updated_at?: string;
715
+ user_id?: string;
716
+ };
717
+ Relationships: [];
718
+ };
719
+ dashboard_saved_queries: {
720
+ Row: {
721
+ created_at: string;
722
+ description: string | null;
723
+ id: string;
724
+ name: string;
725
+ query_spec: import("./types").Json;
726
+ updated_at: string;
727
+ user_id: string;
728
+ };
729
+ Insert: {
730
+ created_at?: string;
731
+ description?: string | null;
732
+ id?: string;
733
+ name: string;
734
+ query_spec: import("./types").Json;
735
+ updated_at?: string;
736
+ user_id: string;
737
+ };
738
+ Update: {
739
+ created_at?: string;
740
+ description?: string | null;
741
+ id?: string;
742
+ name?: string;
743
+ query_spec?: import("./types").Json;
744
+ updated_at?: string;
745
+ user_id?: string;
746
+ };
747
+ Relationships: [];
748
+ };
479
749
  exact_connections: {
480
750
  Row: {
481
751
  access_token_encrypted: string;
@@ -486,6 +756,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
486
756
  environment: Database["public"]["Enums"]["exact_env"];
487
757
  expires_at: string;
488
758
  id: string;
759
+ last_error: string | null;
760
+ last_refreshed_at: string | null;
761
+ last_tested_at: string | null;
489
762
  refresh_token_encrypted: string;
490
763
  status: string;
491
764
  updated_at: string;
@@ -499,6 +772,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
499
772
  environment: Database["public"]["Enums"]["exact_env"];
500
773
  expires_at: string;
501
774
  id?: string;
775
+ last_error?: string | null;
776
+ last_refreshed_at?: string | null;
777
+ last_tested_at?: string | null;
502
778
  refresh_token_encrypted: string;
503
779
  status?: string;
504
780
  updated_at?: string;
@@ -512,6 +788,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
512
788
  environment?: Database["public"]["Enums"]["exact_env"];
513
789
  expires_at?: string;
514
790
  id?: string;
791
+ last_error?: string | null;
792
+ last_refreshed_at?: string | null;
793
+ last_tested_at?: string | null;
515
794
  refresh_token_encrypted?: string;
516
795
  status?: string;
517
796
  updated_at?: string;
@@ -534,7 +813,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
534
813
  created_at?: string;
535
814
  environment: Database["public"]["Enums"]["exact_env"];
536
815
  id?: string;
537
- redirect_uri: string;
816
+ redirect_uri?: string;
538
817
  updated_at?: string;
539
818
  };
540
819
  Update: {
@@ -893,6 +1172,222 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
893
1172
  };
894
1173
  Relationships: [];
895
1174
  };
1175
+ mailbox_messages: {
1176
+ Row: {
1177
+ body_html: string | null;
1178
+ body_text: string | null;
1179
+ created_at: string;
1180
+ error_message: string | null;
1181
+ from_email: string | null;
1182
+ from_name: string | null;
1183
+ id: string;
1184
+ message_id: string | null;
1185
+ raw_size: number | null;
1186
+ received_at: string | null;
1187
+ status: string;
1188
+ subject: string | null;
1189
+ uid: number;
1190
+ updated_at: string;
1191
+ };
1192
+ Insert: {
1193
+ body_html?: string | null;
1194
+ body_text?: string | null;
1195
+ created_at?: string;
1196
+ error_message?: string | null;
1197
+ from_email?: string | null;
1198
+ from_name?: string | null;
1199
+ id?: string;
1200
+ message_id?: string | null;
1201
+ raw_size?: number | null;
1202
+ received_at?: string | null;
1203
+ status?: string;
1204
+ subject?: string | null;
1205
+ uid: number;
1206
+ updated_at?: string;
1207
+ };
1208
+ Update: {
1209
+ body_html?: string | null;
1210
+ body_text?: string | null;
1211
+ created_at?: string;
1212
+ error_message?: string | null;
1213
+ from_email?: string | null;
1214
+ from_name?: string | null;
1215
+ id?: string;
1216
+ message_id?: string | null;
1217
+ raw_size?: number | null;
1218
+ received_at?: string | null;
1219
+ status?: string;
1220
+ subject?: string | null;
1221
+ uid?: number;
1222
+ updated_at?: string;
1223
+ };
1224
+ Relationships: [];
1225
+ };
1226
+ mailbox_order_proposals: {
1227
+ Row: {
1228
+ confidence: number | null;
1229
+ created_at: string;
1230
+ created_order_id: string | null;
1231
+ delivery_date: string | null;
1232
+ id: string;
1233
+ matched_customer_id: string | null;
1234
+ message_id: string;
1235
+ notes: string | null;
1236
+ parsed_payload: import("./types").Json | null;
1237
+ reviewed_at: string | null;
1238
+ reviewed_by: string | null;
1239
+ status: string;
1240
+ updated_at: string;
1241
+ };
1242
+ Insert: {
1243
+ confidence?: number | null;
1244
+ created_at?: string;
1245
+ created_order_id?: string | null;
1246
+ delivery_date?: string | null;
1247
+ id?: string;
1248
+ matched_customer_id?: string | null;
1249
+ message_id: string;
1250
+ notes?: string | null;
1251
+ parsed_payload?: import("./types").Json | null;
1252
+ reviewed_at?: string | null;
1253
+ reviewed_by?: string | null;
1254
+ status?: string;
1255
+ updated_at?: string;
1256
+ };
1257
+ Update: {
1258
+ confidence?: number | null;
1259
+ created_at?: string;
1260
+ created_order_id?: string | null;
1261
+ delivery_date?: string | null;
1262
+ id?: string;
1263
+ matched_customer_id?: string | null;
1264
+ message_id?: string;
1265
+ notes?: string | null;
1266
+ parsed_payload?: import("./types").Json | null;
1267
+ reviewed_at?: string | null;
1268
+ reviewed_by?: string | null;
1269
+ status?: string;
1270
+ updated_at?: string;
1271
+ };
1272
+ Relationships: [{
1273
+ foreignKeyName: "mailbox_order_proposals_created_order_id_fkey";
1274
+ columns: ["created_order_id"];
1275
+ isOneToOne: false;
1276
+ referencedRelation: "orders";
1277
+ referencedColumns: ["id"];
1278
+ }, {
1279
+ foreignKeyName: "mailbox_order_proposals_matched_customer_id_fkey";
1280
+ columns: ["matched_customer_id"];
1281
+ isOneToOne: false;
1282
+ referencedRelation: "customers";
1283
+ referencedColumns: ["id"];
1284
+ }, {
1285
+ foreignKeyName: "mailbox_order_proposals_message_id_fkey";
1286
+ columns: ["message_id"];
1287
+ isOneToOne: false;
1288
+ referencedRelation: "mailbox_messages";
1289
+ referencedColumns: ["id"];
1290
+ }];
1291
+ };
1292
+ mailbox_proposal_lines: {
1293
+ Row: {
1294
+ created_at: string;
1295
+ id: string;
1296
+ match_confidence: number | null;
1297
+ product_id: string | null;
1298
+ proposal_id: string;
1299
+ quantity: number | null;
1300
+ raw_product_text: string | null;
1301
+ sort_order: number;
1302
+ unit: string | null;
1303
+ updated_at: string;
1304
+ };
1305
+ Insert: {
1306
+ created_at?: string;
1307
+ id?: string;
1308
+ match_confidence?: number | null;
1309
+ product_id?: string | null;
1310
+ proposal_id: string;
1311
+ quantity?: number | null;
1312
+ raw_product_text?: string | null;
1313
+ sort_order?: number;
1314
+ unit?: string | null;
1315
+ updated_at?: string;
1316
+ };
1317
+ Update: {
1318
+ created_at?: string;
1319
+ id?: string;
1320
+ match_confidence?: number | null;
1321
+ product_id?: string | null;
1322
+ proposal_id?: string;
1323
+ quantity?: number | null;
1324
+ raw_product_text?: string | null;
1325
+ sort_order?: number;
1326
+ unit?: string | null;
1327
+ updated_at?: string;
1328
+ };
1329
+ Relationships: [{
1330
+ foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
1331
+ columns: ["product_id"];
1332
+ isOneToOne: false;
1333
+ referencedRelation: "products";
1334
+ referencedColumns: ["id"];
1335
+ }, {
1336
+ foreignKeyName: "mailbox_proposal_lines_proposal_id_fkey";
1337
+ columns: ["proposal_id"];
1338
+ isOneToOne: false;
1339
+ referencedRelation: "mailbox_order_proposals";
1340
+ referencedColumns: ["id"];
1341
+ }];
1342
+ };
1343
+ mailbox_settings: {
1344
+ Row: {
1345
+ created_at: string;
1346
+ folder: string;
1347
+ id: string;
1348
+ imap_host: string;
1349
+ imap_port: number;
1350
+ imap_use_tls: boolean;
1351
+ imap_username: string;
1352
+ last_error: string | null;
1353
+ last_polled_at: string | null;
1354
+ last_uid_seen: number;
1355
+ polling_enabled: boolean;
1356
+ singleton: boolean;
1357
+ updated_at: string;
1358
+ };
1359
+ Insert: {
1360
+ created_at?: string;
1361
+ folder?: string;
1362
+ id?: string;
1363
+ imap_host?: string;
1364
+ imap_port?: number;
1365
+ imap_use_tls?: boolean;
1366
+ imap_username?: string;
1367
+ last_error?: string | null;
1368
+ last_polled_at?: string | null;
1369
+ last_uid_seen?: number;
1370
+ polling_enabled?: boolean;
1371
+ singleton?: boolean;
1372
+ updated_at?: string;
1373
+ };
1374
+ Update: {
1375
+ created_at?: string;
1376
+ folder?: string;
1377
+ id?: string;
1378
+ imap_host?: string;
1379
+ imap_port?: number;
1380
+ imap_use_tls?: boolean;
1381
+ imap_username?: string;
1382
+ last_error?: string | null;
1383
+ last_polled_at?: string | null;
1384
+ last_uid_seen?: number;
1385
+ polling_enabled?: boolean;
1386
+ singleton?: boolean;
1387
+ updated_at?: string;
1388
+ };
1389
+ Relationships: [];
1390
+ };
896
1391
  notifications: {
897
1392
  Row: {
898
1393
  created_at: string;
@@ -923,6 +1418,378 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
923
1418
  };
924
1419
  Relationships: [];
925
1420
  };
1421
+ offer_campaign_product_tiers: {
1422
+ Row: {
1423
+ campaign_product_id: string;
1424
+ created_at: string;
1425
+ id: string;
1426
+ min_crates: number;
1427
+ price_per_crate: number;
1428
+ sort_order: number;
1429
+ };
1430
+ Insert: {
1431
+ campaign_product_id: string;
1432
+ created_at?: string;
1433
+ id?: string;
1434
+ min_crates?: number;
1435
+ price_per_crate?: number;
1436
+ sort_order?: number;
1437
+ };
1438
+ Update: {
1439
+ campaign_product_id?: string;
1440
+ created_at?: string;
1441
+ id?: string;
1442
+ min_crates?: number;
1443
+ price_per_crate?: number;
1444
+ sort_order?: number;
1445
+ };
1446
+ Relationships: [{
1447
+ foreignKeyName: "offer_campaign_product_tiers_campaign_product_id_fkey";
1448
+ columns: ["campaign_product_id"];
1449
+ isOneToOne: false;
1450
+ referencedRelation: "offer_campaign_products";
1451
+ referencedColumns: ["id"];
1452
+ }];
1453
+ };
1454
+ offer_campaign_products: {
1455
+ Row: {
1456
+ available_stock: number;
1457
+ barcode: string | null;
1458
+ belading: string | null;
1459
+ campaign_id: string;
1460
+ crate_price: number | null;
1461
+ created_at: string;
1462
+ description: string | null;
1463
+ discount_price: number;
1464
+ id: string;
1465
+ image_url: string | null;
1466
+ normal_price: number;
1467
+ plants_per_crate: number | null;
1468
+ product_id: string | null;
1469
+ product_name: string;
1470
+ sort_order: number;
1471
+ sticker_available: boolean;
1472
+ sticker_cost: number | null;
1473
+ };
1474
+ Insert: {
1475
+ available_stock?: number;
1476
+ barcode?: string | null;
1477
+ belading?: string | null;
1478
+ campaign_id: string;
1479
+ crate_price?: number | null;
1480
+ created_at?: string;
1481
+ description?: string | null;
1482
+ discount_price?: number;
1483
+ id?: string;
1484
+ image_url?: string | null;
1485
+ normal_price?: number;
1486
+ plants_per_crate?: number | null;
1487
+ product_id?: string | null;
1488
+ product_name: string;
1489
+ sort_order?: number;
1490
+ sticker_available?: boolean;
1491
+ sticker_cost?: number | null;
1492
+ };
1493
+ Update: {
1494
+ available_stock?: number;
1495
+ barcode?: string | null;
1496
+ belading?: string | null;
1497
+ campaign_id?: string;
1498
+ crate_price?: number | null;
1499
+ created_at?: string;
1500
+ description?: string | null;
1501
+ discount_price?: number;
1502
+ id?: string;
1503
+ image_url?: string | null;
1504
+ normal_price?: number;
1505
+ plants_per_crate?: number | null;
1506
+ product_id?: string | null;
1507
+ product_name?: string;
1508
+ sort_order?: number;
1509
+ sticker_available?: boolean;
1510
+ sticker_cost?: number | null;
1511
+ };
1512
+ Relationships: [{
1513
+ foreignKeyName: "offer_campaign_products_campaign_id_fkey";
1514
+ columns: ["campaign_id"];
1515
+ isOneToOne: false;
1516
+ referencedRelation: "offer_campaigns";
1517
+ referencedColumns: ["id"];
1518
+ }, {
1519
+ foreignKeyName: "offer_campaign_products_product_id_fkey";
1520
+ columns: ["product_id"];
1521
+ isOneToOne: false;
1522
+ referencedRelation: "products";
1523
+ referencedColumns: ["id"];
1524
+ }];
1525
+ };
1526
+ offer_campaigns: {
1527
+ Row: {
1528
+ created_at: string;
1529
+ created_by: string | null;
1530
+ from_email: string;
1531
+ from_name: string;
1532
+ id: string;
1533
+ intro_message: string | null;
1534
+ name: string;
1535
+ scheduled_at: string | null;
1536
+ sent_at: string | null;
1537
+ status: string;
1538
+ subject: string;
1539
+ updated_at: string;
1540
+ };
1541
+ Insert: {
1542
+ created_at?: string;
1543
+ created_by?: string | null;
1544
+ from_email: string;
1545
+ from_name: string;
1546
+ id?: string;
1547
+ intro_message?: string | null;
1548
+ name: string;
1549
+ scheduled_at?: string | null;
1550
+ sent_at?: string | null;
1551
+ status?: string;
1552
+ subject: string;
1553
+ updated_at?: string;
1554
+ };
1555
+ Update: {
1556
+ created_at?: string;
1557
+ created_by?: string | null;
1558
+ from_email?: string;
1559
+ from_name?: string;
1560
+ id?: string;
1561
+ intro_message?: string | null;
1562
+ name?: string;
1563
+ scheduled_at?: string | null;
1564
+ sent_at?: string | null;
1565
+ status?: string;
1566
+ subject?: string;
1567
+ updated_at?: string;
1568
+ };
1569
+ Relationships: [];
1570
+ };
1571
+ offer_events: {
1572
+ Row: {
1573
+ campaign_id: string;
1574
+ created_at: string;
1575
+ event_type: string;
1576
+ id: string;
1577
+ metadata: import("./types").Json;
1578
+ recipient_id: string;
1579
+ };
1580
+ Insert: {
1581
+ campaign_id: string;
1582
+ created_at?: string;
1583
+ event_type: string;
1584
+ id?: string;
1585
+ metadata?: import("./types").Json;
1586
+ recipient_id: string;
1587
+ };
1588
+ Update: {
1589
+ campaign_id?: string;
1590
+ created_at?: string;
1591
+ event_type?: string;
1592
+ id?: string;
1593
+ metadata?: import("./types").Json;
1594
+ recipient_id?: string;
1595
+ };
1596
+ Relationships: [{
1597
+ foreignKeyName: "offer_events_campaign_id_fkey";
1598
+ columns: ["campaign_id"];
1599
+ isOneToOne: false;
1600
+ referencedRelation: "offer_campaigns";
1601
+ referencedColumns: ["id"];
1602
+ }, {
1603
+ foreignKeyName: "offer_events_recipient_id_fkey";
1604
+ columns: ["recipient_id"];
1605
+ isOneToOne: false;
1606
+ referencedRelation: "offer_recipients";
1607
+ referencedColumns: ["id"];
1608
+ }];
1609
+ };
1610
+ offer_orders: {
1611
+ Row: {
1612
+ campaign_id: string;
1613
+ created_at: string;
1614
+ customer_email: string;
1615
+ customer_id: string | null;
1616
+ customer_name: string;
1617
+ customer_phone: string | null;
1618
+ id: string;
1619
+ items: import("./types").Json;
1620
+ notes: string | null;
1621
+ recipient_id: string;
1622
+ total_amount: number;
1623
+ };
1624
+ Insert: {
1625
+ campaign_id: string;
1626
+ created_at?: string;
1627
+ customer_email: string;
1628
+ customer_id?: string | null;
1629
+ customer_name: string;
1630
+ customer_phone?: string | null;
1631
+ id?: string;
1632
+ items?: import("./types").Json;
1633
+ notes?: string | null;
1634
+ recipient_id: string;
1635
+ total_amount?: number;
1636
+ };
1637
+ Update: {
1638
+ campaign_id?: string;
1639
+ created_at?: string;
1640
+ customer_email?: string;
1641
+ customer_id?: string | null;
1642
+ customer_name?: string;
1643
+ customer_phone?: string | null;
1644
+ id?: string;
1645
+ items?: import("./types").Json;
1646
+ notes?: string | null;
1647
+ recipient_id?: string;
1648
+ total_amount?: number;
1649
+ };
1650
+ Relationships: [{
1651
+ foreignKeyName: "offer_orders_campaign_id_fkey";
1652
+ columns: ["campaign_id"];
1653
+ isOneToOne: false;
1654
+ referencedRelation: "offer_campaigns";
1655
+ referencedColumns: ["id"];
1656
+ }, {
1657
+ foreignKeyName: "offer_orders_customer_id_fkey";
1658
+ columns: ["customer_id"];
1659
+ isOneToOne: false;
1660
+ referencedRelation: "customers";
1661
+ referencedColumns: ["id"];
1662
+ }, {
1663
+ foreignKeyName: "offer_orders_recipient_id_fkey";
1664
+ columns: ["recipient_id"];
1665
+ isOneToOne: false;
1666
+ referencedRelation: "offer_recipients";
1667
+ referencedColumns: ["id"];
1668
+ }];
1669
+ };
1670
+ offer_recipients: {
1671
+ Row: {
1672
+ campaign_id: string;
1673
+ clicked_at: string | null;
1674
+ contact_id: string | null;
1675
+ created_at: string;
1676
+ customer_id: string | null;
1677
+ id: string;
1678
+ link_code: string;
1679
+ opened_at: string | null;
1680
+ ordered_at: string | null;
1681
+ recipient_email: string;
1682
+ recipient_name: string;
1683
+ sent_at: string | null;
1684
+ };
1685
+ Insert: {
1686
+ campaign_id: string;
1687
+ clicked_at?: string | null;
1688
+ contact_id?: string | null;
1689
+ created_at?: string;
1690
+ customer_id?: string | null;
1691
+ id?: string;
1692
+ link_code?: string;
1693
+ opened_at?: string | null;
1694
+ ordered_at?: string | null;
1695
+ recipient_email: string;
1696
+ recipient_name: string;
1697
+ sent_at?: string | null;
1698
+ };
1699
+ Update: {
1700
+ campaign_id?: string;
1701
+ clicked_at?: string | null;
1702
+ contact_id?: string | null;
1703
+ created_at?: string;
1704
+ customer_id?: string | null;
1705
+ id?: string;
1706
+ link_code?: string;
1707
+ opened_at?: string | null;
1708
+ ordered_at?: string | null;
1709
+ recipient_email?: string;
1710
+ recipient_name?: string;
1711
+ sent_at?: string | null;
1712
+ };
1713
+ Relationships: [{
1714
+ foreignKeyName: "offer_recipients_campaign_id_fkey";
1715
+ columns: ["campaign_id"];
1716
+ isOneToOne: false;
1717
+ referencedRelation: "offer_campaigns";
1718
+ referencedColumns: ["id"];
1719
+ }, {
1720
+ foreignKeyName: "offer_recipients_contact_id_fkey";
1721
+ columns: ["contact_id"];
1722
+ isOneToOne: false;
1723
+ referencedRelation: "customer_contacts";
1724
+ referencedColumns: ["id"];
1725
+ }, {
1726
+ foreignKeyName: "offer_recipients_customer_id_fkey";
1727
+ columns: ["customer_id"];
1728
+ isOneToOne: false;
1729
+ referencedRelation: "customers";
1730
+ referencedColumns: ["id"];
1731
+ }];
1732
+ };
1733
+ offer_settings: {
1734
+ Row: {
1735
+ button_color: string;
1736
+ created_at: string;
1737
+ default_countries: string[];
1738
+ default_customer_classes: string[];
1739
+ default_intro: string;
1740
+ default_subject: string;
1741
+ discount_display: string;
1742
+ excluded_contact_ids: string[];
1743
+ excluded_customer_ids: string[];
1744
+ from_email: string;
1745
+ from_name: string;
1746
+ id: string;
1747
+ logo_url: string | null;
1748
+ primary_color: string;
1749
+ singleton: boolean;
1750
+ tracking_enabled: boolean;
1751
+ updated_at: string;
1752
+ };
1753
+ Insert: {
1754
+ button_color?: string;
1755
+ created_at?: string;
1756
+ default_countries?: string[];
1757
+ default_customer_classes?: string[];
1758
+ default_intro?: string;
1759
+ default_subject?: string;
1760
+ discount_display?: string;
1761
+ excluded_contact_ids?: string[];
1762
+ excluded_customer_ids?: string[];
1763
+ from_email?: string;
1764
+ from_name?: string;
1765
+ id?: string;
1766
+ logo_url?: string | null;
1767
+ primary_color?: string;
1768
+ singleton?: boolean;
1769
+ tracking_enabled?: boolean;
1770
+ updated_at?: string;
1771
+ };
1772
+ Update: {
1773
+ button_color?: string;
1774
+ created_at?: string;
1775
+ default_countries?: string[];
1776
+ default_customer_classes?: string[];
1777
+ default_intro?: string;
1778
+ default_subject?: string;
1779
+ discount_display?: string;
1780
+ excluded_contact_ids?: string[];
1781
+ excluded_customer_ids?: string[];
1782
+ from_email?: string;
1783
+ from_name?: string;
1784
+ id?: string;
1785
+ logo_url?: string | null;
1786
+ primary_color?: string;
1787
+ singleton?: boolean;
1788
+ tracking_enabled?: boolean;
1789
+ updated_at?: string;
1790
+ };
1791
+ Relationships: [];
1792
+ };
926
1793
  order_field_options: {
927
1794
  Row: {
928
1795
  created_at: string;
@@ -1514,6 +2381,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1514
2381
  };
1515
2382
  Views: { [_ in never]: never; };
1516
2383
  Functions: {
2384
+ exact_decrypt: {
2385
+ Args: {
2386
+ cipher: string;
2387
+ };
2388
+ Returns: string;
2389
+ };
2390
+ exact_encrypt: {
2391
+ Args: {
2392
+ plain: string;
2393
+ };
2394
+ Returns: string;
2395
+ };
2396
+ get_offer_by_link_code: {
2397
+ Args: {
2398
+ p_code: string;
2399
+ };
2400
+ Returns: import("./types").Json;
2401
+ };
1517
2402
  has_role: {
1518
2403
  Args: {
1519
2404
  _role: Database["public"]["Enums"]["app_role"];