@flowselections/floriday-afhandeling-module 1.0.36 → 1.0.38

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 (34) hide show
  1. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/PickAgendaView.js +20 -9
  3. package/dist-lib/hooks/useOrderPlanning.d.ts +20 -3
  4. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  5. package/dist-lib/hooks/useOrderPlanning.js +80 -15
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts +532 -1
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.server.d.ts +532 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/moduleClient.d.ts +532 -1
  11. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +6 -0
  13. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -0
  14. package/dist-lib/integrations/supabase/previewAuthStorage.js +92 -0
  15. package/dist-lib/integrations/supabase/types.d.ts +543 -1
  16. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  17. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1064 -2
  18. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/carriers.functions.d.ts +2884 -229
  20. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/cartAssignments.functions.d.ts +2884 -229
  22. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/cartControl.functions.d.ts +5544 -234
  24. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday.functions.d.ts +541 -2
  26. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday.functions.js +41 -9
  28. package/dist-lib/lib/logisticsEngine/engine.d.ts +21 -1
  29. package/dist-lib/lib/logisticsEngine/engine.d.ts.map +1 -1
  30. package/dist-lib/lib/logisticsEngine/engine.js +81 -19
  31. package/dist-lib/lib/orderRefs.d.ts +18 -0
  32. package/dist-lib/lib/orderRefs.d.ts.map +1 -0
  33. package/dist-lib/lib/orderRefs.js +30 -0
  34. package/package.json +1 -1
@@ -692,6 +692,99 @@ export type Database = {
692
692
  };
693
693
  Relationships: [];
694
694
  };
