@flowselections/floriday-afhandeling-module 1.0.21 → 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 (32) 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/package.json +18 -1
@@ -4541,6 +4541,27 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
4541
4541
  referencedColumns: ["id"];
4542
4542
  }];
4543
4543
  };
4544
+ floriday_continuous_stock_cache: {
4545
+ Row: {
4546
+ connection_id: string;
4547
+ fetched_at: string;
4548
+ number_of_pieces: number;
4549
+ trade_item_id: string;
4550
+ };
4551
+ Insert: {
4552
+ connection_id: string;
4553
+ fetched_at?: string;
4554
+ number_of_pieces?: number;
4555
+ trade_item_id: string;
4556
+ };
4557
+ Update: {
4558
+ connection_id?: string;
4559
+ fetched_at?: string;
4560
+ number_of_pieces?: number;
4561
+ trade_item_id?: string;
4562
+ };
4563
+ Relationships: [];
4564
+ };
4544
4565
  floriday_continuous_stock_queue: {
4545
4566
  Row: {
4546
4567
  attempts: number;
@@ -5519,6 +5540,45 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
5519
5540
  referencedColumns: ["id"];
5520
5541
  }];
5521
5542
  };
5543
+ floriday_trade_settings_customers_cache: {
5544
+ Row: {
5545
+ connection_id: string;
5546
+ data: import("../integrations/supabase/types").Json;
5547
+ fetched_at: string;
5548
+ floriday_id: string;
5549
+ id: string;
5550
+ is_deleted: boolean;
5551
+ sequence_number: number;
5552
+ updated_at: string;
5553
+ };
5554
+ Insert: {
5555
+ connection_id: string;
5556
+ data: import("../integrations/supabase/types").Json;
5557
+ fetched_at?: string;
5558
+ floriday_id: string;
5559
+ id?: string;
5560
+ is_deleted?: boolean;
5561
+ sequence_number?: number;
5562
+ updated_at?: string;
5563
+ };
5564
+ Update: {
5565
+ connection_id?: string;
5566
+ data?: import("../integrations/supabase/types").Json;
5567
+ fetched_at?: string;
5568
+ floriday_id?: string;
5569
+ id?: string;
5570
+ is_deleted?: boolean;
5571
+ sequence_number?: number;
5572
+ updated_at?: string;
5573
+ };
5574
+ Relationships: [{
5575
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5576
+ columns: ["connection_id"];
5577
+ isOneToOne: false;
5578
+ referencedRelation: "floriday_connections";
5579
+ referencedColumns: ["id"];
5580
+ }];
5581
+ };
5522
5582
  floriday_trips_cache: {
5523
5583
  Row: {
5524
5584
  carrier_organization_id: string | null;
@@ -5567,6 +5627,27 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
5567
5627
  referencedColumns: ["id"];
5568
5628
  }];
5569
5629
  };
5630
+ floriday_vbn_required_characteristics: {
5631
+ Row: {
5632
+ required_codes: string[];
5633
+ updated_at: string;
5634
+ updated_by: string | null;
5635
+ vbn_code: string;
5636
+ };
5637
+ Insert: {
5638
+ required_codes?: string[];
5639
+ updated_at?: string;
5640
+ updated_by?: string | null;
5641
+ vbn_code: string;
5642
+ };
5643
+ Update: {
5644
+ required_codes?: string[];
5645
+ updated_at?: string;
5646
+ updated_by?: string | null;
5647
+ vbn_code?: string;
5648
+ };
5649
+ Relationships: [];
5650
+ };
5570
5651
  floriday_warehouses_cache: {
5571
5652
  Row: {
5572
5653
  connection_id: string;
@@ -10540,9 +10621,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10540
10621
  };
10541
10622
  twinfield_connections: {
10542
10623
  Row: {
10543
- access_token: string | null;
10544
- client_id: string;
10545
- client_secret: string | null;
10624
+ account_key: string | null;
10546
10625
  cluster_uri: string | null;
10547
10626
  company_code: string | null;
10548
10627
  company_name: string | null;
@@ -10554,15 +10633,11 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10554
10633
  label: string | null;
10555
10634
  office_code: string | null;
10556
10635
  redirect_uri: string;
10557
- refresh_token: string | null;
10558
- token_expires_at: string | null;
10559
10636
  updated_at: string;
10560
10637
  user_id: string;
10561
10638
  };
10562
10639
  Insert: {
10563
- access_token?: string | null;
10564
- client_id: string;
10565
- client_secret?: string | null;
10640
+ account_key?: string | null;
10566
10641
  cluster_uri?: string | null;
10567
10642
  company_code?: string | null;
10568
10643
  company_name?: string | null;
@@ -10574,15 +10649,11 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10574
10649
  label?: string | null;
10575
10650
  office_code?: string | null;
10576
10651
  redirect_uri: string;
10577
- refresh_token?: string | null;
10578
- token_expires_at?: string | null;
10579
10652
  updated_at?: string;
10580
10653
  user_id: string;
10581
10654
  };
10582
10655
  Update: {
10583
- access_token?: string | null;
10584
- client_id?: string;
10585
- client_secret?: string | null;
10656
+ account_key?: string | null;
10586
10657
  cluster_uri?: string | null;
10587
10658
  company_code?: string | null;
10588
10659
  company_name?: string | null;
@@ -10594,53 +10665,6 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10594
10665
  label?: string | null;
10595
10666
  office_code?: string | null;
10596
10667
  redirect_uri?: string;
10597
- refresh_token?: string | null;
10598
- token_expires_at?: string | null;
10599
- updated_at?: string;
10600
- user_id?: string;
10601
- };
10602
- Relationships: [];
10603
- };
10604
- twinfield_credentials: {
10605
- Row: {
10606
- administration_code: string | null;
10607
- client_id: string | null;
10608
- client_secret: string | null;
10609
- cluster: string | null;
10610
- connected_at: string | null;
10611
- created_at: string;
10612
- environment: string | null;
10613
- id: string;
10614
- redirect_uri: string | null;
10615
- refresh_token: string | null;
10616
- updated_at: string;
10617
- user_id: string;
10618
- };
10619
- Insert: {
10620
- administration_code?: string | null;
10621
- client_id?: string | null;
10622
- client_secret?: string | null;
10623
- cluster?: string | null;
10624
- connected_at?: string | null;
10625
- created_at?: string;
10626
- environment?: string | null;
10627
- id?: string;
10628
- redirect_uri?: string | null;
10629
- refresh_token?: string | null;
10630
- updated_at?: string;
10631
- user_id: string;
10632
- };
10633
- Update: {
10634
- administration_code?: string | null;
10635
- client_id?: string | null;
10636
- client_secret?: string | null;
10637
- cluster?: string | null;
10638
- connected_at?: string | null;
10639
- created_at?: string;
10640
- environment?: string | null;
10641
- id?: string;
10642
- redirect_uri?: string | null;
10643
- refresh_token?: string | null;
10644
10668
  updated_at?: string;
10645
10669
  user_id?: string;
10646
10670
  };
@@ -11141,30 +11165,6 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
11141
11165
  referencedColumns: ["id"];
11142
11166
  }];
