@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
@@ -4550,6 +4550,27 @@ export declare const listStrategies: import("@tanstack/start-client-core").Optio
4550
4550
  referencedColumns: ["id"];
4551
4551
  }];
4552
4552
  };
4553
+ floriday_continuous_stock_cache: {
4554
+ Row: {
4555
+ connection_id: string;
4556
+ fetched_at: string;
4557
+ number_of_pieces: number;
4558
+ trade_item_id: string;
4559
+ };
4560
+ Insert: {
4561
+ connection_id: string;
4562
+ fetched_at?: string;
4563
+ number_of_pieces?: number;
4564
+ trade_item_id: string;
4565
+ };
4566
+ Update: {
4567
+ connection_id?: string;
4568
+ fetched_at?: string;
4569
+ number_of_pieces?: number;
4570
+ trade_item_id?: string;
4571
+ };
4572
+ Relationships: [];
4573
+ };
4553
4574
  floriday_continuous_stock_queue: {
4554
4575
  Row: {
4555
4576
  attempts: number;
@@ -5528,6 +5549,45 @@ export declare const listStrategies: import("@tanstack/start-client-core").Optio
5528
5549
  referencedColumns: ["id"];
5529
5550
  }];
5530
5551
  };
5552
+ floriday_trade_settings_customers_cache: {
5553
+ Row: {
5554
+ connection_id: string;
5555
+ data: import("../../integrations/supabase/types").Json;
5556
+ fetched_at: string;
5557
+ floriday_id: string;
5558
+ id: string;
5559
+ is_deleted: boolean;
5560
+ sequence_number: number;
5561
+ updated_at: string;
5562
+ };
5563
+ Insert: {
5564
+ connection_id: string;
5565
+ data: import("../../integrations/supabase/types").Json;
5566
+ fetched_at?: string;
5567
+ floriday_id: string;
5568
+ id?: string;
5569
+ is_deleted?: boolean;
5570
+ sequence_number?: number;
5571
+ updated_at?: string;
5572
+ };
5573
+ Update: {
5574
+ connection_id?: string;
5575
+ data?: import("../../integrations/supabase/types").Json;
5576
+ fetched_at?: string;
5577
+ floriday_id?: string;
5578
+ id?: string;
5579
+ is_deleted?: boolean;
5580
+ sequence_number?: number;
5581
+ updated_at?: string;
5582
+ };
5583
+ Relationships: [{
5584
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5585
+ columns: ["connection_id"];
5586
+ isOneToOne: false;
5587
+ referencedRelation: "floriday_connections";
5588
+ referencedColumns: ["id"];
5589
+ }];
5590
+ };
5531
5591
  floriday_trips_cache: {
5532
5592
  Row: {
5533
5593
  carrier_organization_id: string | null;
@@ -5576,6 +5636,27 @@ export declare const listStrategies: import("@tanstack/start-client-core").Optio
5576
5636
  referencedColumns: ["id"];
5577
5637
  }];
5578
5638
  };
5639
+ floriday_vbn_required_characteristics: {
5640
+ Row: {
5641
+ required_codes: string[];
5642
+ updated_at: string;
5643
+ updated_by: string | null;
5644
+ vbn_code: string;
5645
+ };
5646
+ Insert: {
5647
+ required_codes?: string[];
5648
+ updated_at?: string;
5649
+ updated_by?: string | null;
5650
+ vbn_code: string;
5651
+ };
5652
+ Update: {
5653
+ required_codes?: string[];
5654
+ updated_at?: string;
5655
+ updated_by?: string | null;
5656
+ vbn_code?: string;
5657
+ };
5658
+ Relationships: [];
5659
+ };
5579
5660
  floriday_warehouses_cache: {
5580
5661
  Row: {
5581
5662
  connection_id: string;
@@ -10549,9 +10630,7 @@ export declare const listStrategies: import("@tanstack/start-client-core").Optio
10549
10630
  };
10550
10631
  twinfield_connections: {
10551
10632
  Row: {
10552
- access_token: string | null;
10553
- client_id: string;
10554
- client_secret: string | null;
10633
+ account_key: string | null;
10555
10634
  cluster_uri: string | null;
10556
10635
  company_code: string | null;
10557
10636
  company_name: string | null;
@@ -10563,15 +10642,11 @@ export declare const listStrategies: import("@tanstack/start-client-core").Optio
10563
10642
  label: string | null;
10564
10643
  office_code: string | null;
10565
10644
  redirect_uri: string;
10566
- refresh_token: string | null;
10567
- token_expires_at: string | null;
10568
10645
  updated_at: string;
10569
10646
  user_id: string;
10570
10647
  };
10571
10648
  Insert: {
10572
- access_token?: string | null;
10573
- client_id: string;
10574
- client_secret?: string | null;
10649
+ account_key?: string | null;
10575
10650
  cluster_uri?: string | null;
10576
10651
  company_code?: string | null;
10577
10652
  company_name?: string | null;
@@ -10583,15 +10658,11 @@ export declare const listStrategies: import("@tanstack/start-client-core").Optio
10583
10658
  label?: string | null;
10584
10659
  office_code?: string | null;
10585
10660
  redirect_uri: string;
10586
- refresh_token?: string | null;
10587
- token_expires_at?: string | null;
10588
10661
  updated_at?: string;
10589
10662
  user_id: string;
10590
10663
  };
10591
10664
  Update: {
10592
- access_token?: string | null;
10593
- client_id?: string;
10594
- client_secret?: string | null;
10665
+ account_key?: string | null;
10595
10666
  cluster_uri?: string | null;
10596
10667
  company_code?: string | null;
10597
10668
  company_name?: string | null;
@@ -10603,53 +10674,6 @@ export declare const listStrategies: import("@tanstack/start-client-core").Optio
10603
10674
  label?: string | null;
10604
10675
  office_code?: string | null;
10605
10676
  redirect_uri?: string;
10606
- refresh_token?: string | null;
10607
- token_expires_at?: string | null;
10608
- updated_at?: string;
10609
- user_id?: string;
10610
- };
10611
- Relationships: [];
10612
- };
10613
- twinfield_credentials: {
10614
- Row: {
10615
- administration_code: string | null;
10616
- client_id: string | null;
10617
- client_secret: string | null;
10618
- cluster: string | null;
10619
- connected_at: string | null;
10620
- created_at: string;
10621
- environment: string | null;
10622
- id: string;
10623
- redirect_uri: string | null;
10624
- refresh_token: string | null;
10625
- updated_at: string;
10626
- user_id: string;
10627
- };
10628
- Insert: {
10629
- administration_code?: string | null;
10630
- client_id?: string | null;
10631
- client_secret?: string | null;
10632
- cluster?: string | null;
10633
- connected_at?: string | null;
10634
- created_at?: string;
10635
- environment?: string | null;
10636
- id?: string;
10637
- redirect_uri?: string | null;
10638
- refresh_token?: string | null;
10639
- updated_at?: string;
10640
- user_id: string;
10641
- };
10642
- Update: {
10643
- administration_code?: string | null;
10644
- client_id?: string | null;
10645
- client_secret?: string | null;
10646
- cluster?: string | null;
10647
- connected_at?: string | null;
10648
- created_at?: string;
10649
- environment?: string | null;
10650
- id?: string;
10651
- redirect_uri?: string | null;
10652
- refresh_token?: string | null;
10653
10677
  updated_at?: string;
10654
10678
  user_id?: string;
10655
10679
  };
@@ -11150,30 +11174,6 @@ export declare const listStrategies: import("@tanstack/start-client-core").Optio
11150
11174
  referencedColumns: ["id"];
11151
11175
  }];
11152
11176
  };
11153
- twinfield_oauth_state: {
11154
- Row: {
11155
- created_at: string;
11156
- environment: string;
11157
- nonce: string | null;
11158
- state: string;
11159
- user_id: string;
11160
- };
11161
- Insert: {
11162
- created_at?: string;
11163
- environment: string;
11164
- nonce?: string | null;
11165
- state: string;
11166
- user_id: string;
11167
- };
11168
- Update: {
11169
- created_at?: string;
11170
- environment?: string;
11171
- nonce?: string | null;
11172
- state?: string;
11173
- user_id?: string;
11174
- };
11175
- Relationships: [];
11176
- };
11177
11177
  twinfield_push_queue: {
11178
11178
  Row: {
11179
11179
  action: string;
@@ -11339,39 +11339,6 @@ export declare const listStrategies: import("@tanstack/start-client-core").Optio
11339
11339
  referencedColumns: ["id"];
11340
11340
  }];
11341
11341
  };
11342
- twinfield_token_refresh_log: {
11343
- Row: {
11344
- attempted_at: string;
11345
- connection_id: string;
11346
- error: string | null;
11347
- expires_at: string | null;
11348
- id: string;
11349
- ok: boolean;
11350
- };
11351
- Insert: {
11352
- attempted_at?: string;
11353
- connection_id: string;
11354
- error?: string | null;
11355
- expires_at?: string | null;
11356
- id?: string;
11357
- ok: boolean;
11358
- };
11359
- Update: {
11360
- attempted_at?: string;
11361
- connection_id?: string;
11362
- error?: string | null;
11363
- expires_at?: string | null;
11364
- id?: string;
11365
- ok?: boolean;
11366
- };
11367
- Relationships: [{
11368
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11369
- columns: ["connection_id"];
11370
- isOneToOne: false;
11371
- referencedRelation: "twinfield_connections";
11372
- referencedColumns: ["id"];
11373
- }];
11374
- };
11375
11342
  user_roles: {
11376
11343
  Row: {
11377
11344
  created_at: string;
@@ -13812,15 +13779,16 @@ export declare const listStrategies: import("@tanstack/start-client-core").Optio
13812
13779
  };
13813
13780
  Returns: undefined;
13814
13781
  };
13815
- twinfield_decrypt: {
13782
+ twinfield_upsert_connection_by_account_key: {
13816
13783
  Args: {
13817
- cipher: string;
13818
- };
13819
- Returns: string;
13820
- };
13821
- twinfield_encrypt: {
13822
- Args: {
13823
- plain: string;
13784
+ p_account_key: string;
13785
+ p_cluster_uri?: string;
13786
+ p_company_code?: string;
13787
+ p_company_name?: string;
13788
+ p_environment: string;
13789
+ p_office_code?: string;
13790
+ p_status?: string;
13791
+ p_user_id: string;
13824
13792
  };
13825
13793
  Returns: string;
13826
13794
  };
@@ -18384,6 +18352,27 @@ export declare const saveStrategy: import("@tanstack/start-client-core").Require
18384
18352
  referencedColumns: ["id"];
18385
18353
  }];
