@flowselections/logistiek-engine 1.0.32 → 1.0.34

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/FloridayPoortCard.d.ts +2 -0
  3. package/dist-lib/components/FloridayPoortCard.d.ts.map +1 -0
  4. package/dist-lib/components/FloridayPoortCard.js +29 -0
  5. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  6. package/dist-lib/components/LogistiekEnginePage.js +2 -1
  7. package/dist-lib/hooks/useFloridayGate.d.ts +40 -0
  8. package/dist-lib/hooks/useFloridayGate.d.ts.map +1 -0
  9. package/dist-lib/hooks/useFloridayGate.js +50 -0
  10. package/dist-lib/index.d.ts +2 -0
  11. package/dist-lib/index.d.ts.map +1 -1
  12. package/dist-lib/index.js +2 -0
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts +162 -0
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.d.ts +158 -1515
  16. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +162 -0
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/moduleClient.d.ts +162 -0
  20. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.d.ts +162 -0
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/lib/floridayDocuments.functions.d.ts +486 -0
  24. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floridayDocuments.server.d.ts +3 -4
  26. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  27. package/dist-lib/lib/floridayDocuments.server.js +24 -15
  28. package/dist-lib/lib/floridayGuard.server.d.ts +32 -0
  29. package/dist-lib/lib/floridayGuard.server.d.ts.map +1 -0
  30. package/dist-lib/lib/floridayGuard.server.js +137 -0
  31. package/dist-lib/lib/floridayPush.functions.d.ts +162 -0
  32. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  34. package/dist-lib/lib/floridayPush.server.js +1 -1
  35. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +810 -0
  36. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +324 -0
  38. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +162 -0
  40. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/modulePrompts.d.ts +1 -0
  42. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  43. package/dist-lib/lib/modulePrompts.js +2707 -2578
  44. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  45. package/dist-lib/lib/ruleEngineSchema.js +7 -0
  46. package/package.json +1 -1
@@ -10075,6 +10075,36 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
10075
10075
  };
10076
10076
  Relationships: [];
10077
10077
  };
10078
+ logistics_floriday_push_refusals: {
10079
+ Row: {
10080
+ action: string | null;
10081
+ created_at: string;
10082
+ id: string;
10083
+ order_ref: string;
10084
+ reason: string;
10085
+ source_module: string | null;
10086
+ source_shell: string | null;
10087
+ };
10088
+ Insert: {
10089
+ action?: string | null;
10090
+ created_at?: string;
10091
+ id?: string;
10092
+ order_ref: string;
10093
+ reason: string;
10094
+ source_module?: string | null;
10095
+ source_shell?: string | null;
10096
+ };
10097
+ Update: {
10098
+ action?: string | null;
10099
+ created_at?: string;
10100
+ id?: string;
10101
+ order_ref?: string;
10102
+ reason?: string;
10103
+ source_module?: string | null;
10104
+ source_shell?: string | null;
10105
+ };
10106
+ Relationships: [];
10107
+ };
10078
10108
  logistics_floriday_pushes: {
10079
10109
  Row: {
10080
10110
  attempts: number;
@@ -10150,6 +10180,42 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
10150
10180
  };
10151
10181
  Relationships: [];
10152
10182
  };
10183
+ logistics_floriday_status_sends: {
10184
+ Row: {
10185
+ action: string;
10186
+ created_at: string;
10187
+ detail: string | null;
10188
+ http_status: number | null;
10189
+ id: string;
10190
+ ok: boolean;
10191
+ order_ref: string;
10192
+ source_module: string | null;
10193
+ source_shell: string | null;
10194
+ };
10195
+ Insert: {
10196
+ action: string;
10197
+ created_at?: string;
10198
+ detail?: string | null;
10199
+ http_status?: number | null;
10200
+ id?: string;
10201
+ ok?: boolean;
10202
+ order_ref: string;
10203
+ source_module?: string | null;
10204
+ source_shell?: string | null;
10205
+ };
10206
+ Update: {
10207
+ action?: string;
10208
+ created_at?: string;
10209
+ detail?: string | null;
10210
+ http_status?: number | null;
10211
+ id?: string;
10212
+ ok?: boolean;
10213
+ order_ref?: string;
10214
+ source_module?: string | null;
10215
+ source_shell?: string | null;
10216
+ };
10217
+ Relationships: [];
10218
+ };
10153
10219
  logistics_formulas: {
10154
10220
  Row: {
10155
10221
  created_at: string;
@@ -19321,6 +19387,36 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
19321
19387
  referencedColumns: ["id"];
19322
19388
  }];
