@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
@@ -242,6 +242,165 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
242
242
  };
243
243
  Relationships: [];
244
244
  };
245
+ ai_credentials: {
246
+ Row: {
247
+ active: boolean;
248
+ api_key: string;
249
+ created_at: string;
250
+ created_by: string | null;
251
+ id: string;
252
+ label: string;
253
+ provider_id: string;
254
+ updated_at: string;
255
+ };
256
+ Insert: {
257
+ active?: boolean;
258
+ api_key: string;
259
+ created_at?: string;
260
+ created_by?: string | null;
261
+ id?: string;
262
+ label: string;
263
+ provider_id: string;
264
+ updated_at?: string;
265
+ };
266
+ Update: {
267
+ active?: boolean;
268
+ api_key?: string;
269
+ created_at?: string;
270
+ created_by?: string | null;
271
+ id?: string;
272
+ label?: string;
273
+ provider_id?: string;
274
+ updated_at?: string;
275
+ };
276
+ Relationships: [{
277
+ foreignKeyName: "ai_credentials_provider_id_fkey";
278
+ columns: ["provider_id"];
279
+ isOneToOne: false;
280
+ referencedRelation: "ai_providers";
281
+ referencedColumns: ["id"];
282
+ }];
283
+ };
284
+ ai_models: {
285
+ Row: {
286
+ active: boolean;
287
+ context_window: number | null;
288
+ created_at: string;
289
+ display_name: string;
290
+ id: string;
291
+ is_default: boolean;
292
+ modality: string;
293
+ provider_id: string;
294
+ slug: string;
295
+ updated_at: string;
296
+ };
297
+ Insert: {
298
+ active?: boolean;
299
+ context_window?: number | null;
300
+ created_at?: string;
301
+ display_name: string;
302
+ id?: string;
303
+ is_default?: boolean;
304
+ modality?: string;
305
+ provider_id: string;
306
+ slug: string;
307
+ updated_at?: string;
308
+ };
309
+ Update: {
310
+ active?: boolean;
311
+ context_window?: number | null;
312
+ created_at?: string;
313
+ display_name?: string;
314
+ id?: string;
315
+ is_default?: boolean;
316
+ modality?: string;
317
+ provider_id?: string;
318
+ slug?: string;
319
+ updated_at?: string;
320
+ };
321
+ Relationships: [{
322
+ foreignKeyName: "ai_models_provider_id_fkey";
323
+ columns: ["provider_id"];
324
+ isOneToOne: false;
325
+ referencedRelation: "ai_providers";
326
+ referencedColumns: ["id"];
327
+ }];
328
+ };
329
+ ai_module_bindings: {
330
+ Row: {
331
+ consumer_module_id: string;
332
+ created_at: string;
333
+ credential_id: string;
334
+ id: string;
335
+ model_id: string;
336
+ notes: string | null;
337
+ updated_at: string;
338
+ };
339
+ Insert: {
340
+ consumer_module_id: string;
341
+ created_at?: string;
342
+ credential_id: string;
343
+ id?: string;
344
+ model_id: string;
345
+ notes?: string | null;
346
+ updated_at?: string;
347
+ };
348
+ Update: {
349
+ consumer_module_id?: string;
350
+ created_at?: string;
351
+ credential_id?: string;
352
+ id?: string;
353
+ model_id?: string;
354
+ notes?: string | null;
355
+ updated_at?: string;
356
+ };
357
+ Relationships: [{
358
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
359
+ columns: ["credential_id"];
360
+ isOneToOne: false;
361
+ referencedRelation: "ai_credentials";
362
+ referencedColumns: ["id"];
363
+ }, {
364
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
365
+ columns: ["model_id"];
366
+ isOneToOne: false;
367
+ referencedRelation: "ai_models";
368
+ referencedColumns: ["id"];
369
+ }];
370
+ };
371
+ ai_providers: {
372
+ Row: {
373
+ active: boolean;
374
+ auth_type: string;
375
+ base_url: string | null;
376
+ created_at: string;
377
+ id: string;
378
+ name: string;
379
+ slug: string;
380
+ updated_at: string;
381
+ };
382
+ Insert: {
383
+ active?: boolean;
384
+ auth_type?: string;
385
+ base_url?: string | null;
386
+ created_at?: string;
387
+ id?: string;
388
+ name: string;
389
+ slug: string;
390
+ updated_at?: string;
391
+ };
392
+ Update: {
393
+ active?: boolean;
394
+ auth_type?: string;
395
+ base_url?: string | null;
396
+ created_at?: string;
397
+ id?: string;
398
+ name?: string;
399
+ slug?: string;
400
+ updated_at?: string;
401
+ };
402
+ Relationships: [];
403
+ };
245
404
  app_settings: {
246
405
  Row: {
247
406
  created_at: string;
@@ -3845,6 +4004,27 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
3845
4004
  referencedColumns: ["id"];
3846
4005
  }];
3847
4006
  };