11143
11167
  };
11144
- twinfield_oauth_state: {
11145
- Row: {
11146
- created_at: string;
11147
- environment: string;
11148
- nonce: string | null;
11149
- state: string;
11150
- user_id: string;
11151
- };
11152
- Insert: {
11153
- created_at?: string;
11154
- environment: string;
11155
- nonce?: string | null;
11156
- state: string;
11157
- user_id: string;
11158
- };
11159
- Update: {
11160
- created_at?: string;
11161
- environment?: string;
11162
- nonce?: string | null;
11163
- state?: string;
11164
- user_id?: string;
11165
- };
11166
- Relationships: [];
11167
- };
11168
11168
  twinfield_push_queue: {
11169
11169
  Row: {
11170
11170
  action: string;
@@ -11330,39 +11330,6 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
11330
11330
  referencedColumns: ["id"];
11331
11331
  }];
11332
11332
  };
11333
- twinfield_token_refresh_log: {
11334
- Row: {
11335
- attempted_at: string;
11336
- connection_id: string;
11337
- error: string | null;
11338
- expires_at: string | null;
11339
- id: string;
11340
- ok: boolean;
11341
- };
11342
- Insert: {
11343
- attempted_at?: string;
11344
- connection_id: string;
11345
- error?: string | null;
11346
- expires_at?: string | null;
11347
- id?: string;
11348
- ok: boolean;
11349
- };
11350
- Update: {
11351
- attempted_at?: string;
11352
- connection_id?: string;
11353
- error?: string | null;
11354
- expires_at?: string | null;
11355
- id?: string;
11356
- ok?: boolean;
11357
- };
11358
- Relationships: [{
11359
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11360
- columns: ["connection_id"];
11361
- isOneToOne: false;
11362
- referencedRelation: "twinfield_connections";
11363
- referencedColumns: ["id"];
11364
- }];
11365
- };
11366
11333
  user_roles: {
11367
11334
  Row: {
11368
11335
  created_at: string;
@@ -13803,15 +13770,16 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13803
13770
  };
13804
13771
  Returns: undefined;
13805
13772
  };
13806
- twinfield_decrypt: {
13773
+ twinfield_upsert_connection_by_account_key: {
13807
13774
  Args: {
13808
- cipher: string;
13809
- };
13810
- Returns: string;
13811
- };
13812
- twinfield_encrypt: {
13813
- Args: {
13814
- plain: string;
13775
+ p_account_key: string;
13776
+ p_cluster_uri?: string;
13777
+ p_company_code?: string;
13778
+ p_company_name?: string;
13779
+ p_environment: string;
13780
+ p_office_code?: string;
13781
+ p_status?: string;
13782
+ p_user_id: string;
13815
13783
  };
13816
13784
  Returns: string;
13817
13785
  };
@@ -18382,6 +18350,27 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
18382
18350
  referencedColumns: ["id"];
18383
18351
  }];
18384
18352
  };
18353
+ floriday_continuous_stock_cache: {
18354
+ Row: {
18355
+ connection_id: string;
18356
+ fetched_at: string;
18357
+ number_of_pieces: number;
18358
+ trade_item_id: string;
18359
+ };
18360
+ Insert: {
18361
+ connection_id: string;
18362
+ fetched_at?: string;
18363
+ number_of_pieces?: number;
18364
+ trade_item_id: string;
18365
+ };
18366
+ Update: {
18367
+ connection_id?: string;
18368
+ fetched_at?: string;
18369
+ number_of_pieces?: number;
18370
+ trade_item_id?: string;
18371
+ };
18372
+ Relationships: [];
18373
+ };
18385
18374
  floriday_continuous_stock_queue: {
18386
18375
  Row: {
18387
18376
  attempts: number;
@@ -19360,6 +19349,45 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
19360
19349
  referencedColumns: ["id"];
19361
19350
  }];
19362
19351
  };
19352
+ floriday_trade_settings_customers_cache: {
19353
+ Row: {
19354
+ connection_id: string;
19355
+ data: import("../integrations/supabase/types").Json;
19356
+ fetched_at: string;
19357
+ floriday_id: string;
19358
+ id: string;
19359
+ is_deleted: boolean;
19360
+ sequence_number: number;
19361
+ updated_at: string;
19362
+ };
19363
+ Insert: {
19364
+ connection_id: string;
19365
+ data: import("../integrations/supabase/types").Json;
19366
+ fetched_at?: string;
19367
+ floriday_id: string;
19368
+ id?: string;
19369
+ is_deleted?: boolean;
19370
+ sequence_number?: number;
19371
+ updated_at?: string;
19372
+ };
19373
+ Update: {
19374
+ connection_id?: string;
19375
+ data?: import("../integrations/supabase/types").Json;
19376
+ fetched_at?: string;
19377
+ floriday_id?: string;
19378
+ id?: string;
19379
+ is_deleted?: boolean;
19380
+ sequence_number?: number;
19381
+ updated_at?: string;
19382
+ };
19383
+ Relationships: [{
19384
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19385
+ columns: ["connection_id"];
19386
+ isOneToOne: false;
19387
+ referencedRelation: "floriday_connections";
19388
+ referencedColumns: ["id"];
19389
+ }];
19390
+ };
19363
19391
  floriday_trips_cache: {
19364
19392
  Row: {
19365
19393
  carrier_organization_id: string | null;
@@ -19408,6 +19436,27 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
19408
19436
  referencedColumns: ["id"];
19409
19437
  }];