19323
19389
  };
19390
+ voorraad_buffer_state: {
19391
+ Row: {
19392
+ buffer_id: string;
19393
+ buffer_key: string | null;
19394
+ closed_at: string | null;
19395
+ created_at: string;
19396
+ detached_orders: import("../integrations/supabase/types").Json;
19397
+ reason: string | null;
19398
+ updated_at: string;
19399
+ };
19400
+ Insert: {
19401
+ buffer_id: string;
19402
+ buffer_key?: string | null;
19403
+ closed_at?: string | null;
19404
+ created_at?: string;
19405
+ detached_orders?: import("../integrations/supabase/types").Json;
19406
+ reason?: string | null;
19407
+ updated_at?: string;
19408
+ };
19409
+ Update: {
19410
+ buffer_id?: string;
19411
+ buffer_key?: string | null;
19412
+ closed_at?: string | null;
19413
+ created_at?: string;
19414
+ detached_orders?: import("../integrations/supabase/types").Json;
19415
+ reason?: string | null;
19416
+ updated_at?: string;
19417
+ };
19418
+ Relationships: [];
19419
+ };
19324
19420
  voorraad_custom_fields: {
19325
19421
  Row: {
19326
19422
  created_at: string;
@@ -19363,6 +19459,36 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
19363
19459
  };
19364
19460
  Relationships: [];
19365
19461
  };
19462
+ voorraad_logistics_event_log: {
19463
+ Row: {
19464
+ created_at: string;
19465
+ event_id: string;
19466
+ event_type: string;
19467
+ order_ref: string | null;
19468
+ processed_at: string;
19469
+ result: import("../integrations/supabase/types").Json;
19470
+ updated_at: string;
19471
+ };
19472
+ Insert: {
19473
+ created_at?: string;
19474
+ event_id: string;
19475
+ event_type: string;
19476
+ order_ref?: string | null;
19477
+ processed_at?: string;
19478
+ result?: import("../integrations/supabase/types").Json;
19479
+ updated_at?: string;
19480
+ };
19481
+ Update: {
19482
+ created_at?: string;
19483
+ event_id?: string;
19484
+ event_type?: string;
19485
+ order_ref?: string | null;
19486
+ processed_at?: string;
19487
+ result?: import("../integrations/supabase/types").Json;
19488
+ updated_at?: string;
19489
+ };
19490
+ Relationships: [];
19491
+ };
19366
19492
  voorraad_media_upload_failures: {
19367
19493
  Row: {
19368
19494
  action: string;
@@ -23616,6 +23742,38 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
23616
23742
  };
23617
23743
  Returns: string;
23618
23744
  };
23745
+ logistics_floriday_gate_status: {
23746
+ Args: never;
23747
+ Returns: import("../integrations/supabase/types").Json;
23748
+ };
23749
+ logistics_floriday_log_refusal: {
23750
+ Args: {
23751
+ _action?: string;
23752
+ _module?: string;
23753
+ _order_ref: string;
23754
+ _reason: string;
23755
+ _shell?: string;
23756
+ };
23757
+ Returns: undefined;
23758
+ };
23759
+ logistics_floriday_log_send: {
23760
+ Args: {
23761
+ _action: string;
23762
+ _detail?: string;
23763
+ _http_status?: number;
23764
+ _module?: string;
23765
+ _ok: boolean;
23766
+ _order_ref: string;
23767
+ _shell?: string;
23768
+ };
23769
+ Returns: undefined;
23770
+ };
23771
+ logistics_floriday_order_approved: {
23772
+ Args: {
23773
+ _order_ref: string;
23774
+ };
23775
+ Returns: boolean;
23776
+ };
23619
23777
  logistics_floriday_prune_pushes: {
23620
23778
  Args: {
23621
23779
  _days?: number;
@@ -23630,6 +23788,10 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
23630
23788
  };
23631
23789
  Returns: string;
23632
23790
  };
23791
+ logistics_floriday_status_updates_enabled: {
23792
+ Args: never;
23793
+ Returns: boolean;
23794
+ };
23633
23795
  logistics_fulfill_barcode_requests: {
23634
23796
  Args: {
23635
23797
  p_limit?: number;
@@ -36187,6 +36349,36 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
36187
36349
  };
36188
36350
  Relationships: [];
36189
36351
  };
