@flowselections/mailbox-orders 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist-lib/components/CartAssignmentWizard.d.ts +6 -0
  2. package/dist-lib/components/CartAssignmentWizard.d.ts.map +1 -0
  3. package/dist-lib/components/CartAssignmentWizard.js +199 -0
  4. package/dist-lib/components/MailboxProcessedPage.d.ts.map +1 -1
  5. package/dist-lib/components/MailboxProcessedPage.js +25 -4
  6. package/dist-lib/components/MailboxProposalsPage.d.ts.map +1 -1
  7. package/dist-lib/components/MailboxProposalsPage.js +272 -34
  8. package/dist-lib/components/SearchableSelect.d.ts +2 -1
  9. package/dist-lib/components/SearchableSelect.d.ts.map +1 -1
  10. package/dist-lib/components/SearchableSelect.js +4 -3
  11. package/dist-lib/index.d.ts +0 -1
  12. package/dist-lib/index.d.ts.map +1 -1
  13. package/dist-lib/index.js +2 -4
  14. package/dist-lib/integrations/supabase/auth-attacher.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/auth-attacher.js +37 -3
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2762 -145
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.d.ts +2762 -145
  19. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.server.d.ts +2762 -145
  21. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +2849 -149
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/types.js +2 -0
  25. package/dist-lib/lib/mailbox-template.functions.d.ts +34602 -18900
  26. package/dist-lib/lib/mailbox-template.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/mailbox.functions.d.ts +130480 -33017
  28. package/dist-lib/lib/mailbox.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/mailbox.functions.js +392 -18
  30. package/package.json +2 -7
@@ -1,6 +1,48 @@
1
1
  import type { Database } from './types';
2
2
  export declare const supabase: 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;
@@ -269,6 +311,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
269
311
  invoice_run_id: string | null;
270
312
  invoice_status: string | null;
271
313
  invoiced_at: string | null;
314
+ notes: string | null;
272
315
  number_of_people: number;
273
316
  room_id: string;
274
317
  start_time: string;
@@ -293,6 +336,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
293
336
  invoice_run_id?: string | null;
294
337
  invoice_status?: string | null;
295
338
  invoiced_at?: string | null;
339
+ notes?: string | null;
296
340
  number_of_people?: number;
297
341
  room_id: string;
298
342
  start_time: string;
@@ -317,6 +361,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
317
361
  invoice_run_id?: string | null;
318
362
  invoice_status?: string | null;
319
363
  invoiced_at?: string | null;
364
+ notes?: string | null;
320
365
  number_of_people?: number;
321
366
  room_id?: string;
322
367
  start_time?: string;
@@ -400,6 +445,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
400
445
  referencedColumns: ["id"];
401
446
  }];
402
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
+ };
403
493
  carriers: {
404
494
  Row: {
405
495
  address: string | null;
@@ -408,11 +498,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
408
498
  delivery_days: number | null;
409
499
  email: string | null;
410
500
  id: string;
501
+ is_default: boolean;
411
502
  name: string;
412
503
  notes: string | null;
413
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;
414
510
  signup_time_1: string | null;
415
511
  signup_time_2: string | null;
512
+ sort_order: number;
416
513
  updated_at: string;
417
514
  user_id: string;
418
515
  };
@@ -423,11 +520,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
423
520
  delivery_days?: number | null;
424
521
  email?: string | null;
425
522
  id?: string;
523
+ is_default?: boolean;
426
524
  name: string;
427
525
  notes?: string | null;
428
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;
429
532
  signup_time_1?: string | null;
430
533
  signup_time_2?: string | null;
534
+ sort_order?: number;
431
535
  updated_at?: string;
432
536
  user_id: string;
433
537
  };
@@ -438,16 +542,62 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
438
542
  delivery_days?: number | null;
439
543
  email?: string | null;
440
544
  id?: string;
545
+ is_default?: boolean;
441
546
  name?: string;
442
547
  notes?: string | null;
443
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;
444
554
  signup_time_1?: string | null;
445
555
  signup_time_2?: string | null;
556
+ sort_order?: number;
446
557
  updated_at?: string;
447
558
  user_id?: string;
448
559
  };
449
560
  Relationships: [];