4007
+ floriday_continuous_stock_cache: {
4008
+ Row: {
4009
+ connection_id: string;
4010
+ fetched_at: string;
4011
+ number_of_pieces: number;
4012
+ trade_item_id: string;
4013
+ };
4014
+ Insert: {
4015
+ connection_id: string;
4016
+ fetched_at?: string;
4017
+ number_of_pieces?: number;
4018
+ trade_item_id: string;
4019
+ };
4020
+ Update: {
4021
+ connection_id?: string;
4022
+ fetched_at?: string;
4023
+ number_of_pieces?: number;
4024
+ trade_item_id?: string;
4025
+ };
4026
+ Relationships: [];
4027
+ };
3848
4028
  floriday_continuous_stock_queue: {
3849
4029
  Row: {
3850
4030
  attempts: number;
@@ -5968,39 +6148,60 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
5968
6148
  };
5969
6149
  manufacture_products: {
5970
6150
  Row: {
6151
+ aantal_te_produceren: number;
5971
6152
  created_at: string;
5972
6153
  description: string | null;
5973
6154
  id: string;
5974
6155
  is_active: boolean;
6156
+ location_id: string | null;
5975
6157
  name: string;
6158
+ partij_nummer: string | null;
6159
+ photos: import("../integrations/supabase/types").Json;
5976
6160
  produced_stock: number;
5977
6161
  product_code: string;
5978
6162
  tenant_id: string;
6163
+ unit: string;
5979
6164
  updated_at: string;
5980
6165
  };
5981
6166
  Insert: {
6167
+ aantal_te_produceren?: number;
5982
6168
  created_at?: string;
5983
6169
  description?: string | null;
5984
6170
  id?: string;
5985
6171
  is_active?: boolean;
6172
+ location_id?: string | null;
5986
6173
  name: string;
6174
+ partij_nummer?: string | null;
6175
+ photos?: import("../integrations/supabase/types").Json;
5987
6176
  produced_stock?: number;
5988
6177
  product_code: string;
5989
6178
  tenant_id: string;
6179
+ unit?: string;
5990
6180
  updated_at?: string;
5991
6181
  };
5992
6182
  Update: {
6183
+ aantal_te_produceren?: number;
5993
6184
  created_at?: string;
5994
6185
  description?: string | null;
5995
6186
  id?: string;
5996
6187
  is_active?: boolean;
6188
+ location_id?: string | null;
5997
6189
  name?: string;
6190
+ partij_nummer?: string | null;
6191
+ photos?: import("../integrations/supabase/types").Json;
5998
6192
  produced_stock?: number;
5999
6193
  product_code?: string;
6000
6194
  tenant_id?: string;
6195
+ unit?: string;
6001
6196
  updated_at?: string;
6002
6197
  };
6003
- Relationships: [];
6198
+ Relationships: [{
6199
+ foreignKeyName: "manufacture_products_location_id_fkey";
6200
+ columns: ["location_id"];
6201
+ isOneToOne: false;
6202
+ referencedRelation: "locations";
6203
+ referencedColumns: ["id"];
6204
+ }];
6004
6205
  };
6005
6206
  monteurs: {
6006
6207
  Row: {
@@ -10864,6 +11065,12 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
10864
11065
  };
10865
11066
  Returns: undefined;
10866
11067
  };
11068
+ next_manufacture_partij: {
11069
+ Args: {
11070
+ _tenant_id: string;
11071
+ };
11072
+ Returns: string;
11073
+ };
10867
11074
  next_order_number: {
10868
11075
  Args: {
10869
11076
  p_prefix: string;
@@ -11586,6 +11793,165 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
11586
11793
  };
11587
11794
  Relationships: [];
11588
11795
  };
11796
+ ai_credentials: {
11797
+ Row: {
11798
+ active: boolean;
11799
+ api_key: string;
11800
+ created_at: string;
11801
+ created_by: string | null;
11802
+ id: string;
11803
+ label: string;
11804
+ provider_id: string;
11805
+ updated_at: string;
11806
+ };
11807
+ Insert: {
11808
+ active?: boolean;
11809
+ api_key: string;
11810
+ created_at?: string;
11811
+ created_by?: string | null;
11812
+ id?: string;
11813
+ label: string;
11814
+ provider_id: string;
11815
+ updated_at?: string;
11816
+ };
11817
+ Update: {
11818
+ active?: boolean;
11819
+ api_key?: string;
11820
+ created_at?: string;
11821
+ created_by?: string | null;
11822
+ id?: string;
11823
+ label?: string;
11824
+ provider_id?: string;
11825
+ updated_at?: string;
11826
+ };
11827
+ Relationships: [{
11828
+ foreignKeyName: "ai_credentials_provider_id_fkey";
11829
+ columns: ["provider_id"];
11830
+ isOneToOne: false;
11831
+ referencedRelation: "ai_providers";
11832
+ referencedColumns: ["id"];
11833
+ }];
11834
+ };
11835
+ ai_models: {
11836
+ Row: {
11837
+ active: boolean;
11838
+ context_window: number | null;
11839
+ created_at: string;
11840
+ display_name: string;
11841
+ id: string;
11842
+ is_default: boolean;
11843
+ modality: string;
11844
+ provider_id: string;
11845
+ slug: string;
11846
+ updated_at: string;
11847
+ };
11848
+ Insert: {
11849
+ active?: boolean;
11850
+ context_window?: number | null;
11851
+ created_at?: string;
11852
+ display_name: string;
11853
+ id?: string;
11854
+ is_default?: boolean;
11855
+ modality?: string;
11856
+ provider_id: string;
11857
+ slug: string;
11858
+ updated_at?: string;
11859
+ };
11860
+ Update: {
11861
+ active?: boolean;
11862
+ context_window?: number | null;
11863
+ created_at?: string;
11864
+ display_name?: string;
11865
+ id?: string;
11866
+ is_default?: boolean;
11867
+ modality?: string;
11868
+ provider_id?: string;
11869
+ slug?: string;
11870
+ updated_at?: string;
11871
+ };
11872
+ Relationships: [{
11873
+ foreignKeyName: "ai_models_provider_id_fkey";
11874
+ columns: ["provider_id"];
11875
+ isOneToOne: false;
11876
+ referencedRelation: "ai_providers";
11877
+ referencedColumns: ["id"];
11878
+ }];
11879
+ };
11880
+ ai_module_bindings: {
11881
+ Row: {
11882
+ consumer_module_id: string;
11883
+ created_at: string;
11884
+ credential_id: string;
11885
+ id: string;
11886
+ model_id: string;
11887
+ notes: string | null;
11888
+ updated_at: string;
11889
+ };
11890
+ Insert: {
11891
+ consumer_module_id: string;
11892
+ created_at?: string;
11893
+ credential_id: string;
11894
+ id?: string;
11895
+ model_id: string;
11896
+ notes?: string | null;
11897
+ updated_at?: string;
11898
+ };
11899
+ Update: {
11900
+ consumer_module_id?: string;
11901
+ created_at?: string;
11902
+ credential_id?: string;
11903
+ id?: string;
11904
+ model_id?: string;
11905
+ notes?: string | null;
11906
+ updated_at?: string;
11907
+ };
11908
+ Relationships: [{
11909
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
11910
+ columns: ["credential_id"];
11911
+ isOneToOne: false;
11912
+ referencedRelation: "ai_credentials";
11913
+ referencedColumns: ["id"];
11914
+ }, {
11915
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
11916
+ columns: ["model_id"];
11917
+ isOneToOne: false;
11918
+ referencedRelation: "ai_models";
11919
+ referencedColumns: ["id"];
11920
+ }];
11921
+ };
11922
+ ai_providers: {
11923
+ Row: {
11924
+ active: boolean;
11925
+ auth_type: string;
11926
+ base_url: string | null;
11927
+ created_at: string;
11928
+ id: string;
11929
+ name: string;
11930
+ slug: string;
11931
+ updated_at: string;
11932
+ };
11933
+ Insert: {
11934
+ active?: boolean;
11935
+ auth_type?: string;
11936
+ base_url?: string | null;
11937
+ created_at?: string;
11938
+ id?: string;
11939
+ name: string;
11940
+ slug: string;
11941
+ updated_at?: string;
11942
+ };
11943
+ Update: {
11944
+ active?: boolean;
11945
+ auth_type?: string;
11946
+ base_url?: string | null;
11947
+ created_at?: string;
11948
+ id?: string;
11949
+ name?: string;
11950
+ slug?: string;
11951
+ updated_at?: string;
11952
+ };
11953
+ Relationships: [];
11954
+ };
11589
11955
  app_settings: {
11590
11956
  Row: {
11591
11957
  created_at: string;
@@ -15189,6 +15555,27 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
15189
15555
  referencedColumns: ["id"];
15190
15556
  }];
15191
15557
  };
