@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
@@ -8373,6 +8373,66 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8373
8373
  referencedColumns: ["id"];
8374
8374
  }];
8375
8375
  };
8376
+ product_bom_items: {
8377
+ Row: {
8378
+ component_product_id: string | null;
8379
+ component_trade_item_floriday_id: string | null;
8380
+ created_at: string;
8381
+ id: string;
8382
+ notes: string | null;
8383
+ packing_configuration_id: string | null;
8384
+ parent_product_id: string | null;
8385
+ parent_trade_item_floriday_id: string | null;
8386
+ quantity: number;
8387
+ sort_order: number;
8388
+ tenant_id: string;
8389
+ unit: string;
8390
+ updated_at: string;
8391
+ };
8392
+ Insert: {
8393
+ component_product_id?: string | null;
8394
+ component_trade_item_floriday_id?: string | null;
8395
+ created_at?: string;
8396
+ id?: string;
8397
+ notes?: string | null;
8398
+ packing_configuration_id?: string | null;
8399
+ parent_product_id?: string | null;
8400
+ parent_trade_item_floriday_id?: string | null;
8401
+ quantity?: number;
8402
+ sort_order?: number;
8403
+ tenant_id: string;
8404
+ unit?: string;
8405
+ updated_at?: string;
8406
+ };
8407
+ Update: {
8408
+ component_product_id?: string | null;
8409
+ component_trade_item_floriday_id?: string | null;
8410
+ created_at?: string;
8411
+ id?: string;
8412
+ notes?: string | null;
8413
+ packing_configuration_id?: string | null;
8414
+ parent_product_id?: string | null;
8415
+ parent_trade_item_floriday_id?: string | null;
8416
+ quantity?: number;
8417
+ sort_order?: number;
8418
+ tenant_id?: string;
8419
+ unit?: string;
8420
+ updated_at?: string;
8421
+ };
8422
+ Relationships: [{
8423
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8424
+ columns: ["component_product_id"];
8425
+ isOneToOne: false;
8426
+ referencedRelation: "products";
8427
+ referencedColumns: ["id"];
8428
+ }, {
8429
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8430
+ columns: ["parent_product_id"];
8431
+ isOneToOne: false;
8432
+ referencedRelation: "products";
8433
+ referencedColumns: ["id"];
8434
+ }];
8435
+ };
8376
8436
  product_categories: {
8377
8437
  Row: {
8378
8438
  color: string;
@@ -8478,6 +8538,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8478
8538
  id: string;
8479
8539
  product_group_id: string;
8480
8540
  quantity: number;
8541
+ sort_order: number;
8481
8542
  trade_item_id: string;
8482
8543
  };
8483
8544
  Insert: {
@@ -8485,6 +8546,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8485
8546
  id?: string;
8486
8547
  product_group_id: string;
8487
8548
  quantity?: number;
8549
+ sort_order?: number;
8488
8550
  trade_item_id: string;
8489
8551
  };
8490
8552
  Update: {
@@ -8492,6 +8554,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8492
8554
  id?: string;
8493
8555
  product_group_id?: string;
8494
8556
  quantity?: number;
8557
+ sort_order?: number;
8495
8558
  trade_item_id?: string;
8496
8559
  };
8497
8560
  Relationships: [{
@@ -8544,16 +8607,85 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8544
8607
  referencedColumns: ["id"];
8545
8608
  }];
8546
8609
  };
