@flowselections/logistiek-engine 1.0.90 → 1.0.94

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 (31) hide show
  1. package/dist-lib/components/FlowOrders.js +1 -1
  2. package/dist-lib/hooks/useShippingNoteStatus.d.ts +2 -0
  3. package/dist-lib/hooks/useShippingNoteStatus.d.ts.map +1 -1
  4. package/dist-lib/hooks/useShippingNoteStatus.js +13 -1
  5. package/dist-lib/hooks/useShippingNoteStatus.test.d.ts +2 -0
  6. package/dist-lib/hooks/useShippingNoteStatus.test.d.ts.map +1 -0
  7. package/dist-lib/hooks/useShippingNoteStatus.test.js +20 -0
  8. package/dist-lib/integrations/supabase/auth-middleware.d.ts +356 -0
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts +356 -0
  11. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/moduleClient.d.ts +356 -0
  13. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/types.d.ts +364 -0
  15. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  16. package/dist-lib/lib/cartCoverage.functions.d.ts +356 -0
  17. package/dist-lib/lib/cartCoverage.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floridayDocuments.functions.d.ts +1068 -0
  19. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floridayPush.functions.d.ts +356 -0
  21. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1780 -0
  23. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +712 -0
  25. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +356 -0
  27. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/plannerDiff.functions.d.ts +356 -0
  29. package/dist-lib/lib/plannerDiff.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/ruleEngineSchema.js +2 -2
  31. package/package.json +1 -1
@@ -738,6 +738,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
738
738
  };
739
739
  Relationships: [];
740
740
  };
741
+ artikelen_instellingen: {
742
+ Row: {
743
+ created_at: string;
744
+ id: number;
745
+ marge_procent: number;
746
+ updated_at: string;
747
+ };
748
+ Insert: {
749
+ created_at?: string;
750
+ id?: number;
751
+ marge_procent?: number;
752
+ updated_at?: string;
753
+ };
754
+ Update: {
755
+ created_at?: string;
756
+ id?: number;
757
+ marge_procent?: number;
758
+ updated_at?: string;
759
+ };
760
+ Relationships: [];
761
+ };
741
762
  artikelen_veldconfig: {
742
763
  Row: {
743
764
  bron_pad: string;
@@ -10413,6 +10434,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10413
10434
  };
10414
10435
  Relationships: [];
10415
10436
  };
10437
+ logistics_cart_barcode_archief: {
10438
+ Row: {
10439
+ barcode: string;
10440
+ cart_id: string;
10441
+ created_at: string | null;
10442
+ gearchiveerd_op: string;
10443
+ order_id: string | null;
10444
+ };
10445
+ Insert: {
10446
+ barcode: string;
10447
+ cart_id: string;
10448
+ created_at?: string | null;
10449
+ gearchiveerd_op?: string;
10450
+ order_id?: string | null;
10451
+ };
10452
+ Update: {
10453
+ barcode?: string;
10454
+ cart_id?: string;
10455
+ created_at?: string | null;
10456
+ gearchiveerd_op?: string;
10457
+ order_id?: string | null;
10458
+ };
10459
+ Relationships: [];
10460
+ };
10416
10461
  logistics_control_scan: {
10417
10462
  Row: {
10418
10463
  approved_at: string | null;
@@ -14699,6 +14744,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14699
14744
  next_attempt_at: string;
14700
14745
  order_id: string;
14701
14746
  processed_at: string | null;
14747
+ send_error: string | null;
14702
14748
  status: string;
14703
14749
  updated_at: string;
14704
14750
  };
@@ -14712,6 +14758,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14712
14758
  next_attempt_at?: string;
14713
14759
  order_id: string;
14714
14760
  processed_at?: string | null;
14761
+ send_error?: string | null;
14715
14762
  status?: string;
14716
14763
  updated_at?: string;
14717
14764
  };
@@ -14725,6 +14772,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14725
14772
  next_attempt_at?: string;
14726
14773
  order_id?: string;
14727
14774
  processed_at?: string | null;
14775
+ send_error?: string | null;
14728
14776
  status?: string;
14729
14777
  updated_at?: string;
14730
14778
  };
@@ -17762,6 +17810,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17762
17810
  lead_time_days: number | null;
17763
17811
  min_order_quantity: number | null;
