@flowselections/floriday-authenticatie-module 1.0.50 → 1.0.52

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 (38) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +713 -6
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.server.d.ts +713 -6
  4. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/types.d.ts +729 -6
  6. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  7. package/dist-lib/lib/cron/index.d.ts +1 -0
  8. package/dist-lib/lib/cron/index.d.ts.map +1 -1
  9. package/dist-lib/lib/cron/index.js +1 -0
  10. package/dist-lib/lib/cron/retry-floriday-documents.d.ts +28 -0
  11. package/dist-lib/lib/cron/retry-floriday-documents.d.ts.map +1 -0
  12. package/dist-lib/lib/cron/retry-floriday-documents.js +220 -0
  13. package/dist-lib/lib/floricode.functions.d.ts +4991 -42
  14. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/floriday-api-log.functions.d.ts +6417 -54
  16. package/dist-lib/lib/floriday-api-log.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +713 -6
  18. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/floriday-auction-letters.functions.js +22 -0
  20. package/dist-lib/lib/floriday-document-queue.d.ts +21 -0
  21. package/dist-lib/lib/floriday-document-queue.d.ts.map +1 -0
  22. package/dist-lib/lib/floriday-document-queue.js +96 -0
  23. package/dist-lib/lib/floriday-labels.functions.d.ts +713 -6
  24. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-public.functions.d.ts +4278 -36
  26. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-stickers.functions.d.ts +713 -6
  28. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday-stickers.functions.js +23 -0
  30. package/dist-lib/lib/floriday-sync.functions.d.ts +2 -2
  31. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday-tray-stickers.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-tray-stickers.functions.js +21 -0
  34. package/dist-lib/lib/floriday-writes.functions.d.ts +5704 -48
  35. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday.functions.d.ts +15730 -440
  37. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  38. package/package.json +2 -2
@@ -752,6 +752,27 @@ export type Database = {
752
752
  };
753
753
  Relationships: [];
754
754
  };