19410
19438
  };
19439
+ floriday_vbn_required_characteristics: {
19440
+ Row: {
19441
+ required_codes: string[];
19442
+ updated_at: string;
19443
+ updated_by: string | null;
19444
+ vbn_code: string;
19445
+ };
19446
+ Insert: {
19447
+ required_codes?: string[];
19448
+ updated_at?: string;
19449
+ updated_by?: string | null;
19450
+ vbn_code: string;
19451
+ };
19452
+ Update: {
19453
+ required_codes?: string[];
19454
+ updated_at?: string;
19455
+ updated_by?: string | null;
19456
+ vbn_code?: string;
19457
+ };
19458
+ Relationships: [];
19459
+ };
19411
19460
  floriday_warehouses_cache: {
19412
19461
  Row: {
19413
19462
  connection_id: string;
@@ -24381,9 +24430,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
24381
24430
  };
24382
24431
  twinfield_connections: {
24383
24432
  Row: {
24384
- access_token: string | null;
24385
- client_id: string;
24386
- client_secret: string | null;
24433
+ account_key: string | null;
24387
24434
  cluster_uri: string | null;
24388
24435
  company_code: string | null;
24389
24436
  company_name: string | null;
@@ -24395,15 +24442,11 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
24395
24442
  label: string | null;
24396
24443
  office_code: string | null;
24397
24444
  redirect_uri: string;
24398
- refresh_token: string | null;
24399
- token_expires_at: string | null;
24400
24445
  updated_at: string;
24401
24446
  user_id: string;
24402
24447
  };
24403
24448
  Insert: {
24404
- access_token?: string | null;
24405
- client_id: string;
24406
- client_secret?: string | null;
24449
+ account_key?: string | null;
24407
24450
  cluster_uri?: string | null;
24408
24451
  company_code?: string | null;
24409
24452
  company_name?: string | null;
@@ -24415,15 +24458,11 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
24415
24458
  label?: string | null;
24416
24459
  office_code?: string | null;
24417
24460
  redirect_uri: string;
24418
- refresh_token?: string | null;
24419
- token_expires_at?: string | null;
24420
24461
  updated_at?: string;
24421
24462
  user_id: string;
24422
24463
  };
24423
24464
  Update: {
24424
- access_token?: string | null;
24425
- client_id?: string;
24426
- client_secret?: string | null;
24465
+ account_key?: string | null;
24427
24466
  cluster_uri?: string | null;
24428
24467
  company_code?: string | null;
24429
24468
  company_name?: string | null;
@@ -24435,53 +24474,6 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
24435
24474
  label?: string | null;
24436
24475
  office_code?: string | null;
24437
24476
  redirect_uri?: string;
24438
- refresh_token?: string | null;
24439
- token_expires_at?: string | null;
24440
- updated_at?: string;
24441
- user_id?: string;
24442
- };
24443
- Relationships: [];
24444
- };
24445
- twinfield_credentials: {
24446
- Row: {
24447
- administration_code: string | null;
24448
- client_id: string | null;
24449
- client_secret: string | null;
24450
- cluster: string | null;
24451
- connected_at: string | null;
24452
- created_at: string;
24453
- environment: string | null;
24454
- id: string;
24455
- redirect_uri: string | null;
24456
- refresh_token: string | null;
24457
- updated_at: string;
24458
- user_id: string;
24459
- };
24460
- Insert: {
24461
- administration_code?: string | null;
24462
- client_id?: string | null;
24463
- client_secret?: string | null;
24464
- cluster?: string | null;
24465
- connected_at?: string | null;
24466
- created_at?: string;
24467
- environment?: string | null;
24468
- id?: string;
24469
- redirect_uri?: string | null;
24470
- refresh_token?: string | null;
24471
- updated_at?: string;
24472
- user_id: string;
24473
- };
24474
- Update: {
24475
- administration_code?: string | null;
24476
- client_id?: string | null;
24477
- client_secret?: string | null;
24478
- cluster?: string | null;
24479
- connected_at?: string | null;
24480
- created_at?: string;
24481
- environment?: string | null;
24482
- id?: string;
24483
- redirect_uri?: string | null;
24484
- refresh_token?: string | null;
24485
24477
  updated_at?: string;
24486
24478
  user_id?: string;
24487
24479
  };
@@ -24982,30 +24974,6 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
24982
24974
  referencedColumns: ["id"];
24983
24975
  }];
24984
24976
  };
24985
- twinfield_oauth_state: {
24986
- Row: {
24987
- created_at: string;
24988
- environment: string;
24989
- nonce: string | null;
24990
- state: string;
24991
- user_id: string;
24992
- };
24993
- Insert: {
24994
- created_at?: string;
24995
- environment: string;
24996
- nonce?: string | null;
24997
- state: string;
24998
- user_id: string;
24999
- };
25000
- Update: {
25001
- created_at?: string;
25002
- environment?: string;
25003
- nonce?: string | null;
25004
- state?: string;
25005
- user_id?: string;
25006
- };
25007
- Relationships: [];
25008
- };
25009
24977
  twinfield_push_queue: {
25010
24978
  Row: {
25011
24979
  action: string;
@@ -25171,39 +25139,6 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
25171
25139
  referencedColumns: ["id"];
25172
25140
  }];
25173
25141
  };
