@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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
18460
18535
  referencedColumns: ["id"];
18461
18536
  }];
18462
18537
  };
18538
+ purchase_request_events: {
18539
+ Row: {
18540
+ created_at: string;
18541
+ details: import("../integrations/supabase/types").Json | null;
18542
+ event_type: string;
18543
+ id: string;
18544
+ request_id: string;
18545
+ };
18546
+ Insert: {
18547
+ created_at?: string;
18548
+ details?: import("../integrations/supabase/types").Json | null;
18549
+ event_type: string;
18550
+ id?: string;
18551
+ request_id: string;
18552
+ };
18553
+ Update: {
18554
+ created_at?: string;
18555
+ details?: import("../integrations/supabase/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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
25912
26137
  };
25913
26138
  Returns: import("../integrations/supabase/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("../integrations/supabase/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 startRecalcJob: import("@tanstack/start-client-core").Optio
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("../integrations/supabase/types").Json;
26223
+ _note?: string;
26224
+ _token: string;
26225
+ };
26226
+ Returns: import("../integrations/supabase/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 startRecalcJob: import("@tanstack/start-client-core").Optio
26370
26668
  };
26371
26669
  Returns: number;
26372
26670
  };
26671
+ logistics_cart_barcode_opschonen: {
26672
+ Args: {
26673
+ p_portie?: number;
26674
+ };
26675
+ Returns: import("../integrations/supabase/types").Json;
26676
+ };
26373
26677
  logistics_cart_barcode_value: {
26374
26678
  Args: {
26375
26679
  _cart_id: string;
@@ -27979,6 +28283,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
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("../integrations/supabase/types").Json;
28292
+ };
27982
28293
  logistics_shipping_notes_wake_all: {
27983
28294
  Args: never;
27984
28295
  Returns: import("../integrations/supabase/types").Json;
@@ -29658,6 +29969,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
29658
29969
  };
29659
29970
  Returns: import("../integrations/supabase/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 startRecalcJob: import("@tanstack/start-client-core").Optio
29677
29995
  };
29678
29996
  Returns: import("../integrations/supabase/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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
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 startRecalcJob: import("@tanstack/start-client-core").Optio
30728
31069
  };
30729
31070
  Returns: import("../integrations/supabase/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;
@@ -31541,6 +31897,27 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31541
31897
  };
31542
31898
  Relationships: [];
31543
31899
  };
31900
+ artikelen_instellingen: {
31901
+ Row: {
31902
+ created_at: string;
31903
+ id: number;
31904
+ marge_procent: number;
31905
+ updated_at: string;
31906
+ };
31907
+ Insert: {
31908
+ created_at?: string;
31909
+ id?: number;
31910
+ marge_procent?: number;
31911
+ updated_at?: string;
31912
+ };
31913
+ Update: {
31914
+ created_at?: string;
31915
+ id?: number;
31916
+ marge_procent?: number;
31917
+ updated_at?: string;
31918
+ };
31919
+ Relationships: [];
31920
+ };
31544
31921
  artikelen_veldconfig: {
31545
31922
  Row: {
31546
31923
  bron_pad: string;
@@ -41216,6 +41593,30 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41216
41593
  };
41217
41594
  Relationships: [];
41218
41595
  };
41596
+ logistics_cart_barcode_archief: {
41597
+ Row: {
41598
+ barcode: string;
41599
+ cart_id: string;
41600
+ created_at: string | null;
41601
+ gearchiveerd_op: string;
41602
+ order_id: string | null;
41603
+ };
41604
+ Insert: {
41605
+ barcode: string;
41606
+ cart_id: string;
41607
+ created_at?: string | null;
41608
+ gearchiveerd_op?: string;
41609
+ order_id?: string | null;
41610
+ };
41611
+ Update: {
41612
+ barcode?: string;
41613
+ cart_id?: string;
41614
+ created_at?: string | null;
41615
+ gearchiveerd_op?: string;
41616
+ order_id?: string | null;
41617
+ };
41618
+ Relationships: [];
41619
+ };
41219
41620
  logistics_control_scan: {
41220
41621
  Row: {
41221
41622
  approved_at: string | null;
@@ -45502,6 +45903,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45502
45903
  next_attempt_at: string;
45503
45904
  order_id: string;
45504
45905
  processed_at: string | null;
45906
+ send_error: string | null;
45505
45907
  status: string;
45506
45908
  updated_at: string;
45507
45909
  };
@@ -45515,6 +45917,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45515
45917
  next_attempt_at?: string;
45516
45918
  order_id: string;
45517
45919
  processed_at?: string | null;
45920
+ send_error?: string | null;
45518
45921
  status?: string;
45519
45922
  updated_at?: string;
45520
45923
  };
@@ -45528,6 +45931,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45528
45931
  next_attempt_at?: string;
45529
45932
  order_id?: string;
45530
45933
  processed_at?: string | null;
45934
+ send_error?: string | null;
45531
45935
  status?: string;
45532
45936
  updated_at?: string;
45533
45937
  };
