@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
@@ -8367,6 +8367,66 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
8367
8367
  referencedColumns: ["id"];
8368
8368
  }];
8369
8369
  };
8370
+ product_bom_items: {
8371
+ Row: {
8372
+ component_product_id: string | null;
8373
+ component_trade_item_floriday_id: string | null;
8374
+ created_at: string;
8375
+ id: string;
8376
+ notes: string | null;
8377
+ packing_configuration_id: string | null;
8378
+ parent_product_id: string | null;
8379
+ parent_trade_item_floriday_id: string | null;
8380
+ quantity: number;
8381
+ sort_order: number;
8382
+ tenant_id: string;
8383
+ unit: string;
8384
+ updated_at: string;
8385
+ };
8386
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
8417
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8418
+ columns: ["component_product_id"];
8419
+ isOneToOne: false;
8420
+ referencedRelation: "products";
8421
+ referencedColumns: ["id"];
8422
+ }, {
8423
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8424
+ columns: ["parent_product_id"];
8425
+ isOneToOne: false;
8426
+ referencedRelation: "products";
8427
+ referencedColumns: ["id"];
8428
+ }];
8429
+ };
8370
8430
  product_categories: {
8371
8431
  Row: {
8372
8432
  color: string;
@@ -8472,6 +8532,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
8472
8532
  id: string;
8473
8533
  product_group_id: string;
8474
8534
  quantity: number;
8535
+ sort_order: number;
8475
8536
  trade_item_id: string;
8476
8537
  };
8477
8538
  Insert: {
@@ -8479,6 +8540,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
8479
8540
  id?: string;
8480
8541
  product_group_id: string;
8481
8542
  quantity?: number;
8543
+ sort_order?: number;
8482
8544
  trade_item_id: string;
8483
8545
  };
8484
8546
  Update: {
@@ -8486,6 +8548,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
8486
8548
  id?: string;
8487
8549
  product_group_id?: string;
8488
8550
  quantity?: number;
8551
+ sort_order?: number;
8489
8552
  trade_item_id?: string;
8490
8553
  };
8491
8554
  Relationships: [{
@@ -8538,16 +8601,85 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
8538
8601
  referencedColumns: ["id"];
8539
8602
  }];
8540
8603
  };
