@flowselections/logistiek-engine 1.0.25 → 1.0.26

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 (46) 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/floridayDocuments.functions.d.ts +3054 -2055
  22. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floridayPush.functions.d.ts +1048 -715
  24. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5105 -3465
  26. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  28. package/dist-lib/lib/logisticsPlanner.js +35 -13
  29. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +1983 -1317
  30. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1048 -715
  32. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/modulePrompts.d.ts +19 -3
  34. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  35. package/dist-lib/lib/modulePrompts.js +1636 -1298
  36. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  37. package/dist-lib/lib/ruleEngineSchema.js +21 -4
  38. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  39. package/dist-lib/lib/ruleEngineWizard.js +3 -1
  40. package/package.json +1 -1
  41. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +0 -2
  42. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +0 -1
  43. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +0 -41
  44. package/dist-lib/integrations/supabase/client.d.ts +0 -20293
  45. package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
  46. package/dist-lib/integrations/supabase/client.js +0 -13
@@ -5982,10 +5982,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5982
5982
  };
5983
5983
  floriday_connections: {
5984
5984
  Row: {
5985
- access_token: string | null;
5986
5985
  api_key: string;
5987
- client_id: string;
5988
- client_secret: string;
5989
5986
  created_at: string;
5990
5987
  customers_endpoint: string | null;
5991
5988
  environment: string;
@@ -6000,10 +5997,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6000
5997
  updated_at: string;
6001
5998
  };
6002
5999
  Insert: {
6003
- access_token?: string | null;
6004
6000
  api_key: string;
6005
- client_id: string;
6006
- client_secret: string;
6007
6001
  created_at?: string;
6008
6002
  customers_endpoint?: string | null;
6009
6003
  environment: string;
@@ -6018,10 +6012,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6018
6012
  updated_at?: string;
6019
6013
  };
6020
6014
  Update: {
6021
- access_token?: string | null;
6022
6015
  api_key?: string;
6023
- client_id?: string;
6024
- client_secret?: string;
6025
6016
  created_at?: string;
6026
6017
  customers_endpoint?: string | null;
6027
6018
  environment?: string;
@@ -6105,6 +6096,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6105
6096
  attempts: number;
6106
6097
  connection_id: string;
6107
6098
  created_at: string;
6099
+ dead_lettered_at: string | null;
6108
6100
  desired_available: boolean | null;
6109
6101
  gateway_attempt_id: string | null;
6110
6102
  id: string;
@@ -6113,9 +6105,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6113
6105
  locked_by: string | null;
6114
6106
  next_attempt_at: string;
6115
6107
  number_of_pieces: number;
6108
+ product_id: string | null;
6116
6109
  sent_at: string | null;
6117
6110
  status: string;
6111
+ stock_mode: string | null;
6118
6112
  superseded_by: string | null;
6113
+ target_week: number | null;
6114
+ target_year: number | null;
6119
6115
  trade_item_id: string;
6120
6116
  updated_at: string;
6121
6117
  user_id: string;
@@ -6124,6 +6120,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6124
6120
  attempts?: number;
6125
6121
  connection_id: string;
6126
6122
  created_at?: string;
6123
+ dead_lettered_at?: string | null;
6127
6124
  desired_available?: boolean | null;
6128
6125
  gateway_attempt_id?: string | null;
6129
6126
  id?: string;
@@ -6132,9 +6129,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6132
6129
  locked_by?: string | null;
6133
6130
  next_attempt_at?: string;
6134
6131
  number_of_pieces?: number;
6132
+ product_id?: string | null;
6135
6133
  sent_at?: string | null;
6136
6134
  status?: string;
6135
+ stock_mode?: string | null;
6137
6136
  superseded_by?: string | null;
6137
+ target_week?: number | null;
6138
+ target_year?: number | null;
6138
6139
  trade_item_id: string;
6139
6140
  updated_at?: string;
6140
6141
  user_id: string;
@@ -6143,6 +6144,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6143
6144
  attempts?: number;
6144
6145
  connection_id?: string;
6145
6146
  created_at?: string;
6147
+ dead_lettered_at?: string | null;
6146
6148
  desired_available?: boolean | null;
6147
6149
  gateway_attempt_id?: string | null;
6148
6150
  id?: string;
@@ -6151,9 +6153,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6151
6153
  locked_by?: string | null;
6152
6154
  next_attempt_at?: string;
6153
6155
  number_of_pieces?: number;
6156
+ product_id?: string | null;
6154
6157
  sent_at?: string | null;
6155
6158
  status?: string;
6159
+ stock_mode?: string | null;
6156
6160
  superseded_by?: string | null;
6161
+ target_week?: number | null;
6162
+ target_year?: number | null;
6157
6163
  trade_item_id?: string;
6158
6164
  updated_at?: string;
6159
6165
  user_id?: string;
@@ -6562,6 +6568,87 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6562
6568
  referencedColumns: ["id"];
6563
6569
  }];
6564
6570
  };
6571
+ floriday_inventory_settings: {
6572
+ Row: {
6573
+ buffer_quantity: number;
6574
+ connection_id: string;
6575
+ created_at: string;
6576
+ desired_availability: boolean;
6577
+ desired_quantity: number;
6578
+ fixed_quantity: number | null;
6579
+ floriday_trade_item_id: string | null;
6580
+ id: string;
6581
+ last_confirmed_at: string | null;
6582
+ last_enqueued_at: string | null;
6583
+ last_published_at: string | null;
6584
+ last_sync_error: string | null;
6585
+ manual_quantity: number | null;
6586
+ maximum_quantity: number | null;
6587
+ product_id: string;
6588
+ quantity_control: string;
6589
+ remote_available: boolean | null;
6590
+ remote_checked_at: string | null;
6591
+ remote_quantity: number | null;
6592
+ stock_mode: string;
6593
+ sync_status: string;
6594
+ updated_at: string;
6595
+ updated_by: string | null;
6596
+ user_id: string;
6597
+ };
6598
+ Insert: {
6599
+ buffer_quantity?: number;
6600
+ connection_id: string;
6601
+ created_at?: string;
6602
+ desired_availability?: boolean;
6603
+ desired_quantity?: number;
6604
+ fixed_quantity?: number | null;
6605
+ floriday_trade_item_id?: string | null;
6606
+ id?: string;
6607
+ last_confirmed_at?: string | null;
6608
+ last_enqueued_at?: string | null;
6609
+ last_published_at?: string | null;
6610
+ last_sync_error?: string | null;
6611
+ manual_quantity?: number | null;
6612
+ maximum_quantity?: number | null;
6613
+ product_id: string;
6614
+ quantity_control?: string;
6615
+ remote_available?: boolean | null;
6616
+ remote_checked_at?: string | null;
6617
+ remote_quantity?: number | null;
6618
+ stock_mode?: string;
6619
+ sync_status?: string;
6620
+ updated_at?: string;
6621
+ updated_by?: string | null;
6622
+ user_id: string;
6623
+ };
6624
+ Update: {
6625
+ buffer_quantity?: number;
6626
+ connection_id?: string;
6627
+ created_at?: string;
6628
+ desired_availability?: boolean;
6629
+ desired_quantity?: number;
6630
+ fixed_quantity?: number | null;
6631
+ floriday_trade_item_id?: string | null;
6632
+ id?: string;
6633
+ last_confirmed_at?: string | null;
6634
+ last_enqueued_at?: string | null;
6635
+ last_published_at?: string | null;
6636
+ last_sync_error?: string | null;
6637
+ manual_quantity?: number | null;
6638
+ maximum_quantity?: number | null;
6639
+ product_id?: string;
6640
+ quantity_control?: string;
6641
+ remote_available?: boolean | null;
6642
+ remote_checked_at?: string | null;
6643
+ remote_quantity?: number | null;
6644
+ stock_mode?: string;
6645
+ sync_status?: string;
6646
+ updated_at?: string;
6647
+ updated_by?: string | null;
6648
+ user_id?: string;
6649
+ };
6650
+ Relationships: [];
6651
+ };
6565
6652
  floriday_invoices_cache: {
6566
6653
  Row: {
6567
6654
  buyer_organization_id: string | null;
@@ -6850,6 +6937,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6850
6937
  };
6851
6938
  Relationships: [];
6852
6939
  };
6940
+ floriday_sales_order_ingest: {
6941
+ Row: {
6942
+ connection_id: string;
6943
+ created_at: string;
6944
+ id: string;
6945
+ impact: import("./types").Json;
6946
+ order_status: string | null;
6947
+ order_version: number;
6948
+ processed_at: string;
6949
+ sales_order_id: string;
6950
+ };
6951
+ Insert: {
6952
+ connection_id: string;
6953
+ created_at?: string;
6954
+ id?: string;
6955
+ impact?: import("./types").Json;
6956
+ order_status?: string | null;
6957
+ order_version?: number;
6958
+ processed_at?: string;
6959
+ sales_order_id: string;
6960
+ };
6961
+ Update: {
6962
+ connection_id?: string;
6963
+ created_at?: string;
6964
+ id?: string;
6965
+ impact?: import("./types").Json;
6966
+ order_status?: string | null;
6967
+ order_version?: number;
6968
+ processed_at?: string;
6969
+ sales_order_id?: string;
6970
+ };
6971
+ Relationships: [];
6972
+ };
6853
6973
  floriday_sales_strategies_cache: {
6854
6974
  Row: {
6855
6975
  connection_id: string;
@@ -6949,6 +7069,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6949
7069
  };
6950
7070
  Relationships: [];
6951
7071
  };
