@flowselections/floriday-verkoop-module 1.0.16 → 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 (32) hide show
  1. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/CreateOrderPage.js +6 -8
  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/index.js +2 -2
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts +208 -1
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.d.ts +208 -1
  9. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts +208 -1
  11. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/types.d.ts +217 -1
  13. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  14. package/dist-lib/lib/cart-lock.functions.d.ts +208 -1
  15. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/cart-replan.functions.d.ts +416 -2
  17. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/create-order.functions.d.ts +1872 -9
  19. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +624 -3
  21. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +208 -1
  23. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-public.functions.d.ts +1456 -7
  25. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-writes.functions.d.ts +1040 -5
  27. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/salesorders.functions.d.ts +624 -3
  29. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/tradeitems.functions.d.ts +208 -1
  31. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  32. package/package.json +2 -2
@@ -241,6 +241,165 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
241
241
  };
242
242
  Relationships: [];
243
243
  };
244
+ ai_credentials: {
245
+ Row: {
246
+ active: boolean;
247
+ api_key: string;
248
+ created_at: string;
249
+ created_by: string | null;
250
+ id: string;
251
+ label: string;
252
+ provider_id: string;
253
+ updated_at: string;
254
+ };
255
+ Insert: {
256
+ active?: boolean;
257
+ api_key: string;
258
+ created_at?: string;
259
+ created_by?: string | null;
260
+ id?: string;
261
+ label: string;
262
+ provider_id: string;
263
+ updated_at?: string;
264
+ };
265
+ Update: {
266
+ active?: boolean;
267
+ api_key?: string;
268
+ created_at?: string;
269
+ created_by?: string | null;
270
+ id?: string;
271
+ label?: string;
272
+ provider_id?: string;
273
+ updated_at?: string;
274
+ };
275
+ Relationships: [{
276
+ foreignKeyName: "ai_credentials_provider_id_fkey";
277
+ columns: ["provider_id"];
278
+ isOneToOne: false;
279
+ referencedRelation: "ai_providers";
280
+ referencedColumns: ["id"];
281
+ }];
282
+ };
283
+ ai_models: {
284
+ Row: {
285
+ active: boolean;
286
+ context_window: number | null;
287
+ created_at: string;
288
+ display_name: string;
289
+ id: string;
290
+ is_default: boolean;
291
+ modality: string;
292
+ provider_id: string;
293
+ slug: string;
294
+ updated_at: string;
295
+ };
296
+ Insert: {
297
+ active?: boolean;
298
+ context_window?: number | null;
299
+ created_at?: string;
300
+ display_name: string;
301
+ id?: string;
302
+ is_default?: boolean;
303
+ modality?: string;
304
+ provider_id: string;
305
+ slug: string;
306
+ updated_at?: string;
307
+ };
308
+ Update: {
309
+ active?: boolean;
310
+ context_window?: number | null;
311
+ created_at?: string;
312
+ display_name?: string;
313
+ id?: string;
314
+ is_default?: boolean;
315
+ modality?: string;
316
+ provider_id?: string;
317
+ slug?: string;
318
+ updated_at?: string;
319
+ };
320
+ Relationships: [{
321
+ foreignKeyName: "ai_models_provider_id_fkey";
322
+ columns: ["provider_id"];
323
+ isOneToOne: false;
324
+ referencedRelation: "ai_providers";
325
+ referencedColumns: ["id"];
326
+ }];
327
+ };
328
+ ai_module_bindings: {
329
+ Row: {
330
+ consumer_module_id: string;
331
+ created_at: string;
332
+ credential_id: string;
333
+ id: string;
334
+ model_id: string;
335
+ notes: string | null;
336
+ updated_at: string;
337
+ };
338
+ Insert: {
339
+ consumer_module_id: string;
340
+ created_at?: string;
341
+ credential_id: string;
342
+ id?: string;
343
+ model_id: string;
344
+ notes?: string | null;
345
+ updated_at?: string;
346
+ };
347
+ Update: {
348
+ consumer_module_id?: string;
349
+ created_at?: string;
350
+ credential_id?: string;
351
+ id?: string;
352
+ model_id?: string;
353
+ notes?: string | null;
354
+ updated_at?: string;
355
+ };
356
+ Relationships: [{
357
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
358
+ columns: ["credential_id"];
359
+ isOneToOne: false;
360
+ referencedRelation: "ai_credentials";
361
+ referencedColumns: ["id"];
362
+ }, {
363
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
364
+ columns: ["model_id"];
365
+ isOneToOne: false;
366
+ referencedRelation: "ai_models";
367
+ referencedColumns: ["id"];
368
+ }];
369
+ };
370
+ ai_providers: {
371
+ Row: {
372
+ active: boolean;
373
+ auth_type: string;
374
+ base_url: string | null;
375
+ created_at: string;
376
+ id: string;
377
+ name: string;
378
+ slug: string;
379
+ updated_at: string;
380
+ };
381
+ Insert: {
382
+ active?: boolean;
383
+ auth_type?: string;
384
+ base_url?: string | null;
385
+ created_at?: string;
386
+ id?: string;
387
+ name: string;
388
+ slug: string;
389
+ updated_at?: string;
390
+ };
391
+ Update: {
392
+ active?: boolean;
393
+ auth_type?: string;
394
+ base_url?: string | null;
395
+ created_at?: string;
396
+ id?: string;
397
+ name?: string;
398
+ slug?: string;
399
+ updated_at?: string;
400
+ };
401
+ Relationships: [];
402
+ };
244
403
  app_settings: {
245
404
  Row: {
246
405
  created_at: string;
@@ -3844,6 +4003,27 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
3844
4003
  referencedColumns: ["id"];
3845
4004
  }];
3846
4005
  };