18386
18354
  };
18355
+ floriday_continuous_stock_cache: {
18356
+ Row: {
18357
+ connection_id: string;
18358
+ fetched_at: string;
18359
+ number_of_pieces: number;
18360
+ trade_item_id: string;
18361
+ };
18362
+ Insert: {
18363
+ connection_id: string;
18364
+ fetched_at?: string;
18365
+ number_of_pieces?: number;
18366
+ trade_item_id: string;
18367
+ };
18368
+ Update: {
18369
+ connection_id?: string;
18370
+ fetched_at?: string;
18371
+ number_of_pieces?: number;
18372
+ trade_item_id?: string;
18373
+ };
18374
+ Relationships: [];
18375
+ };
18387
18376
  floriday_continuous_stock_queue: {
18388
18377
  Row: {
18389
18378
  attempts: number;
@@ -19362,6 +19351,45 @@ export declare const saveStrategy: import("@tanstack/start-client-core").Require
19362
19351
  referencedColumns: ["id"];
19363
19352
  }];
19364
19353
  };
19354
+ floriday_trade_settings_customers_cache: {
19355
+ Row: {
19356
+ connection_id: string;
19357
+ data: import("../../integrations/supabase/types").Json;
19358
+ fetched_at: string;
19359
+ floriday_id: string;
19360
+ id: string;
19361
+ is_deleted: boolean;
19362
+ sequence_number: number;
19363
+ updated_at: string;
19364
+ };
19365
+ Insert: {
19366
+ connection_id: string;
19367
+ data: import("../../integrations/supabase/types").Json;
19368
+ fetched_at?: string;
19369
+ floriday_id: string;
19370
+ id?: string;
19371
+ is_deleted?: boolean;
19372
+ sequence_number?: number;
19373
+ updated_at?: string;
19374
+ };
19375
+ Update: {
19376
+ connection_id?: string;
19377
+ data?: import("../../integrations/supabase/types").Json;
19378
+ fetched_at?: string;
19379
+ floriday_id?: string;
19380
+ id?: string;
19381
+ is_deleted?: boolean;
19382
+ sequence_number?: number;
19383
+ updated_at?: string;
19384
+ };
19385
+ Relationships: [{
19386
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19387
+ columns: ["connection_id"];
19388
+ isOneToOne: false;
19389
+ referencedRelation: "floriday_connections";
19390
+ referencedColumns: ["id"];
19391
+ }];
19392
+ };
19365
19393
  floriday_trips_cache: {
19366
19394
  Row: {
19367
19395
  carrier_organization_id: string | null;
@@ -19410,6 +19438,27 @@ export declare const saveStrategy: import("@tanstack/start-client-core").Require
19410
19438
  referencedColumns: ["id"];
19411
19439
  }];
19412
19440
  };
19441
+ floriday_vbn_required_characteristics: {
19442
+ Row: {
19443
+ required_codes: string[];
19444
+ updated_at: string;
19445
+ updated_by: string | null;
19446
+ vbn_code: string;
19447
+ };
19448
+ Insert: {
19449
+ required_codes?: string[];
19450
+ updated_at?: string;
19451
+ updated_by?: string | null;
19452
+ vbn_code: string;
19453
+ };
19454
+ Update: {
19455
+ required_codes?: string[];
19456
+ updated_at?: string;
19457
+ updated_by?: string | null;
19458
+ vbn_code?: string;
19459
+ };
19460
+ Relationships: [];
19461
+ };
19413
19462
  floriday_warehouses_cache: {
19414
19463
  Row: {
19415
19464
  connection_id: string;
@@ -24383,9 +24432,7 @@ export declare const saveStrategy: import("@tanstack/start-client-core").Require
24383
24432
  };
24384
24433
  twinfield_connections: {
24385
24434
  Row: {
24386
- access_token: string | null;
24387
- client_id: string;
24388
- client_secret: string | null;
24435
+ account_key: string | null;
24389
24436
  cluster_uri: string | null;
24390
24437
  company_code: string | null;
24391
24438
  company_name: string | null;
@@ -24397,15 +24444,11 @@ export declare const saveStrategy: import("@tanstack/start-client-core").Require
24397
24444
  label: string | null;
24398
24445
  office_code: string | null;
24399
24446
  redirect_uri: string;
24400
- refresh_token: string | null;
24401
- token_expires_at: string | null;
24402
24447
  updated_at: string;
24403
24448
  user_id: string;
24404
24449
  };
24405
24450
  Insert: {
24406
- access_token?: string | null;
24407
- client_id: string;
24408
- client_secret?: string | null;
24451
+ account_key?: string | null;
24409
24452
  cluster_uri?: string | null;
24410
24453
  company_code?: string | null;
24411
24454
  company_name?: string | null;
@@ -24417,15 +24460,11 @@ export declare const saveStrategy: import("@tanstack/start-client-core").Require
24417
24460
  label?: string | null;
24418
24461
  office_code?: string | null;
24419
24462
  redirect_uri: string;
24420
- refresh_token?: string | null;
24421
- token_expires_at?: string | null;
24422
24463
  updated_at?: string;
24423
24464
  user_id: string;
24424
24465
  };
24425
24466
  Update: {
24426
- access_token?: string | null;
24427
- client_id?: string;
24428
- client_secret?: string | null;
24467
+ account_key?: string | null;
24429
24468
  cluster_uri?: string | null;
24430
24469
  company_code?: string | null;
24431
24470
  company_name?: string | null;
@@ -24437,53 +24476,6 @@ export declare const saveStrategy: import("@tanstack/start-client-core").Require
24437
24476
  label?: string | null;
24438
24477
  office_code?: string | null;
24439
24478
  redirect_uri?: string;
24440
- refresh_token?: string | null;
24441
- token_expires_at?: string | null;
24442
- updated_at?: string;
24443
- user_id?: string;
24444
- };
24445
- Relationships: [];
24446
- };
24447
- twinfield_credentials: {
24448
- Row: {
24449
- administration_code: string | null;
24450
- client_id: string | null;
24451
- client_secret: string | null;
24452
- cluster: string | null;
24453
- connected_at: string | null;
24454
- created_at: string;
24455
- environment: string | null;
24456
- id: string;
24457
- redirect_uri: string | null;
24458
- refresh_token: string | null;
24459
- updated_at: string;
24460
- user_id: string;
24461
- };
24462
- Insert: {
24463
- administration_code?: string | null;
24464
- client_id?: string | null;
24465
- client_secret?: string | null;
24466
- cluster?: string | null;
24467
- connected_at?: string | null;
24468
- created_at?: string;
24469
- environment?: string | null;
24470
- id?: string;
24471
- redirect_uri?: string | null;
24472
- refresh_token?: string | null;
24473
- updated_at?: string;
24474
- user_id: string;
24475
- };
24476
- Update: {
24477
- administration_code?: string | null;
24478
- client_id?: string | null;
24479
- client_secret?: string | null;
24480
- cluster?: string | null;
24481
- connected_at?: string | null;
24482
- created_at?: string;
24483
- environment?: string | null;
24484
- id?: string;
24485
- redirect_uri?: string | null;
24486
- refresh_token?: string | null;
24487
24479
  updated_at?: string;
24488
24480
  user_id?: string;
24489
24481
  };
@@ -24984,30 +24976,6 @@ export declare const saveStrategy: import("@tanstack/start-client-core").Require
24984
24976
  referencedColumns: ["id"];
24985
24977
  }];
24986
24978
  };
24987
- twinfield_oauth_state: {
24988
- Row: {
24989
- created_at: string;
24990
- environment: string;
24991
- nonce: string | null;
24992
- state: string;
24993
- user_id: string;
24994
- };
24995
- Insert: {
24996
- created_at?: string;
24997
- environment: string;
24998
- nonce?: string | null;
24999
- state: string;
25000
- user_id: string;
25001
- };
25002
- Update: {
25003
- created_at?: string;
25004
- environment?: string;
25005
- nonce?: string | null;
25006
- state?: string;
25007
- user_id?: string;
25008
- };
25009
- Relationships: [];
25010
- };
25011
24979
  twinfield_push_queue: {
25012
24980
  Row: {
25013
24981
  action: string;
@@ -25173,39 +25141,6 @@ export declare const saveStrategy: import("@tanstack/start-client-core").Require
25173
25141
  referencedColumns: ["id"];
25174
25142
  }];
25175
25143
  };
25176
- twinfield_token_refresh_log: {
25177
- Row: {
25178
- attempted_at: string;
25179
- connection_id: string;
25180
- error: string | null;
25181
- expires_at: string | null;
25182
- id: string;
25183
- ok: boolean;
25184
- };
25185
- Insert: {
25186
- attempted_at?: string;
25187
- connection_id: string;
25188
- error?: string | null;
25189
- expires_at?: string | null;
25190
- id?: string;
25191
- ok: boolean;
25192
- };
25193
- Update: {
25194
- attempted_at?: string;
25195
- connection_id?: string;
25196
- error?: string | null;
25197
- expires_at?: string | null;
25198
- id?: string;
25199
- ok?: boolean;
25200
- };
25201
- Relationships: [{
25202
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25203
- columns: ["connection_id"];
25204
- isOneToOne: false;
25205
- referencedRelation: "twinfield_connections";
25206
- referencedColumns: ["id"];
25207
- }];
25208
- };
25209
25144
  user_roles: {
25210
25145
  Row: {
25211
25146
  created_at: string;
@@ -27646,15 +27581,16 @@ export declare const saveStrategy: import("@tanstack/start-client-core").Require
27646
27581
  };
27647
27582
  Returns: undefined;
27648
27583
  };
27649
- twinfield_decrypt: {
27584
+ twinfield_upsert_connection_by_account_key: {
27650
27585
  Args: {
27651
- cipher: string;
27652
- };
27653
- Returns: string;
27654
- };
27655
- twinfield_encrypt: {
27656
- Args: {
27657
- plain: string;
27586
+ p_account_key: string;
27587
+ p_cluster_uri?: string;
27588
+ p_company_code?: string;
27589
+ p_company_name?: string;
27590
+ p_environment: string;
27591
+ p_office_code?: string;
27592
+ p_status?: string;
27593
+ p_user_id: string;
27658
27594
  };
27659
27595
  Returns: string;
27660
27596
  };
@@ -32230,6 +32166,27 @@ export declare const deleteStrategy: import("@tanstack/start-client-core").Requi
32230
32166
  referencedColumns: ["id"];
32231
32167
  }];
