@flowselections/floriday-afhandeling-module 1.0.20 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist-lib/index.d.ts +3 -0
  2. package/dist-lib/index.d.ts.map +1 -1
  3. package/dist-lib/index.js +3 -0
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts +93 -125
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  6. package/dist-lib/integrations/supabase/client.d.ts +93 -125
  7. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.server.d.ts +93 -125
  9. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/types.d.ts +95 -127
  11. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  12. package/dist-lib/lib/afhandelingSettings.functions.d.ts +186 -250
  13. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  14. package/dist-lib/lib/carriers.functions.d.ts +465 -625
  15. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/cartAssignments.functions.d.ts +465 -625
  17. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/cartControl.functions.d.ts +930 -1250
  19. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday.functions.d.ts +93 -125
  21. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +372 -500
  23. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +93 -125
  25. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +186 -250
  27. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +744 -1000
  29. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +372 -500
  31. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/serverRoutes/dispatchCarrierSignups.handler.d.ts +1 -1
  33. package/dist-lib/lib/serverRoutes/dispatchCarrierSignups.handler.d.ts.map +1 -1
  34. package/dist-lib/lib/serverRoutes/dispatchCarrierSignups.handler.js +6 -1
  35. package/dist-lib/lib/serverRoutes/logisticsTick.handler.d.ts +1 -1
  36. package/dist-lib/lib/serverRoutes/logisticsTick.handler.d.ts.map +1 -1
  37. package/dist-lib/lib/serverRoutes/logisticsTick.handler.js +6 -1
  38. package/package.json +34 -1
@@ -4586,6 +4586,27 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
4586
4586
  referencedColumns: ["id"];
4587
4587
  }];
4588
4588
  };
4589
+ floriday_continuous_stock_cache: {
4590
+ Row: {
4591
+ connection_id: string;
4592
+ fetched_at: string;
4593
+ number_of_pieces: number;
4594
+ trade_item_id: string;
4595
+ };
4596
+ Insert: {
4597
+ connection_id: string;
4598
+ fetched_at?: string;
4599
+ number_of_pieces?: number;
4600
+ trade_item_id: string;
4601
+ };
4602
+ Update: {
4603
+ connection_id?: string;
4604
+ fetched_at?: string;
4605
+ number_of_pieces?: number;
4606
+ trade_item_id?: string;
4607
+ };
4608
+ Relationships: [];
4609
+ };
4589
4610
  floriday_continuous_stock_queue: {
4590
4611
  Row: {
4591
4612
  attempts: number;
@@ -5564,6 +5585,45 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
5564
5585
  referencedColumns: ["id"];
5565
5586
  }];
5566
5587
  };
5588
+ floriday_trade_settings_customers_cache: {
5589
+ Row: {
5590
+ connection_id: string;
5591
+ data: import("../integrations/supabase/types").Json;
5592
+ fetched_at: string;
5593
+ floriday_id: string;
5594
+ id: string;
5595
+ is_deleted: boolean;
5596
+ sequence_number: number;
5597
+ updated_at: string;
5598
+ };
5599
+ Insert: {
5600
+ connection_id: string;
5601
+ data: import("../integrations/supabase/types").Json;
5602
+ fetched_at?: string;
5603
+ floriday_id: string;
5604
+ id?: string;
5605
+ is_deleted?: boolean;
5606
+ sequence_number?: number;
5607
+ updated_at?: string;
5608
+ };
5609
+ Update: {
5610
+ connection_id?: string;
5611
+ data?: import("../integrations/supabase/types").Json;
5612
+ fetched_at?: string;
5613
+ floriday_id?: string;
5614
+ id?: string;
5615
+ is_deleted?: boolean;
5616
+ sequence_number?: number;
5617
+ updated_at?: string;
5618
+ };
5619
+ Relationships: [{
5620
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5621
+ columns: ["connection_id"];
5622
+ isOneToOne: false;
5623
+ referencedRelation: "floriday_connections";
5624
+ referencedColumns: ["id"];
5625
+ }];
5626
+ };
5567
5627
  floriday_trips_cache: {
5568
5628
  Row: {
5569
5629
  carrier_organization_id: string | null;
@@ -5612,6 +5672,27 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
5612
5672
  referencedColumns: ["id"];
5613
5673
  }];
5614
5674
  };
