@flowselections/floriday-klanten-module 1.0.20 → 1.0.21

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 (48) hide show
  1. package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.d.ts +3 -1
  2. package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.d.ts.map +1 -1
  3. package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.js +4 -4
  4. package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.d.ts +2 -0
  5. package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.d.ts.map +1 -0
  6. package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.js +5 -0
  7. package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.d.ts +2 -0
  8. package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.d.ts.map +1 -0
  9. package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.js +12 -0
  10. package/dist-lib/index.d.ts +2 -0
  11. package/dist-lib/index.d.ts.map +1 -1
  12. package/dist-lib/index.js +2 -0
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts +227 -1
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.d.ts +227 -1
  16. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +227 -1
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +234 -2
  20. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.js +8 -1
  22. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +681 -3
  23. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/accounting.functions.d.ts +681 -3
  25. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/customer-analytics.functions.d.ts +227 -1
  27. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/customers.functions.d.ts +2043 -9
  29. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/delivery-locations.functions.d.ts +908 -4
  31. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/external-customers.functions.d.ts +908 -4
  33. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-assortment.functions.d.ts +227 -1
  35. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-discounts.functions.d.ts +454 -2
  37. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-trade-items.functions.d.ts +227 -1
  39. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/local-discounts.functions.d.ts +1589 -7
  41. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/overdue-invoices.functions.d.ts +227 -1
  43. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/price-groups-local.functions.d.ts +1589 -7
  45. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/price-groups.functions.d.ts +227 -1
  47. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  48. package/package.json +7 -7
@@ -8367,6 +8367,66 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
8367
8367
  referencedColumns: ["id"];
8368
8368
  }];
8369
8369
  };
8370
+ product_bom_items: {
8371
+ Row: {
8372
+ component_product_id: string | null;
8373
+ component_trade_item_floriday_id: string | null;
8374
+ created_at: string;
8375
+ id: string;
8376
+ notes: string | null;
8377
+ packing_configuration_id: string | null;
8378
+ parent_product_id: string | null;
8379
+ parent_trade_item_floriday_id: string | null;
8380
+ quantity: number;
8381
+ sort_order: number;
8382
+ tenant_id: string;
8383
+ unit: string;
8384
+ updated_at: string;
8385
+ };
8386
+ Insert: {
8387
+ component_product_id?: string | null;
8388
+ component_trade_item_floriday_id?: string | null;
8389
+ created_at?: string;
8390
+ id?: string;
8391
+ notes?: string | null;
8392
+ packing_configuration_id?: string | null;
8393
+ parent_product_id?: string | null;
8394
+ parent_trade_item_floriday_id?: string | null;
8395
+ quantity?: number;
8396
+ sort_order?: number;
8397
+ tenant_id: string;
8398
+ unit?: string;
8399
+ updated_at?: string;
8400
+ };
8401
+ Update: {
8402
+ component_product_id?: string | null;
8403
+ component_trade_item_floriday_id?: string | null;
8404
+ created_at?: string;
8405
+ id?: string;
8406
+ notes?: string | null;
8407
+ packing_configuration_id?: string | null;
8408
+ parent_product_id?: string | null;
8409
+ parent_trade_item_floriday_id?: string | null;
8410
+ quantity?: number;
8411
+ sort_order?: number;
8412
+ tenant_id?: string;
8413
+ unit?: string;
8414
+ updated_at?: string;
8415
+ };
8416
+ Relationships: [{
8417
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8418
+ columns: ["component_product_id"];
8419
+ isOneToOne: false;
8420
+ referencedRelation: "products";
8421
+ referencedColumns: ["id"];
8422
+ }, {
8423
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8424
+ columns: ["parent_product_id"];
8425
+ isOneToOne: false;
8426
+ referencedRelation: "products";
8427
+ referencedColumns: ["id"];
8428
+ }];
8429
+ };
8370
8430
  product_categories: {
8371
8431
  Row: {
8372
8432
  color: string;
@@ -8472,6 +8532,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
8472
8532
  id: string;
8473
8533
  product_group_id: string;
8474
8534
  quantity: number;
8535
+ sort_order: number;
8475
8536
  trade_item_id: string;
8476
8537
  };
8477
8538
  Insert: {
@@ -8479,6 +8540,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
8479
8540
  id?: string;
8480
8541
  product_group_id: string;
8481
8542
  quantity?: number;
8543
+ sort_order?: number;
8482
8544
  trade_item_id: string;
8483
8545
  };
8484
8546
  Update: {
@@ -8486,6 +8548,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
8486
8548
  id?: string;
8487
8549
  product_group_id?: string;
8488
8550
  quantity?: number;
8551
+ sort_order?: number;
8489
8552
  trade_item_id?: string;
8490
8553
  };
8491
8554
  Relationships: [{
@@ -8538,16 +8601,85 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
8538
8601
  referencedColumns: ["id"];
8539
8602
  }];
8540
8603
  };
