@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
@@ -733,6 +733,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
733
733
  };
734
734
  Relationships: [];
735
735
  };
736
+ artikelen_instellingen: {
737
+ Row: {
738
+ created_at: string;
739
+ id: number;
740
+ marge_procent: number;
741
+ updated_at: string;
742
+ };
743
+ Insert: {
744
+ created_at?: string;
745
+ id?: number;
746
+ marge_procent?: number;
747
+ updated_at?: string;
748
+ };
749
+ Update: {
750
+ created_at?: string;
751
+ id?: number;
752
+ marge_procent?: number;
753
+ updated_at?: string;
754
+ };
755
+ Relationships: [];
756
+ };
736
757
  artikelen_veldconfig: {
737
758
  Row: {
738
759
  bron_pad: string;
@@ -10408,6 +10429,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10408
10429
  };
10409
10430
  Relationships: [];
10410
10431
  };
10432
+ logistics_cart_barcode_archief: {
10433
+ Row: {
10434
+ barcode: string;
10435
+ cart_id: string;
10436
+ created_at: string | null;
10437
+ gearchiveerd_op: string;
10438
+ order_id: string | null;
10439
+ };
10440
+ Insert: {
10441
+ barcode: string;
10442
+ cart_id: string;
10443
+ created_at?: string | null;
10444
+ gearchiveerd_op?: string;
10445
+ order_id?: string | null;
10446
+ };
10447
+ Update: {
10448
+ barcode?: string;
10449
+ cart_id?: string;
10450
+ created_at?: string | null;
10451
+ gearchiveerd_op?: string;
10452
+ order_id?: string | null;
10453
+ };
10454
+ Relationships: [];
10455
+ };
10411
10456
  logistics_control_scan: {
10412
10457
  Row: {
10413
10458
  approved_at: string | null;
@@ -14694,6 +14739,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14694
14739
  next_attempt_at: string;
14695
14740
  order_id: string;
14696
14741
  processed_at: string | null;
14742
+ send_error: string | null;
14697
14743
  status: string;
14698
14744
  updated_at: string;
14699
14745
  };
@@ -14707,6 +14753,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14707
14753
  next_attempt_at?: string;
14708
14754
  order_id: string;
14709
14755
  processed_at?: string | null;
14756
+ send_error?: string | null;
14710
14757
  status?: string;
14711
14758
  updated_at?: string;
14712
14759
  };
@@ -14720,6 +14767,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14720
14767
  next_attempt_at?: string;
14721
14768
  order_id?: string;
14722
14769
  processed_at?: string | null;
14770
+ send_error?: string | null;
14723
14771
  status?: string;
14724
14772
  updated_at?: string;
14725
14773
  };
@@ -17757,6 +17805,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17757
17805
  lead_time_days: number | null;
17758
17806
  min_order_quantity: number | null;
17759
17807
  notes: string | null;
17808
+ previous_price_cents: number | null;
17809
+ price_source: string;
17810
+ price_updated_at: string | null;
17760
17811
  product_id: string;
17761
17812
  purchase_price_cents: number | null;
17762
17813
  supplier_article_number: string | null;
@@ -17770,6 +17821,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17770
17821
  lead_time_days?: number | null;
17771
17822
  min_order_quantity?: number | null;
17772
17823
  notes?: string | null;
17824
+ previous_price_cents?: number | null;
17825
+ price_source?: string;
17826
+ price_updated_at?: string | null;
17773
17827
  product_id: string;
17774
17828
  purchase_price_cents?: number | null;
17775
17829
  supplier_article_number?: string | null;
@@ -17783,6 +17837,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17783
17837
  lead_time_days?: number | null;
17784
17838
  min_order_quantity?: number | null;
17785
17839
  notes?: string | null;
17840
+ previous_price_cents?: number | null;
17841
+ price_source?: string;
17842
+ price_updated_at?: string | null;
17786
17843
  product_id?: string;
17787
17844
  purchase_price_cents?: number | null;