755
+ artikelen_instellingen: {
756
+ Row: {
757
+ created_at: string;
758
+ id: number;
759
+ marge_procent: number;
760
+ updated_at: string;
761
+ };
762
+ Insert: {
763
+ created_at?: string;
764
+ id?: number;
765
+ marge_procent?: number;
766
+ updated_at?: string;
767
+ };
768
+ Update: {
769
+ created_at?: string;
770
+ id?: number;
771
+ marge_procent?: number;
772
+ updated_at?: string;
773
+ };
774
+ Relationships: [];
775
+ };
755
776
  artikelen_veldconfig: {
756
777
  Row: {
757
778
  bron_pad: string;
@@ -3184,6 +3205,7 @@ export type Database = {
3184
3205
  formaat_code: string;
3185
3206
  id: string;
3186
3207
  printer_id: string | null;
3208
+ printer_ontbreekt_sinds: string | null;
3187
3209
  updated_at: string;
3188
3210
  };
3189
3211
  Insert: {
@@ -3192,6 +3214,7 @@ export type Database = {
3192
3214
  formaat_code: string;
3193
3215
  id?: string;
3194
3216
  printer_id?: string | null;
3217
+ printer_ontbreekt_sinds?: string | null;
3195
3218
  updated_at?: string;
3196
3219
  };
3197
3220
  Update: {
@@ -3200,6 +3223,7 @@ export type Database = {
3200
3223
  formaat_code?: string;
3201
3224
  id?: string;
3202
3225
  printer_id?: string | null;
3226
+ printer_ontbreekt_sinds?: string | null;
3203
3227
  updated_at?: string;
3204
3228
  };
3205
3229
  Relationships: [
@@ -3549,6 +3573,7 @@ export type Database = {
3549
3573
  papierformaat: string | null;
3550
3574
  print_plek_id: string;
3551
3575
  printer_id: string | null;
3576
+ printer_ontbreekt_sinds: string | null;
3552
3577
  updated_at: string;
3553
3578
  };
3554
3579
  Insert: {
@@ -3558,6 +3583,7 @@ export type Database = {
3558
3583
  papierformaat?: string | null;
3559
3584
  print_plek_id: string;
3560
3585
  printer_id?: string | null;
3586
+ printer_ontbreekt_sinds?: string | null;
3561
3587
  updated_at?: string;
3562
3588
  };
3563
3589
  Update: {
@@ -3567,6 +3593,7 @@ export type Database = {
3567
3593
  papierformaat?: string | null;
3568
3594
  print_plek_id?: string;
3569
3595
  printer_id?: string | null;
3596
+ printer_ontbreekt_sinds?: string | null;
3570
3597
  updated_at?: string;
3571
3598
  };
3572
3599
  Relationships: [
@@ -3593,6 +3620,7 @@ export type Database = {
3593
3620
  id: string;
3594
3621
  papierformaat: string | null;
3595
3622
  printer_id: string | null;
3623
+ printer_ontbreekt_sinds: string | null;
3596
3624
  updated_at: string;
3597
3625
  werkplek: string;
3598
3626
  };
@@ -3602,6 +3630,7 @@ export type Database = {
3602
3630
  id?: string;
3603
3631
  papierformaat?: string | null;
3604
3632
  printer_id?: string | null;
3633
+ printer_ontbreekt_sinds?: string | null;
3605
3634
  updated_at?: string;
3606
3635
  werkplek: string;
3607
3636
  };
@@ -3611,6 +3640,7 @@ export type Database = {
3611
3640
  id?: string;
3612
3641
  papierformaat?: string | null;
3613
3642
  printer_id?: string | null;
3643
+ printer_ontbreekt_sinds?: string | null;
3614
3644
  updated_at?: string;
3615
3645
  werkplek?: string;
3616
3646
  };
@@ -7002,6 +7032,80 @@ export type Database = {
7002
7032
  }
7003
7033
  ];
7004
7034
  };
7035
+ floriday_document_fetch_queue: {
7036
+ Row: {
7037
+ attempts: number;
7038
+ cancelled_reason: string | null;
7039
+ completed_at: string | null;
7040
+ connection_id: string;
7041
+ created_at: string;
7042
+ document_key: string;
7043
+ environment: string;
7044
+ id: string;
7045
+ kind: string;
7046
+ last_error: string | null;
7047
+ last_http_status: number | null;
7048
+ locked_at: string | null;
7049
+ locked_by: string | null;
7050
+ max_attempts: number;
7051
+ next_attempt_at: string;
7052
+ order_ref: string | null;
7053
+ params: Json;
7054
+ status: string;
7055
+ updated_at: string;
7056
+ };
7057
+ Insert: {
7058
+ attempts?: number;
7059
+ cancelled_reason?: string | null;
7060
+ completed_at?: string | null;
7061
+ connection_id: string;
7062
+ created_at?: string;
7063
+ document_key: string;
7064
+ environment: string;
7065
+ id?: string;
7066
+ kind: string;
7067
+ last_error?: string | null;
7068
+ last_http_status?: number | null;
7069
+ locked_at?: string | null;
7070
+ locked_by?: string | null;
7071
+ max_attempts?: number;
7072
+ next_attempt_at?: string;
7073
+ order_ref?: string | null;
7074
+ params?: Json;
7075
+ status?: string;
7076
+ updated_at?: string;
7077
+ };
7078
+ Update: {
7079
+ attempts?: number;
7080
+ cancelled_reason?: string | null;
7081
+ completed_at?: string | null;
7082
+ connection_id?: string;
7083
+ created_at?: string;
7084
+ document_key?: string;
7085
+ environment?: string;
7086
+ id?: string;
7087
+ kind?: string;
7088
+ last_error?: string | null;
7089
+ last_http_status?: number | null;
7090
+ locked_at?: string | null;
7091
+ locked_by?: string | null;
7092
+ max_attempts?: number;
7093
+ next_attempt_at?: string;
7094
+ order_ref?: string | null;
7095
+ params?: Json;
7096
+ status?: string;
7097
+ updated_at?: string;
7098
+ };
7099
+ Relationships: [
7100
+ {
7101
+ foreignKeyName: "floriday_document_fetch_queue_connection_id_fkey";
7102
+ columns: ["connection_id"];
7103
+ isOneToOne: false;
7104
+ referencedRelation: "floriday_connections";
7105
+ referencedColumns: ["id"];
7106
+ }
7107
+ ];
7108
+ };
7005
7109
  floriday_fulfillment_orders_cache: {
7006
7110
  Row: {
7007
7111
  auction_date: string | null;
@@ -9594,6 +9698,59 @@ export type Database = {
9594
9698
  };
9595
9699
  Relationships: [];
9596
9700
  };
9701
+ itk_offerte_acceptaties: {
9702
+ Row: {
9703
+ accepted_at: string;
9704
+ akkoordgever_email: string;
9705
+ akkoordgever_naam: string;
9706
+ akkoordverklaring: string;
9707
+ id: string;
9708
+ inhoud_hash: string;
9709
+ ip_address: unknown;
9710
+ offerte_id: string;
9711
+ offerte_number: string;
9712
+ offerte_snapshot: Json;
9713
+ user_agent: string | null;
9714
+ versie: string;
9715
+ };
9716
+ Insert: {
9717
+ accepted_at?: string;
9718
+ akkoordgever_email: string;
9719
+ akkoordgever_naam: string;
9720
+ akkoordverklaring: string;
9721
+ id?: string;
9722
+ inhoud_hash: string;
9723
+ ip_address?: unknown;
9724
+ offerte_id: string;
9725
+ offerte_number: string;
9726
+ offerte_snapshot: Json;
9727
+ user_agent?: string | null;
9728
+ versie: string;
9729
+ };
9730
+ Update: {
9731
+ accepted_at?: string;
9732
+ akkoordgever_email?: string;
9733
+ akkoordgever_naam?: string;
9734
+ akkoordverklaring?: string;
9735
+ id?: string;
9736
+ inhoud_hash?: string;
9737
+ ip_address?: unknown;
9738
+ offerte_id?: string;
9739
+ offerte_number?: string;
9740
+ offerte_snapshot?: Json;
9741
+ user_agent?: string | null;
9742
+ versie?: string;
9743
+ };
9744
+ Relationships: [
9745
+ {
9746
+ foreignKeyName: "itk_offerte_acceptaties_offerte_id_fkey";
9747
+ columns: ["offerte_id"];
9748
+ isOneToOne: true;
9749
+ referencedRelation: "itk_offertes";
9750
+ referencedColumns: ["id"];
9751
+ }
9752
+ ];
9753
+ };
9597
9754
  itk_offerte_events: {
9598
9755
  Row: {
9599
9756
  created_at: string;
@@ -9816,6 +9973,7 @@ export type Database = {
9816
9973
  itk_offertes: {
9817
9974
  Row: {
9818
9975
  aandachtspunten: string | null;
9976
+ acceptance_id: string | null;
9819
9977
  ai_generated: boolean;
9820
9978
  approved_at: string | null;
9821
9979
  binnen_mandaat: boolean;
@@ -9834,6 +9992,11 @@ export type Database = {
9834
9992
  onderwerp: string | null;
9835
9993
  rejected_at: string | null;
9836
9994
  sent_at: string | null;
9995
+ sign_token: string;
9996
+ signature_data: string | null;
9997
+ signed_at: string | null;
9998
+ signer_email: string | null;
9999
+ signer_name: string | null;
9837
10000
  source_number: string | null;
9838
10001
  source_ref: string | null;
9839
10002
  source_type: string;
@@ -9848,11 +10011,13 @@ export type Database = {
9848
10011
  viewed_at: string | null;
9849
10012
  volgnummer: number | null;
9850
10013
  voorwaarden: string | null;
10014
+ werkbon_concept: Json | null;
9851
10015
  werkbon_id: string | null;
9852
10016
  work_location_id: string | null;
9853
10017
  };
9854
10018
  Insert: {
9855
10019
  aandachtspunten?: string | null;
10020
+ acceptance_id?: string | null;
9856
10021
  ai_generated?: boolean;
9857
10022
  approved_at?: string | null;
9858
10023
  binnen_mandaat?: boolean;
@@ -9871,6 +10036,11 @@ export type Database = {
9871
10036
  onderwerp?: string | null;
9872
10037
  rejected_at?: string | null;
9873
10038
  sent_at?: string | null;
10039
+ sign_token?: string;
10040
+ signature_data?: string | null;
10041
+ signed_at?: string | null;
10042
+ signer_email?: string | null;
10043
+ signer_name?: string | null;
9874
10044
  source_number?: string | null;
9875
10045
  source_ref?: string | null;
9876
10046
  source_type?: string;
@@ -9885,11 +10055,13 @@ export type Database = {
9885
10055
  viewed_at?: string | null;
9886
10056
  volgnummer?: number | null;
9887
10057
  voorwaarden?: string | null;
10058
+ werkbon_concept?: Json | null;
9888
10059
  werkbon_id?: string | null;
9889
10060
  work_location_id?: string | null;
9890
10061
  };
9891
10062
  Update: {
9892
10063
  aandachtspunten?: string | null;
10064
+ acceptance_id?: string | null;
9893
10065
  ai_generated?: boolean;
9894
10066
  approved_at?: string | null;
9895
10067
  binnen_mandaat?: boolean;
@@ -9908,6 +10080,11 @@ export type Database = {
9908
10080
  onderwerp?: string | null;
9909
10081
  rejected_at?: string | null;
9910
10082
  sent_at?: string | null;
10083
+ sign_token?: string;
10084
+ signature_data?: string | null;
10085
+ signed_at?: string | null;
10086
+ signer_email?: string | null;
10087
+ signer_name?: string | null;
9911
10088
  source_number?: string | null;
9912
10089
  source_ref?: string | null;
9913
10090
  source_type?: string;
@@ -9922,10 +10099,18 @@ export type Database = {
9922
10099
  viewed_at?: string | null;
9923
10100
  volgnummer?: number | null;
9924
10101
  voorwaarden?: string | null;
10102
+ werkbon_concept?: Json | null;
9925
10103
  werkbon_id?: string | null;
9926
10104
  work_location_id?: string | null;
9927
10105
  };
9928
10106
  Relationships: [
10107
+ {
10108
+ foreignKeyName: "itk_offertes_acceptance_id_fkey";
10109
+ columns: ["acceptance_id"];
10110
+ isOneToOne: false;
10111
+ referencedRelation: "itk_offerte_acceptaties";
10112
+ referencedColumns: ["id"];
10113
+ },
9929
10114
  {
9930
10115
  foreignKeyName: "itk_offertes_contact_id_fkey";
9931
10116
  columns: ["contact_id"];
@@ -10677,6 +10862,30 @@ export type Database = {
10677
10862
  };
10678
10863
  Relationships: [];
10679
10864
  };
10865
+ logistics_cart_barcode_archief: {
10866
+ Row: {
10867
+ barcode: string;
10868
+ cart_id: string;
10869
+ created_at: string | null;
10870
+ gearchiveerd_op: string;
10871
+ order_id: string | null;
10872
+ };
10873
+ Insert: {
10874
+ barcode: string;
10875
+ cart_id: string;
10876
+ created_at?: string | null;
10877
+ gearchiveerd_op?: string;
10878
+ order_id?: string | null;
10879
+ };
10880
+ Update: {
10881
+ barcode?: string;
10882
+ cart_id?: string;
10883
+ created_at?: string | null;
10884
+ gearchiveerd_op?: string;
10885
+ order_id?: string | null;
10886
+ };
10887
+ Relationships: [];
10888
+ };
10680
10889
  logistics_control_scan: {
10681
10890
  Row: {
10682
10891
  approved_at: string | null;
@@ -16461,18 +16670,24 @@ export type Database = {
16461
16670
  Row: {
16462
16671
  id: boolean;
16463
16672
  last_cleanup_at: string | null;
16673
+ last_error: string | null;
16674
+ last_error_at: string | null;
16464
16675
  last_sync_at: string | null;
16465
16676
  updated_at: string;
16466
16677
  };
16467
16678
  Insert: {
16468
16679
  id?: boolean;
16469
16680
  last_cleanup_at?: string | null;
16681
+ last_error?: string | null;
16682
+ last_error_at?: string | null;
16470
16683
  last_sync_at?: string | null;
16471
16684
  updated_at?: string;
16472
16685
  };
16473
16686
  Update: {
16474
16687
  id?: boolean;
16475
16688
  last_cleanup_at?: string | null;
16689
+ last_error?: string | null;
16690
+ last_error_at?: string | null;
16476
16691
  last_sync_at?: string | null;
16477
16692
  updated_at?: string;
16478
16693
  };
@@ -16601,6 +16816,60 @@ export type Database = {
16601
16816
  };
16602
16817
  Relationships: [];
16603
16818
  };
16819
+ planning_confirmation_log: {
16820
+ Row: {
16821
+ created_at: string;
16822
+ end_at: string;
16823
+ id: string;
16824
+ kind: string;
16825
+ outbox_id: string | null;
16826
+ planning_item_id: string;
16827
+ reason: string | null;
16828
+ recipient: string | null;
16829
+ start_at: string;
16830
+ status: string;
16831
+ };
16832
+ Insert: {
16833
+ created_at?: string;
16834
+ end_at: string;
16835
+ id?: string;
16836
+ kind?: string;
16837
+ outbox_id?: string | null;
16838
+ planning_item_id: string;
16839
+ reason?: string | null;
16840
+ recipient?: string | null;
16841
+ start_at: string;
16842
+ status: string;
16843
+ };
16844
+ Update: {
16845
+ created_at?: string;
16846
+ end_at?: string;
16847
+ id?: string;
16848
+ kind?: string;
16849
+ outbox_id?: string | null;
16850
+ planning_item_id?: string;
16851
+ reason?: string | null;
16852
+ recipient?: string | null;
16853
+ start_at?: string;
16854
+ status?: string;
16855
+ };
16856
+ Relationships: [
16857
+ {
16858
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16859
+ columns: ["planning_item_id"];
16860
+ isOneToOne: false;
16861
+ referencedRelation: "planning_items";
16862
+ referencedColumns: ["id"];
16863
+ },
16864
+ {
16865
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16866
+ columns: ["planning_item_id"];
16867
+ isOneToOne: false;
16868
+ referencedRelation: "planning_overview";
16869
+ referencedColumns: ["id"];
16870
+ }
16871
+ ];
16872
+ };
16604
16873
  planning_item_assistants: {
16605
16874
  Row: {
16606
16875
  created_at: string;
@@ -16691,6 +16960,72 @@ export type Database = {
16691
16960
  }
16692
16961
  ];
16693
16962
  };
16963
+ planning_mail_settings: {
16964
+ Row: {
16965
+ body_template: string;
16966
+ cc: string[];
16967
+ connection_id: string | null;
16968
+ created_at: string;
16969
+ email_purpose: string | null;
16970
+ enabled: boolean;
16971
+ id: boolean;
16972
+ reply_to: string | null;
16973
+ reschedule_body_template: string;
16974
+ reschedule_subject_template: string;
16975
+ subject_template: string;
16976
+ timezone: string;
16977
+ updated_at: string;
16978
+ updated_by: string | null;
16979
+ };
16980
+ Insert: {
16981
+ body_template?: string;
16982
+ cc?: string[];
16983
+ connection_id?: string | null;
16984
+ created_at?: string;
16985
+ email_purpose?: string | null;
16986
+ enabled?: boolean;
16987
+ id?: boolean;
16988
+ reply_to?: string | null;
16989
+ reschedule_body_template?: string;
16990
+ reschedule_subject_template?: string;
16991
+ subject_template?: string;
16992
+ timezone?: string;
16993
+ updated_at?: string;
16994
+ updated_by?: string | null;
16995
+ };
16996
+ Update: {
16997
+ body_template?: string;
16998
+ cc?: string[];
16999
+ connection_id?: string | null;
17000
+ created_at?: string;
17001
+ email_purpose?: string | null;
17002
+ enabled?: boolean;
17003
+ id?: boolean;
17004
+ reply_to?: string | null;
17005
+ reschedule_body_template?: string;
17006
+ reschedule_subject_template?: string;
17007
+ subject_template?: string;
17008
+ timezone?: string;
17009
+ updated_at?: string;
17010
+ updated_by?: string | null;
17011
+ };
17012
+ Relationships: [
17013
+ {
17014
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
17015
+ columns: ["connection_id"];
17016
+ isOneToOne: false;
17017
+ referencedRelation: "email_auth_connections";
17018
+ referencedColumns: ["id"];
17019
+ },
17020
+ {
17021
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
17022
+ columns: ["connection_id"];
17023
+ isOneToOne: false;
17024
+ referencedRelation: "email_auth_connections_safe";
17025
+ referencedColumns: ["id"];
17026
+ }
17027
+ ];
17028
+ };
16694
17029
  planning_monteur_day_locations: {
16695
17030
  Row: {
16696
17031
  created_at: string;
@@ -17090,6 +17425,27 @@ export type Database = {
17090
17425
  };
17091
17426
  Relationships: [];
17092
17427
  };
17428
+ print_genegeerde_computers: {
17429
+ Row: {
17430
+ computer_naam: string;
17431
+ genegeerd_door: string | null;
17432
+ genegeerd_op: string;
17433
+ id: string;
17434
+ };
17435
+ Insert: {
17436
+ computer_naam: string;
17437
+ genegeerd_door?: string | null;
17438
+ genegeerd_op?: string;
17439
+ id?: string;
17440
+ };
17441
+ Update: {
17442
+ computer_naam?: string;
17443
+ genegeerd_door?: string | null;
17444
+ genegeerd_op?: string;
17445
+ id?: string;
17446
+ };
17447
+ Relationships: [];
17448
+ };
17093
17449
  print_job_logs: {
17094
17450
  Row: {
17095
17451
  created_at: string;
@@ -17371,6 +17727,42 @@ export type Database = {
17371
17727
  }
17372
17728
  ];
17373
17729
  };
17730
+ print_plek_printers: {
17731
+ Row: {
17732
+ id: string;
17733
+ print_plek_id: string;
17734
+ printer_id: string;
17735
+ toegevoegd_op: string;
17736
+ };
17737
+ Insert: {
17738
+ id?: string;
17739
+ print_plek_id: string;
17740
+ printer_id: string;
17741
+ toegevoegd_op?: string;
17742
+ };
17743
+ Update: {
17744
+ id?: string;
17745
+ print_plek_id?: string;
17746
+ printer_id?: string;
17747
+ toegevoegd_op?: string;
17748
+ };
17749
+ Relationships: [
17750
+ {
17751
+ foreignKeyName: "print_plek_printers_print_plek_id_fkey";
17752
+ columns: ["print_plek_id"];
17753
+ isOneToOne: false;
17754
+ referencedRelation: "print_plekken";
17755
+ referencedColumns: ["id"];
17756
+ },
17757
+ {
17758
+ foreignKeyName: "print_plek_printers_printer_id_fkey";
17759
+ columns: ["printer_id"];
17760
+ isOneToOne: false;
17761
+ referencedRelation: "printers";
17762
+ referencedColumns: ["id"];
17763
+ }
17764
+ ];
17765
+ };
17374
17766
  print_plekken: {
17375
17767
  Row: {
17376
17768
  actief: boolean;
@@ -17589,7 +17981,8 @@ export type Database = {
17589
17981
  created_at: string;
17590
17982
  id: string;
17591
17983
  layout_id: string;
17592
- printer_id: string;
17984
+ printer_id: string | null;
17985
+ printer_ontbreekt_sinds: string | null;
17593
17986
  prioriteit: number;
17594
17987
  updated_at: string;
17595
17988
  };
@@ -17597,7 +17990,8 @@ export type Database = {
17597
17990
  created_at?: string;
17598
17991
  id?: string;
17599
17992
  layout_id: string;
17600
- printer_id: string;
17993
+ printer_id?: string | null;
17994
+ printer_ontbreekt_sinds?: string | null;
17601
17995
  prioriteit?: number;
17602
17996
  updated_at?: string;
17603
17997
  };
@@ -17605,7 +17999,8 @@ export type Database = {
17605
17999
  created_at?: string;
17606
18000
  id?: string;
17607
18001
  layout_id?: string;
17608
- printer_id?: string;
18002
+ printer_id?: string | null;
18003
+ printer_ontbreekt_sinds?: string | null;
17609
18004
  prioriteit?: number;
17610
18005
  updated_at?: string;
17611
18006
  };
@@ -18221,6 +18616,9 @@ export type Database = {
18221
18616
  lead_time_days: number | null;
18222
18617
  min_order_quantity: number | null;
18223
18618
  notes: string | null;
18619
+ previous_price_cents: number | null;
18620
+ price_source: string;
18621
+ price_updated_at: string | null;
18224
18622
  product_id: string;
18225
18623
  purchase_price_cents: number | null;
18226
18624
  supplier_article_number: string | null;
@@ -18234,6 +18632,9 @@ export type Database = {
18234
18632
  lead_time_days?: number | null;
18235
18633
  min_order_quantity?: number | null;
18236
18634
  notes?: string | null;
18635
+ previous_price_cents?: number | null;
18636
+ price_source?: string;
18637
+ price_updated_at?: string | null;
18237
18638
  product_id: string;
18238
18639
  purchase_price_cents?: number | null;
18239
18640
  supplier_article_number?: string | null;
@@ -18247,6 +18648,9 @@ export type Database = {
18247
18648
  lead_time_days?: number | null;
18248
18649
  min_order_quantity?: number | null;
18249
18650
  notes?: string | null;
18651
+ previous_price_cents?: number | null;
18652
+ price_source?: string;
18653
+ price_updated_at?: string | null;
18250
18654
  product_id?: string;
18251
18655
  purchase_price_cents?: number | null;
18252
18656
  supplier_article_number?: string | null;
@@ -18804,9 +19208,13 @@ export type Database = {
18804
19208
  purchase_order_items: {
18805
19209
  Row: {
18806
19210
  article_number: string | null;
19211
+ cancel_reason: string | null;
19212
+ cancelled_at: string | null;
18807
19213
  created_at: string;
18808
19214
  delivery_date: string | null;
18809
19215
  id: string;
19216
+ incoming_booked: number;
19217
+ line_status: string;
18810
19218
  name: string;
18811
19219
  note: string | null;
18812
19220
  pot_size: string | null;
@@ -18814,6 +19222,8 @@ export type Database = {
18814
19222
  product_type: string;
18815
19223
  purchase_order_id: string;
18816
19224
  quantity: number;
19225
+ received_at: string | null;
19226
+ received_booked: number;
18817
19227
  supplier_id: string | null;
18818
19228
  supplier_product_id: string | null;
18819
19229
  unit_price_cents: number;
@@ -18821,9 +19231,13 @@ export type Database = {
18821
19231
  };
18822
19232
  Insert: {
18823
19233
  article_number?: string | null;
19234
+ cancel_reason?: string | null;
19235
+ cancelled_at?: string | null;
18824
19236
  created_at?: string;
18825
19237
  delivery_date?: string | null;
18826
19238
  id?: string;
19239
+ incoming_booked?: number;
19240
+ line_status?: string;
18827
19241
  name?: string;
18828
19242
  note?: string | null;
18829
19243
  pot_size?: string | null;
@@ -18831,6 +19245,8 @@ export type Database = {
18831
19245
  product_type?: string;
18832
19246
  purchase_order_id: string;
18833
19247
  quantity?: number;
19248
+ received_at?: string | null;
19249
+ received_booked?: number;
18834
19250
  supplier_id?: string | null;
18835
19251
  supplier_product_id?: string | null;
18836
19252
  unit_price_cents?: number;
@@ -18838,9 +19254,13 @@ export type Database = {
18838
19254
  };
18839
19255
  Update: {
18840
19256
  article_number?: string | null;
19257
+ cancel_reason?: string | null;
19258
+ cancelled_at?: string | null;
18841
19259
  created_at?: string;
18842
19260
  delivery_date?: string | null;
18843
19261
  id?: string;
19262
+ incoming_booked?: number;
19263
+ line_status?: string;
18844
19264
  name?: string;
18845
19265
  note?: string | null;
18846
19266
  pot_size?: string | null;
@@ -18848,6 +19268,8 @@ export type Database = {
18848
19268
  product_type?: string;
18849
19269
  purchase_order_id?: string;
18850
19270
  quantity?: number;
19271
+ received_at?: string | null;
19272
+ received_booked?: number;
18851
19273
  supplier_id?: string | null;
18852
19274
  supplier_product_id?: string | null;
18853
19275
  unit_price_cents?: number;
@@ -22196,6 +22618,32 @@ export type Database = {
22196
22618
  };
22197
22619
  Relationships: [];
22198
22620
  };
22621
+ uren_pagina_toegang: {
22622
+ Row: {
22623
+ created_at: string;
22624
+ id: string;
22625
+ user_id: string;
22626
+ };
22627
+ Insert: {
22628
+ created_at?: string;
22629
+ id?: string;
22630
+ user_id: string;
22631
+ };
22632
+ Update: {
22633
+ created_at?: string;
22634
+ id?: string;
22635
+ user_id?: string;
22636
+ };
22637
+ Relationships: [
22638
+ {
22639
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
22640
+ columns: ["user_id"];
22641
+ isOneToOne: true;
22642
+ referencedRelation: "profiles";
22643
+ referencedColumns: ["id"];
22644
+ }
22645
+ ];
22646
+ };
22199
22647
  uren_settings: {
22200
22648
  Row: {
22201
22649
  break_minutes: number;
@@ -23631,12 +24079,14 @@ export type Database = {
23631
24079
  created_at: string;
23632
24080
  default_quantity: number;
23633
24081
  description: string | null;
23634
- duration_minutes: number | null;
24082
+ duration_minutes: number;
23635
24083
  id: string;
24084
+ labor_minutes: number;
23636
24085
  mandaat_type: string | null;
23637
24086
  name: string;
23638
24087
  price_mode: string;
23639
24088
  sort_order: number;
24089
+ travel_minutes: number;
23640
24090
  unit_price_cents: number;
23641
24091
  updated_at: string;
23642
24092
  };
@@ -23648,12 +24098,14 @@ export type Database = {
23648
24098
  created_at?: string;
23649
24099
  default_quantity?: number;
23650
24100
  description?: string | null;
23651
- duration_minutes?: number | null;
24101
+ duration_minutes?: number;
23652
24102
  id?: string;
24103
+ labor_minutes?: number;
23653
24104
  mandaat_type?: string | null;
23654
24105
  name: string;
23655
24106
  price_mode?: string;
23656
24107
  sort_order?: number;
24108
+ travel_minutes?: number;
23657
24109
  unit_price_cents?: number;
23658
24110
  updated_at?: string;
23659
24111
  };
@@ -23665,12 +24117,14 @@ export type Database = {
23665
24117
  created_at?: string;
23666
24118
  default_quantity?: number;
23667
24119
  description?: string | null;
23668
- duration_minutes?: number | null;
24120
+ duration_minutes?: number;
23669
24121
  id?: string;
24122
+ labor_minutes?: number;
23670
24123
  mandaat_type?: string | null;
23671
24124
  name?: string;
23672
24125
  price_mode?: string;
23673
24126
  sort_order?: number;
24127
+ travel_minutes?: number;
23674
24128
  unit_price_cents?: number;
23675
24129
  updated_at?: string;
23676
24130
  };
@@ -25278,6 +25732,12 @@ export type Database = {
25278
25732
  };
25279
25733
  Returns: undefined;
25280
25734
  };
25735
+ _quote_release_work_order_intern: {
25736
+ Args: {
25737
+ _offerte_id: string;
25738
+ };
25739
+ Returns: Json;
25740
+ };
25281
25741
  _wo_is_planner: {
25282
25742
  Args: never;
25283
25743
  Returns: boolean;
@@ -26714,6 +27174,13 @@ export type Database = {
26714
27174
  };
26715
27175
  Returns: Json;
26716
27176
  };
27177
+ inkoop_cancel_line: {
27178
+ Args: {
27179
+ _item_id: string;
27180
+ _reason: string;
27181
+ };
27182
+ Returns: string;
27183
+ };
26717
27184
  inkoop_get_supplier_request: {
26718
27185
  Args: {
26719
27186
  _token: string;
@@ -26766,6 +27233,7 @@ export type Database = {
26766
27233
  Args: {
26767
27234
  _base_url?: string;
26768
27235
  _order_id: string;
27236
+ _resend?: boolean;
26769
27237
  };
26770
27238
  Returns: {
26771
27239
  outbox_id: string;
@@ -26780,6 +27248,12 @@ export type Database = {
26780
27248
  };
26781
27249
  Returns: undefined;
26782
27250
  };
27251
+ inkoop_stock_key: {
27252
+ Args: {
27253
+ p_product_id: string;
27254
+ };
27255
+ Returns: string;
27256
+ };
26783
27257
  inkoop_submit_supplier_response: {
26784
27258
  Args: {
26785
27259
  _lines: Json;
@@ -26788,6 +27262,12 @@ export type Database = {
26788
27262
  };
26789
27263
  Returns: Json;
26790
27264
  };
27265
+ inkoop_sync_item_stock: {
27266
+ Args: {
27267
+ p_item_id: string;
27268
+ };
27269
+ Returns: undefined;
27270
+ };
26791
27271
  instructie_get: {
26792
27272
  Args: {
26793
27273
  _sleutel: string;
@@ -26948,6 +27428,27 @@ export type Database = {
26948
27428
  };
26949
27429
  Returns: boolean;
26950
27430
  };
27431
+ layout_print_document: {
27432
+ Args: {
27433
+ _documentnaam: string;
27434
+ _documenttype: string;
27435
+ _herkomst?: string;
27436
+ _idempotentie_sleutel?: string;
27437
+ _is_herprint?: boolean;
27438
+ _kopieen?: number;
27439
+ _layout_id?: string;
27440
+ _payload?: Json;
27441
+ _pdf_base64?: string;
27442
+ _pdf_url?: string;
27443
+ _print_plek_id?: string;
27444
+ _werkplek?: string;
27445
+ };
27446
+ Returns: {
27447
+ bestaand: boolean;
27448
+ job_id: string;
27449
+ printer_id: string;
27450
+ }[];
27451
+ };
26951
27452
  list_medewerkers: {
26952
27453
  Args: never;
26953
27454
  Returns: {
@@ -27225,6 +27726,12 @@ export type Database = {
27225
27726
  };
27226
27727
  Returns: number;
27227
27728
  };
27729
+ logistics_cart_barcode_opschonen: {
27730
+ Args: {
27731
+ p_portie?: number;
27732
+ };
27733
+ Returns: Json;
27734
+ };
27228
27735
  logistics_cart_barcode_value: {
27229
27736
  Args: {
27230
27737
  _cart_id: string;
@@ -27644,6 +28151,13 @@ export type Database = {
27644
28151
  };
27645
28152
  Returns: Json;
27646
28153
  };
28154
+ logistics_control_scan_print_own: {
28155
+ Args: {
28156
+ p_is_herprint?: boolean;
28157
+ p_scan_id: string;
28158
+ };
28159
+ Returns: Json;
28160
+ };
27647
28161
  logistics_control_scan_retry: {
27648
28162
  Args: {
27649
28163
  _id: string;
@@ -28548,6 +29062,21 @@ export type Database = {
28548
29062
  };
28549
29063
  Returns: Json;
28550
29064
  };
29065
+ logistics_print_via_layout: {
29066
+ Args: {
29067
+ _documentnaam: string;
29068
+ _documenttype: string;
29069
+ _herkomst: string;
29070
+ _idempotentie_sleutel: string;
29071
+ _is_herprint: boolean;
29072
+ _layout_id: string;
29073
+ _payload: Json;
29074
+ _pdf_base64: string;
29075
+ _pdf_url: string;
29076
+ _print_plek_id: string;
29077
+ };
29078
+ Returns: Json;
29079
+ };
28551
29080
  logistics_prune_buffer_member_queue: {
28552
29081
  Args: never;
28553
29082
  Returns: number;
@@ -28834,6 +29363,13 @@ export type Database = {
28834
29363
  };
28835
29364
  Returns: string;
28836
29365
  };
29366
+ logistics_shipping_note_status: {
29367
+ Args: {
29368
+ p_cart_id?: string;
29369
+ p_slip_job_id?: string;
29370
+ };
29371
+ Returns: Json;
29372
+ };
28837
29373
  logistics_shipping_notes_wake_all: {
28838
29374
  Args: never;
28839
29375
  Returns: Json;
@@ -28896,6 +29432,12 @@ export type Database = {
28896
29432
  };
28897
29433
  Returns: undefined;
28898
29434
  };
29435
+ logistics_slip_note_retry: {
29436
+ Args: {
29437
+ _id: string;
29438
+ };
29439
+ Returns: Json;
29440
+ };
28899
29441
  logistics_sticker_follows_slip: {
28900
29442
  Args: never;
28901
29443
  Returns: boolean;
@@ -29640,6 +30182,10 @@ export type Database = {
29640
30182
  };
29641
30183
  Returns: string;
29642
30184
  };
30185
+ pick_is_reference_admin: {
30186
+ Args: never;
30187
+ Returns: boolean;
30188
+ };
29643
30189
  pick_mark_printed: {
29644
30190
  Args: {
29645
30191
  _queue_item_id: string;
@@ -30063,6 +30609,12 @@ export type Database = {
30063
30609
  };
30064
30610
  Returns: Json;
30065
30611
  };
30612
+ pick_verify_rows: {
30613
+ Args: {
30614
+ _rows: Json;
30615
+ };
30616
+ Returns: Json;
30617
+ };
30066
30618
  pickstation_get_orders_raw: {
30067
30619
  Args: never;
30068
30620
  Returns: Json;
@@ -30125,6 +30677,12 @@ export type Database = {
30125
30677
  };
30126
30678
  Returns: undefined;
30127
30679
  };
30680
+ planning_html_escape: {
30681
+ Args: {
30682
+ t: string;
30683
+ };
30684
+ Returns: string;
30685
+ };
30128
30686
  planning_list: {
30129
30687
  Args: {
30130
30688
  _from: string;
@@ -30179,6 +30737,12 @@ export type Database = {
30179
30737
  id: string;
30180
30738
  }[];
30181
30739
  };
30740
+ planning_urlencode: {
30741
+ Args: {
30742
+ t: string;
30743
+ };
30744
+ Returns: string;
30745
+ };
30182
30746
  print_preview_toestaan: {
30183
30747
  Args: {
30184
30748
  _max?: number;
@@ -30197,6 +30761,35 @@ export type Database = {
30197
30761
  };
30198
30762
  Returns: undefined;
30199
30763
  };
30764
+ printer_gebruik: {
30765
+ Args: {
30766
+ _printer: string;
30767
+ };
30768
+ Returns: Json;
30769
+ };
30770
+ printer_routering: {
30771
+ Args: {
30772
+ _documenttype: string;
30773
+ _layout_id?: string;
30774
+ _papierformaat?: string;
30775
+ _print_plek_id?: string;
30776
+ _werkplek?: string;
30777
+ };
30778
+ Returns: Json;
30779
+ };
30780
+ printplek_printer: {
30781
+ Args: {
30782
+ _documenttype: string;
30783
+ _plek: string;
30784
+ };
30785
+ Returns: string;
30786
+ };
30787
+ printplek_verwijder_impact: {
30788
+ Args: {
30789
+ _id: string;
30790
+ };
30791
+ Returns: Json;
30792
+ };
30200
30793
  process_logistics_event: {
30201
30794
  Args: {
30202
30795
  p_event_id: string;
@@ -30243,6 +30836,12 @@ export type Database = {
30243
30836
  };
30244
30837
  Returns: Json;
30245
30838
  };
30839
+ quote_create_from_scratch: {
30840
+ Args: {
30841
+ _payload: Json;
30842
+ };
30843
+ Returns: Json;
30844
+ };
30246
30845
  quote_create_from_source: {
30247
30846
  Args: {
30248
30847
  _payload?: Json;
@@ -30258,6 +30857,13 @@ export type Database = {
30258
30857
  };
30259
30858
  Returns: boolean;
30260
30859
  };
30860
+ quote_fill_from_form: {
30861
+ Args: {
30862
+ _offerte_id: string;
30863
+ _payload: Json;
30864
+ };
30865
+ Returns: Json;
30866
+ };
30261
30867
  quote_get_billable_lines: {
30262
30868
  Args: {
30263
30869
  _quotation_id: string;
@@ -30287,12 +30893,50 @@ export type Database = {
30287
30893
  };
30288
30894
  Returns: Json;
30289
30895
  };
30896
+ quote_public_accept: {
30897
+ Args: {
30898
+ _akkoord: boolean;
30899
+ _email: string;
30900
+ _ip_address?: string;
30901
+ _naam: string;
30902
+ _token: string;
30903
+ _user_agent?: string;
30904
+ };
30905
+ Returns: Json;
30906
+ };
30907
+ quote_public_get: {
30908
+ Args: {
30909
+ _token: string;
30910
+ };
30911
+ Returns: Json;
30912
+ };
30913
+ quote_public_sign: {
30914
+ Args: {
30915
+ _handtekening: string;
30916
+ _naam: string;
30917
+ _token: string;
30918
+ };
30919
+ Returns: Json;
30920
+ };
30290
30921
  quote_queue_follow_up: {
30291
30922
  Args: {
30292
30923
  _offerte_id: string;
30293
30924
  };
30294
30925
  Returns: string;
30295
30926
  };
30927
+ quote_release_work_order: {
30928
+ Args: {
30929
+ _offerte_id: string;
30930
+ };
30931
+ Returns: Json;
30932
+ };
30933
+ quote_sync_work_order: {
30934
+ Args: {
30935
+ _monteur_instructies?: string;
30936
+ _offerte_id: string;
30937
+ };
30938
+ Returns: boolean;
30939
+ };
30296
30940
  recompute_all_reserved_stock: {
30297
30941
  Args: never;
30298
30942
  Returns: undefined;
@@ -30513,6 +31157,13 @@ export type Database = {
30513
31157
  };
30514
31158
  Returns: Json;
30515
31159
  };
31160
+ scan_controleer_pincode: {
31161
+ Args: {
31162
+ p_pin: string;
31163
+ p_scanner_id: string;
31164
+ };
31165
+ Returns: boolean;
31166
+ };
30516
31167
  scan_dashboard_stats: {
30517
31168
  Args: {
30518
31169
  p_dagen?: number;
@@ -30532,6 +31183,12 @@ export type Database = {
30532
31183
  };
30533
31184
  Returns: Json;
30534
31185
  };
31186
+ scan_heeft_pincode: {
31187
+ Args: {
31188
+ p_scanner_id: string;
31189
+ };
31190
+ Returns: boolean;
31191
+ };
30535
31192
  scan_kar_compleet: {
30536
31193
  Args: {
30537
31194
  p_allow_reprint?: boolean;
@@ -30549,6 +31206,7 @@ export type Database = {
30549
31206
  Args: {
30550
31207
  p_code: string;
30551
31208
  p_latency_ms?: number;
31209
+ p_medewerker?: string;
30552
31210
  p_message?: string;
30553
31211
  p_result: string;
30554
31212
  p_scanner_key?: string;
@@ -30621,6 +31279,22 @@ export type Database = {
30621
31279
  };
30622
31280
  Returns: undefined;
30623
31281
  };
31282
+ scan_scanner_info: {
31283
+ Args: {
31284
+ p_slug: string;
31285
+ };
31286
+ Returns: {
31287
+ actief: boolean;
31288
+ heeft_pincode: boolean;
31289
+ id: string;
31290
+ naam: string;
31291
+ omschrijving: string;
31292
+ printer_id: string;
31293
+ type: string;
31294
+ vereist_medewerker: boolean;
31295
+ werkplek: string;
31296
+ }[];
31297
+ };
30624
31298
  scan_sessie_annuleren: {
30625
31299
  Args: {
30626
31300
  p_sessie_id: string;
@@ -31214,6 +31888,10 @@ export type Database = {
31214
31888
  };
31215
31889
  Returns: number;
31216
31890
  };
31891
+ uren_heeft_pagina_toegang: {
31892
+ Args: never;
31893
+ Returns: boolean;
31894
+ };
31217
31895
  uren_is_beheerder: {
31218
31896
  Args: never;
31219
31897
  Returns: boolean;
@@ -31297,6 +31975,13 @@ export type Database = {
31297
31975
  Args: never;
31298
31976
  Returns: string;
31299
31977
  };
31978
+ uren_pagina_toegang_instellen: {
31979
+ Args: {
31980
+ _toegang: boolean;
31981
+ _user_id: string;
31982
+ };
31983
+ Returns: undefined;
31984
+ };
31300
31985
  uren_planning_dagagenda: {
31301
31986
  Args: {
31302
31987
  _tot: string;
@@ -31541,6 +32226,19 @@ export type Database = {
31541
32226
  user_id: string;
31542
32227
  }[];
31543
32228
  };
32229
+ vervang_printer: {
32230
+ Args: {
32231
+ _nieuw: string;
32232
+ _oud: string;
32233
+ };
32234
+ Returns: Json;
32235
+ };
32236
+ verwijder_printplek: {
32237
+ Args: {
32238
+ _id: string;
32239
+ };
32240
+ Returns: Json;
32241
+ };
31544
32242
  voorraad_cleanup_old_rows: {
31545
32243
  Args: never;
31546
32244
  Returns: Json;
@@ -31551,6 +32249,16 @@ export type Database = {
31551
32249
  };
31552
32250
  Returns: number;
31553
32251
  };
32252
+ werkbon_pakket_tijden: {
32253
+ Args: {
32254
+ _werkbon_id: string;
32255
+ };
32256
+ Returns: {
32257
+ labor_minutes: number;
32258
+ total_minutes: number;
32259
+ travel_minutes: number;
32260
+ }[];
32261
+ };
31554
32262
  werkbon_totalen: {
31555
32263
  Args: {
31556
32264
  _werkbon_id: string;
@@ -31583,6 +32291,21 @@ export type Database = {
31583
32291
  };
31584
32292
  Returns: Json;
31585
32293
  };
32294
+ wo_list_colleague_planning: {
32295
+ Args: {
32296
+ _from: string;
32297
+ _monteur_id: string;
32298
+ _to: string;
32299
+ };
32300
+ Returns: {
32301
+ end_at: string;
32302
+ id: string;
32303
+ role: string;
32304
+ start_at: string;
32305
+ status: string;
32306
+ werkbon_id: string;
32307
+ }[];
32308
+ };
31586
32309
  wo_list_offerte_requests: {
31587
32310
  Args: {
31588
32311
  _status?: string;