36352
+ logistics_floriday_push_refusals: {
36353
+ Row: {
36354
+ action: string | null;
36355
+ created_at: string;
36356
+ id: string;
36357
+ order_ref: string;
36358
+ reason: string;
36359
+ source_module: string | null;
36360
+ source_shell: string | null;
36361
+ };
36362
+ Insert: {
36363
+ action?: string | null;
36364
+ created_at?: string;
36365
+ id?: string;
36366
+ order_ref: string;
36367
+ reason: string;
36368
+ source_module?: string | null;
36369
+ source_shell?: string | null;
36370
+ };
36371
+ Update: {
36372
+ action?: string | null;
36373
+ created_at?: string;
36374
+ id?: string;
36375
+ order_ref?: string;
36376
+ reason?: string;
36377
+ source_module?: string | null;
36378
+ source_shell?: string | null;
36379
+ };
36380
+ Relationships: [];
36381
+ };
36190
36382
  logistics_floriday_pushes: {
36191
36383
  Row: {
36192
36384
  attempts: number;
@@ -36262,6 +36454,42 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
36262
36454
  };
36263
36455
  Relationships: [];
36264
36456
  };
36457
+ logistics_floriday_status_sends: {
36458
+ Row: {
36459
+ action: string;
36460
+ created_at: string;
36461
+ detail: string | null;
36462
+ http_status: number | null;
36463
+ id: string;
36464
+ ok: boolean;
36465
+ order_ref: string;
36466
+ source_module: string | null;
36467
+ source_shell: string | null;
36468
+ };
36469
+ Insert: {
36470
+ action: string;
36471
+ created_at?: string;
36472
+ detail?: string | null;
36473
+ http_status?: number | null;
36474
+ id?: string;
36475
+ ok?: boolean;
36476
+ order_ref: string;
36477
+ source_module?: string | null;
36478
+ source_shell?: string | null;
36479
+ };
36480
+ Update: {
36481
+ action?: string;
36482
+ created_at?: string;
36483
+ detail?: string | null;
36484
+ http_status?: number | null;
36485
+ id?: string;
36486
+ ok?: boolean;
36487
+ order_ref?: string;
36488
+ source_module?: string | null;
36489
+ source_shell?: string | null;
36490
+ };
36491
+ Relationships: [];
36492
+ };
36265
36493
  logistics_formulas: {
36266
36494
  Row: {
36267
36495
  created_at: string;
@@ -45433,6 +45661,36 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
45433
45661
  referencedColumns: ["id"];
45434
45662
  }];
45435
45663
  };
45664
+ voorraad_buffer_state: {
45665
+ Row: {
45666
+ buffer_id: string;
45667
+ buffer_key: string | null;
45668
+ closed_at: string | null;
45669
+ created_at: string;
45670
+ detached_orders: import("../integrations/supabase/types").Json;
45671
+ reason: string | null;
45672
+ updated_at: string;
45673
+ };
45674
+ Insert: {
45675
+ buffer_id: string;
45676
+ buffer_key?: string | null;
45677
+ closed_at?: string | null;
45678
+ created_at?: string;
45679
+ detached_orders?: import("../integrations/supabase/types").Json;
45680
+ reason?: string | null;
45681
+ updated_at?: string;
45682
+ };
45683
+ Update: {
45684
+ buffer_id?: string;
45685
+ buffer_key?: string | null;
45686
+ closed_at?: string | null;
45687
+ created_at?: string;
45688
+ detached_orders?: import("../integrations/supabase/types").Json;
45689
+ reason?: string | null;
45690
+ updated_at?: string;
45691
+ };
45692
+ Relationships: [];
45693
+ };
45436
45694
  voorraad_custom_fields: {
45437
45695
  Row: {
45438
45696
  created_at: string;
@@ -45475,6 +45733,36 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
45475
45733
  };
45476
45734
  Relationships: [];
45477
45735
  };
45736
+ voorraad_logistics_event_log: {
45737
+ Row: {
45738
+ created_at: string;
45739
+ event_id: string;
45740
+ event_type: string;
45741
+ order_ref: string | null;
45742
+ processed_at: string;
45743
+ result: import("../integrations/supabase/types").Json;
45744
+ updated_at: string;
45745
+ };
45746
+ Insert: {
45747
+ created_at?: string;
45748
+ event_id: string;
45749
+ event_type: string;
45750
+ order_ref?: string | null;
45751
+ processed_at?: string;
45752
+ result?: import("../integrations/supabase/types").Json;
45753
+ updated_at?: string;
45754
+ };
45755
+ Update: {
45756
+ created_at?: string;
45757
+ event_id?: string;
45758
+ event_type?: string;
45759
+ order_ref?: string | null;
45760
+ processed_at?: string;
45761
+ result?: import("../integrations/supabase/types").Json;
45762
+ updated_at?: string;
45763
+ };
45764
+ Relationships: [];
45765
+ };
45478
45766
  voorraad_media_upload_failures: {
45479
45767
  Row: {
45480
45768
  action: string;
@@ -49728,6 +50016,38 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49728
50016
  };
49729
50017
  Returns: string;
49730
50018
  };
