@flowselections/floriday-afhandeling-module 1.0.30 → 1.0.31

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 (40) hide show
  1. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/LeveringenPage.js +7 -24
  3. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  4. package/dist-lib/components/afhandeling/PickAgendaView.js +22 -24
  5. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +5 -1
  6. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  7. package/dist-lib/components/afhandeling/WeekAgendaView.js +19 -29
  8. package/dist-lib/hooks/useEngineTasks.d.ts +2 -0
  9. package/dist-lib/hooks/useEngineTasks.d.ts.map +1 -1
  10. package/dist-lib/hooks/useEngineTasks.js +19 -4
  11. package/dist-lib/hooks/useOrderPlanning.d.ts +12 -1
  12. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  13. package/dist-lib/hooks/useOrderPlanning.js +65 -26
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts +629 -4
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.d.ts +629 -4
  17. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.server.d.ts +629 -4
  19. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/types.d.ts +630 -5
  21. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.js +12 -1
  23. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1378 -128
  24. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/agendaRange.d.ts +13 -0
  26. package/dist-lib/lib/agendaRange.d.ts.map +1 -0
  27. package/dist-lib/lib/agendaRange.js +25 -0
  28. package/dist-lib/lib/carriers.functions.d.ts +3265 -140
  29. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/cartAssignments.functions.d.ts +3265 -140
  31. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/cartControl.functions.d.ts +6650 -400
  33. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday.functions.d.ts +647 -8
  35. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday.functions.js +86 -20
  37. package/dist-lib/lib/logisticsEngine/engine.d.ts +16 -3
  38. package/dist-lib/lib/logisticsEngine/engine.d.ts.map +1 -1
  39. package/dist-lib/lib/logisticsEngine/engine.js +13 -6
  40. package/package.json +2 -2
@@ -1701,7 +1701,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
1701
1701
  city: string | null;
1702
1702
  country: string | null;
1703
1703
  created_at: string;
1704
- customer_id: string | null;
1704
+ customer_id: string;
1705
1705
  external_key: string | null;
1706
1706
  external_provider: string | null;
1707
1707
  floriday_location_id: string | null;
@@ -1725,7 +1725,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
1725
1725
  city?: string | null;
1726
1726
  country?: string | null;
1727
1727
  created_at?: string;
1728
- customer_id?: string | null;
1728
+ customer_id: string;
1729
1729
  external_key?: string | null;
1730
1730
  external_provider?: string | null;
1731
1731
  floriday_location_id?: string | null;
@@ -1749,7 +1749,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
1749
1749
  city?: string | null;
1750
1750
  country?: string | null;
1751
1751
  created_at?: string;
1752
- customer_id?: string | null;
1752
+ customer_id?: string;
1753
1753
  external_key?: string | null;
1754
1754
  external_provider?: string | null;
1755
1755
  floriday_location_id?: string | null;
@@ -6497,6 +6497,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6497
6497
  Row: {
6498
6498
  buyer_organization_id: string | null;
6499
6499
  connection_id: string;
6500
+ controlled_at: string | null;
6500
6501
  created_at: string;
6501
6502
  data: import("../integrations/supabase/types").Json;
6502
6503
  floriday_id: string;
@@ -6508,6 +6509,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6508
6509
  Insert: {
6509
6510
  buyer_organization_id?: string | null;
6510
6511
  connection_id: string;
6512
+ controlled_at?: string | null;
6511
6513
  created_at?: string;
6512
6514
  data: import("../integrations/supabase/types").Json;
6513
6515
  floriday_id: string;
@@ -6519,6 +6521,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6519
6521
  Update: {
6520
6522
  buyer_organization_id?: string | null;
6521
6523
  connection_id?: string;
6524
+ controlled_at?: string | null;
6522
6525
  created_at?: string;
6523
6526
  data?: import("../integrations/supabase/types").Json;
6524
6527
  floriday_id?: string;
@@ -7420,6 +7423,54 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7420
7423
  };
7421
7424
  Relationships: [];
7422
7425
  };
7426
+ invoice_timing_settings: {
7427
+ Row: {
7428
+ anchor: string;
7429
+ business_days_only: boolean;
7430
+ created_at: string;
7431
+ enabled: boolean;
7432
+ id: string;
7433
+ offset_days: number;
7434
+ pickup_anchor: string;
7435
+ pickup_business_days_only: boolean;
7436
+ pickup_offset_days: number;
7437
+ pickup_time_of_day: string;
7438
+ singleton: boolean;
7439
+ time_of_day: string;
7440
+ updated_at: string;
7441
+ };
7442
+ Insert: {
7443
+ anchor?: string;
7444
+ business_days_only?: boolean;
7445
+ created_at?: string;
7446
+ enabled?: boolean;
7447
+ id?: string;
7448
+ offset_days?: number;
7449
+ pickup_anchor?: string;
7450
+ pickup_business_days_only?: boolean;
7451
+ pickup_offset_days?: number;
7452
+ pickup_time_of_day?: string;
7453
+ singleton?: boolean;
7454
+ time_of_day?: string;
7455
+ updated_at?: string;
7456
+ };
7457
+ Update: {
7458
+ anchor?: string;
7459
+ business_days_only?: boolean;
7460
+ created_at?: string;
7461
+ enabled?: boolean;
7462
+ id?: string;
7463
+ offset_days?: number;
7464
+ pickup_anchor?: string;
7465
+ pickup_business_days_only?: boolean;
7466
+ pickup_offset_days?: number;
7467
+ pickup_time_of_day?: string;
7468
+ singleton?: boolean;
7469
+ time_of_day?: string;
7470
+ updated_at?: string;
7471
+ };
7472
+ Relationships: [];
7473
+ };
7423
7474
  itk_contact_persons: {
7424
7475
  Row: {
7425
7476
  created_at: string;
@@ -8509,6 +8560,69 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8509
8560
  };
8510
8561
  Relationships: [];
8511
8562
  };
8563
+ logistics_floriday_pushes: {
8564
+ Row: {
8565
+ attempts: number;
8566
+ created_at: string;
8567
+ first_queued_at: string;
8568
+ fulfillment_order_id: string | null;
8569
+ id: string;
8570
+ last_error: string | null;
8571
+ last_error_at: string | null;
8572
+ last_sent_hash: string | null;
8573
+ locked_by: string | null;
8574
+ locked_until: string | null;
8575
+ next_attempt_at: string;
8576
+ order_ref: string;
8577
+ payload: import("../integrations/supabase/types").Json;
8578
+ payload_hash: string | null;
8579
+ revision: number;
8580
+ sent_at: string | null;
8581
+ status: string;
8582
+ updated_at: string;
8583
+ };
8584
+ Insert: {
8585
+ attempts?: number;
8586
+ created_at?: string;
8587
+ first_queued_at?: string;
8588
+ fulfillment_order_id?: string | null;
8589
+ id?: string;
8590
+ last_error?: string | null;
8591
+ last_error_at?: string | null;
8592
+ last_sent_hash?: string | null;
8593
+ locked_by?: string | null;
8594
+ locked_until?: string | null;
8595
+ next_attempt_at?: string;
8596
+ order_ref: string;
8597
+ payload?: import("../integrations/supabase/types").Json;
8598
+ payload_hash?: string | null;
8599
+ revision?: number;
8600
+ sent_at?: string | null;
8601
+ status?: string;
8602
+ updated_at?: string;
8603
+ };
8604
+ Update: {
8605
+ attempts?: number;
8606
+ created_at?: string;
8607
+ first_queued_at?: string;
8608
+ fulfillment_order_id?: string | null;
8609
+ id?: string;
8610
+ last_error?: string | null;
8611
+ last_error_at?: string | null;
8612
+ last_sent_hash?: string | null;
8613
+ locked_by?: string | null;
8614
+ locked_until?: string | null;
8615
+ next_attempt_at?: string;
8616
+ order_ref?: string;
8617
+ payload?: import("../integrations/supabase/types").Json;
8618
+ payload_hash?: string | null;
8619
+ revision?: number;
8620
+ sent_at?: string | null;
8621
+ status?: string;
8622
+ updated_at?: string;
8623
+ };
8624
+ Relationships: [];
8625
+ };
8512
8626
  logistics_formulas: {
8513
8627
  Row: {
8514
8628
  created_at: string;
@@ -8587,6 +8701,45 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8587
8701
  };
8588
8702
  Relationships: [];
8589
8703
  };
8704
+ logistics_plan_queue: {
8705
+ Row: {
8706
+ attempts: number;
8707
+ claimed_at: string | null;
8708
+ enqueued_at: string;
8709
+ error: string | null;
8710
+ id: string;
8711
+ next_attempt_at: string;
8712
+ order_id: string;
8713
+ reason: string;
8714
+ status: string;
8715
+ updated_at: string;
8716
+ };
8717
+ Insert: {
8718
+ attempts?: number;
8719
+ claimed_at?: string | null;
8720
+ enqueued_at?: string;
8721
+ error?: string | null;
8722
+ id?: string;
8723
+ next_attempt_at?: string;
8724
+ order_id: string;
8725
+ reason?: string;
8726
+ status?: string;
8727
+ updated_at?: string;
8728
+ };
8729
+ Update: {
8730
+ attempts?: number;
8731
+ claimed_at?: string | null;
8732
+ enqueued_at?: string;
8733
+ error?: string | null;
8734
+ id?: string;
8735
+ next_attempt_at?: string;
8736
+ order_id?: string;
8737
+ reason?: string;
8738
+ status?: string;
8739
+ updated_at?: string;
8740
+ };
8741
+ Relationships: [];
8742
+ };
8590
8743
  logistics_plan_runs: {
8591
8744
  Row: {
8592
8745
  created_at: string;
@@ -8662,6 +8815,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8662
8815
  referencedColumns: ["id"];
8663
8816
  }];
8664
8817
  };
