@flowselections/floriday-authenticatie-module 1.0.20 → 1.0.22

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 (31) hide show
  1. package/dist-lib/components/settings/FlorydaySettingsCard.js +0 -3
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts +976 -179
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  4. package/dist-lib/integrations/supabase/client.d.ts +976 -179
  5. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  6. package/dist-lib/integrations/supabase/client.server.d.ts +976 -179
  7. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/types.d.ts +994 -170
  9. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  10. package/dist-lib/lib/floricode.functions.d.ts +6833 -1254
  11. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  12. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +976 -179
  13. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  14. package/dist-lib/lib/floriday-labels.functions.d.ts +976 -179
  15. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/floriday-public.functions.d.ts +5852 -1070
  17. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floriday-scopes.d.ts +0 -8
  19. package/dist-lib/lib/floriday-scopes.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-scopes.js +4 -28
  21. package/dist-lib/lib/floriday-stickers.functions.d.ts +976 -179
  22. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday-sync.functions.d.ts +30431 -28430
  24. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-sync.functions.js +62 -145
  26. package/dist-lib/lib/floriday-writes.functions.d.ts +5858 -1112
  27. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday.functions.d.ts +17624 -3278
  29. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday.functions.js +47 -21
  31. package/package.json +3 -3
@@ -255,6 +255,165 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
255
255
  };
256
256
  Relationships: [];
257
257
  };
258
+ ai_credentials: {
259
+ Row: {
260
+ active: boolean;
261
+ api_key: string;
262
+ created_at: string;
263
+ created_by: string | null;
264
+ id: string;
265
+ label: string;
266
+ provider_id: string;
267
+ updated_at: string;
268
+ };
269
+ Insert: {
270
+ active?: boolean;
271
+ api_key: string;
272
+ created_at?: string;
273
+ created_by?: string | null;
274
+ id?: string;
275
+ label: string;
276
+ provider_id: string;
277
+ updated_at?: string;
278
+ };
279
+ Update: {
280
+ active?: boolean;
281
+ api_key?: string;
282
+ created_at?: string;
283
+ created_by?: string | null;
284
+ id?: string;
285
+ label?: string;
286
+ provider_id?: string;
287
+ updated_at?: string;
288
+ };
289
+ Relationships: [{
290
+ foreignKeyName: "ai_credentials_provider_id_fkey";
291
+ columns: ["provider_id"];
292
+ isOneToOne: false;
293
+ referencedRelation: "ai_providers";
294
+ referencedColumns: ["id"];
295
+ }];
296
+ };
297
+ ai_models: {
298
+ Row: {
299
+ active: boolean;
300
+ context_window: number | null;
301
+ created_at: string;
302
+ display_name: string;
303
+ id: string;
304
+ is_default: boolean;
305
+ modality: string;
306
+ provider_id: string;
307
+ slug: string;
308
+ updated_at: string;
309
+ };
310
+ Insert: {
311
+ active?: boolean;
312
+ context_window?: number | null;
313
+ created_at?: string;
314
+ display_name: string;
315
+ id?: string;
316
+ is_default?: boolean;
317
+ modality?: string;
318
+ provider_id: string;
319
+ slug: string;
320
+ updated_at?: string;
321
+ };
322
+ Update: {
323
+ active?: boolean;
324
+ context_window?: number | null;
325
+ created_at?: string;
326
+ display_name?: string;
327
+ id?: string;
328
+ is_default?: boolean;
329
+ modality?: string;
330
+ provider_id?: string;
331
+ slug?: string;
332
+ updated_at?: string;
333
+ };
334
+ Relationships: [{
335
+ foreignKeyName: "ai_models_provider_id_fkey";
336
+ columns: ["provider_id"];
337
+ isOneToOne: false;
338
+ referencedRelation: "ai_providers";
339
+ referencedColumns: ["id"];
340
+ }];
341
+ };
342
+ ai_module_bindings: {
343
+ Row: {
344
+ consumer_module_id: string;
345
+ created_at: string;
346
+ credential_id: string;
347
+ id: string;
348
+ model_id: string;
349
+ notes: string | null;
350
+ updated_at: string;
351
+ };
352
+ Insert: {
353
+ consumer_module_id: string;
354
+ created_at?: string;
355
+ credential_id: string;
356
+ id?: string;
357
+ model_id: string;
358
+ notes?: string | null;
359
+ updated_at?: string;
360
+ };
361
+ Update: {
362
+ consumer_module_id?: string;
363
+ created_at?: string;
364
+ credential_id?: string;
365
+ id?: string;
366
+ model_id?: string;
367
+ notes?: string | null;
368
+ updated_at?: string;
369
+ };
370
+ Relationships: [{
371
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
372
+ columns: ["credential_id"];
373
+ isOneToOne: false;
374
+ referencedRelation: "ai_credentials";
375
+ referencedColumns: ["id"];
376
+ }, {
377
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
378
+ columns: ["model_id"];
379
+ isOneToOne: false;
380
+ referencedRelation: "ai_models";
381
+ referencedColumns: ["id"];
382
+ }];
383
+ };
384
+ ai_providers: {
385
+ Row: {
386
+ active: boolean;
387
+ auth_type: string;
388
+ base_url: string | null;
389
+ created_at: string;
390
+ id: string;
391
+ name: string;
392
+ slug: string;
393
+ updated_at: string;
394
+ };
395
+ Insert: {
396
+ active?: boolean;
397
+ auth_type?: string;
398
+ base_url?: string | null;
399
+ created_at?: string;
400
+ id?: string;
401
+ name: string;
402
+ slug: string;
403
+ updated_at?: string;
404
+ };
405
+ Update: {
406
+ active?: boolean;
407
+ auth_type?: string;
408
+ base_url?: string | null;
409
+ created_at?: string;
410
+ id?: string;
411
+ name?: string;
412
+ slug?: string;
413
+ updated_at?: string;
414
+ };
415
+ Relationships: [];
416
+ };
258
417
  app_settings: {
259
418
  Row: {
260
419
  created_at: string;
@@ -3261,105 +3420,6 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
3261
3420
  referencedColumns: ["id"];
3262
3421
  }];
3263
3422
  };