695
+ artikelen_cache: {
696
+ Row: {
697
+ artikelcode: string;
698
+ bron: string;
699
+ bruto_prijs_cent: number | null;
700
+ created_at: string;
701
+ eenheid: string;
702
+ fabrikant: string | null;
703
+ fetched_at: string;
704
+ gtin: string | null;
705
+ id: string;
706
+ naam: string;
707
+ netto_prijs_cent: number | null;
708
+ omschrijving: string | null;
709
+ raw: Json;
710
+ updated_at: string;
711
+ valuta: string;
712
+ };
713
+ Insert: {
714
+ artikelcode: string;
715
+ bron?: string;
716
+ bruto_prijs_cent?: number | null;
717
+ created_at?: string;
718
+ eenheid?: string;
719
+ fabrikant?: string | null;
720
+ fetched_at?: string;
721
+ gtin?: string | null;
722
+ id?: string;
723
+ naam: string;
724
+ netto_prijs_cent?: number | null;
725
+ omschrijving?: string | null;
726
+ raw?: Json;
727
+ updated_at?: string;
728
+ valuta?: string;
729
+ };
730
+ Update: {
731
+ artikelcode?: string;
732
+ bron?: string;
733
+ bruto_prijs_cent?: number | null;
734
+ created_at?: string;
735
+ eenheid?: string;
736
+ fabrikant?: string | null;
737
+ fetched_at?: string;
738
+ gtin?: string | null;
739
+ id?: string;
740
+ naam?: string;
741
+ netto_prijs_cent?: number | null;
742
+ omschrijving?: string | null;
743
+ raw?: Json;
744
+ updated_at?: string;
745
+ valuta?: string;
746
+ };
747
+ Relationships: [];
748
+ };
749
+ artikelen_veldconfig: {
750
+ Row: {
751
+ bron_pad: string;
752
+ created_at: string;
753
+ id: string;
754
+ label: string;
755
+ sort_order: number;
756
+ type: string;
757
+ updated_at: string;
758
+ veld_key: string;
759
+ zichtbaar_in_detail: boolean;
760
+ zichtbaar_in_lijst: boolean;
761
+ };
762
+ Insert: {
763
+ bron_pad: string;
764
+ created_at?: string;
765
+ id?: string;
766
+ label: string;
767
+ sort_order?: number;
768
+ type?: string;
769
+ updated_at?: string;
770
+ veld_key: string;
771
+ zichtbaar_in_detail?: boolean;
772
+ zichtbaar_in_lijst?: boolean;
773
+ };
774
+ Update: {
775
+ bron_pad?: string;
776
+ created_at?: string;
777
+ id?: string;
778
+ label?: string;
779
+ sort_order?: number;
780
+ type?: string;
781
+ updated_at?: string;
782
+ veld_key?: string;
783
+ zichtbaar_in_detail?: boolean;
784
+ zichtbaar_in_lijst?: boolean;
785
+ };
786
+ Relationships: [];
787
+ };
695
788
  booking_items: {
696
789
  Row: {
697
790
  booking_id: string;
@@ -2818,6 +2911,44 @@ export type Database = {
2818
2911
  };
2819
2912
  Relationships: [];
2820
2913
  };
2914
+ document_bronregels: {
2915
+ Row: {
2916
+ bron: string;
2917
+ created_at: string;
2918
+ documenttype: string;
2919
+ herkomst: string;
2920
+ id: string;
2921
+ layout_id: string | null;
2922
+ updated_at: string;
2923
+ };
2924
+ Insert: {
2925
+ bron?: string;
2926
+ created_at?: string;
2927
+ documenttype: string;
2928
+ herkomst: string;
2929
+ id?: string;
2930
+ layout_id?: string | null;
2931
+ updated_at?: string;
2932
+ };
2933
+ Update: {
2934
+ bron?: string;
2935
+ created_at?: string;
2936
+ documenttype?: string;
2937
+ herkomst?: string;
2938
+ id?: string;
2939
+ layout_id?: string | null;
2940
+ updated_at?: string;
2941
+ };
2942
+ Relationships: [
2943
+ {
2944
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2945
+ columns: ["layout_id"];
2946
+ isOneToOne: false;
2947
+ referencedRelation: "document_layouts";
2948
+ referencedColumns: ["id"];
2949
+ }
2950
+ ];
2951
+ };
2821
2952
  document_formaat_printers: {
2822
2953
  Row: {
2823
2954
  created_at: string;
@@ -3108,6 +3239,7 @@ export type Database = {
3108
3239
  Row: {
3109
3240
  actief: boolean;
3110
3241
  breedte_mm: number;
3242
+ bron: string;
3111
3243
  config: Json;
3112
3244
  created_at: string;
3113
3245
  created_by: string | null;
@@ -3125,12 +3257,14 @@ export type Database = {
3125
3257
  orientatie: Database["public"]["Enums"]["doc_orientation"];
3126
3258
  page_settings: Json;
3127
3259
  papierformaat: string;
3260
+ systeem: boolean;
3128
3261
  thumbnail_url: string | null;
3129
3262
  updated_at: string;
3130
3263
  };
3131
3264
  Insert: {
3132
3265
  actief?: boolean;
3133
3266
  breedte_mm?: number;
3267
+ bron?: string;
3134
3268
  config?: Json;
3135
3269
  created_at?: string;
3136
3270
  created_by?: string | null;
@@ -3148,12 +3282,14 @@ export type Database = {
3148
3282
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3149
3283
  page_settings?: Json;
3150
3284
  papierformaat?: string;
3285
+ systeem?: boolean;
3151
3286
  thumbnail_url?: string | null;
3152
3287
  updated_at?: string;
3153
3288
  };
3154
3289
  Update: {
3155
3290
  actief?: boolean;
3156
3291
  breedte_mm?: number;
3292
+ bron?: string;
3157
3293
  config?: Json;
3158
3294
  created_at?: string;
3159
3295
  created_by?: string | null;
@@ -3171,11 +3307,95 @@ export type Database = {
3171
3307
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3172
3308
  page_settings?: Json;
3173
3309
  papierformaat?: string;
3310
+ systeem?: boolean;
3174
3311
  thumbnail_url?: string | null;
3175
3312
  updated_at?: string;
3176
3313
  };
3177
3314
  Relationships: [];
3178
3315
  };
3316
+ document_printplek_printers: {
3317
+ Row: {
3318
+ created_at: string;
3319
+ documenttype: string;
3320
+ id: string;
3321
+ papierformaat: string | null;
3322
+ print_plek_id: string;
3323
+ printer_id: string | null;
3324
+ updated_at: string;
3325
+ };
3326
+ Insert: {
3327
+ created_at?: string;
3328
+ documenttype: string;
3329
+ id?: string;
3330
+ papierformaat?: string | null;
3331
+ print_plek_id: string;
3332
+ printer_id?: string | null;
3333
+ updated_at?: string;
3334
+ };
3335
+ Update: {
3336
+ created_at?: string;
3337
+ documenttype?: string;
3338
+ id?: string;
3339
+ papierformaat?: string | null;
3340
+ print_plek_id?: string;
3341
+ printer_id?: string | null;
3342
+ updated_at?: string;
3343
+ };
3344
+ Relationships: [
3345
+ {
3346
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3347
+ columns: ["print_plek_id"];
3348
+ isOneToOne: false;
3349
+ referencedRelation: "print_plekken";
3350
+ referencedColumns: ["id"];
3351
+ },
3352
+ {
3353
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3354
+ columns: ["printer_id"];
3355
+ isOneToOne: false;
3356
+ referencedRelation: "printers";
3357
+ referencedColumns: ["id"];
3358
+ }
3359
+ ];
3360
+ };
3361
+ document_werkplek_printers: {
3362
+ Row: {
3363
+ created_at: string;
3364
+ documenttype: string;
3365
+ id: string;
3366
+ papierformaat: string | null;
3367
+ printer_id: string | null;
3368
+ updated_at: string;
3369
+ werkplek: string;
3370
+ };
3371
+ Insert: {
3372
+ created_at?: string;
3373
+ documenttype: string;
3374
+ id?: string;
3375
+ papierformaat?: string | null;
3376
+ printer_id?: string | null;
3377
+ updated_at?: string;
3378
+ werkplek: string;
3379
+ };
3380
+ Update: {
3381
+ created_at?: string;
3382
+ documenttype?: string;
3383
+ id?: string;
3384
+ papierformaat?: string | null;
3385
+ printer_id?: string | null;
3386
+ updated_at?: string;
3387
+ werkplek?: string;
3388
+ };
3389
+ Relationships: [
3390
+ {
3391
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3392
+ columns: ["printer_id"];
3393
+ isOneToOne: false;
3394
+ referencedRelation: "printers";
3395
+ referencedColumns: ["id"];
3396
+ }
3397
+ ];
3398
+ };
3179
3399
  email_auth_connections: {
3180
3400
  Row: {
3181
3401
  access_token_encrypted: string | null;
@@ -7601,6 +7821,7 @@ export type Database = {
7601
7821
  };
7602
7822
  invoice_post_idempotency: {
7603
7823
  Row: {
7824
+ administration_code: string;
7604
7825
  client_request_id: string;
7605
7826
  completed_at: string | null;
7606
7827
  created_at: string;
@@ -7610,6 +7831,7 @@ export type Database = {
7610
7831
  user_id: string;
7611
7832
  };
7612
7833
  Insert: {
7834
+ administration_code?: string;
7613
7835
  client_request_id: string;
7614
7836
  completed_at?: string | null;
7615
7837
  created_at?: string;
@@ -7619,6 +7841,7 @@ export type Database = {
7619
7841
  user_id: string;
7620
7842
  };
7621
7843
  Update: {
7844
+ administration_code?: string;
7622
7845
  client_request_id?: string;
7623
7846
  completed_at?: string | null;
7624
7847
  created_at?: string;
@@ -9292,6 +9515,10 @@ export type Database = {
9292
9515
  id: string;
9293
9516
  last_error: string | null;
9294
9517
  last_error_at: string | null;
9518
+ last_error_code: string | null;
9519
+ last_gateway_status: number | null;
9520
+ last_queued_at: string | null;
9521
+ last_response: Json | null;
9295
9522
  last_sent_hash: string | null;
9296
9523
  locked_by: string | null;
9297
9524
  locked_until: string | null;
@@ -9312,6 +9539,10 @@ export type Database = {
9312
9539
  id?: string;
9313
9540
  last_error?: string | null;
9314
9541
  last_error_at?: string | null;
9542
+ last_error_code?: string | null;
9543
+ last_gateway_status?: number | null;
9544
+ last_queued_at?: string | null;
9545
+ last_response?: Json | null;
9315
9546
  last_sent_hash?: string | null;
9316
9547
  locked_by?: string | null;
9317
9548
  locked_until?: string | null;
@@ -9332,6 +9563,10 @@ export type Database = {
9332
9563
  id?: string;
9333
9564
  last_error?: string | null;
9334
9565
  last_error_at?: string | null;
9566
+ last_error_code?: string | null;
9567
+ last_gateway_status?: number | null;
9568
+ last_queued_at?: string | null;
9569
+ last_response?: Json | null;
9335
9570
  last_sent_hash?: string | null;
9336
9571
  locked_by?: string | null;
9337
9572
  locked_until?: string | null;
@@ -10923,6 +11158,7 @@ export type Database = {
10923
11158
  enforce: boolean;
10924
11159
  is_active: boolean;
10925
11160
  last_seen_at: string;
11161
+ missing_count: number;
10926
11162
  module_id: string;
10927
11163
  name: string;
10928
11164
  shell_id: string | null;
@@ -10933,6 +11169,7 @@ export type Database = {
10933
11169
  enforce?: boolean;
10934
11170
  is_active?: boolean;
10935
11171
  last_seen_at?: string;
11172
+ missing_count?: number;
10936
11173
  module_id: string;
10937
11174
  name: string;
10938
11175
  shell_id?: string | null;
@@ -10943,6 +11180,7 @@ export type Database = {
10943
11180
  enforce?: boolean;
10944
11181
  is_active?: boolean;
10945
11182
  last_seen_at?: string;
11183
+ missing_count?: number;
10946
11184
  module_id?: string;
10947
11185
  name?: string;
10948
11186
  shell_id?: string | null;
@@ -11974,6 +12212,7 @@ export type Database = {
11974
12212
  };
11975
12213
  order_invoice_links: {
11976
12214
  Row: {
12215
+ administration_code: string | null;
11977
12216
  attempts: number;
11978
12217
  created_at: string;
11979
12218
  error_message: string | null;
@@ -11986,6 +12225,7 @@ export type Database = {
11986
12225
  updated_at: string;
11987
12226
  };
11988
12227
  Insert: {
12228
+ administration_code?: string | null;
11989
12229
  attempts?: number;
11990
12230
  created_at?: string;
11991
12231
  error_message?: string | null;
@@ -11998,6 +12238,7 @@ export type Database = {
11998
12238
  updated_at?: string;
11999
12239
  };
12000
12240
  Update: {
12241
+ administration_code?: string | null;
12001
12242
  attempts?: number;
12002
12243
  created_at?: string;
12003
12244
  error_message?: string | null;
@@ -13207,6 +13448,27 @@ export type Database = {
13207
13448
  }
13208
13449
  ];
13209
13450
  };
13451
+ pick_sync_state: {
13452
+ Row: {
13453
+ id: boolean;
13454
+ last_cleanup_at: string | null;
13455
+ last_sync_at: string | null;
13456
+ updated_at: string;
13457
+ };
13458
+ Insert: {
13459
+ id?: boolean;
13460
+ last_cleanup_at?: string | null;
13461
+ last_sync_at?: string | null;
13462
+ updated_at?: string;
13463
+ };
13464
+ Update: {
13465
+ id?: boolean;
13466
+ last_cleanup_at?: string | null;
13467
+ last_sync_at?: string | null;
13468
+ updated_at?: string;
13469
+ };
13470
+ Relationships: [];
13471
+ };
13210
13472
  pick_task_document_types: {
13211
13473
  Row: {
13212
13474
  created_at: string;
@@ -13498,6 +13760,7 @@ export type Database = {
13498
13760
  gebruiker_id: string | null;
13499
13761
  gebruiker_naam: string;
13500
13762
  gestart_op: string | null;
13763
+ herkomst: string | null;
13501
13764
  id: string;
13502
13765
  idempotentie_sleutel: string | null;
13503
13766
  is_herprint: boolean;
@@ -13527,6 +13790,7 @@ export type Database = {
13527
13790
  gebruiker_id?: string | null;
13528
13791
  gebruiker_naam?: string;
13529
13792
  gestart_op?: string | null;
13793
+ herkomst?: string | null;
13530
13794
  id?: string;
13531
13795
  idempotentie_sleutel?: string | null;
13532
13796
  is_herprint?: boolean;
@@ -13556,6 +13820,7 @@ export type Database = {
13556
13820
  gebruiker_id?: string | null;
13557
13821
  gebruiker_naam?: string;
13558
13822
  gestart_op?: string | null;
13823
+ herkomst?: string | null;
13559
13824
  id?: string;
13560
13825
  idempotentie_sleutel?: string | null;
13561
13826
  is_herprint?: boolean;
@@ -13598,6 +13863,103 @@ export type Database = {
13598
13863
  }
13599
13864
  ];
13600
13865
  };
13866
+ print_plek_computers: {
13867
+ Row: {
13868
+ computer_naam: string;
13869
+ created_at: string;
13870
+ id: string;
13871
+ print_plek_id: string;
13872
+ updated_at: string;
13873
+ };
13874
+ Insert: {
13875
+ computer_naam: string;
13876
+ created_at?: string;
13877
+ id?: string;
13878
+ print_plek_id: string;
13879
+ updated_at?: string;
13880
+ };
13881
+ Update: {
13882
+ computer_naam?: string;
13883
+ created_at?: string;
13884
+ id?: string;
13885
+ print_plek_id?: string;
13886
+ updated_at?: string;
13887
+ };
13888
+ Relationships: [
13889
+ {
13890
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13891
+ columns: ["print_plek_id"];
13892
+ isOneToOne: false;
13893
+ referencedRelation: "print_plekken";
13894
+ referencedColumns: ["id"];
13895
+ }
13896
+ ];
13897
+ };
13898
+ print_plek_koppelingen: {
13899
+ Row: {
13900
+ bron: string;
13901
+ bron_id: string;
13902
+ created_at: string;
13903
+ id: string;
13904
+ label: string | null;
13905
+ print_plek_id: string;
13906
+ updated_at: string;
13907
+ };
13908
+ Insert: {
13909
+ bron: string;
13910
+ bron_id: string;
13911
+ created_at?: string;
13912
+ id?: string;
13913
+ label?: string | null;
13914
+ print_plek_id: string;
13915
+ updated_at?: string;
13916
+ };
13917
+ Update: {
13918
+ bron?: string;
13919
+ bron_id?: string;
13920
+ created_at?: string;
13921
+ id?: string;
13922
+ label?: string | null;
13923
+ print_plek_id?: string;
13924
+ updated_at?: string;
13925
+ };
13926
+ Relationships: [
13927
+ {
13928
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13929
+ columns: ["print_plek_id"];
13930
+ isOneToOne: false;
13931
+ referencedRelation: "print_plekken";
13932
+ referencedColumns: ["id"];
13933
+ }
13934
+ ];
13935
+ };
13936
+ print_plekken: {
13937
+ Row: {
13938
+ actief: boolean;
13939
+ created_at: string;
13940
+ id: string;
13941
+ naam: string;
13942
+ omschrijving: string | null;
13943
+ updated_at: string;
13944
+ };
13945
+ Insert: {
13946
+ actief?: boolean;
13947
+ created_at?: string;
13948
+ id?: string;
13949
+ naam: string;
13950
+ omschrijving?: string | null;
13951
+ updated_at?: string;
13952
+ };
13953
+ Update: {
13954
+ actief?: boolean;
13955
+ created_at?: string;
13956
+ id?: string;
13957
+ naam?: string;
13958
+ omschrijving?: string | null;
13959
+ updated_at?: string;
13960
+ };
13961
+ Relationships: [];
13962
+ };
13601
13963
  print_queue_runners: {
13602
13964
  Row: {
13603
13965
  actief: boolean;
@@ -16655,12 +17017,16 @@ export type Database = {
16655
17017
  company_name: string | null;
16656
17018
  connected_at: string | null;
16657
17019
  created_at: string;
17020
+ disconnected_at: string | null;
16658
17021
  environment: string;
16659
17022
  id: string;
17023
+ initial_sync_completed_at: string | null;
17024
+ initial_sync_started_at: string | null;
16660
17025
  is_active: boolean;
16661
17026
  label: string | null;
16662
17027
  office_code: string | null;
16663
17028
  redirect_uri: string | null;
17029
+ superseded_at: string | null;
16664
17030
  updated_at: string;
16665
17031
  user_id: string;
16666
17032
  };
@@ -16671,12 +17037,16 @@ export type Database = {
16671
17037
  company_name?: string | null;
16672
17038
  connected_at?: string | null;
16673
17039
  created_at?: string;
17040
+ disconnected_at?: string | null;
16674
17041
  environment: string;
16675
17042
  id?: string;
17043
+ initial_sync_completed_at?: string | null;
17044
+ initial_sync_started_at?: string | null;
16676
17045
  is_active?: boolean;
16677
17046
  label?: string | null;
16678
17047
  office_code?: string | null;
16679
17048
  redirect_uri?: string | null;
17049
+ superseded_at?: string | null;
16680
17050
  updated_at?: string;
16681
17051
  user_id: string;
16682
17052
  };
@@ -16687,12 +17057,16 @@ export type Database = {
16687
17057
  company_name?: string | null;
16688
17058
  connected_at?: string | null;
16689
17059
  created_at?: string;
17060
+ disconnected_at?: string | null;
16690
17061
  environment?: string;
16691
17062
  id?: string;
17063
+ initial_sync_completed_at?: string | null;
17064
+ initial_sync_started_at?: string | null;
16692
17065
  is_active?: boolean;
16693
17066
  label?: string | null;
16694
17067
  office_code?: string | null;
16695
17068
  redirect_uri?: string | null;
17069
+ superseded_at?: string | null;
16696
17070
  updated_at?: string;
16697
17071
  user_id?: string;
16698
17072
  };
@@ -16752,6 +17126,7 @@ export type Database = {
16752
17126
  twinfield_customers: {
16753
17127
  Row: {
16754
17128
  address: string | null;
17129
+ administration_code: string;
16755
17130
  city: string | null;
16756
17131
  country: string | null;
16757
17132
  created_at: string;
@@ -16771,6 +17146,7 @@ export type Database = {
16771
17146
  };
16772
17147
  Insert: {
16773
17148
  address?: string | null;
17149
+ administration_code?: string;
16774
17150
  city?: string | null;
16775
17151
  country?: string | null;
16776
17152
  created_at?: string;
@@ -16790,6 +17166,7 @@ export type Database = {
16790
17166
  };
16791
17167
  Update: {
16792
17168
  address?: string | null;
17169
+ administration_code?: string;
16793
17170
  city?: string | null;
16794
17171
  country?: string | null;
16795
17172
  created_at?: string;
@@ -17011,7 +17388,9 @@ export type Database = {
17011
17388
  };
17012
17389
  twinfield_invoice_settings: {
17013
17390
  Row: {
17391
+ administration_code: string | null;
17014
17392
  auto_invoice_enabled: boolean;
17393
+ auto_invoice_start_date: string | null;
17015
17394
  auto_invoice_trigger_statuses: string[];
17016
17395
  created_at: string;
17017
17396
  debtor_gl_account: string;
@@ -17025,15 +17404,19 @@ export type Database = {
17025
17404
  invoice_enabled_fo: boolean;
17026
17405
  invoice_enabled_ho: boolean;
17027
17406
  invoice_enabled_mo: boolean;
17407
+ needs_review: boolean;
17028
17408
  payment_gl_account: string;
17029
17409
  payment_journal_code: string;
17410
+ settings_confirmed_at: string | null;
17030
17411
  updated_at: string;
17031
17412
  user_id: string;
17032
17413
  vat_code_eu_reverse: string | null;
17033
17414
  vat_code_export: string | null;
17034
17415
  };
17035
17416
  Insert: {
17417
+ administration_code?: string | null;
17036
17418
  auto_invoice_enabled?: boolean;
17419
+ auto_invoice_start_date?: string | null;
17037
17420
  auto_invoice_trigger_statuses?: string[];
17038
17421
  created_at?: string;
17039
17422
  debtor_gl_account?: string;
@@ -17047,15 +17430,19 @@ export type Database = {
17047
17430
  invoice_enabled_fo?: boolean;
17048
17431
  invoice_enabled_ho?: boolean;
17049
17432
  invoice_enabled_mo?: boolean;
17433
+ needs_review?: boolean;
17050
17434
  payment_gl_account?: string;
17051
17435
  payment_journal_code?: string;
17436
+ settings_confirmed_at?: string | null;
17052
17437
  updated_at?: string;
17053
17438
  user_id: string;
17054
17439
  vat_code_eu_reverse?: string | null;
17055
17440
  vat_code_export?: string | null;
17056
17441
  };
17057
17442
  Update: {
17443
+ administration_code?: string | null;
17058
17444
  auto_invoice_enabled?: boolean;
17445
+ auto_invoice_start_date?: string | null;
17059
17446
  auto_invoice_trigger_statuses?: string[];
17060
17447
  created_at?: string;
17061
17448
  debtor_gl_account?: string;
@@ -17069,8 +17456,10 @@ export type Database = {
17069
17456
  invoice_enabled_fo?: boolean;
17070
17457
  invoice_enabled_ho?: boolean;
17071
17458
  invoice_enabled_mo?: boolean;
17459
+ needs_review?: boolean;
17072
17460
  payment_gl_account?: string;
17073
17461
  payment_journal_code?: string;
17462
+ settings_confirmed_at?: string | null;
17074
17463
  updated_at?: string;
17075
17464
  user_id?: string;
17076
17465
  vat_code_eu_reverse?: string | null;
@@ -18967,6 +19356,9 @@ export type Database = {
18967
19356
  scheduled_end_time: string | null;
18968
19357
  scheduled_start_time: string | null;
18969
19358
  sequence_number: number;
19359
+ signature_accepted_at: string | null;
19360
+ signature_by_user_id: string | null;
19361
+ signature_name: string | null;
18970
19362
  source_email_meta: Json | null;
18971
19363
  source_mailbox_message_id: string | null;
18972
19364
  source_pdf_path: string | null;
@@ -19002,6 +19394,9 @@ export type Database = {
19002
19394
  scheduled_end_time?: string | null;
19003
19395
  scheduled_start_time?: string | null;
19004
19396
  sequence_number: number;
19397
+ signature_accepted_at?: string | null;
19398
+ signature_by_user_id?: string | null;
19399
+ signature_name?: string | null;
19005
19400
  source_email_meta?: Json | null;
19006
19401
  source_mailbox_message_id?: string | null;
19007
19402
  source_pdf_path?: string | null;
@@ -19037,6 +19432,9 @@ export type Database = {
19037
19432
  scheduled_end_time?: string | null;
19038
19433
  scheduled_start_time?: string | null;
19039
19434
  sequence_number?: number;
19435
+ signature_accepted_at?: string | null;
19436
+ signature_by_user_id?: string | null;
19437
+ signature_name?: string | null;
19040
19438
  source_email_meta?: Json | null;
19041
19439
  source_mailbox_message_id?: string | null;
19042
19440
  source_pdf_path?: string | null;
@@ -20194,6 +20592,7 @@ export type Database = {
20194
20592
  gebruiker_id: string | null;
20195
20593
  gebruiker_naam: string;
20196
20594
  gestart_op: string | null;
20595
+ herkomst: string | null;
20197
20596
  id: string;
20198
20597
  idempotentie_sleutel: string | null;
20199
20598
  is_herprint: boolean;
@@ -20314,6 +20713,7 @@ export type Database = {
20314
20713
  gebruiker_id: string | null;
20315
20714
  gebruiker_naam: string;
20316
20715
  gestart_op: string | null;
20716
+ herkomst: string | null;
20317
20717
  id: string;
20318
20718
  idempotentie_sleutel: string | null;
20319
20719
  is_herprint: boolean;
@@ -21023,6 +21423,29 @@ export type Database = {
21023
21423
  roles: string[];
21024
21424
  }[];
21025
21425
  };
21426
+ list_monteur_absences: {
21427
+ Args: {
21428
+ _from: string;
21429
+ _to: string;
21430
+ };
21431
+ Returns: {
21432
+ absence_date: string;
21433
+ end_time: string;
21434
+ full_day: boolean;
21435
+ kind: string;
21436
+ monteur_id: string;
21437
+ start_time: string;
21438
+ }[];
21439
+ };
21440
+ list_monteurs: {
21441
+ Args: never;
21442
+ Returns: {
21443
+ avatar_url: string;
21444
+ display_name: string;
21445
+ email: string;
21446
+ id: string;
21447
+ }[];
21448
+ };
21026
21449
  list_my_planning_items: {
21027
21450
  Args: {
21028
21451
  _from: string;
@@ -21434,6 +21857,41 @@ export type Database = {
21434
21857
  };
21435
21858
  Returns: string;
21436
21859
  };
21860
+ logistics_floriday_finish_push_v2: {
21861
+ Args: {
21862
+ _error?: string;
21863
+ _error_code?: string;
21864
+ _fulfillment_order_id?: string;
21865
+ _gateway_status?: number;
21866
+ _id: string;
21867
+ _max_age_hours?: number;
21868
+ _max_attempts?: number;
21869
+ _ok: boolean;
21870
+ _permanent?: boolean;
21871
+ _response?: Json;
21872
+ _revision: number;
21873
+ _sent_hash?: string;
21874
+ };
21875
+ Returns: string;
21876
+ };
21877
+ logistics_floriday_finish_push_v3: {
21878
+ Args: {
21879
+ _error?: string;
21880
+ _error_code?: string;
21881
+ _fulfillment_order_id?: string;
21882
+ _gateway_status?: number;
21883
+ _id: string;
21884
+ _max_age_hours?: number;
21885
+ _max_attempts?: number;
21886
+ _outcome: string;
21887
+ _permanent?: boolean;
21888
+ _response?: Json;
21889
+ _revision: number;
21890
+ _sent_hash?: string;
21891
+ _wait_max_age_hours?: number;
21892
+ };
21893
+ Returns: string;
21894
+ };
21437
21895
  logistics_floriday_prune_pushes: {
21438
21896
  Args: {
21439
21897
  _days?: number;
@@ -21976,6 +22434,13 @@ export type Database = {
21976
22434
  isSetofReturn: false;
21977
22435
  };
21978
22436
  };
22437
+ pick_cleanup_maintenance: {
22438
+ Args: {
22439
+ _heartbeat_hours?: number;
22440
+ _log_days?: number;
22441
+ };
22442
+ Returns: Json;
22443
+ };
21979
22444
  pick_complete_print: {
21980
22445
  Args: {
21981
22446
  _printer_id: string;
@@ -22027,6 +22492,14 @@ export type Database = {
22027
22492
  Args: never;
22028
22493
  Returns: string;
22029
22494
  };
22495
+ pick_day_counts: {
22496
+ Args: {
22497
+ _pick_day?: string;
22498
+ _screen_id?: string;
22499
+ _station_id?: string;
22500
+ };
22501
+ Returns: Json;
22502
+ };
22030
22503
  pick_document_layout_data: {
22031
22504
  Args: {
22032
22505
  _layout_id: string;
@@ -22054,6 +22527,14 @@ export type Database = {
22054
22527
  };
22055
22528
  Returns: Json;
22056
22529
  };
22530
+ pick_print_plekken: {
22531
+ Args: never;
22532
+ Returns: {
22533
+ id: string;
22534
+ naam: string;
22535
+ omschrijving: string;
22536
+ }[];
22537
+ };
22057
22538
  pick_release_expired_locks: {
22058
22539
  Args: never;
22059
22540
  Returns: number;
@@ -22064,6 +22545,14 @@ export type Database = {
22064
22545
  };
22065
22546
  Returns: undefined;
22066
22547
  };
22548
+ pick_reprint_document: {
22549
+ Args: {
22550
+ _queue_item_id: string;
22551
+ _session_id: string;
22552
+ _throttle_seconds?: number;
22553
+ };
22554
+ Returns: string;
22555
+ };
22067
22556
  pick_reset_print: {
22068
22557
  Args: {
22069
22558
  _queue_item_id: string;
@@ -22110,6 +22599,13 @@ export type Database = {
22110
22599
  isSetofReturn: false;
22111
22600
  };
22112
22601
  };
22602
+ pick_set_station_print_plek: {
22603
+ Args: {
22604
+ _print_plek_id: string;
22605
+ _station_id: string;
22606
+ };
22607
+ Returns: string;
22608
+ };
22113
22609
  pick_station_dashboard: {
22114
22610
  Args: never;
22115
22611
  Returns: {
@@ -22122,6 +22618,25 @@ export type Database = {
22122
22618
  waiting: number;
22123
22619
  }[];
22124
22620
  };
22621
+ pick_station_print_plek: {
22622
+ Args: {
22623
+ _station_id: string;
22624
+ };
22625
+ Returns: {
22626
+ naam: string;
22627
+ omschrijving: string;
22628
+ print_plek_id: string;
22629
+ }[];
22630
+ };
22631
+ pick_station_print_plekken: {
22632
+ Args: never;
22633
+ Returns: {
22634
+ naam: string;
22635
+ omschrijving: string;
22636
+ print_plek_id: string;
22637
+ station_id: string;
22638
+ }[];
22639
+ };
22125
22640
  pick_station_slugify: {
22126
22641
  Args: {
22127
22642
  _id: string;
@@ -22129,6 +22644,12 @@ export type Database = {
22129
22644
  };
22130
22645
  Returns: string;
22131
22646
  };
22647
+ pick_sync_queue_throttled: {
22648
+ Args: {
22649
+ _min_seconds?: number;
22650
+ };
22651
+ Returns: Json;
22652
+ };
22132
22653
  pickstation_get_orders_raw: {
22133
22654
  Args: never;
22134
22655
  Returns: Json;
@@ -22274,6 +22795,12 @@ export type Database = {
22274
22795
  };
22275
22796
  Returns: boolean;
22276
22797
  };
22798
+ release_stale_order_invoice_links: {
22799
+ Args: {
22800
+ _minutes?: number;
22801
+ };
22802
+ Returns: number;
22803
+ };
22277
22804
  reorder_customer_price_groups: {
22278
22805
  Args: {
22279
22806
  _ids: string[];
@@ -22792,6 +23319,20 @@ export type Database = {
22792
23319
  };
22793
23320
  Returns: undefined;
22794
23321
  };
23322
+ twinfield_deactivate_connection: {
23323
+ Args: {
23324
+ p_connection_id: string;
23325
+ p_user_id: string;
23326
+ };
23327
+ Returns: Json;
23328
+ };
23329
+ twinfield_handle_administration_change: {
23330
+ Args: {
23331
+ _administration_code: string;
23332
+ _user_id: string;
23333
+ };
23334
+ Returns: undefined;
23335
+ };
22795
23336
  twinfield_prune_push_queue: {
22796
23337
  Args: never;
22797
23338
  Returns: number;
@@ -22811,10 +23352,11 @@ export type Database = {
22811
23352
  p_company_name?: string;
22812
23353
  p_environment: string;
22813
23354
  p_office_code?: string;
23355
+ p_reset_sync?: boolean;
22814
23356
  p_status?: string;
22815
23357
  p_user_id: string;
22816
23358
  };
22817
- Returns: string;
23359
+ Returns: Json;
22818
23360
  };
22819
23361
  upsert_auto_fulfillment_log: {
22820
23362
  Args: {