17764
17812
  notes: string | null;
17813
+ previous_price_cents: number | null;
17814
+ price_source: string;
17815
+ price_updated_at: string | null;
17765
17816
  product_id: string;
17766
17817
  purchase_price_cents: number | null;
17767
17818
  supplier_article_number: string | null;
@@ -17775,6 +17826,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17775
17826
  lead_time_days?: number | null;
17776
17827
  min_order_quantity?: number | null;
17777
17828
  notes?: string | null;
17829
+ previous_price_cents?: number | null;
17830
+ price_source?: string;
17831
+ price_updated_at?: string | null;
17778
17832
  product_id: string;
17779
17833
  purchase_price_cents?: number | null;
17780
17834
  supplier_article_number?: string | null;
@@ -17788,6 +17842,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17788
17842
  lead_time_days?: number | null;
17789
17843
  min_order_quantity?: number | null;
17790
17844
  notes?: string | null;
17845
+ previous_price_cents?: number | null;
17846
+ price_source?: string;
17847
+ price_updated_at?: string | null;
17791
17848
  product_id?: string;
17792
17849
  purchase_price_cents?: number | null;
17793
17850
  supplier_article_number?: string | null;
@@ -18318,9 +18375,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18318
18375
  purchase_order_items: {
18319
18376
  Row: {
18320
18377
  article_number: string | null;
18378
+ cancel_reason: string | null;
18379
+ cancelled_at: string | null;
18321
18380
  created_at: string;
18322
18381
  delivery_date: string | null;
18323
18382
  id: string;
18383
+ incoming_booked: number;
18384
+ line_status: string;
18324
18385
  name: string;
18325
18386
  note: string | null;
18326
18387
  pot_size: string | null;
@@ -18328,6 +18389,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18328
18389
  product_type: string;
18329
18390
  purchase_order_id: string;
18330
18391
  quantity: number;
18392
+ received_at: string | null;
18393
+ received_booked: number;
18331
18394
  supplier_id: string | null;
18332
18395
  supplier_product_id: string | null;
18333
18396
  unit_price_cents: number;
@@ -18335,9 +18398,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18335
18398
  };
18336
18399
  Insert: {
18337
18400
  article_number?: string | null;
18401
+ cancel_reason?: string | null;
18402
+ cancelled_at?: string | null;
18338
18403
  created_at?: string;
18339
18404
  delivery_date?: string | null;
18340
18405
  id?: string;
18406
+ incoming_booked?: number;
18407
+ line_status?: string;
18341
18408
  name?: string;
18342
18409
  note?: string | null;
18343
18410
  pot_size?: string | null;
@@ -18345,6 +18412,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18345
18412
  product_type?: string;
18346
18413
  purchase_order_id: string;
18347
18414
  quantity?: number;
18415
+ received_at?: string | null;
18416
+ received_booked?: number;
18348
18417
  supplier_id?: string | null;
18349
18418
  supplier_product_id?: string | null;
18350
18419
  unit_price_cents?: number;
@@ -18352,9 +18421,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18352
18421
  };
18353
18422
  Update: {
18354
18423
  article_number?: string | null;
18424
+ cancel_reason?: string | null;
18425
+ cancelled_at?: string | null;
18355
18426
  created_at?: string;
18356
18427
  delivery_date?: string | null;
18357
18428
  id?: string;
18429
+ incoming_booked?: number;
18430
+ line_status?: string;
18358
18431
  name?: string;
18359
18432
  note?: string | null;
18360
18433
  pot_size?: string | null;
@@ -18362,6 +18435,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18362
18435
  product_type?: string;
18363
18436
  purchase_order_id?: string;
18364
18437
  quantity?: number;
18438
+ received_at?: string | null;
18439
+ received_booked?: number;
18365
18440
  supplier_id?: string | null;
18366
18441
  supplier_product_id?: string | null;
18367
18442
  unit_price_cents?: number;
@@ -18465,6 +18540,153 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18465
18540
  referencedColumns: ["id"];
18466
18541
  }];
18467
18542
  };
