@flowselections/floriday-klanten-module 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.d.ts +3 -1
  2. package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.d.ts.map +1 -1
  3. package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.js +4 -4
  4. package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.d.ts +2 -0
  5. package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.d.ts.map +1 -0
  6. package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.js +5 -0
  7. package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.d.ts +2 -0
  8. package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.d.ts.map +1 -0
  9. package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.js +12 -0
  10. package/dist-lib/index.d.ts +2 -0
  11. package/dist-lib/index.d.ts.map +1 -1
  12. package/dist-lib/index.js +2 -0
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts +228 -2
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.d.ts +228 -2
  16. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +228 -2
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +235 -3
  20. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.js +8 -1
  22. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +684 -6
  23. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/accounting.functions.d.ts +684 -6
  25. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/customer-analytics.functions.d.ts +228 -2
  27. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/customers.functions.d.ts +2052 -18
  29. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/delivery-locations.functions.d.ts +912 -8
  31. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/external-customers.functions.d.ts +912 -8
  33. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-assortment.functions.d.ts +228 -2
  35. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-discounts.functions.d.ts +456 -4
  37. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-trade-items.functions.d.ts +228 -2
  39. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/local-discounts.functions.d.ts +1596 -14
  41. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/overdue-invoices.functions.d.ts +228 -2
  43. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/price-groups-local.functions.d.ts +1596 -14
  45. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/price-groups.functions.d.ts +228 -2
  47. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  48. package/package.json +7 -7
@@ -8356,6 +8356,66 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8356
8356
  referencedColumns: ["id"];
8357
8357
  }];
8358
8358
  };
8359
+ product_bom_items: {
8360
+ Row: {
8361
+ component_product_id: string | null;
8362
+ component_trade_item_floriday_id: string | null;
8363
+ created_at: string;
8364
+ id: string;
8365
+ notes: string | null;
8366
+ packing_configuration_id: string | null;
8367
+ parent_product_id: string | null;
8368
+ parent_trade_item_floriday_id: string | null;
8369
+ quantity: number;
8370
+ sort_order: number;
8371
+ tenant_id: string;
8372
+ unit: string;
8373
+ updated_at: string;
8374
+ };
8375
+ Insert: {
8376
+ component_product_id?: string | null;
8377
+ component_trade_item_floriday_id?: string | null;
8378
+ created_at?: string;
8379
+ id?: string;
8380
+ notes?: string | null;
8381
+ packing_configuration_id?: string | null;
8382
+ parent_product_id?: string | null;
8383
+ parent_trade_item_floriday_id?: string | null;
8384
+ quantity?: number;
8385
+ sort_order?: number;
8386
+ tenant_id: string;
8387
+ unit?: string;
8388
+ updated_at?: string;
8389
+ };
8390
+ Update: {
8391
+ component_product_id?: string | null;
8392
+ component_trade_item_floriday_id?: string | null;
8393
+ created_at?: string;
8394
+ id?: string;
8395
+ notes?: string | null;
8396
+ packing_configuration_id?: string | null;
8397
+ parent_product_id?: string | null;
8398
+ parent_trade_item_floriday_id?: string | null;
8399
+ quantity?: number;
8400
+ sort_order?: number;
8401
+ tenant_id?: string;
8402
+ unit?: string;
8403
+ updated_at?: string;
8404
+ };
8405
+ Relationships: [{
8406
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8407
+ columns: ["component_product_id"];
8408
+ isOneToOne: false;
8409
+ referencedRelation: "products";
8410
+ referencedColumns: ["id"];
8411
+ }, {
8412
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8413
+ columns: ["parent_product_id"];
8414
+ isOneToOne: false;
8415
+ referencedRelation: "products";
8416
+ referencedColumns: ["id"];
8417
+ }];
8418
+ };
8359
8419
  product_categories: {
8360
8420
  Row: {
8361
8421
  color: string;
@@ -8461,6 +8521,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8461
8521
  id: string;
8462
8522
  product_group_id: string;
8463
8523
  quantity: number;
8524
+ sort_order: number;
8464
8525
  trade_item_id: string;
8465
8526
  };
8466
8527
  Insert: {
@@ -8468,6 +8529,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8468
8529
  id?: string;
8469
8530
  product_group_id: string;
8470
8531
  quantity?: number;
8532
+ sort_order?: number;
8471
8533
  trade_item_id: string;
8472
8534
  };
8473
8535
  Update: {
@@ -8475,6 +8537,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8475
8537
  id?: string;
8476
8538
  product_group_id?: string;
8477
8539
  quantity?: number;
8540
+ sort_order?: number;
8478
8541
  trade_item_id?: string;
8479
8542
  };
8480
8543
  Relationships: [{
@@ -8527,16 +8590,85 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8527
8590
  referencedColumns: ["id"];
8528
8591
  }];
8529
8592
  };