50019
+ logistics_floriday_gate_status: {
50020
+ Args: never;
50021
+ Returns: import("../integrations/supabase/types").Json;
50022
+ };
50023
+ logistics_floriday_log_refusal: {
50024
+ Args: {
50025
+ _action?: string;
50026
+ _module?: string;
50027
+ _order_ref: string;
50028
+ _reason: string;
50029
+ _shell?: string;
50030
+ };
50031
+ Returns: undefined;
50032
+ };
50033
+ logistics_floriday_log_send: {
50034
+ Args: {
50035
+ _action: string;
50036
+ _detail?: string;
50037
+ _http_status?: number;
50038
+ _module?: string;
50039
+ _ok: boolean;
50040
+ _order_ref: string;
50041
+ _shell?: string;
50042
+ };
50043
+ Returns: undefined;
50044
+ };
50045
+ logistics_floriday_order_approved: {
50046
+ Args: {
50047
+ _order_ref: string;
50048
+ };
50049
+ Returns: boolean;
50050
+ };
49731
50051
  logistics_floriday_prune_pushes: {
49732
50052
  Args: {
49733
50053
  _days?: number;
@@ -49742,6 +50062,10 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49742
50062
  };
49743
50063
  Returns: string;
49744
50064
  };
50065
+ logistics_floriday_status_updates_enabled: {
50066
+ Args: never;
50067
+ Returns: boolean;
50068
+ };
49745
50069
  logistics_fulfill_barcode_requests: {
49746
50070
  Args: {
49747
50071
  p_limit?: number;
@@ -62303,6 +62627,36 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
62303
62627
  };
62304
62628
  Relationships: [];
62305
62629
  };
62630
+ logistics_floriday_push_refusals: {
62631
+ Row: {
62632
+ action: string | null;
62633
+ created_at: string;
62634
+ id: string;
62635
+ order_ref: string;
62636
+ reason: string;
62637
+ source_module: string | null;
62638
+ source_shell: string | null;
62639
+ };
62640
+ Insert: {
62641
+ action?: string | null;
62642
+ created_at?: string;
62643
+ id?: string;
62644
+ order_ref: string;
62645
+ reason: string;
62646
+ source_module?: string | null;
62647
+ source_shell?: string | null;
62648
+ };
62649
+ Update: {
62650
+ action?: string | null;
62651
+ created_at?: string;
62652
+ id?: string;
62653
+ order_ref?: string;
62654
+ reason?: string;
62655
+ source_module?: string | null;
62656
+ source_shell?: string | null;
62657
+ };
62658
+ Relationships: [];
62659
+ };
62306
62660
  logistics_floriday_pushes: {
62307
62661
  Row: {
62308
62662
  attempts: number;
@@ -62378,6 +62732,42 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
62378
62732
  };
62379
62733
  Relationships: [];
62380
62734
  };
62735
+ logistics_floriday_status_sends: {
62736
+ Row: {
62737
+ action: string;
62738
+ created_at: string;
62739
+ detail: string | null;
62740
+ http_status: number | null;
62741
+ id: string;
62742
+ ok: boolean;
62743
+ order_ref: string;
62744
+ source_module: string | null;
62745
+ source_shell: string | null;
62746
+ };
62747
+ Insert: {
62748
+ action: string;
62749
+ created_at?: string;
62750
+ detail?: string | null;
62751
+ http_status?: number | null;
62752
+ id?: string;
62753
+ ok?: boolean;
62754
+ order_ref: string;
62755
+ source_module?: string | null;
62756
+ source_shell?: string | null;
62757
+ };
62758
+ Update: {
62759
+ action?: string;
62760
+ created_at?: string;
62761
+ detail?: string | null;
62762
+ http_status?: number | null;
62763
+ id?: string;
62764
+ ok?: boolean;
62765
+ order_ref?: string;
62766
+ source_module?: string | null;
62767
+ source_shell?: string | null;
62768
+ };
62769
+ Relationships: [];
62770
+ };
62381
62771
  logistics_formulas: {
62382
62772
  Row: {
62383
62773
  created_at: string;
@@ -71549,6 +71939,36 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
71549
71939
  referencedColumns: ["id"];
71550
71940
  }];
