@flowselections/floriday-klanten-module 1.0.19 → 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 +228 -2
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.d.ts +228 -2
  16. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +228 -2
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +235 -3
  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 +684 -6
  23. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/accounting.functions.d.ts +684 -6
  25. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/customer-analytics.functions.d.ts +228 -2
  27. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/customers.functions.d.ts +2052 -18
  29. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/delivery-locations.functions.d.ts +912 -8
  31. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/external-customers.functions.d.ts +912 -8
  33. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-assortment.functions.d.ts +228 -2
  35. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-discounts.functions.d.ts +456 -4
  37. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-trade-items.functions.d.ts +228 -2
  39. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/local-discounts.functions.d.ts +1596 -14
  41. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/overdue-invoices.functions.d.ts +228 -2
  43. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/price-groups-local.functions.d.ts +1596 -14
  45. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/price-groups.functions.d.ts +228 -2
  47. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  48. package/package.json +7 -7
@@ -8381,6 +8381,66 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
8381
8381
  referencedColumns: ["id"];
8382
8382
  }];
8383
8383
  };
8384
+ product_bom_items: {
8385
+ Row: {
8386
+ component_product_id: string | null;
8387
+ component_trade_item_floriday_id: string | null;
8388
+ created_at: string;
8389
+ id: string;
8390
+ notes: string | null;
8391
+ packing_configuration_id: string | null;
8392
+ parent_product_id: string | null;
8393
+ parent_trade_item_floriday_id: string | null;
8394
+ quantity: number;
8395
+ sort_order: number;
8396
+ tenant_id: string;
8397
+ unit: string;
8398
+ updated_at: string;
8399
+ };
8400
+ Insert: {
8401
+ component_product_id?: string | null;
8402
+ component_trade_item_floriday_id?: string | null;
8403
+ created_at?: string;
8404
+ id?: string;
8405
+ notes?: string | null;
8406
+ packing_configuration_id?: string | null;
8407
+ parent_product_id?: string | null;
8408
+ parent_trade_item_floriday_id?: string | null;
8409
+ quantity?: number;
8410
+ sort_order?: number;
8411
+ tenant_id: string;
8412
+ unit?: string;
8413
+ updated_at?: string;
8414
+ };
8415
+ Update: {
8416
+ component_product_id?: string | null;
8417
+ component_trade_item_floriday_id?: string | null;
8418
+ created_at?: string;
8419
+ id?: string;
8420
+ notes?: string | null;
8421
+ packing_configuration_id?: string | null;
8422
+ parent_product_id?: string | null;
8423
+ parent_trade_item_floriday_id?: string | null;
8424
+ quantity?: number;
8425
+ sort_order?: number;
8426
+ tenant_id?: string;
8427
+ unit?: string;
8428
+ updated_at?: string;
8429
+ };
8430
+ Relationships: [{
8431
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8432
+ columns: ["component_product_id"];
8433
+ isOneToOne: false;
8434
+ referencedRelation: "products";
8435
+ referencedColumns: ["id"];
8436
+ }, {
8437
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8438
+ columns: ["parent_product_id"];
8439
+ isOneToOne: false;
8440
+ referencedRelation: "products";
8441
+ referencedColumns: ["id"];
8442
+ }];
8443
+ };
8384
8444
  product_categories: {
8385
8445
  Row: {
8386
8446
  color: string;
@@ -8486,6 +8546,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
8486
8546
  id: string;
8487
8547
  product_group_id: string;
8488
8548
  quantity: number;
8549
+ sort_order: number;
8489
8550
  trade_item_id: string;
8490
8551
  };
8491
8552
  Insert: {
@@ -8493,6 +8554,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
8493
8554
  id?: string;
8494
8555
  product_group_id: string;
8495
8556
  quantity?: number;
8557
+ sort_order?: number;
8496
8558
  trade_item_id: string;
8497
8559
  };
8498
8560
  Update: {
@@ -8500,6 +8562,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
8500
8562
  id?: string;
8501
8563
  product_group_id?: string;
8502
8564
  quantity?: number;
8565
+ sort_order?: number;
8503
8566
  trade_item_id?: string;
8504
8567
  };
8505
8568
  Relationships: [{
@@ -8552,16 +8615,85 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
8552
8615
  referencedColumns: ["id"];
8553
8616
  }];
8554
8617
  };