17788
17845
  supplier_article_number?: string | null;
@@ -18313,9 +18370,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18313
18370
  purchase_order_items: {
18314
18371
  Row: {
18315
18372
  article_number: string | null;
18373
+ cancel_reason: string | null;
18374
+ cancelled_at: string | null;
18316
18375
  created_at: string;
18317
18376
  delivery_date: string | null;
18318
18377
  id: string;
18378
+ incoming_booked: number;
18379
+ line_status: string;
18319
18380
  name: string;
18320
18381
  note: string | null;
18321
18382
  pot_size: string | null;
@@ -18323,6 +18384,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18323
18384
  product_type: string;
18324
18385
  purchase_order_id: string;
18325
18386
  quantity: number;
18387
+ received_at: string | null;
18388
+ received_booked: number;
18326
18389
  supplier_id: string | null;
18327
18390
  supplier_product_id: string | null;
18328
18391
  unit_price_cents: number;
@@ -18330,9 +18393,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18330
18393
  };
18331
18394
  Insert: {
18332
18395
  article_number?: string | null;
18396
+ cancel_reason?: string | null;
18397
+ cancelled_at?: string | null;
18333
18398
  created_at?: string;
18334
18399
  delivery_date?: string | null;
18335
18400
  id?: string;
18401
+ incoming_booked?: number;
18402
+ line_status?: string;
18336
18403
  name?: string;
18337
18404
  note?: string | null;
18338
18405
  pot_size?: string | null;
@@ -18340,6 +18407,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18340
18407
  product_type?: string;
18341
18408
  purchase_order_id: string;
18342
18409
  quantity?: number;
18410
+ received_at?: string | null;
18411
+ received_booked?: number;
18343
18412
  supplier_id?: string | null;
18344
18413
  supplier_product_id?: string | null;
18345
18414
  unit_price_cents?: number;
@@ -18347,9 +18416,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18347
18416
  };
18348
18417
  Update: {
18349
18418
  article_number?: string | null;
18419
+ cancel_reason?: string | null;
18420
+ cancelled_at?: string | null;
18350
18421
  created_at?: string;
18351
18422
  delivery_date?: string | null;
18352
18423
  id?: string;
18424
+ incoming_booked?: number;
18425
+ line_status?: string;
18353
18426
  name?: string;
18354
18427
  note?: string | null;
18355
18428
  pot_size?: string | null;
@@ -18357,6 +18430,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18357
18430
  product_type?: string;
18358
18431
  purchase_order_id?: string;
18359
18432
  quantity?: number;
18433
+ received_at?: string | null;
18434
+ received_booked?: number;
18360
18435
  supplier_id?: string | null;
18361
18436
  supplier_product_id?: string | null;
18362
18437
  unit_price_cents?: number;
@@ -18460,6 +18535,153 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18460
18535
  referencedColumns: ["id"];
18461
18536
  }];
18462
18537
  };
