@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
@@ -8384,6 +8384,66 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
8384
8384
  referencedColumns: ["id"];
8385
8385
  }];
8386
8386
  };
8387
+ product_bom_items: {
8388
+ Row: {
8389
+ component_product_id: string | null;
8390
+ component_trade_item_floriday_id: string | null;
8391
+ created_at: string;
8392
+ id: string;
8393
+ notes: string | null;
8394
+ packing_configuration_id: string | null;
8395
+ parent_product_id: string | null;
8396
+ parent_trade_item_floriday_id: string | null;
8397
+ quantity: number;
8398
+ sort_order: number;
8399
+ tenant_id: string;
8400
+ unit: string;
8401
+ updated_at: string;
8402
+ };
8403
+ Insert: {
8404
+ component_product_id?: string | null;
8405
+ component_trade_item_floriday_id?: string | null;
8406
+ created_at?: string;
8407
+ id?: string;
8408
+ notes?: string | null;
8409
+ packing_configuration_id?: string | null;
8410
+ parent_product_id?: string | null;
8411
+ parent_trade_item_floriday_id?: string | null;
8412
+ quantity?: number;
8413
+ sort_order?: number;
8414
+ tenant_id: string;
8415
+ unit?: string;
8416
+ updated_at?: string;
8417
+ };
8418
+ Update: {
8419
+ component_product_id?: string | null;
8420
+ component_trade_item_floriday_id?: string | null;
8421
+ created_at?: string;
8422
+ id?: string;
8423
+ notes?: string | null;
8424
+ packing_configuration_id?: string | null;
8425
+ parent_product_id?: string | null;
8426
+ parent_trade_item_floriday_id?: string | null;
8427
+ quantity?: number;
8428
+ sort_order?: number;
8429
+ tenant_id?: string;
8430
+ unit?: string;
8431
+ updated_at?: string;
8432
+ };
8433
+ Relationships: [{
8434
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8435
+ columns: ["component_product_id"];
8436
+ isOneToOne: false;
8437
+ referencedRelation: "products";
8438
+ referencedColumns: ["id"];
8439
+ }, {
8440
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8441
+ columns: ["parent_product_id"];
8442
+ isOneToOne: false;
8443
+ referencedRelation: "products";
8444
+ referencedColumns: ["id"];
8445
+ }];
8446
+ };
8387
8447
  product_categories: {
8388
8448
  Row: {
8389
8449
  color: string;
@@ -8489,6 +8549,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
8489
8549
  id: string;
8490
8550
  product_group_id: string;
8491
8551
  quantity: number;
8552
+ sort_order: number;
8492
8553
  trade_item_id: string;
8493
8554
  };
8494
8555
  Insert: {
@@ -8496,6 +8557,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
8496
8557
  id?: string;
8497
8558
  product_group_id: string;
8498
8559
  quantity?: number;
8560
+ sort_order?: number;
8499
8561
  trade_item_id: string;
8500
8562
  };
8501
8563
  Update: {
@@ -8503,6 +8565,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
8503
8565
  id?: string;
8504
8566
  product_group_id?: string;
8505
8567
  quantity?: number;
8568
+ sort_order?: number;
8506
8569
  trade_item_id?: string;
8507
8570
  };
8508
8571
  Relationships: [{
@@ -8555,16 +8618,85 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
8555
8618
  referencedColumns: ["id"];
8556
8619
  }];
8557
8620
  };
