@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
@@ -4590,6 +4590,27 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
4590
4590
  referencedColumns: ["id"];
4591
4591
  }];
4592
4592
  };
4593
+ floriday_continuous_stock_cache: {
4594
+ Row: {
4595
+ connection_id: string;
4596
+ fetched_at: string;
4597
+ number_of_pieces: number;
4598
+ trade_item_id: string;
4599
+ };
4600
+ Insert: {
4601
+ connection_id: string;
4602
+ fetched_at?: string;
4603
+ number_of_pieces?: number;
4604
+ trade_item_id: string;
4605
+ };
4606
+ Update: {
4607
+ connection_id?: string;
4608
+ fetched_at?: string;
4609
+ number_of_pieces?: number;
4610
+ trade_item_id?: string;
4611
+ };
4612
+ Relationships: [];
4613
+ };
4593
4614
  floriday_continuous_stock_queue: {
4594
4615
  Row: {
4595
4616
  attempts: number;
@@ -5568,6 +5589,45 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
5568
5589
  referencedColumns: ["id"];
5569
5590
  }];
5570
5591
  };
5592
+ floriday_trade_settings_customers_cache: {
5593
+ Row: {
5594
+ connection_id: string;
5595
+ data: import("../integrations/supabase/types").Json;
5596
+ fetched_at: string;
5597
+ floriday_id: string;
5598
+ id: string;
5599
+ is_deleted: boolean;
5600
+ sequence_number: number;
5601
+ updated_at: string;
5602
+ };
5603
+ Insert: {
5604
+ connection_id: string;
5605
+ data: import("../integrations/supabase/types").Json;
5606
+ fetched_at?: string;
5607
+ floriday_id: string;
5608
+ id?: string;
5609
+ is_deleted?: boolean;
5610
+ sequence_number?: number;
5611
+ updated_at?: string;
5612
+ };
5613
+ Update: {
5614
+ connection_id?: string;
5615
+ data?: import("../integrations/supabase/types").Json;
5616
+ fetched_at?: string;
5617
+ floriday_id?: string;
5618
+ id?: string;
5619
+ is_deleted?: boolean;
5620
+ sequence_number?: number;
5621
+ updated_at?: string;
5622
+ };
5623
+ Relationships: [{
5624
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5625
+ columns: ["connection_id"];
5626
+ isOneToOne: false;
5627
+ referencedRelation: "floriday_connections";
5628
+ referencedColumns: ["id"];
5629
+ }];
5630
+ };
5571
5631
  floriday_trips_cache: {
5572
5632
  Row: {
5573
5633
  carrier_organization_id: string | null;
@@ -5616,6 +5676,27 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
5616
5676
  referencedColumns: ["id"];
5617
5677
  }];
5618
5678
  };
5679
+ floriday_vbn_required_characteristics: {
5680
+ Row: {
5681
+ required_codes: string[];
5682
+ updated_at: string;
5683
+ updated_by: string | null;
5684
+ vbn_code: string;
5685
+ };
5686
+ Insert: {
5687
+ required_codes?: string[];
5688
+ updated_at?: string;
5689
+ updated_by?: string | null;
5690
+ vbn_code: string;
5691
+ };
5692
+ Update: {
5693
+ required_codes?: string[];
5694
+ updated_at?: string;
5695
+ updated_by?: string | null;
5696
+ vbn_code?: string;
5697
+ };
5698
+ Relationships: [];
5699
+ };
5619
5700
  floriday_warehouses_cache: {
5620
5701
  Row: {
5621
5702
  connection_id: string;
@@ -10589,9 +10670,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
10589
10670
  };
10590
10671
  twinfield_connections: {
10591
10672
  Row: {
10592
- access_token: string | null;
10593
- client_id: string;
10594
- client_secret: string | null;
10673
+ account_key: string | null;
10595
10674
  cluster_uri: string | null;
10596
10675
  company_code: string | null;
10597
10676
  company_name: string | null;
@@ -10603,15 +10682,11 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
10603
10682
  label: string | null;
10604
10683
  office_code: string | null;
10605
10684
  redirect_uri: string;
10606
- refresh_token: string | null;
10607
- token_expires_at: string | null;
10608
10685
  updated_at: string;
10609
10686
  user_id: string;
10610
10687
  };
10611
10688
  Insert: {
10612
- access_token?: string | null;
10613
- client_id: string;
10614
- client_secret?: string | null;
10689
+ account_key?: string | null;
10615
10690
  cluster_uri?: string | null;
10616
10691
  company_code?: string | null;
10617
10692
  company_name?: string | null;
@@ -10623,15 +10698,11 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
10623
10698
  label?: string | null;
10624
10699
  office_code?: string | null;
10625
10700
  redirect_uri: string;
10626
- refresh_token?: string | null;
10627
- token_expires_at?: string | null;
10628
10701
  updated_at?: string;
10629
10702
  user_id: string;
10630
10703
  };
10631
10704
  Update: {
10632
- access_token?: string | null;
10633
- client_id?: string;
10634
- client_secret?: string | null;
10705
+ account_key?: string | null;
10635
10706
  cluster_uri?: string | null;
10636
10707
  company_code?: string | null;
10637
10708
  company_name?: string | null;
@@ -10643,53 +10714,6 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
10643
10714
  label?: string | null;
10644
10715
  office_code?: string | null;
10645
10716
  redirect_uri?: string;
10646
- refresh_token?: string | null;
10647
- token_expires_at?: string | null;
10648
- updated_at?: string;
10649
- user_id?: string;
10650
- };
10651
- Relationships: [];
10652
- };
10653
- twinfield_credentials: {
10654
- Row: {
10655
- administration_code: string | null;
10656
- client_id: string | null;
10657
- client_secret: string | null;
10658
- cluster: string | null;
10659
- connected_at: string | null;
10660
- created_at: string;
10661
- environment: string | null;
10662
- id: string;
10663
- redirect_uri: string | null;
10664
- refresh_token: string | null;
10665
- updated_at: string;
10666
- user_id: string;
10667
- };
10668
- Insert: {
10669
- administration_code?: string | null;
10670
- client_id?: string | null;
10671
- client_secret?: string | null;
10672
- cluster?: string | null;
10673
- connected_at?: string | null;
10674
- created_at?: string;
10675
- environment?: string | null;
10676
- id?: string;
10677
- redirect_uri?: string | null;
10678
- refresh_token?: string | null;
10679
- updated_at?: string;
10680
- user_id: string;
10681
- };
10682
- Update: {
10683
- administration_code?: string | null;
10684
- client_id?: string | null;
10685
- client_secret?: string | null;
10686
- cluster?: string | null;
10687
- connected_at?: string | null;
10688
- created_at?: string;
10689
- environment?: string | null;
10690
- id?: string;
10691
- redirect_uri?: string | null;
10692
- refresh_token?: string | null;
10693
10717
  updated_at?: string;
10694
10718
  user_id?: string;
10695
10719
  };
@@ -11190,30 +11214,6 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
11190
11214
  referencedColumns: ["id"];
11191
11215
  }];
11192
11216
  };
11193
- twinfield_oauth_state: {
11194
- Row: {
11195
- created_at: string;
11196
- environment: string;
11197
- nonce: string | null;
11198
- state: string;
11199
- user_id: string;
11200
- };
11201
- Insert: {
11202
- created_at?: string;
11203
- environment: string;
11204
- nonce?: string | null;
11205
- state: string;
11206
- user_id: string;
11207
- };
11208
- Update: {
11209
- created_at?: string;
11210
- environment?: string;
11211
- nonce?: string | null;
11212
- state?: string;
11213
- user_id?: string;
11214
- };
11215
- Relationships: [];
11216
- };
11217
11217
  twinfield_push_queue: {
11218
11218
  Row: {
11219
11219
  action: string;
@@ -11379,39 +11379,6 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
11379
11379
  referencedColumns: ["id"];
11380
11380
  }];
11381
11381
  };
11382
- twinfield_token_refresh_log: {
11383
- Row: {
11384
- attempted_at: string;
11385
- connection_id: string;
11386
- error: string | null;
11387
- expires_at: string | null;
11388
- id: string;
11389
- ok: boolean;
11390
- };
11391
- Insert: {
11392
- attempted_at?: string;
11393
- connection_id: string;
11394
- error?: string | null;
11395
- expires_at?: string | null;
11396
- id?: string;
11397
- ok: boolean;
11398
- };
11399
- Update: {
11400
- attempted_at?: string;
11401
- connection_id?: string;
11402
- error?: string | null;
11403
- expires_at?: string | null;
11404
- id?: string;
11405
- ok?: boolean;
11406
- };
11407
- Relationships: [{
11408
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11409
- columns: ["connection_id"];
11410
- isOneToOne: false;
11411
- referencedRelation: "twinfield_connections";
11412
- referencedColumns: ["id"];
11413
- }];
11414
- };
11415
11382
  user_roles: {
11416
11383
  Row: {
11417
11384
  created_at: string;
@@ -13852,15 +13819,16 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
13852
13819
  };
13853
13820
  Returns: undefined;
13854
13821
  };
13855
- twinfield_decrypt: {
13822
+ twinfield_upsert_connection_by_account_key: {
13856
13823
  Args: {
13857
- cipher: string;
13858
- };
13859
- Returns: string;
13860
- };
13861
- twinfield_encrypt: {
13862
- Args: {
13863
- plain: string;
13824
+ p_account_key: string;
13825
+ p_cluster_uri?: string;
13826
+ p_company_code?: string;
13827
+ p_company_name?: string;
13828
+ p_environment: string;
13829
+ p_office_code?: string;
13830
+ p_status?: string;
13831
+ p_user_id: string;
13864
13832
  };
13865
13833
  Returns: string;
13866
13834
  };
@@ -18430,6 +18398,27 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
18430
18398
  referencedColumns: ["id"];
18431
18399
  }];
18432
18400
  };
18401
+ floriday_continuous_stock_cache: {
18402
+ Row: {
18403
+ connection_id: string;
18404
+ fetched_at: string;
18405
+ number_of_pieces: number;
18406
+ trade_item_id: string;
18407
+ };
18408
+ Insert: {
18409
+ connection_id: string;
18410
+ fetched_at?: string;
18411
+ number_of_pieces?: number;
18412
+ trade_item_id: string;
18413
+ };
18414
+ Update: {
18415
+ connection_id?: string;
18416
+ fetched_at?: string;
18417
+ number_of_pieces?: number;
18418
+ trade_item_id?: string;
18419
+ };
18420
+ Relationships: [];
18421
+ };
18433
18422
  floriday_continuous_stock_queue: {
18434
18423
  Row: {
18435
18424
  attempts: number;
@@ -19408,6 +19397,45 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
19408
19397
  referencedColumns: ["id"];
19409
19398
  }];
19410
19399
  };
19400
+ floriday_trade_settings_customers_cache: {
19401
+ Row: {
19402
+ connection_id: string;
19403
+ data: import("../integrations/supabase/types").Json;
19404
+ fetched_at: string;
19405
+ floriday_id: string;
19406
+ id: string;
19407
+ is_deleted: boolean;
19408
+ sequence_number: number;
19409
+ updated_at: string;
19410
+ };
19411
+ Insert: {
19412
+ connection_id: string;
19413
+ data: import("../integrations/supabase/types").Json;
19414
+ fetched_at?: string;
19415
+ floriday_id: string;
19416
+ id?: string;
19417
+ is_deleted?: boolean;
19418
+ sequence_number?: number;
19419
+ updated_at?: string;
19420
+ };
19421
+ Update: {
19422
+ connection_id?: string;
19423
+ data?: import("../integrations/supabase/types").Json;
19424
+ fetched_at?: string;
19425
+ floriday_id?: string;
19426
+ id?: string;
19427
+ is_deleted?: boolean;
19428
+ sequence_number?: number;
19429
+ updated_at?: string;
19430
+ };
19431
+ Relationships: [{
19432
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19433
+ columns: ["connection_id"];
19434
+ isOneToOne: false;
19435
+ referencedRelation: "floriday_connections";
19436
+ referencedColumns: ["id"];
19437
+ }];
19438
+ };
19411
19439
  floriday_trips_cache: {
19412
19440
  Row: {
19413
19441
  carrier_organization_id: string | null;
@@ -19456,6 +19484,27 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
19456
19484
  referencedColumns: ["id"];
19457
19485
  }];