18538
+ purchase_request_events: {
18539
+ Row: {
18540
+ created_at: string;
18541
+ details: import("./types").Json | null;
18542
+ event_type: string;
18543
+ id: string;
18544
+ request_id: string;
18545
+ };
18546
+ Insert: {
18547
+ created_at?: string;
18548
+ details?: import("./types").Json | null;
18549
+ event_type: string;
18550
+ id?: string;
18551
+ request_id: string;
18552
+ };
18553
+ Update: {
18554
+ created_at?: string;
18555
+ details?: import("./types").Json | null;
18556
+ event_type?: string;
18557
+ id?: string;
18558
+ request_id?: string;
18559
+ };
18560
+ Relationships: [{
18561
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18562
+ columns: ["request_id"];
18563
+ isOneToOne: false;
18564
+ referencedRelation: "purchase_requests";
18565
+ referencedColumns: ["id"];
18566
+ }];
18567
+ };
18568
+ purchase_request_responses: {
18569
+ Row: {
18570
+ confirmed_date: string | null;
18571
+ confirmed_price_cents: number | null;
18572
+ confirmed_quantity: number;
18573
+ created_at: string;
18574
+ id: string;
18575
+ not_available: boolean;
18576
+ note: string | null;
18577
+ purchase_order_item_id: string;
18578
+ request_id: string;
18579
+ updated_at: string;
18580
+ };
18581
+ Insert: {
18582
+ confirmed_date?: string | null;
18583
+ confirmed_price_cents?: number | null;
18584
+ confirmed_quantity?: number;
18585
+ created_at?: string;
18586
+ id?: string;
18587
+ not_available?: boolean;
18588
+ note?: string | null;
18589
+ purchase_order_item_id: string;
18590
+ request_id: string;
18591
+ updated_at?: string;
18592
+ };
18593
+ Update: {
18594
+ confirmed_date?: string | null;
18595
+ confirmed_price_cents?: number | null;
18596
+ confirmed_quantity?: number;
18597
+ created_at?: string;
18598
+ id?: string;
18599
+ not_available?: boolean;
18600
+ note?: string | null;
18601
+ purchase_order_item_id?: string;
18602
+ request_id?: string;
18603
+ updated_at?: string;
18604
+ };
18605
+ Relationships: [{
18606
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18607
+ columns: ["purchase_order_item_id"];
18608
+ isOneToOne: false;
18609
+ referencedRelation: "purchase_order_items";
18610
+ referencedColumns: ["id"];
18611
+ }, {
18612
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18613
+ columns: ["request_id"];
18614
+ isOneToOne: false;
18615
+ referencedRelation: "purchase_requests";
18616
+ referencedColumns: ["id"];
18617
+ }];
18618
+ };
18619
+ purchase_requests: {
18620
+ Row: {
18621
+ created_at: string;
18622
+ expires_at: string;
18623
+ first_viewed_at: string | null;
18624
+ id: string;
18625
+ processed_at: string | null;
18626
+ purchase_order_id: string;
18627
+ responded_at: string | null;
18628
+ sent_at: string;
18629
+ status: string;
18630
+ supplier_id: string | null;
18631
+ supplier_name: string;
18632
+ supplier_note: string | null;
18633
+ to_address: string | null;
18634
+ token_hash: string;
18635
+ updated_at: string;
18636
+ };
18637
+ Insert: {
18638
+ created_at?: string;
18639
+ expires_at?: string;
18640
+ first_viewed_at?: string | null;
18641
+ id?: string;
18642
+ processed_at?: string | null;
18643
+ purchase_order_id: string;
18644
+ responded_at?: string | null;
18645
+ sent_at?: string;
18646
+ status?: string;
18647
+ supplier_id?: string | null;
18648
+ supplier_name?: string;
18649
+ supplier_note?: string | null;
18650
+ to_address?: string | null;
18651
+ token_hash: string;
18652
+ updated_at?: string;
18653
+ };
18654
+ Update: {
18655
+ created_at?: string;
18656
+ expires_at?: string;
18657
+ first_viewed_at?: string | null;
18658
+ id?: string;
18659
+ processed_at?: string | null;
18660
+ purchase_order_id?: string;
18661
+ responded_at?: string | null;
18662
+ sent_at?: string;
18663
+ status?: string;
18664
+ supplier_id?: string | null;
18665
+ supplier_name?: string;
18666
+ supplier_note?: string | null;
18667
+ to_address?: string | null;
18668
+ token_hash?: string;
18669
+ updated_at?: string;
18670
+ };
18671
+ Relationships: [{
18672
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18673
+ columns: ["purchase_order_id"];
18674
+ isOneToOne: false;
18675
+ referencedRelation: "purchase_orders";
18676
+ referencedColumns: ["id"];
18677
+ }, {
18678
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18679
+ columns: ["supplier_id"];
18680
+ isOneToOne: false;
18681
+ referencedRelation: "suppliers";
18682
+ referencedColumns: ["id"];
18683
+ }];
18684
+ };
18463
18685
  reception_notifications: {
18464
18686
  Row: {
18465
18687
  booking_id: string | null;
@@ -20623,6 +20845,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20623
20845
  auto_invoice_enabled: boolean;
20624
20846
  auto_invoice_start_date: string | null;
20625
20847
  auto_invoice_trigger_statuses: string[];
20848
+ auto_send_mode: string | null;
20626
20849
  created_at: string;
20627
20850
  debtor_gl_account: string;
20628
20851
  default_article_code: string | null;
@@ -20651,6 +20874,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20651
20874
  auto_invoice_enabled?: boolean;
20652
20875
  auto_invoice_start_date?: string | null;
20653
20876
  auto_invoice_trigger_statuses?: string[];
20877
+ auto_send_mode?: string | null;
20654
20878
  created_at?: string;
20655
20879
  debtor_gl_account?: string;
20656
20880
  default_article_code?: string | null;
@@ -20679,6 +20903,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20679
20903
  auto_invoice_enabled?: boolean;
20680
20904
  auto_invoice_start_date?: string | null;
20681
20905
  auto_invoice_trigger_statuses?: string[];
20906
+ auto_send_mode?: string | null;
20682
20907
  created_at?: string;
20683
20908
  debtor_gl_account?: string;
20684
20909
  default_article_code?: string | null;
@@ -25912,13 +26137,66 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25912
26137
  };
25913
26138
  Returns: import("./types").Json;
25914
26139
  };