4006
+ floriday_continuous_stock_cache: {
4007
+ Row: {
4008
+ connection_id: string;
4009
+ fetched_at: string;
4010
+ number_of_pieces: number;
4011
+ trade_item_id: string;
4012
+ };
4013
+ Insert: {
4014
+ connection_id: string;
4015
+ fetched_at?: string;
4016
+ number_of_pieces?: number;
4017
+ trade_item_id: string;
4018
+ };
4019
+ Update: {
4020
+ connection_id?: string;
4021
+ fetched_at?: string;
4022
+ number_of_pieces?: number;
4023
+ trade_item_id?: string;
4024
+ };
4025
+ Relationships: [];
4026
+ };
3847
4027
  floriday_continuous_stock_queue: {
3848
4028
  Row: {
3849
4029
  attempts: number;
@@ -5967,39 +6147,60 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
5967
6147
  };
5968
6148
  manufacture_products: {
5969
6149
  Row: {
6150
+ aantal_te_produceren: number;
5970
6151
  created_at: string;
5971
6152
  description: string | null;
5972
6153
  id: string;
5973
6154
  is_active: boolean;
6155
+ location_id: string | null;
5974
6156
  name: string;
6157
+ partij_nummer: string | null;
6158
+ photos: import("../integrations/supabase/types").Json;
5975
6159
  produced_stock: number;
5976
6160
  product_code: string;
5977
6161
  tenant_id: string;
6162
+ unit: string;
5978
6163
  updated_at: string;
5979
6164
  };
5980
6165
  Insert: {
6166
+ aantal_te_produceren?: number;
5981
6167
  created_at?: string;
5982
6168
  description?: string | null;
5983
6169
  id?: string;
5984
6170
  is_active?: boolean;
6171
+ location_id?: string | null;
5985
6172
  name: string;
6173
+ partij_nummer?: string | null;
6174
+ photos?: import("../integrations/supabase/types").Json;
5986
6175
  produced_stock?: number;
5987
6176
  product_code: string;
5988
6177
  tenant_id: string;
6178
+ unit?: string;
5989
6179
  updated_at?: string;
5990
6180
  };
5991
6181
  Update: {
6182
+ aantal_te_produceren?: number;
5992
6183
  created_at?: string;
5993
6184
  description?: string | null;
5994
6185
  id?: string;
5995
6186
  is_active?: boolean;
6187
+ location_id?: string | null;
5996
6188
  name?: string;
6189
+ partij_nummer?: string | null;
6190
+ photos?: import("../integrations/supabase/types").Json;
5997
6191
  produced_stock?: number;
5998
6192
  product_code?: string;
5999
6193
  tenant_id?: string;
6194
+ unit?: string;
6000
6195
  updated_at?: string;
6001
6196
  };
6002
- Relationships: [];
6197
+ Relationships: [{
6198
+ foreignKeyName: "manufacture_products_location_id_fkey";
6199
+ columns: ["location_id"];
6200
+ isOneToOne: false;
6201
+ referencedRelation: "locations";
6202
+ referencedColumns: ["id"];
6203
+ }];
6003
6204
  };
6004
6205
  monteurs: {
6005
6206
  Row: {
@@ -10863,6 +11064,12 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
10863
11064
  };
10864
11065
  Returns: undefined;
10865
11066
  };
11067
+ next_manufacture_partij: {
11068
+ Args: {
11069
+ _tenant_id: string;
11070
+ };
11071
+ Returns: string;
11072
+ };
10866
11073
  next_order_number: {
10867
11074
  Args: {
10868
11075
  p_prefix: string;
@@ -11584,6 +11791,165 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
11584
11791
  };
11585
11792
  Relationships: [];
11586
11793
  };
11794
+ ai_credentials: {
11795
+ Row: {
11796
+ active: boolean;
11797
+ api_key: string;
11798
+ created_at: string;
11799
+ created_by: string | null;
11800
+ id: string;
11801
+ label: string;
11802
+ provider_id: string;
11803
+ updated_at: string;
11804
+ };
11805
+ Insert: {
11806
+ active?: boolean;
11807
+ api_key: string;
11808
+ created_at?: string;
11809
+ created_by?: string | null;
11810
+ id?: string;
11811
+ label: string;
11812
+ provider_id: string;
11813
+ updated_at?: string;
11814
+ };
11815
+ Update: {
11816
+ active?: boolean;
11817
+ api_key?: string;
11818
+ created_at?: string;
11819
+ created_by?: string | null;
11820
+ id?: string;
11821
+ label?: string;
11822
+ provider_id?: string;
11823
+ updated_at?: string;
11824
+ };
11825
+ Relationships: [{
11826
+ foreignKeyName: "ai_credentials_provider_id_fkey";
11827
+ columns: ["provider_id"];
11828
+ isOneToOne: false;
11829
+ referencedRelation: "ai_providers";
11830
+ referencedColumns: ["id"];
11831
+ }];
11832
+ };
11833
+ ai_models: {
11834
+ Row: {
11835
+ active: boolean;
11836
+ context_window: number | null;
11837
+ created_at: string;
11838
+ display_name: string;
11839
+ id: string;
11840
+ is_default: boolean;
11841
+ modality: string;
11842
+ provider_id: string;
11843
+ slug: string;
11844
+ updated_at: string;
11845
+ };
11846
+ Insert: {
11847
+ active?: boolean;
11848
+ context_window?: number | null;
11849
+ created_at?: string;
11850
+ display_name: string;
11851
+ id?: string;
11852
+ is_default?: boolean;
11853
+ modality?: string;
11854
+ provider_id: string;
11855
+ slug: string;
11856
+ updated_at?: string;
11857
+ };
11858
+ Update: {
11859
+ active?: boolean;
11860
+ context_window?: number | null;
11861
+ created_at?: string;
11862
+ display_name?: string;
11863
+ id?: string;
11864
+ is_default?: boolean;
11865
+ modality?: string;
11866
+ provider_id?: string;
11867
+ slug?: string;
11868
+ updated_at?: string;
11869
+ };
11870
+ Relationships: [{
11871
+ foreignKeyName: "ai_models_provider_id_fkey";
11872
+ columns: ["provider_id"];
11873
+ isOneToOne: false;
11874
+ referencedRelation: "ai_providers";
11875
+ referencedColumns: ["id"];
11876
+ }];
11877
+ };
11878
+ ai_module_bindings: {
11879
+ Row: {
11880
+ consumer_module_id: string;
11881
+ created_at: string;
11882
+ credential_id: string;
11883
+ id: string;
11884
+ model_id: string;
11885
+ notes: string | null;
11886
+ updated_at: string;
11887
+ };
11888
+ Insert: {
11889
+ consumer_module_id: string;
11890
+ created_at?: string;
11891
+ credential_id: string;
11892
+ id?: string;
11893
+ model_id: string;
11894
+ notes?: string | null;
11895
+ updated_at?: string;
11896
+ };
11897
+ Update: {
11898
+ consumer_module_id?: string;
11899
+ created_at?: string;
11900
+ credential_id?: string;
11901
+ id?: string;
11902
+ model_id?: string;
11903
+ notes?: string | null;
11904
+ updated_at?: string;
11905
+ };
11906
+ Relationships: [{
11907
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
11908
+ columns: ["credential_id"];
11909
+ isOneToOne: false;
11910
+ referencedRelation: "ai_credentials";
11911
+ referencedColumns: ["id"];
11912
+ }, {
11913
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
11914
+ columns: ["model_id"];
11915
+ isOneToOne: false;
11916
+ referencedRelation: "ai_models";
11917
+ referencedColumns: ["id"];
11918
+ }];
11919
+ };
11920
+ ai_providers: {
11921
+ Row: {
11922
+ active: boolean;
11923
+ auth_type: string;
11924
+ base_url: string | null;
11925
+ created_at: string;
11926
+ id: string;
11927
+ name: string;
11928
+ slug: string;
11929
+ updated_at: string;
11930
+ };
11931
+ Insert: {
11932
+ active?: boolean;
11933
+ auth_type?: string;
11934
+ base_url?: string | null;
11935
+ created_at?: string;
11936
+ id?: string;
11937
+ name: string;
11938
+ slug: string;
11939
+ updated_at?: string;
11940
+ };
11941
+ Update: {
11942
+ active?: boolean;
11943
+ auth_type?: string;
11944
+ base_url?: string | null;
11945
+ created_at?: string;
11946
+ id?: string;
11947
+ name?: string;
11948
+ slug?: string;
11949
+ updated_at?: string;
11950
+ };
11951
+ Relationships: [];
11952
+ };
11587
11953
  app_settings: {
11588
11954
  Row: {
11589
11955
  created_at: string;
@@ -15187,6 +15553,27 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
15187
15553
  referencedColumns: ["id"];
15188
15554
  }];
15189
15555
  };
