@flowselections/floriday-klanten-module 1.0.20 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.d.ts +3 -1
  2. package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.d.ts.map +1 -1
  3. package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.js +4 -4
  4. package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.d.ts +2 -0
  5. package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.d.ts.map +1 -0
  6. package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.js +5 -0
  7. package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.d.ts +2 -0
  8. package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.d.ts.map +1 -0
  9. package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.js +12 -0
  10. package/dist-lib/index.d.ts +2 -0
  11. package/dist-lib/index.d.ts.map +1 -1
  12. package/dist-lib/index.js +2 -0
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts +227 -1
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.d.ts +227 -1
  16. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +227 -1
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +234 -2
  20. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.js +8 -1
  22. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +681 -3
  23. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/accounting.functions.d.ts +681 -3
  25. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/customer-analytics.functions.d.ts +227 -1
  27. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/customers.functions.d.ts +2043 -9
  29. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/delivery-locations.functions.d.ts +908 -4
  31. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/external-customers.functions.d.ts +908 -4
  33. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-assortment.functions.d.ts +227 -1
  35. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-discounts.functions.d.ts +454 -2
  37. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-trade-items.functions.d.ts +227 -1
  39. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/local-discounts.functions.d.ts +1589 -7
  41. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/overdue-invoices.functions.d.ts +227 -1
  43. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/price-groups-local.functions.d.ts +1589 -7
  45. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/price-groups.functions.d.ts +227 -1
  47. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  48. package/package.json +7 -7
@@ -8410,6 +8410,66 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8410
8410
  referencedColumns: ["id"];
8411
8411
  }];
8412
8412
  };
8413
+ product_bom_items: {
8414
+ Row: {
8415
+ component_product_id: string | null;
8416
+ component_trade_item_floriday_id: string | null;
8417
+ created_at: string;
8418
+ id: string;
8419
+ notes: string | null;
8420
+ packing_configuration_id: string | null;
8421
+ parent_product_id: string | null;
8422
+ parent_trade_item_floriday_id: string | null;
8423
+ quantity: number;
8424
+ sort_order: number;
8425
+ tenant_id: string;
8426
+ unit: string;
8427
+ updated_at: string;
8428
+ };
8429
+ Insert: {
8430
+ component_product_id?: string | null;
8431
+ component_trade_item_floriday_id?: string | null;
8432
+ created_at?: string;
8433
+ id?: string;
8434
+ notes?: string | null;
8435
+ packing_configuration_id?: string | null;
8436
+ parent_product_id?: string | null;
8437
+ parent_trade_item_floriday_id?: string | null;
8438
+ quantity?: number;
8439
+ sort_order?: number;
8440
+ tenant_id: string;
8441
+ unit?: string;
8442
+ updated_at?: string;
8443
+ };
8444
+ Update: {
8445
+ component_product_id?: string | null;
8446
+ component_trade_item_floriday_id?: string | null;
8447
+ created_at?: string;
8448
+ id?: string;
8449
+ notes?: string | null;
8450
+ packing_configuration_id?: string | null;
8451
+ parent_product_id?: string | null;
8452
+ parent_trade_item_floriday_id?: string | null;
8453
+ quantity?: number;
8454
+ sort_order?: number;
8455
+ tenant_id?: string;
8456
+ unit?: string;
8457
+ updated_at?: string;
8458
+ };
8459
+ Relationships: [{
8460
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8461
+ columns: ["component_product_id"];
8462
+ isOneToOne: false;
8463
+ referencedRelation: "products";
8464
+ referencedColumns: ["id"];
8465
+ }, {
8466
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8467
+ columns: ["parent_product_id"];
8468
+ isOneToOne: false;
8469
+ referencedRelation: "products";
8470
+ referencedColumns: ["id"];
8471
+ }];
8472
+ };
8413
8473
  product_categories: {
8414
8474
  Row: {
8415
8475
  color: string;
@@ -8515,6 +8575,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8515
8575
  id: string;
8516
8576
  product_group_id: string;
8517
8577
  quantity: number;
8578
+ sort_order: number;
8518
8579
  trade_item_id: string;
8519
8580
  };
8520
8581
  Insert: {
@@ -8522,6 +8583,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8522
8583
  id?: string;
8523
8584
  product_group_id: string;
8524
8585
  quantity?: number;
8586
+ sort_order?: number;
8525
8587
  trade_item_id: string;
8526
8588
  };
8527
8589
  Update: {
@@ -8529,6 +8591,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8529
8591
  id?: string;
8530
8592
  product_group_id?: string;
8531
8593
  quantity?: number;
8594
+ sort_order?: number;
8532
8595
  trade_item_id?: string;
8533
8596
  };
8534
8597
  Relationships: [{
@@ -8581,16 +8644,85 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8581
8644
  referencedColumns: ["id"];
8582
8645
  }];
8583
8646
  };