19458
19486
  };
19487
+ floriday_vbn_required_characteristics: {
19488
+ Row: {
19489
+ required_codes: string[];
19490
+ updated_at: string;
19491
+ updated_by: string | null;
19492
+ vbn_code: string;
19493
+ };
19494
+ Insert: {
19495
+ required_codes?: string[];
19496
+ updated_at?: string;
19497
+ updated_by?: string | null;
19498
+ vbn_code: string;
19499
+ };
19500
+ Update: {
19501
+ required_codes?: string[];
19502
+ updated_at?: string;
19503
+ updated_by?: string | null;
19504
+ vbn_code?: string;
19505
+ };
19506
+ Relationships: [];
19507
+ };
19459
19508
  floriday_warehouses_cache: {
19460
19509
  Row: {
19461
19510
  connection_id: string;
@@ -24429,9 +24478,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
24429
24478
  };
24430
24479
  twinfield_connections: {
24431
24480
  Row: {
24432
- access_token: string | null;
24433
- client_id: string;
24434
- client_secret: string | null;
24481
+ account_key: string | null;
24435
24482
  cluster_uri: string | null;
24436
24483
  company_code: string | null;
24437
24484
  company_name: string | null;
@@ -24443,15 +24490,11 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
24443
24490
  label: string | null;
24444
24491
  office_code: string | null;
24445
24492
  redirect_uri: string;
24446
- refresh_token: string | null;
24447
- token_expires_at: string | null;
24448
24493
  updated_at: string;
24449
24494
  user_id: string;
24450
24495
  };
24451
24496
  Insert: {
24452
- access_token?: string | null;
24453
- client_id: string;
24454
- client_secret?: string | null;
24497
+ account_key?: string | null;
24455
24498
  cluster_uri?: string | null;
24456
24499
  company_code?: string | null;
24457
24500
  company_name?: string | null;
@@ -24463,15 +24506,11 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
24463
24506
  label?: string | null;
24464
24507
  office_code?: string | null;
24465
24508
  redirect_uri: string;
24466
- refresh_token?: string | null;
24467
- token_expires_at?: string | null;
24468
24509
  updated_at?: string;
24469
24510
  user_id: string;
24470
24511
  };
24471
24512
  Update: {
24472
- access_token?: string | null;
24473
- client_id?: string;
24474
- client_secret?: string | null;
24513
+ account_key?: string | null;
24475
24514
  cluster_uri?: string | null;
24476
24515
  company_code?: string | null;
24477
24516
  company_name?: string | null;
@@ -24483,53 +24522,6 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
24483
24522
  label?: string | null;
24484
24523
  office_code?: string | null;
24485
24524
  redirect_uri?: string;
24486
- refresh_token?: string | null;
24487
- token_expires_at?: string | null;
24488
- updated_at?: string;
24489
- user_id?: string;
24490
- };
24491
- Relationships: [];
24492
- };
24493
- twinfield_credentials: {
24494
- Row: {
24495
- administration_code: string | null;
24496
- client_id: string | null;
24497
- client_secret: string | null;
24498
- cluster: string | null;
24499
- connected_at: string | null;
24500
- created_at: string;
24501
- environment: string | null;
24502
- id: string;
24503
- redirect_uri: string | null;
24504
- refresh_token: string | null;
24505
- updated_at: string;
24506
- user_id: string;
24507
- };
24508
- Insert: {
24509
- administration_code?: string | null;
24510
- client_id?: string | null;
24511
- client_secret?: string | null;
24512
- cluster?: string | null;
24513
- connected_at?: string | null;
24514
- created_at?: string;
24515
- environment?: string | null;
24516
- id?: string;
24517
- redirect_uri?: string | null;
24518
- refresh_token?: string | null;
24519
- updated_at?: string;
24520
- user_id: string;
24521
- };
24522
- Update: {
24523
- administration_code?: string | null;
24524
- client_id?: string | null;
24525
- client_secret?: string | null;
24526
- cluster?: string | null;
24527
- connected_at?: string | null;
24528
- created_at?: string;
24529
- environment?: string | null;
24530
- id?: string;
24531
- redirect_uri?: string | null;
24532
- refresh_token?: string | null;
24533
24525
  updated_at?: string;
24534
24526
  user_id?: string;
24535
24527
  };
@@ -25030,30 +25022,6 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
25030
25022
  referencedColumns: ["id"];
25031
25023
  }];
25032
25024
  };
25033
- twinfield_oauth_state: {
25034
- Row: {
25035
- created_at: string;
25036
- environment: string;
25037
- nonce: string | null;
25038
- state: string;
25039
- user_id: string;
25040
- };
25041
- Insert: {
25042
- created_at?: string;
25043
- environment: string;
25044
- nonce?: string | null;
25045
- state: string;
25046
- user_id: string;
25047
- };
25048
- Update: {
25049
- created_at?: string;
25050
- environment?: string;
25051
- nonce?: string | null;
25052
- state?: string;
25053
- user_id?: string;
25054
- };
25055
- Relationships: [];
25056
- };
25057
25025
  twinfield_push_queue: {
25058
25026
  Row: {
25059
25027
  action: string;
@@ -25219,39 +25187,6 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
25219
25187
  referencedColumns: ["id"];
25220
25188
  }];
25221
25189
  };
25222
- twinfield_token_refresh_log: {
25223
- Row: {
25224
- attempted_at: string;
25225
- connection_id: string;
25226
- error: string | null;
25227
- expires_at: string | null;
25228
- id: string;
25229
- ok: boolean;
25230
- };
25231
- Insert: {
25232
- attempted_at?: string;
25233
- connection_id: string;
25234
- error?: string | null;
25235
- expires_at?: string | null;
25236
- id?: string;
25237
- ok: boolean;
25238
- };
25239
- Update: {
25240
- attempted_at?: string;
25241
- connection_id?: string;
25242
- error?: string | null;
25243
- expires_at?: string | null;
25244
- id?: string;
25245
- ok?: boolean;
25246
- };
25247
- Relationships: [{
25248
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25249
- columns: ["connection_id"];
25250
- isOneToOne: false;
25251
- referencedRelation: "twinfield_connections";
25252
- referencedColumns: ["id"];
25253
- }];
25254
- };
25255
25190
  user_roles: {
25256
25191
  Row: {
25257
25192
  created_at: string;
@@ -27692,15 +27627,16 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
27692
27627
  };
27693
27628
  Returns: undefined;
27694
27629
  };
27695
- twinfield_decrypt: {
27696
- Args: {
27697
- cipher: string;
27698
- };
27699
- Returns: string;
27700
- };
27701
- twinfield_encrypt: {
27630
+ twinfield_upsert_connection_by_account_key: {
27702
27631
  Args: {
27703
- plain: string;
27632
+ p_account_key: string;
27633
+ p_cluster_uri?: string;
27634
+ p_company_code?: string;
27635
+ p_company_name?: string;
27636
+ p_environment: string;
27637
+ p_office_code?: string;
27638
+ p_status?: string;
27639
+ p_user_id: string;
27704
27640
  };
27705
27641
  Returns: string;
27706
27642
  };
@@ -32269,6 +32205,27 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
32269
32205
  referencedColumns: ["id"];
32270
32206
  }];
32271
32207
  };
32208
+ floriday_continuous_stock_cache: {
32209
+ Row: {
32210
+ connection_id: string;
32211
+ fetched_at: string;
32212
+ number_of_pieces: number;
32213
+ trade_item_id: string;
32214
+ };
32215
+ Insert: {
32216
+ connection_id: string;
32217
+ fetched_at?: string;
32218
+ number_of_pieces?: number;
32219
+ trade_item_id: string;
32220
+ };
32221
+ Update: {
32222
+ connection_id?: string;
32223
+ fetched_at?: string;
32224
+ number_of_pieces?: number;
32225
+ trade_item_id?: string;
32226
+ };
32227
+ Relationships: [];
32228
+ };
32272
32229
  floriday_continuous_stock_queue: {
32273
32230
  Row: {
32274
32231
  attempts: number;
@@ -33247,6 +33204,45 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
33247
33204
  referencedColumns: ["id"];
33248
33205
  }];
33249
33206
  };
33207
+ floriday_trade_settings_customers_cache: {
33208
+ Row: {
33209
+ connection_id: string;
33210
+ data: import("../integrations/supabase/types").Json;
33211
+ fetched_at: string;
33212
+ floriday_id: string;
33213
+ id: string;
33214
+ is_deleted: boolean;
33215
+ sequence_number: number;
33216
+ updated_at: string;
33217
+ };
33218
+ Insert: {
33219
+ connection_id: string;
33220
+ data: import("../integrations/supabase/types").Json;
33221
+ fetched_at?: string;
33222
+ floriday_id: string;
33223
+ id?: string;
33224
+ is_deleted?: boolean;
33225
+ sequence_number?: number;
33226
+ updated_at?: string;
33227
+ };
33228
+ Update: {
33229
+ connection_id?: string;
33230
+ data?: import("../integrations/supabase/types").Json;
33231
+ fetched_at?: string;
33232
+ floriday_id?: string;
33233
+ id?: string;
33234
+ is_deleted?: boolean;
33235
+ sequence_number?: number;
33236
+ updated_at?: string;
33237
+ };
33238
+ Relationships: [{
33239
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33240
+ columns: ["connection_id"];
33241
+ isOneToOne: false;
33242
+ referencedRelation: "floriday_connections";
33243
+ referencedColumns: ["id"];
33244
+ }];
33245
+ };
33250
33246
  floriday_trips_cache: {
33251
33247
  Row: {
33252
33248
  carrier_organization_id: string | null;
@@ -33295,6 +33291,27 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
33295
33291
  referencedColumns: ["id"];
33296
33292
  }];
33297
33293
  };
33294
+ floriday_vbn_required_characteristics: {
33295
+ Row: {
33296
+ required_codes: string[];
33297
+ updated_at: string;
33298
+ updated_by: string | null;
33299
+ vbn_code: string;
33300
+ };
33301
+ Insert: {
33302
+ required_codes?: string[];
33303
+ updated_at?: string;
33304
+ updated_by?: string | null;
33305
+ vbn_code: string;
33306
+ };
33307
+ Update: {
33308
+ required_codes?: string[];
33309
+ updated_at?: string;
33310
+ updated_by?: string | null;
33311
+ vbn_code?: string;
33312
+ };
33313
+ Relationships: [];
33314
+ };
33298
33315
  floriday_warehouses_cache: {
33299
33316
  Row: {
33300
33317
  connection_id: string;
@@ -38268,9 +38285,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
38268
38285
  };
38269
38286
  twinfield_connections: {
38270
38287
  Row: {
38271
- access_token: string | null;
38272
- client_id: string;
38273
- client_secret: string | null;
38288
+ account_key: string | null;
38274
38289
  cluster_uri: string | null;
38275
38290
  company_code: string | null;
38276
38291
  company_name: string | null;
@@ -38282,15 +38297,11 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
38282
38297
  label: string | null;
38283
38298
  office_code: string | null;
38284
38299
  redirect_uri: string;
38285
- refresh_token: string | null;
38286
- token_expires_at: string | null;
38287
38300
  updated_at: string;
38288
38301
  user_id: string;
38289
38302
  };
38290
38303
  Insert: {
38291
- access_token?: string | null;
38292
- client_id: string;
38293
- client_secret?: string | null;
38304
+ account_key?: string | null;
38294
38305
  cluster_uri?: string | null;
38295
38306
  company_code?: string | null;
38296
38307
  company_name?: string | null;
@@ -38302,15 +38313,11 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
38302
38313
  label?: string | null;
38303
38314
  office_code?: string | null;
38304
38315
  redirect_uri: string;
38305
- refresh_token?: string | null;
38306
- token_expires_at?: string | null;
38307
38316
  updated_at?: string;
38308
38317
  user_id: string;
38309
38318
  };
38310
38319
  Update: {
38311
- access_token?: string | null;
38312
- client_id?: string;
38313
- client_secret?: string | null;
38320
+ account_key?: string | null;
38314
38321
  cluster_uri?: string | null;
38315
38322
  company_code?: string | null;
38316
38323
  company_name?: string | null;
@@ -38322,53 +38329,6 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
38322
38329
  label?: string | null;
38323
38330
  office_code?: string | null;
38324
38331
  redirect_uri?: string;
38325
- refresh_token?: string | null;
38326
- token_expires_at?: string | null;
38327
- updated_at?: string;
38328
- user_id?: string;
38329
- };
38330
- Relationships: [];
38331
- };
38332
- twinfield_credentials: {
38333
- Row: {
38334
- administration_code: string | null;
38335
- client_id: string | null;
38336
- client_secret: string | null;
38337
- cluster: string | null;
38338
- connected_at: string | null;
38339
- created_at: string;
38340
- environment: string | null;
38341
- id: string;
38342
- redirect_uri: string | null;
38343
- refresh_token: string | null;
38344
- updated_at: string;
38345
- user_id: string;
38346
- };
38347
- Insert: {
38348
- administration_code?: string | null;
38349
- client_id?: string | null;
38350
- client_secret?: string | null;
38351
- cluster?: string | null;
38352
- connected_at?: string | null;
38353
- created_at?: string;
38354
- environment?: string | null;
38355
- id?: string;
38356
- redirect_uri?: string | null;
38357
- refresh_token?: string | null;
38358
- updated_at?: string;
38359
- user_id: string;
38360
- };
38361
- Update: {
38362
- administration_code?: string | null;
38363
- client_id?: string | null;
38364
- client_secret?: string | null;
38365
- cluster?: string | null;
38366
- connected_at?: string | null;
38367
- created_at?: string;
38368
- environment?: string | null;
38369
- id?: string;
38370
- redirect_uri?: string | null;
38371
- refresh_token?: string | null;
38372
38332
  updated_at?: string;
38373
38333
  user_id?: string;
38374
38334
  };
@@ -38869,30 +38829,6 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
38869
38829
  referencedColumns: ["id"];
38870
38830
  }];