15558
+ floriday_continuous_stock_cache: {
15559
+ Row: {
15560
+ connection_id: string;
15561
+ fetched_at: string;
15562
+ number_of_pieces: number;
15563
+ trade_item_id: string;
15564
+ };
15565
+ Insert: {
15566
+ connection_id: string;
15567
+ fetched_at?: string;
15568
+ number_of_pieces?: number;
15569
+ trade_item_id: string;
15570
+ };
15571
+ Update: {
15572
+ connection_id?: string;
15573
+ fetched_at?: string;
15574
+ number_of_pieces?: number;
15575
+ trade_item_id?: string;
15576
+ };
15577
+ Relationships: [];
15578
+ };
15192
15579
  floriday_continuous_stock_queue: {
15193
15580
  Row: {
15194
15581
  attempts: number;
@@ -17312,39 +17699,60 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
17312
17699
  };
17313
17700
  manufacture_products: {
17314
17701
  Row: {
17702
+ aantal_te_produceren: number;
17315
17703
  created_at: string;
17316
17704
  description: string | null;
17317
17705
  id: string;
17318
17706
  is_active: boolean;
17707
+ location_id: string | null;
17319
17708
  name: string;
17709
+ partij_nummer: string | null;
17710
+ photos: import("../integrations/supabase/types").Json;
17320
17711
  produced_stock: number;
17321
17712
  product_code: string;
17322
17713
  tenant_id: string;
17714
+ unit: string;
17323
17715
  updated_at: string;
17324
17716
  };
17325
17717
  Insert: {
17718
+ aantal_te_produceren?: number;
17326
17719
  created_at?: string;
17327
17720
  description?: string | null;
17328
17721
  id?: string;
17329
17722
  is_active?: boolean;
17723
+ location_id?: string | null;
17330
17724
  name: string;
17725
+ partij_nummer?: string | null;
17726
+ photos?: import("../integrations/supabase/types").Json;
17331
17727
  produced_stock?: number;
17332
17728
  product_code: string;
17333
17729
  tenant_id: string;
17730
+ unit?: string;
17334
17731
  updated_at?: string;
17335
17732
  };
17336
17733
  Update: {
17734
+ aantal_te_produceren?: number;
17337
17735
  created_at?: string;
17338
17736
  description?: string | null;
17339
17737
  id?: string;
17340
17738
  is_active?: boolean;
17739
+ location_id?: string | null;
17341
17740
  name?: string;
17741
+ partij_nummer?: string | null;
17742
+ photos?: import("../integrations/supabase/types").Json;
17342
17743
  produced_stock?: number;
17343
17744
  product_code?: string;
17344
17745
  tenant_id?: string;
17746
+ unit?: string;
17345
17747
  updated_at?: string;
17346
17748
  };
17347
- Relationships: [];
17749
+ Relationships: [{
17750
+ foreignKeyName: "manufacture_products_location_id_fkey";
17751
+ columns: ["location_id"];
17752
+ isOneToOne: false;
17753
+ referencedRelation: "locations";
17754
+ referencedColumns: ["id"];
17755
+ }];
17348
17756
  };
17349
17757
  monteurs: {
17350
17758
  Row: {
@@ -22208,6 +22616,12 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
22208
22616
  };
22209
22617
  Returns: undefined;
22210
22618
  };
22619
+ next_manufacture_partij: {
22620
+ Args: {
22621
+ _tenant_id: string;
22622
+ };
22623
+ Returns: string;
22624
+ };
22211
22625
  next_order_number: {
22212
22626
  Args: {
22213
22627
  p_prefix: string;
@@ -22927,6 +23341,165 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
22927
23341
  };
22928
23342
  Relationships: [];
22929
23343
  };
23344
+ ai_credentials: {
23345
+ Row: {
23346
+ active: boolean;
23347
+ api_key: string;
23348
+ created_at: string;
23349
+ created_by: string | null;
23350
+ id: string;
23351
+ label: string;
23352
+ provider_id: string;
23353
+ updated_at: string;
23354
+ };
23355
+ Insert: {
23356
+ active?: boolean;
23357
+ api_key: string;
23358
+ created_at?: string;
23359
+ created_by?: string | null;
23360
+ id?: string;
23361
+ label: string;
23362
+ provider_id: string;
23363
+ updated_at?: string;
23364
+ };
23365
+ Update: {
23366
+ active?: boolean;
23367
+ api_key?: string;
23368
+ created_at?: string;
23369
+ created_by?: string | null;
23370
+ id?: string;
23371
+ label?: string;
23372
+ provider_id?: string;
23373
+ updated_at?: string;
23374
+ };
23375
+ Relationships: [{
23376
+ foreignKeyName: "ai_credentials_provider_id_fkey";
23377
+ columns: ["provider_id"];
23378
+ isOneToOne: false;
23379
+ referencedRelation: "ai_providers";
23380
+ referencedColumns: ["id"];
23381
+ }];
23382
+ };
23383
+ ai_models: {
23384
+ Row: {
23385
+ active: boolean;
23386
+ context_window: number | null;
23387
+ created_at: string;
23388
+ display_name: string;
23389
+ id: string;
23390
+ is_default: boolean;
23391
+ modality: string;
23392
+ provider_id: string;
23393
+ slug: string;
23394
+ updated_at: string;
23395
+ };
23396
+ Insert: {
23397
+ active?: boolean;
23398
+ context_window?: number | null;
23399
+ created_at?: string;
23400
+ display_name: string;
23401
+ id?: string;
23402
+ is_default?: boolean;
23403
+ modality?: string;
23404
+ provider_id: string;
23405
+ slug: string;
23406
+ updated_at?: string;
23407
+ };
23408
+ Update: {
23409
+ active?: boolean;
23410
+ context_window?: number | null;
23411
+ created_at?: string;
23412
+ display_name?: string;
23413
+ id?: string;
23414
+ is_default?: boolean;
23415
+ modality?: string;
23416
+ provider_id?: string;
23417
+ slug?: string;
23418
+ updated_at?: string;
23419
+ };
23420
+ Relationships: [{
23421
+ foreignKeyName: "ai_models_provider_id_fkey";
23422
+ columns: ["provider_id"];
23423
+ isOneToOne: false;
23424
+ referencedRelation: "ai_providers";
23425
+ referencedColumns: ["id"];
23426
+ }];
23427
+ };
23428
+ ai_module_bindings: {
23429
+ Row: {
23430
+ consumer_module_id: string;
23431
+ created_at: string;
23432
+ credential_id: string;
23433
+ id: string;
23434
+ model_id: string;
23435
+ notes: string | null;
23436
+ updated_at: string;
23437
+ };
23438
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
23457
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
23458
+ columns: ["credential_id"];
23459
+ isOneToOne: false;
23460
+ referencedRelation: "ai_credentials";
23461
+ referencedColumns: ["id"];
23462
+ }, {
23463
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
23464
+ columns: ["model_id"];
23465
+ isOneToOne: false;
23466
+ referencedRelation: "ai_models";
23467
+ referencedColumns: ["id"];
23468
+ }];
23469
+ };
23470
+ ai_providers: {
23471
+ Row: {
23472
+ active: boolean;
23473
+ auth_type: string;
23474
+ base_url: string | null;
23475
+ created_at: string;
23476
+ id: string;
23477
+ name: string;
23478
+ slug: string;
23479
+ updated_at: string;
23480
+ };
23481
+ Insert: {
23482
+ active?: boolean;
23483
+ auth_type?: string;
23484
+ base_url?: string | null;
23485
+ created_at?: string;
23486
+ id?: string;
23487
+ name: string;
23488
+ slug: string;
23489
+ updated_at?: string;
23490
+ };
23491
+ Update: {
23492
+ active?: boolean;
23493
+ auth_type?: string;
23494
+ base_url?: string | null;
23495
+ created_at?: string;
23496
+ id?: string;
23497
+ name?: string;
23498
+ slug?: string;
23499
+ updated_at?: string;
23500
+ };
23501
+ Relationships: [];
23502
+ };
22930
23503
  app_settings: {
22931
23504
  Row: {
22932
23505
  created_at: string;
@@ -26530,6 +27103,27 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
26530
27103
  referencedColumns: ["id"];
26531
27104
  }];