8818
+ logistics_plan_settings: {
8819
+ Row: {
8820
+ key: string;
8821
+ updated_at: string;
8822
+ value: string;
8823
+ };
8824
+ Insert: {
8825
+ key: string;
8826
+ updated_at?: string;
8827
+ value: string;
8828
+ };
8829
+ Update: {
8830
+ key?: string;
8831
+ updated_at?: string;
8832
+ value?: string;
8833
+ };
8834
+ Relationships: [];
8835
+ };
8665
8836
  logistics_rebuffer_state: {
8666
8837
  Row: {
8667
8838
  created_at: string;
@@ -9372,14 +9543,17 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
9372
9543
  };
9373
9544
  mailbox_messages: {
9374
9545
  Row: {
9546
+ attachments: import("../integrations/supabase/types").Json;
9375
9547
  body_html: string | null;
9376
9548
  body_text: string | null;
9549
+ cc_recipients: import("../integrations/supabase/types").Json;
9377
9550
  connection_id: string | null;
9378
9551
  created_at: string;
9379
9552
  error_message: string | null;
9380
9553
  external_id: string | null;
9381
9554
  from_email: string | null;
9382
9555
  from_name: string | null;
9556
+ has_attachments: boolean;
9383
9557
  id: string;
9384
9558
  message_id: string | null;
9385
9559
  profile_id: string | null;
@@ -9387,18 +9561,22 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
9387
9561
  received_at: string | null;
9388
9562
  status: string;
9389
9563
  subject: string | null;
9564
+ to_recipients: import("../integrations/supabase/types").Json;
9390
9565
  uid: number | null;
9391
9566
  updated_at: string;
9392
9567
  };
9393
9568
  Insert: {
9569
+ attachments?: import("../integrations/supabase/types").Json;
9394
9570
  body_html?: string | null;
9395
9571
  body_text?: string | null;
9572
+ cc_recipients?: import("../integrations/supabase/types").Json;
9396
9573
  connection_id?: string | null;
9397
9574
  created_at?: string;
9398
9575
  error_message?: string | null;
9399
9576
  external_id?: string | null;
9400
9577
  from_email?: string | null;
9401
9578
  from_name?: string | null;
9579
+ has_attachments?: boolean;
9402
9580
  id?: string;
9403
9581
  message_id?: string | null;
9404
9582
  profile_id?: string | null;
@@ -9406,18 +9584,22 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
9406
9584
  received_at?: string | null;
9407
9585
  status?: string;
9408
9586
  subject?: string | null;
9587
+ to_recipients?: import("../integrations/supabase/types").Json;
9409
9588
  uid?: number | null;
9410
9589
  updated_at?: string;
9411
9590
  };
9412
9591
  Update: {
9592
+ attachments?: import("../integrations/supabase/types").Json;
9413
9593
  body_html?: string | null;
9414
9594
  body_text?: string | null;
9595
+ cc_recipients?: import("../integrations/supabase/types").Json;
9415
9596
  connection_id?: string | null;
9416
9597
  created_at?: string;
9417
9598
  error_message?: string | null;
9418
9599
  external_id?: string | null;
9419
9600
  from_email?: string | null;
9420
9601
  from_name?: string | null;
9602
+ has_attachments?: boolean;
9421
9603
  id?: string;
9422
9604
  message_id?: string | null;
9423
9605
  profile_id?: string | null;
@@ -9425,6 +9607,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
9425
9607
  received_at?: string | null;
9426
9608
  status?: string;
9427
9609
  subject?: string | null;
9610
+ to_recipients?: import("../integrations/supabase/types").Json;
9428
9611
  uid?: number | null;
9429
9612
  updated_at?: string;
9430
9613
  };
@@ -9832,6 +10015,36 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
9832
10015
  };
9833
10016
  Relationships: [];
9834
10017
  };
10018
+ module_registry: {
10019
+ Row: {
10020
+ created_at: string;
10021
+ is_active: boolean;
10022
+ last_seen_at: string;
10023
+ module_id: string;
10024
+ name: string;
10025
+ shell_id: string | null;
10026
+ sort_order: number | null;
10027
+ };
10028
+ Insert: {
10029
+ created_at?: string;
10030
+ is_active?: boolean;
10031
+ last_seen_at?: string;
10032
+ module_id: string;
10033
+ name: string;
10034
+ shell_id?: string | null;
10035
+ sort_order?: number | null;
10036
+ };
10037
+ Update: {
10038
+ created_at?: string;
10039
+ is_active?: boolean;
10040
+ last_seen_at?: string;
10041
+ module_id?: string;
10042
+ name?: string;
10043
+ shell_id?: string | null;
10044
+ sort_order?: number | null;
10045
+ };
10046
+ Relationships: [];
10047
+ };
9835
10048
  module_runtime_config: {
9836
10049
  Row: {
9837
10050
  key: string;
@@ -10891,6 +11104,45 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10891
11104
  };
10892
11105
  Relationships: [];
10893
11106
  };
11107
+ order_invoice_links: {
11108
+ Row: {
11109
+ attempts: number;
11110
+ created_at: string;
11111
+ error_message: string | null;
11112
+ id: string;
11113
+ invoice_number: string | null;
11114
+ next_attempt_at: string;
11115
+ order_id: string;
11116
+ processed_at: string | null;
11117
+ status: string;
11118
+ updated_at: string;
11119
+ };
11120
+ Insert: {
11121
+ attempts?: number;
11122
+ created_at?: string;
11123
+ error_message?: string | null;
11124
+ id?: string;
11125
+ invoice_number?: string | null;
11126
+ next_attempt_at?: string;
11127
+ order_id: string;
11128
+ processed_at?: string | null;
11129
+ status?: string;
11130
+ updated_at?: string;
11131
+ };
11132
+ Update: {
11133
+ attempts?: number;
11134
+ created_at?: string;
11135
+ error_message?: string | null;
11136
+ id?: string;
11137
+ invoice_number?: string | null;
11138
+ next_attempt_at?: string;
11139
+ order_id?: string;
11140
+ processed_at?: string | null;
11141
+ status?: string;
11142
+ updated_at?: string;
11143
+ };
11144
+ Relationships: [];
11145
+ };
10894
11146
  order_items: {
10895
11147
  Row: {
10896
11148
  crates_per_layer: number | null;
@@ -11073,6 +11325,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11073
11325
  delivery_date: string | null;
11074
11326
  floriday_sales_order_id: string | null;
11075
11327
  id: string;
11328
+ invoice_due_at: string | null;
11076
11329
  is_reservation: boolean;
11077
11330
  notes: string | null;
11078
11331
  order_date: string;
@@ -11094,6 +11347,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11094
11347
  delivery_date?: string | null;
11095
11348
  floriday_sales_order_id?: string | null;
11096
11349
  id?: string;
11350
+ invoice_due_at?: string | null;
11097
11351
  is_reservation?: boolean;
11098
11352
  notes?: string | null;
11099
11353
  order_date?: string;
@@ -11115,6 +11369,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11115
11369
  delivery_date?: string | null;
11116
11370
  floriday_sales_order_id?: string | null;
11117
11371
  id?: string;
11372
+ invoice_due_at?: string | null;
11118
11373
  is_reservation?: boolean;
11119
11374
  notes?: string | null;
11120
11375
  order_date?: string;
@@ -12311,22 +12566,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12311
12566
  created_at: string;
12312
12567
  documentnaam: string;
12313
12568
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12569
+ extern_job_id: string | null;
12314
12570
  foutmelding: string | null;
12315
12571
  gebruiker_id: string | null;
12316
12572
  gebruiker_naam: string;
12317
12573
  gestart_op: string | null;
12318
12574
  id: string;
12575
+ idempotentie_sleutel: string | null;
12319
12576
  is_herprint: boolean;
12320
12577
  kopieen: number;
12321
12578
  layout_id: string | null;
12322
12579
  opgepakt_op: string | null;
12323
12580
  paginas: number;
12324
12581
  payload: import("../integrations/supabase/types").Json;
12582
+ pdf_base64: string | null;
12583
+ pdf_url: string | null;
12325
12584
  pogingen: number;
12326
12585
  printer_id: string | null;
12327
12586
  render_html: string | null;
12328
12587
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12329
12588
  updated_at: string;
12589
+ volgende_poging: string | null;
12330
12590
  voltooid_op: string | null;
12331
12591
  };
12332
12592
  Insert: {
@@ -12335,22 +12595,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12335
12595
  created_at?: string;
12336
12596
  documentnaam?: string;
12337
12597
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12598
+ extern_job_id?: string | null;
12338
12599
  foutmelding?: string | null;
12339
12600
  gebruiker_id?: string | null;
12340
12601
  gebruiker_naam?: string;
12341
12602
  gestart_op?: string | null;
12342
12603
  id?: string;
12604
+ idempotentie_sleutel?: string | null;
12343
12605
  is_herprint?: boolean;
12344
12606
  kopieen?: number;
12345
12607
  layout_id?: string | null;
12346
12608
  opgepakt_op?: string | null;
12347
12609
  paginas?: number;
12348
12610
  payload?: import("../integrations/supabase/types").Json;
12611
+ pdf_base64?: string | null;
12612
+ pdf_url?: string | null;
12349
12613
  pogingen?: number;
12350
12614
  printer_id?: string | null;
12351
12615
  render_html?: string | null;
12352
12616
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12353
12617
  updated_at?: string;
12618
+ volgende_poging?: string | null;
12354
12619
  voltooid_op?: string | null;
12355
12620
  };
12356
12621
  Update: {
@@ -12359,22 +12624,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12359
12624
  created_at?: string;
12360
12625
  documentnaam?: string;
12361
12626
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12627
+ extern_job_id?: string | null;
12362
12628
  foutmelding?: string | null;
12363
12629
  gebruiker_id?: string | null;
12364
12630
  gebruiker_naam?: string;
12365
12631
  gestart_op?: string | null;
12366
12632
  id?: string;
12633
+ idempotentie_sleutel?: string | null;
12367
12634
  is_herprint?: boolean;
12368
12635
  kopieen?: number;
12369
12636
  layout_id?: string | null;
12370
12637
  opgepakt_op?: string | null;
12371
12638
  paginas?: number;
12372
12639
  payload?: import("../integrations/supabase/types").Json;
12640
+ pdf_base64?: string | null;
12641
+ pdf_url?: string | null;
12373
12642
  pogingen?: number;
12374
12643
  printer_id?: string | null;
12375
12644
  render_html?: string | null;
12376
12645
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12377
12646
  updated_at?: string;
12647
+ volgende_poging?: string | null;
12378
12648
  voltooid_op?: string | null;
12379
12649
  };
12380
12650
  Relationships: [{
@@ -12397,6 +12667,63 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12397
12667
  referencedColumns: ["id"];
12398
12668
  }];
12399
12669
  };
