@flowselections/logistiek-engine 1.0.99 → 1.0.104

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 (61) hide show
  1. package/dist-lib/components/BeladingIndelingCard.d.ts.map +1 -1
  2. package/dist-lib/components/BeladingIndelingCard.js +5 -1
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts +600 -6
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +600 -6
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/moduleClient.d.ts +600 -6
  8. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/types.d.ts +616 -6
  10. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  11. package/dist-lib/lib/cartCoverage.functions.d.ts +600 -6
  12. package/dist-lib/lib/cartCoverage.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/controlScan.server.d.ts +8 -0
  14. package/dist-lib/lib/controlScan.server.d.ts.map +1 -1
  15. package/dist-lib/lib/controlScan.server.js +86 -5
  16. package/dist-lib/lib/floridayCancellation.server.d.ts +15 -0
  17. package/dist-lib/lib/floridayCancellation.server.d.ts.map +1 -0
  18. package/dist-lib/lib/floridayCancellation.server.js +89 -0
  19. package/dist-lib/lib/floridayCancellation.test.d.ts +2 -0
  20. package/dist-lib/lib/floridayCancellation.test.d.ts.map +1 -0
  21. package/dist-lib/lib/floridayCancellation.test.js +42 -0
  22. package/dist-lib/lib/floridayCartCarriers.d.ts +61 -0
  23. package/dist-lib/lib/floridayCartCarriers.d.ts.map +1 -0
  24. package/dist-lib/lib/floridayCartCarriers.js +113 -0
  25. package/dist-lib/lib/floridayCartCarriers.test.d.ts +2 -0
  26. package/dist-lib/lib/floridayCartCarriers.test.d.ts.map +1 -0
  27. package/dist-lib/lib/floridayCartCarriers.test.js +66 -0
  28. package/dist-lib/lib/floridayDocuments.functions.d.ts +1800 -18
  29. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floridayDocuments.server.d.ts +7 -0
  31. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  32. package/dist-lib/lib/floridayDocuments.server.js +16 -1
  33. package/dist-lib/lib/floridayPush.functions.d.ts +600 -6
  34. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floridayPush.server.d.ts +2 -0
  36. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  37. package/dist-lib/lib/floridayPush.server.js +54 -3
  38. package/dist-lib/lib/layerUtilization.d.ts +2 -0
  39. package/dist-lib/lib/layerUtilization.d.ts.map +1 -0
  40. package/dist-lib/lib/layerUtilization.js +11 -0
  41. package/dist-lib/lib/layerUtilization.test.d.ts +2 -0
  42. package/dist-lib/lib/layerUtilization.test.d.ts.map +1 -0
  43. package/dist-lib/lib/layerUtilization.test.js +11 -0
  44. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +3000 -30
  45. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  47. package/dist-lib/lib/loadCarrierPlanning.server.js +16 -4
  48. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +1200 -12
  49. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +600 -6
  51. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  53. package/dist-lib/lib/modulePrompts.js +46 -0
  54. package/dist-lib/lib/moduleVersion.d.ts +1 -1
  55. package/dist-lib/lib/moduleVersion.d.ts.map +1 -1
  56. package/dist-lib/lib/moduleVersion.js +1 -1
  57. package/dist-lib/lib/plannerDiff.functions.d.ts +600 -6
  58. package/dist-lib/lib/plannerDiff.functions.d.ts.map +1 -1
  59. package/dist-lib/lib/shippingNoteQueue.server.d.ts.map +1 -1
  60. package/dist-lib/lib/shippingNoteQueue.server.js +40 -1
  61. package/package.json +4 -4
@@ -3205,6 +3205,7 @@ export type Database = {
3205
3205
  formaat_code: string;
3206
3206
  id: string;
3207
3207
  printer_id: string | null;
3208
+ printer_ontbreekt_sinds: string | null;
3208
3209
  updated_at: string;
3209
3210
  };
