@flowselections/floriday-klanten-module 1.0.9 → 1.0.10

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 (34) hide show
  1. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts +4 -0
  2. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -0
  3. package/dist-lib/components/klanten/GroupedKlantDetail.js +152 -0
  4. package/dist-lib/components/klanten/KlantDetail.d.ts +4 -0
  5. package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -0
  6. package/dist-lib/components/klanten/KlantDetail.js +43 -0
  7. package/dist-lib/components/klanten/NetwerkPagina.d.ts +2 -0
  8. package/dist-lib/components/klanten/NetwerkPagina.d.ts.map +1 -0
  9. package/dist-lib/components/klanten/NetwerkPagina.js +23 -0
  10. package/dist-lib/components/klanten/NieuweKlant.d.ts +2 -0
  11. package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -0
  12. package/dist-lib/components/klanten/NieuweKlant.js +57 -0
  13. package/dist-lib/index.d.ts +4 -0
  14. package/dist-lib/index.d.ts.map +1 -1
  15. package/dist-lib/index.js +4 -0
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +63 -3
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.d.ts +63 -3
  19. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.server.d.ts +63 -3
  21. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +63 -3
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/lib/accounting.functions.d.ts +189 -9
  25. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/customer-analytics.functions.d.ts +63 -3
  27. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/customers.functions.d.ts +441 -21
  29. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/delivery-locations.functions.d.ts +252 -12
  31. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/external-customers.functions.d.ts +252 -12
  33. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  34. package/package.json +1 -1
@@ -3899,6 +3899,24 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
3899
3899
  };
3900
3900
  Relationships: [];
3901
3901
  };
3902
+ floriday_order_number_map: {
3903
+ Row: {
3904
+ created_at: string;
3905
+ floriday_id: string;
3906
+ order_number: string;
3907
+ };
3908
+ Insert: {
3909
+ created_at?: string;
3910
+ floriday_id: string;
3911
+ order_number: string;
3912
+ };
3913
+ Update: {
3914
+ created_at?: string;
3915
+ floriday_id?: string;
3916
+ order_number?: string;
3917
+ };
3918
+ Relationships: [];
3919
+ };
3902
3920
  floriday_packings_cache: {
3903
3921
  Row: {
3904
3922
  connection_id: string;
@@ -5744,6 +5762,24 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
5744
5762
  referencedColumns: ["id"];
5745
5763
  }];
5746
5764
  };
5765
+ order_number_counters: {
5766
+ Row: {
5767
+ last_value: number;
5768
+ updated_at: string;
5769
+ year: number;
5770
+ };
5771
+ Insert: {
5772
+ last_value?: number;
5773
+ updated_at?: string;
5774
+ year: number;
5775
+ };
5776
+ Update: {
5777
+ last_value?: number;
5778
+ updated_at?: string;
5779
+ year?: number;
5780
+ };
5781
+ Relationships: [];
5782
+ };
5747
5783
  orders: {
5748
5784
  Row: {
5749
5785
  created_at: string;
@@ -5756,6 +5792,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
5756
5792
  notes: string | null;
5757
5793
  order_date: string;
5758
5794
  order_number: string;
5795
+ order_source: string;
5759
5796
  status: string;
5760
5797
  total: string;
5761
5798
  updated_at: string;
@@ -5771,6 +5808,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
5771
5808
  notes?: string | null;
5772
5809
  order_date?: string;
5773
5810
  order_number: string;
5811
+ order_source?: string;
5774
5812
  status?: string;
5775
5813
  total?: string;
5776
5814
  updated_at?: string;
@@ -5786,6 +5824,7 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
5786
5824
  notes?: string | null;
5787
5825
  order_date?: string;
5788
5826
  order_number?: string;
5827
+ order_source?: string;
5789
5828
  status?: string;
5790
5829
  total?: string;
5791
5830
  updated_at?: string;
@@ -8620,6 +8659,15 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
8620
8659
  };
8621
8660
  Returns: number;
8622
8661
  };