7072
+ floriday_sync_cursors: {
7073
+ Row: {
7074
+ connection_id: string;
7075
+ created_at: string;
7076
+ id: string;
7077
+ last_error: string | null;
7078
+ last_sync_at: string | null;
7079
+ resource_type: string;
7080
+ sequence_number: number;
7081
+ updated_at: string;
7082
+ };
7083
+ Insert: {
7084
+ connection_id: string;
7085
+ created_at?: string;
7086
+ id?: string;
7087
+ last_error?: string | null;
7088
+ last_sync_at?: string | null;
7089
+ resource_type: string;
7090
+ sequence_number?: number;
7091
+ updated_at?: string;
7092
+ };
7093
+ Update: {
7094
+ connection_id?: string;
7095
+ created_at?: string;
7096
+ id?: string;
7097
+ last_error?: string | null;
7098
+ last_sync_at?: string | null;
7099
+ resource_type?: string;
7100
+ sequence_number?: number;
7101
+ updated_at?: string;
7102
+ };
7103
+ Relationships: [];
7104
+ };
6952
7105
  floriday_sync_state: {
6953
7106
  Row: {
6954
7107
  connection_id: string;
@@ -7639,6 +7792,42 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7639
7792
  };
7640
7793
  Relationships: [];
7641
7794
  };
7795
+ inventory_stock_snapshots: {
7796
+ Row: {
7797
+ connection_id: string;
7798
+ created_at: string;
7799
+ erp_available_quantity: number;
7800
+ floriday_desired_quantity: number;
7801
+ floriday_remote_quantity: number | null;
7802
+ granularity: string;
7803
+ id: string;
7804
+ snapshot_at: string;
7805
+ user_id: string | null;
7806
+ };
7807
+ Insert: {
7808
+ connection_id: string;
7809
+ created_at?: string;
7810
+ erp_available_quantity?: number;
7811
+ floriday_desired_quantity?: number;
7812
+ floriday_remote_quantity?: number | null;
7813
+ granularity?: string;
7814
+ id?: string;
7815
+ snapshot_at?: string;
7816
+ user_id?: string | null;
7817
+ };
7818
+ Update: {
7819
+ connection_id?: string;
7820
+ created_at?: string;
7821
+ erp_available_quantity?: number;
7822
+ floriday_desired_quantity?: number;
7823
+ floriday_remote_quantity?: number | null;
7824
+ granularity?: string;
7825
+ id?: string;
7826
+ snapshot_at?: string;
7827
+ user_id?: string | null;
7828
+ };
7829
+ Relationships: [];
7830
+ };
7642
7831
  invoice_items: {
7643
7832
  Row: {
7644
7833
  created_at: string;
@@ -8147,13 +8336,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8147
8336
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8148
8337
  updated_at?: string;
8149
8338
  };
8150
- Relationships: [{
8151
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8152
- columns: ["legacy_customer_id"];
8153
- isOneToOne: false;
8154
- referencedRelation: "customers";
8155
- referencedColumns: ["id"];
8156
- }];
8339
+ Relationships: [];
8157
8340
  };
8158
8341
  itk_dynamic_fields: {
8159
8342
  Row: {
@@ -8185,6 +8368,180 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8185
8368
  };
8186
8369
  Relationships: [];
8187
8370
  };
8371
+ itk_handover_rechten: {
8372
+ Row: {
8373
+ created_at: string;
8374
+ id: string;
8375
+ module_id: string;
8376
+ rol: Database["public"]["Enums"]["app_role"] | null;
8377
+ updated_at: string;
8378
+ user_id: string | null;
8379
+ };
8380
+ Insert: {
8381
+ created_at?: string;
8382
+ id?: string;
8383
+ module_id: string;
8384
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8385
+ updated_at?: string;
8386
+ user_id?: string | null;
8387
+ };
8388
+ Update: {
8389
+ created_at?: string;
8390
+ id?: string;
8391
+ module_id?: string;
8392
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8393
+ updated_at?: string;
8394
+ user_id?: string | null;
8395
+ };
8396
+ Relationships: [];
8397
+ };
8398
+ itk_handover_tokens: {
8399
+ Row: {
8400
+ aangemaakt_door: string | null;
8401
+ created_at: string;
8402
+ id: string;
8403
+ is_actief: boolean;
8404
+ laatst_gebruikt_op: string | null;
8405
+ label: string;
8406
+ module_id: string;
8407
+ token_hash: string;
8408
+ updated_at: string;
8409
+ verloopt_op: string | null;
8410
+ };
8411
+ Insert: {
8412
+ aangemaakt_door?: string | null;
8413
+ created_at?: string;
8414
+ id?: string;
8415
+ is_actief?: boolean;
8416
+ laatst_gebruikt_op?: string | null;
8417
+ label?: string;
8418
+ module_id: string;
8419
+ token_hash: string;
8420
+ updated_at?: string;
8421
+ verloopt_op?: string | null;
8422
+ };
8423
+ Update: {
8424
+ aangemaakt_door?: string | null;
8425
+ created_at?: string;
8426
+ id?: string;
8427
+ is_actief?: boolean;
8428
+ laatst_gebruikt_op?: string | null;
8429
+ label?: string;
8430
+ module_id?: string;
8431
+ token_hash?: string;
8432
+ updated_at?: string;
8433
+ verloopt_op?: string | null;
8434
+ };
8435
+ Relationships: [];
8436
+ };
8437
+ itk_module_handovers: {
8438
+ Row: {
8439
+ bevindingen: string | null;
8440
+ bezit_tabellen: string[];
8441
+ conflicten_snapshot: import("./types").Json;
8442
+ contractfuncties: string[];
8443
+ created_at: string;
8444
+ eigenaar_module_id: string | null;
8445
+ gepubliceerd_door: string | null;
8446
+ gepubliceerd_op: string;
8447
+ herzieningstermijn_dagen: number;
8448
+ id: string;
8449
+ inhoud_md: string;
8450
+ is_actueel: boolean;
8451
+ module_id: string;
8452
+ module_titel: string;
8453
+ ontbrekende_contracten: string[];
8454
+ samenvatting: string | null;
8455
+ updated_at: string;
8456
+ versie: number;
8457
+ };
8458
+ Insert: {
8459
+ bevindingen?: string | null;
8460
+ bezit_tabellen?: string[];
8461
+ conflicten_snapshot?: import("./types").Json;
8462
+ contractfuncties?: string[];
8463
+ created_at?: string;
8464
+ eigenaar_module_id?: string | null;
8465
+ gepubliceerd_door?: string | null;
8466
+ gepubliceerd_op?: string;
8467
+ herzieningstermijn_dagen?: number;
8468
+ id?: string;
8469
+ inhoud_md: string;
8470
+ is_actueel?: boolean;
8471
+ module_id: string;
8472
+ module_titel: string;
8473
+ ontbrekende_contracten?: string[];
8474
+ samenvatting?: string | null;
8475
+ updated_at?: string;
8476
+ versie?: number;
8477
+ };
8478
+ Update: {
8479
+ bevindingen?: string | null;
8480
+ bezit_tabellen?: string[];
8481
+ conflicten_snapshot?: import("./types").Json;
8482
+ contractfuncties?: string[];
8483
+ created_at?: string;
8484
+ eigenaar_module_id?: string | null;
8485
+ gepubliceerd_door?: string | null;
8486
+ gepubliceerd_op?: string;
8487
+ herzieningstermijn_dagen?: number;
8488
+ id?: string;
8489
+ inhoud_md?: string;
8490
+ is_actueel?: boolean;
8491
+ module_id?: string;
8492
+ module_titel?: string;
8493
+ ontbrekende_contracten?: string[];
8494
+ samenvatting?: string | null;
8495
+ updated_at?: string;
8496
+ versie?: number;
8497
+ };
8498
+ Relationships: [];
8499
+ };
8500
+ itk_module_instructies: {
8501
+ Row: {
8502
+ created_at: string;
8503
+ eigenaar_module_id: string;
8504
+ gepubliceerd_door: string | null;
8505
+ gepubliceerd_op: string;
8506
+ id: string;
8507
+ inhoud_md: string;
8508
+ is_actueel: boolean;
8509
+ sleutel: string;
8510
+ titel: string;
8511
+ toelichting: string | null;
8512
+ updated_at: string;
8513
+ versie: number;
8514
+ };
8515
+ Insert: {
8516
+ created_at?: string;
8517
+ eigenaar_module_id?: string;
8518
+ gepubliceerd_door?: string | null;
8519
+ gepubliceerd_op?: string;
8520
+ id?: string;
8521
+ inhoud_md: string;
8522
+ is_actueel?: boolean;
8523
+ sleutel: string;
8524
+ titel: string;
8525
+ toelichting?: string | null;
8526
+ updated_at?: string;
8527
+ versie?: number;
8528
+ };
8529
+ Update: {
8530
+ created_at?: string;
8531
+ eigenaar_module_id?: string;
8532
+ gepubliceerd_door?: string | null;
8533
+ gepubliceerd_op?: string;
8534
+ id?: string;
8535
+ inhoud_md?: string;
8536
+ is_actueel?: boolean;
8537
+ sleutel?: string;
8538
+ titel?: string;
8539
+ toelichting?: string | null;
8540
+ updated_at?: string;
8541
+ versie?: number;
8542
+ };
8543
+ Relationships: [];
8544
+ };
8188
8545
  itk_offerte_events: {
8189
8546
  Row: {
8190
8547
  created_at: string;
@@ -9043,6 +9400,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9043
9400
  };
9044
9401
  Relationships: [];
9045
9402
  };