3264
- floriday_agreement_calloffs_cache: {
3265
- Row: {
3266
- agreement_id: string | null;
3267
- connection_id: string;
3268
- data: import("../integrations/supabase/types").Json;
3269
- delivery_date: string | null;
3270
- fetched_at: string;
3271
- floriday_id: string;
3272
- id: string;
3273
- is_deleted: boolean;
3274
- sequence_number: number;
3275
- status: string | null;
3276
- updated_at: string;
3277
- };
3278
- Insert: {
3279
- agreement_id?: string | null;
3280
- connection_id: string;
3281
- data?: import("../integrations/supabase/types").Json;
3282
- delivery_date?: string | null;
3283
- fetched_at?: string;
3284
- floriday_id: string;
3285
- id?: string;
3286
- is_deleted?: boolean;
3287
- sequence_number?: number;
3288
- status?: string | null;
3289
- updated_at?: string;
3290
- };
3291
- Update: {
3292
- agreement_id?: string | null;
3293
- connection_id?: string;
3294
- data?: import("../integrations/supabase/types").Json;
3295
- delivery_date?: string | null;
3296
- fetched_at?: string;
3297
- floriday_id?: string;
3298
- id?: string;
3299
- is_deleted?: boolean;
3300
- sequence_number?: number;
3301
- status?: string | null;
3302
- updated_at?: string;
3303
- };
3304
- Relationships: [{
3305
- foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3306
- columns: ["connection_id"];
3307
- isOneToOne: false;
3308
- referencedRelation: "floriday_connections";
3309
- referencedColumns: ["id"];
3310
- }];
3311
- };
3312
- floriday_agreements_cache: {
3313
- Row: {
3314
- buyer_organization_id: string | null;
3315
- connection_id: string;
3316
- data: import("../integrations/supabase/types").Json;
3317
- fetched_at: string;
3318
- floriday_id: string;
3319
- id: string;
3320
- is_deleted: boolean;
3321
- sequence_number: number;
3322
- status: string | null;
3323
- updated_at: string;
3324
- valid_from: string | null;
3325
- valid_until: string | null;
3326
- };
3327
- Insert: {
3328
- buyer_organization_id?: string | null;
3329
- connection_id: string;
3330
- data?: import("../integrations/supabase/types").Json;
3331
- fetched_at?: string;
3332
- floriday_id: string;
3333
- id?: string;
3334
- is_deleted?: boolean;
3335
- sequence_number?: number;
3336
- status?: string | null;
3337
- updated_at?: string;
3338
- valid_from?: string | null;
3339
- valid_until?: string | null;
3340
- };
3341
- Update: {
3342
- buyer_organization_id?: string | null;
3343
- connection_id?: string;
3344
- data?: import("../integrations/supabase/types").Json;
3345
- fetched_at?: string;
3346
- floriday_id?: string;
3347
- id?: string;
3348
- is_deleted?: boolean;
3349
- sequence_number?: number;
3350
- status?: string | null;
3351
- updated_at?: string;
3352
- valid_from?: string | null;
3353
- valid_until?: string | null;
3354
- };
3355
- Relationships: [{
3356
- foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3357
- columns: ["connection_id"];
3358
- isOneToOne: false;
3359
- referencedRelation: "floriday_connections";
3360
- referencedColumns: ["id"];
3361
- }];
3362
- };
3363
3423
  floriday_auction_letters_cache: {
3364
3424
  Row: {
3365
3425
  auction_letter_code: string;
@@ -3858,6 +3918,27 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
3858
3918
  referencedColumns: ["id"];
3859
3919
  }];
3860
3920
  };
