@flowselections/floriday-afhandeling-module 1.0.21 → 1.0.23

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 (35) hide show
  1. package/dist-lib/components/afhandeling/ControleLijstPrint.js +21 -21
  2. package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
  3. package/dist-lib/index.d.ts +3 -0
  4. package/dist-lib/index.d.ts.map +1 -1
  5. package/dist-lib/index.js +3 -0
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts +93 -125
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.d.ts +93 -125
  9. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts +93 -125
  11. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/types.d.ts +95 -127
  13. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  14. package/dist-lib/lib/afhandelingSettings.functions.d.ts +186 -250
  15. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/carrierSignupMail.server.js +26 -26
  17. package/dist-lib/lib/carriers.functions.d.ts +465 -625
  18. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/cartAssignments.functions.d.ts +465 -625
  20. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/cartControl.functions.d.ts +930 -1250
  22. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday.functions.d.ts +93 -125
  24. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +372 -500
  26. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +93 -125
  28. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +186 -250
  30. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +744 -1000
  32. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +376 -512
  34. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -1
  35. package/package.json +18 -1
@@ -36,9 +36,7 @@ export declare const saveWizardConfig: import("@tanstack/start-client-core").Req
36
36
  signup_mail_lead_minutes?: number;
37
37
  signup_mail_purpose?: string;
38
38
  transport_register_days_before?: number;
39
- updated_at
40
- /** Laad de opgeslagen wizard-config (of default). */
41
- ?: string;
39
+ updated_at?: string;
42
40
  user_id: string;
43
41
  };
44
42
  Update: {
@@ -4533,6 +4531,27 @@ export declare const saveWizardConfig: import("@tanstack/start-client-core").Req
4533
4531
  referencedColumns: ["id"];
4534
4532
  }];
4535
4533
  };
4534
+ floriday_continuous_stock_cache: {
4535
+ Row: {
4536
+ connection_id: string;
4537
+ fetched_at: string;
4538
+ number_of_pieces: number;
4539
+ trade_item_id: string;
4540
+ };
4541
+ Insert: {
4542
+ connection_id: string;
4543
+ fetched_at?: string;
4544
+ number_of_pieces?: number;
4545
+ trade_item_id: string;
4546
+ };
4547
+ Update: {
4548
+ connection_id?: string;
4549
+ fetched_at?: string;
4550
+ number_of_pieces?: number;
4551
+ trade_item_id?: string;
4552
+ };
4553
+ Relationships: [];
4554
+ };
4536
4555
  floriday_continuous_stock_queue: {
4537
4556
  Row: {
4538
4557
  attempts: number;
@@ -5511,6 +5530,45 @@ export declare const saveWizardConfig: import("@tanstack/start-client-core").Req
5511
5530
  referencedColumns: ["id"];
5512
5531
  }];
5513
5532
  };
5533
+ floriday_trade_settings_customers_cache: {
5534
+ Row: {
5535
+ connection_id: string;
5536
+ data: import("../../integrations/supabase/types").Json;
5537
+ fetched_at: string;
5538
+ floriday_id: string;
5539
+ id: string;
5540
+ is_deleted: boolean;
5541
+ sequence_number: number;
5542
+ updated_at: string;
5543
+ };
5544
+ Insert: {
5545
+ connection_id: string;
5546
+ data: import("../../integrations/supabase/types").Json;
5547
+ fetched_at?: string;
5548
+ floriday_id: string;
5549
+ id?: string;
5550
+ is_deleted?: boolean;
5551
+ sequence_number?: number;
5552
+ updated_at?: string;
5553
+ };
5554
+ Update: {
5555
+ connection_id?: string;
5556
+ data?: import("../../integrations/supabase/types").Json;
5557
+ fetched_at?: string;
5558
+ floriday_id?: string;
5559
+ id?: string;
5560
+ is_deleted?: boolean;
5561
+ sequence_number?: number;
5562
+ updated_at?: string;
5563
+ };
5564
+ Relationships: [{
5565
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5566
+ columns: ["connection_id"];
5567
+ isOneToOne: false;
5568
+ referencedRelation: "floriday_connections";
5569
+ referencedColumns: ["id"];
5570
+ }];
5571
+ };
5514
5572
  floriday_trips_cache: {
5515
5573
  Row: {
5516
5574
  carrier_organization_id: string | null;
@@ -5559,6 +5617,27 @@ export declare const saveWizardConfig: import("@tanstack/start-client-core").Req
5559
5617
  referencedColumns: ["id"];
5560
5618
  }];
5561
5619
  };
