@flowselections/floriday-voorraad 1.0.49 → 1.0.51

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 (32) hide show
  1. package/dist-lib/components/voorraad/CollapsibleText.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/CollapsibleText.js +14 -11
  3. package/dist-lib/components/voorraad/StockMutationHistoryCard.d.ts.map +1 -1
  4. package/dist-lib/components/voorraad/StockMutationHistoryCard.js +17 -16
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts +360 -0
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.d.ts +2 -30680
  8. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/client.js +4 -27
  10. package/dist-lib/integrations/supabase/client.server.d.ts +360 -0
  11. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/types.d.ts +372 -0
  13. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  14. package/dist-lib/lib/floricode-required-features.functions.d.ts +360 -0
  15. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +360 -0
  17. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floriday-env.functions.d.ts +720 -0
  19. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-gateway.functions.d.ts +2160 -0
  21. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +720 -0
  23. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-warehouse.functions.d.ts +1080 -0
  25. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-writes.functions.d.ts +720 -0
  27. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/inventory-settings.functions.d.ts +720 -0
  29. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/stock-sync.functions.d.ts +720 -0
  31. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  32. package/package.json +2 -2
@@ -8304,6 +8304,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8304
8304
  postal_code: string;
8305
8305
  primary_color: string;
8306
8306
  secondary_color: string;
8307
+ show_company_name: boolean;
8307
8308
  singleton_key: boolean;
8308
8309
  updated_at: string;
8309
8310
  vat_identification_number: string;
@@ -8324,6 +8325,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8324
8325
  postal_code?: string;
8325
8326
  primary_color?: string;
8326
8327
  secondary_color?: string;
8328
+ show_company_name?: boolean;
8327
8329
  singleton_key?: boolean;
8328
8330
  updated_at?: string;
8329
8331
  vat_identification_number?: string;
@@ -8344,6 +8346,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8344
8346
  postal_code?: string;
8345
8347
  primary_color?: string;
8346
8348
  secondary_color?: string;
8349
+ show_company_name?: boolean;
8347
8350
  singleton_key?: boolean;
8348
8351
  updated_at?: string;
8349
8352
  vat_identification_number?: string;
@@ -14716,6 +14719,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
14716
14719
  next_attempt_at: string;
14717
14720
  order_id: string;
14718
14721
  processed_at: string | null;
14722
+ send_error: string | null;
14719
14723
  status: string;
14720
14724
  updated_at: string;
14721
14725
  };
@@ -14729,6 +14733,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
14729
14733
  next_attempt_at?: string;
14730
14734
  order_id: string;
14731
14735
  processed_at?: string | null;
14736
+ send_error?: string | null;
14732
14737
  status?: string;
14733
14738
  updated_at?: string;
14734
14739
  };
@@ -14742,6 +14747,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
14742
14747
  next_attempt_at?: string;
14743
14748
  order_id?: string;
14744
14749
  processed_at?: string | null;
14750
+ send_error?: string | null;
14745
14751
  status?: string;
14746
14752
  updated_at?: string;
14747
14753
  };
@@ -17771,6 +17777,66 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
17771
17777
  };
17772
17778
  Relationships: [];
17773
17779
  };
17780
+ product_suppliers: {
17781
+ Row: {
17782
+ created_at: string;
17783
+ id: string;
17784
+ is_preferred: boolean;
17785
+ lead_time_days: number | null;
17786
+ min_order_quantity: number | null;
17787
+ notes: string | null;
17788
+ product_id: string;
17789
+ purchase_price_cents: number | null;
17790
+ supplier_article_number: string | null;
17791
+ supplier_id: string;
17792
+ updated_at: string;
17793
+ };
17794
+ Insert: {
17795
+ created_at?: string;
17796
+ id?: string;
17797
+ is_preferred?: boolean;
17798
+ lead_time_days?: number | null;
17799
+ min_order_quantity?: number | null;
17800
+ notes?: string | null;
17801
+ product_id: string;
17802
+ purchase_price_cents?: number | null;
17803
+ supplier_article_number?: string | null;
17804
+ supplier_id: string;
17805
+ updated_at?: string;
17806
+ };
17807
+ Update: {
17808
+ created_at?: string;
17809
+ id?: string;
17810
+ is_preferred?: boolean;
17811
+ lead_time_days?: number | null;
17812
+ min_order_quantity?: number | null;
17813
+ notes?: string | null;
17814
+ product_id?: string;
17815
+ purchase_price_cents?: number | null;
17816
+ supplier_article_number?: string | null;
17817
+ supplier_id?: string;
17818
+ updated_at?: string;
17819
+ };
17820
+ Relationships: [{
17821
+ foreignKeyName: "product_suppliers_product_id_fkey";
17822
+ columns: ["product_id"];
17823
+ isOneToOne: false;
17824
+ referencedRelation: "logistics_product_dimensions";
17825
+ referencedColumns: ["product_id"];
17826
+ }, {
17827
+ foreignKeyName: "product_suppliers_product_id_fkey";
17828
+ columns: ["product_id"];
17829
+ isOneToOne: false;
17830
+ referencedRelation: "products";
17831
+ referencedColumns: ["id"];
17832
+ }, {
17833
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
17834
+ columns: ["supplier_id"];
17835
+ isOneToOne: false;
17836
+ referencedRelation: "suppliers";
17837
+ referencedColumns: ["id"];
17838
+ }];
17839
+ };
17774
17840
  product_tray_stickers: {
17775
17841
  Row: {
17776
17842
  bestand_url: string;
@@ -18275,9 +18341,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
18275
18341
  purchase_order_items: {
18276
18342
  Row: {
18277
18343
  article_number: string | null;
18344
+ cancelled_at: string | null;
18278
18345
  created_at: string;
18279
18346
  delivery_date: string | null;
18280
18347
  id: string;
18348
+ incoming_booked: number;
18349
+ line_status: string;
18281
18350
  name: string;
18282
18351
  note: string | null;
18283
18352
  pot_size: string | null;
@@ -18285,6 +18354,8 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
18285
18354
  product_type: string;
18286
18355
  purchase_order_id: string;
18287
18356
  quantity: number;
18357
+ received_at: string | null;
18358
+ received_booked: number;
18288
18359
  supplier_id: string | null;
18289
18360
  supplier_product_id: string | null;
18290
18361
  unit_price_cents: number;
@@ -18292,9 +18363,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
18292
18363
  };
18293
18364
  Insert: {
18294
18365
  article_number?: string | null;
18366
+ cancelled_at?: string | null;
18295
18367
  created_at?: string;
18296
18368
  delivery_date?: string | null;
18297
18369
  id?: string;
18370
+ incoming_booked?: number;
18371
+ line_status?: string;
18298
18372
  name?: string;
18299
18373
  note?: string | null;
18300
18374
  pot_size?: string | null;
@@ -18302,6 +18376,8 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
18302
18376
  product_type?: string;
18303
18377
  purchase_order_id: string;
18304
18378
  quantity?: number;
18379
+ received_at?: string | null;
18380
+ received_booked?: number;
18305
18381
  supplier_id?: string | null;
18306
18382
  supplier_product_id?: string | null;
18307
18383
  unit_price_cents?: number;
@@ -18309,9 +18385,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
18309
18385
  };
18310
18386
  Update: {
18311
18387
  article_number?: string | null;
18388
+ cancelled_at?: string | null;
18312
18389
  created_at?: string;
18313
18390
  delivery_date?: string | null;
18314
18391
  id?: string;
18392
+ incoming_booked?: number;
18393
+ line_status?: string;
18315
18394
  name?: string;
18316
18395
  note?: string | null;
18317
18396
  pot_size?: string | null;
@@ -18319,6 +18398,8 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
18319
18398
  product_type?: string;
18320
18399
  purchase_order_id?: string;
18321
18400
  quantity?: number;
18401
+ received_at?: string | null;
18402
+ received_booked?: number;
18322
18403
  supplier_id?: string | null;
18323
18404
  supplier_product_id?: string | null;
18324
18405
  unit_price_cents?: number;
@@ -18422,6 +18503,153 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
18422
18503
  referencedColumns: ["id"];
18423
18504
  }];
18424
18505
  };
18506
+ purchase_request_events: {
18507
+ Row: {
18508
+ created_at: string;
18509
+ details: import("../integrations/supabase/types").Json | null;
18510
+ event_type: string;
18511
+ id: string;
18512
+ request_id: string;
18513
+ };
18514
+ Insert: {
18515
+ created_at?: string;
18516
+ details?: import("../integrations/supabase/types").Json | null;
18517
+ event_type: string;
18518
+ id?: string;
18519
+ request_id: string;
18520
+ };
18521
+ Update: {
18522
+ created_at?: string;
18523
+ details?: import("../integrations/supabase/types").Json | null;
18524
+ event_type?: string;
18525
+ id?: string;
18526
+ request_id?: string;
18527
+ };
18528
+ Relationships: [{
18529
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18530
+ columns: ["request_id"];
18531
+ isOneToOne: false;
18532
+ referencedRelation: "purchase_requests";
18533
+ referencedColumns: ["id"];
18534
+ }];
18535
+ };
18536
+ purchase_request_responses: {
18537
+ Row: {
18538
+ confirmed_date: string | null;
18539
+ confirmed_price_cents: number | null;
18540
+ confirmed_quantity: number;
18541
+ created_at: string;
18542
+ id: string;
18543
+ not_available: boolean;
18544
+ note: string | null;
18545
+ purchase_order_item_id: string;
18546
+ request_id: string;
18547
+ updated_at: string;
18548
+ };
18549
+ Insert: {
18550
+ confirmed_date?: string | null;
18551
+ confirmed_price_cents?: number | null;
18552
+ confirmed_quantity?: number;
18553
+ created_at?: string;
18554
+ id?: string;
18555
+ not_available?: boolean;
18556
+ note?: string | null;
18557
+ purchase_order_item_id: string;
18558
+ request_id: string;
18559
+ updated_at?: string;
18560
+ };
18561
+ Update: {
18562
+ confirmed_date?: string | null;
18563
+ confirmed_price_cents?: number | null;
18564
+ confirmed_quantity?: number;
18565
+ created_at?: string;
18566
+ id?: string;
18567
+ not_available?: boolean;
18568
+ note?: string | null;
18569
+ purchase_order_item_id?: string;
18570
+ request_id?: string;
18571
+ updated_at?: string;
18572
+ };
18573
+ Relationships: [{
18574
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18575
+ columns: ["purchase_order_item_id"];
18576
+ isOneToOne: false;
18577
+ referencedRelation: "purchase_order_items";
18578
+ referencedColumns: ["id"];
18579
+ }, {
18580
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18581
+ columns: ["request_id"];
18582
+ isOneToOne: false;
18583
+ referencedRelation: "purchase_requests";
18584
+ referencedColumns: ["id"];
18585
+ }];
18586
+ };
18587
+ purchase_requests: {
18588
+ Row: {
18589
+ created_at: string;
18590
+ expires_at: string;
18591
+ first_viewed_at: string | null;
18592
+ id: string;
18593
+ processed_at: string | null;
18594
+ purchase_order_id: string;
18595
+ responded_at: string | null;
18596
+ sent_at: string;
18597
+ status: string;
18598
+ supplier_id: string | null;
18599
+ supplier_name: string;
18600
+ supplier_note: string | null;
18601
+ to_address: string | null;
18602
+ token_hash: string;
18603
+ updated_at: string;
18604
+ };
18605
+ Insert: {
18606
+ created_at?: string;
18607
+ expires_at?: string;
18608
+ first_viewed_at?: string | null;
18609
+ id?: string;
18610
+ processed_at?: string | null;
18611
+ purchase_order_id: string;
18612
+ responded_at?: string | null;
18613
+ sent_at?: string;
18614
+ status?: string;
18615
+ supplier_id?: string | null;
18616
+ supplier_name?: string;
18617
+ supplier_note?: string | null;
18618
+ to_address?: string | null;
18619
+ token_hash: string;
18620
+ updated_at?: string;
18621
+ };
18622
+ Update: {
18623
+ created_at?: string;
18624
+ expires_at?: string;
18625
+ first_viewed_at?: string | null;
18626
+ id?: string;
18627
+ processed_at?: string | null;
18628
+ purchase_order_id?: string;
18629
+ responded_at?: string | null;
18630
+ sent_at?: string;
18631
+ status?: string;
18632
+ supplier_id?: string | null;
18633
+ supplier_name?: string;
18634
+ supplier_note?: string | null;
18635
+ to_address?: string | null;
18636
+ token_hash?: string;
18637
+ updated_at?: string;
18638
+ };
18639
+ Relationships: [{
18640
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18641
+ columns: ["purchase_order_id"];
18642
+ isOneToOne: false;
18643
+ referencedRelation: "purchase_orders";
18644
+ referencedColumns: ["id"];
18645
+ }, {
18646
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18647
+ columns: ["supplier_id"];
18648
+ isOneToOne: false;
18649
+ referencedRelation: "suppliers";
18650
+ referencedColumns: ["id"];
18651
+ }];
18652
+ };
18425
18653
  reception_notifications: {
18426
18654
  Row: {
18427
18655
  booking_id: string | null;
@@ -20585,6 +20813,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
20585
20813
  auto_invoice_enabled: boolean;
20586
20814
  auto_invoice_start_date: string | null;
20587
20815
  auto_invoice_trigger_statuses: string[];
20816
+ auto_send_mode: string | null;
20588
20817
  created_at: string;
20589
20818
  debtor_gl_account: string;
20590
20819
  default_article_code: string | null;
@@ -20613,6 +20842,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
20613
20842
  auto_invoice_enabled?: boolean;
20614
20843
  auto_invoice_start_date?: string | null;
20615
20844
  auto_invoice_trigger_statuses?: string[];
20845
+ auto_send_mode?: string | null;
20616
20846
  created_at?: string;
20617
20847
  debtor_gl_account?: string;
20618
20848
  default_article_code?: string | null;
@@ -20641,6 +20871,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
20641
20871
  auto_invoice_enabled?: boolean;
20642
20872
  auto_invoice_start_date?: string | null;
20643
20873
  auto_invoice_trigger_statuses?: string[];
20874
+ auto_send_mode?: string | null;
20644
20875
  created_at?: string;
20645
20876
  debtor_gl_account?: string;
20646
20877
  default_article_code?: string | null;
@@ -21084,16 +21315,19 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
21084
21315
  Row: {
21085
21316
  active_environment: string;
21086
21317
  id: number;
21318
+ public_base_url: string | null;
21087
21319
  updated_at: string;
21088
21320
  };
21089
21321
  Insert: {
21090
21322
  active_environment?: string;
21091
21323
  id?: number;
21324
+ public_base_url?: string | null;
21092
21325
  updated_at?: string;
21093
21326
  };
21094
21327
  Update: {
21095
21328
  active_environment?: string;
21096
21329
  id?: number;
21330
+ public_base_url?: string | null;
21097
21331
  updated_at?: string;
21098
21332
  };
21099
21333
  Relationships: [];
@@ -21324,11 +21558,15 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
21324
21558
  monteur_id: string;
21325
21559
  netto_verschil_minuten: number;
21326
21560
  normaal_uitbetaald_minuten: number;
21561
+ omgezet_vakantie_minuten: number;
21562
+ overdracht_vorige_minuten: number;
21327
21563
  overuren_minuten: number;
21328
21564
  plus_minuten: number;
21565
+ rest_overuren_minuten: number;
21329
21566
  status: string;
21330
21567
  totaal_uitbetaald_minuten: number;
21331
21568
  updated_at: string;
21569
+ vakantie_uren_bijgeschreven: number;
21332
21570
  };
21333
21571
  Insert: {
21334
21572
  afgesloten_at?: string | null;
@@ -21345,11 +21583,15 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
21345
21583
  monteur_id: string;
21346
21584
  netto_verschil_minuten?: number;
21347
21585
  normaal_uitbetaald_minuten?: number;
21586
+ omgezet_vakantie_minuten?: number;
21587
+ overdracht_vorige_minuten?: number;
21348
21588
  overuren_minuten?: number;
21349
21589
  plus_minuten?: number;
21590
+ rest_overuren_minuten?: number;
21350
21591
  status?: string;
21351
21592
  totaal_uitbetaald_minuten?: number;
21352
21593
  updated_at?: string;
21594
+ vakantie_uren_bijgeschreven?: number;
21353
21595
  };
21354
21596
  Update: {
21355
21597
  afgesloten_at?: string | null;
@@ -21366,11 +21608,15 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
21366
21608
  monteur_id?: string;
21367
21609
  netto_verschil_minuten?: number;
21368
21610
  normaal_uitbetaald_minuten?: number;
21611
+ omgezet_vakantie_minuten?: number;
21612
+ overdracht_vorige_minuten?: number;
21369
21613
  overuren_minuten?: number;
21370
21614
  plus_minuten?: number;
21615
+ rest_overuren_minuten?: number;
21371
21616
  status?: string;
21372
21617
  totaal_uitbetaald_minuten?: number;
21373
21618
  updated_at?: string;
21619
+ vakantie_uren_bijgeschreven?: number;
21374
21620
  };
21375
21621
  Relationships: [];
21376
21622
  };
@@ -25859,13 +26105,69 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
25859
26105
  };
