@flowselections/floriday-authenticatie-module 1.0.20 → 1.0.21

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 +2 -2
@@ -247,6 +247,172 @@ export type Database = {
247
247
  };
248
248
  Relationships: [];
249
249
  };
250
+ ai_credentials: {
251
+ Row: {
252
+ active: boolean;
253
+ api_key: string;
254
+ created_at: string;
255
+ created_by: string | null;
256
+ id: string;
257
+ label: string;
258
+ provider_id: string;
259
+ updated_at: string;
260
+ };
261
+ Insert: {
262
+ active?: boolean;
263
+ api_key: string;
264
+ created_at?: string;
265
+ created_by?: string | null;
266
+ id?: string;
267
+ label: string;
268
+ provider_id: string;
269
+ updated_at?: string;
270
+ };
271
+ Update: {
272
+ active?: boolean;
273
+ api_key?: string;
274
+ created_at?: string;
275
+ created_by?: string | null;
276
+ id?: string;
277
+ label?: string;
278
+ provider_id?: string;
279
+ updated_at?: string;
280
+ };
281
+ Relationships: [
282
+ {
283
+ foreignKeyName: "ai_credentials_provider_id_fkey";
284
+ columns: ["provider_id"];
285
+ isOneToOne: false;
286
+ referencedRelation: "ai_providers";
287
+ referencedColumns: ["id"];
288
+ }
289
+ ];
290
+ };
291
+ ai_models: {
292
+ Row: {
293
+ active: boolean;
294
+ context_window: number | null;
295
+ created_at: string;
296
+ display_name: string;
297
+ id: string;
298
+ is_default: boolean;
299
+ modality: string;
300
+ provider_id: string;
301
+ slug: string;
302
+ updated_at: string;
303
+ };
304
+ Insert: {
305
+ active?: boolean;
306
+ context_window?: number | null;
307
+ created_at?: string;
308
+ display_name: string;
309
+ id?: string;
310
+ is_default?: boolean;
311
+ modality?: string;
312
+ provider_id: string;
313
+ slug: string;
314
+ updated_at?: string;
315
+ };
316
+ Update: {
317
+ active?: boolean;
318
+ context_window?: number | null;
319
+ created_at?: string;
320
+ display_name?: string;
321
+ id?: string;
322
+ is_default?: boolean;
323
+ modality?: string;
324
+ provider_id?: string;
325
+ slug?: string;
326
+ updated_at?: string;
327
+ };
328
+ Relationships: [
329
+ {
330
+ foreignKeyName: "ai_models_provider_id_fkey";
331
+ columns: ["provider_id"];
332
+ isOneToOne: false;
333
+ referencedRelation: "ai_providers";
334
+ referencedColumns: ["id"];
335
+ }
336
+ ];
337
+ };
338
+ ai_module_bindings: {
339
+ Row: {
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
+ Insert: {
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
+ Update: {
358
+ consumer_module_id?: string;
359
+ created_at?: string;
360
+ credential_id?: string;
361
+ id?: string;
362
+ model_id?: string;
363
+ notes?: string | null;
364
+ updated_at?: string;
365
+ };
366
+ Relationships: [
367
+ {
368
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
369
+ columns: ["credential_id"];
370
+ isOneToOne: false;
371
+ referencedRelation: "ai_credentials";
372
+ referencedColumns: ["id"];
373
+ },
374
+ {
375
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
376
+ columns: ["model_id"];
377
+ isOneToOne: false;
378
+ referencedRelation: "ai_models";
379
+ referencedColumns: ["id"];
380
+ }
381
+ ];
382
+ };
383
+ ai_providers: {
384
+ Row: {
385
+ active: boolean;
386
+ auth_type: string;
387
+ base_url: string | null;
388
+ created_at: string;
389
+ id: string;
390
+ name: string;
391
+ slug: string;
392
+ updated_at: string;
393
+ };
394
+ Insert: {
395
+ active?: boolean;
396
+ auth_type?: string;
397
+ base_url?: string | null;
398
+ created_at?: string;
399
+ id?: string;
400
+ name: string;
401
+ slug: string;
402
+ updated_at?: string;
403
+ };
404
+ Update: {
405
+ active?: boolean;
406
+ auth_type?: string;
407
+ base_url?: string | null;
408
+ created_at?: string;
409
+ id?: string;
410
+ name?: string;
411
+ slug?: string;
412
+ updated_at?: string;
413
+ };
414
+ Relationships: [];
415
+ };
250
416
  app_settings: {
251
417
  Row: {
252
418
  created_at: string;
@@ -3324,109 +3490,6 @@ export type Database = {
3324
3490
  }
3325
3491
  ];
3326
3492
  };
3327
- floriday_agreement_calloffs_cache: {
3328
- Row: {
3329
- agreement_id: string | null;
3330
- connection_id: string;
3331
- data: Json;
3332
- delivery_date: string | null;
3333
- fetched_at: string;
3334
- floriday_id: string;
3335
- id: string;
3336
- is_deleted: boolean;
3337
- sequence_number: number;
3338
- status: string | null;
3339
- updated_at: string;
3340
- };
3341
- Insert: {
3342
- agreement_id?: string | null;
3343
- connection_id: string;
3344
- data?: Json;
3345
- delivery_date?: string | null;
3346
- fetched_at?: string;
3347
- floriday_id: string;
3348
- id?: string;
3349
- is_deleted?: boolean;
3350
- sequence_number?: number;
3351
- status?: string | null;
3352
- updated_at?: string;
3353
- };
3354
- Update: {
3355
- agreement_id?: string | null;
3356
- connection_id?: string;
3357
- data?: Json;
3358
- delivery_date?: string | null;
3359
- fetched_at?: string;
3360
- floriday_id?: string;
3361
- id?: string;
3362
- is_deleted?: boolean;
3363
- sequence_number?: number;
3364
- status?: string | null;
3365
- updated_at?: string;
3366
- };
3367
- Relationships: [
3368
- {
3369
- foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3370
- columns: ["connection_id"];
3371
- isOneToOne: false;
3372
- referencedRelation: "floriday_connections";
3373
- referencedColumns: ["id"];
3374
- }
3375
- ];
3376
- };
3377
- floriday_agreements_cache: {
3378
- Row: {
3379
- buyer_organization_id: string | null;
3380
- connection_id: string;
3381
- data: Json;
3382
- fetched_at: string;
3383
- floriday_id: string;
3384
- id: string;
3385
- is_deleted: boolean;
3386
- sequence_number: number;
3387
- status: string | null;
3388
- updated_at: string;
3389
- valid_from: string | null;
3390
- valid_until: string | null;
3391
- };
3392
- Insert: {
3393
- buyer_organization_id?: string | null;
3394
- connection_id: string;
3395
- data?: Json;
3396
- fetched_at?: string;
3397
- floriday_id: string;
3398
- id?: string;
3399
- is_deleted?: boolean;
3400
- sequence_number?: number;
3401
- status?: string | null;
3402
- updated_at?: string;
3403
- valid_from?: string | null;
3404
- valid_until?: string | null;
3405
- };
3406
- Update: {
3407
- buyer_organization_id?: string | null;
3408
- connection_id?: string;
3409
- data?: Json;
3410
- fetched_at?: string;
3411
- floriday_id?: string;
3412
- id?: string;
3413
- is_deleted?: boolean;
3414
- sequence_number?: number;
3415
- status?: string | null;
3416
- updated_at?: string;
3417
- valid_from?: string | null;
3418
- valid_until?: string | null;
3419
- };
3420
- Relationships: [
3421
- {
3422
- foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3423
- columns: ["connection_id"];
3424
- isOneToOne: false;
3425
- referencedRelation: "floriday_connections";
3426
- referencedColumns: ["id"];
3427
- }
3428
- ];
3429
- };
3430
3493
  floriday_auction_letters_cache: {
3431
3494
  Row: {
3432
3495
  auction_letter_code: string;
@@ -3945,6 +4008,27 @@ export type Database = {
3945
4008
  }
3946
4009
  ];
3947
4010
  };
4011
+ floriday_continuous_stock_cache: {
4012
+ Row: {
4013
+ connection_id: string;
4014
+ fetched_at: string;
4015
+ number_of_pieces: number;
4016
+ trade_item_id: string;
4017
+ };
4018
+ Insert: {
4019
+ connection_id: string;
4020
+ fetched_at?: string;
4021
+ number_of_pieces?: number;
4022
+ trade_item_id: string;
4023
+ };
4024
+ Update: {
4025
+ connection_id?: string;
4026
+ fetched_at?: string;
4027
+ number_of_pieces?: number;
4028
+ trade_item_id?: string;
4029
+ };
4030
+ Relationships: [];
4031
+ };
3948
4032
  floriday_continuous_stock_queue: {
3949
4033
  Row: {
3950
4034
  attempts: number;
@@ -4748,6 +4832,8 @@ export type Database = {
4748
4832
  Row: {
4749
4833
  buyer_organization_id: string | null;
4750
4834
  connection_id: string;
4835
+ controlled_at: string | null;
4836
+ controlled_by: string | null;
4751
4837
  created_at: string;
4752
4838
  data: Json;
4753
4839
  floriday_id: string;
@@ -4759,6 +4845,8 @@ export type Database = {
4759
4845
  Insert: {
4760
4846
  buyer_organization_id?: string | null;
4761
4847
  connection_id: string;
4848
+ controlled_at?: string | null;
4849
+ controlled_by?: string | null;
4762
4850
  created_at?: string;
4763
4851
  data: Json;
4764
4852
  floriday_id: string;
@@ -4770,6 +4858,8 @@ export type Database = {
4770
4858
  Update: {
4771
4859
  buyer_organization_id?: string | null;
4772
4860
  connection_id?: string;
4861
+ controlled_at?: string | null;
4862
+ controlled_by?: string | null;
4773
4863
  created_at?: string;
4774
4864
  data?: Json;
4775
4865
  floriday_id?: string;
@@ -4961,9 +5051,8 @@ export type Database = {
4961
5051
  }
4962
5052
  ];
4963
5053
  };
4964
- floriday_trips_cache: {
5054
+ floriday_trade_settings_customers_cache: {
4965
5055
  Row: {
4966
- carrier_organization_id: string | null;
4967
5056
  connection_id: string;
4968
5057
  data: Json;
4969
5058
  fetched_at: string;
@@ -4971,25 +5060,67 @@ export type Database = {
4971
5060
  id: string;
4972
5061
  is_deleted: boolean;
4973
5062
  sequence_number: number;
4974
- status: string | null;
4975
- trip_date: string | null;
4976
5063
  updated_at: string;
4977
5064
  };
4978
5065
  Insert: {
4979
- carrier_organization_id?: string | null;
4980
5066
  connection_id: string;
4981
- data?: Json;
5067
+ data: Json;
4982
5068
  fetched_at?: string;
4983
5069
  floriday_id: string;
4984
5070
  id?: string;
4985
5071
  is_deleted?: boolean;
4986
5072
  sequence_number?: number;
4987
- status?: string | null;
4988
- trip_date?: string | null;
4989
5073
  updated_at?: string;
4990
5074
  };
4991
5075
  Update: {
4992
- carrier_organization_id?: string | null;
5076
+ connection_id?: string;
5077
+ data?: Json;
5078
+ fetched_at?: string;
5079
+ floriday_id?: string;
5080
+ id?: string;
5081
+ is_deleted?: boolean;
5082
+ sequence_number?: number;
5083
+ updated_at?: string;
5084
+ };
5085
+ Relationships: [
5086
+ {
5087
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5088
+ columns: ["connection_id"];
5089
+ isOneToOne: false;
5090
+ referencedRelation: "floriday_connections";
5091
+ referencedColumns: ["id"];
5092
+ }
5093
+ ];
5094
+ };
5095
+ floriday_trips_cache: {
5096
+ Row: {
5097
+ carrier_organization_id: string | null;
5098
+ connection_id: string;
5099
+ data: Json;
5100
+ fetched_at: string;
5101
+ floriday_id: string;
5102
+ id: string;
5103
+ is_deleted: boolean;
5104
+ sequence_number: number;
5105
+ status: string | null;
5106
+ trip_date: string | null;
5107
+ updated_at: string;
5108
+ };
5109
+ Insert: {
5110
+ carrier_organization_id?: string | null;
5111
+ connection_id: string;
5112
+ data?: Json;
5113
+ fetched_at?: string;
5114
+ floriday_id: string;
5115
+ id?: string;
5116
+ is_deleted?: boolean;
5117
+ sequence_number?: number;
5118
+ status?: string | null;
5119
+ trip_date?: string | null;
5120
+ updated_at?: string;
5121
+ };
5122
+ Update: {
5123
+ carrier_organization_id?: string | null;
4993
5124
  connection_id?: string;
4994
5125
  data?: Json;
4995
5126
  fetched_at?: string;
@@ -5741,6 +5872,228 @@ export type Database = {
5741
5872
  };
5742
5873
  Relationships: [];
5743
5874
  };
5875
+ logistics_decisions: {
5876
+ Row: {
5877
+ created_at: string;
5878
+ explanation: string | null;
5879
+ id: string;
5880
+ input_snapshot: Json;
5881
+ result: Json;
5882
+ slot: string;
5883
+ strategy_id: string | null;
5884
+ subject_id: string;
5885
+ subject_type: string;
5886
+ user_id: string;
5887
+ };
5888
+ Insert: {
5889
+ created_at?: string;
5890
+ explanation?: string | null;
5891
+ id?: string;
5892
+ input_snapshot?: Json;
5893
+ result?: Json;
5894
+ slot: string;
5895
+ strategy_id?: string | null;
5896
+ subject_id: string;
5897
+ subject_type: string;
5898
+ user_id: string;
5899
+ };
5900
+ Update: {
5901
+ created_at?: string;
5902
+ explanation?: string | null;
5903
+ id?: string;
5904
+ input_snapshot?: Json;
5905
+ result?: Json;
5906
+ slot?: string;
5907
+ strategy_id?: string | null;
5908
+ subject_id?: string;
5909
+ subject_type?: string;
5910
+ user_id?: string;
5911
+ };
5912
+ Relationships: [
5913
+ {
5914
+ foreignKeyName: "logistics_decisions_strategy_id_fkey";
5915
+ columns: ["strategy_id"];
5916
+ isOneToOne: false;
5917
+ referencedRelation: "logistics_strategies";
5918
+ referencedColumns: ["id"];
5919
+ }
5920
+ ];
5921
+ };
5922
+ logistics_formulas: {
5923
+ Row: {
5924
+ created_at: string;
5925
+ expression: string;
5926
+ id: string;
5927
+ notes: string | null;
5928
+ slot: string;
5929
+ strategy_id: string;
5930
+ updated_at: string;
5931
+ user_id: string;
5932
+ version: number;
5933
+ };
5934
+ Insert: {
5935
+ created_at?: string;
5936
+ expression?: string;
5937
+ id?: string;
5938
+ notes?: string | null;
5939
+ slot: string;
5940
+ strategy_id: string;
5941
+ updated_at?: string;
5942
+ user_id: string;
5943
+ version?: number;
5944
+ };
5945
+ Update: {
5946
+ created_at?: string;
5947
+ expression?: string;
5948
+ id?: string;
5949
+ notes?: string | null;
5950
+ slot?: string;
5951
+ strategy_id?: string;
5952
+ updated_at?: string;
5953
+ user_id?: string;
5954
+ version?: number;
5955
+ };
5956
+ Relationships: [
5957
+ {
5958
+ foreignKeyName: "logistics_formulas_strategy_id_fkey";
5959
+ columns: ["strategy_id"];
5960
+ isOneToOne: false;
5961
+ referencedRelation: "logistics_strategies";
5962
+ referencedColumns: ["id"];
5963
+ }
5964
+ ];
5965
+ };
5966
+ logistics_strategies: {
5967
+ Row: {
5968
+ color: string;
5969
+ created_at: string;
5970
+ description: string | null;
5971
+ id: string;
5972
+ is_active: boolean;
5973
+ name: string;
5974
+ priority: number;
5975
+ updated_at: string;
5976
+ updated_by: string | null;
5977
+ user_id: string;
5978
+ version: number;
5979
+ };
5980
+ Insert: {
5981
+ color?: string;
5982
+ created_at?: string;
5983
+ description?: string | null;
5984
+ id?: string;
5985
+ is_active?: boolean;
5986
+ name: string;
5987
+ priority?: number;
5988
+ updated_at?: string;
5989
+ updated_by?: string | null;
5990
+ user_id: string;
5991
+ version?: number;
5992
+ };
5993
+ Update: {
5994
+ color?: string;
5995
+ created_at?: string;
5996
+ description?: string | null;
5997
+ id?: string;
5998
+ is_active?: boolean;
5999
+ name?: string;
6000
+ priority?: number;
6001
+ updated_at?: string;
6002
+ updated_by?: string | null;
6003
+ user_id?: string;
6004
+ version?: number;
6005
+ };
6006
+ Relationships: [];
6007
+ };
6008
+ logistics_strategy_schedules: {
6009
+ Row: {
6010
+ condition_expression: string | null;
6011
+ created_at: string;
6012
+ end_date: string | null;
6013
+ id: string;
6014
+ is_enabled: boolean;
6015
+ priority: number;
6016
+ rule_type: string;
6017
+ start_date: string | null;
6018
+ strategy_id: string;
6019
+ updated_at: string;
6020
+ user_id: string;
6021
+ };
6022
+ Insert: {
6023
+ condition_expression?: string | null;
6024
+ created_at?: string;
6025
+ end_date?: string | null;
6026
+ id?: string;
6027
+ is_enabled?: boolean;
6028
+ priority?: number;
6029
+ rule_type: string;
6030
+ start_date?: string | null;
6031
+ strategy_id: string;
6032
+ updated_at?: string;
6033
+ user_id: string;
6034
+ };
6035
+ Update: {
6036
+ condition_expression?: string | null;
6037
+ created_at?: string;
6038
+ end_date?: string | null;
6039
+ id?: string;
6040
+ is_enabled?: boolean;
6041
+ priority?: number;
6042
+ rule_type?: string;
6043
+ start_date?: string | null;
6044
+ strategy_id?: string;
6045
+ updated_at?: string;
6046
+ user_id?: string;
6047
+ };
6048
+ Relationships: [
6049
+ {
6050
+ foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
6051
+ columns: ["strategy_id"];
6052
+ isOneToOne: false;
6053
+ referencedRelation: "logistics_strategies";
6054
+ referencedColumns: ["id"];
6055
+ }
6056
+ ];
6057
+ };
6058
+ logistics_variables: {
6059
+ Row: {
6060
+ created_at: string;
6061
+ default_value: string | null;
6062
+ description: string | null;
6063
+ id: string;
6064
+ is_builtin: boolean;
6065
+ key: string;
6066
+ label: string;
6067
+ updated_at: string;
6068
+ user_id: string;
6069
+ value_type: string;
6070
+ };
6071
+ Insert: {
6072
+ created_at?: string;
6073
+ default_value?: string | null;
6074
+ description?: string | null;
6075
+ id?: string;
6076
+ is_builtin?: boolean;
6077
+ key: string;
6078
+ label: string;
6079
+ updated_at?: string;
6080
+ user_id: string;
6081
+ value_type: string;
6082
+ };
6083
+ Update: {
6084
+ created_at?: string;
6085
+ default_value?: string | null;
6086
+ description?: string | null;
6087
+ id?: string;
6088
+ is_builtin?: boolean;
6089
+ key?: string;
6090
+ label?: string;
6091
+ updated_at?: string;
6092
+ user_id?: string;
6093
+ value_type?: string;
6094
+ };
6095
+ Relationships: [];
6096
+ };
5744
6097
  mailbox_messages: {
5745
6098
  Row: {
5746
6099
  body_html: string | null;
@@ -6153,39 +6506,62 @@ export type Database = {
6153
6506
  };
6154
6507
  manufacture_products: {
6155
6508
  Row: {
6509
+ aantal_te_produceren: number;
6156
6510
  created_at: string;
6157
6511
  description: string | null;
6158
6512
  id: string;
6159
6513
  is_active: boolean;
6514
+ location_id: string | null;
6160
6515
  name: string;
6516
+ partij_nummer: string | null;
6517
+ photos: Json;
6161
6518
  produced_stock: number;
6162
6519
  product_code: string;
6163
6520
  tenant_id: string;
6521
+ unit: string;
6164
6522
  updated_at: string;
6165
6523
  };
6166
6524
  Insert: {
6525
+ aantal_te_produceren?: number;
6167
6526
  created_at?: string;
6168
6527
  description?: string | null;
6169
6528
  id?: string;
6170
6529
  is_active?: boolean;
6530
+ location_id?: string | null;
6171
6531
  name: string;
6532
+ partij_nummer?: string | null;
6533
+ photos?: Json;
6172
6534
  produced_stock?: number;
6173
6535
  product_code: string;
6174
6536
  tenant_id: string;
6537
+ unit?: string;
6175
6538
  updated_at?: string;
6176
6539
  };
6177
6540
  Update: {
6541
+ aantal_te_produceren?: number;
6178
6542
  created_at?: string;
6179
6543
  description?: string | null;
6180
6544
  id?: string;
6181
6545
  is_active?: boolean;
6546
+ location_id?: string | null;
6182
6547
  name?: string;
6548
+ partij_nummer?: string | null;
6549
+ photos?: Json;
6183
6550
  produced_stock?: number;
6184
6551
  product_code?: string;
6185
6552
  tenant_id?: string;
6553
+ unit?: string;
6186
6554
  updated_at?: string;
6187
6555
  };
6188
- Relationships: [];
6556
+ Relationships: [
6557
+ {
6558
+ foreignKeyName: "manufacture_products_location_id_fkey";
6559
+ columns: ["location_id"];
6560
+ isOneToOne: false;
6561
+ referencedRelation: "locations";
6562
+ referencedColumns: ["id"];
6563
+ }
6564
+ ];
6189
6565
  };
6190
6566
  monteurs: {
6191
6567
  Row: {
@@ -7195,6 +7571,111 @@ export type Database = {
7195
7571
  };
7196
7572
  Relationships: [];
7197
7573
  };
7574
+ order_shipment_items: {
7575
+ Row: {
7576
+ created_at: string;
7577
+ id: string;
7578
+ order_item_id: string;
7579
+ product_id: string | null;
7580
+ product_name: string;
7581
+ quantity: number;
7582
+ shipment_id: string;
7583
+ updated_at: string;
7584
+ };
7585
+ Insert: {
7586
+ created_at?: string;
7587
+ id?: string;
7588
+ order_item_id: string;
7589
+ product_id?: string | null;
7590
+ product_name: string;
7591
+ quantity: number;
7592
+ shipment_id: string;
7593
+ updated_at?: string;
7594
+ };
7595
+ Update: {
7596
+ created_at?: string;
7597
+ id?: string;
7598
+ order_item_id?: string;
7599
+ product_id?: string | null;
7600
+ product_name?: string;
7601
+ quantity?: number;
7602
+ shipment_id?: string;
7603
+ updated_at?: string;
7604
+ };
7605
+ Relationships: [
7606
+ {
7607
+ foreignKeyName: "order_shipment_items_order_item_id_fkey";
7608
+ columns: ["order_item_id"];
7609
+ isOneToOne: false;
7610
+ referencedRelation: "order_items";
7611
+ referencedColumns: ["id"];
7612
+ },
7613
+ {
7614
+ foreignKeyName: "order_shipment_items_shipment_id_fkey";
7615
+ columns: ["shipment_id"];
7616
+ isOneToOne: false;
7617
+ referencedRelation: "order_shipments";
7618
+ referencedColumns: ["id"];
7619
+ }
7620
+ ];
7621
+ };
7622
+ order_shipments: {
7623
+ Row: {
7624
+ carrier_id: string | null;
7625
+ created_at: string;
7626
+ delivery_date: string | null;
7627
+ delivery_location_id: string | null;
7628
+ id: string;
7629
+ notes: string | null;
7630
+ order_id: string;
7631
+ shipment_number: number;
7632
+ shipped_at: string | null;
7633
+ status: string;
7634
+ updated_at: string;
7635
+ };
7636
+ Insert: {
7637
+ carrier_id?: string | null;
7638
+ created_at?: string;
7639
+ delivery_date?: string | null;
7640
+ delivery_location_id?: string | null;
7641
+ id?: string;
7642
+ notes?: string | null;
7643
+ order_id: string;
7644
+ shipment_number: number;
7645
+ shipped_at?: string | null;
7646
+ status?: string;
7647
+ updated_at?: string;
7648
+ };
7649
+ Update: {
7650
+ carrier_id?: string | null;
7651
+ created_at?: string;
7652
+ delivery_date?: string | null;
7653
+ delivery_location_id?: string | null;
7654
+ id?: string;
7655
+ notes?: string | null;
7656
+ order_id?: string;
7657
+ shipment_number?: number;
7658
+ shipped_at?: string | null;
7659
+ status?: string;
7660
+ updated_at?: string;
7661
+ };
7662
+ Relationships: [
7663
+ {
7664
+ foreignKeyName: "order_shipments_carrier_id_fkey";
7665
+ columns: ["carrier_id"];
7666
+ isOneToOne: false;
7667
+ referencedRelation: "carriers";
7668
+ referencedColumns: ["id"];
7669
+ },
7670
+ {
7671
+ foreignKeyName: "order_shipments_order_id_fkey";
7672
+ columns: ["order_id"];
7673
+ isOneToOne: false;
7674
+ referencedRelation: "orders";
7675
+ referencedColumns: ["id"];
7676
+ }
7677
+ ];
7678
+ };
7198
7679
  orders: {
7199
7680
  Row: {
7200
7681
  created_at: string;
@@ -7202,8 +7683,9 @@ export type Database = {
7202
7683
  customer_id: string | null;
7203
7684
  customer_name: string;
7204
7685
  deleted_at: string | null;
7205
- delivery_date: string;
7686
+ delivery_date: string | null;
7206
7687
  id: string;
7688
+ is_reservation: boolean;
7207
7689
  notes: string | null;
7208
7690
  order_date: string;
7209
7691
  order_number: string;
@@ -7220,8 +7702,9 @@ export type Database = {
7220
7702
  customer_id?: string | null;
7221
7703
  customer_name?: string;
7222
7704
  deleted_at?: string | null;
7223
- delivery_date: string;
7705
+ delivery_date?: string | null;
7224
7706
  id?: string;
7707
+ is_reservation?: boolean;
7225
7708
  notes?: string | null;
7226
7709
  order_date?: string;
7227
7710
  order_number: string;
@@ -7238,8 +7721,9 @@ export type Database = {
7238
7721
  customer_id?: string | null;
7239
7722
  customer_name?: string;
7240
7723
  deleted_at?: string | null;
7241
- delivery_date?: string;
7724
+ delivery_date?: string | null;
7242
7725
  id?: string;
7726
+ is_reservation?: boolean;
7243
7727
  notes?: string | null;
7244
7728
  order_date?: string;
7245
7729
  order_number?: string;
@@ -7366,22 +7850,82 @@ export type Database = {
7366
7850
  color?: string;
7367
7851
  created_at?: string;
7368
7852
  id?: string;
7369
- is_active?: boolean;
7370
- name: string;
7853
+ is_active?: boolean;
7854
+ name: string;
7855
+ sort_order?: number;
7856
+ updated_at?: string;
7857
+ };
7858
+ Update: {
7859
+ automation_type?: string;
7860
+ color?: string;
7861
+ created_at?: string;
7862
+ id?: string;
7863
+ is_active?: boolean;
7864
+ name?: string;
7865
+ sort_order?: number;
7866
+ updated_at?: string;
7867
+ };
7868
+ Relationships: [];
7869
+ };
7870
+ product_bom_items: {
7871
+ Row: {
7872
+ component_product_id: string | null;
7873
+ component_trade_item_floriday_id: string | null;
7874
+ created_at: string;
7875
+ id: string;
7876
+ notes: string | null;
7877
+ parent_product_id: string | null;
7878
+ parent_trade_item_floriday_id: string | null;
7879
+ quantity: number;
7880
+ sort_order: number;
7881
+ tenant_id: string;
7882
+ unit: string;
7883
+ updated_at: string;
7884
+ };
7885
+ Insert: {
7886
+ component_product_id?: string | null;
7887
+ component_trade_item_floriday_id?: string | null;
7888
+ created_at?: string;
7889
+ id?: string;
7890
+ notes?: string | null;
7891
+ parent_product_id?: string | null;
7892
+ parent_trade_item_floriday_id?: string | null;
7893
+ quantity?: number;
7371
7894
  sort_order?: number;
7895
+ tenant_id: string;
7896
+ unit?: string;
7372
7897
  updated_at?: string;
7373
7898
  };
7374
7899
  Update: {
7375
- automation_type?: string;
7376
- color?: string;
7900
+ component_product_id?: string | null;
7901
+ component_trade_item_floriday_id?: string | null;
7377
7902
  created_at?: string;
7378
7903
  id?: string;
7379
- is_active?: boolean;
7380
- name?: string;
7904
+ notes?: string | null;
7905
+ parent_product_id?: string | null;
7906
+ parent_trade_item_floriday_id?: string | null;
7907
+ quantity?: number;
7381
7908
  sort_order?: number;
7909
+ tenant_id?: string;
7910
+ unit?: string;
7382
7911
  updated_at?: string;
7383
7912
  };
7384
- Relationships: [];
7913
+ Relationships: [
7914
+ {
7915
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
7916
+ columns: ["component_product_id"];
7917
+ isOneToOne: false;
7918
+ referencedRelation: "products";
7919
+ referencedColumns: ["id"];
7920
+ },
7921
+ {
7922
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
7923
+ columns: ["parent_product_id"];
7924
+ isOneToOne: false;
7925
+ referencedRelation: "products";
7926
+ referencedColumns: ["id"];
7927
+ }
7928
+ ];
7385
7929
  };
7386
7930
  product_categories: {
7387
7931
  Row: {
@@ -7490,6 +8034,7 @@ export type Database = {
7490
8034
  id: string;
7491
8035
  product_group_id: string;
7492
8036
  quantity: number;
8037
+ sort_order: number;
7493
8038
  trade_item_id: string;
7494
8039
  };
7495
8040
  Insert: {
@@ -7497,6 +8042,7 @@ export type Database = {
7497
8042
  id?: string;
7498
8043
  product_group_id: string;
7499
8044
  quantity?: number;
8045
+ sort_order?: number;
7500
8046
  trade_item_id: string;
7501
8047
  };
7502
8048
  Update: {
@@ -7504,6 +8050,7 @@ export type Database = {
7504
8050
  id?: string;
7505
8051
  product_group_id?: string;
7506
8052
  quantity?: number;
8053
+ sort_order?: number;
7507
8054
  trade_item_id?: string;
7508
8055
  };
7509
8056
  Relationships: [
@@ -7520,6 +8067,8 @@ export type Database = {
7520
8067
  Row: {
7521
8068
  created_at: string;
7522
8069
  description: string | null;
8070
+ head_product_id: string | null;
8071
+ head_trade_item_floriday_id: string | null;
7523
8072
  id: string;
7524
8073
  is_active: boolean;
7525
8074
  name: string;
@@ -7529,6 +8078,8 @@ export type Database = {
7529
8078
  Insert: {
7530
8079
  created_at?: string;
7531
8080
  description?: string | null;
8081
+ head_product_id?: string | null;
8082
+ head_trade_item_floriday_id?: string | null;
7532
8083
  id?: string;
7533
8084
  is_active?: boolean;
7534
8085
  name: string;
@@ -7538,24 +8089,135 @@ export type Database = {
7538
8089
  Update: {
7539
8090
  created_at?: string;
7540
8091
  description?: string | null;
8092
+ head_product_id?: string | null;
8093
+ head_trade_item_floriday_id?: string | null;
7541
8094
  id?: string;
7542
8095
  is_active?: boolean;
7543
8096
  name?: string;
7544
8097
  tenant_id?: string;
7545
8098
  updated_at?: string;
7546
8099
  };
8100
+ Relationships: [
8101
+ {
8102
+ foreignKeyName: "product_groups_head_product_id_fkey";
8103
+ columns: ["head_product_id"];
8104
+ isOneToOne: false;
8105
+ referencedRelation: "products";
8106
+ referencedColumns: ["id"];
8107
+ }
8108
+ ];
8109
+ };
8110
+ product_load_settings: {
8111
+ Row: {
8112
+ created_at: string;
8113
+ id: string;
8114
+ is_package: boolean;
8115
+ layers_per_load_carrier: number | null;
8116
+ load_carrier: string | null;
8117
+ package_id: string | null;
8118
+ package_label: string | null;
8119
+ packages_per_layer: number | null;
8120
+ product_id: string | null;
8121
+ tenant_id: string;
8122
+ trade_item_floriday_id: string | null;
8123
+ units_per_package: number | null;
8124
+ updated_at: string;
8125
+ };
8126
+ Insert: {
8127
+ created_at?: string;
8128
+ id?: string;
8129
+ is_package?: boolean;
8130
+ layers_per_load_carrier?: number | null;
8131
+ load_carrier?: string | null;
8132
+ package_id?: string | null;
8133
+ package_label?: string | null;
8134
+ packages_per_layer?: number | null;
8135
+ product_id?: string | null;
8136
+ tenant_id: string;
8137
+ trade_item_floriday_id?: string | null;
8138
+ units_per_package?: number | null;
8139
+ updated_at?: string;
8140
+ };
8141
+ Update: {
8142
+ created_at?: string;
8143
+ id?: string;
8144
+ is_package?: boolean;
8145
+ layers_per_load_carrier?: number | null;
8146
+ load_carrier?: string | null;
8147
+ package_id?: string | null;
8148
+ package_label?: string | null;
8149
+ packages_per_layer?: number | null;
8150
+ product_id?: string | null;
8151
+ tenant_id?: string;
8152
+ trade_item_floriday_id?: string | null;
8153
+ units_per_package?: number | null;
8154
+ updated_at?: string;
8155
+ };
8156
+ Relationships: [
8157
+ {
8158
+ foreignKeyName: "product_load_settings_package_id_fkey";
8159
+ columns: ["package_id"];
8160
+ isOneToOne: false;
8161
+ referencedRelation: "packages";
8162
+ referencedColumns: ["id"];
8163
+ },
8164
+ {
8165
+ foreignKeyName: "product_load_settings_product_id_fkey";
8166
+ columns: ["product_id"];
8167
+ isOneToOne: false;
8168
+ referencedRelation: "products";
8169
+ referencedColumns: ["id"];
8170
+ }
8171
+ ];
8172
+ };
8173
+ product_merge_log: {
8174
+ Row: {
8175
+ canonical_product_id: string | null;
8176
+ id: string;
8177
+ merged_at: string;
8178
+ merged_from_id: string;
8179
+ notes: string | null;
8180
+ snapshot: Json;
8181
+ source_table: string;
8182
+ status: string;
8183
+ };
8184
+ Insert: {
8185
+ canonical_product_id?: string | null;
8186
+ id?: string;
8187
+ merged_at?: string;
8188
+ merged_from_id: string;
8189
+ notes?: string | null;
8190
+ snapshot?: Json;
8191
+ source_table: string;
8192
+ status?: string;
8193
+ };
8194
+ Update: {
8195
+ canonical_product_id?: string | null;
8196
+ id?: string;
8197
+ merged_at?: string;
8198
+ merged_from_id?: string;
8199
+ notes?: string | null;
8200
+ snapshot?: Json;
8201
+ source_table?: string;
8202
+ status?: string;
8203
+ };
7547
8204
  Relationships: [];
7548
8205
  };
7549
8206
  products: {
7550
8207
  Row: {
8208
+ article_number: string | null;
7551
8209
  barcode: string | null;
7552
8210
  batch: string;
7553
8211
  crates_per_layer: number;
7554
8212
  created_at: string;
7555
8213
  custom_fields: Json;
8214
+ floriday_active: boolean;
8215
+ floriday_payload: Json;
8216
+ floriday_trade_item_id: string | null;
7556
8217
  id: string;
7557
8218
  image_url: string | null;
7558
8219
  incoming_quantity: number;
8220
+ is_layer: boolean;
7559
8221
  layers_per_cart: number;
7560
8222
  location: string;
7561
8223
  min_quantity: number;
@@ -7571,14 +8233,19 @@ export type Database = {
7571
8233
  weight: string | null;
7572
8234
  };
7573
8235
  Insert: {
8236
+ article_number?: string | null;
7574
8237
  barcode?: string | null;
7575
8238
  batch: string;
7576
8239
  crates_per_layer?: number;
7577
8240
  created_at?: string;
7578
8241
  custom_fields?: Json;
8242
+ floriday_active?: boolean;
8243
+ floriday_payload?: Json;
8244
+ floriday_trade_item_id?: string | null;
7579
8245
  id?: string;
7580
8246
  image_url?: string | null;
7581
8247
  incoming_quantity?: number;
8248
+ is_layer?: boolean;
7582
8249
  layers_per_cart?: number;
7583
8250
  location: string;
7584
8251
  min_quantity?: number;
@@ -7594,14 +8261,19 @@ export type Database = {
7594
8261
  weight?: string | null;
7595
8262
  };
7596
8263
  Update: {
8264
+ article_number?: string | null;
7597
8265
  barcode?: string | null;
7598
8266
  batch?: string;
7599
8267
  crates_per_layer?: number;
7600
8268
  created_at?: string;
7601
8269
  custom_fields?: Json;
8270
+ floriday_active?: boolean;
8271
+ floriday_payload?: Json;
8272
+ floriday_trade_item_id?: string | null;
7602
8273
  id?: string;
7603
8274
  image_url?: string | null;
7604
8275
  incoming_quantity?: number;
8276
+ is_layer?: boolean;
7605
8277
  layers_per_cart?: number;
7606
8278
  location?: string;
7607
8279
  min_quantity?: number;
@@ -8539,8 +9211,10 @@ export type Database = {
8539
9211
  order_id: string | null;
8540
9212
  order_item_id: string | null;
8541
9213
  order_source: string | null;
9214
+ parent_trade_item_key: string | null;
8542
9215
  physical_after: number | null;
8543
9216
  physical_before: number | null;
9217
+ production_batch_id: string | null;
8544
9218
  qty_delta: number;
8545
9219
  reason: string | null;
8546
9220
  reserved_after: number | null;
@@ -8556,8 +9230,10 @@ export type Database = {
8556
9230
  order_id?: string | null;
8557
9231
  order_item_id?: string | null;
8558
9232
  order_source?: string | null;
9233
+ parent_trade_item_key?: string | null;
8559
9234
  physical_after?: number | null;
8560
9235
  physical_before?: number | null;
9236
+ production_batch_id?: string | null;
8561
9237
  qty_delta: number;
8562
9238
  reason?: string | null;
8563
9239
  reserved_after?: number | null;
@@ -8573,8 +9249,10 @@ export type Database = {
8573
9249
  order_id?: string | null;
8574
9250
  order_item_id?: string | null;
8575
9251
  order_source?: string | null;
9252
+ parent_trade_item_key?: string | null;
8576
9253
  physical_after?: number | null;
8577
9254
  physical_before?: number | null;
9255
+ production_batch_id?: string | null;
8578
9256
  qty_delta?: number;
8579
9257
  reason?: string | null;
8580
9258
  reserved_after?: number | null;
@@ -8888,6 +9566,48 @@ export type Database = {
8888
9566
  };
8889
9567
  Relationships: [];
8890
9568
  };
9569
+ trade_item_prices: {
9570
+ Row: {
9571
+ created_at: string;
9572
+ currency: string;
9573
+ id: string;
9574
+ last_push_error: string | null;
9575
+ last_pushed_at: string | null;
9576
+ price_group_id: string | null;
9577
+ price_per_piece: number;
9578
+ supply_line_id: string | null;
9579
+ trade_item_key: string;
9580
+ updated_at: string;
9581
+ user_id: string;
9582
+ };
9583
+ Insert: {
9584
+ created_at?: string;
9585
+ currency?: string;
9586
+ id?: string;
9587
+ last_push_error?: string | null;
9588
+ last_pushed_at?: string | null;
9589
+ price_group_id?: string | null;
9590
+ price_per_piece: number;
9591
+ supply_line_id?: string | null;
9592
+ trade_item_key: string;
9593
+ updated_at?: string;
9594
+ user_id: string;
9595
+ };
9596
+ Update: {
9597
+ created_at?: string;
9598
+ currency?: string;
9599
+ id?: string;
9600
+ last_push_error?: string | null;
9601
+ last_pushed_at?: string | null;
9602
+ price_group_id?: string | null;
9603
+ price_per_piece?: number;
9604
+ supply_line_id?: string | null;
9605
+ trade_item_key?: string;
9606
+ updated_at?: string;
9607
+ user_id?: string;
9608
+ };
9609
+ Relationships: [];
9610
+ };
8891
9611
  trade_item_stock: {
8892
9612
  Row: {
8893
9613
  connection_id: string;
@@ -9043,7 +9763,7 @@ export type Database = {
9043
9763
  twinfield_connections: {
9044
9764
  Row: {
9045
9765
  access_token: string | null;
9046
- client_id: string;
9766
+ client_id: string | null;
9047
9767
  client_secret: string | null;
9048
9768
  cluster_uri: string | null;
9049
9769
  company_code: string | null;
@@ -9055,7 +9775,7 @@ export type Database = {
9055
9775
  is_active: boolean;
9056
9776
  label: string | null;
9057
9777
  office_code: string | null;
9058
- redirect_uri: string;
9778
+ redirect_uri: string | null;
9059
9779
  refresh_token: string | null;
9060
9780
  token_expires_at: string | null;
9061
9781
  updated_at: string;
@@ -9063,7 +9783,7 @@ export type Database = {
9063
9783
  };
9064
9784
  Insert: {
9065
9785
  access_token?: string | null;
9066
- client_id: string;
9786
+ client_id?: string | null;
9067
9787
  client_secret?: string | null;
9068
9788
  cluster_uri?: string | null;
9069
9789
  company_code?: string | null;
@@ -9075,7 +9795,7 @@ export type Database = {
9075
9795
  is_active?: boolean;
9076
9796
  label?: string | null;
9077
9797
  office_code?: string | null;
9078
- redirect_uri: string;
9798
+ redirect_uri?: string | null;
9079
9799
  refresh_token?: string | null;
9080
9800
  token_expires_at?: string | null;
9081
9801
  updated_at?: string;
@@ -9083,7 +9803,7 @@ export type Database = {
9083
9803
  };
9084
9804
  Update: {
9085
9805
  access_token?: string | null;
9086
- client_id?: string;
9806
+ client_id?: string | null;
9087
9807
  client_secret?: string | null;
9088
9808
  cluster_uri?: string | null;
9089
9809
  company_code?: string | null;
@@ -9095,7 +9815,7 @@ export type Database = {
9095
9815
  is_active?: boolean;
9096
9816
  label?: string | null;
9097
9817
  office_code?: string | null;
9098
- redirect_uri?: string;
9818
+ redirect_uri?: string | null;
9099
9819
  refresh_token?: string | null;
9100
9820
  token_expires_at?: string | null;
9101
9821
  updated_at?: string;
@@ -10312,25 +11032,6 @@ export type Database = {
10312
11032
  };
10313
11033
  Relationships: [];
10314
11034
  };
10315
- floriday_customer_discounts: {
10316
- Row: {
10317
- base_price: number | null;
10318
- buyer_organization_id: string | null;
10319
- currency: string | null;
10320
- discount_type: string | null;
10321
- discount_value: number | null;
10322
- min_quantity: number | null;
10323
- net_price: number | null;
10324
- product_group_id: string | null;
10325
- raw: Json | null;
10326
- source: string | null;
10327
- source_id: string | null;
10328
- trade_item_id: string | null;
10329
- valid_from: string | null;
10330
- valid_until: string | null;
10331
- };
10332
- Relationships: [];
10333
- };
10334
11035
  local_customer_discounts: {
10335
11036
  Row: {
10336
11037
  base_price: number | null;
@@ -10646,6 +11347,13 @@ export type Database = {
10646
11347
  };
10647
11348
  Returns: number;
10648
11349
  };
11350
+ _migrate_rewrite_stock_key: {
11351
+ Args: {
11352
+ _from_key: string;
11353
+ _to_key: string;
11354
+ };
11355
+ Returns: undefined;
11356
+ };
10649
11357
  afh_city_code: {
10650
11358
  Args: {
10651
11359
  _city: string;
@@ -10761,6 +11469,28 @@ export type Database = {
10761
11469
  Args: never;
10762
11470
  Returns: undefined;
10763
11471
  };
11472
+ consume_bom_for_production: {
11473
+ Args: {
11474
+ p_connection_id: string;
11475
+ p_parent_id: string;
11476
+ p_parent_key: string;
11477
+ p_parent_kind: string;
11478
+ p_quantity: number;
11479
+ p_user_id: string;
11480
+ };
11481
+ Returns: Json;
11482
+ } | {
11483
+ Args: {
11484
+ p_batch_id?: string;
11485
+ p_connection_id: string;
11486
+ p_parent_id: string;
11487
+ p_parent_key: string;
11488
+ p_parent_kind: string;
11489
+ p_quantity: number;
11490
+ p_user_id: string;
11491
+ };
11492
+ Returns: Json;
11493
+ };
10764
11494
  consume_floriday_rate_limit: {
10765
11495
  Args: {
10766
11496
  p_bucket: string;
@@ -10812,6 +11542,13 @@ export type Database = {
10812
11542
  table_name: string;
10813
11543
  }[];
10814
11544
  };
11545
+ delete_samenstelling: {
11546
+ Args: {
11547
+ p_parent_id: string;
11548
+ p_parent_kind: string;
11549
+ };
11550
+ Returns: Json;
11551
+ };
10815
11552
  dispatch_carrier_signups_sql: {
10816
11553
  Args: {
10817
11554
  _catchup?: string;
@@ -10853,6 +11590,16 @@ export type Database = {
10853
11590
  status: string;
10854
11591
  }[];
10855
11592
  };
11593
+ email_auth_upsert_connection: {
11594
+ Args: {
11595
+ _account_email: string;
11596
+ _created_by: string;
11597
+ _is_active: boolean;
11598
+ _provider: string;
11599
+ _status: string;
11600
+ };
11601
+ Returns: string;
11602
+ };
10856
11603
  enqueue_cart_replan_if_unlocked: {
10857
11604
  Args: {
10858
11605
  p_order_id: string;
@@ -10972,19 +11719,6 @@ export type Database = {
10972
11719
  resource: string;
10973
11720
  }[];
10974
11721
  };
10975
- get_floriday_agreements_active: {
10976
- Args: {
10977
- p_on_date?: string;
10978
- };
10979
- Returns: {
10980
- buyer_organization_id: string;
10981
- data: Json;
10982
- floriday_id: string;
10983
- status: string;
10984
- valid_from: string;
10985
- valid_until: string;
10986
- }[];
10987
- };
10988
11722
  get_floriday_clock_supplies_window: {
10989
11723
  Args: {
10990
11724
  p_from: string;
@@ -11057,6 +11791,21 @@ export type Database = {
11057
11791
  minutes_since_success: number;
11058
11792
  }[];
11059
11793
  };
11794
+ get_group_allocation_keys: {
11795
+ Args: {
11796
+ p_product_id: string;
11797
+ };
11798
+ Returns: {
11799
+ k: string;
11800
+ ord: number;
11801
+ }[];
11802
+ };
11803
+ get_group_head_key: {
11804
+ Args: {
11805
+ p_group_id: string;
11806
+ };
11807
+ Returns: string;
11808
+ };
11060
11809
  get_offer_by_link_code: {
11061
11810
  Args: {
11062
11811
  p_code: string;
@@ -11167,6 +11916,32 @@ export type Database = {
11167
11916
  };
11168
11917
  Returns: undefined;
11169
11918
  };
11919
+ mark_salesorder_controlled: {
11920
+ Args: {
11921
+ p_controlled: boolean;
11922
+ p_floriday_id: string;
11923
+ };
11924
+ Returns: undefined;
11925
+ };
11926
+ mark_shipment_shipped: {
11927
+ Args: {
11928
+ p_shipment_id: string;
11929
+ };
11930
+ Returns: undefined;
11931
+ };
11932
+ merge_products: {
11933
+ Args: {
11934
+ _canonical: string;
11935
+ _loser: string;
11936
+ };
11937
+ Returns: undefined;
11938
+ };
11939
+ next_manufacture_partij: {
11940
+ Args: {
11941
+ _tenant_id: string;
11942
+ };
11943
+ Returns: string;
11944
+ };
11170
11945
  next_order_number: {
11171
11946
  Args: {
11172
11947
  p_prefix: string;
@@ -11236,6 +12011,15 @@ export type Database = {
11236
12011
  };
11237
12012
  Returns: undefined;
11238
12013
  };
12014
+ pickstation_resolve_delivery_orders: {
12015
+ Args: {
12016
+ p_sales_order_ids: string[];
12017
+ };
12018
+ Returns: {
12019
+ delivery_order_id: string;
12020
+ sales_order_id: string;
12021
+ }[];
12022
+ };
11239
12023
  pickstation_set_cart_status: {
11240
12024
  Args: {
11241
12025
  p_cart_index: number;
@@ -11245,6 +12029,14 @@ export type Database = {
11245
12029
  };
11246
12030
  Returns: undefined;
11247
12031
  };
12032
+ produce_designed_product: {
12033
+ Args: {
12034
+ p_parent_id: string;
12035
+ p_parent_kind: string;
12036
+ p_quantity: number;
12037
+ };
12038
+ Returns: Json;
12039
+ };
11248
12040
  promote_trade_item_key: {
11249
12041
  Args: {
11250
12042
  p_new: string;
@@ -11252,6 +12044,10 @@ export type Database = {
11252
12044
  };
11253
12045
  Returns: undefined;
11254
12046
  };
12047
+ recompute_all_reserved_stock: {
12048
+ Args: never;
12049
+ Returns: undefined;
12050
+ };
11255
12051
  recompute_order_status: {
11256
12052
  Args: {
11257
12053
  p_order_id: string;
@@ -11301,27 +12097,45 @@ export type Database = {
11301
12097
  };
11302
12098
  Returns: undefined;
11303
12099
  };
12100
+ resolve_group_allocation: {
12101
+ Args: {
12102
+ _needed: number;
12103
+ _product_group_id: string;
12104
+ };
12105
+ Returns: {
12106
+ allocated: number;
12107
+ trade_item_id: string;
12108
+ }[];
12109
+ };
12110
+ resolve_group_member_stock_key: {
12111
+ Args: {
12112
+ p_trade_item_id: string;
12113
+ };
12114
+ Returns: string;
12115
+ };
11304
12116
  resolve_product_id_for_item: {
11305
12117
  Args: {
11306
12118
  p_product_name: string;
11307
12119
  };
11308
12120
  Returns: string;
11309
12121
  };
11310
- schedule_floriday_additional_services_sync: {
12122
+ resolve_stock_trade_item_key: {
11311
12123
  Args: {
11312
- p_apikey: string;
11313
- p_url: string;
12124
+ p_product_id: string;
11314
12125
  };
11315
- Returns: number;
12126
+ Returns: string;
11316
12127
  };
11317
- schedule_floriday_agreement_calloffs_sync: {
12128
+ reverse_production: {
11318
12129
  Args: {
11319
- p_apikey: string;
11320
- p_url: string;
12130
+ p_connection_id?: string;
12131
+ p_parent_key: string;
12132
+ p_quantity: number;
12133
+ p_reason?: string;
12134
+ p_user_id?: string;
11321
12135
  };
11322
- Returns: number;
12136
+ Returns: Json;
11323
12137
  };
11324
- schedule_floriday_agreements_sync: {
12138
+ schedule_floriday_additional_services_sync: {
11325
12139
  Args: {
11326
12140
  p_apikey: string;
11327
12141
  p_url: string;
@@ -11574,6 +12388,10 @@ export type Database = {
11574
12388
  };
11575
12389
  Returns: number;
11576
12390
  };
12391
+ self_heal_floriday_links: {
12392
+ Args: never;
12393
+ Returns: number;
12394
+ };
11577
12395
  show_limit: {
11578
12396
  Args: never;
11579
12397
  Returns: number;
@@ -11596,6 +12414,12 @@ export type Database = {
11596
12414
  };
11597
12415
  Returns: undefined;
11598
12416
  };
12417
+ sync_product_group_belading: {
12418
+ Args: {
12419
+ _group_id: string;
12420
+ };
12421
+ Returns: undefined;
12422
+ };
11599
12423
  sync_product_packing_from_floriday_cache: {
11600
12424
  Args: {
11601
12425
  p_floriday_id: string;