5620
+ floriday_vbn_required_characteristics: {
5621
+ Row: {
5622
+ required_codes: string[];
5623
+ updated_at: string;
5624
+ updated_by: string | null;
5625
+ vbn_code: string;
5626
+ };
5627
+ Insert: {
5628
+ required_codes?: string[];
5629
+ updated_at?: string;
5630
+ updated_by?: string | null;
5631
+ vbn_code: string;
5632
+ };
5633
+ Update: {
5634
+ required_codes?: string[];
5635
+ updated_at?: string;
5636
+ updated_by?: string | null;
5637
+ vbn_code?: string;
5638
+ };
5639
+ Relationships: [];
5640
+ };
5562
5641
  floriday_warehouses_cache: {
5563
5642
  Row: {
5564
5643
  connection_id: string;
@@ -10532,9 +10611,7 @@ export declare const saveWizardConfig: import("@tanstack/start-client-core").Req
10532
10611
  };
10533
10612
  twinfield_connections: {
10534
10613
  Row: {
10535
- access_token: string | null;
10536
- client_id: string;
10537
- client_secret: string | null;
10614
+ account_key: string | null;
10538
10615
  cluster_uri: string | null;
10539
10616
  company_code: string | null;
10540
10617
  company_name: string | null;
@@ -10546,15 +10623,11 @@ export declare const saveWizardConfig: import("@tanstack/start-client-core").Req
10546
10623
  label: string | null;
10547
10624
  office_code: string | null;
10548
10625
  redirect_uri: string;
10549
- refresh_token: string | null;
10550
- token_expires_at: string | null;
10551
10626
  updated_at: string;
10552
10627
  user_id: string;
10553
10628
  };
10554
10629
  Insert: {
10555
- access_token?: string | null;
10556
- client_id: string;
10557
- client_secret?: string | null;
10630
+ account_key?: string | null;
10558
10631
  cluster_uri?: string | null;
10559
10632
  company_code?: string | null;
10560
10633
  company_name?: string | null;
@@ -10566,15 +10639,11 @@ export declare const saveWizardConfig: import("@tanstack/start-client-core").Req
10566
10639
  label?: string | null;
10567
10640
  office_code?: string | null;
10568
10641
  redirect_uri: string;
10569
- refresh_token?: string | null;
10570
- token_expires_at?: string | null;
10571
10642
  updated_at?: string;
10572
10643
  user_id: string;
10573
10644
  };
10574
10645
  Update: {
10575
- access_token?: string | null;
10576
- client_id?: string;
10577
- client_secret?: string | null;
10646
+ account_key?: string | null;
10578
10647
  cluster_uri?: string | null;
10579
10648
  company_code?: string | null;
10580
10649
  company_name?: string | null;
@@ -10586,53 +10655,6 @@ export declare const saveWizardConfig: import("@tanstack/start-client-core").Req
10586
10655
  label?: string | null;
10587
10656
  office_code?: string | null;
10588
10657
  redirect_uri?: string;
10589
- refresh_token?: string | null;
10590
- token_expires_at?: string | null;
10591
- updated_at?: string;
10592
- user_id?: string;
10593
- };
10594
- Relationships: [];
10595
- };
10596
- twinfield_credentials: {
10597
- Row: {
10598
- administration_code: string | null;
10599
- client_id: string | null;
10600
- client_secret: string | null;
10601
- cluster: string | null;
10602
- connected_at: string | null;
10603
- created_at: string;
10604
- environment: string | null;
10605
- id: string;
10606
- redirect_uri: string | null;
10607
- refresh_token: string | null;
10608
- updated_at: string;
10609
- user_id: string;
10610
- };
10611
- Insert: {
10612
- administration_code?: string | null;
10613
- client_id?: string | null;
10614
- client_secret?: string | null;
10615
- cluster?: string | null;
10616
- connected_at?: string | null;
10617
- created_at?: string;
10618
- environment?: string | null;
10619
- id?: string;
10620
- redirect_uri?: string | null;
10621
- refresh_token?: string | null;
10622
- updated_at?: string;
10623
- user_id: string;
10624
- };
10625
- Update: {
10626
- administration_code?: string | null;
10627
- client_id?: string | null;
10628
- client_secret?: string | null;
10629
- cluster?: string | null;
10630
- connected_at?: string | null;
10631
- created_at?: string;
10632
- environment?: string | null;
10633
- id?: string;
10634
- redirect_uri?: string | null;
10635
- refresh_token?: string | null;
10636
10658
  updated_at?: string;
10637
10659
  user_id?: string;
10638
10660
  };
@@ -11133,30 +11155,6 @@ export declare const saveWizardConfig: import("@tanstack/start-client-core").Req
11133
11155
  referencedColumns: ["id"];
11134
11156
  }];
11135
11157
  };
11136
- twinfield_oauth_state: {
11137
- Row: {
11138
- created_at: string;
11139
- environment: string;
11140
- nonce: string | null;
11141
- state: string;
11142
- user_id: string;
11143
- };
11144
- Insert: {
11145
- created_at?: string;
11146
- environment: string;
11147
- nonce?: string | null;
11148
- state: string;
11149
- user_id: string;
11150
- };
11151
- Update: {
11152
- created_at?: string;
11153
- environment?: string;
11154
- nonce?: string | null;
11155
- state?: string;
11156
- user_id?: string;
11157
- };
11158
- Relationships: [];
11159
- };
11160
11158
  twinfield_push_queue: {
11161
11159
  Row: {
11162
11160
  action: string;
@@ -11322,39 +11320,6 @@ export declare const saveWizardConfig: import("@tanstack/start-client-core").Req
11322
11320
  referencedColumns: ["id"];
11323
11321
  }];
11324
11322
  };
11325
- twinfield_token_refresh_log: {
11326
- Row: {
11327
- attempted_at: string;
11328
- connection_id: string;
11329
- error: string | null;
11330
- expires_at: string | null;
11331
- id: string;
11332
- ok: boolean;
11333
- };
11334
- Insert: {
11335
- attempted_at?: string;
11336
- connection_id: string;
11337
- error?: string | null;
11338
- expires_at?: string | null;
11339
- id?: string;
11340
- ok: boolean;
11341
- };
11342
- Update: {
11343
- attempted_at?: string;
11344
- connection_id?: string;
11345
- error?: string | null;
11346
- expires_at?: string | null;
11347
- id?: string;
11348
- ok?: boolean;
11349
- };
11350
- Relationships: [{
11351
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11352
- columns: ["connection_id"];
11353
- isOneToOne: false;
11354
- referencedRelation: "twinfield_connections";
11355
- referencedColumns: ["id"];
11356
- }];
11357
- };
11358
11323
  user_roles: {
11359
11324
  Row: {
11360
11325
  created_at: string;
@@ -13795,15 +13760,16 @@ export declare const saveWizardConfig: import("@tanstack/start-client-core").Req
13795
13760
  };
13796
13761
  Returns: undefined;
13797
13762
  };
