@flowselections/pick-schermen-kwekers 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6479,6 +6479,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6479
6479
  Row: {
6480
6480
  buyer_organization_id: string | null;
6481
6481
  connection_id: string;
6482
+ controlled_at: string | null;
6482
6483
  created_at: string;
6483
6484
  data: import("./types").Json;
6484
6485
  floriday_id: string;
@@ -6490,6 +6491,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6490
6491
  Insert: {
6491
6492
  buyer_organization_id?: string | null;
6492
6493
  connection_id: string;
6494
+ controlled_at?: string | null;
6493
6495
  created_at?: string;
6494
6496
  data: import("./types").Json;
6495
6497
  floriday_id: string;
@@ -6501,6 +6503,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6501
6503
  Update: {
6502
6504
  buyer_organization_id?: string | null;
6503
6505
  connection_id?: string;
6506
+ controlled_at?: string | null;
6504
6507
  created_at?: string;
6505
6508
  data?: import("./types").Json;
6506
6509
  floriday_id?: string;
@@ -7402,6 +7405,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7402
7405
  };
7403
7406
  Relationships: [];
7404
7407
  };
7408
+ invoice_timing_settings: {
7409
+ Row: {
7410
+ anchor: string;
7411
+ business_days_only: boolean;
7412
+ created_at: string;
7413
+ enabled: boolean;
7414
+ id: string;
7415
+ offset_days: number;
7416
+ pickup_anchor: string;
7417
+ pickup_business_days_only: boolean;
7418
+ pickup_offset_days: number;
7419
+ pickup_time_of_day: string;
7420
+ singleton: boolean;
7421
+ time_of_day: string;
7422
+ updated_at: string;
7423
+ };
7424
+ Insert: {
7425
+ anchor?: string;
7426
+ business_days_only?: boolean;
7427
+ created_at?: string;
7428
+ enabled?: boolean;
7429
+ id?: string;
7430
+ offset_days?: number;
7431
+ pickup_anchor?: string;
7432
+ pickup_business_days_only?: boolean;
7433
+ pickup_offset_days?: number;
7434
+ pickup_time_of_day?: string;
7435
+ singleton?: boolean;
7436
+ time_of_day?: string;
7437
+ updated_at?: string;
7438
+ };
7439
+ Update: {
7440
+ anchor?: string;
7441
+ business_days_only?: boolean;
7442
+ created_at?: string;
7443
+ enabled?: boolean;
7444
+ id?: string;
7445
+ offset_days?: number;
7446
+ pickup_anchor?: string;
7447
+ pickup_business_days_only?: boolean;
7448
+ pickup_offset_days?: number;
7449
+ pickup_time_of_day?: string;
7450
+ singleton?: boolean;
7451
+ time_of_day?: string;
7452
+ updated_at?: string;
7453
+ };
7454
+ Relationships: [];
7455
+ };
7405
7456
  itk_contact_persons: {
7406
7457
  Row: {
7407
7458
  created_at: string;
@@ -8632,6 +8683,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8632
8683
  };
8633
8684
  Relationships: [];
8634
8685
  };
8686
+ logistics_plan_queue: {
8687
+ Row: {
8688
+ attempts: number;
8689
+ claimed_at: string | null;
8690
+ enqueued_at: string;
8691
+ error: string | null;
8692
+ id: string;
8693
+ next_attempt_at: string;
8694
+ order_id: string;
8695
+ reason: string;
8696
+ status: string;
8697
+ updated_at: string;
8698
+ };
8699
+ Insert: {
8700
+ attempts?: number;
8701
+ claimed_at?: string | null;
8702
+ enqueued_at?: string;
8703
+ error?: string | null;
8704
+ id?: string;
8705
+ next_attempt_at?: string;
8706
+ order_id: string;
8707
+ reason?: string;
8708
+ status?: string;
8709
+ updated_at?: string;
8710
+ };
8711
+ Update: {
8712
+ attempts?: number;
8713
+ claimed_at?: string | null;
8714
+ enqueued_at?: string;
8715
+ error?: string | null;
8716
+ id?: string;
8717
+ next_attempt_at?: string;
8718
+ order_id?: string;
8719
+ reason?: string;
8720
+ status?: string;
8721
+ updated_at?: string;
8722
+ };
8723
+ Relationships: [];
8724
+ };
8635
8725
  logistics_plan_runs: {
8636
8726
  Row: {
8637
8727
  created_at: string;
@@ -8707,6 +8797,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8707
8797
  referencedColumns: ["id"];
8708
8798
  }];
8709
8799
  };