25174
- twinfield_token_refresh_log: {
25175
- Row: {
25176
- attempted_at: string;
25177
- connection_id: string;
25178
- error: string | null;
25179
- expires_at: string | null;
25180
- id: string;
25181
- ok: boolean;
25182
- };
25183
- Insert: {
25184
- attempted_at?: string;
25185
- connection_id: string;
25186
- error?: string | null;
25187
- expires_at?: string | null;
25188
- id?: string;
25189
- ok: boolean;
25190
- };
25191
- Update: {
25192
- attempted_at?: string;
25193
- connection_id?: string;
25194
- error?: string | null;
25195
- expires_at?: string | null;
25196
- id?: string;
25197
- ok?: boolean;
25198
- };
25199
- Relationships: [{
25200
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25201
- columns: ["connection_id"];
25202
- isOneToOne: false;
25203
- referencedRelation: "twinfield_connections";
25204
- referencedColumns: ["id"];
25205
- }];
25206
- };
25207
25142
  user_roles: {
25208
25143
  Row: {
25209
25144
  created_at: string;
@@ -27644,15 +27579,16 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
27644
27579
  };
27645
27580
  Returns: undefined;
27646
27581
  };
27647
- twinfield_decrypt: {
27582
+ twinfield_upsert_connection_by_account_key: {
27648
27583
  Args: {
27649
- cipher: string;
27650
- };
27651
- Returns: string;
27652
- };
27653
- twinfield_encrypt: {
27654
- Args: {
27655
- plain: string;
27584
+ p_account_key: string;
27585
+ p_cluster_uri?: string;
27586
+ p_company_code?: string;
27587
+ p_company_name?: string;
27588
+ p_environment: string;
27589
+ p_office_code?: string;
27590
+ p_status?: string;
27591
+ p_user_id: string;
27656
27592
  };
27657
27593
  Returns: string;
27658
27594
  };
@@ -32217,6 +32153,27 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
32217
32153
  referencedColumns: ["id"];
32218
32154
  }];
32219
32155
  };
32156
+ floriday_continuous_stock_cache: {
32157
+ Row: {
32158
+ connection_id: string;
32159
+ fetched_at: string;
32160
+ number_of_pieces: number;
32161
+ trade_item_id: string;
32162
+ };
32163
+ Insert: {
32164
+ connection_id: string;
32165
+ fetched_at?: string;
32166
+ number_of_pieces?: number;
32167
+ trade_item_id: string;
32168
+ };
32169
+ Update: {
32170
+ connection_id?: string;
32171
+ fetched_at?: string;
32172
+ number_of_pieces?: number;
32173
+ trade_item_id?: string;
32174
+ };
32175
+ Relationships: [];
32176
+ };
32220
32177
  floriday_continuous_stock_queue: {
32221
32178
  Row: {
32222
32179
  attempts: number;
@@ -33195,6 +33152,45 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
33195
33152
  referencedColumns: ["id"];
33196
33153
  }];
33197
33154
  };
33155
+ floriday_trade_settings_customers_cache: {
33156
+ Row: {
33157
+ connection_id: string;
33158
+ data: import("../integrations/supabase/types").Json;
33159
+ fetched_at: string;
33160
+ floriday_id: string;
33161
+ id: string;
33162
+ is_deleted: boolean;
33163
+ sequence_number: number;
33164
+ updated_at: string;
33165
+ };
33166
+ Insert: {
33167
+ connection_id: string;
33168
+ data: import("../integrations/supabase/types").Json;
33169
+ fetched_at?: string;
33170
+ floriday_id: string;
33171
+ id?: string;
33172
+ is_deleted?: boolean;
33173
+ sequence_number?: number;
33174
+ updated_at?: string;
33175
+ };
33176
+ Update: {
33177
+ connection_id?: string;
33178
+ data?: import("../integrations/supabase/types").Json;
33179
+ fetched_at?: string;
33180
+ floriday_id?: string;
33181
+ id?: string;
33182
+ is_deleted?: boolean;
33183
+ sequence_number?: number;
33184
+ updated_at?: string;
33185
+ };
33186
+ Relationships: [{
33187
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33188
+ columns: ["connection_id"];
33189
+ isOneToOne: false;
33190
+ referencedRelation: "floriday_connections";
33191
+ referencedColumns: ["id"];
33192
+ }];
33193
+ };
33198
33194
  floriday_trips_cache: {
33199
33195
  Row: {
33200
33196
  carrier_organization_id: string | null;
@@ -33243,6 +33239,27 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
33243
33239
  referencedColumns: ["id"];
33244
33240
  }];
33245
33241
  };