13798
- twinfield_decrypt: {
13763
+ twinfield_upsert_connection_by_account_key: {
13799
13764
  Args: {
13800
- cipher: string;
13801
- };
13802
- Returns: string;
13803
- };
13804
- twinfield_encrypt: {
13805
- Args: {
13806
- plain: string;
13765
+ p_account_key: string;
13766
+ p_cluster_uri?: string;
13767
+ p_company_code?: string;
13768
+ p_company_name?: string;
13769
+ p_environment: string;
13770
+ p_office_code?: string;
13771
+ p_status?: string;
13772
+ p_user_id: string;
13807
13773
  };
13808
13774
  Returns: string;
13809
13775
  };
@@ -13880,9 +13846,7 @@ export declare const loadWizardConfig: import("@tanstack/start-client-core").Req
13880
13846
  signup_mail_lead_minutes?: number;
13881
13847
  signup_mail_purpose?: string;
13882
13848
  transport_register_days_before?: number;
13883
- updated_at
13884
- /** Laad de opgeslagen wizard-config (of default). */
13885
- ?: string;
13849
+ updated_at?: string;
13886
13850
  user_id: string;
13887
13851
  };
13888
13852
  Update: {
@@ -18377,6 +18341,27 @@ export declare const loadWizardConfig: import("@tanstack/start-client-core").Req
18377
18341
  referencedColumns: ["id"];
18378
18342
  }];
18379
18343
  };
18344
+ floriday_continuous_stock_cache: {
18345
+ Row: {
18346
+ connection_id: string;
18347
+ fetched_at: string;
18348
+ number_of_pieces: number;
18349
+ trade_item_id: string;
18350
+ };
18351
+ Insert: {
18352
+ connection_id: string;
18353
+ fetched_at?: string;
18354
+ number_of_pieces?: number;
18355
+ trade_item_id: string;
18356
+ };
18357
+ Update: {
18358
+ connection_id?: string;
18359
+ fetched_at?: string;
18360
+ number_of_pieces?: number;
18361
+ trade_item_id?: string;
18362
+ };
18363
+ Relationships: [];
18364
+ };
18380
18365
  floriday_continuous_stock_queue: {
18381
18366
  Row: {
18382
18367
  attempts: number;
@@ -19355,6 +19340,45 @@ export declare const loadWizardConfig: import("@tanstack/start-client-core").Req
19355
19340
  referencedColumns: ["id"];
19356
19341
  }];
19357
19342
  };
19343
+ floriday_trade_settings_customers_cache: {
19344
+ Row: {
19345
+ connection_id: string;
19346
+ data: import("../../integrations/supabase/types").Json;
19347
+ fetched_at: string;
19348
+ floriday_id: string;
19349
+ id: string;
19350
+ is_deleted: boolean;
19351
+ sequence_number: number;
19352
+ updated_at: string;
19353
+ };
19354
+ Insert: {
19355
+ connection_id: string;
19356
+ data: import("../../integrations/supabase/types").Json;
19357
+ fetched_at?: string;
19358
+ floriday_id: string;
19359
+ id?: string;
19360
+ is_deleted?: boolean;
19361
+ sequence_number?: number;
19362
+ updated_at?: string;
19363
+ };
19364
+ Update: {
19365
+ connection_id?: string;
19366
+ data?: import("../../integrations/supabase/types").Json;
19367
+ fetched_at?: string;
19368
+ floriday_id?: string;
19369
+ id?: string;
19370
+ is_deleted?: boolean;
19371
+ sequence_number?: number;
19372
+ updated_at?: string;
19373
+ };
19374
+ Relationships: [{
19375
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19376
+ columns: ["connection_id"];
19377
+ isOneToOne: false;
19378
+ referencedRelation: "floriday_connections";
19379
+ referencedColumns: ["id"];
19380
+ }];
19381
+ };
19358
19382
  floriday_trips_cache: {
19359
19383
  Row: {
19360
19384
  carrier_organization_id: string | null;
@@ -19403,6 +19427,27 @@ export declare const loadWizardConfig: import("@tanstack/start-client-core").Req
19403
19427
  referencedColumns: ["id"];
19404
19428
  }];
19405
19429
  };