71551
71941
  };
71942
+ voorraad_buffer_state: {
71943
+ Row: {
71944
+ buffer_id: string;
71945
+ buffer_key: string | null;
71946
+ closed_at: string | null;
71947
+ created_at: string;
71948
+ detached_orders: import("../integrations/supabase/types").Json;
71949
+ reason: string | null;
71950
+ updated_at: string;
71951
+ };
71952
+ Insert: {
71953
+ buffer_id: string;
71954
+ buffer_key?: string | null;
71955
+ closed_at?: string | null;
71956
+ created_at?: string;
71957
+ detached_orders?: import("../integrations/supabase/types").Json;
71958
+ reason?: string | null;
71959
+ updated_at?: string;
71960
+ };
71961
+ Update: {
71962
+ buffer_id?: string;
71963
+ buffer_key?: string | null;
71964
+ closed_at?: string | null;
71965
+ created_at?: string;
71966
+ detached_orders?: import("../integrations/supabase/types").Json;
71967
+ reason?: string | null;
71968
+ updated_at?: string;
71969
+ };
71970
+ Relationships: [];
71971
+ };
71552
71972
  voorraad_custom_fields: {
71553
71973
  Row: {
71554
71974
  created_at: string;
@@ -71591,6 +72011,36 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
71591
72011
  };
71592
72012
  Relationships: [];
71593
72013
  };
72014
+ voorraad_logistics_event_log: {
72015
+ Row: {
72016
+ created_at: string;
72017
+ event_id: string;
72018
+ event_type: string;
72019
+ order_ref: string | null;
72020
+ processed_at: string;
72021
+ result: import("../integrations/supabase/types").Json;
72022
+ updated_at: string;
72023
+ };
72024
+ Insert: {
72025
+ created_at?: string;
72026
+ event_id: string;
72027
+ event_type: string;
72028
+ order_ref?: string | null;
72029
+ processed_at?: string;
72030
+ result?: import("../integrations/supabase/types").Json;
72031
+ updated_at?: string;
72032
+ };
72033
+ Update: {
72034
+ created_at?: string;
72035
+ event_id?: string;
72036
+ event_type?: string;
72037
+ order_ref?: string | null;
72038
+ processed_at?: string;
72039
+ result?: import("../integrations/supabase/types").Json;
72040
+ updated_at?: string;
72041
+ };
72042
+ Relationships: [];
72043
+ };
71594
72044
  voorraad_media_upload_failures: {
71595
72045
  Row: {
71596
72046
  action: string;
@@ -75844,6 +76294,38 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75844
76294
  };
75845
76295
  Returns: string;
75846
76296
  };
76297
+ logistics_floriday_gate_status: {
76298
+ Args: never;
76299
+ Returns: import("../integrations/supabase/types").Json;
76300
+ };
76301
+ logistics_floriday_log_refusal: {
76302
+ Args: {
76303
+ _action?: string;
76304
+ _module?: string;
76305
+ _order_ref: string;
76306
+ _reason: string;
76307
+ _shell?: string;
76308
+ };
76309
+ Returns: undefined;
76310
+ };
76311
+ logistics_floriday_log_send: {
76312
+ Args: {
76313
+ _action: string;
76314
+ _detail?: string;
76315
+ _http_status?: number;
76316
+ _module?: string;
76317
+ _ok: boolean;
76318
+ _order_ref: string;
76319
+ _shell?: string;
76320
+ };
76321
+ Returns: undefined;
76322
+ };
76323
+ logistics_floriday_order_approved: {
76324
+ Args: {
76325
+ _order_ref: string;
76326
+ };
76327
+ Returns: boolean;
76328
+ };
75847
76329
  logistics_floriday_prune_pushes: {
75848
76330
  Args: {
75849
76331
  _days?: number;
@@ -75858,6 +76340,10 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
75858
76340
  };
75859
76341
  Returns: string;
75860
76342
  };
76343
+ logistics_floriday_status_updates_enabled: {
76344
+ Args: never;
76345
+ Returns: boolean;
76346
+ };
75861
76347
  logistics_fulfill_barcode_requests: {
75862
76348
  Args: {
75863
76349
  p_limit?: number;
@@ -88419,6 +88905,36 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
88419
88905
  };
88420
88906
  Relationships: [];
88421
88907
  };