8647
+ product_load_settings: {
8648
+ Row: {
8649
+ created_at: string;
8650
+ id: string;
8651
+ is_package: boolean;
8652
+ label: string | null;
8653
+ layers_per_load_carrier: number | null;
8654
+ load_carrier: string | null;
8655
+ package_id: string | null;
8656
+ package_label: string | null;
8657
+ packages_per_layer: number | null;
8658
+ packing_configuration_id: string;
8659
+ product_id: string | null;
8660
+ tenant_id: string;
8661
+ trade_item_floriday_id: string | null;
8662
+ units_per_package: number | null;
8663
+ updated_at: string;
8664
+ };
8665
+ Insert: {
8666
+ created_at?: string;
8667
+ id?: string;
8668
+ is_package?: boolean;
8669
+ label?: string | null;
8670
+ layers_per_load_carrier?: number | null;
8671
+ load_carrier?: string | null;
8672
+ package_id?: string | null;
8673
+ package_label?: string | null;
8674
+ packages_per_layer?: number | null;
8675
+ packing_configuration_id?: string;
8676
+ product_id?: string | null;
8677
+ tenant_id: string;
8678
+ trade_item_floriday_id?: string | null;
8679
+ units_per_package?: number | null;
8680
+ updated_at?: string;
8681
+ };
8682
+ Update: {
8683
+ created_at?: string;
8684
+ id?: string;
8685
+ is_package?: boolean;
8686
+ label?: string | null;
8687
+ layers_per_load_carrier?: number | null;
8688
+ load_carrier?: string | null;
8689
+ package_id?: string | null;
8690
+ package_label?: string | null;
8691
+ packages_per_layer?: number | null;
8692
+ packing_configuration_id?: string;
8693
+ product_id?: string | null;
8694
+ tenant_id?: string;
8695
+ trade_item_floriday_id?: string | null;
8696
+ units_per_package?: number | null;
8697
+ updated_at?: string;
8698
+ };
8699
+ Relationships: [{
8700
+ foreignKeyName: "product_load_settings_package_id_fkey";
8701
+ columns: ["package_id"];
8702
+ isOneToOne: false;
8703
+ referencedRelation: "packages";
8704
+ referencedColumns: ["id"];
8705
+ }, {
8706
+ foreignKeyName: "product_load_settings_product_id_fkey";
8707
+ columns: ["product_id"];
8708
+ isOneToOne: false;
8709
+ referencedRelation: "products";
8710
+ referencedColumns: ["id"];
8711
+ }];
8712
+ };
8584
8713
  products: {
8585
8714
  Row: {
8715
+ article_number: string | null;
8586
8716
  barcode: string | null;
8587
8717
  batch: string;
8588
8718
  crates_per_layer: number;
8589
8719
  created_at: string;
8590
8720
  custom_fields: import("../integrations/supabase/types").Json;
8721
+ floriday_trade_item_id: string | null;
8591
8722
  id: string;
8592
8723
  image_url: string | null;
8593
8724
  incoming_quantity: number;
8725
+ is_layer: boolean;
8594
8726
  layers_per_cart: number;
8595
8727
  location: string;
8596
8728
  min_quantity: number;
@@ -8606,14 +8738,17 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8606
8738
  weight: string | null;
8607
8739
  };
8608
8740
  Insert: {
8741
+ article_number?: string | null;
8609
8742
  barcode?: string | null;
8610
8743
  batch: string;
8611
8744
  crates_per_layer?: number;
8612
8745
  created_at?: string;
8613
8746
  custom_fields?: import("../integrations/supabase/types").Json;
8747
+ floriday_trade_item_id?: string | null;
8614
8748
  id?: string;
8615
8749
  image_url?: string | null;
8616
8750
  incoming_quantity?: number;
8751
+ is_layer?: boolean;
8617
8752
  layers_per_cart?: number;
8618
8753
  location: string;
8619
8754
  min_quantity?: number;
@@ -8629,14 +8764,17 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8629
8764
  weight?: string | null;
8630
8765
  };
8631
8766
  Update: {
8767
+ article_number?: string | null;
8632
8768
  barcode?: string | null;
8633
8769
  batch?: string;
8634
8770
  crates_per_layer?: number;
8635
8771
  created_at?: string;
8636
8772
  custom_fields?: import("../integrations/supabase/types").Json;
8773
+ floriday_trade_item_id?: string | null;
8637
8774
  id?: string;
8638
8775
  image_url?: string | null;
8639
8776
  incoming_quantity?: number;
8777
+ is_layer?: boolean;
8640
8778
  layers_per_cart?: number;
8641
8779
  location?: string;
8642
8780
  min_quantity?: number;
@@ -8656,6 +8794,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8656
8794
  profiles: {
8657
8795
  Row: {
8658
8796
  address: string | null;
8797
+ avatar_url: string | null;
8659
8798
  created_at: string;
8660
8799
  display_name: string | null;
8661
8800
  email: string | null;
@@ -8667,6 +8806,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8667
8806
  };
8668
8807
  Insert: {
8669
8808
  address?: string | null;
8809
+ avatar_url?: string | null;
8670
8810
  created_at?: string;
8671
8811
  display_name?: string | null;
8672
8812
  email?: string | null;
@@ -8678,6 +8818,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
8678
8818
  };
8679
8819
  Update: {
8680
8820
  address?: string | null;
8821
+ avatar_url?: string | null;
8681
8822
  created_at?: string;
8682
8823
  display_name?: string | null;
8683
8824
  email?: string | null;
@@ -9544,6 +9685,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
9544
9685
  order_source: string | null;
9545
9686
  physical_after: number | null;
9546
9687
  physical_before: number | null;
9688
+ production_batch_id: string | null;
9547
9689
  qty_delta: number;
9548
9690
  reason: string | null;
9549
9691
  reserved_after: number | null;
@@ -9561,6 +9703,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
9561
9703
  order_source?: string | null;
9562
9704
  physical_after?: number | null;
9563
9705
  physical_before?: number | null;
9706
+ production_batch_id?: string | null;
9564
9707
  qty_delta: number;
9565
9708
  reason?: string | null;
9566
9709
  reserved_after?: number | null;
@@ -9578,6 +9721,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
9578
9721
  order_source?: string | null;
9579
9722
  physical_after?: number | null;
9580
9723
  physical_before?: number | null;
9724
+ production_batch_id?: string | null;
9581
9725
  qty_delta?: number;
9582
9726
  reason?: string | null;
9583
9727
  reserved_after?: number | null;
@@ -12006,6 +12150,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
12006
12150
  processed_items: number;
12007
12151
  }[];
12008
12152
  };
12153
+ calculate_layer_stock: {
12154
+ Args: {
12155
+ p_product_id: string;
12156
+ };
12157
+ Returns: number;
12158
+ };
12009
12159
  call_exact_route: {
12010
12160
  Args: {
12011
12161
  path: string;
@@ -12065,6 +12215,28 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
12065
12215
  Args: never;
12066
12216
  Returns: undefined;
12067
12217
  };
12218
+ consume_bom_for_production: {
12219
+ Args: {
12220
+ p_connection_id: string;
12221
+ p_parent_id: string;
12222
+ p_parent_key: string;
12223
+ p_parent_kind: string;
12224
+ p_quantity: number;
12225
+ p_user_id: string;
12226
+ };
12227
+ Returns: import("../integrations/supabase/types").Json;
12228
+ } | {
12229
+ Args: {
12230
+ p_batch_id?: string;
12231
+ p_connection_id: string;
12232
+ p_parent_id: string;
12233
+ p_parent_key: string;
12234
+ p_parent_kind: string;
12235
+ p_quantity: number;
12236
+ p_user_id: string;
12237
+ };
12238
+ Returns: import("../integrations/supabase/types").Json;
12239
+ };
12068
12240
  consume_floriday_rate_limit: {
12069
12241
  Args: {
12070
12242
  p_bucket: string;
@@ -12122,6 +12294,13 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
12122
12294
  table_name: string;
12123
12295
  }[];
12124
12296
  };
12297
+ delete_samenstelling: {
12298
+ Args: {
12299
+ p_parent_id: string;
12300
+ p_parent_kind: string;
12301
+ };
12302
+ Returns: import("../integrations/supabase/types").Json;
12303
+ };
12125
12304
  dispatch_carrier_signups_sql: {
12126
12305
  Args: {
12127
12306
  _catchup?: string;
@@ -12377,6 +12556,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
12377
12556
  minutes_since_success: number;
12378
12557
  }[];
12379
12558
  };
12559
+ get_inventory_stock_for_key: {
12560
+ Args: {
12561
+ p_key: string;
12562
+ };
12563
+ Returns: number;
12564
+ };
12380
12565
  get_offer_by_link_code: {
12381
12566
  Args: {
12382
12567
  p_code: string;
@@ -12407,6 +12592,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
12407
12592
  };
12408
12593
  Returns: string;
12409
12594
  };
12595
+ get_product_group_available_stock: {
12596
+ Args: {
12597
+ p_group_id: string;
12598
+ };
12599
+ Returns: number;
12600
+ };
12410
12601
  get_room_busy_windows: {
12411
12602
  Args: {
12412
12603
  p_from: string;
@@ -12480,6 +12671,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
12480
12671
  list_monteurs: {
12481
12672
  Args: never;
12482
12673
  Returns: {
12674
+ avatar_url: string;
12483
12675
  display_name: string;
12484
12676
  email: string;
12485
12677
  id: string;
@@ -12617,6 +12809,14 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
12617
12809
  };
12618
12810
  Returns: undefined;
12619
12811
  };
12812
+ produce_designed_product: {
12813
+ Args: {
12814
+ p_parent_id: string;
12815
+ p_parent_kind: string;
12816
+ p_quantity: number;
12817
+ };
12818
+ Returns: import("../integrations/supabase/types").Json;
12819
+ };
12620
12820
  promote_trade_item_key: {
12621
12821
  Args: {
12622
12822
  p_new: string;
@@ -12691,6 +12891,16 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
12691
12891
  };
12692
12892
  Returns: number;
12693
12893
  };
12894
+ reverse_production: {
12895
+ Args: {
12896
+ p_connection_id?: string;
12897
+ p_parent_key: string;
12898
+ p_quantity: number;
12899
+ p_reason?: string;
12900
+ p_user_id?: string;
12901
+ };
12902
+ Returns: import("../integrations/supabase/types").Json;
12903
+ };
12694
12904
  schedule_floriday_additional_services_sync: {
12695
12905
  Args: {
12696
12906
  p_apikey: string;
@@ -12975,18 +13185,34 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
12975
13185
  };
12976
13186
  Returns: string[];
12977
13187
  };
13188
+ sync_all_layer_stocks: {
13189
+ Args: never;
13190
+ Returns: undefined;
13191
+ };
12978
13192
  sync_cached_packing_from_product: {
12979
13193
  Args: {
12980
13194
  p_product_id: string;
12981
13195
  };
12982
13196
  Returns: undefined;
12983
13197
  };
13198
+ sync_layer_stock: {
13199
+ Args: {
13200
+ p_product_id: string;
13201
+ };
13202
+ Returns: undefined;
13203
+ };
12984
13204
  sync_order_cart_item_packing_from_product: {
12985
13205
  Args: {
12986
13206
  p_product_id: string;
12987
13207
  };
12988
13208
  Returns: undefined;
12989
13209
  };
13210
+ sync_product_group_belading: {
13211
+ Args: {
13212
+ _group_id: string;
13213
+ };
13214
+ Returns: undefined;
13215
+ };
12990
13216
  sync_product_packing_from_floriday_cache: {
12991
13217
  Args: {
12992
13218
  p_floriday_id: string;
@@ -13023,7 +13249,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
13023
13249
  exact_push_status: "pending" | "sent" | "error";
13024
13250
  itk_customer_segment: "Business" | "Private";
13025
13251
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13026
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
13252
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
13027
13253
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
13028
13254
  };
13029
13255
  CompositeTypes: { [_ in never]: never; };
@@ -21393,6 +21619,66 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
21393
21619
  referencedColumns: ["id"];
21394
21620
  }];
21395
21621
  };
21622
+ product_bom_items: {
21623
+ Row: {
21624
+ component_product_id: string | null;
21625
+ component_trade_item_floriday_id: string | null;
21626
+ created_at: string;
21627
+ id: string;
21628
+ notes: string | null;
21629
+ packing_configuration_id: string | null;
21630
+ parent_product_id: string | null;
21631
+ parent_trade_item_floriday_id: string | null;
21632
+ quantity: number;
21633
+ sort_order: number;
21634
+ tenant_id: string;
21635
+ unit: string;
21636
+ updated_at: string;
21637
+ };
21638
+ Insert: {
21639
+ component_product_id?: string | null;
21640
+ component_trade_item_floriday_id?: string | null;
21641
+ created_at?: string;
21642
+ id?: string;
21643
+ notes?: string | null;
21644
+ packing_configuration_id?: string | null;
21645
+ parent_product_id?: string | null;
21646
+ parent_trade_item_floriday_id?: string | null;
21647
+ quantity?: number;
21648
+ sort_order?: number;
21649
+ tenant_id: string;
21650
+ unit?: string;
21651
+ updated_at?: string;
21652
+ };
21653
+ Update: {
21654
+ component_product_id?: string | null;
21655
+ component_trade_item_floriday_id?: string | null;
21656
+ created_at?: string;
21657
+ id?: string;
21658
+ notes?: string | null;
21659
+ packing_configuration_id?: string | null;
21660
+ parent_product_id?: string | null;
21661
+ parent_trade_item_floriday_id?: string | null;
21662
+ quantity?: number;
21663
+ sort_order?: number;
21664
+ tenant_id?: string;
21665
+ unit?: string;
21666
+ updated_at?: string;
21667
+ };
21668
+ Relationships: [{
21669
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
21670
+ columns: ["component_product_id"];
21671
+ isOneToOne: false;
21672
+ referencedRelation: "products";
21673
+ referencedColumns: ["id"];
21674
+ }, {
21675
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
21676
+ columns: ["parent_product_id"];
21677
+ isOneToOne: false;
21678
+ referencedRelation: "products";
21679
+ referencedColumns: ["id"];
21680
+ }];
21681
+ };
21396
21682
  product_categories: {
21397
21683
  Row: {
21398
21684
  color: string;
@@ -21498,6 +21784,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
21498
21784
  id: string;
21499
21785
  product_group_id: string;
21500
21786
  quantity: number;
21787
+ sort_order: number;
21501
21788
  trade_item_id: string;
21502
21789
  };
21503
21790
  Insert: {
@@ -21505,6 +21792,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
21505
21792
  id?: string;
21506
21793
  product_group_id: string;
21507
21794
  quantity?: number;
21795
+ sort_order?: number;
21508
21796
  trade_item_id: string;
21509
21797
  };
21510
21798
  Update: {
@@ -21512,6 +21800,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
21512
21800
  id?: string;
21513
21801
  product_group_id?: string;
21514
21802
  quantity?: number;
21803
+ sort_order?: number;
21515
21804
  trade_item_id?: string;
21516
21805
  };
21517
21806
  Relationships: [{
@@ -21564,16 +21853,85 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
21564
21853
  referencedColumns: ["id"];
21565
21854
  }];
21566
21855
  };
21856
+ product_load_settings: {
21857
+ Row: {
21858
+ created_at: string;
21859
+ id: string;
21860
+ is_package: boolean;
21861
+ label: string | null;
21862
+ layers_per_load_carrier: number | null;
21863
+ load_carrier: string | null;
21864
+ package_id: string | null;
21865
+ package_label: string | null;
21866
+ packages_per_layer: number | null;
21867
+ packing_configuration_id: string;
21868
+ product_id: string | null;
21869
+ tenant_id: string;
21870
+ trade_item_floriday_id: string | null;
21871
+ units_per_package: number | null;
21872
+ updated_at: string;
21873
+ };
21874
+ Insert: {
21875
+ created_at?: string;
21876
+ id?: string;
21877
+ is_package?: boolean;
21878
+ label?: string | null;
21879
+ layers_per_load_carrier?: number | null;
21880
+ load_carrier?: string | null;
21881
+ package_id?: string | null;
21882
+ package_label?: string | null;
21883
+ packages_per_layer?: number | null;
21884
+ packing_configuration_id?: string;
21885
+ product_id?: string | null;
21886
+ tenant_id: string;
21887
+ trade_item_floriday_id?: string | null;
21888
+ units_per_package?: number | null;
21889
+ updated_at?: string;
21890
+ };
21891
+ Update: {
21892
+ created_at?: string;
21893
+ id?: string;
21894
+ is_package?: boolean;
21895
+ label?: string | null;
21896
+ layers_per_load_carrier?: number | null;
21897
+ load_carrier?: string | null;
21898
+ package_id?: string | null;
21899
+ package_label?: string | null;
21900
+ packages_per_layer?: number | null;
21901
+ packing_configuration_id?: string;
21902
+ product_id?: string | null;
21903
+ tenant_id?: string;
21904
+ trade_item_floriday_id?: string | null;
21905
+ units_per_package?: number | null;
21906
+ updated_at?: string;
21907
+ };
21908
+ Relationships: [{
21909
+ foreignKeyName: "product_load_settings_package_id_fkey";
21910
+ columns: ["package_id"];
21911
+ isOneToOne: false;
21912
+ referencedRelation: "packages";
21913
+ referencedColumns: ["id"];
21914
+ }, {
21915
+ foreignKeyName: "product_load_settings_product_id_fkey";
21916
+ columns: ["product_id"];
21917
+ isOneToOne: false;
21918
+ referencedRelation: "products";
21919
+ referencedColumns: ["id"];
21920
+ }];
21921
+ };
21567
21922
  products: {
21568
21923
  Row: {
21924
+ article_number: string | null;
21569
21925
  barcode: string | null;
21570
21926
  batch: string;
21571
21927
  crates_per_layer: number;
21572
21928
  created_at: string;
21573
21929
  custom_fields: import("../integrations/supabase/types").Json;
21930
+ floriday_trade_item_id: string | null;
21574
21931
  id: string;
21575
21932
  image_url: string | null;
21576
21933
  incoming_quantity: number;
21934
+ is_layer: boolean;
21577
21935
  layers_per_cart: number;
21578
21936
  location: string;
21579
21937
  min_quantity: number;
@@ -21589,14 +21947,17 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
21589
21947
  weight: string | null;
21590
21948
  };
21591
21949
  Insert: {
21950
+ article_number?: string | null;
21592
21951
  barcode?: string | null;
21593
21952
  batch: string;
21594
21953
  crates_per_layer?: number;
21595
21954
  created_at?: string;
21596
21955
  custom_fields?: import("../integrations/supabase/types").Json;
21956
+ floriday_trade_item_id?: string | null;
21597
21957
  id?: string;
21598
21958
  image_url?: string | null;
21599
21959
  incoming_quantity?: number;
21960
+ is_layer?: boolean;
21600
21961
  layers_per_cart?: number;
21601
21962
  location: string;
21602
21963
  min_quantity?: number;
@@ -21612,14 +21973,17 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
21612
21973
  weight?: string | null;
21613
21974
  };
21614
21975
  Update: {
21976
+ article_number?: string | null;
21615
21977
  barcode?: string | null;
21616
21978
  batch?: string;
21617
21979
  crates_per_layer?: number;
21618
21980
  created_at?: string;
21619
21981
  custom_fields?: import("../integrations/supabase/types").Json;
21982
+ floriday_trade_item_id?: string | null;
21620
21983
  id?: string;
21621
21984
  image_url?: string | null;
21622
21985
  incoming_quantity?: number;
21986
+ is_layer?: boolean;
21623
21987
  layers_per_cart?: number;
21624
21988
  location?: string;
21625
21989
  min_quantity?: number;
@@ -21639,6 +22003,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
21639
22003
  profiles: {
21640
22004
  Row: {
21641
22005
  address: string | null;
22006
+ avatar_url: string | null;
21642
22007
  created_at: string;
21643
22008
  display_name: string | null;
21644
22009
  email: string | null;
@@ -21650,6 +22015,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
21650
22015
  };
21651
22016
  Insert: {
21652
22017
  address?: string | null;
22018
+ avatar_url?: string | null;
21653
22019
  created_at?: string;
21654
22020
  display_name?: string | null;
21655
22021
  email?: string | null;
@@ -21661,6 +22027,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
21661
22027
  };
21662
22028
  Update: {
21663
22029
  address?: string | null;
22030
+ avatar_url?: string | null;
21664
22031
  created_at?: string;
21665
22032
  display_name?: string | null;
21666
22033
  email?: string | null;
@@ -22527,6 +22894,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
22527
22894
  order_source: string | null;
22528
22895
  physical_after: number | null;
22529
22896
  physical_before: number | null;
22897
+ production_batch_id: string | null;
22530
22898
  qty_delta: number;
22531
22899
  reason: string | null;
22532
22900
  reserved_after: number | null;
@@ -22544,6 +22912,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
22544
22912
  order_source?: string | null;
22545
22913
  physical_after?: number | null;
22546
22914
  physical_before?: number | null;
22915
+ production_batch_id?: string | null;
22547
22916
  qty_delta: number;
22548
22917
  reason?: string | null;
22549
22918
  reserved_after?: number | null;
@@ -22561,6 +22930,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
22561
22930
  order_source?: string | null;
22562
22931
  physical_after?: number | null;
22563
22932
  physical_before?: number | null;
22933
+ production_batch_id?: string | null;
22564
22934
  qty_delta?: number;
22565
22935
  reason?: string | null;
22566
22936
  reserved_after?: number | null;
@@ -24989,6 +25359,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
24989
25359
  processed_items: number;
24990
25360
  }[];
24991
25361
  };
25362
+ calculate_layer_stock: {
25363
+ Args: {
25364
+ p_product_id: string;
25365
+ };
25366
+ Returns: number;
25367
+ };
24992
25368
  call_exact_route: {
24993
25369
  Args: {
24994
25370
  path: string;
@@ -25048,6 +25424,28 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
25048
25424
  Args: never;
25049
25425
  Returns: undefined;
25050
25426
  };
25427
+ consume_bom_for_production: {
25428
+ Args: {
25429
+ p_connection_id: string;
25430
+ p_parent_id: string;
25431
+ p_parent_key: string;
25432
+ p_parent_kind: string;
25433
+ p_quantity: number;
25434
+ p_user_id: string;
25435
+ };
25436
+ Returns: import("../integrations/supabase/types").Json;
25437
+ } | {
25438
+ Args: {
25439
+ p_batch_id?: string;
25440
+ p_connection_id: string;
25441
+ p_parent_id: string;
25442
+ p_parent_key: string;
25443
+ p_parent_kind: string;
25444
+ p_quantity: number;
25445
+ p_user_id: string;
25446
+ };
25447
+ Returns: import("../integrations/supabase/types").Json;
25448
+ };
25051
25449
  consume_floriday_rate_limit: {
25052
25450
  Args: {
25053
25451
  p_bucket: string;
@@ -25105,6 +25503,13 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
25105
25503
  table_name: string;
25106
25504
  }[];
25107
25505
  };
25506
+ delete_samenstelling: {
25507
+ Args: {
25508
+ p_parent_id: string;
25509
+ p_parent_kind: string;
25510
+ };
25511
+ Returns: import("../integrations/supabase/types").Json;
25512
+ };
25108
25513
  dispatch_carrier_signups_sql: {
25109
25514
  Args: {
25110
25515
  _catchup?: string;
@@ -25360,6 +25765,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
25360
25765
  minutes_since_success: number;
25361
25766
  }[];
25362
25767
  };
25768
+ get_inventory_stock_for_key: {
25769
+ Args: {
25770
+ p_key: string;
25771
+ };
25772
+ Returns: number;
25773
+ };
25363
25774
  get_offer_by_link_code: {
25364
25775
  Args: {
25365
25776
  p_code: string;
@@ -25390,6 +25801,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
25390
25801
  };
25391
25802
  Returns: string;
25392
25803
  };
25804
+ get_product_group_available_stock: {
25805
+ Args: {
25806
+ p_group_id: string;
25807
+ };
25808
+ Returns: number;
25809
+ };
25393
25810
  get_room_busy_windows: {
25394
25811
  Args: {
25395
25812
  p_from: string;
@@ -25463,6 +25880,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
25463
25880
  list_monteurs: {
25464
25881
  Args: never;
25465
25882
  Returns: {
25883
+ avatar_url: string;
25466
25884
  display_name: string;
25467
25885
  email: string;
25468
25886
  id: string;
@@ -25600,6 +26018,14 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
25600
26018
  };
25601
26019
  Returns: undefined;
25602
26020
  };
26021
+ produce_designed_product: {
26022
+ Args: {
26023
+ p_parent_id: string;
26024
+ p_parent_kind: string;
26025
+ p_quantity: number;
26026
+ };
26027
+ Returns: import("../integrations/supabase/types").Json;
26028
+ };
25603
26029
  promote_trade_item_key: {
25604
26030
  Args: {
25605
26031
  p_new: string;
@@ -25674,6 +26100,16 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
25674
26100
  };
25675
26101
  Returns: number;
25676
26102
  };
26103
+ reverse_production: {
26104
+ Args: {
26105
+ p_connection_id?: string;
26106
+ p_parent_key: string;
26107
+ p_quantity: number;
26108
+ p_reason?: string;
26109
+ p_user_id?: string;
26110
+ };
26111
+ Returns: import("../integrations/supabase/types").Json;
26112
+ };
25677
26113
  schedule_floriday_additional_services_sync: {
25678
26114
  Args: {
25679
26115
  p_apikey: string;
@@ -25958,18 +26394,34 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
25958
26394
  };
25959
26395
  Returns: string[];
25960
26396
  };
26397
+ sync_all_layer_stocks: {
26398
+ Args: never;
26399
+ Returns: undefined;
26400
+ };
25961
26401
  sync_cached_packing_from_product: {
25962
26402
  Args: {
25963
26403
  p_product_id: string;
25964
26404
  };
25965
26405
  Returns: undefined;
25966
26406
  };
26407
+ sync_layer_stock: {
26408
+ Args: {
26409
+ p_product_id: string;
26410
+ };
26411
+ Returns: undefined;
26412
+ };
25967
26413
  sync_order_cart_item_packing_from_product: {
25968
26414
  Args: {
25969
26415
  p_product_id: string;
25970
26416
  };
25971
26417
  Returns: undefined;
25972
26418
  };
26419
+ sync_product_group_belading: {
26420
+ Args: {
26421
+ _group_id: string;
26422
+ };
26423
+ Returns: undefined;
26424
+ };
25973
26425
  sync_product_packing_from_floriday_cache: {
25974
26426
  Args: {
25975
26427
  p_floriday_id: string;
@@ -26006,7 +26458,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
26006
26458
  exact_push_status: "pending" | "sent" | "error";
26007
26459
  itk_customer_segment: "Business" | "Private";
26008
26460
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
26009
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
26461
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
26010
26462
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
26011
26463
  };
26012
26464
  CompositeTypes: { [_ in never]: never; };
@@ -34383,6 +34835,66 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
34383
34835
  referencedColumns: ["id"];
34384
34836
  }];
34385
34837
  };
34838
+ product_bom_items: {
34839
+ Row: {
34840
+ component_product_id: string | null;
34841
+ component_trade_item_floriday_id: string | null;
34842
+ created_at: string;
34843
+ id: string;
34844
+ notes: string | null;
34845
+ packing_configuration_id: string | null;
34846
+ parent_product_id: string | null;
34847
+ parent_trade_item_floriday_id: string | null;
34848
+ quantity: number;
34849
+ sort_order: number;
34850
+ tenant_id: string;
34851
+ unit: string;
34852
+ updated_at: string;
34853
+ };
34854
+ Insert: {
34855
+ component_product_id?: string | null;
34856
+ component_trade_item_floriday_id?: string | null;
34857
+ created_at?: string;
34858
+ id?: string;
34859
+ notes?: string | null;
34860
+ packing_configuration_id?: string | null;
34861
+ parent_product_id?: string | null;
34862
+ parent_trade_item_floriday_id?: string | null;
34863
+ quantity?: number;
34864
+ sort_order?: number;
34865
+ tenant_id: string;
34866
+ unit?: string;
34867
+ updated_at?: string;
34868
+ };
34869
+ Update: {
34870
+ component_product_id?: string | null;
34871
+ component_trade_item_floriday_id?: string | null;
34872
+ created_at?: string;
34873
+ id?: string;
34874
+ notes?: string | null;
34875
+ packing_configuration_id?: string | null;
34876
+ parent_product_id?: string | null;
34877
+ parent_trade_item_floriday_id?: string | null;
34878
+ quantity?: number;
34879
+ sort_order?: number;
34880
+ tenant_id?: string;
34881
+ unit?: string;
34882
+ updated_at?: string;
34883
+ };
34884
+ Relationships: [{
34885
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
34886
+ columns: ["component_product_id"];
34887
+ isOneToOne: false;
34888
+ referencedRelation: "products";
34889
+ referencedColumns: ["id"];
34890
+ }, {
34891
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
34892
+ columns: ["parent_product_id"];
34893
+ isOneToOne: false;
34894
+ referencedRelation: "products";
34895
+ referencedColumns: ["id"];
34896
+ }];
34897
+ };
34386
34898
  product_categories: {
34387
34899
  Row: {
34388
34900
  color: string;
@@ -34488,6 +35000,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
34488
35000
  id: string;
34489
35001
  product_group_id: string;
34490
35002
  quantity: number;
35003
+ sort_order: number;
34491
35004
  trade_item_id: string;
34492
35005
  };
34493
35006
  Insert: {
@@ -34495,6 +35008,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
34495
35008
  id?: string;
34496
35009
  product_group_id: string;
34497
35010
  quantity?: number;
35011
+ sort_order?: number;
34498
35012
  trade_item_id: string;
34499
35013
  };
34500
35014
  Update: {
@@ -34502,6 +35016,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
34502
35016
  id?: string;
34503
35017
  product_group_id?: string;
34504
35018
  quantity?: number;
35019
+ sort_order?: number;
34505
35020
  trade_item_id?: string;
34506
35021
  };
34507
35022
  Relationships: [{
@@ -34554,16 +35069,85 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
34554
35069
  referencedColumns: ["id"];
34555
35070
  }];
34556
35071
  };
35072
+ product_load_settings: {
35073
+ Row: {
35074
+ created_at: string;
35075
+ id: string;
35076
+ is_package: boolean;
35077
+ label: string | null;
35078
+ layers_per_load_carrier: number | null;
35079
+ load_carrier: string | null;
35080
+ package_id: string | null;
35081
+ package_label: string | null;
35082
+ packages_per_layer: number | null;
35083
+ packing_configuration_id: string;
35084
+ product_id: string | null;
35085
+ tenant_id: string;
35086
+ trade_item_floriday_id: string | null;
35087
+ units_per_package: number | null;
35088
+ updated_at: string;
35089
+ };
35090
+ Insert: {
35091
+ created_at?: string;
35092
+ id?: string;
35093
+ is_package?: boolean;
35094
+ label?: string | null;
35095
+ layers_per_load_carrier?: number | null;
35096
+ load_carrier?: string | null;
35097
+ package_id?: string | null;
35098
+ package_label?: string | null;
35099
+ packages_per_layer?: number | null;
35100
+ packing_configuration_id?: string;
35101
+ product_id?: string | null;
35102
+ tenant_id: string;
35103
+ trade_item_floriday_id?: string | null;
35104
+ units_per_package?: number | null;
35105
+ updated_at?: string;
35106
+ };
35107
+ Update: {
35108
+ created_at?: string;
35109
+ id?: string;
35110
+ is_package?: boolean;
35111
+ label?: string | null;
35112
+ layers_per_load_carrier?: number | null;
35113
+ load_carrier?: string | null;
35114
+ package_id?: string | null;
35115
+ package_label?: string | null;
35116
+ packages_per_layer?: number | null;
35117
+ packing_configuration_id?: string;
35118
+ product_id?: string | null;
35119
+ tenant_id?: string;
35120
+ trade_item_floriday_id?: string | null;
35121
+ units_per_package?: number | null;
35122
+ updated_at?: string;
35123
+ };
35124
+ Relationships: [{
35125
+ foreignKeyName: "product_load_settings_package_id_fkey";
35126
+ columns: ["package_id"];
35127
+ isOneToOne: false;
35128
+ referencedRelation: "packages";
35129
+ referencedColumns: ["id"];
35130
+ }, {
35131
+ foreignKeyName: "product_load_settings_product_id_fkey";
35132
+ columns: ["product_id"];
35133
+ isOneToOne: false;
35134
+ referencedRelation: "products";
35135
+ referencedColumns: ["id"];
35136
+ }];
35137
+ };
34557
35138
  products: {
34558
35139
  Row: {
35140
+ article_number: string | null;
34559
35141
  barcode: string | null;
34560
35142
  batch: string;
34561
35143
  crates_per_layer: number;
34562
35144
  created_at: string;
34563
35145
  custom_fields: import("../integrations/supabase/types").Json;
35146
+ floriday_trade_item_id: string | null;
34564
35147
  id: string;
34565
35148
  image_url: string | null;
34566
35149
  incoming_quantity: number;
35150
+ is_layer: boolean;
34567
35151
  layers_per_cart: number;
34568
35152
  location: string;
34569
35153
  min_quantity: number;
@@ -34579,14 +35163,17 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
34579
35163
  weight: string | null;
34580
35164
  };
34581
35165
  Insert: {
35166
+ article_number?: string | null;
34582
35167
  barcode?: string | null;
34583
35168
  batch: string;
34584
35169
  crates_per_layer?: number;
34585
35170
  created_at?: string;
34586
35171
  custom_fields?: import("../integrations/supabase/types").Json;
35172
+ floriday_trade_item_id?: string | null;
34587
35173
  id?: string;
34588
35174
  image_url?: string | null;
34589
35175
  incoming_quantity?: number;
35176
+ is_layer?: boolean;
34590
35177
  layers_per_cart?: number;
34591
35178
  location: string;
34592
35179
  min_quantity?: number;
@@ -34602,14 +35189,17 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
34602
35189
  weight?: string | null;
34603
35190
  };
34604
35191
  Update: {
35192
+ article_number?: string | null;
34605
35193
  barcode?: string | null;
34606
35194
  batch?: string;
34607
35195
  crates_per_layer?: number;
34608
35196
  created_at?: string;
34609
35197
  custom_fields?: import("../integrations/supabase/types").Json;
35198
+ floriday_trade_item_id?: string | null;
34610
35199
  id?: string;
34611
35200
  image_url?: string | null;
34612
35201
  incoming_quantity?: number;
35202
+ is_layer?: boolean;
34613
35203
  layers_per_cart?: number;
34614
35204
  location?: string;
34615
35205
  min_quantity?: number;
@@ -34629,6 +35219,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
34629
35219
  profiles: {
34630
35220
  Row: {
34631
35221
  address: string | null;
35222
+ avatar_url: string | null;
34632
35223
  created_at: string;
34633
35224
  display_name: string | null;
34634
35225
  email: string | null;
@@ -34640,6 +35231,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
34640
35231
  };
34641
35232
  Insert: {
34642
35233
  address?: string | null;
35234
+ avatar_url?: string | null;
34643
35235
  created_at?: string;
34644
35236
  display_name?: string | null;
34645
35237
  email?: string | null;
@@ -34651,6 +35243,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
34651
35243
  };
34652
35244
  Update: {
34653
35245
  address?: string | null;
35246
+ avatar_url?: string | null;
34654
35247
  created_at?: string;
34655
35248
  display_name?: string | null;
34656
35249
  email?: string | null;
@@ -35517,6 +36110,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
35517
36110
  order_source: string | null;
35518
36111
  physical_after: number | null;
35519
36112
  physical_before: number | null;
36113
+ production_batch_id: string | null;
35520
36114
  qty_delta: number;
35521
36115
  reason: string | null;
35522
36116
  reserved_after: number | null;
@@ -35534,6 +36128,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
35534
36128
  order_source?: string | null;
35535
36129
  physical_after?: number | null;
35536
36130
  physical_before?: number | null;
36131
+ production_batch_id?: string | null;
35537
36132
  qty_delta: number;
35538
36133
  reason?: string | null;
35539
36134
  reserved_after?: number | null;
@@ -35551,6 +36146,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
35551
36146
  order_source?: string | null;
35552
36147
  physical_after?: number | null;
35553
36148
  physical_before?: number | null;
36149
+ production_batch_id?: string | null;
35554
36150
  qty_delta?: number;
35555
36151
  reason?: string | null;
35556
36152
  reserved_after?: number | null;
@@ -37979,6 +38575,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
37979
38575
  processed_items: number;
37980
38576
  }[];
37981
38577
  };
38578
+ calculate_layer_stock: {
38579
+ Args: {
38580
+ p_product_id: string;
38581
+ };
38582
+ Returns: number;
38583
+ };
37982
38584
  call_exact_route: {
37983
38585
  Args: {
37984
38586
  path: string;
@@ -38038,6 +38640,28 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
38038
38640
  Args: never;
38039
38641
  Returns: undefined;
38040
38642
  };
38643
+ consume_bom_for_production: {
38644
+ Args: {
38645
+ p_connection_id: string;
38646
+ p_parent_id: string;
38647
+ p_parent_key: string;
38648
+ p_parent_kind: string;
38649
+ p_quantity: number;
38650
+ p_user_id: string;
38651
+ };
38652
+ Returns: import("../integrations/supabase/types").Json;
38653
+ } | {
38654
+ Args: {
38655
+ p_batch_id?: string;
38656
+ p_connection_id: string;
38657
+ p_parent_id: string;
38658
+ p_parent_key: string;
38659
+ p_parent_kind: string;
38660
+ p_quantity: number;
38661
+ p_user_id: string;
38662
+ };
38663
+ Returns: import("../integrations/supabase/types").Json;
38664
+ };
38041
38665
  consume_floriday_rate_limit: {
38042
38666
  Args: {
38043
38667
  p_bucket: string;
@@ -38095,6 +38719,13 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
38095
38719
  table_name: string;
38096
38720
  }[];
38097
38721
  };
38722
+ delete_samenstelling: {
38723
+ Args: {
38724
+ p_parent_id: string;
38725
+ p_parent_kind: string;
38726
+ };
38727
+ Returns: import("../integrations/supabase/types").Json;
38728
+ };
38098
38729
  dispatch_carrier_signups_sql: {
38099
38730
  Args: {
38100
38731
  _catchup?: string;
@@ -38350,6 +38981,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
38350
38981
  minutes_since_success: number;
38351
38982
  }[];
38352
38983
  };
38984
+ get_inventory_stock_for_key: {
38985
+ Args: {
38986
+ p_key: string;
38987
+ };
38988
+ Returns: number;
38989
+ };
38353
38990
  get_offer_by_link_code: {
38354
38991
  Args: {
38355
38992
  p_code: string;
@@ -38380,6 +39017,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
38380
39017
  };
38381
39018
  Returns: string;
38382
39019
  };
39020
+ get_product_group_available_stock: {
39021
+ Args: {
39022
+ p_group_id: string;
39023
+ };
39024
+ Returns: number;
39025
+ };
38383
39026
  get_room_busy_windows: {
38384
39027
  Args: {
38385
39028
  p_from: string;
@@ -38453,6 +39096,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
38453
39096
  list_monteurs: {
38454
39097
  Args: never;
38455
39098
  Returns: {
39099
+ avatar_url: string;
38456
39100
  display_name: string;
38457
39101
  email: string;
38458
39102
  id: string;
@@ -38590,6 +39234,14 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
38590
39234
  };
38591
39235
  Returns: undefined;
38592
39236
  };
39237
+ produce_designed_product: {
39238
+ Args: {
39239
+ p_parent_id: string;
39240
+ p_parent_kind: string;
39241
+ p_quantity: number;
39242
+ };
39243
+ Returns: import("../integrations/supabase/types").Json;
39244
+ };
38593
39245
  promote_trade_item_key: {
38594
39246
  Args: {
38595
39247
  p_new: string;
@@ -38664,6 +39316,16 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
38664
39316
  };
38665
39317
  Returns: number;
38666
39318
  };
39319
+ reverse_production: {
39320
+ Args: {
39321
+ p_connection_id?: string;
39322
+ p_parent_key: string;
39323
+ p_quantity: number;
39324
+ p_reason?: string;
39325
+ p_user_id?: string;
39326
+ };
39327
+ Returns: import("../integrations/supabase/types").Json;
39328
+ };
38667
39329
  schedule_floriday_additional_services_sync: {
38668
39330
  Args: {
38669
39331
  p_apikey: string;
@@ -38948,18 +39610,34 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
38948
39610
  };
38949
39611
  Returns: string[];
38950
39612
  };
39613
+ sync_all_layer_stocks: {
39614
+ Args: never;
39615
+ Returns: undefined;
39616
+ };
38951
39617
  sync_cached_packing_from_product: {
38952
39618
  Args: {
38953
39619
  p_product_id: string;
38954
39620
  };
38955
39621
  Returns: undefined;
38956
39622
  };
39623
+ sync_layer_stock: {
39624
+ Args: {
39625
+ p_product_id: string;
39626
+ };
39627
+ Returns: undefined;
39628
+ };
38957
39629
  sync_order_cart_item_packing_from_product: {
38958
39630
  Args: {
38959
39631
  p_product_id: string;
38960
39632
  };
38961
39633
  Returns: undefined;
38962
39634
  };
39635
+ sync_product_group_belading: {
39636
+ Args: {
39637
+ _group_id: string;
39638
+ };
39639
+ Returns: undefined;
39640
+ };
38963
39641
  sync_product_packing_from_floriday_cache: {
38964
39642
  Args: {
38965
39643
  p_floriday_id: string;
@@ -38996,7 +39674,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
38996
39674
  exact_push_status: "pending" | "sent" | "error";
38997
39675
  itk_customer_segment: "Business" | "Private";
38998
39676
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
38999
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
39677
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
39000
39678
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
39001
39679
  };
39002
39680
  CompositeTypes: { [_ in never]: never; };
@@ -47371,6 +48049,66 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
47371
48049
  referencedColumns: ["id"];
47372
48050
  }];
47373
48051
  };
48052
+ product_bom_items: {
48053
+ Row: {
48054
+ component_product_id: string | null;
48055
+ component_trade_item_floriday_id: string | null;
48056
+ created_at: string;
48057
+ id: string;
48058
+ notes: string | null;
48059
+ packing_configuration_id: string | null;
48060
+ parent_product_id: string | null;
48061
+ parent_trade_item_floriday_id: string | null;
48062
+ quantity: number;
48063
+ sort_order: number;
48064
+ tenant_id: string;
48065
+ unit: string;
48066
+ updated_at: string;
48067
+ };
48068
+ Insert: {
48069
+ component_product_id?: string | null;
48070
+ component_trade_item_floriday_id?: string | null;
48071
+ created_at?: string;
48072
+ id?: string;
48073
+ notes?: string | null;
48074
+ packing_configuration_id?: string | null;
48075
+ parent_product_id?: string | null;
48076
+ parent_trade_item_floriday_id?: string | null;
48077
+ quantity?: number;
48078
+ sort_order?: number;
48079
+ tenant_id: string;
48080
+ unit?: string;
48081
+ updated_at?: string;
48082
+ };
48083
+ Update: {
48084
+ component_product_id?: string | null;
48085
+ component_trade_item_floriday_id?: string | null;
48086
+ created_at?: string;
48087
+ id?: string;
48088
+ notes?: string | null;
48089
+ packing_configuration_id?: string | null;
48090
+ parent_product_id?: string | null;
48091
+ parent_trade_item_floriday_id?: string | null;
48092
+ quantity?: number;
48093
+ sort_order?: number;
48094
+ tenant_id?: string;
48095
+ unit?: string;
48096
+ updated_at?: string;
48097
+ };
48098
+ Relationships: [{
48099
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
48100
+ columns: ["component_product_id"];
48101
+ isOneToOne: false;
48102
+ referencedRelation: "products";
48103
+ referencedColumns: ["id"];
48104
+ }, {
48105
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
48106
+ columns: ["parent_product_id"];
48107
+ isOneToOne: false;
48108
+ referencedRelation: "products";
48109
+ referencedColumns: ["id"];
48110
+ }];
48111
+ };
47374
48112
  product_categories: {
47375
48113
  Row: {
47376
48114
  color: string;
@@ -47476,6 +48214,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
47476
48214
  id: string;
47477
48215
  product_group_id: string;
47478
48216
  quantity: number;
48217
+ sort_order: number;
47479
48218
  trade_item_id: string;
47480
48219
  };
47481
48220
  Insert: {
@@ -47483,6 +48222,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
47483
48222
  id?: string;
47484
48223
  product_group_id: string;
47485
48224
  quantity?: number;
48225
+ sort_order?: number;
47486
48226
  trade_item_id: string;
47487
48227
  };
47488
48228
  Update: {
@@ -47490,6 +48230,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
47490
48230
  id?: string;
47491
48231
  product_group_id?: string;
47492
48232
  quantity?: number;
48233
+ sort_order?: number;
47493
48234
  trade_item_id?: string;
47494
48235
  };
47495
48236
  Relationships: [{
@@ -47542,16 +48283,85 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
47542
48283
  referencedColumns: ["id"];
47543
48284
  }];
47544
48285
  };
48286
+ product_load_settings: {
48287
+ Row: {
48288
+ created_at: string;
48289
+ id: string;
48290
+ is_package: boolean;
48291
+ label: string | null;
48292
+ layers_per_load_carrier: number | null;
48293
+ load_carrier: string | null;
48294
+ package_id: string | null;
48295
+ package_label: string | null;
48296
+ packages_per_layer: number | null;
48297
+ packing_configuration_id: string;
48298
+ product_id: string | null;
48299
+ tenant_id: string;
48300
+ trade_item_floriday_id: string | null;
48301
+ units_per_package: number | null;
48302
+ updated_at: string;
48303
+ };
48304
+ Insert: {
48305
+ created_at?: string;
48306
+ id?: string;
48307
+ is_package?: boolean;
48308
+ label?: string | null;
48309
+ layers_per_load_carrier?: number | null;
48310
+ load_carrier?: string | null;
48311
+ package_id?: string | null;
48312
+ package_label?: string | null;
48313
+ packages_per_layer?: number | null;
48314
+ packing_configuration_id?: string;
48315
+ product_id?: string | null;
48316
+ tenant_id: string;
48317
+ trade_item_floriday_id?: string | null;
48318
+ units_per_package?: number | null;
48319
+ updated_at?: string;
48320
+ };
48321
+ Update: {
48322
+ created_at?: string;
48323
+ id?: string;
48324
+ is_package?: boolean;
48325
+ label?: string | null;
48326
+ layers_per_load_carrier?: number | null;
48327
+ load_carrier?: string | null;
48328
+ package_id?: string | null;
48329
+ package_label?: string | null;
48330
+ packages_per_layer?: number | null;
48331
+ packing_configuration_id?: string;
48332
+ product_id?: string | null;
48333
+ tenant_id?: string;
48334
+ trade_item_floriday_id?: string | null;
48335
+ units_per_package?: number | null;
48336
+ updated_at?: string;
48337
+ };
48338
+ Relationships: [{
48339
+ foreignKeyName: "product_load_settings_package_id_fkey";
48340
+ columns: ["package_id"];
48341
+ isOneToOne: false;
48342
+ referencedRelation: "packages";
48343
+ referencedColumns: ["id"];
48344
+ }, {
48345
+ foreignKeyName: "product_load_settings_product_id_fkey";
48346
+ columns: ["product_id"];
48347
+ isOneToOne: false;
48348
+ referencedRelation: "products";
48349
+ referencedColumns: ["id"];
48350
+ }];
48351
+ };
47545
48352
  products: {
47546
48353
  Row: {
48354
+ article_number: string | null;
47547
48355
  barcode: string | null;
47548
48356
  batch: string;
47549
48357
  crates_per_layer: number;
47550
48358
  created_at: string;
47551
48359
  custom_fields: import("../integrations/supabase/types").Json;
48360
+ floriday_trade_item_id: string | null;
47552
48361
  id: string;
47553
48362
  image_url: string | null;
47554
48363
  incoming_quantity: number;
48364
+ is_layer: boolean;
47555
48365
  layers_per_cart: number;
47556
48366
  location: string;
47557
48367
  min_quantity: number;
@@ -47567,14 +48377,17 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
47567
48377
  weight: string | null;
47568
48378
  };
47569
48379
  Insert: {
48380
+ article_number?: string | null;
47570
48381
  barcode?: string | null;
47571
48382
  batch: string;
47572
48383
  crates_per_layer?: number;
47573
48384
  created_at?: string;
47574
48385
  custom_fields?: import("../integrations/supabase/types").Json;
48386
+ floriday_trade_item_id?: string | null;
47575
48387
  id?: string;
47576
48388
  image_url?: string | null;
47577
48389
  incoming_quantity?: number;
48390
+ is_layer?: boolean;
47578
48391
  layers_per_cart?: number;
47579
48392
  location: string;
47580
48393
  min_quantity?: number;
@@ -47590,14 +48403,17 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
47590
48403
  weight?: string | null;
47591
48404
  };
47592
48405
  Update: {
48406
+ article_number?: string | null;
47593
48407
  barcode?: string | null;
47594
48408
  batch?: string;
47595
48409
  crates_per_layer?: number;
47596
48410
  created_at?: string;
47597
48411
  custom_fields?: import("../integrations/supabase/types").Json;
48412
+ floriday_trade_item_id?: string | null;
47598
48413
  id?: string;
47599
48414
  image_url?: string | null;
47600
48415
  incoming_quantity?: number;
48416
+ is_layer?: boolean;
47601
48417
  layers_per_cart?: number;
47602
48418
  location?: string;
47603
48419
  min_quantity?: number;
@@ -47617,6 +48433,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
47617
48433
  profiles: {
47618
48434
  Row: {
47619
48435
  address: string | null;
48436
+ avatar_url: string | null;
47620
48437
  created_at: string;
47621
48438
  display_name: string | null;
47622
48439
  email: string | null;
@@ -47628,6 +48445,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
47628
48445
  };
47629
48446
  Insert: {
47630
48447
  address?: string | null;
48448
+ avatar_url?: string | null;
47631
48449
  created_at?: string;
47632
48450
  display_name?: string | null;
47633
48451
  email?: string | null;
@@ -47639,6 +48457,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
47639
48457
  };
47640
48458
  Update: {
47641
48459
  address?: string | null;
48460
+ avatar_url?: string | null;
47642
48461
  created_at?: string;
47643
48462
  display_name?: string | null;
47644
48463
  email?: string | null;
@@ -48505,6 +49324,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
48505
49324
  order_source: string | null;
48506
49325
  physical_after: number | null;
48507
49326
  physical_before: number | null;
49327
+ production_batch_id: string | null;
48508
49328
  qty_delta: number;
48509
49329
  reason: string | null;
48510
49330
  reserved_after: number | null;
@@ -48522,6 +49342,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
48522
49342
  order_source?: string | null;
48523
49343
  physical_after?: number | null;
48524
49344
  physical_before?: number | null;
49345
+ production_batch_id?: string | null;
48525
49346
  qty_delta: number;
48526
49347
  reason?: string | null;
48527
49348
  reserved_after?: number | null;
@@ -48539,6 +49360,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
48539
49360
  order_source?: string | null;
48540
49361
  physical_after?: number | null;
48541
49362
  physical_before?: number | null;
49363
+ production_batch_id?: string | null;
48542
49364
  qty_delta?: number;
48543
49365
  reason?: string | null;
48544
49366
  reserved_after?: number | null;
@@ -50967,6 +51789,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
50967
51789
  processed_items: number;
50968
51790
  }[];
50969
51791
  };
51792
+ calculate_layer_stock: {
51793
+ Args: {
51794
+ p_product_id: string;
51795
+ };
51796
+ Returns: number;
51797
+ };
50970
51798
  call_exact_route: {
50971
51799
  Args: {
50972
51800
  path: string;
@@ -51026,6 +51854,28 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
51026
51854
  Args: never;
51027
51855
  Returns: undefined;
51028
51856
  };
51857
+ consume_bom_for_production: {
51858
+ Args: {
51859
+ p_connection_id: string;
51860
+ p_parent_id: string;
51861
+ p_parent_key: string;
51862
+ p_parent_kind: string;
51863
+ p_quantity: number;
51864
+ p_user_id: string;
51865
+ };
51866
+ Returns: import("../integrations/supabase/types").Json;
51867
+ } | {
51868
+ Args: {
51869
+ p_batch_id?: string;
51870
+ p_connection_id: string;
51871
+ p_parent_id: string;
51872
+ p_parent_key: string;
51873
+ p_parent_kind: string;
51874
+ p_quantity: number;
51875
+ p_user_id: string;
51876
+ };
51877
+ Returns: import("../integrations/supabase/types").Json;
51878
+ };
51029
51879
  consume_floriday_rate_limit: {
51030
51880
  Args: {
51031
51881
  p_bucket: string;
@@ -51083,6 +51933,13 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
51083
51933
  table_name: string;
51084
51934
  }[];
51085
51935
  };
51936
+ delete_samenstelling: {
51937
+ Args: {
51938
+ p_parent_id: string;
51939
+ p_parent_kind: string;
51940
+ };
51941
+ Returns: import("../integrations/supabase/types").Json;
51942
+ };
51086
51943
  dispatch_carrier_signups_sql: {
51087
51944
  Args: {
51088
51945
  _catchup?: string;
@@ -51338,6 +52195,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
51338
52195
  minutes_since_success: number;
51339
52196
  }[];
51340
52197
  };
52198
+ get_inventory_stock_for_key: {
52199
+ Args: {
52200
+ p_key: string;
52201
+ };
52202
+ Returns: number;
52203
+ };
51341
52204
  get_offer_by_link_code: {
51342
52205
  Args: {
51343
52206
  p_code: string;
@@ -51368,6 +52231,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
51368
52231
  };
51369
52232
  Returns: string;
51370
52233
  };
52234
+ get_product_group_available_stock: {
52235
+ Args: {
52236
+ p_group_id: string;
52237
+ };
52238
+ Returns: number;
52239
+ };
51371
52240
  get_room_busy_windows: {
51372
52241
  Args: {
51373
52242
  p_from: string;
@@ -51441,6 +52310,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
51441
52310
  list_monteurs: {
51442
52311
  Args: never;
51443
52312
  Returns: {
52313
+ avatar_url: string;
51444
52314
  display_name: string;
51445
52315
  email: string;
51446
52316
  id: string;
@@ -51578,6 +52448,14 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
51578
52448
  };
51579
52449
  Returns: undefined;
51580
52450
  };
52451
+ produce_designed_product: {
52452
+ Args: {
52453
+ p_parent_id: string;
52454
+ p_parent_kind: string;
52455
+ p_quantity: number;
52456
+ };
52457
+ Returns: import("../integrations/supabase/types").Json;
52458
+ };
51581
52459
  promote_trade_item_key: {
51582
52460
  Args: {
51583
52461
  p_new: string;
@@ -51652,6 +52530,16 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
51652
52530
  };
51653
52531
  Returns: number;
51654
52532
  };
52533
+ reverse_production: {
52534
+ Args: {
52535
+ p_connection_id?: string;
52536
+ p_parent_key: string;
52537
+ p_quantity: number;
52538
+ p_reason?: string;
52539
+ p_user_id?: string;
52540
+ };
52541
+ Returns: import("../integrations/supabase/types").Json;
52542
+ };
51655
52543
  schedule_floriday_additional_services_sync: {
51656
52544
  Args: {
51657
52545
  p_apikey: string;
@@ -51936,18 +52824,34 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
51936
52824
  };
51937
52825
  Returns: string[];
51938
52826
  };
52827
+ sync_all_layer_stocks: {
52828
+ Args: never;
52829
+ Returns: undefined;
52830
+ };
51939
52831
  sync_cached_packing_from_product: {
51940
52832
  Args: {
51941
52833
  p_product_id: string;
51942
52834
  };
51943
52835
  Returns: undefined;
51944
52836
  };
52837
+ sync_layer_stock: {
52838
+ Args: {
52839
+ p_product_id: string;
52840
+ };
52841
+ Returns: undefined;
52842
+ };
51945
52843
  sync_order_cart_item_packing_from_product: {
51946
52844
  Args: {
51947
52845
  p_product_id: string;
51948
52846
  };
51949
52847
  Returns: undefined;
51950
52848
  };
52849
+ sync_product_group_belading: {
52850
+ Args: {
52851
+ _group_id: string;
52852
+ };
52853
+ Returns: undefined;
52854
+ };
51951
52855
  sync_product_packing_from_floriday_cache: {
51952
52856
  Args: {
51953
52857
  p_floriday_id: string;
@@ -51984,7 +52888,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
51984
52888
  exact_push_status: "pending" | "sent" | "error";
51985
52889
  itk_customer_segment: "Business" | "Private";
51986
52890
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
51987
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
52891
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
51988
52892
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
51989
52893
  };
51990
52894
  CompositeTypes: { [_ in never]: never; };