@flowselections/floriday-klanten-module 1.0.19 → 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 +228 -2
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.d.ts +228 -2
  16. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +228 -2
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +235 -3
  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 +684 -6
  23. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/accounting.functions.d.ts +684 -6
  25. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/customer-analytics.functions.d.ts +228 -2
  27. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/customers.functions.d.ts +2052 -18
  29. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/delivery-locations.functions.d.ts +912 -8
  31. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/external-customers.functions.d.ts +912 -8
  33. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-assortment.functions.d.ts +228 -2
  35. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-discounts.functions.d.ts +456 -4
  37. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-trade-items.functions.d.ts +228 -2
  39. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/local-discounts.functions.d.ts +1596 -14
  41. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/overdue-invoices.functions.d.ts +228 -2
  43. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/price-groups-local.functions.d.ts +1596 -14
  45. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/price-groups.functions.d.ts +228 -2
  47. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  48. package/package.json +7 -7
@@ -8371,6 +8371,66 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
8371
8371
  referencedColumns: ["id"];
8372
8372
  }];
8373
8373
  };
8374
+ product_bom_items: {
8375
+ Row: {
8376
+ component_product_id: string | null;
8377
+ component_trade_item_floriday_id: string | null;
8378
+ created_at: string;
8379
+ id: string;
8380
+ notes: string | null;
8381
+ packing_configuration_id: string | null;
8382
+ parent_product_id: string | null;
8383
+ parent_trade_item_floriday_id: string | null;
8384
+ quantity: number;
8385
+ sort_order: number;
8386
+ tenant_id: string;
8387
+ unit: string;
8388
+ updated_at: string;
8389
+ };
8390
+ Insert: {
8391
+ component_product_id?: string | null;
8392
+ component_trade_item_floriday_id?: string | null;
8393
+ created_at?: string;
8394
+ id?: string;
8395
+ notes?: string | null;
8396
+ packing_configuration_id?: string | null;
8397
+ parent_product_id?: string | null;
8398
+ parent_trade_item_floriday_id?: string | null;
8399
+ quantity?: number;
8400
+ sort_order?: number;
8401
+ tenant_id: string;
8402
+ unit?: string;
8403
+ updated_at?: string;
8404
+ };
8405
+ Update: {
8406
+ component_product_id?: string | null;
8407
+ component_trade_item_floriday_id?: string | null;
8408
+ created_at?: string;
8409
+ id?: string;
8410
+ notes?: string | null;
8411
+ packing_configuration_id?: string | null;
8412
+ parent_product_id?: string | null;
8413
+ parent_trade_item_floriday_id?: string | null;
8414
+ quantity?: number;
8415
+ sort_order?: number;
8416
+ tenant_id?: string;
8417
+ unit?: string;
8418
+ updated_at?: string;
8419
+ };
8420
+ Relationships: [{
8421
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8422
+ columns: ["component_product_id"];
8423
+ isOneToOne: false;
8424
+ referencedRelation: "products";
8425
+ referencedColumns: ["id"];
8426
+ }, {
8427
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8428
+ columns: ["parent_product_id"];
8429
+ isOneToOne: false;
8430
+ referencedRelation: "products";
8431
+ referencedColumns: ["id"];
8432
+ }];
8433
+ };
8374
8434
  product_categories: {
8375
8435
  Row: {
8376
8436
  color: string;
@@ -8476,6 +8536,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
8476
8536
  id: string;
8477
8537
  product_group_id: string;
8478
8538
  quantity: number;
8539
+ sort_order: number;
8479
8540
  trade_item_id: string;
8480
8541
  };
8481
8542
  Insert: {
@@ -8483,6 +8544,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
8483
8544
  id?: string;
8484
8545
  product_group_id: string;
8485
8546
  quantity?: number;
8547
+ sort_order?: number;
8486
8548
  trade_item_id: string;
8487
8549
  };
8488
8550
  Update: {
@@ -8490,6 +8552,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
8490
8552
  id?: string;
8491
8553
  product_group_id?: string;
8492
8554
  quantity?: number;
8555
+ sort_order?: number;
8493
8556
  trade_item_id?: string;
8494
8557
  };
8495
8558
  Relationships: [{
@@ -8542,16 +8605,85 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
8542
8605
  referencedColumns: ["id"];
8543
8606
  }];
8544
8607
  };