3921
+ floriday_continuous_stock_cache: {
3922
+ Row: {
3923
+ connection_id: string;
3924
+ fetched_at: string;
3925
+ number_of_pieces: number;
3926
+ trade_item_id: string;
3927
+ };
3928
+ Insert: {
3929
+ connection_id: string;
3930
+ fetched_at?: string;
3931
+ number_of_pieces?: number;
3932
+ trade_item_id: string;
3933
+ };
3934
+ Update: {
3935
+ connection_id?: string;
3936
+ fetched_at?: string;
3937
+ number_of_pieces?: number;
3938
+ trade_item_id?: string;
3939
+ };
3940
+ Relationships: [];
3941
+ };
3861
3942
  floriday_continuous_stock_queue: {
3862
3943
  Row: {
3863
3944
  attempts: number;
@@ -4633,6 +4714,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4633
4714
  Row: {
4634
4715
  buyer_organization_id: string | null;
4635
4716
  connection_id: string;
4717
+ controlled_at: string | null;
4718
+ controlled_by: string | null;
4636
4719
  created_at: string;
4637
4720
  data: import("../integrations/supabase/types").Json;
4638
4721
  floriday_id: string;
@@ -4644,6 +4727,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4644
4727
  Insert: {
4645
4728
  buyer_organization_id?: string | null;
4646
4729
  connection_id: string;
4730
+ controlled_at?: string | null;
4731
+ controlled_by?: string | null;
4647
4732
  created_at?: string;
4648
4733
  data: import("../integrations/supabase/types").Json;
4649
4734
  floriday_id: string;
@@ -4655,6 +4740,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4655
4740
  Update: {
4656
4741
  buyer_organization_id?: string | null;
4657
4742
  connection_id?: string;
4743
+ controlled_at?: string | null;
4744
+ controlled_by?: string | null;
4658
4745
  created_at?: string;
4659
4746
  data?: import("../integrations/supabase/types").Json;
4660
4747
  floriday_id?: string;
@@ -4836,9 +4923,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4836
4923
  referencedColumns: ["id"];
4837
4924
  }];
4838
4925
  };
4839
- floriday_trips_cache: {
4926
+ floriday_trade_settings_customers_cache: {
4840
4927
  Row: {
4841
- carrier_organization_id: string | null;
4842
4928
  connection_id: string;
4843
4929
  data: import("../integrations/supabase/types").Json;
4844
4930
  fetched_at: string;
@@ -4846,25 +4932,19 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4846
4932
  id: string;
4847
4933
  is_deleted: boolean;
4848
4934
  sequence_number: number;
4849
- status: string | null;
4850
- trip_date: string | null;
4851
4935
  updated_at: string;
4852
4936
  };
4853
4937
  Insert: {
4854
- carrier_organization_id?: string | null;
4855
4938
  connection_id: string;
4856
- data?: import("../integrations/supabase/types").Json;
4939
+ data: import("../integrations/supabase/types").Json;
4857
4940
  fetched_at?: string;
4858
4941
  floriday_id: string;
4859
4942
  id?: string;
4860
4943
  is_deleted?: boolean;
4861
4944
  sequence_number?: number;
4862
- status?: string | null;
4863
- trip_date?: string | null;
4864
4945
  updated_at?: string;
4865
4946
  };
4866
4947
  Update: {
4867
- carrier_organization_id?: string | null;
4868
4948
  connection_id?: string;
4869
4949
  data?: import("../integrations/supabase/types").Json;
4870
4950
  fetched_at?: string;
@@ -4872,31 +4952,77 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4872
4952
  id?: string;
4873
4953
  is_deleted?: boolean;
4874
4954
  sequence_number?: number;
4875
- status?: string | null;
4876
- trip_date?: string | null;
4877
4955
  updated_at?: string;
4878
4956
  };
4879
4957
  Relationships: [{
4880
- foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4958
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
4881
4959
  columns: ["connection_id"];
4882
4960
  isOneToOne: false;
4883
4961
  referencedRelation: "floriday_connections";
4884
4962
  referencedColumns: ["id"];
4885
4963
  }];
4886
4964
  };
4887
- floriday_warehouses_cache: {
4965
+ floriday_trips_cache: {
4888
4966
  Row: {
4967
+ carrier_organization_id: string | null;
4889
4968
  connection_id: string;
4890
4969
  data: import("../integrations/supabase/types").Json;
4891
4970
  fetched_at: string;
4892
4971
  floriday_id: string;
4893
- gln_code: string | null;
4894
4972
  id: string;
4895
- is_default: boolean;
4896
4973
  is_deleted: boolean;
4897
- name: string | null;
4898
- updated_at: string;
4899
- };
4974
+ sequence_number: number;
4975
+ status: string | null;
4976
+ trip_date: string | null;
4977
+ updated_at: string;
4978
+ };
4979
+ Insert: {
4980
+ carrier_organization_id?: string | null;
4981
+ connection_id: string;
4982
+ data?: import("../integrations/supabase/types").Json;
4983
+ fetched_at?: string;
4984
+ floriday_id: string;
4985
+ id?: string;
4986
+ is_deleted?: boolean;
4987
+ sequence_number?: number;
4988
+ status?: string | null;
4989
+ trip_date?: string | null;
4990
+ updated_at?: string;
4991
+ };
4992
+ Update: {
4993
+ carrier_organization_id?: string | null;
4994
+ connection_id?: string;
4995
+ data?: import("../integrations/supabase/types").Json;
4996
+ fetched_at?: string;
4997
+ floriday_id?: string;
4998
+ id?: string;
4999
+ is_deleted?: boolean;
5000
+ sequence_number?: number;
5001
+ status?: string | null;
5002
+ trip_date?: string | null;
5003
+ updated_at?: string;
5004
+ };
5005
+ Relationships: [{
5006
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
5007
+ columns: ["connection_id"];
5008
+ isOneToOne: false;
5009
+ referencedRelation: "floriday_connections";
5010
+ referencedColumns: ["id"];
5011
+ }];
5012
+ };
5013
+ floriday_warehouses_cache: {
5014
+ Row: {
5015
+ connection_id: string;
5016
+ data: import("../integrations/supabase/types").Json;
5017
+ fetched_at: string;
5018
+ floriday_id: string;
5019
+ gln_code: string | null;
5020
+ id: string;
5021
+ is_default: boolean;
5022
+ is_deleted: boolean;
5023
+ name: string | null;
5024
+ updated_at: string;
5025
+ };
4900
5026
  Insert: {
4901
5027
  connection_id: string;
4902
5028
  data?: import("../integrations/supabase/types").Json;
@@ -5586,6 +5712,222 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
5586
5712
  };
5587
5713
  Relationships: [];
5588
5714
  };
5715
+ logistics_decisions: {
5716
+ Row: {
5717
+ created_at: string;
5718
+ explanation: string | null;
5719
+ id: string;
5720
+ input_snapshot: import("../integrations/supabase/types").Json;
5721
+ result: import("../integrations/supabase/types").Json;
5722
+ slot: string;
5723
+ strategy_id: string | null;
5724
+ subject_id: string;
5725
+ subject_type: string;
5726
+ user_id: string;
5727
+ };
5728
+ Insert: {
5729
+ created_at?: string;
5730
+ explanation?: string | null;
5731
+ id?: string;
5732
+ input_snapshot?: import("../integrations/supabase/types").Json;
5733
+ result?: import("../integrations/supabase/types").Json;
5734
+ slot: string;
5735
+ strategy_id?: string | null;
5736
+ subject_id: string;
5737
+ subject_type: string;
5738
+ user_id: string;
5739
+ };
5740
+ Update: {
5741
+ created_at?: string;
5742
+ explanation?: string | null;
5743
+ id?: string;
5744
+ input_snapshot?: import("../integrations/supabase/types").Json;
5745
+ result?: import("../integrations/supabase/types").Json;
5746
+ slot?: string;
5747
+ strategy_id?: string | null;
5748
+ subject_id?: string;
5749
+ subject_type?: string;
5750
+ user_id?: string;
5751
+ };
5752
+ Relationships: [{
5753
+ foreignKeyName: "logistics_decisions_strategy_id_fkey";
5754
+ columns: ["strategy_id"];
5755
+ isOneToOne: false;
5756
+ referencedRelation: "logistics_strategies";
5757
+ referencedColumns: ["id"];
5758
+ }];
5759
+ };
5760
+ logistics_formulas: {
5761
+ Row: {
5762
+ created_at: string;
5763
+ expression: string;
5764
+ id: string;
5765
+ notes: string | null;
5766
+ slot: string;
5767
+ strategy_id: string;
5768
+ updated_at: string;
5769
+ user_id: string;
5770
+ version: number;
5771
+ };
5772
+ Insert: {
5773
+ created_at?: string;
5774
+ expression?: string;
5775
+ id?: string;
5776
+ notes?: string | null;
5777
+ slot: string;
5778
+ strategy_id: string;
5779
+ updated_at?: string;
5780
+ user_id: string;
5781
+ version?: number;
5782
+ };
5783
+ Update: {
5784
+ created_at?: string;
5785
+ expression?: string;
5786
+ id?: string;
5787
+ notes?: string | null;
5788
+ slot?: string;
5789
+ strategy_id?: string;
5790
+ updated_at?: string;
5791
+ user_id?: string;
5792
+ version?: number;
5793
+ };
5794
+ Relationships: [{
5795
+ foreignKeyName: "logistics_formulas_strategy_id_fkey";
5796
+ columns: ["strategy_id"];
5797
+ isOneToOne: false;
5798
+ referencedRelation: "logistics_strategies";
5799
+ referencedColumns: ["id"];
5800
+ }];
5801
+ };
5802
+ logistics_strategies: {
5803
+ Row: {
5804
+ color: string;
5805
+ created_at: string;
5806
+ description: string | null;
5807
+ id: string;
5808
+ is_active: boolean;
5809
+ name: string;
5810
+ priority: number;
5811
+ updated_at: string;
5812
+ updated_by: string | null;
5813
+ user_id: string;
5814
+ version: number;
5815
+ };
5816
+ Insert: {
5817
+ color?: string;
5818
+ created_at?: string;
5819
+ description?: string | null;
5820
+ id?: string;
5821
+ is_active?: boolean;
5822
+ name: string;
5823
+ priority?: number;
5824
+ updated_at?: string;
5825
+ updated_by?: string | null;
5826
+ user_id: string;
5827
+ version?: number;
5828
+ };
5829
+ Update: {
5830
+ color?: string;
5831
+ created_at?: string;
5832
+ description?: string | null;
5833
+ id?: string;
5834
+ is_active?: boolean;
5835
+ name?: string;
5836
+ priority?: number;
5837
+ updated_at?: string;
5838
+ updated_by?: string | null;
5839
+ user_id?: string;
5840
+ version?: number;
5841
+ };
5842
+ Relationships: [];
5843
+ };
5844
+ logistics_strategy_schedules: {
5845
+ Row: {
5846
+ condition_expression: string | null;
5847
+ created_at: string;
5848
+ end_date: string | null;
5849
+ id: string;
5850
+ is_enabled: boolean;
5851
+ priority: number;
5852
+ rule_type: string;
5853
+ start_date: string | null;
5854
+ strategy_id: string;
5855
+ updated_at: string;
5856
+ user_id: string;
5857
+ };
5858
+ Insert: {
5859
+ condition_expression?: string | null;
5860
+ created_at?: string;
5861
+ end_date?: string | null;
5862
+ id?: string;
5863
+ is_enabled?: boolean;
5864
+ priority?: number;
5865
+ rule_type: string;
5866
+ start_date?: string | null;
5867
+ strategy_id: string;
5868
+ updated_at?: string;
5869
+ user_id: string;
5870
+ };
5871
+ Update: {
5872
+ condition_expression?: string | null;
5873
+ created_at?: string;
5874
+ end_date?: string | null;
5875
+ id?: string;
5876
+ is_enabled?: boolean;
5877
+ priority?: number;
5878
+ rule_type?: string;
5879
+ start_date?: string | null;
5880
+ strategy_id?: string;
5881
+ updated_at?: string;
5882
+ user_id?: string;
5883
+ };
5884
+ Relationships: [{
5885
+ foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
5886
+ columns: ["strategy_id"];
5887
+ isOneToOne: false;
5888
+ referencedRelation: "logistics_strategies";
5889
+ referencedColumns: ["id"];
5890
+ }];
5891
+ };
5892
+ logistics_variables: {
5893
+ Row: {
5894
+ created_at: string;
5895
+ default_value: string | null;
5896
+ description: string | null;
5897
+ id: string;
5898
+ is_builtin: boolean;
5899
+ key: string;
5900
+ label: string;
5901
+ updated_at: string;
5902
+ user_id: string;
5903
+ value_type: string;
5904
+ };
5905
+ Insert: {
5906
+ created_at?: string;
5907
+ default_value?: string | null;
5908
+ description?: string | null;
5909
+ id?: string;
5910
+ is_builtin?: boolean;
5911
+ key: string;
5912
+ label: string;
5913
+ updated_at?: string;
5914
+ user_id: string;
5915
+ value_type: string;
5916
+ };
5917
+ Update: {
5918
+ created_at?: string;
5919
+ default_value?: string | null;
5920
+ description?: string | null;
5921
+ id?: string;
5922
+ is_builtin?: boolean;
5923
+ key?: string;
5924
+ label?: string;
5925
+ updated_at?: string;
5926
+ user_id?: string;
5927
+ value_type?: string;
5928
+ };
5929
+ Relationships: [];
5930
+ };
5589
5931
  mailbox_messages: {
5590
5932
  Row: {
5591
5933
  body_html: string | null;
@@ -5981,39 +6323,60 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
5981
6323
  };
5982
6324
  manufacture_products: {
5983
6325
  Row: {
6326
+ aantal_te_produceren: number;
5984
6327
  created_at: string;
5985
6328
  description: string | null;
5986
6329
  id: string;
5987
6330
  is_active: boolean;
6331
+ location_id: string | null;
5988
6332
  name: string;
6333
+ partij_nummer: string | null;
6334
+ photos: import("../integrations/supabase/types").Json;
5989
6335
  produced_stock: number;
5990
6336
  product_code: string;
5991
6337
  tenant_id: string;
6338
+ unit: string;
5992
6339
  updated_at: string;
5993
6340
  };
5994
6341
  Insert: {
6342
+ aantal_te_produceren?: number;
5995
6343
  created_at?: string;
5996
6344
  description?: string | null;
5997
6345
  id?: string;
5998
6346
  is_active?: boolean;
6347
+ location_id?: string | null;
5999
6348
  name: string;
6349
+ partij_nummer?: string | null;
6350
+ photos?: import("../integrations/supabase/types").Json;
6000
6351
  produced_stock?: number;
6001
6352
  product_code: string;
6002
6353
  tenant_id: string;
6354
+ unit?: string;
6003
6355
  updated_at?: string;
6004
6356
  };
6005
6357
  Update: {
6358
+ aantal_te_produceren?: number;
6006
6359
  created_at?: string;
6007
6360
  description?: string | null;
6008
6361
  id?: string;
6009
6362
  is_active?: boolean;
6363
+ location_id?: string | null;
6010
6364
  name?: string;
6365
+ partij_nummer?: string | null;
6366
+ photos?: import("../integrations/supabase/types").Json;
6011
6367
  produced_stock?: number;
6012
6368
  product_code?: string;
6013
6369
  tenant_id?: string;
6370
+ unit?: string;
6014
6371
  updated_at?: string;
6015
6372
  };
6016
- Relationships: [];
6373
+ Relationships: [{
6374
+ foreignKeyName: "manufacture_products_location_id_fkey";
6375
+ columns: ["location_id"];
6376
+ isOneToOne: false;
6377
+ referencedRelation: "locations";
6378
+ referencedColumns: ["id"];
6379
+ }];
6017
6380
  };
6018
6381
  monteurs: {
6019
6382
  Row: {
@@ -6987,6 +7350,105 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6987
7350
  };
6988
7351
  Relationships: [];
6989
7352
  };
7353
+ order_shipment_items: {
7354
+ Row: {
7355
+ created_at: string;
7356
+ id: string;
7357
+ order_item_id: string;
7358
+ product_id: string | null;
7359
+ product_name: string;
7360
+ quantity: number;
7361
+ shipment_id: string;
7362
+ updated_at: string;
7363
+ };
7364
+ Insert: {
7365
+ created_at?: string;
7366
+ id?: string;
7367
+ order_item_id: string;
7368
+ product_id?: string | null;
7369
+ product_name: string;
7370
+ quantity: number;
7371
+ shipment_id: string;
7372
+ updated_at?: string;
7373
+ };
7374
+ Update: {
7375
+ created_at?: string;
7376
+ id?: string;
7377
+ order_item_id?: string;
7378
+ product_id?: string | null;
7379
+ product_name?: string;
7380
+ quantity?: number;
7381
+ shipment_id?: string;
7382
+ updated_at?: string;
7383
+ };
7384
+ Relationships: [{
7385
+ foreignKeyName: "order_shipment_items_order_item_id_fkey";
7386
+ columns: ["order_item_id"];
7387
+ isOneToOne: false;
7388
+ referencedRelation: "order_items";
7389
+ referencedColumns: ["id"];
7390
+ }, {
7391
+ foreignKeyName: "order_shipment_items_shipment_id_fkey";
7392
+ columns: ["shipment_id"];
7393
+ isOneToOne: false;
7394
+ referencedRelation: "order_shipments";
7395
+ referencedColumns: ["id"];
7396
+ }];
7397
+ };
7398
+ order_shipments: {
7399
+ Row: {
7400
+ carrier_id: string | null;
7401
+ created_at: string;
7402
+ delivery_date: string | null;
7403
+ delivery_location_id: string | null;
7404
+ id: string;
7405
+ notes: string | null;
7406
+ order_id: string;
7407
+ shipment_number: number;
7408
+ shipped_at: string | null;
7409
+ status: string;
7410
+ updated_at: string;
7411
+ };
7412
+ Insert: {
7413
+ carrier_id?: string | null;
7414
+ created_at?: string;
7415
+ delivery_date?: string | null;
7416
+ delivery_location_id?: string | null;
7417
+ id?: string;
7418
+ notes?: string | null;
7419
+ order_id: string;
7420
+ shipment_number: number;
7421
+ shipped_at?: string | null;
7422
+ status?: string;
7423
+ updated_at?: string;
7424
+ };
7425
+ Update: {
7426
+ carrier_id?: string | null;
7427
+ created_at?: string;
7428
+ delivery_date?: string | null;
7429
+ delivery_location_id?: string | null;
7430
+ id?: string;
7431
+ notes?: string | null;
7432
+ order_id?: string;
7433
+ shipment_number?: number;
7434
+ shipped_at?: string | null;
7435
+ status?: string;
7436
+ updated_at?: string;
7437
+ };
7438
+ Relationships: [{
7439
+ foreignKeyName: "order_shipments_carrier_id_fkey";
7440
+ columns: ["carrier_id"];
7441
+ isOneToOne: false;
7442
+ referencedRelation: "carriers";
7443
+ referencedColumns: ["id"];
7444
+ }, {
7445
+ foreignKeyName: "order_shipments_order_id_fkey";
7446
+ columns: ["order_id"];
7447
+ isOneToOne: false;
7448
+ referencedRelation: "orders";
7449
+ referencedColumns: ["id"];
7450
+ }];
7451
+ };
6990
7452
  orders: {
6991
7453
  Row: {
6992
7454
  created_at: string;
@@ -6994,8 +7456,9 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6994
7456
  customer_id: string | null;
6995
7457
  customer_name: string;
6996
7458
  deleted_at: string | null;
6997
- delivery_date: string;
7459
+ delivery_date: string | null;
6998
7460
  id: string;
7461
+ is_reservation: boolean;
6999
7462
  notes: string | null;
7000
7463
  order_date: string;
7001
7464
  order_number: string;
@@ -7012,8 +7475,9 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7012
7475
  customer_id?: string | null;
7013
7476
  customer_name?: string;
7014
7477
  deleted_at?: string | null;
7015
- delivery_date: string;
7478
+ delivery_date?: string | null;
7016
7479
  id?: string;
7480
+ is_reservation?: boolean;
7017
7481
  notes?: string | null;
7018
7482
  order_date?: string;
7019
7483
  order_number: string;
@@ -7030,8 +7494,9 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7030
7494
  customer_id?: string | null;
7031
7495
  customer_name?: string;
7032
7496
  deleted_at?: string | null;
7033
- delivery_date?: string;
7497
+ delivery_date?: string | null;
7034
7498
  id?: string;
7499
+ is_reservation?: boolean;
7035
7500
  notes?: string | null;
7036
7501
  order_date?: string;
7037
7502
  order_number?: string;
@@ -7146,32 +7611,89 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7146
7611
  color: string;
7147
7612
  created_at: string;
7148
7613
  id: string;
7149
- is_active: boolean;
7150
- name: string;
7614
+ is_active: boolean;
7615
+ name: string;
7616
+ sort_order: number;
7617
+ updated_at: string;
7618
+ };
7619
+ Insert: {
7620
+ automation_type?: string;
7621
+ color?: string;
7622
+ created_at?: string;
7623
+ id?: string;
7624
+ is_active?: boolean;
7625
+ name: string;
7626
+ sort_order?: number;
7627
+ updated_at?: string;
7628
+ };
7629
+ Update: {
7630
+ automation_type?: string;
7631
+ color?: string;
7632
+ created_at?: string;
7633
+ id?: string;
7634
+ is_active?: boolean;
7635
+ name?: string;
7636
+ sort_order?: number;
7637
+ updated_at?: string;
7638
+ };
7639
+ Relationships: [];
7640
+ };
7641
+ product_bom_items: {
7642
+ Row: {
7643
+ component_product_id: string | null;
7644
+ component_trade_item_floriday_id: string | null;
7645
+ created_at: string;
7646
+ id: string;
7647
+ notes: string | null;
7648
+ parent_product_id: string | null;
7649
+ parent_trade_item_floriday_id: string | null;
7650
+ quantity: number;
7151
7651
  sort_order: number;
7652
+ tenant_id: string;
7653
+ unit: string;
7152
7654
  updated_at: string;
7153
7655
  };
7154
7656
  Insert: {
7155
- automation_type?: string;
7156
- color?: string;
7657
+ component_product_id?: string | null;
7658
+ component_trade_item_floriday_id?: string | null;
7157
7659
  created_at?: string;
7158
7660
  id?: string;
7159
- is_active?: boolean;
7160
- name: string;
7661
+ notes?: string | null;
7662
+ parent_product_id?: string | null;
7663
+ parent_trade_item_floriday_id?: string | null;
7664
+ quantity?: number;
7161
7665
  sort_order?: number;
7666
+ tenant_id: string;
7667
+ unit?: string;
7162
7668
  updated_at?: string;
7163
7669
  };
7164
7670
  Update: {
7165
- automation_type?: string;
7166
- color?: string;
7671
+ component_product_id?: string | null;
7672
+ component_trade_item_floriday_id?: string | null;
7167
7673
  created_at?: string;
7168
7674
  id?: string;
7169
- is_active?: boolean;
7170
- name?: string;
7675
+ notes?: string | null;
7676
+ parent_product_id?: string | null;
7677
+ parent_trade_item_floriday_id?: string | null;
7678
+ quantity?: number;
7171
7679
  sort_order?: number;
7680
+ tenant_id?: string;
7681
+ unit?: string;
7172
7682
  updated_at?: string;
7173
7683
  };
7174
- Relationships: [];
7684
+ Relationships: [{
7685
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
7686
+ columns: ["component_product_id"];
7687
+ isOneToOne: false;
7688
+ referencedRelation: "products";
7689
+ referencedColumns: ["id"];
7690
+ }, {
7691
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
7692
+ columns: ["parent_product_id"];
7693
+ isOneToOne: false;
7694
+ referencedRelation: "products";
7695
+ referencedColumns: ["id"];
7696
+ }];
7175
7697
  };
7176
7698
  product_categories: {
7177
7699
  Row: {
@@ -7278,6 +7800,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7278
7800
  id: string;
7279
7801
  product_group_id: string;
7280
7802
  quantity: number;
7803
+ sort_order: number;
7281
7804
  trade_item_id: string;
7282
7805
  };
7283
7806
  Insert: {
@@ -7285,6 +7808,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7285
7808
  id?: string;
7286
7809
  product_group_id: string;
7287
7810
  quantity?: number;
7811
+ sort_order?: number;
7288
7812
  trade_item_id: string;
7289
7813
  };
7290
7814
  Update: {
@@ -7292,6 +7816,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7292
7816
  id?: string;
7293
7817
  product_group_id?: string;
7294
7818
  quantity?: number;
7819
+ sort_order?: number;
7295
7820
  trade_item_id?: string;
7296
7821
  };
7297
7822
  Relationships: [{
@@ -7306,6 +7831,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7306
7831
  Row: {
7307
7832
  created_at: string;
7308
7833
  description: string | null;
7834
+ head_product_id: string | null;
7835
+ head_trade_item_floriday_id: string | null;
7309
7836
  id: string;
7310
7837
  is_active: boolean;
7311
7838
  name: string;
@@ -7315,6 +7842,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7315
7842
  Insert: {
7316
7843
  created_at?: string;
7317
7844
  description?: string | null;
7845
+ head_product_id?: string | null;
7846
+ head_trade_item_floriday_id?: string | null;
7318
7847
  id?: string;
7319
7848
  is_active?: boolean;
7320
7849
  name: string;
@@ -7324,24 +7853,130 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7324
7853
  Update: {
7325
7854
  created_at?: string;
7326
7855
  description?: string | null;
7856
+ head_product_id?: string | null;
7857
+ head_trade_item_floriday_id?: string | null;
7327
7858
  id?: string;
7328
7859
  is_active?: boolean;
7329
7860
  name?: string;
7330
7861
  tenant_id?: string;
7331
7862
  updated_at?: string;
7332
7863
  };
7864
+ Relationships: [{
7865
+ foreignKeyName: "product_groups_head_product_id_fkey";
7866
+ columns: ["head_product_id"];
7867
+ isOneToOne: false;
7868
+ referencedRelation: "products";
7869
+ referencedColumns: ["id"];
7870
+ }];
7871
+ };
7872
+ product_load_settings: {
7873
+ Row: {
7874
+ created_at: string;
7875
+ id: string;
7876
+ is_package: boolean;
7877
+ layers_per_load_carrier: number | null;
7878
+ load_carrier: string | null;
7879
+ package_id: string | null;
7880
+ package_label: string | null;
7881
+ packages_per_layer: number | null;
7882
+ product_id: string | null;
7883
+ tenant_id: string;
7884
+ trade_item_floriday_id: string | null;
7885
+ units_per_package: number | null;
7886
+ updated_at: string;
7887
+ };
7888
+ Insert: {
7889
+ created_at?: string;
7890
+ id?: string;
7891
+ is_package?: boolean;
7892
+ layers_per_load_carrier?: number | null;
7893
+ load_carrier?: string | null;
7894
+ package_id?: string | null;
7895
+ package_label?: string | null;
7896
+ packages_per_layer?: number | null;
7897
+ product_id?: string | null;
7898
+ tenant_id: string;
7899
+ trade_item_floriday_id?: string | null;
7900
+ units_per_package?: number | null;
7901
+ updated_at?: string;
7902
+ };
7903
+ Update: {
7904
+ created_at?: string;
7905
+ id?: string;
7906
+ is_package?: boolean;
7907
+ layers_per_load_carrier?: number | null;
7908
+ load_carrier?: string | null;
7909
+ package_id?: string | null;
7910
+ package_label?: string | null;
7911
+ packages_per_layer?: number | null;
7912
+ product_id?: string | null;
7913
+ tenant_id?: string;
7914
+ trade_item_floriday_id?: string | null;
7915
+ units_per_package?: number | null;
7916
+ updated_at?: string;
7917
+ };
7918
+ Relationships: [{
7919
+ foreignKeyName: "product_load_settings_package_id_fkey";
7920
+ columns: ["package_id"];
7921
+ isOneToOne: false;
7922
+ referencedRelation: "packages";
7923
+ referencedColumns: ["id"];
7924
+ }, {
7925
+ foreignKeyName: "product_load_settings_product_id_fkey";
7926
+ columns: ["product_id"];
7927
+ isOneToOne: false;
7928
+ referencedRelation: "products";
7929
+ referencedColumns: ["id"];
7930
+ }];
7931
+ };
7932
+ product_merge_log: {
7933
+ Row: {
7934
+ canonical_product_id: string | null;
7935
+ id: string;
7936
+ merged_at: string;
7937
+ merged_from_id: string;
7938
+ notes: string | null;
7939
+ snapshot: import("../integrations/supabase/types").Json;
7940
+ source_table: string;
7941
+ status: string;
7942
+ };
7943
+ Insert: {
7944
+ canonical_product_id?: string | null;
7945
+ id?: string;
7946
+ merged_at?: string;
7947
+ merged_from_id: string;
7948
+ notes?: string | null;
7949
+ snapshot?: import("../integrations/supabase/types").Json;
7950
+ source_table: string;
7951
+ status?: string;
7952
+ };
7953
+ Update: {
7954
+ canonical_product_id?: string | null;
7955
+ id?: string;
7956
+ merged_at?: string;
7957
+ merged_from_id?: string;
7958
+ notes?: string | null;
7959
+ snapshot?: import("../integrations/supabase/types").Json;
7960
+ source_table?: string;
7961
+ status?: string;
7962
+ };
7333
7963
  Relationships: [];
7334
7964
  };
7335
7965
  products: {
7336
7966
  Row: {
7967
+ article_number: string | null;
7337
7968
  barcode: string | null;
7338
7969
  batch: string;
7339
7970
  crates_per_layer: number;
7340
7971
  created_at: string;
7341
7972
  custom_fields: import("../integrations/supabase/types").Json;
7973
+ floriday_active: boolean;
7974
+ floriday_payload: import("../integrations/supabase/types").Json;
7975
+ floriday_trade_item_id: string | null;
7342
7976
  id: string;
7343
7977
  image_url: string | null;
7344
7978
  incoming_quantity: number;
7979
+ is_layer: boolean;
7345
7980
  layers_per_cart: number;
7346
7981
  location: string;
7347
7982
  min_quantity: number;
@@ -7357,14 +7992,19 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7357
7992
  weight: string | null;
7358
7993
  };
7359
7994
  Insert: {
7995
+ article_number?: string | null;
7360
7996
  barcode?: string | null;
7361
7997
  batch: string;
7362
7998
  crates_per_layer?: number;
7363
7999
  created_at?: string;
7364
8000
  custom_fields?: import("../integrations/supabase/types").Json;
8001
+ floriday_active?: boolean;
8002
+ floriday_payload?: import("../integrations/supabase/types").Json;
8003
+ floriday_trade_item_id?: string | null;
7365
8004
  id?: string;
7366
8005
  image_url?: string | null;
7367
8006
  incoming_quantity?: number;
8007
+ is_layer?: boolean;
7368
8008
  layers_per_cart?: number;
7369
8009
  location: string;
7370
8010
  min_quantity?: number;
@@ -7380,14 +8020,19 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7380
8020
  weight?: string | null;
7381
8021
  };
7382
8022
  Update: {
8023
+ article_number?: string | null;
7383
8024
  barcode?: string | null;
7384
8025
  batch?: string;
7385
8026
  crates_per_layer?: number;
7386
8027
  created_at?: string;
7387
8028
  custom_fields?: import("../integrations/supabase/types").Json;
8029
+ floriday_active?: boolean;
8030
+ floriday_payload?: import("../integrations/supabase/types").Json;
8031
+ floriday_trade_item_id?: string | null;
7388
8032
  id?: string;
7389
8033
  image_url?: string | null;
7390
8034
  incoming_quantity?: number;
8035
+ is_layer?: boolean;
7391
8036
  layers_per_cart?: number;
7392
8037
  location?: string;
7393
8038
  min_quantity?: number;
@@ -8293,8 +8938,10 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8293
8938
  order_id: string | null;
8294
8939
  order_item_id: string | null;
8295
8940
  order_source: string | null;
8941
+ parent_trade_item_key: string | null;
8296
8942
  physical_after: number | null;
8297
8943
  physical_before: number | null;
8944
+ production_batch_id: string | null;
8298
8945
  qty_delta: number;
8299
8946
  reason: string | null;
8300
8947
  reserved_after: number | null;
@@ -8310,8 +8957,10 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8310
8957
  order_id?: string | null;
8311
8958
  order_item_id?: string | null;
8312
8959
  order_source?: string | null;
8960
+ parent_trade_item_key?: string | null;
8313
8961
  physical_after?: number | null;
8314
8962
  physical_before?: number | null;
8963
+ production_batch_id?: string | null;
8315
8964
  qty_delta: number;
8316
8965
  reason?: string | null;
8317
8966
  reserved_after?: number | null;
@@ -8327,8 +8976,10 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8327
8976
  order_id?: string | null;
8328
8977
  order_item_id?: string | null;
8329
8978
  order_source?: string | null;
8979
+ parent_trade_item_key?: string | null;
8330
8980
  physical_after?: number | null;
8331
8981
  physical_before?: number | null;
8982
+ production_batch_id?: string | null;
8332
8983
  qty_delta?: number;
8333
8984
  reason?: string | null;
8334
8985
  reserved_after?: number | null;
@@ -8634,6 +9285,48 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8634
9285
  };
8635
9286
  Relationships: [];
8636
9287
  };
9288
+ trade_item_prices: {
9289
+ Row: {
9290
+ created_at: string;
9291
+ currency: string;
9292
+ id: string;
9293
+ last_push_error: string | null;
9294
+ last_pushed_at: string | null;
9295
+ price_group_id: string | null;
9296
+ price_per_piece: number;
9297
+ supply_line_id: string | null;
9298
+ trade_item_key: string;
9299
+ updated_at: string;
9300
+ user_id: string;
9301
+ };
9302
+ Insert: {
9303
+ created_at?: string;
9304
+ currency?: string;
9305
+ id?: string;
9306
+ last_push_error?: string | null;
9307
+ last_pushed_at?: string | null;
9308
+ price_group_id?: string | null;
9309
+ price_per_piece: number;
9310
+ supply_line_id?: string | null;
9311
+ trade_item_key: string;
9312
+ updated_at?: string;
9313
+ user_id: string;
9314
+ };
9315
+ Update: {
9316
+ created_at?: string;
9317
+ currency?: string;
9318
+ id?: string;
9319
+ last_push_error?: string | null;
9320
+ last_pushed_at?: string | null;
9321
+ price_group_id?: string | null;
9322
+ price_per_piece?: number;
9323
+ supply_line_id?: string | null;
9324
+ trade_item_key?: string;
9325
+ updated_at?: string;
9326
+ user_id?: string;
9327
+ };
9328
+ Relationships: [];
9329
+ };
8637
9330
  trade_item_stock: {
8638
9331
  Row: {
8639
9332
  connection_id: string;
@@ -8787,7 +9480,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8787
9480
  twinfield_connections: {
8788
9481
  Row: {
8789
9482
  access_token: string | null;
8790
- client_id: string;
9483
+ client_id: string | null;
8791
9484
  client_secret: string | null;
8792
9485
  cluster_uri: string | null;
8793
9486
  company_code: string | null;
@@ -8799,7 +9492,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8799
9492
  is_active: boolean;
8800
9493
  label: string | null;
8801
9494
  office_code: string | null;
8802
- redirect_uri: string;
9495
+ redirect_uri: string | null;
8803
9496
  refresh_token: string | null;
8804
9497
  token_expires_at: string | null;
8805
9498
  updated_at: string;
@@ -8807,7 +9500,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8807
9500
  };
8808
9501
  Insert: {
8809
9502
  access_token?: string | null;
8810
- client_id: string;
9503
+ client_id?: string | null;
8811
9504
  client_secret?: string | null;
8812
9505
  cluster_uri?: string | null;
8813
9506
  company_code?: string | null;
@@ -8819,7 +9512,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8819
9512
  is_active?: boolean;
8820
9513
  label?: string | null;
8821
9514
  office_code?: string | null;
8822
- redirect_uri: string;
9515
+ redirect_uri?: string | null;
8823
9516
  refresh_token?: string | null;
8824
9517
  token_expires_at?: string | null;
8825
9518
  updated_at?: string;
@@ -8827,7 +9520,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8827
9520
  };
8828
9521
  Update: {
8829
9522
  access_token?: string | null;
8830
- client_id?: string;
9523
+ client_id?: string | null;
8831
9524
  client_secret?: string | null;
8832
9525
  cluster_uri?: string | null;
8833
9526
  company_code?: string | null;
@@ -8839,7 +9532,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8839
9532
  is_active?: boolean;
8840
9533
  label?: string | null;
8841
9534
  office_code?: string | null;
8842
- redirect_uri?: string;
9535
+ redirect_uri?: string | null;
8843
9536
  refresh_token?: string | null;
8844
9537
  token_expires_at?: string | null;
8845
9538
  updated_at?: string;
@@ -10034,25 +10727,6 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10034
10727
  };
10035
10728
  Relationships: [];
10036
10729
  };
10037
- floriday_customer_discounts: {
10038
- Row: {
10039
- base_price: number | null;
10040
- buyer_organization_id: string | null;
10041
- currency: string | null;
10042
- discount_type: string | null;
10043
- discount_value: number | null;
10044
- min_quantity: number | null;
10045
- net_price: number | null;
10046
- product_group_id: string | null;
10047
- raw: import("../integrations/supabase/types").Json | null;
10048
- source: string | null;
10049
- source_id: string | null;
10050
- trade_item_id: string | null;
10051
- valid_from: string | null;
10052
- valid_until: string | null;
10053
- };
10054
- Relationships: [];
10055
- };
10056
10730
  local_customer_discounts: {
10057
10731
  Row: {
10058
10732
  base_price: number | null;
@@ -10356,6 +11030,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10356
11030
  };
10357
11031
  Returns: number;
10358
11032
  };
11033
+ _migrate_rewrite_stock_key: {
11034
+ Args: {
11035
+ _from_key: string;
11036
+ _to_key: string;
11037
+ };
11038
+ Returns: undefined;
11039
+ };
10359
11040
  afh_city_code: {
10360
11041
  Args: {
10361
11042
  _city: string;
@@ -10471,6 +11152,28 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10471
11152
  Args: never;
10472
11153
  Returns: undefined;
10473
11154
  };
11155
+ consume_bom_for_production: {
11156
+ Args: {
11157
+ p_connection_id: string;
11158
+ p_parent_id: string;
11159
+ p_parent_key: string;
11160
+ p_parent_kind: string;
11161
+ p_quantity: number;
11162
+ p_user_id: string;
11163
+ };
11164
+ Returns: import("../integrations/supabase/types").Json;
11165
+ } | {
11166
+ Args: {
11167
+ p_batch_id?: string;
11168
+ p_connection_id: string;
11169
+ p_parent_id: string;
11170
+ p_parent_key: string;
11171
+ p_parent_kind: string;
11172
+ p_quantity: number;
11173
+ p_user_id: string;
11174
+ };
11175
+ Returns: import("../integrations/supabase/types").Json;
11176
+ };
10474
11177
  consume_floriday_rate_limit: {
10475
11178
  Args: {
10476
11179
  p_bucket: string;
@@ -10522,6 +11225,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10522
11225
  table_name: string;
10523
11226
  }[];
10524
11227
  };
11228
+ delete_samenstelling: {
11229
+ Args: {
11230
+ p_parent_id: string;
11231
+ p_parent_kind: string;
11232
+ };
11233
+ Returns: import("../integrations/supabase/types").Json;
11234
+ };
10525
11235
  dispatch_carrier_signups_sql: {
10526
11236
  Args: {
10527
11237
  _catchup?: string;
@@ -10563,6 +11273,16 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10563
11273
  status: string;
10564
11274
  }[];
10565
11275
  };
11276
+ email_auth_upsert_connection: {
11277
+ Args: {
11278
+ _account_email: string;
11279
+ _created_by: string;
11280
+ _is_active: boolean;
11281
+ _provider: string;
11282
+ _status: string;
11283
+ };
11284
+ Returns: string;
11285
+ };
10566
11286
  enqueue_cart_replan_if_unlocked: {
10567
11287
  Args: {
10568
11288
  p_order_id: string;
@@ -10682,19 +11402,6 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10682
11402
  resource: string;
10683
11403
  }[];
10684
11404
  };
10685
- get_floriday_agreements_active: {
10686
- Args: {
10687
- p_on_date?: string;
10688
- };
10689
- Returns: {
10690
- buyer_organization_id: string;
10691
- data: import("../integrations/supabase/types").Json;
10692
- floriday_id: string;
10693
- status: string;
10694
- valid_from: string;
10695
- valid_until: string;
10696
- }[];
10697
- };
10698
11405
  get_floriday_clock_supplies_window: {
10699
11406
  Args: {
10700
11407
  p_from: string;
@@ -10767,6 +11474,21 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10767
11474
  minutes_since_success: number;
10768
11475
  }[];
10769
11476
  };
11477
+ get_group_allocation_keys: {
11478
+ Args: {
11479
+ p_product_id: string;
11480
+ };
11481
+ Returns: {
11482
+ k: string;
11483
+ ord: number;
11484
+ }[];
11485
+ };
11486
+ get_group_head_key: {
11487
+ Args: {
11488
+ p_group_id: string;
11489
+ };
11490
+ Returns: string;
11491
+ };
10770
11492
  get_offer_by_link_code: {
10771
11493
  Args: {
10772
11494
  p_code: string;
@@ -10877,6 +11599,32 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10877
11599
  };
10878
11600
  Returns: undefined;
10879
11601
  };
11602
+ mark_salesorder_controlled: {
11603
+ Args: {
11604
+ p_controlled: boolean;
11605
+ p_floriday_id: string;
11606
+ };
11607
+ Returns: undefined;
11608
+ };
11609
+ mark_shipment_shipped: {
11610
+ Args: {
11611
+ p_shipment_id: string;
11612
+ };
11613
+ Returns: undefined;
11614
+ };
11615
+ merge_products: {
11616
+ Args: {
11617
+ _canonical: string;
11618
+ _loser: string;
11619
+ };
11620
+ Returns: undefined;
11621
+ };
11622
+ next_manufacture_partij: {
11623
+ Args: {
11624
+ _tenant_id: string;
11625
+ };
11626
+ Returns: string;
11627
+ };
10880
11628
  next_order_number: {
10881
11629
  Args: {
10882
11630
  p_prefix: string;
@@ -10946,6 +11694,15 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10946
11694
  };
10947
11695
  Returns: undefined;
10948
11696
  };
11697
+ pickstation_resolve_delivery_orders: {
11698
+ Args: {
11699
+ p_sales_order_ids: string[];
11700
+ };
11701
+ Returns: {
11702
+ delivery_order_id: string;
11703
+ sales_order_id: string;
11704
+ }[];
11705
+ };
10949
11706
  pickstation_set_cart_status: {
10950
11707
  Args: {
10951
11708
  p_cart_index: number;
@@ -10955,6 +11712,14 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10955
11712
  };
10956
11713
  Returns: undefined;
10957
11714
  };
11715
+ produce_designed_product: {
11716
+ Args: {
11717
+ p_parent_id: string;
11718
+ p_parent_kind: string;
11719
+ p_quantity: number;
11720
+ };
11721
+ Returns: import("../integrations/supabase/types").Json;
11722
+ };
10958
11723
  promote_trade_item_key: {
10959
11724
  Args: {
10960
11725
  p_new: string;
@@ -10962,6 +11727,10 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10962
11727
  };
10963
11728
  Returns: undefined;
10964
11729
  };
11730
+ recompute_all_reserved_stock: {
11731
+ Args: never;
11732
+ Returns: undefined;
11733
+ };
10965
11734
  recompute_order_status: {
10966
11735
  Args: {
10967
11736
  p_order_id: string;
@@ -11011,27 +11780,45 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
11011
11780
  };
11012
11781
  Returns: undefined;
11013
11782
  };
11783
+ resolve_group_allocation: {
11784
+ Args: {
11785
+ _needed: number;
11786
+ _product_group_id: string;
11787
+ };
11788
+ Returns: {
11789
+ allocated: number;
11790
+ trade_item_id: string;
11791
+ }[];
11792
+ };
11793
+ resolve_group_member_stock_key: {
11794
+ Args: {
11795
+ p_trade_item_id: string;
11796
+ };
11797
+ Returns: string;
11798
+ };
11014
11799
  resolve_product_id_for_item: {
11015
11800
  Args: {
11016
11801
  p_product_name: string;
11017
11802
  };
11018
11803
  Returns: string;
11019
11804
  };
11020
- schedule_floriday_additional_services_sync: {
11805
+ resolve_stock_trade_item_key: {
11021
11806
  Args: {
11022
- p_apikey: string;
11023
- p_url: string;
11807
+ p_product_id: string;
11024
11808
  };
11025
- Returns: number;
11809
+ Returns: string;
11026
11810
  };
11027
- schedule_floriday_agreement_calloffs_sync: {
11811
+ reverse_production: {
11028
11812
  Args: {
11029
- p_apikey: string;
11030
- p_url: string;
11813
+ p_connection_id?: string;
11814
+ p_parent_key: string;
11815
+ p_quantity: number;
11816
+ p_reason?: string;
11817
+ p_user_id?: string;
11031
11818
  };
11032
- Returns: number;
11819
+ Returns: import("../integrations/supabase/types").Json;
11033
11820
  };
11034
- schedule_floriday_agreements_sync: {
11821
+ schedule_floriday_additional_services_sync: {
11035
11822
  Args: {
11036
11823
  p_apikey: string;
11037
11824
  p_url: string;
@@ -11284,6 +12071,10 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
11284
12071
  };
11285
12072
  Returns: number;
11286
12073
  };
12074
+ self_heal_floriday_links: {
12075
+ Args: never;
12076
+ Returns: number;
12077
+ };
11287
12078
  show_limit: {
11288
12079
  Args: never;
11289
12080
  Returns: number;
@@ -11306,6 +12097,12 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
11306
12097
  };
11307
12098
  Returns: undefined;
11308
12099
  };
12100
+ sync_product_group_belading: {
12101
+ Args: {
12102
+ _group_id: string;
12103
+ };
12104
+ Returns: undefined;
12105
+ };
11309
12106
  sync_product_packing_from_floriday_cache: {
11310
12107
  Args: {
11311
12108
  p_floriday_id: string;