15556
+ floriday_continuous_stock_cache: {
15557
+ Row: {
15558
+ connection_id: string;
15559
+ fetched_at: string;
15560
+ number_of_pieces: number;
15561
+ trade_item_id: string;
15562
+ };
15563
+ Insert: {
15564
+ connection_id: string;
15565
+ fetched_at?: string;
15566
+ number_of_pieces?: number;
15567
+ trade_item_id: string;
15568
+ };
15569
+ Update: {
15570
+ connection_id?: string;
15571
+ fetched_at?: string;
15572
+ number_of_pieces?: number;
15573
+ trade_item_id?: string;
15574
+ };
15575
+ Relationships: [];
15576
+ };
15190
15577
  floriday_continuous_stock_queue: {
15191
15578
  Row: {
15192
15579
  attempts: number;
@@ -17310,39 +17697,60 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
17310
17697
  };
17311
17698
  manufacture_products: {
17312
17699
  Row: {
17700
+ aantal_te_produceren: number;
17313
17701
  created_at: string;
17314
17702
  description: string | null;
17315
17703
  id: string;
17316
17704
  is_active: boolean;
17705
+ location_id: string | null;
17317
17706
  name: string;
17707
+ partij_nummer: string | null;
17708
+ photos: import("../integrations/supabase/types").Json;
17318
17709
  produced_stock: number;
17319
17710
  product_code: string;
17320
17711
  tenant_id: string;
17712
+ unit: string;
17321
17713
  updated_at: string;
17322
17714
  };
17323
17715
  Insert: {
17716
+ aantal_te_produceren?: number;
17324
17717
  created_at?: string;
17325
17718
  description?: string | null;
17326
17719
  id?: string;
17327
17720
  is_active?: boolean;
17721
+ location_id?: string | null;
17328
17722
  name: string;
17723
+ partij_nummer?: string | null;
17724
+ photos?: import("../integrations/supabase/types").Json;
17329
17725
  produced_stock?: number;
17330
17726
  product_code: string;
17331
17727
  tenant_id: string;
17728
+ unit?: string;
17332
17729
  updated_at?: string;
17333
17730
  };
17334
17731
  Update: {
17732
+ aantal_te_produceren?: number;
17335
17733
  created_at?: string;
17336
17734
  description?: string | null;
17337
17735
  id?: string;
17338
17736
  is_active?: boolean;
17737
+ location_id?: string | null;
17339
17738
  name?: string;
17739
+ partij_nummer?: string | null;
17740
+ photos?: import("../integrations/supabase/types").Json;
17340
17741
  produced_stock?: number;
17341
17742
  product_code?: string;
17342
17743
  tenant_id?: string;
17744
+ unit?: string;
17343
17745
  updated_at?: string;
17344
17746
  };
17345
- Relationships: [];
17747
+ Relationships: [{
17748
+ foreignKeyName: "manufacture_products_location_id_fkey";
17749
+ columns: ["location_id"];
17750
+ isOneToOne: false;
17751
+ referencedRelation: "locations";
17752
+ referencedColumns: ["id"];
17753
+ }];
17346
17754
  };
17347
17755
  monteurs: {
17348
17756
  Row: {
@@ -22206,6 +22614,12 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
22206
22614
  };
22207
22615
  Returns: undefined;
22208
22616
  };
22617
+ next_manufacture_partij: {
22618
+ Args: {
22619
+ _tenant_id: string;
22620
+ };
22621
+ Returns: string;
22622
+ };
22209
22623
  next_order_number: {
22210
22624
  Args: {
22211
22625
  p_prefix: string;
@@ -22936,6 +23350,165 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
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 listDeliveryLocationsForCustomerCO: import("@tanstack/start
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 listDeliveryLocationsForCustomerCO: import("@tanstack/start
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 listDeliveryLocationsForCustomerCO: import("@tanstack/start
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;
@@ -34293,6 +34914,165 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
34293
34914
  };
34294
34915
  Relationships: [];
34295
34916
  };
34917
+ ai_credentials: {
34918
+ Row: {
34919
+ active: boolean;
34920
+ api_key: string;
34921
+ created_at: string;
34922
+ created_by: string | null;
34923
+ id: string;
34924
+ label: string;
34925
+ provider_id: string;
34926
+ updated_at: string;
34927
+ };
34928
+ Insert: {
34929
+ active?: boolean;
34930
+ api_key: string;
34931
+ created_at?: string;
34932
+ created_by?: string | null;
34933
+ id?: string;
34934
+ label: string;
34935
+ provider_id: string;
34936
+ updated_at?: string;
34937
+ };
34938
+ Update: {
34939
+ active?: boolean;
34940
+ api_key?: string;
34941
+ created_at?: string;
34942
+ created_by?: string | null;
34943
+ id?: string;
34944
+ label?: string;
34945
+ provider_id?: string;
34946
+ updated_at?: string;
34947
+ };
34948
+ Relationships: [{
34949
+ foreignKeyName: "ai_credentials_provider_id_fkey";
34950
+ columns: ["provider_id"];
34951
+ isOneToOne: false;
34952
+ referencedRelation: "ai_providers";
34953
+ referencedColumns: ["id"];
34954
+ }];
34955
+ };
34956
+ ai_models: {
34957
+ Row: {
34958
+ active: boolean;
34959
+ context_window: number | null;
34960
+ created_at: string;
34961
+ display_name: string;
34962
+ id: string;
34963
+ is_default: boolean;
34964
+ modality: string;
34965
+ provider_id: string;
34966
+ slug: string;
34967
+ updated_at: string;
34968
+ };
34969
+ Insert: {
34970
+ active?: boolean;
34971
+ context_window?: number | null;
34972
+ created_at?: string;
34973
+ display_name: string;
34974
+ id?: string;
34975
+ is_default?: boolean;
34976
+ modality?: string;
34977
+ provider_id: string;
34978
+ slug: string;
34979
+ updated_at?: string;
34980
+ };
34981
+ Update: {
34982
+ active?: boolean;
34983
+ context_window?: number | null;
34984
+ created_at?: string;
34985
+ display_name?: string;
34986
+ id?: string;
34987
+ is_default?: boolean;
34988
+ modality?: string;
34989
+ provider_id?: string;
34990
+ slug?: string;
34991
+ updated_at?: string;
34992
+ };
34993
+ Relationships: [{
34994
+ foreignKeyName: "ai_models_provider_id_fkey";
34995
+ columns: ["provider_id"];
34996
+ isOneToOne: false;
34997
+ referencedRelation: "ai_providers";
34998
+ referencedColumns: ["id"];
34999
+ }];
35000
+ };
35001
+ ai_module_bindings: {
35002
+ Row: {
35003
+ consumer_module_id: string;
35004
+ created_at: string;
35005
+ credential_id: string;
35006
+ id: string;
35007
+ model_id: string;
35008
+ notes: string | null;
35009
+ updated_at: string;
35010
+ };
35011
+ Insert: {
35012
+ consumer_module_id: string;
35013
+ created_at?: string;
35014
+ credential_id: string;
35015
+ id?: string;
35016
+ model_id: string;
35017
+ notes?: string | null;
35018
+ updated_at?: string;
35019
+ };
35020
+ Update: {
35021
+ consumer_module_id?: string;
35022
+ created_at?: string;
35023
+ credential_id?: string;
35024
+ id?: string;
35025
+ model_id?: string;
35026
+ notes?: string | null;
35027
+ updated_at?: string;
35028
+ };
35029
+ Relationships: [{
35030
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
35031
+ columns: ["credential_id"];
35032
+ isOneToOne: false;
35033
+ referencedRelation: "ai_credentials";
35034
+ referencedColumns: ["id"];
35035
+ }, {
35036
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
35037
+ columns: ["model_id"];
35038
+ isOneToOne: false;
35039
+ referencedRelation: "ai_models";
35040
+ referencedColumns: ["id"];
35041
+ }];
35042
+ };
35043
+ ai_providers: {
35044
+ Row: {
35045
+ active: boolean;
35046
+ auth_type: string;
35047
+ base_url: string | null;
35048
+ created_at: string;
35049
+ id: string;
35050
+ name: string;
35051
+ slug: string;
35052
+ updated_at: string;
35053
+ };
35054
+ Insert: {
35055
+ active?: boolean;
35056
+ auth_type?: string;
35057
+ base_url?: string | null;
35058
+ created_at?: string;
35059
+ id?: string;
35060
+ name: string;
35061
+ slug: string;
35062
+ updated_at?: string;
35063
+ };
35064
+ Update: {
35065
+ active?: boolean;
35066
+ auth_type?: string;
35067
+ base_url?: string | null;
35068
+ created_at?: string;
35069
+ id?: string;
35070
+ name?: string;
35071
+ slug?: string;
35072
+ updated_at?: string;
35073
+ };
35074
+ Relationships: [];
35075
+ };
34296
35076
  app_settings: {
34297
35077
  Row: {
34298
35078
  created_at: string;
@@ -37896,6 +38676,27 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
37896
38676
  referencedColumns: ["id"];
37897
38677
  }];
37898
38678
  };
38679
+ floriday_continuous_stock_cache: {
38680
+ Row: {
38681
+ connection_id: string;
38682
+ fetched_at: string;
38683
+ number_of_pieces: number;
38684
+ trade_item_id: string;
38685
+ };
38686
+ Insert: {
38687
+ connection_id: string;
38688
+ fetched_at?: string;
38689
+ number_of_pieces?: number;
38690
+ trade_item_id: string;
38691
+ };
38692
+ Update: {
38693
+ connection_id?: string;
38694
+ fetched_at?: string;
38695
+ number_of_pieces?: number;
38696
+ trade_item_id?: string;
38697
+ };
38698
+ Relationships: [];
38699
+ };
37899
38700
  floriday_continuous_stock_queue: {
37900
38701
  Row: {
37901
38702
  attempts: number;
@@ -40019,39 +40820,60 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
40019
40820
  };
40020
40821
  manufacture_products: {
40021
40822
  Row: {
40823
+ aantal_te_produceren: number;
40022
40824
  created_at: string;
40023
40825
  description: string | null;
40024
40826
  id: string;
40025
40827
  is_active: boolean;
40828
+ location_id: string | null;
40026
40829
  name: string;
40830
+ partij_nummer: string | null;
40831
+ photos: import("../integrations/supabase/types").Json;
40027
40832
  produced_stock: number;
40028
40833
  product_code: string;
40029
40834
  tenant_id: string;
40835
+ unit: string;
40030
40836
  updated_at: string;
40031
40837
  };
40032
40838
  Insert: {
40839
+ aantal_te_produceren?: number;
40033
40840
  created_at?: string;
40034
40841
  description?: string | null;
40035
40842
  id?: string;
40036
40843
  is_active?: boolean;
40844
+ location_id?: string | null;
40037
40845
  name: string;
40846
+ partij_nummer?: string | null;
40847
+ photos?: import("../integrations/supabase/types").Json;
40038
40848
  produced_stock?: number;
40039
40849
  product_code: string;
40040
40850
  tenant_id: string;
40851
+ unit?: string;
40041
40852
  updated_at?: string;
40042
40853
  };
40043
40854
  Update: {
40855
+ aantal_te_produceren?: number;
40044
40856
  created_at?: string;
40045
40857
  description?: string | null;
40046
40858
  id?: string;
40047
40859
  is_active?: boolean;
40860
+ location_id?: string | null;
40048
40861
  name?: string;
40862
+ partij_nummer?: string | null;
40863
+ photos?: import("../integrations/supabase/types").Json;
40049
40864
  produced_stock?: number;
40050
40865
  product_code?: string;
40051
40866
  tenant_id?: string;
40867
+ unit?: string;
40052
40868
  updated_at?: string;
40053
40869
  };
40054
- Relationships: [];
40870
+ Relationships: [{
40871
+ foreignKeyName: "manufacture_products_location_id_fkey";
40872
+ columns: ["location_id"];
40873
+ isOneToOne: false;
40874
+ referencedRelation: "locations";
40875
+ referencedColumns: ["id"];
40876
+ }];
40055
40877
  };
40056
40878
  monteurs: {
40057
40879
  Row: {
@@ -44915,6 +45737,12 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
44915
45737
  };
44916
45738
  Returns: undefined;
44917
45739
  };
45740
+ next_manufacture_partij: {
45741
+ Args: {
45742
+ _tenant_id: string;
45743
+ };
45744
+ Returns: string;
45745
+ };
44918
45746
  next_order_number: {
44919
45747
  Args: {
44920
45748
  p_prefix: string;
@@ -45635,6 +46463,165 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
45635
46463
  };
45636
46464
  Relationships: [];
45637
46465
  };
46466
+ ai_credentials: {
46467
+ Row: {
46468
+ active: boolean;
46469
+ api_key: string;
46470
+ created_at: string;
46471
+ created_by: string | null;
46472
+ id: string;
46473
+ label: string;
46474
+ provider_id: string;
46475
+ updated_at: string;
46476
+ };
46477
+ Insert: {
46478
+ active?: boolean;
46479
+ api_key: string;
46480
+ created_at?: string;
46481
+ created_by?: string | null;
46482
+ id?: string;
46483
+ label: string;
46484
+ provider_id: string;
46485
+ updated_at?: string;
46486
+ };
46487
+ Update: {
46488
+ active?: boolean;
46489
+ api_key?: string;
46490
+ created_at?: string;
46491
+ created_by?: string | null;
46492
+ id?: string;
46493
+ label?: string;
46494
+ provider_id?: string;
46495
+ updated_at?: string;
46496
+ };
46497
+ Relationships: [{
46498
+ foreignKeyName: "ai_credentials_provider_id_fkey";
46499
+ columns: ["provider_id"];
46500
+ isOneToOne: false;
46501
+ referencedRelation: "ai_providers";
46502
+ referencedColumns: ["id"];
46503
+ }];
46504
+ };
46505
+ ai_models: {
46506
+ Row: {
46507
+ active: boolean;
46508
+ context_window: number | null;
46509
+ created_at: string;
46510
+ display_name: string;
46511
+ id: string;
46512
+ is_default: boolean;
46513
+ modality: string;
46514
+ provider_id: string;
46515
+ slug: string;
46516
+ updated_at: string;
46517
+ };
46518
+ Insert: {
46519
+ active?: boolean;
46520
+ context_window?: number | null;
46521
+ created_at?: string;
46522
+ display_name: string;
46523
+ id?: string;
46524
+ is_default?: boolean;
46525
+ modality?: string;
46526
+ provider_id: string;
46527
+ slug: string;
46528
+ updated_at?: string;
46529
+ };
46530
+ Update: {
46531
+ active?: boolean;
46532
+ context_window?: number | null;
46533
+ created_at?: string;
46534
+ display_name?: string;
46535
+ id?: string;
46536
+ is_default?: boolean;
46537
+ modality?: string;
46538
+ provider_id?: string;
46539
+ slug?: string;
46540
+ updated_at?: string;
46541
+ };
46542
+ Relationships: [{
46543
+ foreignKeyName: "ai_models_provider_id_fkey";
46544
+ columns: ["provider_id"];
46545
+ isOneToOne: false;
46546
+ referencedRelation: "ai_providers";
46547
+ referencedColumns: ["id"];
46548
+ }];
46549
+ };
46550
+ ai_module_bindings: {
46551
+ Row: {
46552
+ consumer_module_id: string;
46553
+ created_at: string;
46554
+ credential_id: string;
46555
+ id: string;
46556
+ model_id: string;
46557
+ notes: string | null;
46558
+ updated_at: string;
46559
+ };
46560
+ Insert: {
46561
+ consumer_module_id: string;
46562
+ created_at?: string;
46563
+ credential_id: string;
46564
+ id?: string;
46565
+ model_id: string;
46566
+ notes?: string | null;
46567
+ updated_at?: string;
46568
+ };
46569
+ Update: {
46570
+ consumer_module_id?: string;
46571
+ created_at?: string;
46572
+ credential_id?: string;
46573
+ id?: string;
46574
+ model_id?: string;
46575
+ notes?: string | null;
46576
+ updated_at?: string;
46577
+ };
46578
+ Relationships: [{
46579
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
46580
+ columns: ["credential_id"];
46581
+ isOneToOne: false;
46582
+ referencedRelation: "ai_credentials";
46583
+ referencedColumns: ["id"];
46584
+ }, {
46585
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
46586
+ columns: ["model_id"];
46587
+ isOneToOne: false;
46588
+ referencedRelation: "ai_models";
46589
+ referencedColumns: ["id"];
46590
+ }];
46591
+ };
46592
+ ai_providers: {
46593
+ Row: {
46594
+ active: boolean;
46595
+ auth_type: string;
46596
+ base_url: string | null;
46597
+ created_at: string;
46598
+ id: string;
46599
+ name: string;
46600
+ slug: string;
46601
+ updated_at: string;
46602
+ };
46603
+ Insert: {
46604
+ active?: boolean;
46605
+ auth_type?: string;
46606
+ base_url?: string | null;
46607
+ created_at?: string;
46608
+ id?: string;
46609
+ name: string;
46610
+ slug: string;
46611
+ updated_at?: string;
46612
+ };
46613
+ Update: {
46614
+ active?: boolean;
46615
+ auth_type?: string;
46616
+ base_url?: string | null;
46617
+ created_at?: string;
46618
+ id?: string;
46619
+ name?: string;
46620
+ slug?: string;
46621
+ updated_at?: string;
46622
+ };
46623
+ Relationships: [];
46624
+ };
45638
46625
  app_settings: {
45639
46626
  Row: {
45640
46627
  created_at: string;
@@ -49238,6 +50225,27 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
49238
50225
  referencedColumns: ["id"];
49239
50226
  }];
49240
50227
  };
50228
+ floriday_continuous_stock_cache: {
50229
+ Row: {
50230
+ connection_id: string;
50231
+ fetched_at: string;
50232
+ number_of_pieces: number;
50233
+ trade_item_id: string;
50234
+ };
50235
+ Insert: {
50236
+ connection_id: string;
50237
+ fetched_at?: string;
50238
+ number_of_pieces?: number;
50239
+ trade_item_id: string;
50240
+ };
50241
+ Update: {
50242
+ connection_id?: string;
50243
+ fetched_at?: string;
50244
+ number_of_pieces?: number;
50245
+ trade_item_id?: string;
50246
+ };
50247
+ Relationships: [];
50248
+ };
49241
50249
  floriday_continuous_stock_queue: {
49242
50250
  Row: {
49243
50251
  attempts: number;
@@ -51361,39 +52369,60 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
51361
52369
  };
51362
52370
  manufacture_products: {
51363
52371
  Row: {
52372
+ aantal_te_produceren: number;
51364
52373
  created_at: string;
51365
52374
  description: string | null;
51366
52375
  id: string;
51367
52376
  is_active: boolean;
52377
+ location_id: string | null;
51368
52378
  name: string;
52379
+ partij_nummer: string | null;
52380
+ photos: import("../integrations/supabase/types").Json;
51369
52381
  produced_stock: number;
51370
52382
  product_code: string;
51371
52383
  tenant_id: string;
52384
+ unit: string;
51372
52385
  updated_at: string;
51373
52386
  };
51374
52387
  Insert: {
52388
+ aantal_te_produceren?: number;
51375
52389
  created_at?: string;
51376
52390
  description?: string | null;
51377
52391
  id?: string;
51378
52392
  is_active?: boolean;
52393
+ location_id?: string | null;
51379
52394
  name: string;
52395
+ partij_nummer?: string | null;
52396
+ photos?: import("../integrations/supabase/types").Json;
51380
52397
  produced_stock?: number;
51381
52398
  product_code: string;
51382
52399
  tenant_id: string;
52400
+ unit?: string;
51383
52401
  updated_at?: string;
51384
52402
  };
51385
52403
  Update: {
52404
+ aantal_te_produceren?: number;
51386
52405
  created_at?: string;
51387
52406
  description?: string | null;
51388
52407
  id?: string;
51389
52408
  is_active?: boolean;
52409
+ location_id?: string | null;
51390
52410
  name?: string;
52411
+ partij_nummer?: string | null;
52412
+ photos?: import("../integrations/supabase/types").Json;
51391
52413
  produced_stock?: number;
51392
52414
  product_code?: string;
51393
52415
  tenant_id?: string;
52416
+ unit?: string;
51394
52417
  updated_at?: string;
51395
52418
  };
51396
- Relationships: [];
52419
+ Relationships: [{
52420
+ foreignKeyName: "manufacture_products_location_id_fkey";
52421
+ columns: ["location_id"];
52422
+ isOneToOne: false;
52423
+ referencedRelation: "locations";
52424
+ referencedColumns: ["id"];
52425
+ }];
51397
52426
  };
51398
52427
  monteurs: {
51399
52428
  Row: {
@@ -56257,6 +57286,12 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
56257
57286
  };
56258
57287
  Returns: undefined;
56259
57288
  };
57289
+ next_manufacture_partij: {
57290
+ Args: {
57291
+ _tenant_id: string;
57292
+ };
57293
+ Returns: string;
57294
+ };
56260
57295
  next_order_number: {
56261
57296
  Args: {
56262
57297
  p_prefix: string;
@@ -56980,6 +58015,165 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
56980
58015
  };
56981
58016
  Relationships: [];
56982
58017
  };
58018
+ ai_credentials: {
58019
+ Row: {
58020
+ active: boolean;
58021
+ api_key: string;
58022
+ created_at: string;
58023
+ created_by: string | null;
58024
+ id: string;
58025
+ label: string;
58026
+ provider_id: string;
58027
+ updated_at: string;
58028
+ };
58029
+ Insert: {
58030
+ active?: boolean;
58031
+ api_key: string;
58032
+ created_at?: string;
58033
+ created_by?: string | null;
58034
+ id?: string;
58035
+ label: string;
58036
+ provider_id: string;
58037
+ updated_at?: string;
58038
+ };
58039
+ Update: {
58040
+ active?: boolean;
58041
+ api_key?: string;
58042
+ created_at?: string;
58043
+ created_by?: string | null;
58044
+ id?: string;
58045
+ label?: string;
58046
+ provider_id?: string;
58047
+ updated_at?: string;
58048
+ };
58049
+ Relationships: [{
58050
+ foreignKeyName: "ai_credentials_provider_id_fkey";
58051
+ columns: ["provider_id"];
58052
+ isOneToOne: false;
58053
+ referencedRelation: "ai_providers";
58054
+ referencedColumns: ["id"];
58055
+ }];
58056
+ };
58057
+ ai_models: {
58058
+ Row: {
58059
+ active: boolean;
58060
+ context_window: number | null;
58061
+ created_at: string;
58062
+ display_name: string;
58063
+ id: string;
58064
+ is_default: boolean;
58065
+ modality: string;
58066
+ provider_id: string;
58067
+ slug: string;
58068
+ updated_at: string;
58069
+ };
58070
+ Insert: {
58071
+ active?: boolean;
58072
+ context_window?: number | null;
58073
+ created_at?: string;
58074
+ display_name: string;
58075
+ id?: string;
58076
+ is_default?: boolean;
58077
+ modality?: string;
58078
+ provider_id: string;
58079
+ slug: string;
58080
+ updated_at?: string;
58081
+ };
58082
+ Update: {
58083
+ active?: boolean;
58084
+ context_window?: number | null;
58085
+ created_at?: string;
58086
+ display_name?: string;
58087
+ id?: string;
58088
+ is_default?: boolean;
58089
+ modality?: string;
58090
+ provider_id?: string;
58091
+ slug?: string;
58092
+ updated_at?: string;
58093
+ };
58094
+ Relationships: [{
58095
+ foreignKeyName: "ai_models_provider_id_fkey";
58096
+ columns: ["provider_id"];
58097
+ isOneToOne: false;
58098
+ referencedRelation: "ai_providers";
58099
+ referencedColumns: ["id"];
58100
+ }];
58101
+ };
58102
+ ai_module_bindings: {
58103
+ Row: {
58104
+ consumer_module_id: string;
58105
+ created_at: string;
58106
+ credential_id: string;
58107
+ id: string;
58108
+ model_id: string;
58109
+ notes: string | null;
58110
+ updated_at: string;
58111
+ };
58112
+ Insert: {
58113
+ consumer_module_id: string;
58114
+ created_at?: string;
58115
+ credential_id: string;
58116
+ id?: string;
58117
+ model_id: string;
58118
+ notes?: string | null;
58119
+ updated_at?: string;
58120
+ };
58121
+ Update: {
58122
+ consumer_module_id?: string;
58123
+ created_at?: string;
58124
+ credential_id?: string;
58125
+ id?: string;
58126
+ model_id?: string;
58127
+ notes?: string | null;
58128
+ updated_at?: string;
58129
+ };
58130
+ Relationships: [{
58131
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
58132
+ columns: ["credential_id"];
58133
+ isOneToOne: false;
58134
+ referencedRelation: "ai_credentials";
58135
+ referencedColumns: ["id"];
58136
+ }, {
58137
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
58138
+ columns: ["model_id"];
58139
+ isOneToOne: false;
58140
+ referencedRelation: "ai_models";
58141
+ referencedColumns: ["id"];
58142
+ }];
58143
+ };
58144
+ ai_providers: {
58145
+ Row: {
58146
+ active: boolean;
58147
+ auth_type: string;
58148
+ base_url: string | null;
58149
+ created_at: string;
58150
+ id: string;
58151
+ name: string;
58152
+ slug: string;
58153
+ updated_at: string;
58154
+ };
58155
+ Insert: {
58156
+ active?: boolean;
58157
+ auth_type?: string;
58158
+ base_url?: string | null;
58159
+ created_at?: string;
58160
+ id?: string;
58161
+ name: string;
58162
+ slug: string;
58163
+ updated_at?: string;
58164
+ };
58165
+ Update: {
58166
+ active?: boolean;
58167
+ auth_type?: string;
58168
+ base_url?: string | null;
58169
+ created_at?: string;
58170
+ id?: string;
58171
+ name?: string;
58172
+ slug?: string;
58173
+ updated_at?: string;
58174
+ };
58175
+ Relationships: [];
58176
+ };
56983
58177
  app_settings: {
56984
58178
  Row: {
56985
58179
  created_at: string;
@@ -60583,6 +61777,27 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
60583
61777
  referencedColumns: ["id"];
60584
61778
  }];
60585
61779
  };
61780
+ floriday_continuous_stock_cache: {
61781
+ Row: {
61782
+ connection_id: string;
61783
+ fetched_at: string;
61784
+ number_of_pieces: number;
61785
+ trade_item_id: string;
61786
+ };
61787
+ Insert: {
61788
+ connection_id: string;
61789
+ fetched_at?: string;
61790
+ number_of_pieces?: number;
61791
+ trade_item_id: string;
61792
+ };
61793
+ Update: {
61794
+ connection_id?: string;
61795
+ fetched_at?: string;
61796
+ number_of_pieces?: number;
61797
+ trade_item_id?: string;
61798
+ };
61799
+ Relationships: [];
61800
+ };
60586
61801
  floriday_continuous_stock_queue: {
60587
61802
  Row: {
60588
61803
  attempts: number;
@@ -62706,39 +63921,60 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
62706
63921
  };
62707
63922
  manufacture_products: {
62708
63923
  Row: {
63924
+ aantal_te_produceren: number;
62709
63925
  created_at: string;
62710
63926
  description: string | null;
62711
63927
  id: string;
62712
63928
  is_active: boolean;
63929
+ location_id: string | null;
62713
63930
  name: string;
63931
+ partij_nummer: string | null;
63932
+ photos: import("../integrations/supabase/types").Json;
62714
63933
  produced_stock: number;
62715
63934
  product_code: string;
62716
63935
  tenant_id: string;
63936
+ unit: string;
62717
63937
  updated_at: string;
62718
63938
  };
62719
63939
  Insert: {
63940
+ aantal_te_produceren?: number;
62720
63941
  created_at?: string;
62721
63942
  description?: string | null;
62722
63943
  id?: string;
62723
63944
  is_active?: boolean;
63945
+ location_id?: string | null;
62724
63946
  name: string;
63947
+ partij_nummer?: string | null;
63948
+ photos?: import("../integrations/supabase/types").Json;
62725
63949
  produced_stock?: number;
62726
63950
  product_code: string;
62727
63951
  tenant_id: string;
63952
+ unit?: string;
62728
63953
  updated_at?: string;
62729
63954
  };
62730
63955
  Update: {
63956
+ aantal_te_produceren?: number;
62731
63957
  created_at?: string;
62732
63958
  description?: string | null;
62733
63959
  id?: string;
62734
63960
  is_active?: boolean;
63961
+ location_id?: string | null;
62735
63962
  name?: string;
63963
+ partij_nummer?: string | null;
63964
+ photos?: import("../integrations/supabase/types").Json;
62736
63965
  produced_stock?: number;
62737
63966
  product_code?: string;
62738
63967
  tenant_id?: string;
63968
+ unit?: string;
62739
63969
  updated_at?: string;
62740
63970
  };
62741
- Relationships: [];
63971
+ Relationships: [{
63972
+ foreignKeyName: "manufacture_products_location_id_fkey";
63973
+ columns: ["location_id"];
63974
+ isOneToOne: false;
63975
+ referencedRelation: "locations";
63976
+ referencedColumns: ["id"];
63977
+ }];
62742
63978
  };
62743
63979
  monteurs: {
62744
63980
  Row: {
@@ -67602,6 +68838,12 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
67602
68838
  };
67603
68839
  Returns: undefined;
67604
68840
  };
68841
+ next_manufacture_partij: {
68842
+ Args: {
68843
+ _tenant_id: string;
68844
+ };
68845
+ Returns: string;
68846
+ };
67605
68847
  next_order_number: {
67606
68848
  Args: {
67607
68849
  p_prefix: string;
@@ -68319,6 +69561,165 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
68319
69561
  };
68320
69562
  Relationships: [];
68321
69563
  };
69564
+ ai_credentials: {
69565
+ Row: {
69566
+ active: boolean;
69567
+ api_key: string;
69568
+ created_at: string;
69569
+ created_by: string | null;
69570
+ id: string;
69571
+ label: string;
69572
+ provider_id: string;
69573
+ updated_at: string;
69574
+ };
69575
+ Insert: {
69576
+ active?: boolean;
69577
+ api_key: string;
69578
+ created_at?: string;
69579
+ created_by?: string | null;
69580
+ id?: string;
69581
+ label: string;
69582
+ provider_id: string;
69583
+ updated_at?: string;
69584
+ };
69585
+ Update: {
69586
+ active?: boolean;
69587
+ api_key?: string;
69588
+ created_at?: string;
69589
+ created_by?: string | null;
69590
+ id?: string;
69591
+ label?: string;
69592
+ provider_id?: string;
69593
+ updated_at?: string;
69594
+ };
69595
+ Relationships: [{
69596
+ foreignKeyName: "ai_credentials_provider_id_fkey";
69597
+ columns: ["provider_id"];
69598
+ isOneToOne: false;
69599
+ referencedRelation: "ai_providers";
69600
+ referencedColumns: ["id"];
69601
+ }];
69602
+ };
69603
+ ai_models: {
69604
+ Row: {
69605
+ active: boolean;
69606
+ context_window: number | null;
69607
+ created_at: string;
69608
+ display_name: string;
69609
+ id: string;
69610
+ is_default: boolean;
69611
+ modality: string;
69612
+ provider_id: string;
69613
+ slug: string;
69614
+ updated_at: string;
69615
+ };
69616
+ Insert: {
69617
+ active?: boolean;
69618
+ context_window?: number | null;
69619
+ created_at?: string;
69620
+ display_name: string;
69621
+ id?: string;
69622
+ is_default?: boolean;
69623
+ modality?: string;
69624
+ provider_id: string;
69625
+ slug: string;
69626
+ updated_at?: string;
69627
+ };
69628
+ Update: {
69629
+ active?: boolean;
69630
+ context_window?: number | null;
69631
+ created_at?: string;
69632
+ display_name?: string;
69633
+ id?: string;
69634
+ is_default?: boolean;
69635
+ modality?: string;
69636
+ provider_id?: string;
69637
+ slug?: string;
69638
+ updated_at?: string;
69639
+ };
69640
+ Relationships: [{
69641
+ foreignKeyName: "ai_models_provider_id_fkey";
69642
+ columns: ["provider_id"];
69643
+ isOneToOne: false;
69644
+ referencedRelation: "ai_providers";
69645
+ referencedColumns: ["id"];
69646
+ }];
69647
+ };
69648
+ ai_module_bindings: {
69649
+ Row: {
69650
+ consumer_module_id: string;
69651
+ created_at: string;
69652
+ credential_id: string;
69653
+ id: string;
69654
+ model_id: string;
69655
+ notes: string | null;
69656
+ updated_at: string;
69657
+ };
69658
+ Insert: {
69659
+ consumer_module_id: string;
69660
+ created_at?: string;
69661
+ credential_id: string;
69662
+ id?: string;
69663
+ model_id: string;
69664
+ notes?: string | null;
69665
+ updated_at?: string;
69666
+ };
69667
+ Update: {
69668
+ consumer_module_id?: string;
69669
+ created_at?: string;
69670
+ credential_id?: string;
69671
+ id?: string;
69672
+ model_id?: string;
69673
+ notes?: string | null;
69674
+ updated_at?: string;
69675
+ };
69676
+ Relationships: [{
69677
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
69678
+ columns: ["credential_id"];
69679
+ isOneToOne: false;
69680
+ referencedRelation: "ai_credentials";
69681
+ referencedColumns: ["id"];
69682
+ }, {
69683
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
69684
+ columns: ["model_id"];
69685
+ isOneToOne: false;
69686
+ referencedRelation: "ai_models";
69687
+ referencedColumns: ["id"];
69688
+ }];
69689
+ };
69690
+ ai_providers: {
69691
+ Row: {
69692
+ active: boolean;
69693
+ auth_type: string;
69694
+ base_url: string | null;
69695
+ created_at: string;
69696
+ id: string;
69697
+ name: string;
69698
+ slug: string;
69699
+ updated_at: string;
69700
+ };
69701
+ Insert: {
69702
+ active?: boolean;
69703
+ auth_type?: string;
69704
+ base_url?: string | null;
69705
+ created_at?: string;
69706
+ id?: string;
69707
+ name: string;
69708
+ slug: string;
69709
+ updated_at?: string;
69710
+ };
69711
+ Update: {
69712
+ active?: boolean;
69713
+ auth_type?: string;
69714
+ base_url?: string | null;
69715
+ created_at?: string;
69716
+ id?: string;
69717
+ name?: string;
69718
+ slug?: string;
69719
+ updated_at?: string;
69720
+ };
69721
+ Relationships: [];
69722
+ };
68322
69723
  app_settings: {
68323
69724
  Row: {
68324
69725
  created_at: string;
@@ -71922,6 +73323,27 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
71922
73323
  referencedColumns: ["id"];
71923
73324
  }];
71924
73325
  };
73326
+ floriday_continuous_stock_cache: {
73327
+ Row: {
73328
+ connection_id: string;
73329
+ fetched_at: string;
73330
+ number_of_pieces: number;
73331
+ trade_item_id: string;
73332
+ };
73333
+ Insert: {
73334
+ connection_id: string;
73335
+ fetched_at?: string;
73336
+ number_of_pieces?: number;
73337
+ trade_item_id: string;
73338
+ };
73339
+ Update: {
73340
+ connection_id?: string;
73341
+ fetched_at?: string;
73342
+ number_of_pieces?: number;
73343
+ trade_item_id?: string;
73344
+ };
73345
+ Relationships: [];
73346
+ };
71925
73347
  floriday_continuous_stock_queue: {
71926
73348
  Row: {
71927
73349
  attempts: number;
@@ -74045,39 +75467,60 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
74045
75467
  };
74046
75468
  manufacture_products: {
74047
75469
  Row: {
75470
+ aantal_te_produceren: number;
74048
75471
  created_at: string;
74049
75472
  description: string | null;
74050
75473
  id: string;
74051
75474
  is_active: boolean;
75475
+ location_id: string | null;
74052
75476
  name: string;
75477
+ partij_nummer: string | null;
75478
+ photos: import("../integrations/supabase/types").Json;
74053
75479
  produced_stock: number;
74054
75480
  product_code: string;
74055
75481
  tenant_id: string;
75482
+ unit: string;
74056
75483
  updated_at: string;
74057
75484
  };
74058
75485
  Insert: {
75486
+ aantal_te_produceren?: number;
74059
75487
  created_at?: string;
74060
75488
  description?: string | null;
74061
75489
  id?: string;
74062
75490
  is_active?: boolean;
75491
+ location_id?: string | null;
74063
75492
  name: string;
75493
+ partij_nummer?: string | null;
75494
+ photos?: import("../integrations/supabase/types").Json;
74064
75495
  produced_stock?: number;
74065
75496
  product_code: string;
74066
75497
  tenant_id: string;
75498
+ unit?: string;
74067
75499
  updated_at?: string;
74068
75500
  };
74069
75501
  Update: {
75502
+ aantal_te_produceren?: number;
74070
75503
  created_at?: string;
74071
75504
  description?: string | null;
74072
75505
  id?: string;
74073
75506
  is_active?: boolean;
75507
+ location_id?: string | null;
74074
75508
  name?: string;
75509
+ partij_nummer?: string | null;
75510
+ photos?: import("../integrations/supabase/types").Json;
74075
75511
  produced_stock?: number;
74076
75512
  product_code?: string;
74077
75513
  tenant_id?: string;
75514
+ unit?: string;
74078
75515
  updated_at?: string;
74079
75516
  };
74080
- Relationships: [];
75517
+ Relationships: [{
75518
+ foreignKeyName: "manufacture_products_location_id_fkey";
75519
+ columns: ["location_id"];
75520
+ isOneToOne: false;
75521
+ referencedRelation: "locations";
75522
+ referencedColumns: ["id"];
75523
+ }];
74081
75524
  };
74082
75525
  monteurs: {
74083
75526
  Row: {
@@ -78941,6 +80384,12 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
78941
80384
  };
78942
80385
  Returns: undefined;
78943
80386
  };
80387
+ next_manufacture_partij: {
80388
+ Args: {
80389
+ _tenant_id: string;
80390
+ };
80391
+ Returns: string;
80392
+ };
78944
80393
  next_order_number: {
78945
80394
  Args: {
78946
80395
  p_prefix: string;
@@ -79678,6 +81127,165 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
79678
81127
  };
79679
81128
  Relationships: [];
79680
81129
  };
81130
+ ai_credentials: {
81131
+ Row: {
81132
+ active: boolean;
81133
+ api_key: string;
81134
+ created_at: string;
81135
+ created_by: string | null;
81136
+ id: string;
81137
+ label: string;
81138
+ provider_id: string;
81139
+ updated_at: string;
81140
+ };
81141
+ Insert: {
81142
+ active?: boolean;
81143
+ api_key: string;
81144
+ created_at?: string;
81145
+ created_by?: string | null;
81146
+ id?: string;
81147
+ label: string;
81148
+ provider_id: string;
81149
+ updated_at?: string;
81150
+ };
81151
+ Update: {
81152
+ active?: boolean;
81153
+ api_key?: string;
81154
+ created_at?: string;
81155
+ created_by?: string | null;
81156
+ id?: string;
81157
+ label?: string;
81158
+ provider_id?: string;
81159
+ updated_at?: string;
81160
+ };
81161
+ Relationships: [{
81162
+ foreignKeyName: "ai_credentials_provider_id_fkey";
81163
+ columns: ["provider_id"];
81164
+ isOneToOne: false;
81165
+ referencedRelation: "ai_providers";
81166
+ referencedColumns: ["id"];
81167
+ }];
81168
+ };
81169
+ ai_models: {
81170
+ Row: {
81171
+ active: boolean;
81172
+ context_window: number | null;
81173
+ created_at: string;
81174
+ display_name: string;
81175
+ id: string;
81176
+ is_default: boolean;
81177
+ modality: string;
81178
+ provider_id: string;
81179
+ slug: string;
81180
+ updated_at: string;
81181
+ };
81182
+ Insert: {
81183
+ active?: boolean;
81184
+ context_window?: number | null;
81185
+ created_at?: string;
81186
+ display_name: string;
81187
+ id?: string;
81188
+ is_default?: boolean;
81189
+ modality?: string;
81190
+ provider_id: string;
81191
+ slug: string;
81192
+ updated_at?: string;
81193
+ };
81194
+ Update: {
81195
+ active?: boolean;
81196
+ context_window?: number | null;
81197
+ created_at?: string;
81198
+ display_name?: string;
81199
+ id?: string;
81200
+ is_default?: boolean;
81201
+ modality?: string;
81202
+ provider_id?: string;
81203
+ slug?: string;
81204
+ updated_at?: string;
81205
+ };
81206
+ Relationships: [{
81207
+ foreignKeyName: "ai_models_provider_id_fkey";
81208
+ columns: ["provider_id"];
81209
+ isOneToOne: false;
81210
+ referencedRelation: "ai_providers";
81211
+ referencedColumns: ["id"];
81212
+ }];
81213
+ };
81214
+ ai_module_bindings: {
81215
+ Row: {
81216
+ consumer_module_id: string;
81217
+ created_at: string;
81218
+ credential_id: string;
81219
+ id: string;
81220
+ model_id: string;
81221
+ notes: string | null;
81222
+ updated_at: string;
81223
+ };
81224
+ Insert: {
81225
+ consumer_module_id: string;
81226
+ created_at?: string;
81227
+ credential_id: string;
81228
+ id?: string;
81229
+ model_id: string;
81230
+ notes?: string | null;
81231
+ updated_at?: string;
81232
+ };
81233
+ Update: {
81234
+ consumer_module_id?: string;
81235
+ created_at?: string;
81236
+ credential_id?: string;
81237
+ id?: string;
81238
+ model_id?: string;
81239
+ notes?: string | null;
81240
+ updated_at?: string;
81241
+ };
81242
+ Relationships: [{
81243
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
81244
+ columns: ["credential_id"];
81245
+ isOneToOne: false;
81246
+ referencedRelation: "ai_credentials";
81247
+ referencedColumns: ["id"];
81248
+ }, {
81249
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
81250
+ columns: ["model_id"];
81251
+ isOneToOne: false;
81252
+ referencedRelation: "ai_models";
81253
+ referencedColumns: ["id"];
81254
+ }];
81255
+ };
81256
+ ai_providers: {
81257
+ Row: {
81258
+ active: boolean;
81259
+ auth_type: string;
81260
+ base_url: string | null;
81261
+ created_at: string;
81262
+ id: string;
81263
+ name: string;
81264
+ slug: string;
81265
+ updated_at: string;
81266
+ };
81267
+ Insert: {
81268
+ active?: boolean;
81269
+ auth_type?: string;
81270
+ base_url?: string | null;
81271
+ created_at?: string;
81272
+ id?: string;
81273
+ name: string;
81274
+ slug: string;
81275
+ updated_at?: string;
81276
+ };
81277
+ Update: {
81278
+ active?: boolean;
81279
+ auth_type?: string;
81280
+ base_url?: string | null;
81281
+ created_at?: string;
81282
+ id?: string;
81283
+ name?: string;
81284
+ slug?: string;
81285
+ updated_at?: string;
81286
+ };
81287
+ Relationships: [];
81288
+ };
79681
81289
  app_settings: {
79682
81290
  Row: {
79683
81291
  created_at: string;
@@ -83281,6 +84889,27 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
83281
84889
  referencedColumns: ["id"];
83282
84890
  }];
83283
84891
  };
84892
+ floriday_continuous_stock_cache: {
84893
+ Row: {
84894
+ connection_id: string;
84895
+ fetched_at: string;
84896
+ number_of_pieces: number;
84897
+ trade_item_id: string;
84898
+ };
84899
+ Insert: {
84900
+ connection_id: string;
84901
+ fetched_at?: string;
84902
+ number_of_pieces?: number;
84903
+ trade_item_id: string;
84904
+ };
84905
+ Update: {
84906
+ connection_id?: string;
84907
+ fetched_at?: string;
84908
+ number_of_pieces?: number;
84909
+ trade_item_id?: string;
84910
+ };
84911
+ Relationships: [];
84912
+ };
83284
84913
  floriday_continuous_stock_queue: {
83285
84914
  Row: {
83286
84915
  attempts: number;
@@ -85404,39 +87033,60 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
85404
87033
  };
85405
87034
  manufacture_products: {
85406
87035
  Row: {
87036
+ aantal_te_produceren: number;
85407
87037
  created_at: string;
85408
87038
  description: string | null;
85409
87039
  id: string;
85410
87040
  is_active: boolean;
87041
+ location_id: string | null;
85411
87042
  name: string;
87043
+ partij_nummer: string | null;
87044
+ photos: import("../integrations/supabase/types").Json;
85412
87045
  produced_stock: number;
85413
87046
  product_code: string;
85414
87047
  tenant_id: string;
87048
+ unit: string;
85415
87049
  updated_at: string;
85416
87050
  };
85417
87051
  Insert: {
87052
+ aantal_te_produceren?: number;
85418
87053
  created_at?: string;
85419
87054
  description?: string | null;
85420
87055
  id?: string;
85421
87056
  is_active?: boolean;
87057
+ location_id?: string | null;
85422
87058
  name: string;
87059
+ partij_nummer?: string | null;
87060
+ photos?: import("../integrations/supabase/types").Json;
85423
87061
  produced_stock?: number;
85424
87062
  product_code: string;
85425
87063
  tenant_id: string;
87064
+ unit?: string;
85426
87065
  updated_at?: string;
85427
87066
  };
85428
87067
  Update: {
87068
+ aantal_te_produceren?: number;
85429
87069
  created_at?: string;
85430
87070
  description?: string | null;
85431
87071
  id?: string;
85432
87072
  is_active?: boolean;
87073
+ location_id?: string | null;
85433
87074
  name?: string;
87075
+ partij_nummer?: string | null;
87076
+ photos?: import("../integrations/supabase/types").Json;
85434
87077
  produced_stock?: number;
85435
87078
  product_code?: string;
85436
87079
  tenant_id?: string;
87080
+ unit?: string;
85437
87081
  updated_at?: string;
85438
87082
  };
85439
- Relationships: [];
87083
+ Relationships: [{
87084
+ foreignKeyName: "manufacture_products_location_id_fkey";
87085
+ columns: ["location_id"];
87086
+ isOneToOne: false;
87087
+ referencedRelation: "locations";
87088
+ referencedColumns: ["id"];
87089
+ }];
85440
87090
  };
85441
87091
  monteurs: {
85442
87092
  Row: {
@@ -90300,6 +91950,12 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
90300
91950
  };
90301
91951
  Returns: undefined;
90302
91952
  };
91953
+ next_manufacture_partij: {
91954
+ Args: {
91955
+ _tenant_id: string;
91956
+ };
91957
+ Returns: string;
91958
+ };
90303
91959
  next_order_number: {
90304
91960
  Args: {
90305
91961
  p_prefix: string;
@@ -91041,6 +92697,165 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
91041
92697
  };
91042
92698
  Relationships: [];
91043
92699
  };
92700
+ ai_credentials: {
92701
+ Row: {
92702
+ active: boolean;
92703
+ api_key: string;
92704
+ created_at: string;
92705
+ created_by: string | null;
92706
+ id: string;
92707
+ label: string;
92708
+ provider_id: string;
92709
+ updated_at: string;
92710
+ };
92711
+ Insert: {
92712
+ active?: boolean;
92713
+ api_key: string;
92714
+ created_at?: string;
92715
+ created_by?: string | null;
92716
+ id?: string;
92717
+ label: string;
92718
+ provider_id: string;
92719
+ updated_at?: string;
92720
+ };
92721
+ Update: {
92722
+ active?: boolean;
92723
+ api_key?: string;
92724
+ created_at?: string;
92725
+ created_by?: string | null;
92726
+ id?: string;
92727
+ label?: string;
92728
+ provider_id?: string;
92729
+ updated_at?: string;
92730
+ };
92731
+ Relationships: [{
92732
+ foreignKeyName: "ai_credentials_provider_id_fkey";
92733
+ columns: ["provider_id"];
92734
+ isOneToOne: false;
92735
+ referencedRelation: "ai_providers";
92736
+ referencedColumns: ["id"];
92737
+ }];
92738
+ };
92739
+ ai_models: {
92740
+ Row: {
92741
+ active: boolean;
92742
+ context_window: number | null;
92743
+ created_at: string;
92744
+ display_name: string;
92745
+ id: string;
92746
+ is_default: boolean;
92747
+ modality: string;
92748
+ provider_id: string;
92749
+ slug: string;
92750
+ updated_at: string;
92751
+ };
92752
+ Insert: {
92753
+ active?: boolean;
92754
+ context_window?: number | null;
92755
+ created_at?: string;
92756
+ display_name: string;
92757
+ id?: string;
92758
+ is_default?: boolean;
92759
+ modality?: string;
92760
+ provider_id: string;
92761
+ slug: string;
92762
+ updated_at?: string;
92763
+ };
92764
+ Update: {
92765
+ active?: boolean;
92766
+ context_window?: number | null;
92767
+ created_at?: string;
92768
+ display_name?: string;
92769
+ id?: string;
92770
+ is_default?: boolean;
92771
+ modality?: string;
92772
+ provider_id?: string;
92773
+ slug?: string;
92774
+ updated_at?: string;
92775
+ };
92776
+ Relationships: [{
92777
+ foreignKeyName: "ai_models_provider_id_fkey";
92778
+ columns: ["provider_id"];
92779
+ isOneToOne: false;
92780
+ referencedRelation: "ai_providers";
92781
+ referencedColumns: ["id"];
92782
+ }];
92783
+ };
92784
+ ai_module_bindings: {
92785
+ Row: {
92786
+ consumer_module_id: string;
92787
+ created_at: string;
92788
+ credential_id: string;
92789
+ id: string;
92790
+ model_id: string;
92791
+ notes: string | null;
92792
+ updated_at: string;
92793
+ };
92794
+ Insert: {
92795
+ consumer_module_id: string;
92796
+ created_at?: string;
92797
+ credential_id: string;
92798
+ id?: string;
92799
+ model_id: string;
92800
+ notes?: string | null;
92801
+ updated_at?: string;
92802
+ };
92803
+ Update: {
92804
+ consumer_module_id?: string;
92805
+ created_at?: string;
92806
+ credential_id?: string;
92807
+ id?: string;
92808
+ model_id?: string;
92809
+ notes?: string | null;
92810
+ updated_at?: string;
92811
+ };
92812
+ Relationships: [{
92813
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
92814
+ columns: ["credential_id"];
92815
+ isOneToOne: false;
92816
+ referencedRelation: "ai_credentials";
92817
+ referencedColumns: ["id"];
92818
+ }, {
92819
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
92820
+ columns: ["model_id"];
92821
+ isOneToOne: false;
92822
+ referencedRelation: "ai_models";
92823
+ referencedColumns: ["id"];
92824
+ }];
92825
+ };
92826
+ ai_providers: {
92827
+ Row: {
92828
+ active: boolean;
92829
+ auth_type: string;
92830
+ base_url: string | null;
92831
+ created_at: string;
92832
+ id: string;
92833
+ name: string;
92834
+ slug: string;
92835
+ updated_at: string;
92836
+ };
92837
+ Insert: {
92838
+ active?: boolean;
92839
+ auth_type?: string;
92840
+ base_url?: string | null;
92841
+ created_at?: string;
92842
+ id?: string;
92843
+ name: string;
92844
+ slug: string;
92845
+ updated_at?: string;
92846
+ };
92847
+ Update: {
92848
+ active?: boolean;
92849
+ auth_type?: string;
92850
+ base_url?: string | null;
92851
+ created_at?: string;
92852
+ id?: string;
92853
+ name?: string;
92854
+ slug?: string;
92855
+ updated_at?: string;
92856
+ };
92857
+ Relationships: [];
92858
+ };
91044
92859
  app_settings: {
91045
92860
  Row: {
91046
92861
  created_at: string;
@@ -94644,6 +96459,27 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
94644
96459
  referencedColumns: ["id"];
94645
96460
  }];
94646
96461
  };
96462
+ floriday_continuous_stock_cache: {
96463
+ Row: {
96464
+ connection_id: string;
96465
+ fetched_at: string;
96466
+ number_of_pieces: number;
96467
+ trade_item_id: string;
96468
+ };
96469
+ Insert: {
96470
+ connection_id: string;
96471
+ fetched_at?: string;
96472
+ number_of_pieces?: number;
96473
+ trade_item_id: string;
96474
+ };
96475
+ Update: {
96476
+ connection_id?: string;
96477
+ fetched_at?: string;
96478
+ number_of_pieces?: number;
96479
+ trade_item_id?: string;
96480
+ };
96481
+ Relationships: [];
96482
+ };
94647
96483
  floriday_continuous_stock_queue: {
94648
96484
  Row: {
94649
96485
  attempts: number;
@@ -96767,39 +98603,60 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
96767
98603
  };
96768
98604
  manufacture_products: {
96769
98605
  Row: {
98606
+ aantal_te_produceren: number;
96770
98607
  created_at: string;
96771
98608
  description: string | null;
96772
98609
  id: string;
96773
98610
  is_active: boolean;
98611
+ location_id: string | null;
96774
98612
  name: string;
98613
+ partij_nummer: string | null;
98614
+ photos: import("../integrations/supabase/types").Json;
96775
98615
  produced_stock: number;
96776
98616
  product_code: string;
96777
98617
  tenant_id: string;
98618
+ unit: string;
96778
98619
  updated_at: string;
96779
98620
  };
96780
98621
  Insert: {
98622
+ aantal_te_produceren?: number;
96781
98623
  created_at?: string;
96782
98624
  description?: string | null;
96783
98625
  id?: string;
96784
98626
  is_active?: boolean;
98627
+ location_id?: string | null;
96785
98628
  name: string;
98629
+ partij_nummer?: string | null;
98630
+ photos?: import("../integrations/supabase/types").Json;
96786
98631
  produced_stock?: number;
96787
98632
  product_code: string;
96788
98633
  tenant_id: string;
98634
+ unit?: string;
96789
98635
  updated_at?: string;
96790
98636
  };
96791
98637
  Update: {
98638
+ aantal_te_produceren?: number;
96792
98639
  created_at?: string;
96793
98640
  description?: string | null;
96794
98641
  id?: string;
96795
98642
  is_active?: boolean;
98643
+ location_id?: string | null;
96796
98644
  name?: string;
98645
+ partij_nummer?: string | null;
98646
+ photos?: import("../integrations/supabase/types").Json;
96797
98647
  produced_stock?: number;
96798
98648
  product_code?: string;
96799
98649
  tenant_id?: string;
98650
+ unit?: string;
96800
98651
  updated_at?: string;
96801
98652
  };
96802
- Relationships: [];
98653
+ Relationships: [{
98654
+ foreignKeyName: "manufacture_products_location_id_fkey";
98655
+ columns: ["location_id"];
98656
+ isOneToOne: false;
98657
+ referencedRelation: "locations";
98658
+ referencedColumns: ["id"];
98659
+ }];
96803
98660
  };
96804
98661
  monteurs: {
96805
98662
  Row: {
@@ -101663,6 +103520,12 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
101663
103520
  };
101664
103521
  Returns: undefined;
101665
103522
  };
103523
+ next_manufacture_partij: {
103524
+ Args: {
103525
+ _tenant_id: string;
103526
+ };
103527
+ Returns: string;
103528
+ };
101666
103529
  next_order_number: {
101667
103530
  Args: {
101668
103531
  p_prefix: string;