8610
+ product_load_settings: {
8611
+ Row: {
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
+ Insert: {
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
+ Update: {
8646
+ created_at?: string;
8647
+ id?: string;
8648
+ is_package?: boolean;
8649
+ label?: string | null;
8650
+ layers_per_load_carrier?: number | null;
8651
+ load_carrier?: string | null;
8652
+ package_id?: string | null;
8653
+ package_label?: string | null;
8654
+ packages_per_layer?: number | null;
8655
+ packing_configuration_id?: string;
8656
+ product_id?: string | null;
8657
+ tenant_id?: string;
8658
+ trade_item_floriday_id?: string | null;
8659
+ units_per_package?: number | null;
8660
+ updated_at?: string;
8661
+ };
8662
+ Relationships: [{
8663
+ foreignKeyName: "product_load_settings_package_id_fkey";
8664
+ columns: ["package_id"];
8665
+ isOneToOne: false;
8666
+ referencedRelation: "packages";
8667
+ referencedColumns: ["id"];
8668
+ }, {
8669
+ foreignKeyName: "product_load_settings_product_id_fkey";
8670
+ columns: ["product_id"];
8671
+ isOneToOne: false;
8672
+ referencedRelation: "products";
8673
+ referencedColumns: ["id"];
8674
+ }];
8675
+ };
8547
8676
  products: {
8548
8677
  Row: {
8678
+ article_number: string | null;
8549
8679
  barcode: string | null;
8550
8680
  batch: string;
8551
8681
  crates_per_layer: number;
8552
8682
  created_at: string;
8553
8683
  custom_fields: import("../integrations/supabase/types").Json;
8684
+ floriday_trade_item_id: string | null;
8554
8685
  id: string;
8555
8686
  image_url: string | null;
8556
8687
  incoming_quantity: number;
8688
+ is_layer: boolean;
8557
8689
  layers_per_cart: number;
8558
8690
  location: string;
8559
8691
  min_quantity: number;
@@ -8569,14 +8701,17 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8569
8701
  weight: string | null;
8570
8702
  };
8571
8703
  Insert: {
8704
+ article_number?: string | null;
8572
8705
  barcode?: string | null;
8573
8706
  batch: string;
8574
8707
  crates_per_layer?: number;
8575
8708
  created_at?: string;
8576
8709
  custom_fields?: import("../integrations/supabase/types").Json;
8710
+ floriday_trade_item_id?: string | null;
8577
8711
  id?: string;
8578
8712
  image_url?: string | null;
8579
8713
  incoming_quantity?: number;
8714
+ is_layer?: boolean;
8580
8715
  layers_per_cart?: number;
8581
8716
  location: string;
8582
8717
  min_quantity?: number;
@@ -8592,14 +8727,17 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8592
8727
  weight?: string | null;
8593
8728
  };
8594
8729
  Update: {
8730
+ article_number?: string | null;
8595
8731
  barcode?: string | null;
8596
8732
  batch?: string;
8597
8733
  crates_per_layer?: number;
8598
8734
  created_at?: string;
8599
8735
  custom_fields?: import("../integrations/supabase/types").Json;
8736
+ floriday_trade_item_id?: string | null;
8600
8737
  id?: string;
8601
8738
  image_url?: string | null;
8602
8739
  incoming_quantity?: number;
8740
+ is_layer?: boolean;
8603
8741
  layers_per_cart?: number;
8604
8742
  location?: string;
8605
8743
  min_quantity?: number;
@@ -8619,6 +8757,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8619
8757
  profiles: {
8620
8758
  Row: {
8621
8759
  address: string | null;
8760
+ avatar_url: string | null;
8622
8761
  created_at: string;
8623
8762
  display_name: string | null;
8624
8763
  email: string | null;
@@ -8630,6 +8769,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8630
8769
  };
8631
8770
  Insert: {
8632
8771
  address?: string | null;
8772
+ avatar_url?: string | null;
8633
8773
  created_at?: string;
8634
8774
  display_name?: string | null;
8635
8775
  email?: string | null;
@@ -8641,6 +8781,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8641
8781
  };
8642
8782
  Update: {
8643
8783
  address?: string | null;
8784
+ avatar_url?: string | null;
8644
8785
  created_at?: string;
8645
8786
  display_name?: string | null;
8646
8787
  email?: string | null;
@@ -9507,6 +9648,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9507
9648
  order_source: string | null;
9508
9649
  physical_after: number | null;
9509
9650
  physical_before: number | null;
9651
+ production_batch_id: string | null;
9510
9652
  qty_delta: number;
9511
9653
  reason: string | null;
9512
9654
  reserved_after: number | null;
@@ -9524,6 +9666,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9524
9666
  order_source?: string | null;
9525
9667
  physical_after?: number | null;
9526
9668
  physical_before?: number | null;
9669
+ production_batch_id?: string | null;
9527
9670
  qty_delta: number;
9528
9671
  reason?: string | null;
9529
9672
  reserved_after?: number | null;
@@ -9541,6 +9684,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9541
9684
  order_source?: string | null;
9542
9685
  physical_after?: number | null;
9543
9686
  physical_before?: number | null;
9687
+ production_batch_id?: string | null;
9544
9688
  qty_delta?: number;
9545
9689
  reason?: string | null;
9546
9690
  reserved_after?: number | null;
@@ -11969,6 +12113,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
11969
12113
  processed_items: number;
11970
12114
  }[];
11971
12115
  };
12116
+ calculate_layer_stock: {
12117
+ Args: {
12118
+ p_product_id: string;
12119
+ };
12120
+ Returns: number;
12121
+ };
11972
12122
  call_exact_route: {
11973
12123
  Args: {
11974
12124
  path: string;
@@ -12028,6 +12178,28 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
12028
12178
  Args: never;
12029
12179
  Returns: undefined;
12030
12180
  };
12181
+ consume_bom_for_production: {
12182
+ Args: {
12183
+ p_connection_id: string;
12184
+ p_parent_id: string;
12185
+ p_parent_key: string;
12186
+ p_parent_kind: string;
12187
+ p_quantity: number;
12188
+ p_user_id: string;
12189
+ };
12190
+ Returns: import("../integrations/supabase/types").Json;
12191
+ } | {
12192
+ Args: {
12193
+ p_batch_id?: string;
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
+ };
12031
12203
  consume_floriday_rate_limit: {
12032
12204
  Args: {
12033
12205
  p_bucket: string;
@@ -12085,6 +12257,13 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
12085
12257
  table_name: string;
12086
12258
  }[];
12087
12259
  };
12260
+ delete_samenstelling: {
12261
+ Args: {
12262
+ p_parent_id: string;
12263
+ p_parent_kind: string;
12264
+ };
12265
+ Returns: import("../integrations/supabase/types").Json;
12266
+ };
12088
12267
  dispatch_carrier_signups_sql: {
12089
12268
  Args: {
12090
12269
  _catchup?: string;
@@ -12340,6 +12519,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
12340
12519
  minutes_since_success: number;
12341
12520
  }[];
12342
12521
  };
12522
+ get_inventory_stock_for_key: {
12523
+ Args: {
12524
+ p_key: string;
12525
+ };
12526
+ Returns: number;
12527
+ };
12343
12528
  get_offer_by_link_code: {
12344
12529
  Args: {
12345
12530
  p_code: string;
@@ -12370,6 +12555,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
12370
12555
  };
12371
12556
  Returns: string;
12372
12557
  };
12558
+ get_product_group_available_stock: {
12559
+ Args: {
12560
+ p_group_id: string;
12561
+ };
12562
+ Returns: number;
12563
+ };
12373
12564
  get_room_busy_windows: {
12374
12565
  Args: {
12375
12566
  p_from: string;
@@ -12443,6 +12634,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
12443
12634
  list_monteurs: {
12444
12635
  Args: never;
12445
12636
  Returns: {
12637
+ avatar_url: string;
12446
12638
  display_name: string;
12447
12639
  email: string;
12448
12640
  id: string;
@@ -12580,6 +12772,14 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
12580
12772
  };
12581
12773
  Returns: undefined;
12582
12774
  };
12775
+ produce_designed_product: {
12776
+ Args: {
12777
+ p_parent_id: string;
12778
+ p_parent_kind: string;
12779
+ p_quantity: number;
12780
+ };
12781
+ Returns: import("../integrations/supabase/types").Json;
12782
+ };
12583
12783
  promote_trade_item_key: {
12584
12784
  Args: {
12585
12785
  p_new: string;
@@ -12654,6 +12854,16 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
12654
12854
  };
12655
12855
  Returns: number;
12656
12856
  };
12857
+ reverse_production: {
12858
+ Args: {
12859
+ p_connection_id?: string;
12860
+ p_parent_key: string;
12861
+ p_quantity: number;
12862
+ p_reason?: string;
12863
+ p_user_id?: string;
12864
+ };
12865
+ Returns: import("../integrations/supabase/types").Json;
12866
+ };
12657
12867
  schedule_floriday_additional_services_sync: {
12658
12868
  Args: {
12659
12869
  p_apikey: string;
@@ -12938,18 +13148,34 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
12938
13148
  };
12939
13149
  Returns: string[];
12940
13150
  };
13151
+ sync_all_layer_stocks: {
13152
+ Args: never;
13153
+ Returns: undefined;
13154
+ };
12941
13155
  sync_cached_packing_from_product: {
12942
13156
  Args: {
12943
13157
  p_product_id: string;
12944
13158
  };
12945
13159
  Returns: undefined;
12946
13160
  };
13161
+ sync_layer_stock: {
13162
+ Args: {
13163
+ p_product_id: string;
13164
+ };
13165
+ Returns: undefined;
13166
+ };
12947
13167
  sync_order_cart_item_packing_from_product: {
12948
13168
  Args: {
12949
13169
  p_product_id: string;
12950
13170
  };
12951
13171
  Returns: undefined;
12952
13172
  };
13173
+ sync_product_group_belading: {
13174
+ Args: {
13175
+ _group_id: string;
13176
+ };
13177
+ Returns: undefined;
13178
+ };
12953
13179
  sync_product_packing_from_floriday_cache: {
12954
13180
  Args: {
12955
13181
  p_floriday_id: string;
@@ -12986,7 +13212,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
12986
13212
  exact_push_status: "pending" | "sent" | "error";
12987
13213
  itk_customer_segment: "Business" | "Private";
12988
13214
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
12989
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
13215
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
12990
13216
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
12991
13217
  };
12992
13218
  CompositeTypes: { [_ in never]: never; };