8662
+ assign_floriday_order_numbers: {
8663
+ Args: {
8664
+ p_ids: string[];
8665
+ };
8666
+ Returns: {
8667
+ floriday_id: string;
8668
+ order_number: string;
8669
+ }[];
8670
+ };
8623
8671
  call_exact_route: {
8624
8672
  Args: {
8625
8673
  path: string;
@@ -8829,6 +8877,12 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
8829
8877
  };
8830
8878
  Returns: import("../integrations/supabase/types").Json;
8831
8879
  };
8880
+ get_or_assign_floriday_order_number: {
8881
+ Args: {
8882
+ p_floriday_id: string;
8883
+ };
8884
+ Returns: string;
8885
+ };
8832
8886
  get_room_busy_windows: {
8833
8887
  Args: {
8834
8888
  p_from: string;
@@ -8875,6 +8929,12 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
8875
8929
  Args: never;
8876
8930
  Returns: boolean;
8877
8931
  };
8932
+ next_order_number: {
8933
+ Args: {
8934
+ p_prefix: string;
8935
+ };
8936
+ Returns: string;
8937
+ };
8878
8938
  next_work_order_number: {
8879
8939
  Args: {
8880
8940
  p_parent_work_order_id?: string;
@@ -8909,9 +8969,9 @@ export declare const listCustomers: import("@tanstack/start-client-core").Requir
8909
8969
  refresh_floricode_derived_code_lists: {
8910
8970
  Args: never;
8911
8971
  Returns: {
8912
- out_environment: string;
8913
- out_list_name: string;
8914
- out_row_count: number;
8972
+ environment: string;
8973
+ list_name: string;
8974
+ row_count: number;
8915
8975
  }[];
8916
8976
  };
8917
8977
  reset_floriday_sync_cursor: {
@@ -13171,6 +13231,24 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
13171
13231
  };
13172
13232
  Relationships: [];
13173
13233
  };
13234
+ floriday_order_number_map: {
13235
+ Row: {
13236
+ created_at: string;
13237
+ floriday_id: string;
13238
+ order_number: string;
13239
+ };
13240
+ Insert: {
13241
+ created_at?: string;
13242
+ floriday_id: string;
13243
+ order_number: string;
13244
+ };
13245
+ Update: {
13246
+ created_at?: string;
13247
+ floriday_id?: string;
13248
+ order_number?: string;
13249
+ };
13250
+ Relationships: [];
13251
+ };
13174
13252
  floriday_packings_cache: {
13175
13253
  Row: {
13176
13254
  connection_id: string;
@@ -15016,6 +15094,24 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
15016
15094
  referencedColumns: ["id"];
15017
15095
  }];
15018
15096
  };
15097
+ order_number_counters: {
15098
+ Row: {
15099
+ last_value: number;
15100
+ updated_at: string;
15101
+ year: number;
15102
+ };
15103
+ Insert: {
15104
+ last_value?: number;
15105
+ updated_at?: string;
15106
+ year: number;
15107
+ };
15108
+ Update: {
15109
+ last_value?: number;
15110
+ updated_at?: string;
15111
+ year?: number;
15112
+ };
15113
+ Relationships: [];
15114
+ };
15019
15115
  orders: {
15020
15116
  Row: {
15021
15117
  created_at: string;
@@ -15028,6 +15124,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
15028
15124
  notes: string | null;
15029
15125
  order_date: string;
15030
15126
  order_number: string;
15127
+ order_source: string;
15031
15128
  status: string;
15032
15129
  total: string;
15033
15130
  updated_at: string;
@@ -15043,6 +15140,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
15043
15140
  notes?: string | null;
15044
15141
  order_date?: string;
15045
15142
  order_number: string;
15143
+ order_source?: string;
15046
15144
  status?: string;
15047
15145
  total?: string;
15048
15146
  updated_at?: string;
@@ -15058,6 +15156,7 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
15058
15156
  notes?: string | null;
15059
15157
  order_date?: string;
15060
15158
  order_number?: string;
15159
+ order_source?: string;
15061
15160
  status?: string;
15062
15161
  total?: string;
15063
15162
  updated_at?: string;
@@ -17892,6 +17991,15 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
17892
17991
  };
17893
17992
  Returns: number;
17894
17993
  };
17994
+ assign_floriday_order_numbers: {
17995
+ Args: {
17996
+ p_ids: string[];
17997
+ };
17998
+ Returns: {
17999
+ floriday_id: string;
18000
+ order_number: string;
18001
+ }[];
18002
+ };
17895
18003
  call_exact_route: {
17896
18004
  Args: {
17897
18005
  path: string;
@@ -18101,6 +18209,12 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
18101
18209
  };
18102
18210
  Returns: import("../integrations/supabase/types").Json;
18103
18211
  };
18212
+ get_or_assign_floriday_order_number: {
18213
+ Args: {
18214
+ p_floriday_id: string;
18215
+ };
18216
+ Returns: string;
18217
+ };
18104
18218
  get_room_busy_windows: {
18105
18219
  Args: {
18106
18220
  p_from: string;
@@ -18147,6 +18261,12 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
18147
18261
  Args: never;
18148
18262
  Returns: boolean;
18149
18263
  };
18264
+ next_order_number: {
18265
+ Args: {
18266
+ p_prefix: string;
18267
+ };
18268
+ Returns: string;
18269
+ };
18150
18270
  next_work_order_number: {
18151
18271
  Args: {
18152
18272
  p_parent_work_order_id?: string;
@@ -18181,9 +18301,9 @@ export declare const getCustomer: import("@tanstack/start-client-core").Required
18181
18301
  refresh_floricode_derived_code_lists: {
18182
18302
  Args: never;
18183
18303
  Returns: {
18184
- out_environment: string;
18185
- out_list_name: string;
18186
- out_row_count: number;
18304
+ environment: string;
18305
+ list_name: string;
18306
+ row_count: number;
18187
18307
  }[];
18188
18308
  };
18189
18309
  reset_floriday_sync_cursor: {
@@ -22515,6 +22635,24 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
22515
22635
  };
22516
22636
  Relationships: [];
22517
22637
  };
22638
+ floriday_order_number_map: {
22639
+ Row: {
22640
+ created_at: string;
22641
+ floriday_id: string;
22642
+ order_number: string;
22643
+ };
22644
+ Insert: {
22645
+ created_at?: string;
22646
+ floriday_id: string;
22647
+ order_number: string;
22648
+ };
22649
+ Update: {
22650
+ created_at?: string;
22651
+ floriday_id?: string;
22652
+ order_number?: string;
22653
+ };
22654
+ Relationships: [];
22655
+ };
22518
22656
  floriday_packings_cache: {
22519
22657
  Row: {
22520
22658
  connection_id: string;
@@ -24360,6 +24498,24 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
24360
24498
  referencedColumns: ["id"];
24361
24499
  }];
24362
24500
  };
24501
+ order_number_counters: {
24502
+ Row: {
24503
+ last_value: number;
24504
+ updated_at: string;
24505
+ year: number;
24506
+ };
24507
+ Insert: {
24508
+ last_value?: number;
24509
+ updated_at?: string;
24510
+ year: number;
24511
+ };
24512
+ Update: {
24513
+ last_value?: number;
24514
+ updated_at?: string;
24515
+ year?: number;
24516
+ };
24517
+ Relationships: [];
24518
+ };
24363
24519
  orders: {
24364
24520
  Row: {
24365
24521
  created_at: string;
@@ -24372,6 +24528,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
24372
24528
  notes: string | null;
24373
24529
  order_date: string;
24374
24530
  order_number: string;
24531
+ order_source: string;
24375
24532
  status: string;
24376
24533
  total: string;
24377
24534
  updated_at: string;
@@ -24387,6 +24544,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
24387
24544
  notes?: string | null;
24388
24545
  order_date?: string;
24389
24546
  order_number: string;
24547
+ order_source?: string;
24390
24548
  status?: string;
24391
24549
  total?: string;
24392
24550
  updated_at?: string;
@@ -24402,6 +24560,7 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
24402
24560
  notes?: string | null;
24403
24561
  order_date?: string;
24404
24562
  order_number?: string;
24563
+ order_source?: string;
24405
24564
  status?: string;
24406
24565
  total?: string;
24407
24566
  updated_at?: string;
@@ -27236,6 +27395,15 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
27236
27395
  };
27237
27396
  Returns: number;
27238
27397
  };
27398
+ assign_floriday_order_numbers: {
27399
+ Args: {
27400
+ p_ids: string[];
27401
+ };
27402
+ Returns: {
27403
+ floriday_id: string;
27404
+ order_number: string;
27405
+ }[];
27406
+ };
27239
27407
  call_exact_route: {
27240
27408
  Args: {
27241
27409
  path: string;
@@ -27445,6 +27613,12 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
27445
27613
  };
27446
27614
  Returns: import("../integrations/supabase/types").Json;
27447
27615
  };
27616
+ get_or_assign_floriday_order_number: {
27617
+ Args: {
27618
+ p_floriday_id: string;
27619
+ };
27620
+ Returns: string;
27621
+ };
27448
27622
  get_room_busy_windows: {
27449
27623
  Args: {
27450
27624
  p_from: string;
@@ -27491,6 +27665,12 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
27491
27665
  Args: never;
27492
27666
  Returns: boolean;
27493
27667
  };
27668
+ next_order_number: {
27669
+ Args: {
27670
+ p_prefix: string;
27671
+ };
27672
+ Returns: string;
27673
+ };
27494
27674
  next_work_order_number: {
27495
27675
  Args: {
27496
27676
  p_parent_work_order_id?: string;
@@ -27525,9 +27705,9 @@ export declare const createCustomer: import("@tanstack/start-client-core").Requi
27525
27705
  refresh_floricode_derived_code_lists: {
27526
27706
  Args: never;
27527
27707
  Returns: {
27528
- out_environment: string;
27529
- out_list_name: string;
27530
- out_row_count: number;
27708
+ environment: string;
27709
+ list_name: string;
27710
+ row_count: number;
27531
27711
  }[];
27532
27712
  };
27533
27713
  reset_floriday_sync_cursor: {
@@ -31804,6 +31984,24 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
31804
31984
  };
31805
31985
  Relationships: [];
31806
31986
  };
31987
+ floriday_order_number_map: {
31988
+ Row: {
31989
+ created_at: string;
31990
+ floriday_id: string;
31991
+ order_number: string;
31992
+ };
31993
+ Insert: {
31994
+ created_at?: string;
31995
+ floriday_id: string;
31996
+ order_number: string;
31997
+ };
31998
+ Update: {
31999
+ created_at?: string;
32000
+ floriday_id?: string;
32001
+ order_number?: string;
32002
+ };
32003
+ Relationships: [];
32004
+ };
31807
32005
  floriday_packings_cache: {
31808
32006
  Row: {
31809
32007
  connection_id: string;
@@ -33649,6 +33847,24 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
33649
33847
  referencedColumns: ["id"];
33650
33848
  }];
33651
33849
  };
33850
+ order_number_counters: {
33851
+ Row: {
33852
+ last_value: number;
33853
+ updated_at: string;
33854
+ year: number;
33855
+ };
33856
+ Insert: {
33857
+ last_value?: number;
33858
+ updated_at?: string;
33859
+ year: number;
33860
+ };
33861
+ Update: {
33862
+ last_value?: number;
33863
+ updated_at?: string;
33864
+ year?: number;
33865
+ };
33866
+ Relationships: [];
33867
+ };
33652
33868
  orders: {
33653
33869
  Row: {
33654
33870
  created_at: string;
@@ -33661,6 +33877,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
33661
33877
  notes: string | null;
33662
33878
  order_date: string;
33663
33879
  order_number: string;
33880
+ order_source: string;
33664
33881
  status: string;
33665
33882
  total: string;
33666
33883
  updated_at: string;
@@ -33676,6 +33893,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
33676
33893
  notes?: string | null;
33677
33894
  order_date?: string;
33678
33895
  order_number: string;
33896
+ order_source?: string;
33679
33897
  status?: string;
33680
33898
  total?: string;
33681
33899
  updated_at?: string;
@@ -33691,6 +33909,7 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
33691
33909
  notes?: string | null;
33692
33910
  order_date?: string;
33693
33911
  order_number?: string;
33912
+ order_source?: string;
33694
33913
  status?: string;
33695
33914
  total?: string;
33696
33915
  updated_at?: string;
@@ -36525,6 +36744,15 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
36525
36744
  };
36526
36745
  Returns: number;
36527
36746
  };
36747
+ assign_floriday_order_numbers: {
36748
+ Args: {
36749
+ p_ids: string[];
36750
+ };
36751
+ Returns: {
36752
+ floriday_id: string;
36753
+ order_number: string;
36754
+ }[];
36755
+ };
36528
36756
  call_exact_route: {
36529
36757
  Args: {
36530
36758
  path: string;
@@ -36734,6 +36962,12 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
36734
36962
  };
36735
36963
  Returns: import("../integrations/supabase/types").Json;
36736
36964
  };
36965
+ get_or_assign_floriday_order_number: {
36966
+ Args: {
36967
+ p_floriday_id: string;
36968
+ };
36969
+ Returns: string;
36970
+ };
36737
36971
  get_room_busy_windows: {
36738
36972
  Args: {
36739
36973
  p_from: string;
@@ -36780,6 +37014,12 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
36780
37014
  Args: never;
36781
37015
  Returns: boolean;
36782
37016
  };
37017
+ next_order_number: {
37018
+ Args: {
37019
+ p_prefix: string;
37020
+ };
37021
+ Returns: string;
37022
+ };
36783
37023
  next_work_order_number: {
36784
37024
  Args: {
36785
37025
  p_parent_work_order_id?: string;
@@ -36814,9 +37054,9 @@ export declare const updateCustomer: import("@tanstack/start-client-core").Optio
36814
37054
  refresh_floricode_derived_code_lists: {
36815
37055
  Args: never;
36816
37056
  Returns: {
36817
- out_environment: string;
36818
- out_list_name: string;
36819
- out_row_count: number;
37057
+ environment: string;
37058
+ list_name: string;
37059
+ row_count: number;
36820
37060
  }[];
36821
37061
  };
36822
37062
  reset_floriday_sync_cursor: {
@@ -41086,6 +41326,24 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
41086
41326
  };
41087
41327
  Relationships: [];
41088
41328
  };
41329
+ floriday_order_number_map: {
41330
+ Row: {
41331
+ created_at: string;
41332
+ floriday_id: string;
41333
+ order_number: string;
41334
+ };
41335
+ Insert: {
41336
+ created_at?: string;
41337
+ floriday_id: string;
41338
+ order_number: string;
41339
+ };
41340
+ Update: {
41341
+ created_at?: string;
41342
+ floriday_id?: string;
41343
+ order_number?: string;
41344
+ };
41345
+ Relationships: [];
41346
+ };
41089
41347
  floriday_packings_cache: {
41090
41348
  Row: {
41091
41349
  connection_id: string;
@@ -42931,6 +43189,24 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
42931
43189
  referencedColumns: ["id"];
42932
43190
  }];
42933
43191
  };
43192
+ order_number_counters: {
43193
+ Row: {
43194
+ last_value: number;
43195
+ updated_at: string;
43196
+ year: number;
43197
+ };
43198
+ Insert: {
43199
+ last_value?: number;
43200
+ updated_at?: string;
43201
+ year: number;
43202
+ };
43203
+ Update: {
43204
+ last_value?: number;
43205
+ updated_at?: string;
43206
+ year?: number;
43207
+ };
43208
+ Relationships: [];
43209
+ };
42934
43210
  orders: {
42935
43211
  Row: {
42936
43212
  created_at: string;
@@ -42943,6 +43219,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
42943
43219
  notes: string | null;
42944
43220
  order_date: string;
42945
43221
  order_number: string;
43222
+ order_source: string;
42946
43223
  status: string;
42947
43224
  total: string;
42948
43225
  updated_at: string;
@@ -42958,6 +43235,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
42958
43235
  notes?: string | null;
42959
43236
  order_date?: string;
42960
43237
  order_number: string;
43238
+ order_source?: string;
42961
43239
  status?: string;
42962
43240
  total?: string;
42963
43241
  updated_at?: string;
@@ -42973,6 +43251,7 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
42973
43251
  notes?: string | null;
42974
43252
  order_date?: string;
42975
43253
  order_number?: string;
43254
+ order_source?: string;
42976
43255
  status?: string;
42977
43256
  total?: string;
42978
43257
  updated_at?: string;
@@ -45807,6 +46086,15 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
45807
46086
  };
45808
46087
  Returns: number;
45809
46088
  };
46089
+ assign_floriday_order_numbers: {
46090
+ Args: {
46091
+ p_ids: string[];
46092
+ };
46093
+ Returns: {
46094
+ floriday_id: string;
46095
+ order_number: string;
46096
+ }[];
46097
+ };
45810
46098
  call_exact_route: {
45811
46099
  Args: {
45812
46100
  path: string;
@@ -46016,6 +46304,12 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
46016
46304
  };
46017
46305
  Returns: import("../integrations/supabase/types").Json;
46018
46306
  };
46307
+ get_or_assign_floriday_order_number: {
46308
+ Args: {
46309
+ p_floriday_id: string;
46310
+ };
46311
+ Returns: string;
46312
+ };
46019
46313
  get_room_busy_windows: {
46020
46314
  Args: {
46021
46315
  p_from: string;
@@ -46062,6 +46356,12 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
46062
46356
  Args: never;
46063
46357
  Returns: boolean;
46064
46358
  };
46359
+ next_order_number: {
46360
+ Args: {
46361
+ p_prefix: string;
46362
+ };
46363
+ Returns: string;
46364
+ };
46065
46365
  next_work_order_number: {
46066
46366
  Args: {
46067
46367
  p_parent_work_order_id?: string;
@@ -46096,9 +46396,9 @@ export declare const deleteCustomer: import("@tanstack/start-client-core").Requi
46096
46396
  refresh_floricode_derived_code_lists: {
46097
46397
  Args: never;
46098
46398
  Returns: {
46099
- out_environment: string;
46100
- out_list_name: string;
46101
- out_row_count: number;
46399
+ environment: string;
46400
+ list_name: string;
46401
+ row_count: number;
46102
46402
  }[];
46103
46403
  };
46104
46404
  reset_floriday_sync_cursor: {
@@ -50317,6 +50617,24 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
50317
50617
  };
50318
50618
  Relationships: [];
50319
50619
  };
50620
+ floriday_order_number_map: {
50621
+ Row: {
50622
+ created_at: string;
50623
+ floriday_id: string;
50624
+ order_number: string;
50625
+ };
50626
+ Insert: {
50627
+ created_at?: string;
50628
+ floriday_id: string;
50629
+ order_number: string;
50630
+ };
50631
+ Update: {
50632
+ created_at?: string;
50633
+ floriday_id?: string;
50634
+ order_number?: string;
50635
+ };
50636
+ Relationships: [];
50637
+ };
50320
50638
  floriday_packings_cache: {
50321
50639
  Row: {
50322
50640
  connection_id: string;
@@ -52162,6 +52480,24 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
52162
52480
  referencedColumns: ["id"];
52163
52481
  }];
52164
52482
  };
52483
+ order_number_counters: {
52484
+ Row: {
52485
+ last_value: number;
52486
+ updated_at: string;
52487
+ year: number;
52488
+ };
52489
+ Insert: {
52490
+ last_value?: number;
52491
+ updated_at?: string;
52492
+ year: number;
52493
+ };
52494
+ Update: {
52495
+ last_value?: number;
52496
+ updated_at?: string;
52497
+ year?: number;
52498
+ };
52499
+ Relationships: [];
52500
+ };
52165
52501
  orders: {
52166
52502
  Row: {
52167
52503
  created_at: string;
@@ -52174,6 +52510,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
52174
52510
  notes: string | null;
52175
52511
  order_date: string;
52176
52512
  order_number: string;
52513
+ order_source: string;
52177
52514
  status: string;
52178
52515
  total: string;
52179
52516
  updated_at: string;
@@ -52189,6 +52526,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
52189
52526
  notes?: string | null;
52190
52527
  order_date?: string;
52191
52528
  order_number: string;
52529
+ order_source?: string;
52192
52530
  status?: string;
52193
52531
  total?: string;
52194
52532
  updated_at?: string;
@@ -52204,6 +52542,7 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
52204
52542
  notes?: string | null;
52205
52543
  order_date?: string;
52206
52544
  order_number?: string;
52545
+ order_source?: string;
52207
52546
  status?: string;
52208
52547
  total?: string;
52209
52548
  updated_at?: string;
@@ -55038,6 +55377,15 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
55038
55377
  };
55039
55378
  Returns: number;
55040
55379
  };
55380
+ assign_floriday_order_numbers: {
55381
+ Args: {
55382
+ p_ids: string[];
55383
+ };
55384
+ Returns: {
55385
+ floriday_id: string;
55386
+ order_number: string;
55387
+ }[];
55388
+ };
55041
55389
  call_exact_route: {
55042
55390
  Args: {
55043
55391
  path: string;
@@ -55247,6 +55595,12 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
55247
55595
  };
55248
55596
  Returns: import("../integrations/supabase/types").Json;
55249
55597
  };
55598
+ get_or_assign_floriday_order_number: {
55599
+ Args: {
55600
+ p_floriday_id: string;
55601
+ };
55602
+ Returns: string;
55603
+ };
55250
55604
  get_room_busy_windows: {
55251
55605
  Args: {
55252
55606
  p_from: string;
@@ -55293,6 +55647,12 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
55293
55647
  Args: never;
55294
55648
  Returns: boolean;
55295
55649
  };
55650
+ next_order_number: {
55651
+ Args: {
55652
+ p_prefix: string;
55653
+ };
55654
+ Returns: string;
55655
+ };
55296
55656
  next_work_order_number: {
55297
55657
  Args: {
55298
55658
  p_parent_work_order_id?: string;
@@ -55327,9 +55687,9 @@ export declare const listFloridayNetwork: import("@tanstack/start-client-core").
55327
55687
  refresh_floricode_derived_code_lists: {
55328
55688
  Args: never;
55329
55689
  Returns: {
55330
- out_environment: string;
55331
- out_list_name: string;
55332
- out_row_count: number;
55690
+ environment: string;
55691
+ list_name: string;
55692
+ row_count: number;
55333
55693
  }[];
55334
55694
  };
55335
55695
  reset_floriday_sync_cursor: {
@@ -59556,6 +59916,24 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
59556
59916
  };
59557
59917
  Relationships: [];
59558
59918
  };
59919
+ floriday_order_number_map: {
59920
+ Row: {
59921
+ created_at: string;
59922
+ floriday_id: string;
59923
+ order_number: string;
59924
+ };
59925
+ Insert: {
59926
+ created_at?: string;
59927
+ floriday_id: string;
59928
+ order_number: string;
59929
+ };
59930
+ Update: {
59931
+ created_at?: string;
59932
+ floriday_id?: string;
59933
+ order_number?: string;
59934
+ };
59935
+ Relationships: [];
59936
+ };
59559
59937
  floriday_packings_cache: {
59560
59938
  Row: {
59561
59939
  connection_id: string;
@@ -61401,6 +61779,24 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
61401
61779
  referencedColumns: ["id"];
61402
61780
  }];
61403
61781
  };
61782
+ order_number_counters: {
61783
+ Row: {
61784
+ last_value: number;
61785
+ updated_at: string;
61786
+ year: number;
61787
+ };
61788
+ Insert: {
61789
+ last_value?: number;
61790
+ updated_at?: string;
61791
+ year: number;
61792
+ };
61793
+ Update: {
61794
+ last_value?: number;
61795
+ updated_at?: string;
61796
+ year?: number;
61797
+ };
61798
+ Relationships: [];
61799
+ };
61404
61800
  orders: {
61405
61801
  Row: {
61406
61802
  created_at: string;
@@ -61413,6 +61809,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
61413
61809
  notes: string | null;
61414
61810
  order_date: string;
61415
61811
  order_number: string;
61812
+ order_source: string;
61416
61813
  status: string;
61417
61814
  total: string;
61418
61815
  updated_at: string;
@@ -61428,6 +61825,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
61428
61825
  notes?: string | null;
61429
61826
  order_date?: string;
61430
61827
  order_number: string;
61828
+ order_source?: string;
61431
61829
  status?: string;
61432
61830
  total?: string;
61433
61831
  updated_at?: string;
@@ -61443,6 +61841,7 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
61443
61841
  notes?: string | null;
61444
61842
  order_date?: string;
61445
61843
  order_number?: string;
61844
+ order_source?: string;
61446
61845
  status?: string;
61447
61846
  total?: string;
61448
61847
  updated_at?: string;
@@ -64277,6 +64676,15 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
64277
64676
  };
64278
64677
  Returns: number;
64279
64678
  };
64679
+ assign_floriday_order_numbers: {
64680
+ Args: {
64681
+ p_ids: string[];
64682
+ };
64683
+ Returns: {
64684
+ floriday_id: string;
64685
+ order_number: string;
64686
+ }[];
64687
+ };
64280
64688
  call_exact_route: {
64281
64689
  Args: {
64282
64690
  path: string;
@@ -64486,6 +64894,12 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
64486
64894
  };
64487
64895
  Returns: import("../integrations/supabase/types").Json;
64488
64896
  };
64897
+ get_or_assign_floriday_order_number: {
64898
+ Args: {
64899
+ p_floriday_id: string;
64900
+ };
64901
+ Returns: string;
64902
+ };
64489
64903
  get_room_busy_windows: {
64490
64904
  Args: {
64491
64905
  p_from: string;
@@ -64532,6 +64946,12 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
64532
64946
  Args: never;
64533
64947
  Returns: boolean;
64534
64948
  };
64949
+ next_order_number: {
64950
+ Args: {
64951
+ p_prefix: string;
64952
+ };
64953
+ Returns: string;
64954
+ };
64535
64955
  next_work_order_number: {
64536
64956
  Args: {
64537
64957
  p_parent_work_order_id?: string;
@@ -64566,9 +64986,9 @@ export declare const listCustomerClasses: import("@tanstack/start-client-core").
64566
64986
  refresh_floricode_derived_code_lists: {
64567
64987
  Args: never;
64568
64988
  Returns: {
64569
- out_environment: string;
64570
- out_list_name: string;
64571
- out_row_count: number;
64989
+ environment: string;
64990
+ list_name: string;
64991
+ row_count: number;
64572
64992
  }[];
64573
64993
  };
64574
64994
  reset_floriday_sync_cursor: {