450
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
+ };
451
601
  collections: {
452
602
  Row: {
453
603
  created_at: string;
@@ -559,50 +709,74 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
559
709
  customer_delivery_locations: {
560
710
  Row: {
561
711
  address_line: string | null;
712
+ carrier_assignment_source: string;
713
+ carrier_id: string | null;
562
714
  city: string | null;
563
715
  country: string | null;
564
716
  created_at: string;
565
717
  customer_id: string;
566
718
  floriday_location_id: string | null;
567
719
  gln: string | null;
720
+ house_number: string | null;
568
721
  id: string;
569
722
  is_primary: boolean;
570
723
  name: string | null;
571
724
  postal_code: string | null;
725
+ province: string | null;
572
726
  raw: import("./types").Json | null;
727
+ self_pickup: boolean;
728
+ street: string | null;
573
729
  updated_at: string;
574
730
  };
575
731
  Insert: {
576
732
  address_line?: string | null;
733
+ carrier_assignment_source?: string;
734
+ carrier_id?: string | null;
577
735
  city?: string | null;
578
736
  country?: string | null;
579
737
  created_at?: string;
580
738
  customer_id: string;
581
739
  floriday_location_id?: string | null;
582
740
  gln?: string | null;
741
+ house_number?: string | null;
583
742
  id?: string;
584
743
  is_primary?: boolean;
585
744
  name?: string | null;
586
745
  postal_code?: string | null;
746
+ province?: string | null;
587
747
  raw?: import("./types").Json | null;
748
+ self_pickup?: boolean;
749
+ street?: string | null;
588
750
  updated_at?: string;
589
751
  };
590
752
  Update: {
591
753
  address_line?: string | null;
754
+ carrier_assignment_source?: string;
755
+ carrier_id?: string | null;
592
756
  city?: string | null;
593
757
  country?: string | null;
594
758
  created_at?: string;
595
759
  customer_id?: string;
596
760
  floriday_location_id?: string | null;
597
761
  gln?: string | null;
762
+ house_number?: string | null;
598
763
  id?: string;
599
764
  is_primary?: boolean;
600
765
  name?: string | null;
601
766
  postal_code?: string | null;
767
+ province?: string | null;
602
768
  raw?: import("./types").Json | null;
769
+ self_pickup?: boolean;
770
+ street?: string | null;
603
771
  updated_at?: string;
604
772
  };
605
773
  Relationships: [{
774
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
775
+ columns: ["carrier_id"];
776
+ isOneToOne: false;
777
+ referencedRelation: "carriers";
778
+ referencedColumns: ["id"];
779
+ }, {
606
780
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
607
781
  columns: ["customer_id"];
608
782
  isOneToOne: false;
@@ -1405,6 +1579,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1405
1579
  referencedColumns: ["id"];
1406
1580
  }];
1407
1581
  };
1582
+ email_auth_purpose_settings: {
1583
+ Row: {
1584
+ default_cc: string[];
1585
+ purpose: string;
1586
+ reply_to: string | null;
1587
+ updated_at: string;
1588
+ updated_by: string | null;
1589
+ };
1590
+ Insert: {
1591
+ default_cc?: string[];
1592
+ purpose: string;
1593
+ reply_to?: string | null;
1594
+ updated_at?: string;
1595
+ updated_by?: string | null;
1596
+ };
1597
+ Update: {
1598
+ default_cc?: string[];
1599
+ purpose?: string;
1600
+ reply_to?: string | null;
1601
+ updated_at?: string;
1602
+ updated_by?: string | null;
1603
+ };
1604
+ Relationships: [];
1605
+ };
1408
1606
  email_auth_token_refresh_log: {
1409
1607
  Row: {
1410
1608
  connection_id: string;
@@ -2167,6 +2365,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2167
2365
  referencedColumns: ["id"];
2168
2366
  }];
2169
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
+ };
2170
2413
  exact_refresh_locks: {
2171
2414
  Row: {
2172
2415
  environment: Database["public"]["Enums"]["exact_env"];
@@ -2229,6 +2472,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2229
2472
  connection_id: string;
2230
2473
  last_error: string | null;
2231
2474
  last_modified_cursor: string | null;
2475
+ last_modified_cursor_customers: string | null;
2476
+ last_modified_cursor_invoices: string | null;
2232
2477
  last_synced_at: string | null;
2233
2478
  status: string;
2234
2479
  updated_at: string;
@@ -2237,6 +2482,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2237
2482
  connection_id: string;
2238
2483
  last_error?: string | null;
2239
2484
  last_modified_cursor?: string | null;
2485
+ last_modified_cursor_customers?: string | null;
2486
+ last_modified_cursor_invoices?: string | null;
2240
2487
  last_synced_at?: string | null;
2241
2488
  status?: string;
2242
2489
  updated_at?: string;
@@ -2245,6 +2492,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2245
2492
  connection_id?: string;
2246
2493
  last_error?: string | null;
2247
2494
  last_modified_cursor?: string | null;
2495
+ last_modified_cursor_customers?: string | null;
2496
+ last_modified_cursor_invoices?: string | null;
2248
2497
  last_synced_at?: string | null;
2249
2498
  status?: string;
2250
2499
  updated_at?: string;
@@ -2287,6 +2536,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2287
2536
  };
2288
2537
  Relationships: [];
2289
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
+ };
2290
2587
  extra_categories: {
2291
2588
  Row: {
2292
2589
  created_at: string;
@@ -2311,12 +2608,40 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2311
2608
  };
2312
2609
  Relationships: [];
2313
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
+ };
2314
2638
  extras: {
2315
2639
  Row: {
2316
2640
  category: string;
2317
2641
  created_at: string;
2318
2642
  exact_article_id: string | null;
2319
2643
  id: string;
2644
+ image_url: string | null;
2320
2645
  is_active: boolean;
2321
2646
  name: string;
2322
2647
  price: number;
@@ -2327,6 +2652,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2327
2652
  created_at?: string;
2328
2653
  exact_article_id?: string | null;
2329
2654
  id?: string;
2655
+ image_url?: string | null;
2330
2656
  is_active?: boolean;
2331
2657
  name: string;
2332
2658
  price?: number;
@@ -2337,6 +2663,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2337
2663
  created_at?: string;
2338
2664
  exact_article_id?: string | null;
2339
2665
  id?: string;
2666
+ image_url?: string | null;
2340
2667
  is_active?: boolean;
2341
2668
  name?: string;
2342
2669
  price?: number;
@@ -2434,230 +2761,1280 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2434
2761
  };
2435
2762
  Relationships: [];
2436
2763
  };
2437
- floriday_carriers_cache: {
2764
+ floriday_additional_services_cache: {
2438
2765
  Row: {
2439
- connection_id: string | null;
2440
- created_at: string;
2766
+ connection_id: string;
2441
2767
  data: import("./types").Json;
2442
2768
  fetched_at: string;
2443
- gln_code: string | null;
2444
- id: string;
2445
- name: string | null;
2446
- organization_id: string;
2769
+ floriday_id: string;
2770
+ is_deleted: boolean;
2771
+ sequence_number: number;
2447
2772
  updated_at: string;
2448
2773
  };
2449
2774
  Insert: {
2450
- connection_id?: string | null;
2451
- created_at?: string;
2775
+ connection_id: string;
2452
2776
  data: import("./types").Json;
2453
2777
  fetched_at?: string;
2454
- gln_code?: string | null;
2455
- id?: string;
2456
- name?: string | null;
2457
- organization_id: string;
2778
+ floriday_id: string;
2779
+ is_deleted?: boolean;
2780
+ sequence_number?: number;
2458
2781
  updated_at?: string;
2459
2782
  };
2460
2783
  Update: {
2461
- connection_id?: string | null;
2462
- created_at?: string;
2784
+ connection_id?: string;
2463
2785
  data?: import("./types").Json;
2464
2786
  fetched_at?: string;
2465
- gln_code?: string | null;
2466
- id?: string;
2467
- name?: string | null;
2468
- organization_id?: string;
2787
+ floriday_id?: string;
2788
+ is_deleted?: boolean;
2789
+ sequence_number?: number;
2469
2790
  updated_at?: string;
2470
2791
  };
2471
2792
  Relationships: [{
2472
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2793
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2473
2794
  columns: ["connection_id"];
2474
2795
  isOneToOne: false;
2475
2796
  referencedRelation: "floriday_connections";
2476
2797
  referencedColumns: ["id"];
2477
2798
  }];
2478
2799
  };
2479
- floriday_connections: {
2800
+ floriday_agreement_calloffs_cache: {
2480
2801
  Row: {
2481
- access_token: string | null;
2482
- api_key: string;
2483
- client_id: string;
2484
- client_secret: string;
2485
- created_at: string;
2486
- customers_endpoint: string | null;
2487
- environment: string;
2488
- 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;
2489
2808
  id: string;
2490
- is_active: boolean;
2491
- label: string;
2492
- organization_name: string | null;
2493
- preferred_warehouse_id: string | null;
2494
- preferred_warehouse_name: string | null;
2495
- token_expires_at: string | null;
2496
- updated_at: string;
2809
+ is_deleted: boolean;
2810
+ sequence_number: number;
2811
+ status: string | null;
2812
+ updated_at: string;
2497
2813
  };
2498
2814
  Insert: {
2499
- access_token?: string | null;
2500
- api_key: string;
2501
- client_id: string;
2502
- client_secret: string;
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;
2821
+ id?: string;
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;
2503
2987
  created_at?: string;
2504
- customers_endpoint?: string | null;
2505
- environment: 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;
2506
3033
  gln_code?: string | null;
2507
3034
  id?: string;
2508
- is_active?: boolean;
2509
- label?: string;
2510
- organization_name?: string | null;
2511
- preferred_warehouse_id?: string | null;
2512
- preferred_warehouse_name?: string | null;
2513
- token_expires_at?: string | null;
3035
+ name?: string | null;
3036
+ organization_id: string;
2514
3037
  updated_at?: string;
2515
3038
  };
2516
3039
  Update: {
2517
- access_token?: string | null;
2518
- api_key?: string;
2519
- client_id?: string;
2520
- client_secret?: string;
3040
+ connection_id?: string | null;
2521
3041
  created_at?: string;
2522
- customers_endpoint?: string | null;
2523
- environment?: string;
3042
+ data?: import("./types").Json;
3043
+ fetched_at?: string;
2524
3044
  gln_code?: string | null;
2525
3045
  id?: string;
2526
- is_active?: boolean;
2527
- label?: string;
2528
- organization_name?: string | null;
2529
- preferred_warehouse_id?: string | null;
2530
- preferred_warehouse_name?: string | null;
2531
- token_expires_at?: string | null;
3046
+ name?: string | null;
3047
+ organization_id?: string;
2532
3048
  updated_at?: string;
2533
3049
  };
2534
- Relationships: [];
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
+ }];
2535
3057
  };
2536
- floriday_connections_cache: {
3058
+ floriday_clock_presales_cache: {
2537
3059
  Row: {
2538
3060
  buyer_organization_id: string | null;
2539
- buyer_organization_name: string | null;
3061
+ clock_supply_id: string | null;
2540
3062
  connection_id: string;
2541
3063
  data: import("./types").Json;
2542
- floriday_connection_id: string;
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;
3302
+ token_expires_at?: string | null;
3303
+ updated_at?: string;
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
+ };
3620
+ Update: {
3621
+ connection_id?: string;
3622
+ data?: import("./types").Json;
3623
+ fetched_at?: string;
3624
+ floriday_id?: string;
3625
+ gln_code?: string | null;
3626
+ id?: 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;
3863
+ organization_name?: 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;
3897
+ updated_at?: string;
3898
+ };
3899
+ Relationships: [];
3900
+ };
3901
+ floriday_packings_cache: {
3902
+ Row: {
3903
+ connection_id: string;
3904
+ data: import("./types").Json;
3905
+ fetched_at: string;
3906
+ floriday_id: string;
3907
+ id: string;
2543
3908
  is_deleted: boolean;
2544
3909
  sequence_number: number;
2545
- status: string | null;
2546
- synced_at: string;
3910
+ updated_at: string;
2547
3911
  };
2548
3912
  Insert: {
2549
- buyer_organization_id?: string | null;
2550
- buyer_organization_name?: string | null;
2551
3913
  connection_id: string;
2552
- data: import("./types").Json;
2553
- floriday_connection_id: string;
3914
+ data?: import("./types").Json;
3915
+ fetched_at?: string;
3916
+ floriday_id: string;
3917
+ id?: string;
2554
3918
  is_deleted?: boolean;
2555
- sequence_number: number;
2556
- status?: string | null;
2557
- synced_at?: string;
3919
+ sequence_number?: number;
3920
+ updated_at?: string;
2558
3921
  };
2559
3922
  Update: {
2560
- buyer_organization_id?: string | null;
2561
- buyer_organization_name?: string | null;
2562
3923
  connection_id?: string;
2563
3924
  data?: import("./types").Json;
2564
- floriday_connection_id?: string;
3925
+ fetched_at?: string;
3926
+ floriday_id?: string;
3927
+ id?: string;
2565
3928
  is_deleted?: boolean;
2566
3929
  sequence_number?: number;
2567
- status?: string | null;
2568
- synced_at?: string;
3930
+ updated_at?: string;
2569
3931
  };
2570
3932
  Relationships: [{
2571
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3933
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
2572
3934
  columns: ["connection_id"];
2573
3935
  isOneToOne: false;
2574
3936
  referencedRelation: "floriday_connections";
2575
3937
  referencedColumns: ["id"];
2576
3938
  }];
2577
3939
  };
2578
- floriday_customers_cache: {
3940
+ floriday_price_groups_cache: {
2579
3941
  Row: {
2580
- connection_id: string | null;
3942
+ connection_id: string;
2581
3943
  data: import("./types").Json;
2582
3944
  fetched_at: string;
2583
- organization_id: string;
3945
+ floriday_id: string;
3946
+ is_deleted: boolean;
3947
+ sequence_number: number;
3948
+ updated_at: string;
2584
3949
  };
2585
3950
  Insert: {
2586
- connection_id?: string | null;
2587
- data?: import("./types").Json;
3951
+ connection_id: string;
3952
+ data: import("./types").Json;
2588
3953
  fetched_at?: string;
2589
- organization_id: string;
3954
+ floriday_id: string;
3955
+ is_deleted?: boolean;
3956
+ sequence_number?: number;
3957
+ updated_at?: string;
2590
3958
  };
2591
3959
  Update: {
2592
- connection_id?: string | null;
3960
+ connection_id?: string;
2593
3961
  data?: import("./types").Json;
2594
3962
  fetched_at?: string;
2595
- organization_id?: string;
3963
+ floriday_id?: string;
3964
+ is_deleted?: boolean;
3965
+ sequence_number?: number;
3966
+ updated_at?: string;
2596
3967
  };
2597
3968
  Relationships: [{
2598
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3969
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
2599
3970
  columns: ["connection_id"];
2600
3971
  isOneToOne: false;
2601
3972
  referencedRelation: "floriday_connections";
2602
3973
  referencedColumns: ["id"];
2603
3974
  }];
2604
3975
  };
2605
- floriday_network_cache: {
3976
+ floriday_resource_schemas: {
2606
3977
  Row: {
2607
- city: string | null;
2608
- connection_id: string;
2609
- country: string | null;
2610
- data: import("./types").Json;
3978
+ enums: import("./types").Json;
2611
3979
  fetched_at: string;
2612
- gln: string | null;
2613
- organization_id: string;
2614
- organization_name: string | null;
3980
+ resource: string;
3981
+ schema: import("./types").Json;
3982
+ source_url: string | null;
3983
+ version: string;
2615
3984
  };
2616
3985
  Insert: {
2617
- city?: string | null;
2618
- connection_id: string;
2619
- country?: string | null;
2620
- data?: import("./types").Json;
3986
+ enums?: import("./types").Json;
2621
3987
  fetched_at?: string;
2622
- gln?: string | null;
2623
- organization_id: string;
2624
- organization_name?: string | null;
3988
+ resource: string;
3989
+ schema: import("./types").Json;
3990
+ source_url?: string | null;
3991
+ version: string;
2625
3992
  };
2626
3993
  Update: {
2627
- city?: string | null;
2628
- connection_id?: string;
2629
- country?: string | null;
2630
- data?: import("./types").Json;
3994
+ enums?: import("./types").Json;
2631
3995
  fetched_at?: string;
2632
- gln?: string | null;
2633
- organization_id?: string;
2634
- organization_name?: string | null;
3996
+ resource?: string;
3997
+ schema?: import("./types").Json;
3998
+ source_url?: string | null;
3999
+ version?: string;
2635
4000
  };
2636
4001
  Relationships: [];
2637
4002
  };
2638
- floriday_network_sync_state: {
4003
+ floriday_sales_strategies_cache: {
2639
4004
  Row: {
2640
4005
  connection_id: string;
2641
- last_error: string | null;
2642
- last_sequence_number: number;
2643
- 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;
2644
4011
  updated_at: string;
2645
4012
  };
2646
4013
  Insert: {
2647
4014
  connection_id: string;
2648
- last_error?: string | null;
2649
- last_sequence_number?: number;
2650
- 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;
2651
4020
  updated_at?: string;
2652
4021
  };
2653
4022
  Update: {
2654
4023
  connection_id?: string;
2655
- last_error?: string | null;
2656
- last_sequence_number?: number;
2657
- 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;
2658
4029
  updated_at?: string;
2659
4030
  };
2660
- 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
+ }];
2661
4038
  };
2662
4039
  floriday_salesorders_cache: {
2663
4040
  Row: {
@@ -2724,7 +4101,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2724
4101
  connection_id: string;
2725
4102
  entity_type: string;
2726
4103
  last_error: string | null;
4104
+ last_items_processed: number | null;
2727
4105
  last_sequence_number: number;
4106
+ last_success_at: string | null;
2728
4107
  last_synced_at: string | null;
2729
4108
  updated_at: string;
2730
4109
  };
@@ -2732,7 +4111,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2732
4111
  connection_id: string;
2733
4112
  entity_type: string;
2734
4113
  last_error?: string | null;
4114
+ last_items_processed?: number | null;
2735
4115
  last_sequence_number?: number;
4116
+ last_success_at?: string | null;
2736
4117
  last_synced_at?: string | null;
2737
4118
  updated_at?: string;
2738
4119
  };
@@ -2740,7 +4121,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2740
4121
  connection_id?: string;
2741
4122
  entity_type?: string;
2742
4123
  last_error?: string | null;
4124
+ last_items_processed?: number | null;
2743
4125
  last_sequence_number?: number;
4126
+ last_success_at?: string | null;
2744
4127
  last_synced_at?: string | null;
2745
4128
  updated_at?: string;
2746
4129
  };
@@ -2788,6 +4171,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2788
4171
  referencedColumns: ["id"];
2789
4172
  }];