25860
26106
  Returns: import("../integrations/supabase/types").Json;
25861
26107
  };
26108
+ inkoop_get_supplier_request: {
26109
+ Args: {
26110
+ _token: string;
26111
+ };
26112
+ Returns: import("../integrations/supabase/types").Json;
26113
+ };
26114
+ inkoop_hash_token: {
26115
+ Args: {
26116
+ _token: string;
26117
+ };
26118
+ Returns: string;
26119
+ };
26120
+ inkoop_html_escape: {
26121
+ Args: {
26122
+ _t: string;
26123
+ };
26124
+ Returns: string;
26125
+ };
26126
+ inkoop_list_artikelen: {
26127
+ Args: never;
26128
+ Returns: {
26129
+ article_number: string;
26130
+ barcode: string;
26131
+ id: string;
26132
+ incoming_quantity: number;
26133
+ is_layer: boolean;
26134
+ location: string;
26135
+ min_quantity: number;
26136
+ preferred_supplier_name: string;
26137
+ product: string;
26138
+ product_type: string;
26139
+ purchase_price: number;
26140
+ quantity: number;
26141
+ sale_price: number;
26142
+ supplier_count: number;
26143
+ unit: string;
26144
+ }[];
26145
+ };
25862
26146
  inkoop_next_order_number: {
25863
26147
  Args: never;
25864
26148
  Returns: string;
25865
26149
  };
26150
+ inkoop_process_request: {
26151
+ Args: {
26152
+ _request_id: string;
26153
+ };
26154
+ Returns: undefined;
26155
+ };
25866
26156
  inkoop_send_order: {
25867
26157
  Args: {
26158
+ _base_url?: string;
26159
+ _order_id: string;
26160
+ };
26161
+ Returns: {
26162
+ outbox_id: string;
26163
+ supplier_name: string;
26164
+ to_address: string;
26165
+ }[];
26166
+ } | {
26167
+ Args: {
26168
+ _base_url?: string;
25868
26169
  _order_id: string;
26170
+ _resend?: boolean;
25869
26171
  };
25870
26172
  Returns: {
25871
26173
  outbox_id: string;
@@ -25873,6 +26175,33 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
25873
26175
  to_address: string;
25874
26176
  }[];
25875
26177
  };
26178
+ inkoop_set_preferred_supplier: {
26179
+ Args: {
26180
+ _product_id: string;
26181
+ _supplier_id: string;
26182
+ };
26183
+ Returns: undefined;
26184
+ };
26185
+ inkoop_stock_key: {
26186
+ Args: {
26187
+ p_product_id: string;
26188
+ };
26189
+ Returns: string;
26190
+ };
26191
+ inkoop_submit_supplier_response: {
26192
+ Args: {
26193
+ _lines: import("../integrations/supabase/types").Json;
26194
+ _note?: string;
26195
+ _token: string;
26196
+ };
26197
+ Returns: import("../integrations/supabase/types").Json;
26198
+ };
26199
+ inkoop_sync_item_stock: {
26200
+ Args: {
26201
+ p_item_id: string;
26202
+ };
26203
+ Returns: undefined;
26204
+ };
25876
26205
  instructie_get: {
25877
26206
  Args: {
25878
26207
  _sleutel: string;
@@ -27144,6 +27473,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
27144
27473
  Args: never;
27145
27474
  Returns: string;
27146
27475
  };
27476
+ logistics_order_backlog_info: {
27477
+ Args: {
27478
+ p_order_id: string;
27479
+ };
27480
+ Returns: import("../integrations/supabase/types").Json;
27481
+ };
27147
27482
  logistics_order_cart_approval: {
27148
27483
  Args: {
27149
27484
  _order_ref: string;
@@ -27234,6 +27569,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
27234
27569
  };
27235
27570
  Returns: boolean;
27236
27571
  };
27572
+ logistics_order_is_backlog: {
27573
+ Args: {
27574
+ p_order_id: string;
27575
+ };
27576
+ Returns: boolean;
27577
+ };
27237
27578
  logistics_order_is_topick: {
27238
27579
  Args: {
27239
27580
  p_order_id: string;
@@ -27375,6 +27716,10 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
27375
27716
  shifted_count: number;
27376
27717
  }[];
27377
27718
  };
27719
+ logistics_pick_backlog_max_days: {
27720
+ Args: never;
27721
+ Returns: number;
27722
+ };
27378
27723
  logistics_pick_barcode_enabled: {
27379
27724
  Args: never;
27380
27725
  Returns: boolean;
@@ -27990,12 +28335,27 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
27990
28335
  Args: never;
27991
28336
  Returns: import("../integrations/supabase/types").Json;
27992
28337
  };
28338
+ logistics_sync_pick_queue_backlog: {
28339
+ Args: never;
28340
+ Returns: import("../integrations/supabase/types").Json;
28341
+ };
28342
+ logistics_sync_pick_queue_core: {
28343
+ Args: never;
28344
+ Returns: import("../integrations/supabase/types").Json;
28345
+ };
27993
28346
  logistics_sync_task_carriers: {
27994
28347
  Args: {
27995
28348
  p_order_ref?: string;
27996
28349
  };
27997
28350
  Returns: number;
27998
28351
  };
28352
+ logistics_task_open_counts: {
28353
+ Args: never;
28354
+ Returns: {
28355
+ open_count: number;
28356
+ owner_module: string;
28357
+ }[];
28358
+ };
27999
28359
  logistics_task_owner: {
28000
28360
  Args: {
28001
28361
  p_task_type: string;
@@ -38988,6 +39348,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38988
39348
  postal_code: string;
38989
39349
  primary_color: string;
38990
39350
  secondary_color: string;
39351
+ show_company_name: boolean;
38991
39352
  singleton_key: boolean;
38992
39353
  updated_at: string;
38993
39354
  vat_identification_number: string;
@@ -39008,6 +39369,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39008
39369
  postal_code?: string;
39009
39370
  primary_color?: string;
39010
39371
  secondary_color?: string;
39372
+ show_company_name?: boolean;
39011
39373
  singleton_key?: boolean;
39012
39374
  updated_at?: string;
39013
39375
  vat_identification_number?: string;
@@ -39028,6 +39390,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39028
39390
  postal_code?: string;
39029
39391
  primary_color?: string;
39030
39392
  secondary_color?: string;
39393
+ show_company_name?: boolean;
39031
39394
  singleton_key?: boolean;
39032
39395
  updated_at?: string;
39033
39396
  vat_identification_number?: string;
@@ -45400,6 +45763,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
45400
45763
  next_attempt_at: string;
45401
45764
  order_id: string;
45402
45765
  processed_at: string | null;
45766
+ send_error: string | null;
45403
45767
  status: string;
45404
45768
  updated_at: string;
45405
45769
  };
@@ -45413,6 +45777,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
45413
45777
  next_attempt_at?: string;
45414
45778
  order_id: string;
45415
45779
  processed_at?: string | null;
45780
+ send_error?: string | null;
45416
45781
  status?: string;
45417
45782
  updated_at?: string;
45418
45783
  };
@@ -45426,6 +45791,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
45426
45791
  next_attempt_at?: string;
45427
45792
  order_id?: string;
45428
45793
  processed_at?: string | null;
45794
+ send_error?: string | null;
45429
45795
  status?: string;
45430
45796
  updated_at?: string;
45431
45797
  };
@@ -48455,6 +48821,66 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
48455
48821
  };
48456
48822
  Relationships: [];
48457
48823
  };
48824
+ product_suppliers: {
48825
+ Row: {
48826
+ created_at: string;
48827
+ id: string;
48828
+ is_preferred: boolean;
48829
+ lead_time_days: number | null;
48830
+ min_order_quantity: number | null;
48831
+ notes: string | null;
48832
+ product_id: string;
48833
+ purchase_price_cents: number | null;
48834
+ supplier_article_number: string | null;
48835
+ supplier_id: string;
48836
+ updated_at: string;
48837
+ };
48838
+ Insert: {
48839
+ created_at?: string;
48840
+ id?: string;
48841
+ is_preferred?: boolean;
48842
+ lead_time_days?: number | null;
48843
+ min_order_quantity?: number | null;
48844
+ notes?: string | null;
48845
+ product_id: string;
48846
+ purchase_price_cents?: number | null;
48847
+ supplier_article_number?: string | null;
48848
+ supplier_id: string;
48849
+ updated_at?: string;
48850
+ };
48851
+ Update: {
48852
+ created_at?: string;
48853
+ id?: string;
48854
+ is_preferred?: boolean;
48855
+ lead_time_days?: number | null;
48856
+ min_order_quantity?: number | null;
48857
+ notes?: string | null;
48858
+ product_id?: string;
48859
+ purchase_price_cents?: number | null;
48860
+ supplier_article_number?: string | null;
48861
+ supplier_id?: string;
48862
+ updated_at?: string;
48863
+ };
48864
+ Relationships: [{
48865
+ foreignKeyName: "product_suppliers_product_id_fkey";
48866
+ columns: ["product_id"];
48867
+ isOneToOne: false;
48868
+ referencedRelation: "logistics_product_dimensions";
48869
+ referencedColumns: ["product_id"];
48870
+ }, {
48871
+ foreignKeyName: "product_suppliers_product_id_fkey";
48872
+ columns: ["product_id"];
48873
+ isOneToOne: false;
48874
+ referencedRelation: "products";
48875
+ referencedColumns: ["id"];
48876
+ }, {
48877
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
48878
+ columns: ["supplier_id"];
48879
+ isOneToOne: false;
48880
+ referencedRelation: "suppliers";
48881
+ referencedColumns: ["id"];
48882
+ }];
48883
+ };
48458
48884
  product_tray_stickers: {
48459
48885
  Row: {
48460
48886
  bestand_url: string;
@@ -48959,9 +49385,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
48959
49385
  purchase_order_items: {
48960
49386
  Row: {
48961
49387
  article_number: string | null;
49388
+ cancelled_at: string | null;
48962
49389
  created_at: string;
48963
49390
  delivery_date: string | null;
48964
49391
  id: string;
49392
+ incoming_booked: number;
49393
+ line_status: string;
48965
49394
  name: string;
48966
49395
  note: string | null;
48967
49396
  pot_size: string | null;
@@ -48969,6 +49398,8 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
48969
49398
  product_type: string;
48970
49399
  purchase_order_id: string;
48971
49400
  quantity: number;
49401
+ received_at: string | null;
49402
+ received_booked: number;
48972
49403
  supplier_id: string | null;
48973
49404
  supplier_product_id: string | null;
48974
49405
  unit_price_cents: number;
@@ -48976,9 +49407,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
48976
49407
  };
48977
49408
  Insert: {
48978
49409
  article_number?: string | null;
49410
+ cancelled_at?: string | null;
48979
49411
  created_at?: string;
48980
49412
  delivery_date?: string | null;
48981
49413
  id?: string;
49414
+ incoming_booked?: number;
49415
+ line_status?: string;
48982
49416
  name?: string;
48983
49417
  note?: string | null;
48984
49418
  pot_size?: string | null;
@@ -48986,6 +49420,8 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
48986
49420
  product_type?: string;
48987
49421
  purchase_order_id: string;
48988
49422
  quantity?: number;
49423
+ received_at?: string | null;
49424
+ received_booked?: number;
48989
49425
  supplier_id?: string | null;
48990
49426
  supplier_product_id?: string | null;
48991
49427
  unit_price_cents?: number;
@@ -48993,9 +49429,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
48993
49429
  };
48994
49430
  Update: {
48995
49431
  article_number?: string | null;
49432
+ cancelled_at?: string | null;
48996
49433
  created_at?: string;
48997
49434
  delivery_date?: string | null;
48998
49435
  id?: string;
49436
+ incoming_booked?: number;
49437
+ line_status?: string;
48999
49438
  name?: string;
49000
49439
  note?: string | null;
49001
49440
  pot_size?: string | null;
@@ -49003,6 +49442,8 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49003
49442
  product_type?: string;
49004
49443
  purchase_order_id?: string;
49005
49444
  quantity?: number;
49445
+ received_at?: string | null;
49446
+ received_booked?: number;
49006
49447
  supplier_id?: string | null;
49007
49448
  supplier_product_id?: string | null;
49008
49449
  unit_price_cents?: number;
@@ -49106,6 +49547,153 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49106
49547
  referencedColumns: ["id"];
49107
49548
  }];
49108
49549
  };
49550
+ purchase_request_events: {
49551
+ Row: {
49552
+ created_at: string;
49553
+ details: import("../integrations/supabase/types").Json | null;
49554
+ event_type: string;
49555
+ id: string;
49556
+ request_id: string;
49557
+ };
49558
+ Insert: {
49559
+ created_at?: string;
49560
+ details?: import("../integrations/supabase/types").Json | null;
49561
+ event_type: string;
49562
+ id?: string;
49563
+ request_id: string;
49564
+ };
49565
+ Update: {
49566
+ created_at?: string;
49567
+ details?: import("../integrations/supabase/types").Json | null;
49568
+ event_type?: string;
49569
+ id?: string;
49570
+ request_id?: string;
49571
+ };
49572
+ Relationships: [{
49573
+ foreignKeyName: "purchase_request_events_request_id_fkey";
49574
+ columns: ["request_id"];
49575
+ isOneToOne: false;
49576
+ referencedRelation: "purchase_requests";
49577
+ referencedColumns: ["id"];
49578
+ }];
49579
+ };
49580
+ purchase_request_responses: {
49581
+ Row: {
49582
+ confirmed_date: string | null;
49583
+ confirmed_price_cents: number | null;
49584
+ confirmed_quantity: number;
49585
+ created_at: string;
49586
+ id: string;
49587
+ not_available: boolean;
49588
+ note: string | null;
49589
+ purchase_order_item_id: string;
49590
+ request_id: string;
49591
+ updated_at: string;
49592
+ };
49593
+ Insert: {
49594
+ confirmed_date?: string | null;
49595
+ confirmed_price_cents?: number | null;
49596
+ confirmed_quantity?: number;
49597
+ created_at?: string;
49598
+ id?: string;
49599
+ not_available?: boolean;
49600
+ note?: string | null;
49601
+ purchase_order_item_id: string;
49602
+ request_id: string;
49603
+ updated_at?: string;
49604
+ };
49605
+ Update: {
49606
+ confirmed_date?: string | null;
49607
+ confirmed_price_cents?: number | null;
49608
+ confirmed_quantity?: number;
49609
+ created_at?: string;
49610
+ id?: string;
49611
+ not_available?: boolean;
49612
+ note?: string | null;
49613
+ purchase_order_item_id?: string;
49614
+ request_id?: string;
49615
+ updated_at?: string;
49616
+ };
49617
+ Relationships: [{
49618
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
49619
+ columns: ["purchase_order_item_id"];
49620
+ isOneToOne: false;
49621
+ referencedRelation: "purchase_order_items";
49622
+ referencedColumns: ["id"];
49623
+ }, {
49624
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
49625
+ columns: ["request_id"];
49626
+ isOneToOne: false;
49627
+ referencedRelation: "purchase_requests";
49628
+ referencedColumns: ["id"];
49629
+ }];
49630
+ };
49631
+ purchase_requests: {
49632
+ Row: {
49633
+ created_at: string;
49634
+ expires_at: string;
49635
+ first_viewed_at: string | null;
49636
+ id: string;
49637
+ processed_at: string | null;
49638
+ purchase_order_id: string;
49639
+ responded_at: string | null;
49640
+ sent_at: string;
49641
+ status: string;
49642
+ supplier_id: string | null;
49643
+ supplier_name: string;
49644
+ supplier_note: string | null;
49645
+ to_address: string | null;
49646
+ token_hash: string;
49647
+ updated_at: string;
49648
+ };
49649
+ Insert: {
49650
+ created_at?: string;
49651
+ expires_at?: string;
49652
+ first_viewed_at?: string | null;
49653
+ id?: string;
49654
+ processed_at?: string | null;
49655
+ purchase_order_id: string;
49656
+ responded_at?: string | null;
49657
+ sent_at?: string;
49658
+ status?: string;
49659
+ supplier_id?: string | null;
49660
+ supplier_name?: string;
49661
+ supplier_note?: string | null;
49662
+ to_address?: string | null;
49663
+ token_hash: string;
49664
+ updated_at?: string;
49665
+ };
49666
+ Update: {
49667
+ created_at?: string;
49668
+ expires_at?: string;
49669
+ first_viewed_at?: string | null;
49670
+ id?: string;
49671
+ processed_at?: string | null;
49672
+ purchase_order_id?: string;
49673
+ responded_at?: string | null;
49674
+ sent_at?: string;
49675
+ status?: string;
49676
+ supplier_id?: string | null;
49677
+ supplier_name?: string;
49678
+ supplier_note?: string | null;
49679
+ to_address?: string | null;
49680
+ token_hash?: string;
49681
+ updated_at?: string;
49682
+ };
49683
+ Relationships: [{
49684
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
49685
+ columns: ["purchase_order_id"];
49686
+ isOneToOne: false;
49687
+ referencedRelation: "purchase_orders";
49688
+ referencedColumns: ["id"];
49689
+ }, {
49690
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
49691
+ columns: ["supplier_id"];
49692
+ isOneToOne: false;
49693
+ referencedRelation: "suppliers";
49694
+ referencedColumns: ["id"];
49695
+ }];
49696
+ };
49109
49697
  reception_notifications: {
49110
49698
  Row: {
49111
49699
  booking_id: string | null;
@@ -51269,6 +51857,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
51269
51857
  auto_invoice_enabled: boolean;
51270
51858
  auto_invoice_start_date: string | null;
51271
51859
  auto_invoice_trigger_statuses: string[];
51860
+ auto_send_mode: string | null;
51272
51861
  created_at: string;
51273
51862
  debtor_gl_account: string;
51274
51863
  default_article_code: string | null;
@@ -51297,6 +51886,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
51297
51886
  auto_invoice_enabled?: boolean;
51298
51887
  auto_invoice_start_date?: string | null;
51299
51888
  auto_invoice_trigger_statuses?: string[];
51889
+ auto_send_mode?: string | null;
51300
51890
  created_at?: string;
51301
51891
  debtor_gl_account?: string;
51302
51892
  default_article_code?: string | null;
@@ -51325,6 +51915,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
51325
51915
  auto_invoice_enabled?: boolean;
51326
51916
  auto_invoice_start_date?: string | null;
51327
51917
  auto_invoice_trigger_statuses?: string[];
51918
+ auto_send_mode?: string | null;
51328
51919
  created_at?: string;
51329
51920
  debtor_gl_account?: string;
51330
51921
  default_article_code?: string | null;
@@ -51768,16 +52359,19 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
51768
52359
  Row: {
51769
52360
  active_environment: string;
51770
52361
  id: number;
52362
+ public_base_url: string | null;
51771
52363
  updated_at: string;
51772
52364
  };
51773
52365
  Insert: {
51774
52366
  active_environment?: string;
51775
52367
  id?: number;
52368
+ public_base_url?: string | null;
51776
52369
  updated_at?: string;
51777
52370
  };
51778
52371
  Update: {
51779
52372
  active_environment?: string;
51780
52373
  id?: number;
52374
+ public_base_url?: string | null;
51781
52375
  updated_at?: string;
51782
52376
  };
51783
52377
  Relationships: [];
@@ -52008,11 +52602,15 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
52008
52602
  monteur_id: string;
52009
52603
  netto_verschil_minuten: number;
52010
52604
  normaal_uitbetaald_minuten: number;
52605
+ omgezet_vakantie_minuten: number;
52606
+ overdracht_vorige_minuten: number;
52011
52607
  overuren_minuten: number;
52012
52608
  plus_minuten: number;
52609
+ rest_overuren_minuten: number;
52013
52610
  status: string;
52014
52611
  totaal_uitbetaald_minuten: number;
52015
52612
  updated_at: string;
52613
+ vakantie_uren_bijgeschreven: number;
52016
52614
  };
52017
52615
  Insert: {
52018
52616
  afgesloten_at?: string | null;
@@ -52029,11 +52627,15 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
52029
52627
  monteur_id: string;
52030
52628
  netto_verschil_minuten?: number;
52031
52629
  normaal_uitbetaald_minuten?: number;
52630
+ omgezet_vakantie_minuten?: number;
52631
+ overdracht_vorige_minuten?: number;
52032
52632
  overuren_minuten?: number;
52033
52633
  plus_minuten?: number;
52634
+ rest_overuren_minuten?: number;
52034
52635
  status?: string;
52035
52636
  totaal_uitbetaald_minuten?: number;
52036
52637
  updated_at?: string;
52638
+ vakantie_uren_bijgeschreven?: number;
52037
52639
  };
52038
52640
  Update: {
52039
52641
  afgesloten_at?: string | null;
@@ -52050,11 +52652,15 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
52050
52652
  monteur_id?: string;
52051
52653
  netto_verschil_minuten?: number;
52052
52654
  normaal_uitbetaald_minuten?: number;
52655
+ omgezet_vakantie_minuten?: number;
52656
+ overdracht_vorige_minuten?: number;
52053
52657
  overuren_minuten?: number;
52054
52658
  plus_minuten?: number;
52659
+ rest_overuren_minuten?: number;
52055
52660
  status?: string;
52056
52661
  totaal_uitbetaald_minuten?: number;
52057
52662
  updated_at?: string;
52663
+ vakantie_uren_bijgeschreven?: number;
52058
52664
  };
52059
52665
  Relationships: [];
52060
52666
  };
@@ -56543,13 +57149,69 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
56543
57149
  };