@@ -48565,6 +48969,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
48565
48969
  lead_time_days: number | null;
48566
48970
  min_order_quantity: number | null;
48567
48971
  notes: string | null;
48972
+ previous_price_cents: number | null;
48973
+ price_source: string;
48974
+ price_updated_at: string | null;
48568
48975
  product_id: string;
48569
48976
  purchase_price_cents: number | null;
48570
48977
  supplier_article_number: string | null;
@@ -48578,6 +48985,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
48578
48985
  lead_time_days?: number | null;
48579
48986
  min_order_quantity?: number | null;
48580
48987
  notes?: string | null;
48988
+ previous_price_cents?: number | null;
48989
+ price_source?: string;
48990
+ price_updated_at?: string | null;
48581
48991
  product_id: string;
48582
48992
  purchase_price_cents?: number | null;
48583
48993
  supplier_article_number?: string | null;
@@ -48591,6 +49001,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
48591
49001
  lead_time_days?: number | null;
48592
49002
  min_order_quantity?: number | null;
48593
49003
  notes?: string | null;
49004
+ previous_price_cents?: number | null;
49005
+ price_source?: string;
49006
+ price_updated_at?: string | null;
48594
49007
  product_id?: string;
48595
49008
  purchase_price_cents?: number | null;
48596
49009
  supplier_article_number?: string | null;
@@ -49121,9 +49534,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49121
49534
  purchase_order_items: {
49122
49535
  Row: {
49123
49536
  article_number: string | null;
49537
+ cancel_reason: string | null;
49538
+ cancelled_at: string | null;
49124
49539
  created_at: string;
49125
49540
  delivery_date: string | null;
49126
49541
  id: string;
49542
+ incoming_booked: number;
49543
+ line_status: string;
49127
49544
  name: string;
49128
49545
  note: string | null;
49129
49546
  pot_size: string | null;
@@ -49131,6 +49548,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49131
49548
  product_type: string;
49132
49549
  purchase_order_id: string;
49133
49550
  quantity: number;
49551
+ received_at: string | null;
49552
+ received_booked: number;
49134
49553
  supplier_id: string | null;
49135
49554
  supplier_product_id: string | null;
49136
49555
  unit_price_cents: number;
@@ -49138,9 +49557,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49138
49557
  };
49139
49558
  Insert: {
49140
49559
  article_number?: string | null;
49560
+ cancel_reason?: string | null;
49561
+ cancelled_at?: string | null;
49141
49562
  created_at?: string;
49142
49563
  delivery_date?: string | null;
49143
49564
  id?: string;
49565
+ incoming_booked?: number;
49566
+ line_status?: string;
49144
49567
  name?: string;
49145
49568
  note?: string | null;
49146
49569
  pot_size?: string | null;
@@ -49148,6 +49571,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49148
49571
  product_type?: string;
49149
49572
  purchase_order_id: string;
49150
49573
  quantity?: number;
49574
+ received_at?: string | null;
49575
+ received_booked?: number;
49151
49576
  supplier_id?: string | null;
49152
49577
  supplier_product_id?: string | null;
49153
49578
  unit_price_cents?: number;
@@ -49155,9 +49580,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49155
49580
  };
49156
49581
  Update: {
49157
49582
  article_number?: string | null;
49583
+ cancel_reason?: string | null;
49584
+ cancelled_at?: string | null;
49158
49585
  created_at?: string;
49159
49586
  delivery_date?: string | null;
49160
49587
  id?: string;
49588
+ incoming_booked?: number;
49589
+ line_status?: string;
49161
49590
  name?: string;
49162
49591
  note?: string | null;
49163
49592
  pot_size?: string | null;
@@ -49165,6 +49594,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49165
49594
  product_type?: string;
49166
49595
  purchase_order_id?: string;
49167
49596
  quantity?: number;
49597
+ received_at?: string | null;
49598
+ received_booked?: number;
49168
49599
  supplier_id?: string | null;
49169
49600
  supplier_product_id?: string | null;
49170
49601
  unit_price_cents?: number;
@@ -49268,6 +49699,153 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49268
49699
  referencedColumns: ["id"];
49269
49700
  }];