88908
+ logistics_floriday_push_refusals: {
88909
+ Row: {
88910
+ action: string | null;
88911
+ created_at: string;
88912
+ id: string;
88913
+ order_ref: string;
88914
+ reason: string;
88915
+ source_module: string | null;
88916
+ source_shell: string | null;
88917
+ };
88918
+ Insert: {
88919
+ action?: string | null;
88920
+ created_at?: string;
88921
+ id?: string;
88922
+ order_ref: string;
88923
+ reason: string;
88924
+ source_module?: string | null;
88925
+ source_shell?: string | null;
88926
+ };
88927
+ Update: {
88928
+ action?: string | null;
88929
+ created_at?: string;
88930
+ id?: string;
88931
+ order_ref?: string;
88932
+ reason?: string;
88933
+ source_module?: string | null;
88934
+ source_shell?: string | null;
88935
+ };
88936
+ Relationships: [];
88937
+ };
88422
88938
  logistics_floriday_pushes: {
88423
88939
  Row: {
88424
88940
  attempts: number;
@@ -88494,6 +89010,42 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
88494
89010
  };
88495
89011
  Relationships: [];
88496
89012
  };
89013
+ logistics_floriday_status_sends: {
89014
+ Row: {
89015
+ action: string;
89016
+ created_at: string;
89017
+ detail: string | null;
89018
+ http_status: number | null;
89019
+ id: string;
89020
+ ok: boolean;
89021
+ order_ref: string;
89022
+ source_module: string | null;
89023
+ source_shell: string | null;
89024
+ };
89025
+ Insert: {
89026
+ action: string;
89027
+ created_at?: string;
89028
+ detail?: string | null;
89029
+ http_status?: number | null;
89030
+ id?: string;
89031
+ ok?: boolean;
89032
+ order_ref: string;
89033
+ source_module?: string | null;
89034
+ source_shell?: string | null;
89035
+ };
89036
+ Update: {
89037
+ action?: string;
89038
+ created_at?: string;
89039
+ detail?: string | null;
89040
+ http_status?: number | null;
89041
+ id?: string;
89042
+ ok?: boolean;
89043
+ order_ref?: string;
89044
+ source_module?: string | null;
89045
+ source_shell?: string | null;
89046
+ };
89047
+ Relationships: [];
89048
+ };
88497
89049
  logistics_formulas: {
88498
89050
  Row: {
88499
89051
  created_at: string;
@@ -97665,6 +98217,36 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
97665
98217
  referencedColumns: ["id"];
97666
98218
  }];
97667
98219
  };
98220
+ voorraad_buffer_state: {
98221
+ Row: {
98222
+ buffer_id: string;
98223
+ buffer_key: string | null;
98224
+ closed_at: string | null;
98225
+ created_at: string;
98226
+ detached_orders: import("../integrations/supabase/types").Json;
98227
+ reason: string | null;
98228
+ updated_at: string;
98229
+ };
98230
+ Insert: {
98231
+ buffer_id: string;
98232
+ buffer_key?: string | null;
98233
+ closed_at?: string | null;
98234
+ created_at?: string;
98235
+ detached_orders?: import("../integrations/supabase/types").Json;
98236
+ reason?: string | null;
98237
+ updated_at?: string;
98238
+ };
98239
+ Update: {
98240
+ buffer_id?: string;
98241
+ buffer_key?: string | null;
98242
+ closed_at?: string | null;
98243
+ created_at?: string;
98244
+ detached_orders?: import("../integrations/supabase/types").Json;
98245
+ reason?: string | null;
98246
+ updated_at?: string;
98247
+ };
98248
+ Relationships: [];
98249
+ };
97668
98250
  voorraad_custom_fields: {
97669
98251
  Row: {
97670
98252
  created_at: string;
@@ -97707,6 +98289,36 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
97707
98289
  };
97708
98290
  Relationships: [];
97709
98291
  };