56544
57150
  Returns: import("../integrations/supabase/types").Json;
56545
57151
  };
57152
+ inkoop_get_supplier_request: {
57153
+ Args: {
57154
+ _token: string;
57155
+ };
57156
+ Returns: import("../integrations/supabase/types").Json;
57157
+ };
57158
+ inkoop_hash_token: {
57159
+ Args: {
57160
+ _token: string;
57161
+ };
57162
+ Returns: string;
57163
+ };
57164
+ inkoop_html_escape: {
57165
+ Args: {
57166
+ _t: string;
57167
+ };
57168
+ Returns: string;
57169
+ };
57170
+ inkoop_list_artikelen: {
57171
+ Args: never;
57172
+ Returns: {
57173
+ article_number: string;
57174
+ barcode: string;
57175
+ id: string;
57176
+ incoming_quantity: number;
57177
+ is_layer: boolean;
57178
+ location: string;
57179
+ min_quantity: number;
57180
+ preferred_supplier_name: string;
57181
+ product: string;
57182
+ product_type: string;
57183
+ purchase_price: number;
57184
+ quantity: number;
57185
+ sale_price: number;
57186
+ supplier_count: number;
57187
+ unit: string;
57188
+ }[];
57189
+ };
56546
57190
  inkoop_next_order_number: {
56547
57191
  Args: never;
56548
57192
  Returns: string;
56549
57193
  };
57194
+ inkoop_process_request: {
57195
+ Args: {
57196
+ _request_id: string;
57197
+ };
57198
+ Returns: undefined;
57199
+ };
56550
57200
  inkoop_send_order: {
56551
57201
  Args: {
57202
+ _base_url?: string;
57203
+ _order_id: string;
57204
+ };
57205
+ Returns: {
57206
+ outbox_id: string;
57207
+ supplier_name: string;
57208
+ to_address: string;
57209
+ }[];
57210
+ } | {
57211
+ Args: {
57212
+ _base_url?: string;
56552
57213
  _order_id: string;
57214
+ _resend?: boolean;
56553
57215
  };
56554
57216
  Returns: {
56555
57217
  outbox_id: string;
@@ -56557,6 +57219,33 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
56557
57219
  to_address: string;
56558
57220
  }[];
56559
57221
  };
57222
+ inkoop_set_preferred_supplier: {
57223
+ Args: {
57224
+ _product_id: string;
57225
+ _supplier_id: string;
57226
+ };
57227
+ Returns: undefined;
57228
+ };
57229
+ inkoop_stock_key: {
57230
+ Args: {
57231
+ p_product_id: string;
57232
+ };
57233
+ Returns: string;
57234
+ };
57235
+ inkoop_submit_supplier_response: {
57236
+ Args: {
57237
+ _lines: import("../integrations/supabase/types").Json;
57238
+ _note?: string;
57239
+ _token: string;
57240
+ };
57241
+ Returns: import("../integrations/supabase/types").Json;
57242
+ };
57243
+ inkoop_sync_item_stock: {
57244
+ Args: {
57245
+ p_item_id: string;
57246
+ };
57247
+ Returns: undefined;
57248
+ };
56560
57249
  instructie_get: {
56561
57250
  Args: {
56562
57251
  _sleutel: string;
@@ -57828,6 +58517,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
57828
58517
  Args: never;
57829
58518
  Returns: string;
57830
58519
  };
58520
+ logistics_order_backlog_info: {
58521
+ Args: {
58522
+ p_order_id: string;
58523
+ };
58524
+ Returns: import("../integrations/supabase/types").Json;
58525
+ };
57831
58526
  logistics_order_cart_approval: {
57832
58527
  Args: {
57833
58528
  _order_ref: string;
@@ -57918,6 +58613,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
57918
58613
  };
57919
58614
  Returns: boolean;
57920
58615
  };
58616
+ logistics_order_is_backlog: {
58617
+ Args: {
58618
+ p_order_id: string;
58619
+ };
58620
+ Returns: boolean;
58621
+ };
57921
58622
  logistics_order_is_topick: {
57922
58623
  Args: {
57923
58624
  p_order_id: string;
@@ -58059,6 +58760,10 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
58059
58760
  shifted_count: number;
58060
58761
  }[];
58061
58762
  };
58763
+ logistics_pick_backlog_max_days: {
58764
+ Args: never;
58765
+ Returns: number;
58766
+ };
58062
58767
  logistics_pick_barcode_enabled: {
58063
58768
  Args: never;
58064
58769
  Returns: boolean;
@@ -58674,12 +59379,27 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
58674
59379
  Args: never;
58675
59380
  Returns: import("../integrations/supabase/types").Json;
58676
59381
  };
59382
+ logistics_sync_pick_queue_backlog: {
59383
+ Args: never;
59384
+ Returns: import("../integrations/supabase/types").Json;
59385
+ };
59386
+ logistics_sync_pick_queue_core: {
59387
+ Args: never;
59388
+ Returns: import("../integrations/supabase/types").Json;
59389
+ };
58677
59390
  logistics_sync_task_carriers: {
58678
59391
  Args: {
58679
59392
  p_order_ref?: string;
58680
59393
  };
58681
59394
  Returns: number;
58682
59395
  };
59396
+ logistics_task_open_counts: {
59397
+ Args: never;
59398
+ Returns: {
59399
+ open_count: number;
59400
+ owner_module: string;
59401
+ }[];
59402
+ };
58683
59403
  logistics_task_owner: {
58684
59404
  Args: {
58685
59405
  p_task_type: string;
@@ -69672,6 +70392,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
69672
70392
  postal_code: string;
69673
70393
  primary_color: string;
69674
70394
  secondary_color: string;
70395
+ show_company_name: boolean;
69675
70396
  singleton_key: boolean;
69676
70397
  updated_at: string;
69677
70398
  vat_identification_number: string;
@@ -69692,6 +70413,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
69692
70413
  postal_code?: string;
69693
70414
  primary_color?: string;
69694
70415
  secondary_color?: string;
70416
+ show_company_name?: boolean;
69695
70417
  singleton_key?: boolean;
69696
70418
  updated_at?: string;
69697
70419
  vat_identification_number?: string;
@@ -69712,6 +70434,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
69712
70434
  postal_code?: string;
69713
70435
  primary_color?: string;
69714
70436
  secondary_color?: string;
70437
+ show_company_name?: boolean;
69715
70438
  singleton_key?: boolean;
69716
70439
  updated_at?: string;
69717
70440
  vat_identification_number?: string;
@@ -76084,6 +76807,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
76084
76807
  next_attempt_at: string;
76085
76808
  order_id: string;
76086
76809
  processed_at: string | null;
76810
+ send_error: string | null;
76087
76811
  status: string;
76088
76812
  updated_at: string;
76089
76813
  };
@@ -76097,6 +76821,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
76097
76821
  next_attempt_at?: string;
76098
76822
  order_id: string;
76099
76823
  processed_at?: string | null;
76824
+ send_error?: string | null;
76100
76825
  status?: string;
76101
76826
  updated_at?: string;
76102
76827
  };
@@ -76110,6 +76835,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
76110
76835
  next_attempt_at?: string;
76111
76836
  order_id?: string;
76112
76837
  processed_at?: string | null;
76838
+ send_error?: string | null;
76113
76839
  status?: string;
76114
76840
  updated_at?: string;
76115
76841
  };
@@ -79139,6 +79865,66 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
79139
79865
  };
79140
79866
  Relationships: [];
79141
79867
  };
