@flowselections/mailbox-orders 1.0.3 → 1.0.4

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.
Files changed (30) hide show
  1. package/dist-lib/components/CartAssignmentWizard.d.ts +6 -0
  2. package/dist-lib/components/CartAssignmentWizard.d.ts.map +1 -0
  3. package/dist-lib/components/CartAssignmentWizard.js +199 -0
  4. package/dist-lib/components/MailboxProcessedPage.d.ts.map +1 -1
  5. package/dist-lib/components/MailboxProcessedPage.js +25 -4
  6. package/dist-lib/components/MailboxProposalsPage.d.ts.map +1 -1
  7. package/dist-lib/components/MailboxProposalsPage.js +272 -34
  8. package/dist-lib/components/SearchableSelect.d.ts +2 -1
  9. package/dist-lib/components/SearchableSelect.d.ts.map +1 -1
  10. package/dist-lib/components/SearchableSelect.js +4 -3
  11. package/dist-lib/index.d.ts +0 -1
  12. package/dist-lib/index.d.ts.map +1 -1
  13. package/dist-lib/index.js +2 -4
  14. package/dist-lib/integrations/supabase/auth-attacher.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/auth-attacher.js +37 -3
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2762 -145
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.d.ts +2762 -145
  19. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.server.d.ts +2762 -145
  21. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +2849 -149
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/types.js +2 -0
  25. package/dist-lib/lib/mailbox-template.functions.d.ts +34602 -18900
  26. package/dist-lib/lib/mailbox-template.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/mailbox.functions.d.ts +130480 -33017
  28. package/dist-lib/lib/mailbox.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/mailbox.functions.js +392 -18
  30. package/package.json +2 -7
@@ -7,6 +7,48 @@ export type Database = {
7
7
  };