49270
49701
  };
49702
+ purchase_request_events: {
49703
+ Row: {
49704
+ created_at: string;
49705
+ details: import("../integrations/supabase/types").Json | null;
49706
+ event_type: string;
49707
+ id: string;
49708
+ request_id: string;
49709
+ };
49710
+ Insert: {
49711
+ created_at?: string;
49712
+ details?: import("../integrations/supabase/types").Json | null;
49713
+ event_type: string;
49714
+ id?: string;
49715
+ request_id: string;
49716
+ };
49717
+ Update: {
49718
+ created_at?: string;
49719
+ details?: import("../integrations/supabase/types").Json | null;
49720
+ event_type?: string;
49721
+ id?: string;
49722
+ request_id?: string;
49723
+ };
49724
+ Relationships: [{
49725
+ foreignKeyName: "purchase_request_events_request_id_fkey";
49726
+ columns: ["request_id"];
49727
+ isOneToOne: false;
49728
+ referencedRelation: "purchase_requests";
49729
+ referencedColumns: ["id"];
49730
+ }];
49731
+ };
49732
+ purchase_request_responses: {
49733
+ Row: {
49734
+ confirmed_date: string | null;
49735
+ confirmed_price_cents: number | null;
49736
+ confirmed_quantity: number;
49737
+ created_at: string;
49738
+ id: string;
49739
+ not_available: boolean;
49740
+ note: string | null;
49741
+ purchase_order_item_id: string;
49742
+ request_id: string;
49743
+ updated_at: string;
49744
+ };
49745
+ Insert: {
49746
+ confirmed_date?: string | null;
49747
+ confirmed_price_cents?: number | null;
49748
+ confirmed_quantity?: number;
49749
+ created_at?: string;
49750
+ id?: string;
49751
+ not_available?: boolean;
49752
+ note?: string | null;
49753
+ purchase_order_item_id: string;
49754
+ request_id: string;
49755
+ updated_at?: string;
49756
+ };
49757
+ Update: {
49758
+ confirmed_date?: string | null;
49759
+ confirmed_price_cents?: number | null;
49760
+ confirmed_quantity?: number;
49761
+ created_at?: string;
49762
+ id?: string;
49763
+ not_available?: boolean;
49764
+ note?: string | null;
49765
+ purchase_order_item_id?: string;
49766
+ request_id?: string;
49767
+ updated_at?: string;
49768
+ };
49769
+ Relationships: [{
49770
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
49771
+ columns: ["purchase_order_item_id"];
49772
+ isOneToOne: false;
49773
+ referencedRelation: "purchase_order_items";
49774
+ referencedColumns: ["id"];
49775
+ }, {
49776
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
49777
+ columns: ["request_id"];
49778
+ isOneToOne: false;
49779
+ referencedRelation: "purchase_requests";
49780
+ referencedColumns: ["id"];
49781
+ }];
49782
+ };
49783
+ purchase_requests: {
49784
+ Row: {
49785
+ created_at: string;
49786
+ expires_at: string;
49787
+ first_viewed_at: string | null;
49788
+ id: string;
49789
+ processed_at: string | null;
49790
+ purchase_order_id: string;
49791
+ responded_at: string | null;
49792
+ sent_at: string;
49793
+ status: string;
49794
+ supplier_id: string | null;
49795
+ supplier_name: string;
49796
+ supplier_note: string | null;
49797
+ to_address: string | null;
49798
+ token_hash: string;
49799
+ updated_at: string;
49800
+ };
49801
+ Insert: {
49802
+ created_at?: string;
49803
+ expires_at?: string;
49804
+ first_viewed_at?: string | null;
49805
+ id?: string;
49806
+ processed_at?: string | null;
49807
+ purchase_order_id: string;
49808
+ responded_at?: string | null;
49809
+ sent_at?: string;
49810
+ status?: string;
49811
+ supplier_id?: string | null;
49812
+ supplier_name?: string;
49813
+ supplier_note?: string | null;
49814
+ to_address?: string | null;
49815
+ token_hash: string;
49816
+ updated_at?: string;
49817
+ };
49818
+ Update: {
49819
+ created_at?: string;
49820
+ expires_at?: string;
49821
+ first_viewed_at?: string | null;
49822
+ id?: string;
49823
+ processed_at?: string | null;
49824
+ purchase_order_id?: string;
49825
+ responded_at?: string | null;
49826
+ sent_at?: string;
49827
+ status?: string;
49828
+ supplier_id?: string | null;
49829
+ supplier_name?: string;
49830
+ supplier_note?: string | null;
49831
+ to_address?: string | null;
49832
+ token_hash?: string;
49833
+ updated_at?: string;
49834
+ };
49835
+ Relationships: [{
49836
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
49837
+ columns: ["purchase_order_id"];
49838
+ isOneToOne: false;
49839
+ referencedRelation: "purchase_orders";
49840
+ referencedColumns: ["id"];
49841
+ }, {
49842
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
49843
+ columns: ["supplier_id"];
49844
+ isOneToOne: false;
49845
+ referencedRelation: "suppliers";
49846
+ referencedColumns: ["id"];
49847
+ }];
49848
+ };
49271
49849
  reception_notifications: {
49272
49850
  Row: {
49273
49851
  booking_id: string | null;
@@ -51431,6 +52009,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
51431
52009
  auto_invoice_enabled: boolean;
51432
52010
  auto_invoice_start_date: string | null;
51433
52011
  auto_invoice_trigger_statuses: string[];
52012
+ auto_send_mode: string | null;
51434
52013
  created_at: string;
51435
52014
  debtor_gl_account: string;
51436
52015
  default_article_code: string | null;
@@ -51459,6 +52038,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
51459
52038
  auto_invoice_enabled?: boolean;
51460
52039
  auto_invoice_start_date?: string | null;
51461
52040
  auto_invoice_trigger_statuses?: string[];
52041
+ auto_send_mode?: string | null;
51462
52042
  created_at?: string;
51463
52043
  debtor_gl_account?: string;
51464
52044
  default_article_code?: string | null;
@@ -51487,6 +52067,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
51487
52067
  auto_invoice_enabled?: boolean;
51488
52068
  auto_invoice_start_date?: string | null;
51489
52069
  auto_invoice_trigger_statuses?: string[];
52070
+ auto_send_mode?: string | null;
51490
52071
  created_at?: string;
51491
52072
  debtor_gl_account?: string;
51492
52073
  default_article_code?: string | null;
@@ -56720,13 +57301,66 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
56720
57301
  };
56721
57302
  Returns: import("../integrations/supabase/types").Json;
56722
57303
  };