79868
+ product_suppliers: {
79869
+ Row: {
79870
+ created_at: string;
79871
+ id: string;
79872
+ is_preferred: boolean;
79873
+ lead_time_days: number | null;
79874
+ min_order_quantity: number | null;
79875
+ notes: string | null;
79876
+ product_id: string;
79877
+ purchase_price_cents: number | null;
79878
+ supplier_article_number: string | null;
79879
+ supplier_id: string;
79880
+ updated_at: string;
79881
+ };
79882
+ Insert: {
79883
+ created_at?: string;
79884
+ id?: string;
79885
+ is_preferred?: boolean;
79886
+ lead_time_days?: number | null;
79887
+ min_order_quantity?: number | null;
79888
+ notes?: string | null;
79889
+ product_id: string;
79890
+ purchase_price_cents?: number | null;
79891
+ supplier_article_number?: string | null;
79892
+ supplier_id: string;
79893
+ updated_at?: string;
79894
+ };
79895
+ Update: {
79896
+ created_at?: string;
79897
+ id?: string;
79898
+ is_preferred?: boolean;
79899
+ lead_time_days?: number | null;
79900
+ min_order_quantity?: number | null;
79901
+ notes?: string | null;
79902
+ product_id?: string;
79903
+ purchase_price_cents?: number | null;
79904
+ supplier_article_number?: string | null;
79905
+ supplier_id?: string;
79906
+ updated_at?: string;
79907
+ };
79908
+ Relationships: [{
79909
+ foreignKeyName: "product_suppliers_product_id_fkey";
79910
+ columns: ["product_id"];
79911
+ isOneToOne: false;
79912
+ referencedRelation: "logistics_product_dimensions";
79913
+ referencedColumns: ["product_id"];
79914
+ }, {
79915
+ foreignKeyName: "product_suppliers_product_id_fkey";
79916
+ columns: ["product_id"];
79917
+ isOneToOne: false;
79918
+ referencedRelation: "products";
79919
+ referencedColumns: ["id"];
79920
+ }, {
79921
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
79922
+ columns: ["supplier_id"];
79923
+ isOneToOne: false;
79924
+ referencedRelation: "suppliers";
79925
+ referencedColumns: ["id"];
79926
+ }];
79927
+ };
79142
79928
  product_tray_stickers: {
79143
79929
  Row: {
79144
79930
  bestand_url: string;
@@ -79643,9 +80429,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
79643
80429
  purchase_order_items: {
79644
80430
  Row: {
79645
80431
  article_number: string | null;
80432
+ cancelled_at: string | null;
79646
80433
  created_at: string;
79647
80434
  delivery_date: string | null;
79648
80435
  id: string;
80436
+ incoming_booked: number;
80437
+ line_status: string;
79649
80438
  name: string;
79650
80439
  note: string | null;
79651
80440
  pot_size: string | null;
@@ -79653,6 +80442,8 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
79653
80442
  product_type: string;
79654
80443
  purchase_order_id: string;
79655
80444
  quantity: number;
80445
+ received_at: string | null;
80446
+ received_booked: number;
79656
80447
  supplier_id: string | null;
79657
80448
  supplier_product_id: string | null;
79658
80449
  unit_price_cents: number;
@@ -79660,9 +80451,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
79660
80451
  };
79661
80452
  Insert: {
79662
80453
  article_number?: string | null;
80454
+ cancelled_at?: string | null;
79663
80455
  created_at?: string;
79664
80456
  delivery_date?: string | null;
79665
80457
  id?: string;
80458
+ incoming_booked?: number;
80459
+ line_status?: string;
79666
80460
  name?: string;
79667
80461
  note?: string | null;
79668
80462
  pot_size?: string | null;
@@ -79670,6 +80464,8 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
79670
80464
  product_type?: string;
79671
80465
  purchase_order_id: string;
79672
80466
  quantity?: number;
80467
+ received_at?: string | null;
80468
+ received_booked?: number;
79673
80469
  supplier_id?: string | null;
79674
80470
  supplier_product_id?: string | null;
79675
80471
  unit_price_cents?: number;
@@ -79677,9 +80473,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
79677
80473
  };
79678
80474
  Update: {
79679
80475
  article_number?: string | null;
80476
+ cancelled_at?: string | null;
79680
80477
  created_at?: string;
79681
80478
  delivery_date?: string | null;
79682
80479
  id?: string;
80480
+ incoming_booked?: number;
80481
+ line_status?: string;
79683
80482
  name?: string;
79684
80483
  note?: string | null;
79685
80484
  pot_size?: string | null;
@@ -79687,6 +80486,8 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
79687
80486
  product_type?: string;
79688
80487
  purchase_order_id?: string;
79689
80488
  quantity?: number;
80489
+ received_at?: string | null;
80490
+ received_booked?: number;
79690
80491
  supplier_id?: string | null;
79691
80492
  supplier_product_id?: string | null;
79692
80493
  unit_price_cents?: number;
@@ -79790,6 +80591,153 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
79790
80591
  referencedColumns: ["id"];
79791
80592
  }];
79792
80593
  };
80594
+ purchase_request_events: {
80595
+ Row: {
80596
+ created_at: string;
80597
+ details: import("../integrations/supabase/types").Json | null;
80598
+ event_type: string;
80599
+ id: string;
80600
+ request_id: string;
80601
+ };
80602
+ Insert: {
80603
+ created_at?: string;
80604
+ details?: import("../integrations/supabase/types").Json | null;
80605
+ event_type: string;
80606
+ id?: string;
80607
+ request_id: string;
80608
+ };
80609
+ Update: {
80610
+ created_at?: string;
80611
+ details?: import("../integrations/supabase/types").Json | null;
80612
+ event_type?: string;
80613
+ id?: string;
80614
+ request_id?: string;
80615
+ };
80616
+ Relationships: [{
80617
+ foreignKeyName: "purchase_request_events_request_id_fkey";
80618
+ columns: ["request_id"];
80619
+ isOneToOne: false;
80620
+ referencedRelation: "purchase_requests";
80621
+ referencedColumns: ["id"];
80622
+ }];
80623
+ };
80624
+ purchase_request_responses: {
80625
+ Row: {
80626
+ confirmed_date: string | null;
80627
+ confirmed_price_cents: number | null;
80628
+ confirmed_quantity: number;
80629
+ created_at: string;
80630
+ id: string;
80631
+ not_available: boolean;
80632
+ note: string | null;
80633
+ purchase_order_item_id: string;
80634
+ request_id: string;
80635
+ updated_at: string;
80636
+ };
80637
+ Insert: {
80638
+ confirmed_date?: string | null;
80639
+ confirmed_price_cents?: number | null;
80640
+ confirmed_quantity?: number;
80641
+ created_at?: string;
80642
+ id?: string;
80643
+ not_available?: boolean;
80644
+ note?: string | null;
80645
+ purchase_order_item_id: string;
80646
+ request_id: string;
80647
+ updated_at?: string;
80648
+ };
80649
+ Update: {
80650
+ confirmed_date?: string | null;
80651
+ confirmed_price_cents?: number | null;
80652
+ confirmed_quantity?: number;
80653
+ created_at?: string;
80654
+ id?: string;
80655
+ not_available?: boolean;
80656
+ note?: string | null;
80657
+ purchase_order_item_id?: string;
80658
+ request_id?: string;
80659
+ updated_at?: string;
80660
+ };
80661
+ Relationships: [{
80662
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
80663
+ columns: ["purchase_order_item_id"];
80664
+ isOneToOne: false;
80665
+ referencedRelation: "purchase_order_items";
80666
+ referencedColumns: ["id"];
80667
+ }, {
80668
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
80669
+ columns: ["request_id"];
80670
+ isOneToOne: false;
80671
+ referencedRelation: "purchase_requests";
80672
+ referencedColumns: ["id"];
80673
+ }];
80674
+ };
80675
+ purchase_requests: {
80676
+ Row: {
80677
+ created_at: string;
80678
+ expires_at: string;
80679
+ first_viewed_at: string | null;
80680
+ id: string;
80681
+ processed_at: string | null;
80682
+ purchase_order_id: string;
80683
+ responded_at: string | null;
80684
+ sent_at: string;
80685
+ status: string;
80686
+ supplier_id: string | null;
80687
+ supplier_name: string;
80688
+ supplier_note: string | null;
80689
+ to_address: string | null;
80690
+ token_hash: string;
80691
+ updated_at: string;
80692
+ };
80693
+ Insert: {
80694
+ created_at?: string;
80695
+ expires_at?: string;
80696
+ first_viewed_at?: string | null;
80697
+ id?: string;
80698
+ processed_at?: string | null;
80699
+ purchase_order_id: string;
80700
+ responded_at?: string | null;
80701
+ sent_at?: string;
80702
+ status?: string;
80703
+ supplier_id?: string | null;
80704
+ supplier_name?: string;
80705
+ supplier_note?: string | null;
80706
+ to_address?: string | null;
80707
+ token_hash: string;
80708
+ updated_at?: string;
80709
+ };
80710
+ Update: {
80711
+ created_at?: string;
80712
+ expires_at?: string;
80713
+ first_viewed_at?: string | null;
80714
+ id?: string;
80715
+ processed_at?: string | null;
80716
+ purchase_order_id?: string;
80717
+ responded_at?: string | null;
80718
+ sent_at?: string;
80719
+ status?: string;
80720
+ supplier_id?: string | null;
80721
+ supplier_name?: string;
80722
+ supplier_note?: string | null;
80723
+ to_address?: string | null;
80724
+ token_hash?: string;
80725
+ updated_at?: string;
80726
+ };
80727
+ Relationships: [{
80728
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
80729
+ columns: ["purchase_order_id"];
80730
+ isOneToOne: false;
80731
+ referencedRelation: "purchase_orders";
80732
+ referencedColumns: ["id"];
80733
+ }, {
80734
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
80735
+ columns: ["supplier_id"];
80736
+ isOneToOne: false;
80737
+ referencedRelation: "suppliers";
80738
+ referencedColumns: ["id"];
80739
+ }];
80740
+ };
79793
80741
  reception_notifications: {
79794
80742
  Row: {
79795
80743
  booking_id: string | null;
@@ -81953,6 +82901,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
81953
82901
  auto_invoice_enabled: boolean;
81954
82902
  auto_invoice_start_date: string | null;
81955
82903
  auto_invoice_trigger_statuses: string[];
82904
+ auto_send_mode: string | null;
81956
82905
  created_at: string;
81957
82906
  debtor_gl_account: string;
81958
82907
  default_article_code: string | null;
@@ -81981,6 +82930,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
81981
82930
  auto_invoice_enabled?: boolean;
81982
82931
  auto_invoice_start_date?: string | null;
81983
82932
  auto_invoice_trigger_statuses?: string[];
82933
+ auto_send_mode?: string | null;
81984
82934
  created_at?: string;
81985
82935
  debtor_gl_account?: string;
81986
82936
  default_article_code?: string | null;
@@ -82009,6 +82959,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
82009
82959
  auto_invoice_enabled?: boolean;
82010
82960
  auto_invoice_start_date?: string | null;
82011
82961
  auto_invoice_trigger_statuses?: string[];
82962
+ auto_send_mode?: string | null;
82012
82963
  created_at?: string;
82013
82964
  debtor_gl_account?: string;
82014
82965
  default_article_code?: string | null;
@@ -82452,16 +83403,19 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
82452
83403
  Row: {
82453
83404
  active_environment: string;
82454
83405
  id: number;
83406
+ public_base_url: string | null;
82455
83407
  updated_at: string;
82456
83408
  };
82457
83409
  Insert: {
82458
83410
  active_environment?: string;
82459
83411
  id?: number;
83412
+ public_base_url?: string | null;
82460
83413
  updated_at?: string;
82461
83414
  };
82462
83415
  Update: {
82463
83416
  active_environment?: string;
82464
83417
  id?: number;
83418
+ public_base_url?: string | null;
82465
83419
  updated_at?: string;
82466
83420
  };
82467
83421
  Relationships: [];
@@ -82692,11 +83646,15 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
82692
83646
  monteur_id: string;
82693
83647
  netto_verschil_minuten: number;
82694
83648
  normaal_uitbetaald_minuten: number;
83649
+ omgezet_vakantie_minuten: number;
83650
+ overdracht_vorige_minuten: number;
82695
83651
  overuren_minuten: number;
82696
83652
  plus_minuten: number;
83653
+ rest_overuren_minuten: number;
82697
83654
  status: string;
82698
83655
  totaal_uitbetaald_minuten: number;
82699
83656
  updated_at: string;
83657
+ vakantie_uren_bijgeschreven: number;
82700
83658
  };
82701
83659
  Insert: {
82702
83660
  afgesloten_at?: string | null;
@@ -82713,11 +83671,15 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
82713
83671
  monteur_id: string;
82714
83672
  netto_verschil_minuten?: number;
82715
83673
  normaal_uitbetaald_minuten?: number;
83674
+ omgezet_vakantie_minuten?: number;
83675
+ overdracht_vorige_minuten?: number;
82716
83676
  overuren_minuten?: number;
82717
83677
  plus_minuten?: number;
83678
+ rest_overuren_minuten?: number;
82718
83679
  status?: string;
82719
83680
  totaal_uitbetaald_minuten?: number;
82720
83681
  updated_at?: string;
83682
+ vakantie_uren_bijgeschreven?: number;
82721
83683
  };
82722
83684
  Update: {
82723
83685
  afgesloten_at?: string | null;
@@ -82734,11 +83696,15 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
82734
83696
  monteur_id?: string;
82735
83697
  netto_verschil_minuten?: number;
82736
83698
  normaal_uitbetaald_minuten?: number;
83699
+ omgezet_vakantie_minuten?: number;
83700
+ overdracht_vorige_minuten?: number;
82737
83701
  overuren_minuten?: number;
82738
83702
  plus_minuten?: number;
83703
+ rest_overuren_minuten?: number;
82739
83704
  status?: string;
82740
83705
  totaal_uitbetaald_minuten?: number;
82741
83706
  updated_at?: string;
83707
+ vakantie_uren_bijgeschreven?: number;
82742
83708
  };
82743
83709
  Relationships: [];
82744
83710
  };
@@ -87227,13 +88193,69 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
87227
88193
  };
87228
88194
  Returns: import("../integrations/supabase/types").Json;
87229
88195
  };
88196
+ inkoop_get_supplier_request: {
88197
+ Args: {
88198
+ _token: string;
88199
+ };
88200
+ Returns: import("../integrations/supabase/types").Json;
88201
+ };
88202
+ inkoop_hash_token: {
88203
+ Args: {
88204
+ _token: string;
88205
+ };
88206
+ Returns: string;
88207
+ };
88208
+ inkoop_html_escape: {
88209
+ Args: {
88210
+ _t: string;
88211
+ };
88212
+ Returns: string;
88213
+ };
88214
+ inkoop_list_artikelen: {
88215
+ Args: never;
88216
+ Returns: {
88217
+ article_number: string;
88218
+ barcode: string;
88219
+ id: string;
88220
+ incoming_quantity: number;
88221
+ is_layer: boolean;
88222
+ location: string;
88223
+ min_quantity: number;
88224
+ preferred_supplier_name: string;
88225
+ product: string;
88226
+ product_type: string;
88227
+ purchase_price: number;
88228
+ quantity: number;
88229
+ sale_price: number;
88230
+ supplier_count: number;
88231
+ unit: string;
88232
+ }[];
88233
+ };
87230
88234
  inkoop_next_order_number: {
87231
88235
  Args: never;
87232
88236
  Returns: string;
87233
88237
  };
88238
+ inkoop_process_request: {
88239
+ Args: {
88240
+ _request_id: string;
88241
+ };
88242
+ Returns: undefined;
88243
+ };
87234
88244
  inkoop_send_order: {
87235
88245
  Args: {
88246
+ _base_url?: string;
88247
+ _order_id: string;
88248
+ };
88249
+ Returns: {
88250
+ outbox_id: string;
88251
+ supplier_name: string;
88252
+ to_address: string;
88253
+ }[];
88254
+ } | {
88255
+ Args: {
88256
+ _base_url?: string;
87236
88257
  _order_id: string;
88258
+ _resend?: boolean;
87237
88259
  };
87238
88260
  Returns: {
87239
88261
  outbox_id: string;
@@ -87241,6 +88263,33 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
87241
88263
  to_address: string;
87242
88264
  }[];
87243
88265
  };
88266
+ inkoop_set_preferred_supplier: {
88267
+ Args: {
88268
+ _product_id: string;
88269
+ _supplier_id: string;
88270
+ };
88271
+ Returns: undefined;
88272
+ };
88273
+ inkoop_stock_key: {
88274
+ Args: {
88275
+ p_product_id: string;
88276
+ };
88277
+ Returns: string;
88278
+ };
88279
+ inkoop_submit_supplier_response: {
88280
+ Args: {
88281
+ _lines: import("../integrations/supabase/types").Json;
88282
+ _note?: string;
88283
+ _token: string;
88284
+ };
88285
+ Returns: import("../integrations/supabase/types").Json;
88286
+ };
88287
+ inkoop_sync_item_stock: {
88288
+ Args: {
88289
+ p_item_id: string;
88290
+ };
88291
+ Returns: undefined;
88292
+ };
87244
88293
  instructie_get: {
87245
88294
  Args: {
87246
88295
  _sleutel: string;
@@ -88512,6 +89561,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
88512
89561
  Args: never;
88513
89562
  Returns: string;
88514
89563
  };
89564
+ logistics_order_backlog_info: {
89565
+ Args: {
89566
+ p_order_id: string;
89567
+ };
89568
+ Returns: import("../integrations/supabase/types").Json;
89569
+ };
88515
89570
  logistics_order_cart_approval: {
88516
89571
  Args: {
88517
89572
  _order_ref: string;
@@ -88602,6 +89657,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
88602
89657
  };
88603
89658
  Returns: boolean;
88604
89659
  };
89660
+ logistics_order_is_backlog: {
89661
+ Args: {
89662
+ p_order_id: string;
89663
+ };
89664
+ Returns: boolean;
89665
+ };
88605
89666
  logistics_order_is_topick: {
88606
89667
  Args: {
88607
89668
  p_order_id: string;
@@ -88743,6 +89804,10 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
88743
89804
  shifted_count: number;
88744
89805
  }[];
88745
89806
  };
89807
+ logistics_pick_backlog_max_days: {
89808
+ Args: never;
89809
+ Returns: number;
89810
+ };
88746
89811
  logistics_pick_barcode_enabled: {
88747
89812
  Args: never;
88748
89813
  Returns: boolean;
@@ -89358,12 +90423,27 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
89358
90423
  Args: never;
89359
90424
  Returns: import("../integrations/supabase/types").Json;
89360
90425
  };
90426
+ logistics_sync_pick_queue_backlog: {
90427
+ Args: never;
90428
+ Returns: import("../integrations/supabase/types").Json;
90429
+ };
90430
+ logistics_sync_pick_queue_core: {
90431
+ Args: never;
90432
+ Returns: import("../integrations/supabase/types").Json;
90433
+ };
89361
90434
  logistics_sync_task_carriers: {
89362
90435
  Args: {
89363
90436
  p_order_ref?: string;
89364
90437
  };
89365
90438
  Returns: number;
89366
90439
  };
90440
+ logistics_task_open_counts: {
90441
+ Args: never;
90442
+ Returns: {
90443
+ open_count: number;
90444
+ owner_module: string;
90445
+ }[];
90446
+ };
89367
90447
  logistics_task_owner: {
89368
90448
  Args: {
89369
90449
  p_task_type: string;
@@ -100356,6 +101436,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100356
101436
  postal_code: string;
100357
101437
  primary_color: string;
100358
101438
  secondary_color: string;
101439
+ show_company_name: boolean;
100359
101440
  singleton_key: boolean;
100360
101441
  updated_at: string;
100361
101442
  vat_identification_number: string;
@@ -100376,6 +101457,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100376
101457
  postal_code?: string;
100377
101458
  primary_color?: string;
100378
101459
  secondary_color?: string;
101460
+ show_company_name?: boolean;
100379
101461
  singleton_key?: boolean;
100380
101462
  updated_at?: string;
100381
101463
  vat_identification_number?: string;
@@ -100396,6 +101478,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100396
101478
  postal_code?: string;
100397
101479
  primary_color?: string;
100398
101480
  secondary_color?: string;
101481
+ show_company_name?: boolean;
100399
101482
  singleton_key?: boolean;
100400
101483
  updated_at?: string;
100401
101484
  vat_identification_number?: string;
@@ -106768,6 +107851,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
106768
107851
  next_attempt_at: string;
106769
107852
  order_id: string;
106770
107853
  processed_at: string | null;
107854
+ send_error: string | null;
106771
107855
  status: string;
106772
107856
  updated_at: string;
106773
107857
  };
@@ -106781,6 +107865,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
106781
107865
  next_attempt_at?: string;
106782
107866
  order_id: string;
106783
107867
  processed_at?: string | null;
107868
+ send_error?: string | null;
106784
107869
  status?: string;
106785
107870
  updated_at?: string;
106786
107871
  };
@@ -106794,6 +107879,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
106794
107879
  next_attempt_at?: string;
106795
107880
  order_id?: string;
106796
107881
  processed_at?: string | null;
107882
+ send_error?: string | null;
106797
107883
  status?: string;
106798
107884
  updated_at?: string;
106799
107885
  };