32232
32168
  };
32169
+ floriday_continuous_stock_cache: {
32170
+ Row: {
32171
+ connection_id: string;
32172
+ fetched_at: string;
32173
+ number_of_pieces: number;
32174
+ trade_item_id: string;
32175
+ };
32176
+ Insert: {
32177
+ connection_id: string;
32178
+ fetched_at?: string;
32179
+ number_of_pieces?: number;
32180
+ trade_item_id: string;
32181
+ };
32182
+ Update: {
32183
+ connection_id?: string;
32184
+ fetched_at?: string;
32185
+ number_of_pieces?: number;
32186
+ trade_item_id?: string;
32187
+ };
32188
+ Relationships: [];
32189
+ };
32233
32190
  floriday_continuous_stock_queue: {
32234
32191
  Row: {
32235
32192
  attempts: number;
@@ -33208,6 +33165,45 @@ export declare const deleteStrategy: import("@tanstack/start-client-core").Requi
33208
33165
  referencedColumns: ["id"];
33209
33166
  }];
33210
33167
  };
33168
+ floriday_trade_settings_customers_cache: {
33169
+ Row: {
33170
+ connection_id: string;
33171
+ data: import("../../integrations/supabase/types").Json;
33172
+ fetched_at: string;
33173
+ floriday_id: string;
33174
+ id: string;
33175
+ is_deleted: boolean;
33176
+ sequence_number: number;
33177
+ updated_at: string;
33178
+ };
33179
+ Insert: {
33180
+ connection_id: string;
33181
+ data: import("../../integrations/supabase/types").Json;
33182
+ fetched_at?: string;
33183
+ floriday_id: string;
33184
+ id?: string;
33185
+ is_deleted?: boolean;
33186
+ sequence_number?: number;
33187
+ updated_at?: string;
33188
+ };
33189
+ Update: {
33190
+ connection_id?: string;
33191
+ data?: import("../../integrations/supabase/types").Json;
33192
+ fetched_at?: string;
33193
+ floriday_id?: string;
33194
+ id?: string;
33195
+ is_deleted?: boolean;
33196
+ sequence_number?: number;
33197
+ updated_at?: string;
33198
+ };
33199
+ Relationships: [{
33200
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33201
+ columns: ["connection_id"];
33202
+ isOneToOne: false;
33203
+ referencedRelation: "floriday_connections";
33204
+ referencedColumns: ["id"];
33205
+ }];
33206
+ };
33211
33207
  floriday_trips_cache: {
33212
33208
  Row: {
33213
33209
  carrier_organization_id: string | null;
@@ -33256,6 +33252,27 @@ export declare const deleteStrategy: import("@tanstack/start-client-core").Requi
33256
33252
  referencedColumns: ["id"];
33257
33253
  }];
33258
33254
  };
33255
+ floriday_vbn_required_characteristics: {
33256
+ Row: {
33257
+ required_codes: string[];
33258
+ updated_at: string;
33259
+ updated_by: string | null;
33260
+ vbn_code: string;
33261
+ };
33262
+ Insert: {
33263
+ required_codes?: string[];
33264
+ updated_at?: string;
33265
+ updated_by?: string | null;
33266
+ vbn_code: string;
33267
+ };
33268
+ Update: {
33269
+ required_codes?: string[];
33270
+ updated_at?: string;
33271
+ updated_by?: string | null;
33272
+ vbn_code?: string;
33273
+ };
33274
+ Relationships: [];
33275
+ };
33259
33276
  floriday_warehouses_cache: {
33260
33277
  Row: {
33261
33278
  connection_id: string;
@@ -38229,9 +38246,7 @@ export declare const deleteStrategy: import("@tanstack/start-client-core").Requi
38229
38246
  };
38230
38247
  twinfield_connections: {
38231
38248
  Row: {
38232
- access_token: string | null;
38233
- client_id: string;
38234
- client_secret: string | null;
38249
+ account_key: string | null;
38235
38250
  cluster_uri: string | null;
38236
38251
  company_code: string | null;
38237
38252
  company_name: string | null;
@@ -38243,15 +38258,11 @@ export declare const deleteStrategy: import("@tanstack/start-client-core").Requi
38243
38258
  label: string | null;
38244
38259
  office_code: string | null;
38245
38260
  redirect_uri: string;
38246
- refresh_token: string | null;
38247
- token_expires_at: string | null;
38248
38261
  updated_at: string;
38249
38262
  user_id: string;
38250
38263
  };
38251
38264
  Insert: {
38252
- access_token?: string | null;
38253
- client_id: string;
38254
- client_secret?: string | null;
38265
+ account_key?: string | null;
38255
38266
  cluster_uri?: string | null;
38256
38267
  company_code?: string | null;
38257
38268
  company_name?: string | null;
@@ -38263,15 +38274,11 @@ export declare const deleteStrategy: import("@tanstack/start-client-core").Requi
38263
38274
  label?: string | null;
38264
38275
  office_code?: string | null;
38265
38276
  redirect_uri: string;
38266
- refresh_token?: string | null;
38267
- token_expires_at?: string | null;
38268
38277
  updated_at?: string;
38269
38278
  user_id: string;
38270
38279
  };
38271
38280
  Update: {
38272
- access_token?: string | null;
38273
- client_id?: string;
38274
- client_secret?: string | null;
38281
+ account_key?: string | null;
38275
38282
  cluster_uri?: string | null;
38276
38283
  company_code?: string | null;
38277
38284
  company_name?: string | null;
@@ -38283,53 +38290,6 @@ export declare const deleteStrategy: import("@tanstack/start-client-core").Requi
38283
38290
  label?: string | null;
38284
38291
  office_code?: string | null;
38285
38292
  redirect_uri?: string;
38286
- refresh_token?: string | null;
38287
- token_expires_at?: string | null;
38288
- updated_at?: string;
38289
- user_id?: string;
38290
- };
38291
- Relationships: [];
38292
- };
38293
- twinfield_credentials: {
38294
- Row: {
38295
- administration_code: string | null;
38296
- client_id: string | null;
38297
- client_secret: string | null;
38298
- cluster: string | null;
38299
- connected_at: string | null;
38300
- created_at: string;
38301
- environment: string | null;
38302
- id: string;
38303
- redirect_uri: string | null;
38304
- refresh_token: string | null;
38305
- updated_at: string;
38306
- user_id: string;
38307
- };
38308
- Insert: {
38309
- administration_code?: string | null;
38310
- client_id?: string | null;
38311
- client_secret?: string | null;
38312
- cluster?: string | null;
38313
- connected_at?: string | null;
38314
- created_at?: string;
38315
- environment?: string | null;
38316
- id?: string;
38317
- redirect_uri?: string | null;
38318
- refresh_token?: string | null;
38319
- updated_at?: string;
38320
- user_id: string;
38321
- };
38322
- Update: {
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
38293
  updated_at?: string;
38334
38294
  user_id?: string;
38335
38295
  };
@@ -38830,30 +38790,6 @@ export declare const deleteStrategy: import("@tanstack/start-client-core").Requi
38830
38790
  referencedColumns: ["id"];
38831
38791
  }];
38832
38792
  };
38833
- twinfield_oauth_state: {
38834
- Row: {
38835
- created_at: string;
38836
- environment: string;
38837
- nonce: string | null;
38838
- state: string;
38839
- user_id: string;
38840
- };
38841
- Insert: {
38842
- created_at?: string;
38843
- environment: string;
38844
- nonce?: string | null;
38845
- state: string;
38846
- user_id: string;
38847
- };
38848
- Update: {
38849
- created_at?: string;
38850
- environment?: string;
38851
- nonce?: string | null;
38852
- state?: string;
38853
- user_id?: string;
38854
- };
38855
- Relationships: [];
38856
- };
38857
38793
  twinfield_push_queue: {
38858
38794
  Row: {
38859
38795
  action: string;
@@ -39019,39 +38955,6 @@ export declare const deleteStrategy: import("@tanstack/start-client-core").Requi
39019
38955
  referencedColumns: ["id"];
39020
38956
  }];
39021
38957
  };
39022
- twinfield_token_refresh_log: {
39023
- Row: {
39024
- attempted_at: string;
39025
- connection_id: string;
39026
- error: string | null;
39027
- expires_at: string | null;
39028
- id: string;
39029
- ok: boolean;
39030
- };
39031
- Insert: {
39032
- attempted_at?: string;
39033
- connection_id: string;
39034
- error?: string | null;
39035
- expires_at?: string | null;
39036
- id?: string;
39037
- ok: boolean;
39038
- };
39039
- Update: {
39040
- attempted_at?: string;
39041
- connection_id?: string;
39042
- error?: string | null;
39043
- expires_at?: string | null;
39044
- id?: string;
39045
- ok?: boolean;
39046
- };
39047
- Relationships: [{
39048
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39049
- columns: ["connection_id"];
39050
- isOneToOne: false;
39051
- referencedRelation: "twinfield_connections";
39052
- referencedColumns: ["id"];
39053
- }];
39054
- };
39055
38958
  user_roles: {
39056
38959
  Row: {
39057
38960
  created_at: string;
@@ -41492,15 +41395,16 @@ export declare const deleteStrategy: import("@tanstack/start-client-core").Requi
41492
41395
  };
41493
41396
  Returns: undefined;
41494
41397
  };
41495
- twinfield_decrypt: {
41496
- Args: {
41497
- cipher: string;
41498
- };
41499
- Returns: string;
41500
- };
41501
- twinfield_encrypt: {
41398
+ twinfield_upsert_connection_by_account_key: {
41502
41399
  Args: {
41503
- plain: string;
41400
+ p_account_key: string;
41401
+ p_cluster_uri?: string;
41402
+ p_company_code?: string;
41403
+ p_company_name?: string;
41404
+ p_environment: string;
41405
+ p_office_code?: string;
41406
+ p_status?: string;
41407
+ p_user_id: string;
41504
41408
  };
41505
41409
  Returns: string;
41506
41410
  };
@@ -46068,6 +45972,27 @@ export declare const activateStrategy: import("@tanstack/start-client-core").Req
46068
45972
  referencedColumns: ["id"];
46069
45973
  }];
46070
45974
  };