5675
+ floriday_vbn_required_characteristics: {
5676
+ Row: {
5677
+ required_codes: string[];
5678
+ updated_at: string;
5679
+ updated_by: string | null;
5680
+ vbn_code: string;
5681
+ };
5682
+ Insert: {
5683
+ required_codes?: string[];
5684
+ updated_at?: string;
5685
+ updated_by?: string | null;
5686
+ vbn_code: string;
5687
+ };
5688
+ Update: {
5689
+ required_codes?: string[];
5690
+ updated_at?: string;
5691
+ updated_by?: string | null;
5692
+ vbn_code?: string;
5693
+ };
5694
+ Relationships: [];
5695
+ };
5615
5696
  floriday_warehouses_cache: {
5616
5697
  Row: {
5617
5698
  connection_id: string;
@@ -10585,9 +10666,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10585
10666
  };
10586
10667
  twinfield_connections: {
10587
10668
  Row: {
10588
- access_token: string | null;
10589
- client_id: string;
10590
- client_secret: string | null;
10669
+ account_key: string | null;
10591
10670
  cluster_uri: string | null;
10592
10671
  company_code: string | null;
10593
10672
  company_name: string | null;
@@ -10599,15 +10678,11 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10599
10678
  label: string | null;
10600
10679
  office_code: string | null;
10601
10680
  redirect_uri: string;
10602
- refresh_token: string | null;
10603
- token_expires_at: string | null;
10604
10681
  updated_at: string;
10605
10682
  user_id: string;
10606
10683
  };
10607
10684
  Insert: {
10608
- access_token?: string | null;
10609
- client_id: string;
10610
- client_secret?: string | null;
10685
+ account_key?: string | null;
10611
10686
  cluster_uri?: string | null;
10612
10687
  company_code?: string | null;
10613
10688
  company_name?: string | null;
@@ -10619,15 +10694,11 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10619
10694
  label?: string | null;
10620
10695
  office_code?: string | null;
10621
10696
  redirect_uri: string;
10622
- refresh_token?: string | null;
10623
- token_expires_at?: string | null;
10624
10697
  updated_at?: string;
10625
10698
  user_id: string;
10626
10699
  };
10627
10700
  Update: {
10628
- access_token?: string | null;
10629
- client_id?: string;
10630
- client_secret?: string | null;
10701
+ account_key?: string | null;
10631
10702
  cluster_uri?: string | null;
10632
10703
  company_code?: string | null;
10633
10704
  company_name?: string | null;
@@ -10639,53 +10710,6 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10639
10710
  label?: string | null;
10640
10711
  office_code?: string | null;
10641
10712
  redirect_uri?: string;
10642
- refresh_token?: string | null;
10643
- token_expires_at?: string | null;
10644
- updated_at?: string;
10645
- user_id?: string;
10646
- };
10647
- Relationships: [];
10648
- };
10649
- twinfield_credentials: {
10650
- Row: {
10651
- administration_code: string | null;
10652
- client_id: string | null;
10653
- client_secret: string | null;
10654
- cluster: string | null;
10655
- connected_at: string | null;
10656
- created_at: string;
10657
- environment: string | null;
10658
- id: string;
10659
- redirect_uri: string | null;
10660
- refresh_token: string | null;
10661
- updated_at: string;
10662
- user_id: string;
10663
- };
10664
- Insert: {
10665
- administration_code?: string | null;
10666
- client_id?: string | null;
10667
- client_secret?: string | null;
10668
- cluster?: string | null;
10669
- connected_at?: string | null;
10670
- created_at?: string;
10671
- environment?: string | null;
10672
- id?: string;
10673
- redirect_uri?: string | null;
10674
- refresh_token?: string | null;
10675
- updated_at?: string;
10676
- user_id: string;
10677
- };
10678
- Update: {
10679
- administration_code?: string | null;
10680
- client_id?: string | null;
10681
- client_secret?: string | null;
10682
- cluster?: string | null;
10683
- connected_at?: string | null;
10684
- created_at?: string;
10685
- environment?: string | null;
10686
- id?: string;
10687
- redirect_uri?: string | null;
10688
- refresh_token?: string | null;
10689
10713
  updated_at?: string;
10690
10714
  user_id?: string;
10691
10715
  };
@@ -11186,30 +11210,6 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11186
11210
  referencedColumns: ["id"];
11187
11211
  }];
11188
11212
  };
11189
- twinfield_oauth_state: {
11190
- Row: {
11191
- created_at: string;
11192
- environment: string;
11193
- nonce: string | null;
11194
- state: string;
11195
- user_id: string;
11196
- };
11197
- Insert: {
11198
- created_at?: string;
11199
- environment: string;
11200
- nonce?: string | null;
11201
- state: string;
11202
- user_id: string;
11203
- };
11204
- Update: {
11205
- created_at?: string;
11206
- environment?: string;
11207
- nonce?: string | null;
11208
- state?: string;
11209
- user_id?: string;
11210
- };
11211
- Relationships: [];
11212
- };
11213
11213
  twinfield_push_queue: {
11214
11214
  Row: {
11215
11215
  action: string;
@@ -11375,39 +11375,6 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11375
11375
  referencedColumns: ["id"];
11376
11376
  }];
11377
11377
  };
11378
- twinfield_token_refresh_log: {
11379
- Row: {
11380
- attempted_at: string;
11381
- connection_id: string;
11382
- error: string | null;
11383
- expires_at: string | null;
11384
- id: string;
11385
- ok: boolean;
11386
- };
11387
- Insert: {
11388
- attempted_at?: string;
11389
- connection_id: string;
11390
- error?: string | null;
11391
- expires_at?: string | null;
11392
- id?: string;
11393
- ok: boolean;
11394
- };
11395
- Update: {
11396
- attempted_at?: string;
11397
- connection_id?: string;
11398
- error?: string | null;
11399
- expires_at?: string | null;
11400
- id?: string;
11401
- ok?: boolean;
11402
- };
11403
- Relationships: [{
11404
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11405
- columns: ["connection_id"];
11406
- isOneToOne: false;
11407
- referencedRelation: "twinfield_connections";
11408
- referencedColumns: ["id"];
11409
- }];
11410
- };
11411
11378
  user_roles: {
11412
11379
  Row: {
11413
11380
  created_at: string;
@@ -13848,15 +13815,16 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13848
13815
  };
13849
13816
  Returns: undefined;
13850
13817
  };
13851
- twinfield_decrypt: {
13818
+ twinfield_upsert_connection_by_account_key: {
13852
13819
  Args: {
13853
- cipher: string;
13854
- };
13855
- Returns: string;
13856
- };
13857
- twinfield_encrypt: {
13858
- Args: {
13859
- plain: string;
13820
+ p_account_key: string;
13821
+ p_cluster_uri?: string;
13822
+ p_company_code?: string;
13823
+ p_company_name?: string;
13824
+ p_environment: string;
13825
+ p_office_code?: string;
13826
+ p_status?: string;
13827
+ p_user_id: string;
13860
13828
  };
13861
13829
  Returns: string;
13862
13830
  };
@@ -18420,6 +18388,27 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
18420
18388
  referencedColumns: ["id"];
18421
18389
  }];
18422
18390
  };
18391
+ floriday_continuous_stock_cache: {
18392
+ Row: {
18393
+ connection_id: string;
18394
+ fetched_at: string;
18395
+ number_of_pieces: number;
18396
+ trade_item_id: string;
18397
+ };
18398
+ Insert: {
18399
+ connection_id: string;
18400
+ fetched_at?: string;
18401
+ number_of_pieces?: number;
18402
+ trade_item_id: string;
18403
+ };
18404
+ Update: {
18405
+ connection_id?: string;
18406
+ fetched_at?: string;
18407
+ number_of_pieces?: number;
18408
+ trade_item_id?: string;
18409
+ };
18410
+ Relationships: [];
18411
+ };
18423
18412
  floriday_continuous_stock_queue: {
18424
18413
  Row: {
18425
18414
  attempts: number;
@@ -19398,6 +19387,45 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
19398
19387
  referencedColumns: ["id"];
19399
19388
  }];