8800
+ logistics_plan_settings: {
8801
+ Row: {
8802
+ key: string;
8803
+ updated_at: string;
8804
+ value: string;
8805
+ };
8806
+ Insert: {
8807
+ key: string;
8808
+ updated_at?: string;
8809
+ value: string;
8810
+ };
8811
+ Update: {
8812
+ key?: string;
8813
+ updated_at?: string;
8814
+ value?: string;
8815
+ };
8816
+ Relationships: [];
8817
+ };
8710
8818
  logistics_rebuffer_state: {
8711
8819
  Row: {
8712
8820
  created_at: string;
@@ -9417,14 +9525,17 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9417
9525
  };
9418
9526
  mailbox_messages: {
9419
9527
  Row: {
9528
+ attachments: import("./types").Json;
9420
9529
  body_html: string | null;
9421
9530
  body_text: string | null;
9531
+ cc_recipients: import("./types").Json;
9422
9532
  connection_id: string | null;
9423
9533
  created_at: string;
9424
9534
  error_message: string | null;
9425
9535
  external_id: string | null;
9426
9536
  from_email: string | null;
9427
9537
  from_name: string | null;
9538
+ has_attachments: boolean;
9428
9539
  id: string;
9429
9540
  message_id: string | null;
9430
9541
  profile_id: string | null;
@@ -9432,18 +9543,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9432
9543
  received_at: string | null;
9433
9544
  status: string;
9434
9545
  subject: string | null;
9546
+ to_recipients: import("./types").Json;
9435
9547
  uid: number | null;
9436
9548
  updated_at: string;
9437
9549
  };
9438
9550
  Insert: {
9551
+ attachments?: import("./types").Json;
9439
9552
  body_html?: string | null;
9440
9553
  body_text?: string | null;
9554
+ cc_recipients?: import("./types").Json;
9441
9555
  connection_id?: string | null;
9442
9556
  created_at?: string;
9443
9557
  error_message?: string | null;
9444
9558
  external_id?: string | null;
9445
9559
  from_email?: string | null;
9446
9560
  from_name?: string | null;
9561
+ has_attachments?: boolean;
9447
9562
  id?: string;
9448
9563
  message_id?: string | null;
9449
9564
  profile_id?: string | null;
@@ -9451,18 +9566,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9451
9566
  received_at?: string | null;
9452
9567
  status?: string;
9453
9568
  subject?: string | null;
9569
+ to_recipients?: import("./types").Json;
9454
9570
  uid?: number | null;
9455
9571
  updated_at?: string;
9456
9572
  };
9457
9573
  Update: {
9574
+ attachments?: import("./types").Json;
9458
9575
  body_html?: string | null;
9459
9576
  body_text?: string | null;
9577
+ cc_recipients?: import("./types").Json;
9460
9578
  connection_id?: string | null;
9461
9579
  created_at?: string;
9462
9580
  error_message?: string | null;
9463
9581
  external_id?: string | null;
9464
9582
  from_email?: string | null;
9465
9583
  from_name?: string | null;
9584
+ has_attachments?: boolean;
9466
9585
  id?: string;
9467
9586
  message_id?: string | null;
9468
9587
  profile_id?: string | null;
@@ -9470,6 +9589,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9470
9589
  received_at?: string | null;
9471
9590
  status?: string;
9472
9591
  subject?: string | null;
9592
+ to_recipients?: import("./types").Json;
9473
9593
  uid?: number | null;
9474
9594
  updated_at?: string;
9475
9595
  };
@@ -9877,6 +9997,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9877
9997
  };
9878
9998
  Relationships: [];
9879
9999
  };
