@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
@@ -8382,6 +8382,66 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
8382
8382
  referencedColumns: ["id"];
8383
8383
  }];
8384
8384
  };
8385
+ product_bom_items: {
8386
+ Row: {
8387
+ component_product_id: string | null;
8388
+ component_trade_item_floriday_id: string | null;
8389
+ created_at: string;
8390
+ id: string;
8391
+ notes: string | null;
8392
+ packing_configuration_id: string | null;
8393
+ parent_product_id: string | null;
8394
+ parent_trade_item_floriday_id: string | null;
8395
+ quantity: number;
8396
+ sort_order: number;
8397
+ tenant_id: string;
8398
+ unit: string;
8399
+ updated_at: string;
8400
+ };
8401
+ Insert: {
8402
+ component_product_id?: string | null;
8403
+ component_trade_item_floriday_id?: string | null;
8404
+ created_at?: string;
8405
+ id?: string;
8406
+ notes?: string | null;
8407
+ packing_configuration_id?: string | null;
8408
+ parent_product_id?: string | null;
8409
+ parent_trade_item_floriday_id?: string | null;
8410
+ quantity?: number;
8411
+ sort_order?: number;
8412
+ tenant_id: string;
8413
+ unit?: string;
8414
+ updated_at?: string;
8415
+ };
8416
+ Update: {
8417
+ component_product_id?: string | null;
8418
+ component_trade_item_floriday_id?: string | null;
8419
+ created_at?: string;
8420
+ id?: string;
8421
+ notes?: string | null;
8422
+ packing_configuration_id?: string | null;
8423
+ parent_product_id?: string | null;
8424
+ parent_trade_item_floriday_id?: string | null;
8425
+ quantity?: number;
8426
+ sort_order?: number;
8427
+ tenant_id?: string;
8428
+ unit?: string;
8429
+ updated_at?: string;
8430
+ };
8431
+ Relationships: [{
8432
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8433
+ columns: ["component_product_id"];
8434
+ isOneToOne: false;
8435
+ referencedRelation: "products";
8436
+ referencedColumns: ["id"];
8437
+ }, {
8438
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8439
+ columns: ["parent_product_id"];
8440
+ isOneToOne: false;
8441
+ referencedRelation: "products";
8442
+ referencedColumns: ["id"];
8443
+ }];
8444
+ };
8385
8445
  product_categories: {
8386
8446
  Row: {
8387
8447
  color: string;
@@ -8487,6 +8547,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
8487
8547
  id: string;
8488
8548
  product_group_id: string;
8489
8549
  quantity: number;
8550
+ sort_order: number;
8490
8551
  trade_item_id: string;
8491
8552
  };
8492
8553
  Insert: {
@@ -8494,6 +8555,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
8494
8555
  id?: string;
8495
8556
  product_group_id: string;
8496
8557
  quantity?: number;
8558
+ sort_order?: number;
8497
8559
  trade_item_id: string;
8498
8560
  };
8499
8561
  Update: {
@@ -8501,6 +8563,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
8501
8563
  id?: string;
8502
8564
  product_group_id?: string;
8503
8565
  quantity?: number;
8566
+ sort_order?: number;
8504
8567
  trade_item_id?: string;
8505
8568
  };
8506
8569
  Relationships: [{
@@ -8553,16 +8616,85 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
8553
8616
  referencedColumns: ["id"];
8554
8617
  }];
8555
8618
  };