18543
+ purchase_request_events: {
18544
+ Row: {
18545
+ created_at: string;
18546
+ details: import("../integrations/supabase/types").Json | null;
18547
+ event_type: string;
18548
+ id: string;
18549
+ request_id: string;
18550
+ };
18551
+ Insert: {
18552
+ created_at?: string;
18553
+ details?: import("../integrations/supabase/types").Json | null;
18554
+ event_type: string;
18555
+ id?: string;
18556
+ request_id: string;
18557
+ };
18558
+ Update: {
18559
+ created_at?: string;
18560
+ details?: import("../integrations/supabase/types").Json | null;
18561
+ event_type?: string;
18562
+ id?: string;
18563
+ request_id?: string;
18564
+ };
18565
+ Relationships: [{
18566
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18567
+ columns: ["request_id"];
18568
+ isOneToOne: false;
18569
+ referencedRelation: "purchase_requests";
18570
+ referencedColumns: ["id"];
18571
+ }];
18572
+ };
18573
+ purchase_request_responses: {
18574
+ Row: {
18575
+ confirmed_date: string | null;
18576
+ confirmed_price_cents: number | null;
18577
+ confirmed_quantity: number;
18578
+ created_at: string;
18579
+ id: string;
18580
+ not_available: boolean;
18581
+ note: string | null;
18582
+ purchase_order_item_id: string;
18583
+ request_id: string;
18584
+ updated_at: string;
18585
+ };
18586
+ Insert: {
18587
+ confirmed_date?: string | null;
18588
+ confirmed_price_cents?: number | null;
18589
+ confirmed_quantity?: number;
18590
+ created_at?: string;
18591
+ id?: string;
18592
+ not_available?: boolean;
18593
+ note?: string | null;
18594
+ purchase_order_item_id: string;
18595
+ request_id: string;
18596
+ updated_at?: string;
18597
+ };
18598
+ Update: {
18599
+ confirmed_date?: string | null;
18600
+ confirmed_price_cents?: number | null;
18601
+ confirmed_quantity?: number;
18602
+ created_at?: string;
18603
+ id?: string;
18604
+ not_available?: boolean;
18605
+ note?: string | null;
18606
+ purchase_order_item_id?: string;
18607
+ request_id?: string;
18608
+ updated_at?: string;
18609
+ };
18610
+ Relationships: [{
18611
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18612
+ columns: ["purchase_order_item_id"];
18613
+ isOneToOne: false;
18614
+ referencedRelation: "purchase_order_items";
18615
+ referencedColumns: ["id"];
18616
+ }, {
18617
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18618
+ columns: ["request_id"];
18619
+ isOneToOne: false;
18620
+ referencedRelation: "purchase_requests";
18621
+ referencedColumns: ["id"];
18622
+ }];
18623
+ };
18624
+ purchase_requests: {
18625
+ Row: {
18626
+ created_at: string;
18627
+ expires_at: string;
18628
+ first_viewed_at: string | null;
18629
+ id: string;
18630
+ processed_at: string | null;
18631
+ purchase_order_id: string;
18632
+ responded_at: string | null;
18633
+ sent_at: string;
18634
+ status: string;
18635
+ supplier_id: string | null;
18636
+ supplier_name: string;
18637
+ supplier_note: string | null;
18638
+ to_address: string | null;
18639
+ token_hash: string;
18640
+ updated_at: string;
18641
+ };
18642
+ Insert: {
18643
+ created_at?: string;
18644
+ expires_at?: string;
18645
+ first_viewed_at?: string | null;
18646
+ id?: string;
18647
+ processed_at?: string | null;
18648
+ purchase_order_id: string;
18649
+ responded_at?: string | null;
18650
+ sent_at?: string;
18651
+ status?: string;
18652
+ supplier_id?: string | null;
18653
+ supplier_name?: string;
18654
+ supplier_note?: string | null;
18655
+ to_address?: string | null;
18656
+ token_hash: string;
18657
+ updated_at?: string;
18658
+ };
18659
+ Update: {
18660
+ created_at?: string;
18661
+ expires_at?: string;
18662
+ first_viewed_at?: string | null;
18663
+ id?: string;
18664
+ processed_at?: string | null;
18665
+ purchase_order_id?: string;
18666
+ responded_at?: string | null;
18667
+ sent_at?: string;
18668
+ status?: string;
18669
+ supplier_id?: string | null;
18670
+ supplier_name?: string;
18671
+ supplier_note?: string | null;
18672
+ to_address?: string | null;
18673
+ token_hash?: string;
18674
+ updated_at?: string;
18675
+ };
18676
+ Relationships: [{
18677
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18678
+ columns: ["purchase_order_id"];
18679
+ isOneToOne: false;
18680
+ referencedRelation: "purchase_orders";
18681
+ referencedColumns: ["id"];
18682
+ }, {
18683
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18684
+ columns: ["supplier_id"];
18685
+ isOneToOne: false;
18686
+ referencedRelation: "suppliers";
18687
+ referencedColumns: ["id"];
18688
+ }];
18689
+ };
18468
18690
  reception_notifications: {
18469
18691
  Row: {
18470
18692
  booking_id: string | null;
@@ -20628,6 +20850,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20628
20850
  auto_invoice_enabled: boolean;
20629
20851
  auto_invoice_start_date: string | null;
20630
20852
  auto_invoice_trigger_statuses: string[];
20853
+ auto_send_mode: string | null;
20631
20854
  created_at: string;
20632
20855
  debtor_gl_account: string;
20633
20856
  default_article_code: string | null;
@@ -20656,6 +20879,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20656
20879
  auto_invoice_enabled?: boolean;
20657
20880
  auto_invoice_start_date?: string | null;
20658
20881
  auto_invoice_trigger_statuses?: string[];
20882
+ auto_send_mode?: string | null;
20659
20883
  created_at?: string;
20660
20884
  debtor_gl_account?: string;
20661
20885
  default_article_code?: string | null;
@@ -20684,6 +20908,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20684
20908
  auto_invoice_enabled?: boolean;
20685
20909
  auto_invoice_start_date?: string | null;
20686
20910
  auto_invoice_trigger_statuses?: string[];
20911
+ auto_send_mode?: string | null;
20687
20912
  created_at?: string;
20688
20913
  debtor_gl_account?: string;
20689
20914
  default_article_code?: string | null;
@@ -25917,13 +26142,66 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25917
26142
  };
25918
26143
  Returns: import("../integrations/supabase/types").Json;
25919
26144
  };