33242
+ floriday_vbn_required_characteristics: {
33243
+ Row: {
33244
+ required_codes: string[];
33245
+ updated_at: string;
33246
+ updated_by: string | null;
33247
+ vbn_code: string;
33248
+ };
33249
+ Insert: {
33250
+ required_codes?: string[];
33251
+ updated_at?: string;
33252
+ updated_by?: string | null;
33253
+ vbn_code: string;
33254
+ };
33255
+ Update: {
33256
+ required_codes?: string[];
33257
+ updated_at?: string;
33258
+ updated_by?: string | null;
33259
+ vbn_code?: string;
33260
+ };
33261
+ Relationships: [];
33262
+ };
33246
33263
  floriday_warehouses_cache: {
33247
33264
  Row: {
33248
33265
  connection_id: string;
@@ -38216,9 +38233,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
38216
38233
  };
38217
38234
  twinfield_connections: {
38218
38235
  Row: {
38219
- access_token: string | null;
38220
- client_id: string;
38221
- client_secret: string | null;
38236
+ account_key: string | null;
38222
38237
  cluster_uri: string | null;
38223
38238
  company_code: string | null;
38224
38239
  company_name: string | null;
@@ -38230,15 +38245,11 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
38230
38245
  label: string | null;
38231
38246
  office_code: string | null;
38232
38247
  redirect_uri: string;
38233
- refresh_token: string | null;
38234
- token_expires_at: string | null;
38235
38248
  updated_at: string;
38236
38249
  user_id: string;
38237
38250
  };
38238
38251
  Insert: {
38239
- access_token?: string | null;
38240
- client_id: string;
38241
- client_secret?: string | null;
38252
+ account_key?: string | null;
38242
38253
  cluster_uri?: string | null;
38243
38254
  company_code?: string | null;
38244
38255
  company_name?: string | null;
@@ -38250,15 +38261,11 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
38250
38261
  label?: string | null;
38251
38262
  office_code?: string | null;
38252
38263
  redirect_uri: string;
38253
- refresh_token?: string | null;
38254
- token_expires_at?: string | null;
38255
38264
  updated_at?: string;
38256
38265
  user_id: string;
38257
38266
  };
38258
38267
  Update: {
38259
- access_token?: string | null;
38260
- client_id?: string;
38261
- client_secret?: string | null;
38268
+ account_key?: string | null;
38262
38269
  cluster_uri?: string | null;
38263
38270
  company_code?: string | null;
38264
38271
  company_name?: string | null;
@@ -38270,53 +38277,6 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
38270
38277
  label?: string | null;
38271
38278
  office_code?: string | null;
38272
38279
  redirect_uri?: string;
38273
- refresh_token?: string | null;
38274
- token_expires_at?: string | null;
38275
- updated_at?: string;
38276
- user_id?: string;
38277
- };
38278
- Relationships: [];
38279
- };
38280
- twinfield_credentials: {
38281
- Row: {
38282
- administration_code: string | null;
38283
- client_id: string | null;
38284
- client_secret: string | null;
38285
- cluster: string | null;
38286
- connected_at: string | null;
38287
- created_at: string;
38288
- environment: string | null;
38289
- id: string;
38290
- redirect_uri: string | null;
38291
- refresh_token: string | null;
38292
- updated_at: string;
38293
- user_id: string;
38294
- };
38295
- Insert: {
38296
- administration_code?: string | null;
38297
- client_id?: string | null;
38298
- client_secret?: string | null;
38299
- cluster?: string | null;
38300
- connected_at?: string | null;
38301
- created_at?: string;
38302
- environment?: string | null;
38303
- id?: string;
38304
- redirect_uri?: string | null;
38305
- refresh_token?: string | null;
38306
- updated_at?: string;
38307
- user_id: string;
38308
- };
38309
- Update: {
38310
- administration_code?: string | null;
38311
- client_id?: string | null;
38312
- client_secret?: string | null;
38313
- cluster?: string | null;
38314
- connected_at?: string | null;
38315
- created_at?: string;
38316
- environment?: string | null;
38317
- id?: string;
38318
- redirect_uri?: string | null;
38319
- refresh_token?: string | null;
38320
38280
  updated_at?: string;
38321
38281
  user_id?: string;
38322
38282
  };
@@ -38817,30 +38777,6 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
38817
38777
  referencedColumns: ["id"];
38818
38778
  }];
38819
38779
  };
38820
- twinfield_oauth_state: {
38821
- Row: {
38822
- created_at: string;
38823
- environment: string;
38824
- nonce: string | null;
38825
- state: string;
38826
- user_id: string;
38827
- };
38828
- Insert: {
38829
- created_at?: string;
38830
- environment: string;
38831
- nonce?: string | null;
38832
- state: string;
38833
- user_id: string;
38834
- };
38835
- Update: {
38836
- created_at?: string;
38837
- environment?: string;
38838
- nonce?: string | null;
38839
- state?: string;
38840
- user_id?: string;
38841
- };
38842
- Relationships: [];
38843
- };
38844
38780
  twinfield_push_queue: {
38845
38781
  Row: {
38846
38782
  action: string;
@@ -39006,39 +38942,6 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
39006
38942
  referencedColumns: ["id"];
39007
38943
  }];
39008
38944
  };
39009
- twinfield_token_refresh_log: {
39010
- Row: {
39011
- attempted_at: string;
39012
- connection_id: string;
39013
- error: string | null;
39014
- expires_at: string | null;
39015
- id: string;
39016
- ok: boolean;
39017
- };
39018
- Insert: {
39019
- attempted_at?: string;
39020
- connection_id: string;
39021
- error?: string | null;
39022
- expires_at?: string | null;
39023
- id?: string;
39024
- ok: boolean;
39025
- };
39026
- Update: {
39027
- attempted_at?: string;
39028
- connection_id?: string;
39029
- error?: string | null;
39030
- expires_at?: string | null;
39031
- id?: string;
39032
- ok?: boolean;
39033
- };
39034
- Relationships: [{
39035
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39036
- columns: ["connection_id"];
39037
- isOneToOne: false;
39038
- referencedRelation: "twinfield_connections";
39039
- referencedColumns: ["id"];
39040
- }];
39041
- };
39042
38945
  user_roles: {
39043
38946
  Row: {
39044
38947
  created_at: string;
@@ -41479,15 +41382,16 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
41479
41382
  };
41480
41383
  Returns: undefined;
41481
41384
  };
41482
- twinfield_decrypt: {
41483
- Args: {
41484
- cipher: string;
41485
- };
41486
- Returns: string;
41487
- };
41488
- twinfield_encrypt: {
41385
+ twinfield_upsert_connection_by_account_key: {
41489
41386
  Args: {
41490
- plain: string;
41387
+ p_account_key: string;
41388
+ p_cluster_uri?: string;
41389
+ p_company_code?: string;
41390
+ p_company_name?: string;
41391
+ p_environment: string;
41392
+ p_office_code?: string;
41393
+ p_status?: string;
41394
+ p_user_id: string;
41491
41395
  };
41492
41396
  Returns: string;
41493
41397
  };
@@ -46059,6 +45963,27 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
46059
45963
  referencedColumns: ["id"];
46060
45964
  }];
46061
45965
  };
45966
+ floriday_continuous_stock_cache: {
45967
+ Row: {
45968
+ connection_id: string;
45969
+ fetched_at: string;
45970
+ number_of_pieces: number;
45971
+ trade_item_id: string;
45972
+ };
45973
+ Insert: {
45974
+ connection_id: string;
45975
+ fetched_at?: string;
45976
+ number_of_pieces?: number;
45977
+ trade_item_id: string;
45978
+ };
45979
+ Update: {
45980
+ connection_id?: string;
45981
+ fetched_at?: string;
45982
+ number_of_pieces?: number;
45983
+ trade_item_id?: string;
45984
+ };
45985
+ Relationships: [];
45986
+ };
46062
45987
  floriday_continuous_stock_queue: {
46063
45988
  Row: {
46064
45989
  attempts: number;
@@ -47037,6 +46962,45 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
47037
46962
  referencedColumns: ["id"];
47038
46963
  }];
47039
46964
  };
