@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
@@ -752,6 +752,27 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
752
752
  };
753
753
  Relationships: [];
754
754
  };
755
+ artikelen_instellingen: {
756
+ Row: {
757
+ created_at: string;
758
+ id: number;
759
+ marge_procent: number;
760
+ updated_at: string;
761
+ };
762
+ Insert: {
763
+ created_at?: string;
764
+ id?: number;
765
+ marge_procent?: number;
766
+ updated_at?: string;
767
+ };
768
+ Update: {
769
+ created_at?: string;
770
+ id?: number;
771
+ marge_procent?: number;
772
+ updated_at?: string;
773
+ };
774
+ Relationships: [];
775
+ };
755
776
  artikelen_veldconfig: {
756
777
  Row: {
757
778
  bron_pad: string;
@@ -10427,6 +10448,30 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
10427
10448
  };
10428
10449
  Relationships: [];
10429
10450
  };
10451
+ logistics_cart_barcode_archief: {
10452
+ Row: {
10453
+ barcode: string;
10454
+ cart_id: string;
10455
+ created_at: string | null;
10456
+ gearchiveerd_op: string;
10457
+ order_id: string | null;
10458
+ };
10459
+ Insert: {
10460
+ barcode: string;
10461
+ cart_id: string;
10462
+ created_at?: string | null;
10463
+ gearchiveerd_op?: string;
10464
+ order_id?: string | null;
10465
+ };
10466
+ Update: {
10467
+ barcode?: string;
10468
+ cart_id?: string;
10469
+ created_at?: string | null;
10470
+ gearchiveerd_op?: string;
10471
+ order_id?: string | null;
10472
+ };
10473
+ Relationships: [];
10474
+ };
10430
10475
  logistics_control_scan: {
10431
10476
  Row: {
10432
10477
  approved_at: string | null;
@@ -14713,6 +14758,7 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
14713
14758
  next_attempt_at: string;
14714
14759
  order_id: string;
14715
14760
  processed_at: string | null;
14761
+ send_error: string | null;
14716
14762
  status: string;
14717
14763
  updated_at: string;
14718
14764
  };
@@ -14726,6 +14772,7 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
14726
14772
  next_attempt_at?: string;
14727
14773
  order_id: string;
14728
14774
  processed_at?: string | null;
14775
+ send_error?: string | null;
14729
14776
  status?: string;
14730
14777
  updated_at?: string;
14731
14778
  };
@@ -14739,6 +14786,7 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
14739
14786
  next_attempt_at?: string;
14740
14787
  order_id?: string;
14741
14788
  processed_at?: string | null;
14789
+ send_error?: string | null;
14742
14790
  status?: string;
14743
14791
  updated_at?: string;
14744
14792
  };
@@ -17776,6 +17824,9 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
17776
17824
  lead_time_days: number | null;
17777
17825
  min_order_quantity: number | null;
17778
17826
  notes: string | null;
17827
+ previous_price_cents: number | null;
17828
+ price_source: string;
17829
+ price_updated_at: string | null;
17779
17830
  product_id: string;
17780
17831
  purchase_price_cents: number | null;
17781
17832
  supplier_article_number: string | null;
@@ -17789,6 +17840,9 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
17789
17840
  lead_time_days?: number | null;
17790
17841
  min_order_quantity?: number | null;
17791
17842
  notes?: string | null;
17843
+ previous_price_cents?: number | null;
17844
+ price_source?: string;
17845
+ price_updated_at?: string | null;
17792
17846
  product_id: string;
17793
17847
  purchase_price_cents?: number | null;
17794
17848
  supplier_article_number?: string | null;
@@ -17802,6 +17856,9 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
17802
17856
  lead_time_days?: number | null;
17803
17857
  min_order_quantity?: number | null;
17804
17858
  notes?: string | null;
17859
+ previous_price_cents?: number | null;
17860
+ price_source?: string;
17861
+ price_updated_at?: string | null;
17805
17862
  product_id?: string;
