@flowselections/logistiek-engine 1.0.25 → 1.0.27

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 (57) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/ConsistentieCard.d.ts +2 -0
  3. package/dist-lib/components/ConsistentieCard.d.ts.map +1 -0
  4. package/dist-lib/components/ConsistentieCard.js +38 -0
  5. package/dist-lib/components/ModulePromptsPage.d.ts.map +1 -1
  6. package/dist-lib/components/ModulePromptsPage.js +11 -3
  7. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  8. package/dist-lib/components/RegiePage.js +2 -1
  9. package/dist-lib/index.d.ts +1 -0
  10. package/dist-lib/index.d.ts.map +1 -1
  11. package/dist-lib/index.js +1 -0
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1048 -715
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/client.server.d.ts +1048 -715
  15. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.server.js +1 -1
  17. package/dist-lib/integrations/supabase/moduleClient.d.ts +1048 -715
  18. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +1081 -768
  20. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  21. package/dist-lib/lib/dimensionData.server.d.ts +27 -0
  22. package/dist-lib/lib/dimensionData.server.d.ts.map +1 -0
  23. package/dist-lib/lib/dimensionData.server.js +157 -0
  24. package/dist-lib/lib/dimensionPlanner.d.ts +70 -0
  25. package/dist-lib/lib/dimensionPlanner.d.ts.map +1 -0
  26. package/dist-lib/lib/dimensionPlanner.js +217 -0
  27. package/dist-lib/lib/floridayDocuments.functions.d.ts +3054 -2055
  28. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floridayPush.functions.d.ts +1048 -715
  30. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/loadCarrierPlanner.d.ts +3 -0
  32. package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
  33. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5105 -3465
  34. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +4 -0
  36. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  37. package/dist-lib/lib/loadCarrierPlanning.server.js +113 -3
  38. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  39. package/dist-lib/lib/logisticsPlanner.js +35 -13
  40. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +1983 -1317
  41. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1048 -715
  43. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/modulePrompts.d.ts +19 -3
  45. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  46. package/dist-lib/lib/modulePrompts.js +1666 -1298
  47. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  48. package/dist-lib/lib/ruleEngineSchema.js +32 -4
  49. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  50. package/dist-lib/lib/ruleEngineWizard.js +4 -1
  51. package/package.json +1 -1
  52. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +0 -2
  53. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +0 -1
  54. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +0 -41
  55. package/dist-lib/integrations/supabase/client.d.ts +0 -20293
  56. package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
  57. package/dist-lib/integrations/supabase/client.js +0 -13
@@ -6128,10 +6128,7 @@ export type Database = {
6128
6128
  };