98292
+ voorraad_logistics_event_log: {
98293
+ Row: {
98294
+ created_at: string;
98295
+ event_id: string;
98296
+ event_type: string;
98297
+ order_ref: string | null;
98298
+ processed_at: string;
98299
+ result: import("../integrations/supabase/types").Json;
98300
+ updated_at: string;
98301
+ };
98302
+ Insert: {
98303
+ created_at?: string;
98304
+ event_id: string;
98305
+ event_type: string;
98306
+ order_ref?: string | null;
98307
+ processed_at?: string;
98308
+ result?: import("../integrations/supabase/types").Json;
98309
+ updated_at?: string;
98310
+ };
98311
+ Update: {
98312
+ created_at?: string;
98313
+ event_id?: string;
98314
+ event_type?: string;
98315
+ order_ref?: string | null;
98316
+ processed_at?: string;
98317
+ result?: import("../integrations/supabase/types").Json;
98318
+ updated_at?: string;
98319
+ };
98320
+ Relationships: [];
98321
+ };
97710
98322
  voorraad_media_upload_failures: {
97711
98323
  Row: {
97712
98324
  action: string;
@@ -101960,6 +102572,38 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101960
102572
  };
101961
102573
  Returns: string;
101962
102574
  };
102575
+ logistics_floriday_gate_status: {
102576
+ Args: never;
102577
+ Returns: import("../integrations/supabase/types").Json;
102578
+ };
102579
+ logistics_floriday_log_refusal: {
102580
+ Args: {
102581
+ _action?: string;
102582
+ _module?: string;
102583
+ _order_ref: string;
102584
+ _reason: string;
102585
+ _shell?: string;
102586
+ };
102587
+ Returns: undefined;
102588
+ };
102589
+ logistics_floriday_log_send: {
102590
+ Args: {
102591
+ _action: string;
102592
+ _detail?: string;
102593
+ _http_status?: number;
102594
+ _module?: string;
102595
+ _ok: boolean;
102596
+ _order_ref: string;
102597
+ _shell?: string;
102598
+ };
102599
+ Returns: undefined;
102600
+ };
102601
+ logistics_floriday_order_approved: {
102602
+ Args: {
102603
+ _order_ref: string;
102604
+ };
102605
+ Returns: boolean;
102606
+ };
101963
102607
  logistics_floriday_prune_pushes: {
101964
102608
  Args: {
101965
102609
  _days?: number;
@@ -101974,6 +102618,10 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
101974
102618
  };
101975
102619
  Returns: string;
101976
102620
  };
102621
+ logistics_floriday_status_updates_enabled: {
102622
+ Args: never;
102623
+ Returns: boolean;
102624
+ };
101977
102625
  logistics_fulfill_barcode_requests: {
101978
102626
  Args: {
101979
102627
  p_limit?: number;
@@ -114533,6 +115181,36 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
114533
115181
  };
114534
115182
  Relationships: [];
114535
115183
  };
115184
+ logistics_floriday_push_refusals: {
115185
+ Row: {
115186
+ action: string | null;
115187
+ created_at: string;
115188
+ id: string;
115189
+ order_ref: string;
115190
+ reason: string;
115191
+ source_module: string | null;
115192
+ source_shell: string | null;
115193
+ };
115194
+ Insert: {
115195
+ action?: string | null;
115196
+ created_at?: string;
115197
+ id?: string;
115198
+ order_ref: string;
115199
+ reason: string;
115200
+ source_module?: string | null;
115201
+ source_shell?: string | null;
115202
+ };
115203
+ Update: {
115204
+ action?: string | null;
115205
+ created_at?: string;
115206
+ id?: string;
115207
+ order_ref?: string;
115208
+ reason?: string;
115209
+ source_module?: string | null;
115210
+ source_shell?: string | null;
115211
+ };
115212
+ Relationships: [];
115213
+ };
114536
115214
  logistics_floriday_pushes: {
114537
115215
  Row: {
114538
115216
  attempts: number;
@@ -114608,6 +115286,42 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
114608
115286
  };
114609
115287
  Relationships: [];
114610
115288
  };
115289
+ logistics_floriday_status_sends: {
115290
+ Row: {
115291
+ action: string;
115292
+ created_at: string;
115293
+ detail: string | null;
115294
+ http_status: number | null;
115295
+ id: string;
115296
+ ok: boolean;
115297
+ order_ref: string;
115298
+ source_module: string | null;
115299
+ source_shell: string | null;
115300
+ };
115301
+ Insert: {
115302
+ action: string;
115303
+ created_at?: string;
115304
+ detail?: string | null;
115305
+ http_status?: number | null;
115306
+ id?: string;
115307
+ ok?: boolean;
115308
+ order_ref: string;
115309
+ source_module?: string | null;
115310
+ source_shell?: string | null;
115311
+ };
115312
+ Update: {
115313
+ action?: string;
115314
+ created_at?: string;
115315
+ detail?: string | null;
115316
+ http_status?: number | null;
115317
+ id?: string;
115318
+ ok?: boolean;
115319
+ order_ref?: string;
115320
+ source_module?: string | null;
115321
+ source_shell?: string | null;
115322
+ };
115323
+ Relationships: [];
115324
+ };
114611
115325
  logistics_formulas: {
114612
115326
  Row: {
114613
115327
  created_at: string;
@@ -123779,6 +124493,36 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
123779
124493
  referencedColumns: ["id"];
123780
124494
  }];