26532
27105
  };
27106
+ floriday_continuous_stock_cache: {
27107
+ Row: {
27108
+ connection_id: string;
27109
+ fetched_at: string;
27110
+ number_of_pieces: number;
27111
+ trade_item_id: string;
27112
+ };
27113
+ Insert: {
27114
+ connection_id: string;
27115
+ fetched_at?: string;
27116
+ number_of_pieces?: number;
27117
+ trade_item_id: string;
27118
+ };
27119
+ Update: {
27120
+ connection_id?: string;
27121
+ fetched_at?: string;
27122
+ number_of_pieces?: number;
27123
+ trade_item_id?: string;
27124
+ };
27125
+ Relationships: [];
27126
+ };
26533
27127
  floriday_continuous_stock_queue: {
26534
27128
  Row: {
26535
27129
  attempts: number;
@@ -28653,39 +29247,60 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
28653
29247
  };
28654
29248
  manufacture_products: {
28655
29249
  Row: {
29250
+ aantal_te_produceren: number;
28656
29251
  created_at: string;
28657
29252
  description: string | null;
28658
29253
  id: string;
28659
29254
  is_active: boolean;
29255
+ location_id: string | null;
28660
29256
  name: string;
29257
+ partij_nummer: string | null;
29258
+ photos: import("../integrations/supabase/types").Json;
28661
29259
  produced_stock: number;
28662
29260
  product_code: string;
28663
29261
  tenant_id: string;
29262
+ unit: string;
28664
29263
  updated_at: string;
28665
29264
  };
28666
29265
  Insert: {
29266
+ aantal_te_produceren?: number;
28667
29267
  created_at?: string;
28668
29268
  description?: string | null;
28669
29269
  id?: string;
28670
29270
  is_active?: boolean;
29271
+ location_id?: string | null;
28671
29272
  name: string;
29273
+ partij_nummer?: string | null;
29274
+ photos?: import("../integrations/supabase/types").Json;
28672
29275
  produced_stock?: number;
28673
29276
  product_code: string;
28674
29277
  tenant_id: string;
29278
+ unit?: string;
28675
29279
  updated_at?: string;
28676
29280
  };
28677
29281
  Update: {
29282
+ aantal_te_produceren?: number;
28678
29283
  created_at?: string;
28679
29284
  description?: string | null;
28680
29285
  id?: string;
28681
29286
  is_active?: boolean;
29287
+ location_id?: string | null;
28682
29288
  name?: string;
29289
+ partij_nummer?: string | null;
29290
+ photos?: import("../integrations/supabase/types").Json;
28683
29291
  produced_stock?: number;
28684
29292
  product_code?: string;
28685
29293
  tenant_id?: string;
29294
+ unit?: string;
28686
29295
  updated_at?: string;
28687
29296
  };
28688
- Relationships: [];
29297
+ Relationships: [{
29298
+ foreignKeyName: "manufacture_products_location_id_fkey";
29299
+ columns: ["location_id"];
29300
+ isOneToOne: false;
29301
+ referencedRelation: "locations";
29302
+ referencedColumns: ["id"];
29303
+ }];
28689
29304
  };
28690
29305
  monteurs: {
28691
29306
  Row: {
@@ -33549,6 +34164,12 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
33549
34164
  };
33550
34165
  Returns: undefined;
33551
34166
  };
34167
+ next_manufacture_partij: {
34168
+ Args: {
34169
+ _tenant_id: string;
34170
+ };
34171
+ Returns: string;
34172
+ };
33552
34173
  next_order_number: {
33553
34174
  Args: {
33554
34175
  p_prefix: string;
@@ -34271,6 +34892,165 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
34271
34892
  };
34272
34893
  Relationships: [];
34273
34894
  };
34895
+ ai_credentials: {
34896
+ Row: {
34897
+ active: boolean;
34898
+ api_key: string;
34899
+ created_at: string;
34900
+ created_by: string | null;
34901
+ id: string;
34902
+ label: string;
34903
+ provider_id: string;
34904
+ updated_at: string;
34905
+ };
34906
+ Insert: {
34907
+ active?: boolean;
34908
+ api_key: string;
34909
+ created_at?: string;
34910
+ created_by?: string | null;
34911
+ id?: string;
34912
+ label: string;
34913
+ provider_id: string;
34914
+ updated_at?: string;
34915
+ };
34916
+ Update: {
34917
+ active?: boolean;
34918
+ api_key?: string;
34919
+ created_at?: string;
34920
+ created_by?: string | null;
34921
+ id?: string;
34922
+ label?: string;
34923
+ provider_id?: string;
34924
+ updated_at?: string;
34925
+ };
34926
+ Relationships: [{
34927
+ foreignKeyName: "ai_credentials_provider_id_fkey";
34928
+ columns: ["provider_id"];
34929
+ isOneToOne: false;
34930
+ referencedRelation: "ai_providers";
34931
+ referencedColumns: ["id"];
34932
+ }];
34933
+ };
34934
+ ai_models: {
34935
+ Row: {
34936
+ active: boolean;
34937
+ context_window: number | null;
34938
+ created_at: string;
34939
+ display_name: string;
34940
+ id: string;
34941
+ is_default: boolean;
34942
+ modality: string;
34943
+ provider_id: string;
34944
+ slug: string;
34945
+ updated_at: string;
34946
+ };
34947
+ Insert: {
34948
+ active?: boolean;
34949
+ context_window?: number | null;
34950
+ created_at?: string;
34951
+ display_name: string;
34952
+ id?: string;
34953
+ is_default?: boolean;
34954
+ modality?: string;
34955
+ provider_id: string;
34956
+ slug: string;
34957
+ updated_at?: string;
34958
+ };
34959
+ Update: {
34960
+ active?: boolean;
34961
+ context_window?: number | null;
34962
+ created_at?: string;
34963
+ display_name?: string;
34964
+ id?: string;
34965
+ is_default?: boolean;
34966
+ modality?: string;
34967
+ provider_id?: string;
34968
+ slug?: string;
34969
+ updated_at?: string;
34970
+ };
34971
+ Relationships: [{
34972
+ foreignKeyName: "ai_models_provider_id_fkey";
34973
+ columns: ["provider_id"];
34974
+ isOneToOne: false;
34975
+ referencedRelation: "ai_providers";
34976
+ referencedColumns: ["id"];
34977
+ }];
34978
+ };
34979
+ ai_module_bindings: {
34980
+ Row: {
34981
+ consumer_module_id: string;
34982
+ created_at: string;
34983
+ credential_id: string;
34984
+ id: string;
34985
+ model_id: string;
34986
+ notes: string | null;
34987
+ updated_at: string;
34988
+ };
34989
+ Insert: {
34990
+ consumer_module_id: string;
34991
+ created_at?: string;
34992
+ credential_id: string;
34993
+ id?: string;
34994
+ model_id: string;
34995
+ notes?: string | null;
34996
+ updated_at?: string;
34997
+ };
34998
+ Update: {
34999
+ consumer_module_id?: string;
35000
+ created_at?: string;
35001
+ credential_id?: string;
35002
+ id?: string;
35003
+ model_id?: string;
35004
+ notes?: string | null;
35005
+ updated_at?: string;
35006
+ };
35007
+ Relationships: [{
35008
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
35009
+ columns: ["credential_id"];
35010
+ isOneToOne: false;
35011
+ referencedRelation: "ai_credentials";
35012
+ referencedColumns: ["id"];
35013
+ }, {
35014
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
35015
+ columns: ["model_id"];
35016
+ isOneToOne: false;
35017
+ referencedRelation: "ai_models";
35018
+ referencedColumns: ["id"];
35019
+ }];
35020
+ };
35021
+ ai_providers: {
35022
+ Row: {
35023
+ active: boolean;
35024
+ auth_type: string;
35025
+ base_url: string | null;
35026
+ created_at: string;
35027
+ id: string;
35028
+ name: string;
35029
+ slug: string;
35030
+ updated_at: string;
35031
+ };
35032
+ Insert: {
35033
+ active?: boolean;
35034
+ auth_type?: string;
35035
+ base_url?: string | null;
35036
+ created_at?: string;
35037
+ id?: string;
35038
+ name: string;
35039
+ slug: string;
35040
+ updated_at?: string;
35041
+ };
35042
+ Update: {
35043
+ active?: boolean;
35044
+ auth_type?: string;
35045
+ base_url?: string | null;
35046
+ created_at?: string;
35047
+ id?: string;
35048
+ name?: string;
35049
+ slug?: string;
35050
+ updated_at?: string;
35051
+ };
35052
+ Relationships: [];
35053
+ };
34274
35054
  app_settings: {
34275
35055
  Row: {
34276
35056
  created_at: string;
@@ -37874,6 +38654,27 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
37874
38654
  referencedColumns: ["id"];
37875
38655
  }];
37876
38656
  };