9403
+ logistics_cart_barcode: {
9404
+ Row: {
9405
+ barcode: string;
9406
+ cart_id: string;
9407
+ created_at: string;
9408
+ order_id: string | null;
9409
+ };
9410
+ Insert: {
9411
+ barcode: string;
9412
+ cart_id: string;
9413
+ created_at?: string;
9414
+ order_id?: string | null;
9415
+ };
9416
+ Update: {
9417
+ barcode?: string;
9418
+ cart_id?: string;
9419
+ created_at?: string;
9420
+ order_id?: string | null;
9421
+ };
9422
+ Relationships: [];
9423
+ };
9046
9424
  logistics_decisions: {
9047
9425
  Row: {
9048
9426
  created_at: string;
@@ -9871,6 +10249,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9871
10249
  referencedColumns: ["id"];
9872
10250
  }];
9873
10251
  };
10252
+ logistics_shipping_note_scan: {
10253
+ Row: {
10254
+ barcode: string;
10255
+ cart_id: string;
10256
+ id: string;
10257
+ is_reprint: boolean;
10258
+ order_id: string | null;
10259
+ print_job_id: string | null;
10260
+ scanned_at: string;
10261
+ };
10262
+ Insert: {
10263
+ barcode: string;
10264
+ cart_id: string;
10265
+ id?: string;
10266
+ is_reprint?: boolean;
10267
+ order_id?: string | null;
10268
+ print_job_id?: string | null;
10269
+ scanned_at?: string;
10270
+ };
10271
+ Update: {
10272
+ barcode?: string;
10273
+ cart_id?: string;
10274
+ id?: string;
10275
+ is_reprint?: boolean;
10276
+ order_id?: string | null;
10277
+ print_job_id?: string | null;
10278
+ scanned_at?: string;
10279
+ };
10280
+ Relationships: [];
10281
+ };
9874
10282
  logistics_staff_planning: {
9875
10283
  Row: {
9876
10284
  created_at: string;
@@ -12692,6 +13100,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12692
13100
  print_job_id: string | null;
12693
13101
  printed_at: string | null;
12694
13102
  printed_by: string | null;
13103
+ printed_cart_ids: import("./types").Json;
12695
13104
  printer_id: string | null;
12696
13105
  priority: number;
12697
13106
  reference: string | null;
@@ -12726,6 +13135,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12726
13135
  print_job_id?: string | null;
12727
13136
  printed_at?: string | null;
12728
13137
  printed_by?: string | null;
13138
+ printed_cart_ids?: import("./types").Json;
12729
13139
  printer_id?: string | null;
12730
13140
  priority?: number;
12731
13141
  reference?: string | null;
@@ -12760,6 +13170,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12760
13170
  print_job_id?: string | null;
12761
13171
  printed_at?: string | null;
12762
13172
  printed_by?: string | null;
13173
+ printed_cart_ids?: import("./types").Json;
12763
13174
  printer_id?: string | null;
12764
13175
  priority?: number;
12765
13176
  reference?: string | null;
@@ -13559,6 +13970,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13559
13970
  isOneToOne: false;
13560
13971
  referencedRelation: "planning_items";
13561
13972
  referencedColumns: ["id"];
13973
+ }, {
13974
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
13975
+ columns: ["planning_item_id"];
13976
+ isOneToOne: false;
13977
+ referencedRelation: "planning_overview";
13978
+ referencedColumns: ["id"];
13562
13979
  }];
13563
13980
  };
13564
13981
  planning_items: {
@@ -15136,450 +15553,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15136
15553
  referencedColumns: ["id"];
15137
15554
  }];
15138
15555
  };