19400
19389
  };
19390
+ floriday_trade_settings_customers_cache: {
19391
+ Row: {
19392
+ connection_id: string;
19393
+ data: import("../integrations/supabase/types").Json;
19394
+ fetched_at: string;
19395
+ floriday_id: string;
19396
+ id: string;
19397
+ is_deleted: boolean;
19398
+ sequence_number: number;
19399
+ updated_at: string;
19400
+ };
19401
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
19422
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19423
+ columns: ["connection_id"];
19424
+ isOneToOne: false;
19425
+ referencedRelation: "floriday_connections";
19426
+ referencedColumns: ["id"];
19427
+ }];
19428
+ };
19401
19429
  floriday_trips_cache: {
19402
19430
  Row: {
19403
19431
  carrier_organization_id: string | null;
@@ -19446,6 +19474,27 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
19446
19474
  referencedColumns: ["id"];
19447
19475
  }];
19448
19476
  };
19477
+ floriday_vbn_required_characteristics: {
19478
+ Row: {
19479
+ required_codes: string[];
19480
+ updated_at: string;
19481
+ updated_by: string | null;
19482
+ vbn_code: string;
19483
+ };
19484
+ Insert: {
19485
+ required_codes?: string[];
19486
+ updated_at?: string;
19487
+ updated_by?: string | null;
19488
+ vbn_code: string;
19489
+ };
19490
+ Update: {
19491
+ required_codes?: string[];
19492
+ updated_at?: string;
19493
+ updated_by?: string | null;
19494
+ vbn_code?: string;
19495
+ };
19496
+ Relationships: [];
19497
+ };
19449
19498
  floriday_warehouses_cache: {
19450
19499
  Row: {
19451
19500
  connection_id: string;
@@ -24419,9 +24468,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
24419
24468
  };
24420
24469
  twinfield_connections: {
24421
24470
  Row: {
24422
- access_token: string | null;
24423
- client_id: string;
24424
- client_secret: string | null;
24471
+ account_key: string | null;
24425
24472
  cluster_uri: string | null;
24426
24473
  company_code: string | null;
24427
24474
  company_name: string | null;
@@ -24433,15 +24480,11 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
24433
24480
  label: string | null;
24434
24481
  office_code: string | null;
24435
24482
  redirect_uri: string;
24436
- refresh_token: string | null;
24437
- token_expires_at: string | null;
24438
24483
  updated_at: string;
24439
24484
  user_id: string;
24440
24485
  };
24441
24486
  Insert: {
24442
- access_token?: string | null;
24443
- client_id: string;
24444
- client_secret?: string | null;
24487
+ account_key?: string | null;
24445
24488
  cluster_uri?: string | null;
24446
24489
  company_code?: string | null;
24447
24490
  company_name?: string | null;
@@ -24453,15 +24496,11 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
24453
24496
  label?: string | null;
24454
24497
  office_code?: string | null;
24455
24498
  redirect_uri: string;
24456
- refresh_token?: string | null;
24457
- token_expires_at?: string | null;
24458
24499
  updated_at?: string;
24459
24500
  user_id: string;
24460
24501
  };
24461
24502
  Update: {
24462
- access_token?: string | null;
24463
- client_id?: string;
24464
- client_secret?: string | null;
24503
+ account_key?: string | null;
24465
24504
  cluster_uri?: string | null;
24466
24505
  company_code?: string | null;
24467
24506
  company_name?: string | null;
@@ -24473,53 +24512,6 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
24473
24512
  label?: string | null;
24474
24513
  office_code?: string | null;
24475
24514
  redirect_uri?: string;
24476
- refresh_token?: string | null;
24477
- token_expires_at?: string | null;
24478
- updated_at?: string;
24479
- user_id?: string;
24480
- };
24481
- Relationships: [];
24482
- };
24483
- twinfield_credentials: {
24484
- Row: {
24485
- administration_code: string | null;
24486
- client_id: string | null;
24487
- client_secret: string | null;
24488
- cluster: string | null;
24489
- connected_at: string | null;
24490
- created_at: string;
24491
- environment: string | null;
24492
- id: string;
24493
- redirect_uri: string | null;
24494
- refresh_token: string | null;
24495
- updated_at: string;
24496
- user_id: string;
24497
- };
24498
- Insert: {
24499
- administration_code?: string | null;
24500
- client_id?: string | null;
24501
- client_secret?: string | null;
24502
- cluster?: string | null;
24503
- connected_at?: string | null;
24504
- created_at?: string;
24505
- environment?: string | null;
24506
- id?: string;
24507
- redirect_uri?: string | null;
24508
- refresh_token?: string | null;
24509
- updated_at?: string;
24510
- user_id: string;
24511
- };
24512
- Update: {
24513
- administration_code?: string | null;
24514
- client_id?: string | null;
24515
- client_secret?: string | null;
24516
- cluster?: string | null;
24517
- connected_at?: string | null;
24518
- created_at?: string;
24519
- environment?: string | null;
24520
- id?: string;
24521
- redirect_uri?: string | null;
24522
- refresh_token?: string | null;
24523
24515
  updated_at?: string;
24524
24516
  user_id?: string;
24525
24517
  };
@@ -25020,30 +25012,6 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
25020
25012
  referencedColumns: ["id"];
25021
25013
  }];
25022
25014
  };
25023
- twinfield_oauth_state: {
25024
- Row: {
25025
- created_at: string;
25026
- environment: string;
25027
- nonce: string | null;
25028
- state: string;
25029
- user_id: string;
25030
- };
25031
- Insert: {
25032
- created_at?: string;
25033
- environment: string;
25034
- nonce?: string | null;
25035
- state: string;
25036
- user_id: string;
25037
- };
25038
- Update: {
25039
- created_at?: string;
25040
- environment?: string;
25041
- nonce?: string | null;
25042
- state?: string;
25043
- user_id?: string;
25044
- };
25045
- Relationships: [];
25046
- };
25047
25015
  twinfield_push_queue: {
25048
25016
  Row: {
25049
25017
  action: string;
@@ -25209,39 +25177,6 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
25209
25177
  referencedColumns: ["id"];
25210
25178
  }];
25211
25179
  };