38657
+ floriday_continuous_stock_cache: {
38658
+ Row: {
38659
+ connection_id: string;
38660
+ fetched_at: string;
38661
+ number_of_pieces: number;
38662
+ trade_item_id: string;
38663
+ };
38664
+ Insert: {
38665
+ connection_id: string;
38666
+ fetched_at?: string;
38667
+ number_of_pieces?: number;
38668
+ trade_item_id: string;
38669
+ };
38670
+ Update: {
38671
+ connection_id?: string;
38672
+ fetched_at?: string;
38673
+ number_of_pieces?: number;
38674
+ trade_item_id?: string;
38675
+ };
38676
+ Relationships: [];
38677
+ };
37877
38678
  floriday_continuous_stock_queue: {
37878
38679
  Row: {
37879
38680
  attempts: number;
@@ -39997,39 +40798,60 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
39997
40798
  };
39998
40799
  manufacture_products: {
39999
40800
  Row: {
40801
+ aantal_te_produceren: number;
40000
40802
  created_at: string;
40001
40803
  description: string | null;
40002
40804
  id: string;
40003
40805
  is_active: boolean;
40806
+ location_id: string | null;
40004
40807
  name: string;
40808
+ partij_nummer: string | null;
40809
+ photos: import("../integrations/supabase/types").Json;
40005
40810
  produced_stock: number;
40006
40811
  product_code: string;
40007
40812
  tenant_id: string;
40813
+ unit: string;
40008
40814
  updated_at: string;
40009
40815
  };
40010
40816
  Insert: {
40817
+ aantal_te_produceren?: number;
40011
40818
  created_at?: string;
40012
40819
  description?: string | null;
40013
40820
  id?: string;
40014
40821
  is_active?: boolean;
40822
+ location_id?: string | null;
40015
40823
  name: string;
40824
+ partij_nummer?: string | null;
40825
+ photos?: import("../integrations/supabase/types").Json;
40016
40826
  produced_stock?: number;
40017
40827
  product_code: string;
40018
40828
  tenant_id: string;
40829
+ unit?: string;
40019
40830
  updated_at?: string;
40020
40831
  };
40021
40832
  Update: {
40833
+ aantal_te_produceren?: number;
40022
40834
  created_at?: string;
40023
40835
  description?: string | null;
40024
40836
  id?: string;
40025
40837
  is_active?: boolean;
40838
+ location_id?: string | null;
40026
40839
  name?: string;
40840
+ partij_nummer?: string | null;
40841
+ photos?: import("../integrations/supabase/types").Json;
40027
40842
  produced_stock?: number;
40028
40843
  product_code?: string;
40029
40844
  tenant_id?: string;
40845
+ unit?: string;
40030
40846
  updated_at?: string;
40031
40847
  };
40032
- Relationships: [];
40848
+ Relationships: [{
40849
+ foreignKeyName: "manufacture_products_location_id_fkey";
40850
+ columns: ["location_id"];
40851
+ isOneToOne: false;
40852
+ referencedRelation: "locations";
40853
+ referencedColumns: ["id"];
40854
+ }];
40033
40855
  };
40034
40856
  monteurs: {
40035
40857
  Row: {
@@ -44893,6 +45715,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
44893
45715
  };
44894
45716
  Returns: undefined;
44895
45717
  };
45718
+ next_manufacture_partij: {
45719
+ Args: {
45720
+ _tenant_id: string;
45721
+ };
45722
+ Returns: string;
45723
+ };
44896
45724
  next_order_number: {
44897
45725
  Args: {
44898
45726
  p_prefix: string;
@@ -45612,6 +46440,165 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
45612
46440
  };
45613
46441
  Relationships: [];
45614
46442
  };
46443
+ ai_credentials: {
46444
+ Row: {
46445
+ active: boolean;
46446
+ api_key: string;
46447
+ created_at: string;
46448
+ created_by: string | null;
46449
+ id: string;
46450
+ label: string;
46451
+ provider_id: string;
46452
+ updated_at: string;
46453
+ };
46454
+ Insert: {
46455
+ active?: boolean;
46456
+ api_key: string;
46457
+ created_at?: string;
46458
+ created_by?: string | null;
46459
+ id?: string;
46460
+ label: string;
46461
+ provider_id: string;
46462
+ updated_at?: string;
46463
+ };
46464
+ Update: {
46465
+ active?: boolean;
46466
+ api_key?: string;
46467
+ created_at?: string;
46468
+ created_by?: string | null;
46469
+ id?: string;
46470
+ label?: string;
46471
+ provider_id?: string;
46472
+ updated_at?: string;
46473
+ };
46474
+ Relationships: [{
46475
+ foreignKeyName: "ai_credentials_provider_id_fkey";
46476
+ columns: ["provider_id"];
46477
+ isOneToOne: false;
46478
+ referencedRelation: "ai_providers";
46479
+ referencedColumns: ["id"];
46480
+ }];
46481
+ };
46482
+ ai_models: {
46483
+ Row: {
46484
+ active: boolean;
46485
+ context_window: number | null;
46486
+ created_at: string;
46487
+ display_name: string;
46488
+ id: string;
46489
+ is_default: boolean;
46490
+ modality: string;
46491
+ provider_id: string;
46492
+ slug: string;
46493
+ updated_at: string;
46494
+ };
46495
+ Insert: {
46496
+ active?: boolean;
46497
+ context_window?: number | null;
46498
+ created_at?: string;
46499
+ display_name: string;
46500
+ id?: string;
46501
+ is_default?: boolean;
46502
+ modality?: string;
46503
+ provider_id: string;
46504
+ slug: string;
46505
+ updated_at?: string;
46506
+ };
46507
+ Update: {
46508
+ active?: boolean;
46509
+ context_window?: number | null;
46510
+ created_at?: string;
46511
+ display_name?: string;
46512
+ id?: string;
46513
+ is_default?: boolean;
46514
+ modality?: string;
46515
+ provider_id?: string;
46516
+ slug?: string;
46517
+ updated_at?: string;
46518
+ };
46519
+ Relationships: [{
46520
+ foreignKeyName: "ai_models_provider_id_fkey";
46521
+ columns: ["provider_id"];
46522
+ isOneToOne: false;
46523
+ referencedRelation: "ai_providers";
46524
+ referencedColumns: ["id"];
46525
+ }];
46526
+ };
46527
+ ai_module_bindings: {
46528
+ Row: {
46529
+ consumer_module_id: string;
46530
+ created_at: string;
46531
+ credential_id: string;
46532
+ id: string;
46533
+ model_id: string;
46534
+ notes: string | null;
46535
+ updated_at: string;
46536
+ };
46537
+ Insert: {
46538
+ consumer_module_id: string;
46539
+ created_at?: string;
46540
+ credential_id: string;
46541
+ id?: string;
46542
+ model_id: string;
46543
+ notes?: string | null;
46544
+ updated_at?: string;
46545
+ };
46546
+ Update: {
46547
+ consumer_module_id?: string;
46548
+ created_at?: string;
46549
+ credential_id?: string;
46550
+ id?: string;
46551
+ model_id?: string;
46552
+ notes?: string | null;
46553
+ updated_at?: string;
46554
+ };
46555
+ Relationships: [{
46556
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
46557
+ columns: ["credential_id"];
46558
+ isOneToOne: false;
46559
+ referencedRelation: "ai_credentials";
46560
+ referencedColumns: ["id"];
46561
+ }, {
46562
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
46563
+ columns: ["model_id"];
46564
+ isOneToOne: false;
46565
+ referencedRelation: "ai_models";
46566
+ referencedColumns: ["id"];
46567
+ }];
46568
+ };
46569
+ ai_providers: {
46570
+ Row: {
46571
+ active: boolean;
46572
+ auth_type: string;
46573
+ base_url: string | null;
46574
+ created_at: string;
46575
+ id: string;
46576
+ name: string;
46577
+ slug: string;
46578
+ updated_at: string;
46579
+ };
46580
+ Insert: {
46581
+ active?: boolean;
46582
+ auth_type?: string;
46583
+ base_url?: string | null;
46584
+ created_at?: string;
46585
+ id?: string;
46586
+ name: string;
46587
+ slug: string;
46588
+ updated_at?: string;
46589
+ };
46590
+ Update: {
46591
+ active?: boolean;
46592
+ auth_type?: string;
46593
+ base_url?: string | null;
46594
+ created_at?: string;
46595
+ id?: string;
46596
+ name?: string;
46597
+ slug?: string;
46598
+ updated_at?: string;
46599
+ };
46600
+ Relationships: [];
46601
+ };
45615
46602
  app_settings: {
45616
46603
  Row: {
45617
46604
  created_at: string;
@@ -49215,6 +50202,27 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49215
50202
  referencedColumns: ["id"];
49216
50203
  }];
49217
50204
  };