15139
- quote_activities: {
15140
- Row: {
15141
- created_at: string;
15142
- event_type: string;
15143
- id: string;
15144
- metadata: import("./types").Json;
15145
- quote_id: string;
15146
- user_id: string | null;
15147
- };
15148
- Insert: {
15149
- created_at?: string;
15150
- event_type: string;
15151
- id?: string;
15152
- metadata?: import("./types").Json;
15153
- quote_id: string;
15154
- user_id?: string | null;
15155
- };
15156
- Update: {
15157
- created_at?: string;
15158
- event_type?: string;
15159
- id?: string;
15160
- metadata?: import("./types").Json;
15161
- quote_id?: string;
15162
- user_id?: string | null;
15163
- };
15164
- Relationships: [{
15165
- foreignKeyName: "quote_activities_quote_id_fkey";
15166
- columns: ["quote_id"];
15167
- isOneToOne: false;
15168
- referencedRelation: "quotes";
15169
- referencedColumns: ["id"];
15170
- }];
15171
- };
15172
- quote_attachments: {
15173
- Row: {
15174
- created_at: string;
15175
- file_name: string;
15176
- file_size: number | null;
15177
- file_url: string;
15178
- id: string;
15179
- mime_type: string | null;
15180
- quote_id: string;
15181
- };
15182
- Insert: {
15183
- created_at?: string;
15184
- file_name: string;
15185
- file_size?: number | null;
15186
- file_url: string;
15187
- id?: string;
15188
- mime_type?: string | null;
15189
- quote_id: string;
15190
- };
15191
- Update: {
15192
- created_at?: string;
15193
- file_name?: string;
15194
- file_size?: number | null;
15195
- file_url?: string;
15196
- id?: string;
15197
- mime_type?: string | null;
15198
- quote_id?: string;
15199
- };
15200
- Relationships: [{
15201
- foreignKeyName: "quote_attachments_quote_id_fkey";
15202
- columns: ["quote_id"];
15203
- isOneToOne: false;
15204
- referencedRelation: "quotes";
15205
- referencedColumns: ["id"];
15206
- }];
15207
- };
15208
- quote_field_options: {
15209
- Row: {
15210
- created_at: string;
15211
- field_id: string;
15212
- id: string;
15213
- label: string;
15214
- sort_order: number;
15215
- value: string;
15216
- };
15217
- Insert: {
15218
- created_at?: string;
15219
- field_id: string;
15220
- id?: string;
15221
- label: string;
15222
- sort_order?: number;
15223
- value: string;
15224
- };
15225
- Update: {
15226
- created_at?: string;
15227
- field_id?: string;
15228
- id?: string;
15229
- label?: string;
15230
- sort_order?: number;
15231
- value?: string;
15232
- };
15233
- Relationships: [{
15234
- foreignKeyName: "quote_field_options_field_id_fkey";
15235
- columns: ["field_id"];
15236
- isOneToOne: false;
15237
- referencedRelation: "quote_field_settings";
15238
- referencedColumns: ["id"];
15239
- }];
15240
- };
15241
- quote_field_settings: {
15242
- Row: {
15243
- created_at: string;
15244
- default_value: string | null;
15245
- field_key: string;
15246
- field_type: string;
15247
- id: string;
15248
- is_system: boolean;
15249
- label: string;
15250
- required: boolean;
15251
- sort_order: number;
15252
- updated_at: string;
15253
- visible: boolean;
15254
- };
15255
- Insert: {
15256
- created_at?: string;
15257
- default_value?: string | null;
15258
- field_key: string;
15259
- field_type: string;
15260
- id?: string;
15261
- is_system?: boolean;
15262
- label: string;
15263
- required?: boolean;
15264
- sort_order?: number;
15265
- updated_at?: string;
15266
- visible?: boolean;
15267
- };
15268
- Update: {
15269
- created_at?: string;
15270
- default_value?: string | null;
15271
- field_key?: string;
15272
- field_type?: string;
15273
- id?: string;
15274
- is_system?: boolean;
15275
- label?: string;
15276
- required?: boolean;
15277
- sort_order?: number;
15278
- updated_at?: string;
15279
- visible?: boolean;
15280
- };
15281
- Relationships: [];
15282
- };
15283
- quote_items: {
15284
- Row: {
15285
- category: string | null;
15286
- created_at: string;
15287
- description: string;
15288
- id: string;
15289
- line_total: number;
15290
- module_id: string | null;
15291
- name: string | null;
15292
- quantity: number;
15293
- quote_id: string;
15294
- sort_order: number;
15295
- unit_price: number;
15296
- };
15297
- Insert: {
15298
- category?: string | null;
15299
- created_at?: string;
15300
- description?: string;
15301
- id?: string;
15302
- line_total?: number;
15303
- module_id?: string | null;
15304
- name?: string | null;
15305
- quantity?: number;
15306
- quote_id: string;
15307
- sort_order?: number;
15308
- unit_price?: number;
15309
- };
15310
- Update: {
15311
- category?: string | null;
15312
- created_at?: string;
15313
- description?: string;
15314
- id?: string;
15315
- line_total?: number;
15316
- module_id?: string | null;
15317
- name?: string | null;
15318
- quantity?: number;
15319
- quote_id?: string;
15320
- sort_order?: number;
15321
- unit_price?: number;
15322
- };
15323
- Relationships: [{
15324
- foreignKeyName: "quote_items_module_id_fkey";
15325
- columns: ["module_id"];
15326
- isOneToOne: false;
15327
- referencedRelation: "quote_modules";
15328
- referencedColumns: ["id"];
15329
- }, {
15330
- foreignKeyName: "quote_items_quote_id_fkey";
15331
- columns: ["quote_id"];
15332
- isOneToOne: false;
15333
- referencedRelation: "quotes";
15334
- referencedColumns: ["id"];
15335
- }];
15336
- };
15337
- quote_modules: {
15338
- Row: {
15339
- category: string | null;
15340
- created_at: string;
15341
- description: string | null;
15342
- id: string;
15343
- is_active: boolean;
15344
- name: string;
15345
- price: number;
15346
- sort_order: number;
15347
- updated_at: string;
15348
- };
15349
- Insert: {
15350
- category?: string | null;
15351
- created_at?: string;
15352
- description?: string | null;
15353
- id?: string;
15354
- is_active?: boolean;
15355
- name: string;
15356
- price?: number;
15357
- sort_order?: number;
15358
- updated_at?: string;
15359
- };
15360
- Update: {
15361
- category?: string | null;
15362
- created_at?: string;
15363
- description?: string | null;
15364
- id?: string;
15365
- is_active?: boolean;
15366
- name?: string;
15367
- price?: number;
15368
- sort_order?: number;
15369
- updated_at?: string;
15370
- };
15371
- Relationships: [];
15372
- };
15373
- quote_templates: {
15374
- Row: {
15375
- created_at: string;
15376
- description: string | null;
15377
- field_values: import("./types").Json;
15378
- id: string;
15379
- is_default: boolean;
15380
- items: import("./types").Json;
15381
- name: string;
15382
- updated_at: string;
15383
- vat_rate: number;
15384
- };
15385
- Insert: {
15386
- created_at?: string;
15387
- description?: string | null;
15388
- field_values?: import("./types").Json;
15389
- id?: string;
15390
- is_default?: boolean;
15391
- items?: import("./types").Json;
15392
- name: string;
15393
- updated_at?: string;
15394
- vat_rate?: number;
15395
- };
15396
- Update: {
15397
- created_at?: string;
15398
- description?: string | null;
15399
- field_values?: import("./types").Json;
15400
- id?: string;
15401
- is_default?: boolean;
15402
- items?: import("./types").Json;
15403
- name?: string;
15404
- updated_at?: string;
15405
- vat_rate?: number;
15406
- };
15407
- Relationships: [];
15408
- };
15409
- quote_terms: {
15410
- Row: {
15411
- content: string | null;
15412
- created_at: string;
15413
- file_url: string | null;
15414
- id: string;
15415
- is_active: boolean;
15416
- name: string;
15417
- published_at: string | null;
15418
- updated_at: string;
15419
- version: string;
15420
- };
15421
- Insert: {
15422
- content?: string | null;
15423
- created_at?: string;
15424
- file_url?: string | null;
15425
- id?: string;
15426
- is_active?: boolean;
15427
- name: string;
15428
- published_at?: string | null;
15429
- updated_at?: string;
15430
- version?: string;
15431
- };
15432
- Update: {
15433
- content?: string | null;
15434
- created_at?: string;
15435
- file_url?: string | null;
15436
- id?: string;
15437
- is_active?: boolean;
15438
- name?: string;
15439
- published_at?: string | null;
15440
- updated_at?: string;
15441
- version?: string;
15442
- };
15443
- Relationships: [];
15444
- };
15445
- quotes: {
15446
- Row: {
15447
- accepted_at: string | null;
15448
- archived_at: string | null;
15449
- contact_id: string | null;
15450
- created_at: string;
15451
- customer_id: string | null;
15452
- discount: number;
15453
- expires_at: string | null;
15454
- field_values: import("./types").Json;
15455
- id: string;
15456
- notes: string | null;
15457
- owner_id: string | null;
15458
- personal_message: string | null;
15459
- project_id: string | null;
15460
- prospect_id: string | null;
15461
- public_token: string;
15462
- quote_number: string | null;
15463
- recipient_email: string | null;
15464
- recipient_name: string | null;
15465
- rejected_at: string | null;
15466
- sent_at: string | null;
15467
- status: string;
15468
- subtotal: number;
15469
- template_id: string | null;
15470
- terms_id: string | null;
15471
- title: string;
15472
- total: number;
15473
- updated_at: string;
15474
- valid_until: string | null;
15475
- vat_amount: number;
15476
- vat_rate: number;
15477
- viewed_at: string | null;
15478
- };
15479
- Insert: {
15480
- accepted_at?: string | null;
15481
- archived_at?: string | null;
15482
- contact_id?: string | null;
15483
- created_at?: string;
15484
- customer_id?: string | null;
15485
- discount?: number;
15486
- expires_at?: string | null;
15487
- field_values?: import("./types").Json;
15488
- id?: string;
15489
- notes?: string | null;
15490
- owner_id?: string | null;
15491
- personal_message?: string | null;
15492
- project_id?: string | null;
15493
- prospect_id?: string | null;
15494
- public_token?: string;
15495
- quote_number?: string | null;
15496
- recipient_email?: string | null;
15497
- recipient_name?: string | null;
15498
- rejected_at?: string | null;
15499
- sent_at?: string | null;
15500
- status?: string;
15501
- subtotal?: number;
15502
- template_id?: string | null;
15503
- terms_id?: string | null;
15504
- title?: string;
15505
- total?: number;
15506
- updated_at?: string;
15507
- valid_until?: string | null;
15508
- vat_amount?: number;
15509
- vat_rate?: number;
15510
- viewed_at?: string | null;
15511
- };
15512
- Update: {
15513
- accepted_at?: string | null;
15514
- archived_at?: string | null;
15515
- contact_id?: string | null;
15516
- created_at?: string;
15517
- customer_id?: string | null;
15518
- discount?: number;
15519
- expires_at?: string | null;
15520
- field_values?: import("./types").Json;
15521
- id?: string;
15522
- notes?: string | null;
15523
- owner_id?: string | null;
15524
- personal_message?: string | null;
15525
- project_id?: string | null;
15526
- prospect_id?: string | null;
15527
- public_token?: string;
15528
- quote_number?: string | null;
15529
- recipient_email?: string | null;
15530
- recipient_name?: string | null;
15531
- rejected_at?: string | null;
15532
- sent_at?: string | null;
15533
- status?: string;
15534
- subtotal?: number;
15535
- template_id?: string | null;
15536
- terms_id?: string | null;
15537
- title?: string;
15538
- total?: number;
15539
- updated_at?: string;
15540
- valid_until?: string | null;
15541
- vat_amount?: number;
15542
- vat_rate?: number;
15543
- viewed_at?: string | null;
15544
- };
15545
- Relationships: [{
15546
- foreignKeyName: "quotes_contact_id_fkey";
15547
- columns: ["contact_id"];
15548
- isOneToOne: false;
15549
- referencedRelation: "customer_contacts";
15550
- referencedColumns: ["id"];
15551
- }, {
15552
- foreignKeyName: "quotes_customer_id_fkey";
15553
- columns: ["customer_id"];
15554
- isOneToOne: false;
15555
- referencedRelation: "customers";
15556
- referencedColumns: ["id"];
15557
- }, {
15558
- foreignKeyName: "quotes_project_id_fkey";
15559
- columns: ["project_id"];
15560
- isOneToOne: false;
15561
- referencedRelation: "projects";
15562
- referencedColumns: ["id"];
15563
- }, {
15564
- foreignKeyName: "quotes_prospect_id_fkey";
15565
- columns: ["prospect_id"];
15566
- isOneToOne: false;
15567
- referencedRelation: "prospects";
15568
- referencedColumns: ["id"];
15569
- }, {
15570
- foreignKeyName: "quotes_template_id_fkey";
15571
- columns: ["template_id"];
15572
- isOneToOne: false;
15573
- referencedRelation: "quote_templates";
15574
- referencedColumns: ["id"];
15575
- }, {
15576
- foreignKeyName: "quotes_terms_id_fkey";
15577
- columns: ["terms_id"];
15578
- isOneToOne: false;
15579
- referencedRelation: "quote_terms";
15580
- referencedColumns: ["id"];
15581
- }];
15582
- };
15583
15556
  reception_notifications: {
15584
15557
  Row: {
15585
15558
  booking_id: string | null;
@@ -16701,7 +16674,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16701
16674
  foreignKeyName: "time_logs_work_order_id_fkey";
16702
16675
  columns: ["work_order_id"];
16703
16676
  isOneToOne: false;
16704
- referencedRelation: "work_orders";
16677
+ referencedRelation: "werkbonnen";
16705
16678
  referencedColumns: ["id"];
16706
16679
  }];
16707
16680
  };
@@ -16833,6 +16806,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16833
16806
  };
