@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
@@ -8409,6 +8409,66 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
8409
8409
  referencedColumns: ["id"];
8410
8410
  }];
8411
8411
  };
8412
+ product_bom_items: {
8413
+ Row: {
8414
+ component_product_id: string | null;
8415
+ component_trade_item_floriday_id: string | null;
8416
+ created_at: string;
8417
+ id: string;
8418
+ notes: string | null;
8419
+ packing_configuration_id: string | null;
8420
+ parent_product_id: string | null;
8421
+ parent_trade_item_floriday_id: string | null;
8422
+ quantity: number;
8423
+ sort_order: number;
8424
+ tenant_id: string;
8425
+ unit: string;
8426
+ updated_at: string;
8427
+ };
8428
+ Insert: {
8429
+ component_product_id?: string | null;
8430
+ component_trade_item_floriday_id?: string | null;
8431
+ created_at?: string;
8432
+ id?: string;
8433
+ notes?: string | null;
8434
+ packing_configuration_id?: string | null;
8435
+ parent_product_id?: string | null;
8436
+ parent_trade_item_floriday_id?: string | null;
8437
+ quantity?: number;
8438
+ sort_order?: number;
8439
+ tenant_id: string;
8440
+ unit?: string;
8441
+ updated_at?: string;
8442
+ };
8443
+ Update: {
8444
+ component_product_id?: string | null;
8445
+ component_trade_item_floriday_id?: string | null;
8446
+ created_at?: string;
8447
+ id?: string;
8448
+ notes?: string | null;
8449
+ packing_configuration_id?: string | null;
8450
+ parent_product_id?: string | null;
8451
+ parent_trade_item_floriday_id?: string | null;
8452
+ quantity?: number;
8453
+ sort_order?: number;
8454
+ tenant_id?: string;
8455
+ unit?: string;
8456
+ updated_at?: string;
8457
+ };
8458
+ Relationships: [{
8459
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8460
+ columns: ["component_product_id"];
8461
+ isOneToOne: false;
8462
+ referencedRelation: "products";
8463
+ referencedColumns: ["id"];
8464
+ }, {
8465
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8466
+ columns: ["parent_product_id"];
8467
+ isOneToOne: false;
8468
+ referencedRelation: "products";
8469
+ referencedColumns: ["id"];
8470
+ }];
8471
+ };
8412
8472
  product_categories: {
8413
8473
  Row: {
8414
8474
  color: string;
@@ -8514,6 +8574,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
8514
8574
  id: string;
8515
8575
  product_group_id: string;
8516
8576
  quantity: number;
8577
+ sort_order: number;
8517
8578
  trade_item_id: string;
8518
8579
  };
8519
8580
  Insert: {
@@ -8521,6 +8582,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
8521
8582
  id?: string;
8522
8583
  product_group_id: string;
8523
8584
  quantity?: number;
8585
+ sort_order?: number;
8524
8586
  trade_item_id: string;
8525
8587
  };
8526
8588
  Update: {
@@ -8528,6 +8590,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
8528
8590
  id?: string;
8529
8591
  product_group_id?: string;
8530
8592
  quantity?: number;
8593
+ sort_order?: number;
8531
8594
  trade_item_id?: string;
8532
8595
  };
8533
8596
  Relationships: [{
@@ -8580,16 +8643,85 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
8580
8643
  referencedColumns: ["id"];
8581
8644
  }];
8582
8645
  };