38871
38831
  };
38872
- twinfield_oauth_state: {
38873
- Row: {
38874
- created_at: string;
38875
- environment: string;
38876
- nonce: string | null;
38877
- state: string;
38878
- user_id: string;
38879
- };
38880
- Insert: {
38881
- created_at?: string;
38882
- environment: string;
38883
- nonce?: string | null;
38884
- state: string;
38885
- user_id: string;
38886
- };
38887
- Update: {
38888
- created_at?: string;
38889
- environment?: string;
38890
- nonce?: string | null;
38891
- state?: string;
38892
- user_id?: string;
38893
- };
38894
- Relationships: [];
38895
- };
38896
38832
  twinfield_push_queue: {
38897
38833
  Row: {
38898
38834
  action: string;
@@ -39058,39 +38994,6 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
39058
38994
  referencedColumns: ["id"];
39059
38995
  }];
39060
38996
  };
39061
- twinfield_token_refresh_log: {
39062
- Row: {
39063
- attempted_at: string;
39064
- connection_id: string;
39065
- error: string | null;
39066
- expires_at: string | null;
39067
- id: string;
39068
- ok: boolean;
39069
- };
39070
- Insert: {
39071
- attempted_at?: string;
39072
- connection_id: string;
39073
- error?: string | null;
39074
- expires_at?: string | null;
39075
- id?: string;
39076
- ok: boolean;
39077
- };
39078
- Update: {
39079
- attempted_at?: string;
39080
- connection_id?: string;
39081
- error?: string | null;
39082
- expires_at?: string | null;
39083
- id?: string;
39084
- ok?: boolean;
39085
- };
39086
- Relationships: [{
39087
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39088
- columns: ["connection_id"];
39089
- isOneToOne: false;
39090
- referencedRelation: "twinfield_connections";
39091
- referencedColumns: ["id"];
39092
- }];
39093
- };
39094
38997
  user_roles: {
39095
38998
  Row: {
39096
38999
  created_at: string;
@@ -41531,15 +41434,16 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
41531
41434
  };
41532
41435
  Returns: undefined;
41533
41436
  };
41534
- twinfield_decrypt: {
41437
+ twinfield_upsert_connection_by_account_key: {
41535
41438
  Args: {
41536
- cipher: string;
41537
- };
41538
- Returns: string;
41539
- };
41540
- twinfield_encrypt: {
41541
- Args: {
41542
- plain: string;
41439
+ p_account_key: string;
41440
+ p_cluster_uri?: string;
41441
+ p_company_code?: string;
41442
+ p_company_name?: string;
41443
+ p_environment: string;
41444
+ p_office_code?: string;
41445
+ p_status?: string;
41446
+ p_user_id: string;
41543
41447
  };
41544
41448
  Returns: string;
41545
41449
  };
@@ -46111,6 +46015,27 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
46111
46015
  referencedColumns: ["id"];
46112
46016
  }];
46113
46017
  };
46018
+ floriday_continuous_stock_cache: {
46019
+ Row: {
46020
+ connection_id: string;
46021
+ fetched_at: string;
46022
+ number_of_pieces: number;
46023
+ trade_item_id: string;
46024
+ };
46025
+ Insert: {
46026
+ connection_id: string;
46027
+ fetched_at?: string;
46028
+ number_of_pieces?: number;
46029
+ trade_item_id: string;
46030
+ };
46031
+ Update: {
46032
+ connection_id?: string;
46033
+ fetched_at?: string;
46034
+ number_of_pieces?: number;
46035
+ trade_item_id?: string;
46036
+ };
46037
+ Relationships: [];
46038
+ };
46114
46039
  floriday_continuous_stock_queue: {
46115
46040
  Row: {
46116
46041
  attempts: number;
@@ -47089,6 +47014,45 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
47089
47014
  referencedColumns: ["id"];
47090
47015
  }];
47091
47016
  };
47017
+ floriday_trade_settings_customers_cache: {
47018
+ Row: {
47019
+ connection_id: string;
47020
+ data: import("../integrations/supabase/types").Json;
47021
+ fetched_at: string;
47022
+ floriday_id: string;
47023
+ id: string;
47024
+ is_deleted: boolean;
47025
+ sequence_number: number;
47026
+ updated_at: string;
47027
+ };
47028
+ Insert: {
47029
+ connection_id: string;
47030
+ data: import("../integrations/supabase/types").Json;
47031
+ fetched_at?: string;
47032
+ floriday_id: string;
47033
+ id?: string;
47034
+ is_deleted?: boolean;
47035
+ sequence_number?: number;
47036
+ updated_at?: string;
47037
+ };
47038
+ Update: {
47039
+ connection_id?: string;
47040
+ data?: import("../integrations/supabase/types").Json;
47041
+ fetched_at?: string;
47042
+ floriday_id?: string;
47043
+ id?: string;
47044
+ is_deleted?: boolean;
47045
+ sequence_number?: number;
47046
+ updated_at?: string;
47047
+ };
47048
+ Relationships: [{
47049
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
47050
+ columns: ["connection_id"];
47051
+ isOneToOne: false;
47052
+ referencedRelation: "floriday_connections";
47053
+ referencedColumns: ["id"];
47054
+ }];
47055
+ };
47092
47056
  floriday_trips_cache: {
47093
47057
  Row: {
47094
47058
  carrier_organization_id: string | null;
@@ -47137,6 +47101,27 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
47137
47101
  referencedColumns: ["id"];
47138
47102
  }];
47139
47103
  };
47104
+ floriday_vbn_required_characteristics: {
47105
+ Row: {
47106
+ required_codes: string[];
47107
+ updated_at: string;
47108
+ updated_by: string | null;
47109
+ vbn_code: string;
47110
+ };
47111
+ Insert: {
47112
+ required_codes?: string[];
47113
+ updated_at?: string;
47114
+ updated_by?: string | null;
47115
+ vbn_code: string;
47116
+ };
47117
+ Update: {
47118
+ required_codes?: string[];
47119
+ updated_at?: string;
47120
+ updated_by?: string | null;
47121
+ vbn_code?: string;
47122
+ };
47123
+ Relationships: [];
47124
+ };
47140
47125
  floriday_warehouses_cache: {
47141
47126
  Row: {
47142
47127
  connection_id: string;
@@ -52110,9 +52095,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
52110
52095
  };
52111
52096
  twinfield_connections: {
52112
52097
  Row: {
52113
- access_token: string | null;
52114
- client_id: string;
52115
- client_secret: string | null;
52098
+ account_key: string | null;
52116
52099
  cluster_uri: string | null;
52117
52100
  company_code: string | null;
52118
52101
  company_name: string | null;
@@ -52124,15 +52107,11 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
52124
52107
  label: string | null;
52125
52108
  office_code: string | null;
52126
52109
  redirect_uri: string;
52127
- refresh_token: string | null;
52128
- token_expires_at: string | null;
52129
52110
  updated_at: string;
52130
52111
  user_id: string;
52131
52112
  };
52132
52113
  Insert: {
52133
- access_token?: string | null;
52134
- client_id: string;
52135
- client_secret?: string | null;
52114
+ account_key?: string | null;
52136
52115
  cluster_uri?: string | null;
52137
52116
  company_code?: string | null;
52138
52117
  company_name?: string | null;
@@ -52144,15 +52123,11 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
52144
52123
  label?: string | null;
52145
52124
  office_code?: string | null;
52146
52125
  redirect_uri: string;
52147
- refresh_token?: string | null;
52148
- token_expires_at?: string | null;
52149
52126
  updated_at?: string;
52150
52127
  user_id: string;
52151
52128
  };
52152
52129
  Update: {
52153
- access_token?: string | null;
52154
- client_id?: string;
52155
- client_secret?: string | null;
52130
+ account_key?: string | null;
52156
52131
  cluster_uri?: string | null;
52157
52132
  company_code?: string | null;
52158
52133
  company_name?: string | null;
@@ -52164,53 +52139,6 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
52164
52139
  label?: string | null;
52165
52140
  office_code?: string | null;
52166
52141
  redirect_uri?: string;
52167
- refresh_token?: string | null;
52168
- token_expires_at?: string | null;
52169
- updated_at?: string;
52170
- user_id?: string;
52171
- };
52172
- Relationships: [];
52173
- };
52174
- twinfield_credentials: {
52175
- Row: {
52176
- administration_code: string | null;
52177
- client_id: string | null;
52178
- client_secret: string | null;
52179
- cluster: string | null;
52180
- connected_at: string | null;
52181
- created_at: string;
52182
- environment: string | null;
52183
- id: string;
52184
- redirect_uri: string | null;
52185
- refresh_token: string | null;
52186
- updated_at: string;
52187
- user_id: string;
52188
- };
52189
- Insert: {
52190
- administration_code?: string | null;
52191
- client_id?: string | null;
52192
- client_secret?: string | null;
52193
- cluster?: string | null;
52194
- connected_at?: string | null;
52195
- created_at?: string;
52196
- environment?: string | null;
52197
- id?: string;
52198
- redirect_uri?: string | null;
52199
- refresh_token?: string | null;
52200
- updated_at?: string;
52201
- user_id: string;
52202
- };
52203
- Update: {
52204
- administration_code?: string | null;
52205
- client_id?: string | null;
52206
- client_secret?: string | null;
52207
- cluster?: string | null;
52208
- connected_at?: string | null;
52209
- created_at?: string;
52210
- environment?: string | null;
52211
- id?: string;
52212
- redirect_uri?: string | null;
52213
- refresh_token?: string | null;
52214
52142
  updated_at?: string;
52215
52143
  user_id?: string;
52216
52144
  };
@@ -52711,30 +52639,6 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
52711
52639
  referencedColumns: ["id"];
52712
52640
  }];
52713
52641
  };
