@flowselections/floriday-verkoop-module 1.0.15 → 1.0.17

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 (36) hide show
  1. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/CreateOrderPage.js +40 -28
  3. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  4. package/dist-lib/components/verkoop/SalesOrdersFilters.js +2 -8
  5. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -0
  6. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/SearchableSelect.js +1 -1
  8. package/dist-lib/index.js +2 -2
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts +208 -1
  10. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/client.d.ts +208 -1
  12. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.server.d.ts +208 -1
  14. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/types.d.ts +217 -1
  16. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-lock.functions.d.ts +208 -1
  18. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/cart-replan.functions.d.ts +416 -2
  20. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/create-order.functions.d.ts +1882 -11
  22. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/create-order.functions.js +102 -19
  24. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +624 -3
  25. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +208 -1
  27. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-public.functions.d.ts +1456 -7
  29. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-writes.functions.d.ts +1040 -5
  31. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/salesorders.functions.d.ts +624 -3
  33. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/tradeitems.functions.d.ts +208 -1
  35. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  36. package/package.json +2 -2
@@ -246,6 +246,165 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
246
246
  };
247
247
  Relationships: [];
248
248
  };
249
+ ai_credentials: {
250
+ Row: {
251
+ active: boolean;
252
+ api_key: string;
253
+ created_at: string;
254
+ created_by: string | null;
255
+ id: string;
256
+ label: string;
257
+ provider_id: string;
258
+ updated_at: string;
259
+ };
260
+ Insert: {
261
+ active?: boolean;
262
+ api_key: string;
263
+ created_at?: string;
264
+ created_by?: string | null;
265
+ id?: string;
266
+ label: string;
267
+ provider_id: string;
268
+ updated_at?: string;
269
+ };
270
+ Update: {
271
+ active?: boolean;
272
+ api_key?: string;
273
+ created_at?: string;
274
+ created_by?: string | null;
275
+ id?: string;
276
+ label?: string;
277
+ provider_id?: string;
278
+ updated_at?: string;
279
+ };
280
+ Relationships: [{
281
+ foreignKeyName: "ai_credentials_provider_id_fkey";
282
+ columns: ["provider_id"];
283
+ isOneToOne: false;
284
+ referencedRelation: "ai_providers";
285
+ referencedColumns: ["id"];
286
+ }];
287
+ };
288
+ ai_models: {
289
+ Row: {
290
+ active: boolean;
291
+ context_window: number | null;
292
+ created_at: string;
293
+ display_name: string;
294
+ id: string;
295
+ is_default: boolean;
296
+ modality: string;
297
+ provider_id: string;
298
+ slug: string;
299
+ updated_at: string;
300
+ };
301
+ Insert: {
302
+ active?: boolean;
303
+ context_window?: number | null;
304
+ created_at?: string;
305
+ display_name: string;
306
+ id?: string;
307
+ is_default?: boolean;
308
+ modality?: string;
309
+ provider_id: string;
310
+ slug: string;
311
+ updated_at?: string;
312
+ };
313
+ Update: {
314
+ active?: boolean;
315
+ context_window?: number | null;
316
+ created_at?: string;
317
+ display_name?: string;
318
+ id?: string;
319
+ is_default?: boolean;
320
+ modality?: string;
321
+ provider_id?: string;
322
+ slug?: string;
323
+ updated_at?: string;
324
+ };
325
+ Relationships: [{
326
+ foreignKeyName: "ai_models_provider_id_fkey";
327
+ columns: ["provider_id"];
328
+ isOneToOne: false;
329
+ referencedRelation: "ai_providers";
330
+ referencedColumns: ["id"];
331
+ }];
332
+ };
333
+ ai_module_bindings: {
334
+ Row: {
335
+ consumer_module_id: string;
336
+ created_at: string;
337
+ credential_id: string;
338
+ id: string;
339
+ model_id: string;
340
+ notes: string | null;
341
+ updated_at: string;
342
+ };
343
+ Insert: {
344
+ consumer_module_id: string;
345
+ created_at?: string;
346
+ credential_id: string;
347
+ id?: string;
348
+ model_id: string;
349
+ notes?: string | null;
350
+ updated_at?: string;
351
+ };
352
+ Update: {
353
+ consumer_module_id?: string;
354
+ created_at?: string;
355
+ credential_id?: string;
356
+ id?: string;
357
+ model_id?: string;
358
+ notes?: string | null;
359
+ updated_at?: string;
360
+ };
361
+ Relationships: [{
362
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
363
+ columns: ["credential_id"];
364
+ isOneToOne: false;
365
+ referencedRelation: "ai_credentials";
366
+ referencedColumns: ["id"];
367
+ }, {
368
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
369
+ columns: ["model_id"];
370
+ isOneToOne: false;
371
+ referencedRelation: "ai_models";
372
+ referencedColumns: ["id"];
373
+ }];
374
+ };
375
+ ai_providers: {
376
+ Row: {
377
+ active: boolean;
378
+ auth_type: string;
379
+ base_url: string | null;
380
+ created_at: string;
381
+ id: string;
382
+ name: string;
383
+ slug: string;
384
+ updated_at: string;
385
+ };
386
+ Insert: {
387
+ active?: boolean;
388
+ auth_type?: string;
389
+ base_url?: string | null;
390
+ created_at?: string;
391
+ id?: string;
392
+ name: string;
393
+ slug: string;
394
+ updated_at?: string;
395
+ };
396
+ Update: {
397
+ active?: boolean;
398
+ auth_type?: string;
399
+ base_url?: string | null;
400
+ created_at?: string;
401
+ id?: string;
402
+ name?: string;
403
+ slug?: string;
404
+ updated_at?: string;
405
+ };
406
+ Relationships: [];
407
+ };
249
408
  app_settings: {
250
409
  Row: {
251
410
  created_at: string;
@@ -3849,6 +4008,27 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
3849
4008
  referencedColumns: ["id"];
3850
4009
  }];
