@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
@@ -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;
@@ -22680,13 +23094,17 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
22680
23094
  }, undefined, undefined, undefined>], undefined, Promise<{
22681
23095
  items: {
22682
23096
  id: string;
22683
- product: string;
23097
+ product: any;
23098
+ article_code: string | null;
22684
23099
  unit: string;
22685
23100
  sale_price: number | null;
22686
23101
  plants_per_crate: number;
22687
23102
  crates_per_layer: number;
22688
23103
  layers_per_cart: number;
22689
- custom_fields: import("../integrations/supabase/types").Json;
23104
+ physical_stock: number;
23105
+ reserved_stock: number;
23106
+ available_stock: number;
23107
+ in_stock: boolean;
22690
23108
  }[];
22691
23109
  }>>;
22692
23110
  export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
@@ -22932,6 +23350,165 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
22932
23350
  };
22933
23351
  Relationships: [];
22934
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
+ };
22935
23512
  app_settings: {
22936
23513
  Row: {
22937
23514
  created_at: string;
@@ -26535,6 +27112,27 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
26535
27112
  referencedColumns: ["id"];
26536
27113
  }];
26537
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
+ };
26538
27136
  floriday_continuous_stock_queue: {
26539
27137
  Row: {
26540
27138
  attempts: number;
@@ -28658,39 +29256,60 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
28658
29256
  };
28659
29257
  manufacture_products: {
28660
29258
  Row: {
29259
+ aantal_te_produceren: number;
28661
29260
  created_at: string;
28662
29261
  description: string | null;
28663
29262
  id: string;
28664
29263
  is_active: boolean;
29264
+ location_id: string | null;
28665
29265
  name: string;
29266
+ partij_nummer: string | null;
29267
+ photos: import("../integrations/supabase/types").Json;
28666
29268
  produced_stock: number;
28667
29269
  product_code: string;
28668
29270
  tenant_id: string;
29271
+ unit: string;
28669
29272
  updated_at: string;
28670
29273
  };
28671
29274
  Insert: {
29275
+ aantal_te_produceren?: number;
28672
29276
  created_at?: string;
28673
29277
  description?: string | null;
28674
29278
  id?: string;
28675
29279
  is_active?: boolean;
29280
+ location_id?: string | null;
28676
29281
  name: string;
29282
+ partij_nummer?: string | null;
29283
+ photos?: import("../integrations/supabase/types").Json;
28677
29284
  produced_stock?: number;
28678
29285
  product_code: string;
28679
29286
  tenant_id: string;
29287
+ unit?: string;
28680
29288
  updated_at?: string;
28681
29289
  };
28682
29290
  Update: {
29291
+ aantal_te_produceren?: number;
28683
29292
  created_at?: string;
28684
29293
  description?: string | null;
28685
29294
  id?: string;
28686
29295
  is_active?: boolean;
29296
+ location_id?: string | null;
28687
29297
  name?: string;
29298
+ partij_nummer?: string | null;
29299
+ photos?: import("../integrations/supabase/types").Json;
28688
29300
  produced_stock?: number;
28689
29301
  product_code?: string;
28690
29302
  tenant_id?: string;
29303
+ unit?: string;
28691
29304
  updated_at?: string;
28692
29305
  };
28693
- Relationships: [];
29306
+ Relationships: [{
29307
+ foreignKeyName: "manufacture_products_location_id_fkey";
29308
+ columns: ["location_id"];
29309
+ isOneToOne: false;
29310
+ referencedRelation: "locations";
29311
+ referencedColumns: ["id"];
29312
+ }];
28694
29313
  };
28695
29314
  monteurs: {
28696
29315
  Row: {
@@ -33554,6 +34173,12 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
33554
34173
  };
33555
34174
  Returns: undefined;
33556
34175
  };
34176
+ next_manufacture_partij: {
34177
+ Args: {
34178
+ _tenant_id: string;
34179
+ };
34180
+ Returns: string;
34181
+ };
33557
34182
  next_order_number: {
33558
34183
  Args: {
33559
34184
  p_prefix: string;
@@ -34289,6 +34914,165 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
34289
34914
  };
34290
34915
  Relationships: [];
34291
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
+ };
34292
35076
  app_settings: {
34293
35077
  Row: {
34294
35078
  created_at: string;
@@ -37892,6 +38676,27 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
37892
38676
  referencedColumns: ["id"];
37893
38677
  }];
37894
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
+ };
37895
38700
  floriday_continuous_stock_queue: {
37896
38701
  Row: {
37897
38702
  attempts: number;
@@ -40015,39 +40820,60 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
40015
40820
  };
40016
40821
  manufacture_products: {
40017
40822
  Row: {
40823
+ aantal_te_produceren: number;
40018
40824
  created_at: string;
40019
40825
  description: string | null;
40020
40826
  id: string;
40021
40827
  is_active: boolean;
40828
+ location_id: string | null;
40022
40829
  name: string;
40830
+ partij_nummer: string | null;
40831
+ photos: import("../integrations/supabase/types").Json;
40023
40832
  produced_stock: number;
40024
40833
  product_code: string;
40025
40834
  tenant_id: string;
40835
+ unit: string;
40026
40836
  updated_at: string;
40027
40837
  };
40028
40838
  Insert: {
40839
+ aantal_te_produceren?: number;
40029
40840
  created_at?: string;
40030
40841
  description?: string | null;
40031
40842
  id?: string;
40032
40843
  is_active?: boolean;
40844
+ location_id?: string | null;
40033
40845
  name: string;
40846
+ partij_nummer?: string | null;
40847
+ photos?: import("../integrations/supabase/types").Json;
40034
40848
  produced_stock?: number;
40035
40849
  product_code: string;
40036
40850
  tenant_id: string;
40851
+ unit?: string;
40037
40852
  updated_at?: string;
40038
40853
  };
40039
40854
  Update: {
40855
+ aantal_te_produceren?: number;
40040
40856
  created_at?: string;
40041
40857
  description?: string | null;
40042
40858
  id?: string;
40043
40859
  is_active?: boolean;
40860
+ location_id?: string | null;
40044
40861
  name?: string;
40862
+ partij_nummer?: string | null;
40863
+ photos?: import("../integrations/supabase/types").Json;
40045
40864
  produced_stock?: number;
40046
40865
  product_code?: string;
40047
40866
  tenant_id?: string;
40867
+ unit?: string;
40048
40868
  updated_at?: string;
40049
40869
  };
40050
- Relationships: [];
40870
+ Relationships: [{
40871
+ foreignKeyName: "manufacture_products_location_id_fkey";
40872
+ columns: ["location_id"];
40873
+ isOneToOne: false;
40874
+ referencedRelation: "locations";
40875
+ referencedColumns: ["id"];
40876
+ }];
40051
40877
  };
40052
40878
  monteurs: {
40053
40879
  Row: {
@@ -44911,6 +45737,12 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
44911
45737
  };
44912
45738
  Returns: undefined;
44913
45739
  };
45740
+ next_manufacture_partij: {
45741
+ Args: {
45742
+ _tenant_id: string;
45743
+ };
45744
+ Returns: string;
45745
+ };
44914
45746
  next_order_number: {
44915
45747
  Args: {
44916
45748
  p_prefix: string;
@@ -45631,6 +46463,165 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
45631
46463
  };
45632
46464
  Relationships: [];
45633
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
+ };
45634
46625
  app_settings: {
45635
46626
  Row: {
45636
46627
  created_at: string;
@@ -49234,6 +50225,27 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
49234
50225
  referencedColumns: ["id"];
49235
50226
  }];
49236
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
+ };
49237
50249
  floriday_continuous_stock_queue: {
49238
50250
  Row: {
49239
50251
  attempts: number;
@@ -51357,39 +52369,60 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
51357
52369
  };
51358
52370
  manufacture_products: {
51359
52371
  Row: {
52372
+ aantal_te_produceren: number;
51360
52373
  created_at: string;
51361
52374
  description: string | null;
51362
52375
  id: string;
51363
52376
  is_active: boolean;
52377
+ location_id: string | null;
51364
52378
  name: string;
52379
+ partij_nummer: string | null;
52380
+ photos: import("../integrations/supabase/types").Json;
51365
52381
  produced_stock: number;
51366
52382
  product_code: string;
51367
52383
  tenant_id: string;
52384
+ unit: string;
51368
52385
  updated_at: string;
51369
52386
  };
51370
52387
  Insert: {
52388
+ aantal_te_produceren?: number;
51371
52389
  created_at?: string;
51372
52390
  description?: string | null;
51373
52391
  id?: string;
51374
52392
  is_active?: boolean;
52393
+ location_id?: string | null;
51375
52394
  name: string;
52395
+ partij_nummer?: string | null;
52396
+ photos?: import("../integrations/supabase/types").Json;
51376
52397
  produced_stock?: number;
51377
52398
  product_code: string;
51378
52399
  tenant_id: string;
52400
+ unit?: string;
51379
52401
  updated_at?: string;
51380
52402
  };
51381
52403
  Update: {
52404
+ aantal_te_produceren?: number;
51382
52405
  created_at?: string;
51383
52406
  description?: string | null;
51384
52407
  id?: string;
51385
52408
  is_active?: boolean;
52409
+ location_id?: string | null;
51386
52410
  name?: string;
52411
+ partij_nummer?: string | null;
52412
+ photos?: import("../integrations/supabase/types").Json;
51387
52413
  produced_stock?: number;
51388
52414
  product_code?: string;
51389
52415
  tenant_id?: string;
52416
+ unit?: string;
51390
52417
  updated_at?: string;
51391
52418
  };
51392
- Relationships: [];
52419
+ Relationships: [{
52420
+ foreignKeyName: "manufacture_products_location_id_fkey";
52421
+ columns: ["location_id"];
52422
+ isOneToOne: false;
52423
+ referencedRelation: "locations";
52424
+ referencedColumns: ["id"];
52425
+ }];
51393
52426
  };
51394
52427
  monteurs: {
51395
52428
  Row: {
@@ -56253,6 +57286,12 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
56253
57286
  };
56254
57287
  Returns: undefined;
56255
57288
  };
57289
+ next_manufacture_partij: {
57290
+ Args: {
57291
+ _tenant_id: string;
57292
+ };
57293
+ Returns: string;
57294
+ };
56256
57295
  next_order_number: {
56257
57296
  Args: {
56258
57297
  p_prefix: string;
@@ -56976,6 +58015,165 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
56976
58015
  };
56977
58016
  Relationships: [];
56978
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
+ };
56979
58177
  app_settings: {
56980
58178
  Row: {
56981
58179
  created_at: string;
@@ -60579,6 +61777,27 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
60579
61777
  referencedColumns: ["id"];
60580
61778
  }];
60581
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
+ };
60582
61801
  floriday_continuous_stock_queue: {
60583
61802
  Row: {
60584
61803
  attempts: number;
@@ -62702,39 +63921,60 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
62702
63921
  };
62703
63922
  manufacture_products: {
62704
63923
  Row: {
63924
+ aantal_te_produceren: number;
62705
63925
  created_at: string;
62706
63926
  description: string | null;
62707
63927
  id: string;
62708
63928
  is_active: boolean;
63929
+ location_id: string | null;
62709
63930
  name: string;
63931
+ partij_nummer: string | null;
63932
+ photos: import("../integrations/supabase/types").Json;
62710
63933
  produced_stock: number;
62711
63934
  product_code: string;
62712
63935
  tenant_id: string;
63936
+ unit: string;
62713
63937
  updated_at: string;
62714
63938
  };
62715
63939
  Insert: {
63940
+ aantal_te_produceren?: number;
62716
63941
  created_at?: string;
62717
63942
  description?: string | null;
62718
63943
  id?: string;
62719
63944
  is_active?: boolean;
63945
+ location_id?: string | null;
62720
63946
  name: string;
63947
+ partij_nummer?: string | null;
63948
+ photos?: import("../integrations/supabase/types").Json;
62721
63949
  produced_stock?: number;
62722
63950
  product_code: string;
62723
63951
  tenant_id: string;
63952
+ unit?: string;
62724
63953
  updated_at?: string;
62725
63954
  };
62726
63955
  Update: {
63956
+ aantal_te_produceren?: number;
62727
63957
  created_at?: string;
62728
63958
  description?: string | null;
62729
63959
  id?: string;
62730
63960
  is_active?: boolean;
63961
+ location_id?: string | null;
62731
63962
  name?: string;
63963
+ partij_nummer?: string | null;
63964
+ photos?: import("../integrations/supabase/types").Json;
62732
63965
  produced_stock?: number;
62733
63966
  product_code?: string;
62734
63967
  tenant_id?: string;
63968
+ unit?: string;
62735
63969
  updated_at?: string;
62736
63970
  };
62737
- Relationships: [];
63971
+ Relationships: [{
63972
+ foreignKeyName: "manufacture_products_location_id_fkey";
63973
+ columns: ["location_id"];
63974
+ isOneToOne: false;
63975
+ referencedRelation: "locations";
63976
+ referencedColumns: ["id"];
63977
+ }];
62738
63978
  };
62739
63979
  monteurs: {
62740
63980
  Row: {
@@ -67598,6 +68838,12 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
67598
68838
  };
67599
68839
  Returns: undefined;
67600
68840
  };
68841
+ next_manufacture_partij: {
68842
+ Args: {
68843
+ _tenant_id: string;
68844
+ };
68845
+ Returns: string;
68846
+ };
67601
68847
  next_order_number: {
67602
68848
  Args: {
67603
68849
  p_prefix: string;
@@ -68315,6 +69561,165 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
68315
69561
  };
68316
69562
  Relationships: [];
68317
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
+ };
68318
69723
  app_settings: {
68319
69724
  Row: {
68320
69725
  created_at: string;
@@ -71918,6 +73323,27 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
71918
73323
  referencedColumns: ["id"];
71919
73324
  }];
71920
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
+ };
71921
73347
  floriday_continuous_stock_queue: {
71922
73348
  Row: {
71923
73349
  attempts: number;
@@ -74041,39 +75467,60 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
74041
75467
  };
74042
75468
  manufacture_products: {
74043
75469
  Row: {
75470
+ aantal_te_produceren: number;
74044
75471
  created_at: string;
74045
75472
  description: string | null;
74046
75473
  id: string;
74047
75474
  is_active: boolean;
75475
+ location_id: string | null;
74048
75476
  name: string;
75477
+ partij_nummer: string | null;
75478
+ photos: import("../integrations/supabase/types").Json;
74049
75479
  produced_stock: number;
74050
75480
  product_code: string;
74051
75481
  tenant_id: string;
75482
+ unit: string;
74052
75483
  updated_at: string;
74053
75484
  };
74054
75485
  Insert: {
75486
+ aantal_te_produceren?: number;
74055
75487
  created_at?: string;
74056
75488
  description?: string | null;
74057
75489
  id?: string;
74058
75490
  is_active?: boolean;
75491
+ location_id?: string | null;
74059
75492
  name: string;
75493
+ partij_nummer?: string | null;
75494
+ photos?: import("../integrations/supabase/types").Json;
74060
75495
  produced_stock?: number;
74061
75496
  product_code: string;
74062
75497
  tenant_id: string;
75498
+ unit?: string;
74063
75499
  updated_at?: string;
74064
75500
  };
74065
75501
  Update: {
75502
+ aantal_te_produceren?: number;
74066
75503
  created_at?: string;
74067
75504
  description?: string | null;
74068
75505
  id?: string;
74069
75506
  is_active?: boolean;
75507
+ location_id?: string | null;
74070
75508
  name?: string;
75509
+ partij_nummer?: string | null;
75510
+ photos?: import("../integrations/supabase/types").Json;
74071
75511
  produced_stock?: number;
74072
75512
  product_code?: string;
74073
75513
  tenant_id?: string;
75514
+ unit?: string;
74074
75515
  updated_at?: string;
74075
75516
  };
74076
- Relationships: [];
75517
+ Relationships: [{
75518
+ foreignKeyName: "manufacture_products_location_id_fkey";
75519
+ columns: ["location_id"];
75520
+ isOneToOne: false;
75521
+ referencedRelation: "locations";
75522
+ referencedColumns: ["id"];
75523
+ }];
74077
75524
  };
74078
75525
  monteurs: {
74079
75526
  Row: {
@@ -78937,6 +80384,12 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
78937
80384
  };
78938
80385
  Returns: undefined;
78939
80386
  };
80387
+ next_manufacture_partij: {
80388
+ Args: {
80389
+ _tenant_id: string;
80390
+ };
80391
+ Returns: string;
80392
+ };
78940
80393
  next_order_number: {
78941
80394
  Args: {
78942
80395
  p_prefix: string;
@@ -79421,6 +80874,10 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
79421
80874
  quantity: number;
79422
80875
  unit?: string | null | undefined;
79423
80876
  unit_price?: number | undefined;
80877
+ plants_per_crate?: number | undefined;
80878
+ crates_per_layer?: number | undefined;
80879
+ layers_per_cart?: number | undefined;
80880
+ article_code?: string | null | undefined;
79424
80881
  }[];
79425
80882
  notes?: string | null | undefined;
79426
80883
  }, Promise<{
@@ -79670,6 +81127,165 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
79670
81127
  };
79671
81128
  Relationships: [];
79672
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
+ };
79673
81289
  app_settings: {
79674
81290
  Row: {
79675
81291
  created_at: string;
@@ -83273,6 +84889,27 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
83273
84889
  referencedColumns: ["id"];
83274
84890
  }];