2790
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
+ };
2791
4213
  floriday_trade_items_cache: {
2792
4214
  Row: {
2793
4215
  connection_id: string;
@@ -2798,23 +4220,176 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2798
4220
  sequence_number: number;
2799
4221
  };
2800
4222
  Insert: {
2801
- connection_id: string;
2802
- data?: import("./types").Json;
2803
- fetched_at?: string;
2804
- floriday_id: string;
2805
- is_deleted?: boolean;
2806
- 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;
2807
4373
  };
2808
4374
  Update: {
2809
- connection_id?: string;
2810
- data?: import("./types").Json;
2811
- fetched_at?: string;
2812
- floriday_id?: string;
2813
- is_deleted?: boolean;
2814
- 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;
2815
4390
  };
2816
4391
  Relationships: [{
2817
- foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4392
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
2818
4393
  columns: ["connection_id"];
2819
4394
  isOneToOne: false;
2820
4395
  referencedRelation: "floriday_connections";
@@ -2995,6 +4570,57 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2995
4570
  };
2996
4571
  Relationships: [];
2997
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
+ };
2998
4624
  invoice_run_items: {
2999
4625
  Row: {
3000
4626
  booking_id: string | null;
@@ -3119,6 +4745,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3119
4745
  Row: {
3120
4746
  body_html: string | null;
3121
4747
  body_text: string | null;
4748
+ connection_id: string | null;
3122
4749
  created_at: string;
3123
4750
  error_message: string | null;
3124
4751
  external_id: string | null;
@@ -3137,6 +4764,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3137
4764
  Insert: {
3138
4765
  body_html?: string | null;
3139
4766
  body_text?: string | null;
4767
+ connection_id?: string | null;
3140
4768
  created_at?: string;
3141
4769
  error_message?: string | null;
3142
4770
  external_id?: string | null;
@@ -3155,6 +4783,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3155
4783
  Update: {
3156
4784
  body_html?: string | null;
3157
4785
  body_text?: string | null;
4786
+ connection_id?: string | null;
3158
4787
  created_at?: string;
3159
4788
  error_message?: string | null;
3160
4789
  external_id?: string | null;
@@ -3171,6 +4800,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3171
4800
  updated_at?: string;
3172
4801
  };
3173
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
+ }, {
3174
4815
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3175
4816
  columns: ["profile_id"];
3176
4817
  isOneToOne: false;
@@ -3454,6 +5095,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3454
5095
  role: string;
3455
5096
  tenant_id: string;
3456
5097
  updated_at: string;
5098
+ user_id: string | null;
3457
5099
  };
3458
5100
  Insert: {
3459
5101
  avatar_url?: string | null;
@@ -3469,6 +5111,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3469
5111
  role?: string;
3470
5112
  tenant_id: string;
3471
5113
  updated_at?: string;
5114
+ user_id?: string | null;
3472
5115
  };
3473
5116
  Update: {
3474
5117
  avatar_url?: string | null;
@@ -3484,6 +5127,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3484
5127
  role?: string;
3485
5128
  tenant_id?: string;
3486
5129
  updated_at?: string;
5130
+ user_id?: string | null;
3487
5131
  };
3488
5132
  Relationships: [{
3489
5133
  foreignKeyName: "monteurs_tenant_id_fkey";
@@ -3620,12 +5264,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3620
5264
  isOneToOne: false;
3621
5265
  referencedRelation: "offer_campaigns";
3622
5266
  referencedColumns: ["id"];
3623
- }, {
3624
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3625
- columns: ["product_id"];
3626
- isOneToOne: false;
3627
- referencedRelation: "products";
3628
- referencedColumns: ["id"];
3629
5267
  }];
3630
5268
  };
3631
5269
  offer_campaigns: {
@@ -3901,6 +5539,99 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3901
5539
  };
3902
5540
  Relationships: [];
3903
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
+ };
3904
5635
  order_field_options: {
3905
5636
  Row: {
3906
5637
  created_at: string;
@@ -4102,6 +5833,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4102
5833
  };
4103
5834
  Relationships: [];
4104
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
+ };
4105
5866
  pipeline_settings: {
4106
5867
  Row: {
4107
5868
  created_at: string;
@@ -4262,13 +6023,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4262
6023
  Row: {
4263
6024
  barcode: string | null;
4264
6025
  batch: string;
6026
+ crates_per_layer: number;
4265
6027
  created_at: string;
4266
6028
  custom_fields: import("./types").Json;
4267
6029
  id: string;
4268
6030
  image_url: string | null;
4269
6031
  incoming_quantity: number;
6032
+ layers_per_cart: number;
4270
6033
  location: string;
4271
6034
  min_quantity: number;
6035
+ plants_per_crate: number;
4272
6036
  product: string;
4273
6037
  product_type: string;
4274
6038
  purchase_price: number | null;
@@ -4281,13 +6045,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4281
6045
  Insert: {
4282
6046
  barcode?: string | null;
4283
6047
  batch: string;
6048
+ crates_per_layer?: number;
4284
6049
  created_at?: string;
4285
6050
  custom_fields?: import("./types").Json;
4286
6051
  id?: string;
4287
6052
  image_url?: string | null;
4288
6053
  incoming_quantity?: number;
6054
+ layers_per_cart?: number;
4289
6055
  location: string;
4290
6056
  min_quantity?: number;
6057
+ plants_per_crate?: number;
4291
6058
  product: string;
4292
6059
  product_type?: string;
4293
6060
  purchase_price?: number | null;
@@ -4300,13 +6067,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4300
6067
  Update: {
4301
6068
  barcode?: string | null;
4302
6069
  batch?: string;
6070
+ crates_per_layer?: number;
4303
6071
  created_at?: string;
4304
6072
  custom_fields?: import("./types").Json;
4305
6073
  id?: string;
4306
6074
  image_url?: string | null;
4307
6075
  incoming_quantity?: number;
6076
+ layers_per_cart?: number;
4308
6077
  location?: string;
4309
6078
  min_quantity?: number;
6079
+ plants_per_crate?: number;
4310
6080
  product?: string;
4311
6081
  product_type?: string;
4312
6082
  purchase_price?: number | null;
@@ -5248,6 +7018,141 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5248
7018
  };
5249
7019
  Relationships: [];
5250
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
+ };
5251
7156
  trade_item_drafts: {
5252
7157
  Row: {
5253
7158
  connection_id: string | null;
@@ -5545,9 +7450,11 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5545
7450
  fetched_at: string;
5546
7451
  invoice_number: string;
5547
7452
  line_number: number;
7453
+ line_total: number | null;
5548
7454
  quantity: number | null;
5549
7455
  unit_price: number | null;
5550
7456
  vat_code: string | null;
7457
+ vat_rate: number | null;
5551
7458
  };
5552
7459
  Insert: {
5553
7460
  article_code?: string | null;
@@ -5557,9 +7464,11 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5557
7464
  fetched_at?: string;
5558
7465
  invoice_number: string;
5559
7466
  line_number: number;
7467
+ line_total?: number | null;
5560
7468
  quantity?: number | null;
5561
7469
  unit_price?: number | null;
5562
7470
  vat_code?: string | null;
7471
+ vat_rate?: number | null;
5563
7472
  };
5564
7473
  Update: {
5565
7474
  article_code?: string | null;
@@ -5569,9 +7478,11 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5569
7478
  fetched_at?: string;
5570
7479
  invoice_number?: string;
5571
7480
  line_number?: number;
7481
+ line_total?: number | null;
5572
7482
  quantity?: number | null;
5573
7483
  unit_price?: number | null;
5574
7484
  vat_code?: string | null;
7485
+ vat_rate?: number | null;
5575
7486
  };
5576
7487
  Relationships: [{
5577
7488
  foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
@@ -5748,9 +7659,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5748
7659
  invoice_date: string | null;
5749
7660
  invoice_number: string;
5750
7661
  modified_at: string | null;
7662
+ outstanding_amount: number | null;
5751
7663
  status: string | null;
7664
+ status_label: string | null;
5752
7665
  total_excl: number | null;
5753
7666
  total_incl: number | null;
7667
+ vat_amount: number | null;
5754
7668
  };
5755
7669
  Insert: {
5756
7670
  connection_id: string;
@@ -5762,9 +7676,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5762
7676
  invoice_date?: string | null;
5763
7677
  invoice_number: string;
5764
7678
  modified_at?: string | null;
7679
+ outstanding_amount?: number | null;
5765
7680
  status?: string | null;
7681
+ status_label?: string | null;
5766
7682
  total_excl?: number | null;
5767
7683
  total_incl?: number | null;
7684
+ vat_amount?: number | null;
5768
7685
  };
5769
7686
  Update: {
5770
7687
  connection_id?: string;
@@ -5776,9 +7693,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5776
7693
  invoice_date?: string | null;
5777
7694
  invoice_number?: string;
5778
7695
  modified_at?: string | null;
7696
+ outstanding_amount?: number | null;
5779
7697
  status?: string | null;
7698
+ status_label?: string | null;
5780
7699
  total_excl?: number | null;
5781
7700
  total_incl?: number | null;
7701
+ vat_amount?: number | null;
5782
7702
  };
5783
7703
  Relationships: [{
5784
7704
  foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
@@ -5812,6 +7732,57 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5812
7732
  };
5813
7733
  Relationships: [];
5814
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
+ };
5815
7786
  twinfield_settings: {
5816
7787
  Row: {
5817
7788
  active_environment: string;
@@ -5923,6 +7894,117 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5923
7894
  referencedColumns: ["id"];
5924
7895
  }];
5925
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
+ };
5926
8008
  work_order_monteurs: {
5927
8009
  Row: {
5928
8010
  created_at: string;
@@ -6234,6 +8316,132 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6234
8316
  };
6235
8317
  Relationships: [];
6236
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
+ };
6237
8445
  v_external_customers_floriday: {
6238
8446
  Row: {
6239
8447
  city: string | null;
@@ -6288,12 +8496,111 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6288
8496
  provider: string | null;
6289
8497
  raw: import("./types").Json | null;
6290
8498
  status: string | null;
6291
- street: string | null;
6292
- vat_number: string | null;
6293
- 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;
6294
8601
  };
6295
8602
  Relationships: [{
6296
- foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
8603
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
6297
8604
  columns: ["connection_id"];
6298
8605
  isOneToOne: false;
6299
8606
  referencedRelation: "twinfield_connections";
@@ -6302,6 +8609,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6302
8609
  };
6303
8610
  };
6304
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
+ };
6305
8636
  dashboard_list_public_schema: {
6306
8637
  Args: never;
6307
8638
  Returns: {
@@ -6406,6 +8737,32 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6406
8737
  office_code: string;
6407
8738
  }[];
6408
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
+ };
6409
8766
  get_floriday_cron_jobs: {
6410
8767
  Args: never;
6411
8768
  Returns: {
@@ -6415,6 +8772,56 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6415
8772
  url: string;
6416
8773
  }[];
6417
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
+ };
6418
8825
  get_offer_by_link_code: {
6419
8826
  Args: {
6420
8827
  p_code: string;
@@ -6480,6 +8887,74 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6480
8887
  };
6481
8888
  Returns: string;
6482
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
+ };
6483
8958
  schedule_floriday_carriers_sync: {
6484
8959
  Args: {
6485
8960
  p_apikey: string;
@@ -6487,6 +8962,34 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6487
8962
  };
6488
8963
  Returns: number;
6489
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
+ };
6490
8993
  schedule_floriday_connections_sync: {
6491
8994
  Args: {
6492
8995
  p_apikey: string;
@@ -6494,6 +8997,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6494
8997
  };
6495
8998
  Returns: number;
6496
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
+ };
6497
9014
  schedule_floriday_customer_organizations_sync: {
6498
9015
  Args: {
6499
9016
  p_apikey: string;
@@ -6501,6 +9018,48 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6501
9018
  };
6502
9019
  Returns: number;
6503
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
+ };
6504
9063
  schedule_floriday_network_sync: {
6505
9064
  Args: {
6506
9065
  p_apikey: string;
@@ -6508,6 +9067,34 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6508
9067
  };
6509
9068
  Returns: number;
6510
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
+ };
6511
9098
  schedule_floriday_salesorders_sync: {
6512
9099
  Args: {
6513
9100
  p_apikey: string;
@@ -6522,6 +9109,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6522
9109
  };
6523
9110
  Returns: number;
6524
9111
  };
9112
+ schedule_floriday_trade_item_classifications_sync: {
9113
+ Args: {
9114
+ p_apikey: string;
9115
+ p_url: string;
9116
+ };
9117
+ Returns: number;
9118
+ };
6525
9119
  schedule_floriday_trade_items_sync: {
6526
9120
  Args: {
6527
9121
  p_apikey: string;
@@ -6529,6 +9123,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6529
9123
  };
6530
9124
  Returns: number;
6531
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
+ };
6532
9140
  schedule_twinfield_customers_sync: {
6533
9141
  Args: {
6534
9142
  p_apikey: string;
@@ -6557,6 +9165,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6557
9165
  };
6558
9166
  Returns: number;
6559
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
+ };
6560
9176
  schedule_twinfield_token_refresh: {
6561
9177
  Args: {
6562
9178
  p_apikey: string;
@@ -6595,8 +9211,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6595
9211
  };
6596
9212
  };
6597
9213
  Enums: {
6598
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9214
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
6599
9215
  exact_env: "staging" | "live";
9216
+ exact_push_status: "pending" | "sent" | "error";
6600
9217
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6601
9218
  };
6602
9219
  CompositeTypes: { [_ in never]: never; };