@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
@@ -250,6 +250,165 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
250
250
  };
251
251
  Relationships: [];
252
252
  };
253
+ ai_credentials: {
254
+ Row: {
255
+ active: boolean;
256
+ api_key: string;
257
+ created_at: string;
258
+ created_by: string | null;
259
+ id: string;
260
+ label: string;
261
+ provider_id: string;
262
+ updated_at: string;
263
+ };
264
+ Insert: {
265
+ active?: boolean;
266
+ api_key: string;
267
+ created_at?: string;
268
+ created_by?: string | null;
269
+ id?: string;
270
+ label: string;
271
+ provider_id: string;
272
+ updated_at?: string;
273
+ };
274
+ Update: {
275
+ active?: boolean;
276
+ api_key?: string;
277
+ created_at?: string;
278
+ created_by?: string | null;
279
+ id?: string;
280
+ label?: string;
281
+ provider_id?: string;
282
+ updated_at?: string;
283
+ };
284
+ Relationships: [{
285
+ foreignKeyName: "ai_credentials_provider_id_fkey";
286
+ columns: ["provider_id"];
287
+ isOneToOne: false;
288
+ referencedRelation: "ai_providers";
289
+ referencedColumns: ["id"];
290
+ }];
291
+ };
292
+ ai_models: {
293
+ Row: {
294
+ active: boolean;
295
+ context_window: number | null;
296
+ created_at: string;
297
+ display_name: string;
298
+ id: string;
299
+ is_default: boolean;
300
+ modality: string;
301
+ provider_id: string;
302
+ slug: string;
303
+ updated_at: string;
304
+ };
305
+ Insert: {
306
+ active?: boolean;
307
+ context_window?: number | null;
308
+ created_at?: string;
309
+ display_name: string;
310
+ id?: string;
311
+ is_default?: boolean;
312
+ modality?: string;
313
+ provider_id: string;
314
+ slug: string;
315
+ updated_at?: string;
316
+ };
317
+ Update: {
318
+ active?: boolean;
319
+ context_window?: number | null;
320
+ created_at?: string;
321
+ display_name?: string;
322
+ id?: string;
323
+ is_default?: boolean;
324
+ modality?: string;
325
+ provider_id?: string;
326
+ slug?: string;
327
+ updated_at?: string;
328
+ };
329
+ Relationships: [{
330
+ foreignKeyName: "ai_models_provider_id_fkey";
331
+ columns: ["provider_id"];
332
+ isOneToOne: false;
333
+ referencedRelation: "ai_providers";
334
+ referencedColumns: ["id"];
335
+ }];
336
+ };
337
+ ai_module_bindings: {
338
+ Row: {
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
+ Insert: {
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
+ Update: {
357
+ consumer_module_id?: string;
358
+ created_at?: string;
359
+ credential_id?: string;
360
+ id?: string;
361
+ model_id?: string;
362
+ notes?: string | null;
363
+ updated_at?: string;
364
+ };
365
+ Relationships: [{
366
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
367
+ columns: ["credential_id"];
368
+ isOneToOne: false;
369
+ referencedRelation: "ai_credentials";
370
+ referencedColumns: ["id"];
371
+ }, {
372
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
373
+ columns: ["model_id"];
374
+ isOneToOne: false;
375
+ referencedRelation: "ai_models";
376
+ referencedColumns: ["id"];
377
+ }];
378
+ };
379
+ ai_providers: {
380
+ Row: {
381
+ active: boolean;
382
+ auth_type: string;
383
+ base_url: string | null;
384
+ created_at: string;
385
+ id: string;
386
+ name: string;
387
+ slug: string;
388
+ updated_at: string;
389
+ };
390
+ Insert: {
391
+ active?: boolean;
392
+ auth_type?: string;
393
+ base_url?: string | null;
394
+ created_at?: string;
395
+ id?: string;
396
+ name: string;
397
+ slug: string;
398
+ updated_at?: string;
399
+ };
400
+ Update: {
401
+ active?: boolean;
402
+ auth_type?: string;
403
+ base_url?: string | null;
404
+ created_at?: string;
405
+ id?: string;
406
+ name?: string;
407
+ slug?: string;
408
+ updated_at?: string;
409
+ };
410
+ Relationships: [];
411
+ };
253
412
  app_settings: {
254
413
  Row: {
255
414
  created_at: string;
@@ -3853,6 +4012,27 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
3853
4012
  referencedColumns: ["id"];
3854
4013
  }];
3855
4014
  };
4015
+ floriday_continuous_stock_cache: {
4016
+ Row: {
4017
+ connection_id: string;
4018
+ fetched_at: string;
4019
+ number_of_pieces: number;
4020
+ trade_item_id: string;
4021
+ };
4022
+ Insert: {
4023
+ connection_id: string;
4024
+ fetched_at?: string;
4025
+ number_of_pieces?: number;
4026
+ trade_item_id: string;
4027
+ };
4028
+ Update: {
4029
+ connection_id?: string;
4030
+ fetched_at?: string;
4031
+ number_of_pieces?: number;
4032
+ trade_item_id?: string;
4033
+ };
4034
+ Relationships: [];
4035
+ };
3856
4036
  floriday_continuous_stock_queue: {
3857
4037
  Row: {
3858
4038
  attempts: number;
@@ -5976,39 +6156,60 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5976
6156
  };
5977
6157
  manufacture_products: {
5978
6158
  Row: {
6159
+ aantal_te_produceren: number;
5979
6160
  created_at: string;
5980
6161
  description: string | null;
5981
6162
  id: string;
5982
6163
  is_active: boolean;
6164
+ location_id: string | null;
5983
6165
  name: string;
6166
+ partij_nummer: string | null;
6167
+ photos: import("../integrations/supabase/types").Json;
5984
6168
  produced_stock: number;
5985
6169
  product_code: string;
5986
6170
  tenant_id: string;
6171
+ unit: string;
5987
6172
  updated_at: string;
5988
6173
  };
5989
6174
  Insert: {
6175
+ aantal_te_produceren?: number;
5990
6176
  created_at?: string;
5991
6177
  description?: string | null;
5992
6178
  id?: string;
5993
6179
  is_active?: boolean;
6180
+ location_id?: string | null;
5994
6181
  name: string;
6182
+ partij_nummer?: string | null;
6183
+ photos?: import("../integrations/supabase/types").Json;
5995
6184
  produced_stock?: number;
5996
6185
  product_code: string;
5997
6186
  tenant_id: string;
6187
+ unit?: string;
5998
6188
  updated_at?: string;
5999
6189
  };
6000
6190
  Update: {
6191
+ aantal_te_produceren?: number;
6001
6192
  created_at?: string;
6002
6193
  description?: string | null;
6003
6194
  id?: string;
6004
6195
  is_active?: boolean;
6196
+ location_id?: string | null;
6005
6197
  name?: string;
6198
+ partij_nummer?: string | null;
6199
+ photos?: import("../integrations/supabase/types").Json;
6006
6200
  produced_stock?: number;
6007
6201
  product_code?: string;
6008
6202
  tenant_id?: string;
6203
+ unit?: string;
6009
6204
  updated_at?: string;
6010
6205
  };
6011
- Relationships: [];
6206
+ Relationships: [{
6207
+ foreignKeyName: "manufacture_products_location_id_fkey";
6208
+ columns: ["location_id"];
6209
+ isOneToOne: false;
6210
+ referencedRelation: "locations";
6211
+ referencedColumns: ["id"];
6212
+ }];
6012
6213
  };
6013
6214
  monteurs: {
6014
6215
  Row: {
@@ -10872,6 +11073,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10872
11073
  };
10873
11074
  Returns: undefined;
10874
11075
  };
11076
+ next_manufacture_partij: {
11077
+ Args: {
11078
+ _tenant_id: string;
11079
+ };
11080
+ Returns: string;
11081
+ };
10875
11082
  next_order_number: {
10876
11083
  Args: {
10877
11084
  p_prefix: string;
@@ -11607,6 +11814,165 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
11607
11814
  };
11608
11815
  Relationships: [];
11609
11816
  };
11817
+ ai_credentials: {
11818
+ Row: {
11819
+ active: boolean;
11820
+ api_key: string;
11821
+ created_at: string;
11822
+ created_by: string | null;
11823
+ id: string;
11824
+ label: string;
11825
+ provider_id: string;
11826
+ updated_at: string;
11827
+ };
11828
+ Insert: {
11829
+ active?: boolean;
11830
+ api_key: string;
11831
+ created_at?: string;
11832
+ created_by?: string | null;
11833
+ id?: string;
11834
+ label: string;
11835
+ provider_id: string;
11836
+ updated_at?: string;
11837
+ };
11838
+ Update: {
11839
+ active?: boolean;
11840
+ api_key?: string;
11841
+ created_at?: string;
11842
+ created_by?: string | null;
11843
+ id?: string;
11844
+ label?: string;
11845
+ provider_id?: string;
11846
+ updated_at?: string;
11847
+ };
11848
+ Relationships: [{
11849
+ foreignKeyName: "ai_credentials_provider_id_fkey";
11850
+ columns: ["provider_id"];
11851
+ isOneToOne: false;
11852
+ referencedRelation: "ai_providers";
11853
+ referencedColumns: ["id"];
11854
+ }];
11855
+ };
11856
+ ai_models: {
11857
+ Row: {
11858
+ active: boolean;
11859
+ context_window: number | null;
11860
+ created_at: string;
11861
+ display_name: string;
11862
+ id: string;
11863
+ is_default: boolean;
11864
+ modality: string;
11865
+ provider_id: string;
11866
+ slug: string;
11867
+ updated_at: string;
11868
+ };
11869
+ Insert: {
11870
+ active?: boolean;
11871
+ context_window?: number | null;
11872
+ created_at?: string;
11873
+ display_name: string;
11874
+ id?: string;
11875
+ is_default?: boolean;
11876
+ modality?: string;
11877
+ provider_id: string;
11878
+ slug: string;
11879
+ updated_at?: string;
11880
+ };
11881
+ Update: {
11882
+ active?: boolean;
11883
+ context_window?: number | null;
11884
+ created_at?: string;
11885
+ display_name?: string;
11886
+ id?: string;
11887
+ is_default?: boolean;
11888
+ modality?: string;
11889
+ provider_id?: string;
11890
+ slug?: string;
11891
+ updated_at?: string;
11892
+ };
11893
+ Relationships: [{
11894
+ foreignKeyName: "ai_models_provider_id_fkey";
11895
+ columns: ["provider_id"];
11896
+ isOneToOne: false;
11897
+ referencedRelation: "ai_providers";
11898
+ referencedColumns: ["id"];
11899
+ }];
11900
+ };
11901
+ ai_module_bindings: {
11902
+ Row: {
11903
+ consumer_module_id: string;
11904
+ created_at: string;
11905
+ credential_id: string;
11906
+ id: string;
11907
+ model_id: string;
11908
+ notes: string | null;
11909
+ updated_at: string;
11910
+ };
11911
+ Insert: {
11912
+ consumer_module_id: string;
11913
+ created_at?: string;
11914
+ credential_id: string;
11915
+ id?: string;
11916
+ model_id: string;
11917
+ notes?: string | null;
11918
+ updated_at?: string;
11919
+ };
11920
+ Update: {
11921
+ consumer_module_id?: string;
11922
+ created_at?: string;
11923
+ credential_id?: string;
11924
+ id?: string;
11925
+ model_id?: string;
11926
+ notes?: string | null;
11927
+ updated_at?: string;
11928
+ };
11929
+ Relationships: [{
11930
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
11931
+ columns: ["credential_id"];
11932
+ isOneToOne: false;
11933
+ referencedRelation: "ai_credentials";
11934
+ referencedColumns: ["id"];
11935
+ }, {
11936
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
11937
+ columns: ["model_id"];
11938
+ isOneToOne: false;
11939
+ referencedRelation: "ai_models";
11940
+ referencedColumns: ["id"];
11941
+ }];
11942
+ };
11943
+ ai_providers: {
11944
+ Row: {
11945
+ active: boolean;
11946
+ auth_type: string;
11947
+ base_url: string | null;
11948
+ created_at: string;
11949
+ id: string;
11950
+ name: string;
11951
+ slug: string;
11952
+ updated_at: string;
11953
+ };
11954
+ Insert: {
11955
+ active?: boolean;
11956
+ auth_type?: string;
11957
+ base_url?: string | null;
11958
+ created_at?: string;
11959
+ id?: string;
11960
+ name: string;
11961
+ slug: string;
11962
+ updated_at?: string;
11963
+ };
11964
+ Update: {
11965
+ active?: boolean;
11966
+ auth_type?: string;
11967
+ base_url?: string | null;
11968
+ created_at?: string;
11969
+ id?: string;
11970
+ name?: string;
11971
+ slug?: string;
11972
+ updated_at?: string;
11973
+ };
11974
+ Relationships: [];
11975
+ };
11610
11976
  app_settings: {
11611
11977
  Row: {
11612
11978
  created_at: string;
@@ -15210,6 +15576,27 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
15210
15576
  referencedColumns: ["id"];
15211
15577
  }];
15212
15578
  };
15579
+ floriday_continuous_stock_cache: {
15580
+ Row: {
15581
+ connection_id: string;
15582
+ fetched_at: string;
15583
+ number_of_pieces: number;
15584
+ trade_item_id: string;
15585
+ };
15586
+ Insert: {
15587
+ connection_id: string;
15588
+ fetched_at?: string;
15589
+ number_of_pieces?: number;
15590
+ trade_item_id: string;
15591
+ };
15592
+ Update: {
15593
+ connection_id?: string;
15594
+ fetched_at?: string;
15595
+ number_of_pieces?: number;
15596
+ trade_item_id?: string;
15597
+ };
15598
+ Relationships: [];
15599
+ };
15213
15600
  floriday_continuous_stock_queue: {
15214
15601
  Row: {
15215
15602
  attempts: number;
@@ -17333,39 +17720,60 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
17333
17720
  };
17334
17721
  manufacture_products: {
17335
17722
  Row: {
17723
+ aantal_te_produceren: number;
17336
17724
  created_at: string;
17337
17725
  description: string | null;
17338
17726
  id: string;
17339
17727
  is_active: boolean;
17728
+ location_id: string | null;
17340
17729
  name: string;
17730
+ partij_nummer: string | null;
17731
+ photos: import("../integrations/supabase/types").Json;
17341
17732
  produced_stock: number;
17342
17733
  product_code: string;
17343
17734
  tenant_id: string;
17735
+ unit: string;
17344
17736
  updated_at: string;
17345
17737
  };
17346
17738
  Insert: {
17739
+ aantal_te_produceren?: number;
17347
17740
  created_at?: string;
17348
17741
  description?: string | null;
17349
17742
  id?: string;
17350
17743
  is_active?: boolean;
17744
+ location_id?: string | null;
17351
17745
  name: string;
17746
+ partij_nummer?: string | null;
17747
+ photos?: import("../integrations/supabase/types").Json;
17352
17748
  produced_stock?: number;
17353
17749
  product_code: string;
17354
17750
  tenant_id: string;
17751
+ unit?: string;
17355
17752
  updated_at?: string;
17356
17753
  };
17357
17754
  Update: {
17755
+ aantal_te_produceren?: number;
17358
17756
  created_at?: string;
17359
17757
  description?: string | null;
17360
17758
  id?: string;
17361
17759
  is_active?: boolean;
17760
+ location_id?: string | null;
17362
17761
  name?: string;
17762
+ partij_nummer?: string | null;
17763
+ photos?: import("../integrations/supabase/types").Json;
17363
17764
  produced_stock?: number;
17364
17765
  product_code?: string;
17365
17766
  tenant_id?: string;
17767
+ unit?: string;
17366
17768
  updated_at?: string;
17367
17769
  };
17368
- Relationships: [];
17770
+ Relationships: [{
17771
+ foreignKeyName: "manufacture_products_location_id_fkey";
17772
+ columns: ["location_id"];
17773
+ isOneToOne: false;
17774
+ referencedRelation: "locations";
17775
+ referencedColumns: ["id"];
17776
+ }];
17369
17777
  };
17370
17778
  monteurs: {
17371
17779
  Row: {
@@ -22229,6 +22637,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
22229
22637
  };
22230
22638
  Returns: undefined;
22231
22639
  };
22640
+ next_manufacture_partij: {
22641
+ Args: {
22642
+ _tenant_id: string;
22643
+ };
22644
+ Returns: string;
22645
+ };
22232
22646
  next_order_number: {
22233
22647
  Args: {
22234
22648
  p_prefix: string;