8646
+ product_load_settings: {
8647
+ Row: {
8648
+ created_at: string;
8649
+ id: string;
8650
+ is_package: boolean;
8651
+ label: string | null;
8652
+ layers_per_load_carrier: number | null;
8653
+ load_carrier: string | null;
8654
+ package_id: string | null;
8655
+ package_label: string | null;
8656
+ packages_per_layer: number | null;
8657
+ packing_configuration_id: string;
8658
+ product_id: string | null;
8659
+ tenant_id: string;
8660
+ trade_item_floriday_id: string | null;
8661
+ units_per_package: number | null;
8662
+ updated_at: string;
8663
+ };
8664
+ Insert: {
8665
+ created_at?: string;
8666
+ id?: string;
8667
+ is_package?: boolean;
8668
+ label?: string | null;
8669
+ layers_per_load_carrier?: number | null;
8670
+ load_carrier?: string | null;
8671
+ package_id?: string | null;
8672
+ package_label?: string | null;
8673
+ packages_per_layer?: number | null;
8674
+ packing_configuration_id?: string;
8675
+ product_id?: string | null;
8676
+ tenant_id: string;
8677
+ trade_item_floriday_id?: string | null;
8678
+ units_per_package?: number | null;
8679
+ updated_at?: string;
8680
+ };
8681
+ Update: {
8682
+ created_at?: string;
8683
+ id?: string;
8684
+ is_package?: boolean;
8685
+ label?: string | null;
8686
+ layers_per_load_carrier?: number | null;
8687
+ load_carrier?: string | null;
8688
+ package_id?: string | null;
8689
+ package_label?: string | null;
8690
+ packages_per_layer?: number | null;
8691
+ packing_configuration_id?: string;
8692
+ product_id?: string | null;
8693
+ tenant_id?: string;
8694
+ trade_item_floriday_id?: string | null;
8695
+ units_per_package?: number | null;
8696
+ updated_at?: string;
8697
+ };
8698
+ Relationships: [{
8699
+ foreignKeyName: "product_load_settings_package_id_fkey";
8700
+ columns: ["package_id"];
8701
+ isOneToOne: false;
8702
+ referencedRelation: "packages";
8703
+ referencedColumns: ["id"];
8704
+ }, {
8705
+ foreignKeyName: "product_load_settings_product_id_fkey";
8706
+ columns: ["product_id"];
8707
+ isOneToOne: false;
8708
+ referencedRelation: "products";
8709
+ referencedColumns: ["id"];
8710
+ }];
8711
+ };
8583
8712
  products: {
8584
8713
  Row: {
8714
+ article_number: string | null;
8585
8715
  barcode: string | null;
8586
8716
  batch: string;
8587
8717
  crates_per_layer: number;
8588
8718
  created_at: string;
8589
8719
  custom_fields: import("../integrations/supabase/types").Json;
8720
+ floriday_trade_item_id: string | null;
8590
8721
  id: string;
8591
8722
  image_url: string | null;
8592
8723
  incoming_quantity: number;
8724
+ is_layer: boolean;
8593
8725
  layers_per_cart: number;
8594
8726
  location: string;
8595
8727
  min_quantity: number;
@@ -8605,14 +8737,17 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
8605
8737
  weight: string | null;
8606
8738
  };
8607
8739
  Insert: {
8740
+ article_number?: string | null;
8608
8741
  barcode?: string | null;
8609
8742
  batch: string;
8610
8743
  crates_per_layer?: number;
8611
8744
  created_at?: string;
8612
8745
  custom_fields?: import("../integrations/supabase/types").Json;
8746
+ floriday_trade_item_id?: string | null;
8613
8747
  id?: string;
8614
8748
  image_url?: string | null;
8615
8749
  incoming_quantity?: number;
8750
+ is_layer?: boolean;
8616
8751
  layers_per_cart?: number;
8617
8752
  location: string;
8618
8753
  min_quantity?: number;
@@ -8628,14 +8763,17 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
8628
8763
  weight?: string | null;
8629
8764
  };
8630
8765
  Update: {
8766
+ article_number?: string | null;
8631
8767
  barcode?: string | null;
8632
8768
  batch?: string;
8633
8769
  crates_per_layer?: number;
8634
8770
  created_at?: string;
8635
8771
  custom_fields?: import("../integrations/supabase/types").Json;
8772
+ floriday_trade_item_id?: string | null;
8636
8773
  id?: string;
8637
8774
  image_url?: string | null;
8638
8775
  incoming_quantity?: number;
8776
+ is_layer?: boolean;
8639
8777
  layers_per_cart?: number;
8640
8778
  location?: string;
8641
8779
  min_quantity?: number;
@@ -8655,6 +8793,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
8655
8793
  profiles: {
8656
8794
  Row: {
8657
8795
  address: string | null;
8796
+ avatar_url: string | null;
8658
8797
  created_at: string;
8659
8798
  display_name: string | null;
8660
8799
  email: string | null;
@@ -8666,6 +8805,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
8666
8805
  };
8667
8806
  Insert: {
8668
8807
  address?: string | null;
8808
+ avatar_url?: string | null;
8669
8809
  created_at?: string;
8670
8810
  display_name?: string | null;
8671
8811
  email?: string | null;
@@ -8677,6 +8817,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
8677
8817
  };
8678
8818
  Update: {
8679
8819
  address?: string | null;
8820
+ avatar_url?: string | null;
8680
8821
  created_at?: string;
8681
8822
  display_name?: string | null;
8682
8823
  email?: string | null;
@@ -9543,6 +9684,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
9543
9684
  order_source: string | null;
9544
9685
  physical_after: number | null;
9545
9686
  physical_before: number | null;
9687
+ production_batch_id: string | null;
9546
9688
  qty_delta: number;
9547
9689
  reason: string | null;
9548
9690
  reserved_after: number | null;
@@ -9560,6 +9702,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
9560
9702
  order_source?: string | null;
9561
9703
  physical_after?: number | null;
9562
9704
  physical_before?: number | null;
9705
+ production_batch_id?: string | null;
9563
9706
  qty_delta: number;
9564
9707
  reason?: string | null;
9565
9708
  reserved_after?: number | null;
@@ -9577,6 +9720,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
9577
9720
  order_source?: string | null;
9578
9721
  physical_after?: number | null;
9579
9722
  physical_before?: number | null;
9723
+ production_batch_id?: string | null;
9580
9724
  qty_delta?: number;
9581
9725
  reason?: string | null;
9582
9726
  reserved_after?: number | null;
@@ -12005,6 +12149,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
12005
12149
  processed_items: number;
12006
12150
  }[];
12007
12151
  };
12152
+ calculate_layer_stock: {
12153
+ Args: {
12154
+ p_product_id: string;
12155
+ };
12156
+ Returns: number;
12157
+ };
12008
12158
  call_exact_route: {
12009
12159
  Args: {
12010
12160
  path: string;
@@ -12064,6 +12214,28 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
12064
12214
  Args: never;
12065
12215
  Returns: undefined;
12066
12216
  };
12217
+ consume_bom_for_production: {
12218
+ Args: {
12219
+ p_connection_id: string;
12220
+ p_parent_id: string;
12221
+ p_parent_key: string;
12222
+ p_parent_kind: string;
12223
+ p_quantity: number;
12224
+ p_user_id: string;
12225
+ };
12226
+ Returns: import("../integrations/supabase/types").Json;
12227
+ } | {
12228
+ Args: {
12229
+ p_batch_id?: string;
12230
+ p_connection_id: string;
12231
+ p_parent_id: string;
12232
+ p_parent_key: string;
12233
+ p_parent_kind: string;
12234
+ p_quantity: number;
12235
+ p_user_id: string;
12236
+ };
12237
+ Returns: import("../integrations/supabase/types").Json;
12238
+ };
12067
12239
  consume_floriday_rate_limit: {
12068
12240
  Args: {
12069
12241
  p_bucket: string;
@@ -12121,6 +12293,13 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
12121
12293
  table_name: string;
12122
12294
  }[];
12123
12295
  };
12296
+ delete_samenstelling: {
12297
+ Args: {
12298
+ p_parent_id: string;
12299
+ p_parent_kind: string;
12300
+ };
12301
+ Returns: import("../integrations/supabase/types").Json;
12302
+ };
12124
12303
  dispatch_carrier_signups_sql: {
12125
12304
  Args: {
12126
12305
  _catchup?: string;
@@ -12376,6 +12555,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
12376
12555
  minutes_since_success: number;
12377
12556
  }[];
12378
12557
  };
12558
+ get_inventory_stock_for_key: {
12559
+ Args: {
12560
+ p_key: string;
12561
+ };
12562
+ Returns: number;
12563
+ };
12379
12564
  get_offer_by_link_code: {
12380
12565
  Args: {
12381
12566
  p_code: string;
@@ -12406,6 +12591,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
12406
12591
  };
12407
12592
  Returns: string;
12408
12593
  };
12594
+ get_product_group_available_stock: {
12595
+ Args: {
12596
+ p_group_id: string;
12597
+ };
12598
+ Returns: number;
12599
+ };
12409
12600
  get_room_busy_windows: {
12410
12601
  Args: {
12411
12602
  p_from: string;
@@ -12479,6 +12670,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
12479
12670
  list_monteurs: {
12480
12671
  Args: never;
12481
12672
  Returns: {
12673
+ avatar_url: string;
12482
12674
  display_name: string;
12483
12675
  email: string;
12484
12676
  id: string;
@@ -12616,6 +12808,14 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
12616
12808
  };
12617
12809
  Returns: undefined;
12618
12810
  };
12811
+ produce_designed_product: {
12812
+ Args: {
12813
+ p_parent_id: string;
12814
+ p_parent_kind: string;
12815
+ p_quantity: number;
12816
+ };
12817
+ Returns: import("../integrations/supabase/types").Json;
12818
+ };
12619
12819
  promote_trade_item_key: {
12620
12820
  Args: {
12621
12821
  p_new: string;
@@ -12690,6 +12890,16 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
12690
12890
  };
12691
12891
  Returns: number;
12692
12892
  };
12893
+ reverse_production: {
12894
+ Args: {
12895
+ p_connection_id?: string;
12896
+ p_parent_key: string;
12897
+ p_quantity: number;
12898
+ p_reason?: string;
12899
+ p_user_id?: string;
12900
+ };
12901
+ Returns: import("../integrations/supabase/types").Json;
12902
+ };
12693
12903
  schedule_floriday_additional_services_sync: {
12694
12904
  Args: {
12695
12905
  p_apikey: string;
@@ -12974,18 +13184,34 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
12974
13184
  };
12975
13185
  Returns: string[];
12976
13186
  };
13187
+ sync_all_layer_stocks: {
13188
+ Args: never;
13189
+ Returns: undefined;
13190
+ };
12977
13191
  sync_cached_packing_from_product: {
12978
13192
  Args: {
12979
13193
  p_product_id: string;
12980
13194
  };
12981
13195
  Returns: undefined;
12982
13196
  };
13197
+ sync_layer_stock: {
13198
+ Args: {
13199
+ p_product_id: string;
13200
+ };
13201
+ Returns: undefined;
13202
+ };
12983
13203
  sync_order_cart_item_packing_from_product: {
12984
13204
  Args: {
12985
13205
  p_product_id: string;
12986
13206
  };
12987
13207
  Returns: undefined;
12988
13208
  };
13209
+ sync_product_group_belading: {
13210
+ Args: {
13211
+ _group_id: string;
13212
+ };
13213
+ Returns: undefined;
13214
+ };
12989
13215
  sync_product_packing_from_floriday_cache: {
12990
13216
  Args: {
12991
13217
  p_floriday_id: string;
@@ -13022,7 +13248,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
13022
13248
  exact_push_status: "pending" | "sent" | "error";
13023
13249
  itk_customer_segment: "Business" | "Private";
13024
13250
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13025
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
13251
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
13026
13252
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
13027
13253
  };
13028
13254
  CompositeTypes: { [_ in never]: never; };