25212
- twinfield_token_refresh_log: {
25213
- Row: {
25214
- attempted_at: string;
25215
- connection_id: string;
25216
- error: string | null;
25217
- expires_at: string | null;
25218
- id: string;
25219
- ok: boolean;
25220
- };
25221
- Insert: {
25222
- attempted_at?: string;
25223
- connection_id: string;
25224
- error?: string | null;
25225
- expires_at?: string | null;
25226
- id?: string;
25227
- ok: boolean;
25228
- };
25229
- Update: {
25230
- attempted_at?: string;
25231
- connection_id?: string;
25232
- error?: string | null;
25233
- expires_at?: string | null;
25234
- id?: string;
25235
- ok?: boolean;
25236
- };
25237
- Relationships: [{
25238
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25239
- columns: ["connection_id"];
25240
- isOneToOne: false;
25241
- referencedRelation: "twinfield_connections";
25242
- referencedColumns: ["id"];
25243
- }];
25244
- };
25245
25180
  user_roles: {
25246
25181
  Row: {
25247
25182
  created_at: string;
@@ -27682,15 +27617,16 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
27682
27617
  };
27683
27618
  Returns: undefined;
27684
27619
  };
27685
- twinfield_decrypt: {
27620
+ twinfield_upsert_connection_by_account_key: {
27686
27621
  Args: {
27687
- cipher: string;
27688
- };
27689
- Returns: string;
27690
- };
27691
- twinfield_encrypt: {
27692
- Args: {
27693
- plain: string;
27622
+ p_account_key: string;
27623
+ p_cluster_uri?: string;
27624
+ p_company_code?: string;
27625
+ p_company_name?: string;
27626
+ p_environment: string;
27627
+ p_office_code?: string;
27628
+ p_status?: string;
27629
+ p_user_id: string;
27694
27630
  };
27695
27631
  Returns: string;
27696
27632
  };
@@ -32258,6 +32194,27 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
32258
32194
  referencedColumns: ["id"];
32259
32195
  }];
32260
32196
  };
32197
+ floriday_continuous_stock_cache: {
32198
+ Row: {
32199
+ connection_id: string;
32200
+ fetched_at: string;
32201
+ number_of_pieces: number;
32202
+ trade_item_id: string;
32203
+ };
32204
+ Insert: {
32205
+ connection_id: string;
32206
+ fetched_at?: string;
32207
+ number_of_pieces?: number;
32208
+ trade_item_id: string;
32209
+ };
32210
+ Update: {
32211
+ connection_id?: string;
32212
+ fetched_at?: string;
32213
+ number_of_pieces?: number;
32214
+ trade_item_id?: string;
32215
+ };
32216
+ Relationships: [];
32217
+ };
32261
32218
  floriday_continuous_stock_queue: {
32262
32219
  Row: {
32263
32220
  attempts: number;
@@ -33236,6 +33193,45 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
33236
33193
  referencedColumns: ["id"];
33237
33194
  }];
33238
33195
  };
33196
+ floriday_trade_settings_customers_cache: {
33197
+ Row: {
33198
+ connection_id: string;
33199
+ data: import("../integrations/supabase/types").Json;
33200
+ fetched_at: string;
33201
+ floriday_id: string;
33202
+ id: string;
33203
+ is_deleted: boolean;
33204
+ sequence_number: number;
33205
+ updated_at: string;
33206
+ };
33207
+ Insert: {
33208
+ connection_id: string;
33209
+ data: import("../integrations/supabase/types").Json;
33210
+ fetched_at?: string;
33211
+ floriday_id: string;
33212
+ id?: string;
33213
+ is_deleted?: boolean;
33214
+ sequence_number?: number;
33215
+ updated_at?: string;
33216
+ };
33217
+ Update: {
33218
+ connection_id?: string;
33219
+ data?: import("../integrations/supabase/types").Json;
33220
+ fetched_at?: string;
33221
+ floriday_id?: string;
33222
+ id?: string;
33223
+ is_deleted?: boolean;
33224
+ sequence_number?: number;
33225
+ updated_at?: string;
33226
+ };
33227
+ Relationships: [{
33228
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33229
+ columns: ["connection_id"];
33230
+ isOneToOne: false;
33231
+ referencedRelation: "floriday_connections";
33232
+ referencedColumns: ["id"];
33233
+ }];
33234
+ };
33239
33235
  floriday_trips_cache: {
33240
33236
  Row: {
33241
33237
  carrier_organization_id: string | null;
@@ -33284,6 +33280,27 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
33284
33280
  referencedColumns: ["id"];
33285
33281
  }];
33286
33282
  };