12670
+ print_queue_runners: {
12671
+ Row: {
12672
+ actief: boolean;
12673
+ basis_url: string;
12674
+ created_at: string;
12675
+ id: string;
12676
+ laatst_gezien: string;
12677
+ tick_sleutel: string;
12678
+ updated_at: string;
12679
+ };
12680
+ Insert: {
12681
+ actief?: boolean;
12682
+ basis_url: string;
12683
+ created_at?: string;
12684
+ id?: string;
12685
+ laatst_gezien?: string;
12686
+ tick_sleutel?: string;
12687
+ updated_at?: string;
12688
+ };
12689
+ Update: {
12690
+ actief?: boolean;
12691
+ basis_url?: string;
12692
+ created_at?: string;
12693
+ id?: string;
12694
+ laatst_gezien?: string;
12695
+ tick_sleutel?: string;
12696
+ updated_at?: string;
12697
+ };
12698
+ Relationships: [];
12699
+ };
12700
+ print_queue_settings: {
12701
+ Row: {
12702
+ bewaar_bestanden_dagen: number;
12703
+ bewaar_opdrachten_dagen: number;
12704
+ created_at: string;
12705
+ dubbel_venster_minuten: number;
12706
+ id: string;
12707
+ updated_at: string;
12708
+ };
12709
+ Insert: {
12710
+ bewaar_bestanden_dagen?: number;
12711
+ bewaar_opdrachten_dagen?: number;
12712
+ created_at?: string;
12713
+ dubbel_venster_minuten?: number;
12714
+ id?: string;
12715
+ updated_at?: string;
12716
+ };
12717
+ Update: {
12718
+ bewaar_bestanden_dagen?: number;
12719
+ bewaar_opdrachten_dagen?: number;
12720
+ created_at?: string;
12721
+ dubbel_venster_minuten?: number;
12722
+ id?: string;
12723
+ updated_at?: string;
12724
+ };
12725
+ Relationships: [];
12726
+ };
12400
12727
  print_rules: {
12401
12728
  Row: {
12402
12729
  actief: boolean;
@@ -12557,6 +12884,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12557
12884
  agent_id: string | null;
12558
12885
  created_at: string;
12559
12886
  driver: string;
12887
+ extern_printer_id: string | null;
12560
12888
  id: string;
12561
12889
  ip_adres: string | null;
12562
12890
  laatst_gezien: string | null;
@@ -12578,6 +12906,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12578
12906
  agent_id?: string | null;
12579
12907
  created_at?: string;
12580
12908
  driver?: string;
12909
+ extern_printer_id?: string | null;
12581
12910
  id?: string;
12582
12911
  ip_adres?: string | null;
12583
12912
  laatst_gezien?: string | null;
@@ -12599,6 +12928,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12599
12928
  agent_id?: string | null;
12600
12929
  created_at?: string;
12601
12930
  driver?: string;
12931
+ extern_printer_id?: string | null;
12602
12932
  id?: string;
12603
12933
  ip_adres?: string | null;
12604
12934
  laatst_gezien?: string | null;
@@ -15234,6 +15564,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
15234
15564
  };
15235
15565
  twinfield_invoice_settings: {
15236
15566
  Row: {
15567
+ auto_invoice_enabled: boolean;
15568
+ auto_invoice_trigger_statuses: string[];
15237
15569
  created_at: string;
15238
15570
  debtor_gl_account: string;
15239
15571
  default_credit_invoice_type: string | null;
@@ -15254,6 +15586,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
15254
15586
  vat_code_export: string | null;
15255
15587
  };
15256
15588
  Insert: {
15589
+ auto_invoice_enabled?: boolean;
15590
+ auto_invoice_trigger_statuses?: string[];
15257
15591
  created_at?: string;
15258
15592
  debtor_gl_account?: string;
15259
15593
  default_credit_invoice_type?: string | null;
@@ -15274,6 +15608,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
15274
15608
  vat_code_export?: string | null;
15275
15609
  };
15276
15610
  Update: {
15611
+ auto_invoice_enabled?: boolean;
15612
+ auto_invoice_trigger_statuses?: string[];
15277
15613
  created_at?: string;
15278
15614
  debtor_gl_account?: string;
15279
15615
  default_credit_invoice_type?: string | null;
@@ -16336,6 +16672,33 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16336
16672
  referencedColumns: ["id"];
16337
16673
  }];
16338
16674
  };
16675
+ user_module_permissions: {
16676
+ Row: {
16677
+ created_at: string;
16678
+ id: string;
16679
+ module_id: string;
16680
+ permission: string;
16681
+ updated_at: string;
16682
+ user_id: string;
16683
+ };
16684
+ Insert: {
16685
+ created_at?: string;
16686
+ id?: string;
16687
+ module_id: string;
16688
+ permission: string;
16689
+ updated_at?: string;
16690
+ user_id: string;
16691
+ };
16692
+ Update: {
16693
+ created_at?: string;
16694
+ id?: string;
16695
+ module_id?: string;
16696
+ permission?: string;
16697
+ updated_at?: string;
16698
+ user_id?: string;
16699
+ };
16700
+ Relationships: [];
16701
+ };
16339
16702
  user_roles: {
16340
16703
  Row: {
16341
16704
  created_at: string;
@@ -18169,6 +18532,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18169
18532
  processed_items: number;
18170
18533
  }[];
18171
18534
  };
18535
+ backfill_order_auto_invoice_queue: {
18536
+ Args: never;
18537
+ Returns: number;
18538
+ };
18172
18539
  calculate_layer_stock: {
18173
18540
  Args: {
18174
18541
  p_product_id: string;
@@ -18203,6 +18570,46 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18203
18570
  };
18204
18571
  Returns: import("../integrations/supabase/types").Json;
18205
18572
  };