46965
+ floriday_trade_settings_customers_cache: {
46966
+ Row: {
46967
+ connection_id: string;
46968
+ data: import("../integrations/supabase/types").Json;
46969
+ fetched_at: string;
46970
+ floriday_id: string;
46971
+ id: string;
46972
+ is_deleted: boolean;
46973
+ sequence_number: number;
46974
+ updated_at: string;
46975
+ };
46976
+ Insert: {
46977
+ connection_id: string;
46978
+ data: import("../integrations/supabase/types").Json;
46979
+ fetched_at?: string;
46980
+ floriday_id: string;
46981
+ id?: string;
46982
+ is_deleted?: boolean;
46983
+ sequence_number?: number;
46984
+ updated_at?: string;
46985
+ };
46986
+ Update: {
46987
+ connection_id?: string;
46988
+ data?: import("../integrations/supabase/types").Json;
46989
+ fetched_at?: string;
46990
+ floriday_id?: string;
46991
+ id?: string;
46992
+ is_deleted?: boolean;
46993
+ sequence_number?: number;
46994
+ updated_at?: string;
46995
+ };
46996
+ Relationships: [{
46997
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
46998
+ columns: ["connection_id"];
46999
+ isOneToOne: false;
47000
+ referencedRelation: "floriday_connections";
47001
+ referencedColumns: ["id"];
47002
+ }];
47003
+ };
47040
47004
  floriday_trips_cache: {
47041
47005
  Row: {
47042
47006
  carrier_organization_id: string | null;
@@ -47085,6 +47049,27 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
47085
47049
  referencedColumns: ["id"];
47086
47050
  }];
47087
47051
  };
47052
+ floriday_vbn_required_characteristics: {
47053
+ Row: {
47054
+ required_codes: string[];
47055
+ updated_at: string;
47056
+ updated_by: string | null;
47057
+ vbn_code: string;
47058
+ };
47059
+ Insert: {
47060
+ required_codes?: string[];
47061
+ updated_at?: string;
47062
+ updated_by?: string | null;
47063
+ vbn_code: string;
47064
+ };
47065
+ Update: {
47066
+ required_codes?: string[];
47067
+ updated_at?: string;
47068
+ updated_by?: string | null;
47069
+ vbn_code?: string;
47070
+ };
47071
+ Relationships: [];
47072
+ };
47088
47073
  floriday_warehouses_cache: {
47089
47074
  Row: {
47090
47075
  connection_id: string;
@@ -52058,9 +52043,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
52058
52043
  };
52059
52044
  twinfield_connections: {
52060
52045
  Row: {
52061
- access_token: string | null;
52062
- client_id: string;
52063
- client_secret: string | null;
52046
+ account_key: string | null;
52064
52047
  cluster_uri: string | null;
52065
52048
  company_code: string | null;
52066
52049
  company_name: string | null;
@@ -52072,15 +52055,11 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
52072
52055
  label: string | null;
52073
52056
  office_code: string | null;
52074
52057
  redirect_uri: string;
52075
- refresh_token: string | null;
52076
- token_expires_at: string | null;
52077
52058
  updated_at: string;
52078
52059
  user_id: string;
52079
52060
  };
52080
52061
  Insert: {
52081
- access_token?: string | null;
52082
- client_id: string;
52083
- client_secret?: string | null;
52062
+ account_key?: string | null;
52084
52063
  cluster_uri?: string | null;
52085
52064
  company_code?: string | null;
52086
52065
  company_name?: string | null;
@@ -52092,15 +52071,11 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
52092
52071
  label?: string | null;
52093
52072
  office_code?: string | null;
52094
52073
  redirect_uri: string;
52095
- refresh_token?: string | null;
52096
- token_expires_at?: string | null;
52097
52074
  updated_at?: string;
52098
52075
  user_id: string;
52099
52076
  };
52100
52077
  Update: {
52101
- access_token?: string | null;
52102
- client_id?: string;
52103
- client_secret?: string | null;
52078
+ account_key?: string | null;
52104
52079
  cluster_uri?: string | null;
52105
52080
  company_code?: string | null;
52106
52081
  company_name?: string | null;
@@ -52112,53 +52087,6 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
52112
52087
  label?: string | null;
52113
52088
  office_code?: string | null;
52114
52089
  redirect_uri?: string;
52115
- refresh_token?: string | null;
52116
- token_expires_at?: string | null;
52117
- updated_at?: string;
52118
- user_id?: string;
52119
- };
52120
- Relationships: [];
52121
- };
52122
- twinfield_credentials: {
52123
- Row: {
52124
- administration_code: string | null;
52125
- client_id: string | null;
52126
- client_secret: string | null;
52127
- cluster: string | null;
52128
- connected_at: string | null;
52129
- created_at: string;
52130
- environment: string | null;
52131
- id: string;
52132
- redirect_uri: string | null;
52133
- refresh_token: string | null;
52134
- updated_at: string;
52135
- user_id: string;
52136
- };
52137
- Insert: {
52138
- administration_code?: string | null;
52139
- client_id?: string | null;
52140
- client_secret?: string | null;
52141
- cluster?: string | null;
52142
- connected_at?: string | null;
52143
- created_at?: string;
52144
- environment?: string | null;
52145
- id?: string;
52146
- redirect_uri?: string | null;
52147
- refresh_token?: string | null;
52148
- updated_at?: string;
52149
- user_id: string;
52150
- };
52151
- Update: {
52152
- administration_code?: string | null;
52153
- client_id?: string | null;
52154
- client_secret?: string | null;
52155
- cluster?: string | null;
52156
- connected_at?: string | null;
52157
- created_at?: string;
52158
- environment?: string | null;
52159
- id?: string;
52160
- redirect_uri?: string | null;
52161
- refresh_token?: string | null;
52162
52090
  updated_at?: string;
52163
52091
  user_id?: string;
52164
52092
  };
@@ -52659,30 +52587,6 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
52659
52587
  referencedColumns: ["id"];
52660
52588
  }];
52661
52589
  };