52714
- twinfield_oauth_state: {
52715
- Row: {
52716
- created_at: string;
52717
- environment: string;
52718
- nonce: string | null;
52719
- state: string;
52720
- user_id: string;
52721
- };
52722
- Insert: {
52723
- created_at?: string;
52724
- environment: string;
52725
- nonce?: string | null;
52726
- state: string;
52727
- user_id: string;
52728
- };
52729
- Update: {
52730
- created_at?: string;
52731
- environment?: string;
52732
- nonce?: string | null;
52733
- state?: string;
52734
- user_id?: string;
52735
- };
52736
- Relationships: [];
52737
- };
52738
52642
  twinfield_push_queue: {
52739
52643
  Row: {
52740
52644
  action: string;
@@ -52900,39 +52804,6 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
52900
52804
  referencedColumns: ["id"];
52901
52805
  }];
52902
52806
  };
52903
- twinfield_token_refresh_log: {
52904
- Row: {
52905
- attempted_at: string;
52906
- connection_id: string;
52907
- error: string | null;
52908
- expires_at: string | null;
52909
- id: string;
52910
- ok: boolean;
52911
- };
52912
- Insert: {
52913
- attempted_at?: string;
52914
- connection_id: string;
52915
- error?: string | null;
52916
- expires_at?: string | null;
52917
- id?: string;
52918
- ok: boolean;
52919
- };
52920
- Update: {
52921
- attempted_at?: string;
52922
- connection_id?: string;
52923
- error?: string | null;
52924
- expires_at?: string | null;
52925
- id?: string;
52926
- ok?: boolean;
52927
- };
52928
- Relationships: [{
52929
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
52930
- columns: ["connection_id"];
52931
- isOneToOne: false;
52932
- referencedRelation: "twinfield_connections";
52933
- referencedColumns: ["id"];
52934
- }];
52935
- };
52936
52807
  user_roles: {
52937
52808
  Row: {
52938
52809
  created_at: string;
@@ -55373,15 +55244,16 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
55373
55244
  };
55374
55245
  Returns: undefined;
55375
55246
  };
55376
- twinfield_decrypt: {
55247
+ twinfield_upsert_connection_by_account_key: {
55377
55248
  Args: {
55378
- cipher: string;
55379
- };
55380
- Returns: string;
55381
- };
55382
- twinfield_encrypt: {
55383
- Args: {
55384
- plain: string;
55249
+ p_account_key: string;
55250
+ p_cluster_uri?: string;
55251
+ p_company_code?: string;
55252
+ p_company_name?: string;
55253
+ p_environment: string;
55254
+ p_office_code?: string;
55255
+ p_status?: string;
55256
+ p_user_id: string;
55385
55257
  };
55386
55258
  Returns: string;
55387
55259
  };
@@ -59956,6 +59828,27 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
59956
59828
  referencedColumns: ["id"];
59957
59829
  }];
59958
59830
  };
59831
+ floriday_continuous_stock_cache: {
59832
+ Row: {
59833
+ connection_id: string;
59834
+ fetched_at: string;
59835
+ number_of_pieces: number;
59836
+ trade_item_id: string;
59837
+ };
59838
+ Insert: {
59839
+ connection_id: string;
59840
+ fetched_at?: string;
59841
+ number_of_pieces?: number;
59842
+ trade_item_id: string;
59843
+ };
59844
+ Update: {
59845
+ connection_id?: string;
59846
+ fetched_at?: string;
59847
+ number_of_pieces?: number;
59848
+ trade_item_id?: string;
59849
+ };
59850
+ Relationships: [];
59851
+ };
59959
59852
  floriday_continuous_stock_queue: {
59960
59853
  Row: {
59961
59854
  attempts: number;
@@ -60934,6 +60827,45 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
60934
60827
  referencedColumns: ["id"];
60935
60828
  }];
60936
60829
  };
60830
+ floriday_trade_settings_customers_cache: {
60831
+ Row: {
60832
+ connection_id: string;
60833
+ data: import("../integrations/supabase/types").Json;
60834
+ fetched_at: string;
60835
+ floriday_id: string;
60836
+ id: string;
60837
+ is_deleted: boolean;
60838
+ sequence_number: number;
60839
+ updated_at: string;
60840
+ };
60841
+ Insert: {
60842
+ connection_id: string;
60843
+ data: import("../integrations/supabase/types").Json;
60844
+ fetched_at?: string;
60845
+ floriday_id: string;
60846
+ id?: string;
60847
+ is_deleted?: boolean;
60848
+ sequence_number?: number;
60849
+ updated_at?: string;
60850
+ };
60851
+ Update: {
60852
+ connection_id?: string;
60853
+ data?: import("../integrations/supabase/types").Json;
60854
+ fetched_at?: string;
60855
+ floriday_id?: string;
60856
+ id?: string;
60857
+ is_deleted?: boolean;
60858
+ sequence_number?: number;
60859
+ updated_at?: string;
60860
+ };
60861
+ Relationships: [{
60862
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
60863
+ columns: ["connection_id"];
60864
+ isOneToOne: false;
60865
+ referencedRelation: "floriday_connections";
60866
+ referencedColumns: ["id"];
60867
+ }];
60868
+ };
60937
60869
  floriday_trips_cache: {
60938
60870
  Row: {
60939
60871
  carrier_organization_id: string | null;
@@ -60982,6 +60914,27 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
60982
60914
  referencedColumns: ["id"];
60983
60915
  }];
60984
60916
  };
60917
+ floriday_vbn_required_characteristics: {
60918
+ Row: {
60919
+ required_codes: string[];
60920
+ updated_at: string;
60921
+ updated_by: string | null;
60922
+ vbn_code: string;
60923
+ };
60924
+ Insert: {
60925
+ required_codes?: string[];
60926
+ updated_at?: string;
60927
+ updated_by?: string | null;
60928
+ vbn_code: string;
60929
+ };
60930
+ Update: {
60931
+ required_codes?: string[];
60932
+ updated_at?: string;
60933
+ updated_by?: string | null;
60934
+ vbn_code?: string;
60935
+ };
60936
+ Relationships: [];
60937
+ };
60985
60938
  floriday_warehouses_cache: {
60986
60939
  Row: {
60987
60940
  connection_id: string;
@@ -65955,9 +65908,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
65955
65908
  };
65956
65909
  twinfield_connections: {
65957
65910
  Row: {
65958
- access_token: string | null;
65959
- client_id: string;
65960
- client_secret: string | null;
65911
+ account_key: string | null;
65961
65912
  cluster_uri: string | null;
65962
65913
  company_code: string | null;
65963
65914
  company_name: string | null;
@@ -65969,15 +65920,11 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
65969
65920
  label: string | null;
65970
65921
  office_code: string | null;
65971
65922
  redirect_uri: string;
65972
- refresh_token: string | null;
65973
- token_expires_at: string | null;
65974
65923
  updated_at: string;
65975
65924
  user_id: string;
65976
65925
  };
65977
65926
  Insert: {
65978
- access_token?: string | null;
65979
- client_id: string;
65980
- client_secret?: string | null;
65927
+ account_key?: string | null;
65981
65928
  cluster_uri?: string | null;
65982
65929
  company_code?: string | null;
65983
65930
  company_name?: string | null;
@@ -65989,15 +65936,11 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
65989
65936
  label?: string | null;
65990
65937
  office_code?: string | null;
65991
65938
  redirect_uri: string;
65992
- refresh_token?: string | null;
65993
- token_expires_at?: string | null;
65994
65939
  updated_at?: string;
65995
65940
  user_id: string;
65996
65941
  };
65997
65942
  Update: {
65998
- access_token?: string | null;
65999
- client_id?: string;
66000
- client_secret?: string | null;
65943
+ account_key?: string | null;
66001
65944
  cluster_uri?: string | null;
66002
65945
  company_code?: string | null;
66003
65946
  company_name?: string | null;
@@ -66009,53 +65952,6 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
66009
65952
  label?: string | null;
66010
65953
  office_code?: string | null;
66011
65954
  redirect_uri?: string;
66012
- refresh_token?: string | null;
66013
- token_expires_at?: string | null;
66014
- updated_at?: string;
66015
- user_id?: string;
66016
- };
66017
- Relationships: [];
66018
- };
66019
- twinfield_credentials: {
66020
- Row: {
66021
- administration_code: string | null;
66022
- client_id: string | null;
66023
- client_secret: string | null;
66024
- cluster: string | null;
66025
- connected_at: string | null;
66026
- created_at: string;
66027
- environment: string | null;
66028
- id: string;
66029
- redirect_uri: string | null;
66030
- refresh_token: string | null;
66031
- updated_at: string;
66032
- user_id: string;
66033
- };
66034
- Insert: {
66035
- administration_code?: string | null;
66036
- client_id?: string | null;
66037
- client_secret?: string | null;
66038
- cluster?: string | null;
66039
- connected_at?: string | null;
66040
- created_at?: string;
66041
- environment?: string | null;
66042
- id?: string;
66043
- redirect_uri?: string | null;
66044
- refresh_token?: string | null;
66045
- updated_at?: string;
66046
- user_id: string;
66047
- };
66048
- Update: {
66049
- administration_code?: string | null;
66050
- client_id?: string | null;
66051
- client_secret?: string | null;
66052
- cluster?: string | null;
66053
- connected_at?: string | null;
66054
- created_at?: string;
66055
- environment?: string | null;
66056
- id?: string;
66057
- redirect_uri?: string | null;
66058
- refresh_token?: string | null;
66059
65955
  updated_at?: string;
66060
65956
  user_id?: string;
66061
65957
  };
@@ -66556,30 +66452,6 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
66556
66452
  referencedColumns: ["id"];
66557
66453
  }];
66558
66454
  };
66559
- twinfield_oauth_state: {
66560
- Row: {
66561
- created_at: string;
66562
- environment: string;
66563
- nonce: string | null;
66564
- state: string;
66565
- user_id: string;
66566
- };
66567
- Insert: {
66568
- created_at?: string;
66569
- environment: string;
66570
- nonce?: string | null;
66571
- state: string;
66572
- user_id: string;
66573
- };
66574
- Update: {
66575
- created_at?: string;
66576
- environment?: string;
66577
- nonce?: string | null;
66578
- state?: string;
66579
- user_id?: string;
66580
- };
66581
- Relationships: [];
66582
- };
66583
66455
  twinfield_push_queue: {
66584
66456
  Row: {
66585
66457
  action: string;
@@ -66745,39 +66617,6 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
66745
66617
  referencedColumns: ["id"];
66746
66618
  }];
66747
66619
  };
66748
- twinfield_token_refresh_log: {
66749
- Row: {
66750
- attempted_at: string;
66751
- connection_id: string;
66752
- error: string | null;
66753
- expires_at: string | null;
66754
- id: string;
66755
- ok: boolean;
66756
- };
66757
- Insert: {
66758
- attempted_at?: string;
66759
- connection_id: string;
66760
- error?: string | null;
66761
- expires_at?: string | null;
66762
- id?: string;
66763
- ok: boolean;
66764
- };
66765
- Update: {
66766
- attempted_at?: string;
66767
- connection_id?: string;
66768
- error?: string | null;
66769
- expires_at?: string | null;
66770
- id?: string;
66771
- ok?: boolean;
66772
- };
66773
- Relationships: [{
66774
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
66775
- columns: ["connection_id"];
66776
- isOneToOne: false;
66777
- referencedRelation: "twinfield_connections";
66778
- referencedColumns: ["id"];
66779
- }];
66780
- };
66781
66620
  user_roles: {
66782
66621
  Row: {
66783
66622
  created_at: string;
@@ -69218,15 +69057,16 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
69218
69057
  };
69219
69058
  Returns: undefined;
69220
69059
  };
69221
- twinfield_decrypt: {
69222
- Args: {
69223
- cipher: string;
69224
- };
69225
- Returns: string;
69226
- };
69227
- twinfield_encrypt: {
69060
+ twinfield_upsert_connection_by_account_key: {
69228
69061
  Args: {
69229
- plain: string;
69062
+ p_account_key: string;
69063
+ p_cluster_uri?: string;
69064
+ p_company_code?: string;
69065
+ p_company_name?: string;
69066
+ p_environment: string;
69067
+ p_office_code?: string;
69068
+ p_status?: string;
69069
+ p_user_id: string;
69230
69070
  };
69231
69071
  Returns: string;
69232
69072
  };
@@ -73804,6 +73644,27 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
73804
73644
  referencedColumns: ["id"];
73805
73645
  }];