@@ -109823,6 +110909,66 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
109823
110909
  };
109824
110910
  Relationships: [];
109825
110911
  };
110912
+ product_suppliers: {
110913
+ Row: {
110914
+ created_at: string;
110915
+ id: string;
110916
+ is_preferred: boolean;
110917
+ lead_time_days: number | null;
110918
+ min_order_quantity: number | null;
110919
+ notes: string | null;
110920
+ product_id: string;
110921
+ purchase_price_cents: number | null;
110922
+ supplier_article_number: string | null;
110923
+ supplier_id: string;
110924
+ updated_at: string;
110925
+ };
110926
+ Insert: {
110927
+ created_at?: string;
110928
+ id?: string;
110929
+ is_preferred?: boolean;
110930
+ lead_time_days?: number | null;
110931
+ min_order_quantity?: number | null;
110932
+ notes?: string | null;
110933
+ product_id: string;
110934
+ purchase_price_cents?: number | null;
110935
+ supplier_article_number?: string | null;
110936
+ supplier_id: string;
110937
+ updated_at?: string;
110938
+ };
110939
+ Update: {
110940
+ created_at?: string;
110941
+ id?: string;
110942
+ is_preferred?: boolean;
110943
+ lead_time_days?: number | null;
110944
+ min_order_quantity?: number | null;
110945
+ notes?: string | null;
110946
+ product_id?: string;
110947
+ purchase_price_cents?: number | null;
110948
+ supplier_article_number?: string | null;
110949
+ supplier_id?: string;
110950
+ updated_at?: string;
110951
+ };
110952
+ Relationships: [{
110953
+ foreignKeyName: "product_suppliers_product_id_fkey";
110954
+ columns: ["product_id"];
110955
+ isOneToOne: false;
110956
+ referencedRelation: "logistics_product_dimensions";
110957
+ referencedColumns: ["product_id"];
110958
+ }, {
110959
+ foreignKeyName: "product_suppliers_product_id_fkey";
110960
+ columns: ["product_id"];
110961
+ isOneToOne: false;
110962
+ referencedRelation: "products";
110963
+ referencedColumns: ["id"];
110964
+ }, {
110965
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
110966
+ columns: ["supplier_id"];
110967
+ isOneToOne: false;
110968
+ referencedRelation: "suppliers";
110969
+ referencedColumns: ["id"];
110970
+ }];
110971
+ };
109826
110972
  product_tray_stickers: {
109827
110973
  Row: {
109828
110974
  bestand_url: string;
@@ -110327,9 +111473,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
110327
111473
  purchase_order_items: {
110328
111474
  Row: {
110329
111475
  article_number: string | null;
111476
+ cancelled_at: string | null;
110330
111477
  created_at: string;
110331
111478
  delivery_date: string | null;
110332
111479
  id: string;
111480
+ incoming_booked: number;
111481
+ line_status: string;
110333
111482
  name: string;
110334
111483
  note: string | null;
110335
111484
  pot_size: string | null;
@@ -110337,6 +111486,8 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
110337
111486
  product_type: string;
110338
111487
  purchase_order_id: string;
110339
111488
  quantity: number;
111489
+ received_at: string | null;
111490
+ received_booked: number;
110340
111491
  supplier_id: string | null;
110341
111492
  supplier_product_id: string | null;
110342
111493
  unit_price_cents: number;
@@ -110344,9 +111495,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
110344
111495
  };
110345
111496
  Insert: {
110346
111497
  article_number?: string | null;
111498
+ cancelled_at?: string | null;
110347
111499
  created_at?: string;
110348
111500
  delivery_date?: string | null;
110349
111501
  id?: string;
111502
+ incoming_booked?: number;
111503
+ line_status?: string;
110350
111504
  name?: string;
110351
111505
  note?: string | null;
110352
111506
  pot_size?: string | null;
@@ -110354,6 +111508,8 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
110354
111508
  product_type?: string;
110355
111509
  purchase_order_id: string;
110356
111510
  quantity?: number;
111511
+ received_at?: string | null;
111512
+ received_booked?: number;
110357
111513
  supplier_id?: string | null;
110358
111514
  supplier_product_id?: string | null;
110359
111515
  unit_price_cents?: number;
@@ -110361,9 +111517,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
110361
111517
  };
110362
111518
  Update: {
110363
111519
  article_number?: string | null;
111520
+ cancelled_at?: string | null;
110364
111521
  created_at?: string;
110365
111522
  delivery_date?: string | null;
110366
111523
  id?: string;
111524
+ incoming_booked?: number;
111525
+ line_status?: string;
110367
111526
  name?: string;
110368
111527
  note?: string | null;
110369
111528
  pot_size?: string | null;
@@ -110371,6 +111530,8 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
110371
111530
  product_type?: string;
110372
111531
  purchase_order_id?: string;
110373
111532
  quantity?: number;
111533
+ received_at?: string | null;
111534
+ received_booked?: number;
110374
111535
  supplier_id?: string | null;
110375
111536
  supplier_product_id?: string | null;
110376
111537
  unit_price_cents?: number;
@@ -110474,6 +111635,153 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
110474
111635
  referencedColumns: ["id"];
110475
111636
  }];
110476
111637
  };
111638
+ purchase_request_events: {
111639
+ Row: {
111640
+ created_at: string;
111641
+ details: import("../integrations/supabase/types").Json | null;
111642
+ event_type: string;
111643
+ id: string;
111644
+ request_id: string;
111645
+ };
111646
+ Insert: {
111647
+ created_at?: string;
111648
+ details?: import("../integrations/supabase/types").Json | null;
111649
+ event_type: string;
111650
+ id?: string;
111651
+ request_id: string;
111652
+ };
111653
+ Update: {
111654
+ created_at?: string;
111655
+ details?: import("../integrations/supabase/types").Json | null;
111656
+ event_type?: string;
111657
+ id?: string;
111658
+ request_id?: string;
111659
+ };
111660
+ Relationships: [{
111661
+ foreignKeyName: "purchase_request_events_request_id_fkey";
111662
+ columns: ["request_id"];
111663
+ isOneToOne: false;
111664
+ referencedRelation: "purchase_requests";
111665
+ referencedColumns: ["id"];
111666
+ }];
111667
+ };
111668
+ purchase_request_responses: {
111669
+ Row: {
111670
+ confirmed_date: string | null;
111671
+ confirmed_price_cents: number | null;
111672
+ confirmed_quantity: number;
111673
+ created_at: string;
111674
+ id: string;
111675
+ not_available: boolean;
111676
+ note: string | null;
111677
+ purchase_order_item_id: string;
111678
+ request_id: string;
111679
+ updated_at: string;
111680
+ };
111681
+ Insert: {
111682
+ confirmed_date?: string | null;
111683
+ confirmed_price_cents?: number | null;
111684
+ confirmed_quantity?: number;
111685
+ created_at?: string;
111686
+ id?: string;
111687
+ not_available?: boolean;
111688
+ note?: string | null;
111689
+ purchase_order_item_id: string;
111690
+ request_id: string;
111691
+ updated_at?: string;
111692
+ };
111693
+ Update: {
111694
+ confirmed_date?: string | null;
111695
+ confirmed_price_cents?: number | null;
111696
+ confirmed_quantity?: number;
111697
+ created_at?: string;
111698
+ id?: string;
111699
+ not_available?: boolean;
111700
+ note?: string | null;
111701
+ purchase_order_item_id?: string;
111702
+ request_id?: string;
111703
+ updated_at?: string;
111704
+ };
111705
+ Relationships: [{
111706
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
111707
+ columns: ["purchase_order_item_id"];
111708
+ isOneToOne: false;
111709
+ referencedRelation: "purchase_order_items";
111710
+ referencedColumns: ["id"];
111711
+ }, {
111712
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
111713
+ columns: ["request_id"];
111714
+ isOneToOne: false;
111715
+ referencedRelation: "purchase_requests";
111716
+ referencedColumns: ["id"];
111717
+ }];
111718
+ };
111719
+ purchase_requests: {
111720
+ Row: {
111721
+ created_at: string;
111722
+ expires_at: string;
111723
+ first_viewed_at: string | null;
111724
+ id: string;
111725
+ processed_at: string | null;
111726
+ purchase_order_id: string;
111727
+ responded_at: string | null;
111728
+ sent_at: string;
111729
+ status: string;
111730
+ supplier_id: string | null;
111731
+ supplier_name: string;
111732
+ supplier_note: string | null;
111733
+ to_address: string | null;
111734
+ token_hash: string;
111735
+ updated_at: string;
111736
+ };
111737
+ Insert: {
111738
+ created_at?: string;
111739
+ expires_at?: string;
111740
+ first_viewed_at?: string | null;
111741
+ id?: string;
111742
+ processed_at?: string | null;
111743
+ purchase_order_id: string;
111744
+ responded_at?: string | null;
111745
+ sent_at?: string;
111746
+ status?: string;
111747
+ supplier_id?: string | null;
111748
+ supplier_name?: string;
111749
+ supplier_note?: string | null;
111750
+ to_address?: string | null;
111751
+ token_hash: string;
111752
+ updated_at?: string;
111753
+ };
111754
+ Update: {
111755
+ created_at?: string;
111756
+ expires_at?: string;
111757
+ first_viewed_at?: string | null;
111758
+ id?: string;
111759
+ processed_at?: string | null;
111760
+ purchase_order_id?: string;
111761
+ responded_at?: string | null;
111762
+ sent_at?: string;
111763
+ status?: string;
111764
+ supplier_id?: string | null;
111765
+ supplier_name?: string;
111766
+ supplier_note?: string | null;
111767
+ to_address?: string | null;
111768
+ token_hash?: string;
111769
+ updated_at?: string;
111770
+ };
111771
+ Relationships: [{
111772
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
111773
+ columns: ["purchase_order_id"];
111774
+ isOneToOne: false;
111775
+ referencedRelation: "purchase_orders";
111776
+ referencedColumns: ["id"];
111777
+ }, {
111778
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
111779
+ columns: ["supplier_id"];
111780
+ isOneToOne: false;
111781
+ referencedRelation: "suppliers";
111782
+ referencedColumns: ["id"];
111783
+ }];
111784
+ };
110477
111785
  reception_notifications: {
110478
111786
  Row: {
110479
111787
  booking_id: string | null;
@@ -112637,6 +113945,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
112637
113945
  auto_invoice_enabled: boolean;
112638
113946
  auto_invoice_start_date: string | null;
112639
113947
  auto_invoice_trigger_statuses: string[];
113948
+ auto_send_mode: string | null;
112640
113949
  created_at: string;
112641
113950
  debtor_gl_account: string;
112642
113951
  default_article_code: string | null;
@@ -112665,6 +113974,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
112665
113974
  auto_invoice_enabled?: boolean;
112666
113975
  auto_invoice_start_date?: string | null;
112667
113976
  auto_invoice_trigger_statuses?: string[];
113977
+ auto_send_mode?: string | null;
112668
113978
  created_at?: string;
112669
113979
  debtor_gl_account?: string;
112670
113980
  default_article_code?: string | null;
@@ -112693,6 +114003,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
112693
114003
  auto_invoice_enabled?: boolean;
112694
114004
  auto_invoice_start_date?: string | null;
112695
114005
  auto_invoice_trigger_statuses?: string[];
114006
+ auto_send_mode?: string | null;
112696
114007
  created_at?: string;
112697
114008
  debtor_gl_account?: string;
112698
114009
  default_article_code?: string | null;
@@ -113136,16 +114447,19 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
113136
114447
  Row: {
113137
114448
  active_environment: string;
113138
114449
  id: number;
114450
+ public_base_url: string | null;
113139
114451
  updated_at: string;
113140
114452
  };
113141
114453
  Insert: {
113142
114454
  active_environment?: string;
113143
114455
  id?: number;
114456
+ public_base_url?: string | null;
113144
114457
  updated_at?: string;
113145
114458
  };
113146
114459
  Update: {
113147
114460
  active_environment?: string;
113148
114461
  id?: number;
114462
+ public_base_url?: string | null;
113149
114463
  updated_at?: string;
113150
114464
  };
113151
114465
  Relationships: [];
@@ -113376,11 +114690,15 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
113376
114690
  monteur_id: string;
113377
114691
  netto_verschil_minuten: number;
113378
114692
  normaal_uitbetaald_minuten: number;
114693
+ omgezet_vakantie_minuten: number;
114694
+ overdracht_vorige_minuten: number;
113379
114695
  overuren_minuten: number;
113380
114696
  plus_minuten: number;
114697
+ rest_overuren_minuten: number;
113381
114698
  status: string;
113382
114699
  totaal_uitbetaald_minuten: number;
113383
114700
  updated_at: string;
114701
+ vakantie_uren_bijgeschreven: number;
113384
114702
  };
113385
114703
  Insert: {
113386
114704
  afgesloten_at?: string | null;
@@ -113397,11 +114715,15 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
113397
114715
  monteur_id: string;
113398
114716
  netto_verschil_minuten?: number;
113399
114717
  normaal_uitbetaald_minuten?: number;
114718
+ omgezet_vakantie_minuten?: number;
114719
+ overdracht_vorige_minuten?: number;
113400
114720
  overuren_minuten?: number;
113401
114721
  plus_minuten?: number;
114722
+ rest_overuren_minuten?: number;
113402
114723
  status?: string;
113403
114724
  totaal_uitbetaald_minuten?: number;
113404
114725
  updated_at?: string;
114726
+ vakantie_uren_bijgeschreven?: number;
113405
114727
  };
113406
114728
  Update: {
113407
114729
  afgesloten_at?: string | null;
@@ -113418,11 +114740,15 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
113418
114740
  monteur_id?: string;
113419
114741
  netto_verschil_minuten?: number;
113420
114742
  normaal_uitbetaald_minuten?: number;
114743
+ omgezet_vakantie_minuten?: number;
114744
+ overdracht_vorige_minuten?: number;
113421
114745
  overuren_minuten?: number;
113422
114746
  plus_minuten?: number;
114747
+ rest_overuren_minuten?: number;
113423
114748
  status?: string;
113424
114749
  totaal_uitbetaald_minuten?: number;
113425
114750
  updated_at?: string;
114751
+ vakantie_uren_bijgeschreven?: number;
113426
114752
  };
113427
114753
  Relationships: [];
113428
114754
  };
@@ -117911,13 +119237,69 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
117911
119237
  };