19430
+ floriday_vbn_required_characteristics: {
19431
+ Row: {
19432
+ required_codes: string[];
19433
+ updated_at: string;
19434
+ updated_by: string | null;
19435
+ vbn_code: string;
19436
+ };
19437
+ Insert: {
19438
+ required_codes?: string[];
19439
+ updated_at?: string;
19440
+ updated_by?: string | null;
19441
+ vbn_code: string;
19442
+ };
19443
+ Update: {
19444
+ required_codes?: string[];
19445
+ updated_at?: string;
19446
+ updated_by?: string | null;
19447
+ vbn_code?: string;
19448
+ };
19449
+ Relationships: [];
19450
+ };
19406
19451
  floriday_warehouses_cache: {
19407
19452
  Row: {
19408
19453
  connection_id: string;
@@ -24376,9 +24421,7 @@ export declare const loadWizardConfig: import("@tanstack/start-client-core").Req
24376
24421
  };
24377
24422
  twinfield_connections: {
24378
24423
  Row: {
24379
- access_token: string | null;
24380
- client_id: string;
24381
- client_secret: string | null;
24424
+ account_key: string | null;
24382
24425
  cluster_uri: string | null;
24383
24426
  company_code: string | null;
24384
24427
  company_name: string | null;
@@ -24390,15 +24433,11 @@ export declare const loadWizardConfig: import("@tanstack/start-client-core").Req
24390
24433
  label: string | null;
24391
24434
  office_code: string | null;
24392
24435
  redirect_uri: string;
24393
- refresh_token: string | null;
24394
- token_expires_at: string | null;
24395
24436
  updated_at: string;
24396
24437
  user_id: string;
24397
24438
  };
24398
24439
  Insert: {
24399
- access_token?: string | null;
24400
- client_id: string;
24401
- client_secret?: string | null;
24440
+ account_key?: string | null;
24402
24441
  cluster_uri?: string | null;
24403
24442
  company_code?: string | null;
24404
24443
  company_name?: string | null;
@@ -24410,15 +24449,11 @@ export declare const loadWizardConfig: import("@tanstack/start-client-core").Req
24410
24449
  label?: string | null;
24411
24450
  office_code?: string | null;
24412
24451
  redirect_uri: string;
24413
- refresh_token?: string | null;
24414
- token_expires_at?: string | null;
24415
24452
  updated_at?: string;
24416
24453
  user_id: string;
24417
24454
  };
24418
24455
  Update: {
24419
- access_token?: string | null;
24420
- client_id?: string;
24421
- client_secret?: string | null;
24456
+ account_key?: string | null;
24422
24457
  cluster_uri?: string | null;
24423
24458
  company_code?: string | null;
24424
24459
  company_name?: string | null;
@@ -24430,53 +24465,6 @@ export declare const loadWizardConfig: import("@tanstack/start-client-core").Req
24430
24465
  label?: string | null;
24431
24466
  office_code?: string | null;
24432
24467
  redirect_uri?: string;
24433
- refresh_token?: string | null;
24434
- token_expires_at?: string | null;
24435
- updated_at?: string;
24436
- user_id?: string;
24437
- };
24438
- Relationships: [];
24439
- };
24440
- twinfield_credentials: {
24441
- Row: {
24442
- administration_code: string | null;
24443
- client_id: string | null;
24444
- client_secret: string | null;
24445
- cluster: string | null;
24446
- connected_at: string | null;
24447
- created_at: string;
24448
- environment: string | null;
24449
- id: string;
24450
- redirect_uri: string | null;
24451
- refresh_token: string | null;
24452
- updated_at: string;
24453
- user_id: string;
24454
- };
24455
- Insert: {
24456
- administration_code?: string | null;
24457
- client_id?: string | null;
24458
- client_secret?: string | null;
24459
- cluster?: string | null;
24460
- connected_at?: string | null;
24461
- created_at?: string;
24462
- environment?: string | null;
24463
- id?: string;
24464
- redirect_uri?: string | null;
24465
- refresh_token?: string | null;
24466
- updated_at?: string;
24467
- user_id: string;
24468
- };
24469
- Update: {
24470
- administration_code?: string | null;
24471
- client_id?: string | null;
24472
- client_secret?: string | null;
24473
- cluster?: string | null;
24474
- connected_at?: string | null;
24475
- created_at?: string;
24476
- environment?: string | null;
24477
- id?: string;
24478
- redirect_uri?: string | null;
24479
- refresh_token?: string | null;
24480
24468
  updated_at?: string;
24481
24469
  user_id?: string;
24482
24470
  };
@@ -24977,30 +24965,6 @@ export declare const loadWizardConfig: import("@tanstack/start-client-core").Req
24977
24965
  referencedColumns: ["id"];
24978
24966
  }];
24979
24967
  };
24980
- twinfield_oauth_state: {
24981
- Row: {
24982
- created_at: string;
24983
- environment: string;
24984
- nonce: string | null;
24985
- state: string;
24986
- user_id: string;
24987
- };
24988
- Insert: {
24989
- created_at?: string;
24990
- environment: string;
24991
- nonce?: string | null;
24992
- state: string;
24993
- user_id: string;
24994
- };
24995
- Update: {
24996
- created_at?: string;
24997
- environment?: string;
24998
- nonce?: string | null;
24999
- state?: string;
25000
- user_id?: string;
25001
- };
25002
- Relationships: [];
25003
- };
25004
24968
  twinfield_push_queue: {
25005
24969
  Row: {
25006
24970
  action: string;
@@ -25166,39 +25130,6 @@ export declare const loadWizardConfig: import("@tanstack/start-client-core").Req
25166
25130
  referencedColumns: ["id"];
25167
25131
  }];
25168
25132
  };
25169
- twinfield_token_refresh_log: {
25170
- Row: {
25171
- attempted_at: string;
25172
- connection_id: string;
25173
- error: string | null;
25174
- expires_at: string | null;
25175
- id: string;
25176
- ok: boolean;
25177
- };
25178
- Insert: {
25179
- attempted_at?: string;
25180
- connection_id: string;
25181
- error?: string | null;
25182
- expires_at?: string | null;
25183
- id?: string;
25184
- ok: boolean;
25185
- };
25186
- Update: {
25187
- attempted_at?: string;
25188
- connection_id?: string;
25189
- error?: string | null;
25190
- expires_at?: string | null;
25191
- id?: string;
25192
- ok?: boolean;
25193
- };
25194
- Relationships: [{
25195
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25196
- columns: ["connection_id"];
25197
- isOneToOne: false;
25198
- referencedRelation: "twinfield_connections";
25199
- referencedColumns: ["id"];
25200
- }];
25201
- };
25202
25133
  user_roles: {
25203
25134
  Row: {
25204
25135
  created_at: string;
@@ -27639,15 +27570,16 @@ export declare const loadWizardConfig: import("@tanstack/start-client-core").Req
27639
27570
  };
27640
27571
  Returns: undefined;
27641
27572
  };