8618
+ product_load_settings: {
8619
+ Row: {
8620
+ created_at: string;
8621
+ id: string;
8622
+ is_package: boolean;
8623
+ label: string | null;
8624
+ layers_per_load_carrier: number | null;
8625
+ load_carrier: string | null;
8626
+ package_id: string | null;
8627
+ package_label: string | null;
8628
+ packages_per_layer: number | null;
8629
+ packing_configuration_id: string;
8630
+ product_id: string | null;
8631
+ tenant_id: string;
8632
+ trade_item_floriday_id: string | null;
8633
+ units_per_package: number | null;
8634
+ updated_at: string;
8635
+ };
8636
+ Insert: {
8637
+ created_at?: string;
8638
+ id?: string;
8639
+ is_package?: boolean;
8640
+ label?: string | null;
8641
+ layers_per_load_carrier?: number | null;
8642
+ load_carrier?: string | null;
8643
+ package_id?: string | null;
8644
+ package_label?: string | null;
8645
+ packages_per_layer?: number | null;
8646
+ packing_configuration_id?: string;
8647
+ product_id?: string | null;
8648
+ tenant_id: string;
8649
+ trade_item_floriday_id?: string | null;
8650
+ units_per_package?: number | null;
8651
+ updated_at?: string;
8652
+ };
8653
+ Update: {
8654
+ created_at?: string;
8655
+ id?: string;
8656
+ is_package?: boolean;
8657
+ label?: string | null;
8658
+ layers_per_load_carrier?: number | null;
8659
+ load_carrier?: string | null;
8660
+ package_id?: string | null;
8661
+ package_label?: string | null;
8662
+ packages_per_layer?: number | null;
8663
+ packing_configuration_id?: string;
8664
+ product_id?: string | null;
8665
+ tenant_id?: string;
8666
+ trade_item_floriday_id?: string | null;
8667
+ units_per_package?: number | null;
8668
+ updated_at?: string;
8669
+ };
8670
+ Relationships: [{
8671
+ foreignKeyName: "product_load_settings_package_id_fkey";
8672
+ columns: ["package_id"];
8673
+ isOneToOne: false;
8674
+ referencedRelation: "packages";
8675
+ referencedColumns: ["id"];
8676
+ }, {
8677
+ foreignKeyName: "product_load_settings_product_id_fkey";
8678
+ columns: ["product_id"];
8679
+ isOneToOne: false;
8680
+ referencedRelation: "products";
8681
+ referencedColumns: ["id"];
8682
+ }];
8683
+ };
8555
8684
  products: {
8556
8685
  Row: {
8686
+ article_number: string | null;
8557
8687
  barcode: string | null;
8558
8688
  batch: string;
8559
8689
  crates_per_layer: number;
8560
8690
  created_at: string;
8561
8691
  custom_fields: import("../integrations/supabase/types").Json;
8692
+ floriday_trade_item_id: string | null;
8562
8693
  id: string;
8563
8694
  image_url: string | null;
8564
8695
  incoming_quantity: number;
8696
+ is_layer: boolean;
8565
8697
  layers_per_cart: number;
8566
8698
  location: string;
8567
8699
  min_quantity: number;
@@ -8577,14 +8709,17 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
8577
8709
  weight: string | null;
8578
8710
  };
8579
8711
  Insert: {
8712
+ article_number?: string | null;
8580
8713
  barcode?: string | null;
8581
8714
  batch: string;
8582
8715
  crates_per_layer?: number;
8583
8716
  created_at?: string;
8584
8717
  custom_fields?: import("../integrations/supabase/types").Json;
8718
+ floriday_trade_item_id?: string | null;
8585
8719
  id?: string;
8586
8720
  image_url?: string | null;
8587
8721
  incoming_quantity?: number;
8722
+ is_layer?: boolean;
8588
8723
  layers_per_cart?: number;
8589
8724
  location: string;
8590
8725
  min_quantity?: number;
@@ -8600,14 +8735,17 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
8600
8735
  weight?: string | null;
8601
8736
  };
8602
8737
  Update: {
8738
+ article_number?: string | null;
8603
8739
  barcode?: string | null;
8604
8740
  batch?: string;
8605
8741
  crates_per_layer?: number;
8606
8742
  created_at?: string;
8607
8743
  custom_fields?: import("../integrations/supabase/types").Json;
8744
+ floriday_trade_item_id?: string | null;
8608
8745
  id?: string;
8609
8746
  image_url?: string | null;
8610
8747
  incoming_quantity?: number;
8748
+ is_layer?: boolean;
8611
8749
  layers_per_cart?: number;
8612
8750
  location?: string;
8613
8751
  min_quantity?: number;
@@ -8627,6 +8765,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
8627
8765
  profiles: {
8628
8766
  Row: {
8629
8767
  address: string | null;
8768
+ avatar_url: string | null;
8630
8769
  created_at: string;
8631
8770
  display_name: string | null;
8632
8771
  email: string | null;
@@ -8638,6 +8777,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
8638
8777
  };
8639
8778
  Insert: {
8640
8779
  address?: string | null;
8780
+ avatar_url?: string | null;
8641
8781
  created_at?: string;
8642
8782
  display_name?: string | null;
8643
8783
  email?: string | null;
@@ -8649,6 +8789,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
8649
8789
  };
8650
8790
  Update: {
8651
8791
  address?: string | null;
8792
+ avatar_url?: string | null;
8652
8793
  created_at?: string;
8653
8794
  display_name?: string | null;
8654
8795
  email?: string | null;
@@ -9515,6 +9656,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
9515
9656
  order_source: string | null;
9516
9657
  physical_after: number | null;
9517
9658
  physical_before: number | null;
9659
+ production_batch_id: string | null;
9518
9660
  qty_delta: number;
9519
9661
  reason: string | null;
9520
9662
  reserved_after: number | null;
@@ -9532,6 +9674,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
9532
9674
  order_source?: string | null;
9533
9675
  physical_after?: number | null;
9534
9676
  physical_before?: number | null;
9677
+ production_batch_id?: string | null;
9535
9678
  qty_delta: number;
9536
9679
  reason?: string | null;
9537
9680
  reserved_after?: number | null;
@@ -9549,6 +9692,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
9549
9692
  order_source?: string | null;
9550
9693
  physical_after?: number | null;
9551
9694
  physical_before?: number | null;
9695
+ production_batch_id?: string | null;
9552
9696
  qty_delta?: number;
9553
9697
  reason?: string | null;
9554
9698
  reserved_after?: number | null;
@@ -11977,6 +12121,12 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
11977
12121
  processed_items: number;
11978
12122
  }[];
11979
12123
  };
12124
+ calculate_layer_stock: {
12125
+ Args: {
12126
+ p_product_id: string;
12127
+ };
12128
+ Returns: number;
12129
+ };
11980
12130
  call_exact_route: {
11981
12131
  Args: {
11982
12132
  path: string;
@@ -12036,6 +12186,28 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
12036
12186
  Args: never;
12037
12187
  Returns: undefined;
12038
12188
  };
12189
+ consume_bom_for_production: {
12190
+ Args: {
12191
+ p_connection_id: string;
12192
+ p_parent_id: string;
12193
+ p_parent_key: string;
12194
+ p_parent_kind: string;
12195
+ p_quantity: number;
12196
+ p_user_id: string;
12197
+ };
12198
+ Returns: import("../integrations/supabase/types").Json;
12199
+ } | {
12200
+ Args: {
12201
+ p_batch_id?: string;
12202
+ p_connection_id: string;
12203
+ p_parent_id: string;
12204
+ p_parent_key: string;
12205
+ p_parent_kind: string;
12206
+ p_quantity: number;
12207
+ p_user_id: string;
12208
+ };
12209
+ Returns: import("../integrations/supabase/types").Json;
12210
+ };
12039
12211
  consume_floriday_rate_limit: {
12040
12212
  Args: {
12041
12213
  p_bucket: string;
@@ -12093,6 +12265,13 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
12093
12265
  table_name: string;
12094
12266
  }[];
12095
12267
  };
12268
+ delete_samenstelling: {
12269
+ Args: {
12270
+ p_parent_id: string;
12271
+ p_parent_kind: string;
12272
+ };
12273
+ Returns: import("../integrations/supabase/types").Json;
12274
+ };
12096
12275
  dispatch_carrier_signups_sql: {
12097
12276
  Args: {
12098
12277
  _catchup?: string;
@@ -12348,6 +12527,12 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
12348
12527
  minutes_since_success: number;
12349
12528
  }[];
12350
12529
  };
12530
+ get_inventory_stock_for_key: {
12531
+ Args: {
12532
+ p_key: string;
12533
+ };
12534
+ Returns: number;
12535
+ };
12351
12536
  get_offer_by_link_code: {
12352
12537
  Args: {
12353
12538
  p_code: string;
@@ -12378,6 +12563,12 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
12378
12563
  };
12379
12564
  Returns: string;
12380
12565
  };
12566
+ get_product_group_available_stock: {
12567
+ Args: {
12568
+ p_group_id: string;
12569
+ };
12570
+ Returns: number;
12571
+ };
12381
12572
  get_room_busy_windows: {
12382
12573
  Args: {
12383
12574
  p_from: string;
@@ -12451,9 +12642,10 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
12451
12642
  list_monteurs: {
12452
12643
  Args: never;
12453
12644
  Returns: {
12645
+ avatar_url: string;
12454
12646
  display_name: string;
12455
12647
  email: string;
12456
- user_id: string;
12648
+ id: string;
12457
12649
  }[];
12458
12650
  };
12459
12651
  local_effective_price: {
@@ -12588,6 +12780,14 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
12588
12780
  };
12589
12781
  Returns: undefined;
12590
12782
  };
12783
+ produce_designed_product: {
12784
+ Args: {
12785
+ p_parent_id: string;
12786
+ p_parent_kind: string;
12787
+ p_quantity: number;
12788
+ };
12789
+ Returns: import("../integrations/supabase/types").Json;
12790
+ };
12591
12791
  promote_trade_item_key: {
12592
12792
  Args: {
12593
12793
  p_new: string;
@@ -12662,6 +12862,16 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
12662
12862
  };
12663
12863
  Returns: number;
12664
12864
  };
12865
+ reverse_production: {
12866
+ Args: {
12867
+ p_connection_id?: string;
12868
+ p_parent_key: string;
12869
+ p_quantity: number;
12870
+ p_reason?: string;
12871
+ p_user_id?: string;
12872
+ };
12873
+ Returns: import("../integrations/supabase/types").Json;
12874
+ };
12665
12875
  schedule_floriday_additional_services_sync: {
12666
12876
  Args: {
12667
12877
  p_apikey: string;
@@ -12946,18 +13156,34 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
12946
13156
  };
12947
13157
  Returns: string[];
12948
13158
  };
13159
+ sync_all_layer_stocks: {
13160
+ Args: never;
13161
+ Returns: undefined;
13162
+ };
12949
13163
  sync_cached_packing_from_product: {
12950
13164
  Args: {
12951
13165
  p_product_id: string;
12952
13166
  };
12953
13167
  Returns: undefined;
12954
13168
  };
13169
+ sync_layer_stock: {
13170
+ Args: {
13171
+ p_product_id: string;
13172
+ };
13173
+ Returns: undefined;
13174
+ };
12955
13175
  sync_order_cart_item_packing_from_product: {
12956
13176
  Args: {
12957
13177
  p_product_id: string;
12958
13178
  };
12959
13179
  Returns: undefined;
12960
13180
  };
13181
+ sync_product_group_belading: {
13182
+ Args: {
13183
+ _group_id: string;
13184
+ };
13185
+ Returns: undefined;
13186
+ };
12961
13187
  sync_product_packing_from_floriday_cache: {
12962
13188
  Args: {
12963
13189
  p_floriday_id: string;
@@ -12994,7 +13220,7 @@ export declare const listLocalCustomerDiscounts: import("@tanstack/start-client-
12994
13220
  exact_push_status: "pending" | "sent" | "error";
12995
13221
  itk_customer_segment: "Business" | "Private";
12996
13222
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
12997
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
13223
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
12998
13224
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
12999
13225
  };
13000
13226
  CompositeTypes: { [_ in never]: never; };
@@ -21364,6 +21590,66 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
21364
21590
  referencedColumns: ["id"];
21365
21591
  }];
21366
21592
  };
21593
+ product_bom_items: {
21594
+ Row: {
21595
+ component_product_id: string | null;
21596
+ component_trade_item_floriday_id: string | null;
21597
+ created_at: string;
21598
+ id: string;
21599
+ notes: string | null;
21600
+ packing_configuration_id: string | null;
21601
+ parent_product_id: string | null;
21602
+ parent_trade_item_floriday_id: string | null;
21603
+ quantity: number;
21604
+ sort_order: number;
21605
+ tenant_id: string;
21606
+ unit: string;
21607
+ updated_at: string;
21608
+ };
21609
+ Insert: {
21610
+ component_product_id?: string | null;
21611
+ component_trade_item_floriday_id?: string | null;
21612
+ created_at?: string;
21613
+ id?: string;
21614
+ notes?: string | null;
21615
+ packing_configuration_id?: string | null;
21616
+ parent_product_id?: string | null;
21617
+ parent_trade_item_floriday_id?: string | null;
21618
+ quantity?: number;
21619
+ sort_order?: number;
21620
+ tenant_id: string;
21621
+ unit?: string;
21622
+ updated_at?: string;
21623
+ };
21624
+ Update: {
21625
+ component_product_id?: string | null;
21626
+ component_trade_item_floriday_id?: string | null;
21627
+ created_at?: string;
21628
+ id?: string;
21629
+ notes?: string | null;
21630
+ packing_configuration_id?: string | null;
21631
+ parent_product_id?: string | null;
21632
+ parent_trade_item_floriday_id?: string | null;
21633
+ quantity?: number;
21634
+ sort_order?: number;
21635
+ tenant_id?: string;
21636
+ unit?: string;
21637
+ updated_at?: string;
21638
+ };
21639
+ Relationships: [{
21640
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
21641
+ columns: ["component_product_id"];
21642
+ isOneToOne: false;
21643
+ referencedRelation: "products";
21644
+ referencedColumns: ["id"];
21645
+ }, {
21646
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
21647
+ columns: ["parent_product_id"];
21648
+ isOneToOne: false;
21649
+ referencedRelation: "products";
21650
+ referencedColumns: ["id"];
21651
+ }];
21652
+ };
21367
21653
  product_categories: {
21368
21654
  Row: {
21369
21655
  color: string;
@@ -21469,6 +21755,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
21469
21755
  id: string;
21470
21756
  product_group_id: string;
21471
21757
  quantity: number;
21758
+ sort_order: number;
21472
21759
  trade_item_id: string;
21473
21760
  };
21474
21761
  Insert: {
@@ -21476,6 +21763,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
21476
21763
  id?: string;
21477
21764
  product_group_id: string;
21478
21765
  quantity?: number;
21766
+ sort_order?: number;
21479
21767
  trade_item_id: string;
21480
21768
  };
21481
21769
  Update: {
@@ -21483,6 +21771,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
21483
21771
  id?: string;
21484
21772
  product_group_id?: string;
21485
21773
  quantity?: number;
21774
+ sort_order?: number;
21486
21775
  trade_item_id?: string;
21487
21776
  };
21488
21777
  Relationships: [{
@@ -21535,16 +21824,85 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
21535
21824
  referencedColumns: ["id"];
21536
21825
  }];
21537
21826
  };
21827
+ product_load_settings: {
21828
+ Row: {
21829
+ created_at: string;
21830
+ id: string;
21831
+ is_package: boolean;
21832
+ label: string | null;
21833
+ layers_per_load_carrier: number | null;
21834
+ load_carrier: string | null;
21835
+ package_id: string | null;
21836
+ package_label: string | null;
21837
+ packages_per_layer: number | null;
21838
+ packing_configuration_id: string;
21839
+ product_id: string | null;
21840
+ tenant_id: string;
21841
+ trade_item_floriday_id: string | null;
21842
+ units_per_package: number | null;
21843
+ updated_at: string;
21844
+ };
21845
+ Insert: {
21846
+ created_at?: string;
21847
+ id?: string;
21848
+ is_package?: boolean;
21849
+ label?: string | null;
21850
+ layers_per_load_carrier?: number | null;
21851
+ load_carrier?: string | null;
21852
+ package_id?: string | null;
21853
+ package_label?: string | null;
21854
+ packages_per_layer?: number | null;
21855
+ packing_configuration_id?: string;
21856
+ product_id?: string | null;
21857
+ tenant_id: string;
21858
+ trade_item_floriday_id?: string | null;
21859
+ units_per_package?: number | null;
21860
+ updated_at?: string;
21861
+ };
21862
+ Update: {
21863
+ created_at?: string;
21864
+ id?: string;
21865
+ is_package?: boolean;
21866
+ label?: string | null;
21867
+ layers_per_load_carrier?: number | null;
21868
+ load_carrier?: string | null;
21869
+ package_id?: string | null;
21870
+ package_label?: string | null;
21871
+ packages_per_layer?: number | null;
21872
+ packing_configuration_id?: string;
21873
+ product_id?: string | null;
21874
+ tenant_id?: string;
21875
+ trade_item_floriday_id?: string | null;
21876
+ units_per_package?: number | null;
21877
+ updated_at?: string;
21878
+ };
21879
+ Relationships: [{
21880
+ foreignKeyName: "product_load_settings_package_id_fkey";
21881
+ columns: ["package_id"];
21882
+ isOneToOne: false;
21883
+ referencedRelation: "packages";
21884
+ referencedColumns: ["id"];
21885
+ }, {
21886
+ foreignKeyName: "product_load_settings_product_id_fkey";
21887
+ columns: ["product_id"];
21888
+ isOneToOne: false;
21889
+ referencedRelation: "products";
21890
+ referencedColumns: ["id"];
21891
+ }];
21892
+ };
21538
21893
  products: {
21539
21894
  Row: {
21895
+ article_number: string | null;
21540
21896
  barcode: string | null;
21541
21897
  batch: string;
21542
21898
  crates_per_layer: number;
21543
21899
  created_at: string;
21544
21900
  custom_fields: import("../integrations/supabase/types").Json;
21901
+ floriday_trade_item_id: string | null;
21545
21902
  id: string;
21546
21903
  image_url: string | null;
21547
21904
  incoming_quantity: number;
21905
+ is_layer: boolean;
21548
21906
  layers_per_cart: number;
21549
21907
  location: string;
21550
21908
  min_quantity: number;
@@ -21560,14 +21918,17 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
21560
21918
  weight: string | null;
21561
21919
  };
21562
21920
  Insert: {
21921
+ article_number?: string | null;
21563
21922
  barcode?: string | null;
21564
21923
  batch: string;
21565
21924
  crates_per_layer?: number;
21566
21925
  created_at?: string;
21567
21926
  custom_fields?: import("../integrations/supabase/types").Json;
21927
+ floriday_trade_item_id?: string | null;
21568
21928
  id?: string;
21569
21929
  image_url?: string | null;
21570
21930
  incoming_quantity?: number;
21931
+ is_layer?: boolean;
21571
21932
  layers_per_cart?: number;
21572
21933
  location: string;
21573
21934
  min_quantity?: number;
@@ -21583,14 +21944,17 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
21583
21944
  weight?: string | null;
21584
21945
  };
21585
21946
  Update: {
21947
+ article_number?: string | null;
21586
21948
  barcode?: string | null;
21587
21949
  batch?: string;
21588
21950
  crates_per_layer?: number;
21589
21951
  created_at?: string;
21590
21952
  custom_fields?: import("../integrations/supabase/types").Json;
21953
+ floriday_trade_item_id?: string | null;
21591
21954
  id?: string;
21592
21955
  image_url?: string | null;
21593
21956
  incoming_quantity?: number;
21957
+ is_layer?: boolean;
21594
21958
  layers_per_cart?: number;
21595
21959
  location?: string;
21596
21960
  min_quantity?: number;
@@ -21610,6 +21974,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
21610
21974
  profiles: {
21611
21975
  Row: {
21612
21976
  address: string | null;
21977
+ avatar_url: string | null;
21613
21978
  created_at: string;
21614
21979
  display_name: string | null;
21615
21980
  email: string | null;
@@ -21621,6 +21986,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
21621
21986
  };
21622
21987
  Insert: {
21623
21988
  address?: string | null;
21989
+ avatar_url?: string | null;
21624
21990
  created_at?: string;
21625
21991
  display_name?: string | null;
21626
21992
  email?: string | null;
@@ -21632,6 +21998,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
21632
21998
  };
21633
21999
  Update: {
21634
22000
  address?: string | null;
22001
+ avatar_url?: string | null;
21635
22002
  created_at?: string;
21636
22003
  display_name?: string | null;
21637
22004
  email?: string | null;
@@ -22498,6 +22865,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
22498
22865
  order_source: string | null;
22499
22866
  physical_after: number | null;
22500
22867
  physical_before: number | null;
22868
+ production_batch_id: string | null;
22501
22869
  qty_delta: number;
22502
22870
  reason: string | null;
22503
22871
  reserved_after: number | null;
@@ -22515,6 +22883,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
22515
22883
  order_source?: string | null;
22516
22884
  physical_after?: number | null;
22517
22885
  physical_before?: number | null;
22886
+ production_batch_id?: string | null;
22518
22887
  qty_delta: number;
22519
22888
  reason?: string | null;
22520
22889
  reserved_after?: number | null;
@@ -22532,6 +22901,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
22532
22901
  order_source?: string | null;
22533
22902
  physical_after?: number | null;
22534
22903
  physical_before?: number | null;
22904
+ production_batch_id?: string | null;
22535
22905
  qty_delta?: number;
22536
22906
  reason?: string | null;
22537
22907
  reserved_after?: number | null;
@@ -24960,6 +25330,12 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
24960
25330
  processed_items: number;
24961
25331
  }[];
24962
25332
  };
25333
+ calculate_layer_stock: {
25334
+ Args: {
25335
+ p_product_id: string;
25336
+ };
25337
+ Returns: number;
25338
+ };
24963
25339
  call_exact_route: {
24964
25340
  Args: {
24965
25341
  path: string;
@@ -25019,6 +25395,28 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
25019
25395
  Args: never;
25020
25396
  Returns: undefined;
25021
25397
  };
25398
+ consume_bom_for_production: {
25399
+ Args: {
25400
+ p_connection_id: string;
25401
+ p_parent_id: string;
25402
+ p_parent_key: string;
25403
+ p_parent_kind: string;
25404
+ p_quantity: number;
25405
+ p_user_id: string;
25406
+ };
25407
+ Returns: import("../integrations/supabase/types").Json;
25408
+ } | {
25409
+ Args: {
25410
+ p_batch_id?: string;
25411
+ p_connection_id: string;
25412
+ p_parent_id: string;
25413
+ p_parent_key: string;
25414
+ p_parent_kind: string;
25415
+ p_quantity: number;
25416
+ p_user_id: string;
25417
+ };
25418
+ Returns: import("../integrations/supabase/types").Json;
25419
+ };
25022
25420
  consume_floriday_rate_limit: {
25023
25421
  Args: {
25024
25422
  p_bucket: string;
@@ -25076,6 +25474,13 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
25076
25474
  table_name: string;
25077
25475
  }[];
25078
25476
  };
25477
+ delete_samenstelling: {
25478
+ Args: {
25479
+ p_parent_id: string;
25480
+ p_parent_kind: string;
25481
+ };
25482
+ Returns: import("../integrations/supabase/types").Json;
25483
+ };
25079
25484
  dispatch_carrier_signups_sql: {
25080
25485
  Args: {
25081
25486
  _catchup?: string;
@@ -25331,6 +25736,12 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
25331
25736
  minutes_since_success: number;
25332
25737
  }[];
25333
25738
  };
25739
+ get_inventory_stock_for_key: {
25740
+ Args: {
25741
+ p_key: string;
25742
+ };
25743
+ Returns: number;
25744
+ };
25334
25745
  get_offer_by_link_code: {
25335
25746
  Args: {
25336
25747
  p_code: string;
@@ -25361,6 +25772,12 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
25361
25772
  };
25362
25773
  Returns: string;
25363
25774
  };
25775
+ get_product_group_available_stock: {
25776
+ Args: {
25777
+ p_group_id: string;
25778
+ };
25779
+ Returns: number;
25780
+ };
25364
25781
  get_room_busy_windows: {
25365
25782
  Args: {
25366
25783
  p_from: string;
@@ -25434,9 +25851,10 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
25434
25851
  list_monteurs: {
25435
25852
  Args: never;
25436
25853
  Returns: {
25854
+ avatar_url: string;
25437
25855
  display_name: string;
25438
25856
  email: string;
25439
- user_id: string;
25857
+ id: string;
25440
25858
  }[];
25441
25859
  };
25442
25860
  local_effective_price: {
@@ -25571,6 +25989,14 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
25571
25989
  };
25572
25990
  Returns: undefined;
25573
25991
  };
25992
+ produce_designed_product: {
25993
+ Args: {
25994
+ p_parent_id: string;
25995
+ p_parent_kind: string;
25996
+ p_quantity: number;
25997
+ };
25998
+ Returns: import("../integrations/supabase/types").Json;
25999
+ };
25574
26000
  promote_trade_item_key: {
25575
26001
  Args: {
25576
26002
  p_new: string;
@@ -25645,6 +26071,16 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
25645
26071
  };
25646
26072
  Returns: number;
25647
26073
  };
26074
+ reverse_production: {
26075
+ Args: {
26076
+ p_connection_id?: string;
26077
+ p_parent_key: string;
26078
+ p_quantity: number;
26079
+ p_reason?: string;
26080
+ p_user_id?: string;
26081
+ };
26082
+ Returns: import("../integrations/supabase/types").Json;
26083
+ };
25648
26084
  schedule_floriday_additional_services_sync: {
25649
26085
  Args: {
25650
26086
  p_apikey: string;
@@ -25929,18 +26365,34 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
25929
26365
  };
25930
26366
  Returns: string[];
25931
26367
  };
26368
+ sync_all_layer_stocks: {
26369
+ Args: never;
26370
+ Returns: undefined;
26371
+ };
25932
26372
  sync_cached_packing_from_product: {
25933
26373
  Args: {
25934
26374
  p_product_id: string;
25935
26375
  };
25936
26376
  Returns: undefined;
25937
26377
  };
26378
+ sync_layer_stock: {
26379
+ Args: {
26380
+ p_product_id: string;
26381
+ };
26382
+ Returns: undefined;
26383
+ };
25938
26384
  sync_order_cart_item_packing_from_product: {
25939
26385
  Args: {
25940
26386
  p_product_id: string;
25941
26387
  };
25942
26388
  Returns: undefined;
25943
26389
  };
26390
+ sync_product_group_belading: {
26391
+ Args: {
26392
+ _group_id: string;
26393
+ };
26394
+ Returns: undefined;
26395
+ };
25944
26396
  sync_product_packing_from_floriday_cache: {
25945
26397
  Args: {
25946
26398
  p_floriday_id: string;
@@ -25977,7 +26429,7 @@ export declare const getLocalEffectivePrice: import("@tanstack/start-client-core
25977
26429
  exact_push_status: "pending" | "sent" | "error";
25978
26430
  itk_customer_segment: "Business" | "Private";
25979
26431
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
25980
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
26432
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
25981
26433
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
25982
26434
  };
25983
26435
  CompositeTypes: { [_ in never]: never; };
@@ -34357,6 +34809,66 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
34357
34809
  referencedColumns: ["id"];
34358
34810
  }];
34359
34811
  };
34812
+ product_bom_items: {
34813
+ Row: {
34814
+ component_product_id: string | null;
34815
+ component_trade_item_floriday_id: string | null;
34816
+ created_at: string;
34817
+ id: string;
34818
+ notes: string | null;
34819
+ packing_configuration_id: string | null;
34820
+ parent_product_id: string | null;
34821
+ parent_trade_item_floriday_id: string | null;
34822
+ quantity: number;
34823
+ sort_order: number;
34824
+ tenant_id: string;
34825
+ unit: string;
34826
+ updated_at: string;
34827
+ };
34828
+ Insert: {
34829
+ component_product_id?: string | null;
34830
+ component_trade_item_floriday_id?: string | null;
34831
+ created_at?: string;
34832
+ id?: string;
34833
+ notes?: string | null;
34834
+ packing_configuration_id?: string | null;
34835
+ parent_product_id?: string | null;
34836
+ parent_trade_item_floriday_id?: string | null;
34837
+ quantity?: number;
34838
+ sort_order?: number;
34839
+ tenant_id: string;
34840
+ unit?: string;
34841
+ updated_at?: string;
34842
+ };
34843
+ Update: {
34844
+ component_product_id?: string | null;
34845
+ component_trade_item_floriday_id?: string | null;
34846
+ created_at?: string;
34847
+ id?: string;
34848
+ notes?: string | null;
34849
+ packing_configuration_id?: string | null;
34850
+ parent_product_id?: string | null;
34851
+ parent_trade_item_floriday_id?: string | null;
34852
+ quantity?: number;
34853
+ sort_order?: number;
34854
+ tenant_id?: string;
34855
+ unit?: string;
34856
+ updated_at?: string;
34857
+ };
34858
+ Relationships: [{
34859
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
34860
+ columns: ["component_product_id"];
34861
+ isOneToOne: false;
34862
+ referencedRelation: "products";
34863
+ referencedColumns: ["id"];
34864
+ }, {
34865
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
34866
+ columns: ["parent_product_id"];
34867
+ isOneToOne: false;
34868
+ referencedRelation: "products";
34869
+ referencedColumns: ["id"];
34870
+ }];
34871
+ };
34360
34872
  product_categories: {
34361
34873
  Row: {
34362
34874
  color: string;
@@ -34462,6 +34974,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
34462
34974
  id: string;
34463
34975
  product_group_id: string;
34464
34976
  quantity: number;
34977
+ sort_order: number;
34465
34978
  trade_item_id: string;
34466
34979
  };
34467
34980
  Insert: {
@@ -34469,6 +34982,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
34469
34982
  id?: string;
34470
34983
  product_group_id: string;
34471
34984
  quantity?: number;
34985
+ sort_order?: number;
34472
34986
  trade_item_id: string;
34473
34987
  };
34474
34988
  Update: {
@@ -34476,6 +34990,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
34476
34990
  id?: string;
34477
34991
  product_group_id?: string;
34478
34992
  quantity?: number;
34993
+ sort_order?: number;
34479
34994
  trade_item_id?: string;
34480
34995
  };
34481
34996
  Relationships: [{
@@ -34528,16 +35043,85 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
34528
35043
  referencedColumns: ["id"];
34529
35044
  }];
34530
35045
  };
35046
+ product_load_settings: {
35047
+ Row: {
35048
+ created_at: string;
35049
+ id: string;
35050
+ is_package: boolean;
35051
+ label: string | null;
35052
+ layers_per_load_carrier: number | null;
35053
+ load_carrier: string | null;
35054
+ package_id: string | null;
35055
+ package_label: string | null;
35056
+ packages_per_layer: number | null;
35057
+ packing_configuration_id: string;
35058
+ product_id: string | null;
35059
+ tenant_id: string;
35060
+ trade_item_floriday_id: string | null;
35061
+ units_per_package: number | null;
35062
+ updated_at: string;
35063
+ };
35064
+ Insert: {
35065
+ created_at?: string;
35066
+ id?: string;
35067
+ is_package?: boolean;
35068
+ label?: string | null;
35069
+ layers_per_load_carrier?: number | null;
35070
+ load_carrier?: string | null;
35071
+ package_id?: string | null;
35072
+ package_label?: string | null;
35073
+ packages_per_layer?: number | null;
35074
+ packing_configuration_id?: string;
35075
+ product_id?: string | null;
35076
+ tenant_id: string;
35077
+ trade_item_floriday_id?: string | null;
35078
+ units_per_package?: number | null;
35079
+ updated_at?: string;
35080
+ };
35081
+ Update: {
35082
+ created_at?: string;
35083
+ id?: string;
35084
+ is_package?: boolean;
35085
+ label?: string | null;
35086
+ layers_per_load_carrier?: number | null;
35087
+ load_carrier?: string | null;
35088
+ package_id?: string | null;
35089
+ package_label?: string | null;
35090
+ packages_per_layer?: number | null;
35091
+ packing_configuration_id?: string;
35092
+ product_id?: string | null;
35093
+ tenant_id?: string;
35094
+ trade_item_floriday_id?: string | null;
35095
+ units_per_package?: number | null;
35096
+ updated_at?: string;
35097
+ };
35098
+ Relationships: [{
35099
+ foreignKeyName: "product_load_settings_package_id_fkey";
35100
+ columns: ["package_id"];
35101
+ isOneToOne: false;
35102
+ referencedRelation: "packages";
35103
+ referencedColumns: ["id"];
35104
+ }, {
35105
+ foreignKeyName: "product_load_settings_product_id_fkey";
35106
+ columns: ["product_id"];
35107
+ isOneToOne: false;
35108
+ referencedRelation: "products";
35109
+ referencedColumns: ["id"];
35110
+ }];
35111
+ };
34531
35112
  products: {
34532
35113
  Row: {
35114
+ article_number: string | null;
34533
35115
  barcode: string | null;
34534
35116
  batch: string;
34535
35117
  crates_per_layer: number;
34536
35118
  created_at: string;
34537
35119
  custom_fields: import("../integrations/supabase/types").Json;
35120
+ floriday_trade_item_id: string | null;
34538
35121
  id: string;
34539
35122
  image_url: string | null;
34540
35123
  incoming_quantity: number;
35124
+ is_layer: boolean;
34541
35125
  layers_per_cart: number;
34542
35126
  location: string;
34543
35127
  min_quantity: number;
@@ -34553,14 +35137,17 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
34553
35137
  weight: string | null;
34554
35138
  };
34555
35139
  Insert: {
35140
+ article_number?: string | null;
34556
35141
  barcode?: string | null;
34557
35142
  batch: string;
34558
35143
  crates_per_layer?: number;
34559
35144
  created_at?: string;
34560
35145
  custom_fields?: import("../integrations/supabase/types").Json;
35146
+ floriday_trade_item_id?: string | null;
34561
35147
  id?: string;
34562
35148
  image_url?: string | null;
34563
35149
  incoming_quantity?: number;
35150
+ is_layer?: boolean;
34564
35151
  layers_per_cart?: number;
34565
35152
  location: string;
34566
35153
  min_quantity?: number;
@@ -34576,14 +35163,17 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
34576
35163
  weight?: string | null;
34577
35164
  };
34578
35165
  Update: {
35166
+ article_number?: string | null;
34579
35167
  barcode?: string | null;
34580
35168
  batch?: string;
34581
35169
  crates_per_layer?: number;
34582
35170
  created_at?: string;
34583
35171
  custom_fields?: import("../integrations/supabase/types").Json;
35172
+ floriday_trade_item_id?: string | null;
34584
35173
  id?: string;
34585
35174
  image_url?: string | null;
34586
35175
  incoming_quantity?: number;
35176
+ is_layer?: boolean;
34587
35177
  layers_per_cart?: number;
34588
35178
  location?: string;
34589
35179
  min_quantity?: number;
@@ -34603,6 +35193,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
34603
35193
  profiles: {
34604
35194
  Row: {
34605
35195
  address: string | null;
35196
+ avatar_url: string | null;
34606
35197
  created_at: string;
34607
35198
  display_name: string | null;
34608
35199
  email: string | null;
@@ -34614,6 +35205,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
34614
35205
  };
34615
35206
  Insert: {
34616
35207
  address?: string | null;
35208
+ avatar_url?: string | null;
34617
35209
  created_at?: string;
34618
35210
  display_name?: string | null;
34619
35211
  email?: string | null;
@@ -34625,6 +35217,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
34625
35217
  };
34626
35218
  Update: {
34627
35219
  address?: string | null;
35220
+ avatar_url?: string | null;
34628
35221
  created_at?: string;
34629
35222
  display_name?: string | null;
34630
35223
  email?: string | null;
@@ -35491,6 +36084,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
35491
36084
  order_source: string | null;
35492
36085
  physical_after: number | null;
35493
36086
  physical_before: number | null;
36087
+ production_batch_id: string | null;
35494
36088
  qty_delta: number;
35495
36089
  reason: string | null;
35496
36090
  reserved_after: number | null;
@@ -35508,6 +36102,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
35508
36102
  order_source?: string | null;
35509
36103
  physical_after?: number | null;
35510
36104
  physical_before?: number | null;
36105
+ production_batch_id?: string | null;
35511
36106
  qty_delta: number;
35512
36107
  reason?: string | null;
35513
36108
  reserved_after?: number | null;
@@ -35525,6 +36120,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
35525
36120
  order_source?: string | null;
35526
36121
  physical_after?: number | null;
35527
36122
  physical_before?: number | null;
36123
+ production_batch_id?: string | null;
35528
36124
  qty_delta?: number;
35529
36125
  reason?: string | null;
35530
36126
  reserved_after?: number | null;
@@ -37953,6 +38549,12 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
37953
38549
  processed_items: number;
37954
38550
  }[];
37955
38551
  };
38552
+ calculate_layer_stock: {
38553
+ Args: {
38554
+ p_product_id: string;
38555
+ };
38556
+ Returns: number;
38557
+ };
37956
38558
  call_exact_route: {
37957
38559
  Args: {
37958
38560
  path: string;
@@ -38012,6 +38614,28 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
38012
38614
  Args: never;
38013
38615
  Returns: undefined;
38014
38616
  };
38617
+ consume_bom_for_production: {
38618
+ Args: {
38619
+ p_connection_id: string;
38620
+ p_parent_id: string;
38621
+ p_parent_key: string;
38622
+ p_parent_kind: string;
38623
+ p_quantity: number;
38624
+ p_user_id: string;
38625
+ };
38626
+ Returns: import("../integrations/supabase/types").Json;
38627
+ } | {
38628
+ Args: {
38629
+ p_batch_id?: string;
38630
+ p_connection_id: string;
38631
+ p_parent_id: string;
38632
+ p_parent_key: string;
38633
+ p_parent_kind: string;
38634
+ p_quantity: number;
38635
+ p_user_id: string;
38636
+ };
38637
+ Returns: import("../integrations/supabase/types").Json;
38638
+ };
38015
38639
  consume_floriday_rate_limit: {
38016
38640
  Args: {
38017
38641
  p_bucket: string;
@@ -38069,6 +38693,13 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
38069
38693
  table_name: string;
38070
38694
  }[];
38071
38695
  };
38696
+ delete_samenstelling: {
38697
+ Args: {
38698
+ p_parent_id: string;
38699
+ p_parent_kind: string;
38700
+ };
38701
+ Returns: import("../integrations/supabase/types").Json;
38702
+ };
38072
38703
  dispatch_carrier_signups_sql: {
38073
38704
  Args: {
38074
38705
  _catchup?: string;
@@ -38324,6 +38955,12 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
38324
38955
  minutes_since_success: number;
38325
38956
  }[];
38326
38957
  };
38958
+ get_inventory_stock_for_key: {
38959
+ Args: {
38960
+ p_key: string;
38961
+ };
38962
+ Returns: number;
38963
+ };
38327
38964
  get_offer_by_link_code: {
38328
38965
  Args: {
38329
38966
  p_code: string;
@@ -38354,6 +38991,12 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
38354
38991
  };
38355
38992
  Returns: string;
38356
38993
  };
38994
+ get_product_group_available_stock: {
38995
+ Args: {
38996
+ p_group_id: string;
38997
+ };
38998
+ Returns: number;
38999
+ };
38357
39000
  get_room_busy_windows: {
38358
39001
  Args: {
38359
39002
  p_from: string;
@@ -38427,9 +39070,10 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
38427
39070
  list_monteurs: {
38428
39071
  Args: never;
38429
39072
  Returns: {
39073
+ avatar_url: string;
38430
39074
  display_name: string;
38431
39075
  email: string;
38432
- user_id: string;
39076
+ id: string;
38433
39077
  }[];
38434
39078
  };
38435
39079
  local_effective_price: {
@@ -38564,6 +39208,14 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
38564
39208
  };
38565
39209
  Returns: undefined;
38566
39210
  };
39211
+ produce_designed_product: {
39212
+ Args: {
39213
+ p_parent_id: string;
39214
+ p_parent_kind: string;
39215
+ p_quantity: number;
39216
+ };
39217
+ Returns: import("../integrations/supabase/types").Json;
39218
+ };
38567
39219
  promote_trade_item_key: {
38568
39220
  Args: {
38569
39221
  p_new: string;
@@ -38638,6 +39290,16 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
38638
39290
  };
38639
39291
  Returns: number;
38640
39292
  };
39293
+ reverse_production: {
39294
+ Args: {
39295
+ p_connection_id?: string;
39296
+ p_parent_key: string;
39297
+ p_quantity: number;
39298
+ p_reason?: string;
39299
+ p_user_id?: string;
39300
+ };
39301
+ Returns: import("../integrations/supabase/types").Json;
39302
+ };
38641
39303
  schedule_floriday_additional_services_sync: {
38642
39304
  Args: {
38643
39305
  p_apikey: string;
@@ -38922,18 +39584,34 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
38922
39584
  };
38923
39585
  Returns: string[];
38924
39586
  };
39587
+ sync_all_layer_stocks: {
39588
+ Args: never;
39589
+ Returns: undefined;
39590
+ };
38925
39591
  sync_cached_packing_from_product: {
38926
39592
  Args: {
38927
39593
  p_product_id: string;
38928
39594
  };
38929
39595
  Returns: undefined;
38930
39596
  };
39597
+ sync_layer_stock: {
39598
+ Args: {
39599
+ p_product_id: string;
39600
+ };
39601
+ Returns: undefined;
39602
+ };
38931
39603
  sync_order_cart_item_packing_from_product: {
38932
39604
  Args: {
38933
39605
  p_product_id: string;
38934
39606
  };
38935
39607
  Returns: undefined;
38936
39608
  };
39609
+ sync_product_group_belading: {
39610
+ Args: {
39611
+ _group_id: string;
39612
+ };
39613
+ Returns: undefined;
39614
+ };
38937
39615
  sync_product_packing_from_floriday_cache: {
38938
39616
  Args: {
38939
39617
  p_floriday_id: string;
@@ -38970,7 +39648,7 @@ export declare const upsertLocalAgreement: import("@tanstack/start-client-core")
38970
39648
  exact_push_status: "pending" | "sent" | "error";
38971
39649
  itk_customer_segment: "Business" | "Private";
38972
39650
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
38973
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
39651
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
38974
39652
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
38975
39653
  };
38976
39654
  CompositeTypes: { [_ in never]: never; };
@@ -47366,6 +48044,66 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
47366
48044
  referencedColumns: ["id"];
47367
48045
  }];
47368
48046
  };
48047
+ product_bom_items: {
48048
+ Row: {
48049
+ component_product_id: string | null;
48050
+ component_trade_item_floriday_id: string | null;
48051
+ created_at: string;
48052
+ id: string;
48053
+ notes: string | null;
48054
+ packing_configuration_id: string | null;
48055
+ parent_product_id: string | null;
48056
+ parent_trade_item_floriday_id: string | null;
48057
+ quantity: number;
48058
+ sort_order: number;
48059
+ tenant_id: string;
48060
+ unit: string;
48061
+ updated_at: string;
48062
+ };
48063
+ Insert: {
48064
+ component_product_id?: string | null;
48065
+ component_trade_item_floriday_id?: string | null;
48066
+ created_at?: string;
48067
+ id?: string;
48068
+ notes?: string | null;
48069
+ packing_configuration_id?: string | null;
48070
+ parent_product_id?: string | null;
48071
+ parent_trade_item_floriday_id?: string | null;
48072
+ quantity?: number;
48073
+ sort_order?: number;
48074
+ tenant_id: string;
48075
+ unit?: string;
48076
+ updated_at?: string;
48077
+ };
48078
+ Update: {
48079
+ component_product_id?: string | null;
48080
+ component_trade_item_floriday_id?: string | null;
48081
+ created_at?: string;
48082
+ id?: string;
48083
+ notes?: string | null;
48084
+ packing_configuration_id?: string | null;
48085
+ parent_product_id?: string | null;
48086
+ parent_trade_item_floriday_id?: string | null;
48087
+ quantity?: number;
48088
+ sort_order?: number;
48089
+ tenant_id?: string;
48090
+ unit?: string;
48091
+ updated_at?: string;
48092
+ };
48093
+ Relationships: [{
48094
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
48095
+ columns: ["component_product_id"];
48096
+ isOneToOne: false;
48097
+ referencedRelation: "products";
48098
+ referencedColumns: ["id"];
48099
+ }, {
48100
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
48101
+ columns: ["parent_product_id"];
48102
+ isOneToOne: false;
48103
+ referencedRelation: "products";
48104
+ referencedColumns: ["id"];
48105
+ }];
48106
+ };
47369
48107
  product_categories: {
47370
48108
  Row: {
47371
48109
  color: string;
@@ -47471,6 +48209,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
47471
48209
  id: string;
47472
48210
  product_group_id: string;
47473
48211
  quantity: number;
48212
+ sort_order: number;
47474
48213
  trade_item_id: string;
47475
48214
  };
47476
48215
  Insert: {
@@ -47478,6 +48217,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
47478
48217
  id?: string;
47479
48218
  product_group_id: string;
47480
48219
  quantity?: number;
48220
+ sort_order?: number;
47481
48221
  trade_item_id: string;
47482
48222
  };
47483
48223
  Update: {
@@ -47485,6 +48225,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
47485
48225
  id?: string;
47486
48226
  product_group_id?: string;
47487
48227
  quantity?: number;
48228
+ sort_order?: number;
47488
48229
  trade_item_id?: string;
47489
48230
  };
47490
48231
  Relationships: [{
@@ -47537,16 +48278,85 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
47537
48278
  referencedColumns: ["id"];
47538
48279
  }];
47539
48280
  };
48281
+ product_load_settings: {
48282
+ Row: {
48283
+ created_at: string;
48284
+ id: string;
48285
+ is_package: boolean;
48286
+ label: string | null;
48287
+ layers_per_load_carrier: number | null;
48288
+ load_carrier: string | null;
48289
+ package_id: string | null;
48290
+ package_label: string | null;
48291
+ packages_per_layer: number | null;
48292
+ packing_configuration_id: string;
48293
+ product_id: string | null;
48294
+ tenant_id: string;
48295
+ trade_item_floriday_id: string | null;
48296
+ units_per_package: number | null;
48297
+ updated_at: string;
48298
+ };
48299
+ Insert: {
48300
+ created_at?: string;
48301
+ id?: string;
48302
+ is_package?: boolean;
48303
+ label?: string | null;
48304
+ layers_per_load_carrier?: number | null;
48305
+ load_carrier?: string | null;
48306
+ package_id?: string | null;
48307
+ package_label?: string | null;
48308
+ packages_per_layer?: number | null;
48309
+ packing_configuration_id?: string;
48310
+ product_id?: string | null;
48311
+ tenant_id: string;
48312
+ trade_item_floriday_id?: string | null;
48313
+ units_per_package?: number | null;
48314
+ updated_at?: string;
48315
+ };
48316
+ Update: {
48317
+ created_at?: string;
48318
+ id?: string;
48319
+ is_package?: boolean;
48320
+ label?: string | null;
48321
+ layers_per_load_carrier?: number | null;
48322
+ load_carrier?: string | null;
48323
+ package_id?: string | null;
48324
+ package_label?: string | null;
48325
+ packages_per_layer?: number | null;
48326
+ packing_configuration_id?: string;
48327
+ product_id?: string | null;
48328
+ tenant_id?: string;
48329
+ trade_item_floriday_id?: string | null;
48330
+ units_per_package?: number | null;
48331
+ updated_at?: string;
48332
+ };
48333
+ Relationships: [{
48334
+ foreignKeyName: "product_load_settings_package_id_fkey";
48335
+ columns: ["package_id"];
48336
+ isOneToOne: false;
48337
+ referencedRelation: "packages";
48338
+ referencedColumns: ["id"];
48339
+ }, {
48340
+ foreignKeyName: "product_load_settings_product_id_fkey";
48341
+ columns: ["product_id"];
48342
+ isOneToOne: false;
48343
+ referencedRelation: "products";
48344
+ referencedColumns: ["id"];
48345
+ }];
48346
+ };
47540
48347
  products: {
47541
48348
  Row: {
48349
+ article_number: string | null;
47542
48350
  barcode: string | null;
47543
48351
  batch: string;
47544
48352
  crates_per_layer: number;
47545
48353
  created_at: string;
47546
48354
  custom_fields: import("../integrations/supabase/types").Json;
48355
+ floriday_trade_item_id: string | null;
47547
48356
  id: string;
47548
48357
  image_url: string | null;
47549
48358
  incoming_quantity: number;
48359
+ is_layer: boolean;
47550
48360
  layers_per_cart: number;
47551
48361
  location: string;
47552
48362
  min_quantity: number;
@@ -47562,14 +48372,17 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
47562
48372
  weight: string | null;
47563
48373
  };
47564
48374
  Insert: {
48375
+ article_number?: string | null;
47565
48376
  barcode?: string | null;
47566
48377
  batch: string;
47567
48378
  crates_per_layer?: number;
47568
48379
  created_at?: string;
47569
48380
  custom_fields?: import("../integrations/supabase/types").Json;
48381
+ floriday_trade_item_id?: string | null;
47570
48382
  id?: string;
47571
48383
  image_url?: string | null;
47572
48384
  incoming_quantity?: number;
48385
+ is_layer?: boolean;
47573
48386
  layers_per_cart?: number;
47574
48387
  location: string;
47575
48388
  min_quantity?: number;
@@ -47585,14 +48398,17 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
47585
48398
  weight?: string | null;
47586
48399
  };
47587
48400
  Update: {
48401
+ article_number?: string | null;
47588
48402
  barcode?: string | null;
47589
48403
  batch?: string;
47590
48404
  crates_per_layer?: number;
47591
48405
  created_at?: string;
47592
48406
  custom_fields?: import("../integrations/supabase/types").Json;
48407
+ floriday_trade_item_id?: string | null;
47593
48408
  id?: string;
47594
48409
  image_url?: string | null;
47595
48410
  incoming_quantity?: number;
48411
+ is_layer?: boolean;
47596
48412
  layers_per_cart?: number;
47597
48413
  location?: string;
47598
48414
  min_quantity?: number;
@@ -47612,6 +48428,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
47612
48428
  profiles: {
47613
48429
  Row: {
47614
48430
  address: string | null;
48431
+ avatar_url: string | null;
47615
48432
  created_at: string;
47616
48433
  display_name: string | null;
47617
48434
  email: string | null;
@@ -47623,6 +48440,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
47623
48440
  };
47624
48441
  Insert: {
47625
48442
  address?: string | null;
48443
+ avatar_url?: string | null;
47626
48444
  created_at?: string;
47627
48445
  display_name?: string | null;
47628
48446
  email?: string | null;
@@ -47634,6 +48452,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
47634
48452
  };
47635
48453
  Update: {
47636
48454
  address?: string | null;
48455
+ avatar_url?: string | null;
47637
48456
  created_at?: string;
47638
48457
  display_name?: string | null;
47639
48458
  email?: string | null;
@@ -48500,6 +49319,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
48500
49319
  order_source: string | null;
48501
49320
  physical_after: number | null;
48502
49321
  physical_before: number | null;
49322
+ production_batch_id: string | null;
48503
49323
  qty_delta: number;
48504
49324
  reason: string | null;
48505
49325
  reserved_after: number | null;
@@ -48517,6 +49337,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
48517
49337
  order_source?: string | null;
48518
49338
  physical_after?: number | null;
48519
49339
  physical_before?: number | null;
49340
+ production_batch_id?: string | null;
48520
49341
  qty_delta: number;
48521
49342
  reason?: string | null;
48522
49343
  reserved_after?: number | null;
@@ -48534,6 +49355,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
48534
49355
  order_source?: string | null;
48535
49356
  physical_after?: number | null;
48536
49357
  physical_before?: number | null;
49358
+ production_batch_id?: string | null;
48537
49359
  qty_delta?: number;
48538
49360
  reason?: string | null;
48539
49361
  reserved_after?: number | null;
@@ -50962,6 +51784,12 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
50962
51784
  processed_items: number;
50963
51785
  }[];
50964
51786
  };
51787
+ calculate_layer_stock: {
51788
+ Args: {
51789
+ p_product_id: string;
51790
+ };
51791
+ Returns: number;
51792
+ };
50965
51793
  call_exact_route: {
50966
51794
  Args: {
50967
51795
  path: string;
@@ -51021,6 +51849,28 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
51021
51849
  Args: never;
51022
51850
  Returns: undefined;
51023
51851
  };
51852
+ consume_bom_for_production: {
51853
+ Args: {
51854
+ p_connection_id: string;
51855
+ p_parent_id: string;
51856
+ p_parent_key: string;
51857
+ p_parent_kind: string;
51858
+ p_quantity: number;
51859
+ p_user_id: string;
51860
+ };
51861
+ Returns: import("../integrations/supabase/types").Json;
51862
+ } | {
51863
+ Args: {
51864
+ p_batch_id?: string;
51865
+ p_connection_id: string;
51866
+ p_parent_id: string;
51867
+ p_parent_key: string;
51868
+ p_parent_kind: string;
51869
+ p_quantity: number;
51870
+ p_user_id: string;
51871
+ };
51872
+ Returns: import("../integrations/supabase/types").Json;
51873
+ };
51024
51874
  consume_floriday_rate_limit: {
51025
51875
  Args: {
51026
51876
  p_bucket: string;
@@ -51078,6 +51928,13 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
51078
51928
  table_name: string;
51079
51929
  }[];
51080
51930
  };
51931
+ delete_samenstelling: {
51932
+ Args: {
51933
+ p_parent_id: string;
51934
+ p_parent_kind: string;
51935
+ };
51936
+ Returns: import("../integrations/supabase/types").Json;
51937
+ };
51081
51938
  dispatch_carrier_signups_sql: {
51082
51939
  Args: {
51083
51940
  _catchup?: string;
@@ -51333,6 +52190,12 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
51333
52190
  minutes_since_success: number;
51334
52191
  }[];
51335
52192
  };
52193
+ get_inventory_stock_for_key: {
52194
+ Args: {
52195
+ p_key: string;
52196
+ };
52197
+ Returns: number;
52198
+ };
51336
52199
  get_offer_by_link_code: {
51337
52200
  Args: {
51338
52201
  p_code: string;
@@ -51363,6 +52226,12 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
51363
52226
  };
51364
52227
  Returns: string;
51365
52228
  };
52229
+ get_product_group_available_stock: {
52230
+ Args: {
52231
+ p_group_id: string;
52232
+ };
52233
+ Returns: number;
52234
+ };
51366
52235
  get_room_busy_windows: {
51367
52236
  Args: {
51368
52237
  p_from: string;
@@ -51436,9 +52305,10 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
51436
52305
  list_monteurs: {
51437
52306
  Args: never;
51438
52307
  Returns: {
52308
+ avatar_url: string;
51439
52309
  display_name: string;
51440
52310
  email: string;
51441
- user_id: string;
52311
+ id: string;
51442
52312
  }[];
51443
52313
  };
51444
52314
  local_effective_price: {
@@ -51573,6 +52443,14 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
51573
52443
  };
51574
52444
  Returns: undefined;
51575
52445
  };
52446
+ produce_designed_product: {
52447
+ Args: {
52448
+ p_parent_id: string;
52449
+ p_parent_kind: string;
52450
+ p_quantity: number;
52451
+ };
52452
+ Returns: import("../integrations/supabase/types").Json;
52453
+ };
51576
52454
  promote_trade_item_key: {
51577
52455
  Args: {
51578
52456
  p_new: string;
@@ -51647,6 +52525,16 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
51647
52525
  };
51648
52526
  Returns: number;
51649
52527
  };
52528
+ reverse_production: {
52529
+ Args: {
52530
+ p_connection_id?: string;
52531
+ p_parent_key: string;
52532
+ p_quantity: number;
52533
+ p_reason?: string;
52534
+ p_user_id?: string;
52535
+ };
52536
+ Returns: import("../integrations/supabase/types").Json;
52537
+ };
51650
52538
  schedule_floriday_additional_services_sync: {
51651
52539
  Args: {
51652
52540
  p_apikey: string;
@@ -51931,18 +52819,34 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
51931
52819
  };
51932
52820
  Returns: string[];
51933
52821
  };
52822
+ sync_all_layer_stocks: {
52823
+ Args: never;
52824
+ Returns: undefined;
52825
+ };
51934
52826
  sync_cached_packing_from_product: {
51935
52827
  Args: {
51936
52828
  p_product_id: string;
51937
52829
  };
51938
52830
  Returns: undefined;
51939
52831
  };
52832
+ sync_layer_stock: {
52833
+ Args: {
52834
+ p_product_id: string;
52835
+ };
52836
+ Returns: undefined;
52837
+ };
51940
52838
  sync_order_cart_item_packing_from_product: {
51941
52839
  Args: {
51942
52840
  p_product_id: string;
51943
52841
  };
51944
52842
  Returns: undefined;
51945
52843
  };
52844
+ sync_product_group_belading: {
52845
+ Args: {
52846
+ _group_id: string;
52847
+ };
52848
+ Returns: undefined;
52849
+ };
51946
52850
  sync_product_packing_from_floriday_cache: {
51947
52851
  Args: {
51948
52852
  p_floriday_id: string;
@@ -51979,7 +52883,7 @@ export declare const upsertLocalSalesStrategy: import("@tanstack/start-client-co
51979
52883
  exact_push_status: "pending" | "sent" | "error";
51980
52884
  itk_customer_segment: "Business" | "Private";
51981
52885
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
51982
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
52886
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
51983
52887
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
51984
52888
  };
51985
52889
  CompositeTypes: { [_ in never]: never; };
@@ -60375,6 +61279,66 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
60375
61279
  referencedColumns: ["id"];
60376
61280
  }];
60377
61281
  };
61282
+ product_bom_items: {
61283
+ Row: {
61284
+ component_product_id: string | null;
61285
+ component_trade_item_floriday_id: string | null;
61286
+ created_at: string;
61287
+ id: string;
61288
+ notes: string | null;
61289
+ packing_configuration_id: string | null;
61290
+ parent_product_id: string | null;
61291
+ parent_trade_item_floriday_id: string | null;
61292
+ quantity: number;
61293
+ sort_order: number;
61294
+ tenant_id: string;
61295
+ unit: string;
61296
+ updated_at: string;
61297
+ };
61298
+ Insert: {
61299
+ component_product_id?: string | null;
61300
+ component_trade_item_floriday_id?: string | null;
61301
+ created_at?: string;
61302
+ id?: string;
61303
+ notes?: string | null;
61304
+ packing_configuration_id?: string | null;
61305
+ parent_product_id?: string | null;
61306
+ parent_trade_item_floriday_id?: string | null;
61307
+ quantity?: number;
61308
+ sort_order?: number;
61309
+ tenant_id: string;
61310
+ unit?: string;
61311
+ updated_at?: string;
61312
+ };
61313
+ Update: {
61314
+ component_product_id?: string | null;
61315
+ component_trade_item_floriday_id?: string | null;
61316
+ created_at?: string;
61317
+ id?: string;
61318
+ notes?: string | null;
61319
+ packing_configuration_id?: string | null;
61320
+ parent_product_id?: string | null;
61321
+ parent_trade_item_floriday_id?: string | null;
61322
+ quantity?: number;
61323
+ sort_order?: number;
61324
+ tenant_id?: string;
61325
+ unit?: string;
61326
+ updated_at?: string;
61327
+ };
61328
+ Relationships: [{
61329
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
61330
+ columns: ["component_product_id"];
61331
+ isOneToOne: false;
61332
+ referencedRelation: "products";
61333
+ referencedColumns: ["id"];
61334
+ }, {
61335
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
61336
+ columns: ["parent_product_id"];
61337
+ isOneToOne: false;
61338
+ referencedRelation: "products";
61339
+ referencedColumns: ["id"];
61340
+ }];
61341
+ };
60378
61342
  product_categories: {
60379
61343
  Row: {
60380
61344
  color: string;
@@ -60480,6 +61444,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
60480
61444
  id: string;
60481
61445
  product_group_id: string;
60482
61446
  quantity: number;
61447
+ sort_order: number;
60483
61448
  trade_item_id: string;
60484
61449
  };
60485
61450
  Insert: {
@@ -60487,6 +61452,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
60487
61452
  id?: string;
60488
61453
  product_group_id: string;
60489
61454
  quantity?: number;
61455
+ sort_order?: number;
60490
61456
  trade_item_id: string;
60491
61457
  };
60492
61458
  Update: {
@@ -60494,6 +61460,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
60494
61460
  id?: string;
60495
61461
  product_group_id?: string;
60496
61462
  quantity?: number;
61463
+ sort_order?: number;
60497
61464
  trade_item_id?: string;
60498
61465
  };
60499
61466
  Relationships: [{
@@ -60546,16 +61513,85 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
60546
61513
  referencedColumns: ["id"];
60547
61514
  }];
60548
61515
  };
61516
+ product_load_settings: {
61517
+ Row: {
61518
+ created_at: string;
61519
+ id: string;
61520
+ is_package: boolean;
61521
+ label: string | null;
61522
+ layers_per_load_carrier: number | null;
61523
+ load_carrier: string | null;
61524
+ package_id: string | null;
61525
+ package_label: string | null;
61526
+ packages_per_layer: number | null;
61527
+ packing_configuration_id: string;
61528
+ product_id: string | null;
61529
+ tenant_id: string;
61530
+ trade_item_floriday_id: string | null;
61531
+ units_per_package: number | null;
61532
+ updated_at: string;
61533
+ };
61534
+ Insert: {
61535
+ created_at?: string;
61536
+ id?: string;
61537
+ is_package?: boolean;
61538
+ label?: string | null;
61539
+ layers_per_load_carrier?: number | null;
61540
+ load_carrier?: string | null;
61541
+ package_id?: string | null;
61542
+ package_label?: string | null;
61543
+ packages_per_layer?: number | null;
61544
+ packing_configuration_id?: string;
61545
+ product_id?: string | null;
61546
+ tenant_id: string;
61547
+ trade_item_floriday_id?: string | null;
61548
+ units_per_package?: number | null;
61549
+ updated_at?: string;
61550
+ };
61551
+ Update: {
61552
+ created_at?: string;
61553
+ id?: string;
61554
+ is_package?: boolean;
61555
+ label?: string | null;
61556
+ layers_per_load_carrier?: number | null;
61557
+ load_carrier?: string | null;
61558
+ package_id?: string | null;
61559
+ package_label?: string | null;
61560
+ packages_per_layer?: number | null;
61561
+ packing_configuration_id?: string;
61562
+ product_id?: string | null;
61563
+ tenant_id?: string;
61564
+ trade_item_floriday_id?: string | null;
61565
+ units_per_package?: number | null;
61566
+ updated_at?: string;
61567
+ };
61568
+ Relationships: [{
61569
+ foreignKeyName: "product_load_settings_package_id_fkey";
61570
+ columns: ["package_id"];
61571
+ isOneToOne: false;
61572
+ referencedRelation: "packages";
61573
+ referencedColumns: ["id"];
61574
+ }, {
61575
+ foreignKeyName: "product_load_settings_product_id_fkey";
61576
+ columns: ["product_id"];
61577
+ isOneToOne: false;
61578
+ referencedRelation: "products";
61579
+ referencedColumns: ["id"];
61580
+ }];
61581
+ };
60549
61582
  products: {
60550
61583
  Row: {
61584
+ article_number: string | null;
60551
61585
  barcode: string | null;
60552
61586
  batch: string;
60553
61587
  crates_per_layer: number;
60554
61588
  created_at: string;
60555
61589
  custom_fields: import("../integrations/supabase/types").Json;
61590
+ floriday_trade_item_id: string | null;
60556
61591
  id: string;
60557
61592
  image_url: string | null;
60558
61593
  incoming_quantity: number;
61594
+ is_layer: boolean;
60559
61595
  layers_per_cart: number;
60560
61596
  location: string;
60561
61597
  min_quantity: number;
@@ -60571,14 +61607,17 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
60571
61607
  weight: string | null;
60572
61608
  };
60573
61609
  Insert: {
61610
+ article_number?: string | null;
60574
61611
  barcode?: string | null;
60575
61612
  batch: string;
60576
61613
  crates_per_layer?: number;
60577
61614
  created_at?: string;
60578
61615
  custom_fields?: import("../integrations/supabase/types").Json;
61616
+ floriday_trade_item_id?: string | null;
60579
61617
  id?: string;
60580
61618
  image_url?: string | null;
60581
61619
  incoming_quantity?: number;
61620
+ is_layer?: boolean;
60582
61621
  layers_per_cart?: number;
60583
61622
  location: string;
60584
61623
  min_quantity?: number;
@@ -60594,14 +61633,17 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
60594
61633
  weight?: string | null;
60595
61634
  };
60596
61635
  Update: {
61636
+ article_number?: string | null;
60597
61637
  barcode?: string | null;
60598
61638
  batch?: string;
60599
61639
  crates_per_layer?: number;
60600
61640
  created_at?: string;
60601
61641
  custom_fields?: import("../integrations/supabase/types").Json;
61642
+ floriday_trade_item_id?: string | null;
60602
61643
  id?: string;
60603
61644
  image_url?: string | null;
60604
61645
  incoming_quantity?: number;
61646
+ is_layer?: boolean;
60605
61647
  layers_per_cart?: number;
60606
61648
  location?: string;
60607
61649
  min_quantity?: number;
@@ -60621,6 +61663,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
60621
61663
  profiles: {
60622
61664
  Row: {
60623
61665
  address: string | null;
61666
+ avatar_url: string | null;
60624
61667
  created_at: string;
60625
61668
  display_name: string | null;
60626
61669
  email: string | null;
@@ -60632,6 +61675,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
60632
61675
  };
60633
61676
  Insert: {
60634
61677
  address?: string | null;
61678
+ avatar_url?: string | null;
60635
61679
  created_at?: string;
60636
61680
  display_name?: string | null;
60637
61681
  email?: string | null;
@@ -60643,6 +61687,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
60643
61687
  };
60644
61688
  Update: {
60645
61689
  address?: string | null;
61690
+ avatar_url?: string | null;
60646
61691
  created_at?: string;
60647
61692
  display_name?: string | null;
60648
61693
  email?: string | null;
@@ -61509,6 +62554,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
61509
62554
  order_source: string | null;
61510
62555
  physical_after: number | null;
61511
62556
  physical_before: number | null;
62557
+ production_batch_id: string | null;
61512
62558
  qty_delta: number;
61513
62559
  reason: string | null;
61514
62560
  reserved_after: number | null;
@@ -61526,6 +62572,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
61526
62572
  order_source?: string | null;
61527
62573
  physical_after?: number | null;
61528
62574
  physical_before?: number | null;
62575
+ production_batch_id?: string | null;
61529
62576
  qty_delta: number;
61530
62577
  reason?: string | null;
61531
62578
  reserved_after?: number | null;
@@ -61543,6 +62590,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
61543
62590
  order_source?: string | null;
61544
62591
  physical_after?: number | null;
61545
62592
  physical_before?: number | null;
62593
+ production_batch_id?: string | null;
61546
62594
  qty_delta?: number;
61547
62595
  reason?: string | null;
61548
62596
  reserved_after?: number | null;
@@ -63971,6 +65019,12 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
63971
65019
  processed_items: number;
63972
65020
  }[];
63973
65021
  };
65022
+ calculate_layer_stock: {
65023
+ Args: {
65024
+ p_product_id: string;
65025
+ };
65026
+ Returns: number;
65027
+ };
63974
65028
  call_exact_route: {
63975
65029
  Args: {
63976
65030
  path: string;
@@ -64030,6 +65084,28 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
64030
65084
  Args: never;
64031
65085
  Returns: undefined;
64032
65086
  };
65087
+ consume_bom_for_production: {
65088
+ Args: {
65089
+ p_connection_id: string;
65090
+ p_parent_id: string;
65091
+ p_parent_key: string;
65092
+ p_parent_kind: string;
65093
+ p_quantity: number;
65094
+ p_user_id: string;
65095
+ };
65096
+ Returns: import("../integrations/supabase/types").Json;
65097
+ } | {
65098
+ Args: {
65099
+ p_batch_id?: string;
65100
+ p_connection_id: string;
65101
+ p_parent_id: string;
65102
+ p_parent_key: string;
65103
+ p_parent_kind: string;
65104
+ p_quantity: number;
65105
+ p_user_id: string;
65106
+ };
65107
+ Returns: import("../integrations/supabase/types").Json;
65108
+ };
64033
65109
  consume_floriday_rate_limit: {
64034
65110
  Args: {
64035
65111
  p_bucket: string;
@@ -64087,6 +65163,13 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
64087
65163
  table_name: string;
64088
65164
  }[];
64089
65165
  };
65166
+ delete_samenstelling: {
65167
+ Args: {
65168
+ p_parent_id: string;
65169
+ p_parent_kind: string;
65170
+ };
65171
+ Returns: import("../integrations/supabase/types").Json;
65172
+ };
64090
65173
  dispatch_carrier_signups_sql: {
64091
65174
  Args: {
64092
65175
  _catchup?: string;
@@ -64342,6 +65425,12 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
64342
65425
  minutes_since_success: number;
64343
65426
  }[];
64344
65427
  };
65428
+ get_inventory_stock_for_key: {
65429
+ Args: {
65430
+ p_key: string;
65431
+ };
65432
+ Returns: number;
65433
+ };
64345
65434
  get_offer_by_link_code: {
64346
65435
  Args: {
64347
65436
  p_code: string;
@@ -64372,6 +65461,12 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
64372
65461
  };
64373
65462
  Returns: string;
64374
65463
  };
65464
+ get_product_group_available_stock: {
65465
+ Args: {
65466
+ p_group_id: string;
65467
+ };
65468
+ Returns: number;
65469
+ };
64375
65470
  get_room_busy_windows: {
64376
65471
  Args: {
64377
65472
  p_from: string;
@@ -64445,9 +65540,10 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
64445
65540
  list_monteurs: {
64446
65541
  Args: never;
64447
65542
  Returns: {
65543
+ avatar_url: string;
64448
65544
  display_name: string;
64449
65545
  email: string;
64450
- user_id: string;
65546
+ id: string;
64451
65547
  }[];
64452
65548
  };
64453
65549
  local_effective_price: {
@@ -64582,6 +65678,14 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
64582
65678
  };
64583
65679
  Returns: undefined;
64584
65680
  };
65681
+ produce_designed_product: {
65682
+ Args: {
65683
+ p_parent_id: string;
65684
+ p_parent_kind: string;
65685
+ p_quantity: number;
65686
+ };
65687
+ Returns: import("../integrations/supabase/types").Json;
65688
+ };
64585
65689
  promote_trade_item_key: {
64586
65690
  Args: {
64587
65691
  p_new: string;
@@ -64656,6 +65760,16 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
64656
65760
  };
64657
65761
  Returns: number;
64658
65762
  };
65763
+ reverse_production: {
65764
+ Args: {
65765
+ p_connection_id?: string;
65766
+ p_parent_key: string;
65767
+ p_quantity: number;
65768
+ p_reason?: string;
65769
+ p_user_id?: string;
65770
+ };
65771
+ Returns: import("../integrations/supabase/types").Json;
65772
+ };
64659
65773
  schedule_floriday_additional_services_sync: {
64660
65774
  Args: {
64661
65775
  p_apikey: string;
@@ -64940,18 +66054,34 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
64940
66054
  };
64941
66055
  Returns: string[];
64942
66056
  };
66057
+ sync_all_layer_stocks: {
66058
+ Args: never;
66059
+ Returns: undefined;
66060
+ };
64943
66061
  sync_cached_packing_from_product: {
64944
66062
  Args: {
64945
66063
  p_product_id: string;
64946
66064
  };
64947
66065
  Returns: undefined;
64948
66066
  };
66067
+ sync_layer_stock: {
66068
+ Args: {
66069
+ p_product_id: string;
66070
+ };
66071
+ Returns: undefined;
66072
+ };
64949
66073
  sync_order_cart_item_packing_from_product: {
64950
66074
  Args: {
64951
66075
  p_product_id: string;
64952
66076
  };
64953
66077
  Returns: undefined;
64954
66078
  };
66079
+ sync_product_group_belading: {
66080
+ Args: {
66081
+ _group_id: string;
66082
+ };
66083
+ Returns: undefined;
66084
+ };
64955
66085
  sync_product_packing_from_floriday_cache: {
64956
66086
  Args: {
64957
66087
  p_floriday_id: string;
@@ -64988,7 +66118,7 @@ export declare const upsertLocalPriceGroup: import("@tanstack/start-client-core"
64988
66118
  exact_push_status: "pending" | "sent" | "error";
64989
66119
  itk_customer_segment: "Business" | "Private";
64990
66120
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
64991
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
66121
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
64992
66122
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
64993
66123
  };
64994
66124
  CompositeTypes: { [_ in never]: never; };
@@ -73384,6 +74514,66 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
73384
74514
  referencedColumns: ["id"];
73385
74515
  }];
73386
74516
  };
74517
+ product_bom_items: {
74518
+ Row: {
74519
+ component_product_id: string | null;
74520
+ component_trade_item_floriday_id: string | null;
74521
+ created_at: string;
74522
+ id: string;
74523
+ notes: string | null;
74524
+ packing_configuration_id: string | null;
74525
+ parent_product_id: string | null;
74526
+ parent_trade_item_floriday_id: string | null;
74527
+ quantity: number;
74528
+ sort_order: number;
74529
+ tenant_id: string;
74530
+ unit: string;
74531
+ updated_at: string;
74532
+ };
74533
+ Insert: {
74534
+ component_product_id?: string | null;
74535
+ component_trade_item_floriday_id?: string | null;
74536
+ created_at?: string;
74537
+ id?: string;
74538
+ notes?: string | null;
74539
+ packing_configuration_id?: string | null;
74540
+ parent_product_id?: string | null;
74541
+ parent_trade_item_floriday_id?: string | null;
74542
+ quantity?: number;
74543
+ sort_order?: number;
74544
+ tenant_id: string;
74545
+ unit?: string;
74546
+ updated_at?: string;
74547
+ };
74548
+ Update: {
74549
+ component_product_id?: string | null;
74550
+ component_trade_item_floriday_id?: string | null;
74551
+ created_at?: string;
74552
+ id?: string;
74553
+ notes?: string | null;
74554
+ packing_configuration_id?: string | null;
74555
+ parent_product_id?: string | null;
74556
+ parent_trade_item_floriday_id?: string | null;
74557
+ quantity?: number;
74558
+ sort_order?: number;
74559
+ tenant_id?: string;
74560
+ unit?: string;
74561
+ updated_at?: string;
74562
+ };
74563
+ Relationships: [{
74564
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
74565
+ columns: ["component_product_id"];
74566
+ isOneToOne: false;
74567
+ referencedRelation: "products";
74568
+ referencedColumns: ["id"];
74569
+ }, {
74570
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
74571
+ columns: ["parent_product_id"];
74572
+ isOneToOne: false;
74573
+ referencedRelation: "products";
74574
+ referencedColumns: ["id"];
74575
+ }];
74576
+ };
73387
74577
  product_categories: {
73388
74578
  Row: {
73389
74579
  color: string;
@@ -73489,6 +74679,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
73489
74679
  id: string;
73490
74680
  product_group_id: string;
73491
74681
  quantity: number;
74682
+ sort_order: number;
73492
74683
  trade_item_id: string;
73493
74684
  };
73494
74685
  Insert: {
@@ -73496,6 +74687,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
73496
74687
  id?: string;
73497
74688
  product_group_id: string;
73498
74689
  quantity?: number;
74690
+ sort_order?: number;
73499
74691
  trade_item_id: string;
73500
74692
  };
73501
74693
  Update: {
@@ -73503,6 +74695,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
73503
74695
  id?: string;
73504
74696
  product_group_id?: string;
73505
74697
  quantity?: number;
74698
+ sort_order?: number;
73506
74699
  trade_item_id?: string;
73507
74700
  };
73508
74701
  Relationships: [{
@@ -73555,16 +74748,85 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
73555
74748
  referencedColumns: ["id"];
73556
74749
  }];
73557
74750
  };
74751
+ product_load_settings: {
74752
+ Row: {
74753
+ created_at: string;
74754
+ id: string;
74755
+ is_package: boolean;
74756
+ label: string | null;
74757
+ layers_per_load_carrier: number | null;
74758
+ load_carrier: string | null;
74759
+ package_id: string | null;
74760
+ package_label: string | null;
74761
+ packages_per_layer: number | null;
74762
+ packing_configuration_id: string;
74763
+ product_id: string | null;
74764
+ tenant_id: string;
74765
+ trade_item_floriday_id: string | null;
74766
+ units_per_package: number | null;
74767
+ updated_at: string;
74768
+ };
74769
+ Insert: {
74770
+ created_at?: string;
74771
+ id?: string;
74772
+ is_package?: boolean;
74773
+ label?: string | null;
74774
+ layers_per_load_carrier?: number | null;
74775
+ load_carrier?: string | null;
74776
+ package_id?: string | null;
74777
+ package_label?: string | null;
74778
+ packages_per_layer?: number | null;
74779
+ packing_configuration_id?: string;
74780
+ product_id?: string | null;
74781
+ tenant_id: string;
74782
+ trade_item_floriday_id?: string | null;
74783
+ units_per_package?: number | null;
74784
+ updated_at?: string;
74785
+ };
74786
+ Update: {
74787
+ created_at?: string;
74788
+ id?: string;
74789
+ is_package?: boolean;
74790
+ label?: string | null;
74791
+ layers_per_load_carrier?: number | null;
74792
+ load_carrier?: string | null;
74793
+ package_id?: string | null;
74794
+ package_label?: string | null;
74795
+ packages_per_layer?: number | null;
74796
+ packing_configuration_id?: string;
74797
+ product_id?: string | null;
74798
+ tenant_id?: string;
74799
+ trade_item_floriday_id?: string | null;
74800
+ units_per_package?: number | null;
74801
+ updated_at?: string;
74802
+ };
74803
+ Relationships: [{
74804
+ foreignKeyName: "product_load_settings_package_id_fkey";
74805
+ columns: ["package_id"];
74806
+ isOneToOne: false;
74807
+ referencedRelation: "packages";
74808
+ referencedColumns: ["id"];
74809
+ }, {
74810
+ foreignKeyName: "product_load_settings_product_id_fkey";
74811
+ columns: ["product_id"];
74812
+ isOneToOne: false;
74813
+ referencedRelation: "products";
74814
+ referencedColumns: ["id"];
74815
+ }];
74816
+ };
73558
74817
  products: {
73559
74818
  Row: {
74819
+ article_number: string | null;
73560
74820
  barcode: string | null;
73561
74821
  batch: string;
73562
74822
  crates_per_layer: number;
73563
74823
  created_at: string;
73564
74824
  custom_fields: import("../integrations/supabase/types").Json;
74825
+ floriday_trade_item_id: string | null;
73565
74826
  id: string;
73566
74827
  image_url: string | null;
73567
74828
  incoming_quantity: number;
74829
+ is_layer: boolean;
73568
74830
  layers_per_cart: number;
73569
74831
  location: string;
73570
74832
  min_quantity: number;
@@ -73580,14 +74842,17 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
73580
74842
  weight: string | null;
73581
74843
  };
73582
74844
  Insert: {
74845
+ article_number?: string | null;
73583
74846
  barcode?: string | null;
73584
74847
  batch: string;
73585
74848
  crates_per_layer?: number;
73586
74849
  created_at?: string;
73587
74850
  custom_fields?: import("../integrations/supabase/types").Json;
74851
+ floriday_trade_item_id?: string | null;
73588
74852
  id?: string;
73589
74853
  image_url?: string | null;
73590
74854
  incoming_quantity?: number;
74855
+ is_layer?: boolean;
73591
74856
  layers_per_cart?: number;
73592
74857
  location: string;
73593
74858
  min_quantity?: number;
@@ -73603,14 +74868,17 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
73603
74868
  weight?: string | null;
73604
74869
  };
73605
74870
  Update: {
74871
+ article_number?: string | null;
73606
74872
  barcode?: string | null;
73607
74873
  batch?: string;
73608
74874
  crates_per_layer?: number;
73609
74875
  created_at?: string;
73610
74876
  custom_fields?: import("../integrations/supabase/types").Json;
74877
+ floriday_trade_item_id?: string | null;
73611
74878
  id?: string;
73612
74879
  image_url?: string | null;
73613
74880
  incoming_quantity?: number;
74881
+ is_layer?: boolean;
73614
74882
  layers_per_cart?: number;
73615
74883
  location?: string;
73616
74884
  min_quantity?: number;
@@ -73630,6 +74898,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
73630
74898
  profiles: {
73631
74899
  Row: {
73632
74900
  address: string | null;
74901
+ avatar_url: string | null;
73633
74902
  created_at: string;
73634
74903
  display_name: string | null;
73635
74904
  email: string | null;
@@ -73641,6 +74910,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
73641
74910
  };
73642
74911
  Insert: {
73643
74912
  address?: string | null;
74913
+ avatar_url?: string | null;
73644
74914
  created_at?: string;
73645
74915
  display_name?: string | null;
73646
74916
  email?: string | null;
@@ -73652,6 +74922,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
73652
74922
  };
73653
74923
  Update: {
73654
74924
  address?: string | null;
74925
+ avatar_url?: string | null;
73655
74926
  created_at?: string;
73656
74927
  display_name?: string | null;
73657
74928
  email?: string | null;
@@ -74518,6 +75789,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
74518
75789
  order_source: string | null;
74519
75790
  physical_after: number | null;
74520
75791
  physical_before: number | null;
75792
+ production_batch_id: string | null;
74521
75793
  qty_delta: number;
74522
75794
  reason: string | null;
74523
75795
  reserved_after: number | null;
@@ -74535,6 +75807,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
74535
75807
  order_source?: string | null;
74536
75808
  physical_after?: number | null;
74537
75809
  physical_before?: number | null;
75810
+ production_batch_id?: string | null;
74538
75811
  qty_delta: number;
74539
75812
  reason?: string | null;
74540
75813
  reserved_after?: number | null;
@@ -74552,6 +75825,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
74552
75825
  order_source?: string | null;
74553
75826
  physical_after?: number | null;
74554
75827
  physical_before?: number | null;
75828
+ production_batch_id?: string | null;
74555
75829
  qty_delta?: number;
74556
75830
  reason?: string | null;
74557
75831
  reserved_after?: number | null;
@@ -76980,6 +78254,12 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
76980
78254
  processed_items: number;
76981
78255
  }[];
76982
78256
  };
78257
+ calculate_layer_stock: {
78258
+ Args: {
78259
+ p_product_id: string;
78260
+ };
78261
+ Returns: number;
78262
+ };
76983
78263
  call_exact_route: {
76984
78264
  Args: {
76985
78265
  path: string;
@@ -77039,6 +78319,28 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
77039
78319
  Args: never;
77040
78320
  Returns: undefined;
77041
78321
  };
78322
+ consume_bom_for_production: {
78323
+ Args: {
78324
+ p_connection_id: string;
78325
+ p_parent_id: string;
78326
+ p_parent_key: string;
78327
+ p_parent_kind: string;
78328
+ p_quantity: number;
78329
+ p_user_id: string;
78330
+ };
78331
+ Returns: import("../integrations/supabase/types").Json;
78332
+ } | {
78333
+ Args: {
78334
+ p_batch_id?: string;
78335
+ p_connection_id: string;
78336
+ p_parent_id: string;
78337
+ p_parent_key: string;
78338
+ p_parent_kind: string;
78339
+ p_quantity: number;
78340
+ p_user_id: string;
78341
+ };
78342
+ Returns: import("../integrations/supabase/types").Json;
78343
+ };
77042
78344
  consume_floriday_rate_limit: {
77043
78345
  Args: {
77044
78346
  p_bucket: string;
@@ -77096,6 +78398,13 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
77096
78398
  table_name: string;
77097
78399
  }[];
77098
78400
  };
78401
+ delete_samenstelling: {
78402
+ Args: {
78403
+ p_parent_id: string;
78404
+ p_parent_kind: string;
78405
+ };
78406
+ Returns: import("../integrations/supabase/types").Json;
78407
+ };
77099
78408
  dispatch_carrier_signups_sql: {
77100
78409
  Args: {
77101
78410
  _catchup?: string;
@@ -77351,6 +78660,12 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
77351
78660
  minutes_since_success: number;
77352
78661
  }[];
77353
78662
  };
78663
+ get_inventory_stock_for_key: {
78664
+ Args: {
78665
+ p_key: string;
78666
+ };
78667
+ Returns: number;
78668
+ };
77354
78669
  get_offer_by_link_code: {
77355
78670
  Args: {
77356
78671
  p_code: string;
@@ -77381,6 +78696,12 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
77381
78696
  };
77382
78697
  Returns: string;
77383
78698
  };
78699
+ get_product_group_available_stock: {
78700
+ Args: {
78701
+ p_group_id: string;
78702
+ };
78703
+ Returns: number;
78704
+ };
77384
78705
  get_room_busy_windows: {
77385
78706
  Args: {
77386
78707
  p_from: string;
@@ -77454,9 +78775,10 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
77454
78775
  list_monteurs: {
77455
78776
  Args: never;
77456
78777
  Returns: {
78778
+ avatar_url: string;
77457
78779
  display_name: string;
77458
78780
  email: string;
77459
- user_id: string;
78781
+ id: string;
77460
78782
  }[];
77461
78783
  };
77462
78784
  local_effective_price: {
@@ -77591,6 +78913,14 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
77591
78913
  };
77592
78914
  Returns: undefined;
77593
78915
  };
78916
+ produce_designed_product: {
78917
+ Args: {
78918
+ p_parent_id: string;
78919
+ p_parent_kind: string;
78920
+ p_quantity: number;
78921
+ };
78922
+ Returns: import("../integrations/supabase/types").Json;
78923
+ };
77594
78924
  promote_trade_item_key: {
77595
78925
  Args: {
77596
78926
  p_new: string;
@@ -77665,6 +78995,16 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
77665
78995
  };
77666
78996
  Returns: number;
77667
78997
  };
78998
+ reverse_production: {
78999
+ Args: {
79000
+ p_connection_id?: string;
79001
+ p_parent_key: string;
79002
+ p_quantity: number;
79003
+ p_reason?: string;
79004
+ p_user_id?: string;
79005
+ };
79006
+ Returns: import("../integrations/supabase/types").Json;
79007
+ };
77668
79008
  schedule_floriday_additional_services_sync: {
77669
79009
  Args: {
77670
79010
  p_apikey: string;
@@ -77949,18 +79289,34 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
77949
79289
  };
77950
79290
  Returns: string[];
77951
79291
  };
79292
+ sync_all_layer_stocks: {
79293
+ Args: never;
79294
+ Returns: undefined;
79295
+ };
77952
79296
  sync_cached_packing_from_product: {
77953
79297
  Args: {
77954
79298
  p_product_id: string;
77955
79299
  };
77956
79300
  Returns: undefined;
77957
79301
  };
79302
+ sync_layer_stock: {
79303
+ Args: {
79304
+ p_product_id: string;
79305
+ };
79306
+ Returns: undefined;
79307
+ };
77958
79308
  sync_order_cart_item_packing_from_product: {
77959
79309
  Args: {
77960
79310
  p_product_id: string;
77961
79311
  };
77962
79312
  Returns: undefined;
77963
79313
  };
79314
+ sync_product_group_belading: {
79315
+ Args: {
79316
+ _group_id: string;
79317
+ };
79318
+ Returns: undefined;
79319
+ };
77964
79320
  sync_product_packing_from_floriday_cache: {
77965
79321
  Args: {
77966
79322
  p_floriday_id: string;
@@ -77997,7 +79353,7 @@ export declare const deleteLocalDiscount: import("@tanstack/start-client-core").
77997
79353
  exact_push_status: "pending" | "sent" | "error";
77998
79354
  itk_customer_segment: "Business" | "Private";
77999
79355
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
78000
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
79356
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
78001
79357
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
78002
79358
  };
78003
79359
  CompositeTypes: { [_ in never]: never; };
@@ -86370,6 +87726,66 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
86370
87726
  referencedColumns: ["id"];
86371
87727
  }];
86372
87728
  };
87729
+ product_bom_items: {
87730
+ Row: {
87731
+ component_product_id: string | null;
87732
+ component_trade_item_floriday_id: string | null;
87733
+ created_at: string;
87734
+ id: string;
87735
+ notes: string | null;
87736
+ packing_configuration_id: string | null;
87737
+ parent_product_id: string | null;
87738
+ parent_trade_item_floriday_id: string | null;
87739
+ quantity: number;
87740
+ sort_order: number;
87741
+ tenant_id: string;
87742
+ unit: string;
87743
+ updated_at: string;
87744
+ };
87745
+ Insert: {
87746
+ component_product_id?: string | null;
87747
+ component_trade_item_floriday_id?: string | null;
87748
+ created_at?: string;
87749
+ id?: string;
87750
+ notes?: string | null;
87751
+ packing_configuration_id?: string | null;
87752
+ parent_product_id?: string | null;
87753
+ parent_trade_item_floriday_id?: string | null;
87754
+ quantity?: number;
87755
+ sort_order?: number;
87756
+ tenant_id: string;
87757
+ unit?: string;
87758
+ updated_at?: string;
87759
+ };
87760
+ Update: {
87761
+ component_product_id?: string | null;
87762
+ component_trade_item_floriday_id?: string | null;
87763
+ created_at?: string;
87764
+ id?: string;
87765
+ notes?: string | null;
87766
+ packing_configuration_id?: string | null;
87767
+ parent_product_id?: string | null;
87768
+ parent_trade_item_floriday_id?: string | null;
87769
+ quantity?: number;
87770
+ sort_order?: number;
87771
+ tenant_id?: string;
87772
+ unit?: string;
87773
+ updated_at?: string;
87774
+ };
87775
+ Relationships: [{
87776
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
87777
+ columns: ["component_product_id"];
87778
+ isOneToOne: false;
87779
+ referencedRelation: "products";
87780
+ referencedColumns: ["id"];
87781
+ }, {
87782
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
87783
+ columns: ["parent_product_id"];
87784
+ isOneToOne: false;
87785
+ referencedRelation: "products";
87786
+ referencedColumns: ["id"];
87787
+ }];
87788
+ };
86373
87789
  product_categories: {
86374
87790
  Row: {
86375
87791
  color: string;
@@ -86475,6 +87891,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
86475
87891
  id: string;
86476
87892
  product_group_id: string;
86477
87893
  quantity: number;
87894
+ sort_order: number;
86478
87895
  trade_item_id: string;
86479
87896
  };
86480
87897
  Insert: {
@@ -86482,6 +87899,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
86482
87899
  id?: string;
86483
87900
  product_group_id: string;
86484
87901
  quantity?: number;
87902
+ sort_order?: number;
86485
87903
  trade_item_id: string;
86486
87904
  };
86487
87905
  Update: {
@@ -86489,6 +87907,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
86489
87907
  id?: string;
86490
87908
  product_group_id?: string;
86491
87909
  quantity?: number;
87910
+ sort_order?: number;
86492
87911
  trade_item_id?: string;
86493
87912
  };
86494
87913
  Relationships: [{
@@ -86541,16 +87960,85 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
86541
87960
  referencedColumns: ["id"];
86542
87961
  }];
86543
87962
  };
87963
+ product_load_settings: {
87964
+ Row: {
87965
+ created_at: string;
87966
+ id: string;
87967
+ is_package: boolean;
87968
+ label: string | null;
87969
+ layers_per_load_carrier: number | null;
87970
+ load_carrier: string | null;
87971
+ package_id: string | null;
87972
+ package_label: string | null;
87973
+ packages_per_layer: number | null;
87974
+ packing_configuration_id: string;
87975
+ product_id: string | null;
87976
+ tenant_id: string;
87977
+ trade_item_floriday_id: string | null;
87978
+ units_per_package: number | null;
87979
+ updated_at: string;
87980
+ };
87981
+ Insert: {
87982
+ created_at?: string;
87983
+ id?: string;
87984
+ is_package?: boolean;
87985
+ label?: string | null;
87986
+ layers_per_load_carrier?: number | null;
87987
+ load_carrier?: string | null;
87988
+ package_id?: string | null;
87989
+ package_label?: string | null;
87990
+ packages_per_layer?: number | null;
87991
+ packing_configuration_id?: string;
87992
+ product_id?: string | null;
87993
+ tenant_id: string;
87994
+ trade_item_floriday_id?: string | null;
87995
+ units_per_package?: number | null;
87996
+ updated_at?: string;
87997
+ };
87998
+ Update: {
87999
+ created_at?: string;
88000
+ id?: string;
88001
+ is_package?: boolean;
88002
+ label?: string | null;
88003
+ layers_per_load_carrier?: number | null;
88004
+ load_carrier?: string | null;
88005
+ package_id?: string | null;
88006
+ package_label?: string | null;
88007
+ packages_per_layer?: number | null;
88008
+ packing_configuration_id?: string;
88009
+ product_id?: string | null;
88010
+ tenant_id?: string;
88011
+ trade_item_floriday_id?: string | null;
88012
+ units_per_package?: number | null;
88013
+ updated_at?: string;
88014
+ };
88015
+ Relationships: [{
88016
+ foreignKeyName: "product_load_settings_package_id_fkey";
88017
+ columns: ["package_id"];
88018
+ isOneToOne: false;
88019
+ referencedRelation: "packages";
88020
+ referencedColumns: ["id"];
88021
+ }, {
88022
+ foreignKeyName: "product_load_settings_product_id_fkey";
88023
+ columns: ["product_id"];
88024
+ isOneToOne: false;
88025
+ referencedRelation: "products";
88026
+ referencedColumns: ["id"];
88027
+ }];
88028
+ };
86544
88029
  products: {
86545
88030
  Row: {
88031
+ article_number: string | null;
86546
88032
  barcode: string | null;
86547
88033
  batch: string;
86548
88034
  crates_per_layer: number;
86549
88035
  created_at: string;
86550
88036
  custom_fields: import("../integrations/supabase/types").Json;
88037
+ floriday_trade_item_id: string | null;
86551
88038
  id: string;
86552
88039
  image_url: string | null;
86553
88040
  incoming_quantity: number;
88041
+ is_layer: boolean;
86554
88042
  layers_per_cart: number;
86555
88043
  location: string;
86556
88044
  min_quantity: number;
@@ -86566,14 +88054,17 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
86566
88054
  weight: string | null;
86567
88055
  };
86568
88056
  Insert: {
88057
+ article_number?: string | null;
86569
88058
  barcode?: string | null;
86570
88059
  batch: string;
86571
88060
  crates_per_layer?: number;
86572
88061
  created_at?: string;
86573
88062
  custom_fields?: import("../integrations/supabase/types").Json;
88063
+ floriday_trade_item_id?: string | null;
86574
88064
  id?: string;
86575
88065
  image_url?: string | null;
86576
88066
  incoming_quantity?: number;
88067
+ is_layer?: boolean;
86577
88068
  layers_per_cart?: number;
86578
88069
  location: string;
86579
88070
  min_quantity?: number;
@@ -86589,14 +88080,17 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
86589
88080
  weight?: string | null;
86590
88081
  };
86591
88082
  Update: {
88083
+ article_number?: string | null;
86592
88084
  barcode?: string | null;
86593
88085
  batch?: string;
86594
88086
  crates_per_layer?: number;
86595
88087
  created_at?: string;
86596
88088
  custom_fields?: import("../integrations/supabase/types").Json;
88089
+ floriday_trade_item_id?: string | null;
86597
88090
  id?: string;
86598
88091
  image_url?: string | null;
86599
88092
  incoming_quantity?: number;
88093
+ is_layer?: boolean;
86600
88094
  layers_per_cart?: number;
86601
88095
  location?: string;
86602
88096
  min_quantity?: number;
@@ -86616,6 +88110,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
86616
88110
  profiles: {
86617
88111
  Row: {
86618
88112
  address: string | null;
88113
+ avatar_url: string | null;
86619
88114
  created_at: string;
86620
88115
  display_name: string | null;
86621
88116
  email: string | null;
@@ -86627,6 +88122,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
86627
88122
  };
86628
88123
  Insert: {
86629
88124
  address?: string | null;
88125
+ avatar_url?: string | null;
86630
88126
  created_at?: string;
86631
88127
  display_name?: string | null;
86632
88128
  email?: string | null;
@@ -86638,6 +88134,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
86638
88134
  };
86639
88135
  Update: {
86640
88136
  address?: string | null;
88137
+ avatar_url?: string | null;
86641
88138
  created_at?: string;
86642
88139
  display_name?: string | null;
86643
88140
  email?: string | null;
@@ -87504,6 +89001,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
87504
89001
  order_source: string | null;
87505
89002
  physical_after: number | null;
87506
89003
  physical_before: number | null;
89004
+ production_batch_id: string | null;
87507
89005
  qty_delta: number;
87508
89006
  reason: string | null;
87509
89007
  reserved_after: number | null;
@@ -87521,6 +89019,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
87521
89019
  order_source?: string | null;
87522
89020
  physical_after?: number | null;
87523
89021
  physical_before?: number | null;
89022
+ production_batch_id?: string | null;
87524
89023
  qty_delta: number;
87525
89024
  reason?: string | null;
87526
89025
  reserved_after?: number | null;
@@ -87538,6 +89037,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
87538
89037
  order_source?: string | null;
87539
89038
  physical_after?: number | null;
87540
89039
  physical_before?: number | null;
89040
+ production_batch_id?: string | null;
87541
89041
  qty_delta?: number;
87542
89042
  reason?: string | null;
87543
89043
  reserved_after?: number | null;
@@ -89966,6 +91466,12 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
89966
91466
  processed_items: number;
89967
91467
  }[];
89968
91468
  };
91469
+ calculate_layer_stock: {
91470
+ Args: {
91471
+ p_product_id: string;
91472
+ };
91473
+ Returns: number;
91474
+ };
89969
91475
  call_exact_route: {
89970
91476
  Args: {
89971
91477
  path: string;
@@ -90025,6 +91531,28 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
90025
91531
  Args: never;
90026
91532
  Returns: undefined;
90027
91533
  };
91534
+ consume_bom_for_production: {
91535
+ Args: {
91536
+ p_connection_id: string;
91537
+ p_parent_id: string;
91538
+ p_parent_key: string;
91539
+ p_parent_kind: string;
91540
+ p_quantity: number;
91541
+ p_user_id: string;
91542
+ };
91543
+ Returns: import("../integrations/supabase/types").Json;
91544
+ } | {
91545
+ Args: {
91546
+ p_batch_id?: string;
91547
+ p_connection_id: string;
91548
+ p_parent_id: string;
91549
+ p_parent_key: string;
91550
+ p_parent_kind: string;
91551
+ p_quantity: number;
91552
+ p_user_id: string;
91553
+ };
91554
+ Returns: import("../integrations/supabase/types").Json;
91555
+ };
90028
91556
  consume_floriday_rate_limit: {
90029
91557
  Args: {
90030
91558
  p_bucket: string;
@@ -90082,6 +91610,13 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
90082
91610
  table_name: string;
90083
91611
  }[];
90084
91612
  };
91613
+ delete_samenstelling: {
91614
+ Args: {
91615
+ p_parent_id: string;
91616
+ p_parent_kind: string;
91617
+ };
91618
+ Returns: import("../integrations/supabase/types").Json;
91619
+ };
90085
91620
  dispatch_carrier_signups_sql: {
90086
91621
  Args: {
90087
91622
  _catchup?: string;
@@ -90337,6 +91872,12 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
90337
91872
  minutes_since_success: number;
90338
91873
  }[];
90339
91874
  };
91875
+ get_inventory_stock_for_key: {
91876
+ Args: {
91877
+ p_key: string;
91878
+ };
91879
+ Returns: number;
91880
+ };
90340
91881
  get_offer_by_link_code: {
90341
91882
  Args: {
90342
91883
  p_code: string;
@@ -90367,6 +91908,12 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
90367
91908
  };
90368
91909
  Returns: string;
90369
91910
  };
91911
+ get_product_group_available_stock: {
91912
+ Args: {
91913
+ p_group_id: string;
91914
+ };
91915
+ Returns: number;
91916
+ };
90370
91917
  get_room_busy_windows: {
90371
91918
  Args: {
90372
91919
  p_from: string;
@@ -90440,9 +91987,10 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
90440
91987
  list_monteurs: {
90441
91988
  Args: never;
90442
91989
  Returns: {
91990
+ avatar_url: string;
90443
91991
  display_name: string;
90444
91992
  email: string;
90445
- user_id: string;
91993
+ id: string;
90446
91994
  }[];
90447
91995
  };
90448
91996
  local_effective_price: {
@@ -90577,6 +92125,14 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
90577
92125
  };
90578
92126
  Returns: undefined;
90579
92127
  };
92128
+ produce_designed_product: {
92129
+ Args: {
92130
+ p_parent_id: string;
92131
+ p_parent_kind: string;
92132
+ p_quantity: number;
92133
+ };
92134
+ Returns: import("../integrations/supabase/types").Json;
92135
+ };
90580
92136
  promote_trade_item_key: {
90581
92137
  Args: {
90582
92138
  p_new: string;
@@ -90651,6 +92207,16 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
90651
92207
  };
90652
92208
  Returns: number;
90653
92209
  };
92210
+ reverse_production: {
92211
+ Args: {
92212
+ p_connection_id?: string;
92213
+ p_parent_key: string;
92214
+ p_quantity: number;
92215
+ p_reason?: string;
92216
+ p_user_id?: string;
92217
+ };
92218
+ Returns: import("../integrations/supabase/types").Json;
92219
+ };
90654
92220
  schedule_floriday_additional_services_sync: {
90655
92221
  Args: {
90656
92222
  p_apikey: string;
@@ -90935,18 +92501,34 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
90935
92501
  };
90936
92502
  Returns: string[];
90937
92503
  };
92504
+ sync_all_layer_stocks: {
92505
+ Args: never;
92506
+ Returns: undefined;
92507
+ };
90938
92508
  sync_cached_packing_from_product: {
90939
92509
  Args: {
90940
92510
  p_product_id: string;
90941
92511
  };
90942
92512
  Returns: undefined;
90943
92513
  };
92514
+ sync_layer_stock: {
92515
+ Args: {
92516
+ p_product_id: string;
92517
+ };
92518
+ Returns: undefined;
92519
+ };
90944
92520
  sync_order_cart_item_packing_from_product: {
90945
92521
  Args: {
90946
92522
  p_product_id: string;
90947
92523
  };
90948
92524
  Returns: undefined;
90949
92525
  };
92526
+ sync_product_group_belading: {
92527
+ Args: {
92528
+ _group_id: string;
92529
+ };
92530
+ Returns: undefined;
92531
+ };
90950
92532
  sync_product_packing_from_floriday_cache: {
90951
92533
  Args: {
90952
92534
  p_floriday_id: string;
@@ -90983,7 +92565,7 @@ export declare const listLocalProducts: import("@tanstack/start-client-core").Op
90983
92565
  exact_push_status: "pending" | "sent" | "error";
90984
92566
  itk_customer_segment: "Business" | "Private";
90985
92567
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
90986
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
92568
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
90987
92569
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
90988
92570
  };
90989
92571
  CompositeTypes: { [_ in never]: never; };