17806
17863
  purchase_price_cents?: number | null;
17807
17864
  supplier_article_number?: string | null;
@@ -18332,9 +18389,13 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
18332
18389
  purchase_order_items: {
18333
18390
  Row: {
18334
18391
  article_number: string | null;
18392
+ cancel_reason: string | null;
18393
+ cancelled_at: string | null;
18335
18394
  created_at: string;
18336
18395
  delivery_date: string | null;
18337
18396
  id: string;
18397
+ incoming_booked: number;
18398
+ line_status: string;
18338
18399
  name: string;
18339
18400
  note: string | null;
18340
18401
  pot_size: string | null;
@@ -18342,6 +18403,8 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
18342
18403
  product_type: string;
18343
18404
  purchase_order_id: string;
18344
18405
  quantity: number;
18406
+ received_at: string | null;
18407
+ received_booked: number;
18345
18408
  supplier_id: string | null;
18346
18409
  supplier_product_id: string | null;
18347
18410
  unit_price_cents: number;
@@ -18349,9 +18412,13 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
18349
18412
  };
18350
18413
  Insert: {
18351
18414
  article_number?: string | null;
18415
+ cancel_reason?: string | null;
18416
+ cancelled_at?: string | null;
18352
18417
  created_at?: string;
18353
18418
  delivery_date?: string | null;
18354
18419
  id?: string;
18420
+ incoming_booked?: number;
18421
+ line_status?: string;
18355
18422
  name?: string;
18356
18423
  note?: string | null;
18357
18424
  pot_size?: string | null;
@@ -18359,6 +18426,8 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
18359
18426
  product_type?: string;
18360
18427
  purchase_order_id: string;
18361
18428
  quantity?: number;
18429
+ received_at?: string | null;
18430
+ received_booked?: number;
18362
18431
  supplier_id?: string | null;
18363
18432
  supplier_product_id?: string | null;
18364
18433
  unit_price_cents?: number;
@@ -18366,9 +18435,13 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
18366
18435
  };
18367
18436
  Update: {
18368
18437
  article_number?: string | null;
18438
+ cancel_reason?: string | null;
18439
+ cancelled_at?: string | null;
18369
18440
  created_at?: string;
18370
18441
  delivery_date?: string | null;
18371
18442
  id?: string;
18443
+ incoming_booked?: number;
18444
+ line_status?: string;
18372
18445
  name?: string;
18373
18446
  note?: string | null;
18374
18447
  pot_size?: string | null;
@@ -18376,6 +18449,8 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
18376
18449
  product_type?: string;
18377
18450
  purchase_order_id?: string;
18378
18451
  quantity?: number;
18452
+ received_at?: string | null;
18453
+ received_booked?: number;
18379
18454
  supplier_id?: string | null;
18380
18455
  supplier_product_id?: string | null;
18381
18456
  unit_price_cents?: number;
@@ -18479,6 +18554,153 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
18479
18554
  referencedColumns: ["id"];
18480
18555
  }];
18481
18556
  };