73806
73646
  };
73647
+ floriday_continuous_stock_cache: {
73648
+ Row: {
73649
+ connection_id: string;
73650
+ fetched_at: string;
73651
+ number_of_pieces: number;
73652
+ trade_item_id: string;
73653
+ };
73654
+ Insert: {
73655
+ connection_id: string;
73656
+ fetched_at?: string;
73657
+ number_of_pieces?: number;
73658
+ trade_item_id: string;
73659
+ };
73660
+ Update: {
73661
+ connection_id?: string;
73662
+ fetched_at?: string;
73663
+ number_of_pieces?: number;
73664
+ trade_item_id?: string;
73665
+ };
73666
+ Relationships: [];
73667
+ };
73807
73668
  floriday_continuous_stock_queue: {
73808
73669
  Row: {
73809
73670
  attempts: number;
@@ -74782,6 +74643,45 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
74782
74643
  referencedColumns: ["id"];
74783
74644
  }];
74784
74645
  };
74646
+ floriday_trade_settings_customers_cache: {
74647
+ Row: {
74648
+ connection_id: string;
74649
+ data: import("../integrations/supabase/types").Json;
74650
+ fetched_at: string;
74651
+ floriday_id: string;
74652
+ id: string;
74653
+ is_deleted: boolean;
74654
+ sequence_number: number;
74655
+ updated_at: string;
74656
+ };
74657
+ Insert: {
74658
+ connection_id: string;
74659
+ data: import("../integrations/supabase/types").Json;
74660
+ fetched_at?: string;
74661
+ floriday_id: string;
74662
+ id?: string;
74663
+ is_deleted?: boolean;
74664
+ sequence_number?: number;
74665
+ updated_at?: string;
74666
+ };
74667
+ Update: {
74668
+ connection_id?: string;
74669
+ data?: import("../integrations/supabase/types").Json;
74670
+ fetched_at?: string;
74671
+ floriday_id?: string;
74672
+ id?: string;
74673
+ is_deleted?: boolean;
74674
+ sequence_number?: number;
74675
+ updated_at?: string;
74676
+ };
74677
+ Relationships: [{
74678
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
74679
+ columns: ["connection_id"];
74680
+ isOneToOne: false;
74681
+ referencedRelation: "floriday_connections";
74682
+ referencedColumns: ["id"];
74683
+ }];
74684
+ };
74785
74685
  floriday_trips_cache: {
74786
74686
  Row: {
74787
74687
  carrier_organization_id: string | null;
@@ -74830,6 +74730,27 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
74830
74730
  referencedColumns: ["id"];
74831
74731
  }];
74832
74732
  };
74733
+ floriday_vbn_required_characteristics: {
74734
+ Row: {
74735
+ required_codes: string[];
74736
+ updated_at: string;
74737
+ updated_by: string | null;
74738
+ vbn_code: string;
74739
+ };
74740
+ Insert: {
74741
+ required_codes?: string[];
74742
+ updated_at?: string;
74743
+ updated_by?: string | null;
74744
+ vbn_code: string;
74745
+ };
74746
+ Update: {
74747
+ required_codes?: string[];
74748
+ updated_at?: string;
74749
+ updated_by?: string | null;
74750
+ vbn_code?: string;
74751
+ };
74752
+ Relationships: [];
74753
+ };
74833
74754
  floriday_warehouses_cache: {
74834
74755
  Row: {
74835
74756
  connection_id: string;
@@ -79803,9 +79724,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
79803
79724
  };
79804
79725
  twinfield_connections: {
79805
79726
  Row: {
79806
- access_token: string | null;
79807
- client_id: string;
79808
- client_secret: string | null;
79727
+ account_key: string | null;
79809
79728
  cluster_uri: string | null;
79810
79729
  company_code: string | null;
79811
79730
  company_name: string | null;
@@ -79817,15 +79736,11 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
79817
79736
  label: string | null;
79818
79737
  office_code: string | null;
79819
79738
  redirect_uri: string;
79820
- refresh_token: string | null;
79821
- token_expires_at: string | null;
79822
79739
  updated_at: string;
79823
79740
  user_id: string;
79824
79741
  };
79825
79742
  Insert: {
79826
- access_token?: string | null;
79827
- client_id: string;
79828
- client_secret?: string | null;
79743
+ account_key?: string | null;
79829
79744
  cluster_uri?: string | null;
79830
79745
  company_code?: string | null;
79831
79746
  company_name?: string | null;
@@ -79837,15 +79752,11 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
79837
79752
  label?: string | null;
79838
79753
  office_code?: string | null;
79839
79754
  redirect_uri: string;
79840
- refresh_token?: string | null;
79841
- token_expires_at?: string | null;
79842
79755
  updated_at?: string;
79843
79756
  user_id: string;
79844
79757
  };
79845
79758
  Update: {
79846
- access_token?: string | null;
79847
- client_id?: string;
79848
- client_secret?: string | null;
79759
+ account_key?: string | null;
79849
79760
  cluster_uri?: string | null;
79850
79761
  company_code?: string | null;
79851
79762
  company_name?: string | null;
@@ -79857,53 +79768,6 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
79857
79768
  label?: string | null;
79858
79769
  office_code?: string | null;
79859
79770
  redirect_uri?: string;
79860
- refresh_token?: string | null;
79861
- token_expires_at?: string | null;
79862
- updated_at?: string;
79863
- user_id?: string;
79864
- };
79865
- Relationships: [];
79866
- };
79867
- twinfield_credentials: {
79868
- Row: {
79869
- administration_code: string | null;
79870
- client_id: string | null;
79871
- client_secret: string | null;
79872
- cluster: string | null;
79873
- connected_at: string | null;
79874
- created_at: string;
79875
- environment: string | null;
79876
- id: string;
79877
- redirect_uri: string | null;
79878
- refresh_token: string | null;
79879
- updated_at: string;
79880
- user_id: string;
79881
- };
79882
- Insert: {
79883
- administration_code?: string | null;
79884
- client_id?: string | null;
79885
- client_secret?: string | null;
79886
- cluster?: string | null;
79887
- connected_at?: string | null;
79888
- created_at?: string;
79889
- environment?: string | null;
79890
- id?: string;
79891
- redirect_uri?: string | null;
79892
- refresh_token?: string | null;
79893
- updated_at?: string;
79894
- user_id: string;
79895
- };
79896
- Update: {
79897
- administration_code?: string | null;
79898
- client_id?: string | null;
79899
- client_secret?: string | null;
79900
- cluster?: string | null;
79901
- connected_at?: string | null;
79902
- created_at?: string;
79903
- environment?: string | null;
79904
- id?: string;
79905
- redirect_uri?: string | null;
79906
- refresh_token?: string | null;
79907
79771
  updated_at?: string;
79908
79772
  user_id?: string;
79909
79773
  };
@@ -80404,30 +80268,6 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
80404
80268
  referencedColumns: ["id"];
80405
80269
  }];
80406
80270
  };
80407
- twinfield_oauth_state: {
80408
- Row: {
80409
- created_at: string;
80410
- environment: string;
80411
- nonce: string | null;
80412
- state: string;
80413
- user_id: string;
80414
- };
80415
- Insert: {
80416
- created_at?: string;
80417
- environment: string;
80418
- nonce?: string | null;
80419
- state: string;
80420
- user_id: string;
80421
- };
80422
- Update: {
80423
- created_at?: string;
80424
- environment?: string;
80425
- nonce?: string | null;
80426
- state?: string;
80427
- user_id?: string;
80428
- };
80429
- Relationships: [];
80430
- };
80431
80271
  twinfield_push_queue: {
80432
80272
  Row: {
80433
80273
  action: string;
@@ -80593,39 +80433,6 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
80593
80433
  referencedColumns: ["id"];
80594
80434
  }];
80595
80435
  };
80596
- twinfield_token_refresh_log: {
80597
- Row: {
80598
- attempted_at: string;
80599
- connection_id: string;
80600
- error: string | null;
80601
- expires_at: string | null;
80602
- id: string;
80603
- ok: boolean;
80604
- };
80605
- Insert: {
80606
- attempted_at?: string;
80607
- connection_id: string;
80608
- error?: string | null;
80609
- expires_at?: string | null;
80610
- id?: string;
80611
- ok: boolean;
80612
- };
80613
- Update: {
80614
- attempted_at?: string;
80615
- connection_id?: string;
80616
- error?: string | null;
80617
- expires_at?: string | null;
80618
- id?: string;
80619
- ok?: boolean;
80620
- };
80621
- Relationships: [{
80622
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
80623
- columns: ["connection_id"];
80624
- isOneToOne: false;
80625
- referencedRelation: "twinfield_connections";
80626
- referencedColumns: ["id"];
80627
- }];
80628
- };
80629
80436
  user_roles: {
80630
80437
  Row: {
80631
80438
  created_at: string;
@@ -83066,15 +82873,16 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
83066
82873
  };
83067
82874
  Returns: undefined;
83068
82875
  };
83069
- twinfield_decrypt: {
82876
+ twinfield_upsert_connection_by_account_key: {
83070
82877
  Args: {
83071
- cipher: string;
83072
- };
83073
- Returns: string;
83074
- };
83075
- twinfield_encrypt: {
83076
- Args: {
83077
- plain: string;
82878
+ p_account_key: string;
82879
+ p_cluster_uri?: string;
82880
+ p_company_code?: string;
82881
+ p_company_name?: string;
82882
+ p_environment: string;
82883
+ p_office_code?: string;
82884
+ p_status?: string;
82885
+ p_user_id: string;
83078
82886
  };
83079
82887
  Returns: string;
83080
82888
  };
@@ -87638,6 +87446,27 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
87638
87446
  referencedColumns: ["id"];
87639
87447
  }];
87640
87448
  };
87449
+ floriday_continuous_stock_cache: {
87450
+ Row: {
87451
+ connection_id: string;
87452
+ fetched_at: string;
87453
+ number_of_pieces: number;
87454
+ trade_item_id: string;
87455
+ };
87456
+ Insert: {
87457
+ connection_id: string;
87458
+ fetched_at?: string;
87459
+ number_of_pieces?: number;
87460
+ trade_item_id: string;
87461
+ };
87462
+ Update: {
87463
+ connection_id?: string;
87464
+ fetched_at?: string;
87465
+ number_of_pieces?: number;
87466
+ trade_item_id?: string;
87467
+ };
87468
+ Relationships: [];
87469
+ };
87641
87470
  floriday_continuous_stock_queue: {
87642
87471
  Row: {
87643
87472
  attempts: number;
@@ -88616,6 +88445,45 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
88616
88445
  referencedColumns: ["id"];
88617
88446
  }];
88618
88447
  };
88448
+ floriday_trade_settings_customers_cache: {
88449
+ Row: {
88450
+ connection_id: string;
88451
+ data: import("../integrations/supabase/types").Json;
88452
+ fetched_at: string;
88453
+ floriday_id: string;
88454
+ id: string;
88455
+ is_deleted: boolean;
88456
+ sequence_number: number;
88457
+ updated_at: string;
88458
+ };
88459
+ Insert: {
88460
+ connection_id: string;
88461
+ data: import("../integrations/supabase/types").Json;
88462
+ fetched_at?: string;
88463
+ floriday_id: string;
88464
+ id?: string;
88465
+ is_deleted?: boolean;
88466
+ sequence_number?: number;
88467
+ updated_at?: string;
88468
+ };
88469
+ Update: {
88470
+ connection_id?: string;
88471
+ data?: import("../integrations/supabase/types").Json;
88472
+ fetched_at?: string;
88473
+ floriday_id?: string;
88474
+ id?: string;
88475
+ is_deleted?: boolean;
88476
+ sequence_number?: number;
88477
+ updated_at?: string;
88478
+ };
88479
+ Relationships: [{
88480
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
88481
+ columns: ["connection_id"];
88482
+ isOneToOne: false;
88483
+ referencedRelation: "floriday_connections";
88484
+ referencedColumns: ["id"];
88485
+ }];
88486
+ };
88619
88487
  floriday_trips_cache: {
88620
88488
  Row: {
88621
88489
  carrier_organization_id: string | null;
@@ -88664,6 +88532,27 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
88664
88532
  referencedColumns: ["id"];
88665
88533
  }];