45975
+ floriday_continuous_stock_cache: {
45976
+ Row: {
45977
+ connection_id: string;
45978
+ fetched_at: string;
45979
+ number_of_pieces: number;
45980
+ trade_item_id: string;
45981
+ };
45982
+ Insert: {
45983
+ connection_id: string;
45984
+ fetched_at?: string;
45985
+ number_of_pieces?: number;
45986
+ trade_item_id: string;
45987
+ };
45988
+ Update: {
45989
+ connection_id?: string;
45990
+ fetched_at?: string;
45991
+ number_of_pieces?: number;
45992
+ trade_item_id?: string;
45993
+ };
45994
+ Relationships: [];
45995
+ };
46071
45996
  floriday_continuous_stock_queue: {
46072
45997
  Row: {
46073
45998
  attempts: number;
@@ -47046,6 +46971,45 @@ export declare const activateStrategy: import("@tanstack/start-client-core").Req
47046
46971
  referencedColumns: ["id"];
47047
46972
  }];
47048
46973
  };
46974
+ floriday_trade_settings_customers_cache: {
46975
+ Row: {
46976
+ connection_id: string;
46977
+ data: import("../../integrations/supabase/types").Json;
46978
+ fetched_at: string;
46979
+ floriday_id: string;
46980
+ id: string;
46981
+ is_deleted: boolean;
46982
+ sequence_number: number;
46983
+ updated_at: string;
46984
+ };
46985
+ Insert: {
46986
+ connection_id: string;
46987
+ data: import("../../integrations/supabase/types").Json;
46988
+ fetched_at?: string;
46989
+ floriday_id: string;
46990
+ id?: string;
46991
+ is_deleted?: boolean;
46992
+ sequence_number?: number;
46993
+ updated_at?: string;
46994
+ };
46995
+ Update: {
46996
+ connection_id?: string;
46997
+ data?: import("../../integrations/supabase/types").Json;
46998
+ fetched_at?: string;
46999
+ floriday_id?: string;
47000
+ id?: string;
47001
+ is_deleted?: boolean;
47002
+ sequence_number?: number;
47003
+ updated_at?: string;
47004
+ };
47005
+ Relationships: [{
47006
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
47007
+ columns: ["connection_id"];
47008
+ isOneToOne: false;
47009
+ referencedRelation: "floriday_connections";
47010
+ referencedColumns: ["id"];
47011
+ }];
47012
+ };
47049
47013
  floriday_trips_cache: {
47050
47014
  Row: {
47051
47015
  carrier_organization_id: string | null;
@@ -47094,6 +47058,27 @@ export declare const activateStrategy: import("@tanstack/start-client-core").Req
47094
47058
  referencedColumns: ["id"];
47095
47059
  }];
47096
47060
  };
47061
+ floriday_vbn_required_characteristics: {
47062
+ Row: {
47063
+ required_codes: string[];
47064
+ updated_at: string;
47065
+ updated_by: string | null;
47066
+ vbn_code: string;
47067
+ };
47068
+ Insert: {
47069
+ required_codes?: string[];
47070
+ updated_at?: string;
47071
+ updated_by?: string | null;
47072
+ vbn_code: string;
47073
+ };
47074
+ Update: {
47075
+ required_codes?: string[];
47076
+ updated_at?: string;
47077
+ updated_by?: string | null;
47078
+ vbn_code?: string;
47079
+ };
47080
+ Relationships: [];
47081
+ };
47097
47082
  floriday_warehouses_cache: {
47098
47083
  Row: {
47099
47084
  connection_id: string;
@@ -52067,9 +52052,7 @@ export declare const activateStrategy: import("@tanstack/start-client-core").Req
52067
52052
  };
52068
52053
  twinfield_connections: {
52069
52054
  Row: {
52070
- access_token: string | null;
52071
- client_id: string;
52072
- client_secret: string | null;
52055
+ account_key: string | null;
52073
52056
  cluster_uri: string | null;
52074
52057
  company_code: string | null;
52075
52058
  company_name: string | null;
@@ -52081,15 +52064,11 @@ export declare const activateStrategy: import("@tanstack/start-client-core").Req
52081
52064
  label: string | null;
52082
52065
  office_code: string | null;
52083
52066
  redirect_uri: string;
52084
- refresh_token: string | null;
52085
- token_expires_at: string | null;
52086
52067
  updated_at: string;
52087
52068
  user_id: string;
52088
52069
  };
52089
52070
  Insert: {
52090
- access_token?: string | null;
52091
- client_id: string;
52092
- client_secret?: string | null;
52071
+ account_key?: string | null;
52093
52072
  cluster_uri?: string | null;
52094
52073
  company_code?: string | null;
52095
52074
  company_name?: string | null;
@@ -52101,15 +52080,11 @@ export declare const activateStrategy: import("@tanstack/start-client-core").Req
52101
52080
  label?: string | null;
52102
52081
  office_code?: string | null;
52103
52082
  redirect_uri: string;
52104
- refresh_token?: string | null;
52105
- token_expires_at?: string | null;
52106
52083
  updated_at?: string;
52107
52084
  user_id: string;
52108
52085
  };
52109
52086
  Update: {
52110
- access_token?: string | null;
52111
- client_id?: string;
52112
- client_secret?: string | null;
52087
+ account_key?: string | null;
52113
52088
  cluster_uri?: string | null;
52114
52089
  company_code?: string | null;
52115
52090
  company_name?: string | null;
@@ -52121,53 +52096,6 @@ export declare const activateStrategy: import("@tanstack/start-client-core").Req
52121
52096
  label?: string | null;
52122
52097
  office_code?: string | null;
52123
52098
  redirect_uri?: string;
52124
- refresh_token?: string | null;
52125
- token_expires_at?: string | null;
52126
- updated_at?: string;
52127
- user_id?: string;
52128
- };
52129
- Relationships: [];
52130
- };
52131
- twinfield_credentials: {
52132
- Row: {
52133
- administration_code: string | null;
52134
- client_id: string | null;
52135
- client_secret: string | null;
52136
- cluster: string | null;
52137
- connected_at: string | null;
52138
- created_at: string;
52139
- environment: string | null;
52140
- id: string;
52141
- redirect_uri: string | null;
52142
- refresh_token: string | null;
52143
- updated_at: string;
52144
- user_id: string;
52145
- };
52146
- Insert: {
52147
- administration_code?: string | null;
52148
- client_id?: string | null;
52149
- client_secret?: string | null;
52150
- cluster?: string | null;
52151
- connected_at?: string | null;
52152
- created_at?: string;
52153
- environment?: string | null;
52154
- id?: string;
52155
- redirect_uri?: string | null;
52156
- refresh_token?: string | null;
52157
- updated_at?: string;
52158
- user_id: string;
52159
- };
52160
- Update: {
52161
- administration_code?: string | null;
52162
- client_id?: string | null;
52163
- client_secret?: string | null;
52164
- cluster?: string | null;
52165
- connected_at?: string | null;
52166
- created_at?: string;
52167
- environment?: string | null;
52168
- id?: string;
52169
- redirect_uri?: string | null;
52170
- refresh_token?: string | null;
52171
52099
  updated_at?: string;
52172
52100
  user_id?: string;
52173
52101
  };
@@ -52668,30 +52596,6 @@ export declare const activateStrategy: import("@tanstack/start-client-core").Req
52668
52596
  referencedColumns: ["id"];
52669
52597
  }];
52670
52598
  };
52671
- twinfield_oauth_state: {
52672
- Row: {
52673
- created_at: string;
52674
- environment: string;
52675
- nonce: string | null;
52676
- state: string;
52677
- user_id: string;
52678
- };
52679
- Insert: {
52680
- created_at?: string;
52681
- environment: string;
52682
- nonce?: string | null;
52683
- state: string;
52684
- user_id: string;
52685
- };
52686
- Update: {
52687
- created_at?: string;
52688
- environment?: string;
52689
- nonce?: string | null;
52690
- state?: string;
52691
- user_id?: string;
52692
- };
52693
- Relationships: [];
52694
- };
52695
52599
  twinfield_push_queue: {
52696
52600
  Row: {
52697
52601
  action: string;
@@ -52857,39 +52761,6 @@ export declare const activateStrategy: import("@tanstack/start-client-core").Req
52857
52761
  referencedColumns: ["id"];
52858
52762
  }];
52859
52763
  };
52860
- twinfield_token_refresh_log: {
52861
- Row: {
52862
- attempted_at: string;
52863
- connection_id: string;
52864
- error: string | null;
52865
- expires_at: string | null;
52866
- id: string;
52867
- ok: boolean;
52868
- };
52869
- Insert: {
52870
- attempted_at?: string;
52871
- connection_id: string;
52872
- error?: string | null;
52873
- expires_at?: string | null;
52874
- id?: string;
52875
- ok: boolean;
52876
- };
52877
- Update: {
52878
- attempted_at?: string;
52879
- connection_id?: string;
52880
- error?: string | null;
52881
- expires_at?: string | null;
52882
- id?: string;
52883
- ok?: boolean;
52884
- };
52885
- Relationships: [{
52886
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
52887
- columns: ["connection_id"];
52888
- isOneToOne: false;
52889
- referencedRelation: "twinfield_connections";
52890
- referencedColumns: ["id"];
52891
- }];
52892
- };
52893
52764
  user_roles: {
52894
52765
  Row: {
52895
52766
  created_at: string;
@@ -55330,15 +55201,16 @@ export declare const activateStrategy: import("@tanstack/start-client-core").Req
55330
55201
  };
55331
55202
  Returns: undefined;
55332
55203
  };
55333
- twinfield_decrypt: {
55204
+ twinfield_upsert_connection_by_account_key: {
55334
55205
  Args: {
55335
- cipher: string;
55336
- };
55337
- Returns: string;
55338
- };
55339
- twinfield_encrypt: {
55340
- Args: {
55341
- plain: string;
55206
+ p_account_key: string;
55207
+ p_cluster_uri?: string;
55208
+ p_company_code?: string;
55209
+ p_company_name?: string;
55210
+ p_environment: string;
55211
+ p_office_code?: string;
55212
+ p_status?: string;
55213
+ p_user_id: string;
55342
55214
  };
55343
55215
  Returns: string;
55344
55216
  };
@@ -59906,6 +59778,27 @@ export declare const deactivateAllStrategies: import("@tanstack/start-client-cor
59906
59778
  referencedColumns: ["id"];
59907
59779
  }];