8604
+ product_load_settings: {
8605
+ Row: {
8606
+ created_at: string;
8607
+ id: string;
8608
+ is_package: boolean;
8609
+ label: string | null;
8610
+ layers_per_load_carrier: number | null;
8611
+ load_carrier: string | null;
8612
+ package_id: string | null;
8613
+ package_label: string | null;
8614
+ packages_per_layer: number | null;
8615
+ packing_configuration_id: string;
8616
+ product_id: string | null;
8617
+ tenant_id: string;
8618
+ trade_item_floriday_id: string | null;
8619
+ units_per_package: number | null;
8620
+ updated_at: string;
8621
+ };
8622
+ Insert: {
8623
+ created_at?: string;
8624
+ id?: string;
8625
+ is_package?: boolean;
8626
+ label?: string | null;
8627
+ layers_per_load_carrier?: number | null;
8628
+ load_carrier?: string | null;
8629
+ package_id?: string | null;
8630
+ package_label?: string | null;
8631
+ packages_per_layer?: number | null;
8632
+ packing_configuration_id?: string;
8633
+ product_id?: string | null;
8634
+ tenant_id: string;
8635
+ trade_item_floriday_id?: string | null;
8636
+ units_per_package?: number | null;
8637
+ updated_at?: string;
8638
+ };
8639
+ Update: {
8640
+ created_at?: string;
8641
+ id?: string;
8642
+ is_package?: boolean;
8643
+ label?: string | null;
8644
+ layers_per_load_carrier?: number | null;
8645
+ load_carrier?: string | null;
8646
+ package_id?: string | null;
8647
+ package_label?: string | null;
8648
+ packages_per_layer?: number | null;
8649
+ packing_configuration_id?: string;
8650
+ product_id?: string | null;
8651
+ tenant_id?: string;
8652
+ trade_item_floriday_id?: string | null;
8653
+ units_per_package?: number | null;
8654
+ updated_at?: string;
8655
+ };
8656
+ Relationships: [{
8657
+ foreignKeyName: "product_load_settings_package_id_fkey";
8658
+ columns: ["package_id"];
8659
+ isOneToOne: false;
8660
+ referencedRelation: "packages";
8661
+ referencedColumns: ["id"];
8662
+ }, {
8663
+ foreignKeyName: "product_load_settings_product_id_fkey";
8664
+ columns: ["product_id"];
8665
+ isOneToOne: false;
8666
+ referencedRelation: "products";
8667
+ referencedColumns: ["id"];
8668
+ }];
8669
+ };
8541
8670
  products: {
8542
8671
  Row: {
8672
+ article_number: string | null;
8543
8673
  barcode: string | null;
8544
8674
  batch: string;
8545
8675
  crates_per_layer: number;
8546
8676
  created_at: string;
8547
8677
  custom_fields: import("../integrations/supabase/types").Json;
8678
+ floriday_trade_item_id: string | null;
8548
8679
  id: string;
8549
8680
  image_url: string | null;
8550
8681
  incoming_quantity: number;
8682
+ is_layer: boolean;
8551
8683
  layers_per_cart: number;
8552
8684
  location: string;
8553
8685
  min_quantity: number;
@@ -8563,14 +8695,17 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
8563
8695
  weight: string | null;
8564
8696
  };
8565
8697
  Insert: {
8698
+ article_number?: string | null;
8566
8699
  barcode?: string | null;
8567
8700
  batch: string;
8568
8701
  crates_per_layer?: number;
8569
8702
  created_at?: string;
8570
8703
  custom_fields?: import("../integrations/supabase/types").Json;
8704
+ floriday_trade_item_id?: string | null;
8571
8705
  id?: string;
8572
8706
  image_url?: string | null;
8573
8707
  incoming_quantity?: number;
8708
+ is_layer?: boolean;
8574
8709
  layers_per_cart?: number;
8575
8710
  location: string;
8576
8711
  min_quantity?: number;
@@ -8586,14 +8721,17 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
8586
8721
  weight?: string | null;
8587
8722
  };
8588
8723
  Update: {
8724
+ article_number?: string | null;
8589
8725
  barcode?: string | null;
8590
8726
  batch?: string;
8591
8727
  crates_per_layer?: number;
8592
8728
  created_at?: string;
8593
8729
  custom_fields?: import("../integrations/supabase/types").Json;
8730
+ floriday_trade_item_id?: string | null;
8594
8731
  id?: string;
8595
8732
  image_url?: string | null;
8596
8733
  incoming_quantity?: number;
8734
+ is_layer?: boolean;
8597
8735
  layers_per_cart?: number;
8598
8736
  location?: string;
8599
8737
  min_quantity?: number;
@@ -8613,6 +8751,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
8613
8751
  profiles: {
8614
8752
  Row: {
8615
8753
  address: string | null;
8754
+ avatar_url: string | null;
8616
8755
  created_at: string;
8617
8756
  display_name: string | null;
8618
8757
  email: string | null;
@@ -8624,6 +8763,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
8624
8763
  };
8625
8764
  Insert: {
8626
8765
  address?: string | null;
8766
+ avatar_url?: string | null;
8627
8767
  created_at?: string;
8628
8768
  display_name?: string | null;
8629
8769
  email?: string | null;
@@ -8635,6 +8775,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
8635
8775
  };
8636
8776
  Update: {
8637
8777
  address?: string | null;
8778
+ avatar_url?: string | null;
8638
8779
  created_at?: string;
8639
8780
  display_name?: string | null;
8640
8781
  email?: string | null;
@@ -9501,6 +9642,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
9501
9642
  order_source: string | null;
9502
9643
  physical_after: number | null;
9503
9644
  physical_before: number | null;
9645
+ production_batch_id: string | null;
9504
9646
  qty_delta: number;
9505
9647
  reason: string | null;
9506
9648
  reserved_after: number | null;
@@ -9518,6 +9660,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
9518
9660
  order_source?: string | null;
9519
9661
  physical_after?: number | null;
9520
9662
  physical_before?: number | null;
9663
+ production_batch_id?: string | null;
9521
9664
  qty_delta: number;
9522
9665
  reason?: string | null;
9523
9666
  reserved_after?: number | null;
@@ -9535,6 +9678,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
9535
9678
  order_source?: string | null;
9536
9679
  physical_after?: number | null;
9537
9680
  physical_before?: number | null;
9681
+ production_batch_id?: string | null;
9538
9682
  qty_delta?: number;
9539
9683
  reason?: string | null;
9540
9684
  reserved_after?: number | null;
@@ -11963,6 +12107,12 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
11963
12107
  processed_items: number;
11964
12108
  }[];
11965
12109
  };
12110
+ calculate_layer_stock: {
12111
+ Args: {
12112
+ p_product_id: string;
12113
+ };
12114
+ Returns: number;
12115
+ };
11966
12116
  call_exact_route: {
11967
12117
  Args: {
11968
12118
  path: string;
@@ -12022,6 +12172,28 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
12022
12172
  Args: never;
12023
12173
  Returns: undefined;
12024
12174
  };
12175
+ consume_bom_for_production: {
12176
+ Args: {
12177
+ p_connection_id: string;
12178
+ p_parent_id: string;
12179
+ p_parent_key: string;
12180
+ p_parent_kind: string;
12181
+ p_quantity: number;
12182
+ p_user_id: string;
12183
+ };
12184
+ Returns: import("../integrations/supabase/types").Json;
12185
+ } | {
12186
+ Args: {
12187
+ p_batch_id?: string;
12188
+ p_connection_id: string;
12189
+ p_parent_id: string;
12190
+ p_parent_key: string;
12191
+ p_parent_kind: string;
12192
+ p_quantity: number;
12193
+ p_user_id: string;
12194
+ };
12195
+ Returns: import("../integrations/supabase/types").Json;
12196
+ };
12025
12197
  consume_floriday_rate_limit: {
12026
12198
  Args: {
12027
12199
  p_bucket: string;
@@ -12079,6 +12251,13 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
12079
12251
  table_name: string;
12080
12252
  }[];
12081
12253
  };
12254
+ delete_samenstelling: {
12255
+ Args: {
12256
+ p_parent_id: string;
12257
+ p_parent_kind: string;
12258
+ };
12259
+ Returns: import("../integrations/supabase/types").Json;
12260
+ };
12082
12261
  dispatch_carrier_signups_sql: {
12083
12262
  Args: {
12084
12263
  _catchup?: string;
@@ -12334,6 +12513,12 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
12334
12513
  minutes_since_success: number;
12335
12514
  }[];
12336
12515
  };
12516
+ get_inventory_stock_for_key: {
12517
+ Args: {
12518
+ p_key: string;
12519
+ };
12520
+ Returns: number;
12521
+ };
12337
12522
  get_offer_by_link_code: {
12338
12523
  Args: {
12339
12524
  p_code: string;
@@ -12364,6 +12549,12 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
12364
12549
  };
12365
12550
  Returns: string;
12366
12551
  };
12552
+ get_product_group_available_stock: {
12553
+ Args: {
12554
+ p_group_id: string;
12555
+ };
12556
+ Returns: number;
12557
+ };
12367
12558
  get_room_busy_windows: {
12368
12559
  Args: {
12369
12560
  p_from: string;
@@ -12437,6 +12628,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
12437
12628
  list_monteurs: {
12438
12629
  Args: never;
12439
12630
  Returns: {
12631
+ avatar_url: string;
12440
12632
  display_name: string;
12441
12633
  email: string;
12442
12634
  id: string;
@@ -12574,6 +12766,14 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
12574
12766
  };
12575
12767
  Returns: undefined;
12576
12768
  };
12769
+ produce_designed_product: {
12770
+ Args: {
12771
+ p_parent_id: string;
12772
+ p_parent_kind: string;
12773
+ p_quantity: number;
12774
+ };
12775
+ Returns: import("../integrations/supabase/types").Json;
12776
+ };
12577
12777
  promote_trade_item_key: {
12578
12778
  Args: {
12579
12779
  p_new: string;
@@ -12648,6 +12848,16 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
12648
12848
  };
12649
12849
  Returns: number;
12650
12850
  };
12851
+ reverse_production: {
12852
+ Args: {
12853
+ p_connection_id?: string;
12854
+ p_parent_key: string;
12855
+ p_quantity: number;
12856
+ p_reason?: string;
12857
+ p_user_id?: string;
12858
+ };
12859
+ Returns: import("../integrations/supabase/types").Json;
12860
+ };
12651
12861
  schedule_floriday_additional_services_sync: {
12652
12862
  Args: {
12653
12863
  p_apikey: string;
@@ -12932,18 +13142,34 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
12932
13142
  };
12933
13143
  Returns: string[];
12934
13144
  };
13145
+ sync_all_layer_stocks: {
13146
+ Args: never;
13147
+ Returns: undefined;
13148
+ };
12935
13149
  sync_cached_packing_from_product: {
12936
13150
  Args: {
12937
13151
  p_product_id: string;
12938
13152
  };
12939
13153
  Returns: undefined;
12940
13154
  };
13155
+ sync_layer_stock: {
13156
+ Args: {
13157
+ p_product_id: string;
13158
+ };
13159
+ Returns: undefined;
13160
+ };
12941
13161
  sync_order_cart_item_packing_from_product: {
12942
13162
  Args: {
12943
13163
  p_product_id: string;
12944
13164
  };
12945
13165
  Returns: undefined;
12946
13166
  };
13167
+ sync_product_group_belading: {
13168
+ Args: {
13169
+ _group_id: string;
13170
+ };
13171
+ Returns: undefined;
13172
+ };
12947
13173
  sync_product_packing_from_floriday_cache: {
12948
13174
  Args: {
12949
13175
  p_floriday_id: string;
@@ -12980,7 +13206,7 @@ export declare const precheckTwinfieldPush: import("@tanstack/start-client-core"
12980
13206
  exact_push_status: "pending" | "sent" | "error";
12981
13207
  itk_customer_segment: "Business" | "Private";
12982
13208
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
12983
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
13209
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
12984
13210
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
12985
13211
  };
12986
13212
  CompositeTypes: { [_ in never]: never; };
@@ -21358,6 +21584,66 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
21358
21584
  referencedColumns: ["id"];
21359
21585
  }];
21360
21586
  };
21587
+ product_bom_items: {
21588
+ Row: {
21589
+ component_product_id: string | null;
21590
+ component_trade_item_floriday_id: string | null;
21591
+ created_at: string;
21592
+ id: string;
21593
+ notes: string | null;
21594
+ packing_configuration_id: string | null;
21595
+ parent_product_id: string | null;
21596
+ parent_trade_item_floriday_id: string | null;
21597
+ quantity: number;
21598
+ sort_order: number;
21599
+ tenant_id: string;
21600
+ unit: string;
21601
+ updated_at: string;
21602
+ };
21603
+ Insert: {
21604
+ component_product_id?: string | null;
21605
+ component_trade_item_floriday_id?: string | null;
21606
+ created_at?: string;
21607
+ id?: string;
21608
+ notes?: string | null;
21609
+ packing_configuration_id?: string | null;
21610
+ parent_product_id?: string | null;
21611
+ parent_trade_item_floriday_id?: string | null;
21612
+ quantity?: number;
21613
+ sort_order?: number;
21614
+ tenant_id: string;
21615
+ unit?: string;
21616
+ updated_at?: string;
21617
+ };
21618
+ Update: {
21619
+ component_product_id?: string | null;
21620
+ component_trade_item_floriday_id?: string | null;
21621
+ created_at?: string;
21622
+ id?: string;
21623
+ notes?: string | null;
21624
+ packing_configuration_id?: string | null;
21625
+ parent_product_id?: string | null;
21626
+ parent_trade_item_floriday_id?: string | null;
21627
+ quantity?: number;
21628
+ sort_order?: number;
21629
+ tenant_id?: string;
21630
+ unit?: string;
21631
+ updated_at?: string;
21632
+ };
21633
+ Relationships: [{
21634
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
21635
+ columns: ["component_product_id"];
21636
+ isOneToOne: false;
21637
+ referencedRelation: "products";
21638
+ referencedColumns: ["id"];
21639
+ }, {
21640
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
21641
+ columns: ["parent_product_id"];
21642
+ isOneToOne: false;
21643
+ referencedRelation: "products";
21644
+ referencedColumns: ["id"];
21645
+ }];
21646
+ };
21361
21647
  product_categories: {
21362
21648
  Row: {
21363
21649
  color: string;
@@ -21463,6 +21749,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
21463
21749
  id: string;
21464
21750
  product_group_id: string;
21465
21751
  quantity: number;
21752
+ sort_order: number;
21466
21753
  trade_item_id: string;
21467
21754
  };
21468
21755
  Insert: {
@@ -21470,6 +21757,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
21470
21757
  id?: string;
21471
21758
  product_group_id: string;
21472
21759
  quantity?: number;
21760
+ sort_order?: number;
21473
21761
  trade_item_id: string;
21474
21762
  };
21475
21763
  Update: {
@@ -21477,6 +21765,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
21477
21765
  id?: string;
21478
21766
  product_group_id?: string;
21479
21767
  quantity?: number;
21768
+ sort_order?: number;
21480
21769
  trade_item_id?: string;
21481
21770
  };
21482
21771
  Relationships: [{
@@ -21529,16 +21818,85 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
21529
21818
  referencedColumns: ["id"];
21530
21819
  }];
21531
21820
  };
21821
+ product_load_settings: {
21822
+ Row: {
21823
+ created_at: string;
21824
+ id: string;
21825
+ is_package: boolean;
21826
+ label: string | null;
21827
+ layers_per_load_carrier: number | null;
21828
+ load_carrier: string | null;
21829
+ package_id: string | null;
21830
+ package_label: string | null;
21831
+ packages_per_layer: number | null;
21832
+ packing_configuration_id: string;
21833
+ product_id: string | null;
21834
+ tenant_id: string;
21835
+ trade_item_floriday_id: string | null;
21836
+ units_per_package: number | null;
21837
+ updated_at: string;
21838
+ };
21839
+ Insert: {
21840
+ created_at?: string;
21841
+ id?: string;
21842
+ is_package?: boolean;
21843
+ label?: string | null;
21844
+ layers_per_load_carrier?: number | null;
21845
+ load_carrier?: string | null;
21846
+ package_id?: string | null;
21847
+ package_label?: string | null;
21848
+ packages_per_layer?: number | null;
21849
+ packing_configuration_id?: string;
21850
+ product_id?: string | null;
21851
+ tenant_id: string;
21852
+ trade_item_floriday_id?: string | null;
21853
+ units_per_package?: number | null;
21854
+ updated_at?: string;
21855
+ };
21856
+ Update: {
21857
+ created_at?: string;
21858
+ id?: string;
21859
+ is_package?: boolean;
21860
+ label?: string | null;
21861
+ layers_per_load_carrier?: number | null;
21862
+ load_carrier?: string | null;
21863
+ package_id?: string | null;
21864
+ package_label?: string | null;
21865
+ packages_per_layer?: number | null;
21866
+ packing_configuration_id?: string;
21867
+ product_id?: string | null;
21868
+ tenant_id?: string;
21869
+ trade_item_floriday_id?: string | null;
21870
+ units_per_package?: number | null;
21871
+ updated_at?: string;
21872
+ };
21873
+ Relationships: [{
21874
+ foreignKeyName: "product_load_settings_package_id_fkey";
21875
+ columns: ["package_id"];
21876
+ isOneToOne: false;
21877
+ referencedRelation: "packages";
21878
+ referencedColumns: ["id"];
21879
+ }, {
21880
+ foreignKeyName: "product_load_settings_product_id_fkey";
21881
+ columns: ["product_id"];
21882
+ isOneToOne: false;
21883
+ referencedRelation: "products";
21884
+ referencedColumns: ["id"];
21885
+ }];
21886
+ };
21532
21887
  products: {
21533
21888
  Row: {
21889
+ article_number: string | null;
21534
21890
  barcode: string | null;
21535
21891
  batch: string;
21536
21892
  crates_per_layer: number;
21537
21893
  created_at: string;
21538
21894
  custom_fields: import("../integrations/supabase/types").Json;
21895
+ floriday_trade_item_id: string | null;
21539
21896
  id: string;
21540
21897
  image_url: string | null;
21541
21898
  incoming_quantity: number;
21899
+ is_layer: boolean;
21542
21900
  layers_per_cart: number;
21543
21901
  location: string;
21544
21902
  min_quantity: number;
@@ -21554,14 +21912,17 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
21554
21912
  weight: string | null;
21555
21913
  };
21556
21914
  Insert: {
21915
+ article_number?: string | null;
21557
21916
  barcode?: string | null;
21558
21917
  batch: string;
21559
21918
  crates_per_layer?: number;
21560
21919
  created_at?: string;
21561
21920
  custom_fields?: import("../integrations/supabase/types").Json;
21921
+ floriday_trade_item_id?: string | null;
21562
21922
  id?: string;
21563
21923
  image_url?: string | null;
21564
21924
  incoming_quantity?: number;
21925
+ is_layer?: boolean;
21565
21926
  layers_per_cart?: number;
21566
21927
  location: string;
21567
21928
  min_quantity?: number;
@@ -21577,14 +21938,17 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
21577
21938
  weight?: string | null;
21578
21939
  };
21579
21940
  Update: {
21941
+ article_number?: string | null;
21580
21942
  barcode?: string | null;
21581
21943
  batch?: string;
21582
21944
  crates_per_layer?: number;
21583
21945
  created_at?: string;
21584
21946
  custom_fields?: import("../integrations/supabase/types").Json;
21947
+ floriday_trade_item_id?: string | null;
21585
21948
  id?: string;
21586
21949
  image_url?: string | null;
21587
21950
  incoming_quantity?: number;
21951
+ is_layer?: boolean;
21588
21952
  layers_per_cart?: number;
21589
21953
  location?: string;
21590
21954
  min_quantity?: number;
@@ -21604,6 +21968,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
21604
21968
  profiles: {
21605
21969
  Row: {
21606
21970
  address: string | null;
21971
+ avatar_url: string | null;
21607
21972
  created_at: string;
21608
21973
  display_name: string | null;
21609
21974
  email: string | null;
@@ -21615,6 +21980,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
21615
21980
  };
21616
21981
  Insert: {
21617
21982
  address?: string | null;
21983
+ avatar_url?: string | null;
21618
21984
  created_at?: string;
21619
21985
  display_name?: string | null;
21620
21986
  email?: string | null;
@@ -21626,6 +21992,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
21626
21992
  };
21627
21993
  Update: {
21628
21994
  address?: string | null;
21995
+ avatar_url?: string | null;
21629
21996
  created_at?: string;
21630
21997
  display_name?: string | null;
21631
21998
  email?: string | null;
@@ -22492,6 +22859,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
22492
22859
  order_source: string | null;
22493
22860
  physical_after: number | null;
22494
22861
  physical_before: number | null;
22862
+ production_batch_id: string | null;
22495
22863
  qty_delta: number;
22496
22864
  reason: string | null;
22497
22865
  reserved_after: number | null;
@@ -22509,6 +22877,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
22509
22877
  order_source?: string | null;
22510
22878
  physical_after?: number | null;
22511
22879
  physical_before?: number | null;
22880
+ production_batch_id?: string | null;
22512
22881
  qty_delta: number;
22513
22882
  reason?: string | null;
22514
22883
  reserved_after?: number | null;
@@ -22526,6 +22895,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
22526
22895
  order_source?: string | null;
22527
22896
  physical_after?: number | null;
22528
22897
  physical_before?: number | null;
22898
+ production_batch_id?: string | null;
22529
22899
  qty_delta?: number;
22530
22900
  reason?: string | null;
22531
22901
  reserved_after?: number | null;
@@ -24954,6 +25324,12 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
24954
25324
  processed_items: number;
24955
25325
  }[];
24956
25326
  };
25327
+ calculate_layer_stock: {
25328
+ Args: {
25329
+ p_product_id: string;
25330
+ };
25331
+ Returns: number;
25332
+ };
24957
25333
  call_exact_route: {
24958
25334
  Args: {
24959
25335
  path: string;
@@ -25013,6 +25389,28 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
25013
25389
  Args: never;
25014
25390
  Returns: undefined;
25015
25391
  };
25392
+ consume_bom_for_production: {
25393
+ Args: {
25394
+ p_connection_id: string;
25395
+ p_parent_id: string;
25396
+ p_parent_key: string;
25397
+ p_parent_kind: string;
25398
+ p_quantity: number;
25399
+ p_user_id: string;
25400
+ };
25401
+ Returns: import("../integrations/supabase/types").Json;
25402
+ } | {
25403
+ Args: {
25404
+ p_batch_id?: string;
25405
+ p_connection_id: string;
25406
+ p_parent_id: string;
25407
+ p_parent_key: string;
25408
+ p_parent_kind: string;
25409
+ p_quantity: number;
25410
+ p_user_id: string;
25411
+ };
25412
+ Returns: import("../integrations/supabase/types").Json;
25413
+ };
25016
25414
  consume_floriday_rate_limit: {
25017
25415
  Args: {
25018
25416
  p_bucket: string;
@@ -25070,6 +25468,13 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
25070
25468
  table_name: string;
25071
25469
  }[];
25072
25470
  };
25471
+ delete_samenstelling: {
25472
+ Args: {
25473
+ p_parent_id: string;
25474
+ p_parent_kind: string;
25475
+ };
25476
+ Returns: import("../integrations/supabase/types").Json;
25477
+ };
25073
25478
  dispatch_carrier_signups_sql: {
25074
25479
  Args: {
25075
25480
  _catchup?: string;
@@ -25325,6 +25730,12 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
25325
25730
  minutes_since_success: number;
25326
25731
  }[];
25327
25732
  };
25733
+ get_inventory_stock_for_key: {
25734
+ Args: {
25735
+ p_key: string;
25736
+ };
25737
+ Returns: number;
25738
+ };
25328
25739
  get_offer_by_link_code: {
25329
25740
  Args: {
25330
25741
  p_code: string;
@@ -25355,6 +25766,12 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
25355
25766
  };
25356
25767
  Returns: string;
25357
25768
  };
25769
+ get_product_group_available_stock: {
25770
+ Args: {
25771
+ p_group_id: string;
25772
+ };
25773
+ Returns: number;
25774
+ };
25358
25775
  get_room_busy_windows: {
25359
25776
  Args: {
25360
25777
  p_from: string;
@@ -25428,6 +25845,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
25428
25845
  list_monteurs: {
25429
25846
  Args: never;
25430
25847
  Returns: {
25848
+ avatar_url: string;
25431
25849
  display_name: string;
25432
25850
  email: string;
25433
25851
  id: string;
@@ -25565,6 +25983,14 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
25565
25983
  };
25566
25984
  Returns: undefined;
25567
25985
  };
25986
+ produce_designed_product: {
25987
+ Args: {
25988
+ p_parent_id: string;
25989
+ p_parent_kind: string;
25990
+ p_quantity: number;
25991
+ };
25992
+ Returns: import("../integrations/supabase/types").Json;
25993
+ };
25568
25994
  promote_trade_item_key: {
25569
25995
  Args: {
25570
25996
  p_new: string;
@@ -25639,6 +26065,16 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
25639
26065
  };
25640
26066
  Returns: number;
25641
26067
  };
26068
+ reverse_production: {
26069
+ Args: {
26070
+ p_connection_id?: string;
26071
+ p_parent_key: string;
26072
+ p_quantity: number;
26073
+ p_reason?: string;
26074
+ p_user_id?: string;
26075
+ };
26076
+ Returns: import("../integrations/supabase/types").Json;
26077
+ };
25642
26078
  schedule_floriday_additional_services_sync: {
25643
26079
  Args: {
25644
26080
  p_apikey: string;
@@ -25923,18 +26359,34 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
25923
26359
  };
25924
26360
  Returns: string[];
25925
26361
  };
26362
+ sync_all_layer_stocks: {
26363
+ Args: never;
26364
+ Returns: undefined;
26365
+ };
25926
26366
  sync_cached_packing_from_product: {
25927
26367
  Args: {
25928
26368
  p_product_id: string;
25929
26369
  };
25930
26370
  Returns: undefined;
25931
26371
  };
26372
+ sync_layer_stock: {
26373
+ Args: {
26374
+ p_product_id: string;
26375
+ };
26376
+ Returns: undefined;
26377
+ };
25932
26378
  sync_order_cart_item_packing_from_product: {
25933
26379
  Args: {
25934
26380
  p_product_id: string;
25935
26381
  };
25936
26382
  Returns: undefined;
25937
26383
  };
26384
+ sync_product_group_belading: {
26385
+ Args: {
26386
+ _group_id: string;
26387
+ };
26388
+ Returns: undefined;
26389
+ };
25938
26390
  sync_product_packing_from_floriday_cache: {
25939
26391
  Args: {
25940
26392
  p_floriday_id: string;
@@ -25971,7 +26423,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
25971
26423
  exact_push_status: "pending" | "sent" | "error";
25972
26424
  itk_customer_segment: "Business" | "Private";
25973
26425
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
25974
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
26426
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
25975
26427
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
25976
26428
  };
25977
26429
  CompositeTypes: { [_ in never]: never; };
@@ -34347,6 +34799,66 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
34347
34799
  referencedColumns: ["id"];
34348
34800
  }];
34349
34801
  };
34802
+ product_bom_items: {
34803
+ Row: {
34804
+ component_product_id: string | null;
34805
+ component_trade_item_floriday_id: string | null;
34806
+ created_at: string;
34807
+ id: string;
34808
+ notes: string | null;
34809
+ packing_configuration_id: string | null;
34810
+ parent_product_id: string | null;
34811
+ parent_trade_item_floriday_id: string | null;
34812
+ quantity: number;
34813
+ sort_order: number;
34814
+ tenant_id: string;
34815
+ unit: string;
34816
+ updated_at: string;
34817
+ };
34818
+ Insert: {
34819
+ component_product_id?: string | null;
34820
+ component_trade_item_floriday_id?: string | null;
34821
+ created_at?: string;
34822
+ id?: string;
34823
+ notes?: string | null;
34824
+ packing_configuration_id?: string | null;
34825
+ parent_product_id?: string | null;
34826
+ parent_trade_item_floriday_id?: string | null;
34827
+ quantity?: number;
34828
+ sort_order?: number;
34829
+ tenant_id: string;
34830
+ unit?: string;
34831
+ updated_at?: string;
34832
+ };
34833
+ Update: {
34834
+ component_product_id?: string | null;
34835
+ component_trade_item_floriday_id?: string | null;
34836
+ created_at?: string;
34837
+ id?: string;
34838
+ notes?: string | null;
34839
+ packing_configuration_id?: string | null;
34840
+ parent_product_id?: string | null;
34841
+ parent_trade_item_floriday_id?: string | null;
34842
+ quantity?: number;
34843
+ sort_order?: number;
34844
+ tenant_id?: string;
34845
+ unit?: string;
34846
+ updated_at?: string;
34847
+ };
34848
+ Relationships: [{
34849
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
34850
+ columns: ["component_product_id"];
34851
+ isOneToOne: false;
34852
+ referencedRelation: "products";
34853
+ referencedColumns: ["id"];
34854
+ }, {
34855
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
34856
+ columns: ["parent_product_id"];
34857
+ isOneToOne: false;
34858
+ referencedRelation: "products";
34859
+ referencedColumns: ["id"];
34860
+ }];
34861
+ };
34350
34862
  product_categories: {
34351
34863
  Row: {
34352
34864
  color: string;
@@ -34452,6 +34964,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
34452
34964
  id: string;
34453
34965
  product_group_id: string;
34454
34966
  quantity: number;
34967
+ sort_order: number;
34455
34968
  trade_item_id: string;
34456
34969
  };
34457
34970
  Insert: {
@@ -34459,6 +34972,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
34459
34972
  id?: string;
34460
34973
  product_group_id: string;
34461
34974
  quantity?: number;
34975
+ sort_order?: number;
34462
34976
  trade_item_id: string;
34463
34977
  };
34464
34978
  Update: {
@@ -34466,6 +34980,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
34466
34980
  id?: string;
34467
34981
  product_group_id?: string;
34468
34982
  quantity?: number;
34983
+ sort_order?: number;
34469
34984
  trade_item_id?: string;
34470
34985
  };
34471
34986
  Relationships: [{
@@ -34518,16 +35033,85 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
34518
35033
  referencedColumns: ["id"];
34519
35034
  }];
34520
35035
  };
35036
+ product_load_settings: {
35037
+ Row: {
35038
+ created_at: string;
35039
+ id: string;
35040
+ is_package: boolean;
35041
+ label: string | null;
35042
+ layers_per_load_carrier: number | null;
35043
+ load_carrier: string | null;
35044
+ package_id: string | null;
35045
+ package_label: string | null;
35046
+ packages_per_layer: number | null;
35047
+ packing_configuration_id: string;
35048
+ product_id: string | null;
35049
+ tenant_id: string;
35050
+ trade_item_floriday_id: string | null;
35051
+ units_per_package: number | null;
35052
+ updated_at: string;
35053
+ };
35054
+ Insert: {
35055
+ created_at?: string;
35056
+ id?: string;
35057
+ is_package?: boolean;
35058
+ label?: string | null;
35059
+ layers_per_load_carrier?: number | null;
35060
+ load_carrier?: string | null;
35061
+ package_id?: string | null;
35062
+ package_label?: string | null;
35063
+ packages_per_layer?: number | null;
35064
+ packing_configuration_id?: string;
35065
+ product_id?: string | null;
35066
+ tenant_id: string;
35067
+ trade_item_floriday_id?: string | null;
35068
+ units_per_package?: number | null;
35069
+ updated_at?: string;
35070
+ };
35071
+ Update: {
35072
+ created_at?: string;
35073
+ id?: string;
35074
+ is_package?: boolean;
35075
+ label?: string | null;
35076
+ layers_per_load_carrier?: number | null;
35077
+ load_carrier?: string | null;
35078
+ package_id?: string | null;
35079
+ package_label?: string | null;
35080
+ packages_per_layer?: number | null;
35081
+ packing_configuration_id?: string;
35082
+ product_id?: string | null;
35083
+ tenant_id?: string;
35084
+ trade_item_floriday_id?: string | null;
35085
+ units_per_package?: number | null;
35086
+ updated_at?: string;
35087
+ };
35088
+ Relationships: [{
35089
+ foreignKeyName: "product_load_settings_package_id_fkey";
35090
+ columns: ["package_id"];
35091
+ isOneToOne: false;
35092
+ referencedRelation: "packages";
35093
+ referencedColumns: ["id"];
35094
+ }, {
35095
+ foreignKeyName: "product_load_settings_product_id_fkey";
35096
+ columns: ["product_id"];
35097
+ isOneToOne: false;
35098
+ referencedRelation: "products";
35099
+ referencedColumns: ["id"];
35100
+ }];
35101
+ };
34521
35102
  products: {
34522
35103
  Row: {
35104
+ article_number: string | null;
34523
35105
  barcode: string | null;
34524
35106
  batch: string;
34525
35107
  crates_per_layer: number;
34526
35108
  created_at: string;
34527
35109
  custom_fields: import("../integrations/supabase/types").Json;
35110
+ floriday_trade_item_id: string | null;
34528
35111
  id: string;
34529
35112
  image_url: string | null;
34530
35113
  incoming_quantity: number;
35114
+ is_layer: boolean;
34531
35115
  layers_per_cart: number;
34532
35116
  location: string;
34533
35117
  min_quantity: number;
@@ -34543,14 +35127,17 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
34543
35127
  weight: string | null;
34544
35128
  };
34545
35129
  Insert: {
35130
+ article_number?: string | null;
34546
35131
  barcode?: string | null;
34547
35132
  batch: string;
34548
35133
  crates_per_layer?: number;
34549
35134
  created_at?: string;
34550
35135
  custom_fields?: import("../integrations/supabase/types").Json;
35136
+ floriday_trade_item_id?: string | null;
34551
35137
  id?: string;
34552
35138
  image_url?: string | null;
34553
35139
  incoming_quantity?: number;
35140
+ is_layer?: boolean;
34554
35141
  layers_per_cart?: number;
34555
35142
  location: string;
34556
35143
  min_quantity?: number;
@@ -34566,14 +35153,17 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
34566
35153
  weight?: string | null;
34567
35154
  };
34568
35155
  Update: {
35156
+ article_number?: string | null;
34569
35157
  barcode?: string | null;
34570
35158
  batch?: string;
34571
35159
  crates_per_layer?: number;
34572
35160
  created_at?: string;
34573
35161
  custom_fields?: import("../integrations/supabase/types").Json;
35162
+ floriday_trade_item_id?: string | null;
34574
35163
  id?: string;
34575
35164
  image_url?: string | null;
34576
35165
  incoming_quantity?: number;
35166
+ is_layer?: boolean;
34577
35167
  layers_per_cart?: number;
34578
35168
  location?: string;
34579
35169
  min_quantity?: number;
@@ -34593,6 +35183,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
34593
35183
  profiles: {
34594
35184
  Row: {
34595
35185
  address: string | null;
35186
+ avatar_url: string | null;
34596
35187
  created_at: string;
34597
35188
  display_name: string | null;
34598
35189
  email: string | null;
@@ -34604,6 +35195,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
34604
35195
  };
34605
35196
  Insert: {
34606
35197
  address?: string | null;
35198
+ avatar_url?: string | null;
34607
35199
  created_at?: string;
34608
35200
  display_name?: string | null;
34609
35201
  email?: string | null;
@@ -34615,6 +35207,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
34615
35207
  };
34616
35208
  Update: {
34617
35209
  address?: string | null;
35210
+ avatar_url?: string | null;
34618
35211
  created_at?: string;
34619
35212
  display_name?: string | null;
34620
35213
  email?: string | null;
@@ -35481,6 +36074,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
35481
36074
  order_source: string | null;
35482
36075
  physical_after: number | null;
35483
36076
  physical_before: number | null;
36077
+ production_batch_id: string | null;
35484
36078
  qty_delta: number;
35485
36079
  reason: string | null;
35486
36080
  reserved_after: number | null;
@@ -35498,6 +36092,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
35498
36092
  order_source?: string | null;
35499
36093
  physical_after?: number | null;
35500
36094
  physical_before?: number | null;
36095
+ production_batch_id?: string | null;
35501
36096
  qty_delta: number;
35502
36097
  reason?: string | null;
35503
36098
  reserved_after?: number | null;
@@ -35515,6 +36110,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
35515
36110
  order_source?: string | null;
35516
36111
  physical_after?: number | null;
35517
36112
  physical_before?: number | null;
36113
+ production_batch_id?: string | null;
35518
36114
  qty_delta?: number;
35519
36115
  reason?: string | null;
35520
36116
  reserved_after?: number | null;
@@ -37943,6 +38539,12 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
37943
38539
  processed_items: number;
37944
38540
  }[];
37945
38541
  };
38542
+ calculate_layer_stock: {
38543
+ Args: {
38544
+ p_product_id: string;
38545
+ };
38546
+ Returns: number;
38547
+ };
37946
38548
  call_exact_route: {
37947
38549
  Args: {
37948
38550
  path: string;
@@ -38002,6 +38604,28 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
38002
38604
  Args: never;
38003
38605
  Returns: undefined;
38004
38606
  };
38607
+ consume_bom_for_production: {
38608
+ Args: {
38609
+ p_connection_id: string;
38610
+ p_parent_id: string;
38611
+ p_parent_key: string;
38612
+ p_parent_kind: string;
38613
+ p_quantity: number;
38614
+ p_user_id: string;
38615
+ };
38616
+ Returns: import("../integrations/supabase/types").Json;
38617
+ } | {
38618
+ Args: {
38619
+ p_batch_id?: string;
38620
+ p_connection_id: string;
38621
+ p_parent_id: string;
38622
+ p_parent_key: string;
38623
+ p_parent_kind: string;
38624
+ p_quantity: number;
38625
+ p_user_id: string;
38626
+ };
38627
+ Returns: import("../integrations/supabase/types").Json;
38628
+ };
38005
38629
  consume_floriday_rate_limit: {
38006
38630
  Args: {
38007
38631
  p_bucket: string;
@@ -38059,6 +38683,13 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
38059
38683
  table_name: string;
38060
38684
  }[];
38061
38685
  };
38686
+ delete_samenstelling: {
38687
+ Args: {
38688
+ p_parent_id: string;
38689
+ p_parent_kind: string;
38690
+ };
38691
+ Returns: import("../integrations/supabase/types").Json;
38692
+ };
38062
38693
  dispatch_carrier_signups_sql: {
38063
38694
  Args: {
38064
38695
  _catchup?: string;
@@ -38314,6 +38945,12 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
38314
38945
  minutes_since_success: number;
38315
38946
  }[];
38316
38947
  };
38948
+ get_inventory_stock_for_key: {
38949
+ Args: {
38950
+ p_key: string;
38951
+ };
38952
+ Returns: number;
38953
+ };
38317
38954
  get_offer_by_link_code: {
38318
38955
  Args: {
38319
38956
  p_code: string;
@@ -38344,6 +38981,12 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
38344
38981
  };
38345
38982
  Returns: string;
38346
38983
  };
38984
+ get_product_group_available_stock: {
38985
+ Args: {
38986
+ p_group_id: string;
38987
+ };
38988
+ Returns: number;
38989
+ };
38347
38990
  get_room_busy_windows: {
38348
38991
  Args: {
38349
38992
  p_from: string;
@@ -38417,6 +39060,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
38417
39060
  list_monteurs: {
38418
39061
  Args: never;
38419
39062
  Returns: {
39063
+ avatar_url: string;
38420
39064
  display_name: string;
38421
39065
  email: string;
38422
39066
  id: string;
@@ -38554,6 +39198,14 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
38554
39198
  };
38555
39199
  Returns: undefined;
38556
39200
  };
39201
+ produce_designed_product: {
39202
+ Args: {
39203
+ p_parent_id: string;
39204
+ p_parent_kind: string;
39205
+ p_quantity: number;
39206
+ };
39207
+ Returns: import("../integrations/supabase/types").Json;
39208
+ };
38557
39209
  promote_trade_item_key: {
38558
39210
  Args: {
38559
39211
  p_new: string;
@@ -38628,6 +39280,16 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
38628
39280
  };
38629
39281
  Returns: number;
38630
39282
  };
39283
+ reverse_production: {
39284
+ Args: {
39285
+ p_connection_id?: string;
39286
+ p_parent_key: string;
39287
+ p_quantity: number;
39288
+ p_reason?: string;
39289
+ p_user_id?: string;
39290
+ };
39291
+ Returns: import("../integrations/supabase/types").Json;
39292
+ };
38631
39293
  schedule_floriday_additional_services_sync: {
38632
39294
  Args: {
38633
39295
  p_apikey: string;
@@ -38912,18 +39574,34 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
38912
39574
  };
38913
39575
  Returns: string[];
38914
39576
  };
39577
+ sync_all_layer_stocks: {
39578
+ Args: never;
39579
+ Returns: undefined;
39580
+ };
38915
39581
  sync_cached_packing_from_product: {
38916
39582
  Args: {
38917
39583
  p_product_id: string;
38918
39584
  };
38919
39585
  Returns: undefined;
38920
39586
  };
39587
+ sync_layer_stock: {
39588
+ Args: {
39589
+ p_product_id: string;
39590
+ };
39591
+ Returns: undefined;
39592
+ };
38921
39593
  sync_order_cart_item_packing_from_product: {
38922
39594
  Args: {
38923
39595
  p_product_id: string;
38924
39596
  };
38925
39597
  Returns: undefined;
38926
39598
  };
39599
+ sync_product_group_belading: {
39600
+ Args: {
39601
+ _group_id: string;
39602
+ };
39603
+ Returns: undefined;
39604
+ };
38927
39605
  sync_product_packing_from_floriday_cache: {
38928
39606
  Args: {
38929
39607
  p_floriday_id: string;
@@ -38960,7 +39638,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
38960
39638
  exact_push_status: "pending" | "sent" | "error";
38961
39639
  itk_customer_segment: "Business" | "Private";
38962
39640
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
38963
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
39641
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
38964
39642
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
38965
39643
  };
38966
39644
  CompositeTypes: { [_ in never]: never; };
@@ -47480,6 +48158,66 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
47480
48158
  referencedColumns: ["id"];
47481
48159
  }];
47482
48160
  };
48161
+ product_bom_items: {
48162
+ Row: {
48163
+ component_product_id: string | null;
48164
+ component_trade_item_floriday_id: string | null;
48165
+ created_at: string;
48166
+ id: string;
48167
+ notes: string | null;
48168
+ packing_configuration_id: string | null;
48169
+ parent_product_id: string | null;
48170
+ parent_trade_item_floriday_id: string | null;
48171
+ quantity: number;
48172
+ sort_order: number;
48173
+ tenant_id: string;
48174
+ unit: string;
48175
+ updated_at: string;
48176
+ };
48177
+ Insert: {
48178
+ component_product_id?: string | null;
48179
+ component_trade_item_floriday_id?: string | null;
48180
+ created_at?: string;
48181
+ id?: string;
48182
+ notes?: string | null;
48183
+ packing_configuration_id?: string | null;
48184
+ parent_product_id?: string | null;
48185
+ parent_trade_item_floriday_id?: string | null;
48186
+ quantity?: number;
48187
+ sort_order?: number;
48188
+ tenant_id: string;
48189
+ unit?: string;
48190
+ updated_at?: string;
48191
+ };
48192
+ Update: {
48193
+ component_product_id?: string | null;
48194
+ component_trade_item_floriday_id?: string | null;
48195
+ created_at?: string;
48196
+ id?: string;
48197
+ notes?: string | null;
48198
+ packing_configuration_id?: string | null;
48199
+ parent_product_id?: string | null;
48200
+ parent_trade_item_floriday_id?: string | null;
48201
+ quantity?: number;
48202
+ sort_order?: number;
48203
+ tenant_id?: string;
48204
+ unit?: string;
48205
+ updated_at?: string;
48206
+ };
48207
+ Relationships: [{
48208
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
48209
+ columns: ["component_product_id"];
48210
+ isOneToOne: false;
48211
+ referencedRelation: "products";
48212
+ referencedColumns: ["id"];
48213
+ }, {
48214
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
48215
+ columns: ["parent_product_id"];
48216
+ isOneToOne: false;
48217
+ referencedRelation: "products";
48218
+ referencedColumns: ["id"];
48219
+ }];
48220
+ };
47483
48221
  product_categories: {
47484
48222
  Row: {
47485
48223
  color: string;
@@ -47585,6 +48323,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
47585
48323
  id: string;
47586
48324
  product_group_id: string;
47587
48325
  quantity: number;
48326
+ sort_order: number;
47588
48327
  trade_item_id: string;
47589
48328
  };
47590
48329
  Insert: {
@@ -47592,6 +48331,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
47592
48331
  id?: string;
47593
48332
  product_group_id: string;
47594
48333
  quantity?: number;
48334
+ sort_order?: number;
47595
48335
  trade_item_id: string;
47596
48336
  };
47597
48337
  Update: {
@@ -47599,6 +48339,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
47599
48339
  id?: string;
47600
48340
  product_group_id?: string;
47601
48341
  quantity?: number;
48342
+ sort_order?: number;
47602
48343
  trade_item_id?: string;
47603
48344
  };
47604
48345
  Relationships: [{
@@ -47651,16 +48392,85 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
47651
48392
  referencedColumns: ["id"];
47652
48393
  }];
47653
48394
  };
48395
+ product_load_settings: {
48396
+ Row: {
48397
+ created_at: string;
48398
+ id: string;
48399
+ is_package: boolean;
48400
+ label: string | null;
48401
+ layers_per_load_carrier: number | null;
48402
+ load_carrier: string | null;
48403
+ package_id: string | null;
48404
+ package_label: string | null;
48405
+ packages_per_layer: number | null;
48406
+ packing_configuration_id: string;
48407
+ product_id: string | null;
48408
+ tenant_id: string;
48409
+ trade_item_floriday_id: string | null;
48410
+ units_per_package: number | null;
48411
+ updated_at: string;
48412
+ };
48413
+ Insert: {
48414
+ created_at?: string;
48415
+ id?: string;
48416
+ is_package?: boolean;
48417
+ label?: string | null;
48418
+ layers_per_load_carrier?: number | null;
48419
+ load_carrier?: string | null;
48420
+ package_id?: string | null;
48421
+ package_label?: string | null;
48422
+ packages_per_layer?: number | null;
48423
+ packing_configuration_id?: string;
48424
+ product_id?: string | null;
48425
+ tenant_id: string;
48426
+ trade_item_floriday_id?: string | null;
48427
+ units_per_package?: number | null;
48428
+ updated_at?: string;
48429
+ };
48430
+ Update: {
48431
+ created_at?: string;
48432
+ id?: string;
48433
+ is_package?: boolean;
48434
+ label?: string | null;
48435
+ layers_per_load_carrier?: number | null;
48436
+ load_carrier?: string | null;
48437
+ package_id?: string | null;
48438
+ package_label?: string | null;
48439
+ packages_per_layer?: number | null;
48440
+ packing_configuration_id?: string;
48441
+ product_id?: string | null;
48442
+ tenant_id?: string;
48443
+ trade_item_floriday_id?: string | null;
48444
+ units_per_package?: number | null;
48445
+ updated_at?: string;
48446
+ };
48447
+ Relationships: [{
48448
+ foreignKeyName: "product_load_settings_package_id_fkey";
48449
+ columns: ["package_id"];
48450
+ isOneToOne: false;
48451
+ referencedRelation: "packages";
48452
+ referencedColumns: ["id"];
48453
+ }, {
48454
+ foreignKeyName: "product_load_settings_product_id_fkey";
48455
+ columns: ["product_id"];
48456
+ isOneToOne: false;
48457
+ referencedRelation: "products";
48458
+ referencedColumns: ["id"];
48459
+ }];
48460
+ };
47654
48461
  products: {
47655
48462
  Row: {
48463
+ article_number: string | null;
47656
48464
  barcode: string | null;
47657
48465
  batch: string;
47658
48466
  crates_per_layer: number;
47659
48467
  created_at: string;
47660
48468
  custom_fields: import("../integrations/supabase/types").Json;
48469
+ floriday_trade_item_id: string | null;
47661
48470
  id: string;
47662
48471
  image_url: string | null;
47663
48472
  incoming_quantity: number;
48473
+ is_layer: boolean;
47664
48474
  layers_per_cart: number;
47665
48475
  location: string;
47666
48476
  min_quantity: number;
@@ -47676,14 +48486,17 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
47676
48486
  weight: string | null;
47677
48487
  };
47678
48488
  Insert: {
48489
+ article_number?: string | null;
47679
48490
  barcode?: string | null;
47680
48491
  batch: string;
47681
48492
  crates_per_layer?: number;
47682
48493
  created_at?: string;
47683
48494
  custom_fields?: import("../integrations/supabase/types").Json;
48495
+ floriday_trade_item_id?: string | null;
47684
48496
  id?: string;
47685
48497
  image_url?: string | null;
47686
48498
  incoming_quantity?: number;
48499
+ is_layer?: boolean;
47687
48500
  layers_per_cart?: number;
47688
48501
  location: string;
47689
48502
  min_quantity?: number;
@@ -47699,14 +48512,17 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
47699
48512
  weight?: string | null;
47700
48513
  };
47701
48514
  Update: {
48515
+ article_number?: string | null;
47702
48516
  barcode?: string | null;
47703
48517
  batch?: string;
47704
48518
  crates_per_layer?: number;
47705
48519
  created_at?: string;
47706
48520
  custom_fields?: import("../integrations/supabase/types").Json;
48521
+ floriday_trade_item_id?: string | null;
47707
48522
  id?: string;
47708
48523
  image_url?: string | null;
47709
48524
  incoming_quantity?: number;
48525
+ is_layer?: boolean;
47710
48526
  layers_per_cart?: number;
47711
48527
  location?: string;
47712
48528
  min_quantity?: number;
@@ -47726,6 +48542,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
47726
48542
  profiles: {
47727
48543
  Row: {
47728
48544
  address: string | null;
48545
+ avatar_url: string | null;
47729
48546
  created_at: string;
47730
48547
  display_name: string | null;
47731
48548
  email: string | null;
@@ -47737,6 +48554,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
47737
48554
  };
47738
48555
  Insert: {
47739
48556
  address?: string | null;
48557
+ avatar_url?: string | null;
47740
48558
  created_at?: string;
47741
48559
  display_name?: string | null;
47742
48560
  email?: string | null;
@@ -47748,6 +48566,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
47748
48566
  };
47749
48567
  Update: {
47750
48568
  address?: string | null;
48569
+ avatar_url?: string | null;
47751
48570
  created_at?: string;
47752
48571
  display_name?: string | null;
47753
48572
  email?: string | null;
@@ -48614,6 +49433,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
48614
49433
  order_source: string | null;
48615
49434
  physical_after: number | null;
48616
49435
  physical_before: number | null;
49436
+ production_batch_id: string | null;
48617
49437
  qty_delta: number;
48618
49438
  reason: string | null;
48619
49439
  reserved_after: number | null;
@@ -48631,6 +49451,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
48631
49451
  order_source?: string | null;
48632
49452
  physical_after?: number | null;
48633
49453
  physical_before?: number | null;
49454
+ production_batch_id?: string | null;
48634
49455
  qty_delta: number;
48635
49456
  reason?: string | null;
48636
49457
  reserved_after?: number | null;
@@ -48648,6 +49469,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
48648
49469
  order_source?: string | null;
48649
49470
  physical_after?: number | null;
48650
49471
  physical_before?: number | null;
49472
+ production_batch_id?: string | null;
48651
49473
  qty_delta?: number;
48652
49474
  reason?: string | null;
48653
49475
  reserved_after?: number | null;
@@ -51076,6 +51898,12 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
51076
51898
  processed_items: number;
51077
51899
  }[];
51078
51900
  };
51901
+ calculate_layer_stock: {
51902
+ Args: {
51903
+ p_product_id: string;
51904
+ };
51905
+ Returns: number;
51906
+ };
51079
51907
  call_exact_route: {
51080
51908
  Args: {
51081
51909
  path: string;
@@ -51135,6 +51963,28 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
51135
51963
  Args: never;
51136
51964
  Returns: undefined;
51137
51965
  };
51966
+ consume_bom_for_production: {
51967
+ Args: {
51968
+ p_connection_id: string;
51969
+ p_parent_id: string;
51970
+ p_parent_key: string;
51971
+ p_parent_kind: string;
51972
+ p_quantity: number;
51973
+ p_user_id: string;
51974
+ };
51975
+ Returns: import("../integrations/supabase/types").Json;
51976
+ } | {
51977
+ Args: {
51978
+ p_batch_id?: string;
51979
+ p_connection_id: string;
51980
+ p_parent_id: string;
51981
+ p_parent_key: string;
51982
+ p_parent_kind: string;
51983
+ p_quantity: number;
51984
+ p_user_id: string;
51985
+ };
51986
+ Returns: import("../integrations/supabase/types").Json;
51987
+ };
51138
51988
  consume_floriday_rate_limit: {
51139
51989
  Args: {
51140
51990
  p_bucket: string;
@@ -51192,6 +52042,13 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
51192
52042
  table_name: string;
51193
52043
  }[];
51194
52044
  };
52045
+ delete_samenstelling: {
52046
+ Args: {
52047
+ p_parent_id: string;
52048
+ p_parent_kind: string;
52049
+ };
52050
+ Returns: import("../integrations/supabase/types").Json;
52051
+ };
51195
52052
  dispatch_carrier_signups_sql: {
51196
52053
  Args: {
51197
52054
  _catchup?: string;
@@ -51447,6 +52304,12 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
51447
52304
  minutes_since_success: number;
51448
52305
  }[];
51449
52306
  };
52307
+ get_inventory_stock_for_key: {
52308
+ Args: {
52309
+ p_key: string;
52310
+ };
52311
+ Returns: number;
52312
+ };
51450
52313
  get_offer_by_link_code: {
51451
52314
  Args: {
51452
52315
  p_code: string;
@@ -51477,6 +52340,12 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
51477
52340
  };
51478
52341
  Returns: string;
51479
52342
  };
52343
+ get_product_group_available_stock: {
52344
+ Args: {
52345
+ p_group_id: string;
52346
+ };
52347
+ Returns: number;
52348
+ };
51480
52349
  get_room_busy_windows: {
51481
52350
  Args: {
51482
52351
  p_from: string;
@@ -51550,6 +52419,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
51550
52419
  list_monteurs: {
51551
52420
  Args: never;
51552
52421
  Returns: {
52422
+ avatar_url: string;
51553
52423
  display_name: string;
51554
52424
  email: string;
51555
52425
  id: string;
@@ -51687,6 +52557,14 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
51687
52557
  };
51688
52558
  Returns: undefined;
51689
52559
  };
52560
+ produce_designed_product: {
52561
+ Args: {
52562
+ p_parent_id: string;
52563
+ p_parent_kind: string;
52564
+ p_quantity: number;
52565
+ };
52566
+ Returns: import("../integrations/supabase/types").Json;
52567
+ };
51690
52568
  promote_trade_item_key: {
51691
52569
  Args: {
51692
52570
  p_new: string;
@@ -51761,6 +52639,16 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
51761
52639
  };
51762
52640
  Returns: number;
51763
52641
  };
52642
+ reverse_production: {
52643
+ Args: {
52644
+ p_connection_id?: string;
52645
+ p_parent_key: string;
52646
+ p_quantity: number;
52647
+ p_reason?: string;
52648
+ p_user_id?: string;
52649
+ };
52650
+ Returns: import("../integrations/supabase/types").Json;
52651
+ };
51764
52652
  schedule_floriday_additional_services_sync: {
51765
52653
  Args: {
51766
52654
  p_apikey: string;
@@ -52045,18 +52933,34 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
52045
52933
  };
52046
52934
  Returns: string[];
52047
52935
  };
52936
+ sync_all_layer_stocks: {
52937
+ Args: never;
52938
+ Returns: undefined;
52939
+ };
52048
52940
  sync_cached_packing_from_product: {
52049
52941
  Args: {
52050
52942
  p_product_id: string;
52051
52943
  };
52052
52944
  Returns: undefined;
52053
52945
  };
52946
+ sync_layer_stock: {
52947
+ Args: {
52948
+ p_product_id: string;
52949
+ };
52950
+ Returns: undefined;
52951
+ };
52054
52952
  sync_order_cart_item_packing_from_product: {
52055
52953
  Args: {
52056
52954
  p_product_id: string;
52057
52955
  };
52058
52956
  Returns: undefined;
52059
52957
  };
52958
+ sync_product_group_belading: {
52959
+ Args: {
52960
+ _group_id: string;
52961
+ };
52962
+ Returns: undefined;
52963
+ };
52060
52964
  sync_product_packing_from_floriday_cache: {
52061
52965
  Args: {
52062
52966
  p_floriday_id: string;
@@ -52093,7 +52997,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
52093
52997
  exact_push_status: "pending" | "sent" | "error";
52094
52998
  itk_customer_segment: "Business" | "Private";
52095
52999
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
52096
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
53000
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
52097
53001
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
52098
53002
  };
52099
53003
  CompositeTypes: { [_ in never]: never; };
@@ -60587,6 +61491,66 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
60587
61491
  referencedColumns: ["id"];
60588
61492
  }];
60589
61493
  };
61494
+ product_bom_items: {
61495
+ Row: {
61496
+ component_product_id: string | null;
61497
+ component_trade_item_floriday_id: string | null;
61498
+ created_at: string;
61499
+ id: string;
61500
+ notes: string | null;
61501
+ packing_configuration_id: string | null;
61502
+ parent_product_id: string | null;
61503
+ parent_trade_item_floriday_id: string | null;
61504
+ quantity: number;
61505
+ sort_order: number;
61506
+ tenant_id: string;
61507
+ unit: string;
61508
+ updated_at: string;
61509
+ };
61510
+ Insert: {
61511
+ component_product_id?: string | null;
61512
+ component_trade_item_floriday_id?: string | null;
61513
+ created_at?: string;
61514
+ id?: string;
61515
+ notes?: string | null;
61516
+ packing_configuration_id?: string | null;
61517
+ parent_product_id?: string | null;
61518
+ parent_trade_item_floriday_id?: string | null;
61519
+ quantity?: number;
61520
+ sort_order?: number;
61521
+ tenant_id: string;
61522
+ unit?: string;
61523
+ updated_at?: string;
61524
+ };
61525
+ Update: {
61526
+ component_product_id?: string | null;
61527
+ component_trade_item_floriday_id?: string | null;
61528
+ created_at?: string;
61529
+ id?: string;
61530
+ notes?: string | null;
61531
+ packing_configuration_id?: string | null;
61532
+ parent_product_id?: string | null;
61533
+ parent_trade_item_floriday_id?: string | null;
61534
+ quantity?: number;
61535
+ sort_order?: number;
61536
+ tenant_id?: string;
61537
+ unit?: string;
61538
+ updated_at?: string;
61539
+ };
61540
+ Relationships: [{
61541
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
61542
+ columns: ["component_product_id"];
61543
+ isOneToOne: false;
61544
+ referencedRelation: "products";
61545
+ referencedColumns: ["id"];
61546
+ }, {
61547
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
61548
+ columns: ["parent_product_id"];
61549
+ isOneToOne: false;
61550
+ referencedRelation: "products";
61551
+ referencedColumns: ["id"];
61552
+ }];
61553
+ };
60590
61554
  product_categories: {
60591
61555
  Row: {
60592
61556
  color: string;
@@ -60692,6 +61656,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
60692
61656
  id: string;
60693
61657
  product_group_id: string;
60694
61658
  quantity: number;
61659
+ sort_order: number;
60695
61660
  trade_item_id: string;
60696
61661
  };
60697
61662
  Insert: {
@@ -60699,6 +61664,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
60699
61664
  id?: string;
60700
61665
  product_group_id: string;
60701
61666
  quantity?: number;
61667
+ sort_order?: number;
60702
61668
  trade_item_id: string;
60703
61669
  };
60704
61670
  Update: {
@@ -60706,6 +61672,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
60706
61672
  id?: string;
60707
61673
  product_group_id?: string;
60708
61674
  quantity?: number;
61675
+ sort_order?: number;
60709
61676
  trade_item_id?: string;
60710
61677
  };
60711
61678
  Relationships: [{
@@ -60758,16 +61725,85 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
60758
61725
  referencedColumns: ["id"];
60759
61726
  }];
60760
61727
  };
61728
+ product_load_settings: {
61729
+ Row: {
61730
+ created_at: string;
61731
+ id: string;
61732
+ is_package: boolean;
61733
+ label: string | null;
61734
+ layers_per_load_carrier: number | null;
61735
+ load_carrier: string | null;
61736
+ package_id: string | null;
61737
+ package_label: string | null;
61738
+ packages_per_layer: number | null;
61739
+ packing_configuration_id: string;
61740
+ product_id: string | null;
61741
+ tenant_id: string;
61742
+ trade_item_floriday_id: string | null;
61743
+ units_per_package: number | null;
61744
+ updated_at: string;
61745
+ };
61746
+ Insert: {
61747
+ created_at?: string;
61748
+ id?: string;
61749
+ is_package?: boolean;
61750
+ label?: string | null;
61751
+ layers_per_load_carrier?: number | null;
61752
+ load_carrier?: string | null;
61753
+ package_id?: string | null;
61754
+ package_label?: string | null;
61755
+ packages_per_layer?: number | null;
61756
+ packing_configuration_id?: string;
61757
+ product_id?: string | null;
61758
+ tenant_id: string;
61759
+ trade_item_floriday_id?: string | null;
61760
+ units_per_package?: number | null;
61761
+ updated_at?: string;
61762
+ };
61763
+ Update: {
61764
+ created_at?: string;
61765
+ id?: string;
61766
+ is_package?: boolean;
61767
+ label?: string | null;
61768
+ layers_per_load_carrier?: number | null;
61769
+ load_carrier?: string | null;
61770
+ package_id?: string | null;
61771
+ package_label?: string | null;
61772
+ packages_per_layer?: number | null;
61773
+ packing_configuration_id?: string;
61774
+ product_id?: string | null;
61775
+ tenant_id?: string;
61776
+ trade_item_floriday_id?: string | null;
61777
+ units_per_package?: number | null;
61778
+ updated_at?: string;
61779
+ };
61780
+ Relationships: [{
61781
+ foreignKeyName: "product_load_settings_package_id_fkey";
61782
+ columns: ["package_id"];
61783
+ isOneToOne: false;
61784
+ referencedRelation: "packages";
61785
+ referencedColumns: ["id"];
61786
+ }, {
61787
+ foreignKeyName: "product_load_settings_product_id_fkey";
61788
+ columns: ["product_id"];
61789
+ isOneToOne: false;
61790
+ referencedRelation: "products";
61791
+ referencedColumns: ["id"];
61792
+ }];
61793
+ };
60761
61794
  products: {
60762
61795
  Row: {
61796
+ article_number: string | null;
60763
61797
  barcode: string | null;
60764
61798
  batch: string;
60765
61799
  crates_per_layer: number;
60766
61800
  created_at: string;
60767
61801
  custom_fields: import("../integrations/supabase/types").Json;
61802
+ floriday_trade_item_id: string | null;
60768
61803
  id: string;
60769
61804
  image_url: string | null;
60770
61805
  incoming_quantity: number;
61806
+ is_layer: boolean;
60771
61807
  layers_per_cart: number;
60772
61808
  location: string;
60773
61809
  min_quantity: number;
@@ -60783,14 +61819,17 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
60783
61819
  weight: string | null;
60784
61820
  };
60785
61821
  Insert: {
61822
+ article_number?: string | null;
60786
61823
  barcode?: string | null;
60787
61824
  batch: string;
60788
61825
  crates_per_layer?: number;
60789
61826
  created_at?: string;
60790
61827
  custom_fields?: import("../integrations/supabase/types").Json;
61828
+ floriday_trade_item_id?: string | null;
60791
61829
  id?: string;
60792
61830
  image_url?: string | null;
60793
61831
  incoming_quantity?: number;
61832
+ is_layer?: boolean;
60794
61833
  layers_per_cart?: number;
60795
61834
  location: string;
60796
61835
  min_quantity?: number;
@@ -60806,14 +61845,17 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
60806
61845
  weight?: string | null;
60807
61846
  };
60808
61847
  Update: {
61848
+ article_number?: string | null;
60809
61849
  barcode?: string | null;
60810
61850
  batch?: string;
60811
61851
  crates_per_layer?: number;
60812
61852
  created_at?: string;
60813
61853
  custom_fields?: import("../integrations/supabase/types").Json;
61854
+ floriday_trade_item_id?: string | null;
60814
61855
  id?: string;
60815
61856
  image_url?: string | null;
60816
61857
  incoming_quantity?: number;
61858
+ is_layer?: boolean;
60817
61859
  layers_per_cart?: number;
60818
61860
  location?: string;
60819
61861
  min_quantity?: number;
@@ -60833,6 +61875,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
60833
61875
  profiles: {
60834
61876
  Row: {
60835
61877
  address: string | null;
61878
+ avatar_url: string | null;
60836
61879
  created_at: string;
60837
61880
  display_name: string | null;
60838
61881
  email: string | null;
@@ -60844,6 +61887,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
60844
61887
  };
60845
61888
  Insert: {
60846
61889
  address?: string | null;
61890
+ avatar_url?: string | null;
60847
61891
  created_at?: string;
60848
61892
  display_name?: string | null;
60849
61893
  email?: string | null;
@@ -60855,6 +61899,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
60855
61899
  };
60856
61900
  Update: {
60857
61901
  address?: string | null;
61902
+ avatar_url?: string | null;
60858
61903
  created_at?: string;
60859
61904
  display_name?: string | null;
60860
61905
  email?: string | null;
@@ -61721,6 +62766,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
61721
62766
  order_source: string | null;
61722
62767
  physical_after: number | null;
61723
62768
  physical_before: number | null;
62769
+ production_batch_id: string | null;
61724
62770
  qty_delta: number;
61725
62771
  reason: string | null;
61726
62772
  reserved_after: number | null;
@@ -61738,6 +62784,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
61738
62784
  order_source?: string | null;
61739
62785
  physical_after?: number | null;
61740
62786
  physical_before?: number | null;
62787
+ production_batch_id?: string | null;
61741
62788
  qty_delta: number;
61742
62789
  reason?: string | null;
61743
62790
  reserved_after?: number | null;
@@ -61755,6 +62802,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
61755
62802
  order_source?: string | null;
61756
62803
  physical_after?: number | null;
61757
62804
  physical_before?: number | null;
62805
+ production_batch_id?: string | null;
61758
62806
  qty_delta?: number;
61759
62807
  reason?: string | null;
61760
62808
  reserved_after?: number | null;
@@ -64183,6 +65231,12 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
64183
65231
  processed_items: number;
64184
65232
  }[];
64185
65233
  };
65234
+ calculate_layer_stock: {
65235
+ Args: {
65236
+ p_product_id: string;
65237
+ };
65238
+ Returns: number;
65239
+ };
64186
65240
  call_exact_route: {
64187
65241
  Args: {
64188
65242
  path: string;
@@ -64242,6 +65296,28 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
64242
65296
  Args: never;
64243
65297
  Returns: undefined;
64244
65298
  };
65299
+ consume_bom_for_production: {
65300
+ Args: {
65301
+ p_connection_id: string;
65302
+ p_parent_id: string;
65303
+ p_parent_key: string;
65304
+ p_parent_kind: string;
65305
+ p_quantity: number;
65306
+ p_user_id: string;
65307
+ };
65308
+ Returns: import("../integrations/supabase/types").Json;
65309
+ } | {
65310
+ Args: {
65311
+ p_batch_id?: string;
65312
+ p_connection_id: string;
65313
+ p_parent_id: string;
65314
+ p_parent_key: string;
65315
+ p_parent_kind: string;
65316
+ p_quantity: number;
65317
+ p_user_id: string;
65318
+ };
65319
+ Returns: import("../integrations/supabase/types").Json;
65320
+ };
64245
65321
  consume_floriday_rate_limit: {
64246
65322
  Args: {
64247
65323
  p_bucket: string;
@@ -64299,6 +65375,13 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
64299
65375
  table_name: string;
64300
65376
  }[];
64301
65377
  };
65378
+ delete_samenstelling: {
65379
+ Args: {
65380
+ p_parent_id: string;
65381
+ p_parent_kind: string;
65382
+ };
65383
+ Returns: import("../integrations/supabase/types").Json;
65384
+ };
64302
65385
  dispatch_carrier_signups_sql: {
64303
65386
  Args: {
64304
65387
  _catchup?: string;
@@ -64554,6 +65637,12 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
64554
65637
  minutes_since_success: number;
64555
65638
  }[];
64556
65639
  };
65640
+ get_inventory_stock_for_key: {
65641
+ Args: {
65642
+ p_key: string;
65643
+ };
65644
+ Returns: number;
65645
+ };
64557
65646
  get_offer_by_link_code: {
64558
65647
  Args: {
64559
65648
  p_code: string;
@@ -64584,6 +65673,12 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
64584
65673
  };
64585
65674
  Returns: string;
64586
65675
  };
65676
+ get_product_group_available_stock: {
65677
+ Args: {
65678
+ p_group_id: string;
65679
+ };
65680
+ Returns: number;
65681
+ };
64587
65682
  get_room_busy_windows: {
64588
65683
  Args: {
64589
65684
  p_from: string;
@@ -64657,6 +65752,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
64657
65752
  list_monteurs: {
64658
65753
  Args: never;
64659
65754
  Returns: {
65755
+ avatar_url: string;
64660
65756
  display_name: string;
64661
65757
  email: string;
64662
65758
  id: string;
@@ -64794,6 +65890,14 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
64794
65890
  };
64795
65891
  Returns: undefined;
64796
65892
  };
65893
+ produce_designed_product: {
65894
+ Args: {
65895
+ p_parent_id: string;
65896
+ p_parent_kind: string;
65897
+ p_quantity: number;
65898
+ };
65899
+ Returns: import("../integrations/supabase/types").Json;
65900
+ };
64797
65901
  promote_trade_item_key: {
64798
65902
  Args: {
64799
65903
  p_new: string;
@@ -64868,6 +65972,16 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
64868
65972
  };
64869
65973
  Returns: number;
64870
65974
  };
65975
+ reverse_production: {
65976
+ Args: {
65977
+ p_connection_id?: string;
65978
+ p_parent_key: string;
65979
+ p_quantity: number;
65980
+ p_reason?: string;
65981
+ p_user_id?: string;
65982
+ };
65983
+ Returns: import("../integrations/supabase/types").Json;
65984
+ };
64871
65985
  schedule_floriday_additional_services_sync: {
64872
65986
  Args: {
64873
65987
  p_apikey: string;
@@ -65152,18 +66266,34 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
65152
66266
  };
65153
66267
  Returns: string[];
65154
66268
  };
66269
+ sync_all_layer_stocks: {
66270
+ Args: never;
66271
+ Returns: undefined;
66272
+ };
65155
66273
  sync_cached_packing_from_product: {
65156
66274
  Args: {
65157
66275
  p_product_id: string;
65158
66276
  };
65159
66277
  Returns: undefined;
65160
66278
  };
66279
+ sync_layer_stock: {
66280
+ Args: {
66281
+ p_product_id: string;
66282
+ };
66283
+ Returns: undefined;
66284
+ };
65161
66285
  sync_order_cart_item_packing_from_product: {
65162
66286
  Args: {
65163
66287
  p_product_id: string;
65164
66288
  };
65165
66289
  Returns: undefined;
65166
66290
  };
66291
+ sync_product_group_belading: {
66292
+ Args: {
66293
+ _group_id: string;
66294
+ };
66295
+ Returns: undefined;
66296
+ };
65167
66297
  sync_product_packing_from_floriday_cache: {
65168
66298
  Args: {
65169
66299
  p_floriday_id: string;
@@ -65200,7 +66330,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
65200
66330
  exact_push_status: "pending" | "sent" | "error";
65201
66331
  itk_customer_segment: "Business" | "Private";
65202
66332
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
65203
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
66333
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
65204
66334
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
65205
66335
  };
65206
66336
  CompositeTypes: { [_ in never]: never; };
@@ -73685,6 +74815,66 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
73685
74815
  referencedColumns: ["id"];
73686
74816
  }];
73687
74817
  };
74818
+ product_bom_items: {
74819
+ Row: {
74820
+ component_product_id: string | null;
74821
+ component_trade_item_floriday_id: string | null;
74822
+ created_at: string;
74823
+ id: string;
74824
+ notes: string | null;
74825
+ packing_configuration_id: string | null;
74826
+ parent_product_id: string | null;
74827
+ parent_trade_item_floriday_id: string | null;
74828
+ quantity: number;
74829
+ sort_order: number;
74830
+ tenant_id: string;
74831
+ unit: string;
74832
+ updated_at: string;
74833
+ };
74834
+ Insert: {
74835
+ component_product_id?: string | null;
74836
+ component_trade_item_floriday_id?: string | null;
74837
+ created_at?: string;
74838
+ id?: string;
74839
+ notes?: string | null;
74840
+ packing_configuration_id?: string | null;
74841
+ parent_product_id?: string | null;
74842
+ parent_trade_item_floriday_id?: string | null;
74843
+ quantity?: number;
74844
+ sort_order?: number;
74845
+ tenant_id: string;
74846
+ unit?: string;
74847
+ updated_at?: string;
74848
+ };
74849
+ Update: {
74850
+ component_product_id?: string | null;
74851
+ component_trade_item_floriday_id?: string | null;
74852
+ created_at?: string;
74853
+ id?: string;
74854
+ notes?: string | null;
74855
+ packing_configuration_id?: string | null;
74856
+ parent_product_id?: string | null;
74857
+ parent_trade_item_floriday_id?: string | null;
74858
+ quantity?: number;
74859
+ sort_order?: number;
74860
+ tenant_id?: string;
74861
+ unit?: string;
74862
+ updated_at?: string;
74863
+ };
74864
+ Relationships: [{
74865
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
74866
+ columns: ["component_product_id"];
74867
+ isOneToOne: false;
74868
+ referencedRelation: "products";
74869
+ referencedColumns: ["id"];
74870
+ }, {
74871
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
74872
+ columns: ["parent_product_id"];
74873
+ isOneToOne: false;
74874
+ referencedRelation: "products";
74875
+ referencedColumns: ["id"];
74876
+ }];
74877
+ };
73688
74878
  product_categories: {
73689
74879
  Row: {
73690
74880
  color: string;
@@ -73790,6 +74980,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
73790
74980
  id: string;
73791
74981
  product_group_id: string;
73792
74982
  quantity: number;
74983
+ sort_order: number;
73793
74984
  trade_item_id: string;
73794
74985
  };
73795
74986
  Insert: {
@@ -73797,6 +74988,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
73797
74988
  id?: string;
73798
74989
  product_group_id: string;
73799
74990
  quantity?: number;
74991
+ sort_order?: number;
73800
74992
  trade_item_id: string;
73801
74993
  };
73802
74994
  Update: {
@@ -73804,6 +74996,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
73804
74996
  id?: string;
73805
74997
  product_group_id?: string;
73806
74998
  quantity?: number;
74999
+ sort_order?: number;
73807
75000
  trade_item_id?: string;
73808
75001
  };
73809
75002
  Relationships: [{
@@ -73856,16 +75049,85 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
73856
75049
  referencedColumns: ["id"];
73857
75050
  }];
73858
75051
  };
75052
+ product_load_settings: {
75053
+ Row: {
75054
+ created_at: string;
75055
+ id: string;
75056
+ is_package: boolean;
75057
+ label: string | null;
75058
+ layers_per_load_carrier: number | null;
75059
+ load_carrier: string | null;
75060
+ package_id: string | null;
75061
+ package_label: string | null;
75062
+ packages_per_layer: number | null;
75063
+ packing_configuration_id: string;
75064
+ product_id: string | null;
75065
+ tenant_id: string;
75066
+ trade_item_floriday_id: string | null;
75067
+ units_per_package: number | null;
75068
+ updated_at: string;
75069
+ };
75070
+ Insert: {
75071
+ created_at?: string;
75072
+ id?: string;
75073
+ is_package?: boolean;
75074
+ label?: string | null;
75075
+ layers_per_load_carrier?: number | null;
75076
+ load_carrier?: string | null;
75077
+ package_id?: string | null;
75078
+ package_label?: string | null;
75079
+ packages_per_layer?: number | null;
75080
+ packing_configuration_id?: string;
75081
+ product_id?: string | null;
75082
+ tenant_id: string;
75083
+ trade_item_floriday_id?: string | null;
75084
+ units_per_package?: number | null;
75085
+ updated_at?: string;
75086
+ };
75087
+ Update: {
75088
+ created_at?: string;
75089
+ id?: string;
75090
+ is_package?: boolean;
75091
+ label?: string | null;
75092
+ layers_per_load_carrier?: number | null;
75093
+ load_carrier?: string | null;
75094
+ package_id?: string | null;
75095
+ package_label?: string | null;
75096
+ packages_per_layer?: number | null;
75097
+ packing_configuration_id?: string;
75098
+ product_id?: string | null;
75099
+ tenant_id?: string;
75100
+ trade_item_floriday_id?: string | null;
75101
+ units_per_package?: number | null;
75102
+ updated_at?: string;
75103
+ };
75104
+ Relationships: [{
75105
+ foreignKeyName: "product_load_settings_package_id_fkey";
75106
+ columns: ["package_id"];
75107
+ isOneToOne: false;
75108
+ referencedRelation: "packages";
75109
+ referencedColumns: ["id"];
75110
+ }, {
75111
+ foreignKeyName: "product_load_settings_product_id_fkey";
75112
+ columns: ["product_id"];
75113
+ isOneToOne: false;
75114
+ referencedRelation: "products";
75115
+ referencedColumns: ["id"];
75116
+ }];
75117
+ };
73859
75118
  products: {
73860
75119
  Row: {
75120
+ article_number: string | null;
73861
75121
  barcode: string | null;
73862
75122
  batch: string;
73863
75123
  crates_per_layer: number;
73864
75124
  created_at: string;
73865
75125
  custom_fields: import("../integrations/supabase/types").Json;
75126
+ floriday_trade_item_id: string | null;
73866
75127
  id: string;
73867
75128
  image_url: string | null;
73868
75129
  incoming_quantity: number;
75130
+ is_layer: boolean;
73869
75131
  layers_per_cart: number;
73870
75132
  location: string;
73871
75133
  min_quantity: number;
@@ -73881,14 +75143,17 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
73881
75143
  weight: string | null;
73882
75144
  };
73883
75145
  Insert: {
75146
+ article_number?: string | null;
73884
75147
  barcode?: string | null;
73885
75148
  batch: string;
73886
75149
  crates_per_layer?: number;
73887
75150
  created_at?: string;
73888
75151
  custom_fields?: import("../integrations/supabase/types").Json;
75152
+ floriday_trade_item_id?: string | null;
73889
75153
  id?: string;
73890
75154
  image_url?: string | null;
73891
75155
  incoming_quantity?: number;
75156
+ is_layer?: boolean;
73892
75157
  layers_per_cart?: number;
73893
75158
  location: string;
73894
75159
  min_quantity?: number;
@@ -73904,14 +75169,17 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
73904
75169
  weight?: string | null;
73905
75170
  };
73906
75171
  Update: {
75172
+ article_number?: string | null;
73907
75173
  barcode?: string | null;
73908
75174
  batch?: string;
73909
75175
  crates_per_layer?: number;
73910
75176
  created_at?: string;
73911
75177
  custom_fields?: import("../integrations/supabase/types").Json;
75178
+ floriday_trade_item_id?: string | null;
73912
75179
  id?: string;
73913
75180
  image_url?: string | null;
73914
75181
  incoming_quantity?: number;
75182
+ is_layer?: boolean;
73915
75183
  layers_per_cart?: number;
73916
75184
  location?: string;
73917
75185
  min_quantity?: number;
@@ -73931,6 +75199,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
73931
75199
  profiles: {
73932
75200
  Row: {
73933
75201
  address: string | null;
75202
+ avatar_url: string | null;
73934
75203
  created_at: string;
73935
75204
  display_name: string | null;
73936
75205
  email: string | null;
@@ -73942,6 +75211,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
73942
75211
  };
73943
75212
  Insert: {
73944
75213
  address?: string | null;
75214
+ avatar_url?: string | null;
73945
75215
  created_at?: string;
73946
75216
  display_name?: string | null;
73947
75217
  email?: string | null;
@@ -73953,6 +75223,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
73953
75223
  };
73954
75224
  Update: {
73955
75225
  address?: string | null;
75226
+ avatar_url?: string | null;
73956
75227
  created_at?: string;
73957
75228
  display_name?: string | null;
73958
75229
  email?: string | null;
@@ -74819,6 +76090,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
74819
76090
  order_source: string | null;
74820
76091
  physical_after: number | null;
74821
76092
  physical_before: number | null;
76093
+ production_batch_id: string | null;
74822
76094
  qty_delta: number;
74823
76095
  reason: string | null;
74824
76096
  reserved_after: number | null;
@@ -74836,6 +76108,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
74836
76108
  order_source?: string | null;
74837
76109
  physical_after?: number | null;
74838
76110
  physical_before?: number | null;
76111
+ production_batch_id?: string | null;
74839
76112
  qty_delta: number;
74840
76113
  reason?: string | null;
74841
76114
  reserved_after?: number | null;
@@ -74853,6 +76126,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
74853
76126
  order_source?: string | null;
74854
76127
  physical_after?: number | null;
74855
76128
  physical_before?: number | null;
76129
+ production_batch_id?: string | null;
74856
76130
  qty_delta?: number;
74857
76131
  reason?: string | null;
74858
76132
  reserved_after?: number | null;
@@ -77281,6 +78555,12 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
77281
78555
  processed_items: number;
77282
78556
  }[];
77283
78557
  };
78558
+ calculate_layer_stock: {
78559
+ Args: {
78560
+ p_product_id: string;
78561
+ };
78562
+ Returns: number;
78563
+ };
77284
78564
  call_exact_route: {
77285
78565
  Args: {
77286
78566
  path: string;
@@ -77340,6 +78620,28 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
77340
78620
  Args: never;
77341
78621
  Returns: undefined;
77342
78622
  };
78623
+ consume_bom_for_production: {
78624
+ Args: {
78625
+ p_connection_id: string;
78626
+ p_parent_id: string;
78627
+ p_parent_key: string;
78628
+ p_parent_kind: string;
78629
+ p_quantity: number;
78630
+ p_user_id: string;
78631
+ };
78632
+ Returns: import("../integrations/supabase/types").Json;
78633
+ } | {
78634
+ Args: {
78635
+ p_batch_id?: string;
78636
+ p_connection_id: string;
78637
+ p_parent_id: string;
78638
+ p_parent_key: string;
78639
+ p_parent_kind: string;
78640
+ p_quantity: number;
78641
+ p_user_id: string;
78642
+ };
78643
+ Returns: import("../integrations/supabase/types").Json;
78644
+ };
77343
78645
  consume_floriday_rate_limit: {
77344
78646
  Args: {
77345
78647
  p_bucket: string;
@@ -77397,6 +78699,13 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
77397
78699
  table_name: string;
77398
78700
  }[];
77399
78701
  };
78702
+ delete_samenstelling: {
78703
+ Args: {
78704
+ p_parent_id: string;
78705
+ p_parent_kind: string;
78706
+ };
78707
+ Returns: import("../integrations/supabase/types").Json;
78708
+ };
77400
78709
  dispatch_carrier_signups_sql: {
77401
78710
  Args: {
77402
78711
  _catchup?: string;
@@ -77652,6 +78961,12 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
77652
78961
  minutes_since_success: number;
77653
78962
  }[];
77654
78963
  };
78964
+ get_inventory_stock_for_key: {
78965
+ Args: {
78966
+ p_key: string;
78967
+ };
78968
+ Returns: number;
78969
+ };
77655
78970
  get_offer_by_link_code: {
77656
78971
  Args: {
77657
78972
  p_code: string;
@@ -77682,6 +78997,12 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
77682
78997
  };
77683
78998
  Returns: string;
77684
78999
  };
79000
+ get_product_group_available_stock: {
79001
+ Args: {
79002
+ p_group_id: string;
79003
+ };
79004
+ Returns: number;
79005
+ };
77685
79006
  get_room_busy_windows: {
77686
79007
  Args: {
77687
79008
  p_from: string;
@@ -77755,6 +79076,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
77755
79076
  list_monteurs: {
77756
79077
  Args: never;
77757
79078
  Returns: {
79079
+ avatar_url: string;
77758
79080
  display_name: string;
77759
79081
  email: string;
77760
79082
  id: string;
@@ -77892,6 +79214,14 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
77892
79214
  };
77893
79215
  Returns: undefined;
77894
79216
  };
79217
+ produce_designed_product: {
79218
+ Args: {
79219
+ p_parent_id: string;
79220
+ p_parent_kind: string;
79221
+ p_quantity: number;
79222
+ };
79223
+ Returns: import("../integrations/supabase/types").Json;
79224
+ };
77895
79225
  promote_trade_item_key: {
77896
79226
  Args: {
77897
79227
  p_new: string;
@@ -77966,6 +79296,16 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
77966
79296
  };
77967
79297
  Returns: number;
77968
79298
  };
79299
+ reverse_production: {
79300
+ Args: {
79301
+ p_connection_id?: string;
79302
+ p_parent_key: string;
79303
+ p_quantity: number;
79304
+ p_reason?: string;
79305
+ p_user_id?: string;
79306
+ };
79307
+ Returns: import("../integrations/supabase/types").Json;
79308
+ };
77969
79309
  schedule_floriday_additional_services_sync: {
77970
79310
  Args: {
77971
79311
  p_apikey: string;
@@ -78250,18 +79590,34 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
78250
79590
  };
78251
79591
  Returns: string[];
78252
79592
  };
79593
+ sync_all_layer_stocks: {
79594
+ Args: never;
79595
+ Returns: undefined;
79596
+ };
78253
79597
  sync_cached_packing_from_product: {
78254
79598
  Args: {
78255
79599
  p_product_id: string;
78256
79600
  };
78257
79601
  Returns: undefined;
78258
79602
  };
79603
+ sync_layer_stock: {
79604
+ Args: {
79605
+ p_product_id: string;
79606
+ };
79607
+ Returns: undefined;
79608
+ };
78259
79609
  sync_order_cart_item_packing_from_product: {
78260
79610
  Args: {
78261
79611
  p_product_id: string;
78262
79612
  };
78263
79613
  Returns: undefined;
78264
79614
  };
79615
+ sync_product_group_belading: {
79616
+ Args: {
79617
+ _group_id: string;
79618
+ };
79619
+ Returns: undefined;
79620
+ };
78265
79621
  sync_product_packing_from_floriday_cache: {
78266
79622
  Args: {
78267
79623
  p_floriday_id: string;
@@ -78298,7 +79654,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
78298
79654
  exact_push_status: "pending" | "sent" | "error";
78299
79655
  itk_customer_segment: "Business" | "Private";
78300
79656
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
78301
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
79657
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
78302
79658
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
78303
79659
  };
78304
79660
  CompositeTypes: { [_ in never]: never; };
@@ -86672,6 +88028,66 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
86672
88028
  referencedColumns: ["id"];
86673
88029
  }];
86674
88030
  };
88031
+ product_bom_items: {
88032
+ Row: {
88033
+ component_product_id: string | null;
88034
+ component_trade_item_floriday_id: string | null;
88035
+ created_at: string;
88036
+ id: string;
88037
+ notes: string | null;
88038
+ packing_configuration_id: string | null;
88039
+ parent_product_id: string | null;
88040
+ parent_trade_item_floriday_id: string | null;
88041
+ quantity: number;
88042
+ sort_order: number;
88043
+ tenant_id: string;
88044
+ unit: string;
88045
+ updated_at: string;
88046
+ };
88047
+ Insert: {
88048
+ component_product_id?: string | null;
88049
+ component_trade_item_floriday_id?: string | null;
88050
+ created_at?: string;
88051
+ id?: string;
88052
+ notes?: string | null;
88053
+ packing_configuration_id?: string | null;
88054
+ parent_product_id?: string | null;
88055
+ parent_trade_item_floriday_id?: string | null;
88056
+ quantity?: number;
88057
+ sort_order?: number;
88058
+ tenant_id: string;
88059
+ unit?: string;
88060
+ updated_at?: string;
88061
+ };
88062
+ Update: {
88063
+ component_product_id?: string | null;
88064
+ component_trade_item_floriday_id?: string | null;
88065
+ created_at?: string;
88066
+ id?: string;
88067
+ notes?: string | null;
88068
+ packing_configuration_id?: string | null;
88069
+ parent_product_id?: string | null;
88070
+ parent_trade_item_floriday_id?: string | null;
88071
+ quantity?: number;
88072
+ sort_order?: number;
88073
+ tenant_id?: string;
88074
+ unit?: string;
88075
+ updated_at?: string;
88076
+ };
88077
+ Relationships: [{
88078
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
88079
+ columns: ["component_product_id"];
88080
+ isOneToOne: false;
88081
+ referencedRelation: "products";
88082
+ referencedColumns: ["id"];
88083
+ }, {
88084
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
88085
+ columns: ["parent_product_id"];
88086
+ isOneToOne: false;
88087
+ referencedRelation: "products";
88088
+ referencedColumns: ["id"];
88089
+ }];
88090
+ };
86675
88091
  product_categories: {
86676
88092
  Row: {
86677
88093
  color: string;
@@ -86777,6 +88193,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
86777
88193
  id: string;
86778
88194
  product_group_id: string;
86779
88195
  quantity: number;
88196
+ sort_order: number;
86780
88197
  trade_item_id: string;
86781
88198
  };
86782
88199
  Insert: {
@@ -86784,6 +88201,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
86784
88201
  id?: string;
86785
88202
  product_group_id: string;
86786
88203
  quantity?: number;
88204
+ sort_order?: number;
86787
88205
  trade_item_id: string;
86788
88206
  };
86789
88207
  Update: {
@@ -86791,6 +88209,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
86791
88209
  id?: string;
86792
88210
  product_group_id?: string;
86793
88211
  quantity?: number;
88212
+ sort_order?: number;
86794
88213
  trade_item_id?: string;
86795
88214
  };
86796
88215
  Relationships: [{
@@ -86843,16 +88262,85 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
86843
88262
  referencedColumns: ["id"];
86844
88263
  }];
86845
88264
  };
88265
+ product_load_settings: {
88266
+ Row: {
88267
+ created_at: string;
88268
+ id: string;
88269
+ is_package: boolean;
88270
+ label: string | null;
88271
+ layers_per_load_carrier: number | null;
88272
+ load_carrier: string | null;
88273
+ package_id: string | null;
88274
+ package_label: string | null;
88275
+ packages_per_layer: number | null;
88276
+ packing_configuration_id: string;
88277
+ product_id: string | null;
88278
+ tenant_id: string;
88279
+ trade_item_floriday_id: string | null;
88280
+ units_per_package: number | null;
88281
+ updated_at: string;
88282
+ };
88283
+ Insert: {
88284
+ created_at?: string;
88285
+ id?: string;
88286
+ is_package?: boolean;
88287
+ label?: string | null;
88288
+ layers_per_load_carrier?: number | null;
88289
+ load_carrier?: string | null;
88290
+ package_id?: string | null;
88291
+ package_label?: string | null;
88292
+ packages_per_layer?: number | null;
88293
+ packing_configuration_id?: string;
88294
+ product_id?: string | null;
88295
+ tenant_id: string;
88296
+ trade_item_floriday_id?: string | null;
88297
+ units_per_package?: number | null;
88298
+ updated_at?: string;
88299
+ };
88300
+ Update: {
88301
+ created_at?: string;
88302
+ id?: string;
88303
+ is_package?: boolean;
88304
+ label?: string | null;
88305
+ layers_per_load_carrier?: number | null;
88306
+ load_carrier?: string | null;
88307
+ package_id?: string | null;
88308
+ package_label?: string | null;
88309
+ packages_per_layer?: number | null;
88310
+ packing_configuration_id?: string;
88311
+ product_id?: string | null;
88312
+ tenant_id?: string;
88313
+ trade_item_floriday_id?: string | null;
88314
+ units_per_package?: number | null;
88315
+ updated_at?: string;
88316
+ };
88317
+ Relationships: [{
88318
+ foreignKeyName: "product_load_settings_package_id_fkey";
88319
+ columns: ["package_id"];
88320
+ isOneToOne: false;
88321
+ referencedRelation: "packages";
88322
+ referencedColumns: ["id"];
88323
+ }, {
88324
+ foreignKeyName: "product_load_settings_product_id_fkey";
88325
+ columns: ["product_id"];
88326
+ isOneToOne: false;
88327
+ referencedRelation: "products";
88328
+ referencedColumns: ["id"];
88329
+ }];
88330
+ };
86846
88331
  products: {
86847
88332
  Row: {
88333
+ article_number: string | null;
86848
88334
  barcode: string | null;
86849
88335
  batch: string;
86850
88336
  crates_per_layer: number;
86851
88337
  created_at: string;
86852
88338
  custom_fields: import("../integrations/supabase/types").Json;
88339
+ floriday_trade_item_id: string | null;
86853
88340
  id: string;
86854
88341
  image_url: string | null;
86855
88342
  incoming_quantity: number;
88343
+ is_layer: boolean;
86856
88344
  layers_per_cart: number;
86857
88345
  location: string;
86858
88346
  min_quantity: number;
@@ -86868,14 +88356,17 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
86868
88356
  weight: string | null;
86869
88357
  };
86870
88358
  Insert: {
88359
+ article_number?: string | null;
86871
88360
  barcode?: string | null;
86872
88361
  batch: string;
86873
88362
  crates_per_layer?: number;
86874
88363
  created_at?: string;
86875
88364
  custom_fields?: import("../integrations/supabase/types").Json;
88365
+ floriday_trade_item_id?: string | null;
86876
88366
  id?: string;
86877
88367
  image_url?: string | null;
86878
88368
  incoming_quantity?: number;
88369
+ is_layer?: boolean;
86879
88370
  layers_per_cart?: number;
86880
88371
  location: string;
86881
88372
  min_quantity?: number;
@@ -86891,14 +88382,17 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
86891
88382
  weight?: string | null;
86892
88383
  };
86893
88384
  Update: {
88385
+ article_number?: string | null;
86894
88386
  barcode?: string | null;
86895
88387
  batch?: string;
86896
88388
  crates_per_layer?: number;
86897
88389
  created_at?: string;
86898
88390
  custom_fields?: import("../integrations/supabase/types").Json;
88391
+ floriday_trade_item_id?: string | null;
86899
88392
  id?: string;
86900
88393
  image_url?: string | null;
86901
88394
  incoming_quantity?: number;
88395
+ is_layer?: boolean;
86902
88396
  layers_per_cart?: number;
86903
88397
  location?: string;
86904
88398
  min_quantity?: number;
@@ -86918,6 +88412,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
86918
88412
  profiles: {
86919
88413
  Row: {
86920
88414
  address: string | null;
88415
+ avatar_url: string | null;
86921
88416
  created_at: string;
86922
88417
  display_name: string | null;
86923
88418
  email: string | null;
@@ -86929,6 +88424,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
86929
88424
  };
86930
88425
  Insert: {
86931
88426
  address?: string | null;
88427
+ avatar_url?: string | null;
86932
88428
  created_at?: string;
86933
88429
  display_name?: string | null;
86934
88430
  email?: string | null;
@@ -86940,6 +88436,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
86940
88436
  };
86941
88437
  Update: {
86942
88438
  address?: string | null;
88439
+ avatar_url?: string | null;
86943
88440
  created_at?: string;
86944
88441
  display_name?: string | null;
86945
88442
  email?: string | null;
@@ -87806,6 +89303,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
87806
89303
  order_source: string | null;
87807
89304
  physical_after: number | null;
87808
89305
  physical_before: number | null;
89306
+ production_batch_id: string | null;
87809
89307
  qty_delta: number;
87810
89308
  reason: string | null;
87811
89309
  reserved_after: number | null;
@@ -87823,6 +89321,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
87823
89321
  order_source?: string | null;
87824
89322
  physical_after?: number | null;
87825
89323
  physical_before?: number | null;
89324
+ production_batch_id?: string | null;
87826
89325
  qty_delta: number;
87827
89326
  reason?: string | null;
87828
89327
  reserved_after?: number | null;
@@ -87840,6 +89339,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
87840
89339
  order_source?: string | null;
87841
89340
  physical_after?: number | null;
87842
89341
  physical_before?: number | null;
89342
+ production_batch_id?: string | null;
87843
89343
  qty_delta?: number;
87844
89344
  reason?: string | null;
87845
89345
  reserved_after?: number | null;
@@ -90268,6 +91768,12 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
90268
91768
  processed_items: number;
90269
91769
  }[];
90270
91770
  };
91771
+ calculate_layer_stock: {
91772
+ Args: {
91773
+ p_product_id: string;
91774
+ };
91775
+ Returns: number;
91776
+ };
90271
91777
  call_exact_route: {
90272
91778
  Args: {
90273
91779
  path: string;
@@ -90327,6 +91833,28 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
90327
91833
  Args: never;
90328
91834
  Returns: undefined;
90329
91835
  };
91836
+ consume_bom_for_production: {
91837
+ Args: {
91838
+ p_connection_id: string;
91839
+ p_parent_id: string;
91840
+ p_parent_key: string;
91841
+ p_parent_kind: string;
91842
+ p_quantity: number;
91843
+ p_user_id: string;
91844
+ };
91845
+ Returns: import("../integrations/supabase/types").Json;
91846
+ } | {
91847
+ Args: {
91848
+ p_batch_id?: string;
91849
+ p_connection_id: string;
91850
+ p_parent_id: string;
91851
+ p_parent_key: string;
91852
+ p_parent_kind: string;
91853
+ p_quantity: number;
91854
+ p_user_id: string;
91855
+ };
91856
+ Returns: import("../integrations/supabase/types").Json;
91857
+ };
90330
91858
  consume_floriday_rate_limit: {
90331
91859
  Args: {
90332
91860
  p_bucket: string;
@@ -90384,6 +91912,13 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
90384
91912
  table_name: string;
90385
91913
  }[];
90386
91914
  };
91915
+ delete_samenstelling: {
91916
+ Args: {
91917
+ p_parent_id: string;
91918
+ p_parent_kind: string;
91919
+ };
91920
+ Returns: import("../integrations/supabase/types").Json;
91921
+ };
90387
91922
  dispatch_carrier_signups_sql: {
90388
91923
  Args: {
90389
91924
  _catchup?: string;
@@ -90639,6 +92174,12 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
90639
92174
  minutes_since_success: number;
90640
92175
  }[];
90641
92176
  };
92177
+ get_inventory_stock_for_key: {
92178
+ Args: {
92179
+ p_key: string;
92180
+ };
92181
+ Returns: number;
92182
+ };
90642
92183
  get_offer_by_link_code: {
90643
92184
  Args: {
90644
92185
  p_code: string;
@@ -90669,6 +92210,12 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
90669
92210
  };
90670
92211
  Returns: string;
90671
92212
  };
92213
+ get_product_group_available_stock: {
92214
+ Args: {
92215
+ p_group_id: string;
92216
+ };
92217
+ Returns: number;
92218
+ };
90672
92219
  get_room_busy_windows: {
90673
92220
  Args: {
90674
92221
  p_from: string;
@@ -90742,6 +92289,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
90742
92289
  list_monteurs: {
90743
92290
  Args: never;
90744
92291
  Returns: {
92292
+ avatar_url: string;
90745
92293
  display_name: string;
90746
92294
  email: string;
90747
92295
  id: string;
@@ -90879,6 +92427,14 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
90879
92427
  };
90880
92428
  Returns: undefined;
90881
92429
  };
92430
+ produce_designed_product: {
92431
+ Args: {
92432
+ p_parent_id: string;
92433
+ p_parent_kind: string;
92434
+ p_quantity: number;
92435
+ };
92436
+ Returns: import("../integrations/supabase/types").Json;
92437
+ };
90882
92438
  promote_trade_item_key: {
90883
92439
  Args: {
90884
92440
  p_new: string;
@@ -90953,6 +92509,16 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
90953
92509
  };
90954
92510
  Returns: number;
90955
92511
  };
92512
+ reverse_production: {
92513
+ Args: {
92514
+ p_connection_id?: string;
92515
+ p_parent_key: string;
92516
+ p_quantity: number;
92517
+ p_reason?: string;
92518
+ p_user_id?: string;
92519
+ };
92520
+ Returns: import("../integrations/supabase/types").Json;
92521
+ };
90956
92522
  schedule_floriday_additional_services_sync: {
90957
92523
  Args: {
90958
92524
  p_apikey: string;
@@ -91237,18 +92803,34 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
91237
92803
  };
91238
92804
  Returns: string[];
91239
92805
  };
92806
+ sync_all_layer_stocks: {
92807
+ Args: never;
92808
+ Returns: undefined;
92809
+ };
91240
92810
  sync_cached_packing_from_product: {
91241
92811
  Args: {
91242
92812
  p_product_id: string;
91243
92813
  };
91244
92814
  Returns: undefined;
91245
92815
  };
92816
+ sync_layer_stock: {
92817
+ Args: {
92818
+ p_product_id: string;
92819
+ };
92820
+ Returns: undefined;
92821
+ };
91246
92822
  sync_order_cart_item_packing_from_product: {
91247
92823
  Args: {
91248
92824
  p_product_id: string;
91249
92825
  };
91250
92826
  Returns: undefined;
91251
92827
  };
92828
+ sync_product_group_belading: {
92829
+ Args: {
92830
+ _group_id: string;
92831
+ };
92832
+ Returns: undefined;
92833
+ };
91252
92834
  sync_product_packing_from_floriday_cache: {
91253
92835
  Args: {
91254
92836
  p_floriday_id: string;
@@ -91285,7 +92867,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
91285
92867
  exact_push_status: "pending" | "sent" | "error";
91286
92868
  itk_customer_segment: "Business" | "Private";
91287
92869
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
91288
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
92870
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
91289
92871
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
91290
92872
  };
91291
92873
  CompositeTypes: { [_ in never]: never; };
@@ -99685,6 +101267,66 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
99685
101267
  referencedColumns: ["id"];
99686
101268
  }];
99687
101269
  };
101270
+ product_bom_items: {
101271
+ Row: {
101272
+ component_product_id: string | null;
101273
+ component_trade_item_floriday_id: string | null;
101274
+ created_at: string;
101275
+ id: string;
101276
+ notes: string | null;
101277
+ packing_configuration_id: string | null;
101278
+ parent_product_id: string | null;
101279
+ parent_trade_item_floriday_id: string | null;
101280
+ quantity: number;
101281
+ sort_order: number;
101282
+ tenant_id: string;
101283
+ unit: string;
101284
+ updated_at: string;
101285
+ };
101286
+ Insert: {
101287
+ component_product_id?: string | null;
101288
+ component_trade_item_floriday_id?: string | null;
101289
+ created_at?: string;
101290
+ id?: string;
101291
+ notes?: string | null;
101292
+ packing_configuration_id?: string | null;
101293
+ parent_product_id?: string | null;
101294
+ parent_trade_item_floriday_id?: string | null;
101295
+ quantity?: number;
101296
+ sort_order?: number;
101297
+ tenant_id: string;
101298
+ unit?: string;
101299
+ updated_at?: string;
101300
+ };
101301
+ Update: {
101302
+ component_product_id?: string | null;
101303
+ component_trade_item_floriday_id?: string | null;
101304
+ created_at?: string;
101305
+ id?: string;
101306
+ notes?: string | null;
101307
+ packing_configuration_id?: string | null;
101308
+ parent_product_id?: string | null;
101309
+ parent_trade_item_floriday_id?: string | null;
101310
+ quantity?: number;
101311
+ sort_order?: number;
101312
+ tenant_id?: string;
101313
+ unit?: string;
101314
+ updated_at?: string;
101315
+ };
101316
+ Relationships: [{
101317
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
101318
+ columns: ["component_product_id"];
101319
+ isOneToOne: false;
101320
+ referencedRelation: "products";
101321
+ referencedColumns: ["id"];
101322
+ }, {
101323
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
101324
+ columns: ["parent_product_id"];
101325
+ isOneToOne: false;
101326
+ referencedRelation: "products";
101327
+ referencedColumns: ["id"];
101328
+ }];
101329
+ };
99688
101330
  product_categories: {
99689
101331
  Row: {
99690
101332
  color: string;
@@ -99790,6 +101432,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
99790
101432
  id: string;
99791
101433
  product_group_id: string;
99792
101434
  quantity: number;
101435
+ sort_order: number;
99793
101436
  trade_item_id: string;
99794
101437
  };
99795
101438
  Insert: {
@@ -99797,6 +101440,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
99797
101440
  id?: string;
99798
101441
  product_group_id: string;
99799
101442
  quantity?: number;
101443
+ sort_order?: number;
99800
101444
  trade_item_id: string;
99801
101445
  };
99802
101446
  Update: {
@@ -99804,6 +101448,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
99804
101448
  id?: string;
99805
101449
  product_group_id?: string;
99806
101450
  quantity?: number;
101451
+ sort_order?: number;
99807
101452
  trade_item_id?: string;
99808
101453
  };
99809
101454
  Relationships: [{
@@ -99856,16 +101501,85 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
99856
101501
  referencedColumns: ["id"];
99857
101502
  }];
99858
101503
  };
101504
+ product_load_settings: {
101505
+ Row: {
101506
+ created_at: string;
101507
+ id: string;
101508
+ is_package: boolean;
101509
+ label: string | null;
101510
+ layers_per_load_carrier: number | null;
101511
+ load_carrier: string | null;
101512
+ package_id: string | null;
101513
+ package_label: string | null;
101514
+ packages_per_layer: number | null;
101515
+ packing_configuration_id: string;
101516
+ product_id: string | null;
101517
+ tenant_id: string;
101518
+ trade_item_floriday_id: string | null;
101519
+ units_per_package: number | null;
101520
+ updated_at: string;
101521
+ };
101522
+ Insert: {
101523
+ created_at?: string;
101524
+ id?: string;
101525
+ is_package?: boolean;
101526
+ label?: string | null;
101527
+ layers_per_load_carrier?: number | null;
101528
+ load_carrier?: string | null;
101529
+ package_id?: string | null;
101530
+ package_label?: string | null;
101531
+ packages_per_layer?: number | null;
101532
+ packing_configuration_id?: string;
101533
+ product_id?: string | null;
101534
+ tenant_id: string;
101535
+ trade_item_floriday_id?: string | null;
101536
+ units_per_package?: number | null;
101537
+ updated_at?: string;
101538
+ };
101539
+ Update: {
101540
+ created_at?: string;
101541
+ id?: string;
101542
+ is_package?: boolean;
101543
+ label?: string | null;
101544
+ layers_per_load_carrier?: number | null;
101545
+ load_carrier?: string | null;
101546
+ package_id?: string | null;
101547
+ package_label?: string | null;
101548
+ packages_per_layer?: number | null;
101549
+ packing_configuration_id?: string;
101550
+ product_id?: string | null;
101551
+ tenant_id?: string;
101552
+ trade_item_floriday_id?: string | null;
101553
+ units_per_package?: number | null;
101554
+ updated_at?: string;
101555
+ };
101556
+ Relationships: [{
101557
+ foreignKeyName: "product_load_settings_package_id_fkey";
101558
+ columns: ["package_id"];
101559
+ isOneToOne: false;
101560
+ referencedRelation: "packages";
101561
+ referencedColumns: ["id"];
101562
+ }, {
101563
+ foreignKeyName: "product_load_settings_product_id_fkey";
101564
+ columns: ["product_id"];
101565
+ isOneToOne: false;
101566
+ referencedRelation: "products";
101567
+ referencedColumns: ["id"];
101568
+ }];
101569
+ };
99859
101570
  products: {
99860
101571
  Row: {
101572
+ article_number: string | null;
99861
101573
  barcode: string | null;
99862
101574
  batch: string;
99863
101575
  crates_per_layer: number;
99864
101576
  created_at: string;
99865
101577
  custom_fields: import("../integrations/supabase/types").Json;
101578
+ floriday_trade_item_id: string | null;
99866
101579
  id: string;
99867
101580
  image_url: string | null;
99868
101581
  incoming_quantity: number;
101582
+ is_layer: boolean;
99869
101583
  layers_per_cart: number;
99870
101584
  location: string;
99871
101585
  min_quantity: number;
@@ -99881,14 +101595,17 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
99881
101595
  weight: string | null;
99882
101596
  };
99883
101597
  Insert: {
101598
+ article_number?: string | null;
99884
101599
  barcode?: string | null;
99885
101600
  batch: string;
99886
101601
  crates_per_layer?: number;
99887
101602
  created_at?: string;
99888
101603
  custom_fields?: import("../integrations/supabase/types").Json;
101604
+ floriday_trade_item_id?: string | null;
99889
101605
  id?: string;
99890
101606
  image_url?: string | null;
99891
101607
  incoming_quantity?: number;
101608
+ is_layer?: boolean;
99892
101609
  layers_per_cart?: number;
99893
101610
  location: string;
99894
101611
  min_quantity?: number;
@@ -99904,14 +101621,17 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
99904
101621
  weight?: string | null;
99905
101622
  };
99906
101623
  Update: {
101624
+ article_number?: string | null;
99907
101625
  barcode?: string | null;
99908
101626
  batch?: string;
99909
101627
  crates_per_layer?: number;
99910
101628
  created_at?: string;
99911
101629
  custom_fields?: import("../integrations/supabase/types").Json;
101630
+ floriday_trade_item_id?: string | null;
99912
101631
  id?: string;
99913
101632
  image_url?: string | null;
99914
101633
  incoming_quantity?: number;
101634
+ is_layer?: boolean;
99915
101635
  layers_per_cart?: number;
99916
101636
  location?: string;
99917
101637
  min_quantity?: number;
@@ -99931,6 +101651,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
99931
101651
  profiles: {
99932
101652
  Row: {
99933
101653
  address: string | null;
101654
+ avatar_url: string | null;
99934
101655
  created_at: string;
99935
101656
  display_name: string | null;
99936
101657
  email: string | null;
@@ -99942,6 +101663,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
99942
101663
  };
99943
101664
  Insert: {
99944
101665
  address?: string | null;
101666
+ avatar_url?: string | null;
99945
101667
  created_at?: string;
99946
101668
  display_name?: string | null;
99947
101669
  email?: string | null;
@@ -99953,6 +101675,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
99953
101675
  };
99954
101676
  Update: {
99955
101677
  address?: string | null;
101678
+ avatar_url?: string | null;
99956
101679
  created_at?: string;
99957
101680
  display_name?: string | null;
99958
101681
  email?: string | null;
@@ -100819,6 +102542,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
100819
102542
  order_source: string | null;
100820
102543
  physical_after: number | null;
100821
102544
  physical_before: number | null;
102545
+ production_batch_id: string | null;
100822
102546
  qty_delta: number;
100823
102547
  reason: string | null;
100824
102548
  reserved_after: number | null;
@@ -100836,6 +102560,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
100836
102560
  order_source?: string | null;
100837
102561
  physical_after?: number | null;
100838
102562
  physical_before?: number | null;
102563
+ production_batch_id?: string | null;
100839
102564
  qty_delta: number;
100840
102565
  reason?: string | null;
100841
102566
  reserved_after?: number | null;
@@ -100853,6 +102578,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
100853
102578
  order_source?: string | null;
100854
102579
  physical_after?: number | null;
100855
102580
  physical_before?: number | null;
102581
+ production_batch_id?: string | null;
100856
102582
  qty_delta?: number;
100857
102583
  reason?: string | null;
100858
102584
  reserved_after?: number | null;
@@ -103281,6 +105007,12 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
103281
105007
  processed_items: number;
103282
105008
  }[];
103283
105009
  };
105010
+ calculate_layer_stock: {
105011
+ Args: {
105012
+ p_product_id: string;
105013
+ };
105014
+ Returns: number;
105015
+ };
103284
105016
  call_exact_route: {
103285
105017
  Args: {
103286
105018
  path: string;
@@ -103340,6 +105072,28 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
103340
105072
  Args: never;
103341
105073
  Returns: undefined;
103342
105074
  };
105075
+ consume_bom_for_production: {
105076
+ Args: {
105077
+ p_connection_id: string;
105078
+ p_parent_id: string;
105079
+ p_parent_key: string;
105080
+ p_parent_kind: string;
105081
+ p_quantity: number;
105082
+ p_user_id: string;
105083
+ };
105084
+ Returns: import("../integrations/supabase/types").Json;
105085
+ } | {
105086
+ Args: {
105087
+ p_batch_id?: string;
105088
+ p_connection_id: string;
105089
+ p_parent_id: string;
105090
+ p_parent_key: string;
105091
+ p_parent_kind: string;
105092
+ p_quantity: number;
105093
+ p_user_id: string;
105094
+ };
105095
+ Returns: import("../integrations/supabase/types").Json;
105096
+ };
103343
105097
  consume_floriday_rate_limit: {
103344
105098
  Args: {
103345
105099
  p_bucket: string;
@@ -103397,6 +105151,13 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
103397
105151
  table_name: string;
103398
105152
  }[];
103399
105153
  };
105154
+ delete_samenstelling: {
105155
+ Args: {
105156
+ p_parent_id: string;
105157
+ p_parent_kind: string;
105158
+ };
105159
+ Returns: import("../integrations/supabase/types").Json;
105160
+ };
103400
105161
  dispatch_carrier_signups_sql: {
103401
105162
  Args: {
103402
105163
  _catchup?: string;
@@ -103652,6 +105413,12 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
103652
105413
  minutes_since_success: number;
103653
105414
  }[];
103654
105415
  };
105416
+ get_inventory_stock_for_key: {
105417
+ Args: {
105418
+ p_key: string;
105419
+ };
105420
+ Returns: number;
105421
+ };
103655
105422
  get_offer_by_link_code: {
103656
105423
  Args: {
103657
105424
  p_code: string;
@@ -103682,6 +105449,12 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
103682
105449
  };
103683
105450
  Returns: string;
103684
105451
  };
105452
+ get_product_group_available_stock: {
105453
+ Args: {
105454
+ p_group_id: string;
105455
+ };
105456
+ Returns: number;
105457
+ };
103685
105458
  get_room_busy_windows: {
103686
105459
  Args: {
103687
105460
  p_from: string;
@@ -103755,6 +105528,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
103755
105528
  list_monteurs: {
103756
105529
  Args: never;
103757
105530
  Returns: {
105531
+ avatar_url: string;
103758
105532
  display_name: string;
103759
105533
  email: string;
103760
105534
  id: string;
@@ -103892,6 +105666,14 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
103892
105666
  };
103893
105667
  Returns: undefined;
103894
105668
  };
105669
+ produce_designed_product: {
105670
+ Args: {
105671
+ p_parent_id: string;
105672
+ p_parent_kind: string;
105673
+ p_quantity: number;
105674
+ };
105675
+ Returns: import("../integrations/supabase/types").Json;
105676
+ };
103895
105677
  promote_trade_item_key: {
103896
105678
  Args: {
103897
105679
  p_new: string;
@@ -103966,6 +105748,16 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
103966
105748
  };
103967
105749
  Returns: number;
103968
105750
  };
105751
+ reverse_production: {
105752
+ Args: {
105753
+ p_connection_id?: string;
105754
+ p_parent_key: string;
105755
+ p_quantity: number;
105756
+ p_reason?: string;
105757
+ p_user_id?: string;
105758
+ };
105759
+ Returns: import("../integrations/supabase/types").Json;
105760
+ };
103969
105761
  schedule_floriday_additional_services_sync: {
103970
105762
  Args: {
103971
105763
  p_apikey: string;
@@ -104250,18 +106042,34 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
104250
106042
  };
104251
106043
  Returns: string[];
104252
106044
  };
106045
+ sync_all_layer_stocks: {
106046
+ Args: never;
106047
+ Returns: undefined;
106048
+ };
104253
106049
  sync_cached_packing_from_product: {
104254
106050
  Args: {
104255
106051
  p_product_id: string;
104256
106052
  };
104257
106053
  Returns: undefined;
104258
106054
  };
106055
+ sync_layer_stock: {
106056
+ Args: {
106057
+ p_product_id: string;
106058
+ };
106059
+ Returns: undefined;
106060
+ };
104259
106061
  sync_order_cart_item_packing_from_product: {
104260
106062
  Args: {
104261
106063
  p_product_id: string;
104262
106064
  };
104263
106065
  Returns: undefined;
104264
106066
  };
106067
+ sync_product_group_belading: {
106068
+ Args: {
106069
+ _group_id: string;
106070
+ };
106071
+ Returns: undefined;
106072
+ };
104265
106073
  sync_product_packing_from_floriday_cache: {
104266
106074
  Args: {
104267
106075
  p_floriday_id: string;
@@ -104298,7 +106106,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
104298
106106
  exact_push_status: "pending" | "sent" | "error";
104299
106107
  itk_customer_segment: "Business" | "Private";
104300
106108
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
104301
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
106109
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
104302
106110
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
104303
106111
  };
104304
106112
  CompositeTypes: { [_ in never]: never; };
@@ -112668,6 +114476,66 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
112668
114476
  referencedColumns: ["id"];
112669
114477
  }];
112670
114478
  };
114479
+ product_bom_items: {
114480
+ Row: {
114481
+ component_product_id: string | null;
114482
+ component_trade_item_floriday_id: string | null;
114483
+ created_at: string;
114484
+ id: string;
114485
+ notes: string | null;
114486
+ packing_configuration_id: string | null;
114487
+ parent_product_id: string | null;
114488
+ parent_trade_item_floriday_id: string | null;
114489
+ quantity: number;
114490
+ sort_order: number;
114491
+ tenant_id: string;
114492
+ unit: string;
114493
+ updated_at: string;
114494
+ };
114495
+ Insert: {
114496
+ component_product_id?: string | null;
114497
+ component_trade_item_floriday_id?: string | null;
114498
+ created_at?: string;
114499
+ id?: string;
114500
+ notes?: string | null;
114501
+ packing_configuration_id?: string | null;
114502
+ parent_product_id?: string | null;
114503
+ parent_trade_item_floriday_id?: string | null;
114504
+ quantity?: number;
114505
+ sort_order?: number;
114506
+ tenant_id: string;
114507
+ unit?: string;
114508
+ updated_at?: string;
114509
+ };
114510
+ Update: {
114511
+ component_product_id?: string | null;
114512
+ component_trade_item_floriday_id?: string | null;
114513
+ created_at?: string;
114514
+ id?: string;
114515
+ notes?: string | null;
114516
+ packing_configuration_id?: string | null;
114517
+ parent_product_id?: string | null;
114518
+ parent_trade_item_floriday_id?: string | null;
114519
+ quantity?: number;
114520
+ sort_order?: number;
114521
+ tenant_id?: string;
114522
+ unit?: string;
114523
+ updated_at?: string;
114524
+ };
114525
+ Relationships: [{
114526
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
114527
+ columns: ["component_product_id"];
114528
+ isOneToOne: false;
114529
+ referencedRelation: "products";
114530
+ referencedColumns: ["id"];
114531
+ }, {
114532
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
114533
+ columns: ["parent_product_id"];
114534
+ isOneToOne: false;
114535
+ referencedRelation: "products";
114536
+ referencedColumns: ["id"];
114537
+ }];
114538
+ };
112671
114539
  product_categories: {
112672
114540
  Row: {
112673
114541
  color: string;
@@ -112773,6 +114641,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
112773
114641
  id: string;
112774
114642
  product_group_id: string;
112775
114643
  quantity: number;
114644
+ sort_order: number;
112776
114645
  trade_item_id: string;
112777
114646
  };
112778
114647
  Insert: {
@@ -112780,6 +114649,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
112780
114649
  id?: string;
112781
114650
  product_group_id: string;
112782
114651
  quantity?: number;
114652
+ sort_order?: number;
112783
114653
  trade_item_id: string;
112784
114654
  };
112785
114655
  Update: {
@@ -112787,6 +114657,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
112787
114657
  id?: string;
112788
114658
  product_group_id?: string;
112789
114659
  quantity?: number;
114660
+ sort_order?: number;
112790
114661
  trade_item_id?: string;
112791
114662
  };
112792
114663
  Relationships: [{
@@ -112839,16 +114710,85 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
112839
114710
  referencedColumns: ["id"];
112840
114711
  }];
112841
114712
  };
114713
+ product_load_settings: {
114714
+ Row: {
114715
+ created_at: string;
114716
+ id: string;
114717
+ is_package: boolean;
114718
+ label: string | null;
114719
+ layers_per_load_carrier: number | null;
114720
+ load_carrier: string | null;
114721
+ package_id: string | null;
114722
+ package_label: string | null;
114723
+ packages_per_layer: number | null;
114724
+ packing_configuration_id: string;
114725
+ product_id: string | null;
114726
+ tenant_id: string;
114727
+ trade_item_floriday_id: string | null;
114728
+ units_per_package: number | null;
114729
+ updated_at: string;
114730
+ };
114731
+ Insert: {
114732
+ created_at?: string;
114733
+ id?: string;
114734
+ is_package?: boolean;
114735
+ label?: string | null;
114736
+ layers_per_load_carrier?: number | null;
114737
+ load_carrier?: string | null;
114738
+ package_id?: string | null;
114739
+ package_label?: string | null;
114740
+ packages_per_layer?: number | null;
114741
+ packing_configuration_id?: string;
114742
+ product_id?: string | null;
114743
+ tenant_id: string;
114744
+ trade_item_floriday_id?: string | null;
114745
+ units_per_package?: number | null;
114746
+ updated_at?: string;
114747
+ };
114748
+ Update: {
114749
+ created_at?: string;
114750
+ id?: string;
114751
+ is_package?: boolean;
114752
+ label?: string | null;
114753
+ layers_per_load_carrier?: number | null;
114754
+ load_carrier?: string | null;
114755
+ package_id?: string | null;
114756
+ package_label?: string | null;
114757
+ packages_per_layer?: number | null;
114758
+ packing_configuration_id?: string;
114759
+ product_id?: string | null;
114760
+ tenant_id?: string;
114761
+ trade_item_floriday_id?: string | null;
114762
+ units_per_package?: number | null;
114763
+ updated_at?: string;
114764
+ };
114765
+ Relationships: [{
114766
+ foreignKeyName: "product_load_settings_package_id_fkey";
114767
+ columns: ["package_id"];
114768
+ isOneToOne: false;
114769
+ referencedRelation: "packages";
114770
+ referencedColumns: ["id"];
114771
+ }, {
114772
+ foreignKeyName: "product_load_settings_product_id_fkey";
114773
+ columns: ["product_id"];
114774
+ isOneToOne: false;
114775
+ referencedRelation: "products";
114776
+ referencedColumns: ["id"];
114777
+ }];
114778
+ };
112842
114779
  products: {
112843
114780
  Row: {
114781
+ article_number: string | null;
112844
114782
  barcode: string | null;
112845
114783
  batch: string;
112846
114784
  crates_per_layer: number;
112847
114785
  created_at: string;
112848
114786
  custom_fields: import("../integrations/supabase/types").Json;
114787
+ floriday_trade_item_id: string | null;
112849
114788
  id: string;
112850
114789
  image_url: string | null;
112851
114790
  incoming_quantity: number;
114791
+ is_layer: boolean;
112852
114792
  layers_per_cart: number;
112853
114793
  location: string;
112854
114794
  min_quantity: number;
@@ -112864,14 +114804,17 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
112864
114804
  weight: string | null;
112865
114805
  };
112866
114806
  Insert: {
114807
+ article_number?: string | null;
112867
114808
  barcode?: string | null;
112868
114809
  batch: string;
112869
114810
  crates_per_layer?: number;
112870
114811
  created_at?: string;
112871
114812
  custom_fields?: import("../integrations/supabase/types").Json;
114813
+ floriday_trade_item_id?: string | null;
112872
114814
  id?: string;
112873
114815
  image_url?: string | null;
112874
114816
  incoming_quantity?: number;
114817
+ is_layer?: boolean;
112875
114818
  layers_per_cart?: number;
112876
114819
  location: string;
112877
114820
  min_quantity?: number;
@@ -112887,14 +114830,17 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
112887
114830
  weight?: string | null;
112888
114831
  };
112889
114832
  Update: {
114833
+ article_number?: string | null;
112890
114834
  barcode?: string | null;
112891
114835
  batch?: string;
112892
114836
  crates_per_layer?: number;
112893
114837
  created_at?: string;
112894
114838
  custom_fields?: import("../integrations/supabase/types").Json;
114839
+ floriday_trade_item_id?: string | null;
112895
114840
  id?: string;
112896
114841
  image_url?: string | null;
112897
114842
  incoming_quantity?: number;
114843
+ is_layer?: boolean;
112898
114844
  layers_per_cart?: number;
112899
114845
  location?: string;
112900
114846
  min_quantity?: number;
@@ -112914,6 +114860,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
112914
114860
  profiles: {
112915
114861
  Row: {
112916
114862
  address: string | null;
114863
+ avatar_url: string | null;
112917
114864
  created_at: string;
112918
114865
  display_name: string | null;
112919
114866
  email: string | null;
@@ -112925,6 +114872,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
112925
114872
  };
112926
114873
  Insert: {
112927
114874
  address?: string | null;
114875
+ avatar_url?: string | null;
112928
114876
  created_at?: string;
112929
114877
  display_name?: string | null;
112930
114878
  email?: string | null;
@@ -112936,6 +114884,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
112936
114884
  };
112937
114885
  Update: {
112938
114886
  address?: string | null;
114887
+ avatar_url?: string | null;
112939
114888
  created_at?: string;
112940
114889
  display_name?: string | null;
112941
114890
  email?: string | null;
@@ -113802,6 +115751,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
113802
115751
  order_source: string | null;
113803
115752
  physical_after: number | null;
113804
115753
  physical_before: number | null;
115754
+ production_batch_id: string | null;
113805
115755
  qty_delta: number;
113806
115756
  reason: string | null;
113807
115757
  reserved_after: number | null;
@@ -113819,6 +115769,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
113819
115769
  order_source?: string | null;
113820
115770
  physical_after?: number | null;
113821
115771
  physical_before?: number | null;
115772
+ production_batch_id?: string | null;
113822
115773
  qty_delta: number;
113823
115774
  reason?: string | null;
113824
115775
  reserved_after?: number | null;
@@ -113836,6 +115787,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
113836
115787
  order_source?: string | null;
113837
115788
  physical_after?: number | null;
113838
115789
  physical_before?: number | null;
115790
+ production_batch_id?: string | null;
113839
115791
  qty_delta?: number;
113840
115792
  reason?: string | null;
113841
115793
  reserved_after?: number | null;
@@ -116264,6 +118216,12 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
116264
118216
  processed_items: number;
116265
118217
  }[];
116266
118218
  };
118219
+ calculate_layer_stock: {
118220
+ Args: {
118221
+ p_product_id: string;
118222
+ };
118223
+ Returns: number;
118224
+ };
116267
118225
  call_exact_route: {
116268
118226
  Args: {
116269
118227
  path: string;
@@ -116323,6 +118281,28 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
116323
118281
  Args: never;
116324
118282
  Returns: undefined;
116325
118283
  };
118284
+ consume_bom_for_production: {
118285
+ Args: {
118286
+ p_connection_id: string;
118287
+ p_parent_id: string;
118288
+ p_parent_key: string;
118289
+ p_parent_kind: string;
118290
+ p_quantity: number;
118291
+ p_user_id: string;
118292
+ };
118293
+ Returns: import("../integrations/supabase/types").Json;
118294
+ } | {
118295
+ Args: {
118296
+ p_batch_id?: string;
118297
+ p_connection_id: string;
118298
+ p_parent_id: string;
118299
+ p_parent_key: string;
118300
+ p_parent_kind: string;
118301
+ p_quantity: number;
118302
+ p_user_id: string;
118303
+ };
118304
+ Returns: import("../integrations/supabase/types").Json;
118305
+ };
116326
118306
  consume_floriday_rate_limit: {
116327
118307
  Args: {
116328
118308
  p_bucket: string;
@@ -116380,6 +118360,13 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
116380
118360
  table_name: string;
116381
118361
  }[];
116382
118362
  };
118363
+ delete_samenstelling: {
118364
+ Args: {
118365
+ p_parent_id: string;
118366
+ p_parent_kind: string;
118367
+ };
118368
+ Returns: import("../integrations/supabase/types").Json;
118369
+ };
116383
118370
  dispatch_carrier_signups_sql: {
116384
118371
  Args: {
116385
118372
  _catchup?: string;
@@ -116635,6 +118622,12 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
116635
118622
  minutes_since_success: number;
116636
118623
  }[];
116637
118624
  };
118625
+ get_inventory_stock_for_key: {
118626
+ Args: {
118627
+ p_key: string;
118628
+ };
118629
+ Returns: number;
118630
+ };
116638
118631
  get_offer_by_link_code: {
116639
118632
  Args: {
116640
118633
  p_code: string;
@@ -116665,6 +118658,12 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
116665
118658
  };
116666
118659
  Returns: string;
116667
118660
  };
118661
+ get_product_group_available_stock: {
118662
+ Args: {
118663
+ p_group_id: string;
118664
+ };
118665
+ Returns: number;
118666
+ };
116668
118667
  get_room_busy_windows: {
116669
118668
  Args: {
116670
118669
  p_from: string;
@@ -116738,6 +118737,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
116738
118737
  list_monteurs: {
116739
118738
  Args: never;
116740
118739
  Returns: {
118740
+ avatar_url: string;
116741
118741
  display_name: string;
116742
118742
  email: string;
116743
118743
  id: string;
@@ -116875,6 +118875,14 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
116875
118875
  };
116876
118876
  Returns: undefined;
116877
118877
  };
118878
+ produce_designed_product: {
118879
+ Args: {
118880
+ p_parent_id: string;
118881
+ p_parent_kind: string;
118882
+ p_quantity: number;
118883
+ };
118884
+ Returns: import("../integrations/supabase/types").Json;
118885
+ };
116878
118886
  promote_trade_item_key: {
116879
118887
  Args: {
116880
118888
  p_new: string;
@@ -116949,6 +118957,16 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
116949
118957
  };
116950
118958
  Returns: number;
116951
118959
  };
118960
+ reverse_production: {
118961
+ Args: {
118962
+ p_connection_id?: string;
118963
+ p_parent_key: string;
118964
+ p_quantity: number;
118965
+ p_reason?: string;
118966
+ p_user_id?: string;
118967
+ };
118968
+ Returns: import("../integrations/supabase/types").Json;
118969
+ };
116952
118970
  schedule_floriday_additional_services_sync: {
116953
118971
  Args: {
116954
118972
  p_apikey: string;
@@ -117233,18 +119251,34 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
117233
119251
  };
117234
119252
  Returns: string[];
117235
119253
  };
119254
+ sync_all_layer_stocks: {
119255
+ Args: never;
119256
+ Returns: undefined;
119257
+ };
117236
119258
  sync_cached_packing_from_product: {
117237
119259
  Args: {
117238
119260
  p_product_id: string;
117239
119261
  };
117240
119262
  Returns: undefined;
117241
119263
  };
119264
+ sync_layer_stock: {
119265
+ Args: {
119266
+ p_product_id: string;
119267
+ };
119268
+ Returns: undefined;
119269
+ };
117242
119270
  sync_order_cart_item_packing_from_product: {
117243
119271
  Args: {
117244
119272
  p_product_id: string;
117245
119273
  };
117246
119274
  Returns: undefined;
117247
119275
  };
119276
+ sync_product_group_belading: {
119277
+ Args: {
119278
+ _group_id: string;
119279
+ };
119280
+ Returns: undefined;
119281
+ };
117248
119282
  sync_product_packing_from_floriday_cache: {
117249
119283
  Args: {
117250
119284
  p_floriday_id: string;
@@ -117281,7 +119315,7 @@ export declare const bulkImportCustomers: import("@tanstack/start-client-core").
117281
119315
  exact_push_status: "pending" | "sent" | "error";
117282
119316
  itk_customer_segment: "Business" | "Private";
117283
119317
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
117284
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
119318
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
117285
119319
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
117286
119320
  };
117287
119321
  CompositeTypes: { [_ in never]: never; };