57304
+ inkoop_cancel_line: {
57305
+ Args: {
57306
+ _item_id: string;
57307
+ _reason: string;
57308
+ };
57309
+ Returns: string;
57310
+ };
57311
+ inkoop_get_supplier_request: {
57312
+ Args: {
57313
+ _token: string;
57314
+ };
57315
+ Returns: import("../integrations/supabase/types").Json;
57316
+ };
57317
+ inkoop_hash_token: {
57318
+ Args: {
57319
+ _token: string;
57320
+ };
57321
+ Returns: string;
57322
+ };
57323
+ inkoop_html_escape: {
57324
+ Args: {
57325
+ _t: string;
57326
+ };
57327
+ Returns: string;
57328
+ };
57329
+ inkoop_list_artikelen: {
57330
+ Args: never;
57331
+ Returns: {
57332
+ article_number: string;
57333
+ barcode: string;
57334
+ id: string;
57335
+ incoming_quantity: number;
57336
+ is_layer: boolean;
57337
+ location: string;
57338
+ min_quantity: number;
57339
+ preferred_supplier_name: string;
57340
+ product: string;
57341
+ product_type: string;
57342
+ purchase_price: number;
57343
+ quantity: number;
57344
+ sale_price: number;
57345
+ supplier_count: number;
57346
+ unit: string;
57347
+ }[];
57348
+ };
56723
57349
  inkoop_next_order_number: {
56724
57350
  Args: never;
56725
57351
  Returns: string;
56726
57352
  };
57353
+ inkoop_process_request: {
57354
+ Args: {
57355
+ _request_id: string;
57356
+ };
57357
+ Returns: undefined;
57358
+ };
56727
57359
  inkoop_send_order: {
56728
57360
  Args: {
57361
+ _base_url?: string;
56729
57362
  _order_id: string;
57363
+ _resend?: boolean;
56730
57364
  };
56731
57365
  Returns: {
56732
57366
  outbox_id: string;
@@ -56741,6 +57375,26 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
56741
57375
  };
56742
57376
  Returns: undefined;
56743
57377
  };