88666
88534
  };
88535
+ floriday_vbn_required_characteristics: {
88536
+ Row: {
88537
+ required_codes: string[];
88538
+ updated_at: string;
88539
+ updated_by: string | null;
88540
+ vbn_code: string;
88541
+ };
88542
+ Insert: {
88543
+ required_codes?: string[];
88544
+ updated_at?: string;
88545
+ updated_by?: string | null;
88546
+ vbn_code: string;
88547
+ };
88548
+ Update: {
88549
+ required_codes?: string[];
88550
+ updated_at?: string;
88551
+ updated_by?: string | null;
88552
+ vbn_code?: string;
88553
+ };
88554
+ Relationships: [];
88555
+ };
88667
88556
  floriday_warehouses_cache: {
88668
88557
  Row: {
88669
88558
  connection_id: string;
@@ -93637,9 +93526,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
93637
93526
  };
93638
93527
  twinfield_connections: {
93639
93528
  Row: {
93640
- access_token: string | null;
93641
- client_id: string;
93642
- client_secret: string | null;
93529
+ account_key: string | null;
93643
93530
  cluster_uri: string | null;
93644
93531
  company_code: string | null;
93645
93532
  company_name: string | null;
@@ -93651,15 +93538,11 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
93651
93538
  label: string | null;
93652
93539
  office_code: string | null;
93653
93540
  redirect_uri: string;
93654
- refresh_token: string | null;
93655
- token_expires_at: string | null;
93656
93541
  updated_at: string;
93657
93542
  user_id: string;
93658
93543
  };
93659
93544
  Insert: {
93660
- access_token?: string | null;
93661
- client_id: string;
93662
- client_secret?: string | null;
93545
+ account_key?: string | null;
93663
93546
  cluster_uri?: string | null;
93664
93547
  company_code?: string | null;
93665
93548
  company_name?: string | null;
@@ -93671,15 +93554,11 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
93671
93554
  label?: string | null;
93672
93555
  office_code?: string | null;
93673
93556
  redirect_uri: string;
93674
- refresh_token?: string | null;
93675
- token_expires_at?: string | null;
93676
93557
  updated_at?: string;
93677
93558
  user_id: string;
93678
93559
  };
93679
93560
  Update: {
93680
- access_token?: string | null;
93681
- client_id?: string;
93682
- client_secret?: string | null;
93561
+ account_key?: string | null;
93683
93562
  cluster_uri?: string | null;
93684
93563
  company_code?: string | null;
93685
93564
  company_name?: string | null;
@@ -93691,53 +93570,6 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
93691
93570
  label?: string | null;
93692
93571
  office_code?: string | null;
93693
93572
  redirect_uri?: string;
93694
- refresh_token?: string | null;
93695
- token_expires_at?: string | null;
93696
- updated_at?: string;
93697
- user_id?: string;
93698
- };
93699
- Relationships: [];
93700
- };
93701
- twinfield_credentials: {
93702
- Row: {
93703
- administration_code: string | null;
93704
- client_id: string | null;
93705
- client_secret: string | null;
93706
- cluster: string | null;
93707
- connected_at: string | null;
93708
- created_at: string;
93709
- environment: string | null;
93710
- id: string;
93711
- redirect_uri: string | null;
93712
- refresh_token: string | null;
93713
- updated_at: string;
93714
- user_id: string;
93715
- };
93716
- Insert: {
93717
- administration_code?: string | null;
93718
- client_id?: string | null;
93719
- client_secret?: string | null;
93720
- cluster?: string | null;
93721
- connected_at?: string | null;
93722
- created_at?: string;
93723
- environment?: string | null;
93724
- id?: string;
93725
- redirect_uri?: string | null;
93726
- refresh_token?: string | null;
93727
- updated_at?: string;
93728
- user_id: string;
93729
- };
93730
- Update: {
93731
- administration_code?: string | null;
93732
- client_id?: string | null;
93733
- client_secret?: string | null;
93734
- cluster?: string | null;
93735
- connected_at?: string | null;
93736
- created_at?: string;
93737
- environment?: string | null;
93738
- id?: string;
93739
- redirect_uri?: string | null;
93740
- refresh_token?: string | null;
93741
93573
  updated_at?: string;
93742
93574
  user_id?: string;
93743
93575
  };
@@ -94238,30 +94070,6 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
94238
94070
  referencedColumns: ["id"];
94239
94071
  }];
94240
94072
  };
94241
- twinfield_oauth_state: {
94242
- Row: {
94243
- created_at: string;
94244
- environment: string;
94245
- nonce: string | null;
94246
- state: string;
94247
- user_id: string;
94248
- };
94249
- Insert: {
94250
- created_at?: string;
94251
- environment: string;
94252
- nonce?: string | null;
94253
- state: string;
94254
- user_id: string;
94255
- };
94256
- Update: {
94257
- created_at?: string;
94258
- environment?: string;
94259
- nonce?: string | null;
94260
- state?: string;
94261
- user_id?: string;
94262
- };
94263
- Relationships: [];
94264
- };
94265
94073
  twinfield_push_queue: {
94266
94074
  Row: {
94267
94075
  action: string;
@@ -94427,39 +94235,6 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
94427
94235
  referencedColumns: ["id"];
94428
94236
  }];
94429
94237
  };
94430
- twinfield_token_refresh_log: {
94431
- Row: {
94432
- attempted_at: string;
94433
- connection_id: string;
94434
- error: string | null;
94435
- expires_at: string | null;
94436
- id: string;
94437
- ok: boolean;
94438
- };
94439
- Insert: {
94440
- attempted_at?: string;
94441
- connection_id: string;
94442
- error?: string | null;
94443
- expires_at?: string | null;
94444
- id?: string;
94445
- ok: boolean;
94446
- };
94447
- Update: {
94448
- attempted_at?: string;
94449
- connection_id?: string;
94450
- error?: string | null;
94451
- expires_at?: string | null;
94452
- id?: string;
94453
- ok?: boolean;
94454
- };
94455
- Relationships: [{
94456
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
94457
- columns: ["connection_id"];
94458
- isOneToOne: false;
94459
- referencedRelation: "twinfield_connections";
94460
- referencedColumns: ["id"];
94461
- }];
94462
- };
94463
94238
  user_roles: {
94464
94239
  Row: {
94465
94240
  created_at: string;
@@ -96900,15 +96675,16 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
96900
96675
  };
96901
96676
  Returns: undefined;
96902
96677
  };
96903
- twinfield_decrypt: {
96678
+ twinfield_upsert_connection_by_account_key: {
96904
96679
  Args: {
96905
- cipher: string;
96906
- };
96907
- Returns: string;
96908
- };
96909
- twinfield_encrypt: {
96910
- Args: {
96911
- plain: string;
96680
+ p_account_key: string;
96681
+ p_cluster_uri?: string;
96682
+ p_company_code?: string;
96683
+ p_company_name?: string;
96684
+ p_environment: string;
96685
+ p_office_code?: string;
96686
+ p_status?: string;
96687
+ p_user_id: string;
96912
96688
  };
96913
96689
  Returns: string;
96914
96690
  };
@@ -101497,6 +101273,27 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
101497
101273
  referencedColumns: ["id"];
101498
101274
  }];
101499
101275
  };
101276
+ floriday_continuous_stock_cache: {
101277
+ Row: {
101278
+ connection_id: string;
101279
+ fetched_at: string;
101280
+ number_of_pieces: number;
101281
+ trade_item_id: string;
101282
+ };
101283
+ Insert: {
101284
+ connection_id: string;
101285
+ fetched_at?: string;
101286
+ number_of_pieces?: number;
101287
+ trade_item_id: string;
101288
+ };
101289
+ Update: {
101290
+ connection_id?: string;
101291
+ fetched_at?: string;
101292
+ number_of_pieces?: number;
101293
+ trade_item_id?: string;
101294
+ };
101295
+ Relationships: [];
101296
+ };
101500
101297
  floriday_continuous_stock_queue: {
101501
101298
  Row: {
101502
101299
  attempts: number;
@@ -102475,6 +102272,45 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
102475
102272
  referencedColumns: ["id"];
102476
102273
  }];
102477
102274
  };
102275
+ floriday_trade_settings_customers_cache: {
102276
+ Row: {
102277
+ connection_id: string;
102278
+ data: import("../integrations/supabase/types").Json;
102279
+ fetched_at: string;
102280
+ floriday_id: string;
102281
+ id: string;
102282
+ is_deleted: boolean;
102283
+ sequence_number: number;
102284
+ updated_at: string;
102285
+ };
102286
+ Insert: {
102287
+ connection_id: string;
102288
+ data: import("../integrations/supabase/types").Json;
102289
+ fetched_at?: string;
102290
+ floriday_id: string;
102291
+ id?: string;
102292
+ is_deleted?: boolean;
102293
+ sequence_number?: number;
102294
+ updated_at?: string;
102295
+ };
102296
+ Update: {
102297
+ connection_id?: string;
102298
+ data?: import("../integrations/supabase/types").Json;
102299
+ fetched_at?: string;
102300
+ floriday_id?: string;
102301
+ id?: string;
102302
+ is_deleted?: boolean;
102303
+ sequence_number?: number;
102304
+ updated_at?: string;
102305
+ };
102306
+ Relationships: [{
102307
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
102308
+ columns: ["connection_id"];
102309
+ isOneToOne: false;
102310
+ referencedRelation: "floriday_connections";
102311
+ referencedColumns: ["id"];
102312
+ }];
102313
+ };
102478
102314
  floriday_trips_cache: {
102479
102315
  Row: {
102480
102316
  carrier_organization_id: string | null;
@@ -102523,6 +102359,27 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
102523
102359
  referencedColumns: ["id"];
102524
102360
  }];
102525
102361
  };
102362
+ floriday_vbn_required_characteristics: {
102363
+ Row: {
102364
+ required_codes: string[];
102365
+ updated_at: string;
102366
+ updated_by: string | null;
102367
+ vbn_code: string;
102368
+ };
102369
+ Insert: {
102370
+ required_codes?: string[];
102371
+ updated_at?: string;
102372
+ updated_by?: string | null;
102373
+ vbn_code: string;
102374
+ };
102375
+ Update: {
102376
+ required_codes?: string[];
102377
+ updated_at?: string;
102378
+ updated_by?: string | null;
102379
+ vbn_code?: string;
102380
+ };
102381
+ Relationships: [];
102382
+ };
102526
102383
  floriday_warehouses_cache: {
102527
102384
  Row: {
102528
102385
  connection_id: string;
@@ -107496,9 +107353,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
107496
107353
  };
107497
107354
  twinfield_connections: {
107498
107355
  Row: {
107499
- access_token: string | null;
107500
- client_id: string;
107501
- client_secret: string | null;
107356
+ account_key: string | null;
107502
107357
  cluster_uri: string | null;
107503
107358
  company_code: string | null;
107504
107359
  company_name: string | null;
@@ -107510,15 +107365,11 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
107510
107365
  label: string | null;
107511
107366
  office_code: string | null;
107512
107367
  redirect_uri: string;
107513
- refresh_token: string | null;
107514
- token_expires_at: string | null;
107515
107368
  updated_at: string;
107516
107369
  user_id: string;
107517
107370
  };
107518
107371
  Insert: {
107519
- access_token?: string | null;
107520
- client_id: string;
107521
- client_secret?: string | null;
107372
+ account_key?: string | null;
107522
107373
  cluster_uri?: string | null;
107523
107374
  company_code?: string | null;
107524
107375
  company_name?: string | null;
@@ -107530,15 +107381,11 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
107530
107381
  label?: string | null;
107531
107382
  office_code?: string | null;
107532
107383
  redirect_uri: string;
107533
- refresh_token?: string | null;
107534
- token_expires_at?: string | null;
107535
107384
  updated_at?: string;
107536
107385
  user_id: string;
107537
107386
  };
107538
107387
  Update: {
107539
- access_token?: string | null;
107540
- client_id?: string;
107541
- client_secret?: string | null;
107388
+ account_key?: string | null;
107542
107389
  cluster_uri?: string | null;
107543
107390
  company_code?: string | null;
107544
107391
  company_name?: string | null;
@@ -107550,53 +107397,6 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
107550
107397
  label?: string | null;
107551
107398
  office_code?: string | null;
107552
107399
  redirect_uri?: string;
107553
- refresh_token?: string | null;
107554
- token_expires_at?: string | null;
107555
- updated_at?: string;
107556
- user_id?: string;
107557
- };
107558
- Relationships: [];
107559
- };
107560
- twinfield_credentials: {
107561
- Row: {
107562
- administration_code: string | null;
107563
- client_id: string | null;
107564
- client_secret: string | null;
107565
- cluster: string | null;
107566
- connected_at: string | null;
107567
- created_at: string;
107568
- environment: string | null;
107569
- id: string;
107570
- redirect_uri: string | null;
107571
- refresh_token: string | null;
107572
- updated_at: string;
107573
- user_id: string;
107574
- };
107575
- Insert: {
107576
- administration_code?: string | null;
107577
- client_id?: string | null;
107578
- client_secret?: string | null;
107579
- cluster?: string | null;
107580
- connected_at?: string | null;
107581
- created_at?: string;
107582
- environment?: string | null;
107583
- id?: string;
107584
- redirect_uri?: string | null;
107585
- refresh_token?: string | null;
107586
- updated_at?: string;
107587
- user_id: string;
107588
- };
107589
- Update: {
107590
- administration_code?: string | null;
107591
- client_id?: string | null;
107592
- client_secret?: string | null;
107593
- cluster?: string | null;
107594
- connected_at?: string | null;
107595
- created_at?: string;
107596
- environment?: string | null;
107597
- id?: string;
107598
- redirect_uri?: string | null;
107599
- refresh_token?: string | null;
107600
107400
  updated_at?: string;
107601
107401
  user_id?: string;
107602
107402
  };
@@ -108097,30 +107897,6 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
108097
107897
  referencedColumns: ["id"];
108098
107898
  }];