16834
16807
  trade_item_stock: {
16835
16808
  Row: {
16809
+ change_source: string;
16836
16810
  connection_id: string;
16837
16811
  created_at: string;
16838
16812
  id: string;
@@ -16846,6 +16820,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16846
16820
  user_id: string;
16847
16821
  };
16848
16822
  Insert: {
16823
+ change_source?: string;
16849
16824
  connection_id: string;
16850
16825
  created_at?: string;
16851
16826
  id?: string;
@@ -16859,6 +16834,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16859
16834
  user_id: string;
16860
16835
  };
16861
16836
  Update: {
16837
+ change_source?: string;
16862
16838
  connection_id?: string;
16863
16839
  created_at?: string;
16864
16840
  id?: string;
@@ -17916,268 +17892,118 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17916
17892
  break_minutes?: number | null;
17917
17893
  contract_hours_per_week?: number;
17918
17894
  created_at?: string;
17919
- daily_threshold_hours?: number | null;
17920
- id?: string;
17921
- include_travel?: boolean | null;
17922
- monteur_id: string;
17923
- ov02_percentage?: number | null;
17924
- ov03_percentage?: number | null;
17925
- updated_at?: string;
17926
- weekly_threshold_hours?: number | null;
17927
- workday_end?: string | null;
17928
- workday_start?: string | null;
17929
- };
17930
- Update: {
17931
- break_minutes?: number | null;
17932
- contract_hours_per_week?: number;
17933
- created_at?: string;
17934
- daily_threshold_hours?: number | null;
17935
- id?: string;
17936
- include_travel?: boolean | null;
17937
- monteur_id?: string;
17938
- ov02_percentage?: number | null;
17939
- ov03_percentage?: number | null;
17940
- updated_at?: string;
17941
- weekly_threshold_hours?: number | null;
17942
- workday_end?: string | null;
17943
- workday_start?: string | null;
17944
- };
17945
- Relationships: [];
17946
- };
17947
- uren_entries: {
17948
- Row: {
17949
- created_at: string;
17950
- created_by: string | null;
17951
- entry_date: string;
17952
- hours: number;
17953
- id: string;
17954
- kind: string;
17955
- monteur_id: string;
17956
- note: string | null;
17957
- source: string;
17958
- travel_km: number;
17959
- updated_at: string;
17960
- werkbon_id: string | null;
17961
- };
17962
- Insert: {
17963
- created_at?: string;
17964
- created_by?: string | null;
17965
- entry_date: string;
17966
- hours?: number;
17967
- id?: string;
17968
- kind?: string;
17969
- monteur_id: string;
17970
- note?: string | null;
17971
- source?: string;
17972
- travel_km?: number;
17973
- updated_at?: string;
17974
- werkbon_id?: string | null;
17975
- };
17976
- Update: {
17977
- created_at?: string;
17978
- created_by?: string | null;
17979
- entry_date?: string;
17980
- hours?: number;
17981
- id?: string;
17982
- kind?: string;
17983
- monteur_id?: string;
17984
- note?: string | null;
17985
- source?: string;
17986
- travel_km?: number;
17987
- updated_at?: string;
17988
- werkbon_id?: string | null;
17989
- };
17990
- Relationships: [{
17991
- foreignKeyName: "uren_entries_werkbon_id_fkey";
17992
- columns: ["werkbon_id"];
17993
- isOneToOne: false;
17994
- referencedRelation: "werkbonnen";
17995
- referencedColumns: ["id"];
17996
- }];
17997
- };
17998
- uren_exports: {
17999
- Row: {
18000
- created_at: string;
18001
- created_by: string | null;
18002
- file_name: string | null;
18003
- id: string;
18004
- monteur_ids: string[];
18005
- period_end: string;
18006
- period_start: string;
18007
- row_count: number;
18008
- };
18009
- Insert: {
18010
- created_at?: string;
18011
- created_by?: string | null;
18012
- file_name?: string | null;
18013
- id?: string;
18014
- monteur_ids?: string[];
18015
- period_end: string;
18016
- period_start: string;
18017
- row_count?: number;
18018
- };
18019
- Update: {
18020
- created_at?: string;
18021
- created_by?: string | null;
18022
- file_name?: string | null;
18023
- id?: string;
18024
- monteur_ids?: string[];
18025
- period_end?: string;
18026
- period_start?: string;
18027
- row_count?: number;
18028
- };
18029
- Relationships: [];
18030
- };
18031
- uren_offerte_regels: {
18032
- Row: {
18033
- created_at: string;
18034
- description: string;
18035
- duration_minutes: number;
18036
- id: string;
18037
- offerte_id: string;
18038
- package_id: string | null;
18039
- quantity: number;
18040
- sort_order: number;
18041
- total_cents: number;
18042
- unit_price_cents: number;
18043
- };
18044
- Insert: {
18045
- created_at?: string;
18046
- description: string;
18047
- duration_minutes?: number;
18048
- id?: string;
18049
- offerte_id: string;
18050
- package_id?: string | null;
18051
- quantity?: number;
18052
- sort_order?: number;
18053
- total_cents?: number;
18054
- unit_price_cents?: number;
18055
- };
18056
- Update: {
18057
- created_at?: string;
18058
- description?: string;
18059
- duration_minutes?: number;
18060
- id?: string;
18061
- offerte_id?: string;
18062
- package_id?: string | null;
18063
- quantity?: number;
18064
- sort_order?: number;
18065
- total_cents?: number;
18066
- unit_price_cents?: number;
18067
- };
18068
- Relationships: [{
18069
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
18070
- columns: ["offerte_id"];
18071
- isOneToOne: false;
18072
- referencedRelation: "uren_offertes";
18073
- referencedColumns: ["id"];
18074
- }, {
18075
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
18076
- columns: ["package_id"];
18077
- isOneToOne: false;
18078
- referencedRelation: "werkbon_packages";
18079
- referencedColumns: ["id"];
18080
- }];
18081
- };
18082
- uren_offerte_velden: {
18083
- Row: {
18084
- created_at: string;
18085
- field_type: string;
18086
- id: string;
18087
- key: string;
18088
- label: string;
18089
- options: string[];
18090
- required: boolean;
18091
- sort_order: number;
18092
- updated_at: string;
18093
- };
18094
- Insert: {
18095
- created_at?: string;
18096
- field_type?: string;
18097
- id?: string;
18098
- key: string;
18099
- label: string;
18100
- options?: string[];
18101
- required?: boolean;
18102
- sort_order?: number;
17895
+ daily_threshold_hours?: number | null;
17896
+ id?: string;
17897
+ include_travel?: boolean | null;
17898
+ monteur_id: string;
17899
+ ov02_percentage?: number | null;
17900
+ ov03_percentage?: number | null;
18103
17901
  updated_at?: string;
17902
+ weekly_threshold_hours?: number | null;
17903
+ workday_end?: string | null;
17904
+ workday_start?: string | null;
18104
17905
  };
18105
17906
  Update: {
17907
+ break_minutes?: number | null;
17908
+ contract_hours_per_week?: number;
18106
17909
  created_at?: string;
18107
- field_type?: string;
17910
+ daily_threshold_hours?: number | null;
18108
17911
  id?: string;
18109
- key?: string;
18110
- label?: string;
18111
- options?: string[];
18112
- required?: boolean;
18113
- sort_order?: number;
17912
+ include_travel?: boolean | null;
17913
+ monteur_id?: string;
17914
+ ov02_percentage?: number | null;
17915
+ ov03_percentage?: number | null;
18114
17916
  updated_at?: string;
17917
+ weekly_threshold_hours?: number | null;
17918
+ workday_end?: string | null;
17919
+ workday_start?: string | null;
18115
17920
  };
18116
17921
  Relationships: [];
18117
17922
  };
