@flowselections/floriday-klanten-module 1.0.8 → 1.0.9

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 (37) hide show
  1. package/dist-lib/components/klanten/CustomerAnalyticsTab.d.ts +4 -0
  2. package/dist-lib/components/klanten/CustomerAnalyticsTab.d.ts.map +1 -0
  3. package/dist-lib/components/klanten/CustomerAnalyticsTab.js +90 -0
  4. package/dist-lib/components/klanten/DeliveryLocationsTab.d.ts +4 -0
  5. package/dist-lib/components/klanten/DeliveryLocationsTab.d.ts.map +1 -0
  6. package/dist-lib/components/klanten/DeliveryLocationsTab.js +94 -0
  7. package/dist-lib/components/klanten/KlantDetailLayout.d.ts +75 -0
  8. package/dist-lib/components/klanten/KlantDetailLayout.d.ts.map +1 -0
  9. package/dist-lib/components/klanten/KlantDetailLayout.js +172 -0
  10. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  11. package/dist-lib/components/klanten/KlantenOverzicht.js +12 -32
  12. package/dist-lib/index.js +1 -1
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2738 -145
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.d.ts +2738 -145
  16. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +2738 -145
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +2825 -149
  20. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.js +2 -0
  22. package/dist-lib/lib/accounting.functions.d.ts +17440 -9661
  23. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/customer-analytics.functions.d.ts +9287 -0
  25. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -0
  26. package/dist-lib/lib/customer-analytics.functions.js +165 -0
  27. package/dist-lib/lib/customers.functions.d.ts +42298 -24141
  28. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/delivery-locations.functions.d.ts +37018 -0
  30. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -0
  31. package/dist-lib/lib/delivery-locations.functions.js +150 -0
  32. package/dist-lib/lib/eu-regions.d.ts +14 -0
  33. package/dist-lib/lib/eu-regions.d.ts.map +1 -0
  34. package/dist-lib/lib/eu-regions.js +68 -0
  35. package/dist-lib/lib/external-customers.functions.d.ts +24860 -14488
  36. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  37. package/package.json +5 -4
@@ -1,6 +1,48 @@
1
1
  import type { Database } from './types';
2
2
  export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClient<Database, "public", "public", {
3
3
  Tables: {
4
+ afhandeling_settings: {
5
+ Row: {
6
+ created_at: string;
7
+ id: string;
8
+ max_workdays_earlier_pick: number;
9
+ pick_days_before_transport: number;
10
+ pick_distribution_enabled: boolean;
11
+ signup_mail_enabled: boolean;
12
+ signup_mail_lead_minutes: number;
13
+ signup_mail_purpose: string;
14
+ transport_register_days_before: number;
15
+ updated_at: string;
16
+ user_id: string;
17
+ };
18
+ Insert: {
19
+ created_at?: string;
20
+ id?: string;
21
+ max_workdays_earlier_pick?: number;
22
+ pick_days_before_transport?: number;
23
+ pick_distribution_enabled?: boolean;
24
+ signup_mail_enabled?: boolean;
25
+ signup_mail_lead_minutes?: number;
26
+ signup_mail_purpose?: string;
27
+ transport_register_days_before?: number;
28
+ updated_at?: string;
29
+ user_id: string;
30
+ };
31
+ Update: {
32
+ created_at?: string;
33
+ id?: string;
34
+ max_workdays_earlier_pick?: number;
35
+ pick_days_before_transport?: number;
36
+ pick_distribution_enabled?: boolean;
37
+ signup_mail_enabled?: boolean;
38
+ signup_mail_lead_minutes?: number;
39
+ signup_mail_purpose?: string;
40
+ transport_register_days_before?: number;
41
+ updated_at?: string;
42
+ user_id?: string;
43
+ };
44
+ Relationships: [];
45
+ };
4
46
  agenda_connections: {
5
47
  Row: {
6
48
  account_email: string | null;
@@ -403,6 +445,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
403
445
  referencedColumns: ["id"];
404
446
  }];
405
447
  };
448
+ carrier_signup_dispatches: {
449
+ Row: {
450
+ carrier_id: string;
451
+ cart_count: number;
452
+ created_at: string;
453
+ id: string;
454
+ order_count: number;
455
+ outbox_id: string | null;
456
+ pickup_date: string;
457
+ pickup_moment_key: string;
458
+ sent_at: string;
459
+ signup_deadline: string;
460
+ };
461
+ Insert: {
462
+ carrier_id: string;
463
+ cart_count?: number;
464
+ created_at?: string;
465
+ id?: string;
466
+ order_count?: number;
467
+ outbox_id?: string | null;
468
+ pickup_date: string;
469
+ pickup_moment_key: string;
470
+ sent_at?: string;
471
+ signup_deadline: string;
472
+ };
473
+ Update: {
474
+ carrier_id?: string;
475
+ cart_count?: number;
476
+ created_at?: string;
477
+ id?: string;
478
+ order_count?: number;
479
+ outbox_id?: string | null;
480
+ pickup_date?: string;
481
+ pickup_moment_key?: string;
482
+ sent_at?: string;
483
+ signup_deadline?: string;
484
+ };
485
+ Relationships: [{
486
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
487
+ columns: ["carrier_id"];
488
+ isOneToOne: false;
489
+ referencedRelation: "carriers";
490
+ referencedColumns: ["id"];
491
+ }];
492
+ };
406
493
  carriers: {
407
494
  Row: {
408
495
  address: string | null;
@@ -411,11 +498,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
411
498
  delivery_days: number | null;
412
499
  email: string | null;
413
500
  id: string;
501
+ is_default: boolean;
414
502
  name: string;
415
503
  notes: string | null;
416
504
  phone: string | null;
505
+ pickup_moments: import("./types").Json;
506
+ service_cities: string[];
507
+ service_countries: string[];
508
+ service_provinces: string[];
509
+ signup_days_before_delivery: number;
417
510
  signup_time_1: string | null;
418
511
  signup_time_2: string | null;
512
+ sort_order: number;
419
513
  updated_at: string;
420
514
  user_id: string;
421
515
  };
@@ -426,11 +520,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
426
520
  delivery_days?: number | null;
427
521
  email?: string | null;
428
522
  id?: string;
523
+ is_default?: boolean;
429
524
  name: string;
430
525
  notes?: string | null;
431
526
  phone?: string | null;
527
+ pickup_moments?: import("./types").Json;
528
+ service_cities?: string[];
529
+ service_countries?: string[];
530
+ service_provinces?: string[];
531
+ signup_days_before_delivery?: number;
432
532
  signup_time_1?: string | null;
433
533
  signup_time_2?: string | null;
534
+ sort_order?: number;
434
535
  updated_at?: string;
435
536
  user_id: string;
436
537
  };
@@ -441,16 +542,62 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
441
542
  delivery_days?: number | null;
442
543
  email?: string | null;
443
544
  id?: string;
545
+ is_default?: boolean;
444
546
  name?: string;
445
547
  notes?: string | null;
446
548
  phone?: string | null;
549
+ pickup_moments?: import("./types").Json;
550
+ service_cities?: string[];
551
+ service_countries?: string[];
552
+ service_provinces?: string[];
553
+ signup_days_before_delivery?: number;
447
554
  signup_time_1?: string | null;
448
555
  signup_time_2?: string | null;
556
+ sort_order?: number;
449
557
  updated_at?: string;
450
558
  user_id?: string;
451
559
  };
452
560
  Relationships: [];
453
561
  };