52662
- twinfield_oauth_state: {
52663
- Row: {
52664
- created_at: string;
52665
- environment: string;
52666
- nonce: string | null;
52667
- state: string;
52668
- user_id: string;
52669
- };
52670
- Insert: {
52671
- created_at?: string;
52672
- environment: string;
52673
- nonce?: string | null;
52674
- state: string;
52675
- user_id: string;
52676
- };
52677
- Update: {
52678
- created_at?: string;
52679
- environment?: string;
52680
- nonce?: string | null;
52681
- state?: string;
52682
- user_id?: string;
52683
- };
52684
- Relationships: [];
52685
- };
52686
52590
  twinfield_push_queue: {
52687
52591
  Row: {
52688
52592
  action: string;
@@ -52848,39 +52752,6 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
52848
52752
  referencedColumns: ["id"];
52849
52753
  }];
52850
52754
  };
52851
- twinfield_token_refresh_log: {
52852
- Row: {
52853
- attempted_at: string;
52854
- connection_id: string;
52855
- error: string | null;
52856
- expires_at: string | null;
52857
- id: string;
52858
- ok: boolean;
52859
- };
52860
- Insert: {
52861
- attempted_at?: string;
52862
- connection_id: string;
52863
- error?: string | null;
52864
- expires_at?: string | null;
52865
- id?: string;
52866
- ok: boolean;
52867
- };
52868
- Update: {
52869
- attempted_at?: string;
52870
- connection_id?: string;
52871
- error?: string | null;
52872
- expires_at?: string | null;
52873
- id?: string;
52874
- ok?: boolean;
52875
- };
52876
- Relationships: [{
52877
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
52878
- columns: ["connection_id"];
52879
- isOneToOne: false;
52880
- referencedRelation: "twinfield_connections";
52881
- referencedColumns: ["id"];
52882
- }];
52883
- };
52884
52755
  user_roles: {
52885
52756
  Row: {
52886
52757
  created_at: string;
@@ -55321,15 +55192,16 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
55321
55192
  };
55322
55193
  Returns: undefined;
55323
55194
  };
55324
- twinfield_decrypt: {
55195
+ twinfield_upsert_connection_by_account_key: {
55325
55196
  Args: {
55326
- cipher: string;
55327
- };
55328
- Returns: string;
55329
- };
55330
- twinfield_encrypt: {
55331
- Args: {
55332
- plain: string;
55197
+ p_account_key: string;
55198
+ p_cluster_uri?: string;
55199
+ p_company_code?: string;
55200
+ p_company_name?: string;
55201
+ p_environment: string;
55202
+ p_office_code?: string;
55203
+ p_status?: string;
55204
+ p_user_id: string;
55333
55205
  };
55334
55206
  Returns: string;
55335
55207
  };
@@ -59901,6 +59773,27 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
59901
59773
  referencedColumns: ["id"];
59902
59774
  }];
59903
59775
  };
59776
+ floriday_continuous_stock_cache: {
59777
+ Row: {
59778
+ connection_id: string;
59779
+ fetched_at: string;
59780
+ number_of_pieces: number;
59781
+ trade_item_id: string;
59782
+ };
59783
+ Insert: {
59784
+ connection_id: string;
59785
+ fetched_at?: string;
59786
+ number_of_pieces?: number;
59787
+ trade_item_id: string;
59788
+ };
59789
+ Update: {
59790
+ connection_id?: string;
59791
+ fetched_at?: string;
59792
+ number_of_pieces?: number;
59793
+ trade_item_id?: string;
59794
+ };
59795
+ Relationships: [];
59796
+ };
59904
59797
  floriday_continuous_stock_queue: {
59905
59798
  Row: {
59906
59799
  attempts: number;
@@ -60879,6 +60772,45 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
60879
60772
  referencedColumns: ["id"];
60880
60773
  }];
60881
60774
  };
60775
+ floriday_trade_settings_customers_cache: {
60776
+ Row: {
60777
+ connection_id: string;
60778
+ data: import("../integrations/supabase/types").Json;
60779
+ fetched_at: string;
60780
+ floriday_id: string;
60781
+ id: string;
60782
+ is_deleted: boolean;
60783
+ sequence_number: number;
60784
+ updated_at: string;
60785
+ };
60786
+ Insert: {
60787
+ connection_id: string;
60788
+ data: import("../integrations/supabase/types").Json;
60789
+ fetched_at?: string;
60790
+ floriday_id: string;
60791
+ id?: string;
60792
+ is_deleted?: boolean;
60793
+ sequence_number?: number;
60794
+ updated_at?: string;
60795
+ };
60796
+ Update: {
60797
+ connection_id?: string;
60798
+ data?: import("../integrations/supabase/types").Json;
60799
+ fetched_at?: string;
60800
+ floriday_id?: string;
60801
+ id?: string;
60802
+ is_deleted?: boolean;
60803
+ sequence_number?: number;
60804
+ updated_at?: string;
60805
+ };
60806
+ Relationships: [{
60807
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
60808
+ columns: ["connection_id"];
60809
+ isOneToOne: false;
60810
+ referencedRelation: "floriday_connections";
60811
+ referencedColumns: ["id"];
60812
+ }];
60813
+ };
60882
60814
  floriday_trips_cache: {
60883
60815
  Row: {
60884
60816
  carrier_organization_id: string | null;
@@ -60927,6 +60859,27 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
60927
60859
  referencedColumns: ["id"];
60928
60860
  }];
60929
60861
  };