26145
+ inkoop_cancel_line: {
26146
+ Args: {
26147
+ _item_id: string;
26148
+ _reason: string;
26149
+ };
26150
+ Returns: string;
26151
+ };
26152
+ inkoop_get_supplier_request: {
26153
+ Args: {
26154
+ _token: string;
26155
+ };
26156
+ Returns: import("../integrations/supabase/types").Json;
26157
+ };
26158
+ inkoop_hash_token: {
26159
+ Args: {
26160
+ _token: string;
26161
+ };
26162
+ Returns: string;
26163
+ };
26164
+ inkoop_html_escape: {
26165
+ Args: {
26166
+ _t: string;
26167
+ };
26168
+ Returns: string;
26169
+ };
26170
+ inkoop_list_artikelen: {
26171
+ Args: never;
26172
+ Returns: {
26173
+ article_number: string;
26174
+ barcode: string;
26175
+ id: string;
26176
+ incoming_quantity: number;
26177
+ is_layer: boolean;
26178
+ location: string;
26179
+ min_quantity: number;
26180
+ preferred_supplier_name: string;
26181
+ product: string;
26182
+ product_type: string;
26183
+ purchase_price: number;
26184
+ quantity: number;
26185
+ sale_price: number;
26186
+ supplier_count: number;
26187
+ unit: string;
26188
+ }[];
26189
+ };
25920
26190
  inkoop_next_order_number: {
25921
26191
  Args: never;
25922
26192
  Returns: string;
25923
26193
  };
26194
+ inkoop_process_request: {
26195
+ Args: {
26196
+ _request_id: string;
26197
+ };
26198
+ Returns: undefined;
26199
+ };
25924
26200
  inkoop_send_order: {
25925
26201
  Args: {
26202
+ _base_url?: string;
25926
26203
  _order_id: string;
26204
+ _resend?: boolean;
25927
26205
  };
25928
26206
  Returns: {
25929
26207
  outbox_id: string;
@@ -25938,6 +26216,26 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25938
26216
  };
25939
26217
  Returns: undefined;
25940
26218
  };