3851
4010
  };
4011
+ floriday_continuous_stock_cache: {
4012
+ Row: {
4013
+ connection_id: string;
4014
+ fetched_at: string;
4015
+ number_of_pieces: number;
4016
+ trade_item_id: string;
4017
+ };
4018
+ Insert: {
4019
+ connection_id: string;
4020
+ fetched_at?: string;
4021
+ number_of_pieces?: number;
4022
+ trade_item_id: string;
4023
+ };
4024
+ Update: {
4025
+ connection_id?: string;
4026
+ fetched_at?: string;
4027
+ number_of_pieces?: number;
4028
+ trade_item_id?: string;
4029
+ };
4030
+ Relationships: [];
4031
+ };
3852
4032
  floriday_continuous_stock_queue: {
3853
4033
  Row: {
3854
4034
  attempts: number;
@@ -5972,39 +6152,60 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
5972
6152
  };
5973
6153
  manufacture_products: {
5974
6154
  Row: {
6155
+ aantal_te_produceren: number;
5975
6156
  created_at: string;
5976
6157
  description: string | null;
5977
6158
  id: string;
5978
6159
  is_active: boolean;
6160
+ location_id: string | null;
5979
6161
  name: string;
6162
+ partij_nummer: string | null;
6163
+ photos: import("../integrations/supabase/types").Json;
5980
6164
  produced_stock: number;
5981
6165
  product_code: string;
5982
6166
  tenant_id: string;
6167
+ unit: string;
5983
6168
  updated_at: string;
5984
6169
  };
5985
6170
  Insert: {
6171
+ aantal_te_produceren?: number;
5986
6172
  created_at?: string;
5987
6173
  description?: string | null;
5988
6174
  id?: string;
5989
6175
  is_active?: boolean;
6176
+ location_id?: string | null;
5990
6177
  name: string;
6178
+ partij_nummer?: string | null;
6179
+ photos?: import("../integrations/supabase/types").Json;
5991
6180
  produced_stock?: number;
5992
6181
  product_code: string;
5993
6182
  tenant_id: string;
6183
+ unit?: string;
5994
6184
  updated_at?: string;
5995
6185
  };
5996
6186
  Update: {
6187
+ aantal_te_produceren?: number;
5997
6188
  created_at?: string;
5998
6189
  description?: string | null;
5999
6190
  id?: string;
6000
6191
  is_active?: boolean;
6192
+ location_id?: string | null;
6001
6193
  name?: string;
6194
+ partij_nummer?: string | null;
6195
+ photos?: import("../integrations/supabase/types").Json;
6002
6196
  produced_stock?: number;
6003
6197
  product_code?: string;
6004
6198
  tenant_id?: string;
6199
+ unit?: string;
6005
6200
  updated_at?: string;
6006
6201
  };
6007
- Relationships: [];
6202
+ Relationships: [{
6203
+ foreignKeyName: "manufacture_products_location_id_fkey";
6204
+ columns: ["location_id"];
6205
+ isOneToOne: false;
6206
+ referencedRelation: "locations";
6207
+ referencedColumns: ["id"];
6208
+ }];
6008
6209
  };
6009
6210
  monteurs: {
6010
6211
  Row: {
@@ -10868,6 +11069,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
10868
11069
  };
10869
11070
  Returns: undefined;
10870
11071
  };
11072
+ next_manufacture_partij: {
11073
+ Args: {
11074
+ _tenant_id: string;
11075
+ };
11076
+ Returns: string;
11077
+ };
10871
11078
  next_order_number: {
10872
11079
  Args: {
10873
11080
  p_prefix: string;
@@ -11586,6 +11793,165 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
11586
11793
  };
11587
11794
  Relationships: [];
11588
11795
  };
11796
+ ai_credentials: {
11797
+ Row: {
11798
+ active: boolean;
11799
+ api_key: string;
11800
+ created_at: string;
11801
+ created_by: string | null;
11802
+ id: string;
11803
+ label: string;
11804
+ provider_id: string;
11805
+ updated_at: string;
11806
+ };
11807
+ Insert: {
11808
+ active?: boolean;
11809
+ api_key: string;
11810
+ created_at?: string;
11811
+ created_by?: string | null;
11812
+ id?: string;
11813
+ label: string;
11814
+ provider_id: string;
11815
+ updated_at?: string;
11816
+ };
11817
+ Update: {
11818
+ active?: boolean;
11819
+ api_key?: string;
11820
+ created_at?: string;
11821
+ created_by?: string | null;
11822
+ id?: string;
11823
+ label?: string;
11824
+ provider_id?: string;
11825
+ updated_at?: string;
11826
+ };
11827
+ Relationships: [{
11828
+ foreignKeyName: "ai_credentials_provider_id_fkey";
11829
+ columns: ["provider_id"];
11830
+ isOneToOne: false;
11831
+ referencedRelation: "ai_providers";
11832
+ referencedColumns: ["id"];
11833
+ }];
11834
+ };
11835
+ ai_models: {
11836
+ Row: {
11837
+ active: boolean;
11838
+ context_window: number | null;
11839
+ created_at: string;
11840
+ display_name: string;
11841
+ id: string;
11842
+ is_default: boolean;
11843
+ modality: string;
11844
+ provider_id: string;
11845
+ slug: string;
11846
+ updated_at: string;
11847
+ };
11848
+ Insert: {
11849
+ active?: boolean;
11850
+ context_window?: number | null;
11851
+ created_at?: string;
11852
+ display_name: string;
11853
+ id?: string;
11854
+ is_default?: boolean;
11855
+ modality?: string;
11856
+ provider_id: string;
11857
+ slug: string;
11858
+ updated_at?: string;
11859
+ };
11860
+ Update: {
11861
+ active?: boolean;
11862
+ context_window?: number | null;
11863
+ created_at?: string;
11864
+ display_name?: string;
11865
+ id?: string;
11866
+ is_default?: boolean;
11867
+ modality?: string;
11868
+ provider_id?: string;
11869
+ slug?: string;
11870
+ updated_at?: string;
11871
+ };
11872
+ Relationships: [{
11873
+ foreignKeyName: "ai_models_provider_id_fkey";
11874
+ columns: ["provider_id"];
11875
+ isOneToOne: false;
11876
+ referencedRelation: "ai_providers";
11877
+ referencedColumns: ["id"];
11878
+ }];
11879
+ };
11880
+ ai_module_bindings: {
11881
+ Row: {
11882
+ consumer_module_id: string;
11883
+ created_at: string;
11884
+ credential_id: string;
11885
+ id: string;
11886
+ model_id: string;
11887
+ notes: string | null;
11888
+ updated_at: string;
11889
+ };
11890
+ Insert: {
11891
+ consumer_module_id: string;
11892
+ created_at?: string;
11893
+ credential_id: string;
11894
+ id?: string;
11895
+ model_id: string;
11896
+ notes?: string | null;
11897
+ updated_at?: string;
11898
+ };
11899
+ Update: {
11900
+ consumer_module_id?: string;
11901
+ created_at?: string;
11902
+ credential_id?: string;
11903
+ id?: string;
11904
+ model_id?: string;
11905
+ notes?: string | null;
11906
+ updated_at?: string;
11907
+ };
11908
+ Relationships: [{
11909
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
11910
+ columns: ["credential_id"];
11911
+ isOneToOne: false;
11912
+ referencedRelation: "ai_credentials";
11913
+ referencedColumns: ["id"];
11914
+ }, {
11915
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
11916
+ columns: ["model_id"];
11917
+ isOneToOne: false;
11918
+ referencedRelation: "ai_models";
11919
+ referencedColumns: ["id"];
11920
+ }];
11921
+ };
11922
+ ai_providers: {
11923
+ Row: {
11924
+ active: boolean;
11925
+ auth_type: string;
11926
+ base_url: string | null;
11927
+ created_at: string;
11928
+ id: string;
11929
+ name: string;
11930
+ slug: string;
11931
+ updated_at: string;
11932
+ };
11933
+ Insert: {
11934
+ active?: boolean;
11935
+ auth_type?: string;
11936
+ base_url?: string | null;
11937
+ created_at?: string;
11938
+ id?: string;
11939
+ name: string;
11940
+ slug: string;
11941
+ updated_at?: string;
11942
+ };
11943
+ Update: {
11944
+ active?: boolean;
11945
+ auth_type?: string;
11946
+ base_url?: string | null;
11947
+ created_at?: string;
11948
+ id?: string;
11949
+ name?: string;
11950
+ slug?: string;
11951
+ updated_at?: string;
11952
+ };
11953
+ Relationships: [];
11954
+ };
11589
11955
  app_settings: {
11590
11956
  Row: {
11591
11957
  created_at: string;
@@ -15189,6 +15555,27 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
15189
15555
  referencedColumns: ["id"];
15190
15556
  }];
15191
15557
  };