117912
119238
  Returns: import("../integrations/supabase/types").Json;
117913
119239
  };
119240
+ inkoop_get_supplier_request: {
119241
+ Args: {
119242
+ _token: string;
119243
+ };
119244
+ Returns: import("../integrations/supabase/types").Json;
119245
+ };
119246
+ inkoop_hash_token: {
119247
+ Args: {
119248
+ _token: string;
119249
+ };
119250
+ Returns: string;
119251
+ };
119252
+ inkoop_html_escape: {
119253
+ Args: {
119254
+ _t: string;
119255
+ };
119256
+ Returns: string;
119257
+ };
119258
+ inkoop_list_artikelen: {
119259
+ Args: never;
119260
+ Returns: {
119261
+ article_number: string;
119262
+ barcode: string;
119263
+ id: string;
119264
+ incoming_quantity: number;
119265
+ is_layer: boolean;
119266
+ location: string;
119267
+ min_quantity: number;
119268
+ preferred_supplier_name: string;
119269
+ product: string;
119270
+ product_type: string;
119271
+ purchase_price: number;
119272
+ quantity: number;
119273
+ sale_price: number;
119274
+ supplier_count: number;
119275
+ unit: string;
119276
+ }[];
119277
+ };
117914
119278
  inkoop_next_order_number: {
117915
119279
  Args: never;
117916
119280
  Returns: string;
117917
119281
  };
119282
+ inkoop_process_request: {
119283
+ Args: {
119284
+ _request_id: string;
119285
+ };
119286
+ Returns: undefined;
119287
+ };
117918
119288
  inkoop_send_order: {
117919
119289
  Args: {
119290
+ _base_url?: string;
119291
+ _order_id: string;
119292
+ };
119293
+ Returns: {
119294
+ outbox_id: string;
119295
+ supplier_name: string;
119296
+ to_address: string;
119297
+ }[];
119298
+ } | {
119299
+ Args: {
119300
+ _base_url?: string;
117920
119301
  _order_id: string;
119302
+ _resend?: boolean;
117921
119303
  };
117922
119304
  Returns: {
117923
119305
  outbox_id: string;
@@ -117925,6 +119307,33 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
117925
119307
  to_address: string;
117926
119308
  }[];
117927
119309
  };
119310
+ inkoop_set_preferred_supplier: {
119311
+ Args: {
119312
+ _product_id: string;
119313
+ _supplier_id: string;
119314
+ };
119315
+ Returns: undefined;
119316
+ };
119317
+ inkoop_stock_key: {
119318
+ Args: {
119319
+ p_product_id: string;
119320
+ };
119321
+ Returns: string;
119322
+ };
119323
+ inkoop_submit_supplier_response: {
119324
+ Args: {
119325
+ _lines: import("../integrations/supabase/types").Json;
119326
+ _note?: string;
119327
+ _token: string;
119328
+ };
119329
+ Returns: import("../integrations/supabase/types").Json;
119330
+ };
119331
+ inkoop_sync_item_stock: {
119332
+ Args: {
119333
+ p_item_id: string;
119334
+ };
119335
+ Returns: undefined;
119336
+ };
117928
119337
  instructie_get: {
117929
119338
  Args: {
117930
119339
  _sleutel: string;
@@ -119196,6 +120605,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
119196
120605
  Args: never;
119197
120606
  Returns: string;
119198
120607
  };
120608
+ logistics_order_backlog_info: {
120609
+ Args: {
120610
+ p_order_id: string;
120611
+ };
120612
+ Returns: import("../integrations/supabase/types").Json;
120613
+ };
119199
120614
  logistics_order_cart_approval: {
119200
120615
  Args: {
119201
120616
  _order_ref: string;
@@ -119286,6 +120701,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
119286
120701
  };
119287
120702
  Returns: boolean;
119288
120703
  };
120704
+ logistics_order_is_backlog: {
120705
+ Args: {
120706
+ p_order_id: string;
120707
+ };
120708
+ Returns: boolean;
120709
+ };
119289
120710
  logistics_order_is_topick: {
119290
120711
  Args: {
119291
120712
  p_order_id: string;
@@ -119427,6 +120848,10 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
119427
120848
  shifted_count: number;
119428
120849
  }[];
119429
120850
  };
120851
+ logistics_pick_backlog_max_days: {
120852
+ Args: never;
120853
+ Returns: number;
120854
+ };
119430
120855
  logistics_pick_barcode_enabled: {
119431
120856
  Args: never;
119432
120857
  Returns: boolean;
@@ -120042,12 +121467,27 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
120042
121467
  Args: never;
120043
121468
  Returns: import("../integrations/supabase/types").Json;
120044
121469
  };
121470
+ logistics_sync_pick_queue_backlog: {
121471
+ Args: never;
121472
+ Returns: import("../integrations/supabase/types").Json;
121473
+ };
121474
+ logistics_sync_pick_queue_core: {
121475
+ Args: never;
121476
+ Returns: import("../integrations/supabase/types").Json;
121477
+ };
120045
121478
  logistics_sync_task_carriers: {
120046
121479
  Args: {
120047
121480
  p_order_ref?: string;
120048
121481
  };
120049
121482
  Returns: number;
120050
121483
  };
121484
+ logistics_task_open_counts: {
121485
+ Args: never;
121486
+ Returns: {
121487
+ open_count: number;
121488
+ owner_module: string;
121489
+ }[];
121490
+ };
120051
121491
  logistics_task_owner: {
120052
121492
  Args: {
120053
121493
  p_task_type: string;
@@ -131043,6 +132483,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
131043
132483
  postal_code: string;
131044
132484
  primary_color: string;
131045
132485
  secondary_color: string;
132486
+ show_company_name: boolean;
131046
132487
  singleton_key: boolean;
131047
132488
  updated_at: string;
131048
132489
  vat_identification_number: string;
@@ -131063,6 +132504,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
131063
132504
  postal_code?: string;
131064
132505
  primary_color?: string;
131065
132506
  secondary_color?: string;
132507
+ show_company_name?: boolean;
131066
132508
  singleton_key?: boolean;
131067
132509
  updated_at?: string;
131068
132510
  vat_identification_number?: string;
@@ -131083,6 +132525,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
131083
132525
  postal_code?: string;
131084
132526
  primary_color?: string;
131085
132527
  secondary_color?: string;
132528
+ show_company_name?: boolean;
131086
132529
  singleton_key?: boolean;
131087
132530
  updated_at?: string;
131088
132531
  vat_identification_number?: string;
@@ -137455,6 +138898,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
137455
138898
  next_attempt_at: string;
137456
138899
  order_id: string;
137457
138900
  processed_at: string | null;
138901
+ send_error: string | null;
137458
138902
  status: string;
137459
138903
  updated_at: string;
137460
138904
  };
@@ -137468,6 +138912,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
137468
138912
  next_attempt_at?: string;
137469
138913
  order_id: string;
137470
138914
  processed_at?: string | null;
138915
+ send_error?: string | null;
137471
138916
  status?: string;
137472
138917
  updated_at?: string;
137473
138918
  };
@@ -137481,6 +138926,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
137481
138926
  next_attempt_at?: string;
137482
138927
  order_id?: string;
137483
138928
  processed_at?: string | null;
138929
+ send_error?: string | null;
137484
138930
  status?: string;
137485
138931
  updated_at?: string;
137486
138932
  };
@@ -140510,6 +141956,66 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
140510
141956
  };
140511
141957
  Relationships: [];
140512
141958
  };
141959
+ product_suppliers: {
141960
+ Row: {
141961
+ created_at: string;
141962
+ id: string;
141963
+ is_preferred: boolean;
141964
+ lead_time_days: number | null;
141965
+ min_order_quantity: number | null;
141966
+ notes: string | null;
141967
+ product_id: string;
141968
+ purchase_price_cents: number | null;
141969
+ supplier_article_number: string | null;
141970
+ supplier_id: string;
141971
+ updated_at: string;
141972
+ };
141973
+ Insert: {
141974
+ created_at?: string;
141975
+ id?: string;
141976
+ is_preferred?: boolean;
141977
+ lead_time_days?: number | null;
141978
+ min_order_quantity?: number | null;
141979
+ notes?: string | null;
141980
+ product_id: string;
141981
+ purchase_price_cents?: number | null;
141982
+ supplier_article_number?: string | null;
141983
+ supplier_id: string;
141984
+ updated_at?: string;
141985
+ };
141986
+ Update: {
141987
+ created_at?: string;
141988
+ id?: string;
141989
+ is_preferred?: boolean;
141990
+ lead_time_days?: number | null;
141991
+ min_order_quantity?: number | null;
141992
+ notes?: string | null;
141993
+ product_id?: string;
141994
+ purchase_price_cents?: number | null;
141995
+ supplier_article_number?: string | null;
141996
+ supplier_id?: string;
141997
+ updated_at?: string;
141998
+ };
141999
+ Relationships: [{
142000
+ foreignKeyName: "product_suppliers_product_id_fkey";
142001
+ columns: ["product_id"];
142002
+ isOneToOne: false;
142003
+ referencedRelation: "logistics_product_dimensions";
142004
+ referencedColumns: ["product_id"];
142005
+ }, {
142006
+ foreignKeyName: "product_suppliers_product_id_fkey";
142007
+ columns: ["product_id"];
142008
+ isOneToOne: false;
142009
+ referencedRelation: "products";
142010
+ referencedColumns: ["id"];
142011
+ }, {
142012
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
142013
+ columns: ["supplier_id"];
142014
+ isOneToOne: false;
142015
+ referencedRelation: "suppliers";
142016
+ referencedColumns: ["id"];
142017
+ }];
142018
+ };
140513
142019
  product_tray_stickers: {
140514
142020
  Row: {
140515
142021
  bestand_url: string;
@@ -141014,9 +142520,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
141014
142520
  purchase_order_items: {
141015
142521
  Row: {
141016
142522
  article_number: string | null;
142523
+ cancelled_at: string | null;
141017
142524
  created_at: string;
141018
142525
  delivery_date: string | null;
141019
142526
  id: string;
142527
+ incoming_booked: number;
142528
+ line_status: string;
141020
142529
  name: string;
141021
142530
  note: string | null;
141022
142531
  pot_size: string | null;
@@ -141024,6 +142533,8 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
141024
142533
  product_type: string;
141025
142534
  purchase_order_id: string;
141026
142535
  quantity: number;
142536
+ received_at: string | null;
142537
+ received_booked: number;
141027
142538
  supplier_id: string | null;
141028
142539
  supplier_product_id: string | null;
141029
142540
  unit_price_cents: number;
@@ -141031,9 +142542,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
141031
142542
  };
141032
142543
  Insert: {
141033
142544
  article_number?: string | null;
142545
+ cancelled_at?: string | null;
141034
142546
  created_at?: string;
141035
142547
  delivery_date?: string | null;
141036
142548
  id?: string;
142549
+ incoming_booked?: number;
142550
+ line_status?: string;
141037
142551
  name?: string;
141038
142552
  note?: string | null;
141039
142553
  pot_size?: string | null;
@@ -141041,6 +142555,8 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
141041
142555
  product_type?: string;
141042
142556
  purchase_order_id: string;
141043
142557
  quantity?: number;
142558
+ received_at?: string | null;
142559
+ received_booked?: number;
141044
142560
  supplier_id?: string | null;
141045
142561
  supplier_product_id?: string | null;
141046
142562
  unit_price_cents?: number;
@@ -141048,9 +142564,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
141048
142564
  };
141049
142565
  Update: {
141050
142566
  article_number?: string | null;
142567
+ cancelled_at?: string | null;
141051
142568
  created_at?: string;
141052
142569
  delivery_date?: string | null;
141053
142570
  id?: string;
142571
+ incoming_booked?: number;
142572
+ line_status?: string;
141054
142573
  name?: string;
141055
142574
  note?: string | null;
141056
142575
  pot_size?: string | null;
@@ -141058,6 +142577,8 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
141058
142577
  product_type?: string;
141059
142578
  purchase_order_id?: string;
141060
142579
  quantity?: number;
142580
+ received_at?: string | null;
142581
+ received_booked?: number;
141061
142582
  supplier_id?: string | null;
141062
142583
  supplier_product_id?: string | null;
141063
142584
  unit_price_cents?: number;
@@ -141161,6 +142682,153 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
141161
142682
  referencedColumns: ["id"];
141162
142683
  }];
141163
142684
  };
142685
+ purchase_request_events: {
142686
+ Row: {
142687
+ created_at: string;
142688
+ details: import("../integrations/supabase/types").Json | null;
142689
+ event_type: string;
142690
+ id: string;
142691
+ request_id: string;
142692
+ };
142693
+ Insert: {
142694
+ created_at?: string;
142695
+ details?: import("../integrations/supabase/types").Json | null;
142696
+ event_type: string;
142697
+ id?: string;
142698
+ request_id: string;
142699
+ };
142700
+ Update: {
142701
+ created_at?: string;
142702
+ details?: import("../integrations/supabase/types").Json | null;
142703
+ event_type?: string;
142704
+ id?: string;
142705
+ request_id?: string;
142706
+ };
142707
+ Relationships: [{
142708
+ foreignKeyName: "purchase_request_events_request_id_fkey";
142709
+ columns: ["request_id"];
142710
+ isOneToOne: false;
142711
+ referencedRelation: "purchase_requests";
142712
+ referencedColumns: ["id"];
142713
+ }];
142714
+ };
142715
+ purchase_request_responses: {
142716
+ Row: {
142717
+ confirmed_date: string | null;
142718
+ confirmed_price_cents: number | null;
142719
+ confirmed_quantity: number;
142720
+ created_at: string;
142721
+ id: string;
142722
+ not_available: boolean;
142723
+ note: string | null;
142724
+ purchase_order_item_id: string;
142725
+ request_id: string;
142726
+ updated_at: string;
142727
+ };
142728
+ Insert: {
142729
+ confirmed_date?: string | null;
142730
+ confirmed_price_cents?: number | null;
142731
+ confirmed_quantity?: number;
142732
+ created_at?: string;
142733
+ id?: string;
142734
+ not_available?: boolean;
142735
+ note?: string | null;
142736
+ purchase_order_item_id: string;
142737
+ request_id: string;
142738
+ updated_at?: string;
142739
+ };
142740
+ Update: {
142741
+ confirmed_date?: string | null;
142742
+ confirmed_price_cents?: number | null;
142743
+ confirmed_quantity?: number;
142744
+ created_at?: string;
142745
+ id?: string;
142746
+ not_available?: boolean;
142747
+ note?: string | null;
142748
+ purchase_order_item_id?: string;
142749
+ request_id?: string;
142750
+ updated_at?: string;
142751
+ };
142752
+ Relationships: [{
142753
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
142754
+ columns: ["purchase_order_item_id"];
142755
+ isOneToOne: false;
142756
+ referencedRelation: "purchase_order_items";
142757
+ referencedColumns: ["id"];
142758
+ }, {
142759
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
142760
+ columns: ["request_id"];
142761
+ isOneToOne: false;
142762
+ referencedRelation: "purchase_requests";
142763
+ referencedColumns: ["id"];
142764
+ }];
142765
+ };
142766
+ purchase_requests: {
142767
+ Row: {
142768
+ created_at: string;
142769
+ expires_at: string;
142770
+ first_viewed_at: string | null;
142771
+ id: string;
142772
+ processed_at: string | null;
142773
+ purchase_order_id: string;
142774
+ responded_at: string | null;
142775
+ sent_at: string;
142776
+ status: string;
142777
+ supplier_id: string | null;
142778
+ supplier_name: string;
142779
+ supplier_note: string | null;
142780
+ to_address: string | null;
142781
+ token_hash: string;
142782
+ updated_at: string;
142783
+ };
142784
+ Insert: {
142785
+ created_at?: string;
142786
+ expires_at?: string;
142787
+ first_viewed_at?: string | null;
142788
+ id?: string;
142789
+ processed_at?: string | null;
142790
+ purchase_order_id: string;
142791
+ responded_at?: string | null;
142792
+ sent_at?: string;
142793
+ status?: string;
142794
+ supplier_id?: string | null;
142795
+ supplier_name?: string;
142796
+ supplier_note?: string | null;
142797
+ to_address?: string | null;
142798
+ token_hash: string;
142799
+ updated_at?: string;
142800
+ };
142801
+ Update: {
142802
+ created_at?: string;
142803
+ expires_at?: string;
142804
+ first_viewed_at?: string | null;
142805
+ id?: string;
142806
+ processed_at?: string | null;
142807
+ purchase_order_id?: string;
142808
+ responded_at?: string | null;
142809
+ sent_at?: string;
142810
+ status?: string;
142811
+ supplier_id?: string | null;
142812
+ supplier_name?: string;
142813
+ supplier_note?: string | null;
142814
+ to_address?: string | null;
142815
+ token_hash?: string;
142816
+ updated_at?: string;
142817
+ };
142818
+ Relationships: [{
142819
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
142820
+ columns: ["purchase_order_id"];
142821
+ isOneToOne: false;
142822
+ referencedRelation: "purchase_orders";
142823
+ referencedColumns: ["id"];
142824
+ }, {
142825
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
142826
+ columns: ["supplier_id"];
142827
+ isOneToOne: false;
142828
+ referencedRelation: "suppliers";
142829
+ referencedColumns: ["id"];
142830
+ }];
142831
+ };
141164
142832
  reception_notifications: {
141165
142833
  Row: {
141166
142834
  booking_id: string | null;
@@ -143324,6 +144992,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
143324
144992
  auto_invoice_enabled: boolean;
143325
144993
  auto_invoice_start_date: string | null;
143326
144994
  auto_invoice_trigger_statuses: string[];
144995
+ auto_send_mode: string | null;
143327
144996
  created_at: string;
143328
144997
  debtor_gl_account: string;
143329
144998
  default_article_code: string | null;
@@ -143352,6 +145021,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
143352
145021
  auto_invoice_enabled?: boolean;
143353
145022
  auto_invoice_start_date?: string | null;
143354
145023
  auto_invoice_trigger_statuses?: string[];
145024
+ auto_send_mode?: string | null;
143355
145025
  created_at?: string;
143356
145026
  debtor_gl_account?: string;
143357
145027
  default_article_code?: string | null;
@@ -143380,6 +145050,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
143380
145050
  auto_invoice_enabled?: boolean;
143381
145051
  auto_invoice_start_date?: string | null;
143382
145052
  auto_invoice_trigger_statuses?: string[];
145053
+ auto_send_mode?: string | null;
143383
145054
  created_at?: string;
143384
145055
  debtor_gl_account?: string;
143385
145056
  default_article_code?: string | null;
@@ -143823,16 +145494,19 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
143823
145494
  Row: {
143824
145495
  active_environment: string;
143825
145496
  id: number;
145497
+ public_base_url: string | null;
143826
145498
  updated_at: string;
143827
145499
  };
143828
145500
  Insert: {
143829
145501
  active_environment?: string;
143830
145502
  id?: number;
145503
+ public_base_url?: string | null;
143831
145504
  updated_at?: string;
143832
145505
  };
143833
145506
  Update: {
143834
145507
  active_environment?: string;
143835
145508
  id?: number;
145509
+ public_base_url?: string | null;
143836
145510
  updated_at?: string;
143837
145511
  };
143838
145512
  Relationships: [];
@@ -144063,11 +145737,15 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
144063
145737
  monteur_id: string;
144064
145738
  netto_verschil_minuten: number;
144065
145739
  normaal_uitbetaald_minuten: number;
145740
+ omgezet_vakantie_minuten: number;
145741
+ overdracht_vorige_minuten: number;
144066
145742
  overuren_minuten: number;
144067
145743
  plus_minuten: number;
145744
+ rest_overuren_minuten: number;
144068
145745
  status: string;
144069
145746
  totaal_uitbetaald_minuten: number;
144070
145747
  updated_at: string;
145748
+ vakantie_uren_bijgeschreven: number;
144071
145749
  };
144072
145750
  Insert: {
144073
145751
  afgesloten_at?: string | null;
@@ -144084,11 +145762,15 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
144084
145762
  monteur_id: string;
144085
145763
  netto_verschil_minuten?: number;
144086
145764
  normaal_uitbetaald_minuten?: number;
145765
+ omgezet_vakantie_minuten?: number;
145766
+ overdracht_vorige_minuten?: number;
144087
145767
  overuren_minuten?: number;
144088
145768
  plus_minuten?: number;
145769
+ rest_overuren_minuten?: number;
144089
145770
  status?: string;
144090
145771
  totaal_uitbetaald_minuten?: number;
144091
145772
  updated_at?: string;
145773
+ vakantie_uren_bijgeschreven?: number;
144092
145774
  };
144093
145775
  Update: {
144094
145776
  afgesloten_at?: string | null;
@@ -144105,11 +145787,15 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
144105
145787
  monteur_id?: string;
144106
145788
  netto_verschil_minuten?: number;
144107
145789
  normaal_uitbetaald_minuten?: number;
145790
+ omgezet_vakantie_minuten?: number;
145791
+ overdracht_vorige_minuten?: number;
144108
145792
  overuren_minuten?: number;
144109
145793
  plus_minuten?: number;
145794
+ rest_overuren_minuten?: number;
144110
145795
  status?: string;
144111
145796
  totaal_uitbetaald_minuten?: number;
144112
145797
  updated_at?: string;
145798
+ vakantie_uren_bijgeschreven?: number;
144113
145799
  };
144114
145800
  Relationships: [];
144115
145801
  };
@@ -148598,13 +150284,69 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
148598
150284
  };