562
+ cart_pick_overrides: {
563
+ Row: {
564
+ cart_index: number;
565
+ created_at: string;
566
+ id: string;
567
+ moved_from_date: string | null;
568
+ notes: string | null;
569
+ order_id: string;
570
+ order_source: string;
571
+ pick_date: string;
572
+ status: string;
573
+ updated_at: string;
574
+ };
575
+ Insert: {
576
+ cart_index: number;
577
+ created_at?: string;
578
+ id?: string;
579
+ moved_from_date?: string | null;
580
+ notes?: string | null;
581
+ order_id: string;
582
+ order_source: string;
583
+ pick_date: string;
584
+ status?: string;
585
+ updated_at?: string;
586
+ };
587
+ Update: {
588
+ cart_index?: number;
589
+ created_at?: string;
590
+ id?: string;
591
+ moved_from_date?: string | null;
592
+ notes?: string | null;
593
+ order_id?: string;
594
+ order_source?: string;
595
+ pick_date?: string;
596
+ status?: string;
597
+ updated_at?: string;
598
+ };
599
+ Relationships: [];
600
+ };
454
601
  collections: {
455
602
  Row: {
456
603
  created_at: string;
@@ -562,50 +709,74 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
562
709
  customer_delivery_locations: {
563
710
  Row: {
564
711
  address_line: string | null;
712
+ carrier_assignment_source: string;
713
+ carrier_id: string | null;
565
714
  city: string | null;
566
715
  country: string | null;
567
716
  created_at: string;
568
717
  customer_id: string;
569
718
  floriday_location_id: string | null;
570
719
  gln: string | null;
720
+ house_number: string | null;
571
721
  id: string;
572
722
  is_primary: boolean;
573
723
  name: string | null;
574
724
  postal_code: string | null;
725
+ province: string | null;
575
726
  raw: import("./types").Json | null;
727
+ self_pickup: boolean;
728
+ street: string | null;
576
729
  updated_at: string;
577
730
  };
578
731
  Insert: {
579
732
  address_line?: string | null;
733
+ carrier_assignment_source?: string;
734
+ carrier_id?: string | null;
580
735
  city?: string | null;
581
736
  country?: string | null;
582
737
  created_at?: string;
583
738
  customer_id: string;
584
739
  floriday_location_id?: string | null;
585
740
  gln?: string | null;
741
+ house_number?: string | null;
586
742
  id?: string;
587
743
  is_primary?: boolean;
588
744
  name?: string | null;
589
745
  postal_code?: string | null;
746
+ province?: string | null;
590
747
  raw?: import("./types").Json | null;
748
+ self_pickup?: boolean;
749
+ street?: string | null;
591
750
  updated_at?: string;
592
751
  };
593
752
  Update: {
594
753
  address_line?: string | null;
754
+ carrier_assignment_source?: string;
755
+ carrier_id?: string | null;
595
756
  city?: string | null;
596
757
  country?: string | null;
597
758
  created_at?: string;
598
759
  customer_id?: string;
599
760
  floriday_location_id?: string | null;
600
761
  gln?: string | null;
762
+ house_number?: string | null;
601
763
  id?: string;
602
764
  is_primary?: boolean;
603
765
  name?: string | null;
604
766
  postal_code?: string | null;
767
+ province?: string | null;
605
768
  raw?: import("./types").Json | null;
769
+ self_pickup?: boolean;
770
+ street?: string | null;
606
771
  updated_at?: string;
607
772
  };
608
773
  Relationships: [{
774
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
775
+ columns: ["carrier_id"];
776
+ isOneToOne: false;
777
+ referencedRelation: "carriers";
778
+ referencedColumns: ["id"];
779
+ }, {
609
780
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
610
781
  columns: ["customer_id"];
611
782
  isOneToOne: false;
@@ -1410,18 +1581,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1410
1581
  };
1411
1582
  email_auth_purpose_settings: {
1412
1583
  Row: {
1584
+ default_cc: string[];
1413
1585
  purpose: string;
1414
1586
  reply_to: string | null;
1415
1587
  updated_at: string;
1416
1588
  updated_by: string | null;
1417
1589
  };
1418
1590
  Insert: {
1591
+ default_cc?: string[];
1419
1592
  purpose: string;
1420
1593
  reply_to?: string | null;
1421
1594
  updated_at?: string;
1422
1595
  updated_by?: string | null;
1423
1596
  };
1424
1597
  Update: {
1598
+ default_cc?: string[];
1425
1599
  purpose?: string;
1426
1600
  reply_to?: string | null;
1427
1601
  updated_at?: string;
@@ -2191,6 +2365,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2191
2365
  referencedColumns: ["id"];
2192
2366
  }];
2193
2367
  };
2368
+ exact_push_queue: {
2369
+ Row: {
2370
+ attempts: number;
2371
+ connection_id: string;
2372
+ created_at: string;
2373
+ external_id: string | null;
2374
+ id: string;
2375
+ idempotency_hash: string;
2376
+ last_error: string | null;
2377
+ payload: import("./types").Json;
2378
+ status: Database["public"]["Enums"]["exact_push_status"];
2379
+ updated_at: string;
2380
+ };
2381
+ Insert: {
2382
+ attempts?: number;
2383
+ connection_id: string;
2384
+ created_at?: string;
2385
+ external_id?: string | null;
2386
+ id?: string;
2387
+ idempotency_hash: string;
2388
+ last_error?: string | null;
2389
+ payload: import("./types").Json;
2390
+ status?: Database["public"]["Enums"]["exact_push_status"];
2391
+ updated_at?: string;
2392
+ };
2393
+ Update: {
2394
+ attempts?: number;
2395
+ connection_id?: string;
2396
+ created_at?: string;
2397
+ external_id?: string | null;
2398
+ id?: string;
2399
+ idempotency_hash?: string;
2400
+ last_error?: string | null;
2401
+ payload?: import("./types").Json;
2402
+ status?: Database["public"]["Enums"]["exact_push_status"];
2403
+ updated_at?: string;
2404
+ };
2405
+ Relationships: [{
2406
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2407
+ columns: ["connection_id"];
2408
+ isOneToOne: false;
2409
+ referencedRelation: "exact_connections";
2410
+ referencedColumns: ["id"];
2411
+ }];
2412
+ };
2194
2413
  exact_refresh_locks: {
2195
2414
  Row: {
2196
2415
  environment: Database["public"]["Enums"]["exact_env"];
@@ -2253,6 +2472,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2253
2472
  connection_id: string;
2254
2473
  last_error: string | null;
2255
2474
  last_modified_cursor: string | null;
2475
+ last_modified_cursor_customers: string | null;
2476
+ last_modified_cursor_invoices: string | null;
2256
2477
  last_synced_at: string | null;
2257
2478
  status: string;
2258
2479
  updated_at: string;
@@ -2261,6 +2482,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2261
2482
  connection_id: string;
2262
2483
  last_error?: string | null;
2263
2484
  last_modified_cursor?: string | null;
2485
+ last_modified_cursor_customers?: string | null;
2486
+ last_modified_cursor_invoices?: string | null;
2264
2487
  last_synced_at?: string | null;
2265
2488
  status?: string;
2266
2489
  updated_at?: string;
@@ -2269,6 +2492,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2269
2492
  connection_id?: string;
2270
2493
  last_error?: string | null;
2271
2494
  last_modified_cursor?: string | null;
2495
+ last_modified_cursor_customers?: string | null;
2496
+ last_modified_cursor_invoices?: string | null;
2272
2497
  last_synced_at?: string | null;
2273
2498
  status?: string;
2274
2499
  updated_at?: string;
@@ -2311,6 +2536,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2311
2536
  };
2312
2537
  Relationships: [];
2313
2538
  };
2539
+ external_invoice_providers: {
2540
+ Row: {
2541
+ color: string | null;
2542
+ created_at: string;
2543
+ hmac_secret_name: string | null;
2544
+ icon: string | null;
2545
+ is_enabled: boolean;
2546
+ label: string;
2547
+ last_synced_at: string | null;
2548
+ provider: string;
2549
+ push_endpoint: string | null;
2550
+ sort_order: number;
2551
+ status_endpoint: string | null;
2552
+ sync_endpoint: string | null;
2553
+ updated_at: string;
2554
+ };
2555
+ Insert: {
2556
+ color?: string | null;
2557
+ created_at?: string;
2558
+ hmac_secret_name?: string | null;
2559
+ icon?: string | null;
2560
+ is_enabled?: boolean;
2561
+ label: string;
2562
+ last_synced_at?: string | null;
2563
+ provider: string;
2564
+ push_endpoint?: string | null;
2565
+ sort_order?: number;
2566
+ status_endpoint?: string | null;
2567
+ sync_endpoint?: string | null;
2568
+ updated_at?: string;
2569
+ };
2570
+ Update: {
2571
+ color?: string | null;
2572
+ created_at?: string;
2573
+ hmac_secret_name?: string | null;
2574
+ icon?: string | null;
2575
+ is_enabled?: boolean;
2576
+ label?: string;
2577
+ last_synced_at?: string | null;
2578
+ provider?: string;
2579
+ push_endpoint?: string | null;
2580
+ sort_order?: number;
2581
+ status_endpoint?: string | null;
2582
+ sync_endpoint?: string | null;
2583
+ updated_at?: string;
2584
+ };
2585
+ Relationships: [];
2586
+ };
2314
2587
  extra_categories: {
2315
2588
  Row: {
2316
2589
  created_at: string;
@@ -2335,12 +2608,40 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2335
2608
  };
2336
2609
  Relationships: [];
2337
2610
  };
2611
+ extra_pricing_types: {
2612
+ Row: {
2613
+ code: string;
2614
+ created_at: string;
2615
+ id: string;
2616
+ label: string;
2617
+ sort_order: number;
2618
+ updated_at: string;
2619
+ };
2620
+ Insert: {
2621
+ code: string;
2622
+ created_at?: string;
2623
+ id?: string;
2624
+ label: string;
2625
+ sort_order?: number;
2626
+ updated_at?: string;
2627
+ };
2628
+ Update: {
2629
+ code?: string;
2630
+ created_at?: string;
2631
+ id?: string;
2632
+ label?: string;
2633
+ sort_order?: number;
2634
+ updated_at?: string;
2635
+ };
2636
+ Relationships: [];
2637
+ };
2338
2638
  extras: {
2339
2639
  Row: {
2340
2640
  category: string;
2341
2641
  created_at: string;
2342
2642
  exact_article_id: string | null;
2343
2643
  id: string;
2644
+ image_url: string | null;
2344
2645
  is_active: boolean;
2345
2646
  name: string;
2346
2647
  price: number;
@@ -2351,6 +2652,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2351
2652
  created_at?: string;
2352
2653
  exact_article_id?: string | null;
2353
2654
  id?: string;
2655
+ image_url?: string | null;
2354
2656
  is_active?: boolean;
2355
2657
  name: string;
2356
2658
  price?: number;
@@ -2361,6 +2663,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2361
2663
  created_at?: string;
2362
2664
  exact_article_id?: string | null;
2363
2665
  id?: string;
2666
+ image_url?: string | null;
2364
2667
  is_active?: boolean;
2365
2668
  name?: string;
2366
2669
  price?: number;
@@ -2458,230 +2761,1280 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2458
2761
  };
2459
2762
  Relationships: [];
2460
2763
  };
2461
- floriday_carriers_cache: {
2764
+ floriday_additional_services_cache: {
2462
2765
  Row: {
2463
- connection_id: string | null;
2464
- created_at: string;
2766
+ connection_id: string;
2465
2767
  data: import("./types").Json;
2466
2768
  fetched_at: string;
2467
- gln_code: string | null;
2468
- id: string;
2469
- name: string | null;
2470
- organization_id: string;
2769
+ floriday_id: string;
2770
+ is_deleted: boolean;
2771
+ sequence_number: number;
2471
2772
  updated_at: string;
2472
2773
  };
2473
2774
  Insert: {
2474
- connection_id?: string | null;
2475
- created_at?: string;
2775
+ connection_id: string;
2476
2776
  data: import("./types").Json;
2477
2777
  fetched_at?: string;
2478
- gln_code?: string | null;
2479
- id?: string;
2480
- name?: string | null;
2481
- organization_id: string;
2778
+ floriday_id: string;
2779
+ is_deleted?: boolean;
2780
+ sequence_number?: number;
2482
2781
  updated_at?: string;
2483
2782
  };
2484
2783
  Update: {
2485
- connection_id?: string | null;
2486
- created_at?: string;
2784
+ connection_id?: string;
2487
2785
  data?: import("./types").Json;
2488
2786
  fetched_at?: string;
2489
- gln_code?: string | null;
2490
- id?: string;
2491
- name?: string | null;
2492
- organization_id?: string;
2787
+ floriday_id?: string;
2788
+ is_deleted?: boolean;
2789
+ sequence_number?: number;
2493
2790
  updated_at?: string;
2494
2791
  };
2495
2792
  Relationships: [{
2496
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2793
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2497
2794
  columns: ["connection_id"];
2498
2795
  isOneToOne: false;
2499
2796
  referencedRelation: "floriday_connections";
2500
2797
  referencedColumns: ["id"];
2501
2798
  }];
2502
2799
  };
2503
- floriday_connections: {
2800
+ floriday_agreement_calloffs_cache: {
2504
2801
  Row: {
2505
- access_token: string | null;
2506
- api_key: string;
2507
- client_id: string;
2508
- client_secret: string;
2509
- created_at: string;
2510
- customers_endpoint: string | null;
2511
- environment: string;
2512
- gln_code: string | null;
2802
+ agreement_id: string | null;
2803
+ connection_id: string;
2804
+ data: import("./types").Json;
2805
+ delivery_date: string | null;
2806
+ fetched_at: string;
2807
+ floriday_id: string;
2513
2808
  id: string;
2514
- is_active: boolean;
2515
- label: string;
2516
- organization_name: string | null;
2517
- preferred_warehouse_id: string | null;
2518
- preferred_warehouse_name: string | null;
2519
- token_expires_at: string | null;
2809
+ is_deleted: boolean;
2810
+ sequence_number: number;
2811
+ status: string | null;
2520
2812
  updated_at: string;
2521
2813
  };
2522
2814
  Insert: {
2523
- access_token?: string | null;
2524
- api_key: string;
2525
- client_id: string;
2526
- client_secret: string;
2527
- created_at?: string;
2528
- customers_endpoint?: string | null;
2529
- environment: string;
2530
- gln_code?: string | null;
2815
+ agreement_id?: string | null;
2816
+ connection_id: string;
2817
+ data?: import("./types").Json;
2818
+ delivery_date?: string | null;
2819
+ fetched_at?: string;
2820
+ floriday_id: string;
2531
2821
  id?: string;
2532
- is_active?: boolean;
2533
- label?: string;
2534
- organization_name?: string | null;
2535
- preferred_warehouse_id?: string | null;
2536
- preferred_warehouse_name?: string | null;
2822
+ is_deleted?: boolean;
2823
+ sequence_number?: number;
2824
+ status?: string | null;
2825
+ updated_at?: string;
2826
+ };
2827
+ Update: {
2828
+ agreement_id?: string | null;
2829
+ connection_id?: string;
2830
+ data?: import("./types").Json;
2831
+ delivery_date?: string | null;
2832
+ fetched_at?: string;
2833
+ floriday_id?: string;
2834
+ id?: string;
2835
+ is_deleted?: boolean;
2836
+ sequence_number?: number;
2837
+ status?: string | null;
2838
+ updated_at?: string;
2839
+ };
2840
+ Relationships: [{
2841
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
2842
+ columns: ["connection_id"];
2843
+ isOneToOne: false;
2844
+ referencedRelation: "floriday_connections";
2845
+ referencedColumns: ["id"];
2846
+ }];
2847
+ };
2848
+ floriday_agreements_cache: {
2849
+ Row: {
2850
+ buyer_organization_id: string | null;
2851
+ connection_id: string;
2852
+ data: import("./types").Json;
2853
+ fetched_at: string;
2854
+ floriday_id: string;
2855
+ id: string;
2856
+ is_deleted: boolean;
2857
+ sequence_number: number;
2858
+ status: string | null;
2859
+ updated_at: string;
2860
+ valid_from: string | null;
2861
+ valid_until: string | null;
2862
+ };
2863
+ Insert: {
2864
+ buyer_organization_id?: string | null;
2865
+ connection_id: string;
2866
+ data?: import("./types").Json;
2867
+ fetched_at?: string;
2868
+ floriday_id: string;
2869
+ id?: string;
2870
+ is_deleted?: boolean;
2871
+ sequence_number?: number;
2872
+ status?: string | null;
2873
+ updated_at?: string;
2874
+ valid_from?: string | null;
2875
+ valid_until?: string | null;
2876
+ };
2877
+ Update: {
2878
+ buyer_organization_id?: string | null;
2879
+ connection_id?: string;
2880
+ data?: import("./types").Json;
2881
+ fetched_at?: string;
2882
+ floriday_id?: string;
2883
+ id?: string;
2884
+ is_deleted?: boolean;
2885
+ sequence_number?: number;
2886
+ status?: string | null;
2887
+ updated_at?: string;
2888
+ valid_from?: string | null;
2889
+ valid_until?: string | null;
2890
+ };
2891
+ Relationships: [{
2892
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2893
+ columns: ["connection_id"];
2894
+ isOneToOne: false;
2895
+ referencedRelation: "floriday_connections";
2896
+ referencedColumns: ["id"];
2897
+ }];
2898
+ };
2899
+ floriday_auction_letters_cache: {
2900
+ Row: {
2901
+ auction_letter_code: string;
2902
+ clock_supply_id: string;
2903
+ connection_id: string;
2904
+ content_type: string;
2905
+ fetched_at: string;
2906
+ id: string;
2907
+ storage_path: string;
2908
+ };
2909
+ Insert: {
2910
+ auction_letter_code: string;
2911
+ clock_supply_id: string;
2912
+ connection_id: string;
2913
+ content_type?: string;
2914
+ fetched_at?: string;
2915
+ id?: string;
2916
+ storage_path: string;
2917
+ };
2918
+ Update: {
2919
+ auction_letter_code?: string;
2920
+ clock_supply_id?: string;
2921
+ connection_id?: string;
2922
+ content_type?: string;
2923
+ fetched_at?: string;
2924
+ id?: string;
2925
+ storage_path?: string;
2926
+ };
2927
+ Relationships: [{
2928
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
2929
+ columns: ["connection_id"];
2930
+ isOneToOne: false;
2931
+ referencedRelation: "floriday_connections";
2932
+ referencedColumns: ["id"];
2933
+ }];
2934
+ };
2935
+ floriday_base_items_cache: {
2936
+ Row: {
2937
+ connection_id: string;
2938
+ data: import("./types").Json;
2939
+ fetched_at: string;
2940
+ floriday_id: string;
2941
+ is_deleted: boolean;
2942
+ sequence_number: number;
2943
+ updated_at: string;
2944
+ };
2945
+ Insert: {
2946
+ connection_id: string;
2947
+ data: import("./types").Json;
2948
+ fetched_at?: string;
2949
+ floriday_id: string;
2950
+ is_deleted?: boolean;
2951
+ sequence_number?: number;
2952
+ updated_at?: string;
2953
+ };
2954
+ Update: {
2955
+ connection_id?: string;
2956
+ data?: import("./types").Json;
2957
+ fetched_at?: string;
2958
+ floriday_id?: string;
2959
+ is_deleted?: boolean;
2960
+ sequence_number?: number;
2961
+ updated_at?: string;
2962
+ };
2963
+ Relationships: [{
2964
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
2965
+ columns: ["connection_id"];
2966
+ isOneToOne: false;
2967
+ referencedRelation: "floriday_connections";
2968
+ referencedColumns: ["id"];
2969
+ }];
2970
+ };
2971
+ floriday_blanket_orders_cache: {
2972
+ Row: {
2973
+ connection_id: string;
2974
+ contract_id: string | null;
2975
+ created_at: string;
2976
+ data: import("./types").Json;
2977
+ fetched_at: string;
2978
+ floriday_id: string;
2979
+ id: string;
2980
+ is_deleted: boolean;
2981
+ sequence_number: number;
2982
+ updated_at: string;
2983
+ };
2984
+ Insert: {
2985
+ connection_id: string;
2986
+ contract_id?: string | null;
2987
+ created_at?: string;
2988
+ data: import("./types").Json;
2989
+ fetched_at?: string;
2990
+ floriday_id: string;
2991
+ id?: string;
2992
+ is_deleted?: boolean;
2993
+ sequence_number?: number;
2994
+ updated_at?: string;
2995
+ };
2996
+ Update: {
2997
+ connection_id?: string;
2998
+ contract_id?: string | null;
2999
+ created_at?: string;
3000
+ data?: import("./types").Json;
3001
+ fetched_at?: string;
3002
+ floriday_id?: string;
3003
+ id?: string;
3004
+ is_deleted?: boolean;
3005
+ sequence_number?: number;
3006
+ updated_at?: string;
3007
+ };
3008
+ Relationships: [{
3009
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3010
+ columns: ["connection_id"];
3011
+ isOneToOne: false;
3012
+ referencedRelation: "floriday_connections";
3013
+ referencedColumns: ["id"];
3014
+ }];
3015
+ };
3016
+ floriday_carriers_cache: {
3017
+ Row: {
3018
+ connection_id: string | null;
3019
+ created_at: string;
3020
+ data: import("./types").Json;
3021
+ fetched_at: string;
3022
+ gln_code: string | null;
3023
+ id: string;
3024
+ name: string | null;
3025
+ organization_id: string;
3026
+ updated_at: string;
3027
+ };
3028
+ Insert: {
3029
+ connection_id?: string | null;
3030
+ created_at?: string;
3031
+ data: import("./types").Json;
3032
+ fetched_at?: string;
3033
+ gln_code?: string | null;
3034
+ id?: string;
3035
+ name?: string | null;
3036
+ organization_id: string;
3037
+ updated_at?: string;
3038
+ };
3039
+ Update: {
3040
+ connection_id?: string | null;
3041
+ created_at?: string;
3042
+ data?: import("./types").Json;
3043
+ fetched_at?: string;
3044
+ gln_code?: string | null;
3045
+ id?: string;
3046
+ name?: string | null;
3047
+ organization_id?: string;
3048
+ updated_at?: string;
3049
+ };
3050
+ Relationships: [{
3051
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3052
+ columns: ["connection_id"];
3053
+ isOneToOne: false;
3054
+ referencedRelation: "floriday_connections";
3055
+ referencedColumns: ["id"];
3056
+ }];
3057
+ };
3058
+ floriday_clock_presales_cache: {
3059
+ Row: {
3060
+ buyer_organization_id: string | null;
3061
+ clock_supply_id: string | null;
3062
+ connection_id: string;
3063
+ data: import("./types").Json;
3064
+ fetched_at: string;
3065
+ floriday_id: string;
3066
+ id: string;
3067
+ is_deleted: boolean;
3068
+ sequence_number: number;
3069
+ updated_at: string;
3070
+ };
3071
+ Insert: {
3072
+ buyer_organization_id?: string | null;
3073
+ clock_supply_id?: string | null;
3074
+ connection_id: string;
3075
+ data?: import("./types").Json;
3076
+ fetched_at?: string;
3077
+ floriday_id: string;
3078
+ id?: string;
3079
+ is_deleted?: boolean;
3080
+ sequence_number?: number;
3081
+ updated_at?: string;
3082
+ };
3083
+ Update: {
3084
+ buyer_organization_id?: string | null;
3085
+ clock_supply_id?: string | null;
3086
+ connection_id?: string;
3087
+ data?: import("./types").Json;
3088
+ fetched_at?: string;
3089
+ floriday_id?: string;
3090
+ id?: string;
3091
+ is_deleted?: boolean;
3092
+ sequence_number?: number;
3093
+ updated_at?: string;
3094
+ };
3095
+ Relationships: [{
3096
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3097
+ columns: ["connection_id"];
3098
+ isOneToOne: false;
3099
+ referencedRelation: "floriday_connections";
3100
+ referencedColumns: ["id"];
3101
+ }];
3102
+ };
3103
+ floriday_clock_supplies_cache: {
3104
+ Row: {
3105
+ auction_date: string | null;
3106
+ connection_id: string;
3107
+ data: import("./types").Json;
3108
+ fetched_at: string;
3109
+ floriday_id: string;
3110
+ id: string;
3111
+ is_deleted: boolean;
3112
+ sequence_number: number;
3113
+ status: string | null;
3114
+ trade_item_id: string | null;
3115
+ updated_at: string;
3116
+ };
3117
+ Insert: {
3118
+ auction_date?: string | null;
3119
+ connection_id: string;
3120
+ data?: import("./types").Json;
3121
+ fetched_at?: string;
3122
+ floriday_id: string;
3123
+ id?: string;
3124
+ is_deleted?: boolean;
3125
+ sequence_number?: number;
3126
+ status?: string | null;
3127
+ trade_item_id?: string | null;
3128
+ updated_at?: string;
3129
+ };
3130
+ Update: {
3131
+ auction_date?: string | null;
3132
+ connection_id?: string;
3133
+ data?: import("./types").Json;
3134
+ fetched_at?: string;
3135
+ floriday_id?: string;
3136
+ id?: string;
3137
+ is_deleted?: boolean;
3138
+ sequence_number?: number;
3139
+ status?: string | null;
3140
+ trade_item_id?: string | null;
3141
+ updated_at?: string;
3142
+ };
3143
+ Relationships: [{
3144
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3145
+ columns: ["connection_id"];
3146
+ isOneToOne: false;
3147
+ referencedRelation: "floriday_connections";
3148
+ referencedColumns: ["id"];
3149
+ }];
3150
+ };
3151
+ floriday_code_lists_cache: {
3152
+ Row: {
3153
+ code: string;
3154
+ environment: string;
3155
+ label: string | null;
3156
+ list_name: string;
3157
+ payload: import("./types").Json | null;
3158
+ updated_at: string;
3159
+ };
3160
+ Insert: {
3161
+ code: string;
3162
+ environment: string;
3163
+ label?: string | null;
3164
+ list_name: string;
3165
+ payload?: import("./types").Json | null;
3166
+ updated_at?: string;
3167
+ };
3168
+ Update: {
3169
+ code?: string;
3170
+ environment?: string;
3171
+ label?: string | null;
3172
+ list_name?: string;
3173
+ payload?: import("./types").Json | null;
3174
+ updated_at?: string;
3175
+ };
3176
+ Relationships: [];
3177
+ };
3178
+ floriday_collections_cache: {
3179
+ Row: {
3180
+ connection_id: string;
3181
+ data: import("./types").Json;
3182
+ fetched_at: string;
3183
+ floriday_id: string;
3184
+ is_deleted: boolean;
3185
+ sequence_number: number;
3186
+ updated_at: string;
3187
+ };
3188
+ Insert: {
3189
+ connection_id: string;
3190
+ data: import("./types").Json;
3191
+ fetched_at?: string;
3192
+ floriday_id: string;
3193
+ is_deleted?: boolean;
3194
+ sequence_number?: number;
3195
+ updated_at?: string;
3196
+ };
3197
+ Update: {
3198
+ connection_id?: string;
3199
+ data?: import("./types").Json;
3200
+ fetched_at?: string;
3201
+ floriday_id?: string;
3202
+ is_deleted?: boolean;
3203
+ sequence_number?: number;
3204
+ updated_at?: string;
3205
+ };
3206
+ Relationships: [{
3207
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3208
+ columns: ["connection_id"];
3209
+ isOneToOne: false;
3210
+ referencedRelation: "floriday_connections";
3211
+ referencedColumns: ["id"];
3212
+ }];
3213
+ };
3214
+ floriday_commercial_service_types_cache: {
3215
+ Row: {
3216
+ connection_id: string;
3217
+ data: import("./types").Json;
3218
+ fetched_at: string;
3219
+ floriday_id: string;
3220
+ is_deleted: boolean;
3221
+ sequence_number: number;
3222
+ updated_at: string;
3223
+ };
3224
+ Insert: {
3225
+ connection_id: string;
3226
+ data: import("./types").Json;
3227
+ fetched_at?: string;
3228
+ floriday_id: string;
3229
+ is_deleted?: boolean;
3230
+ sequence_number?: number;
3231
+ updated_at?: string;
3232
+ };
3233
+ Update: {
3234
+ connection_id?: string;
3235
+ data?: import("./types").Json;
3236
+ fetched_at?: string;
3237
+ floriday_id?: string;
3238
+ is_deleted?: boolean;
3239
+ sequence_number?: number;
3240
+ updated_at?: string;
3241
+ };
3242
+ Relationships: [{
3243
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3244
+ columns: ["connection_id"];
3245
+ isOneToOne: false;
3246
+ referencedRelation: "floriday_connections";
3247
+ referencedColumns: ["id"];
3248
+ }];
3249
+ };
3250
+ floriday_connections: {
3251
+ Row: {
3252
+ access_token: string | null;
3253
+ api_key: string;
3254
+ client_id: string;
3255
+ client_secret: string;
3256
+ created_at: string;
3257
+ customers_endpoint: string | null;
3258
+ environment: string;
3259
+ gln_code: string | null;
3260
+ id: string;
3261
+ is_active: boolean;
3262
+ label: string;
3263
+ organization_name: string | null;
3264
+ preferred_warehouse_id: string | null;
3265
+ preferred_warehouse_name: string | null;
3266
+ token_expires_at: string | null;
3267
+ updated_at: string;
3268
+ };
3269
+ Insert: {
3270
+ access_token?: string | null;
3271
+ api_key: string;
3272
+ client_id: string;
3273
+ client_secret: string;
3274
+ created_at?: string;
3275
+ customers_endpoint?: string | null;
3276
+ environment: string;
3277
+ gln_code?: string | null;
3278
+ id?: string;
3279
+ is_active?: boolean;
3280
+ label?: string;
3281
+ organization_name?: string | null;
3282
+ preferred_warehouse_id?: string | null;
3283
+ preferred_warehouse_name?: string | null;
3284
+ token_expires_at?: string | null;
3285
+ updated_at?: string;
3286
+ };
3287
+ Update: {
3288
+ access_token?: string | null;
3289
+ api_key?: string;
3290
+ client_id?: string;
3291
+ client_secret?: string;
3292
+ created_at?: string;
3293
+ customers_endpoint?: string | null;
3294
+ environment?: string;
3295
+ gln_code?: string | null;
3296
+ id?: string;
3297
+ is_active?: boolean;
3298
+ label?: string;
3299
+ organization_name?: string | null;
3300
+ preferred_warehouse_id?: string | null;
3301
+ preferred_warehouse_name?: string | null;
2537
3302
  token_expires_at?: string | null;
2538
3303
  updated_at?: string;
2539
3304
  };
3305
+ Relationships: [];
3306
+ };
3307
+ floriday_connections_cache: {
3308
+ Row: {
3309
+ buyer_organization_id: string | null;
3310
+ buyer_organization_name: string | null;
3311
+ connection_id: string;
3312
+ data: import("./types").Json;
3313
+ floriday_connection_id: string;
3314
+ is_deleted: boolean;
3315
+ sequence_number: number;
3316
+ status: string | null;
3317
+ synced_at: string;
3318
+ };
3319
+ Insert: {
3320
+ buyer_organization_id?: string | null;
3321
+ buyer_organization_name?: string | null;
3322
+ connection_id: string;
3323
+ data: import("./types").Json;
3324
+ floriday_connection_id: string;
3325
+ is_deleted?: boolean;
3326
+ sequence_number: number;
3327
+ status?: string | null;
3328
+ synced_at?: string;
3329
+ };
3330
+ Update: {
3331
+ buyer_organization_id?: string | null;
3332
+ buyer_organization_name?: string | null;
3333
+ connection_id?: string;
3334
+ data?: import("./types").Json;
3335
+ floriday_connection_id?: string;
3336
+ is_deleted?: boolean;
3337
+ sequence_number?: number;
3338
+ status?: string | null;
3339
+ synced_at?: string;
3340
+ };
3341
+ Relationships: [{
3342
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3343
+ columns: ["connection_id"];
3344
+ isOneToOne: false;
3345
+ referencedRelation: "floriday_connections";
3346
+ referencedColumns: ["id"];
3347
+ }];
3348
+ };
3349
+ floriday_contract_trade_item_groups_cache: {
3350
+ Row: {
3351
+ connection_id: string;
3352
+ data: import("./types").Json;
3353
+ fetched_at: string;
3354
+ floriday_id: string;
3355
+ is_deleted: boolean;
3356
+ sequence_number: number;
3357
+ updated_at: string;
3358
+ };
3359
+ Insert: {
3360
+ connection_id: string;
3361
+ data: import("./types").Json;
3362
+ fetched_at?: string;
3363
+ floriday_id: string;
3364
+ is_deleted?: boolean;
3365
+ sequence_number?: number;
3366
+ updated_at?: string;
3367
+ };
3368
+ Update: {
3369
+ connection_id?: string;
3370
+ data?: import("./types").Json;
3371
+ fetched_at?: string;
3372
+ floriday_id?: string;
3373
+ is_deleted?: boolean;
3374
+ sequence_number?: number;
3375
+ updated_at?: string;
3376
+ };
3377
+ Relationships: [{
3378
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3379
+ columns: ["connection_id"];
3380
+ isOneToOne: false;
3381
+ referencedRelation: "floriday_connections";
3382
+ referencedColumns: ["id"];
3383
+ }];
3384
+ };
3385
+ floriday_contracts_cache: {
3386
+ Row: {
3387
+ connection_id: string;
3388
+ created_at: string;
3389
+ data: import("./types").Json;
3390
+ fetched_at: string;
3391
+ floriday_id: string;
3392
+ id: string;
3393
+ is_deleted: boolean;
3394
+ sequence_number: number;
3395
+ updated_at: string;
3396
+ };
3397
+ Insert: {
3398
+ connection_id: string;
3399
+ created_at?: string;
3400
+ data: import("./types").Json;
3401
+ fetched_at?: string;
3402
+ floriday_id: string;
3403
+ id?: string;
3404
+ is_deleted?: boolean;
3405
+ sequence_number?: number;
3406
+ updated_at?: string;
3407
+ };
3408
+ Update: {
3409
+ connection_id?: string;
3410
+ created_at?: string;
3411
+ data?: import("./types").Json;
3412
+ fetched_at?: string;
3413
+ floriday_id?: string;
3414
+ id?: string;
3415
+ is_deleted?: boolean;
3416
+ sequence_number?: number;
3417
+ updated_at?: string;
3418
+ };
3419
+ Relationships: [{
3420
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3421
+ columns: ["connection_id"];
3422
+ isOneToOne: false;
3423
+ referencedRelation: "floriday_connections";
3424
+ referencedColumns: ["id"];
3425
+ }];
3426
+ };
3427
+ floriday_customer_sticker_pdfs_cache: {
3428
+ Row: {
3429
+ byte_size: number | null;
3430
+ connection_id: string;
3431
+ content_type: string;
3432
+ created_at: string;
3433
+ fetched_at: string;
3434
+ id: string;
3435
+ sticker_id: string;
3436
+ storage_path: string;
3437
+ };
3438
+ Insert: {
3439
+ byte_size?: number | null;
3440
+ connection_id: string;
3441
+ content_type?: string;
3442
+ created_at?: string;
3443
+ fetched_at?: string;
3444
+ id?: string;
3445
+ sticker_id: string;
3446
+ storage_path: string;
3447
+ };
3448
+ Update: {
3449
+ byte_size?: number | null;
3450
+ connection_id?: string;
3451
+ content_type?: string;
3452
+ created_at?: string;
3453
+ fetched_at?: string;
3454
+ id?: string;
3455
+ sticker_id?: string;
3456
+ storage_path?: string;
3457
+ };
3458
+ Relationships: [{
3459
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3460
+ columns: ["connection_id"];
3461
+ isOneToOne: false;
3462
+ referencedRelation: "floriday_connections";
3463
+ referencedColumns: ["id"];
3464
+ }];
3465
+ };
3466
+ floriday_customer_stickers_cache: {
3467
+ Row: {
3468
+ connection_id: string;
3469
+ created_at: string;
3470
+ data: import("./types").Json;
3471
+ fetched_at: string;
3472
+ floriday_id: string;
3473
+ id: string;
3474
+ is_deleted: boolean;
3475
+ quantity: number | null;
3476
+ sales_order_id: string | null;
3477
+ sequence_number: number;
3478
+ status: string | null;
3479
+ trade_item_id: string | null;
3480
+ updated_at: string;
3481
+ };
3482
+ Insert: {
3483
+ connection_id: string;
3484
+ created_at?: string;
3485
+ data?: import("./types").Json;
3486
+ fetched_at?: string;
3487
+ floriday_id: string;
3488
+ id?: string;
3489
+ is_deleted?: boolean;
3490
+ quantity?: number | null;
3491
+ sales_order_id?: string | null;
3492
+ sequence_number?: number;
3493
+ status?: string | null;
3494
+ trade_item_id?: string | null;
3495
+ updated_at?: string;
3496
+ };
3497
+ Update: {
3498
+ connection_id?: string;
3499
+ created_at?: string;
3500
+ data?: import("./types").Json;
3501
+ fetched_at?: string;
3502
+ floriday_id?: string;
3503
+ id?: string;
3504
+ is_deleted?: boolean;
3505
+ quantity?: number | null;
3506
+ sales_order_id?: string | null;
3507
+ sequence_number?: number;
3508
+ status?: string | null;
3509
+ trade_item_id?: string | null;
3510
+ updated_at?: string;
3511
+ };
3512
+ Relationships: [{
3513
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3514
+ columns: ["connection_id"];
3515
+ isOneToOne: false;
3516
+ referencedRelation: "floriday_connections";
3517
+ referencedColumns: ["id"];
3518
+ }];
3519
+ };
3520
+ floriday_customers_cache: {
3521
+ Row: {
3522
+ connection_id: string | null;
3523
+ data: import("./types").Json;
3524
+ fetched_at: string;
3525
+ gln_code: string | null;
3526
+ is_deleted: boolean;
3527
+ name: string | null;
3528
+ organization_id: string;
3529
+ sequence_number: number | null;
3530
+ };
3531
+ Insert: {
3532
+ connection_id?: string | null;
3533
+ data?: import("./types").Json;
3534
+ fetched_at?: string;
3535
+ gln_code?: string | null;
3536
+ is_deleted?: boolean;
3537
+ name?: string | null;
3538
+ organization_id: string;
3539
+ sequence_number?: number | null;
3540
+ };
3541
+ Update: {
3542
+ connection_id?: string | null;
3543
+ data?: import("./types").Json;
3544
+ fetched_at?: string;
3545
+ gln_code?: string | null;
3546
+ is_deleted?: boolean;
3547
+ name?: string | null;
3548
+ organization_id?: string;
3549
+ sequence_number?: number | null;
3550
+ };
3551
+ Relationships: [{
3552
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3553
+ columns: ["connection_id"];
3554
+ isOneToOne: false;
3555
+ referencedRelation: "floriday_connections";
3556
+ referencedColumns: ["id"];
3557
+ }];
3558
+ };
3559
+ floriday_delivery_condition_sets_cache: {
3560
+ Row: {
3561
+ connection_id: string;
3562
+ data: import("./types").Json;
3563
+ fetched_at: string;
3564
+ floriday_id: string;
3565
+ is_deleted: boolean;
3566
+ sequence_number: number;
3567
+ updated_at: string;
3568
+ };
3569
+ Insert: {
3570
+ connection_id: string;
3571
+ data: import("./types").Json;
3572
+ fetched_at?: string;
3573
+ floriday_id: string;
3574
+ is_deleted?: boolean;
3575
+ sequence_number?: number;
3576
+ updated_at?: string;
3577
+ };
3578
+ Update: {
3579
+ connection_id?: string;
3580
+ data?: import("./types").Json;
3581
+ fetched_at?: string;
3582
+ floriday_id?: string;
3583
+ is_deleted?: boolean;
3584
+ sequence_number?: number;
3585
+ updated_at?: string;
3586
+ };
3587
+ Relationships: [{
3588
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3589
+ columns: ["connection_id"];
3590
+ isOneToOne: false;
3591
+ referencedRelation: "floriday_connections";
3592
+ referencedColumns: ["id"];
3593
+ }];
3594
+ };
3595
+ floriday_delivery_locations_cache: {
3596
+ Row: {
3597
+ connection_id: string;
3598
+ data: import("./types").Json;
3599
+ fetched_at: string;
3600
+ floriday_id: string;
3601
+ gln_code: string | null;
3602
+ id: string;
3603
+ is_deleted: boolean;
3604
+ name: string | null;
3605
+ organization_id: string | null;
3606
+ updated_at: string;
3607
+ };
3608
+ Insert: {
3609
+ connection_id: string;
3610
+ data?: import("./types").Json;
3611
+ fetched_at?: string;
3612
+ floriday_id: string;
3613
+ gln_code?: string | null;
3614
+ id?: string;
3615
+ is_deleted?: boolean;
3616
+ name?: string | null;
3617
+ organization_id?: string | null;
3618
+ updated_at?: string;
3619
+ };
2540
3620
  Update: {
2541
- access_token?: string | null;
2542
- api_key?: string;
2543
- client_id?: string;
2544
- client_secret?: string;
2545
- created_at?: string;
2546
- customers_endpoint?: string | null;
2547
- environment?: string;
3621
+ connection_id?: string;
3622
+ data?: import("./types").Json;
3623
+ fetched_at?: string;
3624
+ floriday_id?: string;
2548
3625
  gln_code?: string | null;
2549
3626
  id?: string;
2550
- is_active?: boolean;
2551
- label?: string;
3627
+ is_deleted?: boolean;
3628
+ name?: string | null;
3629
+ organization_id?: string | null;
3630
+ updated_at?: string;
3631
+ };
3632
+ Relationships: [{
3633
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3634
+ columns: ["connection_id"];
3635
+ isOneToOne: false;
3636
+ referencedRelation: "floriday_connections";
3637
+ referencedColumns: ["id"];
3638
+ }];
3639
+ };
3640
+ floriday_delivery_orders_cache: {
3641
+ Row: {
3642
+ auction_date: string | null;
3643
+ connection_id: string;
3644
+ data: import("./types").Json;
3645
+ destination_warehouse_id: string | null;
3646
+ fetched_at: string;
3647
+ floriday_id: string;
3648
+ id: string;
3649
+ is_deleted: boolean;
3650
+ sequence_number: number;
3651
+ status: string | null;
3652
+ trade_item_id: string | null;
3653
+ updated_at: string;
3654
+ };
3655
+ Insert: {
3656
+ auction_date?: string | null;
3657
+ connection_id: string;
3658
+ data?: import("./types").Json;
3659
+ destination_warehouse_id?: string | null;
3660
+ fetched_at?: string;
3661
+ floriday_id: string;
3662
+ id?: string;
3663
+ is_deleted?: boolean;
3664
+ sequence_number?: number;
3665
+ status?: string | null;
3666
+ trade_item_id?: string | null;
3667
+ updated_at?: string;
3668
+ };
3669
+ Update: {
3670
+ auction_date?: string | null;
3671
+ connection_id?: string;
3672
+ data?: import("./types").Json;
3673
+ destination_warehouse_id?: string | null;
3674
+ fetched_at?: string;
3675
+ floriday_id?: string;
3676
+ id?: string;
3677
+ is_deleted?: boolean;
3678
+ sequence_number?: number;
3679
+ status?: string | null;
3680
+ trade_item_id?: string | null;
3681
+ updated_at?: string;
3682
+ };
3683
+ Relationships: [{
3684
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3685
+ columns: ["connection_id"];
3686
+ isOneToOne: false;
3687
+ referencedRelation: "floriday_connections";
3688
+ referencedColumns: ["id"];
3689
+ }];
3690
+ };
3691
+ floriday_fulfillment_orders_cache: {
3692
+ Row: {
3693
+ auction_date: string | null;
3694
+ connection_id: string;
3695
+ data: import("./types").Json;
3696
+ delivery_order_id: string | null;
3697
+ despatch_warehouse_id: string | null;
3698
+ destination_warehouse_id: string | null;
3699
+ fetched_at: string;
3700
+ floriday_id: string;
3701
+ id: string;
3702
+ is_deleted: boolean | null;
3703
+ latest_delivery_at: string | null;
3704
+ load_carrier_type: string | null;
3705
+ one_label_only: boolean | null;
3706
+ sequence_number: number;
3707
+ status: string | null;
3708
+ };
3709
+ Insert: {
3710
+ auction_date?: string | null;
3711
+ connection_id: string;
3712
+ data: import("./types").Json;
3713
+ delivery_order_id?: string | null;
3714
+ despatch_warehouse_id?: string | null;
3715
+ destination_warehouse_id?: string | null;
3716
+ fetched_at?: string;
3717
+ floriday_id: string;
3718
+ id?: string;
3719
+ is_deleted?: boolean | null;
3720
+ latest_delivery_at?: string | null;
3721
+ load_carrier_type?: string | null;
3722
+ one_label_only?: boolean | null;
3723
+ sequence_number?: number;
3724
+ status?: string | null;
3725
+ };
3726
+ Update: {
3727
+ auction_date?: string | null;
3728
+ connection_id?: string;
3729
+ data?: import("./types").Json;
3730
+ delivery_order_id?: string | null;
3731
+ despatch_warehouse_id?: string | null;
3732
+ destination_warehouse_id?: string | null;
3733
+ fetched_at?: string;
3734
+ floriday_id?: string;
3735
+ id?: string;
3736
+ is_deleted?: boolean | null;
3737
+ latest_delivery_at?: string | null;
3738
+ load_carrier_type?: string | null;
3739
+ one_label_only?: boolean | null;
3740
+ sequence_number?: number;
3741
+ status?: string | null;
3742
+ };
3743
+ Relationships: [{
3744
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
3745
+ columns: ["connection_id"];
3746
+ isOneToOne: false;
3747
+ referencedRelation: "floriday_connections";
3748
+ referencedColumns: ["id"];
3749
+ }];
3750
+ };
3751
+ floriday_invoices_cache: {
3752
+ Row: {
3753
+ buyer_organization_id: string | null;
3754
+ connection_id: string;
3755
+ currency: string | null;
3756
+ data: import("./types").Json;
3757
+ fetched_at: string;
3758
+ floriday_id: string;
3759
+ id: string;
3760
+ invoice_date: string | null;
3761
+ invoice_number: string | null;
3762
+ is_deleted: boolean;
3763
+ sequence_number: number;
3764
+ total_amount: number | null;
3765
+ updated_at: string;
3766
+ };
3767
+ Insert: {
3768
+ buyer_organization_id?: string | null;
3769
+ connection_id: string;
3770
+ currency?: string | null;
3771
+ data?: import("./types").Json;
3772
+ fetched_at?: string;
3773
+ floriday_id: string;
3774
+ id?: string;
3775
+ invoice_date?: string | null;
3776
+ invoice_number?: string | null;
3777
+ is_deleted?: boolean;
3778
+ sequence_number?: number;
3779
+ total_amount?: number | null;
3780
+ updated_at?: string;
3781
+ };
3782
+ Update: {
3783
+ buyer_organization_id?: string | null;
3784
+ connection_id?: string;
3785
+ currency?: string | null;
3786
+ data?: import("./types").Json;
3787
+ fetched_at?: string;
3788
+ floriday_id?: string;
3789
+ id?: string;
3790
+ invoice_date?: string | null;
3791
+ invoice_number?: string | null;
3792
+ is_deleted?: boolean;
3793
+ sequence_number?: number;
3794
+ total_amount?: number | null;
3795
+ updated_at?: string;
3796
+ };
3797
+ Relationships: [{
3798
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
3799
+ columns: ["connection_id"];
3800
+ isOneToOne: false;
3801
+ referencedRelation: "floriday_connections";
3802
+ referencedColumns: ["id"];
3803
+ }];
3804
+ };
3805
+ floriday_logistic_labels_cache: {
3806
+ Row: {
3807
+ byte_size: number | null;
3808
+ connection_id: string;
3809
+ content_type: string;
3810
+ fetched_at: string;
3811
+ fulfillment_order_id: string;
3812
+ id: string;
3813
+ logistic_label_code: string;
3814
+ storage_path: string;
3815
+ };
3816
+ Insert: {
3817
+ byte_size?: number | null;
3818
+ connection_id: string;
3819
+ content_type?: string;
3820
+ fetched_at?: string;
3821
+ fulfillment_order_id: string;
3822
+ id?: string;
3823
+ logistic_label_code: string;
3824
+ storage_path: string;
3825
+ };
3826
+ Update: {
3827
+ byte_size?: number | null;
3828
+ connection_id?: string;
3829
+ content_type?: string;
3830
+ fetched_at?: string;
3831
+ fulfillment_order_id?: string;
3832
+ id?: string;
3833
+ logistic_label_code?: string;
3834
+ storage_path?: string;
3835
+ };
3836
+ Relationships: [{
3837
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
3838
+ columns: ["connection_id"];
3839
+ isOneToOne: false;
3840
+ referencedRelation: "floriday_connections";
3841
+ referencedColumns: ["id"];
3842
+ }];
3843
+ };
3844
+ floriday_network_cache: {
3845
+ Row: {
3846
+ city: string | null;
3847
+ connection_id: string;
3848
+ country: string | null;
3849
+ data: import("./types").Json;
3850
+ fetched_at: string;
3851
+ gln: string | null;
3852
+ organization_id: string;
3853
+ organization_name: string | null;
3854
+ };
3855
+ Insert: {
3856
+ city?: string | null;
3857
+ connection_id: string;
3858
+ country?: string | null;
3859
+ data?: import("./types").Json;
3860
+ fetched_at?: string;
3861
+ gln?: string | null;
3862
+ organization_id: string;
2552
3863
  organization_name?: string | null;
2553
- preferred_warehouse_id?: string | null;
2554
- preferred_warehouse_name?: string | null;
2555
- token_expires_at?: string | null;
3864
+ };
3865
+ Update: {
3866
+ city?: string | null;
3867
+ connection_id?: string;
3868
+ country?: string | null;
3869
+ data?: import("./types").Json;
3870
+ fetched_at?: string;
3871
+ gln?: string | null;
3872
+ organization_id?: string;
3873
+ organization_name?: string | null;
3874
+ };
3875
+ Relationships: [];
3876
+ };
3877
+ floriday_network_sync_state: {
3878
+ Row: {
3879
+ connection_id: string;
3880
+ last_error: string | null;
3881
+ last_sequence_number: number;
3882
+ last_synced_at: string | null;
3883
+ updated_at: string;
3884
+ };
3885
+ Insert: {
3886
+ connection_id: string;
3887
+ last_error?: string | null;
3888
+ last_sequence_number?: number;
3889
+ last_synced_at?: string | null;
3890
+ updated_at?: string;
3891
+ };
3892
+ Update: {
3893
+ connection_id?: string;
3894
+ last_error?: string | null;
3895
+ last_sequence_number?: number;
3896
+ last_synced_at?: string | null;
2556
3897
  updated_at?: string;
2557
3898
  };
2558
3899
  Relationships: [];
2559
3900
  };
2560
- floriday_connections_cache: {
3901
+ floriday_packings_cache: {
2561
3902
  Row: {
2562
- buyer_organization_id: string | null;
2563
- buyer_organization_name: string | null;
2564
3903
  connection_id: string;
2565
3904
  data: import("./types").Json;
2566
- floriday_connection_id: string;
3905
+ fetched_at: string;
3906
+ floriday_id: string;
3907
+ id: string;
2567
3908
  is_deleted: boolean;
2568
3909
  sequence_number: number;
2569
- status: string | null;
2570
- synced_at: string;
3910
+ updated_at: string;
2571
3911
  };
2572
3912
  Insert: {
2573
- buyer_organization_id?: string | null;
2574
- buyer_organization_name?: string | null;
2575
3913
  connection_id: string;
2576
- data: import("./types").Json;
2577
- floriday_connection_id: string;
3914
+ data?: import("./types").Json;
3915
+ fetched_at?: string;
3916
+ floriday_id: string;
3917
+ id?: string;
2578
3918
  is_deleted?: boolean;
2579
- sequence_number: number;
2580
- status?: string | null;
2581
- synced_at?: string;
3919
+ sequence_number?: number;
3920
+ updated_at?: string;
2582
3921
  };
2583
3922
  Update: {
2584
- buyer_organization_id?: string | null;
2585
- buyer_organization_name?: string | null;
2586
3923
  connection_id?: string;
2587
3924
  data?: import("./types").Json;
2588
- floriday_connection_id?: string;
3925
+ fetched_at?: string;
3926
+ floriday_id?: string;
3927
+ id?: string;
2589
3928
  is_deleted?: boolean;
2590
3929
  sequence_number?: number;
2591
- status?: string | null;
2592
- synced_at?: string;
3930
+ updated_at?: string;
2593
3931
  };
2594
3932
  Relationships: [{
2595
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3933
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
2596
3934
  columns: ["connection_id"];
2597
3935
  isOneToOne: false;
2598
3936
  referencedRelation: "floriday_connections";
2599
3937
  referencedColumns: ["id"];
2600
3938
  }];
2601
3939
  };
2602
- floriday_customers_cache: {
3940
+ floriday_price_groups_cache: {
2603
3941
  Row: {
2604
- connection_id: string | null;
3942
+ connection_id: string;
2605
3943
  data: import("./types").Json;
2606
3944
  fetched_at: string;
2607
- organization_id: string;
3945
+ floriday_id: string;
3946
+ is_deleted: boolean;
3947
+ sequence_number: number;
3948
+ updated_at: string;
2608
3949
  };
2609
3950
  Insert: {
2610
- connection_id?: string | null;
2611
- data?: import("./types").Json;
3951
+ connection_id: string;
3952
+ data: import("./types").Json;
2612
3953
  fetched_at?: string;
2613
- organization_id: string;
3954
+ floriday_id: string;
3955
+ is_deleted?: boolean;
3956
+ sequence_number?: number;
3957
+ updated_at?: string;
2614
3958
  };
2615
3959
  Update: {
2616
- connection_id?: string | null;
3960
+ connection_id?: string;
2617
3961
  data?: import("./types").Json;
2618
3962
  fetched_at?: string;
2619
- organization_id?: string;
3963
+ floriday_id?: string;
3964
+ is_deleted?: boolean;
3965
+ sequence_number?: number;
3966
+ updated_at?: string;
2620
3967
  };
2621
3968
  Relationships: [{
2622
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3969
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
2623
3970
  columns: ["connection_id"];
2624
3971
  isOneToOne: false;
2625
3972
  referencedRelation: "floriday_connections";
2626
3973
  referencedColumns: ["id"];
2627
3974
  }];
2628
3975
  };
2629
- floriday_network_cache: {
3976
+ floriday_resource_schemas: {
2630
3977
  Row: {
2631
- city: string | null;
2632
- connection_id: string;
2633
- country: string | null;
2634
- data: import("./types").Json;
3978
+ enums: import("./types").Json;
2635
3979
  fetched_at: string;
2636
- gln: string | null;
2637
- organization_id: string;
2638
- organization_name: string | null;
3980
+ resource: string;
3981
+ schema: import("./types").Json;
3982
+ source_url: string | null;
3983
+ version: string;
2639
3984
  };
2640
3985
  Insert: {
2641
- city?: string | null;
2642
- connection_id: string;
2643
- country?: string | null;
2644
- data?: import("./types").Json;
3986
+ enums?: import("./types").Json;
2645
3987
  fetched_at?: string;
2646
- gln?: string | null;
2647
- organization_id: string;
2648
- organization_name?: string | null;
3988
+ resource: string;
3989
+ schema: import("./types").Json;
3990
+ source_url?: string | null;
3991
+ version: string;
2649
3992
  };
2650
3993
  Update: {
2651
- city?: string | null;
2652
- connection_id?: string;
2653
- country?: string | null;
2654
- data?: import("./types").Json;
3994
+ enums?: import("./types").Json;
2655
3995
  fetched_at?: string;
2656
- gln?: string | null;
2657
- organization_id?: string;
2658
- organization_name?: string | null;
3996
+ resource?: string;
3997
+ schema?: import("./types").Json;
3998
+ source_url?: string | null;
3999
+ version?: string;
2659
4000
  };
2660
4001
  Relationships: [];
2661
4002
  };
2662
- floriday_network_sync_state: {
4003
+ floriday_sales_strategies_cache: {
2663
4004
  Row: {
2664
4005
  connection_id: string;
2665
- last_error: string | null;
2666
- last_sequence_number: number;
2667
- last_synced_at: string | null;
4006
+ data: import("./types").Json;
4007
+ fetched_at: string;
4008
+ floriday_id: string;
4009
+ is_deleted: boolean;
4010
+ sequence_number: number;
2668
4011
  updated_at: string;
2669
4012
  };
2670
4013
  Insert: {
2671
4014
  connection_id: string;
2672
- last_error?: string | null;
2673
- last_sequence_number?: number;
2674
- last_synced_at?: string | null;
4015
+ data: import("./types").Json;
4016
+ fetched_at?: string;
4017
+ floriday_id: string;
4018
+ is_deleted?: boolean;
4019
+ sequence_number?: number;
2675
4020
  updated_at?: string;
2676
4021
  };
2677
4022
  Update: {
2678
4023
  connection_id?: string;
2679
- last_error?: string | null;
2680
- last_sequence_number?: number;
2681
- last_synced_at?: string | null;
4024
+ data?: import("./types").Json;
4025
+ fetched_at?: string;
4026
+ floriday_id?: string;
4027
+ is_deleted?: boolean;
4028
+ sequence_number?: number;
2682
4029
  updated_at?: string;
2683
4030
  };
2684
- Relationships: [];
4031
+ Relationships: [{
4032
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4033
+ columns: ["connection_id"];
4034
+ isOneToOne: false;
4035
+ referencedRelation: "floriday_connections";
4036
+ referencedColumns: ["id"];
4037
+ }];
2685
4038
  };
2686
4039
  floriday_salesorders_cache: {
2687
4040
  Row: {
@@ -2748,7 +4101,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2748
4101
  connection_id: string;
2749
4102
  entity_type: string;
2750
4103
  last_error: string | null;
4104
+ last_items_processed: number | null;
2751
4105
  last_sequence_number: number;
4106
+ last_success_at: string | null;
2752
4107
  last_synced_at: string | null;
2753
4108
  updated_at: string;
2754
4109
  };
@@ -2756,7 +4111,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2756
4111
  connection_id: string;
2757
4112
  entity_type: string;
2758
4113
  last_error?: string | null;
4114
+ last_items_processed?: number | null;
2759
4115
  last_sequence_number?: number;
4116
+ last_success_at?: string | null;
2760
4117
  last_synced_at?: string | null;
2761
4118
  updated_at?: string;
2762
4119
  };
@@ -2764,7 +4121,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2764
4121
  connection_id?: string;
2765
4122
  entity_type?: string;
2766
4123
  last_error?: string | null;
4124
+ last_items_processed?: number | null;
2767
4125
  last_sequence_number?: number;
4126
+ last_success_at?: string | null;
2768
4127
  last_synced_at?: string | null;
2769
4128
  updated_at?: string;
2770
4129
  };
@@ -2812,6 +4171,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2812
4171
  referencedColumns: ["id"];
2813
4172
  }];
2814
4173
  };
4174
+ floriday_trade_item_classifications_cache: {
4175
+ Row: {
4176
+ connection_id: string;
4177
+ data: import("./types").Json;
4178
+ fetched_at: string;
4179
+ floriday_id: string;
4180
+ id: string;
4181
+ is_deleted: boolean;
4182
+ sequence_number: number;
4183
+ updated_at: string;
4184
+ };
4185
+ Insert: {
4186
+ connection_id: string;
4187
+ data: import("./types").Json;
4188
+ fetched_at?: string;
4189
+ floriday_id: string;
4190
+ id?: string;
4191
+ is_deleted?: boolean;
4192
+ sequence_number?: number;
4193
+ updated_at?: string;
4194
+ };
4195
+ Update: {
4196
+ connection_id?: string;
4197
+ data?: import("./types").Json;
4198
+ fetched_at?: string;
4199
+ floriday_id?: string;
4200
+ id?: string;
4201
+ is_deleted?: boolean;
4202
+ sequence_number?: number;
4203
+ updated_at?: string;
4204
+ };
4205
+ Relationships: [{
4206
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4207
+ columns: ["connection_id"];
4208
+ isOneToOne: false;
4209
+ referencedRelation: "floriday_connections";
4210
+ referencedColumns: ["id"];
4211
+ }];
4212
+ };
2815
4213
  floriday_trade_items_cache: {
2816
4214
  Row: {
2817
4215
  connection_id: string;
@@ -2822,23 +4220,176 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2822
4220
  sequence_number: number;
2823
4221
  };
2824
4222
  Insert: {
2825
- connection_id: string;
2826
- data?: import("./types").Json;
2827
- fetched_at?: string;
2828
- floriday_id: string;
2829
- is_deleted?: boolean;
2830
- sequence_number?: number;
4223
+ connection_id: string;
4224
+ data?: import("./types").Json;
4225
+ fetched_at?: string;
4226
+ floriday_id: string;
4227
+ is_deleted?: boolean;
4228
+ sequence_number?: number;
4229
+ };
4230
+ Update: {
4231
+ connection_id?: string;
4232
+ data?: import("./types").Json;
4233
+ fetched_at?: string;
4234
+ floriday_id?: string;
4235
+ is_deleted?: boolean;
4236
+ sequence_number?: number;
4237
+ };
4238
+ Relationships: [{
4239
+ foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4240
+ columns: ["connection_id"];
4241
+ isOneToOne: false;
4242
+ referencedRelation: "floriday_connections";
4243
+ referencedColumns: ["id"];
4244
+ }];
4245
+ };
4246
+ floriday_trips_cache: {
4247
+ Row: {
4248
+ carrier_organization_id: string | null;
4249
+ connection_id: string;
4250
+ data: import("./types").Json;
4251
+ fetched_at: string;
4252
+ floriday_id: string;
4253
+ id: string;
4254
+ is_deleted: boolean;
4255
+ sequence_number: number;
4256
+ status: string | null;
4257
+ trip_date: string | null;
4258
+ updated_at: string;
4259
+ };
4260
+ Insert: {
4261
+ carrier_organization_id?: string | null;
4262
+ connection_id: string;
4263
+ data?: import("./types").Json;
4264
+ fetched_at?: string;
4265
+ floriday_id: string;
4266
+ id?: string;
4267
+ is_deleted?: boolean;
4268
+ sequence_number?: number;
4269
+ status?: string | null;
4270
+ trip_date?: string | null;
4271
+ updated_at?: string;
4272
+ };
4273
+ Update: {
4274
+ carrier_organization_id?: string | null;
4275
+ connection_id?: string;
4276
+ data?: import("./types").Json;
4277
+ fetched_at?: string;
4278
+ floriday_id?: string;
4279
+ id?: string;
4280
+ is_deleted?: boolean;
4281
+ sequence_number?: number;
4282
+ status?: string | null;
4283
+ trip_date?: string | null;
4284
+ updated_at?: string;
4285
+ };
4286
+ Relationships: [{
4287
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4288
+ columns: ["connection_id"];
4289
+ isOneToOne: false;
4290
+ referencedRelation: "floriday_connections";
4291
+ referencedColumns: ["id"];
4292
+ }];
4293
+ };
4294
+ floriday_warehouses_cache: {
4295
+ Row: {
4296
+ connection_id: string;
4297
+ data: import("./types").Json;
4298
+ fetched_at: string;
4299
+ floriday_id: string;
4300
+ gln_code: string | null;
4301
+ id: string;
4302
+ is_default: boolean;
4303
+ is_deleted: boolean;
4304
+ name: string | null;
4305
+ updated_at: string;
4306
+ };
4307
+ Insert: {
4308
+ connection_id: string;
4309
+ data?: import("./types").Json;
4310
+ fetched_at?: string;
4311
+ floriday_id: string;
4312
+ gln_code?: string | null;
4313
+ id?: string;
4314
+ is_default?: boolean;
4315
+ is_deleted?: boolean;
4316
+ name?: string | null;
4317
+ updated_at?: string;
4318
+ };
4319
+ Update: {
4320
+ connection_id?: string;
4321
+ data?: import("./types").Json;
4322
+ fetched_at?: string;
4323
+ floriday_id?: string;
4324
+ gln_code?: string | null;
4325
+ id?: string;
4326
+ is_default?: boolean;
4327
+ is_deleted?: boolean;
4328
+ name?: string | null;
4329
+ updated_at?: string;
4330
+ };
4331
+ Relationships: [{
4332
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4333
+ columns: ["connection_id"];
4334
+ isOneToOne: false;
4335
+ referencedRelation: "floriday_connections";
4336
+ referencedColumns: ["id"];
4337
+ }];
4338
+ };
4339
+ floriday_write_log: {
4340
+ Row: {
4341
+ action: string;
4342
+ caller: string;
4343
+ connection_id: string | null;
4344
+ created_at: string;
4345
+ error: string | null;
4346
+ floriday_id: string | null;
4347
+ http_status: number | null;
4348
+ id: string;
4349
+ idempotency_key: string | null;
4350
+ module: string | null;
4351
+ ok: boolean;
4352
+ request: import("./types").Json | null;
4353
+ resource: string;
4354
+ response: import("./types").Json | null;
4355
+ user_id: string | null;
4356
+ };
4357
+ Insert: {
4358
+ action: string;
4359
+ caller?: string;
4360
+ connection_id?: string | null;
4361
+ created_at?: string;
4362
+ error?: string | null;
4363
+ floriday_id?: string | null;
4364
+ http_status?: number | null;
4365
+ id?: string;
4366
+ idempotency_key?: string | null;
4367
+ module?: string | null;
4368
+ ok: boolean;
4369
+ request?: import("./types").Json | null;
4370
+ resource: string;
4371
+ response?: import("./types").Json | null;
4372
+ user_id?: string | null;
2831
4373
  };
2832
4374
  Update: {
2833
- connection_id?: string;
2834
- data?: import("./types").Json;
2835
- fetched_at?: string;
2836
- floriday_id?: string;
2837
- is_deleted?: boolean;
2838
- sequence_number?: number;
4375
+ action?: string;
4376
+ caller?: string;
4377
+ connection_id?: string | null;
4378
+ created_at?: string;
4379
+ error?: string | null;
4380
+ floriday_id?: string | null;
4381
+ http_status?: number | null;
4382
+ id?: string;
4383
+ idempotency_key?: string | null;
4384
+ module?: string | null;
4385
+ ok?: boolean;
4386
+ request?: import("./types").Json | null;
4387
+ resource?: string;
4388
+ response?: import("./types").Json | null;
4389
+ user_id?: string | null;
2839
4390
  };
2840
4391
  Relationships: [{
2841
- foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4392
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
2842
4393
  columns: ["connection_id"];
2843
4394
  isOneToOne: false;
2844
4395
  referencedRelation: "floriday_connections";
@@ -3019,6 +4570,57 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3019
4570
  };
3020
4571
  Relationships: [];
3021
4572
  };
4573
+ invoice_push_log: {
4574
+ Row: {
4575
+ connection_id: string | null;
4576
+ created_at: string;
4577
+ created_by: string;
4578
+ customer_id: string | null;
4579
+ id: string;
4580
+ last_error: string | null;
4581
+ last_polled_at: string | null;
4582
+ payload: import("./types").Json;
4583
+ provider_id: string;
4584
+ queue_id: string | null;
4585
+ status: string;
4586
+ updated_at: string;
4587
+ };
4588
+ Insert: {
4589
+ connection_id?: string | null;
4590
+ created_at?: string;
4591
+ created_by?: string;
4592
+ customer_id?: string | null;
4593
+ id?: string;
4594
+ last_error?: string | null;
4595
+ last_polled_at?: string | null;
4596
+ payload?: import("./types").Json;
4597
+ provider_id: string;
4598
+ queue_id?: string | null;
4599
+ status?: string;
4600
+ updated_at?: string;
4601
+ };
4602
+ Update: {
4603
+ connection_id?: string | null;
4604
+ created_at?: string;
4605
+ created_by?: string;
4606
+ customer_id?: string | null;
4607
+ id?: string;
4608
+ last_error?: string | null;
4609
+ last_polled_at?: string | null;
4610
+ payload?: import("./types").Json;
4611
+ provider_id?: string;
4612
+ queue_id?: string | null;
4613
+ status?: string;
4614
+ updated_at?: string;
4615
+ };
4616
+ Relationships: [{
4617
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
4618
+ columns: ["provider_id"];
4619
+ isOneToOne: false;
4620
+ referencedRelation: "external_invoice_providers";
4621
+ referencedColumns: ["provider"];
4622
+ }];
4623
+ };
3022
4624
  invoice_run_items: {
3023
4625
  Row: {
3024
4626
  booking_id: string | null;
@@ -3143,6 +4745,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3143
4745
  Row: {
3144
4746
  body_html: string | null;
3145
4747
  body_text: string | null;
4748
+ connection_id: string | null;
3146
4749
  created_at: string;
3147
4750
  error_message: string | null;
3148
4751
  external_id: string | null;
@@ -3161,6 +4764,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3161
4764
  Insert: {
3162
4765
  body_html?: string | null;
3163
4766
  body_text?: string | null;
4767
+ connection_id?: string | null;
3164
4768
  created_at?: string;
3165
4769
  error_message?: string | null;
3166
4770
  external_id?: string | null;
@@ -3179,6 +4783,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3179
4783
  Update: {
3180
4784
  body_html?: string | null;
3181
4785
  body_text?: string | null;
4786
+ connection_id?: string | null;
3182
4787
  created_at?: string;
3183
4788
  error_message?: string | null;
3184
4789
  external_id?: string | null;
@@ -3195,6 +4800,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3195
4800
  updated_at?: string;
3196
4801
  };
3197
4802
  Relationships: [{
4803
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4804
+ columns: ["connection_id"];
4805
+ isOneToOne: false;
4806
+ referencedRelation: "email_auth_connections";
4807
+ referencedColumns: ["id"];
4808
+ }, {
4809
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4810
+ columns: ["connection_id"];
4811
+ isOneToOne: false;
4812
+ referencedRelation: "email_auth_connections_safe";
4813
+ referencedColumns: ["id"];
4814
+ }, {
3198
4815
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3199
4816
  columns: ["profile_id"];
3200
4817
  isOneToOne: false;
@@ -3478,6 +5095,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3478
5095
  role: string;
3479
5096
  tenant_id: string;
3480
5097
  updated_at: string;
5098
+ user_id: string | null;
3481
5099
  };
3482
5100
  Insert: {
3483
5101
  avatar_url?: string | null;
@@ -3493,6 +5111,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3493
5111
  role?: string;
3494
5112
  tenant_id: string;
3495
5113
  updated_at?: string;
5114
+ user_id?: string | null;
3496
5115
  };
3497
5116
  Update: {
3498
5117
  avatar_url?: string | null;
@@ -3508,6 +5127,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3508
5127
  role?: string;
3509
5128
  tenant_id?: string;
3510
5129
  updated_at?: string;
5130
+ user_id?: string | null;
3511
5131
  };
3512
5132
  Relationships: [{
3513
5133
  foreignKeyName: "monteurs_tenant_id_fkey";
@@ -3644,12 +5264,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3644
5264
  isOneToOne: false;
3645
5265
  referencedRelation: "offer_campaigns";
3646
5266
  referencedColumns: ["id"];
3647
- }, {
3648
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3649
- columns: ["product_id"];
3650
- isOneToOne: false;
3651
- referencedRelation: "products";
3652
- referencedColumns: ["id"];
3653
5267
  }];
3654
5268
  };
3655
5269
  offer_campaigns: {
@@ -3925,6 +5539,99 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3925
5539
  };
3926
5540
  Relationships: [];
3927
5541
  };
5542
+ order_cart_items: {
5543
+ Row: {
5544
+ cart_id: string;
5545
+ crates: number;
5546
+ crates_per_layer: number;
5547
+ created_at: string;
5548
+ id: string;
5549
+ order_item_id: string | null;
5550
+ plants_per_crate: number;
5551
+ product_id: string | null;
5552
+ product_name: string;
5553
+ };
5554
+ Insert: {
5555
+ cart_id: string;
5556
+ crates: number;
5557
+ crates_per_layer?: number;
5558
+ created_at?: string;
5559
+ id?: string;
5560
+ order_item_id?: string | null;
5561
+ plants_per_crate?: number;
5562
+ product_id?: string | null;
5563
+ product_name: string;
5564
+ };
5565
+ Update: {
5566
+ cart_id?: string;
5567
+ crates?: number;
5568
+ crates_per_layer?: number;
5569
+ created_at?: string;
5570
+ id?: string;
5571
+ order_item_id?: string | null;
5572
+ plants_per_crate?: number;
5573
+ product_id?: string | null;
5574
+ product_name?: string;
5575
+ };
5576
+ Relationships: [{
5577
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5578
+ columns: ["cart_id"];
5579
+ isOneToOne: false;
5580
+ referencedRelation: "order_carts";
5581
+ referencedColumns: ["id"];
5582
+ }, {
5583
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5584
+ columns: ["order_item_id"];
5585
+ isOneToOne: false;
5586
+ referencedRelation: "order_items";
5587
+ referencedColumns: ["id"];
5588
+ }, {
5589
+ foreignKeyName: "order_cart_items_product_id_fkey";
5590
+ columns: ["product_id"];
5591
+ isOneToOne: false;
5592
+ referencedRelation: "products";
5593
+ referencedColumns: ["id"];
5594
+ }];
5595
+ };
5596
+ order_carts: {
5597
+ Row: {
5598
+ cart_number: number;
5599
+ created_at: string;
5600
+ id: string;
5601
+ is_auto: boolean;
5602
+ is_complete: boolean;
5603
+ notes: string | null;
5604
+ order_id: string;
5605
+ updated_at: string;
5606
+ };
5607
+ Insert: {
5608
+ cart_number: number;
5609
+ created_at?: string;
5610
+ id?: string;
5611
+ is_auto?: boolean;
5612
+ is_complete?: boolean;
5613
+ notes?: string | null;
5614
+ order_id: string;
5615
+ updated_at?: string;
5616
+ };
5617
+ Update: {
5618
+ cart_number?: number;
5619
+ created_at?: string;
5620
+ id?: string;
5621
+ is_auto?: boolean;
5622
+ is_complete?: boolean;
5623
+ notes?: string | null;
5624
+ order_id?: string;
5625
+ updated_at?: string;
5626
+ };
5627
+ Relationships: [{
5628
+ foreignKeyName: "order_carts_order_id_fkey";
5629
+ columns: ["order_id"];
5630
+ isOneToOne: false;
5631
+ referencedRelation: "orders";
5632
+ referencedColumns: ["id"];
5633
+ }];
5634
+ };
3928
5635
  order_field_options: {
3929
5636
  Row: {
3930
5637
  created_at: string;
@@ -4126,6 +5833,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
4126
5833
  };
4127
5834
  Relationships: [];
4128
5835
  };
5836
+ pickstation_print_log: {
5837
+ Row: {
5838
+ customer_name: string | null;
5839
+ documents: string[];
5840
+ id: string;
5841
+ ip_address: string | null;
5842
+ order_id: string;
5843
+ order_number: string | null;
5844
+ printed_at: string;
5845
+ };
5846
+ Insert: {
5847
+ customer_name?: string | null;
5848
+ documents?: string[];
5849
+ id?: string;
5850
+ ip_address?: string | null;
5851
+ order_id: string;
5852
+ order_number?: string | null;
5853
+ printed_at?: string;
5854
+ };
5855
+ Update: {
5856
+ customer_name?: string | null;
5857
+ documents?: string[];
5858
+ id?: string;
5859
+ ip_address?: string | null;
5860
+ order_id?: string;
5861
+ order_number?: string | null;
5862
+ printed_at?: string;
5863
+ };
5864
+ Relationships: [];
5865
+ };
4129
5866
  pipeline_settings: {
4130
5867
  Row: {
4131
5868
  created_at: string;
@@ -4286,13 +6023,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
4286
6023
  Row: {
4287
6024
  barcode: string | null;
4288
6025
  batch: string;
6026
+ crates_per_layer: number;
4289
6027
  created_at: string;
4290
6028
  custom_fields: import("./types").Json;
4291
6029
  id: string;
4292
6030
  image_url: string | null;
4293
6031
  incoming_quantity: number;
6032
+ layers_per_cart: number;
4294
6033
  location: string;
4295
6034
  min_quantity: number;
6035
+ plants_per_crate: number;
4296
6036
  product: string;
4297
6037
  product_type: string;
4298
6038
  purchase_price: number | null;
@@ -4305,13 +6045,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
4305
6045
  Insert: {
4306
6046
  barcode?: string | null;
4307
6047
  batch: string;
6048
+ crates_per_layer?: number;
4308
6049
  created_at?: string;
4309
6050
  custom_fields?: import("./types").Json;
4310
6051
  id?: string;
4311
6052
  image_url?: string | null;
4312
6053
  incoming_quantity?: number;
6054
+ layers_per_cart?: number;
4313
6055
  location: string;
4314
6056
  min_quantity?: number;
6057
+ plants_per_crate?: number;
4315
6058
  product: string;
4316
6059
  product_type?: string;
4317
6060
  purchase_price?: number | null;
@@ -4324,13 +6067,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
4324
6067
  Update: {
4325
6068
  barcode?: string | null;
4326
6069
  batch?: string;
6070
+ crates_per_layer?: number;
4327
6071
  created_at?: string;
4328
6072
  custom_fields?: import("./types").Json;
4329
6073
  id?: string;
4330
6074
  image_url?: string | null;
4331
6075
  incoming_quantity?: number;
6076
+ layers_per_cart?: number;
4332
6077
  location?: string;
4333
6078
  min_quantity?: number;
6079
+ plants_per_crate?: number;
4334
6080
  product?: string;
4335
6081
  product_type?: string;
4336
6082
  purchase_price?: number | null;
@@ -5272,6 +7018,141 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5272
7018
  };
5273
7019
  Relationships: [];
5274
7020
  };
7021
+ time_entries: {
7022
+ Row: {
7023
+ created_at: string;
7024
+ employee_id: string;
7025
+ entry_date: string;
7026
+ hours: number;
7027
+ id: string;
7028
+ notes: string | null;
7029
+ overtime: number;
7030
+ undertime: number;
7031
+ updated_at: string;
7032
+ };
7033
+ Insert: {
7034
+ created_at?: string;
7035
+ employee_id: string;
7036
+ entry_date: string;
7037
+ hours?: number;
7038
+ id?: string;
7039
+ notes?: string | null;
7040
+ overtime?: number;
7041
+ undertime?: number;
7042
+ updated_at?: string;
7043
+ };
7044
+ Update: {
7045
+ created_at?: string;
7046
+ employee_id?: string;
7047
+ entry_date?: string;
7048
+ hours?: number;
7049
+ id?: string;
7050
+ notes?: string | null;
7051
+ overtime?: number;
7052
+ undertime?: number;
7053
+ updated_at?: string;
7054
+ };
7055
+ Relationships: [{
7056
+ foreignKeyName: "time_entries_employee_id_fkey";
7057
+ columns: ["employee_id"];
7058
+ isOneToOne: false;
7059
+ referencedRelation: "monteurs";
7060
+ referencedColumns: ["id"];
7061
+ }];
7062
+ };
7063
+ time_logs: {
7064
+ Row: {
7065
+ created_at: string;
7066
+ employee_id: string;
7067
+ end_time: string | null;
7068
+ id: string;
7069
+ notes: string | null;
7070
+ overtime_hours: number;
7071
+ overtime_type: string | null;
7072
+ regular_hours: number;
7073
+ start_time: string;
7074
+ travel_cost: number | null;
7075
+ travel_distance_km: number | null;
7076
+ type: string;
7077
+ updated_at: string;
7078
+ };
7079
+ Insert: {
7080
+ created_at?: string;
7081
+ employee_id: string;
7082
+ end_time?: string | null;
7083
+ id?: string;
7084
+ notes?: string | null;
7085
+ overtime_hours?: number;
7086
+ overtime_type?: string | null;
7087
+ regular_hours?: number;
7088
+ start_time?: string;
7089
+ travel_cost?: number | null;
7090
+ travel_distance_km?: number | null;
7091
+ type: string;
7092
+ updated_at?: string;
7093
+ };
7094
+ Update: {
7095
+ created_at?: string;
7096
+ employee_id?: string;
7097
+ end_time?: string | null;
7098
+ id?: string;
7099
+ notes?: string | null;
7100
+ overtime_hours?: number;
7101
+ overtime_type?: string | null;
7102
+ regular_hours?: number;
7103
+ start_time?: string;
7104
+ travel_cost?: number | null;
7105
+ travel_distance_km?: number | null;
7106
+ type?: string;
7107
+ updated_at?: string;
7108
+ };
7109
+ Relationships: [{
7110
+ foreignKeyName: "time_logs_employee_id_fkey";
7111
+ columns: ["employee_id"];
7112
+ isOneToOne: false;
7113
+ referencedRelation: "monteurs";
7114
+ referencedColumns: ["id"];
7115
+ }];
7116
+ };
7117
+ time_off_entries: {
7118
+ Row: {
7119
+ created_at: string;
7120
+ employee_id: string;
7121
+ entry_date: string;
7122
+ hours: number;
7123
+ id: string;
7124
+ notes: string | null;
7125
+ type: string;
7126
+ updated_at: string;
7127
+ };
7128
+ Insert: {
7129
+ created_at?: string;
7130
+ employee_id: string;
7131
+ entry_date: string;
7132
+ hours?: number;
7133
+ id?: string;
7134
+ notes?: string | null;
7135
+ type: string;
7136
+ updated_at?: string;
7137
+ };
7138
+ Update: {
7139
+ created_at?: string;
7140
+ employee_id?: string;
7141
+ entry_date?: string;
7142
+ hours?: number;
7143
+ id?: string;
7144
+ notes?: string | null;
7145
+ type?: string;
7146
+ updated_at?: string;
7147
+ };
7148
+ Relationships: [{
7149
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7150
+ columns: ["employee_id"];
7151
+ isOneToOne: false;
7152
+ referencedRelation: "monteurs";
7153
+ referencedColumns: ["id"];
7154
+ }];
7155
+ };
5275
7156
  trade_item_drafts: {
5276
7157
  Row: {
5277
7158
  connection_id: string | null;
@@ -5569,9 +7450,11 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5569
7450
  fetched_at: string;
5570
7451
  invoice_number: string;
5571
7452
  line_number: number;
7453
+ line_total: number | null;
5572
7454
  quantity: number | null;
5573
7455
  unit_price: number | null;
5574
7456
  vat_code: string | null;
7457
+ vat_rate: number | null;
5575
7458
  };
5576
7459
  Insert: {
5577
7460
  article_code?: string | null;
@@ -5581,9 +7464,11 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5581
7464
  fetched_at?: string;
5582
7465
  invoice_number: string;
5583
7466
  line_number: number;
7467
+ line_total?: number | null;
5584
7468
  quantity?: number | null;
5585
7469
  unit_price?: number | null;
5586
7470
  vat_code?: string | null;
7471
+ vat_rate?: number | null;
5587
7472
  };
5588
7473
  Update: {
5589
7474
  article_code?: string | null;
@@ -5593,9 +7478,11 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5593
7478
  fetched_at?: string;
5594
7479
  invoice_number?: string;
5595
7480
  line_number?: number;
7481
+ line_total?: number | null;
5596
7482
  quantity?: number | null;
5597
7483
  unit_price?: number | null;
5598
7484
  vat_code?: string | null;
7485
+ vat_rate?: number | null;
5599
7486
  };
5600
7487
  Relationships: [{
5601
7488
  foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
@@ -5772,9 +7659,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5772
7659
  invoice_date: string | null;
5773
7660
  invoice_number: string;
5774
7661
  modified_at: string | null;
7662
+ outstanding_amount: number | null;
5775
7663
  status: string | null;
7664
+ status_label: string | null;
5776
7665
  total_excl: number | null;
5777
7666
  total_incl: number | null;
7667
+ vat_amount: number | null;
5778
7668
  };
5779
7669
  Insert: {
5780
7670
  connection_id: string;
@@ -5786,9 +7676,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5786
7676
  invoice_date?: string | null;
5787
7677
  invoice_number: string;
5788
7678
  modified_at?: string | null;
7679
+ outstanding_amount?: number | null;
5789
7680
  status?: string | null;
7681
+ status_label?: string | null;
5790
7682
  total_excl?: number | null;
5791
7683
  total_incl?: number | null;
7684
+ vat_amount?: number | null;
5792
7685
  };
5793
7686
  Update: {
5794
7687
  connection_id?: string;
@@ -5800,9 +7693,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5800
7693
  invoice_date?: string | null;
5801
7694
  invoice_number?: string;
5802
7695
  modified_at?: string | null;
7696
+ outstanding_amount?: number | null;
5803
7697
  status?: string | null;
7698
+ status_label?: string | null;
5804
7699
  total_excl?: number | null;
5805
7700
  total_incl?: number | null;
7701
+ vat_amount?: number | null;
5806
7702
  };
5807
7703
  Relationships: [{
5808
7704
  foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
@@ -5836,6 +7732,57 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5836
7732
  };
5837
7733
  Relationships: [];
5838
7734
  };
7735
+ twinfield_push_queue: {
7736
+ Row: {
7737
+ attempts: number;
7738
+ connection_id: string;
7739
+ created_at: string;
7740
+ external_id: string | null;
7741
+ id: string;
7742
+ idempotency_key: string;
7743
+ last_error: string | null;
7744
+ next_attempt_at: string;
7745
+ office_code: string;
7746
+ payload: import("./types").Json;
7747
+ status: string;
7748
+ updated_at: string;
7749
+ };
7750
+ Insert: {
7751
+ attempts?: number;
7752
+ connection_id: string;
7753
+ created_at?: string;
7754
+ external_id?: string | null;
7755
+ id?: string;
7756
+ idempotency_key: string;
7757
+ last_error?: string | null;
7758
+ next_attempt_at?: string;
7759
+ office_code: string;
7760
+ payload: import("./types").Json;
7761
+ status?: string;
7762
+ updated_at?: string;
7763
+ };
7764
+ Update: {
7765
+ attempts?: number;
7766
+ connection_id?: string;
7767
+ created_at?: string;
7768
+ external_id?: string | null;
7769
+ id?: string;
7770
+ idempotency_key?: string;
7771
+ last_error?: string | null;
7772
+ next_attempt_at?: string;
7773
+ office_code?: string;
7774
+ payload?: import("./types").Json;
7775
+ status?: string;
7776
+ updated_at?: string;
7777
+ };
7778
+ Relationships: [{
7779
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
7780
+ columns: ["connection_id"];
7781
+ isOneToOne: false;
7782
+ referencedRelation: "twinfield_connections";
7783
+ referencedColumns: ["id"];
7784
+ }];
7785
+ };
5839
7786
  twinfield_settings: {
5840
7787
  Row: {
5841
7788
  active_environment: string;
@@ -5947,6 +7894,117 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5947
7894
  referencedColumns: ["id"];
5948
7895
  }];
5949
7896
  };
7897
+ voorraad_media_upload_failures: {
7898
+ Row: {
7899
+ action: string;
7900
+ attempt_number: number;
7901
+ caller: string;
7902
+ client_user_id: string | null;
7903
+ content_type: string | null;
7904
+ created_at: string;
7905
+ environment: string;
7906
+ error_message: string | null;
7907
+ filename: string | null;
7908
+ id: string;
7909
+ idempotency_key: string | null;
7910
+ module: string;
7911
+ path: string;
7912
+ reference_id: string | null;
7913
+ request_body_hash: string | null;
7914
+ request_timestamp: number | null;
7915
+ response_content_type: string | null;
7916
+ response_status: number | null;
7917
+ size_bytes: number | null;
7918
+ };
7919
+ Insert: {
7920
+ action?: string;
7921
+ attempt_number?: number;
7922
+ caller?: string;
7923
+ client_user_id?: string | null;
7924
+ content_type?: string | null;
7925
+ created_at?: string;
7926
+ environment: string;
7927
+ error_message?: string | null;
7928
+ filename?: string | null;
7929
+ id?: string;
7930
+ idempotency_key?: string | null;
7931
+ module?: string;
7932
+ path: string;
7933
+ reference_id?: string | null;
7934
+ request_body_hash?: string | null;
7935
+ request_timestamp?: number | null;
7936
+ response_content_type?: string | null;
7937
+ response_status?: number | null;
7938
+ size_bytes?: number | null;
7939
+ };
7940
+ Update: {
7941
+ action?: string;
7942
+ attempt_number?: number;
7943
+ caller?: string;
7944
+ client_user_id?: string | null;
7945
+ content_type?: string | null;
7946
+ created_at?: string;
7947
+ environment?: string;
7948
+ error_message?: string | null;
7949
+ filename?: string | null;
7950
+ id?: string;
7951
+ idempotency_key?: string | null;
7952
+ module?: string;
7953
+ path?: string;
7954
+ reference_id?: string | null;
7955
+ request_body_hash?: string | null;
7956
+ request_timestamp?: number | null;
7957
+ response_content_type?: string | null;
7958
+ response_status?: number | null;
7959
+ size_bytes?: number | null;
7960
+ };
7961
+ Relationships: [];
7962
+ };
7963
+ voorraad_publish_attempts: {
7964
+ Row: {
7965
+ action: string;
7966
+ connection_id: string | null;
7967
+ created_at: string;
7968
+ error: string | null;
7969
+ gateway_attempt_id: string | null;
7970
+ gateway_status: number | null;
7971
+ id: string;
7972
+ intent: string;
7973
+ ok: boolean;
7974
+ request_summary: import("./types").Json | null;
7975
+ trade_item_id: string | null;
7976
+ user_id: string;
7977
+ };
7978
+ Insert: {
7979
+ action: string;
7980
+ connection_id?: string | null;
7981
+ created_at?: string;
7982
+ error?: string | null;
7983
+ gateway_attempt_id?: string | null;
7984
+ gateway_status?: number | null;
7985
+ id?: string;
7986
+ intent: string;
7987
+ ok: boolean;
7988
+ request_summary?: import("./types").Json | null;
7989
+ trade_item_id?: string | null;
7990
+ user_id: string;
7991
+ };
7992
+ Update: {
7993
+ action?: string;
7994
+ connection_id?: string | null;
7995
+ created_at?: string;
7996
+ error?: string | null;
7997
+ gateway_attempt_id?: string | null;
7998
+ gateway_status?: number | null;
7999
+ id?: string;
8000
+ intent?: string;
8001
+ ok?: boolean;
8002
+ request_summary?: import("./types").Json | null;
8003
+ trade_item_id?: string | null;
8004
+ user_id?: string;
8005
+ };
8006
+ Relationships: [];
8007
+ };
5950
8008
  work_order_monteurs: {
5951
8009
  Row: {
5952
8010
  created_at: string;
@@ -6258,6 +8316,132 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6258
8316
  };
6259
8317
  Relationships: [];
6260
8318
  };
8319
+ external_invoices_grouped: {
8320
+ Row: {
8321
+ currency: string | null;
8322
+ customer_external_id: string | null;
8323
+ customer_name: string | null;
8324
+ customer_vat: string | null;
8325
+ due_at: string | null;
8326
+ group_key: string | null;
8327
+ invoice_number: string | null;
8328
+ is_merged: boolean | null;
8329
+ issued_at: string | null;
8330
+ modified_at: string | null;
8331
+ open_amount: number | null;
8332
+ paid_at: string | null;
8333
+ providers: string[] | null;
8334
+ source_count: number | null;
8335
+ sources: import("./types").Json | null;
8336
+ status: string | null;
8337
+ total_excl: number | null;
8338
+ total_incl: number | null;
8339
+ total_vat: number | null;
8340
+ };
8341
+ Relationships: [];
8342
+ };
8343
+ external_invoices_unified: {
8344
+ Row: {
8345
+ connection_id: string | null;
8346
+ currency: string | null;
8347
+ customer_external_id: string | null;
8348
+ customer_name: string | null;
8349
+ customer_vat: string | null;
8350
+ due_at: string | null;
8351
+ external_id: string | null;
8352
+ invoice_number: string | null;
8353
+ issued_at: string | null;
8354
+ open_amount: number | null;
8355
+ owner_user_id: string | null;
8356
+ paid_at: string | null;
8357
+ raw: import("./types").Json | null;
8358
+ source: string | null;
8359
+ status: string | null;
8360
+ synced_at: string | null;
8361
+ total_excl: number | null;
8362
+ total_incl: number | null;
8363
+ total_vat: number | null;
8364
+ };
8365
+ Relationships: [];
8366
+ };
8367
+ v_external_customers_exact: {
8368
+ Row: {
8369
+ account_number: string | null;
8370
+ city: string | null;
8371
+ coc_number: string | null;
8372
+ company_name: string | null;
8373
+ connection_id: string | null;
8374
+ country: string | null;
8375
+ currency: string | null;
8376
+ email: string | null;
8377
+ external_id: string | null;
8378
+ is_sales: boolean | null;
8379
+ is_supplier: boolean | null;
8380
+ language: string | null;
8381
+ modified_at: string | null;
8382
+ phone: string | null;
8383
+ postal_code: string | null;
8384
+ raw: import("./types").Json | null;
8385
+ source: string | null;
8386
+ street: string | null;
8387
+ synced_at: string | null;
8388
+ vat_number: string | null;
8389
+ website: string | null;
8390
+ };
8391
+ Insert: {
8392
+ account_number?: string | null;
8393
+ city?: string | null;
8394
+ coc_number?: string | null;
8395
+ company_name?: string | null;
8396
+ connection_id?: string | null;
8397
+ country?: string | null;
8398
+ currency?: string | null;
8399
+ email?: string | null;
8400
+ external_id?: string | null;
8401
+ is_sales?: boolean | null;
8402
+ is_supplier?: boolean | null;
8403
+ language?: string | null;
8404
+ modified_at?: string | null;
8405
+ phone?: string | null;
8406
+ postal_code?: string | null;
8407
+ raw?: import("./types").Json | null;
8408
+ source?: never;
8409
+ street?: string | null;
8410
+ synced_at?: string | null;
8411
+ vat_number?: string | null;
8412
+ website?: string | null;
8413
+ };
8414
+ Update: {
8415
+ account_number?: string | null;
8416
+ city?: string | null;
8417
+ coc_number?: string | null;
8418
+ company_name?: string | null;
8419
+ connection_id?: string | null;
8420
+ country?: string | null;
8421
+ currency?: string | null;
8422
+ email?: string | null;
8423
+ external_id?: string | null;
8424
+ is_sales?: boolean | null;
8425
+ is_supplier?: boolean | null;
8426
+ language?: string | null;
8427
+ modified_at?: string | null;
8428
+ phone?: string | null;
8429
+ postal_code?: string | null;
8430
+ raw?: import("./types").Json | null;
8431
+ source?: never;
8432
+ street?: string | null;
8433
+ synced_at?: string | null;
8434
+ vat_number?: string | null;
8435
+ website?: string | null;
8436
+ };
8437
+ Relationships: [{
8438
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
8439
+ columns: ["connection_id"];
8440
+ isOneToOne: false;
8441
+ referencedRelation: "exact_connections";
8442
+ referencedColumns: ["id"];
8443
+ }];
8444
+ };
6261
8445
  v_external_customers_floriday: {
6262
8446
  Row: {
6263
8447
  city: string | null;
@@ -6312,12 +8496,111 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6312
8496
  provider: string | null;
6313
8497
  raw: import("./types").Json | null;
6314
8498
  status: string | null;
6315
- street: string | null;
6316
- vat_number: string | null;
6317
- website: string | null;
8499
+ street: string | null;
8500
+ vat_number: string | null;
8501
+ website: string | null;
8502
+ };
8503
+ Relationships: [{
8504
+ foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
8505
+ columns: ["connection_id"];
8506
+ isOneToOne: false;
8507
+ referencedRelation: "twinfield_connections";
8508
+ referencedColumns: ["id"];
8509
+ }];
8510
+ };
8511
+ v_external_invoices_exact: {
8512
+ Row: {
8513
+ connection_id: string | null;
8514
+ currency: string | null;
8515
+ customer_external_id: string | null;
8516
+ customer_name: string | null;
8517
+ customer_vat: string | null;
8518
+ due_at: string | null;
8519
+ external_id: string | null;
8520
+ invoice_number: string | null;
8521
+ issued_at: string | null;
8522
+ open_amount: number | null;
8523
+ paid_at: string | null;
8524
+ raw: import("./types").Json | null;
8525
+ source: string | null;
8526
+ status: string | null;
8527
+ synced_at: string | null;
8528
+ total_excl: number | null;
8529
+ total_incl: number | null;
8530
+ total_vat: number | null;
8531
+ };
8532
+ Insert: {
8533
+ connection_id?: string | null;
8534
+ currency?: never;
8535
+ customer_external_id?: string | null;
8536
+ customer_name?: string | null;
8537
+ customer_vat?: never;
8538
+ due_at?: string | null;
8539
+ external_id?: string | null;
8540
+ invoice_number?: string | null;
8541
+ issued_at?: string | null;
8542
+ open_amount?: number | null;
8543
+ paid_at?: string | null;
8544
+ raw?: import("./types").Json | null;
8545
+ source?: never;
8546
+ status?: string | null;
8547
+ synced_at?: string | null;
8548
+ total_excl?: number | null;
8549
+ total_incl?: number | null;
8550
+ total_vat?: number | null;
8551
+ };
8552
+ Update: {
8553
+ connection_id?: string | null;
8554
+ currency?: never;
8555
+ customer_external_id?: string | null;
8556
+ customer_name?: string | null;
8557
+ customer_vat?: never;
8558
+ due_at?: string | null;
8559
+ external_id?: string | null;
8560
+ invoice_number?: string | null;
8561
+ issued_at?: string | null;
8562
+ open_amount?: number | null;
8563
+ paid_at?: string | null;
8564
+ raw?: import("./types").Json | null;
8565
+ source?: never;
8566
+ status?: string | null;
8567
+ synced_at?: string | null;
8568
+ total_excl?: number | null;
8569
+ total_incl?: number | null;
8570
+ total_vat?: number | null;
8571
+ };
8572
+ Relationships: [{
8573
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
8574
+ columns: ["connection_id"];
8575
+ isOneToOne: false;
8576
+ referencedRelation: "exact_connections";
8577
+ referencedColumns: ["id"];
8578
+ }];
8579
+ };
8580
+ v_external_invoices_twinfield: {
8581
+ Row: {
8582
+ connection_id: string | null;
8583
+ currency: string | null;
8584
+ customer_external_id: string | null;
8585
+ customer_name: string | null;
8586
+ customer_vat: string | null;
8587
+ due_at: string | null;
8588
+ external_id: string | null;
8589
+ invoice_number: string | null;
8590
+ issued_at: string | null;
8591
+ open_amount: number | null;
8592
+ owner_user_id: string | null;
8593
+ paid_at: string | null;
8594
+ raw: import("./types").Json | null;
8595
+ source: string | null;
8596
+ status: string | null;
8597
+ synced_at: string | null;
8598
+ total_excl: number | null;
8599
+ total_incl: number | null;
8600
+ total_vat: number | null;
6318
8601
  };
6319
8602
  Relationships: [{
6320
- foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
8603
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
6321
8604
  columns: ["connection_id"];
6322
8605
  isOneToOne: false;
6323
8606
  referencedRelation: "twinfield_connections";
@@ -6326,6 +8609,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6326
8609
  };
6327
8610
  };
6328
8611
  Functions: {
8612
+ _floriday_schedule_job: {
8613
+ Args: {
8614
+ p_apikey: string;
8615
+ p_jobname: string;
8616
+ p_schedule: string;
8617
+ p_timeout_ms: number;
8618
+ p_url: string;
8619
+ };
8620
+ Returns: number;
8621
+ };
8622
+ call_exact_route: {
8623
+ Args: {
8624
+ path: string;
8625
+ };
8626
+ Returns: number;
8627
+ };
8628
+ cleanup_old_bookings: {
8629
+ Args: never;
8630
+ Returns: number;
8631
+ };
8632
+ current_monteur_id: {
8633
+ Args: never;
8634
+ Returns: string;
8635
+ };
6329
8636
  dashboard_list_public_schema: {
6330
8637
  Args: never;
6331
8638
  Returns: {
@@ -6430,6 +8737,32 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6430
8737
  office_code: string;
6431
8738
  }[];
6432
8739
  };
8740
+ get_floriday_agreements_active: {
8741
+ Args: {
8742
+ p_on_date?: string;
8743
+ };
8744
+ Returns: {
8745
+ buyer_organization_id: string;
8746
+ data: import("./types").Json;
8747
+ floriday_id: string;
8748
+ status: string;
8749
+ valid_from: string;
8750
+ valid_until: string;
8751
+ }[];
8752
+ };
8753
+ get_floriday_clock_supplies_window: {
8754
+ Args: {
8755
+ p_from: string;
8756
+ p_to: string;
8757
+ };
8758
+ Returns: {
8759
+ auction_date: string;
8760
+ data: import("./types").Json;
8761
+ floriday_id: string;
8762
+ status: string;
8763
+ trade_item_id: string;
8764
+ }[];
8765
+ };
6433
8766
  get_floriday_cron_jobs: {
6434
8767
  Args: never;
6435
8768
  Returns: {
@@ -6439,6 +8772,56 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6439
8772
  url: string;
6440
8773
  }[];
6441
8774
  };
8775
+ get_floriday_delivery_locations: {
8776
+ Args: {
8777
+ p_organization_id: string;
8778
+ };
8779
+ Returns: {
8780
+ data: import("./types").Json;
8781
+ floriday_id: string;
8782
+ gln_code: string;
8783
+ name: string;
8784
+ }[];
8785
+ };
8786
+ get_floriday_fulfillment_orders_window: {
8787
+ Args: {
8788
+ p_from: string;
8789
+ p_to: string;
8790
+ };
8791
+ Returns: {
8792
+ auction_date: string;
8793
+ data: import("./types").Json;
8794
+ delivery_order_id: string;
8795
+ destination_warehouse_id: string;
8796
+ floriday_id: string;
8797
+ status: string;
8798
+ }[];
8799
+ };
8800
+ get_floriday_sales_orders_window: {
8801
+ Args: {
8802
+ p_from: string;
8803
+ p_to: string;
8804
+ };
8805
+ Returns: {
8806
+ buyer_organization_id: string;
8807
+ data: import("./types").Json;
8808
+ floriday_id: string;
8809
+ status: string;
8810
+ updated_at: string;
8811
+ }[];
8812
+ };
8813
+ get_floriday_sync_health: {
8814
+ Args: never;
8815
+ Returns: {
8816
+ entity_type: string;
8817
+ last_error: string;
8818
+ last_items_processed: number;
8819
+ last_sequence_number: number;
8820
+ last_success_at: string;
8821
+ last_synced_at: string;
8822
+ minutes_since_success: number;
8823
+ }[];
8824
+ };
6442
8825
  get_offer_by_link_code: {
6443
8826
  Args: {
6444
8827
  p_code: string;
@@ -6504,6 +8887,74 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6504
8887
  };
6505
8888
  Returns: string;
6506
8889
  };
8890
+ pickstation_get_orders_raw: {
8891
+ Args: never;
8892
+ Returns: import("./types").Json;
8893
+ };
8894
+ pickstation_get_settings: {
8895
+ Args: never;
8896
+ Returns: import("./types").Json;
8897
+ };
8898
+ pickstation_log_print: {
8899
+ Args: {
8900
+ p_customer_name: string;
8901
+ p_documents: string[];
8902
+ p_ip_address: string;
8903
+ p_order_id: string;
8904
+ p_order_number: string;
8905
+ };
8906
+ Returns: undefined;
8907
+ };
8908
+ refresh_floricode_derived_code_lists: {
8909
+ Args: never;
8910
+ Returns: {
8911
+ out_environment: string;
8912
+ out_list_name: string;
8913
+ out_row_count: number;
8914
+ }[];
8915
+ };
8916
+ reset_floriday_sync_cursor: {
8917
+ Args: {
8918
+ p_connection_id: string;
8919
+ p_entity_type: string;
8920
+ };
8921
+ Returns: undefined;
8922
+ };
8923
+ schedule_floriday_additional_services_sync: {
8924
+ Args: {
8925
+ p_apikey: string;
8926
+ p_url: string;
8927
+ };
8928
+ Returns: number;
8929
+ };
8930
+ schedule_floriday_agreement_calloffs_sync: {
8931
+ Args: {
8932
+ p_apikey: string;
8933
+ p_url: string;
8934
+ };
8935
+ Returns: number;
8936
+ };
8937
+ schedule_floriday_agreements_sync: {
8938
+ Args: {
8939
+ p_apikey: string;
8940
+ p_url: string;
8941
+ };
8942
+ Returns: number;
8943
+ };
8944
+ schedule_floriday_base_items_sync: {
8945
+ Args: {
8946
+ p_apikey: string;
8947
+ p_url: string;
8948
+ };
8949
+ Returns: number;
8950
+ };
8951
+ schedule_floriday_blanket_orders_sync: {
8952
+ Args: {
8953
+ p_apikey: string;
8954
+ p_url: string;
8955
+ };
8956
+ Returns: number;
8957
+ };
6507
8958
  schedule_floriday_carriers_sync: {
6508
8959
  Args: {
6509
8960
  p_apikey: string;
@@ -6511,6 +8962,34 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6511
8962
  };
6512
8963
  Returns: number;
6513
8964
  };
8965
+ schedule_floriday_clock_presales_sync: {
8966
+ Args: {
8967
+ p_apikey: string;
8968
+ p_url: string;
8969
+ };
8970
+ Returns: number;
8971
+ };
8972
+ schedule_floriday_clock_supplies_sync: {
8973
+ Args: {
8974
+ p_apikey: string;
8975
+ p_url: string;
8976
+ };
8977
+ Returns: number;
8978
+ };
8979
+ schedule_floriday_collections_sync: {
8980
+ Args: {
8981
+ p_apikey: string;
8982
+ p_url: string;
8983
+ };
8984
+ Returns: number;
8985
+ };
8986
+ schedule_floriday_commercial_service_types_sync: {
8987
+ Args: {
8988
+ p_apikey: string;
8989
+ p_url: string;
8990
+ };
8991
+ Returns: number;
8992
+ };
6514
8993
  schedule_floriday_connections_sync: {
6515
8994
  Args: {
6516
8995
  p_apikey: string;
@@ -6518,6 +8997,20 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6518
8997
  };
6519
8998
  Returns: number;
6520
8999
  };
9000
+ schedule_floriday_contract_trade_item_groups_sync: {
9001
+ Args: {
9002
+ p_apikey: string;
9003
+ p_url: string;
9004
+ };
9005
+ Returns: number;
9006
+ };
9007
+ schedule_floriday_contracts_sync: {
9008
+ Args: {
9009
+ p_apikey: string;
9010
+ p_url: string;
9011
+ };
9012
+ Returns: number;
9013
+ };
6521
9014
  schedule_floriday_customer_organizations_sync: {
6522
9015
  Args: {
6523
9016
  p_apikey: string;
@@ -6525,6 +9018,48 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6525
9018
  };
6526
9019
  Returns: number;
6527
9020
  };
9021
+ schedule_floriday_customer_stickers_sync: {
9022
+ Args: {
9023
+ p_apikey: string;
9024
+ p_url: string;
9025
+ };
9026
+ Returns: number;
9027
+ };
9028
+ schedule_floriday_delivery_condition_sets_sync: {
9029
+ Args: {
9030
+ p_apikey: string;
9031
+ p_url: string;
9032
+ };
9033
+ Returns: number;
9034
+ };
9035
+ schedule_floriday_delivery_locations_sync: {
9036
+ Args: {
9037
+ p_apikey: string;
9038
+ p_url: string;
9039
+ };
9040
+ Returns: number;
9041
+ };
9042
+ schedule_floriday_delivery_orders_sync: {
9043
+ Args: {
9044
+ p_apikey: string;
9045
+ p_url: string;
9046
+ };
9047
+ Returns: number;
9048
+ };
9049
+ schedule_floriday_fulfillment_orders_sync: {
9050
+ Args: {
9051
+ p_apikey: string;
9052
+ p_url: string;
9053
+ };
9054
+ Returns: number;
9055
+ };
9056
+ schedule_floriday_invoices_sync: {
9057
+ Args: {
9058
+ p_apikey: string;
9059
+ p_url: string;
9060
+ };
9061
+ Returns: number;
9062
+ };
6528
9063
  schedule_floriday_network_sync: {
6529
9064
  Args: {
6530
9065
  p_apikey: string;
@@ -6532,6 +9067,34 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6532
9067
  };
6533
9068
  Returns: number;
6534
9069
  };
9070
+ schedule_floriday_packings_sync: {
9071
+ Args: {
9072
+ p_apikey: string;
9073
+ p_url: string;
9074
+ };
9075
+ Returns: number;
9076
+ };
9077
+ schedule_floriday_price_groups_sync: {
9078
+ Args: {
9079
+ p_apikey: string;
9080
+ p_url: string;
9081
+ };
9082
+ Returns: number;
9083
+ };
9084
+ schedule_floriday_reference_data_refresh: {
9085
+ Args: {
9086
+ p_apikey: string;
9087
+ p_url: string;
9088
+ };
9089
+ Returns: number;
9090
+ };
9091
+ schedule_floriday_sales_strategies_sync: {
9092
+ Args: {
9093
+ p_apikey: string;
9094
+ p_url: string;
9095
+ };
9096
+ Returns: number;
9097
+ };
6535
9098
  schedule_floriday_salesorders_sync: {
6536
9099
  Args: {
6537
9100
  p_apikey: string;
@@ -6546,6 +9109,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6546
9109
  };
6547
9110
  Returns: number;
6548
9111
  };
9112
+ schedule_floriday_trade_item_classifications_sync: {
9113
+ Args: {
9114
+ p_apikey: string;
9115
+ p_url: string;
9116
+ };
9117
+ Returns: number;
9118
+ };
6549
9119
  schedule_floriday_trade_items_sync: {
6550
9120
  Args: {
6551
9121
  p_apikey: string;
@@ -6553,6 +9123,20 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6553
9123
  };
6554
9124
  Returns: number;
6555
9125
  };
9126
+ schedule_floriday_trips_sync: {
9127
+ Args: {
9128
+ p_apikey: string;
9129
+ p_url: string;
9130
+ };
9131
+ Returns: number;
9132
+ };
9133
+ schedule_floriday_warehouses_sync: {
9134
+ Args: {
9135
+ p_apikey: string;
9136
+ p_url: string;
9137
+ };
9138
+ Returns: number;
9139
+ };
6556
9140
  schedule_twinfield_customers_sync: {
6557
9141
  Args: {
6558
9142
  p_apikey: string;
@@ -6581,6 +9165,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6581
9165
  };
6582
9166
  Returns: number;
6583
9167
  };
9168
+ schedule_twinfield_push_queue_flush: {
9169
+ Args: {
9170
+ p_apikey: string;
9171
+ p_cron_secret?: string;
9172
+ p_url: string;
9173
+ };
9174
+ Returns: number;
9175
+ };
6584
9176
  schedule_twinfield_token_refresh: {
6585
9177
  Args: {
6586
9178
  p_apikey: string;
@@ -6619,8 +9211,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6619
9211
  };
6620
9212
  };
6621
9213
  Enums: {
6622
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9214
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
6623
9215
  exact_env: "staging" | "live";
9216
+ exact_push_status: "pending" | "sent" | "error";
6624
9217
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6625
9218
  };
6626
9219
  CompositeTypes: { [_ in never]: never; };