59908
59780
  };
59781
+ floriday_continuous_stock_cache: {
59782
+ Row: {
59783
+ connection_id: string;
59784
+ fetched_at: string;
59785
+ number_of_pieces: number;
59786
+ trade_item_id: string;
59787
+ };
59788
+ Insert: {
59789
+ connection_id: string;
59790
+ fetched_at?: string;
59791
+ number_of_pieces?: number;
59792
+ trade_item_id: string;
59793
+ };
59794
+ Update: {
59795
+ connection_id?: string;
59796
+ fetched_at?: string;
59797
+ number_of_pieces?: number;
59798
+ trade_item_id?: string;
59799
+ };
59800
+ Relationships: [];
59801
+ };
59909
59802
  floriday_continuous_stock_queue: {
59910
59803
  Row: {
59911
59804
  attempts: number;
@@ -60884,6 +60777,45 @@ export declare const deactivateAllStrategies: import("@tanstack/start-client-cor
60884
60777
  referencedColumns: ["id"];
60885
60778
  }];
60886
60779
  };
60780
+ floriday_trade_settings_customers_cache: {
60781
+ Row: {
60782
+ connection_id: string;
60783
+ data: import("../../integrations/supabase/types").Json;
60784
+ fetched_at: string;
60785
+ floriday_id: string;
60786
+ id: string;
60787
+ is_deleted: boolean;
60788
+ sequence_number: number;
60789
+ updated_at: string;
60790
+ };
60791
+ Insert: {
60792
+ connection_id: string;
60793
+ data: import("../../integrations/supabase/types").Json;
60794
+ fetched_at?: string;
60795
+ floriday_id: string;
60796
+ id?: string;
60797
+ is_deleted?: boolean;
60798
+ sequence_number?: number;
60799
+ updated_at?: string;
60800
+ };
60801
+ Update: {
60802
+ connection_id?: string;
60803
+ data?: import("../../integrations/supabase/types").Json;
60804
+ fetched_at?: string;
60805
+ floriday_id?: string;
60806
+ id?: string;
60807
+ is_deleted?: boolean;
60808
+ sequence_number?: number;
60809
+ updated_at?: string;
60810
+ };
60811
+ Relationships: [{
60812
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
60813
+ columns: ["connection_id"];
60814
+ isOneToOne: false;
60815
+ referencedRelation: "floriday_connections";
60816
+ referencedColumns: ["id"];
60817
+ }];
60818
+ };
60887
60819
  floriday_trips_cache: {
60888
60820
  Row: {
60889
60821
  carrier_organization_id: string | null;
@@ -60932,6 +60864,27 @@ export declare const deactivateAllStrategies: import("@tanstack/start-client-cor
60932
60864
  referencedColumns: ["id"];
60933
60865
  }];
60934
60866
  };
60867
+ floriday_vbn_required_characteristics: {
60868
+ Row: {
60869
+ required_codes: string[];
60870
+ updated_at: string;
60871
+ updated_by: string | null;
60872
+ vbn_code: string;
60873
+ };
60874
+ Insert: {
60875
+ required_codes?: string[];
60876
+ updated_at?: string;
60877
+ updated_by?: string | null;
60878
+ vbn_code: string;
60879
+ };
60880
+ Update: {
60881
+ required_codes?: string[];
60882
+ updated_at?: string;
60883
+ updated_by?: string | null;
60884
+ vbn_code?: string;
60885
+ };
60886
+ Relationships: [];
60887
+ };
60935
60888
  floriday_warehouses_cache: {
60936
60889
  Row: {
60937
60890
  connection_id: string;
@@ -65905,9 +65858,7 @@ export declare const deactivateAllStrategies: import("@tanstack/start-client-cor
65905
65858
  };
65906
65859
  twinfield_connections: {
65907
65860
  Row: {
65908
- access_token: string | null;
65909
- client_id: string;
65910
- client_secret: string | null;
65861
+ account_key: string | null;
65911
65862
  cluster_uri: string | null;
65912
65863
  company_code: string | null;
65913
65864
  company_name: string | null;
@@ -65919,15 +65870,11 @@ export declare const deactivateAllStrategies: import("@tanstack/start-client-cor
65919
65870
  label: string | null;
65920
65871
  office_code: string | null;
65921
65872
  redirect_uri: string;
65922
- refresh_token: string | null;
65923
- token_expires_at: string | null;
65924
65873
  updated_at: string;
65925
65874
  user_id: string;
65926
65875
  };
65927
65876
  Insert: {
65928
- access_token?: string | null;
65929
- client_id: string;
65930
- client_secret?: string | null;
65877
+ account_key?: string | null;
65931
65878
  cluster_uri?: string | null;
65932
65879
  company_code?: string | null;
65933
65880
  company_name?: string | null;
@@ -65939,15 +65886,11 @@ export declare const deactivateAllStrategies: import("@tanstack/start-client-cor
65939
65886
  label?: string | null;
65940
65887
  office_code?: string | null;
65941
65888
  redirect_uri: string;
65942
- refresh_token?: string | null;
65943
- token_expires_at?: string | null;
65944
65889
  updated_at?: string;
65945
65890
  user_id: string;
65946
65891
  };
65947
65892
  Update: {
65948
- access_token?: string | null;
65949
- client_id?: string;
65950
- client_secret?: string | null;
65893
+ account_key?: string | null;
65951
65894
  cluster_uri?: string | null;
65952
65895
  company_code?: string | null;
65953
65896
  company_name?: string | null;
@@ -65959,53 +65902,6 @@ export declare const deactivateAllStrategies: import("@tanstack/start-client-cor
65959
65902
  label?: string | null;
65960
65903
  office_code?: string | null;
65961
65904
  redirect_uri?: string;
65962
- refresh_token?: string | null;
65963
- token_expires_at?: string | null;
65964
- updated_at?: string;
65965
- user_id?: string;
65966
- };
65967
- Relationships: [];
65968
- };
65969
- twinfield_credentials: {
65970
- Row: {
65971
- administration_code: string | null;
65972
- client_id: string | null;
65973
- client_secret: string | null;
65974
- cluster: string | null;
65975
- connected_at: string | null;
65976
- created_at: string;
65977
- environment: string | null;
65978
- id: string;
65979
- redirect_uri: string | null;
65980
- refresh_token: string | null;
65981
- updated_at: string;
65982
- user_id: string;
65983
- };
65984
- Insert: {
65985
- administration_code?: string | null;
65986
- client_id?: string | null;
65987
- client_secret?: string | null;
65988
- cluster?: string | null;
65989
- connected_at?: string | null;
65990
- created_at?: string;
65991
- environment?: string | null;
65992
- id?: string;
65993
- redirect_uri?: string | null;
65994
- refresh_token?: string | null;
65995
- updated_at?: string;
65996
- user_id: string;
65997
- };
65998
- Update: {
65999
- administration_code?: string | null;
66000
- client_id?: string | null;
66001
- client_secret?: string | null;
66002
- cluster?: string | null;
66003
- connected_at?: string | null;
66004
- created_at?: string;
66005
- environment?: string | null;
66006
- id?: string;
66007
- redirect_uri?: string | null;
66008
- refresh_token?: string | null;
66009
65905
  updated_at?: string;
66010
65906
  user_id?: string;
66011
65907
  };
@@ -66506,30 +66402,6 @@ export declare const deactivateAllStrategies: import("@tanstack/start-client-cor
66506
66402
  referencedColumns: ["id"];
66507
66403
  }];
66508
66404
  };
66509
- twinfield_oauth_state: {
66510
- Row: {
66511
- created_at: string;
66512
- environment: string;
66513
- nonce: string | null;
66514
- state: string;
66515
- user_id: string;
66516
- };
66517
- Insert: {
66518
- created_at?: string;
66519
- environment: string;
66520
- nonce?: string | null;
66521
- state: string;
66522
- user_id: string;
66523
- };
66524
- Update: {
66525
- created_at?: string;
66526
- environment?: string;
66527
- nonce?: string | null;
66528
- state?: string;
66529
- user_id?: string;
66530
- };
66531
- Relationships: [];
66532
- };
66533
66405
  twinfield_push_queue: {
66534
66406
  Row: {
66535
66407
  action: string;
@@ -66695,39 +66567,6 @@ export declare const deactivateAllStrategies: import("@tanstack/start-client-cor
66695
66567
  referencedColumns: ["id"];
66696
66568
  }];
66697
66569
  };
66698
- twinfield_token_refresh_log: {
66699
- Row: {
66700
- attempted_at: string;
66701
- connection_id: string;
66702
- error: string | null;
66703
- expires_at: string | null;
66704
- id: string;
66705
- ok: boolean;
66706
- };
66707
- Insert: {
66708
- attempted_at?: string;
66709
- connection_id: string;
66710
- error?: string | null;
66711
- expires_at?: string | null;
66712
- id?: string;
66713
- ok: boolean;
66714
- };
66715
- Update: {
66716
- attempted_at?: string;
66717
- connection_id?: string;
66718
- error?: string | null;
66719
- expires_at?: string | null;
66720
- id?: string;
66721
- ok?: boolean;
66722
- };
66723
- Relationships: [{
66724
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
66725
- columns: ["connection_id"];
66726
- isOneToOne: false;
66727
- referencedRelation: "twinfield_connections";
66728
- referencedColumns: ["id"];
66729
- }];
66730
- };
66731
66570
  user_roles: {
66732
66571
  Row: {
66733
66572
  created_at: string;
@@ -69168,15 +69007,16 @@ export declare const deactivateAllStrategies: import("@tanstack/start-client-cor
69168
69007
  };
69169
69008
  Returns: undefined;
69170
69009
  };
69171
- twinfield_decrypt: {
69010
+ twinfield_upsert_connection_by_account_key: {
69172
69011
  Args: {
69173
- cipher: string;
69174
- };
69175
- Returns: string;
69176
- };
69177
- twinfield_encrypt: {
69178
- Args: {
69179
- plain: string;
69012
+ p_account_key: string;
69013
+ p_cluster_uri?: string;
69014
+ p_company_code?: string;
69015
+ p_company_name?: string;
69016
+ p_environment: string;
69017
+ p_office_code?: string;
69018
+ p_status?: string;
69019
+ p_user_id: string;
69180
69020
  };
69181
69021
  Returns: string;
69182
69022
  };
@@ -73740,6 +73580,27 @@ export declare const listSchedules: import("@tanstack/start-client-core").Option
73740
73580
  referencedColumns: ["id"];
73741
73581
  }];
73742
73582
  };
73583
+ floriday_continuous_stock_cache: {
73584
+ Row: {
73585
+ connection_id: string;
73586
+ fetched_at: string;
73587
+ number_of_pieces: number;
73588
+ trade_item_id: string;
73589
+ };
73590
+ Insert: {
73591
+ connection_id: string;
73592
+ fetched_at?: string;
73593
+ number_of_pieces?: number;
73594
+ trade_item_id: string;
73595
+ };
73596
+ Update: {
73597
+ connection_id?: string;
73598
+ fetched_at?: string;
73599
+ number_of_pieces?: number;
73600
+ trade_item_id?: string;
73601
+ };
73602
+ Relationships: [];
73603
+ };
73743
73604
  floriday_continuous_stock_queue: {
73744
73605
  Row: {
73745
73606
  attempts: number;
@@ -74718,6 +74579,45 @@ export declare const listSchedules: import("@tanstack/start-client-core").Option
74718
74579
  referencedColumns: ["id"];
74719
74580
  }];
74720
74581
  };
74582
+ floriday_trade_settings_customers_cache: {
74583
+ Row: {
74584
+ connection_id: string;
74585
+ data: import("../../integrations/supabase/types").Json;
74586
+ fetched_at: string;
74587
+ floriday_id: string;
74588
+ id: string;
74589
+ is_deleted: boolean;
74590
+ sequence_number: number;
74591
+ updated_at: string;
74592
+ };
74593
+ Insert: {
74594
+ connection_id: string;
74595
+ data: import("../../integrations/supabase/types").Json;
74596
+ fetched_at?: string;
74597
+ floriday_id: string;
74598
+ id?: string;
74599
+ is_deleted?: boolean;
74600
+ sequence_number?: number;
74601
+ updated_at?: string;
74602
+ };
74603
+ Update: {
74604
+ connection_id?: string;
74605
+ data?: import("../../integrations/supabase/types").Json;
74606
+ fetched_at?: string;
74607
+ floriday_id?: string;
74608
+ id?: string;
74609
+ is_deleted?: boolean;
74610
+ sequence_number?: number;
74611
+ updated_at?: string;
74612
+ };
74613
+ Relationships: [{
74614
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
74615
+ columns: ["connection_id"];
74616
+ isOneToOne: false;
74617
+ referencedRelation: "floriday_connections";
74618
+ referencedColumns: ["id"];
74619
+ }];
74620
+ };
74721
74621
  floriday_trips_cache: {
74722
74622
  Row: {
74723
74623
  carrier_organization_id: string | null;
@@ -74766,6 +74666,27 @@ export declare const listSchedules: import("@tanstack/start-client-core").Option
74766
74666
  referencedColumns: ["id"];
74767
74667
  }];
74768
74668
  };
74669
+ floriday_vbn_required_characteristics: {
74670
+ Row: {
74671
+ required_codes: string[];
74672
+ updated_at: string;
74673
+ updated_by: string | null;
74674
+ vbn_code: string;
74675
+ };
74676
+ Insert: {
74677
+ required_codes?: string[];
74678
+ updated_at?: string;
74679
+ updated_by?: string | null;
74680
+ vbn_code: string;
74681
+ };
74682
+ Update: {
74683
+ required_codes?: string[];
74684
+ updated_at?: string;
74685
+ updated_by?: string | null;
74686
+ vbn_code?: string;
74687
+ };
74688
+ Relationships: [];
74689
+ };
74769
74690
  floriday_warehouses_cache: {
74770
74691
  Row: {
74771
74692
  connection_id: string;
@@ -79739,9 +79660,7 @@ export declare const listSchedules: import("@tanstack/start-client-core").Option
79739
79660
  };
79740
79661
  twinfield_connections: {
79741
79662
  Row: {
79742
- access_token: string | null;
79743
- client_id: string;
79744
- client_secret: string | null;
79663
+ account_key: string | null;
79745
79664
  cluster_uri: string | null;
79746
79665
  company_code: string | null;
79747
79666
  company_name: string | null;
@@ -79753,15 +79672,11 @@ export declare const listSchedules: import("@tanstack/start-client-core").Option
79753
79672
  label: string | null;
79754
79673
  office_code: string | null;
79755
79674
  redirect_uri: string;
79756
- refresh_token: string | null;
79757
- token_expires_at: string | null;
79758
79675
  updated_at: string;
79759
79676
  user_id: string;
79760
79677
  };
79761
79678
  Insert: {
79762
- access_token?: string | null;
79763
- client_id: string;
79764
- client_secret?: string | null;
79679
+ account_key?: string | null;
79765
79680
  cluster_uri?: string | null;
79766
79681
  company_code?: string | null;
79767
79682
  company_name?: string | null;
@@ -79773,15 +79688,11 @@ export declare const listSchedules: import("@tanstack/start-client-core").Option
79773
79688
  label?: string | null;
79774
79689
  office_code?: string | null;
79775
79690
  redirect_uri: string;
79776
- refresh_token?: string | null;
79777
- token_expires_at?: string | null;
79778
79691
  updated_at?: string;
79779
79692
  user_id: string;
79780
79693
  };
79781
79694
  Update: {
79782
- access_token?: string | null;
79783
- client_id?: string;
79784
- client_secret?: string | null;
79695
+ account_key?: string | null;
79785
79696
  cluster_uri?: string | null;
79786
79697
  company_code?: string | null;
79787
79698
  company_name?: string | null;
@@ -79793,53 +79704,6 @@ export declare const listSchedules: import("@tanstack/start-client-core").Option
79793
79704
  label?: string | null;
79794
79705
  office_code?: string | null;
79795
79706
  redirect_uri?: string;
79796
- refresh_token?: string | null;
79797
- token_expires_at?: string | null;
79798
- updated_at?: string;
79799
- user_id?: string;
79800
- };
79801
- Relationships: [];
79802
- };
79803
- twinfield_credentials: {
79804
- Row: {
79805
- administration_code: string | null;
79806
- client_id: string | null;
79807
- client_secret: string | null;
79808
- cluster: string | null;
79809
- connected_at: string | null;
79810
- created_at: string;
79811
- environment: string | null;
79812
- id: string;
79813
- redirect_uri: string | null;
79814
- refresh_token: string | null;
79815
- updated_at: string;
79816
- user_id: string;
79817
- };
79818
- Insert: {
79819
- administration_code?: string | null;
79820
- client_id?: string | null;
79821
- client_secret?: string | null;
79822
- cluster?: string | null;
79823
- connected_at?: string | null;
79824
- created_at?: string;
79825
- environment?: string | null;
79826
- id?: string;
79827
- redirect_uri?: string | null;
79828
- refresh_token?: string | null;
79829
- updated_at?: string;
79830
- user_id: string;
79831
- };
79832
- Update: {
79833
- administration_code?: string | null;
79834
- client_id?: string | null;
79835
- client_secret?: string | null;
79836
- cluster?: string | null;
79837
- connected_at?: string | null;
79838
- created_at?: string;
79839
- environment?: string | null;
79840
- id?: string;
79841
- redirect_uri?: string | null;
79842
- refresh_token?: string | null;
79843
79707
  updated_at?: string;
79844
79708
  user_id?: string;
79845
79709
  };
@@ -80340,30 +80204,6 @@ export declare const listSchedules: import("@tanstack/start-client-core").Option
80340
80204
  referencedColumns: ["id"];
80341
80205
  }];
80342
80206
  };