33283
+ floriday_vbn_required_characteristics: {
33284
+ Row: {
33285
+ required_codes: string[];
33286
+ updated_at: string;
33287
+ updated_by: string | null;
33288
+ vbn_code: string;
33289
+ };
33290
+ Insert: {
33291
+ required_codes?: string[];
33292
+ updated_at?: string;
33293
+ updated_by?: string | null;
33294
+ vbn_code: string;
33295
+ };
33296
+ Update: {
33297
+ required_codes?: string[];
33298
+ updated_at?: string;
33299
+ updated_by?: string | null;
33300
+ vbn_code?: string;
33301
+ };
33302
+ Relationships: [];
33303
+ };
33287
33304
  floriday_warehouses_cache: {
33288
33305
  Row: {
33289
33306
  connection_id: string;
@@ -38257,9 +38274,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
38257
38274
  };
38258
38275
  twinfield_connections: {
38259
38276
  Row: {
38260
- access_token: string | null;
38261
- client_id: string;
38262
- client_secret: string | null;
38277
+ account_key: string | null;
38263
38278
  cluster_uri: string | null;
38264
38279
  company_code: string | null;
38265
38280
  company_name: string | null;
@@ -38271,15 +38286,11 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
38271
38286
  label: string | null;
38272
38287
  office_code: string | null;
38273
38288
  redirect_uri: string;
38274
- refresh_token: string | null;
38275
- token_expires_at: string | null;
38276
38289
  updated_at: string;
38277
38290
  user_id: string;
38278
38291
  };
38279
38292
  Insert: {
38280
- access_token?: string | null;
38281
- client_id: string;
38282
- client_secret?: string | null;
38293
+ account_key?: string | null;
38283
38294
  cluster_uri?: string | null;
38284
38295
  company_code?: string | null;
38285
38296
  company_name?: string | null;
@@ -38291,15 +38302,11 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
38291
38302
  label?: string | null;
38292
38303
  office_code?: string | null;
38293
38304
  redirect_uri: string;
38294
- refresh_token?: string | null;
38295
- token_expires_at?: string | null;
38296
38305
  updated_at?: string;
38297
38306
  user_id: string;
38298
38307
  };
38299
38308
  Update: {
38300
- access_token?: string | null;
38301
- client_id?: string;
38302
- client_secret?: string | null;
38309
+ account_key?: string | null;
38303
38310
  cluster_uri?: string | null;
38304
38311
  company_code?: string | null;
38305
38312
  company_name?: string | null;
@@ -38311,53 +38318,6 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
38311
38318
  label?: string | null;
38312
38319
  office_code?: string | null;
38313
38320
  redirect_uri?: string;
38314
- refresh_token?: string | null;
38315
- token_expires_at?: string | null;
38316
- updated_at?: string;
38317
- user_id?: string;
38318
- };
38319
- Relationships: [];
38320
- };
38321
- twinfield_credentials: {
38322
- Row: {
38323
- administration_code: string | null;
38324
- client_id: string | null;
38325
- client_secret: string | null;
38326
- cluster: string | null;
38327
- connected_at: string | null;
38328
- created_at: string;
38329
- environment: string | null;
38330
- id: string;
38331
- redirect_uri: string | null;
38332
- refresh_token: string | null;
38333
- updated_at: string;
38334
- user_id: string;
38335
- };
38336
- Insert: {
38337
- administration_code?: string | null;
38338
- client_id?: string | null;
38339
- client_secret?: string | null;
38340
- cluster?: string | null;
38341
- connected_at?: string | null;
38342
- created_at?: string;
38343
- environment?: string | null;
38344
- id?: string;
38345
- redirect_uri?: string | null;
38346
- refresh_token?: string | null;
38347
- updated_at?: string;
38348
- user_id: string;
38349
- };
38350
- Update: {
38351
- administration_code?: string | null;
38352
- client_id?: string | null;
38353
- client_secret?: string | null;
38354
- cluster?: string | null;
38355
- connected_at?: string | null;
38356
- created_at?: string;
38357
- environment?: string | null;
38358
- id?: string;
38359
- redirect_uri?: string | null;
38360
- refresh_token?: string | null;
38361
38321
  updated_at?: string;
38362
38322
  user_id?: string;
38363
38323
  };
@@ -38858,30 +38818,6 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
38858
38818
  referencedColumns: ["id"];
38859
38819
  }];
38860
38820
  };
38861
- twinfield_oauth_state: {
38862
- Row: {
38863
- created_at: string;
38864
- environment: string;
38865
- nonce: string | null;
38866
- state: string;
38867
- user_id: string;
38868
- };
38869
- Insert: {
38870
- created_at?: string;
38871
- environment: string;
38872
- nonce?: string | null;
38873
- state: string;
38874
- user_id: string;
38875
- };
38876
- Update: {
38877
- created_at?: string;
38878
- environment?: string;
38879
- nonce?: string | null;
38880
- state?: string;
38881
- user_id?: string;
38882
- };
38883
- Relationships: [];
38884
- };
38885
38821
  twinfield_push_queue: {
38886
38822
  Row: {
38887
38823
  action: string;
@@ -39047,39 +38983,6 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
39047
38983
  referencedColumns: ["id"];
39048
38984
  }];
39049
38985
  };
39050
- twinfield_token_refresh_log: {
39051
- Row: {
39052
- attempted_at: string;
39053
- connection_id: string;
39054
- error: string | null;
39055
- expires_at: string | null;
39056
- id: string;
39057
- ok: boolean;
39058
- };
39059
- Insert: {
39060
- attempted_at?: string;
39061
- connection_id: string;
39062
- error?: string | null;
39063
- expires_at?: string | null;
39064
- id?: string;
39065
- ok: boolean;
39066
- };
39067
- Update: {
39068
- attempted_at?: string;
39069
- connection_id?: string;
39070
- error?: string | null;
39071
- expires_at?: string | null;
39072
- id?: string;
39073
- ok?: boolean;
39074
- };
39075
- Relationships: [{
39076
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39077
- columns: ["connection_id"];
39078
- isOneToOne: false;
39079
- referencedRelation: "twinfield_connections";
39080
- referencedColumns: ["id"];
39081
- }];
39082
- };
39083
38986
  user_roles: {
39084
38987
  Row: {
39085
38988
  created_at: string;
@@ -41520,15 +41423,16 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
41520
41423
  };
41521
41424
  Returns: undefined;
41522
41425
  };
41523
- twinfield_decrypt: {
41524
- Args: {
41525
- cipher: string;
41526
- };
41527
- Returns: string;
41528
- };
41529
- twinfield_encrypt: {
41426
+ twinfield_upsert_connection_by_account_key: {
41530
41427
  Args: {
41531
- plain: string;
41428
+ p_account_key: string;
41429
+ p_cluster_uri?: string;
41430
+ p_company_code?: string;
41431
+ p_company_name?: string;
41432
+ p_environment: string;
41433
+ p_office_code?: string;
41434
+ p_status?: string;
41435
+ p_user_id: string;
41532
41436
  };
41533
41437
  Returns: string;
41534
41438
  };
@@ -46098,6 +46002,27 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
46098
46002
  referencedColumns: ["id"];
46099
46003
  }];
46100
46004
  };
46005
+ floriday_continuous_stock_cache: {
46006
+ Row: {
46007
+ connection_id: string;
46008
+ fetched_at: string;
46009
+ number_of_pieces: number;
46010
+ trade_item_id: string;
46011
+ };
46012
+ Insert: {
46013
+ connection_id: string;
46014
+ fetched_at?: string;
46015
+ number_of_pieces?: number;
46016
+ trade_item_id: string;
46017
+ };
46018
+ Update: {
46019
+ connection_id?: string;
46020
+ fetched_at?: string;
46021
+ number_of_pieces?: number;
46022
+ trade_item_id?: string;
46023
+ };
46024
+ Relationships: [];
46025
+ };
46101
46026
  floriday_continuous_stock_queue: {
46102
46027
  Row: {
46103
46028
  attempts: number;
@@ -47076,6 +47001,45 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
47076
47001
  referencedColumns: ["id"];
47077
47002
  }];