148599
150285
  Returns: import("../integrations/supabase/types").Json;
148600
150286
  };
150287
+ inkoop_get_supplier_request: {
150288
+ Args: {
150289
+ _token: string;
150290
+ };
150291
+ Returns: import("../integrations/supabase/types").Json;
150292
+ };
150293
+ inkoop_hash_token: {
150294
+ Args: {
150295
+ _token: string;
150296
+ };
150297
+ Returns: string;
150298
+ };
150299
+ inkoop_html_escape: {
150300
+ Args: {
150301
+ _t: string;
150302
+ };
150303
+ Returns: string;
150304
+ };
150305
+ inkoop_list_artikelen: {
150306
+ Args: never;
150307
+ Returns: {
150308
+ article_number: string;
150309
+ barcode: string;
150310
+ id: string;
150311
+ incoming_quantity: number;
150312
+ is_layer: boolean;
150313
+ location: string;
150314
+ min_quantity: number;
150315
+ preferred_supplier_name: string;
150316
+ product: string;
150317
+ product_type: string;
150318
+ purchase_price: number;
150319
+ quantity: number;
150320
+ sale_price: number;
150321
+ supplier_count: number;
150322
+ unit: string;
150323
+ }[];
150324
+ };
148601
150325
  inkoop_next_order_number: {
148602
150326
  Args: never;
148603
150327
  Returns: string;
148604
150328
  };
150329
+ inkoop_process_request: {
150330
+ Args: {
150331
+ _request_id: string;
150332
+ };
150333
+ Returns: undefined;
150334
+ };
148605
150335
  inkoop_send_order: {
148606
150336
  Args: {
150337
+ _base_url?: string;
150338
+ _order_id: string;
150339
+ };
150340
+ Returns: {
150341
+ outbox_id: string;
150342
+ supplier_name: string;
150343
+ to_address: string;
150344
+ }[];
150345
+ } | {
150346
+ Args: {
150347
+ _base_url?: string;
148607
150348
  _order_id: string;
150349
+ _resend?: boolean;
148608
150350
  };
148609
150351
  Returns: {
148610
150352
  outbox_id: string;
@@ -148612,6 +150354,33 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
148612
150354
  to_address: string;
148613
150355
  }[];
148614
150356
  };
150357
+ inkoop_set_preferred_supplier: {
150358
+ Args: {
150359
+ _product_id: string;
150360
+ _supplier_id: string;
150361
+ };
150362
+ Returns: undefined;
150363
+ };
150364
+ inkoop_stock_key: {
150365
+ Args: {
150366
+ p_product_id: string;
150367
+ };
150368
+ Returns: string;
150369
+ };
150370
+ inkoop_submit_supplier_response: {
150371
+ Args: {
150372
+ _lines: import("../integrations/supabase/types").Json;
150373
+ _note?: string;
150374
+ _token: string;
150375
+ };
150376
+ Returns: import("../integrations/supabase/types").Json;
150377
+ };
150378
+ inkoop_sync_item_stock: {
150379
+ Args: {
150380
+ p_item_id: string;
150381
+ };
150382
+ Returns: undefined;
150383
+ };
148615
150384
  instructie_get: {
148616
150385
  Args: {
148617
150386
  _sleutel: string;
@@ -149883,6 +151652,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
149883
151652
  Args: never;
149884
151653
  Returns: string;
149885
151654
  };
151655
+ logistics_order_backlog_info: {
151656
+ Args: {
151657
+ p_order_id: string;
151658
+ };
151659
+ Returns: import("../integrations/supabase/types").Json;
151660
+ };
149886
151661
  logistics_order_cart_approval: {
149887
151662
  Args: {
149888
151663
  _order_ref: string;
@@ -149973,6 +151748,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
149973
151748
  };
149974
151749
  Returns: boolean;
149975
151750
  };
151751
+ logistics_order_is_backlog: {
151752
+ Args: {
151753
+ p_order_id: string;
151754
+ };
151755
+ Returns: boolean;
151756
+ };
149976
151757
  logistics_order_is_topick: {
149977
151758
  Args: {
149978
151759
  p_order_id: string;
@@ -150114,6 +151895,10 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
150114
151895
  shifted_count: number;
150115
151896
  }[];
150116
151897
  };
151898
+ logistics_pick_backlog_max_days: {
151899
+ Args: never;
151900
+ Returns: number;
151901
+ };
150117
151902
  logistics_pick_barcode_enabled: {
150118
151903
  Args: never;
150119
151904
  Returns: boolean;
@@ -150729,12 +152514,27 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
150729
152514
  Args: never;
150730
152515
  Returns: import("../integrations/supabase/types").Json;
150731
152516
  };
152517
+ logistics_sync_pick_queue_backlog: {
152518
+ Args: never;
152519
+ Returns: import("../integrations/supabase/types").Json;
152520
+ };
152521
+ logistics_sync_pick_queue_core: {
152522
+ Args: never;
152523
+ Returns: import("../integrations/supabase/types").Json;
152524
+ };
150732
152525
  logistics_sync_task_carriers: {
150733
152526
  Args: {
150734
152527
  p_order_ref?: string;
150735
152528
  };
150736
152529
  Returns: number;
150737
152530
  };
152531
+ logistics_task_open_counts: {
152532
+ Args: never;
152533
+ Returns: {
152534
+ open_count: number;
152535
+ owner_module: string;
152536
+ }[];
152537
+ };
150738
152538
  logistics_task_owner: {
150739
152539
  Args: {
150740
152540
  p_task_type: string;
@@ -161740,6 +163540,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161740
163540
  postal_code: string;
161741
163541
  primary_color: string;
161742
163542
  secondary_color: string;
163543
+ show_company_name: boolean;
161743
163544
  singleton_key: boolean;
161744
163545
  updated_at: string;
161745
163546
  vat_identification_number: string;
@@ -161760,6 +163561,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161760
163561
  postal_code?: string;
161761
163562
  primary_color?: string;
161762
163563
  secondary_color?: string;
163564
+ show_company_name?: boolean;
161763
163565
  singleton_key?: boolean;
161764
163566
  updated_at?: string;
161765
163567
  vat_identification_number?: string;
@@ -161780,6 +163582,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161780
163582
  postal_code?: string;
161781
163583
  primary_color?: string;
161782
163584
  secondary_color?: string;
163585
+ show_company_name?: boolean;
161783
163586
  singleton_key?: boolean;
161784
163587
  updated_at?: string;
161785
163588
  vat_identification_number?: string;
@@ -168152,6 +169955,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
168152
169955
  next_attempt_at: string;
168153
169956
  order_id: string;
168154
169957
  processed_at: string | null;
169958
+ send_error: string | null;
168155
169959
  status: string;
168156
169960
  updated_at: string;
168157
169961
  };
@@ -168165,6 +169969,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
168165
169969
  next_attempt_at?: string;
168166
169970
  order_id: string;
168167
169971
  processed_at?: string | null;
169972
+ send_error?: string | null;
168168
169973
  status?: string;
168169
169974
  updated_at?: string;
168170
169975
  };
@@ -168178,6 +169983,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
168178
169983
  next_attempt_at?: string;
168179
169984
  order_id?: string;
168180
169985
  processed_at?: string | null;
169986
+ send_error?: string | null;
168181
169987
  status?: string;
168182
169988
  updated_at?: string;
168183
169989
  };
@@ -171207,6 +173013,66 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
171207
173013
  };
171208
173014
  Relationships: [];
171209
173015
  };