15558
+ floriday_continuous_stock_cache: {
15559
+ Row: {
15560
+ connection_id: string;
15561
+ fetched_at: string;
15562
+ number_of_pieces: number;
15563
+ trade_item_id: string;
15564
+ };
15565
+ Insert: {
15566
+ connection_id: string;
15567
+ fetched_at?: string;
15568
+ number_of_pieces?: number;
15569
+ trade_item_id: string;
15570
+ };
15571
+ Update: {
15572
+ connection_id?: string;
15573
+ fetched_at?: string;
15574
+ number_of_pieces?: number;
15575
+ trade_item_id?: string;
15576
+ };
15577
+ Relationships: [];
15578
+ };
15192
15579
  floriday_continuous_stock_queue: {
15193
15580
  Row: {
15194
15581
  attempts: number;
@@ -17312,39 +17699,60 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
17312
17699
  };
17313
17700
  manufacture_products: {
17314
17701
  Row: {
17702
+ aantal_te_produceren: number;
17315
17703
  created_at: string;
17316
17704
  description: string | null;
17317
17705
  id: string;
17318
17706
  is_active: boolean;
17707
+ location_id: string | null;
17319
17708
  name: string;
17709
+ partij_nummer: string | null;
17710
+ photos: import("../integrations/supabase/types").Json;
17320
17711
  produced_stock: number;
17321
17712
  product_code: string;
17322
17713
  tenant_id: string;
17714
+ unit: string;
17323
17715
  updated_at: string;
17324
17716
  };
17325
17717
  Insert: {
17718
+ aantal_te_produceren?: number;
17326
17719
  created_at?: string;
17327
17720
  description?: string | null;
17328
17721
  id?: string;
17329
17722
  is_active?: boolean;
17723
+ location_id?: string | null;
17330
17724
  name: string;
17725
+ partij_nummer?: string | null;
17726
+ photos?: import("../integrations/supabase/types").Json;
17331
17727
  produced_stock?: number;
17332
17728
  product_code: string;
17333
17729
  tenant_id: string;
17730
+ unit?: string;
17334
17731
  updated_at?: string;
17335
17732
  };
17336
17733
  Update: {
17734
+ aantal_te_produceren?: number;
17337
17735
  created_at?: string;
17338
17736
  description?: string | null;
17339
17737
  id?: string;
17340
17738
  is_active?: boolean;
17739
+ location_id?: string | null;
17341
17740
  name?: string;
17741
+ partij_nummer?: string | null;
17742
+ photos?: import("../integrations/supabase/types").Json;
17342
17743
  produced_stock?: number;
17343
17744
  product_code?: string;
17344
17745
  tenant_id?: string;
17746
+ unit?: string;
17345
17747
  updated_at?: string;
17346
17748
  };
17347
- Relationships: [];
17749
+ Relationships: [{
17750
+ foreignKeyName: "manufacture_products_location_id_fkey";
17751
+ columns: ["location_id"];
17752
+ isOneToOne: false;
17753
+ referencedRelation: "locations";
17754
+ referencedColumns: ["id"];
17755
+ }];
17348
17756
  };
17349
17757
  monteurs: {
17350
17758
  Row: {
@@ -22208,6 +22616,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
22208
22616
  };
22209
22617
  Returns: undefined;
22210
22618
  };
22619
+ next_manufacture_partij: {
22620
+ Args: {
22621
+ _tenant_id: string;
22622
+ };
22623
+ Returns: string;
22624
+ };
22211
22625
  next_order_number: {
22212
22626
  Args: {
22213
22627
  p_prefix: string;
@@ -22936,6 +23350,165 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
22936
23350
  };
22937
23351
  Relationships: [];
22938
23352
  };
23353
+ ai_credentials: {
23354
+ Row: {
23355
+ active: boolean;
23356
+ api_key: string;
23357
+ created_at: string;
23358
+ created_by: string | null;
23359
+ id: string;
23360
+ label: string;
23361
+ provider_id: string;
23362
+ updated_at: string;
23363
+ };
23364
+ Insert: {
23365
+ active?: boolean;
23366
+ api_key: string;
23367
+ created_at?: string;
23368
+ created_by?: string | null;
23369
+ id?: string;
23370
+ label: string;
23371
+ provider_id: string;
23372
+ updated_at?: string;
23373
+ };
23374
+ Update: {
23375
+ active?: boolean;
23376
+ api_key?: string;
23377
+ created_at?: string;
23378
+ created_by?: string | null;
23379
+ id?: string;
23380
+ label?: string;
23381
+ provider_id?: string;
23382
+ updated_at?: string;
23383
+ };
23384
+ Relationships: [{
23385
+ foreignKeyName: "ai_credentials_provider_id_fkey";
23386
+ columns: ["provider_id"];
23387
+ isOneToOne: false;
23388
+ referencedRelation: "ai_providers";
23389
+ referencedColumns: ["id"];
23390
+ }];
23391
+ };
23392
+ ai_models: {
23393
+ Row: {
23394
+ active: boolean;
23395
+ context_window: number | null;
23396
+ created_at: string;
23397
+ display_name: string;
23398
+ id: string;
23399
+ is_default: boolean;
23400
+ modality: string;
23401
+ provider_id: string;
23402
+ slug: string;
23403
+ updated_at: string;
23404
+ };
23405
+ Insert: {
23406
+ active?: boolean;
23407
+ context_window?: number | null;
23408
+ created_at?: string;
23409
+ display_name: string;
23410
+ id?: string;
23411
+ is_default?: boolean;
23412
+ modality?: string;
23413
+ provider_id: string;
23414
+ slug: string;
23415
+ updated_at?: string;
23416
+ };
23417
+ Update: {
23418
+ active?: boolean;
23419
+ context_window?: number | null;
23420
+ created_at?: string;
23421
+ display_name?: string;
23422
+ id?: string;
23423
+ is_default?: boolean;
23424
+ modality?: string;
23425
+ provider_id?: string;
23426
+ slug?: string;
23427
+ updated_at?: string;
23428
+ };
23429
+ Relationships: [{
23430
+ foreignKeyName: "ai_models_provider_id_fkey";
23431
+ columns: ["provider_id"];
23432
+ isOneToOne: false;
23433
+ referencedRelation: "ai_providers";
23434
+ referencedColumns: ["id"];
23435
+ }];
23436
+ };
23437
+ ai_module_bindings: {
23438
+ Row: {
23439
+ consumer_module_id: string;
23440
+ created_at: string;
23441
+ credential_id: string;
23442
+ id: string;
23443
+ model_id: string;
23444
+ notes: string | null;
23445
+ updated_at: string;
23446
+ };
23447
+ Insert: {
23448
+ consumer_module_id: string;
23449
+ created_at?: string;
23450
+ credential_id: string;
23451
+ id?: string;
23452
+ model_id: string;
23453
+ notes?: string | null;
23454
+ updated_at?: string;
23455
+ };
23456
+ Update: {
23457
+ consumer_module_id?: string;
23458
+ created_at?: string;
23459
+ credential_id?: string;
23460
+ id?: string;
23461
+ model_id?: string;
23462
+ notes?: string | null;
23463
+ updated_at?: string;
23464
+ };
23465
+ Relationships: [{
23466
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
23467
+ columns: ["credential_id"];
23468
+ isOneToOne: false;
23469
+ referencedRelation: "ai_credentials";
23470
+ referencedColumns: ["id"];
23471
+ }, {
23472
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
23473
+ columns: ["model_id"];
23474
+ isOneToOne: false;
23475
+ referencedRelation: "ai_models";
23476
+ referencedColumns: ["id"];
23477
+ }];
23478
+ };
23479
+ ai_providers: {
23480
+ Row: {
23481
+ active: boolean;
23482
+ auth_type: string;
23483
+ base_url: string | null;
23484
+ created_at: string;
23485
+ id: string;
23486
+ name: string;
23487
+ slug: string;
23488
+ updated_at: string;
23489
+ };
23490
+ Insert: {
23491
+ active?: boolean;
23492
+ auth_type?: string;
23493
+ base_url?: string | null;
23494
+ created_at?: string;
23495
+ id?: string;
23496
+ name: string;
23497
+ slug: string;
23498
+ updated_at?: string;
23499
+ };
23500
+ Update: {
23501
+ active?: boolean;
23502
+ auth_type?: string;
23503
+ base_url?: string | null;
23504
+ created_at?: string;
23505
+ id?: string;
23506
+ name?: string;
23507
+ slug?: string;
23508
+ updated_at?: string;
23509
+ };
23510
+ Relationships: [];
23511
+ };
22939
23512
  app_settings: {
22940
23513
  Row: {
22941
23514
  created_at: string;
@@ -26539,6 +27112,27 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
26539
27112
  referencedColumns: ["id"];
26540
27113
  }];
26541
27114
  };