26140
+ inkoop_cancel_line: {
26141
+ Args: {
26142
+ _item_id: string;
26143
+ _reason: string;
26144
+ };
26145
+ Returns: string;
26146
+ };
26147
+ inkoop_get_supplier_request: {
26148
+ Args: {
26149
+ _token: string;
26150
+ };
26151
+ Returns: import("./types").Json;
26152
+ };
26153
+ inkoop_hash_token: {
26154
+ Args: {
26155
+ _token: string;
26156
+ };
26157
+ Returns: string;
26158
+ };
26159
+ inkoop_html_escape: {
26160
+ Args: {
26161
+ _t: string;
26162
+ };
26163
+ Returns: string;
26164
+ };
26165
+ inkoop_list_artikelen: {
26166
+ Args: never;
26167
+ Returns: {
26168
+ article_number: string;
26169
+ barcode: string;
26170
+ id: string;
26171
+ incoming_quantity: number;
26172
+ is_layer: boolean;
26173
+ location: string;
26174
+ min_quantity: number;
26175
+ preferred_supplier_name: string;
26176
+ product: string;
26177
+ product_type: string;
26178
+ purchase_price: number;
26179
+ quantity: number;
26180
+ sale_price: number;
26181
+ supplier_count: number;
26182
+ unit: string;
26183
+ }[];
26184
+ };
25915
26185
  inkoop_next_order_number: {
25916
26186
  Args: never;
25917
26187
  Returns: string;
25918
26188
  };
26189
+ inkoop_process_request: {
26190
+ Args: {
26191
+ _request_id: string;
26192
+ };
26193
+ Returns: undefined;
26194
+ };
25919
26195
  inkoop_send_order: {
25920
26196
  Args: {
26197
+ _base_url?: string;
25921
26198
  _order_id: string;
26199
+ _resend?: boolean;
25922
26200
  };
25923
26201
  Returns: {
25924
26202
  outbox_id: string;
@@ -25933,6 +26211,26 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
25933
26211
  };
25934
26212
  Returns: undefined;
25935
26213
  };