27642
- twinfield_decrypt: {
27643
- Args: {
27644
- cipher: string;
27645
- };
27646
- Returns: string;
27647
- };
27648
- twinfield_encrypt: {
27573
+ twinfield_upsert_connection_by_account_key: {
27649
27574
  Args: {
27650
- plain: string;
27575
+ p_account_key: string;
27576
+ p_cluster_uri?: string;
27577
+ p_company_code?: string;
27578
+ p_company_name?: string;
27579
+ p_environment: string;
27580
+ p_office_code?: string;
27581
+ p_status?: string;
27582
+ p_user_id: string;
27651
27583
  };
27652
27584
  Returns: string;
27653
27585
  };
@@ -27725,9 +27657,7 @@ export declare const getActiveWizardConfig: import("@tanstack/start-client-core"
27725
27657
  signup_mail_lead_minutes?: number;
27726
27658
  signup_mail_purpose?: string;
27727
27659
  transport_register_days_before?: number;
27728
- updated_at
27729
- /** Laad de opgeslagen wizard-config (of default). */
27730
- ?: string;
27660
+ updated_at?: string;
27731
27661
  user_id: string;
27732
27662
  };
27733
27663
  Update: {
@@ -32222,6 +32152,27 @@ export declare const getActiveWizardConfig: import("@tanstack/start-client-core"
32222
32152
  referencedColumns: ["id"];
32223
32153
  }];
32224
32154
  };
32155
+ floriday_continuous_stock_cache: {
32156
+ Row: {
32157
+ connection_id: string;
32158
+ fetched_at: string;
32159
+ number_of_pieces: number;
32160
+ trade_item_id: string;
32161
+ };
32162
+ Insert: {
32163
+ connection_id: string;
32164
+ fetched_at?: string;
32165
+ number_of_pieces?: number;
32166
+ trade_item_id: string;
32167
+ };
32168
+ Update: {
32169
+ connection_id?: string;
32170
+ fetched_at?: string;
32171
+ number_of_pieces?: number;
32172
+ trade_item_id?: string;
32173
+ };
32174
+ Relationships: [];
32175
+ };
32225
32176
  floriday_continuous_stock_queue: {
32226
32177
  Row: {
32227
32178
  attempts: number;
@@ -33200,6 +33151,45 @@ export declare const getActiveWizardConfig: import("@tanstack/start-client-core"
33200
33151
  referencedColumns: ["id"];
33201
33152
  }];
33202
33153
  };
33154
+ floriday_trade_settings_customers_cache: {
33155
+ Row: {
33156
+ connection_id: string;
33157
+ data: import("../../integrations/supabase/types").Json;
33158
+ fetched_at: string;
33159
+ floriday_id: string;
33160
+ id: string;
33161
+ is_deleted: boolean;
33162
+ sequence_number: number;
33163
+ updated_at: string;
33164
+ };
33165
+ Insert: {
33166
+ connection_id: string;
33167
+ data: import("../../integrations/supabase/types").Json;
33168
+ fetched_at?: string;
33169
+ floriday_id: string;
33170
+ id?: string;
33171
+ is_deleted?: boolean;
33172
+ sequence_number?: number;
33173
+ updated_at?: string;
33174
+ };
33175
+ Update: {
33176
+ connection_id?: string;
33177
+ data?: import("../../integrations/supabase/types").Json;
33178
+ fetched_at?: string;
33179
+ floriday_id?: string;
33180
+ id?: string;
33181
+ is_deleted?: boolean;
33182
+ sequence_number?: number;
33183
+ updated_at?: string;
33184
+ };
33185
+ Relationships: [{
33186
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33187
+ columns: ["connection_id"];
33188
+ isOneToOne: false;
33189
+ referencedRelation: "floriday_connections";
33190
+ referencedColumns: ["id"];
33191
+ }];
33192
+ };
33203
33193
  floriday_trips_cache: {
33204
33194
  Row: {
33205
33195
  carrier_organization_id: string | null;
@@ -33248,6 +33238,27 @@ export declare const getActiveWizardConfig: import("@tanstack/start-client-core"
33248
33238
  referencedColumns: ["id"];
33249
33239
  }];
33250
33240
  };