8
8
  public: {
9
9
  Tables: {
10
+ afhandeling_settings: {
11
+ Row: {
12
+ created_at: string;
13
+ id: string;
14
+ max_workdays_earlier_pick: number;
15
+ pick_days_before_transport: number;
16
+ pick_distribution_enabled: boolean;
17
+ signup_mail_enabled: boolean;
18
+ signup_mail_lead_minutes: number;
19
+ signup_mail_purpose: string;
20
+ transport_register_days_before: number;
21
+ updated_at: string;
22
+ user_id: string;
23
+ };
24
+ Insert: {
25
+ created_at?: string;
26
+ id?: string;
27
+ max_workdays_earlier_pick?: number;
28
+ pick_days_before_transport?: number;
29
+ pick_distribution_enabled?: boolean;
30
+ signup_mail_enabled?: boolean;
31
+ signup_mail_lead_minutes?: number;
32
+ signup_mail_purpose?: string;
33
+ transport_register_days_before?: number;
34
+ updated_at?: string;
35
+ user_id: string;
36
+ };
37
+ Update: {
38
+ created_at?: string;
39
+ id?: string;
40
+ max_workdays_earlier_pick?: number;
41
+ pick_days_before_transport?: number;
42
+ pick_distribution_enabled?: boolean;
43
+ signup_mail_enabled?: boolean;
44
+ signup_mail_lead_minutes?: number;
45
+ signup_mail_purpose?: string;
46
+ transport_register_days_before?: number;
47
+ updated_at?: string;
48
+ user_id?: string;
49
+ };
50
+ Relationships: [];
51
+ };
10
52
  agenda_connections: {
11
53
  Row: {
12
54
  account_email: string | null;
@@ -278,6 +320,7 @@ export type Database = {
278
320
  invoice_run_id: string | null;
279
321
  invoice_status: string | null;
280
322
  invoiced_at: string | null;
323
+ notes: string | null;
281
324
  number_of_people: number;
282
325
  room_id: string;
283
326
  start_time: string;
@@ -302,6 +345,7 @@ export type Database = {
302
345
  invoice_run_id?: string | null;
303
346
  invoice_status?: string | null;
304
347
  invoiced_at?: string | null;
348
+ notes?: string | null;
305
349
  number_of_people?: number;
306
350
  room_id: string;
307
351
  start_time: string;
@@ -326,6 +370,7 @@ export type Database = {
326
370
  invoice_run_id?: string | null;
327
371
  invoice_status?: string | null;
328
372
  invoiced_at?: string | null;
373
+ notes?: string | null;
329
374
  number_of_people?: number;
330
375
  room_id?: string;
331
376
  start_time?: string;
@@ -413,6 +458,53 @@ export type Database = {
413
458
  }
414
459
  ];
415
460
  };
461
+ carrier_signup_dispatches: {
462
+ Row: {
463
+ carrier_id: string;
464
+ cart_count: number;
465
+ created_at: string;
466
+ id: string;
467
+ order_count: number;
468
+ outbox_id: string | null;
469
+ pickup_date: string;
470
+ pickup_moment_key: string;
471
+ sent_at: string;
472
+ signup_deadline: string;
473
+ };
474
+ Insert: {
475
+ carrier_id: string;
476
+ cart_count?: number;
477
+ created_at?: string;
478
+ id?: string;
479
+ order_count?: number;
480
+ outbox_id?: string | null;
481
+ pickup_date: string;
482
+ pickup_moment_key: string;
483
+ sent_at?: string;
484
+ signup_deadline: string;
485
+ };
486
+ Update: {
487
+ carrier_id?: string;
488
+ cart_count?: number;
489
+ created_at?: string;
490
+ id?: string;
491
+ order_count?: number;
492
+ outbox_id?: string | null;
493
+ pickup_date?: string;
494
+ pickup_moment_key?: string;
495
+ sent_at?: string;
496
+ signup_deadline?: string;
497
+ };
498
+ Relationships: [
499
+ {
500
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
501
+ columns: ["carrier_id"];
502
+ isOneToOne: false;
503
+ referencedRelation: "carriers";
504
+ referencedColumns: ["id"];
505
+ }
506
+ ];
507
+ };
416
508
  carriers: {
417
509
  Row: {
418
510
  address: string | null;
@@ -421,11 +513,18 @@ export type Database = {
421
513
  delivery_days: number | null;
422
514
  email: string | null;
423
515
  id: string;
516
+ is_default: boolean;
424
517
  name: string;
425
518
  notes: string | null;
426
519
  phone: string | null;
520
+ pickup_moments: Json;
521
+ service_cities: string[];
522
+ service_countries: string[];
523
+ service_provinces: string[];
524
+ signup_days_before_delivery: number;
427
525
  signup_time_1: string | null;
428
526
  signup_time_2: string | null;
527
+ sort_order: number;
429
528
  updated_at: string;
430
529
  user_id: string;
431
530
  };
@@ -436,11 +535,18 @@ export type Database = {
436
535
  delivery_days?: number | null;
437
536
  email?: string | null;
438
537
  id?: string;
538
+ is_default?: boolean;
439
539
  name: string;
440
540
  notes?: string | null;
441
541
  phone?: string | null;
542
+ pickup_moments?: Json;
543
+ service_cities?: string[];
544
+ service_countries?: string[];
545
+ service_provinces?: string[];
546
+ signup_days_before_delivery?: number;
442
547
  signup_time_1?: string | null;
443
548
  signup_time_2?: string | null;
549
+ sort_order?: number;
444
550
  updated_at?: string;
445
551
  user_id: string;
446
552
  };
@@ -451,16 +557,62 @@ export type Database = {
451
557
  delivery_days?: number | null;
452
558
  email?: string | null;
453
559
  id?: string;
560
+ is_default?: boolean;
454
561
  name?: string;
455
562
  notes?: string | null;
456
563
  phone?: string | null;
564
+ pickup_moments?: Json;
565
+ service_cities?: string[];
566
+ service_countries?: string[];
567
+ service_provinces?: string[];
568
+ signup_days_before_delivery?: number;
457
569
  signup_time_1?: string | null;
458
570
  signup_time_2?: string | null;
571
+ sort_order?: number;
459
572
  updated_at?: string;
460
573
  user_id?: string;
461
574
  };
462
575
  Relationships: [];
463
576
  };
577
+ cart_pick_overrides: {
578
+ Row: {
579
+ cart_index: number;
580
+ created_at: string;
581
+ id: string;
582
+ moved_from_date: string | null;
583
+ notes: string | null;
584
+ order_id: string;
585
+ order_source: string;
586
+ pick_date: string;
587
+ status: string;
588
+ updated_at: string;
589
+ };
590
+ Insert: {
591
+ cart_index: number;
592
+ created_at?: string;
593
+ id?: string;
594
+ moved_from_date?: string | null;
595
+ notes?: string | null;
596
+ order_id: string;
597
+ order_source: string;
598
+ pick_date: string;
599
+ status?: string;
600
+ updated_at?: string;
601
+ };
602
+ Update: {
603
+ cart_index?: number;
604
+ created_at?: string;
605
+ id?: string;
606
+ moved_from_date?: string | null;
607
+ notes?: string | null;
608
+ order_id?: string;
609
+ order_source?: string;
610
+ pick_date?: string;
611
+ status?: string;
612
+ updated_at?: string;
613
+ };
614
+ Relationships: [];
615
+ };
464
616
  collections: {
465
617
  Row: {
466
618
  created_at: string;
@@ -576,50 +728,75 @@ export type Database = {
576
728
  customer_delivery_locations: {
577
729
  Row: {
578
730
  address_line: string | null;
731
+ carrier_assignment_source: string;
732
+ carrier_id: string | null;
579
733
  city: string | null;
580
734
  country: string | null;
581
735
  created_at: string;
582
736
  customer_id: string;
583
737
  floriday_location_id: string | null;
584
738
  gln: string | null;
739
+ house_number: string | null;
585
740
  id: string;
586
741
  is_primary: boolean;
587
742
  name: string | null;
588
743
  postal_code: string | null;
744
+ province: string | null;
589
745
  raw: Json | null;
746
+ self_pickup: boolean;
747
+ street: string | null;
590
748
  updated_at: string;
591
749
  };
592
750
  Insert: {
593
751
  address_line?: string | null;
752
+ carrier_assignment_source?: string;
753
+ carrier_id?: string | null;
594
754
  city?: string | null;
595
755
  country?: string | null;
596
756
  created_at?: string;
597
757
  customer_id: string;
598
758
  floriday_location_id?: string | null;
599
759
  gln?: string | null;
760
+ house_number?: string | null;
600
761
  id?: string;
601
762
  is_primary?: boolean;
602
763
  name?: string | null;
603
764
  postal_code?: string | null;
765
+ province?: string | null;
604
766
  raw?: Json | null;
767
+ self_pickup?: boolean;
768
+ street?: string | null;
605
769
  updated_at?: string;
606
770
  };
607
771
  Update: {
608
772
  address_line?: string | null;
773
+ carrier_assignment_source?: string;
774
+ carrier_id?: string | null;
609
775
  city?: string | null;
610
776
  country?: string | null;
611
777
  created_at?: string;
612
778
  customer_id?: string;
613
779
  floriday_location_id?: string | null;
614
780
  gln?: string | null;
781
+ house_number?: string | null;
615
782
  id?: string;
616
783
  is_primary?: boolean;
617
784
  name?: string | null;
618
785
  postal_code?: string | null;
786
+ province?: string | null;
619
787
  raw?: Json | null;
788
+ self_pickup?: boolean;
789
+ street?: string | null;
620
790
  updated_at?: string;
621
791
  };
622
792
  Relationships: [
793
+ {
794
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
795
+ columns: ["carrier_id"];
796
+ isOneToOne: false;
797
+ referencedRelation: "carriers";
798
+ referencedColumns: ["id"];
799
+ },
623
800
  {
624
801
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
625
802
  columns: ["customer_id"];
@@ -1445,6 +1622,30 @@ export type Database = {
1445
1622
  }
1446
1623
  ];
1447
1624
  };
1625
+ email_auth_purpose_settings: {
1626
+ Row: {
1627
+ default_cc: string[];
1628
+ purpose: string;
1629
+ reply_to: string | null;
1630
+ updated_at: string;
1631
+ updated_by: string | null;
1632
+ };
1633
+ Insert: {
1634
+ default_cc?: string[];
1635
+ purpose: string;
1636
+ reply_to?: string | null;
1637
+ updated_at?: string;
1638
+ updated_by?: string | null;
1639
+ };
1640
+ Update: {
1641
+ default_cc?: string[];
1642
+ purpose?: string;
1643
+ reply_to?: string | null;
1644
+ updated_at?: string;
1645
+ updated_by?: string | null;
1646
+ };
1647
+ Relationships: [];
1648
+ };
1448
1649
  email_auth_token_refresh_log: {
1449
1650
  Row: {
1450
1651
  connection_id: string;
@@ -2233,6 +2434,53 @@ export type Database = {
2233
2434
  }
2234
2435
  ];
2235
2436
  };
2437
+ exact_push_queue: {
2438
+ Row: {
2439
+ attempts: number;
2440
+ connection_id: string;
2441
+ created_at: string;
2442
+ external_id: string | null;
2443
+ id: string;
2444
+ idempotency_hash: string;
2445
+ last_error: string | null;
2446
+ payload: Json;
2447
+ status: Database["public"]["Enums"]["exact_push_status"];
2448
+ updated_at: string;
2449
+ };
2450
+ Insert: {
2451
+ attempts?: number;
2452
+ connection_id: string;
2453
+ created_at?: string;
2454
+ external_id?: string | null;
2455
+ id?: string;
2456
+ idempotency_hash: string;
2457
+ last_error?: string | null;
2458
+ payload: Json;
2459
+ status?: Database["public"]["Enums"]["exact_push_status"];
2460
+ updated_at?: string;
2461
+ };
2462
+ Update: {
2463
+ attempts?: number;
2464
+ connection_id?: string;
2465
+ created_at?: string;
2466
+ external_id?: string | null;
2467
+ id?: string;
2468
+ idempotency_hash?: string;
2469
+ last_error?: string | null;
2470
+ payload?: Json;
2471
+ status?: Database["public"]["Enums"]["exact_push_status"];
2472
+ updated_at?: string;
2473
+ };
2474
+ Relationships: [
2475
+ {
2476
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2477
+ columns: ["connection_id"];
2478
+ isOneToOne: false;
2479
+ referencedRelation: "exact_connections";
2480
+ referencedColumns: ["id"];
2481
+ }
2482
+ ];
2483
+ };
2236
2484
  exact_refresh_locks: {
2237
2485
  Row: {
2238
2486
  environment: Database["public"]["Enums"]["exact_env"];
@@ -2295,6 +2543,8 @@ export type Database = {
2295
2543
  connection_id: string;
2296
2544
  last_error: string | null;
2297
2545
  last_modified_cursor: string | null;
2546
+ last_modified_cursor_customers: string | null;
2547
+ last_modified_cursor_invoices: string | null;
2298
2548
  last_synced_at: string | null;
2299
2549
  status: string;
2300
2550
  updated_at: string;
@@ -2303,6 +2553,8 @@ export type Database = {
2303
2553
  connection_id: string;
2304
2554
  last_error?: string | null;
2305
2555
  last_modified_cursor?: string | null;
2556
+ last_modified_cursor_customers?: string | null;
2557
+ last_modified_cursor_invoices?: string | null;
2306
2558
  last_synced_at?: string | null;
2307
2559
  status?: string;
2308
2560
  updated_at?: string;
@@ -2311,6 +2563,8 @@ export type Database = {
2311
2563
  connection_id?: string;
2312
2564
  last_error?: string | null;
2313
2565
  last_modified_cursor?: string | null;
2566
+ last_modified_cursor_customers?: string | null;
2567
+ last_modified_cursor_invoices?: string | null;
2314
2568
  last_synced_at?: string | null;
2315
2569
  status?: string;
2316
2570
  updated_at?: string;
@@ -2353,6 +2607,54 @@ export type Database = {
2353
2607
  };
2354
2608
  Relationships: [];
2355
2609
  };
2610
+ external_invoice_providers: {
2611
+ Row: {
2612
+ color: string | null;
2613
+ created_at: string;
2614
+ hmac_secret_name: string | null;
2615
+ icon: string | null;
2616
+ is_enabled: boolean;
2617
+ label: string;
2618
+ last_synced_at: string | null;
2619
+ provider: string;
2620
+ push_endpoint: string | null;
2621
+ sort_order: number;
2622
+ status_endpoint: string | null;
2623
+ sync_endpoint: string | null;
2624
+ updated_at: string;
2625
+ };
2626
+ Insert: {
2627
+ color?: string | null;
2628
+ created_at?: string;
2629
+ hmac_secret_name?: string | null;
2630
+ icon?: string | null;
2631
+ is_enabled?: boolean;
2632
+ label: string;
2633
+ last_synced_at?: string | null;
2634
+ provider: string;
2635
+ push_endpoint?: string | null;
2636
+ sort_order?: number;
2637
+ status_endpoint?: string | null;
2638
+ sync_endpoint?: string | null;
2639
+ updated_at?: string;
2640
+ };
2641
+ Update: {
2642
+ color?: string | null;
2643
+ created_at?: string;
2644
+ hmac_secret_name?: string | null;
2645
+ icon?: string | null;
2646
+ is_enabled?: boolean;
2647
+ label?: string;
2648
+ last_synced_at?: string | null;
2649
+ provider?: string;
2650
+ push_endpoint?: string | null;
2651
+ sort_order?: number;
2652
+ status_endpoint?: string | null;
2653
+ sync_endpoint?: string | null;
2654
+ updated_at?: string;
2655
+ };
2656
+ Relationships: [];
2657
+ };
2356
2658
  extra_categories: {
2357
2659
  Row: {
2358
2660
  created_at: string;
@@ -2377,12 +2679,40 @@ export type Database = {
2377
2679
  };
2378
2680
  Relationships: [];
2379
2681
  };
2682
+ extra_pricing_types: {
2683
+ Row: {
2684
+ code: string;
2685
+ created_at: string;
2686
+ id: string;
2687
+ label: string;
2688
+ sort_order: number;
2689
+ updated_at: string;
2690
+ };
2691
+ Insert: {
2692
+ code: string;
2693
+ created_at?: string;
2694
+ id?: string;
2695
+ label: string;
2696
+ sort_order?: number;
2697
+ updated_at?: string;
2698
+ };
2699
+ Update: {
2700
+ code?: string;
2701
+ created_at?: string;
2702
+ id?: string;
2703
+ label?: string;
2704
+ sort_order?: number;
2705
+ updated_at?: string;
2706
+ };
2707
+ Relationships: [];
2708
+ };
2380
2709
  extras: {
2381
2710
  Row: {
2382
2711
  category: string;
2383
2712
  created_at: string;
2384
2713
  exact_article_id: string | null;
2385
2714
  id: string;
2715
+ image_url: string | null;
2386
2716
  is_active: boolean;
2387
2717
  name: string;
2388
2718
  price: number;
@@ -2393,6 +2723,7 @@ export type Database = {
2393
2723
  created_at?: string;
2394
2724
  exact_article_id?: string | null;
2395
2725
  id?: string;
2726
+ image_url?: string | null;
2396
2727
  is_active?: boolean;
2397
2728
  name: string;
2398
2729
  price?: number;
@@ -2403,6 +2734,7 @@ export type Database = {
2403
2734
  created_at?: string;
2404
2735
  exact_article_id?: string | null;
2405
2736
  id?: string;
2737
+ image_url?: string | null;
2406
2738
  is_active?: boolean;
2407
2739
  name?: string;
2408
2740
  price?: number;
@@ -2500,43 +2832,37 @@ export type Database = {
2500
2832
  };
2501
2833
  Relationships: [];
2502
2834
  };
2503
- floriday_carriers_cache: {
2835
+ floriday_additional_services_cache: {
2504
2836
  Row: {
2505
- connection_id: string | null;
2506
- created_at: string;
2837
+ connection_id: string;
2507
2838
  data: Json;
2508
2839
  fetched_at: string;
2509
- gln_code: string | null;
2510
- id: string;
2511
- name: string | null;
2512
- organization_id: string;
2840
+ floriday_id: string;
2841
+ is_deleted: boolean;
2842
+ sequence_number: number;
2513
2843
  updated_at: string;
2514
2844
  };
2515
2845
  Insert: {
2516
- connection_id?: string | null;
2517
- created_at?: string;
2846
+ connection_id: string;
2518
2847
  data: Json;
2519
2848
  fetched_at?: string;
2520
- gln_code?: string | null;
2521
- id?: string;
2522
- name?: string | null;
2523
- organization_id: string;
2849
+ floriday_id: string;
2850
+ is_deleted?: boolean;
2851
+ sequence_number?: number;
2524
2852
  updated_at?: string;
2525
2853
  };
2526
2854
  Update: {
2527
- connection_id?: string | null;
2528
- created_at?: string;
2855
+ connection_id?: string;
2529
2856
  data?: Json;
2530
2857
  fetched_at?: string;
2531
- gln_code?: string | null;
2532
- id?: string;
2533
- name?: string | null;
2534
- organization_id?: string;
2858
+ floriday_id?: string;
2859
+ is_deleted?: boolean;
2860
+ sequence_number?: number;
2535
2861
  updated_at?: string;
2536
2862
  };
2537
2863
  Relationships: [
2538
2864
  {
2539
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2865
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2540
2866
  columns: ["connection_id"];
2541
2867
  isOneToOne: false;
2542
2868
  referencedRelation: "floriday_connections";
@@ -2544,100 +2870,102 @@ export type Database = {
2544
2870
  }
2545
2871
  ];
2546
2872
  };
2547
- floriday_connections: {
2873
+ floriday_agreement_calloffs_cache: {
2548
2874
  Row: {
2549
- access_token: string | null;
2550
- api_key: string;
2551
- client_id: string;
2552
- client_secret: string;
2553
- created_at: string;
2554
- customers_endpoint: string | null;
2555
- environment: string;
2556
- gln_code: string | null;
2875
+ agreement_id: string | null;
2876
+ connection_id: string;
2877
+ data: Json;
2878
+ delivery_date: string | null;
2879
+ fetched_at: string;
2880
+ floriday_id: string;
2557
2881
  id: string;
2558
- is_active: boolean;
2559
- label: string;
2560
- organization_name: string | null;
2561
- preferred_warehouse_id: string | null;
2562
- preferred_warehouse_name: string | null;
2563
- token_expires_at: string | null;
2882
+ is_deleted: boolean;
2883
+ sequence_number: number;
2884
+ status: string | null;
2564
2885
  updated_at: string;
2565
2886
  };
2566
2887
  Insert: {
2567
- access_token?: string | null;
2568
- api_key: string;
2569
- client_id: string;
2570
- client_secret: string;
2571
- created_at?: string;
2572
- customers_endpoint?: string | null;
2573
- environment: string;
2574
- gln_code?: string | null;
2888
+ agreement_id?: string | null;
2889
+ connection_id: string;
2890
+ data?: Json;
2891
+ delivery_date?: string | null;
2892
+ fetched_at?: string;
2893
+ floriday_id: string;
2575
2894
  id?: string;
2576
- is_active?: boolean;
2577
- label?: string;
2578
- organization_name?: string | null;
2579
- preferred_warehouse_id?: string | null;
2580
- preferred_warehouse_name?: string | null;
2581
- token_expires_at?: string | null;
2895
+ is_deleted?: boolean;
2896
+ sequence_number?: number;
2897
+ status?: string | null;
2582
2898
  updated_at?: string;
2583
2899
  };
2584
2900
  Update: {
2585
- access_token?: string | null;
2586
- api_key?: string;
2587
- client_id?: string;
2588
- client_secret?: string;
2589
- created_at?: string;
2590
- customers_endpoint?: string | null;
2591
- environment?: string;
2592
- gln_code?: string | null;
2901
+ agreement_id?: string | null;
2902
+ connection_id?: string;
2903
+ data?: Json;
2904
+ delivery_date?: string | null;
2905
+ fetched_at?: string;
2906
+ floriday_id?: string;
2593
2907
  id?: string;
2594
- is_active?: boolean;
2595
- label?: string;
2596
- organization_name?: string | null;
2597
- preferred_warehouse_id?: string | null;
2598
- preferred_warehouse_name?: string | null;
2599
- token_expires_at?: string | null;
2908
+ is_deleted?: boolean;
2909
+ sequence_number?: number;
2910
+ status?: string | null;
2600
2911
  updated_at?: string;
2601
2912
  };
2602
- Relationships: [];
2913
+ Relationships: [
2914
+ {
2915
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
2916
+ columns: ["connection_id"];
2917
+ isOneToOne: false;
2918
+ referencedRelation: "floriday_connections";
2919
+ referencedColumns: ["id"];
2920
+ }
2921
+ ];
2603
2922
  };
2604
- floriday_connections_cache: {
2923
+ floriday_agreements_cache: {
2605
2924
  Row: {
2606
2925
  buyer_organization_id: string | null;
2607
- buyer_organization_name: string | null;
2608
2926
  connection_id: string;
2609
2927
  data: Json;
2610
- floriday_connection_id: string;
2928
+ fetched_at: string;
2929
+ floriday_id: string;
2930
+ id: string;
2611
2931
  is_deleted: boolean;
2612
2932
  sequence_number: number;
2613
2933
  status: string | null;
2614
- synced_at: string;
2934
+ updated_at: string;
2935
+ valid_from: string | null;
2936
+ valid_until: string | null;
2615
2937
  };
2616
2938
  Insert: {
2617
2939
  buyer_organization_id?: string | null;
2618
- buyer_organization_name?: string | null;
2619
2940
  connection_id: string;
2620
- data: Json;
2621
- floriday_connection_id: string;
2941
+ data?: Json;
2942
+ fetched_at?: string;
2943
+ floriday_id: string;
2944
+ id?: string;
2622
2945
  is_deleted?: boolean;
2623
- sequence_number: number;
2946
+ sequence_number?: number;
2624
2947
  status?: string | null;
2625
- synced_at?: string;
2948
+ updated_at?: string;
2949
+ valid_from?: string | null;
2950
+ valid_until?: string | null;
2626
2951
  };
2627
2952
  Update: {
2628
2953
  buyer_organization_id?: string | null;
2629
- buyer_organization_name?: string | null;
2630
2954
  connection_id?: string;
2631
2955
  data?: Json;
2632
- floriday_connection_id?: string;
2956
+ fetched_at?: string;
2957
+ floriday_id?: string;
2958
+ id?: string;
2633
2959
  is_deleted?: boolean;
2634
2960
  sequence_number?: number;
2635
2961
  status?: string | null;
2636
- synced_at?: string;
2962
+ updated_at?: string;
2963
+ valid_from?: string | null;
2964
+ valid_until?: string | null;
2637
2965
  };
2638
2966
  Relationships: [
2639
2967
  {
2640
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
2968
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2641
2969
  columns: ["connection_id"];
2642
2970
  isOneToOne: false;
2643
2971
  referencedRelation: "floriday_connections";
@@ -2645,28 +2973,166 @@ export type Database = {
2645
2973
  }
2646
2974
  ];
2647
2975
  };
2648
- floriday_customers_cache: {
2976
+ floriday_auction_letters_cache: {
2977
+ Row: {
2978
+ auction_letter_code: string;
2979
+ clock_supply_id: string;
2980
+ connection_id: string;
2981
+ content_type: string;
2982
+ fetched_at: string;
2983
+ id: string;
2984
+ storage_path: string;
2985
+ };
2986
+ Insert: {
2987
+ auction_letter_code: string;
2988
+ clock_supply_id: string;
2989
+ connection_id: string;
2990
+ content_type?: string;
2991
+ fetched_at?: string;
2992
+ id?: string;
2993
+ storage_path: string;
2994
+ };
2995
+ Update: {
2996
+ auction_letter_code?: string;
2997
+ clock_supply_id?: string;
2998
+ connection_id?: string;
2999
+ content_type?: string;
3000
+ fetched_at?: string;
3001
+ id?: string;
3002
+ storage_path?: string;
3003
+ };
3004
+ Relationships: [
3005
+ {
3006
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
3007
+ columns: ["connection_id"];
3008
+ isOneToOne: false;
3009
+ referencedRelation: "floriday_connections";
3010
+ referencedColumns: ["id"];
3011
+ }
3012
+ ];
3013
+ };
3014
+ floriday_base_items_cache: {
3015
+ Row: {
3016
+ connection_id: string;
3017
+ data: Json;
3018
+ fetched_at: string;
3019
+ floriday_id: string;
3020
+ is_deleted: boolean;
3021
+ sequence_number: number;
3022
+ updated_at: string;
3023
+ };
3024
+ Insert: {
3025
+ connection_id: string;
3026
+ data: Json;
3027
+ fetched_at?: string;
3028
+ floriday_id: string;
3029
+ is_deleted?: boolean;
3030
+ sequence_number?: number;
3031
+ updated_at?: string;
3032
+ };
3033
+ Update: {
3034
+ connection_id?: string;
3035
+ data?: Json;
3036
+ fetched_at?: string;
3037
+ floriday_id?: string;
3038
+ is_deleted?: boolean;
3039
+ sequence_number?: number;
3040
+ updated_at?: string;
3041
+ };
3042
+ Relationships: [
3043
+ {
3044
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
3045
+ columns: ["connection_id"];
3046
+ isOneToOne: false;
3047
+ referencedRelation: "floriday_connections";
3048
+ referencedColumns: ["id"];
3049
+ }
3050
+ ];
3051
+ };
3052
+ floriday_blanket_orders_cache: {
3053
+ Row: {
3054
+ connection_id: string;
3055
+ contract_id: string | null;
3056
+ created_at: string;
3057
+ data: Json;
3058
+ fetched_at: string;
3059
+ floriday_id: string;
3060
+ id: string;
3061
+ is_deleted: boolean;
3062
+ sequence_number: number;
3063
+ updated_at: string;
3064
+ };
3065
+ Insert: {
3066
+ connection_id: string;
3067
+ contract_id?: string | null;
3068
+ created_at?: string;
3069
+ data: Json;
3070
+ fetched_at?: string;
3071
+ floriday_id: string;
3072
+ id?: string;
3073
+ is_deleted?: boolean;
3074
+ sequence_number?: number;
3075
+ updated_at?: string;
3076
+ };
3077
+ Update: {
3078
+ connection_id?: string;
3079
+ contract_id?: string | null;
3080
+ created_at?: string;
3081
+ data?: Json;
3082
+ fetched_at?: string;
3083
+ floriday_id?: string;
3084
+ id?: string;
3085
+ is_deleted?: boolean;
3086
+ sequence_number?: number;
3087
+ updated_at?: string;
3088
+ };
3089
+ Relationships: [
3090
+ {
3091
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3092
+ columns: ["connection_id"];
3093
+ isOneToOne: false;
3094
+ referencedRelation: "floriday_connections";
3095
+ referencedColumns: ["id"];
3096
+ }
3097
+ ];
3098
+ };
3099
+ floriday_carriers_cache: {
2649
3100
  Row: {
2650
3101
  connection_id: string | null;
3102
+ created_at: string;
2651
3103
  data: Json;
2652
3104
  fetched_at: string;
3105
+ gln_code: string | null;
3106
+ id: string;
3107
+ name: string | null;
2653
3108
  organization_id: string;
3109
+ updated_at: string;
2654
3110
  };
2655
3111
  Insert: {
2656
3112
  connection_id?: string | null;
2657
- data?: Json;
3113
+ created_at?: string;
3114
+ data: Json;
2658
3115
  fetched_at?: string;
3116
+ gln_code?: string | null;
3117
+ id?: string;
3118
+ name?: string | null;
2659
3119
  organization_id: string;
3120
+ updated_at?: string;
2660
3121
  };
2661
3122
  Update: {
2662
3123
  connection_id?: string | null;
3124
+ created_at?: string;
2663
3125
  data?: Json;
2664
3126
  fetched_at?: string;
3127
+ gln_code?: string | null;
3128
+ id?: string;
3129
+ name?: string | null;
2665
3130
  organization_id?: string;
3131
+ updated_at?: string;
2666
3132
  };
2667
3133
  Relationships: [
2668
3134
  {
2669
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3135
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2670
3136
  columns: ["connection_id"];
2671
3137
  isOneToOne: false;
2672
3138
  referencedRelation: "floriday_connections";
@@ -2674,62 +3140,1024 @@ export type Database = {
2674
3140
  }
2675
3141
  ];
2676
3142
  };
2677
- floriday_network_cache: {
3143
+ floriday_clock_presales_cache: {
2678
3144
  Row: {
2679
- city: string | null;
3145
+ buyer_organization_id: string | null;
3146
+ clock_supply_id: string | null;
2680
3147
  connection_id: string;
2681
- country: string | null;
2682
3148
  data: Json;
2683
3149
  fetched_at: string;
2684
- gln: string | null;
2685
- organization_id: string;
2686
- organization_name: string | null;
3150
+ floriday_id: string;
3151
+ id: string;
3152
+ is_deleted: boolean;
3153
+ sequence_number: number;
3154
+ updated_at: string;
3155
+ };
3156
+ Insert: {
3157
+ buyer_organization_id?: string | null;
3158
+ clock_supply_id?: string | null;
3159
+ connection_id: string;
3160
+ data?: Json;
3161
+ fetched_at?: string;
3162
+ floriday_id: string;
3163
+ id?: string;
3164
+ is_deleted?: boolean;
3165
+ sequence_number?: number;
3166
+ updated_at?: string;
3167
+ };
3168
+ Update: {
3169
+ buyer_organization_id?: string | null;
3170
+ clock_supply_id?: string | null;
3171
+ connection_id?: string;
3172
+ data?: Json;
3173
+ fetched_at?: string;
3174
+ floriday_id?: string;
3175
+ id?: string;
3176
+ is_deleted?: boolean;
3177
+ sequence_number?: number;
3178
+ updated_at?: string;
3179
+ };
3180
+ Relationships: [
3181
+ {
3182
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3183
+ columns: ["connection_id"];
3184
+ isOneToOne: false;
3185
+ referencedRelation: "floriday_connections";
3186
+ referencedColumns: ["id"];
3187
+ }
3188
+ ];
3189
+ };
3190
+ floriday_clock_supplies_cache: {
3191
+ Row: {
3192
+ auction_date: string | null;
3193
+ connection_id: string;
3194
+ data: Json;
3195
+ fetched_at: string;
3196
+ floriday_id: string;
3197
+ id: string;
3198
+ is_deleted: boolean;
3199
+ sequence_number: number;
3200
+ status: string | null;
3201
+ trade_item_id: string | null;
3202
+ updated_at: string;
3203
+ };
3204
+ Insert: {
3205
+ auction_date?: string | null;
3206
+ connection_id: string;
3207
+ data?: Json;
3208
+ fetched_at?: string;
3209
+ floriday_id: string;
3210
+ id?: string;
3211
+ is_deleted?: boolean;
3212
+ sequence_number?: number;
3213
+ status?: string | null;
3214
+ trade_item_id?: string | null;
3215
+ updated_at?: string;
3216
+ };
3217
+ Update: {
3218
+ auction_date?: string | null;
3219
+ connection_id?: string;
3220
+ data?: Json;
3221
+ fetched_at?: string;
3222
+ floriday_id?: string;
3223
+ id?: string;
3224
+ is_deleted?: boolean;
3225
+ sequence_number?: number;
3226
+ status?: string | null;
3227
+ trade_item_id?: string | null;
3228
+ updated_at?: string;
3229
+ };
3230
+ Relationships: [
3231
+ {
3232
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3233
+ columns: ["connection_id"];
3234
+ isOneToOne: false;
3235
+ referencedRelation: "floriday_connections";
3236
+ referencedColumns: ["id"];
3237
+ }
3238
+ ];
3239
+ };
3240
+ floriday_code_lists_cache: {
3241
+ Row: {
3242
+ code: string;
3243
+ environment: string;
3244
+ label: string | null;
3245
+ list_name: string;
3246
+ payload: Json | null;
3247
+ updated_at: string;
3248
+ };
3249
+ Insert: {
3250
+ code: string;
3251
+ environment: string;
3252
+ label?: string | null;
3253
+ list_name: string;
3254
+ payload?: Json | null;
3255
+ updated_at?: string;
3256
+ };
3257
+ Update: {
3258
+ code?: string;
3259
+ environment?: string;
3260
+ label?: string | null;
3261
+ list_name?: string;
3262
+ payload?: Json | null;
3263
+ updated_at?: string;
3264
+ };
3265
+ Relationships: [];
3266
+ };
3267
+ floriday_collections_cache: {
3268
+ Row: {
3269
+ connection_id: string;
3270
+ data: Json;
3271
+ fetched_at: string;
3272
+ floriday_id: string;
3273
+ is_deleted: boolean;
3274
+ sequence_number: number;
3275
+ updated_at: string;
3276
+ };
3277
+ Insert: {
3278
+ connection_id: string;
3279
+ data: Json;
3280
+ fetched_at?: string;
3281
+ floriday_id: string;
3282
+ is_deleted?: boolean;
3283
+ sequence_number?: number;
3284
+ updated_at?: string;
3285
+ };
3286
+ Update: {
3287
+ connection_id?: string;
3288
+ data?: Json;
3289
+ fetched_at?: string;
3290
+ floriday_id?: string;
3291
+ is_deleted?: boolean;
3292
+ sequence_number?: number;
3293
+ updated_at?: string;
3294
+ };
3295
+ Relationships: [
3296
+ {
3297
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3298
+ columns: ["connection_id"];
3299
+ isOneToOne: false;
3300
+ referencedRelation: "floriday_connections";
3301
+ referencedColumns: ["id"];
3302
+ }
3303
+ ];
3304
+ };
3305
+ floriday_commercial_service_types_cache: {
3306
+ Row: {
3307
+ connection_id: string;
3308
+ data: Json;
3309
+ fetched_at: string;
3310
+ floriday_id: string;
3311
+ is_deleted: boolean;
3312
+ sequence_number: number;
3313
+ updated_at: string;
3314
+ };
3315
+ Insert: {
3316
+ connection_id: string;
3317
+ data: Json;
3318
+ fetched_at?: string;
3319
+ floriday_id: string;
3320
+ is_deleted?: boolean;
3321
+ sequence_number?: number;
3322
+ updated_at?: string;
3323
+ };
3324
+ Update: {
3325
+ connection_id?: string;
3326
+ data?: Json;
3327
+ fetched_at?: string;
3328
+ floriday_id?: string;
3329
+ is_deleted?: boolean;
3330
+ sequence_number?: number;
3331
+ updated_at?: string;
3332
+ };
3333
+ Relationships: [
3334
+ {
3335
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3336
+ columns: ["connection_id"];
3337
+ isOneToOne: false;
3338
+ referencedRelation: "floriday_connections";
3339
+ referencedColumns: ["id"];
3340
+ }
3341
+ ];
3342
+ };
3343
+ floriday_connections: {
3344
+ Row: {
3345
+ access_token: string | null;
3346
+ api_key: string;
3347
+ client_id: string;
3348
+ client_secret: string;
3349
+ created_at: string;
3350
+ customers_endpoint: string | null;
3351
+ environment: string;
3352
+ gln_code: string | null;
3353
+ id: string;
3354
+ is_active: boolean;
3355
+ label: string;
3356
+ organization_name: string | null;
3357
+ preferred_warehouse_id: string | null;
3358
+ preferred_warehouse_name: string | null;
3359
+ token_expires_at: string | null;
3360
+ updated_at: string;
3361
+ };
3362
+ Insert: {
3363
+ access_token?: string | null;
3364
+ api_key: string;
3365
+ client_id: string;
3366
+ client_secret: string;
3367
+ created_at?: string;
3368
+ customers_endpoint?: string | null;
3369
+ environment: string;
3370
+ gln_code?: string | null;
3371
+ id?: string;
3372
+ is_active?: boolean;
3373
+ label?: string;
3374
+ organization_name?: string | null;
3375
+ preferred_warehouse_id?: string | null;
3376
+ preferred_warehouse_name?: string | null;
3377
+ token_expires_at?: string | null;
3378
+ updated_at?: string;
3379
+ };
3380
+ Update: {
3381
+ access_token?: string | null;
3382
+ api_key?: string;
3383
+ client_id?: string;
3384
+ client_secret?: string;
3385
+ created_at?: string;
3386
+ customers_endpoint?: string | null;
3387
+ environment?: string;
3388
+ gln_code?: string | null;
3389
+ id?: string;
3390
+ is_active?: boolean;
3391
+ label?: string;
3392
+ organization_name?: string | null;
3393
+ preferred_warehouse_id?: string | null;
3394
+ preferred_warehouse_name?: string | null;
3395
+ token_expires_at?: string | null;
3396
+ updated_at?: string;
3397
+ };
3398
+ Relationships: [];
3399
+ };
3400
+ floriday_connections_cache: {
3401
+ Row: {
3402
+ buyer_organization_id: string | null;
3403
+ buyer_organization_name: string | null;
3404
+ connection_id: string;
3405
+ data: Json;
3406
+ floriday_connection_id: string;
3407
+ is_deleted: boolean;
3408
+ sequence_number: number;
3409
+ status: string | null;
3410
+ synced_at: string;
3411
+ };
3412
+ Insert: {
3413
+ buyer_organization_id?: string | null;
3414
+ buyer_organization_name?: string | null;
3415
+ connection_id: string;
3416
+ data: Json;
3417
+ floriday_connection_id: string;
3418
+ is_deleted?: boolean;
3419
+ sequence_number: number;
3420
+ status?: string | null;
3421
+ synced_at?: string;
3422
+ };
3423
+ Update: {
3424
+ buyer_organization_id?: string | null;
3425
+ buyer_organization_name?: string | null;
3426
+ connection_id?: string;
3427
+ data?: Json;
3428
+ floriday_connection_id?: string;
3429
+ is_deleted?: boolean;
3430
+ sequence_number?: number;
3431
+ status?: string | null;
3432
+ synced_at?: string;
3433
+ };
3434
+ Relationships: [
3435
+ {
3436
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3437
+ columns: ["connection_id"];
3438
+ isOneToOne: false;
3439
+ referencedRelation: "floriday_connections";
3440
+ referencedColumns: ["id"];
3441
+ }
3442
+ ];
3443
+ };
3444
+ floriday_contract_trade_item_groups_cache: {
3445
+ Row: {
3446
+ connection_id: string;
3447
+ data: Json;
3448
+ fetched_at: string;
3449
+ floriday_id: string;
3450
+ is_deleted: boolean;
3451
+ sequence_number: number;
3452
+ updated_at: string;
3453
+ };
3454
+ Insert: {
3455
+ connection_id: string;
3456
+ data: Json;
3457
+ fetched_at?: string;
3458
+ floriday_id: string;
3459
+ is_deleted?: boolean;
3460
+ sequence_number?: number;
3461
+ updated_at?: string;
3462
+ };
3463
+ Update: {
3464
+ connection_id?: string;
3465
+ data?: Json;
3466
+ fetched_at?: string;
3467
+ floriday_id?: string;
3468
+ is_deleted?: boolean;
3469
+ sequence_number?: number;
3470
+ updated_at?: string;
3471
+ };
3472
+ Relationships: [
3473
+ {
3474
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3475
+ columns: ["connection_id"];
3476
+ isOneToOne: false;
3477
+ referencedRelation: "floriday_connections";
3478
+ referencedColumns: ["id"];
3479
+ }
3480
+ ];
3481
+ };
3482
+ floriday_contracts_cache: {
3483
+ Row: {
3484
+ connection_id: string;
3485
+ created_at: string;
3486
+ data: Json;
3487
+ fetched_at: string;
3488
+ floriday_id: string;
3489
+ id: string;
3490
+ is_deleted: boolean;
3491
+ sequence_number: number;
3492
+ updated_at: string;
3493
+ };
3494
+ Insert: {
3495
+ connection_id: string;
3496
+ created_at?: string;
3497
+ data: Json;
3498
+ fetched_at?: string;
3499
+ floriday_id: string;
3500
+ id?: string;
3501
+ is_deleted?: boolean;
3502
+ sequence_number?: number;
3503
+ updated_at?: string;
3504
+ };
3505
+ Update: {
3506
+ connection_id?: string;
3507
+ created_at?: string;
3508
+ data?: Json;
3509
+ fetched_at?: string;
3510
+ floriday_id?: string;
3511
+ id?: string;
3512
+ is_deleted?: boolean;
3513
+ sequence_number?: number;
3514
+ updated_at?: string;
3515
+ };
3516
+ Relationships: [
3517
+ {
3518
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3519
+ columns: ["connection_id"];
3520
+ isOneToOne: false;
3521
+ referencedRelation: "floriday_connections";
3522
+ referencedColumns: ["id"];
3523
+ }
3524
+ ];
3525
+ };
3526
+ floriday_customer_sticker_pdfs_cache: {
3527
+ Row: {
3528
+ byte_size: number | null;
3529
+ connection_id: string;
3530
+ content_type: string;
3531
+ created_at: string;
3532
+ fetched_at: string;
3533
+ id: string;
3534
+ sticker_id: string;
3535
+ storage_path: string;
3536
+ };
3537
+ Insert: {
3538
+ byte_size?: number | null;
3539
+ connection_id: string;
3540
+ content_type?: string;
3541
+ created_at?: string;
3542
+ fetched_at?: string;
3543
+ id?: string;
3544
+ sticker_id: string;
3545
+ storage_path: string;
3546
+ };
3547
+ Update: {
3548
+ byte_size?: number | null;
3549
+ connection_id?: string;
3550
+ content_type?: string;
3551
+ created_at?: string;
3552
+ fetched_at?: string;
3553
+ id?: string;
3554
+ sticker_id?: string;
3555
+ storage_path?: string;
3556
+ };
3557
+ Relationships: [
3558
+ {
3559
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3560
+ columns: ["connection_id"];
3561
+ isOneToOne: false;
3562
+ referencedRelation: "floriday_connections";
3563
+ referencedColumns: ["id"];
3564
+ }
3565
+ ];
3566
+ };
3567
+ floriday_customer_stickers_cache: {
3568
+ Row: {
3569
+ connection_id: string;
3570
+ created_at: string;
3571
+ data: Json;
3572
+ fetched_at: string;
3573
+ floriday_id: string;
3574
+ id: string;
3575
+ is_deleted: boolean;
3576
+ quantity: number | null;
3577
+ sales_order_id: string | null;
3578
+ sequence_number: number;
3579
+ status: string | null;
3580
+ trade_item_id: string | null;
3581
+ updated_at: string;
3582
+ };
3583
+ Insert: {
3584
+ connection_id: string;
3585
+ created_at?: string;
3586
+ data?: Json;
3587
+ fetched_at?: string;
3588
+ floriday_id: string;
3589
+ id?: string;
3590
+ is_deleted?: boolean;
3591
+ quantity?: number | null;
3592
+ sales_order_id?: string | null;
3593
+ sequence_number?: number;
3594
+ status?: string | null;
3595
+ trade_item_id?: string | null;
3596
+ updated_at?: string;
3597
+ };
3598
+ Update: {
3599
+ connection_id?: string;
3600
+ created_at?: string;
3601
+ data?: Json;
3602
+ fetched_at?: string;
3603
+ floriday_id?: string;
3604
+ id?: string;
3605
+ is_deleted?: boolean;
3606
+ quantity?: number | null;
3607
+ sales_order_id?: string | null;
3608
+ sequence_number?: number;
3609
+ status?: string | null;
3610
+ trade_item_id?: string | null;
3611
+ updated_at?: string;
3612
+ };
3613
+ Relationships: [
3614
+ {
3615
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3616
+ columns: ["connection_id"];
3617
+ isOneToOne: false;
3618
+ referencedRelation: "floriday_connections";
3619
+ referencedColumns: ["id"];
3620
+ }
3621
+ ];
3622
+ };
3623
+ floriday_customers_cache: {
3624
+ Row: {
3625
+ connection_id: string | null;
3626
+ data: Json;
3627
+ fetched_at: string;
3628
+ gln_code: string | null;
3629
+ is_deleted: boolean;
3630
+ name: string | null;
3631
+ organization_id: string;
3632
+ sequence_number: number | null;
3633
+ };
3634
+ Insert: {
3635
+ connection_id?: string | null;
3636
+ data?: Json;
3637
+ fetched_at?: string;
3638
+ gln_code?: string | null;
3639
+ is_deleted?: boolean;
3640
+ name?: string | null;
3641
+ organization_id: string;
3642
+ sequence_number?: number | null;
3643
+ };
3644
+ Update: {
3645
+ connection_id?: string | null;
3646
+ data?: Json;
3647
+ fetched_at?: string;
3648
+ gln_code?: string | null;
3649
+ is_deleted?: boolean;
3650
+ name?: string | null;
3651
+ organization_id?: string;
3652
+ sequence_number?: number | null;
3653
+ };
3654
+ Relationships: [
3655
+ {
3656
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3657
+ columns: ["connection_id"];
3658
+ isOneToOne: false;
3659
+ referencedRelation: "floriday_connections";
3660
+ referencedColumns: ["id"];
3661
+ }
3662
+ ];
3663
+ };
3664
+ floriday_delivery_condition_sets_cache: {
3665
+ Row: {
3666
+ connection_id: string;
3667
+ data: Json;
3668
+ fetched_at: string;
3669
+ floriday_id: string;
3670
+ is_deleted: boolean;
3671
+ sequence_number: number;
3672
+ updated_at: string;
3673
+ };
3674
+ Insert: {
3675
+ connection_id: string;
3676
+ data: Json;
3677
+ fetched_at?: string;
3678
+ floriday_id: string;
3679
+ is_deleted?: boolean;
3680
+ sequence_number?: number;
3681
+ updated_at?: string;
3682
+ };
3683
+ Update: {
3684
+ connection_id?: string;
3685
+ data?: Json;
3686
+ fetched_at?: string;
3687
+ floriday_id?: string;
3688
+ is_deleted?: boolean;
3689
+ sequence_number?: number;
3690
+ updated_at?: string;
3691
+ };
3692
+ Relationships: [
3693
+ {
3694
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3695
+ columns: ["connection_id"];
3696
+ isOneToOne: false;
3697
+ referencedRelation: "floriday_connections";
3698
+ referencedColumns: ["id"];
3699
+ }
3700
+ ];
3701
+ };
3702
+ floriday_delivery_locations_cache: {
3703
+ Row: {
3704
+ connection_id: string;
3705
+ data: Json;
3706
+ fetched_at: string;
3707
+ floriday_id: string;
3708
+ gln_code: string | null;
3709
+ id: string;
3710
+ is_deleted: boolean;
3711
+ name: string | null;
3712
+ organization_id: string | null;
3713
+ updated_at: string;
3714
+ };
3715
+ Insert: {
3716
+ connection_id: string;
3717
+ data?: Json;
3718
+ fetched_at?: string;
3719
+ floriday_id: string;
3720
+ gln_code?: string | null;
3721
+ id?: string;
3722
+ is_deleted?: boolean;
3723
+ name?: string | null;
3724
+ organization_id?: string | null;
3725
+ updated_at?: string;
3726
+ };
3727
+ Update: {
3728
+ connection_id?: string;
3729
+ data?: Json;
3730
+ fetched_at?: string;
3731
+ floriday_id?: string;
3732
+ gln_code?: string | null;
3733
+ id?: string;
3734
+ is_deleted?: boolean;
3735
+ name?: string | null;
3736
+ organization_id?: string | null;
3737
+ updated_at?: string;
3738
+ };
3739
+ Relationships: [
3740
+ {
3741
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3742
+ columns: ["connection_id"];
3743
+ isOneToOne: false;
3744
+ referencedRelation: "floriday_connections";
3745
+ referencedColumns: ["id"];
3746
+ }
3747
+ ];
3748
+ };
3749
+ floriday_delivery_orders_cache: {
3750
+ Row: {
3751
+ auction_date: string | null;
3752
+ connection_id: string;
3753
+ data: Json;
3754
+ destination_warehouse_id: string | null;
3755
+ fetched_at: string;
3756
+ floriday_id: string;
3757
+ id: string;
3758
+ is_deleted: boolean;
3759
+ sequence_number: number;
3760
+ status: string | null;
3761
+ trade_item_id: string | null;
3762
+ updated_at: string;
3763
+ };
3764
+ Insert: {
3765
+ auction_date?: string | null;
3766
+ connection_id: string;
3767
+ data?: Json;
3768
+ destination_warehouse_id?: string | null;
3769
+ fetched_at?: string;
3770
+ floriday_id: string;
3771
+ id?: string;
3772
+ is_deleted?: boolean;
3773
+ sequence_number?: number;
3774
+ status?: string | null;
3775
+ trade_item_id?: string | null;
3776
+ updated_at?: string;
3777
+ };
3778
+ Update: {
3779
+ auction_date?: string | null;
3780
+ connection_id?: string;
3781
+ data?: Json;
3782
+ destination_warehouse_id?: string | null;
3783
+ fetched_at?: string;
3784
+ floriday_id?: string;
3785
+ id?: string;
3786
+ is_deleted?: boolean;
3787
+ sequence_number?: number;
3788
+ status?: string | null;
3789
+ trade_item_id?: string | null;
3790
+ updated_at?: string;
3791
+ };
3792
+ Relationships: [
3793
+ {
3794
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3795
+ columns: ["connection_id"];
3796
+ isOneToOne: false;
3797
+ referencedRelation: "floriday_connections";
3798
+ referencedColumns: ["id"];
3799
+ }
3800
+ ];
3801
+ };
3802
+ floriday_fulfillment_orders_cache: {
3803
+ Row: {
3804
+ auction_date: string | null;
3805
+ connection_id: string;
3806
+ data: Json;
3807
+ delivery_order_id: string | null;
3808
+ despatch_warehouse_id: string | null;
3809
+ destination_warehouse_id: string | null;
3810
+ fetched_at: string;
3811
+ floriday_id: string;
3812
+ id: string;
3813
+ is_deleted: boolean | null;
3814
+ latest_delivery_at: string | null;
3815
+ load_carrier_type: string | null;
3816
+ one_label_only: boolean | null;
3817
+ sequence_number: number;
3818
+ status: string | null;
3819
+ };
3820
+ Insert: {
3821
+ auction_date?: string | null;
3822
+ connection_id: string;
3823
+ data: Json;
3824
+ delivery_order_id?: string | null;
3825
+ despatch_warehouse_id?: string | null;
3826
+ destination_warehouse_id?: string | null;
3827
+ fetched_at?: string;
3828
+ floriday_id: string;
3829
+ id?: string;
3830
+ is_deleted?: boolean | null;
3831
+ latest_delivery_at?: string | null;
3832
+ load_carrier_type?: string | null;
3833
+ one_label_only?: boolean | null;
3834
+ sequence_number?: number;
3835
+ status?: string | null;
3836
+ };
3837
+ Update: {
3838
+ auction_date?: string | null;
3839
+ connection_id?: string;
3840
+ data?: Json;
3841
+ delivery_order_id?: string | null;
3842
+ despatch_warehouse_id?: string | null;
3843
+ destination_warehouse_id?: string | null;
3844
+ fetched_at?: string;
3845
+ floriday_id?: string;
3846
+ id?: string;
3847
+ is_deleted?: boolean | null;
3848
+ latest_delivery_at?: string | null;
3849
+ load_carrier_type?: string | null;
3850
+ one_label_only?: boolean | null;
3851
+ sequence_number?: number;
3852
+ status?: string | null;
3853
+ };
3854
+ Relationships: [
3855
+ {
3856
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
3857
+ columns: ["connection_id"];
3858
+ isOneToOne: false;
3859
+ referencedRelation: "floriday_connections";
3860
+ referencedColumns: ["id"];
3861
+ }
3862
+ ];
3863
+ };
3864
+ floriday_invoices_cache: {
3865
+ Row: {
3866
+ buyer_organization_id: string | null;
3867
+ connection_id: string;
3868
+ currency: string | null;
3869
+ data: Json;
3870
+ fetched_at: string;
3871
+ floriday_id: string;
3872
+ id: string;
3873
+ invoice_date: string | null;
3874
+ invoice_number: string | null;
3875
+ is_deleted: boolean;
3876
+ sequence_number: number;
3877
+ total_amount: number | null;
3878
+ updated_at: string;
3879
+ };
3880
+ Insert: {
3881
+ buyer_organization_id?: string | null;
3882
+ connection_id: string;
3883
+ currency?: string | null;
3884
+ data?: Json;
3885
+ fetched_at?: string;
3886
+ floriday_id: string;
3887
+ id?: string;
3888
+ invoice_date?: string | null;
3889
+ invoice_number?: string | null;
3890
+ is_deleted?: boolean;
3891
+ sequence_number?: number;
3892
+ total_amount?: number | null;
3893
+ updated_at?: string;
3894
+ };
3895
+ Update: {
3896
+ buyer_organization_id?: string | null;
3897
+ connection_id?: string;
3898
+ currency?: string | null;
3899
+ data?: Json;
3900
+ fetched_at?: string;
3901
+ floriday_id?: string;
3902
+ id?: string;
3903
+ invoice_date?: string | null;
3904
+ invoice_number?: string | null;
3905
+ is_deleted?: boolean;
3906
+ sequence_number?: number;
3907
+ total_amount?: number | null;
3908
+ updated_at?: string;
3909
+ };
3910
+ Relationships: [
3911
+ {
3912
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
3913
+ columns: ["connection_id"];
3914
+ isOneToOne: false;
3915
+ referencedRelation: "floriday_connections";
3916
+ referencedColumns: ["id"];
3917
+ }
3918
+ ];
3919
+ };
3920
+ floriday_logistic_labels_cache: {
3921
+ Row: {
3922
+ byte_size: number | null;
3923
+ connection_id: string;
3924
+ content_type: string;
3925
+ fetched_at: string;
3926
+ fulfillment_order_id: string;
3927
+ id: string;
3928
+ logistic_label_code: string;
3929
+ storage_path: string;
3930
+ };
3931
+ Insert: {
3932
+ byte_size?: number | null;
3933
+ connection_id: string;
3934
+ content_type?: string;
3935
+ fetched_at?: string;
3936
+ fulfillment_order_id: string;
3937
+ id?: string;
3938
+ logistic_label_code: string;
3939
+ storage_path: string;
3940
+ };
3941
+ Update: {
3942
+ byte_size?: number | null;
3943
+ connection_id?: string;
3944
+ content_type?: string;
3945
+ fetched_at?: string;
3946
+ fulfillment_order_id?: string;
3947
+ id?: string;
3948
+ logistic_label_code?: string;
3949
+ storage_path?: string;
3950
+ };
3951
+ Relationships: [
3952
+ {
3953
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
3954
+ columns: ["connection_id"];
3955
+ isOneToOne: false;
3956
+ referencedRelation: "floriday_connections";
3957
+ referencedColumns: ["id"];
3958
+ }
3959
+ ];
3960
+ };
3961
+ floriday_network_cache: {
3962
+ Row: {
3963
+ city: string | null;
3964
+ connection_id: string;
3965
+ country: string | null;
3966
+ data: Json;
3967
+ fetched_at: string;
3968
+ gln: string | null;
3969
+ organization_id: string;
3970
+ organization_name: string | null;
3971
+ };
3972
+ Insert: {
3973
+ city?: string | null;
3974
+ connection_id: string;
3975
+ country?: string | null;
3976
+ data?: Json;
3977
+ fetched_at?: string;
3978
+ gln?: string | null;
3979
+ organization_id: string;
3980
+ organization_name?: string | null;
3981
+ };
3982
+ Update: {
3983
+ city?: string | null;
3984
+ connection_id?: string;
3985
+ country?: string | null;
3986
+ data?: Json;
3987
+ fetched_at?: string;
3988
+ gln?: string | null;
3989
+ organization_id?: string;
3990
+ organization_name?: string | null;
3991
+ };
3992
+ Relationships: [];
3993
+ };
3994
+ floriday_network_sync_state: {
3995
+ Row: {
3996
+ connection_id: string;
3997
+ last_error: string | null;
3998
+ last_sequence_number: number;
3999
+ last_synced_at: string | null;
4000
+ updated_at: string;
4001
+ };
4002
+ Insert: {
4003
+ connection_id: string;
4004
+ last_error?: string | null;
4005
+ last_sequence_number?: number;
4006
+ last_synced_at?: string | null;
4007
+ updated_at?: string;
4008
+ };
4009
+ Update: {
4010
+ connection_id?: string;
4011
+ last_error?: string | null;
4012
+ last_sequence_number?: number;
4013
+ last_synced_at?: string | null;
4014
+ updated_at?: string;
4015
+ };
4016
+ Relationships: [];
4017
+ };
4018
+ floriday_packings_cache: {
4019
+ Row: {
4020
+ connection_id: string;
4021
+ data: Json;
4022
+ fetched_at: string;
4023
+ floriday_id: string;
4024
+ id: string;
4025
+ is_deleted: boolean;
4026
+ sequence_number: number;
4027
+ updated_at: string;
4028
+ };
4029
+ Insert: {
4030
+ connection_id: string;
4031
+ data?: Json;
4032
+ fetched_at?: string;
4033
+ floriday_id: string;
4034
+ id?: string;
4035
+ is_deleted?: boolean;
4036
+ sequence_number?: number;
4037
+ updated_at?: string;
4038
+ };
4039
+ Update: {
4040
+ connection_id?: string;
4041
+ data?: Json;
4042
+ fetched_at?: string;
4043
+ floriday_id?: string;
4044
+ id?: string;
4045
+ is_deleted?: boolean;
4046
+ sequence_number?: number;
4047
+ updated_at?: string;
4048
+ };
4049
+ Relationships: [
4050
+ {
4051
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
4052
+ columns: ["connection_id"];
4053
+ isOneToOne: false;
4054
+ referencedRelation: "floriday_connections";
4055
+ referencedColumns: ["id"];
4056
+ }
4057
+ ];
4058
+ };
4059
+ floriday_price_groups_cache: {
4060
+ Row: {
4061
+ connection_id: string;
4062
+ data: Json;
4063
+ fetched_at: string;
4064
+ floriday_id: string;
4065
+ is_deleted: boolean;
4066
+ sequence_number: number;
4067
+ updated_at: string;
4068
+ };
4069
+ Insert: {
4070
+ connection_id: string;
4071
+ data: Json;
4072
+ fetched_at?: string;
4073
+ floriday_id: string;
4074
+ is_deleted?: boolean;
4075
+ sequence_number?: number;
4076
+ updated_at?: string;
4077
+ };
4078
+ Update: {
4079
+ connection_id?: string;
4080
+ data?: Json;
4081
+ fetched_at?: string;
4082
+ floriday_id?: string;
4083
+ is_deleted?: boolean;
4084
+ sequence_number?: number;
4085
+ updated_at?: string;
4086
+ };
4087
+ Relationships: [
4088
+ {
4089
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
4090
+ columns: ["connection_id"];
4091
+ isOneToOne: false;
4092
+ referencedRelation: "floriday_connections";
4093
+ referencedColumns: ["id"];
4094
+ }
4095
+ ];
4096
+ };
4097
+ floriday_resource_schemas: {
4098
+ Row: {
4099
+ enums: Json;
4100
+ fetched_at: string;
4101
+ resource: string;
4102
+ schema: Json;
4103
+ source_url: string | null;
4104
+ version: string;
2687
4105
  };
2688
4106
  Insert: {
2689
- city?: string | null;
2690
- connection_id: string;
2691
- country?: string | null;
2692
- data?: Json;
4107
+ enums?: Json;
2693
4108
  fetched_at?: string;
2694
- gln?: string | null;
2695
- organization_id: string;
2696
- organization_name?: string | null;
4109
+ resource: string;
4110
+ schema: Json;
4111
+ source_url?: string | null;
4112
+ version: string;
2697
4113
  };
2698
4114
  Update: {
2699
- city?: string | null;
2700
- connection_id?: string;
2701
- country?: string | null;
2702
- data?: Json;
4115
+ enums?: Json;
2703
4116
  fetched_at?: string;
2704
- gln?: string | null;
2705
- organization_id?: string;
2706
- organization_name?: string | null;
4117
+ resource?: string;
4118
+ schema?: Json;
4119
+ source_url?: string | null;
4120
+ version?: string;
2707
4121
  };
2708
4122
  Relationships: [];
2709
4123
  };
2710
- floriday_network_sync_state: {
4124
+ floriday_sales_strategies_cache: {
2711
4125
  Row: {
2712
4126
  connection_id: string;
2713
- last_error: string | null;
2714
- last_sequence_number: number;
2715
- last_synced_at: string | null;
4127
+ data: Json;
4128
+ fetched_at: string;
4129
+ floriday_id: string;
4130
+ is_deleted: boolean;
4131
+ sequence_number: number;
2716
4132
  updated_at: string;
2717
4133
  };
2718
4134
  Insert: {
2719
4135
  connection_id: string;
2720
- last_error?: string | null;
2721
- last_sequence_number?: number;
2722
- last_synced_at?: string | null;
4136
+ data: Json;
4137
+ fetched_at?: string;
4138
+ floriday_id: string;
4139
+ is_deleted?: boolean;
4140
+ sequence_number?: number;
2723
4141
  updated_at?: string;
2724
4142
  };
2725
4143
  Update: {
2726
4144
  connection_id?: string;
2727
- last_error?: string | null;
2728
- last_sequence_number?: number;
2729
- last_synced_at?: string | null;
4145
+ data?: Json;
4146
+ fetched_at?: string;
4147
+ floriday_id?: string;
4148
+ is_deleted?: boolean;
4149
+ sequence_number?: number;
2730
4150
  updated_at?: string;
2731
4151
  };
2732
- Relationships: [];
4152
+ Relationships: [
4153
+ {
4154
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4155
+ columns: ["connection_id"];
4156
+ isOneToOne: false;
4157
+ referencedRelation: "floriday_connections";
4158
+ referencedColumns: ["id"];
4159
+ }
4160
+ ];
2733
4161
  };
2734
4162
  floriday_salesorders_cache: {
2735
4163
  Row: {
@@ -2798,7 +4226,9 @@ export type Database = {
2798
4226
  connection_id: string;
2799
4227
  entity_type: string;
2800
4228
  last_error: string | null;
4229
+ last_items_processed: number | null;
2801
4230
  last_sequence_number: number;
4231
+ last_success_at: string | null;
2802
4232
  last_synced_at: string | null;
2803
4233
  updated_at: string;
2804
4234
  };
@@ -2806,7 +4236,9 @@ export type Database = {
2806
4236
  connection_id: string;
2807
4237
  entity_type: string;
2808
4238
  last_error?: string | null;
4239
+ last_items_processed?: number | null;
2809
4240
  last_sequence_number?: number;
4241
+ last_success_at?: string | null;
2810
4242
  last_synced_at?: string | null;
2811
4243
  updated_at?: string;
2812
4244
  };
@@ -2814,7 +4246,9 @@ export type Database = {
2814
4246
  connection_id?: string;
2815
4247
  entity_type?: string;
2816
4248
  last_error?: string | null;
4249
+ last_items_processed?: number | null;
2817
4250
  last_sequence_number?: number;
4251
+ last_success_at?: string | null;
2818
4252
  last_synced_at?: string | null;
2819
4253
  updated_at?: string;
2820
4254
  };
@@ -2866,6 +4300,47 @@ export type Database = {
2866
4300
  }
2867
4301
  ];
2868
4302
  };
4303
+ floriday_trade_item_classifications_cache: {
4304
+ Row: {
4305
+ connection_id: string;
4306
+ data: Json;
4307
+ fetched_at: string;
4308
+ floriday_id: string;
4309
+ id: string;
4310
+ is_deleted: boolean;
4311
+ sequence_number: number;
4312
+ updated_at: string;
4313
+ };
4314
+ Insert: {
4315
+ connection_id: string;
4316
+ data: Json;
4317
+ fetched_at?: string;
4318
+ floriday_id: string;
4319
+ id?: string;
4320
+ is_deleted?: boolean;
4321
+ sequence_number?: number;
4322
+ updated_at?: string;
4323
+ };
4324
+ Update: {
4325
+ connection_id?: string;
4326
+ data?: Json;
4327
+ fetched_at?: string;
4328
+ floriday_id?: string;
4329
+ id?: string;
4330
+ is_deleted?: boolean;
4331
+ sequence_number?: number;
4332
+ updated_at?: string;
4333
+ };
4334
+ Relationships: [
4335
+ {
4336
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4337
+ columns: ["connection_id"];
4338
+ isOneToOne: false;
4339
+ referencedRelation: "floriday_connections";
4340
+ referencedColumns: ["id"];
4341
+ }
4342
+ ];
4343
+ };
2869
4344
  floriday_trade_items_cache: {
2870
4345
  Row: {
2871
4346
  connection_id: string;
@@ -2901,6 +4376,165 @@ export type Database = {
2901
4376
  }
2902
4377
  ];
2903
4378
  };
4379
+ floriday_trips_cache: {
4380
+ Row: {
4381
+ carrier_organization_id: string | null;
4382
+ connection_id: string;
4383
+ data: Json;
4384
+ fetched_at: string;
4385
+ floriday_id: string;
4386
+ id: string;
4387
+ is_deleted: boolean;
4388
+ sequence_number: number;
4389
+ status: string | null;
4390
+ trip_date: string | null;
4391
+ updated_at: string;
4392
+ };
4393
+ Insert: {
4394
+ carrier_organization_id?: string | null;
4395
+ connection_id: string;
4396
+ data?: Json;
4397
+ fetched_at?: string;
4398
+ floriday_id: string;
4399
+ id?: string;
4400
+ is_deleted?: boolean;
4401
+ sequence_number?: number;
4402
+ status?: string | null;
4403
+ trip_date?: string | null;
4404
+ updated_at?: string;
4405
+ };
4406
+ Update: {
4407
+ carrier_organization_id?: string | null;
4408
+ connection_id?: string;
4409
+ data?: Json;
4410
+ fetched_at?: string;
4411
+ floriday_id?: string;
4412
+ id?: string;
4413
+ is_deleted?: boolean;
4414
+ sequence_number?: number;
4415
+ status?: string | null;
4416
+ trip_date?: string | null;
4417
+ updated_at?: string;
4418
+ };
4419
+ Relationships: [
4420
+ {
4421
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4422
+ columns: ["connection_id"];
4423
+ isOneToOne: false;
4424
+ referencedRelation: "floriday_connections";
4425
+ referencedColumns: ["id"];
4426
+ }
4427
+ ];
4428
+ };
4429
+ floriday_warehouses_cache: {
4430
+ Row: {
4431
+ connection_id: string;
4432
+ data: Json;
4433
+ fetched_at: string;
4434
+ floriday_id: string;
4435
+ gln_code: string | null;
4436
+ id: string;
4437
+ is_default: boolean;
4438
+ is_deleted: boolean;
4439
+ name: string | null;
4440
+ updated_at: string;
4441
+ };
4442
+ Insert: {
4443
+ connection_id: string;
4444
+ data?: Json;
4445
+ fetched_at?: string;
4446
+ floriday_id: string;
4447
+ gln_code?: string | null;
4448
+ id?: string;
4449
+ is_default?: boolean;
4450
+ is_deleted?: boolean;
4451
+ name?: string | null;
4452
+ updated_at?: string;
4453
+ };
4454
+ Update: {
4455
+ connection_id?: string;
4456
+ data?: Json;
4457
+ fetched_at?: string;
4458
+ floriday_id?: string;
4459
+ gln_code?: string | null;
4460
+ id?: string;
4461
+ is_default?: boolean;
4462
+ is_deleted?: boolean;
4463
+ name?: string | null;
4464
+ updated_at?: string;
4465
+ };
4466
+ Relationships: [
4467
+ {
4468
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4469
+ columns: ["connection_id"];
4470
+ isOneToOne: false;
4471
+ referencedRelation: "floriday_connections";
4472
+ referencedColumns: ["id"];
4473
+ }
4474
+ ];
4475
+ };
4476
+ floriday_write_log: {
4477
+ Row: {
4478
+ action: string;
4479
+ caller: string;
4480
+ connection_id: string | null;
4481
+ created_at: string;
4482
+ error: string | null;
4483
+ floriday_id: string | null;
4484
+ http_status: number | null;
4485
+ id: string;
4486
+ idempotency_key: string | null;
4487
+ module: string | null;
4488
+ ok: boolean;
4489
+ request: Json | null;
4490
+ resource: string;
4491
+ response: Json | null;
4492
+ user_id: string | null;
4493
+ };
4494
+ Insert: {
4495
+ action: string;
4496
+ caller?: string;
4497
+ connection_id?: string | null;
4498
+ created_at?: string;
4499
+ error?: string | null;
4500
+ floriday_id?: string | null;
4501
+ http_status?: number | null;
4502
+ id?: string;
4503
+ idempotency_key?: string | null;
4504
+ module?: string | null;
4505
+ ok: boolean;
4506
+ request?: Json | null;
4507
+ resource: string;
4508
+ response?: Json | null;
4509
+ user_id?: string | null;
4510
+ };
4511
+ Update: {
4512
+ action?: string;
4513
+ caller?: string;
4514
+ connection_id?: string | null;
4515
+ created_at?: string;
4516
+ error?: string | null;
4517
+ floriday_id?: string | null;
4518
+ http_status?: number | null;
4519
+ id?: string;
4520
+ idempotency_key?: string | null;
4521
+ module?: string | null;
4522
+ ok?: boolean;
4523
+ request?: Json | null;
4524
+ resource?: string;
4525
+ response?: Json | null;
4526
+ user_id?: string | null;
4527
+ };
4528
+ Relationships: [
4529
+ {
4530
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
4531
+ columns: ["connection_id"];
4532
+ isOneToOne: false;
4533
+ referencedRelation: "floriday_connections";
4534
+ referencedColumns: ["id"];
4535
+ }
4536
+ ];
4537
+ };
2904
4538
  imap_accounts: {
2905
4539
  Row: {
2906
4540
  created_at: string;
@@ -3080,6 +4714,59 @@ export type Database = {
3080
4714
  };
3081
4715
  Relationships: [];
3082
4716
  };
4717
+ invoice_push_log: {
4718
+ Row: {
4719
+ connection_id: string | null;
4720
+ created_at: string;
4721
+ created_by: string;
4722
+ customer_id: string | null;
4723
+ id: string;
4724
+ last_error: string | null;
4725
+ last_polled_at: string | null;
4726
+ payload: Json;
4727
+ provider_id: string;
4728
+ queue_id: string | null;
4729
+ status: string;
4730
+ updated_at: string;
4731
+ };
4732
+ Insert: {
4733
+ connection_id?: string | null;
4734
+ created_at?: string;
4735
+ created_by?: string;
4736
+ customer_id?: string | null;
4737
+ id?: string;
4738
+ last_error?: string | null;
4739
+ last_polled_at?: string | null;
4740
+ payload?: Json;
4741
+ provider_id: string;
4742
+ queue_id?: string | null;
4743
+ status?: string;
4744
+ updated_at?: string;
4745
+ };
4746
+ Update: {
4747
+ connection_id?: string | null;
4748
+ created_at?: string;
4749
+ created_by?: string;
4750
+ customer_id?: string | null;
4751
+ id?: string;
4752
+ last_error?: string | null;
4753
+ last_polled_at?: string | null;
4754
+ payload?: Json;
4755
+ provider_id?: string;
4756
+ queue_id?: string | null;
4757
+ status?: string;
4758
+ updated_at?: string;
4759
+ };
4760
+ Relationships: [
4761
+ {
4762
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
4763
+ columns: ["provider_id"];
4764
+ isOneToOne: false;
4765
+ referencedRelation: "external_invoice_providers";
4766
+ referencedColumns: ["provider"];
4767
+ }
4768
+ ];
4769
+ };
3083
4770
  invoice_run_items: {
3084
4771
  Row: {
3085
4772
  booking_id: string | null;
@@ -3207,6 +4894,7 @@ export type Database = {
3207
4894
  Row: {
3208
4895
  body_html: string | null;
3209
4896
  body_text: string | null;
4897
+ connection_id: string | null;
3210
4898
  created_at: string;
3211
4899
  error_message: string | null;
3212
4900
  external_id: string | null;
@@ -3225,6 +4913,7 @@ export type Database = {
3225
4913
  Insert: {
3226
4914
  body_html?: string | null;
3227
4915
  body_text?: string | null;
4916
+ connection_id?: string | null;
3228
4917
  created_at?: string;
3229
4918
  error_message?: string | null;
3230
4919
  external_id?: string | null;
@@ -3243,6 +4932,7 @@ export type Database = {
3243
4932
  Update: {
3244
4933
  body_html?: string | null;
3245
4934
  body_text?: string | null;
4935
+ connection_id?: string | null;
3246
4936
  created_at?: string;
3247
4937
  error_message?: string | null;
3248
4938
  external_id?: string | null;
@@ -3259,6 +4949,20 @@ export type Database = {
3259
4949
  updated_at?: string;
3260
4950
  };
3261
4951
  Relationships: [
4952
+ {
4953
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4954
+ columns: ["connection_id"];
4955
+ isOneToOne: false;
4956
+ referencedRelation: "email_auth_connections";
4957
+ referencedColumns: ["id"];
4958
+ },
4959
+ {
4960
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4961
+ columns: ["connection_id"];
4962
+ isOneToOne: false;
4963
+ referencedRelation: "email_auth_connections_safe";
4964
+ referencedColumns: ["id"];
4965
+ },
3262
4966
  {
3263
4967
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3264
4968
  columns: ["profile_id"];
@@ -3553,6 +5257,7 @@ export type Database = {
3553
5257
  role: string;
3554
5258
  tenant_id: string;
3555
5259
  updated_at: string;
5260
+ user_id: string | null;
3556
5261
  };
3557
5262
  Insert: {
3558
5263
  avatar_url?: string | null;
@@ -3568,6 +5273,7 @@ export type Database = {
3568
5273
  role?: string;
3569
5274
  tenant_id: string;
3570
5275
  updated_at?: string;
5276
+ user_id?: string | null;
3571
5277
  };
3572
5278
  Update: {
3573
5279
  avatar_url?: string | null;
@@ -3583,6 +5289,7 @@ export type Database = {
3583
5289
  role?: string;
3584
5290
  tenant_id?: string;
3585
5291
  updated_at?: string;
5292
+ user_id?: string | null;
3586
5293
  };
3587
5294
  Relationships: [
3588
5295
  {
@@ -3724,13 +5431,6 @@ export type Database = {
3724
5431
  isOneToOne: false;
3725
5432
  referencedRelation: "offer_campaigns";
3726
5433
  referencedColumns: ["id"];
3727
- },
3728
- {
3729
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3730
- columns: ["product_id"];
3731
- isOneToOne: false;
3732
- referencedRelation: "products";
3733
- referencedColumns: ["id"];
3734
5434
  }
3735
5435
  ];
3736
5436
  };
@@ -4018,6 +5718,105 @@ export type Database = {
4018
5718
  };
4019
5719
  Relationships: [];
4020
5720
  };
5721
+ order_cart_items: {
5722
+ Row: {
5723
+ cart_id: string;
5724
+ crates: number;
5725
+ crates_per_layer: number;
5726
+ created_at: string;
5727
+ id: string;
5728
+ order_item_id: string | null;
5729
+ plants_per_crate: number;
5730
+ product_id: string | null;
5731
+ product_name: string;
5732
+ };
5733
+ Insert: {
5734
+ cart_id: string;
5735
+ crates: number;
5736
+ crates_per_layer?: number;
5737
+ created_at?: string;
5738
+ id?: string;
5739
+ order_item_id?: string | null;
5740
+ plants_per_crate?: number;
5741
+ product_id?: string | null;
5742
+ product_name: string;
5743
+ };
5744
+ Update: {
5745
+ cart_id?: string;
5746
+ crates?: number;
5747
+ crates_per_layer?: number;
5748
+ created_at?: string;
5749
+ id?: string;
5750
+ order_item_id?: string | null;
5751
+ plants_per_crate?: number;
5752
+ product_id?: string | null;
5753
+ product_name?: string;
5754
+ };
5755
+ Relationships: [
5756
+ {
5757
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5758
+ columns: ["cart_id"];
5759
+ isOneToOne: false;
5760
+ referencedRelation: "order_carts";
5761
+ referencedColumns: ["id"];
5762
+ },
5763
+ {
5764
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5765
+ columns: ["order_item_id"];
5766
+ isOneToOne: false;
5767
+ referencedRelation: "order_items";
5768
+ referencedColumns: ["id"];
5769
+ },
5770
+ {
5771
+ foreignKeyName: "order_cart_items_product_id_fkey";
5772
+ columns: ["product_id"];
5773
+ isOneToOne: false;
5774
+ referencedRelation: "products";
5775
+ referencedColumns: ["id"];
5776
+ }
5777
+ ];
5778
+ };
5779
+ order_carts: {
5780
+ Row: {
5781
+ cart_number: number;
5782
+ created_at: string;
5783
+ id: string;
5784
+ is_auto: boolean;
5785
+ is_complete: boolean;
5786
+ notes: string | null;
5787
+ order_id: string;
5788
+ updated_at: string;
5789
+ };
5790
+ Insert: {
5791
+ cart_number: number;
5792
+ created_at?: string;
5793
+ id?: string;
5794
+ is_auto?: boolean;
5795
+ is_complete?: boolean;
5796
+ notes?: string | null;
5797
+ order_id: string;
5798
+ updated_at?: string;
5799
+ };
5800
+ Update: {
5801
+ cart_number?: number;
5802
+ created_at?: string;
5803
+ id?: string;
5804
+ is_auto?: boolean;
5805
+ is_complete?: boolean;
5806
+ notes?: string | null;
5807
+ order_id?: string;
5808
+ updated_at?: string;
5809
+ };
5810
+ Relationships: [
5811
+ {
5812
+ foreignKeyName: "order_carts_order_id_fkey";
5813
+ columns: ["order_id"];
5814
+ isOneToOne: false;
5815
+ referencedRelation: "orders";
5816
+ referencedColumns: ["id"];
5817
+ }
5818
+ ];
5819
+ };
4021
5820
  order_field_options: {
4022
5821
  Row: {
4023
5822
  created_at: string;
@@ -4226,6 +6025,36 @@ export type Database = {
4226
6025
  };
4227
6026
  Relationships: [];
4228
6027
  };
6028
+ pickstation_print_log: {
6029
+ Row: {
6030
+ customer_name: string | null;
6031
+ documents: string[];
6032
+ id: string;
6033
+ ip_address: string | null;
6034
+ order_id: string;
6035
+ order_number: string | null;
6036
+ printed_at: string;
6037
+ };
6038
+ Insert: {
6039
+ customer_name?: string | null;
6040
+ documents?: string[];
6041
+ id?: string;
6042
+ ip_address?: string | null;
6043
+ order_id: string;
6044
+ order_number?: string | null;
6045
+ printed_at?: string;
6046
+ };
6047
+ Update: {
6048
+ customer_name?: string | null;
6049
+ documents?: string[];
6050
+ id?: string;
6051
+ ip_address?: string | null;
6052
+ order_id?: string;
6053
+ order_number?: string | null;
6054
+ printed_at?: string;
6055
+ };
6056
+ Relationships: [];
6057
+ };
4229
6058
  pipeline_settings: {
4230
6059
  Row: {
4231
6060
  created_at: string;
@@ -4388,13 +6217,16 @@ export type Database = {
4388
6217
  Row: {
4389
6218
  barcode: string | null;
4390
6219
  batch: string;
6220
+ crates_per_layer: number;
4391
6221
  created_at: string;
4392
6222
  custom_fields: Json;
4393
6223
  id: string;
4394
6224
  image_url: string | null;
4395
6225
  incoming_quantity: number;
6226
+ layers_per_cart: number;
4396
6227
  location: string;
4397
6228
  min_quantity: number;
6229
+ plants_per_crate: number;
4398
6230
  product: string;
4399
6231
  product_type: string;
4400
6232
  purchase_price: number | null;
@@ -4407,13 +6239,16 @@ export type Database = {
4407
6239
  Insert: {
4408
6240
  barcode?: string | null;
4409
6241
  batch: string;
6242
+ crates_per_layer?: number;
4410
6243
  created_at?: string;
4411
6244
  custom_fields?: Json;
4412
6245
  id?: string;
4413
6246
  image_url?: string | null;
4414
6247
  incoming_quantity?: number;
6248
+ layers_per_cart?: number;
4415
6249
  location: string;
4416
6250
  min_quantity?: number;
6251
+ plants_per_crate?: number;
4417
6252
  product: string;
4418
6253
  product_type?: string;
4419
6254
  purchase_price?: number | null;
@@ -4426,13 +6261,16 @@ export type Database = {
4426
6261
  Update: {
4427
6262
  barcode?: string | null;
4428
6263
  batch?: string;
6264
+ crates_per_layer?: number;
4429
6265
  created_at?: string;
4430
6266
  custom_fields?: Json;
4431
6267
  id?: string;
4432
6268
  image_url?: string | null;
4433
6269
  incoming_quantity?: number;
6270
+ layers_per_cart?: number;
4434
6271
  location?: string;
4435
6272
  min_quantity?: number;
6273
+ plants_per_crate?: number;
4436
6274
  product?: string;
4437
6275
  product_type?: string;
4438
6276
  purchase_price?: number | null;
@@ -5408,6 +7246,147 @@ export type Database = {
5408
7246
  };
5409
7247
  Relationships: [];
5410
7248
  };
7249
+ time_entries: {
7250
+ Row: {
7251
+ created_at: string;
7252
+ employee_id: string;
7253
+ entry_date: string;
7254
+ hours: number;
7255
+ id: string;
7256
+ notes: string | null;
7257
+ overtime: number;
7258
+ undertime: number;
7259
+ updated_at: string;
7260
+ };
7261
+ Insert: {
7262
+ created_at?: string;
7263
+ employee_id: string;
7264
+ entry_date: string;
7265
+ hours?: number;
7266
+ id?: string;
7267
+ notes?: string | null;
7268
+ overtime?: number;
7269
+ undertime?: number;
7270
+ updated_at?: string;
7271
+ };
7272
+ Update: {
7273
+ created_at?: string;
7274
+ employee_id?: string;
7275
+ entry_date?: string;
7276
+ hours?: number;
7277
+ id?: string;
7278
+ notes?: string | null;
7279
+ overtime?: number;
7280
+ undertime?: number;
7281
+ updated_at?: string;
7282
+ };
7283
+ Relationships: [
7284
+ {
7285
+ foreignKeyName: "time_entries_employee_id_fkey";
7286
+ columns: ["employee_id"];
7287
+ isOneToOne: false;
7288
+ referencedRelation: "monteurs";
7289
+ referencedColumns: ["id"];
7290
+ }
7291
+ ];
7292
+ };
7293
+ time_logs: {
7294
+ Row: {
7295
+ created_at: string;
7296
+ employee_id: string;
7297
+ end_time: string | null;
7298
+ id: string;
7299
+ notes: string | null;
7300
+ overtime_hours: number;
7301
+ overtime_type: string | null;
7302
+ regular_hours: number;
7303
+ start_time: string;
7304
+ travel_cost: number | null;
7305
+ travel_distance_km: number | null;
7306
+ type: string;
7307
+ updated_at: string;
7308
+ };
7309
+ Insert: {
7310
+ created_at?: string;
7311
+ employee_id: string;
7312
+ end_time?: string | null;
7313
+ id?: string;
7314
+ notes?: string | null;
7315
+ overtime_hours?: number;
7316
+ overtime_type?: string | null;
7317
+ regular_hours?: number;
7318
+ start_time?: string;
7319
+ travel_cost?: number | null;
7320
+ travel_distance_km?: number | null;
7321
+ type: string;
7322
+ updated_at?: string;
7323
+ };
7324
+ Update: {
7325
+ created_at?: string;
7326
+ employee_id?: string;
7327
+ end_time?: string | null;
7328
+ id?: string;
7329
+ notes?: string | null;
7330
+ overtime_hours?: number;
7331
+ overtime_type?: string | null;
7332
+ regular_hours?: number;
7333
+ start_time?: string;
7334
+ travel_cost?: number | null;
7335
+ travel_distance_km?: number | null;
7336
+ type?: string;
7337
+ updated_at?: string;
7338
+ };
7339
+ Relationships: [
7340
+ {
7341
+ foreignKeyName: "time_logs_employee_id_fkey";
7342
+ columns: ["employee_id"];
7343
+ isOneToOne: false;
7344
+ referencedRelation: "monteurs";
7345
+ referencedColumns: ["id"];
7346
+ }
7347
+ ];
7348
+ };
7349
+ time_off_entries: {
7350
+ Row: {
7351
+ created_at: string;
7352
+ employee_id: string;
7353
+ entry_date: string;
7354
+ hours: number;
7355
+ id: string;
7356
+ notes: string | null;
7357
+ type: string;
7358
+ updated_at: string;
7359
+ };
7360
+ Insert: {
7361
+ created_at?: string;
7362
+ employee_id: string;
7363
+ entry_date: string;
7364
+ hours?: number;
7365
+ id?: string;
7366
+ notes?: string | null;
7367
+ type: string;
7368
+ updated_at?: string;
7369
+ };
7370
+ Update: {
7371
+ created_at?: string;
7372
+ employee_id?: string;
7373
+ entry_date?: string;
7374
+ hours?: number;
7375
+ id?: string;
7376
+ notes?: string | null;
7377
+ type?: string;
7378
+ updated_at?: string;
7379
+ };
7380
+ Relationships: [
7381
+ {
7382
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7383
+ columns: ["employee_id"];
7384
+ isOneToOne: false;
7385
+ referencedRelation: "monteurs";
7386
+ referencedColumns: ["id"];
7387
+ }
7388
+ ];
7389
+ };
5411
7390
  trade_item_drafts: {
5412
7391
  Row: {
5413
7392
  connection_id: string | null;
@@ -5709,9 +7688,11 @@ export type Database = {
5709
7688
  fetched_at: string;
5710
7689
  invoice_number: string;
5711
7690
  line_number: number;
7691
+ line_total: number | null;
5712
7692
  quantity: number | null;
5713
7693
  unit_price: number | null;
5714
7694
  vat_code: string | null;
7695
+ vat_rate: number | null;
5715
7696
  };
5716
7697
  Insert: {
5717
7698
  article_code?: string | null;
@@ -5721,9 +7702,11 @@ export type Database = {
5721
7702
  fetched_at?: string;
5722
7703
  invoice_number: string;
5723
7704
  line_number: number;
7705
+ line_total?: number | null;
5724
7706
  quantity?: number | null;
5725
7707
  unit_price?: number | null;
5726
7708
  vat_code?: string | null;
7709
+ vat_rate?: number | null;
5727
7710
  };
5728
7711
  Update: {
5729
7712
  article_code?: string | null;
@@ -5733,9 +7716,11 @@ export type Database = {
5733
7716
  fetched_at?: string;
5734
7717
  invoice_number?: string;
5735
7718
  line_number?: number;
7719
+ line_total?: number | null;
5736
7720
  quantity?: number | null;
5737
7721
  unit_price?: number | null;
5738
7722
  vat_code?: string | null;
7723
+ vat_rate?: number | null;
5739
7724
  };
5740
7725
  Relationships: [
5741
7726
  {
@@ -5914,9 +7899,12 @@ export type Database = {
5914
7899
  invoice_date: string | null;
5915
7900
  invoice_number: string;
5916
7901
  modified_at: string | null;
7902
+ outstanding_amount: number | null;
5917
7903
  status: string | null;
7904
+ status_label: string | null;
5918
7905
  total_excl: number | null;
5919
7906
  total_incl: number | null;
7907
+ vat_amount: number | null;
5920
7908
  };
5921
7909
  Insert: {
5922
7910
  connection_id: string;
@@ -5928,9 +7916,12 @@ export type Database = {
5928
7916
  invoice_date?: string | null;
5929
7917
  invoice_number: string;
5930
7918
  modified_at?: string | null;
7919
+ outstanding_amount?: number | null;
5931
7920
  status?: string | null;
7921
+ status_label?: string | null;
5932
7922
  total_excl?: number | null;
5933
7923
  total_incl?: number | null;
7924
+ vat_amount?: number | null;
5934
7925
  };
5935
7926
  Update: {
5936
7927
  connection_id?: string;
@@ -5942,13 +7933,93 @@ export type Database = {
5942
7933
  invoice_date?: string | null;
5943
7934
  invoice_number?: string;
5944
7935
  modified_at?: string | null;
7936
+ outstanding_amount?: number | null;
5945
7937
  status?: string | null;
7938
+ status_label?: string | null;
5946
7939
  total_excl?: number | null;
5947
7940
  total_incl?: number | null;
7941
+ vat_amount?: number | null;
7942
+ };
7943
+ Relationships: [
7944
+ {
7945
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
7946
+ columns: ["connection_id"];
7947
+ isOneToOne: false;
7948
+ referencedRelation: "twinfield_connections";
7949
+ referencedColumns: ["id"];
7950
+ }
7951
+ ];
7952
+ };
7953
+ twinfield_oauth_state: {
7954
+ Row: {
7955
+ created_at: string;
7956
+ environment: string;
7957
+ nonce: string | null;
7958
+ state: string;
7959
+ user_id: string;
7960
+ };
7961
+ Insert: {
7962
+ created_at?: string;
7963
+ environment: string;
7964
+ nonce?: string | null;
7965
+ state: string;
7966
+ user_id: string;
7967
+ };
7968
+ Update: {
7969
+ created_at?: string;
7970
+ environment?: string;
7971
+ nonce?: string | null;
7972
+ state?: string;
7973
+ user_id?: string;
7974
+ };
7975
+ Relationships: [];
7976
+ };
7977
+ twinfield_push_queue: {
7978
+ Row: {
7979
+ attempts: number;
7980
+ connection_id: string;
7981
+ created_at: string;
7982
+ external_id: string | null;
7983
+ id: string;
7984
+ idempotency_key: string;
7985
+ last_error: string | null;
7986
+ next_attempt_at: string;
7987
+ office_code: string;
7988
+ payload: Json;
7989
+ status: string;
7990
+ updated_at: string;
7991
+ };
7992
+ Insert: {
7993
+ attempts?: number;
7994
+ connection_id: string;
7995
+ created_at?: string;
7996
+ external_id?: string | null;
7997
+ id?: string;
7998
+ idempotency_key: string;
7999
+ last_error?: string | null;
8000
+ next_attempt_at?: string;
8001
+ office_code: string;
8002
+ payload: Json;
8003
+ status?: string;
8004
+ updated_at?: string;
8005
+ };
8006
+ Update: {
8007
+ attempts?: number;
8008
+ connection_id?: string;
8009
+ created_at?: string;
8010
+ external_id?: string | null;
8011
+ id?: string;
8012
+ idempotency_key?: string;
8013
+ last_error?: string | null;
8014
+ next_attempt_at?: string;
8015
+ office_code?: string;
8016
+ payload?: Json;
8017
+ status?: string;
8018
+ updated_at?: string;
5948
8019
  };
5949
8020
  Relationships: [
5950
8021
  {
5951
- foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
8022
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
5952
8023
  columns: ["connection_id"];
5953
8024
  isOneToOne: false;
5954
8025
  referencedRelation: "twinfield_connections";
@@ -5956,30 +8027,6 @@ export type Database = {
5956
8027
  }
5957
8028
  ];
5958
8029
  };
5959
- twinfield_oauth_state: {
5960
- Row: {
5961
- created_at: string;
5962
- environment: string;
5963
- nonce: string | null;
5964
- state: string;
5965
- user_id: string;
5966
- };
5967
- Insert: {
5968
- created_at?: string;
5969
- environment: string;
5970
- nonce?: string | null;
5971
- state: string;
5972
- user_id: string;
5973
- };
5974
- Update: {
5975
- created_at?: string;
5976
- environment?: string;
5977
- nonce?: string | null;
5978
- state?: string;
5979
- user_id?: string;
5980
- };
5981
- Relationships: [];
5982
- };
5983
8030
  twinfield_settings: {
5984
8031
  Row: {
5985
8032
  active_environment: string;
@@ -6097,6 +8144,117 @@ export type Database = {
6097
8144
  }
6098
8145
  ];
6099
8146
  };
8147
+ voorraad_media_upload_failures: {
8148
+ Row: {
8149
+ action: string;
8150
+ attempt_number: number;
8151
+ caller: string;
8152
+ client_user_id: string | null;
8153
+ content_type: string | null;
8154
+ created_at: string;
8155
+ environment: string;
8156
+ error_message: string | null;
8157
+ filename: string | null;
8158
+ id: string;
8159
+ idempotency_key: string | null;
8160
+ module: string;
8161
+ path: string;
8162
+ reference_id: string | null;
8163
+ request_body_hash: string | null;
8164
+ request_timestamp: number | null;
8165
+ response_content_type: string | null;
8166
+ response_status: number | null;
8167
+ size_bytes: number | null;
8168
+ };
8169
+ Insert: {
8170
+ action?: string;
8171
+ attempt_number?: number;
8172
+ caller?: string;
8173
+ client_user_id?: string | null;
8174
+ content_type?: string | null;
8175
+ created_at?: string;
8176
+ environment: string;
8177
+ error_message?: string | null;
8178
+ filename?: string | null;
8179
+ id?: string;
8180
+ idempotency_key?: string | null;
8181
+ module?: string;
8182
+ path: string;
8183
+ reference_id?: string | null;
8184
+ request_body_hash?: string | null;
8185
+ request_timestamp?: number | null;
8186
+ response_content_type?: string | null;
8187
+ response_status?: number | null;
8188
+ size_bytes?: number | null;
8189
+ };
8190
+ Update: {
8191
+ action?: string;
8192
+ attempt_number?: number;
8193
+ caller?: string;
8194
+ client_user_id?: string | null;
8195
+ content_type?: string | null;
8196
+ created_at?: string;
8197
+ environment?: string;
8198
+ error_message?: string | null;
8199
+ filename?: string | null;
8200
+ id?: string;
8201
+ idempotency_key?: string | null;
8202
+ module?: string;
8203
+ path?: string;
8204
+ reference_id?: string | null;
8205
+ request_body_hash?: string | null;
8206
+ request_timestamp?: number | null;
8207
+ response_content_type?: string | null;
8208
+ response_status?: number | null;
8209
+ size_bytes?: number | null;
8210
+ };
8211
+ Relationships: [];
8212
+ };
8213
+ voorraad_publish_attempts: {
8214
+ Row: {
8215
+ action: string;
8216
+ connection_id: string | null;
8217
+ created_at: string;
8218
+ error: string | null;
8219
+ gateway_attempt_id: string | null;
8220
+ gateway_status: number | null;
8221
+ id: string;
8222
+ intent: string;
8223
+ ok: boolean;
8224
+ request_summary: Json | null;
8225
+ trade_item_id: string | null;
8226
+ user_id: string;
8227
+ };
8228
+ Insert: {
8229
+ action: string;
8230
+ connection_id?: string | null;
8231
+ created_at?: string;
8232
+ error?: string | null;
8233
+ gateway_attempt_id?: string | null;
8234
+ gateway_status?: number | null;
8235
+ id?: string;
8236
+ intent: string;
8237
+ ok: boolean;
8238
+ request_summary?: Json | null;
8239
+ trade_item_id?: string | null;
8240
+ user_id: string;
8241
+ };
8242
+ Update: {
8243
+ action?: string;
8244
+ connection_id?: string | null;
8245
+ created_at?: string;
8246
+ error?: string | null;
8247
+ gateway_attempt_id?: string | null;
8248
+ gateway_status?: number | null;
8249
+ id?: string;
8250
+ intent?: string;
8251
+ ok?: boolean;
8252
+ request_summary?: Json | null;
8253
+ trade_item_id?: string | null;
8254
+ user_id?: string;
8255
+ };
8256
+ Relationships: [];
8257
+ };
6100
8258
  work_order_monteurs: {
6101
8259
  Row: {
6102
8260
  created_at: string;
@@ -6414,6 +8572,134 @@ export type Database = {
6414
8572
  };
6415
8573
  Relationships: [];
6416
8574
  };
8575
+ external_invoices_grouped: {
8576
+ Row: {
8577
+ currency: string | null;
8578
+ customer_external_id: string | null;
8579
+ customer_name: string | null;
8580
+ customer_vat: string | null;
8581
+ due_at: string | null;
8582
+ group_key: string | null;
8583
+ invoice_number: string | null;
8584
+ is_merged: boolean | null;
8585
+ issued_at: string | null;
8586
+ modified_at: string | null;
8587
+ open_amount: number | null;
8588
+ paid_at: string | null;
8589
+ providers: string[] | null;
8590
+ source_count: number | null;
8591
+ sources: Json | null;
8592
+ status: string | null;
8593
+ total_excl: number | null;
8594
+ total_incl: number | null;
8595
+ total_vat: number | null;
8596
+ };
8597
+ Relationships: [];
8598
+ };
8599
+ external_invoices_unified: {
8600
+ Row: {
8601
+ connection_id: string | null;
8602
+ currency: string | null;
8603
+ customer_external_id: string | null;
8604
+ customer_name: string | null;
8605
+ customer_vat: string | null;
8606
+ due_at: string | null;
8607
+ external_id: string | null;
8608
+ invoice_number: string | null;
8609
+ issued_at: string | null;
8610
+ open_amount: number | null;
8611
+ owner_user_id: string | null;
8612
+ paid_at: string | null;
8613
+ raw: Json | null;
8614
+ source: string | null;
8615
+ status: string | null;
8616
+ synced_at: string | null;
8617
+ total_excl: number | null;
8618
+ total_incl: number | null;
8619
+ total_vat: number | null;
8620
+ };
8621
+ Relationships: [];
8622
+ };
8623
+ v_external_customers_exact: {
8624
+ Row: {
8625
+ account_number: string | null;
8626
+ city: string | null;
8627
+ coc_number: string | null;
8628
+ company_name: string | null;
8629
+ connection_id: string | null;
8630
+ country: string | null;
8631
+ currency: string | null;
8632
+ email: string | null;
8633
+ external_id: string | null;
8634
+ is_sales: boolean | null;
8635
+ is_supplier: boolean | null;
8636
+ language: string | null;
8637
+ modified_at: string | null;
8638
+ phone: string | null;
8639
+ postal_code: string | null;
8640
+ raw: Json | null;
8641
+ source: string | null;
8642
+ street: string | null;
8643
+ synced_at: string | null;
8644
+ vat_number: string | null;
8645
+ website: string | null;
8646
+ };
8647
+ Insert: {
8648
+ account_number?: string | null;
8649
+ city?: string | null;
8650
+ coc_number?: string | null;
8651
+ company_name?: string | null;
8652
+ connection_id?: string | null;
8653
+ country?: string | null;
8654
+ currency?: string | null;
8655
+ email?: string | null;
8656
+ external_id?: string | null;
8657
+ is_sales?: boolean | null;
8658
+ is_supplier?: boolean | null;
8659
+ language?: string | null;
8660
+ modified_at?: string | null;
8661
+ phone?: string | null;
8662
+ postal_code?: string | null;
8663
+ raw?: Json | null;
8664
+ source?: never;
8665
+ street?: string | null;
8666
+ synced_at?: string | null;
8667
+ vat_number?: string | null;
8668
+ website?: string | null;
8669
+ };
8670
+ Update: {
8671
+ account_number?: string | null;
8672
+ city?: string | null;
8673
+ coc_number?: string | null;
8674
+ company_name?: string | null;
8675
+ connection_id?: string | null;
8676
+ country?: string | null;
8677
+ currency?: string | null;
8678
+ email?: string | null;
8679
+ external_id?: string | null;
8680
+ is_sales?: boolean | null;
8681
+ is_supplier?: boolean | null;
8682
+ language?: string | null;
8683
+ modified_at?: string | null;
8684
+ phone?: string | null;
8685
+ postal_code?: string | null;
8686
+ raw?: Json | null;
8687
+ source?: never;
8688
+ street?: string | null;
8689
+ synced_at?: string | null;
8690
+ vat_number?: string | null;
8691
+ website?: string | null;
8692
+ };
8693
+ Relationships: [
8694
+ {
8695
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
8696
+ columns: ["connection_id"];
8697
+ isOneToOne: false;
8698
+ referencedRelation: "exact_connections";
8699
+ referencedColumns: ["id"];
8700
+ }
8701
+ ];
8702
+ };
6417
8703
  v_external_customers_floriday: {
6418
8704
  Row: {
6419
8705
  city: string | null;
@@ -6470,13 +8756,116 @@ export type Database = {
6470
8756
  provider: string | null;
6471
8757
  raw: Json | null;
6472
8758
  status: string | null;
6473
- street: string | null;
6474
- vat_number: string | null;
6475
- website: string | null;
8759
+ street: string | null;
8760
+ vat_number: string | null;
8761
+ website: string | null;
8762
+ };
8763
+ Relationships: [
8764
+ {
8765
+ foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
8766
+ columns: ["connection_id"];
8767
+ isOneToOne: false;
8768
+ referencedRelation: "twinfield_connections";
8769
+ referencedColumns: ["id"];
8770
+ }
8771
+ ];
8772
+ };
8773
+ v_external_invoices_exact: {
8774
+ Row: {
8775
+ connection_id: string | null;
8776
+ currency: string | null;
8777
+ customer_external_id: string | null;
8778
+ customer_name: string | null;
8779
+ customer_vat: string | null;
8780
+ due_at: string | null;
8781
+ external_id: string | null;
8782
+ invoice_number: string | null;
8783
+ issued_at: string | null;
8784
+ open_amount: number | null;
8785
+ paid_at: string | null;
8786
+ raw: Json | null;
8787
+ source: string | null;
8788
+ status: string | null;
8789
+ synced_at: string | null;
8790
+ total_excl: number | null;
8791
+ total_incl: number | null;
8792
+ total_vat: number | null;
8793
+ };
8794
+ Insert: {
8795
+ connection_id?: string | null;
8796
+ currency?: never;
8797
+ customer_external_id?: string | null;
8798
+ customer_name?: string | null;
8799
+ customer_vat?: never;
8800
+ due_at?: string | null;
8801
+ external_id?: string | null;
8802
+ invoice_number?: string | null;
8803
+ issued_at?: string | null;
8804
+ open_amount?: number | null;
8805
+ paid_at?: string | null;
8806
+ raw?: Json | null;
8807
+ source?: never;
8808
+ status?: string | null;
8809
+ synced_at?: string | null;
8810
+ total_excl?: number | null;
8811
+ total_incl?: number | null;
8812
+ total_vat?: number | null;
8813
+ };
8814
+ Update: {
8815
+ connection_id?: string | null;
8816
+ currency?: never;
8817
+ customer_external_id?: string | null;
8818
+ customer_name?: string | null;
8819
+ customer_vat?: never;
8820
+ due_at?: string | null;
8821
+ external_id?: string | null;
8822
+ invoice_number?: string | null;
8823
+ issued_at?: string | null;
8824
+ open_amount?: number | null;
8825
+ paid_at?: string | null;
8826
+ raw?: Json | null;
8827
+ source?: never;
8828
+ status?: string | null;
8829
+ synced_at?: string | null;
8830
+ total_excl?: number | null;
8831
+ total_incl?: number | null;
8832
+ total_vat?: number | null;
8833
+ };
8834
+ Relationships: [
8835
+ {
8836
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
8837
+ columns: ["connection_id"];
8838
+ isOneToOne: false;
8839
+ referencedRelation: "exact_connections";
8840
+ referencedColumns: ["id"];
8841
+ }
8842
+ ];
8843
+ };
8844
+ v_external_invoices_twinfield: {
8845
+ Row: {
8846
+ connection_id: string | null;
8847
+ currency: string | null;
8848
+ customer_external_id: string | null;
8849
+ customer_name: string | null;
8850
+ customer_vat: string | null;
8851
+ due_at: string | null;
8852
+ external_id: string | null;
8853
+ invoice_number: string | null;
8854
+ issued_at: string | null;
8855
+ open_amount: number | null;
8856
+ owner_user_id: string | null;
8857
+ paid_at: string | null;
8858
+ raw: Json | null;
8859
+ source: string | null;
8860
+ status: string | null;
8861
+ synced_at: string | null;
8862
+ total_excl: number | null;
8863
+ total_incl: number | null;
8864
+ total_vat: number | null;
6476
8865
  };
6477
8866
  Relationships: [
6478
8867
  {
6479
- foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
8868
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
6480
8869
  columns: ["connection_id"];
6481
8870
  isOneToOne: false;
6482
8871
  referencedRelation: "twinfield_connections";
@@ -6486,6 +8875,30 @@ export type Database = {
6486
8875
  };
6487
8876
  };
6488
8877
  Functions: {
8878
+ _floriday_schedule_job: {
8879
+ Args: {
8880
+ p_apikey: string;
8881
+ p_jobname: string;
8882
+ p_schedule: string;
8883
+ p_timeout_ms: number;
8884
+ p_url: string;
8885
+ };
8886
+ Returns: number;
8887
+ };
8888
+ call_exact_route: {
8889
+ Args: {
8890
+ path: string;
8891
+ };
8892
+ Returns: number;
8893
+ };
8894
+ cleanup_old_bookings: {
8895
+ Args: never;
8896
+ Returns: number;
8897
+ };
8898
+ current_monteur_id: {
8899
+ Args: never;
8900
+ Returns: string;
8901
+ };
6489
8902
  dashboard_list_public_schema: {
6490
8903
  Args: never;
6491
8904
  Returns: {
@@ -6590,6 +9003,32 @@ export type Database = {
6590
9003
  office_code: string;
6591
9004
  }[];
6592
9005
  };
9006
+ get_floriday_agreements_active: {
9007
+ Args: {
9008
+ p_on_date?: string;
9009
+ };
9010
+ Returns: {
9011
+ buyer_organization_id: string;
9012
+ data: Json;
9013
+ floriday_id: string;
9014
+ status: string;
9015
+ valid_from: string;
9016
+ valid_until: string;
9017
+ }[];
9018
+ };
9019
+ get_floriday_clock_supplies_window: {
9020
+ Args: {
9021
+ p_from: string;
9022
+ p_to: string;
9023
+ };
9024
+ Returns: {
9025
+ auction_date: string;
9026
+ data: Json;
9027
+ floriday_id: string;
9028
+ status: string;
9029
+ trade_item_id: string;
9030
+ }[];
9031
+ };
6593
9032
  get_floriday_cron_jobs: {
6594
9033
  Args: never;
6595
9034
  Returns: {
@@ -6599,6 +9038,56 @@ export type Database = {
6599
9038
  url: string;
6600
9039
  }[];
6601
9040
  };
9041
+ get_floriday_delivery_locations: {
9042
+ Args: {
9043
+ p_organization_id: string;
9044
+ };
9045
+ Returns: {
9046
+ data: Json;
9047
+ floriday_id: string;
9048
+ gln_code: string;
9049
+ name: string;
9050
+ }[];
9051
+ };
9052
+ get_floriday_fulfillment_orders_window: {
9053
+ Args: {
9054
+ p_from: string;
9055
+ p_to: string;
9056
+ };
9057
+ Returns: {
9058
+ auction_date: string;
9059
+ data: Json;
9060
+ delivery_order_id: string;
9061
+ destination_warehouse_id: string;
9062
+ floriday_id: string;
9063
+ status: string;
9064
+ }[];
9065
+ };
9066
+ get_floriday_sales_orders_window: {
9067
+ Args: {
9068
+ p_from: string;
9069
+ p_to: string;
9070
+ };
9071
+ Returns: {
9072
+ buyer_organization_id: string;
9073
+ data: Json;
9074
+ floriday_id: string;
9075
+ status: string;
9076
+ updated_at: string;
9077
+ }[];
9078
+ };
9079
+ get_floriday_sync_health: {
9080
+ Args: never;
9081
+ Returns: {
9082
+ entity_type: string;
9083
+ last_error: string;
9084
+ last_items_processed: number;
9085
+ last_sequence_number: number;
9086
+ last_success_at: string;
9087
+ last_synced_at: string;
9088
+ minutes_since_success: number;
9089
+ }[];
9090
+ };
6602
9091
  get_offer_by_link_code: {
6603
9092
  Args: {
6604
9093
  p_code: string;
@@ -6664,6 +9153,74 @@ export type Database = {
6664
9153
  };
6665
9154
  Returns: string;
6666
9155
  };
9156
+ pickstation_get_orders_raw: {
9157
+ Args: never;
9158
+ Returns: Json;
9159
+ };
9160
+ pickstation_get_settings: {
9161
+ Args: never;
9162
+ Returns: Json;
9163
+ };
9164
+ pickstation_log_print: {
9165
+ Args: {
9166
+ p_customer_name: string;
9167
+ p_documents: string[];
9168
+ p_ip_address: string;
9169
+ p_order_id: string;
9170
+ p_order_number: string;
9171
+ };
9172
+ Returns: undefined;
9173
+ };
9174
+ refresh_floricode_derived_code_lists: {
9175
+ Args: never;
9176
+ Returns: {
9177
+ out_environment: string;
9178
+ out_list_name: string;
9179
+ out_row_count: number;
9180
+ }[];
9181
+ };
9182
+ reset_floriday_sync_cursor: {
9183
+ Args: {
9184
+ p_connection_id: string;
9185
+ p_entity_type: string;
9186
+ };
9187
+ Returns: undefined;
9188
+ };
9189
+ schedule_floriday_additional_services_sync: {
9190
+ Args: {
9191
+ p_apikey: string;
9192
+ p_url: string;
9193
+ };
9194
+ Returns: number;
9195
+ };
9196
+ schedule_floriday_agreement_calloffs_sync: {
9197
+ Args: {
9198
+ p_apikey: string;
9199
+ p_url: string;
9200
+ };
9201
+ Returns: number;
9202
+ };
9203
+ schedule_floriday_agreements_sync: {
9204
+ Args: {
9205
+ p_apikey: string;
9206
+ p_url: string;
9207
+ };
9208
+ Returns: number;
9209
+ };
9210
+ schedule_floriday_base_items_sync: {
9211
+ Args: {
9212
+ p_apikey: string;
9213
+ p_url: string;
9214
+ };
9215
+ Returns: number;
9216
+ };
9217
+ schedule_floriday_blanket_orders_sync: {
9218
+ Args: {
9219
+ p_apikey: string;
9220
+ p_url: string;
9221
+ };
9222
+ Returns: number;
9223
+ };
6667
9224
  schedule_floriday_carriers_sync: {
6668
9225
  Args: {
6669
9226
  p_apikey: string;
@@ -6671,6 +9228,34 @@ export type Database = {
6671
9228
  };
6672
9229
  Returns: number;
6673
9230
  };
9231
+ schedule_floriday_clock_presales_sync: {
9232
+ Args: {
9233
+ p_apikey: string;
9234
+ p_url: string;
9235
+ };
9236
+ Returns: number;
9237
+ };
9238
+ schedule_floriday_clock_supplies_sync: {
9239
+ Args: {
9240
+ p_apikey: string;
9241
+ p_url: string;
9242
+ };
9243
+ Returns: number;
9244
+ };
9245
+ schedule_floriday_collections_sync: {
9246
+ Args: {
9247
+ p_apikey: string;
9248
+ p_url: string;
9249
+ };
9250
+ Returns: number;
9251
+ };
9252
+ schedule_floriday_commercial_service_types_sync: {
9253
+ Args: {
9254
+ p_apikey: string;
9255
+ p_url: string;
9256
+ };
9257
+ Returns: number;
9258
+ };
6674
9259
  schedule_floriday_connections_sync: {
6675
9260
  Args: {
6676
9261
  p_apikey: string;
@@ -6678,6 +9263,20 @@ export type Database = {
6678
9263
  };
6679
9264
  Returns: number;
6680
9265
  };
9266
+ schedule_floriday_contract_trade_item_groups_sync: {
9267
+ Args: {
9268
+ p_apikey: string;
9269
+ p_url: string;
9270
+ };
9271
+ Returns: number;
9272
+ };
9273
+ schedule_floriday_contracts_sync: {
9274
+ Args: {
9275
+ p_apikey: string;
9276
+ p_url: string;
9277
+ };
9278
+ Returns: number;
9279
+ };
6681
9280
  schedule_floriday_customer_organizations_sync: {
6682
9281
  Args: {
6683
9282
  p_apikey: string;
@@ -6685,6 +9284,48 @@ export type Database = {
6685
9284
  };
6686
9285
  Returns: number;
6687
9286
  };
9287
+ schedule_floriday_customer_stickers_sync: {
9288
+ Args: {
9289
+ p_apikey: string;
9290
+ p_url: string;
9291
+ };
9292
+ Returns: number;
9293
+ };
9294
+ schedule_floriday_delivery_condition_sets_sync: {
9295
+ Args: {
9296
+ p_apikey: string;
9297
+ p_url: string;
9298
+ };
9299
+ Returns: number;
9300
+ };
9301
+ schedule_floriday_delivery_locations_sync: {
9302
+ Args: {
9303
+ p_apikey: string;
9304
+ p_url: string;
9305
+ };
9306
+ Returns: number;
9307
+ };
9308
+ schedule_floriday_delivery_orders_sync: {
9309
+ Args: {
9310
+ p_apikey: string;
9311
+ p_url: string;
9312
+ };
9313
+ Returns: number;
9314
+ };
9315
+ schedule_floriday_fulfillment_orders_sync: {
9316
+ Args: {
9317
+ p_apikey: string;
9318
+ p_url: string;
9319
+ };
9320
+ Returns: number;
9321
+ };
9322
+ schedule_floriday_invoices_sync: {
9323
+ Args: {
9324
+ p_apikey: string;
9325
+ p_url: string;
9326
+ };
9327
+ Returns: number;
9328
+ };
6688
9329
  schedule_floriday_network_sync: {
6689
9330
  Args: {
6690
9331
  p_apikey: string;
@@ -6692,6 +9333,34 @@ export type Database = {
6692
9333
  };
6693
9334
  Returns: number;
6694
9335
  };
9336
+ schedule_floriday_packings_sync: {
9337
+ Args: {
9338
+ p_apikey: string;
9339
+ p_url: string;
9340
+ };
9341
+ Returns: number;
9342
+ };
9343
+ schedule_floriday_price_groups_sync: {
9344
+ Args: {
9345
+ p_apikey: string;
9346
+ p_url: string;
9347
+ };
9348
+ Returns: number;
9349
+ };
9350
+ schedule_floriday_reference_data_refresh: {
9351
+ Args: {
9352
+ p_apikey: string;
9353
+ p_url: string;
9354
+ };
9355
+ Returns: number;
9356
+ };
9357
+ schedule_floriday_sales_strategies_sync: {
9358
+ Args: {
9359
+ p_apikey: string;
9360
+ p_url: string;
9361
+ };
9362
+ Returns: number;
9363
+ };
6695
9364
  schedule_floriday_salesorders_sync: {
6696
9365
  Args: {
6697
9366
  p_apikey: string;
@@ -6706,6 +9375,13 @@ export type Database = {
6706
9375
  };
6707
9376
  Returns: number;
6708
9377
  };
9378
+ schedule_floriday_trade_item_classifications_sync: {
9379
+ Args: {
9380
+ p_apikey: string;
9381
+ p_url: string;
9382
+ };
9383
+ Returns: number;
9384
+ };
6709
9385
  schedule_floriday_trade_items_sync: {
6710
9386
  Args: {
6711
9387
  p_apikey: string;
@@ -6713,6 +9389,20 @@ export type Database = {
6713
9389
  };
6714
9390
  Returns: number;
6715
9391
  };
9392
+ schedule_floriday_trips_sync: {
9393
+ Args: {
9394
+ p_apikey: string;
9395
+ p_url: string;
9396
+ };
9397
+ Returns: number;
9398
+ };
9399
+ schedule_floriday_warehouses_sync: {
9400
+ Args: {
9401
+ p_apikey: string;
9402
+ p_url: string;
9403
+ };
9404
+ Returns: number;
9405
+ };
6716
9406
  schedule_twinfield_customers_sync: {
6717
9407
  Args: {
6718
9408
  p_apikey: string;
@@ -6741,6 +9431,14 @@ export type Database = {
6741
9431
  };
6742
9432
  Returns: number;
6743
9433
  };
9434
+ schedule_twinfield_push_queue_flush: {
9435
+ Args: {
9436
+ p_apikey: string;
9437
+ p_cron_secret?: string;
9438
+ p_url: string;
9439
+ };
9440
+ Returns: number;
9441
+ };
6744
9442
  schedule_twinfield_token_refresh: {
6745
9443
  Args: {
6746
9444
  p_apikey: string;
@@ -6779,8 +9477,9 @@ export type Database = {
6779
9477
  };
6780
9478
  };
6781
9479
  Enums: {
6782
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9480
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
6783
9481
  exact_env: "staging" | "live";
9482
+ exact_push_status: "pending" | "sent" | "error";
6784
9483
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6785
9484
  };
6786
9485
  CompositeTypes: {
@@ -6840,8 +9539,9 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
6840
9539
  export declare const Constants: {
6841
9540
  readonly public: {
6842
9541
  readonly Enums: {
6843
- readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer", "receptie"];
9542
+ readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer", "receptie", "monteur"];
6844
9543
  readonly exact_env: readonly ["staging", "live"];
9544
+ readonly exact_push_status: readonly ["pending", "sent", "error"];
6845
9545
  readonly quote_status: readonly ["concept", "verzonden", "bekeken", "in_behandeling", "geaccepteerd", "afgewezen", "verlopen", "gearchiveerd"];
6846
9546
  };
6847
9547
  };