47078
47003
  };
47004
+ floriday_trade_settings_customers_cache: {
47005
+ Row: {
47006
+ connection_id: string;
47007
+ data: import("../integrations/supabase/types").Json;
47008
+ fetched_at: string;
47009
+ floriday_id: string;
47010
+ id: string;
47011
+ is_deleted: boolean;
47012
+ sequence_number: number;
47013
+ updated_at: string;
47014
+ };
47015
+ Insert: {
47016
+ connection_id: string;
47017
+ data: import("../integrations/supabase/types").Json;
47018
+ fetched_at?: string;
47019
+ floriday_id: string;
47020
+ id?: string;
47021
+ is_deleted?: boolean;
47022
+ sequence_number?: number;
47023
+ updated_at?: string;
47024
+ };
47025
+ Update: {
47026
+ connection_id?: string;
47027
+ data?: import("../integrations/supabase/types").Json;
47028
+ fetched_at?: string;
47029
+ floriday_id?: string;
47030
+ id?: string;
47031
+ is_deleted?: boolean;
47032
+ sequence_number?: number;
47033
+ updated_at?: string;
47034
+ };
47035
+ Relationships: [{
47036
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
47037
+ columns: ["connection_id"];
47038
+ isOneToOne: false;
47039
+ referencedRelation: "floriday_connections";
47040
+ referencedColumns: ["id"];
47041
+ }];
47042
+ };
47079
47043
  floriday_trips_cache: {
47080
47044
  Row: {
47081
47045
  carrier_organization_id: string | null;
@@ -47124,6 +47088,27 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
47124
47088
  referencedColumns: ["id"];
47125
47089
  }];
47126
47090
  };
47091
+ floriday_vbn_required_characteristics: {
47092
+ Row: {
47093
+ required_codes: string[];
47094
+ updated_at: string;
47095
+ updated_by: string | null;
47096
+ vbn_code: string;
47097
+ };
47098
+ Insert: {
47099
+ required_codes?: string[];
47100
+ updated_at?: string;
47101
+ updated_by?: string | null;
47102
+ vbn_code: string;
47103
+ };
47104
+ Update: {
47105
+ required_codes?: string[];
47106
+ updated_at?: string;
47107
+ updated_by?: string | null;
47108
+ vbn_code?: string;
47109
+ };
47110
+ Relationships: [];
47111
+ };
47127
47112
  floriday_warehouses_cache: {
47128
47113
  Row: {
47129
47114
  connection_id: string;
@@ -52097,9 +52082,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
52097
52082
  };
52098
52083
  twinfield_connections: {
52099
52084
  Row: {
52100
- access_token: string | null;
52101
- client_id: string;
52102
- client_secret: string | null;
52085
+ account_key: string | null;
52103
52086
  cluster_uri: string | null;
52104
52087
  company_code: string | null;
52105
52088
  company_name: string | null;
@@ -52111,15 +52094,11 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
52111
52094
  label: string | null;
52112
52095
  office_code: string | null;
52113
52096
  redirect_uri: string;
52114
- refresh_token: string | null;
52115
- token_expires_at: string | null;
52116
52097
  updated_at: string;
52117
52098
  user_id: string;
52118
52099
  };
52119
52100
  Insert: {
52120
- access_token?: string | null;
52121
- client_id: string;
52122
- client_secret?: string | null;
52101
+ account_key?: string | null;
52123
52102
  cluster_uri?: string | null;
52124
52103
  company_code?: string | null;
52125
52104
  company_name?: string | null;
@@ -52131,15 +52110,11 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
52131
52110
  label?: string | null;
52132
52111
  office_code?: string | null;
52133
52112
  redirect_uri: string;
52134
- refresh_token?: string | null;
52135
- token_expires_at?: string | null;
52136
52113
  updated_at?: string;
52137
52114
  user_id: string;
52138
52115
  };
52139
52116
  Update: {
52140
- access_token?: string | null;
52141
- client_id?: string;
52142
- client_secret?: string | null;
52117
+ account_key?: string | null;
52143
52118
  cluster_uri?: string | null;
52144
52119
  company_code?: string | null;
52145
52120
  company_name?: string | null;
@@ -52151,53 +52126,6 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
52151
52126
  label?: string | null;
52152
52127
  office_code?: string | null;
52153
52128
  redirect_uri?: string;
52154
- refresh_token?: string | null;
52155
- token_expires_at?: string | null;
52156
- updated_at?: string;
52157
- user_id?: string;
52158
- };
52159
- Relationships: [];
52160
- };
52161
- twinfield_credentials: {
52162
- Row: {
52163
- administration_code: string | null;
52164
- client_id: string | null;
52165
- client_secret: string | null;
52166
- cluster: string | null;
52167
- connected_at: string | null;
52168
- created_at: string;
52169
- environment: string | null;
52170
- id: string;
52171
- redirect_uri: string | null;
52172
- refresh_token: string | null;
52173
- updated_at: string;
52174
- user_id: string;
52175
- };
52176
- Insert: {
52177
- administration_code?: string | null;
52178
- client_id?: string | null;
52179
- client_secret?: string | null;
52180
- cluster?: string | null;
52181
- connected_at?: string | null;
52182
- created_at?: string;
52183
- environment?: string | null;
52184
- id?: string;
52185
- redirect_uri?: string | null;
52186
- refresh_token?: string | null;
52187
- updated_at?: string;
52188
- user_id: string;
52189
- };
52190
- Update: {
52191
- administration_code?: string | null;
52192
- client_id?: string | null;
52193
- client_secret?: string | null;
52194
- cluster?: string | null;
52195
- connected_at?: string | null;
52196
- created_at?: string;
52197
- environment?: string | null;
52198
- id?: string;
52199
- redirect_uri?: string | null;
52200
- refresh_token?: string | null;
52201
52129
  updated_at?: string;
52202
52130
  user_id?: string;
52203
52131
  };
@@ -52698,30 +52626,6 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
52698
52626
  referencedColumns: ["id"];
52699
52627
  }];