33241
+ floriday_vbn_required_characteristics: {
33242
+ Row: {
33243
+ required_codes: string[];
33244
+ updated_at: string;
33245
+ updated_by: string | null;
33246
+ vbn_code: string;
33247
+ };
33248
+ Insert: {
33249
+ required_codes?: string[];
33250
+ updated_at?: string;
33251
+ updated_by?: string | null;
33252
+ vbn_code: string;
33253
+ };
33254
+ Update: {
33255
+ required_codes?: string[];
33256
+ updated_at?: string;
33257
+ updated_by?: string | null;
33258
+ vbn_code?: string;
33259
+ };
33260
+ Relationships: [];
33261
+ };
33251
33262
  floriday_warehouses_cache: {
33252
33263
  Row: {
33253
33264
  connection_id: string;
@@ -38221,9 +38232,7 @@ export declare const getActiveWizardConfig: import("@tanstack/start-client-core"
38221
38232
  };
38222
38233
  twinfield_connections: {
38223
38234
  Row: {
38224
- access_token: string | null;
38225
- client_id: string;
38226
- client_secret: string | null;
38235
+ account_key: string | null;
38227
38236
  cluster_uri: string | null;
38228
38237
  company_code: string | null;
38229
38238
  company_name: string | null;
@@ -38235,15 +38244,11 @@ export declare const getActiveWizardConfig: import("@tanstack/start-client-core"
38235
38244
  label: string | null;
38236
38245
  office_code: string | null;
38237
38246
  redirect_uri: string;
38238
- refresh_token: string | null;
38239
- token_expires_at: string | null;
38240
38247
  updated_at: string;
38241
38248
  user_id: string;
38242
38249
  };
38243
38250
  Insert: {
38244
- access_token?: string | null;
38245
- client_id: string;
38246
- client_secret?: string | null;
38251
+ account_key?: string | null;
38247
38252
  cluster_uri?: string | null;
38248
38253
  company_code?: string | null;
38249
38254
  company_name?: string | null;
@@ -38255,15 +38260,11 @@ export declare const getActiveWizardConfig: import("@tanstack/start-client-core"
38255
38260
  label?: string | null;
38256
38261
  office_code?: string | null;
38257
38262
  redirect_uri: string;
38258
- refresh_token?: string | null;
38259
- token_expires_at?: string | null;
38260
38263
  updated_at?: string;
38261
38264
  user_id: string;
38262
38265
  };
38263
38266
  Update: {
38264
- access_token?: string | null;
38265
- client_id?: string;
38266
- client_secret?: string | null;
38267
+ account_key?: string | null;
38267
38268
  cluster_uri?: string | null;
38268
38269
  company_code?: string | null;
38269
38270
  company_name?: string | null;
@@ -38275,53 +38276,6 @@ export declare const getActiveWizardConfig: import("@tanstack/start-client-core"
38275
38276
  label?: string | null;
38276
38277
  office_code?: string | null;
38277
38278
  redirect_uri?: string;
38278
- refresh_token?: string | null;
38279
- token_expires_at?: string | null;
38280
- updated_at?: string;
38281
- user_id?: string;
38282
- };
38283
- Relationships: [];
38284
- };
38285
- twinfield_credentials: {
38286
- Row: {
38287
- administration_code: string | null;
38288
- client_id: string | null;
38289
- client_secret: string | null;
38290
- cluster: string | null;
38291
- connected_at: string | null;
38292
- created_at: string;
38293
- environment: string | null;
38294
- id: string;
38295
- redirect_uri: string | null;
38296
- refresh_token: string | null;
38297
- updated_at: string;
38298
- user_id: string;
38299
- };
38300
- Insert: {
38301
- administration_code?: string | null;
38302
- client_id?: string | null;
38303
- client_secret?: string | null;
38304
- cluster?: string | null;
38305
- connected_at?: string | null;
38306
- created_at?: string;
38307
- environment?: string | null;
38308
- id?: string;
38309
- redirect_uri?: string | null;
38310
- refresh_token?: string | null;
38311
- updated_at?: string;
38312
- user_id: string;
38313
- };
38314
- Update: {
38315
- administration_code?: string | null;
38316
- client_id?: string | null;
38317
- client_secret?: string | null;
38318
- cluster?: string | null;
38319
- connected_at?: string | null;
38320
- created_at?: string;
38321
- environment?: string | null;
38322
- id?: string;
38323
- redirect_uri?: string | null;
38324
- refresh_token?: string | null;
38325
38279
  updated_at?: string;
38326
38280
  user_id?: string;
38327
38281
  };
@@ -38822,30 +38776,6 @@ export declare const getActiveWizardConfig: import("@tanstack/start-client-core"
38822
38776
  referencedColumns: ["id"];
38823
38777
  }];
38824
38778
  };
38825
- twinfield_oauth_state: {
38826
- Row: {
38827
- created_at: string;
38828
- environment: string;
38829
- nonce: string | null;
38830
- state: string;
38831
- user_id: string;
38832
- };
38833
- Insert: {
38834
- created_at?: string;
38835
- environment: string;
38836
- nonce?: string | null;
38837
- state: string;
38838
- user_id: string;
38839
- };
38840
- Update: {
38841
- created_at?: string;
38842
- environment?: string;
38843
- nonce?: string | null;
38844
- state?: string;
38845
- user_id?: string;
38846
- };
38847
- Relationships: [];
38848
- };
38849
38779
  twinfield_push_queue: {
38850
38780
  Row: {
38851
38781
  action: string;
@@ -39011,39 +38941,6 @@ export declare const getActiveWizardConfig: import("@tanstack/start-client-core"
39011
38941
  referencedColumns: ["id"];
39012
38942
  }];
39013
38943
  };
39014
- twinfield_token_refresh_log: {
39015
- Row: {
39016
- attempted_at: string;
39017
- connection_id: string;
39018
- error: string | null;
39019
- expires_at: string | null;
39020
- id: string;
39021
- ok: boolean;
39022
- };
39023
- Insert: {
39024
- attempted_at?: string;
39025
- connection_id: string;
39026
- error?: string | null;
39027
- expires_at?: string | null;
39028
- id?: string;
39029
- ok: boolean;
39030
- };
39031
- Update: {
39032
- attempted_at?: string;
39033
- connection_id?: string;
39034
- error?: string | null;
39035
- expires_at?: string | null;
39036
- id?: string;
39037
- ok?: boolean;
39038
- };
39039
- Relationships: [{
39040
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39041
- columns: ["connection_id"];
39042
- isOneToOne: false;
39043
- referencedRelation: "twinfield_connections";
39044
- referencedColumns: ["id"];
39045
- }];
39046
- };
39047
38944
  user_roles: {
39048
38945
  Row: {
39049
38946
  created_at: string;
@@ -41484,15 +41381,16 @@ export declare const getActiveWizardConfig: import("@tanstack/start-client-core"
41484
41381
  };
41485
41382
  Returns: undefined;
41486
41383
  };
41487
- twinfield_decrypt: {
41384
+ twinfield_upsert_connection_by_account_key: {
41488
41385
  Args: {
41489
- cipher: string;
41490
- };
41491
- Returns: string;
41492
- };
41493
- twinfield_encrypt: {
41494
- Args: {
41495
- plain: string;
41386
+ p_account_key: string;
41387
+ p_cluster_uri?: string;
41388
+ p_company_code?: string;
41389
+ p_company_name?: string;
41390
+ p_environment: string;
41391
+ p_office_code?: string;
41392
+ p_status?: string;
41393
+ p_user_id: string;
41496
41394
  };
41497
41395
  Returns: string;
41498
41396
  };
@@ -41562,9 +41460,7 @@ export declare const aiSuggestConfig: import("@tanstack/start-client-core").Requ
41562
41460
  signup_mail_lead_minutes?: number;
41563
41461
  signup_mail_purpose?: string;
41564
41462
  transport_register_days_before?: number;
41565
- updated_at
41566
- /** Laad de opgeslagen wizard-config (of default). */
41567
- ?: string;
41463
+ updated_at?: string;
41568
41464
  user_id: string;
41569
41465
  };
41570
41466
  Update: {
@@ -46059,6 +45955,27 @@ export declare const aiSuggestConfig: import("@tanstack/start-client-core").Requ
46059
45955
  referencedColumns: ["id"];
46060
45956
  }];
46061
45957
  };
45958
+ floriday_continuous_stock_cache: {
45959
+ Row: {
45960
+ connection_id: string;
45961
+ fetched_at: string;
45962
+ number_of_pieces: number;
45963
+ trade_item_id: string;
45964
+ };
45965
+ Insert: {
45966
+ connection_id: string;
45967
+ fetched_at?: string;
45968
+ number_of_pieces?: number;
45969
+ trade_item_id: string;
45970
+ };
45971
+ Update: {
45972
+ connection_id?: string;
45973
+ fetched_at?: string;
45974
+ number_of_pieces?: number;
45975
+ trade_item_id?: string;
45976
+ };
45977
+ Relationships: [];
45978
+ };
46062
45979
  floriday_continuous_stock_queue: {
46063
45980
  Row: {
46064
45981
  attempts: number;
@@ -47037,6 +46954,45 @@ export declare const aiSuggestConfig: import("@tanstack/start-client-core").Requ
47037
46954
  referencedColumns: ["id"];
47038
46955
  }];
47039
46956
  };
46957
+ floriday_trade_settings_customers_cache: {
46958
+ Row: {
46959
+ connection_id: string;
46960
+ data: import("../../integrations/supabase/types").Json;
46961
+ fetched_at: string;
46962
+ floriday_id: string;
46963
+ id: string;
46964
+ is_deleted: boolean;
46965
+ sequence_number: number;
46966
+ updated_at: string;
46967
+ };
46968
+ Insert: {
46969
+ connection_id: string;
46970
+ data: import("../../integrations/supabase/types").Json;
46971
+ fetched_at?: string;
46972
+ floriday_id: string;
46973
+ id?: string;
46974
+ is_deleted?: boolean;
46975
+ sequence_number?: number;
46976
+ updated_at?: string;
46977
+ };
46978
+ Update: {
46979
+ connection_id?: string;
46980
+ data?: import("../../integrations/supabase/types").Json;
46981
+ fetched_at?: string;
46982
+ floriday_id?: string;
46983
+ id?: string;
46984
+ is_deleted?: boolean;
46985
+ sequence_number?: number;
46986
+ updated_at?: string;
46987
+ };
46988
+ Relationships: [{
46989
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
46990
+ columns: ["connection_id"];
46991
+ isOneToOne: false;
46992
+ referencedRelation: "floriday_connections";
46993
+ referencedColumns: ["id"];
46994
+ }];
46995
+ };
47040
46996
  floriday_trips_cache: {
47041
46997
  Row: {
47042
46998
  carrier_organization_id: string | null;
@@ -47085,6 +47041,27 @@ export declare const aiSuggestConfig: import("@tanstack/start-client-core").Requ
47085
47041
  referencedColumns: ["id"];
47086
47042
  }];
47087
47043
  };
47044
+ floriday_vbn_required_characteristics: {
47045
+ Row: {
47046
+ required_codes: string[];
47047
+ updated_at: string;
47048
+ updated_by: string | null;
47049
+ vbn_code: string;
47050
+ };
47051
+ Insert: {
47052
+ required_codes?: string[];
47053
+ updated_at?: string;
47054
+ updated_by?: string | null;
47055
+ vbn_code: string;
47056
+ };
47057
+ Update: {
47058
+ required_codes?: string[];
47059
+ updated_at?: string;
47060
+ updated_by?: string | null;
47061
+ vbn_code?: string;
47062
+ };
47063
+ Relationships: [];
47064
+ };
47088
47065
  floriday_warehouses_cache: {
47089
47066
  Row: {
47090
47067
  connection_id: string;
@@ -52058,9 +52035,7 @@ export declare const aiSuggestConfig: import("@tanstack/start-client-core").Requ
52058
52035
  };
52059
52036
  twinfield_connections: {
52060
52037
  Row: {
52061
- access_token: string | null;
52062
- client_id: string;
52063
- client_secret: string | null;
52038
+ account_key: string | null;
52064
52039
  cluster_uri: string | null;
52065
52040
  company_code: string | null;
52066
52041
  company_name: string | null;
@@ -52072,15 +52047,11 @@ export declare const aiSuggestConfig: import("@tanstack/start-client-core").Requ
52072
52047
  label: string | null;
52073
52048
  office_code: string | null;
52074
52049
  redirect_uri: string;
52075
- refresh_token: string | null;
52076
- token_expires_at: string | null;
52077
52050
  updated_at: string;
52078
52051
  user_id: string;
52079
52052
  };
52080
52053
  Insert: {
52081
- access_token?: string | null;
52082
- client_id: string;
52083
- client_secret?: string | null;
52054
+ account_key?: string | null;
52084
52055
  cluster_uri?: string | null;
52085
52056
  company_code?: string | null;
52086
52057
  company_name?: string | null;
@@ -52092,15 +52063,11 @@ export declare const aiSuggestConfig: import("@tanstack/start-client-core").Requ
52092
52063
  label?: string | null;
52093
52064
  office_code?: string | null;
52094
52065
  redirect_uri: string;
52095
- refresh_token?: string | null;
52096
- token_expires_at?: string | null;
52097
52066
  updated_at?: string;
52098
52067
  user_id: string;
52099
52068
  };
52100
52069
  Update: {
52101
- access_token?: string | null;
52102
- client_id?: string;
52103
- client_secret?: string | null;
52070
+ account_key?: string | null;
52104
52071
  cluster_uri?: string | null;
52105
52072
  company_code?: string | null;
52106
52073
  company_name?: string | null;
@@ -52112,53 +52079,6 @@ export declare const aiSuggestConfig: import("@tanstack/start-client-core").Requ
52112
52079
  label?: string | null;
52113
52080
  office_code?: string | null;
52114
52081
  redirect_uri?: string;
52115
- refresh_token?: string | null;
52116
- token_expires_at?: string | null;
52117
- updated_at?: string;
52118
- user_id?: string;
52119
- };
52120
- Relationships: [];
52121
- };
52122
- twinfield_credentials: {
52123
- Row: {
52124
- administration_code: string | null;
52125
- client_id: string | null;
52126
- client_secret: string | null;
52127
- cluster: string | null;
52128
- connected_at: string | null;
52129
- created_at: string;
52130
- environment: string | null;
52131
- id: string;
52132
- redirect_uri: string | null;
52133
- refresh_token: string | null;
52134
- updated_at: string;
52135
- user_id: string;
52136
- };
52137
- Insert: {
52138
- administration_code?: string | null;
52139
- client_id?: string | null;
52140
- client_secret?: string | null;
52141
- cluster?: string | null;
52142
- connected_at?: string | null;
52143
- created_at?: string;
52144
- environment?: string | null;
52145
- id?: string;
52146
- redirect_uri?: string | null;
52147
- refresh_token?: string | null;
52148
- updated_at?: string;
52149
- user_id: string;
52150
- };
52151
- Update: {
52152
- administration_code?: string | null;
52153
- client_id?: string | null;
52154
- client_secret?: string | null;
52155
- cluster?: string | null;
52156
- connected_at?: string | null;
52157
- created_at?: string;
52158
- environment?: string | null;
52159
- id?: string;
52160
- redirect_uri?: string | null;
52161
- refresh_token?: string | null;
52162
52082
  updated_at?: string;
52163
52083
  user_id?: string;
52164
52084
  };
@@ -52659,30 +52579,6 @@ export declare const aiSuggestConfig: import("@tanstack/start-client-core").Requ
52659
52579
  referencedColumns: ["id"];
52660
52580
  }];
52661
52581
  };