83275
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
+ };
83276
84913
  floriday_continuous_stock_queue: {
83277
84914
  Row: {
83278
84915
  attempts: number;
@@ -85396,39 +87033,60 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
85396
87033
  };
85397
87034
  manufacture_products: {
85398
87035
  Row: {
87036
+ aantal_te_produceren: number;
85399
87037
  created_at: string;
85400
87038
  description: string | null;
85401
87039
  id: string;
85402
87040
  is_active: boolean;
87041
+ location_id: string | null;
85403
87042
  name: string;
87043
+ partij_nummer: string | null;
87044
+ photos: import("../integrations/supabase/types").Json;
85404
87045
  produced_stock: number;
85405
87046
  product_code: string;
85406
87047
  tenant_id: string;
87048
+ unit: string;
85407
87049
  updated_at: string;
85408
87050
  };
85409
87051
  Insert: {
87052
+ aantal_te_produceren?: number;
85410
87053
  created_at?: string;
85411
87054
  description?: string | null;
85412
87055
  id?: string;
85413
87056
  is_active?: boolean;
87057
+ location_id?: string | null;
85414
87058
  name: string;
87059
+ partij_nummer?: string | null;
87060
+ photos?: import("../integrations/supabase/types").Json;
85415
87061
  produced_stock?: number;
85416
87062
  product_code: string;
85417
87063
  tenant_id: string;
87064
+ unit?: string;
85418
87065
  updated_at?: string;
85419
87066
  };
85420
87067
  Update: {
87068
+ aantal_te_produceren?: number;
85421
87069
  created_at?: string;
85422
87070
  description?: string | null;
85423
87071
  id?: string;
85424
87072
  is_active?: boolean;
87073
+ location_id?: string | null;
85425
87074
  name?: string;
87075
+ partij_nummer?: string | null;
87076
+ photos?: import("../integrations/supabase/types").Json;
85426
87077
  produced_stock?: number;
85427
87078
  product_code?: string;
85428
87079
  tenant_id?: string;
87080
+ unit?: string;
85429
87081
  updated_at?: string;
85430
87082
  };
85431
- Relationships: [];
87083
+ Relationships: [{
87084
+ foreignKeyName: "manufacture_products_location_id_fkey";
87085
+ columns: ["location_id"];
87086
+ isOneToOne: false;
87087
+ referencedRelation: "locations";
87088
+ referencedColumns: ["id"];
87089
+ }];
85432
87090
  };
85433
87091
  monteurs: {
85434
87092
  Row: {
@@ -90292,6 +91950,12 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
90292
91950
  };
90293
91951
  Returns: undefined;
90294
91952
  };
91953
+ next_manufacture_partij: {
91954
+ Args: {
91955
+ _tenant_id: string;
91956
+ };
91957
+ Returns: string;
91958
+ };
90295
91959
  next_order_number: {
90296
91960
  Args: {
90297
91961
  p_prefix: string;
@@ -91033,6 +92697,165 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
91033
92697
  };
91034
92698
  Relationships: [];
91035
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
+ };
91036
92859
  app_settings: {
91037
92860
  Row: {
91038
92861
  created_at: string;
@@ -94636,6 +96459,27 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
94636
96459
  referencedColumns: ["id"];
94637
96460
  }];
94638
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
+ };
94639
96483
  floriday_continuous_stock_queue: {
94640
96484
  Row: {
94641
96485
  attempts: number;
@@ -96759,39 +98603,60 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
96759
98603
  };
96760
98604
  manufacture_products: {
96761
98605
  Row: {
98606
+ aantal_te_produceren: number;
96762
98607
  created_at: string;
96763
98608
  description: string | null;
96764
98609
  id: string;
96765
98610
  is_active: boolean;
98611
+ location_id: string | null;
96766
98612
  name: string;
98613
+ partij_nummer: string | null;
98614
+ photos: import("../integrations/supabase/types").Json;
96767
98615
  produced_stock: number;
96768
98616
  product_code: string;
96769
98617
  tenant_id: string;
98618
+ unit: string;
96770
98619
  updated_at: string;
96771
98620
  };
96772
98621
  Insert: {
98622
+ aantal_te_produceren?: number;
96773
98623
  created_at?: string;
96774
98624
  description?: string | null;
96775
98625
  id?: string;
96776
98626
  is_active?: boolean;
98627
+ location_id?: string | null;
96777
98628
  name: string;
98629
+ partij_nummer?: string | null;
98630
+ photos?: import("../integrations/supabase/types").Json;
96778
98631
  produced_stock?: number;
96779
98632
  product_code: string;
96780
98633
  tenant_id: string;
98634
+ unit?: string;
96781
98635
  updated_at?: string;
96782
98636
  };
96783
98637
  Update: {
98638
+ aantal_te_produceren?: number;
96784
98639
  created_at?: string;
96785
98640
  description?: string | null;
96786
98641
  id?: string;
96787
98642
  is_active?: boolean;
98643
+ location_id?: string | null;
96788
98644
  name?: string;
98645
+ partij_nummer?: string | null;
98646
+ photos?: import("../integrations/supabase/types").Json;
96789
98647
  produced_stock?: number;
96790
98648
  product_code?: string;
96791
98649
  tenant_id?: string;
98650
+ unit?: string;
96792
98651
  updated_at?: string;
96793
98652
  };
96794
- Relationships: [];
98653
+ Relationships: [{
98654
+ foreignKeyName: "manufacture_products_location_id_fkey";
98655
+ columns: ["location_id"];
98656
+ isOneToOne: false;
98657
+ referencedRelation: "locations";
98658
+ referencedColumns: ["id"];
98659
+ }];
96795
98660
  };
96796
98661
  monteurs: {
96797
98662
  Row: {
@@ -101655,6 +103520,12 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
101655
103520
  };
101656
103521
  Returns: undefined;
101657
103522
  };
103523
+ next_manufacture_partij: {
103524
+ Args: {
103525
+ _tenant_id: string;
103526
+ };
103527
+ Returns: string;
103528
+ };
101658
103529
  next_order_number: {
101659
103530
  Args: {
101660
103531
  p_prefix: string;