60862
+ floriday_vbn_required_characteristics: {
60863
+ Row: {
60864
+ required_codes: string[];
60865
+ updated_at: string;
60866
+ updated_by: string | null;
60867
+ vbn_code: string;
60868
+ };
60869
+ Insert: {
60870
+ required_codes?: string[];
60871
+ updated_at?: string;
60872
+ updated_by?: string | null;
60873
+ vbn_code: string;
60874
+ };
60875
+ Update: {
60876
+ required_codes?: string[];
60877
+ updated_at?: string;
60878
+ updated_by?: string | null;
60879
+ vbn_code?: string;
60880
+ };
60881
+ Relationships: [];
60882
+ };
60930
60883
  floriday_warehouses_cache: {
60931
60884
  Row: {
60932
60885
  connection_id: string;
@@ -65900,9 +65853,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
65900
65853
  };
65901
65854
  twinfield_connections: {
65902
65855
  Row: {
65903
- access_token: string | null;
65904
- client_id: string;
65905
- client_secret: string | null;
65856
+ account_key: string | null;
65906
65857
  cluster_uri: string | null;
65907
65858
  company_code: string | null;
65908
65859
  company_name: string | null;
@@ -65914,15 +65865,11 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
65914
65865
  label: string | null;
65915
65866
  office_code: string | null;
65916
65867
  redirect_uri: string;
65917
- refresh_token: string | null;
65918
- token_expires_at: string | null;
65919
65868
  updated_at: string;
65920
65869
  user_id: string;
65921
65870
  };
65922
65871
  Insert: {
65923
- access_token?: string | null;
65924
- client_id: string;
65925
- client_secret?: string | null;
65872
+ account_key?: string | null;
65926
65873
  cluster_uri?: string | null;
65927
65874
  company_code?: string | null;
65928
65875
  company_name?: string | null;
@@ -65934,15 +65881,11 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
65934
65881
  label?: string | null;
65935
65882
  office_code?: string | null;
65936
65883
  redirect_uri: string;
65937
- refresh_token?: string | null;
65938
- token_expires_at?: string | null;
65939
65884
  updated_at?: string;
65940
65885
  user_id: string;
65941
65886
  };
65942
65887
  Update: {
65943
- access_token?: string | null;
65944
- client_id?: string;
65945
- client_secret?: string | null;
65888
+ account_key?: string | null;
65946
65889
  cluster_uri?: string | null;
65947
65890
  company_code?: string | null;
65948
65891
  company_name?: string | null;
@@ -65954,53 +65897,6 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
65954
65897
  label?: string | null;
65955
65898
  office_code?: string | null;
65956
65899
  redirect_uri?: string;
65957
- refresh_token?: string | null;
65958
- token_expires_at?: string | null;
65959
- updated_at?: string;
65960
- user_id?: string;
65961
- };
65962
- Relationships: [];
65963
- };
65964
- twinfield_credentials: {
65965
- Row: {
65966
- administration_code: string | null;
65967
- client_id: string | null;
65968
- client_secret: string | null;
65969
- cluster: string | null;
65970
- connected_at: string | null;
65971
- created_at: string;
65972
- environment: string | null;
65973
- id: string;
65974
- redirect_uri: string | null;
65975
- refresh_token: string | null;
65976
- updated_at: string;
65977
- user_id: string;
65978
- };
65979
- Insert: {
65980
- administration_code?: string | null;
65981
- client_id?: string | null;
65982
- client_secret?: string | null;
65983
- cluster?: string | null;
65984
- connected_at?: string | null;
65985
- created_at?: string;
65986
- environment?: string | null;
65987
- id?: string;
65988
- redirect_uri?: string | null;
65989
- refresh_token?: string | null;
65990
- updated_at?: string;
65991
- user_id: string;
65992
- };
65993
- Update: {
65994
- administration_code?: string | null;
65995
- client_id?: string | null;
65996
- client_secret?: string | null;
65997
- cluster?: string | null;
65998
- connected_at?: string | null;
65999
- created_at?: string;
66000
- environment?: string | null;
66001
- id?: string;
66002
- redirect_uri?: string | null;
66003
- refresh_token?: string | null;
66004
65900
  updated_at?: string;
66005
65901
  user_id?: string;
66006
65902
  };
@@ -66501,30 +66397,6 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
66501
66397
  referencedColumns: ["id"];
66502
66398
  }];
66503
66399
  };
66504
- twinfield_oauth_state: {
66505
- Row: {
66506
- created_at: string;
66507
- environment: string;
66508
- nonce: string | null;
66509
- state: string;
66510
- user_id: string;
66511
- };
66512
- Insert: {
66513
- created_at?: string;
66514
- environment: string;
66515
- nonce?: string | null;
66516
- state: string;
66517
- user_id: string;
66518
- };
66519
- Update: {
66520
- created_at?: string;
66521
- environment?: string;
66522
- nonce?: string | null;
66523
- state?: string;
66524
- user_id?: string;
66525
- };
66526
- Relationships: [];
66527
- };
66528
66400
  twinfield_push_queue: {
66529
66401
  Row: {
66530
66402
  action: string;
@@ -66690,39 +66562,6 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
66690
66562
  referencedColumns: ["id"];
66691
66563
  }];
66692
66564
  };
66693
- twinfield_token_refresh_log: {
66694
- Row: {
66695
- attempted_at: string;
66696
- connection_id: string;
66697
- error: string | null;
66698
- expires_at: string | null;
66699
- id: string;
66700
- ok: boolean;
66701
- };
66702
- Insert: {
66703
- attempted_at?: string;
66704
- connection_id: string;
66705
- error?: string | null;
66706
- expires_at?: string | null;
66707
- id?: string;
66708
- ok: boolean;
66709
- };
66710
- Update: {
66711
- attempted_at?: string;
66712
- connection_id?: string;
66713
- error?: string | null;
66714
- expires_at?: string | null;
66715
- id?: string;
66716
- ok?: boolean;
66717
- };
66718
- Relationships: [{
66719
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
66720
- columns: ["connection_id"];
66721
- isOneToOne: false;
66722
- referencedRelation: "twinfield_connections";
66723
- referencedColumns: ["id"];
66724
- }];
66725
- };
66726
66565
  user_roles: {
66727
66566
  Row: {
66728
66567
  created_at: string;
@@ -69163,15 +69002,16 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
69163
69002
  };
69164
69003
  Returns: undefined;
69165
69004
  };
69166
- twinfield_decrypt: {
69005
+ twinfield_upsert_connection_by_account_key: {
69167
69006
  Args: {
69168
- cipher: string;
69169
- };
69170
- Returns: string;
69171
- };
69172
- twinfield_encrypt: {
69173
- Args: {
69174
- plain: string;
69007
+ p_account_key: string;
69008
+ p_cluster_uri?: string;
69009
+ p_company_code?: string;
69010
+ p_company_name?: string;
69011
+ p_environment: string;
69012
+ p_office_code?: string;
69013
+ p_status?: string;
69014
+ p_user_id: string;
69175
69015
  };
69176
69016
  Returns: string;
69177
69017
  };