52700
52628
  };
52701
- twinfield_oauth_state: {
52702
- Row: {
52703
- created_at: string;
52704
- environment: string;
52705
- nonce: string | null;
52706
- state: string;
52707
- user_id: string;
52708
- };
52709
- Insert: {
52710
- created_at?: string;
52711
- environment: string;
52712
- nonce?: string | null;
52713
- state: string;
52714
- user_id: string;
52715
- };
52716
- Update: {
52717
- created_at?: string;
52718
- environment?: string;
52719
- nonce?: string | null;
52720
- state?: string;
52721
- user_id?: string;
52722
- };
52723
- Relationships: [];
52724
- };
52725
52629
  twinfield_push_queue: {
52726
52630
  Row: {
52727
52631
  action: string;
@@ -52887,39 +52791,6 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
52887
52791
  referencedColumns: ["id"];
52888
52792
  }];
52889
52793
  };
52890
- twinfield_token_refresh_log: {
52891
- Row: {
52892
- attempted_at: string;
52893
- connection_id: string;
52894
- error: string | null;
52895
- expires_at: string | null;
52896
- id: string;
52897
- ok: boolean;
52898
- };
52899
- Insert: {
52900
- attempted_at?: string;
52901
- connection_id: string;
52902
- error?: string | null;
52903
- expires_at?: string | null;
52904
- id?: string;
52905
- ok: boolean;
52906
- };
52907
- Update: {
52908
- attempted_at?: string;
52909
- connection_id?: string;
52910
- error?: string | null;
52911
- expires_at?: string | null;
52912
- id?: string;
52913
- ok?: boolean;
52914
- };
52915
- Relationships: [{
52916
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
52917
- columns: ["connection_id"];
52918
- isOneToOne: false;
52919
- referencedRelation: "twinfield_connections";
52920
- referencedColumns: ["id"];
52921
- }];
52922
- };
52923
52794
  user_roles: {
52924
52795
  Row: {
52925
52796
  created_at: string;
@@ -55360,15 +55231,16 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
55360
55231
  };
55361
55232
  Returns: undefined;
55362
55233
  };
55363
- twinfield_decrypt: {
55234
+ twinfield_upsert_connection_by_account_key: {
55364
55235
  Args: {
55365
- cipher: string;
55366
- };
55367
- Returns: string;
55368
- };
55369
- twinfield_encrypt: {
55370
- Args: {
55371
- plain: string;
55236
+ p_account_key: string;
55237
+ p_cluster_uri?: string;
55238
+ p_company_code?: string;
55239
+ p_company_name?: string;
55240
+ p_environment: string;
55241
+ p_office_code?: string;
55242
+ p_status?: string;
55243
+ p_user_id: string;
55372
55244
  };
55373
55245
  Returns: string;
55374
55246
  };
@@ -59936,6 +59808,27 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
59936
59808
  referencedColumns: ["id"];
59937
59809
  }];
59938
59810
  };
59811
+ floriday_continuous_stock_cache: {
59812
+ Row: {
59813
+ connection_id: string;
59814
+ fetched_at: string;
59815
+ number_of_pieces: number;
59816
+ trade_item_id: string;
59817
+ };
59818
+ Insert: {
59819
+ connection_id: string;
59820
+ fetched_at?: string;
59821
+ number_of_pieces?: number;
59822
+ trade_item_id: string;
59823
+ };
59824
+ Update: {
59825
+ connection_id?: string;
59826
+ fetched_at?: string;
59827
+ number_of_pieces?: number;
59828
+ trade_item_id?: string;
59829
+ };
59830
+ Relationships: [];
59831
+ };
59939
59832
  floriday_continuous_stock_queue: {
59940
59833
  Row: {
59941
59834
  attempts: number;
@@ -60914,6 +60807,45 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
60914
60807
  referencedColumns: ["id"];
60915
60808
  }];
60916
60809
  };
60810
+ floriday_trade_settings_customers_cache: {
60811
+ Row: {
60812
+ connection_id: string;
60813
+ data: import("../integrations/supabase/types").Json;
60814
+ fetched_at: string;
60815
+ floriday_id: string;
60816
+ id: string;
60817
+ is_deleted: boolean;
60818
+ sequence_number: number;
60819
+ updated_at: string;
60820
+ };
60821
+ Insert: {
60822
+ connection_id: string;
60823
+ data: import("../integrations/supabase/types").Json;
60824
+ fetched_at?: string;
60825
+ floriday_id: string;
60826
+ id?: string;
60827
+ is_deleted?: boolean;
60828
+ sequence_number?: number;
60829
+ updated_at?: string;
60830
+ };
60831
+ Update: {
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
+ Relationships: [{
60842
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
60843
+ columns: ["connection_id"];
60844
+ isOneToOne: false;
60845
+ referencedRelation: "floriday_connections";
60846
+ referencedColumns: ["id"];
60847
+ }];
60848
+ };
60917
60849
  floriday_trips_cache: {
60918
60850
  Row: {
60919
60851
  carrier_organization_id: string | null;
@@ -60962,6 +60894,27 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
60962
60894
  referencedColumns: ["id"];
60963
60895
  }];
60964
60896
  };