80343
- twinfield_oauth_state: {
80344
- Row: {
80345
- created_at: string;
80346
- environment: string;
80347
- nonce: string | null;
80348
- state: string;
80349
- user_id: string;
80350
- };
80351
- Insert: {
80352
- created_at?: string;
80353
- environment: string;
80354
- nonce?: string | null;
80355
- state: string;
80356
- user_id: string;
80357
- };
80358
- Update: {
80359
- created_at?: string;
80360
- environment?: string;
80361
- nonce?: string | null;
80362
- state?: string;
80363
- user_id?: string;
80364
- };
80365
- Relationships: [];
80366
- };
80367
80207
  twinfield_push_queue: {
80368
80208
  Row: {
80369
80209
  action: string;
@@ -80529,39 +80369,6 @@ export declare const listSchedules: import("@tanstack/start-client-core").Option
80529
80369
  referencedColumns: ["id"];
80530
80370
  }];
80531
80371
  };
80532
- twinfield_token_refresh_log: {
80533
- Row: {
80534
- attempted_at: string;
80535
- connection_id: string;
80536
- error: string | null;
80537
- expires_at: string | null;
80538
- id: string;
80539
- ok: boolean;
80540
- };
80541
- Insert: {
80542
- attempted_at?: string;
80543
- connection_id: string;
80544
- error?: string | null;
80545
- expires_at?: string | null;
80546
- id?: string;
80547
- ok: boolean;
80548
- };
80549
- Update: {
80550
- attempted_at?: string;
80551
- connection_id?: string;
80552
- error?: string | null;
80553
- expires_at?: string | null;
80554
- id?: string;
80555
- ok?: boolean;
80556
- };
80557
- Relationships: [{
80558
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
80559
- columns: ["connection_id"];
80560
- isOneToOne: false;
80561
- referencedRelation: "twinfield_connections";
80562
- referencedColumns: ["id"];
80563
- }];
80564
- };
80565
80372
  user_roles: {
80566
80373
  Row: {
80567
80374
  created_at: string;
@@ -83002,15 +82809,16 @@ export declare const listSchedules: import("@tanstack/start-client-core").Option
83002
82809
  };
83003
82810
  Returns: undefined;
83004
82811
  };
83005
- twinfield_decrypt: {
83006
- Args: {
83007
- cipher: string;
83008
- };
83009
- Returns: string;
83010
- };
83011
- twinfield_encrypt: {
82812
+ twinfield_upsert_connection_by_account_key: {
83012
82813
  Args: {
83013
- plain: string;
82814
+ p_account_key: string;
82815
+ p_cluster_uri?: string;
82816
+ p_company_code?: string;
82817
+ p_company_name?: string;
82818
+ p_environment: string;
82819
+ p_office_code?: string;
82820
+ p_status?: string;
82821
+ p_user_id: string;
83014
82822
  };
83015
82823
  Returns: string;
83016
82824
  };
@@ -87574,6 +87382,27 @@ export declare const saveSchedule: import("@tanstack/start-client-core").Require
87574
87382
  referencedColumns: ["id"];
87575
87383
  }];