8621
+ product_load_settings: {
8622
+ Row: {
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
+ Insert: {
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
+ Update: {
8657
+ created_at?: string;
8658
+ id?: string;
8659
+ is_package?: boolean;
8660
+ label?: string | null;
8661
+ layers_per_load_carrier?: number | null;
8662
+ load_carrier?: string | null;
8663
+ package_id?: string | null;
8664
+ package_label?: string | null;
8665
+ packages_per_layer?: number | null;
8666
+ packing_configuration_id?: string;
8667
+ product_id?: string | null;
8668
+ tenant_id?: string;
8669
+ trade_item_floriday_id?: string | null;
8670
+ units_per_package?: number | null;
8671
+ updated_at?: string;
8672
+ };
8673
+ Relationships: [{
8674
+ foreignKeyName: "product_load_settings_package_id_fkey";
8675
+ columns: ["package_id"];
8676
+ isOneToOne: false;
8677
+ referencedRelation: "packages";
8678
+ referencedColumns: ["id"];
8679
+ }, {
8680
+ foreignKeyName: "product_load_settings_product_id_fkey";
8681
+ columns: ["product_id"];
8682
+ isOneToOne: false;
8683
+ referencedRelation: "products";
8684
+ referencedColumns: ["id"];
8685
+ }];
8686
+ };
8558
8687
  products: {
8559
8688
  Row: {
8689
+ article_number: string | null;
8560
8690
  barcode: string | null;
8561
8691
  batch: string;
8562
8692
  crates_per_layer: number;
8563
8693
  created_at: string;
8564
8694
  custom_fields: import("../integrations/supabase/types").Json;
8695
+ floriday_trade_item_id: string | null;
8565
8696
  id: string;
8566
8697
  image_url: string | null;
8567
8698
  incoming_quantity: number;
8699
+ is_layer: boolean;
8568
8700
  layers_per_cart: number;
8569
8701
  location: string;
8570
8702
  min_quantity: number;
@@ -8580,14 +8712,17 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
8580
8712
  weight: string | null;
8581
8713
  };
8582
8714
  Insert: {
8715
+ article_number?: string | null;
8583
8716
  barcode?: string | null;
8584
8717
  batch: string;
8585
8718
  crates_per_layer?: number;
8586
8719
  created_at?: string;
8587
8720
  custom_fields?: import("../integrations/supabase/types").Json;
8721
+ floriday_trade_item_id?: string | null;
8588
8722
  id?: string;
8589
8723
  image_url?: string | null;
8590
8724
  incoming_quantity?: number;
8725
+ is_layer?: boolean;
8591
8726
  layers_per_cart?: number;
8592
8727
  location: string;
8593
8728
  min_quantity?: number;
@@ -8603,14 +8738,17 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
8603
8738
  weight?: string | null;
8604
8739
  };
8605
8740
  Update: {
8741
+ article_number?: string | null;
8606
8742
  barcode?: string | null;
8607
8743
  batch?: string;
8608
8744
  crates_per_layer?: number;
8609
8745
  created_at?: string;
8610
8746
  custom_fields?: import("../integrations/supabase/types").Json;
8747
+ floriday_trade_item_id?: string | null;
8611
8748
  id?: string;
8612
8749
  image_url?: string | null;
8613
8750
  incoming_quantity?: number;
8751
+ is_layer?: boolean;
8614
8752
  layers_per_cart?: number;
8615
8753
  location?: string;
8616
8754
  min_quantity?: number;
@@ -8630,6 +8768,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
8630
8768
  profiles: {
8631
8769
  Row: {
8632
8770
  address: string | null;
8771
+ avatar_url: string | null;
8633
8772
  created_at: string;
8634
8773
  display_name: string | null;
8635
8774
  email: string | null;
@@ -8641,6 +8780,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
8641
8780
  };
8642
8781
  Insert: {
8643
8782
  address?: string | null;
8783
+ avatar_url?: string | null;
8644
8784
  created_at?: string;
8645
8785
  display_name?: string | null;
8646
8786
  email?: string | null;
@@ -8652,6 +8792,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
8652
8792
  };
8653
8793
  Update: {
8654
8794
  address?: string | null;
8795
+ avatar_url?: string | null;
8655
8796
  created_at?: string;
8656
8797
  display_name?: string | null;
8657
8798
  email?: string | null;
@@ -9518,6 +9659,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
9518
9659
  order_source: string | null;
9519
9660
  physical_after: number | null;
9520
9661
  physical_before: number | null;
9662
+ production_batch_id: string | null;
9521
9663
  qty_delta: number;
9522
9664
  reason: string | null;
9523
9665
  reserved_after: number | null;
@@ -9535,6 +9677,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
9535
9677
  order_source?: string | null;
9536
9678
  physical_after?: number | null;
9537
9679
  physical_before?: number | null;
9680
+ production_batch_id?: string | null;
9538
9681
  qty_delta: number;
9539
9682
  reason?: string | null;
9540
9683
  reserved_after?: number | null;
@@ -9552,6 +9695,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
9552
9695
  order_source?: string | null;
9553
9696
  physical_after?: number | null;
9554
9697
  physical_before?: number | null;
9698
+ production_batch_id?: string | null;
9555
9699
  qty_delta?: number;
9556
9700
  reason?: string | null;
9557
9701
  reserved_after?: number | null;
@@ -11980,6 +12124,12 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
11980
12124
  processed_items: number;
11981
12125
  }[];
11982
12126
  };
12127
+ calculate_layer_stock: {
12128
+ Args: {
12129
+ p_product_id: string;
12130
+ };
12131
+ Returns: number;
12132
+ };
11983
12133
  call_exact_route: {
11984
12134
  Args: {
11985
12135
  path: string;
@@ -12039,6 +12189,28 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
12039
12189
  Args: never;
12040
12190
  Returns: undefined;
12041
12191
  };
12192
+ consume_bom_for_production: {
12193
+ Args: {
12194
+ p_connection_id: string;
12195
+ p_parent_id: string;
12196
+ p_parent_key: string;
12197
+ p_parent_kind: string;
12198
+ p_quantity: number;
12199
+ p_user_id: string;
12200
+ };
12201
+ Returns: import("../integrations/supabase/types").Json;
12202
+ } | {
12203
+ Args: {
12204
+ p_batch_id?: string;
12205
+ p_connection_id: string;
12206
+ p_parent_id: string;
12207
+ p_parent_key: string;
12208
+ p_parent_kind: string;
12209
+ p_quantity: number;
12210
+ p_user_id: string;
12211
+ };
12212
+ Returns: import("../integrations/supabase/types").Json;
12213
+ };
12042
12214
  consume_floriday_rate_limit: {
12043
12215
  Args: {
12044
12216
  p_bucket: string;
@@ -12096,6 +12268,13 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
12096
12268
  table_name: string;
12097
12269
  }[];
12098
12270
  };
12271
+ delete_samenstelling: {
12272
+ Args: {
12273
+ p_parent_id: string;
12274
+ p_parent_kind: string;
12275
+ };
12276
+ Returns: import("../integrations/supabase/types").Json;
12277
+ };
12099
12278
  dispatch_carrier_signups_sql: {
12100
12279
  Args: {
12101
12280
  _catchup?: string;
@@ -12351,6 +12530,12 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
12351
12530
  minutes_since_success: number;
12352
12531
  }[];
12353
12532
  };
12533
+ get_inventory_stock_for_key: {
12534
+ Args: {
12535
+ p_key: string;
12536
+ };
12537
+ Returns: number;
12538
+ };
12354
12539
  get_offer_by_link_code: {
12355
12540
  Args: {
12356
12541
  p_code: string;
@@ -12381,6 +12566,12 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
12381
12566
  };
12382
12567
  Returns: string;
12383
12568
  };
12569
+ get_product_group_available_stock: {
12570
+ Args: {
12571
+ p_group_id: string;
12572
+ };
12573
+ Returns: number;
12574
+ };
12384
12575
  get_room_busy_windows: {
12385
12576
  Args: {
12386
12577
  p_from: string;
@@ -12454,6 +12645,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
12454
12645
  list_monteurs: {
12455
12646
  Args: never;
12456
12647
  Returns: {
12648
+ avatar_url: string;
12457
12649
  display_name: string;
12458
12650
  email: string;
12459
12651
  id: string;
@@ -12591,6 +12783,14 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
12591
12783
  };
12592
12784
  Returns: undefined;
12593
12785
  };
12786
+ produce_designed_product: {
12787
+ Args: {
12788
+ p_parent_id: string;
12789
+ p_parent_kind: string;
12790
+ p_quantity: number;
12791
+ };
12792
+ Returns: import("../integrations/supabase/types").Json;
12793
+ };
12594
12794
  promote_trade_item_key: {
12595
12795
  Args: {
12596
12796
  p_new: string;
@@ -12665,6 +12865,16 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
12665
12865
  };
12666
12866
  Returns: number;
12667
12867
  };
12868
+ reverse_production: {
12869
+ Args: {
12870
+ p_connection_id?: string;
12871
+ p_parent_key: string;
12872
+ p_quantity: number;
12873
+ p_reason?: string;
12874
+ p_user_id?: string;
12875
+ };
12876
+ Returns: import("../integrations/supabase/types").Json;
12877
+ };
12668
12878
  schedule_floriday_additional_services_sync: {
12669
12879
  Args: {
12670
12880
  p_apikey: string;
@@ -12949,18 +13159,34 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
12949
13159
  };
12950
13160
  Returns: string[];
12951
13161
  };
13162
+ sync_all_layer_stocks: {
13163
+ Args: never;
13164
+ Returns: undefined;
13165
+ };
12952
13166
  sync_cached_packing_from_product: {
12953
13167
  Args: {
12954
13168
  p_product_id: string;
12955
13169
  };
12956
13170
  Returns: undefined;
12957
13171
  };
13172
+ sync_layer_stock: {
13173
+ Args: {
13174
+ p_product_id: string;
13175
+ };
13176
+ Returns: undefined;
13177
+ };
12958
13178
  sync_order_cart_item_packing_from_product: {
12959
13179
  Args: {
12960
13180
  p_product_id: string;
12961
13181
  };
12962
13182
  Returns: undefined;
12963
13183
  };
13184
+ sync_product_group_belading: {
13185
+ Args: {
13186
+ _group_id: string;
13187
+ };
13188
+ Returns: undefined;
13189
+ };
12964
13190
  sync_product_packing_from_floriday_cache: {
12965
13191
  Args: {
12966
13192
  p_floriday_id: string;
@@ -12997,7 +13223,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
12997
13223
  exact_push_status: "pending" | "sent" | "error";
12998
13224
  itk_customer_segment: "Business" | "Private";
12999
13225
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
13000
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
13226
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
13001
13227
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
13002
13228
  };
13003
13229
  CompositeTypes: { [_ in never]: never; };