123781
124495
  };
124496
+ voorraad_buffer_state: {
124497
+ Row: {
124498
+ buffer_id: string;
124499
+ buffer_key: string | null;
124500
+ closed_at: string | null;
124501
+ created_at: string;
124502
+ detached_orders: import("../integrations/supabase/types").Json;
124503
+ reason: string | null;
124504
+ updated_at: string;
124505
+ };
124506
+ Insert: {
124507
+ buffer_id: string;
124508
+ buffer_key?: string | null;
124509
+ closed_at?: string | null;
124510
+ created_at?: string;
124511
+ detached_orders?: import("../integrations/supabase/types").Json;
124512
+ reason?: string | null;
124513
+ updated_at?: string;
124514
+ };
124515
+ Update: {
124516
+ buffer_id?: string;
124517
+ buffer_key?: string | null;
124518
+ closed_at?: string | null;
124519
+ created_at?: string;
124520
+ detached_orders?: import("../integrations/supabase/types").Json;
124521
+ reason?: string | null;
124522
+ updated_at?: string;
124523
+ };
124524
+ Relationships: [];
124525
+ };
123782
124526
  voorraad_custom_fields: {
123783
124527
  Row: {
123784
124528
  created_at: string;
@@ -123821,6 +124565,36 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
123821
124565
  };
123822
124566
  Relationships: [];
123823
124567
  };
124568
+ voorraad_logistics_event_log: {
124569
+ Row: {
124570
+ created_at: string;
124571
+ event_id: string;
124572
+ event_type: string;
124573
+ order_ref: string | null;
124574
+ processed_at: string;
124575
+ result: import("../integrations/supabase/types").Json;
124576
+ updated_at: string;
124577
+ };
124578
+ Insert: {
124579
+ created_at?: string;
124580
+ event_id: string;
124581
+ event_type: string;
124582
+ order_ref?: string | null;
124583
+ processed_at?: string;
124584
+ result?: import("../integrations/supabase/types").Json;
124585
+ updated_at?: string;
124586
+ };
124587
+ Update: {
124588
+ created_at?: string;
124589
+ event_id?: string;
124590
+ event_type?: string;
124591
+ order_ref?: string | null;
124592
+ processed_at?: string;
124593
+ result?: import("../integrations/supabase/types").Json;
124594
+ updated_at?: string;
124595
+ };
124596
+ Relationships: [];
124597
+ };
123824
124598
  voorraad_media_upload_failures: {
123825
124599
  Row: {
123826
124600
  action: string;
@@ -128074,6 +128848,38 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128074
128848
  };
128075
128849
  Returns: string;
128076
128850
  };
128851
+ logistics_floriday_gate_status: {
128852
+ Args: never;
128853
+ Returns: import("../integrations/supabase/types").Json;
128854
+ };
128855
+ logistics_floriday_log_refusal: {
128856
+ Args: {
128857
+ _action?: string;
128858
+ _module?: string;
128859
+ _order_ref: string;
128860
+ _reason: string;
128861
+ _shell?: string;
128862
+ };
128863
+ Returns: undefined;
128864
+ };
128865
+ logistics_floriday_log_send: {
128866
+ Args: {
128867
+ _action: string;
128868
+ _detail?: string;
128869
+ _http_status?: number;
128870
+ _module?: string;
128871
+ _ok: boolean;
128872
+ _order_ref: string;
128873
+ _shell?: string;
128874
+ };
128875
+ Returns: undefined;
128876
+ };
128877
+ logistics_floriday_order_approved: {
128878
+ Args: {
128879
+ _order_ref: string;
128880
+ };
128881
+ Returns: boolean;
128882
+ };
128077
128883
  logistics_floriday_prune_pushes: {
128078
128884
  Args: {
128079
128885
  _days?: number;
@@ -128088,6 +128894,10 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128088
128894
  };
128089
128895
  Returns: string;
128090
128896
  };
128897
+ logistics_floriday_status_updates_enabled: {
128898
+ Args: never;
128899
+ Returns: boolean;
128900
+ };
128091
128901
  logistics_fulfill_barcode_requests: {
128092
128902
  Args: {
128093
128903
  p_limit?: number;