@flowselections/pick-schermen-kwekers 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6646,6 +6646,7 @@ export type Database = {
6646
6646
  Row: {
6647
6647
  buyer_organization_id: string | null;
6648
6648
  connection_id: string;
6649
+ controlled_at: string | null;
6649
6650
  created_at: string;
6650
6651
  data: Json;
6651
6652
  floriday_id: string;
@@ -6657,6 +6658,7 @@ export type Database = {
6657
6658
  Insert: {
6658
6659
  buyer_organization_id?: string | null;
6659
6660
  connection_id: string;
6661
+ controlled_at?: string | null;
6660
6662
  created_at?: string;
6661
6663
  data: Json;
6662
6664
  floriday_id: string;
@@ -6668,6 +6670,7 @@ export type Database = {
6668
6670
  Update: {
6669
6671
  buyer_organization_id?: string | null;
6670
6672
  connection_id?: string;
6673
+ controlled_at?: string | null;
6671
6674
  created_at?: string;
6672
6675
  data?: Json;
6673
6676
  floriday_id?: string;
@@ -7601,6 +7604,54 @@ export type Database = {
7601
7604
  };
7602
7605
  Relationships: [];
7603
7606
  };
7607
+ invoice_timing_settings: {
7608
+ Row: {
7609
+ anchor: string;
7610
+ business_days_only: boolean;
7611
+ created_at: string;
7612
+ enabled: boolean;
7613
+ id: string;
7614
+ offset_days: number;
7615
+ pickup_anchor: string;
7616
+ pickup_business_days_only: boolean;
7617
+ pickup_offset_days: number;
7618
+ pickup_time_of_day: string;
7619
+ singleton: boolean;
7620
+ time_of_day: string;
7621
+ updated_at: string;
7622
+ };
7623
+ Insert: {
7624
+ anchor?: string;
7625
+ business_days_only?: boolean;
7626
+ created_at?: string;
7627
+ enabled?: boolean;
7628
+ id?: string;
7629
+ offset_days?: number;
7630
+ pickup_anchor?: string;
7631
+ pickup_business_days_only?: boolean;
7632
+ pickup_offset_days?: number;
7633
+ pickup_time_of_day?: string;
7634
+ singleton?: boolean;
7635
+ time_of_day?: string;
7636
+ updated_at?: string;
7637
+ };
7638
+ Update: {
7639
+ anchor?: string;
7640
+ business_days_only?: boolean;
7641
+ created_at?: string;
7642
+ enabled?: boolean;
7643
+ id?: string;
7644
+ offset_days?: number;
7645
+ pickup_anchor?: string;
7646
+ pickup_business_days_only?: boolean;
7647
+ pickup_offset_days?: number;
7648
+ pickup_time_of_day?: string;
7649
+ singleton?: boolean;
7650
+ time_of_day?: string;
7651
+ updated_at?: string;
7652
+ };
7653
+ Relationships: [];
7654
+ };
7604
7655
  itk_contact_persons: {
7605
7656
  Row: {
7606
7657
  created_at: string;
@@ -8867,6 +8918,45 @@ export type Database = {
8867
8918
  };
8868
8919
  Relationships: [];
8869
8920
  };
8921
+ logistics_plan_queue: {
8922
+ Row: {
8923
+ attempts: number;
8924
+ claimed_at: string | null;
8925
+ enqueued_at: string;
8926
+ error: string | null;
8927
+ id: string;
8928
+ next_attempt_at: string;
8929
+ order_id: string;
8930
+ reason: string;
8931
+ status: string;
8932
+ updated_at: string;
8933
+ };
8934
+ Insert: {
8935
+ attempts?: number;
8936
+ claimed_at?: string | null;
8937
+ enqueued_at?: string;
8938
+ error?: string | null;
8939
+ id?: string;
8940
+ next_attempt_at?: string;
8941
+ order_id: string;
8942
+ reason?: string;
8943
+ status?: string;
8944
+ updated_at?: string;
8945
+ };
8946
+ Update: {
8947
+ attempts?: number;
8948
+ claimed_at?: string | null;
8949
+ enqueued_at?: string;
8950
+ error?: string | null;
8951
+ id?: string;
8952
+ next_attempt_at?: string;
8953
+ order_id?: string;
8954
+ reason?: string;
8955
+ status?: string;
8956
+ updated_at?: string;
8957
+ };
8958
+ Relationships: [];
8959
+ };
8870
8960
  logistics_plan_runs: {
8871
8961
  Row: {
8872
8962
  created_at: string;
@@ -8945,6 +9035,24 @@ export type Database = {
8945
9035
  }
8946
9036
  ];
8947
9037
  };
9038
+ logistics_plan_settings: {
9039
+ Row: {
9040
+ key: string;
9041
+ updated_at: string;
9042
+ value: string;
9043
+ };
9044
+ Insert: {
9045
+ key: string;
9046
+ updated_at?: string;
9047
+ value: string;
9048
+ };
9049
+ Update: {
9050
+ key?: string;
9051
+ updated_at?: string;
9052
+ value?: string;
9053
+ };
9054
+ Relationships: [];
9055
+ };
8948
9056
  logistics_rebuffer_state: {
8949
9057
  Row: {
8950
9058
  created_at: string;
@@ -9665,14 +9773,17 @@ export type Database = {
9665
9773
  };
9666
9774
  mailbox_messages: {
9667
9775
  Row: {
9776
+ attachments: Json;
9668
9777
  body_html: string | null;
9669
9778
  body_text: string | null;
9779
+ cc_recipients: Json;
9670
9780
  connection_id: string | null;
9671
9781
  created_at: string;
9672
9782
  error_message: string | null;
9673
9783
  external_id: string | null;
9674
9784
  from_email: string | null;
9675
9785
  from_name: string | null;
9786
+ has_attachments: boolean;
9676
9787
  id: string;
9677
9788
  message_id: string | null;
9678
9789
  profile_id: string | null;
@@ -9680,18 +9791,22 @@ export type Database = {
9680
9791
  received_at: string | null;
9681
9792
  status: string;
9682
9793
  subject: string | null;
9794
+ to_recipients: Json;
9683
9795
  uid: number | null;
9684
9796
  updated_at: string;
9685
9797
  };
9686
9798
  Insert: {
9799
+ attachments?: Json;
9687
9800
  body_html?: string | null;
9688
9801
  body_text?: string | null;
9802
+ cc_recipients?: Json;
9689
9803
  connection_id?: string | null;
9690
9804
  created_at?: string;
9691
9805
  error_message?: string | null;
9692
9806
  external_id?: string | null;
9693
9807
  from_email?: string | null;
9694
9808
  from_name?: string | null;
9809
+ has_attachments?: boolean;
9695
9810
  id?: string;
9696
9811
  message_id?: string | null;
9697
9812
  profile_id?: string | null;
@@ -9699,18 +9814,22 @@ export type Database = {
9699
9814
  received_at?: string | null;
9700
9815
  status?: string;
9701
9816
  subject?: string | null;
9817
+ to_recipients?: Json;
9702
9818
  uid?: number | null;
9703
9819
  updated_at?: string;
9704
9820
  };
9705
9821
  Update: {
9822
+ attachments?: Json;
9706
9823
  body_html?: string | null;
9707
9824
  body_text?: string | null;
9825
+ cc_recipients?: Json;
9708
9826
  connection_id?: string | null;
9709
9827
  created_at?: string;
9710
9828
  error_message?: string | null;
9711
9829
  external_id?: string | null;
9712
9830
  from_email?: string | null;
9713
9831
  from_name?: string | null;
9832
+ has_attachments?: boolean;
9714
9833
  id?: string;
9715
9834
  message_id?: string | null;
9716
9835
  profile_id?: string | null;
@@ -9718,6 +9837,7 @@ export type Database = {
9718
9837
  received_at?: string | null;
9719
9838
  status?: string;
9720
9839
  subject?: string | null;
9840
+ to_recipients?: Json;
9721
9841
  uid?: number | null;
9722
9842
  updated_at?: string;
9723
9843
  };
@@ -10142,6 +10262,36 @@ export type Database = {
10142
10262
  };
10143
10263
  Relationships: [];
10144
10264
  };
10265
+ module_registry: {
10266
+ Row: {
10267
+ created_at: string;
10268
+ is_active: boolean;
10269
+ last_seen_at: string;
10270
+ module_id: string;
10271
+ name: string;
10272
+ shell_id: string | null;
10273
+ sort_order: number | null;
10274
+ };
10275
+ Insert: {
10276
+ created_at?: string;
10277
+ is_active?: boolean;
10278
+ last_seen_at?: string;
10279
+ module_id: string;
10280
+ name: string;
10281
+ shell_id?: string | null;
10282
+ sort_order?: number | null;
10283
+ };
10284
+ Update: {
10285
+ created_at?: string;
10286
+ is_active?: boolean;
10287
+ last_seen_at?: string;
10288
+ module_id?: string;
10289
+ name?: string;
10290
+ shell_id?: string | null;
10291
+ sort_order?: number | null;
10292
+ };
10293
+ Relationships: [];
10294
+ };
10145
10295
  module_runtime_config: {
10146
10296
  Row: {
10147
10297
  key: string;
@@ -11238,6 +11388,45 @@ export type Database = {
11238
11388
  };
11239
11389
  Relationships: [];
11240
11390
  };
11391
+ order_invoice_links: {
11392
+ Row: {
11393
+ attempts: number;
11394
+ created_at: string;
11395
+ error_message: string | null;
11396
+ id: string;
11397
+ invoice_number: string | null;
11398
+ next_attempt_at: string;
11399
+ order_id: string;
11400
+ processed_at: string | null;
11401
+ status: string;
11402
+ updated_at: string;
11403
+ };
11404
+ Insert: {
11405
+ attempts?: number;
11406
+ created_at?: string;
11407
+ error_message?: string | null;
11408
+ id?: string;
11409
+ invoice_number?: string | null;
11410
+ next_attempt_at?: string;
11411
+ order_id: string;
11412
+ processed_at?: string | null;
11413
+ status?: string;
11414
+ updated_at?: string;
11415
+ };
11416
+ Update: {
11417
+ attempts?: number;
11418
+ created_at?: string;
11419
+ error_message?: string | null;
11420
+ id?: string;
11421
+ invoice_number?: string | null;
11422
+ next_attempt_at?: string;
11423
+ order_id?: string;
11424
+ processed_at?: string | null;
11425
+ status?: string;
11426
+ updated_at?: string;
11427
+ };
11428
+ Relationships: [];
11429
+ };
11241
11430
  order_items: {
11242
11431
  Row: {
11243
11432
  crates_per_layer: number | null;
@@ -11429,6 +11618,7 @@ export type Database = {
11429
11618
  delivery_date: string | null;
11430
11619
  floriday_sales_order_id: string | null;
11431
11620
  id: string;
11621
+ invoice_due_at: string | null;
11432
11622
  is_reservation: boolean;
11433
11623
  notes: string | null;
11434
11624
  order_date: string;
@@ -11450,6 +11640,7 @@ export type Database = {
11450
11640
  delivery_date?: string | null;
11451
11641
  floriday_sales_order_id?: string | null;
11452
11642
  id?: string;
11643
+ invoice_due_at?: string | null;
11453
11644
  is_reservation?: boolean;
11454
11645
  notes?: string | null;
11455
11646
  order_date?: string;
@@ -11471,6 +11662,7 @@ export type Database = {
11471
11662
  delivery_date?: string | null;
11472
11663
  floriday_sales_order_id?: string | null;
11473
11664
  id?: string;
11665
+ invoice_due_at?: string | null;
11474
11666
  is_reservation?: boolean;
11475
11667
  notes?: string | null;
11476
11668
  order_date?: string;
@@ -12816,6 +13008,63 @@ export type Database = {
12816
13008
  }
12817
13009
  ];
12818
13010
  };
13011
+ print_queue_runners: {
13012
+ Row: {
13013
+ actief: boolean;
13014
+ basis_url: string;
13015
+ created_at: string;
13016
+ id: string;
13017
+ laatst_gezien: string;
13018
+ tick_sleutel: string;
13019
+ updated_at: string;
13020
+ };
13021
+ Insert: {
13022
+ actief?: boolean;
13023
+ basis_url: string;
13024
+ created_at?: string;
13025
+ id?: string;
13026
+ laatst_gezien?: string;
13027
+ tick_sleutel?: string;
13028
+ updated_at?: string;
13029
+ };
13030
+ Update: {
13031
+ actief?: boolean;
13032
+ basis_url?: string;
13033
+ created_at?: string;
13034
+ id?: string;
13035
+ laatst_gezien?: string;
13036
+ tick_sleutel?: string;
13037
+ updated_at?: string;
13038
+ };
13039
+ Relationships: [];
13040
+ };
13041
+ print_queue_settings: {
13042
+ Row: {
13043
+ bewaar_bestanden_dagen: number;
13044
+ bewaar_opdrachten_dagen: number;
13045
+ created_at: string;
13046
+ dubbel_venster_minuten: number;
13047
+ id: string;
13048
+ updated_at: string;
13049
+ };
13050
+ Insert: {
13051
+ bewaar_bestanden_dagen?: number;
13052
+ bewaar_opdrachten_dagen?: number;
13053
+ created_at?: string;
13054
+ dubbel_venster_minuten?: number;
13055
+ id?: string;
13056
+ updated_at?: string;
13057
+ };
13058
+ Update: {
13059
+ bewaar_bestanden_dagen?: number;
13060
+ bewaar_opdrachten_dagen?: number;
13061
+ created_at?: string;
13062
+ dubbel_venster_minuten?: number;
13063
+ id?: string;
13064
+ updated_at?: string;
13065
+ };
13066
+ Relationships: [];
13067
+ };
12819
13068
  print_rules: {
12820
13069
  Row: {
12821
13070
  actief: boolean;
@@ -15739,6 +15988,8 @@ export type Database = {
15739
15988
  };
15740
15989
  twinfield_invoice_settings: {
15741
15990
  Row: {
15991
+ auto_invoice_enabled: boolean;
15992
+ auto_invoice_trigger_statuses: string[];
15742
15993
  created_at: string;
15743
15994
  debtor_gl_account: string;
15744
15995
  default_credit_invoice_type: string | null;
@@ -15759,6 +16010,8 @@ export type Database = {
15759
16010
  vat_code_export: string | null;
15760
16011
  };
15761
16012
  Insert: {
16013
+ auto_invoice_enabled?: boolean;
16014
+ auto_invoice_trigger_statuses?: string[];
15762
16015
  created_at?: string;
15763
16016
  debtor_gl_account?: string;
15764
16017
  default_credit_invoice_type?: string | null;
@@ -15779,6 +16032,8 @@ export type Database = {
15779
16032
  vat_code_export?: string | null;
15780
16033
  };
15781
16034
  Update: {
16035
+ auto_invoice_enabled?: boolean;
16036
+ auto_invoice_trigger_statuses?: string[];
15782
16037
  created_at?: string;
15783
16038
  debtor_gl_account?: string;
15784
16039
  default_credit_invoice_type?: string | null;
@@ -16867,6 +17122,33 @@ export type Database = {
16867
17122
  }
16868
17123
  ];
16869
17124
  };
17125
+ user_module_permissions: {
17126
+ Row: {
17127
+ created_at: string;
17128
+ id: string;
17129
+ module_id: string;
17130
+ permission: string;
17131
+ updated_at: string;
17132
+ user_id: string;
17133
+ };
17134
+ Insert: {
17135
+ created_at?: string;
17136
+ id?: string;
17137
+ module_id: string;
17138
+ permission: string;
17139
+ updated_at?: string;
17140
+ user_id: string;
17141
+ };
17142
+ Update: {
17143
+ created_at?: string;
17144
+ id?: string;
17145
+ module_id?: string;
17146
+ permission?: string;
17147
+ updated_at?: string;
17148
+ user_id?: string;
17149
+ };
17150
+ Relationships: [];
17151
+ };
16870
17152
  user_roles: {
16871
17153
  Row: {
16872
17154
  created_at: string;
@@ -18742,6 +19024,10 @@ export type Database = {
18742
19024
  processed_items: number;
18743
19025
  }[];
18744
19026
  };
19027
+ backfill_order_auto_invoice_queue: {
19028
+ Args: never;
19029
+ Returns: number;
19030
+ };
18745
19031
  calculate_layer_stock: {
18746
19032
  Args: {
18747
19033
  p_product_id: string;
@@ -18972,6 +19258,10 @@ export type Database = {
18972
19258
  Args: never;
18973
19259
  Returns: undefined;
18974
19260
  };
19261
+ cleanup_voorraad_module_history: {
19262
+ Args: never;
19263
+ Returns: undefined;
19264
+ };
18975
19265
  complete_floriday_stock_queue: {
18976
19266
  Args: {
18977
19267
  p_attempt_id?: string;
@@ -19093,6 +19383,13 @@ export type Database = {
19093
19383
  };
19094
19384
  Returns: Json;
19095
19385
  };
19386
+ effective_module_permission: {
19387
+ Args: {
19388
+ _module_id: string;
19389
+ _user_id: string;
19390
+ };
19391
+ Returns: string;
19392
+ };
19096
19393
  email_auth_decrypt: {
19097
19394
  Args: {
19098
19395
  cipher: string;
@@ -19993,6 +20290,65 @@ export type Database = {
19993
20290
  };
19994
20291
  Returns: number;
19995
20292
  };
20293
+ logistics_plan_claim: {
20294
+ Args: {
20295
+ p_limit?: number;
20296
+ };
20297
+ Returns: {
20298
+ attempts: number;
20299
+ id: string;
20300
+ order_id: string;
20301
+ }[];
20302
+ };
20303
+ logistics_plan_enqueue: {
20304
+ Args: {
20305
+ p_order_id: string;
20306
+ p_reason?: string;
20307
+ };
20308
+ Returns: undefined;
20309
+ };
20310
+ logistics_plan_ensure_event: {
20311
+ Args: {
20312
+ p_order_id: string;
20313
+ };
20314
+ Returns: boolean;
20315
+ };
20316
+ logistics_plan_finish: {
20317
+ Args: {
20318
+ p_error?: string;
20319
+ p_id: string;
20320
+ };
20321
+ Returns: undefined;
20322
+ };
20323
+ logistics_plan_impact_orders: {
20324
+ Args: {
20325
+ p_order_id: string;
20326
+ };
20327
+ Returns: {
20328
+ buffer_id: string;
20329
+ order_id: string;
20330
+ plan_date: string;
20331
+ }[];
20332
+ };
20333
+ logistics_plan_kick: {
20334
+ Args: never;
20335
+ Returns: undefined;
20336
+ };
20337
+ logistics_plan_prune: {
20338
+ Args: never;
20339
+ Returns: number;
20340
+ };
20341
+ logistics_plan_release_stale: {
20342
+ Args: never;
20343
+ Returns: number;
20344
+ };
20345
+ logistics_plan_setting: {
20346
+ Args: {
20347
+ p_default: number;
20348
+ p_key: string;
20349
+ };
20350
+ Returns: number;
20351
+ };
19996
20352
  logistics_queue_capacity_email: {
19997
20353
  Args: {
19998
20354
  p_alert_id: string;
@@ -20231,6 +20587,13 @@ export type Database = {
20231
20587
  };
20232
20588
  Returns: undefined;
20233
20589
  };
20590
+ my_module_permissions: {
20591
+ Args: never;
20592
+ Returns: {
20593
+ module_id: string;
20594
+ permission: string;
20595
+ }[];
20596
+ };
20234
20597
  next_manufacture_partij: {
20235
20598
  Args: {
20236
20599
  _tenant_id: string;
@@ -20281,6 +20644,13 @@ export type Database = {
20281
20644
  };
20282
20645
  Returns: boolean;
20283
20646
  };
20647
+ opruim_print_historie: {
20648
+ Args: never;
20649
+ Returns: {
20650
+ ontdaan: number;
20651
+ verwijderd: number;
20652
+ }[];
20653
+ };
20284
20654
  order_number_prefix: {
20285
20655
  Args: {
20286
20656
  p_custom_fields?: Json;
@@ -20675,6 +21045,12 @@ export type Database = {
20675
21045
  };
20676
21046
  Returns: undefined;
20677
21047
  };
21048
+ reset_stalled_floriday_stock_queue: {
21049
+ Args: {
21050
+ p_include_failed?: boolean;
21051
+ };
21052
+ Returns: number;
21053
+ };
20678
21054
  resolve_group_allocation: {
20679
21055
  Args: {
20680
21056
  _needed: number;
@@ -20729,10 +21105,18 @@ export type Database = {
20729
21105
  Args: never;
20730
21106
  Returns: undefined;
20731
21107
  };
21108
+ run_floriday_stock_queue_process: {
21109
+ Args: never;
21110
+ Returns: undefined;
21111
+ };
20732
21112
  run_logistics_tasks_dispatch: {
20733
21113
  Args: never;
20734
21114
  Returns: undefined;
20735
21115
  };
21116
+ run_print_queue_ticks: {
21117
+ Args: never;
21118
+ Returns: number;
21119
+ };
20736
21120
  run_twinfield_queue_tick: {
20737
21121
  Args: never;
20738
21122
  Returns: undefined;
@@ -21120,6 +21504,15 @@ export type Database = {
21120
21504
  };
21121
21505
  Returns: undefined;
21122
21506
  };
21507
+ trade_item_stock_duplicates: {
21508
+ Args: never;
21509
+ Returns: {
21510
+ keys: string[];
21511
+ product_id: string;
21512
+ product_name: string;
21513
+ row_count: number;
21514
+ }[];
21515
+ };
21123
21516
  try_debtor_lock: {
21124
21517
  Args: {
21125
21518
  _group_key: string;