26214
+ inkoop_stock_key: {
26215
+ Args: {
26216
+ p_product_id: string;
26217
+ };
26218
+ Returns: string;
26219
+ };
26220
+ inkoop_submit_supplier_response: {
26221
+ Args: {
26222
+ _lines: import("./types").Json;
26223
+ _note?: string;
26224
+ _token: string;
26225
+ };
26226
+ Returns: import("./types").Json;
26227
+ };
26228
+ inkoop_sync_item_stock: {
26229
+ Args: {
26230
+ p_item_id: string;
26231
+ };
26232
+ Returns: undefined;
26233
+ };
25936
26234
  instructie_get: {
25937
26235
  Args: {
25938
26236
  _sleutel: string;
@@ -26370,6 +26668,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26370
26668
  };
26371
26669
  Returns: number;
26372
26670
  };
26671
+ logistics_cart_barcode_opschonen: {
26672
+ Args: {
26673
+ p_portie?: number;
26674
+ };
26675
+ Returns: import("./types").Json;
26676
+ };
26373
26677
  logistics_cart_barcode_value: {
26374
26678
  Args: {
26375
26679
  _cart_id: string;
@@ -27979,6 +28283,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
27979
28283
  };
27980
28284
  Returns: string;
27981
28285
  };
28286
+ logistics_shipping_note_status: {
28287
+ Args: {
28288
+ p_cart_id?: string;
28289
+ p_slip_job_id?: string;
28290
+ };
28291
+ Returns: import("./types").Json;
28292
+ };
27982
28293
  logistics_shipping_notes_wake_all: {
27983
28294
  Args: never;
27984
28295
  Returns: import("./types").Json;
@@ -29658,6 +29969,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
29658
29969
  };
29659
29970
  Returns: import("./types").Json;
29660
29971
  };
29972
+ scan_controleer_pincode: {
29973
+ Args: {
29974
+ p_pin: string;
29975
+ p_scanner_id: string;
29976
+ };
29977
+ Returns: boolean;
29978
+ };
29661
29979
  scan_dashboard_stats: {
29662
29980
  Args: {
29663
29981
  p_dagen?: number;
@@ -29677,6 +29995,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
29677
29995
  };
29678
29996
  Returns: import("./types").Json;
29679
29997
  };
29998
+ scan_heeft_pincode: {
29999
+ Args: {
30000
+ p_scanner_id: string;
30001
+ };
30002
+ Returns: boolean;
30003
+ };
29680
30004
  scan_kar_compleet: {
29681
30005
  Args: {
29682
30006
  p_allow_reprint?: boolean;
@@ -29694,6 +30018,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
29694
30018
  Args: {
29695
30019
  p_code: string;
29696
30020
  p_latency_ms?: number;
30021
+ p_medewerker?: string;
29697
30022
  p_message?: string;
29698
30023
  p_result: string;
29699
30024
  p_scanner_key?: string;
@@ -29766,6 +30091,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
29766
30091
  };
29767
30092
  Returns: undefined;
29768
30093
  };
30094
+ scan_scanner_info: {
30095
+ Args: {
30096
+ p_slug: string;
30097
+ };
30098
+ Returns: {
30099
+ actief: boolean;
30100
+ heeft_pincode: boolean;
30101
+ id: string;
30102
+ naam: string;
30103
+ omschrijving: string;
30104
+ printer_id: string;
30105
+ type: string;
30106
+ vereist_medewerker: boolean;
30107
+ werkplek: string;
30108
+ }[];
30109
+ };
29769
30110
  scan_sessie_annuleren: {
29770
30111
  Args: {
29771
30112
  p_sessie_id: string;
@@ -30728,6 +31069,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
30728
31069
  };
30729
31070
  Returns: import("./types").Json;
30730
31071
  };
31072
+ wo_list_colleague_planning: {
31073
+ Args: {
31074
+ _from: string;
31075
+ _monteur_id: string;
31076
+ _to: string;
31077
+ };
31078
+ Returns: {
31079
+ end_at: string;
31080
+ id: string;
31081
+ role: string;
31082
+ start_at: string;
31083
+ status: string;
31084
+ werkbon_id: string;
31085
+ }[];
31086
+ };
30731
31087
  wo_list_offerte_requests: {
30732
31088
  Args: {
30733
31089
  _status?: string;