108099
107899
  };
108100
- twinfield_oauth_state: {
108101
- Row: {
108102
- created_at: string;
108103
- environment: string;
108104
- nonce: string | null;
108105
- state: string;
108106
- user_id: string;
108107
- };
108108
- Insert: {
108109
- created_at?: string;
108110
- environment: string;
108111
- nonce?: string | null;
108112
- state: string;
108113
- user_id: string;
108114
- };
108115
- Update: {
108116
- created_at?: string;
108117
- environment?: string;
108118
- nonce?: string | null;
108119
- state?: string;
108120
- user_id?: string;
108121
- };
108122
- Relationships: [];
108123
- };
108124
107900
  twinfield_push_queue: {
108125
107901
  Row: {
108126
107902
  action: string;
@@ -108286,39 +108062,6 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
108286
108062
  referencedColumns: ["id"];
108287
108063
  }];
108288
108064
  };
108289
- twinfield_token_refresh_log: {
108290
- Row: {
108291
- attempted_at: string;
108292
- connection_id: string;
108293
- error: string | null;
108294
- expires_at: string | null;
108295
- id: string;
108296
- ok: boolean;
108297
- };
108298
- Insert: {
108299
- attempted_at?: string;
108300
- connection_id: string;
108301
- error?: string | null;
108302
- expires_at?: string | null;
108303
- id?: string;
108304
- ok: boolean;
108305
- };
108306
- Update: {
108307
- attempted_at?: string;
108308
- connection_id?: string;
108309
- error?: string | null;
108310
- expires_at?: string | null;
108311
- id?: string;
108312
- ok?: boolean;
108313
- };
108314
- Relationships: [{
108315
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
108316
- columns: ["connection_id"];
108317
- isOneToOne: false;
108318
- referencedRelation: "twinfield_connections";
108319
- referencedColumns: ["id"];
108320
- }];
108321
- };
108322
108065
  user_roles: {
108323
108066
  Row: {
108324
108067
  created_at: string;
@@ -110759,15 +110502,16 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
110759
110502
  };
110760
110503
  Returns: undefined;
110761
110504
  };
110762
- twinfield_decrypt: {
110763
- Args: {
110764
- cipher: string;
110765
- };
110766
- Returns: string;
110767
- };
110768
- twinfield_encrypt: {
110505
+ twinfield_upsert_connection_by_account_key: {
110769
110506
  Args: {
110770
- plain: string;
110507
+ p_account_key: string;
110508
+ p_cluster_uri?: string;
110509
+ p_company_code?: string;
110510
+ p_company_name?: string;
110511
+ p_environment: string;
110512
+ p_office_code?: string;
110513
+ p_status?: string;
110514
+ p_user_id: string;
110771
110515
  };
110772
110516
  Returns: string;
110773
110517
  };
@@ -115329,6 +115073,27 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
115329
115073
  referencedColumns: ["id"];
115330
115074
  }];
115331
115075
  };
115076
+ floriday_continuous_stock_cache: {
115077
+ Row: {
115078
+ connection_id: string;
115079
+ fetched_at: string;
115080
+ number_of_pieces: number;
115081
+ trade_item_id: string;
115082
+ };
115083
+ Insert: {
115084
+ connection_id: string;
115085
+ fetched_at?: string;
115086
+ number_of_pieces?: number;
115087
+ trade_item_id: string;
115088
+ };
115089
+ Update: {
115090
+ connection_id?: string;
115091
+ fetched_at?: string;
115092
+ number_of_pieces?: number;
115093
+ trade_item_id?: string;
115094
+ };
115095
+ Relationships: [];
115096
+ };
115332
115097
  floriday_continuous_stock_queue: {
115333
115098
  Row: {
115334
115099
  attempts: number;
@@ -116307,6 +116072,45 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
116307
116072
  referencedColumns: ["id"];
116308
116073
  }];
116309
116074
  };
116075
+ floriday_trade_settings_customers_cache: {
116076
+ Row: {
116077
+ connection_id: string;
116078
+ data: import("../integrations/supabase/types").Json;
116079
+ fetched_at: string;
116080
+ floriday_id: string;
116081
+ id: string;
116082
+ is_deleted: boolean;
116083
+ sequence_number: number;
116084
+ updated_at: string;
116085
+ };
116086
+ Insert: {
116087
+ connection_id: string;
116088
+ data: import("../integrations/supabase/types").Json;
116089
+ fetched_at?: string;
116090
+ floriday_id: string;
116091
+ id?: string;
116092
+ is_deleted?: boolean;
116093
+ sequence_number?: number;
116094
+ updated_at?: string;
116095
+ };
116096
+ Update: {
116097
+ connection_id?: string;
116098
+ data?: import("../integrations/supabase/types").Json;
116099
+ fetched_at?: string;
116100
+ floriday_id?: string;
116101
+ id?: string;
116102
+ is_deleted?: boolean;
116103
+ sequence_number?: number;
116104
+ updated_at?: string;
116105
+ };
116106
+ Relationships: [{
116107
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
116108
+ columns: ["connection_id"];
116109
+ isOneToOne: false;
116110
+ referencedRelation: "floriday_connections";
116111
+ referencedColumns: ["id"];
116112
+ }];
116113
+ };
116310
116114
  floriday_trips_cache: {
116311
116115
  Row: {
116312
116116
  carrier_organization_id: string | null;
@@ -116355,6 +116159,27 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
116355
116159
  referencedColumns: ["id"];
116356
116160
  }];
116357
116161
  };
116162
+ floriday_vbn_required_characteristics: {
116163
+ Row: {
116164
+ required_codes: string[];
116165
+ updated_at: string;
116166
+ updated_by: string | null;
116167
+ vbn_code: string;
116168
+ };
116169
+ Insert: {
116170
+ required_codes?: string[];
116171
+ updated_at?: string;
116172
+ updated_by?: string | null;
116173
+ vbn_code: string;
116174
+ };
116175
+ Update: {
116176
+ required_codes?: string[];
116177
+ updated_at?: string;
116178
+ updated_by?: string | null;
116179
+ vbn_code?: string;
116180
+ };
116181
+ Relationships: [];
116182
+ };
116358
116183
  floriday_warehouses_cache: {
116359
116184
  Row: {
116360
116185
  connection_id: string;
@@ -121328,9 +121153,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
121328
121153
  };
121329
121154
  twinfield_connections: {
121330
121155
  Row: {
121331
- access_token: string | null;
121332
- client_id: string;
121333
- client_secret: string | null;
121156
+ account_key: string | null;
121334
121157
  cluster_uri: string | null;
121335
121158
  company_code: string | null;
121336
121159
  company_name: string | null;
@@ -121342,15 +121165,11 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
121342
121165
  label: string | null;
121343
121166
  office_code: string | null;
121344
121167
  redirect_uri: string;
121345
- refresh_token: string | null;
121346
- token_expires_at: string | null;
121347
121168
  updated_at: string;
121348
121169
  user_id: string;
121349
121170
  };
121350
121171
  Insert: {
121351
- access_token?: string | null;
121352
- client_id: string;
121353
- client_secret?: string | null;
121172
+ account_key?: string | null;
121354
121173
  cluster_uri?: string | null;
121355
121174
  company_code?: string | null;
121356
121175
  company_name?: string | null;
@@ -121362,15 +121181,11 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
121362
121181
  label?: string | null;
121363
121182
  office_code?: string | null;
121364
121183
  redirect_uri: string;
121365
- refresh_token?: string | null;
121366
- token_expires_at?: string | null;
121367
121184
  updated_at?: string;
121368
121185
  user_id: string;
121369
121186
  };
121370
121187
  Update: {
121371
- access_token?: string | null;
121372
- client_id?: string;
121373
- client_secret?: string | null;
121188
+ account_key?: string | null;
121374
121189
  cluster_uri?: string | null;
121375
121190
  company_code?: string | null;
121376
121191
  company_name?: string | null;
@@ -121382,53 +121197,6 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
121382
121197
  label?: string | null;
121383
121198
  office_code?: string | null;
121384
121199
  redirect_uri?: string;
121385
- refresh_token?: string | null;
121386
- token_expires_at?: string | null;
121387
- updated_at?: string;
121388
- user_id?: string;
121389
- };
121390
- Relationships: [];
121391
- };
121392
- twinfield_credentials: {
121393
- Row: {
121394
- administration_code: string | null;
121395
- client_id: string | null;
121396
- client_secret: string | null;
121397
- cluster: string | null;
121398
- connected_at: string | null;
121399
- created_at: string;
121400
- environment: string | null;
121401
- id: string;
121402
- redirect_uri: string | null;
121403
- refresh_token: string | null;
121404
- updated_at: string;
121405
- user_id: string;
121406
- };
121407
- Insert: {
121408
- administration_code?: string | null;
121409
- client_id?: string | null;
121410
- client_secret?: string | null;
121411
- cluster?: string | null;
121412
- connected_at?: string | null;
121413
- created_at?: string;
121414
- environment?: string | null;
121415
- id?: string;
121416
- redirect_uri?: string | null;
121417
- refresh_token?: string | null;
121418
- updated_at?: string;
121419
- user_id: string;
121420
- };
121421
- Update: {
121422
- administration_code?: string | null;
121423
- client_id?: string | null;
121424
- client_secret?: string | null;
121425
- cluster?: string | null;
121426
- connected_at?: string | null;
121427
- created_at?: string;
121428
- environment?: string | null;
121429
- id?: string;
121430
- redirect_uri?: string | null;
121431
- refresh_token?: string | null;
121432
121200
  updated_at?: string;
121433
121201
  user_id?: string;
121434
121202
  };
@@ -121929,30 +121697,6 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
121929
121697
  referencedColumns: ["id"];
121930
121698
  }];
121931
121699
  };