173016
+ product_suppliers: {
173017
+ Row: {
173018
+ created_at: string;
173019
+ id: string;
173020
+ is_preferred: boolean;
173021
+ lead_time_days: number | null;
173022
+ min_order_quantity: number | null;
173023
+ notes: string | null;
173024
+ product_id: string;
173025
+ purchase_price_cents: number | null;
173026
+ supplier_article_number: string | null;
173027
+ supplier_id: string;
173028
+ updated_at: string;
173029
+ };
173030
+ Insert: {
173031
+ created_at?: string;
173032
+ id?: string;
173033
+ is_preferred?: boolean;
173034
+ lead_time_days?: number | null;
173035
+ min_order_quantity?: number | null;
173036
+ notes?: string | null;
173037
+ product_id: string;
173038
+ purchase_price_cents?: number | null;
173039
+ supplier_article_number?: string | null;
173040
+ supplier_id: string;
173041
+ updated_at?: string;
173042
+ };
173043
+ Update: {
173044
+ created_at?: string;
173045
+ id?: string;
173046
+ is_preferred?: boolean;
173047
+ lead_time_days?: number | null;
173048
+ min_order_quantity?: number | null;
173049
+ notes?: string | null;
173050
+ product_id?: string;
173051
+ purchase_price_cents?: number | null;
173052
+ supplier_article_number?: string | null;
173053
+ supplier_id?: string;
173054
+ updated_at?: string;
173055
+ };
173056
+ Relationships: [{
173057
+ foreignKeyName: "product_suppliers_product_id_fkey";
173058
+ columns: ["product_id"];
173059
+ isOneToOne: false;
173060
+ referencedRelation: "logistics_product_dimensions";
173061
+ referencedColumns: ["product_id"];
173062
+ }, {
173063
+ foreignKeyName: "product_suppliers_product_id_fkey";
173064
+ columns: ["product_id"];
173065
+ isOneToOne: false;
173066
+ referencedRelation: "products";
173067
+ referencedColumns: ["id"];
173068
+ }, {
173069
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
173070
+ columns: ["supplier_id"];
173071
+ isOneToOne: false;
173072
+ referencedRelation: "suppliers";
173073
+ referencedColumns: ["id"];
173074
+ }];
173075
+ };
171210
173076
  product_tray_stickers: {
171211
173077
  Row: {
171212
173078
  bestand_url: string;
@@ -171711,9 +173577,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
171711
173577
  purchase_order_items: {
171712
173578
  Row: {
171713
173579
  article_number: string | null;
173580
+ cancelled_at: string | null;
171714
173581
  created_at: string;
171715
173582
  delivery_date: string | null;
171716
173583
  id: string;
173584
+ incoming_booked: number;
173585
+ line_status: string;
171717
173586
  name: string;
171718
173587
  note: string | null;
171719
173588
  pot_size: string | null;
@@ -171721,6 +173590,8 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
171721
173590
  product_type: string;
171722
173591
  purchase_order_id: string;
171723
173592
  quantity: number;
173593
+ received_at: string | null;
173594
+ received_booked: number;
171724
173595
  supplier_id: string | null;
171725
173596
  supplier_product_id: string | null;
171726
173597
  unit_price_cents: number;
@@ -171728,9 +173599,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
171728
173599
  };
171729
173600
  Insert: {
171730
173601
  article_number?: string | null;
173602
+ cancelled_at?: string | null;
171731
173603
  created_at?: string;
171732
173604
  delivery_date?: string | null;
171733
173605
  id?: string;
173606
+ incoming_booked?: number;
173607
+ line_status?: string;
171734
173608
  name?: string;
171735
173609
  note?: string | null;
171736
173610
  pot_size?: string | null;
@@ -171738,6 +173612,8 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
171738
173612
  product_type?: string;
171739
173613
  purchase_order_id: string;
171740
173614
  quantity?: number;
173615
+ received_at?: string | null;
173616
+ received_booked?: number;
171741
173617
  supplier_id?: string | null;
171742
173618
  supplier_product_id?: string | null;
171743
173619
  unit_price_cents?: number;
@@ -171745,9 +173621,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
171745
173621
  };
171746
173622
  Update: {
171747
173623
  article_number?: string | null;
173624
+ cancelled_at?: string | null;
171748
173625
  created_at?: string;
171749
173626
  delivery_date?: string | null;
171750
173627
  id?: string;
173628
+ incoming_booked?: number;
173629
+ line_status?: string;
171751
173630
  name?: string;
171752
173631
  note?: string | null;
171753
173632
  pot_size?: string | null;
@@ -171755,6 +173634,8 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
171755
173634
  product_type?: string;
171756
173635
  purchase_order_id?: string;
171757
173636
  quantity?: number;
173637
+ received_at?: string | null;
173638
+ received_booked?: number;
171758
173639
  supplier_id?: string | null;
171759
173640
  supplier_product_id?: string | null;
171760
173641
  unit_price_cents?: number;
@@ -171858,6 +173739,153 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
171858
173739
  referencedColumns: ["id"];
171859
173740
  }];
171860
173741
  };
173742
+ purchase_request_events: {
173743
+ Row: {
173744
+ created_at: string;
173745
+ details: import("../integrations/supabase/types").Json | null;
173746
+ event_type: string;
173747
+ id: string;
173748
+ request_id: string;
173749
+ };
173750
+ Insert: {
173751
+ created_at?: string;
173752
+ details?: import("../integrations/supabase/types").Json | null;
173753
+ event_type: string;
173754
+ id?: string;
173755
+ request_id: string;
173756
+ };
173757
+ Update: {
173758
+ created_at?: string;
173759
+ details?: import("../integrations/supabase/types").Json | null;
173760
+ event_type?: string;
173761
+ id?: string;
173762
+ request_id?: string;
173763
+ };
173764
+ Relationships: [{
173765
+ foreignKeyName: "purchase_request_events_request_id_fkey";
173766
+ columns: ["request_id"];
173767
+ isOneToOne: false;
173768
+ referencedRelation: "purchase_requests";
173769
+ referencedColumns: ["id"];
173770
+ }];
173771
+ };
173772
+ purchase_request_responses: {
173773
+ Row: {
173774
+ confirmed_date: string | null;
173775
+ confirmed_price_cents: number | null;
173776
+ confirmed_quantity: number;
173777
+ created_at: string;
173778
+ id: string;
173779
+ not_available: boolean;
173780
+ note: string | null;
173781
+ purchase_order_item_id: string;
173782
+ request_id: string;
173783
+ updated_at: string;
173784
+ };
173785
+ Insert: {
173786
+ confirmed_date?: string | null;
173787
+ confirmed_price_cents?: number | null;
173788
+ confirmed_quantity?: number;
173789
+ created_at?: string;
173790
+ id?: string;
173791
+ not_available?: boolean;
173792
+ note?: string | null;
173793
+ purchase_order_item_id: string;
173794
+ request_id: string;
173795
+ updated_at?: string;
173796
+ };
173797
+ Update: {
173798
+ confirmed_date?: string | null;
173799
+ confirmed_price_cents?: number | null;
173800
+ confirmed_quantity?: number;
173801
+ created_at?: string;
173802
+ id?: string;
173803
+ not_available?: boolean;
173804
+ note?: string | null;
173805
+ purchase_order_item_id?: string;
173806
+ request_id?: string;
173807
+ updated_at?: string;
173808
+ };
173809
+ Relationships: [{
173810
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
173811
+ columns: ["purchase_order_item_id"];
173812
+ isOneToOne: false;
173813
+ referencedRelation: "purchase_order_items";
173814
+ referencedColumns: ["id"];
173815
+ }, {
173816
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
173817
+ columns: ["request_id"];
173818
+ isOneToOne: false;
173819
+ referencedRelation: "purchase_requests";
173820
+ referencedColumns: ["id"];
173821
+ }];
173822
+ };
173823
+ purchase_requests: {
173824
+ Row: {
173825
+ created_at: string;
173826
+ expires_at: string;
173827
+ first_viewed_at: string | null;
173828
+ id: string;
173829
+ processed_at: string | null;
173830
+ purchase_order_id: string;
173831
+ responded_at: string | null;
173832
+ sent_at: string;
173833
+ status: string;
173834
+ supplier_id: string | null;
173835
+ supplier_name: string;
173836
+ supplier_note: string | null;
173837
+ to_address: string | null;
173838
+ token_hash: string;
173839
+ updated_at: string;
173840
+ };
173841
+ Insert: {
173842
+ created_at?: string;
173843
+ expires_at?: string;
173844
+ first_viewed_at?: string | null;
173845
+ id?: string;
173846
+ processed_at?: string | null;
173847
+ purchase_order_id: string;
173848
+ responded_at?: string | null;
173849
+ sent_at?: string;
173850
+ status?: string;
173851
+ supplier_id?: string | null;
173852
+ supplier_name?: string;
173853
+ supplier_note?: string | null;
173854
+ to_address?: string | null;
173855
+ token_hash: string;
173856
+ updated_at?: string;
173857
+ };
173858
+ Update: {
173859
+ created_at?: string;
173860
+ expires_at?: string;
173861
+ first_viewed_at?: string | null;
173862
+ id?: string;
173863
+ processed_at?: string | null;
173864
+ purchase_order_id?: string;
173865
+ responded_at?: string | null;
173866
+ sent_at?: string;
173867
+ status?: string;
173868
+ supplier_id?: string | null;
173869
+ supplier_name?: string;
173870
+ supplier_note?: string | null;
173871
+ to_address?: string | null;
173872
+ token_hash?: string;
173873
+ updated_at?: string;
173874
+ };
173875
+ Relationships: [{
173876
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
173877
+ columns: ["purchase_order_id"];
173878
+ isOneToOne: false;
173879
+ referencedRelation: "purchase_orders";
173880
+ referencedColumns: ["id"];
173881
+ }, {
173882
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
173883
+ columns: ["supplier_id"];
173884
+ isOneToOne: false;
173885
+ referencedRelation: "suppliers";
173886
+ referencedColumns: ["id"];
173887
+ }];
173888
+ };
171861
173889
  reception_notifications: {
171862
173890
  Row: {
171863
173891
  booking_id: string | null;
@@ -174021,6 +176049,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
174021
176049
  auto_invoice_enabled: boolean;
174022
176050
  auto_invoice_start_date: string | null;
174023
176051
  auto_invoice_trigger_statuses: string[];
176052
+ auto_send_mode: string | null;
174024
176053
  created_at: string;
174025
176054
  debtor_gl_account: string;
174026
176055
  default_article_code: string | null;
@@ -174049,6 +176078,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
174049
176078
  auto_invoice_enabled?: boolean;
174050
176079
  auto_invoice_start_date?: string | null;
174051
176080
  auto_invoice_trigger_statuses?: string[];
176081
+ auto_send_mode?: string | null;
174052
176082
  created_at?: string;
174053
176083
  debtor_gl_account?: string;
174054
176084
  default_article_code?: string | null;
@@ -174077,6 +176107,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
174077
176107
  auto_invoice_enabled?: boolean;
174078
176108
  auto_invoice_start_date?: string | null;
174079
176109
  auto_invoice_trigger_statuses?: string[];
176110
+ auto_send_mode?: string | null;
174080
176111
  created_at?: string;
174081
176112
  debtor_gl_account?: string;
174082
176113
  default_article_code?: string | null;
@@ -174520,16 +176551,19 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
174520
176551
  Row: {
174521
176552
  active_environment: string;
174522
176553
  id: number;
176554
+ public_base_url: string | null;
174523
176555
  updated_at: string;
174524
176556
  };
174525
176557
  Insert: {
174526
176558
  active_environment?: string;
174527
176559
  id?: number;
176560
+ public_base_url?: string | null;
174528
176561
  updated_at?: string;
174529
176562
  };
174530
176563
  Update: {
174531
176564
  active_environment?: string;
174532
176565
  id?: number;
176566
+ public_base_url?: string | null;
174533
176567
  updated_at?: string;
174534
176568
  };
174535
176569
  Relationships: [];
@@ -174760,11 +176794,15 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
174760
176794
  monteur_id: string;
174761
176795
  netto_verschil_minuten: number;
174762
176796
  normaal_uitbetaald_minuten: number;
176797
+ omgezet_vakantie_minuten: number;
176798
+ overdracht_vorige_minuten: number;
174763
176799
  overuren_minuten: number;
174764
176800
  plus_minuten: number;
176801
+ rest_overuren_minuten: number;
174765
176802
  status: string;
174766
176803
  totaal_uitbetaald_minuten: number;
174767
176804
  updated_at: string;
176805
+ vakantie_uren_bijgeschreven: number;
174768
176806
  };
174769
176807
  Insert: {
174770
176808
  afgesloten_at?: string | null;
@@ -174781,11 +176819,15 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
174781
176819
  monteur_id: string;
174782
176820
  netto_verschil_minuten?: number;
174783
176821
  normaal_uitbetaald_minuten?: number;
176822
+ omgezet_vakantie_minuten?: number;
176823
+ overdracht_vorige_minuten?: number;
174784
176824
  overuren_minuten?: number;
174785
176825
  plus_minuten?: number;
176826
+ rest_overuren_minuten?: number;
174786
176827
  status?: string;
174787
176828
  totaal_uitbetaald_minuten?: number;
174788
176829
  updated_at?: string;
176830
+ vakantie_uren_bijgeschreven?: number;
174789
176831
  };
174790
176832
  Update: {
174791
176833
  afgesloten_at?: string | null;
@@ -174802,11 +176844,15 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
174802
176844
  monteur_id?: string;
174803
176845
  netto_verschil_minuten?: number;
174804
176846
  normaal_uitbetaald_minuten?: number;
176847
+ omgezet_vakantie_minuten?: number;
176848
+ overdracht_vorige_minuten?: number;
174805
176849
  overuren_minuten?: number;
174806
176850
  plus_minuten?: number;
176851
+ rest_overuren_minuten?: number;
174807
176852
  status?: string;
174808
176853
  totaal_uitbetaald_minuten?: number;
174809
176854
  updated_at?: string;
176855
+ vakantie_uren_bijgeschreven?: number;
174810
176856
  };
174811
176857
  Relationships: [];
174812
176858
  };
@@ -179295,13 +181341,69 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
179295
181341
  };
179296
181342
  Returns: import("../integrations/supabase/types").Json;
179297
181343
  };
181344
+ inkoop_get_supplier_request: {
181345
+ Args: {
181346
+ _token: string;
181347
+ };
181348
+ Returns: import("../integrations/supabase/types").Json;
181349
+ };
181350
+ inkoop_hash_token: {
181351
+ Args: {
181352
+ _token: string;
181353
+ };
181354
+ Returns: string;
181355
+ };
181356
+ inkoop_html_escape: {
181357
+ Args: {
181358
+ _t: string;
181359
+ };
181360
+ Returns: string;
181361
+ };
181362
+ inkoop_list_artikelen: {
181363
+ Args: never;
181364
+ Returns: {
181365
+ article_number: string;
181366
+ barcode: string;
181367
+ id: string;
181368
+ incoming_quantity: number;
181369
+ is_layer: boolean;
181370
+ location: string;
181371
+ min_quantity: number;
181372
+ preferred_supplier_name: string;
181373
+ product: string;
181374
+ product_type: string;
181375
+ purchase_price: number;
181376
+ quantity: number;
181377
+ sale_price: number;
181378
+ supplier_count: number;
181379
+ unit: string;
181380
+ }[];
181381
+ };
179298
181382
  inkoop_next_order_number: {
179299
181383
  Args: never;
179300
181384
  Returns: string;
179301
181385
  };
181386
+ inkoop_process_request: {
181387
+ Args: {
181388
+ _request_id: string;
181389
+ };
181390
+ Returns: undefined;
181391
+ };
179302
181392
  inkoop_send_order: {
179303
181393
  Args: {
181394
+ _base_url?: string;
181395
+ _order_id: string;
181396
+ };
181397
+ Returns: {
181398
+ outbox_id: string;
181399
+ supplier_name: string;
181400
+ to_address: string;
181401
+ }[];
181402
+ } | {
181403
+ Args: {
181404
+ _base_url?: string;
179304
181405
  _order_id: string;
181406
+ _resend?: boolean;
179305
181407
  };
179306
181408
  Returns: {
179307
181409
  outbox_id: string;
@@ -179309,6 +181411,33 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
179309
181411
  to_address: string;
179310
181412
  }[];
179311
181413
  };
181414
+ inkoop_set_preferred_supplier: {
181415
+ Args: {
181416
+ _product_id: string;
181417
+ _supplier_id: string;
181418
+ };
181419
+ Returns: undefined;
181420
+ };
181421
+ inkoop_stock_key: {
181422
+ Args: {
181423
+ p_product_id: string;
181424
+ };
181425
+ Returns: string;
181426
+ };
181427
+ inkoop_submit_supplier_response: {
181428
+ Args: {
181429
+ _lines: import("../integrations/supabase/types").Json;
181430
+ _note?: string;
181431
+ _token: string;
181432
+ };
181433
+ Returns: import("../integrations/supabase/types").Json;
181434
+ };
181435
+ inkoop_sync_item_stock: {
181436
+ Args: {
181437
+ p_item_id: string;
181438
+ };
181439
+ Returns: undefined;
181440
+ };
179312
181441
  instructie_get: {
179313
181442
  Args: {
179314
181443
  _sleutel: string;
@@ -180580,6 +182709,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
180580
182709
  Args: never;
180581
182710
  Returns: string;
180582
182711
  };
182712
+ logistics_order_backlog_info: {
182713
+ Args: {
182714
+ p_order_id: string;
182715
+ };
182716
+ Returns: import("../integrations/supabase/types").Json;
182717
+ };
180583
182718
  logistics_order_cart_approval: {
180584
182719
  Args: {
180585
182720
  _order_ref: string;
@@ -180670,6 +182805,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
180670
182805
  };
180671
182806
  Returns: boolean;
180672
182807
  };
182808
+ logistics_order_is_backlog: {
182809
+ Args: {
182810
+ p_order_id: string;
182811
+ };
182812
+ Returns: boolean;
182813
+ };
180673
182814
  logistics_order_is_topick: {
180674
182815
  Args: {
180675
182816
  p_order_id: string;
@@ -180811,6 +182952,10 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
180811
182952
  shifted_count: number;
180812
182953
  }[];
180813
182954
  };
182955
+ logistics_pick_backlog_max_days: {
182956
+ Args: never;
182957
+ Returns: number;
182958
+ };
180814
182959
  logistics_pick_barcode_enabled: {
180815
182960
  Args: never;
180816
182961
  Returns: boolean;
@@ -181426,12 +183571,27 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
181426
183571
  Args: never;
181427
183572
  Returns: import("../integrations/supabase/types").Json;
181428
183573
  };
183574
+ logistics_sync_pick_queue_backlog: {
183575
+ Args: never;
183576
+ Returns: import("../integrations/supabase/types").Json;
183577
+ };
183578
+ logistics_sync_pick_queue_core: {
183579
+ Args: never;
183580
+ Returns: import("../integrations/supabase/types").Json;
183581
+ };
181429
183582
  logistics_sync_task_carriers: {
181430
183583
  Args: {
181431
183584
  p_order_ref?: string;
181432
183585
  };
181433
183586
  Returns: number;
181434
183587
  };
183588
+ logistics_task_open_counts: {
183589
+ Args: never;
183590
+ Returns: {
183591
+ open_count: number;
183592
+ owner_module: string;
183593
+ }[];
183594
+ };
181435
183595
  logistics_task_owner: {
181436
183596
  Args: {
181437
183597
  p_task_type: string;