8608
+ product_load_settings: {
8609
+ Row: {
8610
+ created_at: string;
8611
+ id: string;
8612
+ is_package: boolean;
8613
+ label: string | null;
8614
+ layers_per_load_carrier: number | null;
8615
+ load_carrier: string | null;
8616
+ package_id: string | null;
8617
+ package_label: string | null;
8618
+ packages_per_layer: number | null;
8619
+ packing_configuration_id: string;
8620
+ product_id: string | null;
8621
+ tenant_id: string;
8622
+ trade_item_floriday_id: string | null;
8623
+ units_per_package: number | null;
8624
+ updated_at: string;
8625
+ };
8626
+ Insert: {
8627
+ created_at?: string;
8628
+ id?: string;
8629
+ is_package?: boolean;
8630
+ label?: string | null;
8631
+ layers_per_load_carrier?: number | null;
8632
+ load_carrier?: string | null;
8633
+ package_id?: string | null;
8634
+ package_label?: string | null;
8635
+ packages_per_layer?: number | null;
8636
+ packing_configuration_id?: string;
8637
+ product_id?: string | null;
8638
+ tenant_id: string;
8639
+ trade_item_floriday_id?: string | null;
8640
+ units_per_package?: number | null;
8641
+ updated_at?: string;
8642
+ };
8643
+ Update: {
8644
+ created_at?: string;
8645
+ id?: string;
8646
+ is_package?: boolean;
8647
+ label?: string | null;
8648
+ layers_per_load_carrier?: number | null;
8649
+ load_carrier?: string | null;
8650
+ package_id?: string | null;
8651
+ package_label?: string | null;
8652
+ packages_per_layer?: number | null;
8653
+ packing_configuration_id?: string;
8654
+ product_id?: string | null;
8655
+ tenant_id?: string;
8656
+ trade_item_floriday_id?: string | null;
8657
+ units_per_package?: number | null;
8658
+ updated_at?: string;
8659
+ };
8660
+ Relationships: [{
8661
+ foreignKeyName: "product_load_settings_package_id_fkey";
8662
+ columns: ["package_id"];
8663
+ isOneToOne: false;
8664
+ referencedRelation: "packages";
8665
+ referencedColumns: ["id"];
8666
+ }, {
8667
+ foreignKeyName: "product_load_settings_product_id_fkey";
8668
+ columns: ["product_id"];
8669
+ isOneToOne: false;
8670
+ referencedRelation: "products";
8671
+ referencedColumns: ["id"];
8672
+ }];
8673
+ };
8545
8674
  products: {
8546
8675
  Row: {
8676
+ article_number: string | null;
8547
8677
  barcode: string | null;
8548
8678
  batch: string;
8549
8679
  crates_per_layer: number;
8550
8680
  created_at: string;
8551
8681
  custom_fields: import("../integrations/supabase/types").Json;
8682
+ floriday_trade_item_id: string | null;
8552
8683
  id: string;
8553
8684
  image_url: string | null;
8554
8685
  incoming_quantity: number;
8686
+ is_layer: boolean;
8555
8687
  layers_per_cart: number;
8556
8688
  location: string;
8557
8689
  min_quantity: number;
@@ -8567,14 +8699,17 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
8567
8699
  weight: string | null;
8568
8700
  };
8569
8701
  Insert: {
8702
+ article_number?: string | null;
8570
8703
  barcode?: string | null;
8571
8704
  batch: string;
8572
8705
  crates_per_layer?: number;
8573
8706
  created_at?: string;
8574
8707
  custom_fields?: import("../integrations/supabase/types").Json;
8708
+ floriday_trade_item_id?: string | null;
8575
8709
  id?: string;
8576
8710
  image_url?: string | null;
8577
8711
  incoming_quantity?: number;
8712
+ is_layer?: boolean;
8578
8713
  layers_per_cart?: number;
8579
8714
  location: string;
8580
8715
  min_quantity?: number;
@@ -8590,14 +8725,17 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
8590
8725
  weight?: string | null;
8591
8726
  };
8592
8727
  Update: {
8728
+ article_number?: string | null;
8593
8729
  barcode?: string | null;
8594
8730
  batch?: string;
8595
8731
  crates_per_layer?: number;
8596
8732
  created_at?: string;
8597
8733
  custom_fields?: import("../integrations/supabase/types").Json;
8734
+ floriday_trade_item_id?: string | null;
8598
8735
  id?: string;
8599
8736
  image_url?: string | null;
8600
8737
  incoming_quantity?: number;
8738
+ is_layer?: boolean;
8601
8739
  layers_per_cart?: number;
8602
8740
  location?: string;
8603
8741
  min_quantity?: number;
@@ -8617,6 +8755,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
8617
8755
  profiles: {
8618
8756
  Row: {
8619
8757
  address: string | null;
8758
+ avatar_url: string | null;
8620
8759
  created_at: string;
8621
8760
  display_name: string | null;
8622
8761
  email: string | null;
@@ -8628,6 +8767,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
8628
8767
  };
8629
8768
  Insert: {
8630
8769
  address?: string | null;
8770
+ avatar_url?: string | null;
8631
8771
  created_at?: string;
8632
8772
  display_name?: string | null;
8633
8773
  email?: string | null;
@@ -8639,6 +8779,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
8639
8779
  };
8640
8780
  Update: {
8641
8781
  address?: string | null;
8782
+ avatar_url?: string | null;
8642
8783
  created_at?: string;
8643
8784
  display_name?: string | null;
8644
8785
  email?: string | null;
@@ -9505,6 +9646,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
9505
9646
  order_source: string | null;
9506
9647
  physical_after: number | null;
9507
9648
  physical_before: number | null;
9649
+ production_batch_id: string | null;
9508
9650
  qty_delta: number;
9509
9651
  reason: string | null;
9510
9652
  reserved_after: number | null;
@@ -9522,6 +9664,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
9522
9664
  order_source?: string | null;
9523
9665
  physical_after?: number | null;
9524
9666
  physical_before?: number | null;
9667
+ production_batch_id?: string | null;
9525
9668
  qty_delta: number;
9526
9669
  reason?: string | null;
9527
9670
  reserved_after?: number | null;
@@ -9539,6 +9682,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
9539
9682
  order_source?: string | null;
9540
9683
  physical_after?: number | null;
9541
9684
  physical_before?: number | null;
9685
+ production_batch_id?: string | null;
9542
9686
  qty_delta?: number;
9543
9687
  reason?: string | null;
9544
9688
  reserved_after?: number | null;
@@ -11967,6 +12111,12 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
11967
12111
  processed_items: number;
11968
12112
  }[];
11969
12113
  };
12114
+ calculate_layer_stock: {
12115
+ Args: {
12116
+ p_product_id: string;
12117
+ };
12118
+ Returns: number;
12119
+ };
11970
12120
  call_exact_route: {
11971
12121
  Args: {
11972
12122
  path: string;
@@ -12026,6 +12176,28 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
12026
12176
  Args: never;
12027
12177
  Returns: undefined;
12028
12178
  };
12179
+ consume_bom_for_production: {
12180
+ Args: {
12181
+ p_connection_id: string;
12182
+ p_parent_id: string;
12183
+ p_parent_key: string;
12184
+ p_parent_kind: string;
12185
+ p_quantity: number;
12186
+ p_user_id: string;
12187
+ };
12188
+ Returns: import("../integrations/supabase/types").Json;
12189
+ } | {
12190
+ Args: {
12191
+ p_batch_id?: string;
12192
+ p_connection_id: string;
12193
+ p_parent_id: string;
12194
+ p_parent_key: string;
12195
+ p_parent_kind: string;
12196
+ p_quantity: number;
12197
+ p_user_id: string;
12198
+ };
12199
+ Returns: import("../integrations/supabase/types").Json;
12200
+ };
12029
12201
  consume_floriday_rate_limit: {
12030
12202
  Args: {
12031
12203
  p_bucket: string;
@@ -12083,6 +12255,13 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
12083
12255
  table_name: string;
12084
12256
  }[];
12085
12257
  };
12258
+ delete_samenstelling: {
12259
+ Args: {
12260
+ p_parent_id: string;
12261
+ p_parent_kind: string;
12262
+ };
12263
+ Returns: import("../integrations/supabase/types").Json;
12264
+ };
12086
12265
  dispatch_carrier_signups_sql: {
12087
12266
  Args: {
12088
12267
  _catchup?: string;
@@ -12338,6 +12517,12 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
12338
12517
  minutes_since_success: number;
12339
12518
  }[];
12340
12519
  };
12520
+ get_inventory_stock_for_key: {
12521
+ Args: {
12522
+ p_key: string;
12523
+ };
12524
+ Returns: number;
12525
+ };
12341
12526
  get_offer_by_link_code: {
12342
12527
  Args: {
12343
12528
  p_code: string;
@@ -12368,6 +12553,12 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
12368
12553
  };
12369
12554
  Returns: string;
12370
12555
  };
12556
+ get_product_group_available_stock: {
12557
+ Args: {
12558
+ p_group_id: string;
12559
+ };
12560
+ Returns: number;
12561
+ };
12371
12562
  get_room_busy_windows: {
12372
12563
  Args: {
12373
12564
  p_from: string;
@@ -12441,9 +12632,10 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
12441
12632
  list_monteurs: {
12442
12633
  Args: never;
12443
12634
  Returns: {
12635
+ avatar_url: string;
12444
12636
  display_name: string;
12445
12637
  email: string;
12446
- user_id: string;
12638
+ id: string;
12447
12639
  }[];
12448
12640
  };
12449
12641
  local_effective_price: {
@@ -12578,6 +12770,14 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
12578
12770
  };
12579
12771
  Returns: undefined;
12580
12772
  };
12773
+ produce_designed_product: {
12774
+ Args: {
12775
+ p_parent_id: string;
12776
+ p_parent_kind: string;
12777
+ p_quantity: number;
12778
+ };
12779
+ Returns: import("../integrations/supabase/types").Json;
12780
+ };
12581
12781
  promote_trade_item_key: {
12582
12782
  Args: {
12583
12783
  p_new: string;
@@ -12652,6 +12852,16 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
12652
12852
  };
12653
12853
  Returns: number;
12654
12854
  };
12855
+ reverse_production: {
12856
+ Args: {
12857
+ p_connection_id?: string;
12858
+ p_parent_key: string;
12859
+ p_quantity: number;
12860
+ p_reason?: string;
12861
+ p_user_id?: string;
12862
+ };
12863
+ Returns: import("../integrations/supabase/types").Json;
12864
+ };
12655
12865
  schedule_floriday_additional_services_sync: {
12656
12866
  Args: {
12657
12867
  p_apikey: string;
@@ -12936,18 +13146,34 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
12936
13146
  };
12937
13147
  Returns: string[];
12938
13148
  };
13149
+ sync_all_layer_stocks: {
13150
+ Args: never;
13151
+ Returns: undefined;
13152
+ };
12939
13153
  sync_cached_packing_from_product: {
12940
13154
  Args: {
12941
13155
  p_product_id: string;
12942
13156
  };
12943
13157
  Returns: undefined;
12944
13158
  };
13159
+ sync_layer_stock: {
13160
+ Args: {
13161
+ p_product_id: string;
13162
+ };
13163
+ Returns: undefined;
13164
+ };
12945
13165
  sync_order_cart_item_packing_from_product: {
12946
13166
  Args: {
12947
13167
  p_product_id: string;
12948
13168
  };
12949
13169
  Returns: undefined;
12950
13170
  };
13171
+ sync_product_group_belading: {
13172
+ Args: {
13173
+ _group_id: string;
13174
+ };
13175
+ Returns: undefined;
13176
+ };
12951
13177
  sync_product_packing_from_floriday_cache: {
12952
13178
  Args: {
12953
13179
  p_floriday_id: string;
@@ -12984,7 +13210,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
12984
13210
  exact_push_status: "pending" | "sent" | "error";
12985
13211
  itk_customer_segment: "Business" | "Private";
12986
13212
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
12987
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
13213
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
12988
13214
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
12989
13215
  };
12990
13216
  CompositeTypes: { [_ in never]: never; };