121932
- twinfield_oauth_state: {
121933
- Row: {
121934
- created_at: string;
121935
- environment: string;
121936
- nonce: string | null;
121937
- state: string;
121938
- user_id: string;
121939
- };
121940
- Insert: {
121941
- created_at?: string;
121942
- environment: string;
121943
- nonce?: string | null;
121944
- state: string;
121945
- user_id: string;
121946
- };
121947
- Update: {
121948
- created_at?: string;
121949
- environment?: string;
121950
- nonce?: string | null;
121951
- state?: string;
121952
- user_id?: string;
121953
- };
121954
- Relationships: [];
121955
- };
121956
121700
  twinfield_push_queue: {
121957
121701
  Row: {
121958
121702
  action: string;
@@ -122118,39 +121862,6 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
122118
121862
  referencedColumns: ["id"];
122119
121863
  }];
122120
121864
  };
122121
- twinfield_token_refresh_log: {
122122
- Row: {
122123
- attempted_at: string;
122124
- connection_id: string;
122125
- error: string | null;
122126
- expires_at: string | null;
122127
- id: string;
122128
- ok: boolean;
122129
- };
122130
- Insert: {
122131
- attempted_at?: string;
122132
- connection_id: string;
122133
- error?: string | null;
122134
- expires_at?: string | null;
122135
- id?: string;
122136
- ok: boolean;
122137
- };
122138
- Update: {
122139
- attempted_at?: string;
122140
- connection_id?: string;
122141
- error?: string | null;
122142
- expires_at?: string | null;
122143
- id?: string;
122144
- ok?: boolean;
122145
- };
122146
- Relationships: [{
122147
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
122148
- columns: ["connection_id"];
122149
- isOneToOne: false;
122150
- referencedRelation: "twinfield_connections";
122151
- referencedColumns: ["id"];
122152
- }];
122153
- };
122154
121865
  user_roles: {
122155
121866
  Row: {
122156
121867
  created_at: string;
@@ -124591,15 +124302,16 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
124591
124302
  };
124592
124303
  Returns: undefined;
124593
124304
  };
124594
- twinfield_decrypt: {
124305
+ twinfield_upsert_connection_by_account_key: {
124595
124306
  Args: {
124596
- cipher: string;
124597
- };
124598
- Returns: string;
124599
- };
124600
- twinfield_encrypt: {
124601
- Args: {
124602
- plain: string;
124307
+ p_account_key: string;
124308
+ p_cluster_uri?: string;
124309
+ p_company_code?: string;
124310
+ p_company_name?: string;
124311
+ p_environment: string;
124312
+ p_office_code?: string;
124313
+ p_status?: string;
124314
+ p_user_id: string;
124603
124315
  };
124604
124316
  Returns: string;
124605
124317
  };
@@ -129164,6 +128876,27 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
129164
128876
  referencedColumns: ["id"];
129165
128877
  }];
129166
128878
  };
128879
+ floriday_continuous_stock_cache: {
128880
+ Row: {
128881
+ connection_id: string;
128882
+ fetched_at: string;
128883
+ number_of_pieces: number;
128884
+ trade_item_id: string;
128885
+ };
128886
+ Insert: {
128887
+ connection_id: string;
128888
+ fetched_at?: string;
128889
+ number_of_pieces?: number;
128890
+ trade_item_id: string;
128891
+ };
128892
+ Update: {
128893
+ connection_id?: string;
128894
+ fetched_at?: string;
128895
+ number_of_pieces?: number;
128896
+ trade_item_id?: string;
128897
+ };
128898
+ Relationships: [];
128899
+ };
129167
128900
  floriday_continuous_stock_queue: {
129168
128901
  Row: {
129169
128902
  attempts: number;
@@ -130142,6 +129875,45 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
130142
129875
  referencedColumns: ["id"];
130143
129876
  }];
130144
129877
  };
129878
+ floriday_trade_settings_customers_cache: {
129879
+ Row: {
129880
+ connection_id: string;
129881
+ data: import("../integrations/supabase/types").Json;
129882
+ fetched_at: string;
129883
+ floriday_id: string;
129884
+ id: string;
129885
+ is_deleted: boolean;
129886
+ sequence_number: number;
129887
+ updated_at: string;
129888
+ };
129889
+ Insert: {
129890
+ connection_id: string;
129891
+ data: import("../integrations/supabase/types").Json;
129892
+ fetched_at?: string;
129893
+ floriday_id: string;
129894
+ id?: string;
129895
+ is_deleted?: boolean;
129896
+ sequence_number?: number;
129897
+ updated_at?: string;
129898
+ };
129899
+ Update: {
129900
+ connection_id?: string;
129901
+ data?: import("../integrations/supabase/types").Json;
129902
+ fetched_at?: string;
129903
+ floriday_id?: string;
129904
+ id?: string;
129905
+ is_deleted?: boolean;
129906
+ sequence_number?: number;
129907
+ updated_at?: string;
129908
+ };
129909
+ Relationships: [{
129910
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
129911
+ columns: ["connection_id"];
129912
+ isOneToOne: false;
129913
+ referencedRelation: "floriday_connections";
129914
+ referencedColumns: ["id"];
129915
+ }];
129916
+ };
130145
129917
  floriday_trips_cache: {
130146
129918
  Row: {
130147
129919
  carrier_organization_id: string | null;
@@ -130190,6 +129962,27 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
130190
129962
  referencedColumns: ["id"];
130191
129963
  }];
130192
129964
  };
129965
+ floriday_vbn_required_characteristics: {
129966
+ Row: {
129967
+ required_codes: string[];
129968
+ updated_at: string;
129969
+ updated_by: string | null;
129970
+ vbn_code: string;
129971
+ };
129972
+ Insert: {
129973
+ required_codes?: string[];
129974
+ updated_at?: string;
129975
+ updated_by?: string | null;
129976
+ vbn_code: string;
129977
+ };
129978
+ Update: {
129979
+ required_codes?: string[];
129980
+ updated_at?: string;
129981
+ updated_by?: string | null;
129982
+ vbn_code?: string;
129983
+ };
129984
+ Relationships: [];
129985
+ };
130193
129986
  floriday_warehouses_cache: {
130194
129987
  Row: {
130195
129988
  connection_id: string;
@@ -135163,9 +134956,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
135163
134956
  };
135164
134957
  twinfield_connections: {
135165
134958
  Row: {
135166
- access_token: string | null;
135167
- client_id: string;
135168
- client_secret: string | null;
134959
+ account_key: string | null;
135169
134960
  cluster_uri: string | null;
135170
134961
  company_code: string | null;
135171
134962
  company_name: string | null;
@@ -135177,15 +134968,11 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
135177
134968
  label: string | null;
135178
134969
  office_code: string | null;
135179
134970
  redirect_uri: string;
135180
- refresh_token: string | null;
135181
- token_expires_at: string | null;
135182
134971
  updated_at: string;
135183
134972
  user_id: string;
135184
134973
  };
135185
134974
  Insert: {
135186
- access_token?: string | null;
135187
- client_id: string;
135188
- client_secret?: string | null;
134975
+ account_key?: string | null;
135189
134976
  cluster_uri?: string | null;
135190
134977
  company_code?: string | null;
135191
134978
  company_name?: string | null;
@@ -135197,15 +134984,11 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
135197
134984
  label?: string | null;
135198
134985
  office_code?: string | null;
135199
134986
  redirect_uri: string;
135200
- refresh_token?: string | null;
135201
- token_expires_at?: string | null;
135202
134987
  updated_at?: string;
135203
134988
  user_id: string;
135204
134989
  };
135205
134990
  Update: {
135206
- access_token?: string | null;
135207
- client_id?: string;
135208
- client_secret?: string | null;
134991
+ account_key?: string | null;
135209
134992
  cluster_uri?: string | null;
135210
134993
  company_code?: string | null;
135211
134994
  company_name?: string | null;
@@ -135217,53 +135000,6 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
135217
135000
  label?: string | null;
135218
135001
  office_code?: string | null;
135219
135002
  redirect_uri?: string;
135220
- refresh_token?: string | null;
135221
- token_expires_at?: string | null;
135222
- updated_at?: string;
135223
- user_id?: string;
135224
- };
135225
- Relationships: [];
135226
- };
135227
- twinfield_credentials: {
135228
- Row: {
135229
- administration_code: string | null;
135230
- client_id: string | null;
135231
- client_secret: string | null;
135232
- cluster: string | null;
135233
- connected_at: string | null;
135234
- created_at: string;
135235
- environment: string | null;
135236
- id: string;
135237
- redirect_uri: string | null;
135238
- refresh_token: string | null;
135239
- updated_at: string;
135240
- user_id: string;
135241
- };
135242
- Insert: {
135243
- administration_code?: string | null;
135244
- client_id?: string | null;
135245
- client_secret?: string | null;
135246
- cluster?: string | null;
135247
- connected_at?: string | null;
135248
- created_at?: string;
135249
- environment?: string | null;
135250
- id?: string;
135251
- redirect_uri?: string | null;
135252
- refresh_token?: string | null;
135253
- updated_at?: string;
135254
- user_id: string;
135255
- };
135256
- Update: {
135257
- administration_code?: string | null;
135258
- client_id?: string | null;
135259
- client_secret?: string | null;
135260
- cluster?: string | null;
135261
- connected_at?: string | null;
135262
- created_at?: string;
135263
- environment?: string | null;
135264
- id?: string;
135265
- redirect_uri?: string | null;
135266
- refresh_token?: string | null;
135267
135003
  updated_at?: string;
135268
135004
  user_id?: string;
135269
135005
  };
@@ -135764,30 +135500,6 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
135764
135500
  referencedColumns: ["id"];
135765
135501
  }];
135766
135502
  };
135767
- twinfield_oauth_state: {
135768
- Row: {
135769
- created_at: string;
135770
- environment: string;
135771
- nonce: string | null;
135772
- state: string;
135773
- user_id: string;
135774
- };
135775
- Insert: {
135776
- created_at?: string;
135777
- environment: string;
135778
- nonce?: string | null;
135779
- state: string;
135780
- user_id: string;
135781
- };
135782
- Update: {
135783
- created_at?: string;
135784
- environment?: string;
135785
- nonce?: string | null;
135786
- state?: string;
135787
- user_id?: string;
135788
- };
135789
- Relationships: [];
135790
- };
135791
135503
  twinfield_push_queue: {
135792
135504
  Row: {
135793
135505
  action: string;
@@ -135953,39 +135665,6 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
135953
135665
  referencedColumns: ["id"];
135954
135666
  }];
135955
135667
  };
135956
- twinfield_token_refresh_log: {
135957
- Row: {
135958
- attempted_at: string;
135959
- connection_id: string;
135960
- error: string | null;
135961
- expires_at: string | null;
135962
- id: string;
135963
- ok: boolean;
135964
- };
135965
- Insert: {
135966
- attempted_at?: string;
135967
- connection_id: string;
135968
- error?: string | null;
135969
- expires_at?: string | null;
135970
- id?: string;
135971
- ok: boolean;
135972
- };
135973
- Update: {
135974
- attempted_at?: string;
135975
- connection_id?: string;
135976
- error?: string | null;
135977
- expires_at?: string | null;
135978
- id?: string;
135979
- ok?: boolean;
135980
- };
135981
- Relationships: [{
135982
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
135983
- columns: ["connection_id"];
135984
- isOneToOne: false;
135985
- referencedRelation: "twinfield_connections";
135986
- referencedColumns: ["id"];
135987
- }];
135988
- };
135989
135668
  user_roles: {
135990
135669
  Row: {
135991
135670
  created_at: string;
@@ -138426,15 +138105,16 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
138426
138105
  };
138427
138106
  Returns: undefined;
138428
138107
  };
138429
- twinfield_decrypt: {
138108
+ twinfield_upsert_connection_by_account_key: {
138430
138109
  Args: {
138431
- cipher: string;
138432
- };
138433
- Returns: string;
138434
- };
138435
- twinfield_encrypt: {
138436
- Args: {
138437
- plain: string;
138110
+ p_account_key: string;
138111
+ p_cluster_uri?: string;
138112
+ p_company_code?: string;
138113
+ p_company_name?: string;
138114
+ p_environment: string;
138115
+ p_office_code?: string;
138116
+ p_status?: string;
138117
+ p_user_id: string;
138438
138118
  };
138439
138119
  Returns: string;
138440
138120
  };