@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
@@ -8356,6 +8356,66 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8356
8356
  referencedColumns: ["id"];
8357
8357
  }];
8358
8358
  };
8359
+ product_bom_items: {
8360
+ Row: {
8361
+ component_product_id: string | null;
8362
+ component_trade_item_floriday_id: string | null;
8363
+ created_at: string;
8364
+ id: string;
8365
+ notes: string | null;
8366
+ packing_configuration_id: string | null;
8367
+ parent_product_id: string | null;
8368
+ parent_trade_item_floriday_id: string | null;
8369
+ quantity: number;
8370
+ sort_order: number;
8371
+ tenant_id: string;
8372
+ unit: string;
8373
+ updated_at: string;
8374
+ };
8375
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
8406
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8407
+ columns: ["component_product_id"];
8408
+ isOneToOne: false;
8409
+ referencedRelation: "products";
8410
+ referencedColumns: ["id"];
8411
+ }, {
8412
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8413
+ columns: ["parent_product_id"];
8414
+ isOneToOne: false;
8415
+ referencedRelation: "products";
8416
+ referencedColumns: ["id"];
8417
+ }];
8418
+ };
8359
8419
  product_categories: {
8360
8420
  Row: {
8361
8421
  color: string;
@@ -8461,6 +8521,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8461
8521
  id: string;
8462
8522
  product_group_id: string;
8463
8523
  quantity: number;
8524
+ sort_order: number;
8464
8525
  trade_item_id: string;
8465
8526
  };
8466
8527
  Insert: {
@@ -8468,6 +8529,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8468
8529
  id?: string;
8469
8530
  product_group_id: string;
8470
8531
  quantity?: number;
8532
+ sort_order?: number;
8471
8533
  trade_item_id: string;
8472
8534
  };
8473
8535
  Update: {
@@ -8475,6 +8537,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8475
8537
  id?: string;
8476
8538
  product_group_id?: string;
8477
8539
  quantity?: number;
8540
+ sort_order?: number;
8478
8541
  trade_item_id?: string;
8479
8542
  };
8480
8543
  Relationships: [{
@@ -8527,16 +8590,85 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8527
8590
  referencedColumns: ["id"];
8528
8591
  }];
8529
8592
  };