18557
+ purchase_request_events: {
18558
+ Row: {
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
+ Insert: {
18566
+ created_at?: string;
18567
+ details?: import("../integrations/supabase/types").Json | null;
18568
+ event_type: string;
18569
+ id?: string;
18570
+ request_id: string;
18571
+ };
18572
+ Update: {
18573
+ created_at?: string;
18574
+ details?: import("../integrations/supabase/types").Json | null;
18575
+ event_type?: string;
18576
+ id?: string;
18577
+ request_id?: string;
18578
+ };
18579
+ Relationships: [{
18580
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18581
+ columns: ["request_id"];
18582
+ isOneToOne: false;
18583
+ referencedRelation: "purchase_requests";
18584
+ referencedColumns: ["id"];
18585
+ }];
18586
+ };
18587
+ purchase_request_responses: {
18588
+ Row: {
18589
+ confirmed_date: string | null;
18590
+ confirmed_price_cents: number | null;
18591
+ confirmed_quantity: number;
18592
+ created_at: string;
18593
+ id: string;
18594
+ not_available: boolean;
18595
+ note: string | null;
18596
+ purchase_order_item_id: string;
18597
+ request_id: string;
18598
+ updated_at: string;
18599
+ };
18600
+ Insert: {
18601
+ confirmed_date?: string | null;
18602
+ confirmed_price_cents?: number | null;
18603
+ confirmed_quantity?: number;
18604
+ created_at?: string;
18605
+ id?: string;
18606
+ not_available?: boolean;
18607
+ note?: string | null;
18608
+ purchase_order_item_id: string;
18609
+ request_id: string;
18610
+ updated_at?: string;
18611
+ };
18612
+ Update: {
18613
+ confirmed_date?: string | null;
18614
+ confirmed_price_cents?: number | null;
18615
+ confirmed_quantity?: number;
18616
+ created_at?: string;
18617
+ id?: string;
18618
+ not_available?: boolean;
18619
+ note?: string | null;
18620
+ purchase_order_item_id?: string;
18621
+ request_id?: string;
18622
+ updated_at?: string;
18623
+ };
18624
+ Relationships: [{
18625
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18626
+ columns: ["purchase_order_item_id"];
18627
+ isOneToOne: false;
18628
+ referencedRelation: "purchase_order_items";
18629
+ referencedColumns: ["id"];
18630
+ }, {
18631
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18632
+ columns: ["request_id"];
18633
+ isOneToOne: false;
18634
+ referencedRelation: "purchase_requests";
18635
+ referencedColumns: ["id"];
18636
+ }];
18637
+ };
18638
+ purchase_requests: {
18639
+ Row: {
18640
+ created_at: string;
18641
+ expires_at: string;
18642
+ first_viewed_at: string | null;
18643
+ id: string;
18644
+ processed_at: string | null;
18645
+ purchase_order_id: string;
18646
+ responded_at: string | null;
18647
+ sent_at: string;
18648
+ status: string;
18649
+ supplier_id: string | null;
18650
+ supplier_name: string;
18651
+ supplier_note: string | null;
18652
+ to_address: string | null;
18653
+ token_hash: string;
18654
+ updated_at: string;
18655
+ };
18656
+ Insert: {
18657
+ created_at?: string;
18658
+ expires_at?: string;
18659
+ first_viewed_at?: string | null;
18660
+ id?: string;
18661
+ processed_at?: string | null;
18662
+ purchase_order_id: string;
18663
+ responded_at?: string | null;
18664
+ sent_at?: string;
18665
+ status?: string;
18666
+ supplier_id?: string | null;
18667
+ supplier_name?: string;
18668
+ supplier_note?: string | null;
18669
+ to_address?: string | null;
18670
+ token_hash: string;
18671
+ updated_at?: string;
18672
+ };
18673
+ Update: {
18674
+ created_at?: string;
18675
+ expires_at?: string;
18676
+ first_viewed_at?: string | null;
18677
+ id?: string;
18678
+ processed_at?: string | null;
18679
+ purchase_order_id?: string;
18680
+ responded_at?: string | null;
18681
+ sent_at?: string;
18682
+ status?: string;
18683
+ supplier_id?: string | null;
18684
+ supplier_name?: string;
18685
+ supplier_note?: string | null;
18686
+ to_address?: string | null;
18687
+ token_hash?: string;
18688
+ updated_at?: string;
18689
+ };
18690
+ Relationships: [{
18691
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18692
+ columns: ["purchase_order_id"];
18693
+ isOneToOne: false;
18694
+ referencedRelation: "purchase_orders";
18695
+ referencedColumns: ["id"];
18696
+ }, {
18697
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18698
+ columns: ["supplier_id"];
18699
+ isOneToOne: false;
18700
+ referencedRelation: "suppliers";
18701
+ referencedColumns: ["id"];
18702
+ }];
18703
+ };
18482
18704
  reception_notifications: {
18483
18705
  Row: {
18484
18706
  booking_id: string | null;
@@ -20642,6 +20864,7 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
20642
20864
  auto_invoice_enabled: boolean;
20643
20865
  auto_invoice_start_date: string | null;
20644
20866
  auto_invoice_trigger_statuses: string[];
20867
+ auto_send_mode: string | null;
20645
20868
  created_at: string;
20646
20869
  debtor_gl_account: string;
20647
20870
  default_article_code: string | null;
@@ -20670,6 +20893,7 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
20670
20893
  auto_invoice_enabled?: boolean;
20671
20894
  auto_invoice_start_date?: string | null;
20672
20895
  auto_invoice_trigger_statuses?: string[];
20896
+ auto_send_mode?: string | null;
20673
20897
  created_at?: string;
20674
20898
  debtor_gl_account?: string;
20675
20899
  default_article_code?: string | null;
@@ -20698,6 +20922,7 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
20698
20922
  auto_invoice_enabled?: boolean;
20699
20923
  auto_invoice_start_date?: string | null;
20700
20924
  auto_invoice_trigger_statuses?: string[];
20925
+ auto_send_mode?: string | null;
20701
20926
  created_at?: string;
20702
20927
  debtor_gl_account?: string;
20703
20928
  default_article_code?: string | null;
@@ -25931,13 +26156,66 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
25931
26156
  };
25932
26157
  Returns: import("../integrations/supabase/types").Json;
25933
26158
  };
26159
+ inkoop_cancel_line: {
26160
+ Args: {
26161
+ _item_id: string;
26162
+ _reason: string;
26163
+ };
26164
+ Returns: string;
26165
+ };
26166
+ inkoop_get_supplier_request: {
26167
+ Args: {
26168
+ _token: string;
26169
+ };
26170
+ Returns: import("../integrations/supabase/types").Json;
26171
+ };
26172
+ inkoop_hash_token: {
26173
+ Args: {
26174
+ _token: string;
26175
+ };
26176
+ Returns: string;
26177
+ };
26178
+ inkoop_html_escape: {
26179
+ Args: {
26180
+ _t: string;
26181
+ };
26182
+ Returns: string;
26183
+ };
26184
+ inkoop_list_artikelen: {
26185
+ Args: never;
26186
+ Returns: {
26187
+ article_number: string;
26188
+ barcode: string;
26189
+ id: string;
26190
+ incoming_quantity: number;
26191
+ is_layer: boolean;
26192
+ location: string;
26193
+ min_quantity: number;
26194
+ preferred_supplier_name: string;
26195
+ product: string;
26196
+ product_type: string;
26197
+ purchase_price: number;
26198
+ quantity: number;
26199
+ sale_price: number;
26200
+ supplier_count: number;
26201
+ unit: string;
26202
+ }[];
26203
+ };
25934
26204
  inkoop_next_order_number: {
25935
26205
  Args: never;
25936
26206
  Returns: string;
25937
26207
  };
26208
+ inkoop_process_request: {
26209
+ Args: {
26210
+ _request_id: string;
26211
+ };
26212
+ Returns: undefined;
26213
+ };
25938
26214
  inkoop_send_order: {
25939
26215
  Args: {
26216
+ _base_url?: string;
25940
26217
  _order_id: string;
26218
+ _resend?: boolean;
25941
26219
  };
25942
26220
  Returns: {
25943
26221
  outbox_id: string;
@@ -25952,6 +26230,26 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
25952
26230
  };
25953
26231
  Returns: undefined;
25954
26232
  };
26233
+ inkoop_stock_key: {
26234
+ Args: {
26235
+ p_product_id: string;
26236
+ };
26237
+ Returns: string;
26238
+ };
26239
+ inkoop_submit_supplier_response: {
26240
+ Args: {
26241
+ _lines: import("../integrations/supabase/types").Json;
26242
+ _note?: string;
26243
+ _token: string;
26244
+ };
26245
+ Returns: import("../integrations/supabase/types").Json;
26246
+ };
26247
+ inkoop_sync_item_stock: {
26248
+ Args: {
26249
+ p_item_id: string;
26250
+ };
26251
+ Returns: undefined;
26252
+ };
25955
26253
  instructie_get: {
25956
26254
  Args: {
25957
26255
  _sleutel: string;
@@ -26389,6 +26687,12 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
26389
26687
  };
26390
26688
  Returns: number;
26391
26689
  };
26690
+ logistics_cart_barcode_opschonen: {
26691
+ Args: {
26692
+ p_portie?: number;
26693
+ };
26694
+ Returns: import("../integrations/supabase/types").Json;
26695
+ };
26392
26696
  logistics_cart_barcode_value: {
26393
26697
  Args: {
26394
26698
  _cart_id: string;
@@ -27998,6 +28302,13 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
27998
28302
  };
27999
28303
  Returns: string;
28000
28304
  };
28305
+ logistics_shipping_note_status: {
28306
+ Args: {
28307
+ p_cart_id?: string;
28308
+ p_slip_job_id?: string;
28309
+ };
28310
+ Returns: import("../integrations/supabase/types").Json;
28311
+ };
28001
28312
  logistics_shipping_notes_wake_all: {
28002
28313
  Args: never;
28003
28314
  Returns: import("../integrations/supabase/types").Json;
@@ -29677,6 +29988,13 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
29677
29988
  };
29678
29989
  Returns: import("../integrations/supabase/types").Json;
29679
29990
  };