18118
- uren_offertes: {
17923
+ uren_entries: {
18119
17924
  Row: {
18120
17925
  created_at: string;
18121
17926
  created_by: string | null;
18122
- customer_id: string | null;
18123
- customer_name: string | null;
18124
- dynamic_fields: import("./types").Json;
18125
- estimated_minutes: number;
17927
+ entry_date: string;
17928
+ hours: number;
18126
17929
  id: string;
17930
+ kind: string;
17931
+ monteur_id: string;
18127
17932
  note: string | null;
18128
- quote_number: string | null;
18129
- status: string;
18130
- title: string;
18131
- total_excl_cents: number;
18132
- total_incl_cents: number;
17933
+ source: string;
17934
+ travel_km: number;
18133
17935
  updated_at: string;
18134
- valid_until: string | null;
18135
- vat_percentage: number;
17936
+ werkbon_id: string | null;
18136
17937
  };
18137
17938
  Insert: {
18138
17939
  created_at?: string;
18139
17940
  created_by?: string | null;
18140
- customer_id?: string | null;
18141
- customer_name?: string | null;
18142
- dynamic_fields?: import("./types").Json;
18143
- estimated_minutes?: number;
17941
+ entry_date: string;
17942
+ hours?: number;
18144
17943
  id?: string;
17944
+ kind?: string;
17945
+ monteur_id: string;
18145
17946
  note?: string | null;
18146
- quote_number?: string | null;
18147
- status?: string;
18148
- title?: string;
18149
- total_excl_cents?: number;
18150
- total_incl_cents?: number;
17947
+ source?: string;
17948
+ travel_km?: number;
18151
17949
  updated_at?: string;
18152
- valid_until?: string | null;
18153
- vat_percentage?: number;
17950
+ werkbon_id?: string | null;
18154
17951
  };
18155
17952
  Update: {
18156
17953
  created_at?: string;
18157
17954
  created_by?: string | null;
18158
- customer_id?: string | null;
18159
- customer_name?: string | null;
18160
- dynamic_fields?: import("./types").Json;
18161
- estimated_minutes?: number;
17955
+ entry_date?: string;
17956
+ hours?: number;
18162
17957
  id?: string;
17958
+ kind?: string;
17959
+ monteur_id?: string;
18163
17960
  note?: string | null;
18164
- quote_number?: string | null;
18165
- status?: string;
18166
- title?: string;
18167
- total_excl_cents?: number;
18168
- total_incl_cents?: number;
17961
+ source?: string;
17962
+ travel_km?: number;
18169
17963
  updated_at?: string;
18170
- valid_until?: string | null;
18171
- vat_percentage?: number;
17964
+ werkbon_id?: string | null;
18172
17965
  };
18173
17966
  Relationships: [{
18174
- foreignKeyName: "uren_offertes_customer_id_fkey";
18175
- columns: ["customer_id"];
17967
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
17968
+ columns: ["werkbon_id"];
18176
17969
  isOneToOne: false;
18177
- referencedRelation: "itk_customers";
17970
+ referencedRelation: "werkbonnen";
18178
17971
  referencedColumns: ["id"];
18179
17972
  }];
18180
17973
  };
17974
+ uren_exports: {
17975
+ Row: {
17976
+ created_at: string;
17977
+ created_by: string | null;
17978
+ file_name: string | null;
17979
+ id: string;
17980
+ monteur_ids: string[];
17981
+ period_end: string;
17982
+ period_start: string;
17983
+ row_count: number;
17984
+ };
17985
+ Insert: {
17986
+ created_at?: string;
17987
+ created_by?: string | null;
17988
+ file_name?: string | null;
17989
+ id?: string;
17990
+ monteur_ids?: string[];
17991
+ period_end: string;
17992
+ period_start: string;
17993
+ row_count?: number;
17994
+ };
17995
+ Update: {
17996
+ created_at?: string;
17997
+ created_by?: string | null;
17998
+ file_name?: string | null;
17999
+ id?: string;
18000
+ monteur_ids?: string[];
18001
+ period_end?: string;
18002
+ period_start?: string;
18003
+ row_count?: number;
18004
+ };
18005
+ Relationships: [];
18006
+ };
18181
18007
  uren_settings: {
18182
18008
  Row: {
18183
18009
  break_minutes: number;
@@ -19864,6 +19690,37 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19864
19690
  };
19865
19691
  Relationships: [];
19866
19692
  };
19693
+ planning_overview: {
19694
+ Row: {
19695
+ assigned_monteur_id: string | null;
19696
+ assistants: import("./types").Json | null;
19697
+ budget_mandate_cents: number | null;
19698
+ created_at: string | null;
19699
+ created_by: string | null;
19700
+ customer_id: string | null;
19701
+ customer_name: string | null;
19702
+ duration_minutes: number | null;
19703
+ end_at: string | null;
19704
+ id: string | null;
19705
+ needs_detail_review: boolean | null;
19706
+ notes: string | null;
19707
+ project_number: string | null;
19708
+ review_reasons: string[] | null;
19709
+ start_at: string | null;
19710
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
19711
+ updated_at: string | null;
19712
+ viewer_role: string | null;
19713
+ werkbon_id: string | null;
19714
+ work_address: string | null;
19715
+ };
19716
+ Relationships: [{
19717
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19718
+ columns: ["werkbon_id"];
19719
+ isOneToOne: false;
19720
+ referencedRelation: "werkbonnen";
19721
+ referencedColumns: ["id"];
19722
+ }];
19723
+ };
19867
19724
  product_group_stock_view: {
19868
19725
  Row: {
19869
19726
  item_count: number | null;
@@ -20459,6 +20316,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20459
20316
  Args: never;
20460
20317
  Returns: number;
20461
20318
  };
20319
+ calculate_floriday_desired_stock: {
20320
+ Args: {
20321
+ p_connection_id: string;
20322
+ p_product_id: string;
20323
+ };
20324
+ Returns: {
20325
+ desired_availability: boolean;
20326
+ desired_quantity: number;
20327
+ erp_available: number;
20328
+ stock_mode: string;
20329
+ }[];
20330
+ };
20462
20331
  calculate_layer_stock: {
20463
20332
  Args: {
20464
20333
  p_product_id: string;
@@ -20553,6 +20422,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20553
20422
  attempts: number;
20554
20423
  connection_id: string;
20555
20424
  created_at: string;
20425
+ dead_lettered_at: string | null;
20556
20426
  desired_available: boolean | null;
20557
20427
  gateway_attempt_id: string | null;
20558
20428
  id: string;
@@ -20561,9 +20431,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20561
20431
  locked_by: string | null;
20562
20432
  next_attempt_at: string;
20563
20433
  number_of_pieces: number;
20434
+ product_id: string | null;
20564
20435
  sent_at: string | null;
20565
20436
  status: string;
20437
+ stock_mode: string | null;
20566
20438
  superseded_by: string | null;
20439
+ target_week: number | null;
20440
+ target_year: number | null;
20567
20441
  trade_item_id: string;
20568
20442
  updated_at: string;
20569
20443
  user_id: string;
@@ -21044,6 +20918,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21044
20918
  };
21045
20919
  Returns: string;
21046
20920
  };
20921
+ floriday_capture_stock_snapshot: {
20922
+ Args: never;
20923
+ Returns: number;
20924
+ };
20925
+ floriday_cleanup_stock_queue_v2: {
20926
+ Args: never;
20927
+ Returns: undefined;
20928
+ };
20929
+ floriday_compact_stock_snapshots: {
20930
+ Args: never;
20931
+ Returns: undefined;
20932
+ };
20933
+ floriday_default_owner: {
20934
+ Args: {
20935
+ p_connection_id: string;
20936
+ };
20937
+ Returns: string;
20938
+ };
21047
20939
  floriday_effective_price: {
21048
20940
  Args: {
21049
20941
  _buyer_id: string;
@@ -21061,6 +20953,34 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21061
20953
  source_id: string;
21062
20954
  }[];
21063
20955
  };
20956
+ floriday_fill_publish_horizon: {
20957
+ Args: never;
20958
+ Returns: number;
20959
+ };
20960
+ floriday_ingest_sales_orders: {
20961
+ Args: {
20962
+ p_limit?: number;
20963
+ };
20964
+ Returns: number;
20965
+ };
20966
+ floriday_publish_horizon_weeks: {
20967
+ Args: never;
20968
+ Returns: number;
20969
+ };
20970
+ floriday_recompute_inventory: {
20971
+ Args: {
20972
+ p_connection_id: string;
20973
+ p_force?: boolean;
20974
+ p_product_id: string;
20975
+ };
20976
+ Returns: undefined;
20977
+ };
20978
+ floriday_requeue_dead_letters: {
20979
+ Args: {
20980
+ p_connection_id?: string;
20981
+ };
20982
+ Returns: number;
20983
+ };
21064
20984
  format_cart_number: {
21065
20985
  Args: {
21066
20986
  p_pick_date: string;
@@ -21240,42 +21160,167 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21240
21160
  ordered_at: string;
21241
21161
  }[];
21242
21162
  };
21243
- get_or_assign_floriday_order_number: {
21163
+ get_or_assign_floriday_order_number: {
21164
+ Args: {
21165
+ p_floriday_id: string;
21166
+ };
21167
+ Returns: string;
21168
+ };
21169
+ get_product_group_available_stock: {
21170
+ Args: {
21171
+ p_group_id: string;
21172
+ };
21173
+ Returns: number;
21174
+ };
21175
+ get_room_busy_windows: {
21176
+ Args: {
21177
+ p_from: string;
21178
+ p_to: string;
21179
+ };
21180
+ Returns: {
21181
+ end_time: string;
21182
+ room_id: string;
21183
+ start_time: string;
21184
+ status: string;
21185
+ }[];
21186
+ };
21187
+ get_twinfield_cron_jobs: {
21188
+ Args: never;
21189
+ Returns: {
21190
+ active: boolean;
21191
+ jobname: string;
21192
+ schedule: string;
21193
+ url: string;
21194
+ }[];
21195
+ };
21196
+ get_user_tenant_id: {
21197
+ Args: never;
21198
+ Returns: string;
21199
+ };
21200
+ handover_get: {
21201
+ Args: {
21202
+ _module_id: string;
21203
+ };
21204
+ Returns: import("./types").Json;
21205
+ };
21206
+ handover_kern_naam: {
21207
+ Args: {
21208
+ _naam: string;
21209
+ };
21210
+ Returns: string;
21211
+ };
21212
+ handover_ketenmodel: {
21213
+ Args: never;
21214
+ Returns: import("./types").Json;
21215
+ };
21216
+ handover_kruisconflicten: {
21217
+ Args: never;
21218
+ Returns: import("./types").Json;
21219
+ };
21220
+ handover_list: {
21221
+ Args: never;
21222
+ Returns: import("./types").Json;
21223
+ };
21224
+ handover_mag_schrijven: {
21225
+ Args: {
21226
+ _module_id: string;
21227
+ };
21228
+ Returns: boolean;
21229
+ };
21230
+ handover_norm_naam: {
21231
+ Args: {
21232
+ _naam: string;
21233
+ };
21234
+ Returns: string;
21235
+ };
21236
+ handover_publish: {
21237
+ Args: {
21238
+ _bevindingen?: string;
21239
+ _bezit_tabellen?: string[];
21240
+ _conflicten_snapshot?: import("./types").Json;
21241
+ _contractfuncties?: string[];
21242
+ _inhoud_md: string;
21243
+ _module_id: string;
21244
+ _module_titel: string;
21245
+ _ontbrekende_contracten?: string[];
21246
+ _samenvatting?: string;
21247
+ };
21248
+ Returns: number;
21249
+ };
21250
+ handover_publish_via_token: {
21251
+ Args: {
21252
+ _bevindingen?: string;
21253
+ _bezit_tabellen?: string[];
21254
+ _conflicten_snapshot?: import("./types").Json;
21255
+ _contractfuncties?: string[];
21256
+ _inhoud_md: string;
21257
+ _module_id: string;
21258
+ _module_titel: string;
21259
+ _ontbrekende_contracten?: string[];
21260
+ _samenvatting?: string;
21261
+ _token_hash: string;
21262
+ };
21263
+ Returns: number;
21264
+ };
21265
+ handover_status: {
21266
+ Args: never;
21267
+ Returns: import("./types").Json;
21268
+ };
21269
+ handover_synonym_kern: {
21270
+ Args: {
21271
+ _naam: string;
21272
+ };
21273
+ Returns: string;
21274
+ };
21275
+ handover_token_intrekken: {
21276
+ Args: {
21277
+ _id: string;
21278
+ };
21279
+ Returns: boolean;
21280
+ };
21281
+ handover_token_lijst: {
21282
+ Args: never;
21283
+ Returns: import("./types").Json;
21284
+ };
21285
+ handover_token_maken: {
21244
21286
  Args: {
21245
- p_floriday_id: string;
21287
+ _label?: string;
21288
+ _module_id: string;
21246
21289
  };
21247
21290
  Returns: string;
21248
21291
  };
21249
- get_product_group_available_stock: {
21292
+ handover_update: {
21250
21293
  Args: {
21251
- p_group_id: string;
21294
+ _bezit_tabellen?: string[];
21295
+ _contractfuncties?: string[];
21296
+ _herzieningstermijn_dagen?: number;
21297
+ _inhoud_md?: string;
21298
+ _module_id: string;
21299
+ _module_titel?: string;
21300
+ _samenvatting?: string;
21301
+ _versie: number;
21252
21302
  };
21253
- Returns: number;
21254
- };
21255
- get_room_busy_windows: {
21303
+ Returns: boolean;
21304
+ } | {
21256
21305
  Args: {
21257
- p_from: string;
21258
- p_to: string;
21306
+ _bevindingen?: string;
21307
+ _bezit_tabellen?: string[];
21308
+ _contractfuncties?: string[];
21309
+ _herzieningstermijn_dagen?: number;
21310
+ _inhoud_md?: string;
21311
+ _module_id: string;
21312
+ _module_titel?: string;
21313
+ _ontbrekende_contracten?: string[];
21314
+ _samenvatting?: string;
21315
+ _versie: number;
21259
21316
  };
21260
- Returns: {
21261
- end_time: string;
21262
- room_id: string;
21263
- start_time: string;
21264
- status: string;
21265
- }[];
21266
- };
21267
- get_twinfield_cron_jobs: {
21268
- Args: never;
21269
- Returns: {
21270
- active: boolean;
21271
- jobname: string;
21272
- schedule: string;
21273
- url: string;
21274
- }[];
21317
+ Returns: boolean;
21275
21318
  };
21276
- get_user_tenant_id: {
21277
- Args: never;
21278
- Returns: string;
21319
+ handover_versies: {
21320
+ Args: {
21321
+ _module_id: string;
21322
+ };
21323
+ Returns: import("./types").Json;
21279
21324
  };
21280
21325
  has_module_permission: {
21281
21326
  Args: {
@@ -21296,6 +21341,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21296
21341
  Args: never;
21297
21342
  Returns: boolean;
21298
21343
  };
21344
+ instructie_get: {
21345
+ Args: {
21346
+ _sleutel: string;
21347
+ };
21348
+ Returns: import("./types").Json;
21349
+ };
21350
+ instructie_list: {
21351
+ Args: never;
21352
+ Returns: import("./types").Json;
21353
+ };
21354
+ instructie_publish: {
21355
+ Args: {
21356
+ _inhoud_md: string;
21357
+ _sleutel: string;
21358
+ _titel: string;
21359
+ _toelichting?: string;
21360
+ };
21361
+ Returns: number;
21362
+ };
21299
21363
  invoice_create_from_source: {
21300
21364
  Args: {
21301
21365
  _payload?: import("./types").Json;
@@ -21520,6 +21584,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21520
21584
  };
21521
21585
  Returns: boolean;
21522
21586
  };
21587
+ logistics_barcode_lookup: {
21588
+ Args: {
21589
+ p_barcode: string;
21590
+ };
21591
+ Returns: import("./types").Json;
21592
+ };
21523
21593
  logistics_buffer_criteria: {
21524
21594
  Args: {
21525
21595
  p_settings: import("./types").Json;
@@ -21580,6 +21650,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21580
21650
  };
21581
21651
  Returns: number;
21582
21652
  };
21653
+ logistics_cart_barcode_value: {
21654
+ Args: {
21655
+ _cart_id: string;
21656
+ };
21657
+ Returns: string;
21658
+ };
21583
21659
  logistics_cart_index: {
21584
21660
  Args: {
21585
21661
  p_from?: string;
@@ -21589,6 +21665,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21589
21665
  cart_id: string;
21590
21666
  cart_index: number;
21591
21667
  cart_label: string;
21668
+ delivery_date: string;
21669
+ is_announced: boolean;
21670
+ is_controlled: boolean;
21671
+ is_printed: boolean;
21592
21672
  is_shared: boolean;
21593
21673
  order_number: string;
21594
21674
  order_source: string;
@@ -21599,6 +21679,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21599
21679
  task_status: string;
21600
21680
  }[];
21601
21681
  };
21682
+ logistics_cart_slip_plan: {
21683
+ Args: {
21684
+ p_order_id: string;
21685
+ };
21686
+ Returns: import("./types").Json;
21687
+ };
21602
21688
  logistics_check_order_allowed: {
21603
21689
  Args: {
21604
21690
  p_lines: import("./types").Json;
@@ -21751,11 +21837,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21751
21837
  Args: never;
21752
21838
  Returns: {
21753
21839
  agenda_carts: number;
21840
+ announced_carts: number;
21754
21841
  control_carts: number;
21842
+ delivery_carts: number;
21755
21843
  ok: boolean;
21756
21844
  orphan_tasks: number;
21757
21845
  pick_date: string;
21758
21846
  raw_carts: number;
21847
+ sales_carts: number;
21848
+ station_carts: number;
21759
21849
  }[];
21760
21850
  };
21761
21851
  logistics_delay_customer_email: {
@@ -21771,12 +21861,35 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21771
21861
  subject: string;
21772
21862
  }[];
21773
21863
  };
21864
+ logistics_delivery_agenda: {
21865
+ Args: {
21866
+ p_from?: string;
21867
+ p_to?: string;
21868
+ };
21869
+ Returns: {
21870
+ announced_count: number;
21871
+ cart_count: number;
21872
+ controlled_count: number;
21873
+ delivery_date: string;
21874
+ order_count: number;
21875
+ orders: import("./types").Json;
21876
+ plant_count: number;
21877
+ printed_count: number;
21878
+ }[];
21879
+ };
21774
21880
  logistics_document_layout: {
21775
21881
  Args: {
21776
21882
  _document_code: string;
21777
21883
  };
21778
21884
  Returns: import("./types").Json;
21779
21885
  };
21886
+ logistics_document_layout_v2: {
21887
+ Args: {
21888
+ _document_code: string;
21889
+ _is_partial?: boolean;
21890
+ };
21891
+ Returns: import("./types").Json;
21892
+ };
21780
21893
  logistics_document_station: {
21781
21894
  Args: {
21782
21895
  _document_code: string;
@@ -21802,6 +21915,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21802
21915
  };
21803
21916
  Returns: import("./types").Json;
21804
21917
  };
21918
+ logistics_ensure_cart_barcode: {
21919
+ Args: {
21920
+ _cart_id: string;
21921
+ };
21922
+ Returns: string;
21923
+ };
21805
21924
  logistics_fail_task: {
21806
21925
  Args: {
21807
21926
  p_error: string;
@@ -21847,6 +21966,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21847
21966
  isSetofReturn: false;
21848
21967
  };
21849
21968
  };
21969
+ logistics_floriday_cart_plan: {
21970
+ Args: {
21971
+ p_order_id: string;
21972
+ };
21973
+ Returns: {
21974
+ carrier_type: string;
21975
+ idx: number;
21976
+ packages: number;
21977
+ }[];
21978
+ };
21850
21979
  logistics_floriday_claim_pushes: {
21851
21980
  Args: {
21852
21981
  _lease_seconds?: number;
@@ -22052,6 +22181,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22052
22181
  };
22053
22182
  Returns: undefined;
22054
22183
  };
22184
+ logistics_plan_floriday_order: {
22185
+ Args: {
22186
+ p_buffer_id?: string;
22187
+ p_order_id: string;
22188
+ };
22189
+ Returns: number;
22190
+ };
22055
22191
  logistics_plan_impact_orders: {
22056
22192
  Args: {
22057
22193
  p_order_id: string;
@@ -22245,6 +22381,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22245
22381
  };
22246
22382
  Returns: string;
22247
22383
  };
22384
+ logistics_shipping_note_from_barcode: {
22385
+ Args: {
22386
+ p_allow_reprint?: boolean;
22387
+ p_barcode: string;
22388
+ p_station_id?: string;
22389
+ };
22390
+ Returns: import("./types").Json;
22391
+ };
22248
22392
  logistics_supersede_stale_tasks: {
22249
22393
  Args: {
22250
22394
  p_keep: string[];
@@ -22466,6 +22610,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22466
22610
  print_job_id: string | null;
22467
22611
  printed_at: string | null;
22468
22612
  printed_by: string | null;
22613
+ printed_cart_ids: import("./types").Json;
22469
22614
  printer_id: string | null;
22470
22615
  priority: number;
22471
22616
  reference: string | null;
@@ -22515,6 +22660,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22515
22660
  print_job_id: string | null;
22516
22661
  printed_at: string | null;
22517
22662
  printed_by: string | null;
22663
+ printed_cart_ids: import("./types").Json;
22518
22664
  printer_id: string | null;
22519
22665
  priority: number;
22520
22666
  reference: string | null;
@@ -22569,6 +22715,56 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22569
22715
  print_job_id: string | null;
22570
22716
  printed_at: string | null;
22571
22717
  printed_by: string | null;
22718
+ printed_cart_ids: import("./types").Json;
22719
+ printer_id: string | null;
22720
+ priority: number;
22721
+ reference: string | null;
22722
+ route: string | null;
22723
+ screen_id: string | null;
22724
+ station_id: string | null;
22725
+ status_id: string | null;
22726
+ updated_at: string;
22727
+ warnings: import("./types").Json;
22728
+ };
22729
+ SetofOptions: {
22730
+ from: "*";
22731
+ to: "pick_queue";
22732
+ isOneToOne: true;
22733
+ isSetofReturn: false;
22734
+ };
22735
+ };
22736
+ pick_complete_print_cart: {
22737
+ Args: {
22738
+ _cart_id: string;
22739
+ _printer_id: string;
22740
+ _queue_item_id: string;
22741
+ _session_id: string;
22742
+ };
22743
+ Returns: {
22744
+ announced_at: string;
22745
+ assigned_user_id: string | null;
22746
+ barcode: string | null;
22747
+ cancelled_at: string | null;
22748
+ cart_count: number;
22749
+ completed_at: string | null;
22750
+ country_code: string | null;
22751
+ created_at: string;
22752
+ customer_name: string | null;
22753
+ delivery_address: string | null;
22754
+ document_number: string | null;
22755
+ document_type_id: string | null;
22756
+ due_at: string | null;
22757
+ id: string;
22758
+ is_urgent: boolean;
22759
+ line_count: number;
22760
+ order_number: string | null;
22761
+ order_type: string | null;
22762
+ payload: import("./types").Json;
22763
+ print_count: number;
22764
+ print_job_id: string | null;
22765
+ printed_at: string | null;
22766
+ printed_by: string | null;
22767
+ printed_cart_ids: import("./types").Json;
22572
22768
  printer_id: string | null;
22573
22769
  priority: number;
22574
22770
  reference: string | null;
@@ -22612,6 +22808,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22612
22808
  _session_id?: string;
22613
22809
  };
22614
22810
  Returns: string;
22811
+ } | {
22812
+ Args: {
22813
+ _cart_id: string;
22814
+ _is_herprint: boolean;
22815
+ _printer_id: string;
22816
+ _queue_item_id: string;
22817
+ _session_id: string;
22818
+ };
22819
+ Returns: string;
22615
22820
  };
22616
22821
  pick_order_context: {
22617
22822
  Args: {
@@ -22692,6 +22897,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22692
22897
  print_job_id: string | null;
22693
22898
  printed_at: string | null;
22694
22899
  printed_by: string | null;
22900
+ printed_cart_ids: import("./types").Json;
22901
+ printer_id: string | null;
22902
+ priority: number;
22903
+ reference: string | null;
22904
+ route: string | null;
22905
+ screen_id: string | null;
22906
+ station_id: string | null;
22907
+ status_id: string | null;
22908
+ updated_at: string;
22909
+ warnings: import("./types").Json;
22910
+ };
22911
+ SetofOptions: {
22912
+ from: "*";
22913
+ to: "pick_queue";
22914
+ isOneToOne: true;
22915
+ isSetofReturn: false;
22916
+ };
22917
+ } | {
22918
+ Args: {
22919
+ _cart_id?: string;
22920
+ _queue_item_id: string;
22921
+ _session_id: string;
22922
+ };
22923
+ Returns: {
22924
+ announced_at: string;
22925
+ assigned_user_id: string | null;
22926
+ barcode: string | null;
22927
+ cancelled_at: string | null;
22928
+ cart_count: number;
22929
+ completed_at: string | null;
22930
+ country_code: string | null;
22931
+ created_at: string;
22932
+ customer_name: string | null;
22933
+ delivery_address: string | null;
22934
+ document_number: string | null;
22935
+ document_type_id: string | null;
22936
+ due_at: string | null;
22937
+ id: string;
22938
+ is_urgent: boolean;
22939
+ line_count: number;
22940
+ order_number: string | null;
22941
+ order_type: string | null;
22942
+ payload: import("./types").Json;
22943
+ print_count: number;
22944
+ print_job_id: string | null;
22945
+ printed_at: string | null;
22946
+ printed_by: string | null;
22947
+ printed_cart_ids: import("./types").Json;
22695
22948
  printer_id: string | null;
22696
22949
  priority: number;
22697
22950
  reference: string | null;
@@ -22804,6 +23057,66 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22804
23057
  };
22805
23058
  Returns: undefined;
22806
23059
  };
23060
+ planning_cancel_item: {
23061
+ Args: {
23062
+ _id: string;
23063
+ };
23064
+ Returns: undefined;
23065
+ };
23066
+ planning_list: {
23067
+ Args: {
23068
+ _from: string;
23069
+ _to: string;
23070
+ };
23071
+ Returns: {
23072
+ assigned_monteur_id: string | null;
23073
+ assistants: import("./types").Json | null;
23074
+ budget_mandate_cents: number | null;
23075
+ created_at: string | null;
23076
+ created_by: string | null;
23077
+ customer_id: string | null;
23078
+ customer_name: string | null;
23079
+ duration_minutes: number | null;
23080
+ end_at: string | null;
23081
+ id: string | null;
23082
+ needs_detail_review: boolean | null;
23083
+ notes: string | null;
23084
+ project_number: string | null;
23085
+ review_reasons: string[] | null;
23086
+ start_at: string | null;
23087
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
23088
+ updated_at: string | null;
23089
+ viewer_role: string | null;
23090
+ werkbon_id: string | null;
23091
+ work_address: string | null;
23092
+ }[];
23093
+ SetofOptions: {
23094
+ from: "*";
23095
+ to: "planning_overview";
23096
+ isOneToOne: false;
23097
+ isSetofReturn: true;
23098
+ };
23099
+ };
23100
+ planning_set_assistants: {
23101
+ Args: {
23102
+ _monteur_ids: string[];
23103
+ _planning_item_id: string;
23104
+ };
23105
+ Returns: undefined;
23106
+ };
23107
+ planning_upsert_item: {
23108
+ Args: {
23109
+ _assigned_monteur_id: string;
23110
+ _end_at: string;
23111
+ _notes?: string;
23112
+ _start_at: string;
23113
+ _werkbon_id: string;
23114
+ };
23115
+ Returns: {
23116
+ action: string;
23117
+ id: string;
23118
+ }[];
23119
+ };
22807
23120
  print_preview_toestaan: {
22808
23121
  Args: {
22809
23122
  _max?: number;
@@ -23385,6 +23698,26 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23385
23698
  };
23386
23699
  Returns: string[];
23387
23700
  };
23701
+ start_time_log_at: {
23702
+ Args: {
23703
+ p_clicked_at?: string;
23704
+ p_employee_id: string;
23705
+ p_start_lat?: number;
23706
+ p_start_lng?: number;
23707
+ p_type: string;
23708
+ p_work_order_id?: string;
23709
+ };
23710
+ Returns: import("./types").Json;
23711
+ };
23712
+ stop_time_log: {
23713
+ Args: {
23714
+ p_employee_id: string;
23715
+ p_end_lat?: number;
23716
+ p_end_lng?: number;
23717
+ p_end_time: string;
23718
+ };
23719
+ Returns: import("./types").Json;
23720
+ };
23388
23721
  switch_time_log: {
23389
23722
  Args: {
23390
23723
  p_employee_id: string;