52662
- twinfield_oauth_state: {
52663
- Row: {
52664
- created_at: string;
52665
- environment: string;
52666
- nonce: string | null;
52667
- state: string;
52668
- user_id: string;
52669
- };
52670
- Insert: {
52671
- created_at?: string;
52672
- environment: string;
52673
- nonce?: string | null;
52674
- state: string;
52675
- user_id: string;
52676
- };
52677
- Update: {
52678
- created_at?: string;
52679
- environment?: string;
52680
- nonce?: string | null;
52681
- state?: string;
52682
- user_id?: string;
52683
- };
52684
- Relationships: [];
52685
- };
52686
52582
  twinfield_push_queue: {
52687
52583
  Row: {
52688
52584
  action: string;
@@ -52848,39 +52744,6 @@ export declare const aiSuggestConfig: import("@tanstack/start-client-core").Requ
52848
52744
  referencedColumns: ["id"];
52849
52745
  }];
52850
52746
  };
52851
- twinfield_token_refresh_log: {
52852
- Row: {
52853
- attempted_at: string;
52854
- connection_id: string;
52855
- error: string | null;
52856
- expires_at: string | null;
52857
- id: string;
52858
- ok: boolean;
52859
- };
52860
- Insert: {
52861
- attempted_at?: string;
52862
- connection_id: string;
52863
- error?: string | null;
52864
- expires_at?: string | null;
52865
- id?: string;
52866
- ok: boolean;
52867
- };
52868
- Update: {
52869
- attempted_at?: string;
52870
- connection_id?: string;
52871
- error?: string | null;
52872
- expires_at?: string | null;
52873
- id?: string;
52874
- ok?: boolean;
52875
- };
52876
- Relationships: [{
52877
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
52878
- columns: ["connection_id"];
52879
- isOneToOne: false;
52880
- referencedRelation: "twinfield_connections";
52881
- referencedColumns: ["id"];
52882
- }];
52883
- };
52884
52747
  user_roles: {
52885
52748
  Row: {
52886
52749
  created_at: string;
@@ -55321,15 +55184,16 @@ export declare const aiSuggestConfig: import("@tanstack/start-client-core").Requ
55321
55184
  };
55322
55185
  Returns: undefined;
55323
55186
  };
55324
- twinfield_decrypt: {
55187
+ twinfield_upsert_connection_by_account_key: {
55325
55188
  Args: {
55326
- cipher: string;
55327
- };
55328
- Returns: string;
55329
- };
55330
- twinfield_encrypt: {
55331
- Args: {
55332
- plain: string;
55189
+ p_account_key: string;
55190
+ p_cluster_uri?: string;
55191
+ p_company_code?: string;
55192
+ p_company_name?: string;
55193
+ p_environment: string;
55194
+ p_office_code?: string;
55195
+ p_status?: string;
55196
+ p_user_id: string;
55333
55197
  };
55334
55198
  Returns: string;
55335
55199
  };