6129
6129
  floriday_connections: {
6130
6130
  Row: {
6131
- access_token: string | null;
6132
6131
  api_key: string;
6133
- client_id: string;
6134
- client_secret: string;
6135
6132
  created_at: string;
6136
6133
  customers_endpoint: string | null;
6137
6134
  environment: string;
@@ -6146,10 +6143,7 @@ export type Database = {
6146
6143
  updated_at: string;
6147
6144
  };
6148
6145
  Insert: {
6149
- access_token?: string | null;
6150
6146
  api_key: string;
6151
- client_id: string;
6152
- client_secret: string;
6153
6147
  created_at?: string;
6154
6148
  customers_endpoint?: string | null;
6155
6149
  environment: string;
@@ -6164,10 +6158,7 @@ export type Database = {
6164
6158
  updated_at?: string;
6165
6159
  };
6166
6160
  Update: {
6167
- access_token?: string | null;
6168
6161
  api_key?: string;
6169
- client_id?: string;
6170
- client_secret?: string;
6171
6162
  created_at?: string;
6172
6163
  customers_endpoint?: string | null;
6173
6164
  environment?: string;
@@ -6253,6 +6244,7 @@ export type Database = {
6253
6244
  attempts: number;
6254
6245
  connection_id: string;
6255
6246
  created_at: string;
6247
+ dead_lettered_at: string | null;
6256
6248
  desired_available: boolean | null;
6257
6249
  gateway_attempt_id: string | null;
6258
6250
  id: string;
@@ -6261,9 +6253,13 @@ export type Database = {
6261
6253
  locked_by: string | null;
6262
6254
  next_attempt_at: string;
6263
6255
  number_of_pieces: number;
6256
+ product_id: string | null;
6264
6257
  sent_at: string | null;
6265
6258
  status: string;
6259
+ stock_mode: string | null;
6266
6260
  superseded_by: string | null;
6261
+ target_week: number | null;
6262
+ target_year: number | null;
6267
6263
  trade_item_id: string;
6268
6264
  updated_at: string;
6269
6265
  user_id: string;
@@ -6272,6 +6268,7 @@ export type Database = {
6272
6268
  attempts?: number;
6273
6269
  connection_id: string;
6274
6270
  created_at?: string;
6271
+ dead_lettered_at?: string | null;
6275
6272
  desired_available?: boolean | null;
6276
6273
  gateway_attempt_id?: string | null;
6277
6274
  id?: string;
@@ -6280,9 +6277,13 @@ export type Database = {
6280
6277
  locked_by?: string | null;
6281
6278
  next_attempt_at?: string;
6282
6279
  number_of_pieces?: number;
6280
+ product_id?: string | null;
6283
6281
  sent_at?: string | null;
6284
6282
  status?: string;
6283
+ stock_mode?: string | null;
6285
6284
  superseded_by?: string | null;
6285
+ target_week?: number | null;
6286
+ target_year?: number | null;
6286
6287
  trade_item_id: string;
6287
6288
  updated_at?: string;
6288
6289
  user_id: string;
@@ -6291,6 +6292,7 @@ export type Database = {
6291
6292
  attempts?: number;
6292
6293
  connection_id?: string;
6293
6294
  created_at?: string;
6295
+ dead_lettered_at?: string | null;
6294
6296
  desired_available?: boolean | null;
6295
6297
  gateway_attempt_id?: string | null;
6296
6298
  id?: string;
@@ -6299,9 +6301,13 @@ export type Database = {
6299
6301
  locked_by?: string | null;
6300
6302
  next_attempt_at?: string;
6301
6303
  number_of_pieces?: number;
6304
+ product_id?: string | null;
6302
6305
  sent_at?: string | null;
6303
6306
  status?: string;
6307
+ stock_mode?: string | null;
6304
6308
  superseded_by?: string | null;
6309
+ target_week?: number | null;
6310
+ target_year?: number | null;
6305
6311
  trade_item_id?: string;
6306
6312
  updated_at?: string;
6307
6313
  user_id?: string;
@@ -6728,6 +6734,87 @@ export type Database = {
6728
6734
  }
6729
6735
  ];
6730
6736
  };
6737
+ floriday_inventory_settings: {
6738
+ Row: {
6739
+ buffer_quantity: number;
6740
+ connection_id: string;
6741
+ created_at: string;
6742
+ desired_availability: boolean;
6743
+ desired_quantity: number;
6744
+ fixed_quantity: number | null;
6745
+ floriday_trade_item_id: string | null;
6746
+ id: string;
6747
+ last_confirmed_at: string | null;
6748
+ last_enqueued_at: string | null;
6749
+ last_published_at: string | null;
6750
+ last_sync_error: string | null;
6751
+ manual_quantity: number | null;
6752
+ maximum_quantity: number | null;
6753
+ product_id: string;
6754
+ quantity_control: string;
6755
+ remote_available: boolean | null;
6756
+ remote_checked_at: string | null;
6757
+ remote_quantity: number | null;
6758
+ stock_mode: string;
6759
+ sync_status: string;
6760
+ updated_at: string;
6761
+ updated_by: string | null;
6762
+ user_id: string;
6763
+ };
6764
+ Insert: {
6765
+ buffer_quantity?: number;
6766
+ connection_id: string;
6767
+ created_at?: string;
6768
+ desired_availability?: boolean;
6769
+ desired_quantity?: number;
6770
+ fixed_quantity?: number | null;
6771
+ floriday_trade_item_id?: string | null;
6772
+ id?: string;
6773
+ last_confirmed_at?: string | null;
6774
+ last_enqueued_at?: string | null;
6775
+ last_published_at?: string | null;
6776
+ last_sync_error?: string | null;
6777
+ manual_quantity?: number | null;
6778
+ maximum_quantity?: number | null;
6779
+ product_id: string;
6780
+ quantity_control?: string;
6781
+ remote_available?: boolean | null;
6782
+ remote_checked_at?: string | null;
6783
+ remote_quantity?: number | null;
6784
+ stock_mode?: string;
6785
+ sync_status?: string;
6786
+ updated_at?: string;
6787
+ updated_by?: string | null;
6788
+ user_id: string;
6789
+ };
6790
+ Update: {
6791
+ buffer_quantity?: number;
6792
+ connection_id?: string;
6793
+ created_at?: string;
6794
+ desired_availability?: boolean;
6795
+ desired_quantity?: number;
6796
+ fixed_quantity?: number | null;
6797
+ floriday_trade_item_id?: string | null;
6798
+ id?: string;
6799
+ last_confirmed_at?: string | null;
6800
+ last_enqueued_at?: string | null;
6801
+ last_published_at?: string | null;
6802
+ last_sync_error?: string | null;
6803
+ manual_quantity?: number | null;
6804
+ maximum_quantity?: number | null;
6805
+ product_id?: string;
6806
+ quantity_control?: string;
6807
+ remote_available?: boolean | null;
6808
+ remote_checked_at?: string | null;
6809
+ remote_quantity?: number | null;
6810
+ stock_mode?: string;
6811
+ sync_status?: string;
6812
+ updated_at?: string;
6813
+ updated_by?: string | null;
6814
+ user_id?: string;
6815
+ };
6816
+ Relationships: [];
6817
+ };
6731
6818
  floriday_invoices_cache: {
6732
6819
  Row: {
6733
6820
  buyer_organization_id: string | null;
@@ -7024,6 +7111,39 @@ export type Database = {
7024
7111
  };
7025
7112
  Relationships: [];
7026
7113
  };
7114
+ floriday_sales_order_ingest: {
7115
+ Row: {
7116
+ connection_id: string;
7117
+ created_at: string;
7118
+ id: string;
7119
+ impact: Json;
7120
+ order_status: string | null;
7121
+ order_version: number;
7122
+ processed_at: string;
7123
+ sales_order_id: string;
7124
+ };
7125
+ Insert: {
7126
+ connection_id: string;
7127
+ created_at?: string;
7128
+ id?: string;
7129
+ impact?: Json;
7130
+ order_status?: string | null;
7131
+ order_version?: number;
7132
+ processed_at?: string;
7133
+ sales_order_id: string;
7134
+ };
7135
+ Update: {
7136
+ connection_id?: string;
7137
+ created_at?: string;
7138
+ id?: string;
7139
+ impact?: Json;
7140
+ order_status?: string | null;
7141
+ order_version?: number;
7142
+ processed_at?: string;
7143
+ sales_order_id?: string;
7144
+ };
7145
+ Relationships: [];
7146
+ };
7027
7147
  floriday_sales_strategies_cache: {
7028
7148
  Row: {
7029
7149
  connection_id: string;
@@ -7127,6 +7247,39 @@ export type Database = {
7127
7247
  };
7128
7248
  Relationships: [];
7129
7249
  };
7250
+ floriday_sync_cursors: {
7251
+ Row: {
7252
+ connection_id: string;
7253
+ created_at: string;
7254
+ id: string;
7255
+ last_error: string | null;
7256
+ last_sync_at: string | null;
7257
+ resource_type: string;
7258
+ sequence_number: number;
7259
+ updated_at: string;
7260
+ };
7261
+ Insert: {
7262
+ connection_id: string;
7263
+ created_at?: string;
7264
+ id?: string;
7265
+ last_error?: string | null;
7266
+ last_sync_at?: string | null;
7267
+ resource_type: string;
7268
+ sequence_number?: number;
7269
+ updated_at?: string;
7270
+ };
7271
+ Update: {
7272
+ connection_id?: string;
7273
+ created_at?: string;
7274
+ id?: string;
7275
+ last_error?: string | null;
7276
+ last_sync_at?: string | null;
7277
+ resource_type?: string;
7278
+ sequence_number?: number;
7279
+ updated_at?: string;
7280
+ };
7281
+ Relationships: [];
7282
+ };
7130
7283
  floriday_sync_state: {
7131
7284
  Row: {
7132
7285
  connection_id: string;
@@ -7842,6 +7995,42 @@ export type Database = {
7842
7995
  };
7843
7996
  Relationships: [];
7844
7997
  };
7998
+ inventory_stock_snapshots: {
7999
+ Row: {
8000
+ connection_id: string;
8001
+ created_at: string;
8002
+ erp_available_quantity: number;
8003
+ floriday_desired_quantity: number;
8004
+ floriday_remote_quantity: number | null;
8005
+ granularity: string;
8006
+ id: string;
8007
+ snapshot_at: string;
8008
+ user_id: string | null;
8009
+ };
8010
+ Insert: {
8011
+ connection_id: string;
8012
+ created_at?: string;
8013
+ erp_available_quantity?: number;
8014
+ floriday_desired_quantity?: number;
8015
+ floriday_remote_quantity?: number | null;
8016
+ granularity?: string;
8017
+ id?: string;
8018
+ snapshot_at?: string;
8019
+ user_id?: string | null;
8020
+ };
8021
+ Update: {
8022
+ connection_id?: string;
8023
+ created_at?: string;
8024
+ erp_available_quantity?: number;
8025
+ floriday_desired_quantity?: number;
8026
+ floriday_remote_quantity?: number | null;
8027
+ granularity?: string;
8028
+ id?: string;
8029
+ snapshot_at?: string;
8030
+ user_id?: string | null;
8031
+ };
8032
+ Relationships: [];
8033
+ };
7845
8034
  invoice_items: {
7846
8035
  Row: {
7847
8036
  created_at: string;
@@ -8367,15 +8556,7 @@ export type Database = {
8367
8556
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8368
8557
  updated_at?: string;
8369
8558
  };
8370
- Relationships: [
8371
- {
8372
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8373
- columns: ["legacy_customer_id"];
8374
- isOneToOne: false;
8375
- referencedRelation: "customers";
8376
- referencedColumns: ["id"];
8377
- }
8378
- ];
8559
+ Relationships: [];
8379
8560
  };
8380
8561
  itk_dynamic_fields: {
8381
8562
  Row: {
@@ -8407,6 +8588,180 @@ export type Database = {
8407
8588
  };
8408
8589
  Relationships: [];
8409
8590
  };
8591
+ itk_handover_rechten: {
8592
+ Row: {
8593
+ created_at: string;
8594
+ id: string;
8595
+ module_id: string;
8596
+ rol: Database["public"]["Enums"]["app_role"] | null;
8597
+ updated_at: string;
8598
+ user_id: string | null;
8599
+ };
8600
+ Insert: {
8601
+ created_at?: string;
8602
+ id?: string;
8603
+ module_id: string;
8604
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8605
+ updated_at?: string;
8606
+ user_id?: string | null;
8607
+ };
8608
+ Update: {
8609
+ created_at?: string;
8610
+ id?: string;
8611
+ module_id?: string;
8612
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8613
+ updated_at?: string;
8614
+ user_id?: string | null;
8615
+ };
8616
+ Relationships: [];
8617
+ };
8618
+ itk_handover_tokens: {
8619
+ Row: {
8620
+ aangemaakt_door: string | null;
8621
+ created_at: string;
8622
+ id: string;
8623
+ is_actief: boolean;
8624
+ laatst_gebruikt_op: string | null;
8625
+ label: string;
8626
+ module_id: string;
8627
+ token_hash: string;
8628
+ updated_at: string;
8629
+ verloopt_op: string | null;
8630
+ };
8631
+ Insert: {
8632
+ aangemaakt_door?: string | null;
8633
+ created_at?: string;
8634
+ id?: string;
8635
+ is_actief?: boolean;
8636
+ laatst_gebruikt_op?: string | null;
8637
+ label?: string;
8638
+ module_id: string;
8639
+ token_hash: string;
8640
+ updated_at?: string;
8641
+ verloopt_op?: string | null;
8642
+ };
8643
+ Update: {
8644
+ aangemaakt_door?: string | null;
8645
+ created_at?: string;
8646
+ id?: string;
8647
+ is_actief?: boolean;
8648
+ laatst_gebruikt_op?: string | null;
8649
+ label?: string;
8650
+ module_id?: string;
8651
+ token_hash?: string;
8652
+ updated_at?: string;
8653
+ verloopt_op?: string | null;
8654
+ };
8655
+ Relationships: [];
8656
+ };
8657
+ itk_module_handovers: {
8658
+ Row: {
8659
+ bevindingen: string | null;
8660
+ bezit_tabellen: string[];
8661
+ conflicten_snapshot: Json;
8662
+ contractfuncties: string[];
8663
+ created_at: string;
8664
+ eigenaar_module_id: string | null;
8665
+ gepubliceerd_door: string | null;
8666
+ gepubliceerd_op: string;
8667
+ herzieningstermijn_dagen: number;
8668
+ id: string;
8669
+ inhoud_md: string;
8670
+ is_actueel: boolean;
8671
+ module_id: string;
8672
+ module_titel: string;
8673
+ ontbrekende_contracten: string[];
8674
+ samenvatting: string | null;
8675
+ updated_at: string;
8676
+ versie: number;
8677
+ };
8678
+ Insert: {
8679
+ bevindingen?: string | null;
8680
+ bezit_tabellen?: string[];
8681
+ conflicten_snapshot?: Json;
8682
+ contractfuncties?: string[];
8683
+ created_at?: string;
8684
+ eigenaar_module_id?: string | null;
8685
+ gepubliceerd_door?: string | null;
8686
+ gepubliceerd_op?: string;
8687
+ herzieningstermijn_dagen?: number;
8688
+ id?: string;
8689
+ inhoud_md: string;
8690
+ is_actueel?: boolean;
8691
+ module_id: string;
8692
+ module_titel: string;
8693
+ ontbrekende_contracten?: string[];
8694
+ samenvatting?: string | null;
8695
+ updated_at?: string;
8696
+ versie?: number;
8697
+ };
8698
+ Update: {
8699
+ bevindingen?: string | null;
8700
+ bezit_tabellen?: string[];
8701
+ conflicten_snapshot?: Json;
8702
+ contractfuncties?: string[];
8703
+ created_at?: string;
8704
+ eigenaar_module_id?: string | null;
8705
+ gepubliceerd_door?: string | null;
8706
+ gepubliceerd_op?: string;
8707
+ herzieningstermijn_dagen?: number;
8708
+ id?: string;
8709
+ inhoud_md?: string;
8710
+ is_actueel?: boolean;
8711
+ module_id?: string;
8712
+ module_titel?: string;
8713
+ ontbrekende_contracten?: string[];
8714
+ samenvatting?: string | null;
8715
+ updated_at?: string;
8716
+ versie?: number;
8717
+ };
8718
+ Relationships: [];
8719
+ };
8720
+ itk_module_instructies: {
8721
+ Row: {
8722
+ created_at: string;
8723
+ eigenaar_module_id: string;
8724
+ gepubliceerd_door: string | null;
8725
+ gepubliceerd_op: string;
8726
+ id: string;
8727
+ inhoud_md: string;
8728
+ is_actueel: boolean;
8729
+ sleutel: string;
8730
+ titel: string;
8731
+ toelichting: string | null;
8732
+ updated_at: string;
8733
+ versie: number;
8734
+ };
8735
+ Insert: {
8736
+ created_at?: string;
8737
+ eigenaar_module_id?: string;
8738
+ gepubliceerd_door?: string | null;
8739
+ gepubliceerd_op?: string;
8740
+ id?: string;
8741
+ inhoud_md: string;
8742
+ is_actueel?: boolean;
8743
+ sleutel: string;
8744
+ titel: string;
8745
+ toelichting?: string | null;
8746
+ updated_at?: string;
8747
+ versie?: number;
8748
+ };
8749
+ Update: {
8750
+ created_at?: string;
8751
+ eigenaar_module_id?: string;
8752
+ gepubliceerd_door?: string | null;
8753
+ gepubliceerd_op?: string;
8754
+ id?: string;
8755
+ inhoud_md?: string;
8756
+ is_actueel?: boolean;
8757
+ sleutel?: string;
8758
+ titel?: string;
8759
+ toelichting?: string | null;
8760
+ updated_at?: string;
8761
+ versie?: number;
8762
+ };
8763
+ Relationships: [];
8764
+ };
8410
8765
  itk_offerte_events: {
8411
8766
  Row: {
8412
8767
  created_at: string;
@@ -9295,6 +9650,27 @@ export type Database = {
9295
9650
  };
9296
9651
  Relationships: [];
9297
9652
  };
9653
+ logistics_cart_barcode: {
9654
+ Row: {
9655
+ barcode: string;
9656
+ cart_id: string;
9657
+ created_at: string;
9658
+ order_id: string | null;
9659
+ };
9660
+ Insert: {
9661
+ barcode: string;
9662
+ cart_id: string;
9663
+ created_at?: string;
9664
+ order_id?: string | null;
9665
+ };
9666
+ Update: {
9667
+ barcode?: string;
9668
+ cart_id?: string;
9669
+ created_at?: string;
9670
+ order_id?: string | null;
9671
+ };
9672
+ Relationships: [];
9673
+ };
9298
9674
  logistics_decisions: {
9299
9675
  Row: {
9300
9676
  created_at: string;
@@ -10138,6 +10514,36 @@ export type Database = {
10138
10514
  }
10139
10515
  ];
10140
10516
  };
10517
+ logistics_shipping_note_scan: {
10518
+ Row: {
10519
+ barcode: string;
10520
+ cart_id: string;
10521
+ id: string;
10522
+ is_reprint: boolean;
10523
+ order_id: string | null;
10524
+ print_job_id: string | null;
10525
+ scanned_at: string;
10526
+ };
10527
+ Insert: {
10528
+ barcode: string;
10529
+ cart_id: string;
10530
+ id?: string;
10531
+ is_reprint?: boolean;
10532
+ order_id?: string | null;
10533
+ print_job_id?: string | null;
10534
+ scanned_at?: string;
10535
+ };
10536
+ Update: {
10537
+ barcode?: string;
10538
+ cart_id?: string;
10539
+ id?: string;
10540
+ is_reprint?: boolean;
10541
+ order_id?: string | null;
10542
+ print_job_id?: string | null;
10543
+ scanned_at?: string;
10544
+ };
10545
+ Relationships: [];
10546
+ };
10141
10547
  logistics_staff_planning: {
10142
10548
  Row: {
10143
10549
  created_at: string;
@@ -13037,6 +13443,7 @@ export type Database = {
13037
13443
  print_job_id: string | null;
13038
13444
  printed_at: string | null;
13039
13445
  printed_by: string | null;
13446
+ printed_cart_ids: Json;
13040
13447
  printer_id: string | null;
13041
13448
  priority: number;
13042
13449
  reference: string | null;
@@ -13071,6 +13478,7 @@ export type Database = {
13071
13478
  print_job_id?: string | null;
13072
13479
  printed_at?: string | null;
13073
13480
  printed_by?: string | null;
13481
+ printed_cart_ids?: Json;
13074
13482
  printer_id?: string | null;
13075
13483
  priority?: number;
13076
13484
  reference?: string | null;
@@ -13105,6 +13513,7 @@ export type Database = {
13105
13513
  print_job_id?: string | null;
13106
13514
  printed_at?: string | null;
13107
13515
  printed_by?: string | null;
13516
+ printed_cart_ids?: Json;
13108
13517
  printer_id?: string | null;
13109
13518
  priority?: number;
13110
13519
  reference?: string | null;
@@ -13938,9 +14347,16 @@ export type Database = {
13938
14347
  isOneToOne: false;
13939
14348
  referencedRelation: "planning_items";
13940
14349
  referencedColumns: ["id"];
13941
- }
13942
- ];
13943
- };
14350
+ },
14351
+ {
14352
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
14353
+ columns: ["planning_item_id"];
14354
+ isOneToOne: false;
14355
+ referencedRelation: "planning_overview";
14356
+ referencedColumns: ["id"];
14357
+ }
14358
+ ];
14359
+ };
13944
14360
  planning_items: {
13945
14361
  Row: {
13946
14362
  assigned_monteur_id: string;
@@ -15527,508 +15943,48 @@ export type Database = {
15527
15943
  location_id: string | null;
15528
15944
  notes: string | null;
15529
15945
  order_number: string;
15530
- status: string;
15531
- supplier_id: string | null;
15532
- supplier_name: string;
15533
- updated_at: string;
15534
- };
15535
- Insert: {
15536
- created_at?: string;
15537
- expected_delivery_date: string;
15538
- id?: string;
15539
- location_id?: string | null;
15540
- notes?: string | null;
15541
- order_number: string;
15542
- status?: string;
15543
- supplier_id?: string | null;
15544
- supplier_name?: string;
15545
- updated_at?: string;
15546
- };
15547
- Update: {
15548
- created_at?: string;
15549
- expected_delivery_date?: string;
15550
- id?: string;
15551
- location_id?: string | null;
15552
- notes?: string | null;
15553
- order_number?: string;
15554
- status?: string;
15555
- supplier_id?: string | null;
15556
- supplier_name?: string;
15557
- updated_at?: string;
15558
- };
15559
- Relationships: [
15560
- {
15561
- foreignKeyName: "purchase_orders_location_id_fkey";
15562
- columns: ["location_id"];
15563
- isOneToOne: false;
15564
- referencedRelation: "locations";
15565
- referencedColumns: ["id"];
15566
- },
15567
- {
15568
- foreignKeyName: "purchase_orders_supplier_id_fkey";
15569
- columns: ["supplier_id"];
15570
- isOneToOne: false;
15571
- referencedRelation: "suppliers";
15572
- referencedColumns: ["id"];
15573
- }
15574
- ];
15575
- };
15576
- quote_activities: {
15577
- Row: {
15578
- created_at: string;
15579
- event_type: string;
15580
- id: string;
15581
- metadata: Json;
15582
- quote_id: string;
15583
- user_id: string | null;
15584
- };
15585
- Insert: {
15586
- created_at?: string;
15587
- event_type: string;
15588
- id?: string;
15589
- metadata?: Json;
15590
- quote_id: string;
15591
- user_id?: string | null;
15592
- };
15593
- Update: {
15594
- created_at?: string;
15595
- event_type?: string;
15596
- id?: string;
15597
- metadata?: Json;
15598
- quote_id?: string;
15599
- user_id?: string | null;
15600
- };
15601
- Relationships: [
15602
- {
15603
- foreignKeyName: "quote_activities_quote_id_fkey";
15604
- columns: ["quote_id"];
15605
- isOneToOne: false;
15606
- referencedRelation: "quotes";
15607
- referencedColumns: ["id"];
15608
- }
15609
- ];
15610
- };
15611
- quote_attachments: {
15612
- Row: {
15613
- created_at: string;
15614
- file_name: string;
15615
- file_size: number | null;
15616
- file_url: string;
15617
- id: string;
15618
- mime_type: string | null;
15619
- quote_id: string;
15620
- };
15621
- Insert: {
15622
- created_at?: string;
15623
- file_name: string;
15624
- file_size?: number | null;
15625
- file_url: string;
15626
- id?: string;
15627
- mime_type?: string | null;
15628
- quote_id: string;
15629
- };
15630
- Update: {
15631
- created_at?: string;
15632
- file_name?: string;
15633
- file_size?: number | null;
15634
- file_url?: string;
15635
- id?: string;
15636
- mime_type?: string | null;
15637
- quote_id?: string;
15638
- };
15639
- Relationships: [
15640
- {
15641
- foreignKeyName: "quote_attachments_quote_id_fkey";
15642
- columns: ["quote_id"];
15643
- isOneToOne: false;
15644
- referencedRelation: "quotes";
15645
- referencedColumns: ["id"];
15646
- }
15647
- ];
15648
- };
15649
- quote_field_options: {
15650
- Row: {
15651
- created_at: string;
15652
- field_id: string;
15653
- id: string;
15654
- label: string;
15655
- sort_order: number;
15656
- value: string;
15657
- };
15658
- Insert: {
15659
- created_at?: string;
15660
- field_id: string;
15661
- id?: string;
15662
- label: string;
15663
- sort_order?: number;
15664
- value: string;
15665
- };
15666
- Update: {
15667
- created_at?: string;
15668
- field_id?: string;
15669
- id?: string;
15670
- label?: string;
15671
- sort_order?: number;
15672
- value?: string;
15673
- };
15674
- Relationships: [
15675
- {
15676
- foreignKeyName: "quote_field_options_field_id_fkey";
15677
- columns: ["field_id"];
15678
- isOneToOne: false;
15679
- referencedRelation: "quote_field_settings";
15680
- referencedColumns: ["id"];
15681
- }
15682
- ];
15683
- };
15684
- quote_field_settings: {
15685
- Row: {
15686
- created_at: string;
15687
- default_value: string | null;
15688
- field_key: string;
15689
- field_type: string;
15690
- id: string;
15691
- is_system: boolean;
15692
- label: string;
15693
- required: boolean;
15694
- sort_order: number;
15695
- updated_at: string;
15696
- visible: boolean;
15697
- };
15698
- Insert: {
15699
- created_at?: string;
15700
- default_value?: string | null;
15701
- field_key: string;
15702
- field_type: string;
15703
- id?: string;
15704
- is_system?: boolean;
15705
- label: string;
15706
- required?: boolean;
15707
- sort_order?: number;
15708
- updated_at?: string;
15709
- visible?: boolean;
15710
- };
15711
- Update: {
15712
- created_at?: string;
15713
- default_value?: string | null;
15714
- field_key?: string;
15715
- field_type?: string;
15716
- id?: string;
15717
- is_system?: boolean;
15718
- label?: string;
15719
- required?: boolean;
15720
- sort_order?: number;
15721
- updated_at?: string;
15722
- visible?: boolean;
15723
- };
15724
- Relationships: [];
15725
- };
15726
- quote_items: {
15727
- Row: {
15728
- category: string | null;
15729
- created_at: string;
15730
- description: string;
15731
- id: string;
15732
- line_total: number;
15733
- module_id: string | null;
15734
- name: string | null;
15735
- quantity: number;
15736
- quote_id: string;
15737
- sort_order: number;
15738
- unit_price: number;
15739
- };
15740
- Insert: {
15741
- category?: string | null;
15742
- created_at?: string;
15743
- description?: string;
15744
- id?: string;
15745
- line_total?: number;
15746
- module_id?: string | null;
15747
- name?: string | null;
15748
- quantity?: number;
15749
- quote_id: string;
15750
- sort_order?: number;
15751
- unit_price?: number;
15752
- };
15753
- Update: {
15754
- category?: string | null;
15755
- created_at?: string;
15756
- description?: string;
15757
- id?: string;
15758
- line_total?: number;
15759
- module_id?: string | null;
15760
- name?: string | null;
15761
- quantity?: number;
15762
- quote_id?: string;
15763
- sort_order?: number;
15764
- unit_price?: number;
15765
- };
15766
- Relationships: [
15767
- {
15768
- foreignKeyName: "quote_items_module_id_fkey";
15769
- columns: ["module_id"];
15770
- isOneToOne: false;
15771
- referencedRelation: "quote_modules";
15772
- referencedColumns: ["id"];
15773
- },
15774
- {
15775
- foreignKeyName: "quote_items_quote_id_fkey";
15776
- columns: ["quote_id"];
15777
- isOneToOne: false;
15778
- referencedRelation: "quotes";
15779
- referencedColumns: ["id"];
15780
- }
15781
- ];
15782
- };
15783
- quote_modules: {
15784
- Row: {
15785
- category: string | null;
15786
- created_at: string;
15787
- description: string | null;
15788
- id: string;
15789
- is_active: boolean;
15790
- name: string;
15791
- price: number;
15792
- sort_order: number;
15793
- updated_at: string;
15794
- };
15795
- Insert: {
15796
- category?: string | null;
15797
- created_at?: string;
15798
- description?: string | null;
15799
- id?: string;
15800
- is_active?: boolean;
15801
- name: string;
15802
- price?: number;
15803
- sort_order?: number;
15804
- updated_at?: string;
15805
- };
15806
- Update: {
15807
- category?: string | null;
15808
- created_at?: string;
15809
- description?: string | null;
15810
- id?: string;
15811
- is_active?: boolean;
15812
- name?: string;
15813
- price?: number;
15814
- sort_order?: number;
15815
- updated_at?: string;
15816
- };
15817
- Relationships: [];
15818
- };
15819
- quote_templates: {
15820
- Row: {
15821
- created_at: string;
15822
- description: string | null;
15823
- field_values: Json;
15824
- id: string;
15825
- is_default: boolean;
15826
- items: Json;
15827
- name: string;
15828
- updated_at: string;
15829
- vat_rate: number;
15830
- };
15831
- Insert: {
15832
- created_at?: string;
15833
- description?: string | null;
15834
- field_values?: Json;
15835
- id?: string;
15836
- is_default?: boolean;
15837
- items?: Json;
15838
- name: string;
15839
- updated_at?: string;
15840
- vat_rate?: number;
15841
- };
15842
- Update: {
15843
- created_at?: string;
15844
- description?: string | null;
15845
- field_values?: Json;
15846
- id?: string;
15847
- is_default?: boolean;
15848
- items?: Json;
15849
- name?: string;
15850
- updated_at?: string;
15851
- vat_rate?: number;
15852
- };
15853
- Relationships: [];
15854
- };
15855
- quote_terms: {
15856
- Row: {
15857
- content: string | null;
15858
- created_at: string;
15859
- file_url: string | null;
15860
- id: string;
15861
- is_active: boolean;
15862
- name: string;
15863
- published_at: string | null;
15864
- updated_at: string;
15865
- version: string;
15866
- };
15867
- Insert: {
15868
- content?: string | null;
15869
- created_at?: string;
15870
- file_url?: string | null;
15871
- id?: string;
15872
- is_active?: boolean;
15873
- name: string;
15874
- published_at?: string | null;
15875
- updated_at?: string;
15876
- version?: string;
15877
- };
15878
- Update: {
15879
- content?: string | null;
15880
- created_at?: string;
15881
- file_url?: string | null;
15882
- id?: string;
15883
- is_active?: boolean;
15884
- name?: string;
15885
- published_at?: string | null;
15886
- updated_at?: string;
15887
- version?: string;
15888
- };
15889
- Relationships: [];
15890
- };
15891
- quotes: {
15892
- Row: {
15893
- accepted_at: string | null;
15894
- archived_at: string | null;
15895
- contact_id: string | null;
15896
- created_at: string;
15897
- customer_id: string | null;
15898
- discount: number;
15899
- expires_at: string | null;
15900
- field_values: Json;
15901
- id: string;
15902
- notes: string | null;
15903
- owner_id: string | null;
15904
- personal_message: string | null;
15905
- project_id: string | null;
15906
- prospect_id: string | null;
15907
- public_token: string;
15908
- quote_number: string | null;
15909
- recipient_email: string | null;
15910
- recipient_name: string | null;
15911
- rejected_at: string | null;
15912
- sent_at: string | null;
15913
- status: string;
15914
- subtotal: number;
15915
- template_id: string | null;
15916
- terms_id: string | null;
15917
- title: string;
15918
- total: number;
15946
+ status: string;
15947
+ supplier_id: string | null;
15948
+ supplier_name: string;
15919
15949
  updated_at: string;
15920
- valid_until: string | null;
15921
- vat_amount: number;
15922
- vat_rate: number;
15923
- viewed_at: string | null;
15924
15950
  };
15925
15951
  Insert: {
15926
- accepted_at?: string | null;
15927
- archived_at?: string | null;
15928
- contact_id?: string | null;
15929
15952
  created_at?: string;
15930
- customer_id?: string | null;
15931
- discount?: number;
15932
- expires_at?: string | null;
15933
- field_values?: Json;
15953
+ expected_delivery_date: string;
15934
15954
  id?: string;
15955
+ location_id?: string | null;
15935
15956
  notes?: string | null;
15936
- owner_id?: string | null;
15937
- personal_message?: string | null;
15938
- project_id?: string | null;
15939
- prospect_id?: string | null;
15940
- public_token?: string;
15941
- quote_number?: string | null;
15942
- recipient_email?: string | null;
15943
- recipient_name?: string | null;
15944
- rejected_at?: string | null;
15945
- sent_at?: string | null;
15957
+ order_number: string;
15946
15958
  status?: string;
15947
- subtotal?: number;
15948
- template_id?: string | null;
15949
- terms_id?: string | null;
15950
- title?: string;
15951
- total?: number;
15959
+ supplier_id?: string | null;
15960
+ supplier_name?: string;
15952
15961
  updated_at?: string;
15953
- valid_until?: string | null;
15954
- vat_amount?: number;
15955
- vat_rate?: number;
15956
- viewed_at?: string | null;
15957
15962
  };
15958
15963
  Update: {
15959
- accepted_at?: string | null;
15960
- archived_at?: string | null;
15961
- contact_id?: string | null;
15962
15964
  created_at?: string;
15963
- customer_id?: string | null;
15964
- discount?: number;
15965
- expires_at?: string | null;
15966
- field_values?: Json;
15965
+ expected_delivery_date?: string;
15967
15966
  id?: string;
15967
+ location_id?: string | null;
15968
15968
  notes?: string | null;
15969
- owner_id?: string | null;
15970
- personal_message?: string | null;
15971
- project_id?: string | null;
15972
- prospect_id?: string | null;
15973
- public_token?: string;
15974
- quote_number?: string | null;
15975
- recipient_email?: string | null;
15976
- recipient_name?: string | null;
15977
- rejected_at?: string | null;
15978
- sent_at?: string | null;
15969
+ order_number?: string;
15979
15970
  status?: string;
15980
- subtotal?: number;
15981
- template_id?: string | null;
15982
- terms_id?: string | null;
15983
- title?: string;
15984
- total?: number;
15971
+ supplier_id?: string | null;
15972
+ supplier_name?: string;
15985
15973
  updated_at?: string;
15986
- valid_until?: string | null;
15987
- vat_amount?: number;
15988
- vat_rate?: number;
15989
- viewed_at?: string | null;
15990
15974
  };
15991
15975
  Relationships: [
15992
15976
  {
15993
- foreignKeyName: "quotes_contact_id_fkey";
15994
- columns: ["contact_id"];
15995
- isOneToOne: false;
15996
- referencedRelation: "customer_contacts";
15997
- referencedColumns: ["id"];
15998
- },
15999
- {
16000
- foreignKeyName: "quotes_customer_id_fkey";
16001
- columns: ["customer_id"];
16002
- isOneToOne: false;
16003
- referencedRelation: "customers";
16004
- referencedColumns: ["id"];
16005
- },
16006
- {
16007
- foreignKeyName: "quotes_project_id_fkey";
16008
- columns: ["project_id"];
16009
- isOneToOne: false;
16010
- referencedRelation: "projects";
16011
- referencedColumns: ["id"];
16012
- },
16013
- {
16014
- foreignKeyName: "quotes_prospect_id_fkey";
16015
- columns: ["prospect_id"];
16016
- isOneToOne: false;
16017
- referencedRelation: "prospects";
16018
- referencedColumns: ["id"];
16019
- },
16020
- {
16021
- foreignKeyName: "quotes_template_id_fkey";
16022
- columns: ["template_id"];
15977
+ foreignKeyName: "purchase_orders_location_id_fkey";
15978
+ columns: ["location_id"];
16023
15979
  isOneToOne: false;
16024
- referencedRelation: "quote_templates";
15980
+ referencedRelation: "locations";
16025
15981
  referencedColumns: ["id"];
16026
15982
  },
16027
15983
  {
16028
- foreignKeyName: "quotes_terms_id_fkey";
16029
- columns: ["terms_id"];
15984
+ foreignKeyName: "purchase_orders_supplier_id_fkey";
15985
+ columns: ["supplier_id"];
16030
15986
  isOneToOne: false;
16031
- referencedRelation: "quote_terms";
15987
+ referencedRelation: "suppliers";
16032
15988
  referencedColumns: ["id"];
16033
15989
  }
16034
15990
  ];
@@ -17179,7 +17135,7 @@ export type Database = {
17179
17135
  foreignKeyName: "time_logs_work_order_id_fkey";
17180
17136
  columns: ["work_order_id"];
17181
17137
  isOneToOne: false;
17182
- referencedRelation: "work_orders";
17138
+ referencedRelation: "werkbonnen";
17183
17139
  referencedColumns: ["id"];
17184
17140
  }
17185
17141
  ];
@@ -17314,6 +17270,7 @@ export type Database = {
17314
17270
  };
17315
17271
  trade_item_stock: {
17316
17272
  Row: {
17273
+ change_source: string;
17317
17274
  connection_id: string;
17318
17275
  created_at: string;
17319
17276
  id: string;
@@ -17327,6 +17284,7 @@ export type Database = {
17327
17284
  user_id: string;
17328
17285
  };
17329
17286
  Insert: {
17287
+ change_source?: string;
17330
17288
  connection_id: string;
17331
17289
  created_at?: string;
17332
17290
  id?: string;
@@ -17340,6 +17298,7 @@ export type Database = {
17340
17298
  user_id: string;
17341
17299
  };
17342
17300
  Update: {
17301
+ change_source?: string;
17343
17302
  connection_id?: string;
17344
17303
  created_at?: string;
17345
17304
  id?: string;
@@ -18416,273 +18375,118 @@ export type Database = {
18416
18375
  created_at?: string;
18417
18376
  daily_threshold_hours?: number | null;
18418
18377
  id?: string;
18419
- include_travel?: boolean | null;
18420
- monteur_id: string;
18421
- ov02_percentage?: number | null;
18422
- ov03_percentage?: number | null;
18423
- updated_at?: string;
18424
- weekly_threshold_hours?: number | null;
18425
- workday_end?: string | null;
18426
- workday_start?: string | null;
18427
- };
18428
- Update: {
18429
- break_minutes?: number | null;
18430
- contract_hours_per_week?: number;
18431
- created_at?: string;
18432
- daily_threshold_hours?: number | null;
18433
- id?: string;
18434
- include_travel?: boolean | null;
18435
- monteur_id?: string;
18436
- ov02_percentage?: number | null;
18437
- ov03_percentage?: number | null;
18438
- updated_at?: string;
18439
- weekly_threshold_hours?: number | null;
18440
- workday_end?: string | null;
18441
- workday_start?: string | null;
18442
- };
18443
- Relationships: [];
18444
- };
18445
- uren_entries: {
18446
- Row: {
18447
- created_at: string;
18448
- created_by: string | null;
18449
- entry_date: string;
18450
- hours: number;
18451
- id: string;
18452
- kind: string;
18453
- monteur_id: string;
18454
- note: string | null;
18455
- source: string;
18456
- travel_km: number;
18457
- updated_at: string;
18458
- werkbon_id: string | null;
18459
- };
18460
- Insert: {
18461
- created_at?: string;
18462
- created_by?: string | null;
18463
- entry_date: string;
18464
- hours?: number;
18465
- id?: string;
18466
- kind?: string;
18467
- monteur_id: string;
18468
- note?: string | null;
18469
- source?: string;
18470
- travel_km?: number;
18471
- updated_at?: string;
18472
- werkbon_id?: string | null;
18473
- };
18474
- Update: {
18475
- created_at?: string;
18476
- created_by?: string | null;
18477
- entry_date?: string;
18478
- hours?: number;
18479
- id?: string;
18480
- kind?: string;
18481
- monteur_id?: string;
18482
- note?: string | null;
18483
- source?: string;
18484
- travel_km?: number;
18485
- updated_at?: string;
18486
- werkbon_id?: string | null;
18487
- };
18488
- Relationships: [
18489
- {
18490
- foreignKeyName: "uren_entries_werkbon_id_fkey";
18491
- columns: ["werkbon_id"];
18492
- isOneToOne: false;
18493
- referencedRelation: "werkbonnen";
18494
- referencedColumns: ["id"];
18495
- }
18496
- ];
18497
- };
18498
- uren_exports: {
18499
- Row: {
18500
- created_at: string;
18501
- created_by: string | null;
18502
- file_name: string | null;
18503
- id: string;
18504
- monteur_ids: string[];
18505
- period_end: string;
18506
- period_start: string;
18507
- row_count: number;
18508
- };
18509
- Insert: {
18510
- created_at?: string;
18511
- created_by?: string | null;
18512
- file_name?: string | null;
18513
- id?: string;
18514
- monteur_ids?: string[];
18515
- period_end: string;
18516
- period_start: string;
18517
- row_count?: number;
18518
- };
18519
- Update: {
18520
- created_at?: string;
18521
- created_by?: string | null;
18522
- file_name?: string | null;
18523
- id?: string;
18524
- monteur_ids?: string[];
18525
- period_end?: string;
18526
- period_start?: string;
18527
- row_count?: number;
18528
- };
18529
- Relationships: [];
18530
- };
18531
- uren_offerte_regels: {
18532
- Row: {
18533
- created_at: string;
18534
- description: string;
18535
- duration_minutes: number;
18536
- id: string;
18537
- offerte_id: string;
18538
- package_id: string | null;
18539
- quantity: number;
18540
- sort_order: number;
18541
- total_cents: number;
18542
- unit_price_cents: number;
18543
- };
18544
- Insert: {
18545
- created_at?: string;
18546
- description: string;
18547
- duration_minutes?: number;
18548
- id?: string;
18549
- offerte_id: string;
18550
- package_id?: string | null;
18551
- quantity?: number;
18552
- sort_order?: number;
18553
- total_cents?: number;
18554
- unit_price_cents?: number;
18555
- };
18556
- Update: {
18557
- created_at?: string;
18558
- description?: string;
18559
- duration_minutes?: number;
18560
- id?: string;
18561
- offerte_id?: string;
18562
- package_id?: string | null;
18563
- quantity?: number;
18564
- sort_order?: number;
18565
- total_cents?: number;
18566
- unit_price_cents?: number;
18567
- };
18568
- Relationships: [
18569
- {
18570
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
18571
- columns: ["offerte_id"];
18572
- isOneToOne: false;
18573
- referencedRelation: "uren_offertes";
18574
- referencedColumns: ["id"];
18575
- },
18576
- {
18577
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
18578
- columns: ["package_id"];
18579
- isOneToOne: false;
18580
- referencedRelation: "werkbon_packages";
18581
- referencedColumns: ["id"];
18582
- }
18583
- ];
18584
- };
18585
- uren_offerte_velden: {
18586
- Row: {
18587
- created_at: string;
18588
- field_type: string;
18589
- id: string;
18590
- key: string;
18591
- label: string;
18592
- options: string[];
18593
- required: boolean;
18594
- sort_order: number;
18595
- updated_at: string;
18596
- };
18597
- Insert: {
18598
- created_at?: string;
18599
- field_type?: string;
18600
- id?: string;
18601
- key: string;
18602
- label: string;
18603
- options?: string[];
18604
- required?: boolean;
18605
- sort_order?: number;
18378
+ include_travel?: boolean | null;
18379
+ monteur_id: string;
18380
+ ov02_percentage?: number | null;
18381
+ ov03_percentage?: number | null;
18606
18382
  updated_at?: string;
18383
+ weekly_threshold_hours?: number | null;
18384
+ workday_end?: string | null;
18385
+ workday_start?: string | null;
18607
18386
  };
18608
18387
  Update: {
18388
+ break_minutes?: number | null;
18389
+ contract_hours_per_week?: number;
18609
18390
  created_at?: string;
18610
- field_type?: string;
18391
+ daily_threshold_hours?: number | null;
18611
18392
  id?: string;
18612
- key?: string;
18613
- label?: string;
18614
- options?: string[];
18615
- required?: boolean;
18616
- sort_order?: number;
18393
+ include_travel?: boolean | null;
18394
+ monteur_id?: string;
18395
+ ov02_percentage?: number | null;
18396
+ ov03_percentage?: number | null;
18617
18397
  updated_at?: string;
18398
+ weekly_threshold_hours?: number | null;
18399
+ workday_end?: string | null;
18400
+ workday_start?: string | null;
18618
18401
  };
18619
18402
  Relationships: [];
18620
18403
  };
18621
- uren_offertes: {
18404
+ uren_entries: {
18622
18405
  Row: {
18623
18406
  created_at: string;
18624
18407
  created_by: string | null;
18625
- customer_id: string | null;
18626
- customer_name: string | null;
18627
- dynamic_fields: Json;
18628
- estimated_minutes: number;
18408
+ entry_date: string;
18409
+ hours: number;
18629
18410
  id: string;
18411
+ kind: string;
18412
+ monteur_id: string;
18630
18413
  note: string | null;
18631
- quote_number: string | null;
18632
- status: string;
18633
- title: string;
18634
- total_excl_cents: number;
18635
- total_incl_cents: number;
18414
+ source: string;
18415
+ travel_km: number;
18636
18416
  updated_at: string;
18637
- valid_until: string | null;
18638
- vat_percentage: number;
18417
+ werkbon_id: string | null;
18639
18418
  };
18640
18419
  Insert: {
18641
18420
  created_at?: string;
18642
18421
  created_by?: string | null;
18643
- customer_id?: string | null;
18644
- customer_name?: string | null;
18645
- dynamic_fields?: Json;
18646
- estimated_minutes?: number;
18422
+ entry_date: string;
18423
+ hours?: number;
18647
18424
  id?: string;
18425
+ kind?: string;
18426
+ monteur_id: string;
18648
18427
  note?: string | null;
18649
- quote_number?: string | null;
18650
- status?: string;
18651
- title?: string;
18652
- total_excl_cents?: number;
18653
- total_incl_cents?: number;
18428
+ source?: string;
18429
+ travel_km?: number;
18654
18430
  updated_at?: string;
18655
- valid_until?: string | null;
18656
- vat_percentage?: number;
18431
+ werkbon_id?: string | null;
18657
18432
  };
18658
18433
  Update: {
18659
18434
  created_at?: string;
18660
18435
  created_by?: string | null;
18661
- customer_id?: string | null;
18662
- customer_name?: string | null;
18663
- dynamic_fields?: Json;
18664
- estimated_minutes?: number;
18436
+ entry_date?: string;
18437
+ hours?: number;
18665
18438
  id?: string;
18439
+ kind?: string;
18440
+ monteur_id?: string;
18666
18441
  note?: string | null;
18667
- quote_number?: string | null;
18668
- status?: string;
18669
- title?: string;
18670
- total_excl_cents?: number;
18671
- total_incl_cents?: number;
18442
+ source?: string;
18443
+ travel_km?: number;
18672
18444
  updated_at?: string;
18673
- valid_until?: string | null;
18674
- vat_percentage?: number;
18445
+ werkbon_id?: string | null;
18675
18446
  };
18676
18447
  Relationships: [
18677
18448
  {
18678
- foreignKeyName: "uren_offertes_customer_id_fkey";
18679
- columns: ["customer_id"];
18449
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
18450
+ columns: ["werkbon_id"];
18680
18451
  isOneToOne: false;
18681
- referencedRelation: "itk_customers";
18452
+ referencedRelation: "werkbonnen";
18682
18453
  referencedColumns: ["id"];
18683
18454
  }
18684
18455
  ];
18685
18456
  };
18457
+ uren_exports: {
18458
+ Row: {
18459
+ created_at: string;
18460
+ created_by: string | null;
18461
+ file_name: string | null;
18462
+ id: string;
18463
+ monteur_ids: string[];
18464
+ period_end: string;
18465
+ period_start: string;
18466
+ row_count: number;
18467
+ };
18468
+ Insert: {
18469
+ created_at?: string;
18470
+ created_by?: string | null;
18471
+ file_name?: string | null;
18472
+ id?: string;
18473
+ monteur_ids?: string[];
18474
+ period_end: string;
18475
+ period_start: string;
18476
+ row_count?: number;
18477
+ };
18478
+ Update: {
18479
+ created_at?: string;
18480
+ created_by?: string | null;
18481
+ file_name?: string | null;
18482
+ id?: string;
18483
+ monteur_ids?: string[];
18484
+ period_end?: string;
18485
+ period_start?: string;
18486
+ row_count?: number;
18487
+ };
18488
+ Relationships: [];
18489
+ };
18686
18490
  uren_settings: {
18687
18491
  Row: {
18688
18492
  break_minutes: number;
@@ -20406,6 +20210,39 @@ export type Database = {
20406
20210
  };
20407
20211
  Relationships: [];
20408
20212
  };
20213
+ planning_overview: {
20214
+ Row: {
20215
+ assigned_monteur_id: string | null;
20216
+ assistants: Json | null;
20217
+ budget_mandate_cents: number | null;
20218
+ created_at: string | null;
20219
+ created_by: string | null;
20220
+ customer_id: string | null;
20221
+ customer_name: string | null;
20222
+ duration_minutes: number | null;
20223
+ end_at: string | null;
20224
+ id: string | null;
20225
+ needs_detail_review: boolean | null;
20226
+ notes: string | null;
20227
+ project_number: string | null;
20228
+ review_reasons: string[] | null;
20229
+ start_at: string | null;
20230
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
20231
+ updated_at: string | null;
20232
+ viewer_role: string | null;
20233
+ werkbon_id: string | null;
20234
+ work_address: string | null;
20235
+ };
20236
+ Relationships: [
20237
+ {
20238
+ foreignKeyName: "planning_items_werkbon_id_fkey";
20239
+ columns: ["werkbon_id"];
20240
+ isOneToOne: false;
20241
+ referencedRelation: "werkbonnen";
20242
+ referencedColumns: ["id"];
20243
+ }
20244
+ ];
20245
+ };
20409
20246
  product_group_stock_view: {
20410
20247
  Row: {
20411
20248
  item_count: number | null;
@@ -21020,6 +20857,18 @@ export type Database = {
21020
20857
  Args: never;
21021
20858
  Returns: number;
21022
20859
  };
20860
+ calculate_floriday_desired_stock: {
20861
+ Args: {
20862
+ p_connection_id: string;
20863
+ p_product_id: string;
20864
+ };
20865
+ Returns: {
20866
+ desired_availability: boolean;
20867
+ desired_quantity: number;
20868
+ erp_available: number;
20869
+ stock_mode: string;
20870
+ }[];
20871
+ };
21023
20872
  calculate_layer_stock: {
21024
20873
  Args: {
21025
20874
  p_product_id: string;
@@ -21114,6 +20963,7 @@ export type Database = {
21114
20963
  attempts: number;
21115
20964
  connection_id: string;
21116
20965
  created_at: string;
20966
+ dead_lettered_at: string | null;
21117
20967
  desired_available: boolean | null;
21118
20968
  gateway_attempt_id: string | null;
21119
20969
  id: string;
@@ -21122,9 +20972,13 @@ export type Database = {
21122
20972
  locked_by: string | null;
21123
20973
  next_attempt_at: string;
21124
20974
  number_of_pieces: number;
20975
+ product_id: string | null;
21125
20976
  sent_at: string | null;
21126
20977
  status: string;
20978
+ stock_mode: string | null;
21127
20979
  superseded_by: string | null;
20980
+ target_week: number | null;
20981
+ target_year: number | null;
21128
20982
  trade_item_id: string;
21129
20983
  updated_at: string;
21130
20984
  user_id: string;
@@ -21605,6 +21459,24 @@ export type Database = {
21605
21459
  };
21606
21460
  Returns: string;
21607
21461
  };
21462
+ floriday_capture_stock_snapshot: {
21463
+ Args: never;
21464
+ Returns: number;
21465
+ };
21466
+ floriday_cleanup_stock_queue_v2: {
21467
+ Args: never;
21468
+ Returns: undefined;
21469
+ };
21470
+ floriday_compact_stock_snapshots: {
21471
+ Args: never;
21472
+ Returns: undefined;
21473
+ };
21474
+ floriday_default_owner: {
21475
+ Args: {
21476
+ p_connection_id: string;
21477
+ };
21478
+ Returns: string;
21479
+ };
21608
21480
  floriday_effective_price: {
21609
21481
  Args: {
21610
21482
  _buyer_id: string;
@@ -21622,6 +21494,34 @@ export type Database = {
21622
21494
  source_id: string;
21623
21495
  }[];
21624
21496
  };
21497
+ floriday_fill_publish_horizon: {
21498
+ Args: never;
21499
+ Returns: number;
21500
+ };
21501
+ floriday_ingest_sales_orders: {
21502
+ Args: {
21503
+ p_limit?: number;
21504
+ };
21505
+ Returns: number;
21506
+ };
21507
+ floriday_publish_horizon_weeks: {
21508
+ Args: never;
21509
+ Returns: number;
21510
+ };
21511
+ floriday_recompute_inventory: {
21512
+ Args: {
21513
+ p_connection_id: string;
21514
+ p_force?: boolean;
21515
+ p_product_id: string;
21516
+ };
21517
+ Returns: undefined;
21518
+ };
21519
+ floriday_requeue_dead_letters: {
21520
+ Args: {
21521
+ p_connection_id?: string;
21522
+ };
21523
+ Returns: number;
21524
+ };
21625
21525
  format_cart_number: {
21626
21526
  Args: {
21627
21527
  p_pick_date: string;
@@ -21801,42 +21701,167 @@ export type Database = {
21801
21701
  ordered_at: string;
21802
21702
  }[];
21803
21703
  };
21804
- get_or_assign_floriday_order_number: {
21704
+ get_or_assign_floriday_order_number: {
21705
+ Args: {
21706
+ p_floriday_id: string;
21707
+ };
21708
+ Returns: string;
21709
+ };
21710
+ get_product_group_available_stock: {
21711
+ Args: {
21712
+ p_group_id: string;
21713
+ };
21714
+ Returns: number;
21715
+ };
21716
+ get_room_busy_windows: {
21717
+ Args: {
21718
+ p_from: string;
21719
+ p_to: string;
21720
+ };
21721
+ Returns: {
21722
+ end_time: string;
21723
+ room_id: string;
21724
+ start_time: string;
21725
+ status: string;
21726
+ }[];
21727
+ };
21728
+ get_twinfield_cron_jobs: {
21729
+ Args: never;
21730
+ Returns: {
21731
+ active: boolean;
21732
+ jobname: string;
21733
+ schedule: string;
21734
+ url: string;
21735
+ }[];
21736
+ };
21737
+ get_user_tenant_id: {
21738
+ Args: never;
21739
+ Returns: string;
21740
+ };
21741
+ handover_get: {
21742
+ Args: {
21743
+ _module_id: string;
21744
+ };
21745
+ Returns: Json;
21746
+ };
21747
+ handover_kern_naam: {
21748
+ Args: {
21749
+ _naam: string;
21750
+ };
21751
+ Returns: string;
21752
+ };
21753
+ handover_ketenmodel: {
21754
+ Args: never;
21755
+ Returns: Json;
21756
+ };
21757
+ handover_kruisconflicten: {
21758
+ Args: never;
21759
+ Returns: Json;
21760
+ };
21761
+ handover_list: {
21762
+ Args: never;
21763
+ Returns: Json;
21764
+ };
21765
+ handover_mag_schrijven: {
21766
+ Args: {
21767
+ _module_id: string;
21768
+ };
21769
+ Returns: boolean;
21770
+ };
21771
+ handover_norm_naam: {
21772
+ Args: {
21773
+ _naam: string;
21774
+ };
21775
+ Returns: string;
21776
+ };
21777
+ handover_publish: {
21778
+ Args: {
21779
+ _bevindingen?: string;
21780
+ _bezit_tabellen?: string[];
21781
+ _conflicten_snapshot?: Json;
21782
+ _contractfuncties?: string[];
21783
+ _inhoud_md: string;
21784
+ _module_id: string;
21785
+ _module_titel: string;
21786
+ _ontbrekende_contracten?: string[];
21787
+ _samenvatting?: string;
21788
+ };
21789
+ Returns: number;
21790
+ };
21791
+ handover_publish_via_token: {
21792
+ Args: {
21793
+ _bevindingen?: string;
21794
+ _bezit_tabellen?: string[];
21795
+ _conflicten_snapshot?: Json;
21796
+ _contractfuncties?: string[];
21797
+ _inhoud_md: string;
21798
+ _module_id: string;
21799
+ _module_titel: string;
21800
+ _ontbrekende_contracten?: string[];
21801
+ _samenvatting?: string;
21802
+ _token_hash: string;
21803
+ };
21804
+ Returns: number;
21805
+ };
21806
+ handover_status: {
21807
+ Args: never;
21808
+ Returns: Json;
21809
+ };
21810
+ handover_synonym_kern: {
21811
+ Args: {
21812
+ _naam: string;
21813
+ };
21814
+ Returns: string;
21815
+ };
21816
+ handover_token_intrekken: {
21817
+ Args: {
21818
+ _id: string;
21819
+ };
21820
+ Returns: boolean;
21821
+ };
21822
+ handover_token_lijst: {
21823
+ Args: never;
21824
+ Returns: Json;
21825
+ };
21826
+ handover_token_maken: {
21805
21827
  Args: {
21806
- p_floriday_id: string;
21828
+ _label?: string;
21829
+ _module_id: string;
21807
21830
  };
21808
21831
  Returns: string;
21809
21832
  };
21810
- get_product_group_available_stock: {
21833
+ handover_update: {
21811
21834
  Args: {
21812
- p_group_id: string;
21835
+ _bezit_tabellen?: string[];
21836
+ _contractfuncties?: string[];
21837
+ _herzieningstermijn_dagen?: number;
21838
+ _inhoud_md?: string;
21839
+ _module_id: string;
21840
+ _module_titel?: string;
21841
+ _samenvatting?: string;
21842
+ _versie: number;
21813
21843
  };
21814
- Returns: number;
21815
- };
21816
- get_room_busy_windows: {
21844
+ Returns: boolean;
21845
+ } | {
21817
21846
  Args: {
21818
- p_from: string;
21819
- p_to: string;
21847
+ _bevindingen?: string;
21848
+ _bezit_tabellen?: string[];
21849
+ _contractfuncties?: string[];
21850
+ _herzieningstermijn_dagen?: number;
21851
+ _inhoud_md?: string;
21852
+ _module_id: string;
21853
+ _module_titel?: string;
21854
+ _ontbrekende_contracten?: string[];
21855
+ _samenvatting?: string;
21856
+ _versie: number;
21820
21857
  };
21821
- Returns: {
21822
- end_time: string;
21823
- room_id: string;
21824
- start_time: string;
21825
- status: string;
21826
- }[];
21827
- };
21828
- get_twinfield_cron_jobs: {
21829
- Args: never;
21830
- Returns: {
21831
- active: boolean;
21832
- jobname: string;
21833
- schedule: string;
21834
- url: string;
21835
- }[];
21858
+ Returns: boolean;
21836
21859
  };
21837
- get_user_tenant_id: {
21838
- Args: never;
21839
- Returns: string;
21860
+ handover_versies: {
21861
+ Args: {
21862
+ _module_id: string;
21863
+ };
21864
+ Returns: Json;
21840
21865
  };
21841
21866
  has_module_permission: {
21842
21867
  Args: {
@@ -21857,6 +21882,25 @@ export type Database = {
21857
21882
  Args: never;
21858
21883
  Returns: boolean;
21859
21884
  };
21885
+ instructie_get: {
21886
+ Args: {
21887
+ _sleutel: string;
21888
+ };
21889
+ Returns: Json;
21890
+ };
21891
+ instructie_list: {
21892
+ Args: never;
21893
+ Returns: Json;
21894
+ };
21895
+ instructie_publish: {
21896
+ Args: {
21897
+ _inhoud_md: string;
21898
+ _sleutel: string;
21899
+ _titel: string;
21900
+ _toelichting?: string;
21901
+ };
21902
+ Returns: number;
21903
+ };
21860
21904
  invoice_create_from_source: {
21861
21905
  Args: {
21862
21906
  _payload?: Json;
@@ -22081,6 +22125,12 @@ export type Database = {
22081
22125
  };
22082
22126
  Returns: boolean;
22083
22127
  };
22128
+ logistics_barcode_lookup: {
22129
+ Args: {
22130
+ p_barcode: string;
22131
+ };
22132
+ Returns: Json;
22133
+ };
22084
22134
  logistics_buffer_criteria: {
22085
22135
  Args: {
22086
22136
  p_settings: Json;
@@ -22141,6 +22191,12 @@ export type Database = {
22141
22191
  };
22142
22192
  Returns: number;
22143
22193
  };
22194
+ logistics_cart_barcode_value: {
22195
+ Args: {
22196
+ _cart_id: string;
22197
+ };
22198
+ Returns: string;
22199
+ };
22144
22200
  logistics_cart_index: {
22145
22201
  Args: {
22146
22202
  p_from?: string;
@@ -22150,6 +22206,10 @@ export type Database = {
22150
22206
  cart_id: string;
22151
22207
  cart_index: number;
22152
22208
  cart_label: string;
22209
+ delivery_date: string;
22210
+ is_announced: boolean;
22211
+ is_controlled: boolean;
22212
+ is_printed: boolean;
22153
22213
  is_shared: boolean;
22154
22214
  order_number: string;
22155
22215
  order_source: string;
@@ -22160,6 +22220,12 @@ export type Database = {
22160
22220
  task_status: string;
22161
22221
  }[];
22162
22222
  };
22223
+ logistics_cart_slip_plan: {
22224
+ Args: {
22225
+ p_order_id: string;
22226
+ };
22227
+ Returns: Json;
22228
+ };
22163
22229
  logistics_check_order_allowed: {
22164
22230
  Args: {
22165
22231
  p_lines: Json;
@@ -22312,11 +22378,15 @@ export type Database = {
22312
22378
  Args: never;
22313
22379
  Returns: {
22314
22380
  agenda_carts: number;
22381
+ announced_carts: number;
22315
22382
  control_carts: number;
22383
+ delivery_carts: number;
22316
22384
  ok: boolean;
22317
22385
  orphan_tasks: number;
22318
22386
  pick_date: string;
22319
22387
  raw_carts: number;
22388
+ sales_carts: number;
22389
+ station_carts: number;
22320
22390
  }[];
22321
22391
  };
22322
22392
  logistics_delay_customer_email: {
@@ -22332,12 +22402,35 @@ export type Database = {
22332
22402
  subject: string;
22333
22403
  }[];
22334
22404
  };
22405
+ logistics_delivery_agenda: {
22406
+ Args: {
22407
+ p_from?: string;
22408
+ p_to?: string;
22409
+ };
22410
+ Returns: {
22411
+ announced_count: number;
22412
+ cart_count: number;
22413
+ controlled_count: number;
22414
+ delivery_date: string;
22415
+ order_count: number;
22416
+ orders: Json;
22417
+ plant_count: number;
22418
+ printed_count: number;
22419
+ }[];
22420
+ };
22335
22421
  logistics_document_layout: {
22336
22422
  Args: {
22337
22423
  _document_code: string;
22338
22424
  };
22339
22425
  Returns: Json;
22340
22426
  };
22427
+ logistics_document_layout_v2: {
22428
+ Args: {
22429
+ _document_code: string;
22430
+ _is_partial?: boolean;
22431
+ };
22432
+ Returns: Json;
22433
+ };
22341
22434
  logistics_document_station: {
22342
22435
  Args: {
22343
22436
  _document_code: string;
@@ -22363,6 +22456,12 @@ export type Database = {
22363
22456
  };
22364
22457
  Returns: Json;
22365
22458
  };
22459
+ logistics_ensure_cart_barcode: {
22460
+ Args: {
22461
+ _cart_id: string;
22462
+ };
22463
+ Returns: string;
22464
+ };
22366
22465
  logistics_fail_task: {
22367
22466
  Args: {
22368
22467
  p_error: string;
@@ -22408,6 +22507,16 @@ export type Database = {
22408
22507
  isSetofReturn: false;
22409
22508
  };
22410
22509
  };
22510
+ logistics_floriday_cart_plan: {
22511
+ Args: {
22512
+ p_order_id: string;
22513
+ };
22514
+ Returns: {
22515
+ carrier_type: string;
22516
+ idx: number;
22517
+ packages: number;
22518
+ }[];
22519
+ };
22411
22520
  logistics_floriday_claim_pushes: {
22412
22521
  Args: {
22413
22522
  _lease_seconds?: number;
@@ -22613,6 +22722,13 @@ export type Database = {
22613
22722
  };
22614
22723
  Returns: undefined;
22615
22724
  };
22725
+ logistics_plan_floriday_order: {
22726
+ Args: {
22727
+ p_buffer_id?: string;
22728
+ p_order_id: string;
22729
+ };
22730
+ Returns: number;
22731
+ };
22616
22732
  logistics_plan_impact_orders: {
22617
22733
  Args: {
22618
22734
  p_order_id: string;
@@ -22806,6 +22922,14 @@ export type Database = {
22806
22922
  };
22807
22923
  Returns: string;
22808
22924
  };
22925
+ logistics_shipping_note_from_barcode: {
22926
+ Args: {
22927
+ p_allow_reprint?: boolean;
22928
+ p_barcode: string;
22929
+ p_station_id?: string;
22930
+ };
22931
+ Returns: Json;
22932
+ };
22809
22933
  logistics_supersede_stale_tasks: {
22810
22934
  Args: {
22811
22935
  p_keep: string[];
@@ -23027,6 +23151,7 @@ export type Database = {
23027
23151
  print_job_id: string | null;
23028
23152
  printed_at: string | null;
23029
23153
  printed_by: string | null;
23154
+ printed_cart_ids: Json;
23030
23155
  printer_id: string | null;
23031
23156
  priority: number;
23032
23157
  reference: string | null;
@@ -23076,6 +23201,7 @@ export type Database = {
23076
23201
  print_job_id: string | null;
23077
23202
  printed_at: string | null;
23078
23203
  printed_by: string | null;
23204
+ printed_cart_ids: Json;
23079
23205
  printer_id: string | null;
23080
23206
  priority: number;
23081
23207
  reference: string | null;
@@ -23130,6 +23256,56 @@ export type Database = {
23130
23256
  print_job_id: string | null;
23131
23257
  printed_at: string | null;
23132
23258
  printed_by: string | null;
23259
+ printed_cart_ids: Json;
23260
+ printer_id: string | null;
23261
+ priority: number;
23262
+ reference: string | null;
23263
+ route: string | null;
23264
+ screen_id: string | null;
23265
+ station_id: string | null;
23266
+ status_id: string | null;
23267
+ updated_at: string;
23268
+ warnings: Json;
23269
+ };
23270
+ SetofOptions: {
23271
+ from: "*";
23272
+ to: "pick_queue";
23273
+ isOneToOne: true;
23274
+ isSetofReturn: false;
23275
+ };
23276
+ };
23277
+ pick_complete_print_cart: {
23278
+ Args: {
23279
+ _cart_id: string;
23280
+ _printer_id: string;
23281
+ _queue_item_id: string;
23282
+ _session_id: string;
23283
+ };
23284
+ Returns: {
23285
+ announced_at: string;
23286
+ assigned_user_id: string | null;
23287
+ barcode: string | null;
23288
+ cancelled_at: string | null;
23289
+ cart_count: number;
23290
+ completed_at: string | null;
23291
+ country_code: string | null;
23292
+ created_at: string;
23293
+ customer_name: string | null;
23294
+ delivery_address: string | null;
23295
+ document_number: string | null;
23296
+ document_type_id: string | null;
23297
+ due_at: string | null;
23298
+ id: string;
23299
+ is_urgent: boolean;
23300
+ line_count: number;
23301
+ order_number: string | null;
23302
+ order_type: string | null;
23303
+ payload: Json;
23304
+ print_count: number;
23305
+ print_job_id: string | null;
23306
+ printed_at: string | null;
23307
+ printed_by: string | null;
23308
+ printed_cart_ids: Json;
23133
23309
  printer_id: string | null;
23134
23310
  priority: number;
23135
23311
  reference: string | null;
@@ -23173,6 +23349,15 @@ export type Database = {
23173
23349
  _session_id?: string;
23174
23350
  };
23175
23351
  Returns: string;
23352
+ } | {
23353
+ Args: {
23354
+ _cart_id: string;
23355
+ _is_herprint: boolean;
23356
+ _printer_id: string;
23357
+ _queue_item_id: string;
23358
+ _session_id: string;
23359
+ };
23360
+ Returns: string;
23176
23361
  };
23177
23362
  pick_order_context: {
23178
23363
  Args: {
@@ -23253,6 +23438,54 @@ export type Database = {
23253
23438
  print_job_id: string | null;
23254
23439
  printed_at: string | null;
23255
23440
  printed_by: string | null;
23441
+ printed_cart_ids: Json;
23442
+ printer_id: string | null;
23443
+ priority: number;
23444
+ reference: string | null;
23445
+ route: string | null;
23446
+ screen_id: string | null;
23447
+ station_id: string | null;
23448
+ status_id: string | null;
23449
+ updated_at: string;
23450
+ warnings: Json;
23451
+ };
23452
+ SetofOptions: {
23453
+ from: "*";
23454
+ to: "pick_queue";
23455
+ isOneToOne: true;
23456
+ isSetofReturn: false;
23457
+ };
23458
+ } | {
23459
+ Args: {
23460
+ _cart_id?: string;
23461
+ _queue_item_id: string;
23462
+ _session_id: string;
23463
+ };
23464
+ Returns: {
23465
+ announced_at: string;
23466
+ assigned_user_id: string | null;
23467
+ barcode: string | null;
23468
+ cancelled_at: string | null;
23469
+ cart_count: number;
23470
+ completed_at: string | null;
23471
+ country_code: string | null;
23472
+ created_at: string;
23473
+ customer_name: string | null;
23474
+ delivery_address: string | null;
23475
+ document_number: string | null;
23476
+ document_type_id: string | null;
23477
+ due_at: string | null;
23478
+ id: string;
23479
+ is_urgent: boolean;
23480
+ line_count: number;
23481
+ order_number: string | null;
23482
+ order_type: string | null;
23483
+ payload: Json;
23484
+ print_count: number;
23485
+ print_job_id: string | null;
23486
+ printed_at: string | null;
23487
+ printed_by: string | null;
23488
+ printed_cart_ids: Json;
23256
23489
  printer_id: string | null;
23257
23490
  priority: number;
23258
23491
  reference: string | null;
@@ -23365,6 +23598,66 @@ export type Database = {
23365
23598
  };
23366
23599
  Returns: undefined;
23367
23600
  };
23601
+ planning_cancel_item: {
23602
+ Args: {
23603
+ _id: string;
23604
+ };
23605
+ Returns: undefined;
23606
+ };
23607
+ planning_list: {
23608
+ Args: {
23609
+ _from: string;
23610
+ _to: string;
23611
+ };
23612
+ Returns: {
23613
+ assigned_monteur_id: string | null;
23614
+ assistants: Json | null;
23615
+ budget_mandate_cents: number | null;
23616
+ created_at: string | null;
23617
+ created_by: string | null;
23618
+ customer_id: string | null;
23619
+ customer_name: string | null;
23620
+ duration_minutes: number | null;
23621
+ end_at: string | null;
23622
+ id: string | null;
23623
+ needs_detail_review: boolean | null;
23624
+ notes: string | null;
23625
+ project_number: string | null;
23626
+ review_reasons: string[] | null;
23627
+ start_at: string | null;
23628
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
23629
+ updated_at: string | null;
23630
+ viewer_role: string | null;
23631
+ werkbon_id: string | null;
23632
+ work_address: string | null;
23633
+ }[];
23634
+ SetofOptions: {
23635
+ from: "*";
23636
+ to: "planning_overview";
23637
+ isOneToOne: false;
23638
+ isSetofReturn: true;
23639
+ };
23640
+ };
23641
+ planning_set_assistants: {
23642
+ Args: {
23643
+ _monteur_ids: string[];
23644
+ _planning_item_id: string;
23645
+ };
23646
+ Returns: undefined;
23647
+ };
23648
+ planning_upsert_item: {
23649
+ Args: {
23650
+ _assigned_monteur_id: string;
23651
+ _end_at: string;
23652
+ _notes?: string;
23653
+ _start_at: string;
23654
+ _werkbon_id: string;
23655
+ };
23656
+ Returns: {
23657
+ action: string;
23658
+ id: string;
23659
+ }[];
23660
+ };
23368
23661
  print_preview_toestaan: {
23369
23662
  Args: {
23370
23663
  _max?: number;
@@ -23946,6 +24239,26 @@ export type Database = {
23946
24239
  };
23947
24240
  Returns: string[];
23948
24241
  };
24242
+ start_time_log_at: {
24243
+ Args: {
24244
+ p_clicked_at?: string;
24245
+ p_employee_id: string;
24246
+ p_start_lat?: number;
24247
+ p_start_lng?: number;
24248
+ p_type: string;
24249
+ p_work_order_id?: string;
24250
+ };
24251
+ Returns: Json;
24252
+ };
24253
+ stop_time_log: {
24254
+ Args: {
24255
+ p_employee_id: string;
24256
+ p_end_lat?: number;
24257
+ p_end_lng?: number;
24258
+ p_end_time: string;
24259
+ };
24260
+ Returns: Json;
24261
+ };
23949
24262
  switch_time_log: {
23950
24263
  Args: {
23951
24264
  p_employee_id: string;
@@ -24141,9 +24454,9 @@ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
24141
24454
  type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
24142
24455
  export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
24143
24456
  schema: keyof DatabaseWithoutInternals;
24144
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
24457
+ }, TableName extends (DefaultSchemaTableNameOrOptions extends {
24145
24458
  schema: keyof DatabaseWithoutInternals;
24146
- } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
24459
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never) = never> = DefaultSchemaTableNameOrOptions extends {
24147
24460
  schema: keyof DatabaseWithoutInternals;
24148
24461
  } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
24149
24462
  Row: infer R;
@@ -24152,9 +24465,9 @@ export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
24152
24465
  } ? R : never : never;
24153
24466
  export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
24154
24467
  schema: keyof DatabaseWithoutInternals;
24155
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
24468
+ }, TableName extends (DefaultSchemaTableNameOrOptions extends {
24156
24469
  schema: keyof DatabaseWithoutInternals;
24157
- } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
24470
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never) = never> = DefaultSchemaTableNameOrOptions extends {
24158
24471
  schema: keyof DatabaseWithoutInternals;
24159
24472
  } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
24160
24473
  Insert: infer I;
@@ -24163,9 +24476,9 @@ export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSc
24163
24476
  } ? I : never : never;
24164
24477
  export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
24165
24478
  schema: keyof DatabaseWithoutInternals;
24166
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
24479
+ }, TableName extends (DefaultSchemaTableNameOrOptions extends {
24167
24480
  schema: keyof DatabaseWithoutInternals;
24168
- } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
24481
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never) = never> = DefaultSchemaTableNameOrOptions extends {
24169
24482
  schema: keyof DatabaseWithoutInternals;
24170
24483
  } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
24171
24484
  Update: infer U;
@@ -24174,16 +24487,16 @@ export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSc
24174
24487
  } ? U : never : never;
24175
24488
  export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
24176
24489
  schema: keyof DatabaseWithoutInternals;
24177
- }, EnumName extends DefaultSchemaEnumNameOrOptions extends {
24490
+ }, EnumName extends (DefaultSchemaEnumNameOrOptions extends {
24178
24491
  schema: keyof DatabaseWithoutInternals;
24179
- } ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
24492
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never) = never> = DefaultSchemaEnumNameOrOptions extends {
24180
24493
  schema: keyof DatabaseWithoutInternals;
24181
24494
  } ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
24182
24495
  export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
24183
24496
  schema: keyof DatabaseWithoutInternals;
24184
- }, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
24497
+ }, CompositeTypeName extends (PublicCompositeTypeNameOrOptions extends {
24185
24498
  schema: keyof DatabaseWithoutInternals;
24186
- } ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
24499
+ } ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never) = never> = PublicCompositeTypeNameOrOptions extends {
24187
24500
  schema: keyof DatabaseWithoutInternals;
24188
24501
  } ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
24189
24502
  export declare const Constants: {