8619
+ product_load_settings: {
8620
+ Row: {
8621
+ created_at: string;
8622
+ id: string;
8623
+ is_package: boolean;
8624
+ label: string | null;
8625
+ layers_per_load_carrier: number | null;
8626
+ load_carrier: string | null;
8627
+ package_id: string | null;
8628
+ package_label: string | null;
8629
+ packages_per_layer: number | null;
8630
+ packing_configuration_id: string;
8631
+ product_id: string | null;
8632
+ tenant_id: string;
8633
+ trade_item_floriday_id: string | null;
8634
+ units_per_package: number | null;
8635
+ updated_at: string;
8636
+ };
8637
+ Insert: {
8638
+ created_at?: string;
8639
+ id?: string;
8640
+ is_package?: boolean;
8641
+ label?: string | null;
8642
+ layers_per_load_carrier?: number | null;
8643
+ load_carrier?: string | null;
8644
+ package_id?: string | null;
8645
+ package_label?: string | null;
8646
+ packages_per_layer?: number | null;
8647
+ packing_configuration_id?: string;
8648
+ product_id?: string | null;
8649
+ tenant_id: string;
8650
+ trade_item_floriday_id?: string | null;
8651
+ units_per_package?: number | null;
8652
+ updated_at?: string;
8653
+ };
8654
+ Update: {
8655
+ created_at?: string;
8656
+ id?: string;
8657
+ is_package?: boolean;
8658
+ label?: string | null;
8659
+ layers_per_load_carrier?: number | null;
8660
+ load_carrier?: string | null;
8661
+ package_id?: string | null;
8662
+ package_label?: string | null;
8663
+ packages_per_layer?: number | null;
8664
+ packing_configuration_id?: string;
8665
+ product_id?: string | null;
8666
+ tenant_id?: string;
8667
+ trade_item_floriday_id?: string | null;
8668
+ units_per_package?: number | null;
8669
+ updated_at?: string;
8670
+ };
8671
+ Relationships: [{
8672
+ foreignKeyName: "product_load_settings_package_id_fkey";
8673
+ columns: ["package_id"];
8674
+ isOneToOne: false;
8675
+ referencedRelation: "packages";
8676
+ referencedColumns: ["id"];
8677
+ }, {
8678
+ foreignKeyName: "product_load_settings_product_id_fkey";
8679
+ columns: ["product_id"];
8680
+ isOneToOne: false;
8681
+ referencedRelation: "products";
8682
+ referencedColumns: ["id"];
8683
+ }];
8684
+ };
8556
8685
  products: {
8557
8686
  Row: {
8687
+ article_number: string | null;
8558
8688
  barcode: string | null;
8559
8689
  batch: string;
8560
8690
  crates_per_layer: number;
8561
8691
  created_at: string;
8562
8692
  custom_fields: import("../integrations/supabase/types").Json;
8693
+ floriday_trade_item_id: string | null;
8563
8694
  id: string;
8564
8695
  image_url: string | null;
8565
8696
  incoming_quantity: number;
8697
+ is_layer: boolean;
8566
8698
  layers_per_cart: number;
8567
8699
  location: string;
8568
8700
  min_quantity: number;
@@ -8578,14 +8710,17 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
8578
8710
  weight: string | null;
8579
8711
  };
8580
8712
  Insert: {
8713
+ article_number?: string | null;
8581
8714
  barcode?: string | null;
8582
8715
  batch: string;
8583
8716
  crates_per_layer?: number;
8584
8717
  created_at?: string;
8585
8718
  custom_fields?: import("../integrations/supabase/types").Json;
8719
+ floriday_trade_item_id?: string | null;
8586
8720
  id?: string;
8587
8721
  image_url?: string | null;
8588
8722
  incoming_quantity?: number;
8723
+ is_layer?: boolean;
8589
8724
  layers_per_cart?: number;
8590
8725
  location: string;
8591
8726
  min_quantity?: number;
@@ -8601,14 +8736,17 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
8601
8736
  weight?: string | null;
8602
8737
  };
8603
8738
  Update: {
8739
+ article_number?: string | null;
8604
8740
  barcode?: string | null;
8605
8741
  batch?: string;
8606
8742
  crates_per_layer?: number;
8607
8743
  created_at?: string;
8608
8744
  custom_fields?: import("../integrations/supabase/types").Json;
8745
+ floriday_trade_item_id?: string | null;
8609
8746
  id?: string;
8610
8747
  image_url?: string | null;
8611
8748
  incoming_quantity?: number;
8749
+ is_layer?: boolean;
8612
8750
  layers_per_cart?: number;
8613
8751
  location?: string;
8614
8752
  min_quantity?: number;
@@ -8628,6 +8766,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
8628
8766
  profiles: {
8629
8767
  Row: {
8630
8768
  address: string | null;
8769
+ avatar_url: string | null;
8631
8770
  created_at: string;
8632
8771
  display_name: string | null;
8633
8772
  email: string | null;
@@ -8639,6 +8778,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
8639
8778
  };
8640
8779
  Insert: {
8641
8780
  address?: string | null;
8781
+ avatar_url?: string | null;
8642
8782
  created_at?: string;
8643
8783
  display_name?: string | null;
8644
8784
  email?: string | null;
@@ -8650,6 +8790,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
8650
8790
  };
8651
8791
  Update: {
8652
8792
  address?: string | null;
8793
+ avatar_url?: string | null;
8653
8794
  created_at?: string;
8654
8795
  display_name?: string | null;
8655
8796
  email?: string | null;
@@ -9516,6 +9657,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
9516
9657
  order_source: string | null;
9517
9658
  physical_after: number | null;
9518
9659
  physical_before: number | null;
9660
+ production_batch_id: string | null;
9519
9661
  qty_delta: number;
9520
9662
  reason: string | null;
9521
9663
  reserved_after: number | null;
@@ -9533,6 +9675,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
9533
9675
  order_source?: string | null;
9534
9676
  physical_after?: number | null;
9535
9677
  physical_before?: number | null;
9678
+ production_batch_id?: string | null;
9536
9679
  qty_delta: number;
9537
9680
  reason?: string | null;
9538
9681
  reserved_after?: number | null;
@@ -9550,6 +9693,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
9550
9693
  order_source?: string | null;
9551
9694
  physical_after?: number | null;
9552
9695
  physical_before?: number | null;
9696
+ production_batch_id?: string | null;
9553
9697
  qty_delta?: number;
9554
9698
  reason?: string | null;
9555
9699
  reserved_after?: number | null;
@@ -11978,6 +12122,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
11978
12122
  processed_items: number;
11979
12123
  }[];
11980
12124
  };
12125
+ calculate_layer_stock: {
12126
+ Args: {
12127
+ p_product_id: string;
12128
+ };
12129
+ Returns: number;
12130
+ };
11981
12131
  call_exact_route: {
11982
12132
  Args: {
11983
12133
  path: string;
@@ -12037,6 +12187,28 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
12037
12187
  Args: never;
12038
12188
  Returns: undefined;
12039
12189
  };
12190
+ consume_bom_for_production: {
12191
+ Args: {
12192
+ p_connection_id: string;
12193
+ p_parent_id: string;
12194
+ p_parent_key: string;
12195
+ p_parent_kind: string;
12196
+ p_quantity: number;
12197
+ p_user_id: string;
12198
+ };
12199
+ Returns: import("../integrations/supabase/types").Json;
12200
+ } | {
12201
+ Args: {
12202
+ p_batch_id?: string;
12203
+ p_connection_id: string;
12204
+ p_parent_id: string;
12205
+ p_parent_key: string;
12206
+ p_parent_kind: string;
12207
+ p_quantity: number;
12208
+ p_user_id: string;
12209
+ };
12210
+ Returns: import("../integrations/supabase/types").Json;
12211
+ };
12040
12212
  consume_floriday_rate_limit: {
12041
12213
  Args: {
12042
12214
  p_bucket: string;
@@ -12094,6 +12266,13 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
12094
12266
  table_name: string;
12095
12267
  }[];
12096
12268
  };
12269
+ delete_samenstelling: {
12270
+ Args: {
12271
+ p_parent_id: string;
12272
+ p_parent_kind: string;
12273
+ };
12274
+ Returns: import("../integrations/supabase/types").Json;
12275
+ };
12097
12276
  dispatch_carrier_signups_sql: {
12098
12277
  Args: {
12099
12278
  _catchup?: string;
@@ -12349,6 +12528,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
12349
12528
  minutes_since_success: number;
12350
12529
  }[];
12351
12530
  };
12531
+ get_inventory_stock_for_key: {
12532
+ Args: {
12533
+ p_key: string;
12534
+ };
12535
+ Returns: number;
12536
+ };
12352
12537
  get_offer_by_link_code: {
12353
12538
  Args: {
12354
12539
  p_code: string;
@@ -12379,6 +12564,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
12379
12564
  };
12380
12565
  Returns: string;
12381
12566
  };
12567
+ get_product_group_available_stock: {
12568
+ Args: {
12569
+ p_group_id: string;
12570
+ };
12571
+ Returns: number;
12572
+ };
12382
12573
  get_room_busy_windows: {
12383
12574
  Args: {
12384
12575
  p_from: string;
@@ -12452,6 +12643,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
12452
12643
  list_monteurs: {
12453
12644
  Args: never;
12454
12645
  Returns: {
12646
+ avatar_url: string;
12455
12647
  display_name: string;
12456
12648
  email: string;
12457
12649
  id: string;
@@ -12589,6 +12781,14 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
12589
12781
  };
12590
12782
  Returns: undefined;
12591
12783
  };
12784
+ produce_designed_product: {
12785
+ Args: {
12786
+ p_parent_id: string;
12787
+ p_parent_kind: string;
12788
+ p_quantity: number;
12789
+ };
12790
+ Returns: import("../integrations/supabase/types").Json;
12791
+ };
12592
12792
  promote_trade_item_key: {
12593
12793
  Args: {
12594
12794
  p_new: string;
@@ -12663,6 +12863,16 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
12663
12863
  };
12664
12864
  Returns: number;
12665
12865
  };
12866
+ reverse_production: {
12867
+ Args: {
12868
+ p_connection_id?: string;
12869
+ p_parent_key: string;
12870
+ p_quantity: number;
12871
+ p_reason?: string;
12872
+ p_user_id?: string;
12873
+ };
12874
+ Returns: import("../integrations/supabase/types").Json;
12875
+ };
12666
12876
  schedule_floriday_additional_services_sync: {
12667
12877
  Args: {
12668
12878
  p_apikey: string;
@@ -12947,18 +13157,34 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
12947
13157
  };
12948
13158
  Returns: string[];
12949
13159
  };
13160
+ sync_all_layer_stocks: {
13161
+ Args: never;
13162
+ Returns: undefined;
13163
+ };
12950
13164
  sync_cached_packing_from_product: {
12951
13165
  Args: {
12952
13166
  p_product_id: string;
12953
13167
  };
12954
13168
  Returns: undefined;
12955
13169
  };
13170
+ sync_layer_stock: {
13171
+ Args: {
13172
+ p_product_id: string;
13173
+ };
13174
+ Returns: undefined;
13175
+ };
12956
13176
  sync_order_cart_item_packing_from_product: {
12957
13177
  Args: {
12958
13178
  p_product_id: string;
12959
13179
  };
12960
13180
  Returns: undefined;
12961
13181
  };
13182
+ sync_product_group_belading: {
13183
+ Args: {
13184
+ _group_id: string;
13185
+ };
13186
+ Returns: undefined;
13187
+ };
12962
13188
  sync_product_packing_from_floriday_cache: {
12963
13189
  Args: {
12964
13190
  p_floriday_id: string;
@@ -12995,7 +13221,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
12995
13221
  exact_push_status: "pending" | "sent" | "error";
12996
13222
  itk_customer_segment: "Business" | "Private";
12997
13223
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
12998
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
13224
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
12999
13225
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
13000
13226
  };
13001
13227
  CompositeTypes: { [_ in never]: never; };
@@ -21365,6 +21591,66 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21365
21591
  referencedColumns: ["id"];
21366
21592
  }];
21367
21593
  };
21594
+ product_bom_items: {
21595
+ Row: {
21596
+ component_product_id: string | null;
21597
+ component_trade_item_floriday_id: string | null;
21598
+ created_at: string;
21599
+ id: string;
21600
+ notes: string | null;
21601
+ packing_configuration_id: string | null;
21602
+ parent_product_id: string | null;
21603
+ parent_trade_item_floriday_id: string | null;
21604
+ quantity: number;
21605
+ sort_order: number;
21606
+ tenant_id: string;
21607
+ unit: string;
21608
+ updated_at: string;
21609
+ };
21610
+ Insert: {
21611
+ component_product_id?: string | null;
21612
+ component_trade_item_floriday_id?: string | null;
21613
+ created_at?: string;
21614
+ id?: string;
21615
+ notes?: string | null;
21616
+ packing_configuration_id?: string | null;
21617
+ parent_product_id?: string | null;
21618
+ parent_trade_item_floriday_id?: string | null;
21619
+ quantity?: number;
21620
+ sort_order?: number;
21621
+ tenant_id: string;
21622
+ unit?: string;
21623
+ updated_at?: string;
21624
+ };
21625
+ Update: {
21626
+ component_product_id?: string | null;
21627
+ component_trade_item_floriday_id?: string | null;
21628
+ created_at?: string;
21629
+ id?: string;
21630
+ notes?: string | null;
21631
+ packing_configuration_id?: string | null;
21632
+ parent_product_id?: string | null;
21633
+ parent_trade_item_floriday_id?: string | null;
21634
+ quantity?: number;
21635
+ sort_order?: number;
21636
+ tenant_id?: string;
21637
+ unit?: string;
21638
+ updated_at?: string;
21639
+ };
21640
+ Relationships: [{
21641
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
21642
+ columns: ["component_product_id"];
21643
+ isOneToOne: false;
21644
+ referencedRelation: "products";
21645
+ referencedColumns: ["id"];
21646
+ }, {
21647
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
21648
+ columns: ["parent_product_id"];
21649
+ isOneToOne: false;
21650
+ referencedRelation: "products";
21651
+ referencedColumns: ["id"];
21652
+ }];
21653
+ };
21368
21654
  product_categories: {
21369
21655
  Row: {
21370
21656
  color: string;
@@ -21470,6 +21756,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21470
21756
  id: string;
21471
21757
  product_group_id: string;
21472
21758
  quantity: number;
21759
+ sort_order: number;
21473
21760
  trade_item_id: string;
21474
21761
  };
21475
21762
  Insert: {
@@ -21477,6 +21764,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21477
21764
  id?: string;
21478
21765
  product_group_id: string;
21479
21766
  quantity?: number;
21767
+ sort_order?: number;
21480
21768
  trade_item_id: string;
21481
21769
  };
21482
21770
  Update: {
@@ -21484,6 +21772,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21484
21772
  id?: string;
21485
21773
  product_group_id?: string;
21486
21774
  quantity?: number;
21775
+ sort_order?: number;
21487
21776
  trade_item_id?: string;
21488
21777
  };
21489
21778
  Relationships: [{
@@ -21536,16 +21825,85 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21536
21825
  referencedColumns: ["id"];
21537
21826
  }];
21538
21827
  };
21828
+ product_load_settings: {
21829
+ Row: {
21830
+ created_at: string;
21831
+ id: string;
21832
+ is_package: boolean;
21833
+ label: string | null;
21834
+ layers_per_load_carrier: number | null;
21835
+ load_carrier: string | null;
21836
+ package_id: string | null;
21837
+ package_label: string | null;
21838
+ packages_per_layer: number | null;
21839
+ packing_configuration_id: string;
21840
+ product_id: string | null;
21841
+ tenant_id: string;
21842
+ trade_item_floriday_id: string | null;
21843
+ units_per_package: number | null;
21844
+ updated_at: string;
21845
+ };
21846
+ Insert: {
21847
+ created_at?: string;
21848
+ id?: string;
21849
+ is_package?: boolean;
21850
+ label?: string | null;
21851
+ layers_per_load_carrier?: number | null;
21852
+ load_carrier?: string | null;
21853
+ package_id?: string | null;
21854
+ package_label?: string | null;
21855
+ packages_per_layer?: number | null;
21856
+ packing_configuration_id?: string;
21857
+ product_id?: string | null;
21858
+ tenant_id: string;
21859
+ trade_item_floriday_id?: string | null;
21860
+ units_per_package?: number | null;
21861
+ updated_at?: string;
21862
+ };
21863
+ Update: {
21864
+ created_at?: string;
21865
+ id?: string;
21866
+ is_package?: boolean;
21867
+ label?: string | null;
21868
+ layers_per_load_carrier?: number | null;
21869
+ load_carrier?: string | null;
21870
+ package_id?: string | null;
21871
+ package_label?: string | null;
21872
+ packages_per_layer?: number | null;
21873
+ packing_configuration_id?: string;
21874
+ product_id?: string | null;
21875
+ tenant_id?: string;
21876
+ trade_item_floriday_id?: string | null;
21877
+ units_per_package?: number | null;
21878
+ updated_at?: string;
21879
+ };
21880
+ Relationships: [{
21881
+ foreignKeyName: "product_load_settings_package_id_fkey";
21882
+ columns: ["package_id"];
21883
+ isOneToOne: false;
21884
+ referencedRelation: "packages";
21885
+ referencedColumns: ["id"];
21886
+ }, {
21887
+ foreignKeyName: "product_load_settings_product_id_fkey";
21888
+ columns: ["product_id"];
21889
+ isOneToOne: false;
21890
+ referencedRelation: "products";
21891
+ referencedColumns: ["id"];
21892
+ }];
21893
+ };
21539
21894
  products: {
21540
21895
  Row: {
21896
+ article_number: string | null;
21541
21897
  barcode: string | null;
21542
21898
  batch: string;
21543
21899
  crates_per_layer: number;
21544
21900
  created_at: string;
21545
21901
  custom_fields: import("../integrations/supabase/types").Json;
21902
+ floriday_trade_item_id: string | null;
21546
21903
  id: string;
21547
21904
  image_url: string | null;
21548
21905
  incoming_quantity: number;
21906
+ is_layer: boolean;
21549
21907
  layers_per_cart: number;
21550
21908
  location: string;
21551
21909
  min_quantity: number;
@@ -21561,14 +21919,17 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21561
21919
  weight: string | null;
21562
21920
  };
21563
21921
  Insert: {
21922
+ article_number?: string | null;
21564
21923
  barcode?: string | null;
21565
21924
  batch: string;
21566
21925
  crates_per_layer?: number;
21567
21926
  created_at?: string;
21568
21927
  custom_fields?: import("../integrations/supabase/types").Json;
21928
+ floriday_trade_item_id?: string | null;
21569
21929
  id?: string;
21570
21930
  image_url?: string | null;
21571
21931
  incoming_quantity?: number;
21932
+ is_layer?: boolean;
21572
21933
  layers_per_cart?: number;
21573
21934
  location: string;
21574
21935
  min_quantity?: number;
@@ -21584,14 +21945,17 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21584
21945
  weight?: string | null;
21585
21946
  };
21586
21947
  Update: {
21948
+ article_number?: string | null;
21587
21949
  barcode?: string | null;
21588
21950
  batch?: string;
21589
21951
  crates_per_layer?: number;
21590
21952
  created_at?: string;
21591
21953
  custom_fields?: import("../integrations/supabase/types").Json;
21954
+ floriday_trade_item_id?: string | null;
21592
21955
  id?: string;
21593
21956
  image_url?: string | null;
21594
21957
  incoming_quantity?: number;
21958
+ is_layer?: boolean;
21595
21959
  layers_per_cart?: number;
21596
21960
  location?: string;
21597
21961
  min_quantity?: number;
@@ -21611,6 +21975,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21611
21975
  profiles: {
21612
21976
  Row: {
21613
21977
  address: string | null;
21978
+ avatar_url: string | null;
21614
21979
  created_at: string;
21615
21980
  display_name: string | null;
21616
21981
  email: string | null;
@@ -21622,6 +21987,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21622
21987
  };
21623
21988
  Insert: {
21624
21989
  address?: string | null;
21990
+ avatar_url?: string | null;
21625
21991
  created_at?: string;
21626
21992
  display_name?: string | null;
21627
21993
  email?: string | null;
@@ -21633,6 +21999,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
21633
21999
  };
21634
22000
  Update: {
21635
22001
  address?: string | null;
22002
+ avatar_url?: string | null;
21636
22003
  created_at?: string;
21637
22004
  display_name?: string | null;
21638
22005
  email?: string | null;
@@ -22499,6 +22866,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
22499
22866
  order_source: string | null;
22500
22867
  physical_after: number | null;
22501
22868
  physical_before: number | null;
22869
+ production_batch_id: string | null;
22502
22870
  qty_delta: number;
22503
22871
  reason: string | null;
22504
22872
  reserved_after: number | null;
@@ -22516,6 +22884,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
22516
22884
  order_source?: string | null;
22517
22885
  physical_after?: number | null;
22518
22886
  physical_before?: number | null;
22887
+ production_batch_id?: string | null;
22519
22888
  qty_delta: number;
22520
22889
  reason?: string | null;
22521
22890
  reserved_after?: number | null;
@@ -22533,6 +22902,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
22533
22902
  order_source?: string | null;
22534
22903
  physical_after?: number | null;
22535
22904
  physical_before?: number | null;
22905
+ production_batch_id?: string | null;
22536
22906
  qty_delta?: number;
22537
22907
  reason?: string | null;
22538
22908
  reserved_after?: number | null;
@@ -24961,6 +25331,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
24961
25331
  processed_items: number;
24962
25332
  }[];
24963
25333
  };
25334
+ calculate_layer_stock: {
25335
+ Args: {
25336
+ p_product_id: string;
25337
+ };
25338
+ Returns: number;
25339
+ };
24964
25340
  call_exact_route: {
24965
25341
  Args: {
24966
25342
  path: string;
@@ -25020,6 +25396,28 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
25020
25396
  Args: never;
25021
25397
  Returns: undefined;
25022
25398
  };
25399
+ consume_bom_for_production: {
25400
+ Args: {
25401
+ p_connection_id: string;
25402
+ p_parent_id: string;
25403
+ p_parent_key: string;
25404
+ p_parent_kind: string;
25405
+ p_quantity: number;
25406
+ p_user_id: string;
25407
+ };
25408
+ Returns: import("../integrations/supabase/types").Json;
25409
+ } | {
25410
+ Args: {
25411
+ p_batch_id?: string;
25412
+ p_connection_id: string;
25413
+ p_parent_id: string;
25414
+ p_parent_key: string;
25415
+ p_parent_kind: string;
25416
+ p_quantity: number;
25417
+ p_user_id: string;
25418
+ };
25419
+ Returns: import("../integrations/supabase/types").Json;
25420
+ };
25023
25421
  consume_floriday_rate_limit: {
25024
25422
  Args: {
25025
25423
  p_bucket: string;
@@ -25077,6 +25475,13 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
25077
25475
  table_name: string;
25078
25476
  }[];
25079
25477
  };
25478
+ delete_samenstelling: {
25479
+ Args: {
25480
+ p_parent_id: string;
25481
+ p_parent_kind: string;
25482
+ };
25483
+ Returns: import("../integrations/supabase/types").Json;
25484
+ };
25080
25485
  dispatch_carrier_signups_sql: {
25081
25486
  Args: {
25082
25487
  _catchup?: string;
@@ -25332,6 +25737,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
25332
25737
  minutes_since_success: number;
25333
25738
  }[];
25334
25739
  };
25740
+ get_inventory_stock_for_key: {
25741
+ Args: {
25742
+ p_key: string;
25743
+ };
25744
+ Returns: number;
25745
+ };
25335
25746
  get_offer_by_link_code: {
25336
25747
  Args: {
25337
25748
  p_code: string;
@@ -25362,6 +25773,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
25362
25773
  };
25363
25774
  Returns: string;
25364
25775
  };
25776
+ get_product_group_available_stock: {
25777
+ Args: {
25778
+ p_group_id: string;
25779
+ };
25780
+ Returns: number;
25781
+ };
25365
25782
  get_room_busy_windows: {
25366
25783
  Args: {
25367
25784
  p_from: string;
@@ -25435,6 +25852,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
25435
25852
  list_monteurs: {
25436
25853
  Args: never;
25437
25854
  Returns: {
25855
+ avatar_url: string;
25438
25856
  display_name: string;
25439
25857
  email: string;
25440
25858
  id: string;
@@ -25572,6 +25990,14 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
25572
25990
  };
25573
25991
  Returns: undefined;
25574
25992
  };
25993
+ produce_designed_product: {
25994
+ Args: {
25995
+ p_parent_id: string;
25996
+ p_parent_kind: string;
25997
+ p_quantity: number;
25998
+ };
25999
+ Returns: import("../integrations/supabase/types").Json;
26000
+ };
25575
26001
  promote_trade_item_key: {
25576
26002
  Args: {
25577
26003
  p_new: string;
@@ -25646,6 +26072,16 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
25646
26072
  };
25647
26073
  Returns: number;
25648
26074
  };
26075
+ reverse_production: {
26076
+ Args: {
26077
+ p_connection_id?: string;
26078
+ p_parent_key: string;
26079
+ p_quantity: number;
26080
+ p_reason?: string;
26081
+ p_user_id?: string;
26082
+ };
26083
+ Returns: import("../integrations/supabase/types").Json;
26084
+ };
25649
26085
  schedule_floriday_additional_services_sync: {
25650
26086
  Args: {
25651
26087
  p_apikey: string;
@@ -25930,18 +26366,34 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
25930
26366
  };
25931
26367
  Returns: string[];
25932
26368
  };
26369
+ sync_all_layer_stocks: {
26370
+ Args: never;
26371
+ Returns: undefined;
26372
+ };
25933
26373
  sync_cached_packing_from_product: {
25934
26374
  Args: {
25935
26375
  p_product_id: string;
25936
26376
  };
25937
26377
  Returns: undefined;
25938
26378
  };
26379
+ sync_layer_stock: {
26380
+ Args: {
26381
+ p_product_id: string;
26382
+ };
26383
+ Returns: undefined;
26384
+ };
25939
26385
  sync_order_cart_item_packing_from_product: {
25940
26386
  Args: {
25941
26387
  p_product_id: string;
25942
26388
  };
25943
26389
  Returns: undefined;
25944
26390
  };
26391
+ sync_product_group_belading: {
26392
+ Args: {
26393
+ _group_id: string;
26394
+ };
26395
+ Returns: undefined;
26396
+ };
25945
26397
  sync_product_packing_from_floriday_cache: {
25946
26398
  Args: {
25947
26399
  p_floriday_id: string;
@@ -25978,7 +26430,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
25978
26430
  exact_push_status: "pending" | "sent" | "error";
25979
26431
  itk_customer_segment: "Business" | "Private";
25980
26432
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
25981
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
26433
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
25982
26434
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
25983
26435
  };
25984
26436
  CompositeTypes: { [_ in never]: never; };