8604
+ product_load_settings: {
8605
+ Row: {
8606
+ created_at: string;
8607
+ id: string;
8608
+ is_package: boolean;
8609
+ label: string | null;
8610
+ layers_per_load_carrier: number | null;
8611
+ load_carrier: string | null;
8612
+ package_id: string | null;
8613
+ package_label: string | null;
8614
+ packages_per_layer: number | null;
8615
+ packing_configuration_id: string;
8616
+ product_id: string | null;
8617
+ tenant_id: string;
8618
+ trade_item_floriday_id: string | null;
8619
+ units_per_package: number | null;
8620
+ updated_at: string;
8621
+ };
8622
+ Insert: {
8623
+ created_at?: string;
8624
+ id?: string;
8625
+ is_package?: boolean;
8626
+ label?: string | null;
8627
+ layers_per_load_carrier?: number | null;
8628
+ load_carrier?: string | null;
8629
+ package_id?: string | null;
8630
+ package_label?: string | null;
8631
+ packages_per_layer?: number | null;
8632
+ packing_configuration_id?: string;
8633
+ product_id?: string | null;
8634
+ tenant_id: string;
8635
+ trade_item_floriday_id?: string | null;
8636
+ units_per_package?: number | null;
8637
+ updated_at?: string;
8638
+ };
8639
+ Update: {
8640
+ created_at?: string;
8641
+ id?: string;
8642
+ is_package?: boolean;
8643
+ label?: string | null;
8644
+ layers_per_load_carrier?: number | null;
8645
+ load_carrier?: string | null;
8646
+ package_id?: string | null;
8647
+ package_label?: string | null;
8648
+ packages_per_layer?: number | null;
8649
+ packing_configuration_id?: string;
8650
+ product_id?: string | null;
8651
+ tenant_id?: string;
8652
+ trade_item_floriday_id?: string | null;
8653
+ units_per_package?: number | null;
8654
+ updated_at?: string;
8655
+ };
8656
+ Relationships: [{
8657
+ foreignKeyName: "product_load_settings_package_id_fkey";
8658
+ columns: ["package_id"];
8659
+ isOneToOne: false;
8660
+ referencedRelation: "packages";
8661
+ referencedColumns: ["id"];
8662
+ }, {
8663
+ foreignKeyName: "product_load_settings_product_id_fkey";
8664
+ columns: ["product_id"];
8665
+ isOneToOne: false;
8666
+ referencedRelation: "products";
8667
+ referencedColumns: ["id"];
8668
+ }];
8669
+ };
8541
8670
  products: {
8542
8671
  Row: {
8672
+ article_number: string | null;
8543
8673
  barcode: string | null;
8544
8674
  batch: string;
8545
8675
  crates_per_layer: number;
8546
8676
  created_at: string;
8547
8677
  custom_fields: import("../integrations/supabase/types").Json;
8678
+ floriday_trade_item_id: string | null;
8548
8679
  id: string;
8549
8680
  image_url: string | null;
8550
8681
  incoming_quantity: number;
8682
+ is_layer: boolean;
8551
8683
  layers_per_cart: number;
8552
8684
  location: string;
8553
8685
  min_quantity: number;
@@ -8563,14 +8695,17 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
8563
8695
  weight: string | null;
8564
8696
  };
8565
8697
  Insert: {
8698
+ article_number?: string | null;
8566
8699
  barcode?: string | null;
8567
8700
  batch: string;
8568
8701
  crates_per_layer?: number;
8569
8702
  created_at?: string;
8570
8703
  custom_fields?: import("../integrations/supabase/types").Json;
8704
+ floriday_trade_item_id?: string | null;
8571
8705
  id?: string;
8572
8706
  image_url?: string | null;
8573
8707
  incoming_quantity?: number;
8708
+ is_layer?: boolean;
8574
8709
  layers_per_cart?: number;
8575
8710
  location: string;
8576
8711
  min_quantity?: number;
@@ -8586,14 +8721,17 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
8586
8721
  weight?: string | null;
8587
8722
  };
8588
8723
  Update: {
8724
+ article_number?: string | null;
8589
8725
  barcode?: string | null;
8590
8726
  batch?: string;
8591
8727
  crates_per_layer?: number;
8592
8728
  created_at?: string;
8593
8729
  custom_fields?: import("../integrations/supabase/types").Json;
8730
+ floriday_trade_item_id?: string | null;
8594
8731
  id?: string;
8595
8732
  image_url?: string | null;
8596
8733
  incoming_quantity?: number;
8734
+ is_layer?: boolean;
8597
8735
  layers_per_cart?: number;
8598
8736
  location?: string;
8599
8737
  min_quantity?: number;
@@ -8613,6 +8751,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
8613
8751
  profiles: {
8614
8752
  Row: {
8615
8753
  address: string | null;
8754
+ avatar_url: string | null;
8616
8755
  created_at: string;
8617
8756
  display_name: string | null;
8618
8757
  email: string | null;
@@ -8624,6 +8763,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
8624
8763
  };
8625
8764
  Insert: {
8626
8765
  address?: string | null;
8766
+ avatar_url?: string | null;
8627
8767
  created_at?: string;
8628
8768
  display_name?: string | null;
8629
8769
  email?: string | null;
@@ -8635,6 +8775,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
8635
8775
  };
8636
8776
  Update: {
8637
8777
  address?: string | null;
8778
+ avatar_url?: string | null;
8638
8779
  created_at?: string;
8639
8780
  display_name?: string | null;
8640
8781
  email?: string | null;
@@ -9501,6 +9642,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
9501
9642
  order_source: string | null;
9502
9643
  physical_after: number | null;
9503
9644
  physical_before: number | null;
9645
+ production_batch_id: string | null;
9504
9646
  qty_delta: number;
9505
9647
  reason: string | null;
9506
9648
  reserved_after: number | null;
@@ -9518,6 +9660,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
9518
9660
  order_source?: string | null;
9519
9661
  physical_after?: number | null;
9520
9662
  physical_before?: number | null;
9663
+ production_batch_id?: string | null;
9521
9664
  qty_delta: number;
9522
9665
  reason?: string | null;
9523
9666
  reserved_after?: number | null;
@@ -9535,6 +9678,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
9535
9678
  order_source?: string | null;
9536
9679
  physical_after?: number | null;
9537
9680
  physical_before?: number | null;
9681
+ production_batch_id?: string | null;
9538
9682
  qty_delta?: number;
9539
9683
  reason?: string | null;
9540
9684
  reserved_after?: number | null;
@@ -11963,6 +12107,12 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
11963
12107
  processed_items: number;
11964
12108
  }[];
11965
12109
  };
12110
+ calculate_layer_stock: {
12111
+ Args: {
12112
+ p_product_id: string;
12113
+ };
12114
+ Returns: number;
12115
+ };
11966
12116
  call_exact_route: {
11967
12117
  Args: {
11968
12118
  path: string;
@@ -12022,6 +12172,28 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
12022
12172
  Args: never;
12023
12173
  Returns: undefined;
12024
12174
  };
12175
+ consume_bom_for_production: {
12176
+ Args: {
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
+ } | {
12186
+ Args: {
12187
+ p_batch_id?: string;
12188
+ p_connection_id: string;
12189
+ p_parent_id: string;
12190
+ p_parent_key: string;
12191
+ p_parent_kind: string;
12192
+ p_quantity: number;
12193
+ p_user_id: string;
12194
+ };
12195
+ Returns: import("../integrations/supabase/types").Json;
12196
+ };
12025
12197
  consume_floriday_rate_limit: {
12026
12198
  Args: {
12027
12199
  p_bucket: string;
@@ -12079,6 +12251,13 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
12079
12251
  table_name: string;
12080
12252
  }[];
12081
12253
  };
12254
+ delete_samenstelling: {
12255
+ Args: {
12256
+ p_parent_id: string;
12257
+ p_parent_kind: string;
12258
+ };
12259
+ Returns: import("../integrations/supabase/types").Json;
12260
+ };
12082
12261
  dispatch_carrier_signups_sql: {
12083
12262
  Args: {
12084
12263
  _catchup?: string;
@@ -12334,6 +12513,12 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
12334
12513
  minutes_since_success: number;
12335
12514
  }[];
12336
12515
  };
12516
+ get_inventory_stock_for_key: {
12517
+ Args: {
12518
+ p_key: string;
12519
+ };
12520
+ Returns: number;
12521
+ };
12337
12522
  get_offer_by_link_code: {
12338
12523
  Args: {
12339
12524
  p_code: string;
@@ -12364,6 +12549,12 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
12364
12549
  };
12365
12550
  Returns: string;
12366
12551
  };
12552
+ get_product_group_available_stock: {
12553
+ Args: {
12554
+ p_group_id: string;
12555
+ };
12556
+ Returns: number;
12557
+ };
12367
12558
  get_room_busy_windows: {
12368
12559
  Args: {
12369
12560
  p_from: string;
@@ -12437,6 +12628,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
12437
12628
  list_monteurs: {
12438
12629
  Args: never;
12439
12630
  Returns: {
12631
+ avatar_url: string;
12440
12632
  display_name: string;
12441
12633
  email: string;
12442
12634
  id: string;
@@ -12574,6 +12766,14 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
12574
12766
  };
12575
12767
  Returns: undefined;
12576
12768
  };
12769
+ produce_designed_product: {
12770
+ Args: {
12771
+ p_parent_id: string;
12772
+ p_parent_kind: string;
12773
+ p_quantity: number;
12774
+ };
12775
+ Returns: import("../integrations/supabase/types").Json;
12776
+ };
12577
12777
  promote_trade_item_key: {
12578
12778
  Args: {
12579
12779
  p_new: string;
@@ -12648,6 +12848,16 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
12648
12848
  };
12649
12849
  Returns: number;
12650
12850
  };
12851
+ reverse_production: {
12852
+ Args: {
12853
+ p_connection_id?: string;
12854
+ p_parent_key: string;
12855
+ p_quantity: number;
12856
+ p_reason?: string;
12857
+ p_user_id?: string;
12858
+ };
12859
+ Returns: import("../integrations/supabase/types").Json;
12860
+ };
12651
12861
  schedule_floriday_additional_services_sync: {
12652
12862
  Args: {
12653
12863
  p_apikey: string;
@@ -12932,18 +13142,34 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
12932
13142
  };
12933
13143
  Returns: string[];
12934
13144
  };
13145
+ sync_all_layer_stocks: {
13146
+ Args: never;
13147
+ Returns: undefined;
13148
+ };
12935
13149
  sync_cached_packing_from_product: {
12936
13150
  Args: {
12937
13151
  p_product_id: string;
12938
13152
  };
12939
13153
  Returns: undefined;
12940
13154
  };
13155
+ sync_layer_stock: {
13156
+ Args: {
13157
+ p_product_id: string;
13158
+ };
13159
+ Returns: undefined;
13160
+ };
12941
13161
  sync_order_cart_item_packing_from_product: {
12942
13162
  Args: {
12943
13163
  p_product_id: string;
12944
13164
  };
12945
13165
  Returns: undefined;
12946
13166
  };
13167
+ sync_product_group_belading: {
13168
+ Args: {
13169
+ _group_id: string;
13170
+ };
13171
+ Returns: undefined;
13172
+ };
12947
13173
  sync_product_packing_from_floriday_cache: {
12948
13174
  Args: {
12949
13175
  p_floriday_id: string;
@@ -12980,7 +13206,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
12980
13206
  exact_push_status: "pending" | "sent" | "error";
12981
13207
  itk_customer_segment: "Business" | "Private";
12982
13208
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
12983
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
13209
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
12984
13210
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
12985
13211
  };
12986
13212
  CompositeTypes: { [_ in never]: never; };