27115
+ floriday_continuous_stock_cache: {
27116
+ Row: {
27117
+ connection_id: string;
27118
+ fetched_at: string;
27119
+ number_of_pieces: number;
27120
+ trade_item_id: string;
27121
+ };
27122
+ Insert: {
27123
+ connection_id: string;
27124
+ fetched_at?: string;
27125
+ number_of_pieces?: number;
27126
+ trade_item_id: string;
27127
+ };
27128
+ Update: {
27129
+ connection_id?: string;
27130
+ fetched_at?: string;
27131
+ number_of_pieces?: number;
27132
+ trade_item_id?: string;
27133
+ };
27134
+ Relationships: [];
27135
+ };
26542
27136
  floriday_continuous_stock_queue: {
26543
27137
  Row: {
26544
27138
  attempts: number;
@@ -28662,39 +29256,60 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
28662
29256
  };
28663
29257
  manufacture_products: {
28664
29258
  Row: {
29259
+ aantal_te_produceren: number;
28665
29260
  created_at: string;
28666
29261
  description: string | null;
28667
29262
  id: string;
28668
29263
  is_active: boolean;
29264
+ location_id: string | null;
28669
29265
  name: string;
29266
+ partij_nummer: string | null;
29267
+ photos: import("../integrations/supabase/types").Json;
28670
29268
  produced_stock: number;
28671
29269
  product_code: string;
28672
29270
  tenant_id: string;
29271
+ unit: string;
28673
29272
  updated_at: string;
28674
29273
  };
28675
29274
  Insert: {
29275
+ aantal_te_produceren?: number;
28676
29276
  created_at?: string;
28677
29277
  description?: string | null;
28678
29278
  id?: string;
28679
29279
  is_active?: boolean;
29280
+ location_id?: string | null;
28680
29281
  name: string;
29282
+ partij_nummer?: string | null;
29283
+ photos?: import("../integrations/supabase/types").Json;
28681
29284
  produced_stock?: number;
28682
29285
  product_code: string;
28683
29286
  tenant_id: string;
29287
+ unit?: string;
28684
29288
  updated_at?: string;
28685
29289
  };
28686
29290
  Update: {
29291
+ aantal_te_produceren?: number;
28687
29292
  created_at?: string;
28688
29293
  description?: string | null;
28689
29294
  id?: string;
28690
29295
  is_active?: boolean;
29296
+ location_id?: string | null;
28691
29297
  name?: string;
29298
+ partij_nummer?: string | null;
29299
+ photos?: import("../integrations/supabase/types").Json;
28692
29300
  produced_stock?: number;
28693
29301
  product_code?: string;
28694
29302
  tenant_id?: string;
29303
+ unit?: string;
28695
29304
  updated_at?: string;
28696
29305
  };
28697
- Relationships: [];
29306
+ Relationships: [{
29307
+ foreignKeyName: "manufacture_products_location_id_fkey";
29308
+ columns: ["location_id"];
29309
+ isOneToOne: false;
29310
+ referencedRelation: "locations";
29311
+ referencedColumns: ["id"];
29312
+ }];
28698
29313
  };
28699
29314
  monteurs: {
28700
29315
  Row: {
@@ -33558,6 +34173,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
33558
34173
  };
33559
34174
  Returns: undefined;
33560
34175
  };
34176
+ next_manufacture_partij: {
34177
+ Args: {
34178
+ _tenant_id: string;
34179
+ };
34180
+ Returns: string;
34181
+ };
33561
34182
  next_order_number: {
33562
34183
  Args: {
33563
34184
  p_prefix: string;