8593
+ product_load_settings: {
8594
+ Row: {
8595
+ created_at: string;
8596
+ id: string;
8597
+ is_package: boolean;
8598
+ label: string | null;
8599
+ layers_per_load_carrier: number | null;
8600
+ load_carrier: string | null;
8601
+ package_id: string | null;
8602
+ package_label: string | null;
8603
+ packages_per_layer: number | null;
8604
+ packing_configuration_id: string;
8605
+ product_id: string | null;
8606
+ tenant_id: string;
8607
+ trade_item_floriday_id: string | null;
8608
+ units_per_package: number | null;
8609
+ updated_at: string;
8610
+ };
8611
+ Insert: {
8612
+ created_at?: string;
8613
+ id?: string;
8614
+ is_package?: boolean;
8615
+ label?: string | null;
8616
+ layers_per_load_carrier?: number | null;
8617
+ load_carrier?: string | null;
8618
+ package_id?: string | null;
8619
+ package_label?: string | null;
8620
+ packages_per_layer?: number | null;
8621
+ packing_configuration_id?: string;
8622
+ product_id?: string | null;
8623
+ tenant_id: string;
8624
+ trade_item_floriday_id?: string | null;
8625
+ units_per_package?: number | null;
8626
+ updated_at?: string;
8627
+ };
8628
+ Update: {
8629
+ created_at?: string;
8630
+ id?: string;
8631
+ is_package?: boolean;
8632
+ label?: string | null;
8633
+ layers_per_load_carrier?: number | null;
8634
+ load_carrier?: string | null;
8635
+ package_id?: string | null;
8636
+ package_label?: string | null;
8637
+ packages_per_layer?: number | null;
8638
+ packing_configuration_id?: string;
8639
+ product_id?: string | null;
8640
+ tenant_id?: string;
8641
+ trade_item_floriday_id?: string | null;
8642
+ units_per_package?: number | null;
8643
+ updated_at?: string;
8644
+ };
8645
+ Relationships: [{
8646
+ foreignKeyName: "product_load_settings_package_id_fkey";
8647
+ columns: ["package_id"];
8648
+ isOneToOne: false;
8649
+ referencedRelation: "packages";
8650
+ referencedColumns: ["id"];
8651
+ }, {
8652
+ foreignKeyName: "product_load_settings_product_id_fkey";
8653
+ columns: ["product_id"];
8654
+ isOneToOne: false;
8655
+ referencedRelation: "products";
8656
+ referencedColumns: ["id"];
8657
+ }];
8658
+ };
8530
8659
  products: {
8531
8660
  Row: {
8661
+ article_number: string | null;
8532
8662
  barcode: string | null;
8533
8663
  batch: string;
8534
8664
  crates_per_layer: number;
8535
8665
  created_at: string;
8536
8666
  custom_fields: import("../../../integrations/supabase/types").Json;
8667
+ floriday_trade_item_id: string | null;
8537
8668
  id: string;
8538
8669
  image_url: string | null;
8539
8670
  incoming_quantity: number;
8671
+ is_layer: boolean;
8540
8672
  layers_per_cart: number;
8541
8673
  location: string;
8542
8674
  min_quantity: number;
@@ -8552,14 +8684,17 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8552
8684
  weight: string | null;
8553
8685
  };
8554
8686
  Insert: {
8687
+ article_number?: string | null;
8555
8688
  barcode?: string | null;
8556
8689
  batch: string;
8557
8690
  crates_per_layer?: number;
8558
8691
  created_at?: string;
8559
8692
  custom_fields?: import("../../../integrations/supabase/types").Json;
8693
+ floriday_trade_item_id?: string | null;
8560
8694
  id?: string;
8561
8695
  image_url?: string | null;
8562
8696
  incoming_quantity?: number;
8697
+ is_layer?: boolean;
8563
8698
  layers_per_cart?: number;
8564
8699
  location: string;
8565
8700
  min_quantity?: number;
@@ -8575,14 +8710,17 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8575
8710
  weight?: string | null;
8576
8711
  };
8577
8712
  Update: {
8713
+ article_number?: string | null;
8578
8714
  barcode?: string | null;
8579
8715
  batch?: string;
8580
8716
  crates_per_layer?: number;
8581
8717
  created_at?: string;
8582
8718
  custom_fields?: import("../../../integrations/supabase/types").Json;
8719
+ floriday_trade_item_id?: string | null;
8583
8720
  id?: string;
8584
8721
  image_url?: string | null;
8585
8722
  incoming_quantity?: number;
8723
+ is_layer?: boolean;
8586
8724
  layers_per_cart?: number;
8587
8725
  location?: string;
8588
8726
  min_quantity?: number;
@@ -8602,6 +8740,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8602
8740
  profiles: {
8603
8741
  Row: {
8604
8742
  address: string | null;
8743
+ avatar_url: string | null;
8605
8744
  created_at: string;
8606
8745
  display_name: string | null;
8607
8746
  email: string | null;
@@ -8613,6 +8752,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8613
8752
  };
8614
8753
  Insert: {
8615
8754
  address?: string | null;
8755
+ avatar_url?: string | null;
8616
8756
  created_at?: string;
8617
8757
  display_name?: string | null;
8618
8758
  email?: string | null;
@@ -8624,6 +8764,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
8624
8764
  };
8625
8765
  Update: {
8626
8766
  address?: string | null;
8767
+ avatar_url?: string | null;
8627
8768
  created_at?: string;
8628
8769
  display_name?: string | null;
8629
8770
  email?: string | null;
@@ -9490,6 +9631,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
9490
9631
  order_source: string | null;
9491
9632
  physical_after: number | null;
9492
9633
  physical_before: number | null;
9634
+ production_batch_id: string | null;
9493
9635
  qty_delta: number;
9494
9636
  reason: string | null;
9495
9637
  reserved_after: number | null;
@@ -9507,6 +9649,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
9507
9649
  order_source?: string | null;
9508
9650
  physical_after?: number | null;
9509
9651
  physical_before?: number | null;
9652
+ production_batch_id?: string | null;
9510
9653
  qty_delta: number;
9511
9654
  reason?: string | null;
9512
9655
  reserved_after?: number | null;
@@ -9524,6 +9667,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
9524
9667
  order_source?: string | null;
9525
9668
  physical_after?: number | null;
9526
9669
  physical_before?: number | null;
9670
+ production_batch_id?: string | null;
9527
9671
  qty_delta?: number;
9528
9672
  reason?: string | null;
9529
9673
  reserved_after?: number | null;
@@ -11952,6 +12096,12 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
11952
12096
  processed_items: number;
11953
12097
  }[];
11954
12098
  };
12099
+ calculate_layer_stock: {
12100
+ Args: {
12101
+ p_product_id: string;
12102
+ };
12103
+ Returns: number;
12104
+ };
11955
12105
  call_exact_route: {
11956
12106
  Args: {
11957
12107
  path: string;
@@ -12011,6 +12161,28 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
12011
12161
  Args: never;
12012
12162
  Returns: undefined;
12013
12163
  };
12164
+ consume_bom_for_production: {
12165
+ Args: {
12166
+ p_connection_id: string;
12167
+ p_parent_id: string;
12168
+ p_parent_key: string;
12169
+ p_parent_kind: string;
12170
+ p_quantity: number;
12171
+ p_user_id: string;
12172
+ };
12173
+ Returns: import("../../../integrations/supabase/types").Json;
12174
+ } | {
12175
+ Args: {
12176
+ p_batch_id?: string;
12177
+ p_connection_id: string;
12178
+ p_parent_id: string;
12179
+ p_parent_key: string;
12180
+ p_parent_kind: string;
12181
+ p_quantity: number;
12182
+ p_user_id: string;
12183
+ };
12184
+ Returns: import("../../../integrations/supabase/types").Json;
12185
+ };
12014
12186
  consume_floriday_rate_limit: {
12015
12187
  Args: {
12016
12188
  p_bucket: string;
@@ -12068,6 +12240,13 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
12068
12240
  table_name: string;
12069
12241
  }[];
12070
12242
  };
12243
+ delete_samenstelling: {
12244
+ Args: {
12245
+ p_parent_id: string;
12246
+ p_parent_kind: string;
12247
+ };
12248
+ Returns: import("../../../integrations/supabase/types").Json;
12249
+ };
12071
12250
  dispatch_carrier_signups_sql: {
12072
12251
  Args: {
12073
12252
  _catchup?: string;
@@ -12323,6 +12502,12 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
12323
12502
  minutes_since_success: number;
12324
12503
  }[];
12325
12504
  };
12505
+ get_inventory_stock_for_key: {
12506
+ Args: {
12507
+ p_key: string;
12508
+ };
12509
+ Returns: number;
12510
+ };
12326
12511
  get_offer_by_link_code: {
12327
12512
  Args: {
12328
12513
  p_code: string;
@@ -12353,6 +12538,12 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
12353
12538
  };
12354
12539
  Returns: string;
12355
12540
  };
12541
+ get_product_group_available_stock: {
12542
+ Args: {
12543
+ p_group_id: string;
12544
+ };
12545
+ Returns: number;
12546
+ };
12356
12547
  get_room_busy_windows: {
12357
12548
  Args: {
12358
12549
  p_from: string;
@@ -12426,9 +12617,10 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
12426
12617
  list_monteurs: {
12427
12618
  Args: never;
12428
12619
  Returns: {
12620
+ avatar_url: string;
12429
12621
  display_name: string;
12430
12622
  email: string;
12431
- user_id: string;
12623
+ id: string;
12432
12624
  }[];
12433
12625
  };
12434
12626
  local_effective_price: {
@@ -12563,6 +12755,14 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
12563
12755
  };
12564
12756
  Returns: undefined;
12565
12757
  };
12758
+ produce_designed_product: {
12759
+ Args: {
12760
+ p_parent_id: string;
12761
+ p_parent_kind: string;
12762
+ p_quantity: number;
12763
+ };
12764
+ Returns: import("../../../integrations/supabase/types").Json;
12765
+ };
12566
12766
  promote_trade_item_key: {
12567
12767
  Args: {
12568
12768
  p_new: string;
@@ -12637,6 +12837,16 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
12637
12837
  };
12638
12838
  Returns: number;
12639
12839
  };
12840
+ reverse_production: {
12841
+ Args: {
12842
+ p_connection_id?: string;
12843
+ p_parent_key: string;
12844
+ p_quantity: number;
12845
+ p_reason?: string;
12846
+ p_user_id?: string;
12847
+ };
12848
+ Returns: import("../../../integrations/supabase/types").Json;
12849
+ };
12640
12850
  schedule_floriday_additional_services_sync: {
12641
12851
  Args: {
12642
12852
  p_apikey: string;
@@ -12921,18 +13131,34 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
12921
13131
  };
12922
13132
  Returns: string[];
12923
13133
  };
13134
+ sync_all_layer_stocks: {
13135
+ Args: never;
13136
+ Returns: undefined;
13137
+ };
12924
13138
  sync_cached_packing_from_product: {
12925
13139
  Args: {
12926
13140
  p_product_id: string;
12927
13141
  };
12928
13142
  Returns: undefined;
12929
13143
  };
13144
+ sync_layer_stock: {
13145
+ Args: {
13146
+ p_product_id: string;
13147
+ };
13148
+ Returns: undefined;
13149
+ };
12930
13150
  sync_order_cart_item_packing_from_product: {
12931
13151
  Args: {
12932
13152
  p_product_id: string;
12933
13153
  };
12934
13154
  Returns: undefined;
12935
13155
  };
13156
+ sync_product_group_belading: {
13157
+ Args: {
13158
+ _group_id: string;
13159
+ };
13160
+ Returns: undefined;
13161
+ };
12936
13162
  sync_product_packing_from_floriday_cache: {
12937
13163
  Args: {
12938
13164
  p_floriday_id: string;
@@ -12969,7 +13195,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
12969
13195
  exact_push_status: "pending" | "sent" | "error";
12970
13196
  itk_customer_segment: "Business" | "Private";
12971
13197
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
12972
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
13198
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
12973
13199
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
12974
13200
  };
12975
13201
  CompositeTypes: { [_ in never]: never; };
@@ -21341,6 +21567,66 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
21341
21567
  referencedColumns: ["id"];
21342
21568
  }];
21343
21569
  };
21570
+ product_bom_items: {
21571
+ Row: {
21572
+ component_product_id: string | null;
21573
+ component_trade_item_floriday_id: string | null;
21574
+ created_at: string;
21575
+ id: string;
21576
+ notes: string | null;
21577
+ packing_configuration_id: string | null;
21578
+ parent_product_id: string | null;
21579
+ parent_trade_item_floriday_id: string | null;
21580
+ quantity: number;
21581
+ sort_order: number;
21582
+ tenant_id: string;
21583
+ unit: string;
21584
+ updated_at: string;
21585
+ };
21586
+ Insert: {
21587
+ component_product_id?: string | null;
21588
+ component_trade_item_floriday_id?: string | null;
21589
+ created_at?: string;
21590
+ id?: string;
21591
+ notes?: string | null;
21592
+ packing_configuration_id?: string | null;
21593
+ parent_product_id?: string | null;
21594
+ parent_trade_item_floriday_id?: string | null;
21595
+ quantity?: number;
21596
+ sort_order?: number;
21597
+ tenant_id: string;
21598
+ unit?: string;
21599
+ updated_at?: string;
21600
+ };
21601
+ Update: {
21602
+ component_product_id?: string | null;
21603
+ component_trade_item_floriday_id?: string | null;
21604
+ created_at?: string;
21605
+ id?: string;
21606
+ notes?: string | null;
21607
+ packing_configuration_id?: string | null;
21608
+ parent_product_id?: string | null;
21609
+ parent_trade_item_floriday_id?: string | null;
21610
+ quantity?: number;
21611
+ sort_order?: number;
21612
+ tenant_id?: string;
21613
+ unit?: string;
21614
+ updated_at?: string;
21615
+ };
21616
+ Relationships: [{
21617
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
21618
+ columns: ["component_product_id"];
21619
+ isOneToOne: false;
21620
+ referencedRelation: "products";
21621
+ referencedColumns: ["id"];
21622
+ }, {
21623
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
21624
+ columns: ["parent_product_id"];
21625
+ isOneToOne: false;
21626
+ referencedRelation: "products";
21627
+ referencedColumns: ["id"];
21628
+ }];
21629
+ };
21344
21630
  product_categories: {
21345
21631
  Row: {
21346
21632
  color: string;
@@ -21446,6 +21732,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
21446
21732
  id: string;
21447
21733
  product_group_id: string;
21448
21734
  quantity: number;
21735
+ sort_order: number;
21449
21736
  trade_item_id: string;
21450
21737
  };
21451
21738
  Insert: {
@@ -21453,6 +21740,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
21453
21740
  id?: string;
21454
21741
  product_group_id: string;
21455
21742
  quantity?: number;
21743
+ sort_order?: number;
21456
21744
  trade_item_id: string;
21457
21745
  };
21458
21746
  Update: {
@@ -21460,6 +21748,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
21460
21748
  id?: string;
21461
21749
  product_group_id?: string;
21462
21750
  quantity?: number;
21751
+ sort_order?: number;
21463
21752
  trade_item_id?: string;
21464
21753
  };
21465
21754
  Relationships: [{
@@ -21512,16 +21801,85 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
21512
21801
  referencedColumns: ["id"];
21513
21802
  }];
21514
21803
  };
21804
+ product_load_settings: {
21805
+ Row: {
21806
+ created_at: string;
21807
+ id: string;
21808
+ is_package: boolean;
21809
+ label: string | null;
21810
+ layers_per_load_carrier: number | null;
21811
+ load_carrier: string | null;
21812
+ package_id: string | null;
21813
+ package_label: string | null;
21814
+ packages_per_layer: number | null;
21815
+ packing_configuration_id: string;
21816
+ product_id: string | null;
21817
+ tenant_id: string;
21818
+ trade_item_floriday_id: string | null;
21819
+ units_per_package: number | null;
21820
+ updated_at: string;
21821
+ };
21822
+ Insert: {
21823
+ created_at?: string;
21824
+ id?: string;
21825
+ is_package?: boolean;
21826
+ label?: string | null;
21827
+ layers_per_load_carrier?: number | null;
21828
+ load_carrier?: string | null;
21829
+ package_id?: string | null;
21830
+ package_label?: string | null;
21831
+ packages_per_layer?: number | null;
21832
+ packing_configuration_id?: string;
21833
+ product_id?: string | null;
21834
+ tenant_id: string;
21835
+ trade_item_floriday_id?: string | null;
21836
+ units_per_package?: number | null;
21837
+ updated_at?: string;
21838
+ };
21839
+ Update: {
21840
+ created_at?: string;
21841
+ id?: string;
21842
+ is_package?: boolean;
21843
+ label?: string | null;
21844
+ layers_per_load_carrier?: number | null;
21845
+ load_carrier?: string | null;
21846
+ package_id?: string | null;
21847
+ package_label?: string | null;
21848
+ packages_per_layer?: number | null;
21849
+ packing_configuration_id?: string;
21850
+ product_id?: string | null;
21851
+ tenant_id?: string;
21852
+ trade_item_floriday_id?: string | null;
21853
+ units_per_package?: number | null;
21854
+ updated_at?: string;
21855
+ };
21856
+ Relationships: [{
21857
+ foreignKeyName: "product_load_settings_package_id_fkey";
21858
+ columns: ["package_id"];
21859
+ isOneToOne: false;
21860
+ referencedRelation: "packages";
21861
+ referencedColumns: ["id"];
21862
+ }, {
21863
+ foreignKeyName: "product_load_settings_product_id_fkey";
21864
+ columns: ["product_id"];
21865
+ isOneToOne: false;
21866
+ referencedRelation: "products";
21867
+ referencedColumns: ["id"];
21868
+ }];
21869
+ };
21515
21870
  products: {
21516
21871
  Row: {
21872
+ article_number: string | null;
21517
21873
  barcode: string | null;
21518
21874
  batch: string;
21519
21875
  crates_per_layer: number;
21520
21876
  created_at: string;
21521
21877
  custom_fields: import("../../../integrations/supabase/types").Json;
21878
+ floriday_trade_item_id: string | null;
21522
21879
  id: string;
21523
21880
  image_url: string | null;
21524
21881
  incoming_quantity: number;
21882
+ is_layer: boolean;
21525
21883
  layers_per_cart: number;
21526
21884
  location: string;
21527
21885
  min_quantity: number;
@@ -21537,14 +21895,17 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
21537
21895
  weight: string | null;
21538
21896
  };
21539
21897
  Insert: {
21898
+ article_number?: string | null;
21540
21899
  barcode?: string | null;
21541
21900
  batch: string;
21542
21901
  crates_per_layer?: number;
21543
21902
  created_at?: string;
21544
21903
  custom_fields?: import("../../../integrations/supabase/types").Json;
21904
+ floriday_trade_item_id?: string | null;
21545
21905
  id?: string;
21546
21906
  image_url?: string | null;
21547
21907
  incoming_quantity?: number;
21908
+ is_layer?: boolean;
21548
21909
  layers_per_cart?: number;
21549
21910
  location: string;
21550
21911
  min_quantity?: number;
@@ -21560,14 +21921,17 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
21560
21921
  weight?: string | null;
21561
21922
  };
21562
21923
  Update: {
21924
+ article_number?: string | null;
21563
21925
  barcode?: string | null;
21564
21926
  batch?: string;
21565
21927
  crates_per_layer?: number;
21566
21928
  created_at?: string;
21567
21929
  custom_fields?: import("../../../integrations/supabase/types").Json;
21930
+ floriday_trade_item_id?: string | null;
21568
21931
  id?: string;
21569
21932
  image_url?: string | null;
21570
21933
  incoming_quantity?: number;
21934
+ is_layer?: boolean;
21571
21935
  layers_per_cart?: number;
21572
21936
  location?: string;
21573
21937
  min_quantity?: number;
@@ -21587,6 +21951,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
21587
21951
  profiles: {
21588
21952
  Row: {
21589
21953
  address: string | null;
21954
+ avatar_url: string | null;
21590
21955
  created_at: string;
21591
21956
  display_name: string | null;
21592
21957
  email: string | null;
@@ -21598,6 +21963,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
21598
21963
  };
21599
21964
  Insert: {
21600
21965
  address?: string | null;
21966
+ avatar_url?: string | null;
21601
21967
  created_at?: string;
21602
21968
  display_name?: string | null;
21603
21969
  email?: string | null;
@@ -21609,6 +21975,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
21609
21975
  };
21610
21976
  Update: {
21611
21977
  address?: string | null;
21978
+ avatar_url?: string | null;
21612
21979
  created_at?: string;
21613
21980
  display_name?: string | null;
21614
21981
  email?: string | null;
@@ -22475,6 +22842,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
22475
22842
  order_source: string | null;
22476
22843
  physical_after: number | null;
22477
22844
  physical_before: number | null;
22845
+ production_batch_id: string | null;
22478
22846
  qty_delta: number;
22479
22847
  reason: string | null;
22480
22848
  reserved_after: number | null;
@@ -22492,6 +22860,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
22492
22860
  order_source?: string | null;
22493
22861
  physical_after?: number | null;
22494
22862
  physical_before?: number | null;
22863
+ production_batch_id?: string | null;
22495
22864
  qty_delta: number;
22496
22865
  reason?: string | null;
22497
22866
  reserved_after?: number | null;
@@ -22509,6 +22878,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
22509
22878
  order_source?: string | null;
22510
22879
  physical_after?: number | null;
22511
22880
  physical_before?: number | null;
22881
+ production_batch_id?: string | null;
22512
22882
  qty_delta?: number;
22513
22883
  reason?: string | null;
22514
22884
  reserved_after?: number | null;
@@ -24937,6 +25307,12 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
24937
25307
  processed_items: number;
24938
25308
  }[];
24939
25309
  };
25310
+ calculate_layer_stock: {
25311
+ Args: {
25312
+ p_product_id: string;
25313
+ };
25314
+ Returns: number;
25315
+ };
24940
25316
  call_exact_route: {
24941
25317
  Args: {
24942
25318
  path: string;
@@ -24996,6 +25372,28 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
24996
25372
  Args: never;
24997
25373
  Returns: undefined;
24998
25374
  };
25375
+ consume_bom_for_production: {
25376
+ Args: {
25377
+ p_connection_id: string;
25378
+ p_parent_id: string;
25379
+ p_parent_key: string;
25380
+ p_parent_kind: string;
25381
+ p_quantity: number;
25382
+ p_user_id: string;
25383
+ };
25384
+ Returns: import("../../../integrations/supabase/types").Json;
25385
+ } | {
25386
+ Args: {
25387
+ p_batch_id?: string;
25388
+ p_connection_id: string;
25389
+ p_parent_id: string;
25390
+ p_parent_key: string;
25391
+ p_parent_kind: string;
25392
+ p_quantity: number;
25393
+ p_user_id: string;
25394
+ };
25395
+ Returns: import("../../../integrations/supabase/types").Json;
25396
+ };
24999
25397
  consume_floriday_rate_limit: {
25000
25398
  Args: {
25001
25399
  p_bucket: string;
@@ -25053,6 +25451,13 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
25053
25451
  table_name: string;
25054
25452
  }[];
25055
25453
  };
25454
+ delete_samenstelling: {
25455
+ Args: {
25456
+ p_parent_id: string;
25457
+ p_parent_kind: string;
25458
+ };
25459
+ Returns: import("../../../integrations/supabase/types").Json;
25460
+ };
25056
25461
  dispatch_carrier_signups_sql: {
25057
25462
  Args: {
25058
25463
  _catchup?: string;
@@ -25308,6 +25713,12 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
25308
25713
  minutes_since_success: number;
25309
25714
  }[];
25310
25715
  };
25716
+ get_inventory_stock_for_key: {
25717
+ Args: {
25718
+ p_key: string;
25719
+ };
25720
+ Returns: number;
25721
+ };
25311
25722
  get_offer_by_link_code: {
25312
25723
  Args: {
25313
25724
  p_code: string;
@@ -25338,6 +25749,12 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
25338
25749
  };
25339
25750
  Returns: string;
25340
25751
  };
25752
+ get_product_group_available_stock: {
25753
+ Args: {
25754
+ p_group_id: string;
25755
+ };
25756
+ Returns: number;
25757
+ };
25341
25758
  get_room_busy_windows: {
25342
25759
  Args: {
25343
25760
  p_from: string;
@@ -25411,9 +25828,10 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
25411
25828
  list_monteurs: {
25412
25829
  Args: never;
25413
25830
  Returns: {
25831
+ avatar_url: string;
25414
25832
  display_name: string;
25415
25833
  email: string;
25416
- user_id: string;
25834
+ id: string;
25417
25835
  }[];
25418
25836
  };
25419
25837
  local_effective_price: {
@@ -25548,6 +25966,14 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
25548
25966
  };
25549
25967
  Returns: undefined;
25550
25968
  };
25969
+ produce_designed_product: {
25970
+ Args: {
25971
+ p_parent_id: string;
25972
+ p_parent_kind: string;
25973
+ p_quantity: number;
25974
+ };
25975
+ Returns: import("../../../integrations/supabase/types").Json;
25976
+ };
25551
25977
  promote_trade_item_key: {
25552
25978
  Args: {
25553
25979
  p_new: string;
@@ -25622,6 +26048,16 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
25622
26048
  };
25623
26049
  Returns: number;
25624
26050
  };
26051
+ reverse_production: {
26052
+ Args: {
26053
+ p_connection_id?: string;
26054
+ p_parent_key: string;
26055
+ p_quantity: number;
26056
+ p_reason?: string;
26057
+ p_user_id?: string;
26058
+ };
26059
+ Returns: import("../../../integrations/supabase/types").Json;
26060
+ };
25625
26061
  schedule_floriday_additional_services_sync: {
25626
26062
  Args: {
25627
26063
  p_apikey: string;
@@ -25906,18 +26342,34 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
25906
26342
  };
25907
26343
  Returns: string[];
25908
26344
  };
26345
+ sync_all_layer_stocks: {
26346
+ Args: never;
26347
+ Returns: undefined;
26348
+ };
25909
26349
  sync_cached_packing_from_product: {
25910
26350
  Args: {
25911
26351
  p_product_id: string;
25912
26352
  };
25913
26353
  Returns: undefined;
25914
26354
  };
26355
+ sync_layer_stock: {
26356
+ Args: {
26357
+ p_product_id: string;
26358
+ };
26359
+ Returns: undefined;
26360
+ };
25915
26361
  sync_order_cart_item_packing_from_product: {
25916
26362
  Args: {
25917
26363
  p_product_id: string;
25918
26364
  };
25919
26365
  Returns: undefined;
25920
26366
  };
26367
+ sync_product_group_belading: {
26368
+ Args: {
26369
+ _group_id: string;
26370
+ };
26371
+ Returns: undefined;
26372
+ };
25921
26373
  sync_product_packing_from_floriday_cache: {
25922
26374
  Args: {
25923
26375
  p_floriday_id: string;
@@ -25954,7 +26406,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
25954
26406
  exact_push_status: "pending" | "sent" | "error";
25955
26407
  itk_customer_segment: "Business" | "Private";
25956
26408
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
25957
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
26409
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
25958
26410
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
25959
26411
  };
25960
26412
  CompositeTypes: { [_ in never]: never; };
@@ -34328,6 +34780,66 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
34328
34780
  referencedColumns: ["id"];
34329
34781
  }];
34330
34782
  };
34783
+ product_bom_items: {
34784
+ Row: {
34785
+ component_product_id: string | null;
34786
+ component_trade_item_floriday_id: string | null;
34787
+ created_at: string;
34788
+ id: string;
34789
+ notes: string | null;
34790
+ packing_configuration_id: string | null;
34791
+ parent_product_id: string | null;
34792
+ parent_trade_item_floriday_id: string | null;
34793
+ quantity: number;
34794
+ sort_order: number;
34795
+ tenant_id: string;
34796
+ unit: string;
34797
+ updated_at: string;
34798
+ };
34799
+ Insert: {
34800
+ component_product_id?: string | null;
34801
+ component_trade_item_floriday_id?: string | null;
34802
+ created_at?: string;
34803
+ id?: string;
34804
+ notes?: string | null;
34805
+ packing_configuration_id?: string | null;
34806
+ parent_product_id?: string | null;
34807
+ parent_trade_item_floriday_id?: string | null;
34808
+ quantity?: number;
34809
+ sort_order?: number;
34810
+ tenant_id: string;
34811
+ unit?: string;
34812
+ updated_at?: string;
34813
+ };
34814
+ Update: {
34815
+ component_product_id?: string | null;
34816
+ component_trade_item_floriday_id?: string | null;
34817
+ created_at?: string;
34818
+ id?: string;
34819
+ notes?: string | null;
34820
+ packing_configuration_id?: string | null;
34821
+ parent_product_id?: string | null;
34822
+ parent_trade_item_floriday_id?: string | null;
34823
+ quantity?: number;
34824
+ sort_order?: number;
34825
+ tenant_id?: string;
34826
+ unit?: string;
34827
+ updated_at?: string;
34828
+ };
34829
+ Relationships: [{
34830
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
34831
+ columns: ["component_product_id"];
34832
+ isOneToOne: false;
34833
+ referencedRelation: "products";
34834
+ referencedColumns: ["id"];
34835
+ }, {
34836
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
34837
+ columns: ["parent_product_id"];
34838
+ isOneToOne: false;
34839
+ referencedRelation: "products";
34840
+ referencedColumns: ["id"];
34841
+ }];
34842
+ };
34331
34843
  product_categories: {
34332
34844
  Row: {
34333
34845
  color: string;
@@ -34433,6 +34945,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
34433
34945
  id: string;
34434
34946
  product_group_id: string;
34435
34947
  quantity: number;
34948
+ sort_order: number;
34436
34949
  trade_item_id: string;
34437
34950
  };
34438
34951
  Insert: {
@@ -34440,6 +34953,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
34440
34953
  id?: string;
34441
34954
  product_group_id: string;
34442
34955
  quantity?: number;
34956
+ sort_order?: number;
34443
34957
  trade_item_id: string;
34444
34958
  };
34445
34959
  Update: {
@@ -34447,6 +34961,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
34447
34961
  id?: string;
34448
34962
  product_group_id?: string;
34449
34963
  quantity?: number;
34964
+ sort_order?: number;
34450
34965
  trade_item_id?: string;
34451
34966
  };
34452
34967
  Relationships: [{
@@ -34499,16 +35014,85 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
34499
35014
  referencedColumns: ["id"];
34500
35015
  }];
34501
35016
  };
35017
+ product_load_settings: {
35018
+ Row: {
35019
+ created_at: string;
35020
+ id: string;
35021
+ is_package: boolean;
35022
+ label: string | null;
35023
+ layers_per_load_carrier: number | null;
35024
+ load_carrier: string | null;
35025
+ package_id: string | null;
35026
+ package_label: string | null;
35027
+ packages_per_layer: number | null;
35028
+ packing_configuration_id: string;
35029
+ product_id: string | null;
35030
+ tenant_id: string;
35031
+ trade_item_floriday_id: string | null;
35032
+ units_per_package: number | null;
35033
+ updated_at: string;
35034
+ };
35035
+ Insert: {
35036
+ created_at?: string;
35037
+ id?: string;
35038
+ is_package?: boolean;
35039
+ label?: string | null;
35040
+ layers_per_load_carrier?: number | null;
35041
+ load_carrier?: string | null;
35042
+ package_id?: string | null;
35043
+ package_label?: string | null;
35044
+ packages_per_layer?: number | null;
35045
+ packing_configuration_id?: string;
35046
+ product_id?: string | null;
35047
+ tenant_id: string;
35048
+ trade_item_floriday_id?: string | null;
35049
+ units_per_package?: number | null;
35050
+ updated_at?: string;
35051
+ };
35052
+ Update: {
35053
+ created_at?: string;
35054
+ id?: string;
35055
+ is_package?: boolean;
35056
+ label?: string | null;
35057
+ layers_per_load_carrier?: number | null;
35058
+ load_carrier?: string | null;
35059
+ package_id?: string | null;
35060
+ package_label?: string | null;
35061
+ packages_per_layer?: number | null;
35062
+ packing_configuration_id?: string;
35063
+ product_id?: string | null;
35064
+ tenant_id?: string;
35065
+ trade_item_floriday_id?: string | null;
35066
+ units_per_package?: number | null;
35067
+ updated_at?: string;
35068
+ };
35069
+ Relationships: [{
35070
+ foreignKeyName: "product_load_settings_package_id_fkey";
35071
+ columns: ["package_id"];
35072
+ isOneToOne: false;
35073
+ referencedRelation: "packages";
35074
+ referencedColumns: ["id"];
35075
+ }, {
35076
+ foreignKeyName: "product_load_settings_product_id_fkey";
35077
+ columns: ["product_id"];
35078
+ isOneToOne: false;
35079
+ referencedRelation: "products";
35080
+ referencedColumns: ["id"];
35081
+ }];
35082
+ };
34502
35083
  products: {
34503
35084
  Row: {
35085
+ article_number: string | null;
34504
35086
  barcode: string | null;
34505
35087
  batch: string;
34506
35088
  crates_per_layer: number;
34507
35089
  created_at: string;
34508
35090
  custom_fields: import("../../../integrations/supabase/types").Json;
35091
+ floriday_trade_item_id: string | null;
34509
35092
  id: string;
34510
35093
  image_url: string | null;
34511
35094
  incoming_quantity: number;
35095
+ is_layer: boolean;
34512
35096
  layers_per_cart: number;
34513
35097
  location: string;
34514
35098
  min_quantity: number;
@@ -34524,14 +35108,17 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
34524
35108
  weight: string | null;
34525
35109
  };
34526
35110
  Insert: {
35111
+ article_number?: string | null;
34527
35112
  barcode?: string | null;
34528
35113
  batch: string;
34529
35114
  crates_per_layer?: number;
34530
35115
  created_at?: string;
34531
35116
  custom_fields?: import("../../../integrations/supabase/types").Json;
35117
+ floriday_trade_item_id?: string | null;
34532
35118
  id?: string;
34533
35119
  image_url?: string | null;
34534
35120
  incoming_quantity?: number;
35121
+ is_layer?: boolean;
34535
35122
  layers_per_cart?: number;
34536
35123
  location: string;
34537
35124
  min_quantity?: number;
@@ -34547,14 +35134,17 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
34547
35134
  weight?: string | null;
34548
35135
  };
34549
35136
  Update: {
35137
+ article_number?: string | null;
34550
35138
  barcode?: string | null;
34551
35139
  batch?: string;
34552
35140
  crates_per_layer?: number;
34553
35141
  created_at?: string;
34554
35142
  custom_fields?: import("../../../integrations/supabase/types").Json;
35143
+ floriday_trade_item_id?: string | null;
34555
35144
  id?: string;
34556
35145
  image_url?: string | null;
34557
35146
  incoming_quantity?: number;
35147
+ is_layer?: boolean;
34558
35148
  layers_per_cart?: number;
34559
35149
  location?: string;
34560
35150
  min_quantity?: number;
@@ -34574,6 +35164,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
34574
35164
  profiles: {
34575
35165
  Row: {
34576
35166
  address: string | null;
35167
+ avatar_url: string | null;
34577
35168
  created_at: string;
34578
35169
  display_name: string | null;
34579
35170
  email: string | null;
@@ -34585,6 +35176,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
34585
35176
  };
34586
35177
  Insert: {
34587
35178
  address?: string | null;
35179
+ avatar_url?: string | null;
34588
35180
  created_at?: string;
34589
35181
  display_name?: string | null;
34590
35182
  email?: string | null;
@@ -34596,6 +35188,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
34596
35188
  };
34597
35189
  Update: {
34598
35190
  address?: string | null;
35191
+ avatar_url?: string | null;
34599
35192
  created_at?: string;
34600
35193
  display_name?: string | null;
34601
35194
  email?: string | null;
@@ -35462,6 +36055,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
35462
36055
  order_source: string | null;
35463
36056
  physical_after: number | null;
35464
36057
  physical_before: number | null;
36058
+ production_batch_id: string | null;
35465
36059
  qty_delta: number;
35466
36060
  reason: string | null;
35467
36061
  reserved_after: number | null;
@@ -35479,6 +36073,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
35479
36073
  order_source?: string | null;
35480
36074
  physical_after?: number | null;
35481
36075
  physical_before?: number | null;
36076
+ production_batch_id?: string | null;
35482
36077
  qty_delta: number;
35483
36078
  reason?: string | null;
35484
36079
  reserved_after?: number | null;
@@ -35496,6 +36091,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
35496
36091
  order_source?: string | null;
35497
36092
  physical_after?: number | null;
35498
36093
  physical_before?: number | null;
36094
+ production_batch_id?: string | null;
35499
36095
  qty_delta?: number;
35500
36096
  reason?: string | null;
35501
36097
  reserved_after?: number | null;
@@ -37924,6 +38520,12 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
37924
38520
  processed_items: number;
37925
38521
  }[];
37926
38522
  };
38523
+ calculate_layer_stock: {
38524
+ Args: {
38525
+ p_product_id: string;
38526
+ };
38527
+ Returns: number;
38528
+ };
37927
38529
  call_exact_route: {
37928
38530
  Args: {
37929
38531
  path: string;
@@ -37983,6 +38585,28 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
37983
38585
  Args: never;
37984
38586
  Returns: undefined;
37985
38587
  };
38588
+ consume_bom_for_production: {
38589
+ Args: {
38590
+ p_connection_id: string;
38591
+ p_parent_id: string;
38592
+ p_parent_key: string;
38593
+ p_parent_kind: string;
38594
+ p_quantity: number;
38595
+ p_user_id: string;
38596
+ };
38597
+ Returns: import("../../../integrations/supabase/types").Json;
38598
+ } | {
38599
+ Args: {
38600
+ p_batch_id?: string;
38601
+ p_connection_id: string;
38602
+ p_parent_id: string;
38603
+ p_parent_key: string;
38604
+ p_parent_kind: string;
38605
+ p_quantity: number;
38606
+ p_user_id: string;
38607
+ };
38608
+ Returns: import("../../../integrations/supabase/types").Json;
38609
+ };
37986
38610
  consume_floriday_rate_limit: {
37987
38611
  Args: {
37988
38612
  p_bucket: string;
@@ -38040,6 +38664,13 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
38040
38664
  table_name: string;
38041
38665
  }[];
38042
38666
  };
38667
+ delete_samenstelling: {
38668
+ Args: {
38669
+ p_parent_id: string;
38670
+ p_parent_kind: string;
38671
+ };
38672
+ Returns: import("../../../integrations/supabase/types").Json;
38673
+ };
38043
38674
  dispatch_carrier_signups_sql: {
38044
38675
  Args: {
38045
38676
  _catchup?: string;
@@ -38295,6 +38926,12 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
38295
38926
  minutes_since_success: number;
38296
38927
  }[];
38297
38928
  };
38929
+ get_inventory_stock_for_key: {
38930
+ Args: {
38931
+ p_key: string;
38932
+ };
38933
+ Returns: number;
38934
+ };
38298
38935
  get_offer_by_link_code: {
38299
38936
  Args: {
38300
38937
  p_code: string;
@@ -38325,6 +38962,12 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
38325
38962
  };
38326
38963
  Returns: string;
38327
38964
  };
38965
+ get_product_group_available_stock: {
38966
+ Args: {
38967
+ p_group_id: string;
38968
+ };
38969
+ Returns: number;
38970
+ };
38328
38971
  get_room_busy_windows: {
38329
38972
  Args: {
38330
38973
  p_from: string;
@@ -38398,9 +39041,10 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
38398
39041
  list_monteurs: {
38399
39042
  Args: never;
38400
39043
  Returns: {
39044
+ avatar_url: string;
38401
39045
  display_name: string;
38402
39046
  email: string;
38403
- user_id: string;
39047
+ id: string;
38404
39048
  }[];
38405
39049
  };
38406
39050
  local_effective_price: {
@@ -38535,6 +39179,14 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
38535
39179
  };
38536
39180
  Returns: undefined;
38537
39181
  };
39182
+ produce_designed_product: {
39183
+ Args: {
39184
+ p_parent_id: string;
39185
+ p_parent_kind: string;
39186
+ p_quantity: number;
39187
+ };
39188
+ Returns: import("../../../integrations/supabase/types").Json;
39189
+ };
38538
39190
  promote_trade_item_key: {
38539
39191
  Args: {
38540
39192
  p_new: string;
@@ -38609,6 +39261,16 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
38609
39261
  };
38610
39262
  Returns: number;
38611
39263
  };
39264
+ reverse_production: {
39265
+ Args: {
39266
+ p_connection_id?: string;
39267
+ p_parent_key: string;
39268
+ p_quantity: number;
39269
+ p_reason?: string;
39270
+ p_user_id?: string;
39271
+ };
39272
+ Returns: import("../../../integrations/supabase/types").Json;
39273
+ };
38612
39274
  schedule_floriday_additional_services_sync: {
38613
39275
  Args: {
38614
39276
  p_apikey: string;
@@ -38893,18 +39555,34 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
38893
39555
  };
38894
39556
  Returns: string[];
38895
39557
  };
39558
+ sync_all_layer_stocks: {
39559
+ Args: never;
39560
+ Returns: undefined;
39561
+ };
38896
39562
  sync_cached_packing_from_product: {
38897
39563
  Args: {
38898
39564
  p_product_id: string;
38899
39565
  };
38900
39566
  Returns: undefined;
38901
39567
  };
39568
+ sync_layer_stock: {
39569
+ Args: {
39570
+ p_product_id: string;
39571
+ };
39572
+ Returns: undefined;
39573
+ };
38902
39574
  sync_order_cart_item_packing_from_product: {
38903
39575
  Args: {
38904
39576
  p_product_id: string;
38905
39577
  };
38906
39578
  Returns: undefined;
38907
39579
  };
39580
+ sync_product_group_belading: {
39581
+ Args: {
39582
+ _group_id: string;
39583
+ };
39584
+ Returns: undefined;
39585
+ };
38908
39586
  sync_product_packing_from_floriday_cache: {
38909
39587
  Args: {
38910
39588
  p_floriday_id: string;
@@ -38941,7 +39619,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
38941
39619
  exact_push_status: "pending" | "sent" | "error";
38942
39620
  itk_customer_segment: "Business" | "Private";
38943
39621
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
38944
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
39622
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
38945
39623
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
38946
39624
  };
38947
39625
  CompositeTypes: { [_ in never]: never; };