60897
+ floriday_vbn_required_characteristics: {
60898
+ Row: {
60899
+ required_codes: string[];
60900
+ updated_at: string;
60901
+ updated_by: string | null;
60902
+ vbn_code: string;
60903
+ };
60904
+ Insert: {
60905
+ required_codes?: string[];
60906
+ updated_at?: string;
60907
+ updated_by?: string | null;
60908
+ vbn_code: string;
60909
+ };
60910
+ Update: {
60911
+ required_codes?: string[];
60912
+ updated_at?: string;
60913
+ updated_by?: string | null;
60914
+ vbn_code?: string;
60915
+ };
60916
+ Relationships: [];
60917
+ };
60965
60918
  floriday_warehouses_cache: {
60966
60919
  Row: {
60967
60920
  connection_id: string;
@@ -65935,9 +65888,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
65935
65888
  };
65936
65889
  twinfield_connections: {
65937
65890
  Row: {
65938
- access_token: string | null;
65939
- client_id: string;
65940
- client_secret: string | null;
65891
+ account_key: string | null;
65941
65892
  cluster_uri: string | null;
65942
65893
  company_code: string | null;
65943
65894
  company_name: string | null;
@@ -65949,15 +65900,11 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
65949
65900
  label: string | null;
65950
65901
  office_code: string | null;
65951
65902
  redirect_uri: string;
65952
- refresh_token: string | null;
65953
- token_expires_at: string | null;
65954
65903
  updated_at: string;
65955
65904
  user_id: string;
65956
65905
  };
65957
65906
  Insert: {
65958
- access_token?: string | null;
65959
- client_id: string;
65960
- client_secret?: string | null;
65907
+ account_key?: string | null;
65961
65908
  cluster_uri?: string | null;
65962
65909
  company_code?: string | null;
65963
65910
  company_name?: string | null;
@@ -65969,15 +65916,11 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
65969
65916
  label?: string | null;
65970
65917
  office_code?: string | null;
65971
65918
  redirect_uri: string;
65972
- refresh_token?: string | null;
65973
- token_expires_at?: string | null;
65974
65919
  updated_at?: string;
65975
65920
  user_id: string;
65976
65921
  };
65977
65922
  Update: {
65978
- access_token?: string | null;
65979
- client_id?: string;
65980
- client_secret?: string | null;
65923
+ account_key?: string | null;
65981
65924
  cluster_uri?: string | null;
65982
65925
  company_code?: string | null;
65983
65926
  company_name?: string | null;
@@ -65989,53 +65932,6 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
65989
65932
  label?: string | null;
65990
65933
  office_code?: string | null;
65991
65934
  redirect_uri?: string;
65992
- refresh_token?: string | null;
65993
- token_expires_at?: string | null;
65994
- updated_at?: string;
65995
- user_id?: string;
65996
- };
65997
- Relationships: [];
65998
- };
65999
- twinfield_credentials: {
66000
- Row: {
66001
- administration_code: string | null;
66002
- client_id: string | null;
66003
- client_secret: string | null;
66004
- cluster: string | null;
66005
- connected_at: string | null;
66006
- created_at: string;
66007
- environment: string | null;
66008
- id: string;
66009
- redirect_uri: string | null;
66010
- refresh_token: string | null;
66011
- updated_at: string;
66012
- user_id: string;
66013
- };
66014
- Insert: {
66015
- administration_code?: string | null;
66016
- client_id?: string | null;
66017
- client_secret?: string | null;
66018
- cluster?: string | null;
66019
- connected_at?: string | null;
66020
- created_at?: string;
66021
- environment?: string | null;
66022
- id?: string;
66023
- redirect_uri?: string | null;
66024
- refresh_token?: string | null;
66025
- updated_at?: string;
66026
- user_id: string;
66027
- };
66028
- Update: {
66029
- administration_code?: string | null;
66030
- client_id?: string | null;
66031
- client_secret?: string | null;
66032
- cluster?: string | null;
66033
- connected_at?: string | null;
66034
- created_at?: string;
66035
- environment?: string | null;
66036
- id?: string;
66037
- redirect_uri?: string | null;
66038
- refresh_token?: string | null;
66039
65935
  updated_at?: string;
66040
65936
  user_id?: string;
66041
65937
  };
@@ -66536,30 +66432,6 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
66536
66432
  referencedColumns: ["id"];
66537
66433
  }];
66538
66434
  };
66539
- twinfield_oauth_state: {
66540
- Row: {
66541
- created_at: string;
66542
- environment: string;
66543
- nonce: string | null;
66544
- state: string;
66545
- user_id: string;
66546
- };
66547
- Insert: {
66548
- created_at?: string;
66549
- environment: string;
66550
- nonce?: string | null;
66551
- state: string;
66552
- user_id: string;
66553
- };
66554
- Update: {
66555
- created_at?: string;
66556
- environment?: string;
66557
- nonce?: string | null;
66558
- state?: string;
66559
- user_id?: string;
66560
- };
66561
- Relationships: [];
66562
- };
66563
66435
  twinfield_push_queue: {
66564
66436
  Row: {
66565
66437
  action: string;
@@ -66725,39 +66597,6 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
66725
66597
  referencedColumns: ["id"];
66726
66598
  }];
66727
66599
  };
66728
- twinfield_token_refresh_log: {
66729
- Row: {
66730
- attempted_at: string;
66731
- connection_id: string;
66732
- error: string | null;
66733
- expires_at: string | null;
66734
- id: string;
66735
- ok: boolean;
66736
- };
66737
- Insert: {
66738
- attempted_at?: string;
66739
- connection_id: string;
66740
- error?: string | null;
66741
- expires_at?: string | null;
66742
- id?: string;
66743
- ok: boolean;
66744
- };
66745
- Update: {
66746
- attempted_at?: string;
66747
- connection_id?: string;
66748
- error?: string | null;
66749
- expires_at?: string | null;
66750
- id?: string;
66751
- ok?: boolean;
66752
- };
66753
- Relationships: [{
66754
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
66755
- columns: ["connection_id"];
66756
- isOneToOne: false;
66757
- referencedRelation: "twinfield_connections";
66758
- referencedColumns: ["id"];
66759
- }];
66760
- };
66761
66600
  user_roles: {
66762
66601
  Row: {
66763
66602
  created_at: string;
@@ -69198,15 +69037,16 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
69198
69037
  };
69199
69038
  Returns: undefined;
69200
69039
  };
69201
- twinfield_decrypt: {
69040
+ twinfield_upsert_connection_by_account_key: {
69202
69041
  Args: {
69203
- cipher: string;
69204
- };
69205
- Returns: string;
69206
- };
69207
- twinfield_encrypt: {
69208
- Args: {
69209
- plain: string;
69042
+ p_account_key: string;
69043
+ p_cluster_uri?: string;
69044
+ p_company_code?: string;
69045
+ p_company_name?: string;
69046
+ p_environment: string;
69047
+ p_office_code?: string;
69048
+ p_status?: string;
69049
+ p_user_id: string;
69210
69050
  };
69211
69051
  Returns: string;
69212
69052
  };