10000
+ module_registry: {
10001
+ Row: {
10002
+ created_at: string;
10003
+ is_active: boolean;
10004
+ last_seen_at: string;
10005
+ module_id: string;
10006
+ name: string;
10007
+ shell_id: string | null;
10008
+ sort_order: number | null;
10009
+ };
10010
+ Insert: {
10011
+ created_at?: string;
10012
+ is_active?: boolean;
10013
+ last_seen_at?: string;
10014
+ module_id: string;
10015
+ name: string;
10016
+ shell_id?: string | null;
10017
+ sort_order?: number | null;
10018
+ };
10019
+ Update: {
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
+ Relationships: [];
10029
+ };
9880
10030
  module_runtime_config: {
9881
10031
  Row: {
9882
10032
  key: string;
@@ -10936,6 +11086,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10936
11086
  };
10937
11087
  Relationships: [];
10938
11088
  };
11089
+ order_invoice_links: {
11090
+ Row: {
11091
+ attempts: number;
11092
+ created_at: string;
11093
+ error_message: string | null;
11094
+ id: string;
11095
+ invoice_number: string | null;
11096
+ next_attempt_at: string;
11097
+ order_id: string;
11098
+ processed_at: string | null;
11099
+ status: string;
11100
+ updated_at: string;
11101
+ };
11102
+ Insert: {
11103
+ attempts?: number;
11104
+ created_at?: string;
11105
+ error_message?: string | null;
11106
+ id?: string;
11107
+ invoice_number?: string | null;
11108
+ next_attempt_at?: string;
11109
+ order_id: string;
11110
+ processed_at?: string | null;
11111
+ status?: string;
11112
+ updated_at?: string;
11113
+ };
11114
+ Update: {
11115
+ attempts?: number;
11116
+ created_at?: string;
11117
+ error_message?: string | null;
11118
+ id?: string;
11119
+ invoice_number?: string | null;
11120
+ next_attempt_at?: string;
11121
+ order_id?: string;
11122
+ processed_at?: string | null;
11123
+ status?: string;
11124
+ updated_at?: string;
11125
+ };
11126
+ Relationships: [];
11127
+ };
10939
11128
  order_items: {
10940
11129
  Row: {
10941
11130
  crates_per_layer: number | null;
@@ -11118,6 +11307,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11118
11307
  delivery_date: string | null;
11119
11308
  floriday_sales_order_id: string | null;
11120
11309
  id: string;
11310
+ invoice_due_at: string | null;
11121
11311
  is_reservation: boolean;
11122
11312
  notes: string | null;
11123
11313
  order_date: string;
@@ -11139,6 +11329,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11139
11329
  delivery_date?: string | null;
11140
11330
  floriday_sales_order_id?: string | null;
11141
11331
  id?: string;
11332
+ invoice_due_at?: string | null;
11142
11333
  is_reservation?: boolean;
11143
11334
  notes?: string | null;
11144
11335
  order_date?: string;
@@ -11160,6 +11351,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11160
11351
  delivery_date?: string | null;
11161
11352
  floriday_sales_order_id?: string | null;
11162
11353
  id?: string;
11354
+ invoice_due_at?: string | null;
11163
11355
  is_reservation?: boolean;
11164
11356
  notes?: string | null;
11165
11357
  order_date?: string;
@@ -12457,6 +12649,63 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12457
12649
  referencedColumns: ["id"];
12458
12650
  }];
12459
12651
  };
