@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
@@ -8616,6 +8616,69 @@ export type Database = {
8616
8616
  }
8617
8617
  ];
8618
8618
  };
8619
+ product_bom_items: {
8620
+ Row: {
8621
+ component_product_id: string | null;
8622
+ component_trade_item_floriday_id: string | null;
8623
+ created_at: string;
8624
+ id: string;
8625
+ notes: string | null;
8626
+ packing_configuration_id: string | null;
8627
+ parent_product_id: string | null;
8628
+ parent_trade_item_floriday_id: string | null;
8629
+ quantity: number;
8630
+ sort_order: number;
8631
+ tenant_id: string;
8632
+ unit: string;
8633
+ updated_at: string;
8634
+ };
8635
+ Insert: {
8636
+ component_product_id?: string | null;
8637
+ component_trade_item_floriday_id?: string | null;
8638
+ created_at?: string;
8639
+ id?: string;
8640
+ notes?: string | null;
8641
+ packing_configuration_id?: string | null;
8642
+ parent_product_id?: string | null;
8643
+ parent_trade_item_floriday_id?: string | null;
8644
+ quantity?: number;
8645
+ sort_order?: number;
8646
+ tenant_id: string;
8647
+ unit?: string;
8648
+ updated_at?: string;
8649
+ };
8650
+ Update: {
8651
+ component_product_id?: string | null;
8652
+ component_trade_item_floriday_id?: string | null;
8653
+ created_at?: string;
8654
+ id?: string;
8655
+ notes?: string | null;
8656
+ packing_configuration_id?: string | null;
8657
+ parent_product_id?: string | null;
8658
+ parent_trade_item_floriday_id?: string | null;
8659
+ quantity?: number;
8660
+ sort_order?: number;
8661
+ tenant_id?: string;
8662
+ unit?: string;
8663
+ updated_at?: string;
8664
+ };
8665
+ Relationships: [
8666
+ {
8667
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8668
+ columns: ["component_product_id"];
8669
+ isOneToOne: false;
8670
+ referencedRelation: "products";
8671
+ referencedColumns: ["id"];
8672
+ },
8673
+ {
8674
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8675
+ columns: ["parent_product_id"];
8676
+ isOneToOne: false;
8677
+ referencedRelation: "products";
8678
+ referencedColumns: ["id"];
8679
+ }
8680
+ ];
8681
+ };
8619
8682
  product_categories: {
8620
8683
  Row: {
8621
8684
  color: string;
@@ -8723,6 +8786,7 @@ export type Database = {
8723
8786
  id: string;
8724
8787
  product_group_id: string;
8725
8788
  quantity: number;
8789
+ sort_order: number;
8726
8790
  trade_item_id: string;
8727
8791
  };
8728
8792
  Insert: {
@@ -8730,6 +8794,7 @@ export type Database = {
8730
8794
  id?: string;
8731
8795
  product_group_id: string;
8732
8796
  quantity?: number;
8797
+ sort_order?: number;
8733
8798
  trade_item_id: string;
8734
8799
  };
8735
8800
  Update: {
@@ -8737,6 +8802,7 @@ export type Database = {
8737
8802
  id?: string;
8738
8803
  product_group_id?: string;
8739
8804
  quantity?: number;
8805
+ sort_order?: number;
8740
8806
  trade_item_id?: string;
8741
8807
  };
8742
8808
  Relationships: [
@@ -8793,16 +8859,88 @@ export type Database = {
8793
8859
  }
8794
8860
  ];
8795
8861
  };
8862
+ product_load_settings: {
8863
+ Row: {
8864
+ created_at: string;
8865
+ id: string;
8866
+ is_package: boolean;
8867
+ label: string | null;
8868
+ layers_per_load_carrier: number | null;
8869
+ load_carrier: string | null;
8870
+ package_id: string | null;
8871
+ package_label: string | null;
8872
+ packages_per_layer: number | null;
8873
+ packing_configuration_id: string;
8874
+ product_id: string | null;
8875
+ tenant_id: string;
8876
+ trade_item_floriday_id: string | null;
8877
+ units_per_package: number | null;
8878
+ updated_at: string;
8879
+ };
8880
+ Insert: {
8881
+ created_at?: string;
8882
+ id?: string;
8883
+ is_package?: boolean;
8884
+ label?: string | null;
8885
+ layers_per_load_carrier?: number | null;
8886
+ load_carrier?: string | null;
8887
+ package_id?: string | null;
8888
+ package_label?: string | null;
8889
+ packages_per_layer?: number | null;
8890
+ packing_configuration_id?: string;
8891
+ product_id?: string | null;
8892
+ tenant_id: string;
8893
+ trade_item_floriday_id?: string | null;
8894
+ units_per_package?: number | null;
8895
+ updated_at?: string;
8896
+ };
8897
+ Update: {
8898
+ created_at?: string;
8899
+ id?: string;
8900
+ is_package?: boolean;
8901
+ label?: string | null;
8902
+ layers_per_load_carrier?: number | null;
8903
+ load_carrier?: string | null;
8904
+ package_id?: string | null;
8905
+ package_label?: string | null;
8906
+ packages_per_layer?: number | null;
8907
+ packing_configuration_id?: string;
8908
+ product_id?: string | null;
8909
+ tenant_id?: string;
8910
+ trade_item_floriday_id?: string | null;
8911
+ units_per_package?: number | null;
8912
+ updated_at?: string;
8913
+ };
8914
+ Relationships: [
8915
+ {
8916
+ foreignKeyName: "product_load_settings_package_id_fkey";
8917
+ columns: ["package_id"];
8918
+ isOneToOne: false;
8919
+ referencedRelation: "packages";
8920
+ referencedColumns: ["id"];
8921
+ },
8922
+ {
8923
+ foreignKeyName: "product_load_settings_product_id_fkey";
8924
+ columns: ["product_id"];
8925
+ isOneToOne: false;
8926
+ referencedRelation: "products";
8927
+ referencedColumns: ["id"];
8928
+ }
8929
+ ];
8930
+ };
8796
8931
  products: {
8797
8932
  Row: {
8933
+ article_number: string | null;
8798
8934
  barcode: string | null;
8799
8935
  batch: string;
8800
8936
  crates_per_layer: number;
8801
8937
  created_at: string;
8802
8938
  custom_fields: Json;
8939
+ floriday_trade_item_id: string | null;
8803
8940
  id: string;
8804
8941
  image_url: string | null;
8805
8942
  incoming_quantity: number;
8943
+ is_layer: boolean;
8806
8944
  layers_per_cart: number;
8807
8945
  location: string;
8808
8946
  min_quantity: number;
@@ -8818,14 +8956,17 @@ export type Database = {
8818
8956
  weight: string | null;
8819
8957
  };
8820
8958
  Insert: {
8959
+ article_number?: string | null;
8821
8960
  barcode?: string | null;
8822
8961
  batch: string;
8823
8962
  crates_per_layer?: number;
8824
8963
  created_at?: string;
8825
8964
  custom_fields?: Json;
8965
+ floriday_trade_item_id?: string | null;
8826
8966
  id?: string;
8827
8967
  image_url?: string | null;
8828
8968
  incoming_quantity?: number;
8969
+ is_layer?: boolean;
8829
8970
  layers_per_cart?: number;
8830
8971
  location: string;
8831
8972
  min_quantity?: number;
@@ -8841,14 +8982,17 @@ export type Database = {
8841
8982
  weight?: string | null;
8842
8983
  };
8843
8984
  Update: {
8985
+ article_number?: string | null;
8844
8986
  barcode?: string | null;
8845
8987
  batch?: string;
8846
8988
  crates_per_layer?: number;
8847
8989
  created_at?: string;
8848
8990
  custom_fields?: Json;
8991
+ floriday_trade_item_id?: string | null;
8849
8992
  id?: string;
8850
8993
  image_url?: string | null;
8851
8994
  incoming_quantity?: number;
8995
+ is_layer?: boolean;
8852
8996
  layers_per_cart?: number;
8853
8997
  location?: string;
8854
8998
  min_quantity?: number;
@@ -8868,6 +9012,7 @@ export type Database = {
8868
9012
  profiles: {
8869
9013
  Row: {
8870
9014
  address: string | null;
9015
+ avatar_url: string | null;
8871
9016
  created_at: string;
8872
9017
  display_name: string | null;
8873
9018
  email: string | null;
@@ -8879,6 +9024,7 @@ export type Database = {
8879
9024
  };
8880
9025
  Insert: {
8881
9026
  address?: string | null;
9027
+ avatar_url?: string | null;
8882
9028
  created_at?: string;
8883
9029
  display_name?: string | null;
8884
9030
  email?: string | null;
@@ -8890,6 +9036,7 @@ export type Database = {
8890
9036
  };
8891
9037
  Update: {
8892
9038
  address?: string | null;
9039
+ avatar_url?: string | null;
8893
9040
  created_at?: string;
8894
9041
  display_name?: string | null;
8895
9042
  email?: string | null;
@@ -9788,6 +9935,7 @@ export type Database = {
9788
9935
  order_source: string | null;
9789
9936
  physical_after: number | null;
9790
9937
  physical_before: number | null;
9938
+ production_batch_id: string | null;
9791
9939
  qty_delta: number;
9792
9940
  reason: string | null;
9793
9941
  reserved_after: number | null;
@@ -9805,6 +9953,7 @@ export type Database = {
9805
9953
  order_source?: string | null;
9806
9954
  physical_after?: number | null;
9807
9955
  physical_before?: number | null;
9956
+ production_batch_id?: string | null;
9808
9957
  qty_delta: number;
9809
9958
  reason?: string | null;
9810
9959
  reserved_after?: number | null;
@@ -9822,6 +9971,7 @@ export type Database = {
9822
9971
  order_source?: string | null;
9823
9972
  physical_after?: number | null;
9824
9973
  physical_before?: number | null;
9974
+ production_batch_id?: string | null;
9825
9975
  qty_delta?: number;
9826
9976
  reason?: string | null;
9827
9977
  reserved_after?: number | null;
@@ -12305,6 +12455,12 @@ export type Database = {
12305
12455
  processed_items: number;
12306
12456
  }[];
12307
12457
  };
12458
+ calculate_layer_stock: {
12459
+ Args: {
12460
+ p_product_id: string;
12461
+ };
12462
+ Returns: number;
12463
+ };
12308
12464
  call_exact_route: {
12309
12465
  Args: {
12310
12466
  path: string;
@@ -12364,6 +12520,28 @@ export type Database = {
12364
12520
  Args: never;
12365
12521
  Returns: undefined;
12366
12522
  };
12523
+ consume_bom_for_production: {
12524
+ Args: {
12525
+ p_connection_id: string;
12526
+ p_parent_id: string;
12527
+ p_parent_key: string;
12528
+ p_parent_kind: string;
12529
+ p_quantity: number;
12530
+ p_user_id: string;
12531
+ };
12532
+ Returns: Json;
12533
+ } | {
12534
+ Args: {
12535
+ p_batch_id?: string;
12536
+ p_connection_id: string;
12537
+ p_parent_id: string;
12538
+ p_parent_key: string;
12539
+ p_parent_kind: string;
12540
+ p_quantity: number;
12541
+ p_user_id: string;
12542
+ };
12543
+ Returns: Json;
12544
+ };
12367
12545
  consume_floriday_rate_limit: {
12368
12546
  Args: {
12369
12547
  p_bucket: string;
@@ -12421,6 +12599,13 @@ export type Database = {
12421
12599
  table_name: string;
12422
12600
  }[];
12423
12601
  };
12602
+ delete_samenstelling: {
12603
+ Args: {
12604
+ p_parent_id: string;
12605
+ p_parent_kind: string;
12606
+ };
12607
+ Returns: Json;
12608
+ };
12424
12609
  dispatch_carrier_signups_sql: {
12425
12610
  Args: {
12426
12611
  _catchup?: string;
@@ -12676,6 +12861,12 @@ export type Database = {
12676
12861
  minutes_since_success: number;
12677
12862
  }[];
12678
12863
  };
12864
+ get_inventory_stock_for_key: {
12865
+ Args: {
12866
+ p_key: string;
12867
+ };
12868
+ Returns: number;
12869
+ };
12679
12870
  get_offer_by_link_code: {
12680
12871
  Args: {
12681
12872
  p_code: string;
@@ -12706,6 +12897,12 @@ export type Database = {
12706
12897
  };
12707
12898
  Returns: string;
12708
12899
  };
12900
+ get_product_group_available_stock: {
12901
+ Args: {
12902
+ p_group_id: string;
12903
+ };
12904
+ Returns: number;
12905
+ };
12709
12906
  get_room_busy_windows: {
12710
12907
  Args: {
12711
12908
  p_from: string;
@@ -12779,6 +12976,7 @@ export type Database = {
12779
12976
  list_monteurs: {
12780
12977
  Args: never;
12781
12978
  Returns: {
12979
+ avatar_url: string;
12782
12980
  display_name: string;
12783
12981
  email: string;
12784
12982
  id: string;
@@ -12916,6 +13114,14 @@ export type Database = {
12916
13114
  };
12917
13115
  Returns: undefined;
12918
13116
  };
13117
+ produce_designed_product: {
13118
+ Args: {
13119
+ p_parent_id: string;
13120
+ p_parent_kind: string;
13121
+ p_quantity: number;
13122
+ };
13123
+ Returns: Json;
13124
+ };
12919
13125
  promote_trade_item_key: {
12920
13126
  Args: {
12921
13127
  p_new: string;
@@ -12990,6 +13196,16 @@ export type Database = {
12990
13196
  };
12991
13197
  Returns: number;
12992
13198
  };
13199
+ reverse_production: {
13200
+ Args: {
13201
+ p_connection_id?: string;
13202
+ p_parent_key: string;
13203
+ p_quantity: number;
13204
+ p_reason?: string;
13205
+ p_user_id?: string;
13206
+ };
13207
+ Returns: Json;
13208
+ };
12993
13209
  schedule_floriday_additional_services_sync: {
12994
13210
  Args: {
12995
13211
  p_apikey: string;
@@ -13274,18 +13490,34 @@ export type Database = {
13274
13490
  };
13275
13491
  Returns: string[];
13276
13492
  };
13493
+ sync_all_layer_stocks: {
13494
+ Args: never;
13495
+ Returns: undefined;
13496
+ };
13277
13497
  sync_cached_packing_from_product: {
13278
13498
  Args: {
13279
13499
  p_product_id: string;
13280
13500
  };
13281
13501
  Returns: undefined;
13282
13502
  };
13503
+ sync_layer_stock: {
13504
+ Args: {
13505
+ p_product_id: string;
13506
+ };
13507
+ Returns: undefined;
13508
+ };
13283
13509
  sync_order_cart_item_packing_from_product: {
13284
13510
  Args: {
13285
13511
  p_product_id: string;
13286
13512
  };
13287
13513
  Returns: undefined;
13288
13514
  };
13515
+ sync_product_group_belading: {
13516
+ Args: {
13517
+ _group_id: string;
13518
+ };
13519
+ Returns: undefined;
13520
+ };
13289
13521
  sync_product_packing_from_floriday_cache: {
13290
13522
  Args: {
13291
13523
  p_floriday_id: string;
@@ -13322,7 +13554,7 @@ export type Database = {
13322
13554
  exact_push_status: "pending" | "sent" | "error";
13323
13555
  itk_customer_segment: "Business" | "Private";
13324
13556
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13325
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
13557
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
13326
13558
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
13327
13559
  };
13328
13560
  CompositeTypes: {
@@ -13387,7 +13619,7 @@ export declare const Constants: {
13387
13619
  readonly exact_push_status: readonly ["pending", "sent", "error"];
13388
13620
  readonly itk_customer_segment: readonly ["Business", "Private"];
13389
13621
  readonly itk_dynamic_field_type: readonly ["text", "select", "date", "checkbox"];
13390
- readonly planning_item_status: readonly ["gepland", "bezig", "afgerond", "geannuleerd"];
13622
+ readonly planning_item_status: readonly ["gepland", "bezig", "afgerond", "geannuleerd", "concept", "vrijgegeven"];
13391
13623
  readonly quote_status: readonly ["concept", "verzonden", "bekeken", "in_behandeling", "geaccepteerd", "afgewezen", "verlopen", "gearchiveerd"];
13392
13624
  };
13393
13625
  };