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