8593
+ product_load_settings: {
8594
+ Row: {
8595
+ created_at: string;
8596
+ id: string;
8597
+ is_package: boolean;
8598
+ label: string | null;
8599
+ layers_per_load_carrier: number | null;
8600
+ load_carrier: string | null;
8601
+ package_id: string | null;
8602
+ package_label: string | null;
8603
+ packages_per_layer: number | null;
8604
+ packing_configuration_id: string;
8605
+ product_id: string | null;
8606
+ tenant_id: string;
8607
+ trade_item_floriday_id: string | null;
8608
+ units_per_package: number | null;
8609
+ updated_at: string;
8610
+ };
8611
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
8646
+ foreignKeyName: "product_load_settings_package_id_fkey";
8647
+ columns: ["package_id"];
8648
+ isOneToOne: false;
8649
+ referencedRelation: "packages";
8650
+ referencedColumns: ["id"];
8651
+ }, {
8652
+ foreignKeyName: "product_load_settings_product_id_fkey";
8653
+ columns: ["product_id"];
8654
+ isOneToOne: false;
8655
+ referencedRelation: "products";
8656
+ referencedColumns: ["id"];
8657
+ }];
8658
+ };
8530
8659
  products: {
8531
8660
  Row: {
8661
+ article_number: string | null;
8532
8662
  barcode: string | null;
8533
8663
  batch: string;
8534
8664
  crates_per_layer: number;
8535
8665
  created_at: string;
8536
8666
  custom_fields: import("./types").Json;
8667
+ floriday_trade_item_id: string | null;
8537
8668
  id: string;
8538
8669
  image_url: string | null;
8539
8670
  incoming_quantity: number;
8671
+ is_layer: boolean;
8540
8672
  layers_per_cart: number;
8541
8673
  location: string;
8542
8674
  min_quantity: number;
@@ -8552,14 +8684,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8552
8684
  weight: string | null;
8553
8685
  };
8554
8686
  Insert: {
8687
+ article_number?: string | null;
8555
8688
  barcode?: string | null;
8556
8689
  batch: string;
8557
8690
  crates_per_layer?: number;
8558
8691
  created_at?: string;
8559
8692
  custom_fields?: import("./types").Json;
8693
+ floriday_trade_item_id?: string | null;
8560
8694
  id?: string;
8561
8695
  image_url?: string | null;
8562
8696
  incoming_quantity?: number;
8697
+ is_layer?: boolean;
8563
8698
  layers_per_cart?: number;
8564
8699
  location: string;
8565
8700
  min_quantity?: number;
@@ -8575,14 +8710,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8575
8710
  weight?: string | null;
8576
8711
  };
8577
8712
  Update: {
8713
+ article_number?: string | null;
8578
8714
  barcode?: string | null;
8579
8715
  batch?: string;
8580
8716
  crates_per_layer?: number;
8581
8717
  created_at?: string;
8582
8718
  custom_fields?: import("./types").Json;
8719
+ floriday_trade_item_id?: string | null;
8583
8720
  id?: string;
8584
8721
  image_url?: string | null;
8585
8722
  incoming_quantity?: number;
8723
+ is_layer?: boolean;
8586
8724
  layers_per_cart?: number;
8587
8725
  location?: string;
8588
8726
  min_quantity?: number;
@@ -8602,6 +8740,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8602
8740
  profiles: {
8603
8741
  Row: {
8604
8742
  address: string | null;
8743
+ avatar_url: string | null;
8605
8744
  created_at: string;
8606
8745
  display_name: string | null;
8607
8746
  email: string | null;
@@ -8613,6 +8752,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8613
8752
  };
8614
8753
  Insert: {
8615
8754
  address?: string | null;
8755
+ avatar_url?: string | null;
8616
8756
  created_at?: string;
8617
8757
  display_name?: string | null;
8618
8758
  email?: string | null;
@@ -8624,6 +8764,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8624
8764
  };
8625
8765
  Update: {
8626
8766
  address?: string | null;
8767
+ avatar_url?: string | null;
8627
8768
  created_at?: string;
8628
8769
  display_name?: string | null;
8629
8770
  email?: string | null;
@@ -9490,6 +9631,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9490
9631
  order_source: string | null;
9491
9632
  physical_after: number | null;
9492
9633
  physical_before: number | null;
9634
+ production_batch_id: string | null;
9493
9635
  qty_delta: number;
9494
9636
  reason: string | null;
9495
9637
  reserved_after: number | null;
@@ -9507,6 +9649,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9507
9649
  order_source?: string | null;
9508
9650
  physical_after?: number | null;
9509
9651
  physical_before?: number | null;
9652
+ production_batch_id?: string | null;
9510
9653
  qty_delta: number;
9511
9654
  reason?: string | null;
9512
9655
  reserved_after?: number | null;
@@ -9524,6 +9667,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9524
9667
  order_source?: string | null;
9525
9668
  physical_after?: number | null;
9526
9669
  physical_before?: number | null;
9670
+ production_batch_id?: string | null;
9527
9671
  qty_delta?: number;
9528
9672
  reason?: string | null;
9529
9673
  reserved_after?: number | null;
@@ -11952,6 +12096,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11952
12096
  processed_items: number;
11953
12097
  }[];
11954
12098
  };
12099
+ calculate_layer_stock: {
12100
+ Args: {
12101
+ p_product_id: string;
12102
+ };
12103
+ Returns: number;
12104
+ };
11955
12105
  call_exact_route: {
11956
12106
  Args: {
11957
12107
  path: string;
@@ -12011,6 +12161,28 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12011
12161
  Args: never;
12012
12162
  Returns: undefined;
12013
12163
  };
12164
+ consume_bom_for_production: {
12165
+ Args: {
12166
+ p_connection_id: string;
12167
+ p_parent_id: string;
12168
+ p_parent_key: string;
12169
+ p_parent_kind: string;
12170
+ p_quantity: number;
12171
+ p_user_id: string;
12172
+ };
12173
+ Returns: import("./types").Json;
12174
+ } | {
12175
+ Args: {
12176
+ p_batch_id?: string;
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("./types").Json;
12185
+ };
12014
12186
  consume_floriday_rate_limit: {
12015
12187
  Args: {
12016
12188
  p_bucket: string;
@@ -12068,6 +12240,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12068
12240
  table_name: string;
12069
12241
  }[];
12070
12242
  };
12243
+ delete_samenstelling: {
12244
+ Args: {
12245
+ p_parent_id: string;
12246
+ p_parent_kind: string;
12247
+ };
12248
+ Returns: import("./types").Json;
12249
+ };
12071
12250
  dispatch_carrier_signups_sql: {
12072
12251
  Args: {
12073
12252
  _catchup?: string;
@@ -12323,6 +12502,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12323
12502
  minutes_since_success: number;
12324
12503
  }[];
12325
12504
  };
12505
+ get_inventory_stock_for_key: {
12506
+ Args: {
12507
+ p_key: string;
12508
+ };
12509
+ Returns: number;
12510
+ };
12326
12511
  get_offer_by_link_code: {
12327
12512
  Args: {
12328
12513
  p_code: string;
@@ -12353,6 +12538,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12353
12538
  };
12354
12539
  Returns: string;
12355
12540
  };
12541
+ get_product_group_available_stock: {
12542
+ Args: {
12543
+ p_group_id: string;
12544
+ };
12545
+ Returns: number;
12546
+ };
12356
12547
  get_room_busy_windows: {
12357
12548
  Args: {
12358
12549
  p_from: string;
@@ -12426,9 +12617,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12426
12617
  list_monteurs: {
12427
12618
  Args: never;
12428
12619
  Returns: {
12620
+ avatar_url: string;
12429
12621
  display_name: string;
12430
12622
  email: string;
12431
- user_id: string;
12623
+ id: string;
12432
12624
  }[];
12433
12625
  };
12434
12626
  local_effective_price: {
@@ -12563,6 +12755,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12563
12755
  };
12564
12756
  Returns: undefined;
12565
12757
  };
12758
+ produce_designed_product: {
12759
+ Args: {
12760
+ p_parent_id: string;
12761
+ p_parent_kind: string;
12762
+ p_quantity: number;
12763
+ };
12764
+ Returns: import("./types").Json;
12765
+ };
12566
12766
  promote_trade_item_key: {
12567
12767
  Args: {
12568
12768
  p_new: string;
@@ -12637,6 +12837,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12637
12837
  };
12638
12838
  Returns: number;
12639
12839
  };
12840
+ reverse_production: {
12841
+ Args: {
12842
+ p_connection_id?: string;
12843
+ p_parent_key: string;
12844
+ p_quantity: number;
12845
+ p_reason?: string;
12846
+ p_user_id?: string;
12847
+ };
12848
+ Returns: import("./types").Json;
12849
+ };
12640
12850
  schedule_floriday_additional_services_sync: {
12641
12851
  Args: {
12642
12852
  p_apikey: string;
@@ -12921,18 +13131,34 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12921
13131
  };
12922
13132
  Returns: string[];
12923
13133
  };
13134
+ sync_all_layer_stocks: {
13135
+ Args: never;
13136
+ Returns: undefined;
13137
+ };
12924
13138
  sync_cached_packing_from_product: {
12925
13139
  Args: {
12926
13140
  p_product_id: string;
12927
13141
  };
12928
13142
  Returns: undefined;
12929
13143
  };
13144
+ sync_layer_stock: {
13145
+ Args: {
13146
+ p_product_id: string;
13147
+ };
13148
+ Returns: undefined;
13149
+ };
12930
13150
  sync_order_cart_item_packing_from_product: {
12931
13151
  Args: {
12932
13152
  p_product_id: string;
12933
13153
  };
12934
13154
  Returns: undefined;
12935
13155
  };
13156
+ sync_product_group_belading: {
13157
+ Args: {
13158
+ _group_id: string;
13159
+ };
13160
+ Returns: undefined;
13161
+ };
12936
13162
  sync_product_packing_from_floriday_cache: {
12937
13163
  Args: {
12938
13164
  p_floriday_id: string;
@@ -12969,7 +13195,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12969
13195
  exact_push_status: "pending" | "sent" | "error";
12970
13196
  itk_customer_segment: "Business" | "Private";
12971
13197
  itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
12972
- planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
13198
+ planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
12973
13199
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
12974
13200
  };
12975
13201
  CompositeTypes: { [_ in never]: never; };