87576
87384
  };
87385
+ floriday_continuous_stock_cache: {
87386
+ Row: {
87387
+ connection_id: string;
87388
+ fetched_at: string;
87389
+ number_of_pieces: number;
87390
+ trade_item_id: string;
87391
+ };
87392
+ Insert: {
87393
+ connection_id: string;
87394
+ fetched_at?: string;
87395
+ number_of_pieces?: number;
87396
+ trade_item_id: string;
87397
+ };
87398
+ Update: {
87399
+ connection_id?: string;
87400
+ fetched_at?: string;
87401
+ number_of_pieces?: number;
87402
+ trade_item_id?: string;
87403
+ };
87404
+ Relationships: [];
87405
+ };
87577
87406
  floriday_continuous_stock_queue: {
87578
87407
  Row: {
87579
87408
  attempts: number;
@@ -88552,6 +88381,45 @@ export declare const saveSchedule: import("@tanstack/start-client-core").Require
88552
88381
  referencedColumns: ["id"];
88553
88382
  }];
88554
88383
  };
88384
+ floriday_trade_settings_customers_cache: {
88385
+ Row: {
88386
+ connection_id: string;
88387
+ data: import("../../integrations/supabase/types").Json;
88388
+ fetched_at: string;
88389
+ floriday_id: string;
88390
+ id: string;
88391
+ is_deleted: boolean;
88392
+ sequence_number: number;
88393
+ updated_at: string;
88394
+ };
88395
+ Insert: {
88396
+ connection_id: string;
88397
+ data: import("../../integrations/supabase/types").Json;
88398
+ fetched_at?: string;
88399
+ floriday_id: string;
88400
+ id?: string;
88401
+ is_deleted?: boolean;
88402
+ sequence_number?: number;
88403
+ updated_at?: string;
88404
+ };
88405
+ Update: {
88406
+ connection_id?: string;
88407
+ data?: import("../../integrations/supabase/types").Json;
88408
+ fetched_at?: string;
88409
+ floriday_id?: string;
88410
+ id?: string;
88411
+ is_deleted?: boolean;
88412
+ sequence_number?: number;
88413
+ updated_at?: string;
88414
+ };
88415
+ Relationships: [{
88416
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
88417
+ columns: ["connection_id"];
88418
+ isOneToOne: false;
88419
+ referencedRelation: "floriday_connections";
88420
+ referencedColumns: ["id"];
88421
+ }];
88422
+ };
88555
88423
  floriday_trips_cache: {
88556
88424
  Row: {
88557
88425
  carrier_organization_id: string | null;
@@ -88600,6 +88468,27 @@ export declare const saveSchedule: import("@tanstack/start-client-core").Require
88600
88468
  referencedColumns: ["id"];
88601
88469
  }];
88602
88470
  };
88471
+ floriday_vbn_required_characteristics: {
88472
+ Row: {
88473
+ required_codes: string[];
88474
+ updated_at: string;
88475
+ updated_by: string | null;
88476
+ vbn_code: string;
88477
+ };
88478
+ Insert: {
88479
+ required_codes?: string[];
88480
+ updated_at?: string;
88481
+ updated_by?: string | null;
88482
+ vbn_code: string;
88483
+ };
88484
+ Update: {
88485
+ required_codes?: string[];
88486
+ updated_at?: string;
88487
+ updated_by?: string | null;
88488
+ vbn_code?: string;
88489
+ };
88490
+ Relationships: [];
88491
+ };
88603
88492
  floriday_warehouses_cache: {
88604
88493
  Row: {
88605
88494
  connection_id: string;
@@ -93573,9 +93462,7 @@ export declare const saveSchedule: import("@tanstack/start-client-core").Require
93573
93462
  };
93574
93463
  twinfield_connections: {
93575
93464
  Row: {
93576
- access_token: string | null;
93577
- client_id: string;
93578
- client_secret: string | null;
93465
+ account_key: string | null;
93579
93466
  cluster_uri: string | null;
93580
93467
  company_code: string | null;
93581
93468
  company_name: string | null;
@@ -93587,15 +93474,11 @@ export declare const saveSchedule: import("@tanstack/start-client-core").Require
93587
93474
  label: string | null;
93588
93475
  office_code: string | null;
93589
93476
  redirect_uri: string;
93590
- refresh_token: string | null;
93591
- token_expires_at: string | null;
93592
93477
  updated_at: string;
93593
93478
  user_id: string;
93594
93479
  };
93595
93480
  Insert: {
93596
- access_token?: string | null;
93597
- client_id: string;
93598
- client_secret?: string | null;
93481
+ account_key?: string | null;
93599
93482
  cluster_uri?: string | null;
93600
93483
  company_code?: string | null;
93601
93484
  company_name?: string | null;
@@ -93607,15 +93490,11 @@ export declare const saveSchedule: import("@tanstack/start-client-core").Require
93607
93490
  label?: string | null;
93608
93491
  office_code?: string | null;
93609
93492
  redirect_uri: string;
93610
- refresh_token?: string | null;
93611
- token_expires_at?: string | null;
93612
93493
  updated_at?: string;
93613
93494
  user_id: string;
93614
93495
  };
93615
93496
  Update: {
93616
- access_token?: string | null;
93617
- client_id?: string;
93618
- client_secret?: string | null;
93497
+ account_key?: string | null;
93619
93498
  cluster_uri?: string | null;
93620
93499
  company_code?: string | null;
93621
93500
  company_name?: string | null;
@@ -93627,53 +93506,6 @@ export declare const saveSchedule: import("@tanstack/start-client-core").Require
93627
93506
  label?: string | null;
93628
93507
  office_code?: string | null;
93629
93508
  redirect_uri?: string;
93630
- refresh_token?: string | null;
93631
- token_expires_at?: string | null;
93632
- updated_at?: string;
93633
- user_id?: string;
93634
- };
93635
- Relationships: [];
93636
- };
93637
- twinfield_credentials: {
93638
- Row: {
93639
- administration_code: string | null;
93640
- client_id: string | null;
93641
- client_secret: string | null;
93642
- cluster: string | null;
93643
- connected_at: string | null;
93644
- created_at: string;
93645
- environment: string | null;
93646
- id: string;
93647
- redirect_uri: string | null;
93648
- refresh_token: string | null;
93649
- updated_at: string;
93650
- user_id: string;
93651
- };
93652
- Insert: {
93653
- administration_code?: string | null;
93654
- client_id?: string | null;
93655
- client_secret?: string | null;
93656
- cluster?: string | null;
93657
- connected_at?: string | null;
93658
- created_at?: string;
93659
- environment?: string | null;
93660
- id?: string;
93661
- redirect_uri?: string | null;
93662
- refresh_token?: string | null;
93663
- updated_at?: string;
93664
- user_id: string;
93665
- };
93666
- Update: {
93667
- administration_code?: string | null;
93668
- client_id?: string | null;
93669
- client_secret?: string | null;
93670
- cluster?: string | null;
93671
- connected_at?: string | null;
93672
- created_at?: string;
93673
- environment?: string | null;
93674
- id?: string;
93675
- redirect_uri?: string | null;
93676
- refresh_token?: string | null;
93677
93509
  updated_at?: string;
93678
93510
  user_id?: string;
93679
93511
  };
@@ -94174,30 +94006,6 @@ export declare const saveSchedule: import("@tanstack/start-client-core").Require
94174
94006
  referencedColumns: ["id"];
94175
94007
  }];
94176
94008
  };
94177
- twinfield_oauth_state: {
94178
- Row: {
94179
- created_at: string;
94180
- environment: string;
94181
- nonce: string | null;
94182
- state: string;
94183
- user_id: string;
94184
- };
94185
- Insert: {
94186
- created_at?: string;
94187
- environment: string;
94188
- nonce?: string | null;
94189
- state: string;
94190
- user_id: string;
94191
- };
94192
- Update: {
94193
- created_at?: string;
94194
- environment?: string;
94195
- nonce?: string | null;
94196
- state?: string;
94197
- user_id?: string;
94198
- };
94199
- Relationships: [];
94200
- };
94201
94009
  twinfield_push_queue: {
94202
94010
  Row: {
94203
94011
  action: string;
@@ -94363,39 +94171,6 @@ export declare const saveSchedule: import("@tanstack/start-client-core").Require
94363
94171
  referencedColumns: ["id"];
94364
94172
  }];
94365
94173
  };
94366
- twinfield_token_refresh_log: {
94367
- Row: {
94368
- attempted_at: string;
94369
- connection_id: string;
94370
- error: string | null;
94371
- expires_at: string | null;
94372
- id: string;
94373
- ok: boolean;
94374
- };
94375
- Insert: {
94376
- attempted_at?: string;
94377
- connection_id: string;
94378
- error?: string | null;
94379
- expires_at?: string | null;
94380
- id?: string;
94381
- ok: boolean;
94382
- };
94383
- Update: {
94384
- attempted_at?: string;
94385
- connection_id?: string;
94386
- error?: string | null;
94387
- expires_at?: string | null;
94388
- id?: string;
94389
- ok?: boolean;
94390
- };
94391
- Relationships: [{
94392
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
94393
- columns: ["connection_id"];
94394
- isOneToOne: false;
94395
- referencedRelation: "twinfield_connections";
94396
- referencedColumns: ["id"];
94397
- }];
94398
- };
94399
94174
  user_roles: {
94400
94175
  Row: {
94401
94176
  created_at: string;
@@ -96836,15 +96611,16 @@ export declare const saveSchedule: import("@tanstack/start-client-core").Require
96836
96611
  };
96837
96612
  Returns: undefined;
96838
96613
  };
96839
- twinfield_decrypt: {
96614
+ twinfield_upsert_connection_by_account_key: {
96840
96615
  Args: {
96841
- cipher: string;
96842
- };
96843
- Returns: string;
96844
- };
96845
- twinfield_encrypt: {
96846
- Args: {
96847
- plain: string;
96616
+ p_account_key: string;
96617
+ p_cluster_uri?: string;
96618
+ p_company_code?: string;
96619
+ p_company_name?: string;
96620
+ p_environment: string;
96621
+ p_office_code?: string;
96622
+ p_status?: string;
96623
+ p_user_id: string;
96848
96624
  };
96849
96625
  Returns: string;
96850
96626
  };
@@ -101426,6 +101202,27 @@ export declare const deleteSchedule: import("@tanstack/start-client-core").Requi
101426
101202
  referencedColumns: ["id"];
101427
101203
  }];