18573
+ claim_cloud_print_jobs: {
18574
+ Args: {
18575
+ _max?: number;
18576
+ };
18577
+ Returns: {
18578
+ agent_id: string | null;
18579
+ bron_job_id: string | null;
18580
+ created_at: string;
18581
+ documentnaam: string;
18582
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18583
+ extern_job_id: string | null;
18584
+ foutmelding: string | null;
18585
+ gebruiker_id: string | null;
18586
+ gebruiker_naam: string;
18587
+ gestart_op: string | null;
18588
+ id: string;
18589
+ idempotentie_sleutel: string | null;
18590
+ is_herprint: boolean;
18591
+ kopieen: number;
18592
+ layout_id: string | null;
18593
+ opgepakt_op: string | null;
18594
+ paginas: number;
18595
+ payload: import("../integrations/supabase/types").Json;
18596
+ pdf_base64: string | null;
18597
+ pdf_url: string | null;
18598
+ pogingen: number;
18599
+ printer_id: string | null;
18600
+ render_html: string | null;
18601
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18602
+ updated_at: string;
18603
+ volgende_poging: string | null;
18604
+ voltooid_op: string | null;
18605
+ }[];
18606
+ SetofOptions: {
18607
+ from: "*";
18608
+ to: "print_jobs";
18609
+ isOneToOne: false;
18610
+ isSetofReturn: true;
18611
+ };
18612
+ };
18206
18613
  claim_floriday_stock_queue: {
18207
18614
  Args: {
18208
18615
  p_limit?: number;
@@ -18293,22 +18700,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18293
18700
  created_at: string;
18294
18701
  documentnaam: string;
18295
18702
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18703
+ extern_job_id: string | null;
18296
18704
  foutmelding: string | null;
18297
18705
  gebruiker_id: string | null;
18298
18706
  gebruiker_naam: string;
18299
18707
  gestart_op: string | null;
18300
18708
  id: string;
18709
+ idempotentie_sleutel: string | null;
18301
18710
  is_herprint: boolean;
18302
18711
  kopieen: number;
18303
18712
  layout_id: string | null;
18304
18713
  opgepakt_op: string | null;
18305
18714
  paginas: number;
18306
18715
  payload: import("../integrations/supabase/types").Json;
18716
+ pdf_base64: string | null;
18717
+ pdf_url: string | null;
18307
18718
  pogingen: number;
18308
18719
  printer_id: string | null;
18309
18720
  render_html: string | null;
18310
18721
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18311
18722
  updated_at: string;
18723
+ volgende_poging: string | null;
18312
18724
  voltooid_op: string | null;
18313
18725
  }[];
18314
18726
  SetofOptions: {
@@ -18354,6 +18766,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18354
18766
  Args: never;
18355
18767
  Returns: undefined;
18356
18768
  };
18769
+ cleanup_voorraad_module_history: {
18770
+ Args: never;
18771
+ Returns: undefined;
18772
+ };
18357
18773
  complete_floriday_stock_queue: {
18358
18774
  Args: {
18359
18775
  p_attempt_id?: string;
@@ -18475,6 +18891,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18475
18891
  };
18476
18892
  Returns: import("../integrations/supabase/types").Json;
18477
18893
  };
18894
+ effective_module_permission: {
18895
+ Args: {
18896
+ _module_id: string;
18897
+ _user_id: string;
18898
+ };
18899
+ Returns: string;
18900
+ };
18478
18901
  email_auth_decrypt: {
18479
18902
  Args: {
18480
18903
  cipher: string;
@@ -19278,6 +19701,51 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19278
19701
  isSetofReturn: false;
19279
19702
  };
19280
19703
  };
19704
+ logistics_floriday_claim_pushes: {
19705
+ Args: {
19706
+ _lease_seconds?: number;
19707
+ _limit?: number;
19708
+ _worker?: string;
19709
+ };
19710
+ Returns: {
19711
+ attempts: number;
19712
+ fulfillment_order_id: string;
19713
+ id: string;
19714
+ last_sent_hash: string;
19715
+ order_ref: string;
19716
+ payload: import("../integrations/supabase/types").Json;
19717
+ payload_hash: string;
19718
+ revision: number;
19719
+ }[];
19720
+ };
19721
+ logistics_floriday_finish_push: {
19722
+ Args: {
19723
+ _error?: string;
19724
+ _fulfillment_order_id?: string;
19725
+ _id: string;
19726
+ _max_age_hours?: number;
19727
+ _max_attempts?: number;
19728
+ _ok: boolean;
19729
+ _permanent?: boolean;
19730
+ _revision: number;
19731
+ _sent_hash?: string;
19732
+ };
19733
+ Returns: string;
19734
+ };
19735
+ logistics_floriday_prune_pushes: {
19736
+ Args: {
19737
+ _days?: number;
19738
+ };
19739
+ Returns: number;
19740
+ };
19741
+ logistics_floriday_queue_push: {
19742
+ Args: {
19743
+ _order_ref: string;
19744
+ _payload?: import("../integrations/supabase/types").Json;
19745
+ _payload_hash?: string;
19746
+ };
19747
+ Returns: string;
19748
+ };
19281
19749
  logistics_live_carriers: {
19282
19750
  Args: {
19283
19751
  p_order_ref: string;
@@ -19330,6 +19798,65 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19330
19798
  };
19331
19799
  Returns: number;
19332
19800
  };
19801
+ logistics_plan_claim: {
19802
+ Args: {
19803
+ p_limit?: number;
19804
+ };
19805
+ Returns: {
19806
+ attempts: number;
19807
+ id: string;
19808
+ order_id: string;
19809
+ }[];
19810
+ };
19811
+ logistics_plan_enqueue: {
19812
+ Args: {
19813
+ p_order_id: string;
19814
+ p_reason?: string;
19815
+ };
19816
+ Returns: undefined;
19817
+ };
19818
+ logistics_plan_ensure_event: {
19819
+ Args: {
19820
+ p_order_id: string;
19821
+ };
19822
+ Returns: boolean;
19823
+ };
19824
+ logistics_plan_finish: {
19825
+ Args: {
19826
+ p_error?: string;
19827
+ p_id: string;
19828
+ };
19829
+ Returns: undefined;
19830
+ };
19831
+ logistics_plan_impact_orders: {
19832
+ Args: {
19833
+ p_order_id: string;
19834
+ };
19835
+ Returns: {
19836
+ buffer_id: string;
19837
+ order_id: string;
19838
+ plan_date: string;
19839
+ }[];
19840
+ };
19841
+ logistics_plan_kick: {
19842
+ Args: never;
19843
+ Returns: undefined;
19844
+ };
19845
+ logistics_plan_prune: {
19846
+ Args: never;
19847
+ Returns: number;
19848
+ };
19849
+ logistics_plan_release_stale: {
19850
+ Args: never;
19851
+ Returns: number;
19852
+ };
19853
+ logistics_plan_setting: {
19854
+ Args: {
19855
+ p_default: number;
19856
+ p_key: string;
19857
+ };
19858
+ Returns: number;
19859
+ };
19333
19860
  logistics_queue_capacity_email: {
19334
19861
  Args: {
19335
19862
  p_alert_id: string;
@@ -19568,6 +20095,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19568
20095
  };
19569
20096
  Returns: undefined;
19570
20097
  };
20098
+ my_module_permissions: {
20099
+ Args: never;
20100
+ Returns: {
20101
+ module_id: string;
20102
+ permission: string;
20103
+ }[];
20104
+ };
19571
20105
  next_manufacture_partij: {
19572
20106
  Args: {
19573
20107
  _tenant_id: string;
@@ -19618,6 +20152,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19618
20152
  };
19619
20153
  Returns: boolean;
19620
20154
  };
20155
+ opruim_print_historie: {
20156
+ Args: never;
20157
+ Returns: {
20158
+ ontdaan: number;
20159
+ verwijderd: number;
20160
+ }[];
20161
+ };
19621
20162
  order_number_prefix: {
19622
20163
  Args: {
19623
20164
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19625,6 +20166,15 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19625
20166
  };
19626
20167
  Returns: string;
19627
20168
  };
20169
+ pick_active_printers: {
20170
+ Args: never;
20171
+ Returns: {
20172
+ id: string;
20173
+ locatie: string;
20174
+ naam: string;
20175
+ online: boolean;
20176
+ }[];
20177
+ };
19628
20178
  pick_claim_document: {
19629
20179
  Args: {
19630
20180
  _queue_item_id: string;
@@ -19811,6 +20361,52 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19811
20361
  };
19812
20362
  Returns: undefined;
19813
20363
  };
20364
+ pick_reset_print: {
20365
+ Args: {
20366
+ _queue_item_id: string;
20367
+ _session_id: string;
20368
+ };
20369
+ Returns: {
20370
+ announced_at: string;
20371
+ assigned_user_id: string | null;
20372
+ barcode: string | null;
20373
+ cancelled_at: string | null;
20374
+ cart_count: number;
20375
+ completed_at: string | null;
20376
+ country_code: string | null;
20377
+ created_at: string;
20378
+ customer_name: string | null;
20379
+ delivery_address: string | null;
20380
+ document_number: string | null;
20381
+ document_type_id: string | null;
20382
+ due_at: string | null;
20383
+ id: string;
20384
+ is_urgent: boolean;
20385
+ line_count: number;
20386
+ order_number: string | null;
20387
+ order_type: string | null;
20388
+ payload: import("../integrations/supabase/types").Json;
20389
+ print_count: number;
20390
+ print_job_id: string | null;
20391
+ printed_at: string | null;
20392
+ printed_by: string | null;
20393
+ printer_id: string | null;
20394
+ priority: number;
20395
+ reference: string | null;
20396
+ route: string | null;
20397
+ screen_id: string | null;
20398
+ station_id: string | null;
20399
+ status_id: string | null;
20400
+ updated_at: string;
20401
+ warnings: import("../integrations/supabase/types").Json;
20402
+ };
20403
+ SetofOptions: {
20404
+ from: "*";
20405
+ to: "pick_queue";
20406
+ isOneToOne: true;
20407
+ isSetofReturn: false;
20408
+ };
20409
+ };
19814
20410
  pick_station_dashboard: {
19815
20411
  Args: never;
19816
20412
  Returns: {
@@ -19957,6 +20553,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19957
20553
  };
19958
20554
  Returns: undefined;
19959
20555
  };
20556
+ reset_stalled_floriday_stock_queue: {
20557
+ Args: {
20558
+ p_include_failed?: boolean;
20559
+ };
20560
+ Returns: number;
20561
+ };
19960
20562
  resolve_group_allocation: {
19961
20563
  Args: {
19962
20564
  _needed: number;
@@ -20001,14 +20603,28 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20001
20603
  };
20002
20604
  Returns: import("../integrations/supabase/types").Json;
20003
20605
  };
20606
+ ruim_print_jobs_op: {
20607
+ Args: {
20608
+ _bewaar_dagen?: number;
20609
+ };
20610
+ Returns: number;
20611
+ };
20004
20612
  run_floriday_continuous_stock_sync: {
20005
20613
  Args: never;
20006
20614
  Returns: undefined;
20007
20615
  };
20616
+ run_floriday_stock_queue_process: {
20617
+ Args: never;
20618
+ Returns: undefined;
20619
+ };
20008
20620
  run_logistics_tasks_dispatch: {
20009
20621
  Args: never;
20010
20622
  Returns: undefined;
20011
20623
  };
20624
+ run_print_queue_ticks: {
20625
+ Args: never;
20626
+ Returns: number;
20627
+ };
20012
20628
  run_twinfield_queue_tick: {
20013
20629
  Args: never;
20014
20630
  Returns: undefined;
@@ -20396,6 +21012,15 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20396
21012
  };
20397
21013
  Returns: undefined;
20398
21014
  };