12652
+ print_queue_runners: {
12653
+ Row: {
12654
+ actief: boolean;
12655
+ basis_url: string;
12656
+ created_at: string;
12657
+ id: string;
12658
+ laatst_gezien: string;
12659
+ tick_sleutel: string;
12660
+ updated_at: string;
12661
+ };
12662
+ Insert: {
12663
+ actief?: boolean;
12664
+ basis_url: string;
12665
+ created_at?: string;
12666
+ id?: string;
12667
+ laatst_gezien?: string;
12668
+ tick_sleutel?: string;
12669
+ updated_at?: string;
12670
+ };
12671
+ Update: {
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
+ Relationships: [];
12681
+ };
12682
+ print_queue_settings: {
12683
+ Row: {
12684
+ bewaar_bestanden_dagen: number;
12685
+ bewaar_opdrachten_dagen: number;
12686
+ created_at: string;
12687
+ dubbel_venster_minuten: number;
12688
+ id: string;
12689
+ updated_at: string;
12690
+ };
12691
+ Insert: {
12692
+ bewaar_bestanden_dagen?: number;
12693
+ bewaar_opdrachten_dagen?: number;
12694
+ created_at?: string;
12695
+ dubbel_venster_minuten?: number;
12696
+ id?: string;
12697
+ updated_at?: string;
12698
+ };
12699
+ Update: {
12700
+ bewaar_bestanden_dagen?: number;
12701
+ bewaar_opdrachten_dagen?: number;
12702
+ created_at?: string;
12703
+ dubbel_venster_minuten?: number;
12704
+ id?: string;
12705
+ updated_at?: string;
12706
+ };
12707
+ Relationships: [];
12708
+ };
12460
12709
  print_rules: {
12461
12710
  Row: {
12462
12711
  actief: boolean;
@@ -15297,6 +15546,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15297
15546
  };
15298
15547
  twinfield_invoice_settings: {
15299
15548
  Row: {
15549
+ auto_invoice_enabled: boolean;
15550
+ auto_invoice_trigger_statuses: string[];
15300
15551
  created_at: string;
15301
15552
  debtor_gl_account: string;
15302
15553
  default_credit_invoice_type: string | null;
@@ -15317,6 +15568,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15317
15568
  vat_code_export: string | null;
15318
15569
  };
15319
15570
  Insert: {
15571
+ auto_invoice_enabled?: boolean;
15572
+ auto_invoice_trigger_statuses?: string[];
15320
15573
  created_at?: string;
15321
15574
  debtor_gl_account?: string;
15322
15575
  default_credit_invoice_type?: string | null;
@@ -15337,6 +15590,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15337
15590
  vat_code_export?: string | null;
15338
15591
  };
15339
15592
  Update: {
15593
+ auto_invoice_enabled?: boolean;
15594
+ auto_invoice_trigger_statuses?: string[];
15340
15595
  created_at?: string;
15341
15596
  debtor_gl_account?: string;
15342
15597
  default_credit_invoice_type?: string | null;
@@ -16399,6 +16654,33 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16399
16654
  referencedColumns: ["id"];
16400
16655
  }];
16401
16656
  };
16657
+ user_module_permissions: {
16658
+ Row: {
16659
+ created_at: string;
16660
+ id: string;
16661
+ module_id: string;
16662
+ permission: string;
16663
+ updated_at: string;
16664
+ user_id: string;
16665
+ };
16666
+ Insert: {
16667
+ created_at?: string;
16668
+ id?: string;
16669
+ module_id: string;
16670
+ permission: string;
16671
+ updated_at?: string;
16672
+ user_id: string;
16673
+ };
16674
+ Update: {
16675
+ created_at?: string;
16676
+ id?: string;
16677
+ module_id?: string;
16678
+ permission?: string;
16679
+ updated_at?: string;
16680
+ user_id?: string;
16681
+ };
16682
+ Relationships: [];
16683
+ };
16402
16684
  user_roles: {
16403
16685
  Row: {
16404
16686
  created_at: string;
@@ -18232,6 +18514,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18232
18514
  processed_items: number;
18233
18515
  }[];
18234
18516
  };
18517
+ backfill_order_auto_invoice_queue: {
18518
+ Args: never;
18519
+ Returns: number;
18520
+ };
18235
18521
  calculate_layer_stock: {
18236
18522
  Args: {
18237
18523
  p_product_id: string;
@@ -18462,6 +18748,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18462
18748
  Args: never;
18463
18749
  Returns: undefined;
18464
18750
  };
18751
+ cleanup_voorraad_module_history: {
18752
+ Args: never;
18753
+ Returns: undefined;
18754
+ };
18465
18755
  complete_floriday_stock_queue: {
18466
18756
  Args: {
18467
18757
  p_attempt_id?: string;
@@ -18583,6 +18873,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18583
18873
  };
18584
18874
  Returns: import("./types").Json;
18585
18875
  };
18876
+ effective_module_permission: {
18877
+ Args: {
18878
+ _module_id: string;
18879
+ _user_id: string;
18880
+ };
18881
+ Returns: string;
18882
+ };
18586
18883
  email_auth_decrypt: {
18587
18884
  Args: {
18588
18885
  cipher: string;
@@ -19483,6 +19780,65 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19483
19780
  };
19484
19781
  Returns: number;
19485
19782
  };
19783
+ logistics_plan_claim: {
19784
+ Args: {
19785
+ p_limit?: number;
19786
+ };
19787
+ Returns: {
19788
+ attempts: number;
19789
+ id: string;
19790
+ order_id: string;
19791
+ }[];
19792
+ };
19793
+ logistics_plan_enqueue: {
19794
+ Args: {
19795
+ p_order_id: string;
19796
+ p_reason?: string;
19797
+ };
19798
+ Returns: undefined;
19799
+ };
19800
+ logistics_plan_ensure_event: {
19801
+ Args: {
19802
+ p_order_id: string;
19803
+ };
19804
+ Returns: boolean;
19805
+ };
19806
+ logistics_plan_finish: {
19807
+ Args: {
19808
+ p_error?: string;
19809
+ p_id: string;
19810
+ };
19811
+ Returns: undefined;
19812
+ };
19813
+ logistics_plan_impact_orders: {
19814
+ Args: {
19815
+ p_order_id: string;
19816
+ };
19817
+ Returns: {
19818
+ buffer_id: string;
19819
+ order_id: string;
19820
+ plan_date: string;
19821
+ }[];
19822
+ };
19823
+ logistics_plan_kick: {
19824
+ Args: never;
19825
+ Returns: undefined;
19826
+ };
19827
+ logistics_plan_prune: {
19828
+ Args: never;
19829
+ Returns: number;
19830
+ };
19831
+ logistics_plan_release_stale: {
19832
+ Args: never;
19833
+ Returns: number;
19834
+ };
19835
+ logistics_plan_setting: {
19836
+ Args: {
19837
+ p_default: number;
19838
+ p_key: string;
19839
+ };
19840
+ Returns: number;
19841
+ };
19486
19842
  logistics_queue_capacity_email: {
19487
19843
  Args: {
19488
19844
  p_alert_id: string;
@@ -19721,6 +20077,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19721
20077
  };
19722
20078
  Returns: undefined;
19723
20079
  };
20080
+ my_module_permissions: {
20081
+ Args: never;
20082
+ Returns: {
20083
+ module_id: string;
20084
+ permission: string;
20085
+ }[];
20086
+ };
19724
20087
  next_manufacture_partij: {
19725
20088
  Args: {
19726
20089
  _tenant_id: string;
@@ -19771,6 +20134,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19771
20134
  };
19772
20135
  Returns: boolean;
19773
20136
  };
20137
+ opruim_print_historie: {
20138
+ Args: never;
20139
+ Returns: {
20140
+ ontdaan: number;
20141
+ verwijderd: number;
20142
+ }[];
20143
+ };
19774
20144
  order_number_prefix: {
19775
20145
  Args: {
19776
20146
  p_custom_fields?: import("./types").Json;
@@ -20165,6 +20535,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20165
20535
  };
20166
20536
  Returns: undefined;
20167
20537
  };
20538
+ reset_stalled_floriday_stock_queue: {
20539
+ Args: {
20540
+ p_include_failed?: boolean;
20541
+ };
20542
+ Returns: number;
20543
+ };
20168
20544
  resolve_group_allocation: {
20169
20545
  Args: {
20170
20546
  _needed: number;
@@ -20219,10 +20595,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20219
20595
  Args: never;
20220
20596
  Returns: undefined;
20221
20597
  };
20598
+ run_floriday_stock_queue_process: {
20599
+ Args: never;
20600
+ Returns: undefined;
20601
+ };
20222
20602
  run_logistics_tasks_dispatch: {
20223
20603
  Args: never;
20224
20604
  Returns: undefined;
20225
20605
  };
20606
+ run_print_queue_ticks: {
20607
+ Args: never;
20608
+ Returns: number;
20609
+ };
20226
20610
  run_twinfield_queue_tick: {
20227
20611
  Args: never;
20228
20612
  Returns: undefined;
@@ -20610,6 +20994,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20610
20994
  };
20611
20995
  Returns: undefined;
20612
20996
  };
20997
+ trade_item_stock_duplicates: {
20998
+ Args: never;
20999
+ Returns: {
21000
+ keys: string[];
21001
+ product_id: string;
21002
+ product_name: string;
21003
+ row_count: number;
21004
+ }[];
21005
+ };
20613
21006
  try_debtor_lock: {
20614
21007
  Args: {
20615
21008
  _group_key: string;