29991
+ scan_controleer_pincode: {
29992
+ Args: {
29993
+ p_pin: string;
29994
+ p_scanner_id: string;
29995
+ };
29996
+ Returns: boolean;
29997
+ };
29680
29998
  scan_dashboard_stats: {
29681
29999
  Args: {
29682
30000
  p_dagen?: number;
@@ -29696,6 +30014,12 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
29696
30014
  };
29697
30015
  Returns: import("../integrations/supabase/types").Json;
29698
30016
  };
30017
+ scan_heeft_pincode: {
30018
+ Args: {
30019
+ p_scanner_id: string;
30020
+ };
30021
+ Returns: boolean;
30022
+ };
29699
30023
  scan_kar_compleet: {
29700
30024
  Args: {
29701
30025
  p_allow_reprint?: boolean;
@@ -29713,6 +30037,7 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
29713
30037
  Args: {
29714
30038
  p_code: string;
29715
30039
  p_latency_ms?: number;
30040
+ p_medewerker?: string;
29716
30041
  p_message?: string;
29717
30042
  p_result: string;
29718
30043
  p_scanner_key?: string;
@@ -29785,6 +30110,22 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
29785
30110
  };
29786
30111
  Returns: undefined;
29787
30112
  };
30113
+ scan_scanner_info: {
30114
+ Args: {
30115
+ p_slug: string;
30116
+ };
30117
+ Returns: {
30118
+ actief: boolean;
30119
+ heeft_pincode: boolean;
30120
+ id: string;
30121
+ naam: string;
30122
+ omschrijving: string;
30123
+ printer_id: string;
30124
+ type: string;
30125
+ vereist_medewerker: boolean;
30126
+ werkplek: string;
30127
+ }[];
30128
+ };
29788
30129
  scan_sessie_annuleren: {
29789
30130
  Args: {
29790
30131
  p_sessie_id: string;
@@ -30747,6 +31088,21 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
30747
31088
  };
30748
31089
  Returns: import("../integrations/supabase/types").Json;
30749
31090
  };
31091
+ wo_list_colleague_planning: {
31092
+ Args: {
31093
+ _from: string;
31094
+ _monteur_id: string;
31095
+ _to: string;
31096
+ };
31097
+ Returns: {
31098
+ end_at: string;
31099
+ id: string;
31100
+ role: string;
31101
+ start_at: string;
31102
+ status: string;
31103
+ werkbon_id: string;
31104
+ }[];
31105
+ };
30750
31106
  wo_list_offerte_requests: {
30751
31107
  Args: {
30752
31108
  _status?: string;