101428
101204
  };
101205
+ floriday_continuous_stock_cache: {
101206
+ Row: {
101207
+ connection_id: string;
101208
+ fetched_at: string;
101209
+ number_of_pieces: number;
101210
+ trade_item_id: string;
101211
+ };
101212
+ Insert: {
101213
+ connection_id: string;
101214
+ fetched_at?: string;
101215
+ number_of_pieces?: number;
101216
+ trade_item_id: string;
101217
+ };
101218
+ Update: {
101219
+ connection_id?: string;
101220
+ fetched_at?: string;
101221
+ number_of_pieces?: number;
101222
+ trade_item_id?: string;
101223
+ };
101224
+ Relationships: [];
101225
+ };
101429
101226
  floriday_continuous_stock_queue: {
101430
101227
  Row: {
101431
101228
  attempts: number;
@@ -102404,6 +102201,45 @@ export declare const deleteSchedule: import("@tanstack/start-client-core").Requi
102404
102201
  referencedColumns: ["id"];
102405
102202
  }];
102406
102203
  };
102204
+ floriday_trade_settings_customers_cache: {
102205
+ Row: {
102206
+ connection_id: string;
102207
+ data: import("../../integrations/supabase/types").Json;
102208
+ fetched_at: string;
102209
+ floriday_id: string;
102210
+ id: string;
102211
+ is_deleted: boolean;
102212
+ sequence_number: number;
102213
+ updated_at: string;
102214
+ };
102215
+ Insert: {
102216
+ connection_id: string;
102217
+ data: import("../../integrations/supabase/types").Json;
102218
+ fetched_at?: string;
102219
+ floriday_id: string;
102220
+ id?: string;
102221
+ is_deleted?: boolean;
102222
+ sequence_number?: number;
102223
+ updated_at?: string;
102224
+ };
102225
+ Update: {
102226
+ connection_id?: string;
102227
+ data?: import("../../integrations/supabase/types").Json;
102228
+ fetched_at?: string;
102229
+ floriday_id?: string;
102230
+ id?: string;
102231
+ is_deleted?: boolean;
102232
+ sequence_number?: number;
102233
+ updated_at?: string;
102234
+ };
102235
+ Relationships: [{
102236
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
102237
+ columns: ["connection_id"];
102238
+ isOneToOne: false;
102239
+ referencedRelation: "floriday_connections";
102240
+ referencedColumns: ["id"];
102241
+ }];
102242
+ };
102407
102243
  floriday_trips_cache: {
102408
102244
  Row: {
102409
102245
  carrier_organization_id: string | null;
@@ -102452,6 +102288,27 @@ export declare const deleteSchedule: import("@tanstack/start-client-core").Requi
102452
102288
  referencedColumns: ["id"];
102453
102289
  }];
102454
102290
  };
102291
+ floriday_vbn_required_characteristics: {
102292
+ Row: {
102293
+ required_codes: string[];
102294
+ updated_at: string;
102295
+ updated_by: string | null;
102296
+ vbn_code: string;
102297
+ };
102298
+ Insert: {
102299
+ required_codes?: string[];
102300
+ updated_at?: string;
102301
+ updated_by?: string | null;
102302
+ vbn_code: string;
102303
+ };
102304
+ Update: {
102305
+ required_codes?: string[];
102306
+ updated_at?: string;
102307
+ updated_by?: string | null;
102308
+ vbn_code?: string;
102309
+ };
102310
+ Relationships: [];
102311
+ };
102455
102312
  floriday_warehouses_cache: {
102456
102313
  Row: {
102457
102314
  connection_id: string;
@@ -107425,9 +107282,7 @@ export declare const deleteSchedule: import("@tanstack/start-client-core").Requi
107425
107282
  };
107426
107283
  twinfield_connections: {
107427
107284
  Row: {
107428
- access_token: string | null;
107429
- client_id: string;
107430
- client_secret: string | null;
107285
+ account_key: string | null;
107431
107286
  cluster_uri: string | null;
107432
107287
  company_code: string | null;
107433
107288
  company_name: string | null;
@@ -107439,15 +107294,11 @@ export declare const deleteSchedule: import("@tanstack/start-client-core").Requi
107439
107294
  label: string | null;
107440
107295
  office_code: string | null;
107441
107296
  redirect_uri: string;
107442
- refresh_token: string | null;
107443
- token_expires_at: string | null;
107444
107297
  updated_at: string;
107445
107298
  user_id: string;
107446
107299
  };
107447
107300
  Insert: {
107448
- access_token?: string | null;
107449
- client_id: string;
107450
- client_secret?: string | null;
107301
+ account_key?: string | null;
107451
107302
  cluster_uri?: string | null;
107452
107303
  company_code?: string | null;
107453
107304
  company_name?: string | null;
@@ -107459,15 +107310,11 @@ export declare const deleteSchedule: import("@tanstack/start-client-core").Requi
107459
107310
  label?: string | null;
107460
107311
  office_code?: string | null;
107461
107312
  redirect_uri: string;
107462
- refresh_token?: string | null;
107463
- token_expires_at?: string | null;
107464
107313
  updated_at?: string;
107465
107314
  user_id: string;
107466
107315
  };
107467
107316
  Update: {
107468
- access_token?: string | null;
107469
- client_id?: string;
107470
- client_secret?: string | null;
107317
+ account_key?: string | null;
107471
107318
  cluster_uri?: string | null;
107472
107319
  company_code?: string | null;
107473
107320
  company_name?: string | null;
@@ -107479,53 +107326,6 @@ export declare const deleteSchedule: import("@tanstack/start-client-core").Requi
107479
107326
  label?: string | null;
107480
107327
  office_code?: string | null;
107481
107328
  redirect_uri?: string;
107482
- refresh_token?: string | null;
107483
- token_expires_at?: string | null;
107484
- updated_at?: string;
107485
- user_id?: string;
107486
- };
107487
- Relationships: [];
107488
- };
107489
- twinfield_credentials: {
107490
- Row: {
107491
- administration_code: string | null;
107492
- client_id: string | null;
107493
- client_secret: string | null;
107494
- cluster: string | null;
107495
- connected_at: string | null;
107496
- created_at: string;
107497
- environment: string | null;
107498
- id: string;
107499
- redirect_uri: string | null;
107500
- refresh_token: string | null;
107501
- updated_at: string;
107502
- user_id: string;
107503
- };
107504
- Insert: {
107505
- administration_code?: string | null;
107506
- client_id?: string | null;
107507
- client_secret?: string | null;
107508
- cluster?: string | null;
107509
- connected_at?: string | null;
107510
- created_at?: string;
107511
- environment?: string | null;
107512
- id?: string;
107513
- redirect_uri?: string | null;
107514
- refresh_token?: string | null;
107515
- updated_at?: string;
107516
- user_id: string;
107517
- };
107518
- Update: {
107519
- administration_code?: string | null;
107520
- client_id?: string | null;
107521
- client_secret?: string | null;
107522
- cluster?: string | null;
107523
- connected_at?: string | null;
107524
- created_at?: string;
107525
- environment?: string | null;
107526
- id?: string;
107527
- redirect_uri?: string | null;
107528
- refresh_token?: string | null;
107529
107329
  updated_at?: string;
107530
107330
  user_id?: string;
107531
107331
  };
@@ -108026,30 +107826,6 @@ export declare const deleteSchedule: import("@tanstack/start-client-core").Requi
108026
107826
  referencedColumns: ["id"];
108027
107827
  }];
108028
107828
  };
108029
- twinfield_oauth_state: {
108030
- Row: {
108031
- created_at: string;
108032
- environment: string;
108033
- nonce: string | null;
108034
- state: string;
108035
- user_id: string;
108036
- };
108037
- Insert: {
108038
- created_at?: string;
108039
- environment: string;
108040
- nonce?: string | null;
108041
- state: string;
108042
- user_id: string;
108043
- };
108044
- Update: {
108045
- created_at?: string;
108046
- environment?: string;
108047
- nonce?: string | null;
108048
- state?: string;
108049
- user_id?: string;
108050
- };
108051
- Relationships: [];
108052
- };
108053
107829
  twinfield_push_queue: {
108054
107830
  Row: {
108055
107831
  action: string;
@@ -108215,39 +107991,6 @@ export declare const deleteSchedule: import("@tanstack/start-client-core").Requi
108215
107991
  referencedColumns: ["id"];
108216
107992
  }];
108217
107993
  };
108218
- twinfield_token_refresh_log: {
108219
- Row: {
108220
- attempted_at: string;
108221
- connection_id: string;
108222
- error: string | null;
108223
- expires_at: string | null;
108224
- id: string;
108225
- ok: boolean;
108226
- };
108227
- Insert: {
108228
- attempted_at?: string;
108229
- connection_id: string;
108230
- error?: string | null;
108231
- expires_at?: string | null;
108232
- id?: string;
108233
- ok: boolean;
108234
- };
108235
- Update: {
108236
- attempted_at?: string;
108237
- connection_id?: string;
108238
- error?: string | null;
108239
- expires_at?: string | null;
108240
- id?: string;
108241
- ok?: boolean;
108242
- };
108243
- Relationships: [{
108244
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
108245
- columns: ["connection_id"];
108246
- isOneToOne: false;
108247
- referencedRelation: "twinfield_connections";
108248
- referencedColumns: ["id"];
108249
- }];
108250
- };
108251
107994
  user_roles: {
108252
107995
  Row: {
108253
107996
  created_at: string;
@@ -110688,15 +110431,16 @@ export declare const deleteSchedule: import("@tanstack/start-client-core").Requi
110688
110431
  };
110689
110432
  Returns: undefined;
110690
110433
  };
110691
- twinfield_decrypt: {
110434
+ twinfield_upsert_connection_by_account_key: {
110692
110435
  Args: {
110693
- cipher: string;
110694
- };
110695
- Returns: string;
110696
- };
110697
- twinfield_encrypt: {
110698
- Args: {
110699
- plain: string;
110436
+ p_account_key: string;
110437
+ p_cluster_uri?: string;
110438
+ p_company_code?: string;
110439
+ p_company_name?: string;
110440
+ p_environment: string;
110441
+ p_office_code?: string;
110442
+ p_status?: string;
110443
+ p_user_id: string;
110700
110444
  };
110701
110445
  Returns: string;
110702
110446
  };