50205
+ floriday_continuous_stock_cache: {
50206
+ Row: {
50207
+ connection_id: string;
50208
+ fetched_at: string;
50209
+ number_of_pieces: number;
50210
+ trade_item_id: string;
50211
+ };
50212
+ Insert: {
50213
+ connection_id: string;
50214
+ fetched_at?: string;
50215
+ number_of_pieces?: number;
50216
+ trade_item_id: string;
50217
+ };
50218
+ Update: {
50219
+ connection_id?: string;
50220
+ fetched_at?: string;
50221
+ number_of_pieces?: number;
50222
+ trade_item_id?: string;
50223
+ };
50224
+ Relationships: [];
50225
+ };
49218
50226
  floriday_continuous_stock_queue: {
49219
50227
  Row: {
49220
50228
  attempts: number;
@@ -51338,39 +52346,60 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
51338
52346
  };
51339
52347
  manufacture_products: {
51340
52348
  Row: {
52349
+ aantal_te_produceren: number;
51341
52350
  created_at: string;
51342
52351
  description: string | null;
51343
52352
  id: string;
51344
52353
  is_active: boolean;
52354
+ location_id: string | null;
51345
52355
  name: string;
52356
+ partij_nummer: string | null;
52357
+ photos: import("../integrations/supabase/types").Json;
51346
52358
  produced_stock: number;
51347
52359
  product_code: string;
51348
52360
  tenant_id: string;
52361
+ unit: string;
51349
52362
  updated_at: string;
51350
52363
  };
51351
52364
  Insert: {
52365
+ aantal_te_produceren?: number;
51352
52366
  created_at?: string;
51353
52367
  description?: string | null;
51354
52368
  id?: string;
51355
52369
  is_active?: boolean;
52370
+ location_id?: string | null;
51356
52371
  name: string;
52372
+ partij_nummer?: string | null;
52373
+ photos?: import("../integrations/supabase/types").Json;
51357
52374
  produced_stock?: number;
51358
52375
  product_code: string;
51359
52376
  tenant_id: string;
52377
+ unit?: string;
51360
52378
  updated_at?: string;
51361
52379
  };
51362
52380
  Update: {
52381
+ aantal_te_produceren?: number;
51363
52382
  created_at?: string;
51364
52383
  description?: string | null;
51365
52384
  id?: string;
51366
52385
  is_active?: boolean;
52386
+ location_id?: string | null;
51367
52387
  name?: string;
52388
+ partij_nummer?: string | null;
52389
+ photos?: import("../integrations/supabase/types").Json;
51368
52390
  produced_stock?: number;
51369
52391
  product_code?: string;
51370
52392
  tenant_id?: string;
52393
+ unit?: string;
51371
52394
  updated_at?: string;
51372
52395
  };
51373
- Relationships: [];
52396
+ Relationships: [{
52397
+ foreignKeyName: "manufacture_products_location_id_fkey";
52398
+ columns: ["location_id"];
52399
+ isOneToOne: false;
52400
+ referencedRelation: "locations";
52401
+ referencedColumns: ["id"];
52402
+ }];
51374
52403
  };
51375
52404
  monteurs: {
51376
52405
  Row: {
@@ -56234,6 +57263,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
56234
57263
  };
56235
57264
  Returns: undefined;
56236
57265
  };
57266
+ next_manufacture_partij: {
57267
+ Args: {
57268
+ _tenant_id: string;
57269
+ };
57270
+ Returns: string;
57271
+ };
56237
57272
  next_order_number: {
56238
57273
  Args: {
56239
57274
  p_prefix: string;