3210
3211
  Insert: {
@@ -3213,6 +3214,7 @@ export type Database = {
3213
3214
  formaat_code: string;
3214
3215
  id?: string;
3215
3216
  printer_id?: string | null;
3217
+ printer_ontbreekt_sinds?: string | null;
3216
3218
  updated_at?: string;
3217
3219
  };
3218
3220
  Update: {
@@ -3221,6 +3223,7 @@ export type Database = {
3221
3223
  formaat_code?: string;
3222
3224
  id?: string;
3223
3225
  printer_id?: string | null;
3226
+ printer_ontbreekt_sinds?: string | null;
3224
3227
  updated_at?: string;
3225
3228
  };
3226
3229
  Relationships: [
@@ -3570,6 +3573,7 @@ export type Database = {
3570
3573
  papierformaat: string | null;
3571
3574
  print_plek_id: string;
3572
3575
  printer_id: string | null;
3576
+ printer_ontbreekt_sinds: string | null;
3573
3577
  updated_at: string;
3574
3578
  };
3575
3579
  Insert: {
@@ -3579,6 +3583,7 @@ export type Database = {
3579
3583
  papierformaat?: string | null;
3580
3584
  print_plek_id: string;
3581
3585
  printer_id?: string | null;
3586
+ printer_ontbreekt_sinds?: string | null;
3582
3587
  updated_at?: string;
3583
3588
  };
3584
3589
  Update: {
@@ -3588,6 +3593,7 @@ export type Database = {
3588
3593
  papierformaat?: string | null;
3589
3594
  print_plek_id?: string;
3590
3595
  printer_id?: string | null;
3596
+ printer_ontbreekt_sinds?: string | null;
3591
3597
  updated_at?: string;
3592
3598
  };
3593
3599
  Relationships: [
@@ -3614,6 +3620,7 @@ export type Database = {
3614
3620
  id: string;
3615
3621
  papierformaat: string | null;
3616
3622
  printer_id: string | null;
3623
+ printer_ontbreekt_sinds: string | null;
3617
3624
  updated_at: string;
3618
3625
  werkplek: string;
3619
3626
  };
@@ -3623,6 +3630,7 @@ export type Database = {
3623
3630
  id?: string;
3624
3631
  papierformaat?: string | null;
3625
3632
  printer_id?: string | null;
3633
+ printer_ontbreekt_sinds?: string | null;
3626
3634
  updated_at?: string;
3627
3635
  werkplek: string;
3628
3636
  };
@@ -3632,6 +3640,7 @@ export type Database = {
3632
3640
  id?: string;
3633
3641
  papierformaat?: string | null;
3634
3642
  printer_id?: string | null;
3643
+ printer_ontbreekt_sinds?: string | null;
3635
3644
  updated_at?: string;
3636
3645
  werkplek?: string;
3637
3646
  };
@@ -7023,6 +7032,80 @@ export type Database = {
7023
7032
  }
7024
7033
  ];
7025
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
+ };
7026
7109
  floriday_fulfillment_orders_cache: {
7027
7110
  Row: {
7028
7111
  auction_date: string | null;
@@ -7326,6 +7409,39 @@ export type Database = {
7326
7409
  }
7327
7410
  ];
7328
7411
  };
7412
+ floriday_merge_log: {
7413
+ Row: {
7414
+ action: string;
7415
+ created_at: string;
7416
+ floriday_sales_order_ids: Json;
7417
+ id: string;
7418
+ kept_order_id: string | null;
7419
+ lines: Json;
7420
+ reason: string | null;
7421
+ removed_order_id: string | null;
7422
+ };
7423
+ Insert: {
7424
+ action: string;
7425
+ created_at?: string;
7426
+ floriday_sales_order_ids?: Json;
7427
+ id?: string;
7428
+ kept_order_id?: string | null;
7429
+ lines?: Json;
7430
+ reason?: string | null;
7431
+ removed_order_id?: string | null;
7432
+ };
7433
+ Update: {
7434
+ action?: string;
7435
+ created_at?: string;
7436
+ floriday_sales_order_ids?: Json;
7437
+ id?: string;
7438
+ kept_order_id?: string | null;
7439
+ lines?: Json;
7440
+ reason?: string | null;
7441
+ removed_order_id?: string | null;
7442
+ };
7443
+ Relationships: [];
7444
+ };
7329
7445
  floriday_network_cache: {
7330
7446
  Row: {
7331
7447
  city: string | null;
@@ -9615,6 +9731,59 @@ export type Database = {
9615
9731
  };
9616
9732
  Relationships: [];
9617
9733
  };
9734
+ itk_offerte_acceptaties: {
9735
+ Row: {
9736
+ accepted_at: string;
9737
+ akkoordgever_email: string;
9738
+ akkoordgever_naam: string;
9739
+ akkoordverklaring: string;
9740
+ id: string;
9741
+ inhoud_hash: string;
9742
+ ip_address: unknown;
9743
+ offerte_id: string;
9744
+ offerte_number: string;
9745
+ offerte_snapshot: Json;
9746
+ user_agent: string | null;
9747
+ versie: string;
9748
+ };
9749
+ Insert: {
9750
+ accepted_at?: string;
9751
+ akkoordgever_email: string;
9752
+ akkoordgever_naam: string;
9753
+ akkoordverklaring: string;
9754
+ id?: string;
9755
+ inhoud_hash: string;
9756
+ ip_address?: unknown;
9757
+ offerte_id: string;
9758
+ offerte_number: string;
9759
+ offerte_snapshot: Json;
9760
+ user_agent?: string | null;
9761
+ versie: string;
9762
+ };
9763
+ Update: {
9764
+ accepted_at?: string;
9765
+ akkoordgever_email?: string;
9766
+ akkoordgever_naam?: string;
9767
+ akkoordverklaring?: string;
9768
+ id?: string;
9769
+ inhoud_hash?: string;
9770
+ ip_address?: unknown;
9771
+ offerte_id?: string;
9772
+ offerte_number?: string;
9773
+ offerte_snapshot?: Json;
9774
+ user_agent?: string | null;
9775
+ versie?: string;
9776
+ };
9777
+ Relationships: [
9778
+ {
9779
+ foreignKeyName: "itk_offerte_acceptaties_offerte_id_fkey";
9780
+ columns: ["offerte_id"];
9781
+ isOneToOne: true;
9782
+ referencedRelation: "itk_offertes";
9783
+ referencedColumns: ["id"];
9784
+ }
9785
+ ];
9786
+ };
9618
9787
  itk_offerte_events: {
9619
9788
  Row: {
9620
9789
  created_at: string;
@@ -9837,6 +10006,7 @@ export type Database = {
9837
10006
  itk_offertes: {
9838
10007
  Row: {
9839
10008
  aandachtspunten: string | null;
10009
+ acceptance_id: string | null;
9840
10010
  ai_generated: boolean;
9841
10011
  approved_at: string | null;
9842
10012
  binnen_mandaat: boolean;
@@ -9855,6 +10025,11 @@ export type Database = {
9855
10025
  onderwerp: string | null;
9856
10026
  rejected_at: string | null;
9857
10027
  sent_at: string | null;
10028
+ sign_token: string;
10029
+ signature_data: string | null;
10030
+ signed_at: string | null;
10031
+ signer_email: string | null;
10032
+ signer_name: string | null;
9858
10033
  source_number: string | null;
9859
10034
  source_ref: string | null;
9860
10035
  source_type: string;
@@ -9869,11 +10044,13 @@ export type Database = {
9869
10044
  viewed_at: string | null;
9870
10045
  volgnummer: number | null;
9871
10046
  voorwaarden: string | null;
10047
+ werkbon_concept: Json | null;
9872
10048
  werkbon_id: string | null;
9873
10049
  work_location_id: string | null;
9874
10050
  };
9875
10051
  Insert: {
9876
10052
  aandachtspunten?: string | null;
10053
+ acceptance_id?: string | null;
9877
10054
  ai_generated?: boolean;
9878
10055
  approved_at?: string | null;
9879
10056
  binnen_mandaat?: boolean;
@@ -9892,6 +10069,11 @@ export type Database = {
9892
10069
  onderwerp?: string | null;
9893
10070
  rejected_at?: string | null;
9894
10071
  sent_at?: string | null;
10072
+ sign_token?: string;
10073
+ signature_data?: string | null;
10074
+ signed_at?: string | null;
10075
+ signer_email?: string | null;
10076
+ signer_name?: string | null;
9895
10077
  source_number?: string | null;
9896
10078
  source_ref?: string | null;
9897
10079
  source_type?: string;
@@ -9906,11 +10088,13 @@ export type Database = {
9906
10088
  viewed_at?: string | null;
9907
10089
  volgnummer?: number | null;
9908
10090
  voorwaarden?: string | null;
10091
+ werkbon_concept?: Json | null;
9909
10092
  werkbon_id?: string | null;
9910
10093
  work_location_id?: string | null;
9911
10094
  };
9912
10095
  Update: {
9913
10096
  aandachtspunten?: string | null;
10097
+ acceptance_id?: string | null;
9914
10098
  ai_generated?: boolean;
9915
10099
  approved_at?: string | null;
9916
10100
  binnen_mandaat?: boolean;
@@ -9929,6 +10113,11 @@ export type Database = {
9929
10113
  onderwerp?: string | null;
9930
10114
  rejected_at?: string | null;
9931
10115
  sent_at?: string | null;
10116
+ sign_token?: string;
10117
+ signature_data?: string | null;
10118
+ signed_at?: string | null;
10119
+ signer_email?: string | null;
10120
+ signer_name?: string | null;
9932
10121
  source_number?: string | null;
9933
10122
  source_ref?: string | null;
9934
10123
  source_type?: string;
@@ -9943,10 +10132,18 @@ export type Database = {
9943
10132
  viewed_at?: string | null;
9944
10133
  volgnummer?: number | null;
9945
10134
  voorwaarden?: string | null;
10135
+ werkbon_concept?: Json | null;
9946
10136
  werkbon_id?: string | null;
9947
10137
  work_location_id?: string | null;
9948
10138
  };
9949
10139
  Relationships: [
10140
+ {
10141
+ foreignKeyName: "itk_offertes_acceptance_id_fkey";
10142
+ columns: ["acceptance_id"];
10143
+ isOneToOne: false;
10144
+ referencedRelation: "itk_offerte_acceptaties";
10145
+ referencedColumns: ["id"];
10146
+ },
9950
10147
  {
9951
10148
  foreignKeyName: "itk_offertes_contact_id_fkey";
9952
10149
  columns: ["contact_id"];
@@ -11423,6 +11620,60 @@ export type Database = {
11423
11620
  };
11424
11621
  Relationships: [];
11425
11622
  };
11623
+ logistics_order_merge_lines: {
11624
+ Row: {
11625
+ from_order_id: string;
11626
+ from_order_number: string | null;
11627
+ group_key: string;
11628
+ id: string;
11629
+ merged_at: string;
11630
+ order_item_id: string;
11631
+ ordered_at: string | null;
11632
+ product_id: string | null;
11633
+ product_name: string | null;
11634
+ quantity: number | null;
11635
+ reason: string;
11636
+ sales_order_id: string | null;
11637
+ source_line_key: string | null;
11638
+ to_order_id: string;
11639
+ to_order_number: string | null;
11640
+ };
11641
+ Insert: {
11642
+ from_order_id: string;
11643
+ from_order_number?: string | null;
11644
+ group_key: string;
11645
+ id?: string;
11646
+ merged_at?: string;
11647
+ order_item_id: string;
11648
+ ordered_at?: string | null;
11649
+ product_id?: string | null;
11650
+ product_name?: string | null;
11651
+ quantity?: number | null;
11652
+ reason: string;
11653
+ sales_order_id?: string | null;
11654
+ source_line_key?: string | null;
11655
+ to_order_id: string;
11656
+ to_order_number?: string | null;
11657
+ };
11658
+ Update: {
11659
+ from_order_id?: string;
11660
+ from_order_number?: string | null;
11661
+ group_key?: string;
11662
+ id?: string;
11663
+ merged_at?: string;
11664
+ order_item_id?: string;
11665
+ ordered_at?: string | null;
11666
+ product_id?: string | null;
11667
+ product_name?: string | null;
11668
+ quantity?: number | null;
11669
+ reason?: string;
11670
+ sales_order_id?: string | null;
11671
+ source_line_key?: string | null;
11672
+ to_order_id?: string;
11673
+ to_order_number?: string | null;
11674
+ };
11675
+ Relationships: [];
11676
+ };
11426
11677
  logistics_order_merges: {
11427
11678
  Row: {
11428
11679
  group_key: string;
@@ -15141,6 +15392,9 @@ export type Database = {
15141
15392
  product_id: string | null;
15142
15393
  product_name: string;
15143
15394
  quantity: number;
15395
+ quarantine_reason: string | null;
15396
+ quarantined_at: string | null;
15397
+ quarantined_into_order_id: string | null;
15144
15398
  source_line_key: string | null;
15145
15399
  unit: string;
15146
15400
  unit_price: number | null;
@@ -15157,6 +15411,9 @@ export type Database = {
15157
15411
  product_id?: string | null;
15158
15412
  product_name: string;
15159
15413
  quantity?: number;
15414
+ quarantine_reason?: string | null;
15415
+ quarantined_at?: string | null;
15416
+ quarantined_into_order_id?: string | null;
15160
15417
  source_line_key?: string | null;
15161
15418
  unit?: string;
15162
15419
  unit_price?: number | null;
@@ -15173,6 +15430,9 @@ export type Database = {
15173
15430
  product_id?: string | null;
15174
15431
  product_name?: string;
15175
15432
  quantity?: number;
15433
+ quarantine_reason?: string | null;
15434
+ quarantined_at?: string | null;
15435
+ quarantined_into_order_id?: string | null;
15176
15436
  source_line_key?: string | null;
15177
15437
  unit?: string;
15178
15438
  unit_price?: number | null;
@@ -16652,6 +16912,60 @@ export type Database = {
16652
16912
  };
16653
16913
  Relationships: [];
16654
16914
  };
16915
+ planning_confirmation_log: {
16916
+ Row: {
16917
+ created_at: string;
16918
+ end_at: string;
16919
+ id: string;
16920
+ kind: string;
16921
+ outbox_id: string | null;
16922
+ planning_item_id: string;
16923
+ reason: string | null;
16924
+ recipient: string | null;
16925
+ start_at: string;
16926
+ status: string;
16927
+ };
16928
+ Insert: {
16929
+ created_at?: string;
16930
+ end_at: string;
16931
+ id?: string;
16932
+ kind?: string;
16933
+ outbox_id?: string | null;
16934
+ planning_item_id: string;
16935
+ reason?: string | null;
16936
+ recipient?: string | null;
16937
+ start_at: string;
16938
+ status: string;
16939
+ };
16940
+ Update: {
16941
+ created_at?: string;
16942
+ end_at?: string;
16943
+ id?: string;
16944
+ kind?: string;
16945
+ outbox_id?: string | null;
16946
+ planning_item_id?: string;
16947
+ reason?: string | null;
16948
+ recipient?: string | null;
16949
+ start_at?: string;
16950
+ status?: string;
16951
+ };
16952
+ Relationships: [
16953
+ {
16954
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16955
+ columns: ["planning_item_id"];
16956
+ isOneToOne: false;
16957
+ referencedRelation: "planning_items";
16958
+ referencedColumns: ["id"];
16959
+ },
16960
+ {
16961
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16962
+ columns: ["planning_item_id"];
16963
+ isOneToOne: false;
16964
+ referencedRelation: "planning_overview";
16965
+ referencedColumns: ["id"];
16966
+ }
16967
+ ];
16968
+ };
16655
16969
  planning_item_assistants: {
16656
16970
  Row: {
16657
16971
  created_at: string;
@@ -16742,6 +17056,72 @@ export type Database = {
16742
17056
  }
16743
17057
  ];
16744
17058
  };
17059
+ planning_mail_settings: {
17060
+ Row: {
17061
+ body_template: string;
17062
+ cc: string[];
17063
+ connection_id: string | null;
17064
+ created_at: string;
17065
+ email_purpose: string | null;
17066
+ enabled: boolean;
17067
+ id: boolean;
17068
+ reply_to: string | null;
17069
+ reschedule_body_template: string;
17070
+ reschedule_subject_template: string;
17071
+ subject_template: string;
17072
+ timezone: string;
17073
+ updated_at: string;
17074
+ updated_by: string | null;
17075
+ };
17076
+ Insert: {
17077
+ body_template?: string;
17078
+ cc?: string[];
17079
+ connection_id?: string | null;
17080
+ created_at?: string;
17081
+ email_purpose?: string | null;
17082
+ enabled?: boolean;
17083
+ id?: boolean;
17084
+ reply_to?: string | null;
17085
+ reschedule_body_template?: string;
17086
+ reschedule_subject_template?: string;
17087
+ subject_template?: string;
17088
+ timezone?: string;
17089
+ updated_at?: string;
17090
+ updated_by?: string | null;
17091
+ };
17092
+ Update: {
17093
+ body_template?: string;
17094
+ cc?: string[];
17095
+ connection_id?: string | null;
17096
+ created_at?: string;
17097
+ email_purpose?: string | null;
17098
+ enabled?: boolean;
17099
+ id?: boolean;
17100
+ reply_to?: string | null;
17101
+ reschedule_body_template?: string;
17102
+ reschedule_subject_template?: string;
17103
+ subject_template?: string;
17104
+ timezone?: string;
17105
+ updated_at?: string;
17106
+ updated_by?: string | null;
17107
+ };
17108
+ Relationships: [
17109
+ {
17110
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
17111
+ columns: ["connection_id"];
17112
+ isOneToOne: false;
17113
+ referencedRelation: "email_auth_connections";
17114
+ referencedColumns: ["id"];
17115
+ },
17116
+ {
17117
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
17118
+ columns: ["connection_id"];
17119
+ isOneToOne: false;
17120
+ referencedRelation: "email_auth_connections_safe";
17121
+ referencedColumns: ["id"];
17122
+ }
17123
+ ];
17124
+ };
16745
17125
  planning_monteur_day_locations: {
16746
17126
  Row: {
16747
17127
  created_at: string;
@@ -17141,6 +17521,27 @@ export type Database = {
17141
17521
  };
17142
17522
  Relationships: [];
17143
17523
  };
17524
+ print_genegeerde_computers: {
17525
+ Row: {
17526
+ computer_naam: string;
17527
+ genegeerd_door: string | null;
17528
+ genegeerd_op: string;
17529
+ id: string;
17530
+ };
17531
+ Insert: {
17532
+ computer_naam: string;
17533
+ genegeerd_door?: string | null;
17534
+ genegeerd_op?: string;
17535
+ id?: string;
17536
+ };
17537
+ Update: {
17538
+ computer_naam?: string;
17539
+ genegeerd_door?: string | null;
17540
+ genegeerd_op?: string;
17541
+ id?: string;
17542
+ };
17543
+ Relationships: [];
17544
+ };
17144
17545
  print_job_logs: {
17145
17546
  Row: {
17146
17547
  created_at: string;
@@ -17422,6 +17823,42 @@ export type Database = {
17422
17823
  }
17423
17824
  ];
17424
17825
  };
17826
+ print_plek_printers: {
17827
+ Row: {
17828
+ id: string;
17829
+ print_plek_id: string;
17830
+ printer_id: string;
17831
+ toegevoegd_op: string;
17832
+ };
17833
+ Insert: {
17834
+ id?: string;
17835
+ print_plek_id: string;
17836
+ printer_id: string;
17837
+ toegevoegd_op?: string;
17838
+ };
17839
+ Update: {
17840
+ id?: string;
17841
+ print_plek_id?: string;
17842
+ printer_id?: string;
17843
+ toegevoegd_op?: string;
17844
+ };
17845
+ Relationships: [
17846
+ {
17847
+ foreignKeyName: "print_plek_printers_print_plek_id_fkey";
17848
+ columns: ["print_plek_id"];
17849
+ isOneToOne: false;
17850
+ referencedRelation: "print_plekken";
17851
+ referencedColumns: ["id"];
17852
+ },
17853
+ {
17854
+ foreignKeyName: "print_plek_printers_printer_id_fkey";
17855
+ columns: ["printer_id"];
17856
+ isOneToOne: false;
17857
+ referencedRelation: "printers";
17858
+ referencedColumns: ["id"];
17859
+ }
17860
+ ];
17861
+ };
17425
17862
  print_plekken: {
17426
17863
  Row: {
17427
17864
  actief: boolean;
@@ -17640,7 +18077,8 @@ export type Database = {
17640
18077
  created_at: string;
17641
18078
  id: string;
17642
18079
  layout_id: string;
17643
- printer_id: string;
18080
+ printer_id: string | null;
18081
+ printer_ontbreekt_sinds: string | null;
17644
18082
  prioriteit: number;
17645
18083
  updated_at: string;
17646
18084
  };
@@ -17648,7 +18086,8 @@ export type Database = {
17648
18086
  created_at?: string;
17649
18087
  id?: string;
17650
18088
  layout_id: string;
17651
- printer_id: string;
18089
+ printer_id?: string | null;
18090
+ printer_ontbreekt_sinds?: string | null;
17652
18091
  prioriteit?: number;
17653
18092
  updated_at?: string;
17654
18093
  };
@@ -17656,7 +18095,8 @@ export type Database = {
17656
18095
  created_at?: string;
17657
18096
  id?: string;
17658
18097
  layout_id?: string;
17659
- printer_id?: string;
18098
+ printer_id?: string | null;
18099
+ printer_ontbreekt_sinds?: string | null;
17660
18100
  prioriteit?: number;
17661
18101
  updated_at?: string;
17662
18102
  };
@@ -22274,6 +22714,32 @@ export type Database = {
22274
22714
  };
22275
22715
  Relationships: [];
22276
22716
  };
22717
+ uren_pagina_toegang: {
22718
+ Row: {
22719
+ created_at: string;
22720
+ id: string;
22721
+ user_id: string;
22722
+ };
22723
+ Insert: {
22724
+ created_at?: string;
22725
+ id?: string;
22726
+ user_id: string;
22727
+ };
22728
+ Update: {
22729
+ created_at?: string;
22730
+ id?: string;
22731
+ user_id?: string;
22732
+ };
22733
+ Relationships: [
22734
+ {
22735
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
22736
+ columns: ["user_id"];
22737
+ isOneToOne: true;
22738
+ referencedRelation: "profiles";
22739
+ referencedColumns: ["id"];
22740
+ }
22741
+ ];
22742
+ };
22277
22743
  uren_settings: {
22278
22744
  Row: {
22279
22745
  break_minutes: number;
@@ -23709,12 +24175,14 @@ export type Database = {
23709
24175
  created_at: string;
23710
24176
  default_quantity: number;
23711
24177
  description: string | null;
23712
- duration_minutes: number | null;
24178
+ duration_minutes: number;
23713
24179
  id: string;
24180
+ labor_minutes: number;
23714
24181
  mandaat_type: string | null;
23715
24182
  name: string;
23716
24183
  price_mode: string;
23717
24184
  sort_order: number;
24185
+ travel_minutes: number;
23718
24186
  unit_price_cents: number;
23719
24187
  updated_at: string;
23720
24188
  };
@@ -23726,12 +24194,14 @@ export type Database = {
23726
24194
  created_at?: string;
23727
24195
  default_quantity?: number;
23728
24196
  description?: string | null;
23729
- duration_minutes?: number | null;
24197
+ duration_minutes?: number;
23730
24198
  id?: string;
24199
+ labor_minutes?: number;
23731
24200
  mandaat_type?: string | null;
23732
24201
  name: string;
23733
24202
  price_mode?: string;
23734
24203
  sort_order?: number;
24204
+ travel_minutes?: number;
23735
24205
  unit_price_cents?: number;
23736
24206
  updated_at?: string;
23737
24207
  };
@@ -23743,12 +24213,14 @@ export type Database = {
23743
24213
  created_at?: string;
23744
24214
  default_quantity?: number;
23745
24215
  description?: string | null;
23746
- duration_minutes?: number | null;
24216
+ duration_minutes?: number;
23747
24217
  id?: string;
24218
+ labor_minutes?: number;
23748
24219
  mandaat_type?: string | null;
23749
24220
  name?: string;
23750
24221
  price_mode?: string;
23751
24222
  sort_order?: number;
24223
+ travel_minutes?: number;
23752
24224
  unit_price_cents?: number;
23753
24225
  updated_at?: string;
23754
24226
  };
@@ -25356,6 +25828,12 @@ export type Database = {
25356
25828
  };
25357
25829
  Returns: undefined;
25358
25830
  };
25831
+ _quote_release_work_order_intern: {
25832
+ Args: {
25833
+ _offerte_id: string;
25834
+ };
25835
+ Returns: Json;
25836
+ };
25359
25837
  _wo_is_planner: {
25360
25838
  Args: never;
25361
25839
  Returns: boolean;
@@ -30227,6 +30705,12 @@ export type Database = {
30227
30705
  };
30228
30706
  Returns: Json;
30229
30707
  };
30708
+ pick_verify_rows: {
30709
+ Args: {
30710
+ _rows: Json;
30711
+ };
30712
+ Returns: Json;
30713
+ };
30230
30714
  pickstation_get_orders_raw: {
30231
30715
  Args: never;
30232
30716
  Returns: Json;
@@ -30289,6 +30773,12 @@ export type Database = {
30289
30773
  };
30290
30774
  Returns: undefined;
30291
30775
  };
30776
+ planning_html_escape: {
30777
+ Args: {
30778
+ t: string;
30779
+ };
30780
+ Returns: string;
30781
+ };
30292
30782
  planning_list: {
30293
30783
  Args: {
30294
30784
  _from: string;
@@ -30343,6 +30833,12 @@ export type Database = {
30343
30833
  id: string;
30344
30834
  }[];
30345
30835
  };
30836
+ planning_urlencode: {
30837
+ Args: {
30838
+ t: string;
30839
+ };
30840
+ Returns: string;
30841
+ };
30346
30842
  print_preview_toestaan: {
30347
30843
  Args: {
30348
30844
  _max?: number;
@@ -30361,6 +30857,35 @@ export type Database = {
30361
30857
  };
30362
30858
  Returns: undefined;
30363
30859
  };
30860
+ printer_gebruik: {
30861
+ Args: {
30862
+ _printer: string;
30863
+ };
30864
+ Returns: Json;
30865
+ };
30866
+ printer_routering: {
30867
+ Args: {
30868
+ _documenttype: string;
30869
+ _layout_id?: string;
30870
+ _papierformaat?: string;
30871
+ _print_plek_id?: string;
30872
+ _werkplek?: string;
30873
+ };
30874
+ Returns: Json;
30875
+ };
30876
+ printplek_printer: {
30877
+ Args: {
30878
+ _documenttype: string;
30879
+ _plek: string;
30880
+ };
30881
+ Returns: string;
30882
+ };
30883
+ printplek_verwijder_impact: {
30884
+ Args: {
30885
+ _id: string;
30886
+ };
30887
+ Returns: Json;
30888
+ };
30364
30889
  process_logistics_event: {
30365
30890
  Args: {
30366
30891
  p_event_id: string;
@@ -30407,6 +30932,12 @@ export type Database = {
30407
30932
  };
30408
30933
  Returns: Json;
30409
30934
  };
30935
+ quote_create_from_scratch: {
30936
+ Args: {
30937
+ _payload: Json;
30938
+ };
30939
+ Returns: Json;
30940
+ };
30410
30941
  quote_create_from_source: {
30411
30942
  Args: {
30412
30943
  _payload?: Json;
@@ -30422,6 +30953,13 @@ export type Database = {
30422
30953
  };
30423
30954
  Returns: boolean;
30424
30955
  };
30956
+ quote_fill_from_form: {
30957
+ Args: {
30958
+ _offerte_id: string;
30959
+ _payload: Json;
30960
+ };
30961
+ Returns: Json;
30962
+ };
30425
30963
  quote_get_billable_lines: {
30426
30964
  Args: {
30427
30965
  _quotation_id: string;
@@ -30451,12 +30989,50 @@ export type Database = {
30451
30989
  };
30452
30990
  Returns: Json;
30453
30991
  };
30992
+ quote_public_accept: {
30993
+ Args: {
30994
+ _akkoord: boolean;
30995
+ _email: string;
30996
+ _ip_address?: string;
30997
+ _naam: string;
30998
+ _token: string;
30999
+ _user_agent?: string;
31000
+ };
31001
+ Returns: Json;
31002
+ };
31003
+ quote_public_get: {
31004
+ Args: {
31005
+ _token: string;
31006
+ };
31007
+ Returns: Json;
31008
+ };
31009
+ quote_public_sign: {
31010
+ Args: {
31011
+ _handtekening: string;
31012
+ _naam: string;
31013
+ _token: string;
31014
+ };
31015
+ Returns: Json;
31016
+ };
30454
31017
  quote_queue_follow_up: {
30455
31018
  Args: {
30456
31019
  _offerte_id: string;
30457
31020
  };
30458
31021
  Returns: string;
30459
31022
  };
31023
+ quote_release_work_order: {
31024
+ Args: {
31025
+ _offerte_id: string;
31026
+ };
31027
+ Returns: Json;
31028
+ };
31029
+ quote_sync_work_order: {
31030
+ Args: {
31031
+ _monteur_instructies?: string;
31032
+ _offerte_id: string;
31033
+ };
31034
+ Returns: boolean;
31035
+ };
30460
31036
  recompute_all_reserved_stock: {
30461
31037
  Args: never;
30462
31038
  Returns: undefined;
@@ -31408,6 +31984,10 @@ export type Database = {
31408
31984
  };
31409
31985
  Returns: number;
31410
31986
  };
31987
+ uren_heeft_pagina_toegang: {
31988
+ Args: never;
31989
+ Returns: boolean;
31990
+ };
31411
31991
  uren_is_beheerder: {
31412
31992
  Args: never;
31413
31993
  Returns: boolean;
@@ -31491,6 +32071,13 @@ export type Database = {
31491
32071
  Args: never;
31492
32072
  Returns: string;
31493
32073
  };
32074
+ uren_pagina_toegang_instellen: {
32075
+ Args: {
32076
+ _toegang: boolean;
32077
+ _user_id: string;
32078
+ };
32079
+ Returns: undefined;
32080
+ };
31494
32081
  uren_planning_dagagenda: {
31495
32082
  Args: {
31496
32083
  _tot: string;
@@ -31735,6 +32322,19 @@ export type Database = {
31735
32322
  user_id: string;
31736
32323
  }[];
31737
32324
  };
32325
+ vervang_printer: {
32326
+ Args: {
32327
+ _nieuw: string;
32328
+ _oud: string;
32329
+ };
32330
+ Returns: Json;
32331
+ };
32332
+ verwijder_printplek: {
32333
+ Args: {
32334
+ _id: string;
32335
+ };
32336
+ Returns: Json;
32337
+ };
31738
32338
  voorraad_cleanup_old_rows: {
31739
32339
  Args: never;
31740
32340
  Returns: Json;
@@ -31745,6 +32345,16 @@ export type Database = {
31745
32345
  };
31746
32346
  Returns: number;
31747
32347
  };
32348
+ werkbon_pakket_tijden: {
32349
+ Args: {
32350
+ _werkbon_id: string;
32351
+ };
32352
+ Returns: {
32353
+ labor_minutes: number;
32354
+ total_minutes: number;
32355
+ travel_minutes: number;
32356
+ }[];
32357
+ };
31748
32358
  werkbon_totalen: {
31749
32359
  Args: {
31750
32360
  _werkbon_id: string;