57378
+ inkoop_stock_key: {
57379
+ Args: {
57380
+ p_product_id: string;
57381
+ };
57382
+ Returns: string;
57383
+ };
57384
+ inkoop_submit_supplier_response: {
57385
+ Args: {
57386
+ _lines: import("../integrations/supabase/types").Json;
57387
+ _note?: string;
57388
+ _token: string;
57389
+ };
57390
+ Returns: import("../integrations/supabase/types").Json;
57391
+ };
57392
+ inkoop_sync_item_stock: {
57393
+ Args: {
57394
+ p_item_id: string;
57395
+ };
57396
+ Returns: undefined;
57397
+ };
56744
57398
  instructie_get: {
56745
57399
  Args: {
56746
57400
  _sleutel: string;
@@ -57178,6 +57832,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
57178
57832
  };
57179
57833
  Returns: number;
57180
57834
  };
57835
+ logistics_cart_barcode_opschonen: {
57836
+ Args: {
57837
+ p_portie?: number;
57838
+ };
57839
+ Returns: import("../integrations/supabase/types").Json;
57840
+ };
57181
57841
  logistics_cart_barcode_value: {
57182
57842
  Args: {
57183
57843
  _cart_id: string;
@@ -58787,6 +59447,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
58787
59447
  };
58788
59448
  Returns: string;
58789
59449
  };
59450
+ logistics_shipping_note_status: {
59451
+ Args: {
59452
+ p_cart_id?: string;
59453
+ p_slip_job_id?: string;
59454
+ };
59455
+ Returns: import("../integrations/supabase/types").Json;
59456
+ };
58790
59457
  logistics_shipping_notes_wake_all: {
58791
59458
  Args: never;
58792
59459
  Returns: import("../integrations/supabase/types").Json;
@@ -60466,6 +61133,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
60466
61133
  };
60467
61134
  Returns: import("../integrations/supabase/types").Json;
60468
61135
  };
61136
+ scan_controleer_pincode: {
61137
+ Args: {
61138
+ p_pin: string;
61139
+ p_scanner_id: string;
61140
+ };
61141
+ Returns: boolean;
61142
+ };
60469
61143
  scan_dashboard_stats: {
60470
61144
  Args: {
60471
61145
  p_dagen?: number;
@@ -60485,6 +61159,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
60485
61159
  };
60486
61160
  Returns: import("../integrations/supabase/types").Json;
60487
61161
  };
61162
+ scan_heeft_pincode: {
61163
+ Args: {
61164
+ p_scanner_id: string;
61165
+ };
61166
+ Returns: boolean;
61167
+ };
60488
61168
  scan_kar_compleet: {
60489
61169
  Args: {
60490
61170
  p_allow_reprint?: boolean;
@@ -60502,6 +61182,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
60502
61182
  Args: {
60503
61183
  p_code: string;
60504
61184
  p_latency_ms?: number;
61185
+ p_medewerker?: string;
60505
61186
  p_message?: string;
60506
61187
  p_result: string;
60507
61188
  p_scanner_key?: string;
@@ -60574,6 +61255,22 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
60574
61255
  };
60575
61256
  Returns: undefined;
60576
61257
  };
61258
+ scan_scanner_info: {
61259
+ Args: {
61260
+ p_slug: string;
61261
+ };
61262
+ Returns: {
61263
+ actief: boolean;
61264
+ heeft_pincode: boolean;
61265
+ id: string;
61266
+ naam: string;
61267
+ omschrijving: string;
61268
+ printer_id: string;
61269
+ type: string;
61270
+ vereist_medewerker: boolean;
61271
+ werkplek: string;
61272
+ }[];
61273
+ };
60577
61274
  scan_sessie_annuleren: {
60578
61275
  Args: {
60579
61276
  p_sessie_id: string;
@@ -61536,6 +62233,21 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
61536
62233
  };
61537
62234
  Returns: import("../integrations/supabase/types").Json;
61538
62235
  };
62236
+ wo_list_colleague_planning: {
62237
+ Args: {
62238
+ _from: string;
62239
+ _monteur_id: string;
62240
+ _to: string;
62241
+ };
62242
+ Returns: {
62243
+ end_at: string;
62244
+ id: string;
62245
+ role: string;
62246
+ start_at: string;
62247
+ status: string;
62248
+ werkbon_id: string;
62249
+ }[];
62250
+ };
61539
62251
  wo_list_offerte_requests: {
61540
62252
  Args: {
61541
62253
  _status?: string;