21015
+ trade_item_stock_duplicates: {
21016
+ Args: never;
21017
+ Returns: {
21018
+ keys: string[];
21019
+ product_id: string;
21020
+ product_name: string;
21021
+ row_count: number;
21022
+ }[];
21023
+ };
20399
21024
  try_debtor_lock: {
20400
21025
  Args: {
20401
21026
  _group_key: string;
@@ -20445,7 +21070,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20445
21070
  };
20446
21071
  Enums: {
20447
21072
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20448
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21073
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20449
21074
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20450
21075
  doc_orientation: "portrait" | "landscape";
20451
21076
  exact_env: "staging" | "live";
@@ -22150,7 +22775,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22150
22775
  city: string | null;
22151
22776
  country: string | null;
22152
22777
  created_at: string;
22153
- customer_id: string | null;
22778
+ customer_id: string;
22154
22779
  external_key: string | null;
22155
22780
  external_provider: string | null;
22156
22781
  floriday_location_id: string | null;
@@ -22174,7 +22799,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22174
22799
  city?: string | null;
22175
22800
  country?: string | null;
22176
22801
  created_at?: string;
22177
- customer_id?: string | null;
22802
+ customer_id: string;
22178
22803
  external_key?: string | null;
22179
22804
  external_provider?: string | null;
22180
22805
  floriday_location_id?: string | null;
@@ -22198,7 +22823,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22198
22823
  city?: string | null;
22199
22824
  country?: string | null;
22200
22825
  created_at?: string;
22201
- customer_id?: string | null;
22826
+ customer_id?: string;
22202
22827
  external_key?: string | null;
22203
22828
  external_provider?: string | null;
22204
22829
  floriday_location_id?: string | null;
@@ -26946,6 +27571,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
26946
27571
  Row: {
26947
27572
  buyer_organization_id: string | null;
26948
27573
  connection_id: string;
27574
+ controlled_at: string | null;
26949
27575
  created_at: string;
26950
27576
  data: import("../integrations/supabase/types").Json;
26951
27577
  floriday_id: string;
@@ -26957,6 +27583,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
26957
27583
  Insert: {
26958
27584
  buyer_organization_id?: string | null;
26959
27585
  connection_id: string;
27586
+ controlled_at?: string | null;
26960
27587
  created_at?: string;
26961
27588
  data: import("../integrations/supabase/types").Json;
26962
27589
  floriday_id: string;
@@ -26968,6 +27595,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
26968
27595
  Update: {
26969
27596
  buyer_organization_id?: string | null;
26970
27597
  connection_id?: string;
27598
+ controlled_at?: string | null;
26971
27599
  created_at?: string;
26972
27600
  data?: import("../integrations/supabase/types").Json;
26973
27601
  floriday_id?: string;
@@ -27869,6 +28497,54 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
27869
28497
  };
27870
28498
  Relationships: [];
27871
28499
  };
28500
+ invoice_timing_settings: {
28501
+ Row: {
28502
+ anchor: string;
28503
+ business_days_only: boolean;
28504
+ created_at: string;
28505
+ enabled: boolean;
28506
+ id: string;
28507
+ offset_days: number;
28508
+ pickup_anchor: string;
28509
+ pickup_business_days_only: boolean;
28510
+ pickup_offset_days: number;
28511
+ pickup_time_of_day: string;
28512
+ singleton: boolean;
28513
+ time_of_day: string;
28514
+ updated_at: string;
28515
+ };
28516
+ Insert: {
28517
+ anchor?: string;
28518
+ business_days_only?: boolean;
28519
+ created_at?: string;
28520
+ enabled?: boolean;
28521
+ id?: string;
28522
+ offset_days?: number;
28523
+ pickup_anchor?: string;
28524
+ pickup_business_days_only?: boolean;
28525
+ pickup_offset_days?: number;
28526
+ pickup_time_of_day?: string;
28527
+ singleton?: boolean;
28528
+ time_of_day?: string;
28529
+ updated_at?: string;
28530
+ };
28531
+ Update: {
28532
+ anchor?: string;
28533
+ business_days_only?: boolean;
28534
+ created_at?: string;
28535
+ enabled?: boolean;
28536
+ id?: string;
28537
+ offset_days?: number;
28538
+ pickup_anchor?: string;
28539
+ pickup_business_days_only?: boolean;
28540
+ pickup_offset_days?: number;
28541
+ pickup_time_of_day?: string;
28542
+ singleton?: boolean;
28543
+ time_of_day?: string;
28544
+ updated_at?: string;
28545
+ };
28546
+ Relationships: [];
28547
+ };
27872
28548
  itk_contact_persons: {
27873
28549
  Row: {
27874
28550
  created_at: string;
@@ -28958,6 +29634,69 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
28958
29634
  };
28959
29635
  Relationships: [];
28960
29636
  };
29637
+ logistics_floriday_pushes: {
29638
+ Row: {
29639
+ attempts: number;
29640
+ created_at: string;
29641
+ first_queued_at: string;
29642
+ fulfillment_order_id: string | null;
29643
+ id: string;
29644
+ last_error: string | null;
29645
+ last_error_at: string | null;
29646
+ last_sent_hash: string | null;
29647
+ locked_by: string | null;
29648
+ locked_until: string | null;
29649
+ next_attempt_at: string;
29650
+ order_ref: string;
29651
+ payload: import("../integrations/supabase/types").Json;
29652
+ payload_hash: string | null;
29653
+ revision: number;
29654
+ sent_at: string | null;
29655
+ status: string;
29656
+ updated_at: string;
29657
+ };
29658
+ Insert: {
29659
+ attempts?: number;
29660
+ created_at?: string;
29661
+ first_queued_at?: string;
29662
+ fulfillment_order_id?: string | null;
29663
+ id?: string;
29664
+ last_error?: string | null;
29665
+ last_error_at?: string | null;
29666
+ last_sent_hash?: string | null;
29667
+ locked_by?: string | null;
29668
+ locked_until?: string | null;
29669
+ next_attempt_at?: string;
29670
+ order_ref: string;
29671
+ payload?: import("../integrations/supabase/types").Json;
29672
+ payload_hash?: string | null;
29673
+ revision?: number;
29674
+ sent_at?: string | null;
29675
+ status?: string;
29676
+ updated_at?: string;
29677
+ };
29678
+ Update: {
29679
+ attempts?: number;
29680
+ created_at?: string;
29681
+ first_queued_at?: string;
29682
+ fulfillment_order_id?: string | null;
29683
+ id?: string;
29684
+ last_error?: string | null;
29685
+ last_error_at?: string | null;
29686
+ last_sent_hash?: string | null;
29687
+ locked_by?: string | null;
29688
+ locked_until?: string | null;
29689
+ next_attempt_at?: string;
29690
+ order_ref?: string;
29691
+ payload?: import("../integrations/supabase/types").Json;
29692
+ payload_hash?: string | null;
29693
+ revision?: number;
29694
+ sent_at?: string | null;
29695
+ status?: string;
29696
+ updated_at?: string;
29697
+ };
29698
+ Relationships: [];
29699
+ };
28961
29700
  logistics_formulas: {
28962
29701
  Row: {
28963
29702
  created_at: string;
@@ -29036,6 +29775,45 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29036
29775
  };
29037
29776
  Relationships: [];
29038
29777
  };
29778
+ logistics_plan_queue: {
29779
+ Row: {
29780
+ attempts: number;
29781
+ claimed_at: string | null;
29782
+ enqueued_at: string;
29783
+ error: string | null;
29784
+ id: string;
29785
+ next_attempt_at: string;
29786
+ order_id: string;
29787
+ reason: string;
29788
+ status: string;
29789
+ updated_at: string;
29790
+ };
29791
+ Insert: {
29792
+ attempts?: number;
29793
+ claimed_at?: string | null;
29794
+ enqueued_at?: string;
29795
+ error?: string | null;
29796
+ id?: string;
29797
+ next_attempt_at?: string;
29798
+ order_id: string;
29799
+ reason?: string;
29800
+ status?: string;
29801
+ updated_at?: string;
29802
+ };
29803
+ Update: {
29804
+ attempts?: number;
29805
+ claimed_at?: string | null;
29806
+ enqueued_at?: string;
29807
+ error?: string | null;
29808
+ id?: string;
29809
+ next_attempt_at?: string;
29810
+ order_id?: string;
29811
+ reason?: string;
29812
+ status?: string;
29813
+ updated_at?: string;
29814
+ };
29815
+ Relationships: [];
29816
+ };
29039
29817
  logistics_plan_runs: {
29040
29818
  Row: {
29041
29819
  created_at: string;
@@ -29111,6 +29889,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29111
29889
  referencedColumns: ["id"];
29112
29890
  }];
29113
29891
  };
29892
+ logistics_plan_settings: {
29893
+ Row: {
29894
+ key: string;
29895
+ updated_at: string;
29896
+ value: string;
29897
+ };
29898
+ Insert: {
29899
+ key: string;
29900
+ updated_at?: string;
29901
+ value: string;
29902
+ };
29903
+ Update: {
29904
+ key?: string;
29905
+ updated_at?: string;
29906
+ value?: string;
29907
+ };
29908
+ Relationships: [];
29909
+ };
29114
29910
  logistics_rebuffer_state: {
29115
29911
  Row: {
29116
29912
  created_at: string;
@@ -29821,14 +30617,17 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29821
30617
  };
29822
30618
  mailbox_messages: {
29823
30619
  Row: {
30620
+ attachments: import("../integrations/supabase/types").Json;
29824
30621
  body_html: string | null;
29825
30622
  body_text: string | null;
30623
+ cc_recipients: import("../integrations/supabase/types").Json;
29826
30624
  connection_id: string | null;
29827
30625
  created_at: string;
29828
30626
  error_message: string | null;
29829
30627
  external_id: string | null;
29830
30628
  from_email: string | null;
29831
30629
  from_name: string | null;
30630
+ has_attachments: boolean;
29832
30631
  id: string;
29833
30632
  message_id: string | null;
29834
30633
  profile_id: string | null;
@@ -29836,18 +30635,22 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29836
30635
  received_at: string | null;
29837
30636
  status: string;
29838
30637
  subject: string | null;
30638
+ to_recipients: import("../integrations/supabase/types").Json;
29839
30639
  uid: number | null;
29840
30640
  updated_at: string;
29841
30641
  };
29842
30642
  Insert: {
30643
+ attachments?: import("../integrations/supabase/types").Json;
29843
30644
  body_html?: string | null;
29844
30645
  body_text?: string | null;
30646
+ cc_recipients?: import("../integrations/supabase/types").Json;
29845
30647
  connection_id?: string | null;
29846
30648
  created_at?: string;
29847
30649
  error_message?: string | null;
29848
30650
  external_id?: string | null;
29849
30651
  from_email?: string | null;
29850
30652
  from_name?: string | null;
30653
+ has_attachments?: boolean;
29851
30654
  id?: string;
29852
30655
  message_id?: string | null;
29853
30656
  profile_id?: string | null;
@@ -29855,18 +30658,22 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29855
30658
  received_at?: string | null;
29856
30659
  status?: string;
29857
30660
  subject?: string | null;
30661
+ to_recipients?: import("../integrations/supabase/types").Json;
29858
30662
  uid?: number | null;
29859
30663
  updated_at?: string;
29860
30664
  };
29861
30665
  Update: {
30666
+ attachments?: import("../integrations/supabase/types").Json;
29862
30667
  body_html?: string | null;
29863
30668
  body_text?: string | null;
30669
+ cc_recipients?: import("../integrations/supabase/types").Json;
29864
30670
  connection_id?: string | null;
29865
30671
  created_at?: string;
29866
30672
  error_message?: string | null;
29867
30673
  external_id?: string | null;
29868
30674
  from_email?: string | null;
29869
30675
  from_name?: string | null;
30676
+ has_attachments?: boolean;
29870
30677
  id?: string;
29871
30678
  message_id?: string | null;
29872
30679
  profile_id?: string | null;
@@ -29874,6 +30681,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29874
30681
  received_at?: string | null;
29875
30682
  status?: string;
29876
30683
  subject?: string | null;
30684
+ to_recipients?: import("../integrations/supabase/types").Json;
29877
30685
  uid?: number | null;
29878
30686
  updated_at?: string;
29879
30687
  };
@@ -30281,6 +31089,36 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
30281
31089
  };
30282
31090
  Relationships: [];
30283
31091
  };
31092
+ module_registry: {
31093
+ Row: {
31094
+ created_at: string;
31095
+ is_active: boolean;
31096
+ last_seen_at: string;
31097
+ module_id: string;
31098
+ name: string;
31099
+ shell_id: string | null;
31100
+ sort_order: number | null;
31101
+ };
31102
+ Insert: {
31103
+ created_at?: string;
31104
+ is_active?: boolean;
31105
+ last_seen_at?: string;
31106
+ module_id: string;
31107
+ name: string;
31108
+ shell_id?: string | null;
31109
+ sort_order?: number | null;
31110
+ };
31111
+ Update: {
31112
+ created_at?: string;
31113
+ is_active?: boolean;
31114
+ last_seen_at?: string;
31115
+ module_id?: string;
31116
+ name?: string;
31117
+ shell_id?: string | null;
31118
+ sort_order?: number | null;
31119
+ };
31120
+ Relationships: [];
31121
+ };
30284
31122
  module_runtime_config: {
30285
31123
  Row: {
30286
31124
  key: string;
@@ -31340,6 +32178,45 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
31340
32178
  };
31341
32179
  Relationships: [];
31342
32180
  };
32181
+ order_invoice_links: {
32182
+ Row: {
32183
+ attempts: number;
32184
+ created_at: string;
32185
+ error_message: string | null;
32186
+ id: string;
32187
+ invoice_number: string | null;
32188
+ next_attempt_at: string;
32189
+ order_id: string;
32190
+ processed_at: string | null;
32191
+ status: string;
32192
+ updated_at: string;
32193
+ };
32194
+ Insert: {
32195
+ attempts?: number;
32196
+ created_at?: string;
32197
+ error_message?: string | null;
32198
+ id?: string;
32199
+ invoice_number?: string | null;
32200
+ next_attempt_at?: string;
32201
+ order_id: string;
32202
+ processed_at?: string | null;
32203
+ status?: string;
32204
+ updated_at?: string;
32205
+ };
32206
+ Update: {
32207
+ attempts?: number;
32208
+ created_at?: string;
32209
+ error_message?: string | null;
32210
+ id?: string;
32211
+ invoice_number?: string | null;
32212
+ next_attempt_at?: string;
32213
+ order_id?: string;
32214
+ processed_at?: string | null;
32215
+ status?: string;
32216
+ updated_at?: string;
32217
+ };
32218
+ Relationships: [];
32219
+ };
31343
32220
  order_items: {
31344
32221
  Row: {
31345
32222
  crates_per_layer: number | null;
@@ -31522,6 +32399,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
31522
32399
  delivery_date: string | null;
31523
32400
  floriday_sales_order_id: string | null;
31524
32401
  id: string;
32402
+ invoice_due_at: string | null;
31525
32403
  is_reservation: boolean;
31526
32404
  notes: string | null;
31527
32405
  order_date: string;
@@ -31543,6 +32421,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
31543
32421
  delivery_date?: string | null;
31544
32422
  floriday_sales_order_id?: string | null;
31545
32423
  id?: string;
32424
+ invoice_due_at?: string | null;
31546
32425
  is_reservation?: boolean;
31547
32426
  notes?: string | null;
31548
32427
  order_date?: string;
@@ -31564,6 +32443,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
31564
32443
  delivery_date?: string | null;
31565
32444
  floriday_sales_order_id?: string | null;
31566
32445
  id?: string;
32446
+ invoice_due_at?: string | null;
31567
32447
  is_reservation?: boolean;
31568
32448
  notes?: string | null;
31569
32449
  order_date?: string;
@@ -32760,22 +33640,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
32760
33640
  created_at: string;
32761
33641
  documentnaam: string;
32762
33642
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33643
+ extern_job_id: string | null;
32763
33644
  foutmelding: string | null;
32764
33645
  gebruiker_id: string | null;
32765
33646
  gebruiker_naam: string;
32766
33647
  gestart_op: string | null;
32767
33648
  id: string;
33649
+ idempotentie_sleutel: string | null;
32768
33650
  is_herprint: boolean;
32769
33651
  kopieen: number;
32770
33652
  layout_id: string | null;
32771
33653
  opgepakt_op: string | null;
32772
33654
  paginas: number;
32773
33655
  payload: import("../integrations/supabase/types").Json;
33656
+ pdf_base64: string | null;
33657
+ pdf_url: string | null;
32774
33658
  pogingen: number;
32775
33659
  printer_id: string | null;
32776
33660
  render_html: string | null;
32777
33661
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32778
33662
  updated_at: string;
33663
+ volgende_poging: string | null;
32779
33664
  voltooid_op: string | null;
32780
33665
  };
32781
33666
  Insert: {
@@ -32784,22 +33669,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
32784
33669
  created_at?: string;
32785
33670
  documentnaam?: string;
32786
33671
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33672
+ extern_job_id?: string | null;
32787
33673
  foutmelding?: string | null;
32788
33674
  gebruiker_id?: string | null;
32789
33675
  gebruiker_naam?: string;
32790
33676
  gestart_op?: string | null;
32791
33677
  id?: string;
33678
+ idempotentie_sleutel?: string | null;
32792
33679
  is_herprint?: boolean;
32793
33680
  kopieen?: number;
32794
33681
  layout_id?: string | null;
32795
33682
  opgepakt_op?: string | null;
32796
33683
  paginas?: number;
32797
33684
  payload?: import("../integrations/supabase/types").Json;
33685
+ pdf_base64?: string | null;
33686
+ pdf_url?: string | null;
32798
33687
  pogingen?: number;
32799
33688
  printer_id?: string | null;
32800
33689
  render_html?: string | null;
32801
33690
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32802
33691
  updated_at?: string;
33692
+ volgende_poging?: string | null;
32803
33693
  voltooid_op?: string | null;
32804
33694
  };
32805
33695
  Update: {
@@ -32808,22 +33698,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
32808
33698
  created_at?: string;
32809
33699
  documentnaam?: string;
32810
33700
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33701
+ extern_job_id?: string | null;
32811
33702
  foutmelding?: string | null;
32812
33703
  gebruiker_id?: string | null;
32813
33704
  gebruiker_naam?: string;
32814
33705
  gestart_op?: string | null;
32815
33706
  id?: string;
33707
+ idempotentie_sleutel?: string | null;
32816
33708
  is_herprint?: boolean;
32817
33709
  kopieen?: number;
32818
33710
  layout_id?: string | null;
32819
33711
  opgepakt_op?: string | null;
32820
33712
  paginas?: number;
32821
33713
  payload?: import("../integrations/supabase/types").Json;
33714
+ pdf_base64?: string | null;
33715
+ pdf_url?: string | null;
32822
33716
  pogingen?: number;
32823
33717
  printer_id?: string | null;
32824
33718
  render_html?: string | null;
32825
33719
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32826
33720
  updated_at?: string;
33721
+ volgende_poging?: string | null;
32827
33722
  voltooid_op?: string | null;
32828
33723
  };
32829
33724
  Relationships: [{
@@ -32846,6 +33741,63 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
32846
33741
  referencedColumns: ["id"];
32847
33742
  }];
32848
33743
  };
33744
+ print_queue_runners: {
33745
+ Row: {
33746
+ actief: boolean;
33747
+ basis_url: string;
33748
+ created_at: string;
33749
+ id: string;
33750
+ laatst_gezien: string;
33751
+ tick_sleutel: string;
33752
+ updated_at: string;
33753
+ };
33754
+ Insert: {
33755
+ actief?: boolean;
33756
+ basis_url: string;
33757
+ created_at?: string;
33758
+ id?: string;
33759
+ laatst_gezien?: string;
33760
+ tick_sleutel?: string;
33761
+ updated_at?: string;
33762
+ };
33763
+ Update: {
33764
+ actief?: boolean;
33765
+ basis_url?: string;
33766
+ created_at?: string;
33767
+ id?: string;
33768
+ laatst_gezien?: string;
33769
+ tick_sleutel?: string;
33770
+ updated_at?: string;
33771
+ };
33772
+ Relationships: [];
33773
+ };
33774
+ print_queue_settings: {
33775
+ Row: {
33776
+ bewaar_bestanden_dagen: number;
33777
+ bewaar_opdrachten_dagen: number;
33778
+ created_at: string;
33779
+ dubbel_venster_minuten: number;
33780
+ id: string;
33781
+ updated_at: string;
33782
+ };
33783
+ Insert: {
33784
+ bewaar_bestanden_dagen?: number;
33785
+ bewaar_opdrachten_dagen?: number;
33786
+ created_at?: string;
33787
+ dubbel_venster_minuten?: number;
33788
+ id?: string;
33789
+ updated_at?: string;
33790
+ };
33791
+ Update: {
33792
+ bewaar_bestanden_dagen?: number;
33793
+ bewaar_opdrachten_dagen?: number;
33794
+ created_at?: string;
33795
+ dubbel_venster_minuten?: number;
33796
+ id?: string;
33797
+ updated_at?: string;
33798
+ };
33799
+ Relationships: [];
33800
+ };
32849
33801
  print_rules: {
32850
33802
  Row: {
32851
33803
  actief: boolean;
@@ -33006,6 +33958,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
33006
33958
  agent_id: string | null;
33007
33959
  created_at: string;
33008
33960
  driver: string;
33961
+ extern_printer_id: string | null;
33009
33962
  id: string;
33010
33963
  ip_adres: string | null;
33011
33964
  laatst_gezien: string | null;
@@ -33027,6 +33980,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
33027
33980
  agent_id?: string | null;
33028
33981
  created_at?: string;
33029
33982
  driver?: string;
33983
+ extern_printer_id?: string | null;
33030
33984
  id?: string;
33031
33985
  ip_adres?: string | null;
33032
33986
  laatst_gezien?: string | null;
@@ -33048,6 +34002,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
33048
34002
  agent_id?: string | null;
33049
34003
  created_at?: string;
33050
34004
  driver?: string;
34005
+ extern_printer_id?: string | null;
33051
34006
  id?: string;
33052
34007
  ip_adres?: string | null;
33053
34008
  laatst_gezien?: string | null;
@@ -35683,6 +36638,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35683
36638
  };
35684
36639
  twinfield_invoice_settings: {
35685
36640
  Row: {
36641
+ auto_invoice_enabled: boolean;
36642
+ auto_invoice_trigger_statuses: string[];
35686
36643
  created_at: string;
35687
36644
  debtor_gl_account: string;
35688
36645
  default_credit_invoice_type: string | null;
@@ -35703,6 +36660,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35703
36660
  vat_code_export: string | null;
35704
36661
  };
35705
36662
  Insert: {
36663
+ auto_invoice_enabled?: boolean;
36664
+ auto_invoice_trigger_statuses?: string[];
35706
36665
  created_at?: string;
35707
36666
  debtor_gl_account?: string;
35708
36667
  default_credit_invoice_type?: string | null;
@@ -35723,6 +36682,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35723
36682
  vat_code_export?: string | null;
35724
36683
  };
35725
36684
  Update: {
36685
+ auto_invoice_enabled?: boolean;
36686
+ auto_invoice_trigger_statuses?: string[];
35726
36687
  created_at?: string;
35727
36688
  debtor_gl_account?: string;
35728
36689
  default_credit_invoice_type?: string | null;
@@ -36785,6 +37746,33 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36785
37746
  referencedColumns: ["id"];
36786
37747
  }];
36787
37748
  };
37749
+ user_module_permissions: {
37750
+ Row: {
37751
+ created_at: string;
37752
+ id: string;
37753
+ module_id: string;
37754
+ permission: string;
37755
+ updated_at: string;
37756
+ user_id: string;
37757
+ };
37758
+ Insert: {
37759
+ created_at?: string;
37760
+ id?: string;
37761
+ module_id: string;
37762
+ permission: string;
37763
+ updated_at?: string;
37764
+ user_id: string;
37765
+ };
37766
+ Update: {
37767
+ created_at?: string;
37768
+ id?: string;
37769
+ module_id?: string;
37770
+ permission?: string;
37771
+ updated_at?: string;
37772
+ user_id?: string;
37773
+ };
37774
+ Relationships: [];
37775
+ };
36788
37776
  user_roles: {
36789
37777
  Row: {
36790
37778
  created_at: string;
@@ -38618,6 +39606,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38618
39606
  processed_items: number;
38619
39607
  }[];
38620
39608
  };
39609
+ backfill_order_auto_invoice_queue: {
39610
+ Args: never;
39611
+ Returns: number;
39612
+ };
38621
39613
  calculate_layer_stock: {
38622
39614
  Args: {
38623
39615
  p_product_id: string;
@@ -38652,6 +39644,46 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38652
39644
  };
38653
39645
  Returns: import("../integrations/supabase/types").Json;
38654
39646
  };
39647
+ claim_cloud_print_jobs: {
39648
+ Args: {
39649
+ _max?: number;
39650
+ };
39651
+ Returns: {
39652
+ agent_id: string | null;
39653
+ bron_job_id: string | null;
39654
+ created_at: string;
39655
+ documentnaam: string;
39656
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39657
+ extern_job_id: string | null;
39658
+ foutmelding: string | null;
39659
+ gebruiker_id: string | null;
39660
+ gebruiker_naam: string;
39661
+ gestart_op: string | null;
39662
+ id: string;
39663
+ idempotentie_sleutel: string | null;
39664
+ is_herprint: boolean;
39665
+ kopieen: number;
39666
+ layout_id: string | null;
39667
+ opgepakt_op: string | null;
39668
+ paginas: number;
39669
+ payload: import("../integrations/supabase/types").Json;
39670
+ pdf_base64: string | null;
39671
+ pdf_url: string | null;
39672
+ pogingen: number;
39673
+ printer_id: string | null;
39674
+ render_html: string | null;
39675
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
39676
+ updated_at: string;
39677
+ volgende_poging: string | null;
39678
+ voltooid_op: string | null;
39679
+ }[];
39680
+ SetofOptions: {
39681
+ from: "*";
39682
+ to: "print_jobs";
39683
+ isOneToOne: false;
39684
+ isSetofReturn: true;
39685
+ };
39686
+ };
38655
39687
  claim_floriday_stock_queue: {
38656
39688
  Args: {
38657
39689
  p_limit?: number;
@@ -38742,22 +39774,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38742
39774
  created_at: string;
38743
39775
  documentnaam: string;
38744
39776
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39777
+ extern_job_id: string | null;
38745
39778
  foutmelding: string | null;
38746
39779
  gebruiker_id: string | null;
38747
39780
  gebruiker_naam: string;
38748
39781
  gestart_op: string | null;
38749
39782
  id: string;
39783
+ idempotentie_sleutel: string | null;
38750
39784
  is_herprint: boolean;
38751
39785
  kopieen: number;
38752
39786
  layout_id: string | null;
38753
39787
  opgepakt_op: string | null;
38754
39788
  paginas: number;
38755
39789
  payload: import("../integrations/supabase/types").Json;
39790
+ pdf_base64: string | null;
39791
+ pdf_url: string | null;
38756
39792
  pogingen: number;
38757
39793
  printer_id: string | null;
38758
39794
  render_html: string | null;
38759
39795
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38760
39796
  updated_at: string;
39797
+ volgende_poging: string | null;
38761
39798
  voltooid_op: string | null;
38762
39799
  }[];
38763
39800
  SetofOptions: {
@@ -38803,6 +39840,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38803
39840
  Args: never;
38804
39841
  Returns: undefined;
38805
39842
  };
39843
+ cleanup_voorraad_module_history: {
39844
+ Args: never;
39845
+ Returns: undefined;
39846
+ };
38806
39847
  complete_floriday_stock_queue: {
38807
39848
  Args: {
38808
39849
  p_attempt_id?: string;
@@ -38924,6 +39965,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38924
39965
  };
38925
39966
  Returns: import("../integrations/supabase/types").Json;
38926
39967
  };
39968
+ effective_module_permission: {
39969
+ Args: {
39970
+ _module_id: string;
39971
+ _user_id: string;
39972
+ };
39973
+ Returns: string;
39974
+ };
38927
39975
  email_auth_decrypt: {
38928
39976
  Args: {
38929
39977
  cipher: string;
@@ -39588,144 +40636,189 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
39588
40636
  isSetofReturn: false;
39589
40637
  };
39590
40638
  };
39591
- logistics_complete_task: {
40639
+ logistics_complete_task: {
40640
+ Args: {
40641
+ p_result?: import("../integrations/supabase/types").Json;
40642
+ p_task_id: string;
40643
+ };
40644
+ Returns: {
40645
+ attempt_log: import("../integrations/supabase/types").Json;
40646
+ attempts: number;
40647
+ buffer_ref: string | null;
40648
+ claimed_at: string | null;
40649
+ claimed_by: string | null;
40650
+ completed_at: string | null;
40651
+ created_at: string;
40652
+ depends_on: string[];
40653
+ due_at: string | null;
40654
+ error: string | null;
40655
+ id: string;
40656
+ last_error: string | null;
40657
+ next_attempt_at: string | null;
40658
+ order_ref: string;
40659
+ owner_module: string;
40660
+ payload: import("../integrations/supabase/types").Json;
40661
+ plan_run_id: string | null;
40662
+ planned_end: string | null;
40663
+ planned_start: string | null;
40664
+ priority: number;
40665
+ result: import("../integrations/supabase/types").Json | null;
40666
+ rule_config_id: string | null;
40667
+ rule_version: number | null;
40668
+ sequence: number;
40669
+ shadow: boolean;
40670
+ started_at: string | null;
40671
+ status: string;
40672
+ strategy_id: string | null;
40673
+ task_type: string;
40674
+ updated_at: string;
40675
+ user_id: string;
40676
+ };
40677
+ SetofOptions: {
40678
+ from: "*";
40679
+ to: "logistics_tasks";
40680
+ isOneToOne: true;
40681
+ isSetofReturn: false;
40682
+ };
40683
+ };
40684
+ logistics_delay_customer_email: {
40685
+ Args: {
40686
+ p_customer: string;
40687
+ p_lang: string;
40688
+ p_new_date: string;
40689
+ p_order: string;
40690
+ p_partial?: boolean;
40691
+ };
40692
+ Returns: {
40693
+ body: string;
40694
+ subject: string;
40695
+ }[];
40696
+ };
40697
+ logistics_document_layout: {
40698
+ Args: {
40699
+ _document_code: string;
40700
+ };
40701
+ Returns: import("../integrations/supabase/types").Json;
40702
+ };
40703
+ logistics_document_station: {
40704
+ Args: {
40705
+ _document_code: string;
40706
+ };
40707
+ Returns: string;
40708
+ };
40709
+ logistics_emit_event: {
40710
+ Args: {
40711
+ p_event_type: string;
40712
+ p_idempotency_key?: string;
40713
+ p_order_ref: string;
40714
+ p_payload?: import("../integrations/supabase/types").Json;
40715
+ p_shadow?: boolean;
40716
+ p_source_module: string;
40717
+ p_strategy_id?: string;
40718
+ };
40719
+ Returns: import("../integrations/supabase/types").Json;
40720
+ } | {
40721
+ Args: {
40722
+ p_event_type: string;
40723
+ p_idempotency_key?: string;
40724
+ p_order_ref: string;
40725
+ p_payload?: import("../integrations/supabase/types").Json;
40726
+ p_priority?: number;
40727
+ p_shadow?: boolean;
40728
+ p_source_module: string;
40729
+ p_strategy_id?: string;
40730
+ };
40731
+ Returns: import("../integrations/supabase/types").Json;
40732
+ };
40733
+ logistics_fail_task: {
40734
+ Args: {
40735
+ p_error: string;
40736
+ p_task_id: string;
40737
+ };
40738
+ Returns: {
40739
+ attempt_log: import("../integrations/supabase/types").Json;
40740
+ attempts: number;
40741
+ buffer_ref: string | null;
40742
+ claimed_at: string | null;
40743
+ claimed_by: string | null;
40744
+ completed_at: string | null;
40745
+ created_at: string;
40746
+ depends_on: string[];
40747
+ due_at: string | null;
40748
+ error: string | null;
40749
+ id: string;
40750
+ last_error: string | null;
40751
+ next_attempt_at: string | null;
40752
+ order_ref: string;
40753
+ owner_module: string;
40754
+ payload: import("../integrations/supabase/types").Json;
40755
+ plan_run_id: string | null;
40756
+ planned_end: string | null;
40757
+ planned_start: string | null;
40758
+ priority: number;
40759
+ result: import("../integrations/supabase/types").Json | null;
40760
+ rule_config_id: string | null;
40761
+ rule_version: number | null;
40762
+ sequence: number;
40763
+ shadow: boolean;
40764
+ started_at: string | null;
40765
+ status: string;
40766
+ strategy_id: string | null;
40767
+ task_type: string;
40768
+ updated_at: string;
40769
+ user_id: string;
40770
+ };
40771
+ SetofOptions: {
40772
+ from: "*";
40773
+ to: "logistics_tasks";
40774
+ isOneToOne: true;
40775
+ isSetofReturn: false;
40776
+ };
40777
+ };
40778
+ logistics_floriday_claim_pushes: {
39592
40779
  Args: {
39593
- p_result?: import("../integrations/supabase/types").Json;
39594
- p_task_id: string;
40780
+ _lease_seconds?: number;
40781
+ _limit?: number;
40782
+ _worker?: string;
39595
40783
  };
39596
40784
  Returns: {
39597
- attempt_log: import("../integrations/supabase/types").Json;
39598
40785
  attempts: number;
39599
- buffer_ref: string | null;
39600
- claimed_at: string | null;
39601
- claimed_by: string | null;
39602
- completed_at: string | null;
39603
- created_at: string;
39604
- depends_on: string[];
39605
- due_at: string | null;
39606
- error: string | null;
40786
+ fulfillment_order_id: string;
39607
40787
  id: string;
39608
- last_error: string | null;
39609
- next_attempt_at: string | null;
40788
+ last_sent_hash: string;
39610
40789
  order_ref: string;
39611
- owner_module: string;
39612
40790
  payload: import("../integrations/supabase/types").Json;
39613
- plan_run_id: string | null;
39614
- planned_end: string | null;
39615
- planned_start: string | null;
39616
- priority: number;
39617
- result: import("../integrations/supabase/types").Json | null;
39618
- rule_config_id: string | null;
39619
- rule_version: number | null;
39620
- sequence: number;
39621
- shadow: boolean;
39622
- started_at: string | null;
39623
- status: string;
39624
- strategy_id: string | null;
39625
- task_type: string;
39626
- updated_at: string;
39627
- user_id: string;
39628
- };
39629
- SetofOptions: {
39630
- from: "*";
39631
- to: "logistics_tasks";
39632
- isOneToOne: true;
39633
- isSetofReturn: false;
39634
- };
39635
- };
39636
- logistics_delay_customer_email: {
39637
- Args: {
39638
- p_customer: string;
39639
- p_lang: string;
39640
- p_new_date: string;
39641
- p_order: string;
39642
- p_partial?: boolean;
39643
- };
39644
- Returns: {
39645
- body: string;
39646
- subject: string;
40791
+ payload_hash: string;
40792
+ revision: number;
39647
40793
  }[];
39648
40794
  };
39649
- logistics_document_layout: {
39650
- Args: {
39651
- _document_code: string;
39652
- };
39653
- Returns: import("../integrations/supabase/types").Json;
39654
- };
39655
- logistics_document_station: {
40795
+ logistics_floriday_finish_push: {
39656
40796
  Args: {
39657
- _document_code: string;
40797
+ _error?: string;
40798
+ _fulfillment_order_id?: string;
40799
+ _id: string;
40800
+ _max_age_hours?: number;
40801
+ _max_attempts?: number;
40802
+ _ok: boolean;
40803
+ _permanent?: boolean;
40804
+ _revision: number;
40805
+ _sent_hash?: string;
39658
40806
  };
39659
40807
  Returns: string;
39660
40808
  };
39661
- logistics_emit_event: {
39662
- Args: {
39663
- p_event_type: string;
39664
- p_idempotency_key?: string;
39665
- p_order_ref: string;
39666
- p_payload?: import("../integrations/supabase/types").Json;
39667
- p_shadow?: boolean;
39668
- p_source_module: string;
39669
- p_strategy_id?: string;
39670
- };
39671
- Returns: import("../integrations/supabase/types").Json;
39672
- } | {
40809
+ logistics_floriday_prune_pushes: {
39673
40810
  Args: {
39674
- p_event_type: string;
39675
- p_idempotency_key?: string;
39676
- p_order_ref: string;
39677
- p_payload?: import("../integrations/supabase/types").Json;
39678
- p_priority?: number;
39679
- p_shadow?: boolean;
39680
- p_source_module: string;
39681
- p_strategy_id?: string;
40811
+ _days?: number;
39682
40812
  };
39683
- Returns: import("../integrations/supabase/types").Json;
40813
+ Returns: number;
39684
40814
  };
39685
- logistics_fail_task: {
40815
+ logistics_floriday_queue_push: {
39686
40816
  Args: {
39687
- p_error: string;
39688
- p_task_id: string;
39689
- };
39690
- Returns: {
39691
- attempt_log: import("../integrations/supabase/types").Json;
39692
- attempts: number;
39693
- buffer_ref: string | null;
39694
- claimed_at: string | null;
39695
- claimed_by: string | null;
39696
- completed_at: string | null;
39697
- created_at: string;
39698
- depends_on: string[];
39699
- due_at: string | null;
39700
- error: string | null;
39701
- id: string;
39702
- last_error: string | null;
39703
- next_attempt_at: string | null;
39704
- order_ref: string;
39705
- owner_module: string;
39706
- payload: import("../integrations/supabase/types").Json;
39707
- plan_run_id: string | null;
39708
- planned_end: string | null;
39709
- planned_start: string | null;
39710
- priority: number;
39711
- result: import("../integrations/supabase/types").Json | null;
39712
- rule_config_id: string | null;
39713
- rule_version: number | null;
39714
- sequence: number;
39715
- shadow: boolean;
39716
- started_at: string | null;
39717
- status: string;
39718
- strategy_id: string | null;
39719
- task_type: string;
39720
- updated_at: string;
39721
- user_id: string;
39722
- };
39723
- SetofOptions: {
39724
- from: "*";
39725
- to: "logistics_tasks";
39726
- isOneToOne: true;
39727
- isSetofReturn: false;
40817
+ _order_ref: string;
40818
+ _payload?: import("../integrations/supabase/types").Json;
40819
+ _payload_hash?: string;
39728
40820
  };
40821
+ Returns: string;
39729
40822
  };
39730
40823
  logistics_live_carriers: {
39731
40824
  Args: {
@@ -39779,6 +40872,65 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
39779
40872
  };
39780
40873
  Returns: number;
39781
40874
  };
40875
+ logistics_plan_claim: {
40876
+ Args: {
40877
+ p_limit?: number;
40878
+ };
40879
+ Returns: {
40880
+ attempts: number;
40881
+ id: string;
40882
+ order_id: string;
40883
+ }[];
40884
+ };
40885
+ logistics_plan_enqueue: {
40886
+ Args: {
40887
+ p_order_id: string;
40888
+ p_reason?: string;
40889
+ };
40890
+ Returns: undefined;
40891
+ };
40892
+ logistics_plan_ensure_event: {
40893
+ Args: {
40894
+ p_order_id: string;
40895
+ };
40896
+ Returns: boolean;
40897
+ };
40898
+ logistics_plan_finish: {
40899
+ Args: {
40900
+ p_error?: string;
40901
+ p_id: string;
40902
+ };
40903
+ Returns: undefined;
40904
+ };
40905
+ logistics_plan_impact_orders: {
40906
+ Args: {
40907
+ p_order_id: string;
40908
+ };
40909
+ Returns: {
40910
+ buffer_id: string;
40911
+ order_id: string;
40912
+ plan_date: string;
40913
+ }[];
40914
+ };
40915
+ logistics_plan_kick: {
40916
+ Args: never;
40917
+ Returns: undefined;
40918
+ };
40919
+ logistics_plan_prune: {
40920
+ Args: never;
40921
+ Returns: number;
40922
+ };
40923
+ logistics_plan_release_stale: {
40924
+ Args: never;
40925
+ Returns: number;
40926
+ };
40927
+ logistics_plan_setting: {
40928
+ Args: {
40929
+ p_default: number;
40930
+ p_key: string;
40931
+ };
40932
+ Returns: number;
40933
+ };
39782
40934
  logistics_queue_capacity_email: {
39783
40935
  Args: {
39784
40936
  p_alert_id: string;
@@ -40017,6 +41169,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40017
41169
  };
40018
41170
  Returns: undefined;
40019
41171
  };
41172
+ my_module_permissions: {
41173
+ Args: never;
41174
+ Returns: {
41175
+ module_id: string;
41176
+ permission: string;
41177
+ }[];
41178
+ };
40020
41179
  next_manufacture_partij: {
40021
41180
  Args: {
40022
41181
  _tenant_id: string;
@@ -40067,6 +41226,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40067
41226
  };
40068
41227
  Returns: boolean;
40069
41228
  };
41229
+ opruim_print_historie: {
41230
+ Args: never;
41231
+ Returns: {
41232
+ ontdaan: number;
41233
+ verwijderd: number;
41234
+ }[];
41235
+ };
40070
41236
  order_number_prefix: {
40071
41237
  Args: {
40072
41238
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -40074,6 +41240,15 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40074
41240
  };
40075
41241
  Returns: string;
40076
41242
  };
41243
+ pick_active_printers: {
41244
+ Args: never;
41245
+ Returns: {
41246
+ id: string;
41247
+ locatie: string;
41248
+ naam: string;
41249
+ online: boolean;
41250
+ }[];
41251
+ };
40077
41252
  pick_claim_document: {
40078
41253
  Args: {
40079
41254
  _queue_item_id: string;
@@ -40260,6 +41435,52 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40260
41435
  };
40261
41436
  Returns: undefined;
40262
41437
  };
41438
+ pick_reset_print: {
41439
+ Args: {
41440
+ _queue_item_id: string;
41441
+ _session_id: string;
41442
+ };
41443
+ Returns: {
41444
+ announced_at: string;
41445
+ assigned_user_id: string | null;
41446
+ barcode: string | null;
41447
+ cancelled_at: string | null;
41448
+ cart_count: number;
41449
+ completed_at: string | null;
41450
+ country_code: string | null;
41451
+ created_at: string;
41452
+ customer_name: string | null;
41453
+ delivery_address: string | null;
41454
+ document_number: string | null;
41455
+ document_type_id: string | null;
41456
+ due_at: string | null;
41457
+ id: string;
41458
+ is_urgent: boolean;
41459
+ line_count: number;
41460
+ order_number: string | null;
41461
+ order_type: string | null;
41462
+ payload: import("../integrations/supabase/types").Json;
41463
+ print_count: number;
41464
+ print_job_id: string | null;
41465
+ printed_at: string | null;
41466
+ printed_by: string | null;
41467
+ printer_id: string | null;
41468
+ priority: number;
41469
+ reference: string | null;
41470
+ route: string | null;
41471
+ screen_id: string | null;
41472
+ station_id: string | null;
41473
+ status_id: string | null;
41474
+ updated_at: string;
41475
+ warnings: import("../integrations/supabase/types").Json;
41476
+ };
41477
+ SetofOptions: {
41478
+ from: "*";
41479
+ to: "pick_queue";
41480
+ isOneToOne: true;
41481
+ isSetofReturn: false;
41482
+ };
41483
+ };
40263
41484
  pick_station_dashboard: {
40264
41485
  Args: never;
40265
41486
  Returns: {
@@ -40406,6 +41627,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40406
41627
  };
40407
41628
  Returns: undefined;
40408
41629
  };
41630
+ reset_stalled_floriday_stock_queue: {
41631
+ Args: {
41632
+ p_include_failed?: boolean;
41633
+ };
41634
+ Returns: number;
41635
+ };
40409
41636
  resolve_group_allocation: {
40410
41637
  Args: {
40411
41638
  _needed: number;
@@ -40450,14 +41677,28 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40450
41677
  };
40451
41678
  Returns: import("../integrations/supabase/types").Json;
40452
41679
  };
41680
+ ruim_print_jobs_op: {
41681
+ Args: {
41682
+ _bewaar_dagen?: number;
41683
+ };
41684
+ Returns: number;
41685
+ };
40453
41686
  run_floriday_continuous_stock_sync: {
40454
41687
  Args: never;
40455
41688
  Returns: undefined;
40456
41689
  };
41690
+ run_floriday_stock_queue_process: {
41691
+ Args: never;
41692
+ Returns: undefined;
41693
+ };
40457
41694
  run_logistics_tasks_dispatch: {
40458
41695
  Args: never;
40459
41696
  Returns: undefined;
40460
41697
  };
41698
+ run_print_queue_ticks: {
41699
+ Args: never;
41700
+ Returns: number;
41701
+ };
40461
41702
  run_twinfield_queue_tick: {
40462
41703
  Args: never;
40463
41704
  Returns: undefined;
@@ -40845,6 +42086,15 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40845
42086
  };
40846
42087
  Returns: undefined;
40847
42088
  };
42089
+ trade_item_stock_duplicates: {
42090
+ Args: never;
42091
+ Returns: {
42092
+ keys: string[];
42093
+ product_id: string;
42094
+ product_name: string;
42095
+ row_count: number;
42096
+ }[];
42097
+ };
40848
42098
  try_debtor_lock: {
40849
42099
  Args: {
40850
42100
  _group_key: string;
@@ -40894,7 +42144,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40894
42144
  };
40895
42145
  Enums: {
40896
42146
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40897
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
42147
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40898
42148
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40899
42149
  doc_orientation: "portrait" | "landscape";
40900
42150
  exact_env: "staging" | "live";