26219
+ inkoop_stock_key: {
26220
+ Args: {
26221
+ p_product_id: string;
26222
+ };
26223
+ Returns: string;
26224
+ };
26225
+ inkoop_submit_supplier_response: {
26226
+ Args: {
26227
+ _lines: import("../integrations/supabase/types").Json;
26228
+ _note?: string;
26229
+ _token: string;
26230
+ };
26231
+ Returns: import("../integrations/supabase/types").Json;
26232
+ };
26233
+ inkoop_sync_item_stock: {
26234
+ Args: {
26235
+ p_item_id: string;
26236
+ };
26237
+ Returns: undefined;
26238
+ };
25941
26239
  instructie_get: {
25942
26240
  Args: {
25943
26241
  _sleutel: string;
@@ -26375,6 +26673,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
26375
26673
  };
26376
26674
  Returns: number;
26377
26675
  };
26676
+ logistics_cart_barcode_opschonen: {
26677
+ Args: {
26678
+ p_portie?: number;
26679
+ };
26680
+ Returns: import("../integrations/supabase/types").Json;
26681
+ };
26378
26682
  logistics_cart_barcode_value: {
26379
26683
  Args: {
26380
26684
  _cart_id: string;
@@ -27984,6 +28288,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
27984
28288
  };
27985
28289
  Returns: string;
27986
28290
  };
28291
+ logistics_shipping_note_status: {
28292
+ Args: {
28293
+ p_cart_id?: string;
28294
+ p_slip_job_id?: string;
28295
+ };
28296
+ Returns: import("../integrations/supabase/types").Json;
28297
+ };
27987
28298
  logistics_shipping_notes_wake_all: {
27988
28299
  Args: never;
27989
28300
  Returns: import("../integrations/supabase/types").Json;
@@ -29663,6 +29974,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
29663
29974
  };
29664
29975
  Returns: import("../integrations/supabase/types").Json;
29665
29976
  };
29977
+ scan_controleer_pincode: {
29978
+ Args: {
29979
+ p_pin: string;
29980
+ p_scanner_id: string;
29981
+ };
29982
+ Returns: boolean;
29983
+ };
29666
29984
  scan_dashboard_stats: {
29667
29985
  Args: {
29668
29986
  p_dagen?: number;
@@ -29682,6 +30000,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
29682
30000
  };
29683
30001
  Returns: import("../integrations/supabase/types").Json;
29684
30002
  };
30003
+ scan_heeft_pincode: {
30004
+ Args: {
30005
+ p_scanner_id: string;
30006
+ };
30007
+ Returns: boolean;
30008
+ };
29685
30009
  scan_kar_compleet: {
29686
30010
  Args: {
29687
30011
  p_allow_reprint?: boolean;
@@ -29699,6 +30023,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
29699
30023
  Args: {
29700
30024
  p_code: string;
29701
30025
  p_latency_ms?: number;
30026
+ p_medewerker?: string;
29702
30027
  p_message?: string;
29703
30028
  p_result: string;
29704
30029
  p_scanner_key?: string;
@@ -29771,6 +30096,22 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
29771
30096
  };
29772
30097
  Returns: undefined;
29773
30098
  };
30099
+ scan_scanner_info: {
30100
+ Args: {
30101
+ p_slug: string;
30102
+ };
30103
+ Returns: {
30104
+ actief: boolean;
30105
+ heeft_pincode: boolean;
30106
+ id: string;
30107
+ naam: string;
30108
+ omschrijving: string;
30109
+ printer_id: string;
30110
+ type: string;
30111
+ vereist_medewerker: boolean;
30112
+ werkplek: string;
30113
+ }[];
30114
+ };
29774
30115
  scan_sessie_annuleren: {
29775
30116
  Args: {
29776
30117
  p_sessie_id: string;
@@ -30733,6 +31074,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
30733
31074
  };
30734
31075
  Returns: import("../integrations/supabase/types").Json;
30735
31076
  };
31077
+ wo_list_colleague_planning: {
31078
+ Args: {
31079
+ _from: string;
31080
+ _monteur_id: string;
31081
+ _to: string;
31082
+ };
31083
+ Returns: {
31084
+ end_at: string;
31085
+ id: string;
31086
+ role: string;
31087
+ start_at: string;
31088
+ status: string;
31089
+ werkbon_id: string;
31090
+ }[];
31091
+ };
30736
31092
  wo_list_offerte_requests: {
30737
31093
  Args: {
30738
31094
  _status?: string;