@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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 tickRecalcJob: import("@tanstack/start-client-core").Option
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 tickRecalcJob: import("@tanstack/start-client-core").Option
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 tickRecalcJob: import("@tanstack/start-client-core").Option
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 tickRecalcJob: import("@tanstack/start-client-core").Option
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 tickRecalcJob: import("@tanstack/start-client-core").Option
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 tickRecalcJob: import("@tanstack/start-client-core").Option
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;