@flowselections/floriday-verkoop-module 1.0.26 → 1.0.28

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 (93) hide show
  1. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +1 -1
  2. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +1 -1
  3. package/dist-lib/components/karindeling/KarindelingPage.d.ts +1 -1
  4. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  6. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +1 -1
  8. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -1
  9. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  10. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  11. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  12. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  13. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  14. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  15. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  16. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  17. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  18. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  19. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  20. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  21. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  22. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  23. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  24. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  25. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  26. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  27. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  28. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  29. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  30. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  31. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  32. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  33. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +2 -1
  34. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  35. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  36. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  37. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  38. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  39. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  40. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  41. package/dist-lib/index.d.ts +0 -1
  42. package/dist-lib/index.d.ts.map +1 -1
  43. package/dist-lib/index.js +5 -11
  44. package/dist-lib/integrations/supabase/auth-middleware.d.ts +104 -127
  45. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  46. package/dist-lib/integrations/supabase/client.d.ts +104 -127
  47. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  48. package/dist-lib/integrations/supabase/client.server.d.ts +104 -127
  49. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  50. package/dist-lib/integrations/supabase/types.d.ts +106 -129
  51. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  52. package/dist-lib/lib/cart-lock.functions.d.ts +104 -127
  53. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/cart-planning-settings.functions.d.ts +1144 -1397
  55. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/cart-replan.functions.d.ts +312 -381
  57. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/create-order.functions.d.ts +1248 -1524
  59. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +312 -381
  61. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +104 -127
  63. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/floriday-mirror.functions.d.ts +104 -127
  65. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/floriday-public.functions.d.ts +728 -889
  67. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/floriday-writes.functions.d.ts +520 -635
  69. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/order-buffers.functions.d.ts +312 -381
  71. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  72. package/dist-lib/lib/order-shipments.functions.d.ts +416 -508
  73. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/salesorders.functions.d.ts +520 -635
  75. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  76. package/dist-lib/lib/tradeitems.functions.d.ts +104 -127
  77. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  78. package/package.json +1 -1
  79. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +0 -9
  80. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +0 -1
  81. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +0 -26
  82. package/dist-lib/components/ui/dropdown-menu.d.ts +0 -9
  83. package/dist-lib/components/ui/dropdown-menu.d.ts.map +0 -1
  84. package/dist-lib/components/ui/dropdown-menu.js +0 -14
  85. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +0 -5
  86. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +0 -1
  87. package/dist-lib/components/verkoop/CreateOrderDialog.js +0 -33
  88. package/dist-lib/lib/floriday/floriday.server.d.ts +0 -14
  89. package/dist-lib/lib/floriday/floriday.server.d.ts.map +0 -1
  90. package/dist-lib/lib/floriday/floriday.server.js +0 -92
  91. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +0 -4736
  92. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +0 -1
  93. package/dist-lib/lib/floriday/sales-orders.functions.js +0 -193
@@ -4528,6 +4528,27 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
4528
4528
  referencedColumns: ["id"];
4529
4529
  }];
4530
4530
  };
4531
+ floriday_continuous_stock_cache: {
4532
+ Row: {
4533
+ connection_id: string;
4534
+ fetched_at: string;
4535
+ number_of_pieces: number;
4536
+ trade_item_id: string;
4537
+ };
4538
+ Insert: {
4539
+ connection_id: string;
4540
+ fetched_at?: string;
4541
+ number_of_pieces?: number;
4542
+ trade_item_id: string;
4543
+ };
4544
+ Update: {
4545
+ connection_id?: string;
4546
+ fetched_at?: string;
4547
+ number_of_pieces?: number;
4548
+ trade_item_id?: string;
4549
+ };
4550
+ Relationships: [];
4551
+ };
4531
4552
  floriday_continuous_stock_queue: {
4532
4553
  Row: {
4533
4554
  attempts: number;
@@ -5506,6 +5527,45 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
5506
5527
  referencedColumns: ["id"];
5507
5528
  }];
5508
5529
  };
5530
+ floriday_trade_settings_customers_cache: {
5531
+ Row: {
5532
+ connection_id: string;
5533
+ data: import("../integrations/supabase/types").Json;
5534
+ fetched_at: string;
5535
+ floriday_id: string;
5536
+ id: string;
5537
+ is_deleted: boolean;
5538
+ sequence_number: number;
5539
+ updated_at: string;
5540
+ };
5541
+ Insert: {
5542
+ connection_id: string;
5543
+ data: import("../integrations/supabase/types").Json;
5544
+ fetched_at?: string;
5545
+ floriday_id: string;
5546
+ id?: string;
5547
+ is_deleted?: boolean;
5548
+ sequence_number?: number;
5549
+ updated_at?: string;
5550
+ };
5551
+ Update: {
5552
+ connection_id?: string;
5553
+ data?: import("../integrations/supabase/types").Json;
5554
+ fetched_at?: string;
5555
+ floriday_id?: string;
5556
+ id?: string;
5557
+ is_deleted?: boolean;
5558
+ sequence_number?: number;
5559
+ updated_at?: string;
5560
+ };
5561
+ Relationships: [{
5562
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5563
+ columns: ["connection_id"];
5564
+ isOneToOne: false;
5565
+ referencedRelation: "floriday_connections";
5566
+ referencedColumns: ["id"];
5567
+ }];
5568
+ };
5509
5569
  floriday_trips_cache: {
5510
5570
  Row: {
5511
5571
  carrier_organization_id: string | null;
@@ -5554,6 +5614,27 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
5554
5614
  referencedColumns: ["id"];
5555
5615
  }];
5556
5616
  };
5617
+ floriday_vbn_required_characteristics: {
5618
+ Row: {
5619
+ required_codes: string[];
5620
+ updated_at: string;
5621
+ updated_by: string | null;
5622
+ vbn_code: string;
5623
+ };
5624
+ Insert: {
5625
+ required_codes?: string[];
5626
+ updated_at?: string;
5627
+ updated_by?: string | null;
5628
+ vbn_code: string;
5629
+ };
5630
+ Update: {
5631
+ required_codes?: string[];
5632
+ updated_at?: string;
5633
+ updated_by?: string | null;
5634
+ vbn_code?: string;
5635
+ };
5636
+ Relationships: [];
5637
+ };
5557
5638
  floriday_warehouses_cache: {
5558
5639
  Row: {
5559
5640
  connection_id: string;
@@ -10527,9 +10608,7 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
10527
10608
  };
10528
10609
  twinfield_connections: {
10529
10610
  Row: {
10530
- access_token: string | null;
10531
- client_id: string;
10532
- client_secret: string | null;
10611
+ account_key: string | null;
10533
10612
  cluster_uri: string | null;
10534
10613
  company_code: string | null;
10535
10614
  company_name: string | null;
@@ -10540,16 +10619,12 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
10540
10619
  is_active: boolean;
10541
10620
  label: string | null;
10542
10621
  office_code: string | null;
10543
- redirect_uri: string;
10544
- refresh_token: string | null;
10545
- token_expires_at: string | null;
10622
+ redirect_uri: string | null;
10546
10623
  updated_at: string;
10547
10624
  user_id: string;
10548
10625
  };
10549
10626
  Insert: {
10550
- access_token?: string | null;
10551
- client_id: string;
10552
- client_secret?: string | null;
10627
+ account_key?: string | null;
10553
10628
  cluster_uri?: string | null;
10554
10629
  company_code?: string | null;
10555
10630
  company_name?: string | null;
@@ -10560,16 +10635,12 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
10560
10635
  is_active?: boolean;
10561
10636
  label?: string | null;
10562
10637
  office_code?: string | null;
10563
- redirect_uri: string;
10564
- refresh_token?: string | null;
10565
- token_expires_at?: string | null;
10638
+ redirect_uri?: string | null;
10566
10639
  updated_at?: string;
10567
10640
  user_id: string;
10568
10641
  };
10569
10642
  Update: {
10570
- access_token?: string | null;
10571
- client_id?: string;
10572
- client_secret?: string | null;
10643
+ account_key?: string | null;
10573
10644
  cluster_uri?: string | null;
10574
10645
  company_code?: string | null;
10575
10646
  company_name?: string | null;
@@ -10580,54 +10651,7 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
10580
10651
  is_active?: boolean;
10581
10652
  label?: string | null;
10582
10653
  office_code?: string | null;
10583
- redirect_uri?: string;
10584
- refresh_token?: string | null;
10585
- token_expires_at?: string | null;
10586
- updated_at?: string;
10587
- user_id?: string;
10588
- };
10589
- Relationships: [];
10590
- };
10591
- twinfield_credentials: {
10592
- Row: {
10593
- administration_code: string | null;
10594
- client_id: string | null;
10595
- client_secret: string | null;
10596
- cluster: string | null;
10597
- connected_at: string | null;
10598
- created_at: string;
10599
- environment: string | null;
10600
- id: string;
10601
- redirect_uri: string | null;
10602
- refresh_token: string | null;
10603
- updated_at: string;
10604
- user_id: string;
10605
- };
10606
- Insert: {
10607
- administration_code?: string | null;
10608
- client_id?: string | null;
10609
- client_secret?: string | null;
10610
- cluster?: string | null;
10611
- connected_at?: string | null;
10612
- created_at?: string;
10613
- environment?: string | null;
10614
- id?: string;
10615
- redirect_uri?: string | null;
10616
- refresh_token?: string | null;
10617
- updated_at?: string;
10618
- user_id: string;
10619
- };
10620
- Update: {
10621
- administration_code?: string | null;
10622
- client_id?: string | null;
10623
- client_secret?: string | null;
10624
- cluster?: string | null;
10625
- connected_at?: string | null;
10626
- created_at?: string;
10627
- environment?: string | null;
10628
- id?: string;
10629
10654
  redirect_uri?: string | null;
10630
- refresh_token?: string | null;
10631
10655
  updated_at?: string;
10632
10656
  user_id?: string;
10633
10657
  };
@@ -11074,12 +11098,15 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
11074
11098
  currency: string | null;
11075
11099
  customer_code: string | null;
11076
11100
  data: import("../integrations/supabase/types").Json;
11101
+ deleted_at: string | null;
11077
11102
  due_date: string | null;
11078
11103
  fetched_at: string;
11079
11104
  invoice_date: string | null;
11080
11105
  invoice_number: string;
11106
+ lines_fetched_at: string | null;
11081
11107
  modified_at: string | null;
11082
11108
  outstanding_amount: number | null;
11109
+ paid_at: string | null;
11083
11110
  status: string | null;
11084
11111
  status_label: string | null;
11085
11112
  total_excl: number | null;
@@ -11091,12 +11118,15 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
11091
11118
  currency?: string | null;
11092
11119
  customer_code?: string | null;
11093
11120
  data?: import("../integrations/supabase/types").Json;
11121
+ deleted_at?: string | null;
11094
11122
  due_date?: string | null;
11095
11123
  fetched_at?: string;
11096
11124
  invoice_date?: string | null;
11097
11125
  invoice_number: string;
11126
+ lines_fetched_at?: string | null;
11098
11127
  modified_at?: string | null;
11099
11128
  outstanding_amount?: number | null;
11129
+ paid_at?: string | null;
11100
11130
  status?: string | null;
11101
11131
  status_label?: string | null;
11102
11132
  total_excl?: number | null;
@@ -11108,12 +11138,15 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
11108
11138
  currency?: string | null;
11109
11139
  customer_code?: string | null;
11110
11140
  data?: import("../integrations/supabase/types").Json;
11141
+ deleted_at?: string | null;
11111
11142
  due_date?: string | null;
11112
11143
  fetched_at?: string;
11113
11144
  invoice_date?: string | null;
11114
11145
  invoice_number?: string;
11146
+ lines_fetched_at?: string | null;
11115
11147
  modified_at?: string | null;
11116
11148
  outstanding_amount?: number | null;
11149
+ paid_at?: string | null;
11117
11150
  status?: string | null;
11118
11151
  status_label?: string | null;
11119
11152
  total_excl?: number | null;
@@ -11128,30 +11161,6 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
11128
11161
  referencedColumns: ["id"];
11129
11162
  }];
11130
11163
  };
11131
- twinfield_oauth_state: {
11132
- Row: {
11133
- created_at: string;
11134
- environment: string;
11135
- nonce: string | null;
11136
- state: string;
11137
- user_id: string;
11138
- };
11139
- Insert: {
11140
- created_at?: string;
11141
- environment: string;
11142
- nonce?: string | null;
11143
- state: string;
11144
- user_id: string;
11145
- };
11146
- Update: {
11147
- created_at?: string;
11148
- environment?: string;
11149
- nonce?: string | null;
11150
- state?: string;
11151
- user_id?: string;
11152
- };
11153
- Relationships: [];
11154
- };
11155
11164
  twinfield_push_queue: {
11156
11165
  Row: {
11157
11166
  action: string;
@@ -11317,39 +11326,6 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
11317
11326
  referencedColumns: ["id"];
11318
11327
  }];
11319
11328
  };
11320
- twinfield_token_refresh_log: {
11321
- Row: {
11322
- attempted_at: string;
11323
- connection_id: string;
11324
- error: string | null;
11325
- expires_at: string | null;
11326
- id: string;
11327
- ok: boolean;
11328
- };
11329
- Insert: {
11330
- attempted_at?: string;
11331
- connection_id: string;
11332
- error?: string | null;
11333
- expires_at?: string | null;
11334
- id?: string;
11335
- ok: boolean;
11336
- };
11337
- Update: {
11338
- attempted_at?: string;
11339
- connection_id?: string;
11340
- error?: string | null;
11341
- expires_at?: string | null;
11342
- id?: string;
11343
- ok?: boolean;
11344
- };
11345
- Relationships: [{
11346
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11347
- columns: ["connection_id"];
11348
- isOneToOne: false;
11349
- referencedRelation: "twinfield_connections";
11350
- referencedColumns: ["id"];
11351
- }];
11352
- };
11353
11329
  user_roles: {
11354
11330
  Row: {
11355
11331
  created_at: string;
@@ -13790,15 +13766,16 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
13790
13766
  };
13791
13767
  Returns: undefined;
13792
13768
  };
13793
- twinfield_decrypt: {
13794
- Args: {
13795
- cipher: string;
13796
- };
13797
- Returns: string;
13798
- };
13799
- twinfield_encrypt: {
13769
+ twinfield_upsert_connection_by_account_key: {
13800
13770
  Args: {
13801
- plain: string;
13771
+ p_account_key: string;
13772
+ p_cluster_uri?: string;
13773
+ p_company_code?: string;
13774
+ p_company_name?: string;
13775
+ p_environment: string;
13776
+ p_office_code?: string;
13777
+ p_status?: string;
13778
+ p_user_id: string;
13802
13779
  };
13803
13780
  Returns: string;
13804
13781
  };
@@ -18366,6 +18343,27 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
18366
18343
  referencedColumns: ["id"];
18367
18344
  }];
18368
18345
  };
18346
+ floriday_continuous_stock_cache: {
18347
+ Row: {
18348
+ connection_id: string;
18349
+ fetched_at: string;
18350
+ number_of_pieces: number;
18351
+ trade_item_id: string;
18352
+ };
18353
+ Insert: {
18354
+ connection_id: string;
18355
+ fetched_at?: string;
18356
+ number_of_pieces?: number;
18357
+ trade_item_id: string;
18358
+ };
18359
+ Update: {
18360
+ connection_id?: string;
18361
+ fetched_at?: string;
18362
+ number_of_pieces?: number;
18363
+ trade_item_id?: string;
18364
+ };
18365
+ Relationships: [];
18366
+ };
18369
18367
  floriday_continuous_stock_queue: {
18370
18368
  Row: {
18371
18369
  attempts: number;
@@ -19344,6 +19342,45 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
19344
19342
  referencedColumns: ["id"];
19345
19343
  }];
19346
19344
  };
19345
+ floriday_trade_settings_customers_cache: {
19346
+ Row: {
19347
+ connection_id: string;
19348
+ data: import("../integrations/supabase/types").Json;
19349
+ fetched_at: string;
19350
+ floriday_id: string;
19351
+ id: string;
19352
+ is_deleted: boolean;
19353
+ sequence_number: number;
19354
+ updated_at: string;
19355
+ };
19356
+ Insert: {
19357
+ connection_id: string;
19358
+ data: import("../integrations/supabase/types").Json;
19359
+ fetched_at?: string;
19360
+ floriday_id: string;
19361
+ id?: string;
19362
+ is_deleted?: boolean;
19363
+ sequence_number?: number;
19364
+ updated_at?: string;
19365
+ };
19366
+ Update: {
19367
+ connection_id?: string;
19368
+ data?: import("../integrations/supabase/types").Json;
19369
+ fetched_at?: string;
19370
+ floriday_id?: string;
19371
+ id?: string;
19372
+ is_deleted?: boolean;
19373
+ sequence_number?: number;
19374
+ updated_at?: string;
19375
+ };
19376
+ Relationships: [{
19377
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19378
+ columns: ["connection_id"];
19379
+ isOneToOne: false;
19380
+ referencedRelation: "floriday_connections";
19381
+ referencedColumns: ["id"];
19382
+ }];
19383
+ };
19347
19384
  floriday_trips_cache: {
19348
19385
  Row: {
19349
19386
  carrier_organization_id: string | null;
@@ -19392,6 +19429,27 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
19392
19429
  referencedColumns: ["id"];
19393
19430
  }];
19394
19431
  };
19432
+ floriday_vbn_required_characteristics: {
19433
+ Row: {
19434
+ required_codes: string[];
19435
+ updated_at: string;
19436
+ updated_by: string | null;
19437
+ vbn_code: string;
19438
+ };
19439
+ Insert: {
19440
+ required_codes?: string[];
19441
+ updated_at?: string;
19442
+ updated_by?: string | null;
19443
+ vbn_code: string;
19444
+ };
19445
+ Update: {
19446
+ required_codes?: string[];
19447
+ updated_at?: string;
19448
+ updated_by?: string | null;
19449
+ vbn_code?: string;
19450
+ };
19451
+ Relationships: [];
19452
+ };
19395
19453
  floriday_warehouses_cache: {
19396
19454
  Row: {
19397
19455
  connection_id: string;
@@ -24365,9 +24423,7 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
24365
24423
  };
24366
24424
  twinfield_connections: {
24367
24425
  Row: {
24368
- access_token: string | null;
24369
- client_id: string;
24370
- client_secret: string | null;
24426
+ account_key: string | null;
24371
24427
  cluster_uri: string | null;
24372
24428
  company_code: string | null;
24373
24429
  company_name: string | null;
@@ -24378,16 +24434,12 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
24378
24434
  is_active: boolean;
24379
24435
  label: string | null;
24380
24436
  office_code: string | null;
24381
- redirect_uri: string;
24382
- refresh_token: string | null;
24383
- token_expires_at: string | null;
24437
+ redirect_uri: string | null;
24384
24438
  updated_at: string;
24385
24439
  user_id: string;
24386
24440
  };
24387
24441
  Insert: {
24388
- access_token?: string | null;
24389
- client_id: string;
24390
- client_secret?: string | null;
24442
+ account_key?: string | null;
24391
24443
  cluster_uri?: string | null;
24392
24444
  company_code?: string | null;
24393
24445
  company_name?: string | null;
@@ -24398,16 +24450,12 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
24398
24450
  is_active?: boolean;
24399
24451
  label?: string | null;
24400
24452
  office_code?: string | null;
24401
- redirect_uri: string;
24402
- refresh_token?: string | null;
24403
- token_expires_at?: string | null;
24453
+ redirect_uri?: string | null;
24404
24454
  updated_at?: string;
24405
24455
  user_id: string;
24406
24456
  };
24407
24457
  Update: {
24408
- access_token?: string | null;
24409
- client_id?: string;
24410
- client_secret?: string | null;
24458
+ account_key?: string | null;
24411
24459
  cluster_uri?: string | null;
24412
24460
  company_code?: string | null;
24413
24461
  company_name?: string | null;
@@ -24418,54 +24466,7 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
24418
24466
  is_active?: boolean;
24419
24467
  label?: string | null;
24420
24468
  office_code?: string | null;
24421
- redirect_uri?: string;
24422
- refresh_token?: string | null;
24423
- token_expires_at?: string | null;
24424
- updated_at?: string;
24425
- user_id?: string;
24426
- };
24427
- Relationships: [];
24428
- };
24429
- twinfield_credentials: {
24430
- Row: {
24431
- administration_code: string | null;
24432
- client_id: string | null;
24433
- client_secret: string | null;
24434
- cluster: string | null;
24435
- connected_at: string | null;
24436
- created_at: string;
24437
- environment: string | null;
24438
- id: string;
24439
- redirect_uri: string | null;
24440
- refresh_token: string | null;
24441
- updated_at: string;
24442
- user_id: string;
24443
- };
24444
- Insert: {
24445
- administration_code?: string | null;
24446
- client_id?: string | null;
24447
- client_secret?: string | null;
24448
- cluster?: string | null;
24449
- connected_at?: string | null;
24450
- created_at?: string;
24451
- environment?: string | null;
24452
- id?: string;
24453
- redirect_uri?: string | null;
24454
- refresh_token?: string | null;
24455
- updated_at?: string;
24456
- user_id: string;
24457
- };
24458
- Update: {
24459
- administration_code?: string | null;
24460
- client_id?: string | null;
24461
- client_secret?: string | null;
24462
- cluster?: string | null;
24463
- connected_at?: string | null;
24464
- created_at?: string;
24465
- environment?: string | null;
24466
- id?: string;
24467
24469
  redirect_uri?: string | null;
24468
- refresh_token?: string | null;
24469
24470
  updated_at?: string;
24470
24471
  user_id?: string;
24471
24472
  };
@@ -24912,12 +24913,15 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
24912
24913
  currency: string | null;
24913
24914
  customer_code: string | null;
24914
24915
  data: import("../integrations/supabase/types").Json;
24916
+ deleted_at: string | null;
24915
24917
  due_date: string | null;
24916
24918
  fetched_at: string;
24917
24919
  invoice_date: string | null;
24918
24920
  invoice_number: string;
24921
+ lines_fetched_at: string | null;
24919
24922
  modified_at: string | null;
24920
24923
  outstanding_amount: number | null;
24924
+ paid_at: string | null;
24921
24925
  status: string | null;
24922
24926
  status_label: string | null;
24923
24927
  total_excl: number | null;
@@ -24929,12 +24933,15 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
24929
24933
  currency?: string | null;
24930
24934
  customer_code?: string | null;
24931
24935
  data?: import("../integrations/supabase/types").Json;
24936
+ deleted_at?: string | null;
24932
24937
  due_date?: string | null;
24933
24938
  fetched_at?: string;
24934
24939
  invoice_date?: string | null;
24935
24940
  invoice_number: string;
24941
+ lines_fetched_at?: string | null;
24936
24942
  modified_at?: string | null;
24937
24943
  outstanding_amount?: number | null;
24944
+ paid_at?: string | null;
24938
24945
  status?: string | null;
24939
24946
  status_label?: string | null;
24940
24947
  total_excl?: number | null;
@@ -24946,12 +24953,15 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
24946
24953
  currency?: string | null;
24947
24954
  customer_code?: string | null;
24948
24955
  data?: import("../integrations/supabase/types").Json;
24956
+ deleted_at?: string | null;
24949
24957
  due_date?: string | null;
24950
24958
  fetched_at?: string;
24951
24959
  invoice_date?: string | null;
24952
24960
  invoice_number?: string;
24961
+ lines_fetched_at?: string | null;
24953
24962
  modified_at?: string | null;
24954
24963
  outstanding_amount?: number | null;
24964
+ paid_at?: string | null;
24955
24965
  status?: string | null;
24956
24966
  status_label?: string | null;
24957
24967
  total_excl?: number | null;
@@ -24966,30 +24976,6 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
24966
24976
  referencedColumns: ["id"];
24967
24977
  }];
24968
24978
  };
24969
- twinfield_oauth_state: {
24970
- Row: {
24971
- created_at: string;
24972
- environment: string;
24973
- nonce: string | null;
24974
- state: string;
24975
- user_id: string;
24976
- };
24977
- Insert: {
24978
- created_at?: string;
24979
- environment: string;
24980
- nonce?: string | null;
24981
- state: string;
24982
- user_id: string;
24983
- };
24984
- Update: {
24985
- created_at?: string;
24986
- environment?: string;
24987
- nonce?: string | null;
24988
- state?: string;
24989
- user_id?: string;
24990
- };
24991
- Relationships: [];
24992
- };
24993
24979
  twinfield_push_queue: {
24994
24980
  Row: {
24995
24981
  action: string;
@@ -25155,39 +25141,6 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
25155
25141
  referencedColumns: ["id"];
25156
25142
  }];
25157
25143
  };
25158
- twinfield_token_refresh_log: {
25159
- Row: {
25160
- attempted_at: string;
25161
- connection_id: string;
25162
- error: string | null;
25163
- expires_at: string | null;
25164
- id: string;
25165
- ok: boolean;
25166
- };
25167
- Insert: {
25168
- attempted_at?: string;
25169
- connection_id: string;
25170
- error?: string | null;
25171
- expires_at?: string | null;
25172
- id?: string;
25173
- ok: boolean;
25174
- };
25175
- Update: {
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
- Relationships: [{
25184
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25185
- columns: ["connection_id"];
25186
- isOneToOne: false;
25187
- referencedRelation: "twinfield_connections";
25188
- referencedColumns: ["id"];
25189
- }];
25190
- };
25191
25144
  user_roles: {
25192
25145
  Row: {
25193
25146
  created_at: string;
@@ -27628,15 +27581,16 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
27628
27581
  };
27629
27582
  Returns: undefined;
27630
27583
  };
27631
- twinfield_decrypt: {
27632
- Args: {
27633
- cipher: string;
27634
- };
27635
- Returns: string;
27636
- };
27637
- twinfield_encrypt: {
27584
+ twinfield_upsert_connection_by_account_key: {
27638
27585
  Args: {
27639
- 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;
27640
27594
  };
27641
27595
  Returns: string;
27642
27596
  };
@@ -32214,6 +32168,27 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
32214
32168
  referencedColumns: ["id"];
32215
32169
  }];
32216
32170
  };
32171
+ floriday_continuous_stock_cache: {
32172
+ Row: {
32173
+ connection_id: string;
32174
+ fetched_at: string;
32175
+ number_of_pieces: number;
32176
+ trade_item_id: string;
32177
+ };
32178
+ Insert: {
32179
+ connection_id: string;
32180
+ fetched_at?: string;
32181
+ number_of_pieces?: number;
32182
+ trade_item_id: string;
32183
+ };
32184
+ Update: {
32185
+ connection_id?: string;
32186
+ fetched_at?: string;
32187
+ number_of_pieces?: number;
32188
+ trade_item_id?: string;
32189
+ };
32190
+ Relationships: [];
32191
+ };
32217
32192
  floriday_continuous_stock_queue: {
32218
32193
  Row: {
32219
32194
  attempts: number;
@@ -33192,6 +33167,45 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
33192
33167
  referencedColumns: ["id"];
33193
33168
  }];
33194
33169
  };
33170
+ floriday_trade_settings_customers_cache: {
33171
+ Row: {
33172
+ connection_id: string;
33173
+ data: import("../integrations/supabase/types").Json;
33174
+ fetched_at: string;
33175
+ floriday_id: string;
33176
+ id: string;
33177
+ is_deleted: boolean;
33178
+ sequence_number: number;
33179
+ updated_at: string;
33180
+ };
33181
+ Insert: {
33182
+ connection_id: string;
33183
+ data: import("../integrations/supabase/types").Json;
33184
+ fetched_at?: string;
33185
+ floriday_id: string;
33186
+ id?: string;
33187
+ is_deleted?: boolean;
33188
+ sequence_number?: number;
33189
+ updated_at?: string;
33190
+ };
33191
+ Update: {
33192
+ connection_id?: string;
33193
+ data?: import("../integrations/supabase/types").Json;
33194
+ fetched_at?: string;
33195
+ floriday_id?: string;
33196
+ id?: string;
33197
+ is_deleted?: boolean;
33198
+ sequence_number?: number;
33199
+ updated_at?: string;
33200
+ };
33201
+ Relationships: [{
33202
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33203
+ columns: ["connection_id"];
33204
+ isOneToOne: false;
33205
+ referencedRelation: "floriday_connections";
33206
+ referencedColumns: ["id"];
33207
+ }];
33208
+ };
33195
33209
  floriday_trips_cache: {
33196
33210
  Row: {
33197
33211
  carrier_organization_id: string | null;
@@ -33240,6 +33254,27 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
33240
33254
  referencedColumns: ["id"];
33241
33255
  }];
33242
33256
  };
33257
+ floriday_vbn_required_characteristics: {
33258
+ Row: {
33259
+ required_codes: string[];
33260
+ updated_at: string;
33261
+ updated_by: string | null;
33262
+ vbn_code: string;
33263
+ };
33264
+ Insert: {
33265
+ required_codes?: string[];
33266
+ updated_at?: string;
33267
+ updated_by?: string | null;
33268
+ vbn_code: string;
33269
+ };
33270
+ Update: {
33271
+ required_codes?: string[];
33272
+ updated_at?: string;
33273
+ updated_by?: string | null;
33274
+ vbn_code?: string;
33275
+ };
33276
+ Relationships: [];
33277
+ };
33243
33278
  floriday_warehouses_cache: {
33244
33279
  Row: {
33245
33280
  connection_id: string;
@@ -38213,9 +38248,7 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
38213
38248
  };
38214
38249
  twinfield_connections: {
38215
38250
  Row: {
38216
- access_token: string | null;
38217
- client_id: string;
38218
- client_secret: string | null;
38251
+ account_key: string | null;
38219
38252
  cluster_uri: string | null;
38220
38253
  company_code: string | null;
38221
38254
  company_name: string | null;
@@ -38226,16 +38259,12 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
38226
38259
  is_active: boolean;
38227
38260
  label: string | null;
38228
38261
  office_code: string | null;
38229
- redirect_uri: string;
38230
- refresh_token: string | null;
38231
- token_expires_at: string | null;
38262
+ redirect_uri: string | null;
38232
38263
  updated_at: string;
38233
38264
  user_id: string;
38234
38265
  };
38235
38266
  Insert: {
38236
- access_token?: string | null;
38237
- client_id: string;
38238
- client_secret?: string | null;
38267
+ account_key?: string | null;
38239
38268
  cluster_uri?: string | null;
38240
38269
  company_code?: string | null;
38241
38270
  company_name?: string | null;
@@ -38246,16 +38275,12 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
38246
38275
  is_active?: boolean;
38247
38276
  label?: string | null;
38248
38277
  office_code?: string | null;
38249
- redirect_uri: string;
38250
- refresh_token?: string | null;
38251
- token_expires_at?: string | null;
38278
+ redirect_uri?: string | null;
38252
38279
  updated_at?: string;
38253
38280
  user_id: string;
38254
38281
  };
38255
38282
  Update: {
38256
- access_token?: string | null;
38257
- client_id?: string;
38258
- client_secret?: string | null;
38283
+ account_key?: string | null;
38259
38284
  cluster_uri?: string | null;
38260
38285
  company_code?: string | null;
38261
38286
  company_name?: string | null;
@@ -38266,54 +38291,7 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
38266
38291
  is_active?: boolean;
38267
38292
  label?: string | null;
38268
38293
  office_code?: string | null;
38269
- redirect_uri?: string;
38270
- refresh_token?: string | null;
38271
- token_expires_at?: string | null;
38272
- updated_at?: string;
38273
- user_id?: string;
38274
- };
38275
- Relationships: [];
38276
- };
38277
- twinfield_credentials: {
38278
- Row: {
38279
- administration_code: string | null;
38280
- client_id: string | null;
38281
- client_secret: string | null;
38282
- cluster: string | null;
38283
- connected_at: string | null;
38284
- created_at: string;
38285
- environment: string | null;
38286
- id: string;
38287
- redirect_uri: string | null;
38288
- refresh_token: string | null;
38289
- updated_at: string;
38290
- user_id: string;
38291
- };
38292
- Insert: {
38293
- administration_code?: string | null;
38294
- client_id?: string | null;
38295
- client_secret?: string | null;
38296
- cluster?: string | null;
38297
- connected_at?: string | null;
38298
- created_at?: string;
38299
- environment?: string | null;
38300
- id?: string;
38301
- redirect_uri?: string | null;
38302
- refresh_token?: string | null;
38303
- updated_at?: string;
38304
- user_id: string;
38305
- };
38306
- Update: {
38307
- administration_code?: string | null;
38308
- client_id?: string | null;
38309
- client_secret?: string | null;
38310
- cluster?: string | null;
38311
- connected_at?: string | null;
38312
- created_at?: string;
38313
- environment?: string | null;
38314
- id?: string;
38315
38294
  redirect_uri?: string | null;
38316
- refresh_token?: string | null;
38317
38295
  updated_at?: string;
38318
38296
  user_id?: string;
38319
38297
  };
@@ -38760,12 +38738,15 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
38760
38738
  currency: string | null;
38761
38739
  customer_code: string | null;
38762
38740
  data: import("../integrations/supabase/types").Json;
38741
+ deleted_at: string | null;
38763
38742
  due_date: string | null;
38764
38743
  fetched_at: string;
38765
38744
  invoice_date: string | null;
38766
38745
  invoice_number: string;
38746
+ lines_fetched_at: string | null;
38767
38747
  modified_at: string | null;
38768
38748
  outstanding_amount: number | null;
38749
+ paid_at: string | null;
38769
38750
  status: string | null;
38770
38751
  status_label: string | null;
38771
38752
  total_excl: number | null;
@@ -38777,12 +38758,15 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
38777
38758
  currency?: string | null;
38778
38759
  customer_code?: string | null;
38779
38760
  data?: import("../integrations/supabase/types").Json;
38761
+ deleted_at?: string | null;
38780
38762
  due_date?: string | null;
38781
38763
  fetched_at?: string;
38782
38764
  invoice_date?: string | null;
38783
38765
  invoice_number: string;
38766
+ lines_fetched_at?: string | null;
38784
38767
  modified_at?: string | null;
38785
38768
  outstanding_amount?: number | null;
38769
+ paid_at?: string | null;
38786
38770
  status?: string | null;
38787
38771
  status_label?: string | null;
38788
38772
  total_excl?: number | null;
@@ -38794,12 +38778,15 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
38794
38778
  currency?: string | null;
38795
38779
  customer_code?: string | null;
38796
38780
  data?: import("../integrations/supabase/types").Json;
38781
+ deleted_at?: string | null;
38797
38782
  due_date?: string | null;
38798
38783
  fetched_at?: string;
38799
38784
  invoice_date?: string | null;
38800
38785
  invoice_number?: string;
38786
+ lines_fetched_at?: string | null;
38801
38787
  modified_at?: string | null;
38802
38788
  outstanding_amount?: number | null;
38789
+ paid_at?: string | null;
38803
38790
  status?: string | null;
38804
38791
  status_label?: string | null;
38805
38792
  total_excl?: number | null;
@@ -38814,30 +38801,6 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
38814
38801
  referencedColumns: ["id"];
38815
38802
  }];
38816
38803
  };
38817
- twinfield_oauth_state: {
38818
- Row: {
38819
- created_at: string;
38820
- environment: string;
38821
- nonce: string | null;
38822
- state: string;
38823
- user_id: string;
38824
- };
38825
- Insert: {
38826
- created_at?: string;
38827
- environment: string;
38828
- nonce?: string | null;
38829
- state: string;
38830
- user_id: string;
38831
- };
38832
- Update: {
38833
- created_at?: string;
38834
- environment?: string;
38835
- nonce?: string | null;
38836
- state?: string;
38837
- user_id?: string;
38838
- };
38839
- Relationships: [];
38840
- };
38841
38804
  twinfield_push_queue: {
38842
38805
  Row: {
38843
38806
  action: string;
@@ -39003,39 +38966,6 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
39003
38966
  referencedColumns: ["id"];
39004
38967
  }];
39005
38968
  };
39006
- twinfield_token_refresh_log: {
39007
- Row: {
39008
- attempted_at: string;
39009
- connection_id: string;
39010
- error: string | null;
39011
- expires_at: string | null;
39012
- id: string;
39013
- ok: boolean;
39014
- };
39015
- Insert: {
39016
- attempted_at?: string;
39017
- connection_id: string;
39018
- error?: string | null;
39019
- expires_at?: string | null;
39020
- id?: string;
39021
- ok: boolean;
39022
- };
39023
- Update: {
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
- Relationships: [{
39032
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39033
- columns: ["connection_id"];
39034
- isOneToOne: false;
39035
- referencedRelation: "twinfield_connections";
39036
- referencedColumns: ["id"];
39037
- }];
39038
- };
39039
38969
  user_roles: {
39040
38970
  Row: {
39041
38971
  created_at: string;
@@ -41476,15 +41406,16 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
41476
41406
  };
41477
41407
  Returns: undefined;
41478
41408
  };
41479
- twinfield_decrypt: {
41480
- Args: {
41481
- cipher: string;
41482
- };
41483
- Returns: string;
41484
- };
41485
- twinfield_encrypt: {
41409
+ twinfield_upsert_connection_by_account_key: {
41486
41410
  Args: {
41487
- plain: string;
41411
+ p_account_key: string;
41412
+ p_cluster_uri?: string;
41413
+ p_company_code?: string;
41414
+ p_company_name?: string;
41415
+ p_environment: string;
41416
+ p_office_code?: string;
41417
+ p_status?: string;
41418
+ p_user_id: string;
41488
41419
  };
41489
41420
  Returns: string;
41490
41421
  };
@@ -46066,6 +45997,27 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
46066
45997
  referencedColumns: ["id"];
46067
45998
  }];
46068
45999
  };
46000
+ floriday_continuous_stock_cache: {
46001
+ Row: {
46002
+ connection_id: string;
46003
+ fetched_at: string;
46004
+ number_of_pieces: number;
46005
+ trade_item_id: string;
46006
+ };
46007
+ Insert: {
46008
+ connection_id: string;
46009
+ fetched_at?: string;
46010
+ number_of_pieces?: number;
46011
+ trade_item_id: string;
46012
+ };
46013
+ Update: {
46014
+ connection_id?: string;
46015
+ fetched_at?: string;
46016
+ number_of_pieces?: number;
46017
+ trade_item_id?: string;
46018
+ };
46019
+ Relationships: [];
46020
+ };
46069
46021
  floriday_continuous_stock_queue: {
46070
46022
  Row: {
46071
46023
  attempts: number;
@@ -47044,6 +46996,45 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
47044
46996
  referencedColumns: ["id"];
47045
46997
  }];
47046
46998
  };
46999
+ floriday_trade_settings_customers_cache: {
47000
+ Row: {
47001
+ connection_id: string;
47002
+ data: import("../integrations/supabase/types").Json;
47003
+ fetched_at: string;
47004
+ floriday_id: string;
47005
+ id: string;
47006
+ is_deleted: boolean;
47007
+ sequence_number: number;
47008
+ updated_at: string;
47009
+ };
47010
+ Insert: {
47011
+ connection_id: string;
47012
+ data: import("../integrations/supabase/types").Json;
47013
+ fetched_at?: string;
47014
+ floriday_id: string;
47015
+ id?: string;
47016
+ is_deleted?: boolean;
47017
+ sequence_number?: number;
47018
+ updated_at?: string;
47019
+ };
47020
+ Update: {
47021
+ connection_id?: string;
47022
+ data?: import("../integrations/supabase/types").Json;
47023
+ fetched_at?: string;
47024
+ floriday_id?: string;
47025
+ id?: string;
47026
+ is_deleted?: boolean;
47027
+ sequence_number?: number;
47028
+ updated_at?: string;
47029
+ };
47030
+ Relationships: [{
47031
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
47032
+ columns: ["connection_id"];
47033
+ isOneToOne: false;
47034
+ referencedRelation: "floriday_connections";
47035
+ referencedColumns: ["id"];
47036
+ }];
47037
+ };
47047
47038
  floriday_trips_cache: {
47048
47039
  Row: {
47049
47040
  carrier_organization_id: string | null;
@@ -47092,6 +47083,27 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
47092
47083
  referencedColumns: ["id"];
47093
47084
  }];
47094
47085
  };
47086
+ floriday_vbn_required_characteristics: {
47087
+ Row: {
47088
+ required_codes: string[];
47089
+ updated_at: string;
47090
+ updated_by: string | null;
47091
+ vbn_code: string;
47092
+ };
47093
+ Insert: {
47094
+ required_codes?: string[];
47095
+ updated_at?: string;
47096
+ updated_by?: string | null;
47097
+ vbn_code: string;
47098
+ };
47099
+ Update: {
47100
+ required_codes?: string[];
47101
+ updated_at?: string;
47102
+ updated_by?: string | null;
47103
+ vbn_code?: string;
47104
+ };
47105
+ Relationships: [];
47106
+ };
47095
47107
  floriday_warehouses_cache: {
47096
47108
  Row: {
47097
47109
  connection_id: string;
@@ -52065,9 +52077,7 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
52065
52077
  };
52066
52078
  twinfield_connections: {
52067
52079
  Row: {
52068
- access_token: string | null;
52069
- client_id: string;
52070
- client_secret: string | null;
52080
+ account_key: string | null;
52071
52081
  cluster_uri: string | null;
52072
52082
  company_code: string | null;
52073
52083
  company_name: string | null;
@@ -52078,16 +52088,12 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
52078
52088
  is_active: boolean;
52079
52089
  label: string | null;
52080
52090
  office_code: string | null;
52081
- redirect_uri: string;
52082
- refresh_token: string | null;
52083
- token_expires_at: string | null;
52091
+ redirect_uri: string | null;
52084
52092
  updated_at: string;
52085
52093
  user_id: string;
52086
52094
  };
52087
52095
  Insert: {
52088
- access_token?: string | null;
52089
- client_id: string;
52090
- client_secret?: string | null;
52096
+ account_key?: string | null;
52091
52097
  cluster_uri?: string | null;
52092
52098
  company_code?: string | null;
52093
52099
  company_name?: string | null;
@@ -52098,16 +52104,12 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
52098
52104
  is_active?: boolean;
52099
52105
  label?: string | null;
52100
52106
  office_code?: string | null;
52101
- redirect_uri: string;
52102
- refresh_token?: string | null;
52103
- token_expires_at?: string | null;
52107
+ redirect_uri?: string | null;
52104
52108
  updated_at?: string;
52105
52109
  user_id: string;
52106
52110
  };
52107
52111
  Update: {
52108
- access_token?: string | null;
52109
- client_id?: string;
52110
- client_secret?: string | null;
52112
+ account_key?: string | null;
52111
52113
  cluster_uri?: string | null;
52112
52114
  company_code?: string | null;
52113
52115
  company_name?: string | null;
@@ -52118,54 +52120,7 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
52118
52120
  is_active?: boolean;
52119
52121
  label?: string | null;
52120
52122
  office_code?: string | null;
52121
- redirect_uri?: string;
52122
- refresh_token?: string | null;
52123
- token_expires_at?: string | null;
52124
- updated_at?: string;
52125
- user_id?: string;
52126
- };
52127
- Relationships: [];
52128
- };
52129
- twinfield_credentials: {
52130
- Row: {
52131
- administration_code: string | null;
52132
- client_id: string | null;
52133
- client_secret: string | null;
52134
- cluster: string | null;
52135
- connected_at: string | null;
52136
- created_at: string;
52137
- environment: string | null;
52138
- id: string;
52139
- redirect_uri: string | null;
52140
- refresh_token: string | null;
52141
- updated_at: string;
52142
- user_id: string;
52143
- };
52144
- Insert: {
52145
- administration_code?: string | null;
52146
- client_id?: string | null;
52147
- client_secret?: string | null;
52148
- cluster?: string | null;
52149
- connected_at?: string | null;
52150
- created_at?: string;
52151
- environment?: string | null;
52152
- id?: string;
52153
- redirect_uri?: string | null;
52154
- refresh_token?: string | null;
52155
- updated_at?: string;
52156
- user_id: string;
52157
- };
52158
- Update: {
52159
- administration_code?: string | null;
52160
- client_id?: string | null;
52161
- client_secret?: string | null;
52162
- cluster?: string | null;
52163
- connected_at?: string | null;
52164
- created_at?: string;
52165
- environment?: string | null;
52166
- id?: string;
52167
52123
  redirect_uri?: string | null;
52168
- refresh_token?: string | null;
52169
52124
  updated_at?: string;
52170
52125
  user_id?: string;
52171
52126
  };
@@ -52612,12 +52567,15 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
52612
52567
  currency: string | null;
52613
52568
  customer_code: string | null;
52614
52569
  data: import("../integrations/supabase/types").Json;
52570
+ deleted_at: string | null;
52615
52571
  due_date: string | null;
52616
52572
  fetched_at: string;
52617
52573
  invoice_date: string | null;
52618
52574
  invoice_number: string;
52575
+ lines_fetched_at: string | null;
52619
52576
  modified_at: string | null;
52620
52577
  outstanding_amount: number | null;
52578
+ paid_at: string | null;
52621
52579
  status: string | null;
52622
52580
  status_label: string | null;
52623
52581
  total_excl: number | null;
@@ -52629,12 +52587,15 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
52629
52587
  currency?: string | null;
52630
52588
  customer_code?: string | null;
52631
52589
  data?: import("../integrations/supabase/types").Json;
52590
+ deleted_at?: string | null;
52632
52591
  due_date?: string | null;
52633
52592
  fetched_at?: string;
52634
52593
  invoice_date?: string | null;
52635
52594
  invoice_number: string;
52595
+ lines_fetched_at?: string | null;
52636
52596
  modified_at?: string | null;
52637
52597
  outstanding_amount?: number | null;
52598
+ paid_at?: string | null;
52638
52599
  status?: string | null;
52639
52600
  status_label?: string | null;
52640
52601
  total_excl?: number | null;
@@ -52646,12 +52607,15 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
52646
52607
  currency?: string | null;
52647
52608
  customer_code?: string | null;
52648
52609
  data?: import("../integrations/supabase/types").Json;
52610
+ deleted_at?: string | null;
52649
52611
  due_date?: string | null;
52650
52612
  fetched_at?: string;
52651
52613
  invoice_date?: string | null;
52652
52614
  invoice_number?: string;
52615
+ lines_fetched_at?: string | null;
52653
52616
  modified_at?: string | null;
52654
52617
  outstanding_amount?: number | null;
52618
+ paid_at?: string | null;
52655
52619
  status?: string | null;
52656
52620
  status_label?: string | null;
52657
52621
  total_excl?: number | null;
@@ -52666,30 +52630,6 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
52666
52630
  referencedColumns: ["id"];
52667
52631
  }];
52668
52632
  };
52669
- twinfield_oauth_state: {
52670
- Row: {
52671
- created_at: string;
52672
- environment: string;
52673
- nonce: string | null;
52674
- state: string;
52675
- user_id: string;
52676
- };
52677
- Insert: {
52678
- created_at?: string;
52679
- environment: string;
52680
- nonce?: string | null;
52681
- state: string;
52682
- user_id: string;
52683
- };
52684
- Update: {
52685
- created_at?: string;
52686
- environment?: string;
52687
- nonce?: string | null;
52688
- state?: string;
52689
- user_id?: string;
52690
- };
52691
- Relationships: [];
52692
- };
52693
52633
  twinfield_push_queue: {
52694
52634
  Row: {
52695
52635
  action: string;
@@ -52855,39 +52795,6 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
52855
52795
  referencedColumns: ["id"];
52856
52796
  }];
52857
52797
  };
52858
- twinfield_token_refresh_log: {
52859
- Row: {
52860
- attempted_at: string;
52861
- connection_id: string;
52862
- error: string | null;
52863
- expires_at: string | null;
52864
- id: string;
52865
- ok: boolean;
52866
- };
52867
- Insert: {
52868
- attempted_at?: string;
52869
- connection_id: string;
52870
- error?: string | null;
52871
- expires_at?: string | null;
52872
- id?: string;
52873
- ok: boolean;
52874
- };
52875
- Update: {
52876
- attempted_at?: string;
52877
- connection_id?: string;
52878
- error?: string | null;
52879
- expires_at?: string | null;
52880
- id?: string;
52881
- ok?: boolean;
52882
- };
52883
- Relationships: [{
52884
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
52885
- columns: ["connection_id"];
52886
- isOneToOne: false;
52887
- referencedRelation: "twinfield_connections";
52888
- referencedColumns: ["id"];
52889
- }];
52890
- };
52891
52798
  user_roles: {
52892
52799
  Row: {
52893
52800
  created_at: string;
@@ -55328,15 +55235,16 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
55328
55235
  };
55329
55236
  Returns: undefined;
55330
55237
  };
55331
- twinfield_decrypt: {
55332
- Args: {
55333
- cipher: string;
55334
- };
55335
- Returns: string;
55336
- };
55337
- twinfield_encrypt: {
55238
+ twinfield_upsert_connection_by_account_key: {
55338
55239
  Args: {
55339
- plain: string;
55240
+ p_account_key: string;
55241
+ p_cluster_uri?: string;
55242
+ p_company_code?: string;
55243
+ p_company_name?: string;
55244
+ p_environment: string;
55245
+ p_office_code?: string;
55246
+ p_status?: string;
55247
+ p_user_id: string;
55340
55248
  };
55341
55249
  Returns: string;
55342
55250
  };
@@ -59903,6 +59811,27 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
59903
59811
  referencedColumns: ["id"];
59904
59812
  }];
59905
59813
  };
59814
+ floriday_continuous_stock_cache: {
59815
+ Row: {
59816
+ connection_id: string;
59817
+ fetched_at: string;
59818
+ number_of_pieces: number;
59819
+ trade_item_id: string;
59820
+ };
59821
+ Insert: {
59822
+ connection_id: string;
59823
+ fetched_at?: string;
59824
+ number_of_pieces?: number;
59825
+ trade_item_id: string;
59826
+ };
59827
+ Update: {
59828
+ connection_id?: string;
59829
+ fetched_at?: string;
59830
+ number_of_pieces?: number;
59831
+ trade_item_id?: string;
59832
+ };
59833
+ Relationships: [];
59834
+ };
59906
59835
  floriday_continuous_stock_queue: {
59907
59836
  Row: {
59908
59837
  attempts: number;
@@ -60881,6 +60810,45 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
60881
60810
  referencedColumns: ["id"];
60882
60811
  }];
60883
60812
  };
60813
+ floriday_trade_settings_customers_cache: {
60814
+ Row: {
60815
+ connection_id: string;
60816
+ data: import("../integrations/supabase/types").Json;
60817
+ fetched_at: string;
60818
+ floriday_id: string;
60819
+ id: string;
60820
+ is_deleted: boolean;
60821
+ sequence_number: number;
60822
+ updated_at: string;
60823
+ };
60824
+ Insert: {
60825
+ connection_id: string;
60826
+ data: import("../integrations/supabase/types").Json;
60827
+ fetched_at?: string;
60828
+ floriday_id: string;
60829
+ id?: string;
60830
+ is_deleted?: boolean;
60831
+ sequence_number?: number;
60832
+ updated_at?: string;
60833
+ };
60834
+ Update: {
60835
+ connection_id?: string;
60836
+ data?: import("../integrations/supabase/types").Json;
60837
+ fetched_at?: string;
60838
+ floriday_id?: string;
60839
+ id?: string;
60840
+ is_deleted?: boolean;
60841
+ sequence_number?: number;
60842
+ updated_at?: string;
60843
+ };
60844
+ Relationships: [{
60845
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
60846
+ columns: ["connection_id"];
60847
+ isOneToOne: false;
60848
+ referencedRelation: "floriday_connections";
60849
+ referencedColumns: ["id"];
60850
+ }];
60851
+ };
60884
60852
  floriday_trips_cache: {
60885
60853
  Row: {
60886
60854
  carrier_organization_id: string | null;
@@ -60929,6 +60897,27 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
60929
60897
  referencedColumns: ["id"];
60930
60898
  }];
60931
60899
  };
60900
+ floriday_vbn_required_characteristics: {
60901
+ Row: {
60902
+ required_codes: string[];
60903
+ updated_at: string;
60904
+ updated_by: string | null;
60905
+ vbn_code: string;
60906
+ };
60907
+ Insert: {
60908
+ required_codes?: string[];
60909
+ updated_at?: string;
60910
+ updated_by?: string | null;
60911
+ vbn_code: string;
60912
+ };
60913
+ Update: {
60914
+ required_codes?: string[];
60915
+ updated_at?: string;
60916
+ updated_by?: string | null;
60917
+ vbn_code?: string;
60918
+ };
60919
+ Relationships: [];
60920
+ };
60932
60921
  floriday_warehouses_cache: {
60933
60922
  Row: {
60934
60923
  connection_id: string;
@@ -65902,9 +65891,7 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
65902
65891
  };
65903
65892
  twinfield_connections: {
65904
65893
  Row: {
65905
- access_token: string | null;
65906
- client_id: string;
65907
- client_secret: string | null;
65894
+ account_key: string | null;
65908
65895
  cluster_uri: string | null;
65909
65896
  company_code: string | null;
65910
65897
  company_name: string | null;
@@ -65915,16 +65902,12 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
65915
65902
  is_active: boolean;
65916
65903
  label: string | null;
65917
65904
  office_code: string | null;
65918
- redirect_uri: string;
65919
- refresh_token: string | null;
65920
- token_expires_at: string | null;
65905
+ redirect_uri: string | null;
65921
65906
  updated_at: string;
65922
65907
  user_id: string;
65923
65908
  };
65924
65909
  Insert: {
65925
- access_token?: string | null;
65926
- client_id: string;
65927
- client_secret?: string | null;
65910
+ account_key?: string | null;
65928
65911
  cluster_uri?: string | null;
65929
65912
  company_code?: string | null;
65930
65913
  company_name?: string | null;
@@ -65935,16 +65918,12 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
65935
65918
  is_active?: boolean;
65936
65919
  label?: string | null;
65937
65920
  office_code?: string | null;
65938
- redirect_uri: string;
65939
- refresh_token?: string | null;
65940
- token_expires_at?: string | null;
65921
+ redirect_uri?: string | null;
65941
65922
  updated_at?: string;
65942
65923
  user_id: string;
65943
65924
  };
65944
65925
  Update: {
65945
- access_token?: string | null;
65946
- client_id?: string;
65947
- client_secret?: string | null;
65926
+ account_key?: string | null;
65948
65927
  cluster_uri?: string | null;
65949
65928
  company_code?: string | null;
65950
65929
  company_name?: string | null;
@@ -65955,54 +65934,7 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
65955
65934
  is_active?: boolean;
65956
65935
  label?: string | null;
65957
65936
  office_code?: string | null;
65958
- redirect_uri?: string;
65959
- refresh_token?: string | null;
65960
- token_expires_at?: string | null;
65961
- updated_at?: string;
65962
- user_id?: string;
65963
- };
65964
- Relationships: [];
65965
- };
65966
- twinfield_credentials: {
65967
- Row: {
65968
- administration_code: string | null;
65969
- client_id: string | null;
65970
- client_secret: string | null;
65971
- cluster: string | null;
65972
- connected_at: string | null;
65973
- created_at: string;
65974
- environment: string | null;
65975
- id: string;
65976
- redirect_uri: string | null;
65977
- refresh_token: string | null;
65978
- updated_at: string;
65979
- user_id: string;
65980
- };
65981
- Insert: {
65982
- administration_code?: string | null;
65983
- client_id?: string | null;
65984
- client_secret?: string | null;
65985
- cluster?: string | null;
65986
- connected_at?: string | null;
65987
- created_at?: string;
65988
- environment?: string | null;
65989
- id?: string;
65990
65937
  redirect_uri?: string | null;
65991
- refresh_token?: string | null;
65992
- updated_at?: string;
65993
- user_id: string;
65994
- };
65995
- Update: {
65996
- administration_code?: string | null;
65997
- client_id?: string | null;
65998
- client_secret?: string | null;
65999
- cluster?: string | null;
66000
- connected_at?: string | null;
66001
- created_at?: string;
66002
- environment?: string | null;
66003
- id?: string;
66004
- redirect_uri?: string | null;
66005
- refresh_token?: string | null;
66006
65938
  updated_at?: string;
66007
65939
  user_id?: string;
66008
65940
  };
@@ -66449,12 +66381,15 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
66449
66381
  currency: string | null;
66450
66382
  customer_code: string | null;
66451
66383
  data: import("../integrations/supabase/types").Json;
66384
+ deleted_at: string | null;
66452
66385
  due_date: string | null;
66453
66386
  fetched_at: string;
66454
66387
  invoice_date: string | null;
66455
66388
  invoice_number: string;
66389
+ lines_fetched_at: string | null;
66456
66390
  modified_at: string | null;
66457
66391
  outstanding_amount: number | null;
66392
+ paid_at: string | null;
66458
66393
  status: string | null;
66459
66394
  status_label: string | null;
66460
66395
  total_excl: number | null;
@@ -66466,12 +66401,15 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
66466
66401
  currency?: string | null;
66467
66402
  customer_code?: string | null;
66468
66403
  data?: import("../integrations/supabase/types").Json;
66404
+ deleted_at?: string | null;
66469
66405
  due_date?: string | null;
66470
66406
  fetched_at?: string;
66471
66407
  invoice_date?: string | null;
66472
66408
  invoice_number: string;
66409
+ lines_fetched_at?: string | null;
66473
66410
  modified_at?: string | null;
66474
66411
  outstanding_amount?: number | null;
66412
+ paid_at?: string | null;
66475
66413
  status?: string | null;
66476
66414
  status_label?: string | null;
66477
66415
  total_excl?: number | null;
@@ -66483,12 +66421,15 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
66483
66421
  currency?: string | null;
66484
66422
  customer_code?: string | null;
66485
66423
  data?: import("../integrations/supabase/types").Json;
66424
+ deleted_at?: string | null;
66486
66425
  due_date?: string | null;
66487
66426
  fetched_at?: string;
66488
66427
  invoice_date?: string | null;
66489
66428
  invoice_number?: string;
66429
+ lines_fetched_at?: string | null;
66490
66430
  modified_at?: string | null;
66491
66431
  outstanding_amount?: number | null;
66432
+ paid_at?: string | null;
66492
66433
  status?: string | null;
66493
66434
  status_label?: string | null;
66494
66435
  total_excl?: number | null;
@@ -66503,30 +66444,6 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
66503
66444
  referencedColumns: ["id"];
66504
66445
  }];
66505
66446
  };
66506
- twinfield_oauth_state: {
66507
- Row: {
66508
- created_at: string;
66509
- environment: string;
66510
- nonce: string | null;
66511
- state: string;
66512
- user_id: string;
66513
- };
66514
- Insert: {
66515
- created_at?: string;
66516
- environment: string;
66517
- nonce?: string | null;
66518
- state: string;
66519
- user_id: string;
66520
- };
66521
- Update: {
66522
- created_at?: string;
66523
- environment?: string;
66524
- nonce?: string | null;
66525
- state?: string;
66526
- user_id?: string;
66527
- };
66528
- Relationships: [];
66529
- };
66530
66447
  twinfield_push_queue: {
66531
66448
  Row: {
66532
66449
  action: string;
@@ -66692,39 +66609,6 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
66692
66609
  referencedColumns: ["id"];
66693
66610
  }];
66694
66611
  };
66695
- twinfield_token_refresh_log: {
66696
- Row: {
66697
- attempted_at: string;
66698
- connection_id: string;
66699
- error: string | null;
66700
- expires_at: string | null;
66701
- id: string;
66702
- ok: boolean;
66703
- };
66704
- Insert: {
66705
- attempted_at?: string;
66706
- connection_id: string;
66707
- error?: string | null;
66708
- expires_at?: string | null;
66709
- id?: string;
66710
- ok: boolean;
66711
- };
66712
- Update: {
66713
- attempted_at?: string;
66714
- connection_id?: string;
66715
- error?: string | null;
66716
- expires_at?: string | null;
66717
- id?: string;
66718
- ok?: boolean;
66719
- };
66720
- Relationships: [{
66721
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
66722
- columns: ["connection_id"];
66723
- isOneToOne: false;
66724
- referencedRelation: "twinfield_connections";
66725
- referencedColumns: ["id"];
66726
- }];
66727
- };
66728
66612
  user_roles: {
66729
66613
  Row: {
66730
66614
  created_at: string;
@@ -69165,15 +69049,16 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
69165
69049
  };
69166
69050
  Returns: undefined;
69167
69051
  };
69168
- twinfield_decrypt: {
69169
- Args: {
69170
- cipher: string;
69171
- };
69172
- Returns: string;
69173
- };
69174
- twinfield_encrypt: {
69052
+ twinfield_upsert_connection_by_account_key: {
69175
69053
  Args: {
69176
- plain: string;
69054
+ p_account_key: string;
69055
+ p_cluster_uri?: string;
69056
+ p_company_code?: string;
69057
+ p_company_name?: string;
69058
+ p_environment: string;
69059
+ p_office_code?: string;
69060
+ p_status?: string;
69061
+ p_user_id: string;
69177
69062
  };
69178
69063
  Returns: string;
69179
69064
  };
@@ -73743,6 +73628,27 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
73743
73628
  referencedColumns: ["id"];
73744
73629
  }];
73745
73630
  };
73631
+ floriday_continuous_stock_cache: {
73632
+ Row: {
73633
+ connection_id: string;
73634
+ fetched_at: string;
73635
+ number_of_pieces: number;
73636
+ trade_item_id: string;
73637
+ };
73638
+ Insert: {
73639
+ connection_id: string;
73640
+ fetched_at?: string;
73641
+ number_of_pieces?: number;
73642
+ trade_item_id: string;
73643
+ };
73644
+ Update: {
73645
+ connection_id?: string;
73646
+ fetched_at?: string;
73647
+ number_of_pieces?: number;
73648
+ trade_item_id?: string;
73649
+ };
73650
+ Relationships: [];
73651
+ };
73746
73652
  floriday_continuous_stock_queue: {
73747
73653
  Row: {
73748
73654
  attempts: number;
@@ -74721,6 +74627,45 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
74721
74627
  referencedColumns: ["id"];
74722
74628
  }];
74723
74629
  };
74630
+ floriday_trade_settings_customers_cache: {
74631
+ Row: {
74632
+ connection_id: string;
74633
+ data: import("../integrations/supabase/types").Json;
74634
+ fetched_at: string;
74635
+ floriday_id: string;
74636
+ id: string;
74637
+ is_deleted: boolean;
74638
+ sequence_number: number;
74639
+ updated_at: string;
74640
+ };
74641
+ Insert: {
74642
+ connection_id: string;
74643
+ data: import("../integrations/supabase/types").Json;
74644
+ fetched_at?: string;
74645
+ floriday_id: string;
74646
+ id?: string;
74647
+ is_deleted?: boolean;
74648
+ sequence_number?: number;
74649
+ updated_at?: string;
74650
+ };
74651
+ Update: {
74652
+ connection_id?: string;
74653
+ data?: import("../integrations/supabase/types").Json;
74654
+ fetched_at?: string;
74655
+ floriday_id?: string;
74656
+ id?: string;
74657
+ is_deleted?: boolean;
74658
+ sequence_number?: number;
74659
+ updated_at?: string;
74660
+ };
74661
+ Relationships: [{
74662
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
74663
+ columns: ["connection_id"];
74664
+ isOneToOne: false;
74665
+ referencedRelation: "floriday_connections";
74666
+ referencedColumns: ["id"];
74667
+ }];
74668
+ };
74724
74669
  floriday_trips_cache: {
74725
74670
  Row: {
74726
74671
  carrier_organization_id: string | null;
@@ -74769,6 +74714,27 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
74769
74714
  referencedColumns: ["id"];
74770
74715
  }];
74771
74716
  };
74717
+ floriday_vbn_required_characteristics: {
74718
+ Row: {
74719
+ required_codes: string[];
74720
+ updated_at: string;
74721
+ updated_by: string | null;
74722
+ vbn_code: string;
74723
+ };
74724
+ Insert: {
74725
+ required_codes?: string[];
74726
+ updated_at?: string;
74727
+ updated_by?: string | null;
74728
+ vbn_code: string;
74729
+ };
74730
+ Update: {
74731
+ required_codes?: string[];
74732
+ updated_at?: string;
74733
+ updated_by?: string | null;
74734
+ vbn_code?: string;
74735
+ };
74736
+ Relationships: [];
74737
+ };
74772
74738
  floriday_warehouses_cache: {
74773
74739
  Row: {
74774
74740
  connection_id: string;
@@ -79742,9 +79708,7 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
79742
79708
  };
79743
79709
  twinfield_connections: {
79744
79710
  Row: {
79745
- access_token: string | null;
79746
- client_id: string;
79747
- client_secret: string | null;
79711
+ account_key: string | null;
79748
79712
  cluster_uri: string | null;
79749
79713
  company_code: string | null;
79750
79714
  company_name: string | null;
@@ -79755,16 +79719,12 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
79755
79719
  is_active: boolean;
79756
79720
  label: string | null;
79757
79721
  office_code: string | null;
79758
- redirect_uri: string;
79759
- refresh_token: string | null;
79760
- token_expires_at: string | null;
79722
+ redirect_uri: string | null;
79761
79723
  updated_at: string;
79762
79724
  user_id: string;
79763
79725
  };
79764
79726
  Insert: {
79765
- access_token?: string | null;
79766
- client_id: string;
79767
- client_secret?: string | null;
79727
+ account_key?: string | null;
79768
79728
  cluster_uri?: string | null;
79769
79729
  company_code?: string | null;
79770
79730
  company_name?: string | null;
@@ -79775,16 +79735,12 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
79775
79735
  is_active?: boolean;
79776
79736
  label?: string | null;
79777
79737
  office_code?: string | null;
79778
- redirect_uri: string;
79779
- refresh_token?: string | null;
79780
- token_expires_at?: string | null;
79738
+ redirect_uri?: string | null;
79781
79739
  updated_at?: string;
79782
79740
  user_id: string;
79783
79741
  };
79784
79742
  Update: {
79785
- access_token?: string | null;
79786
- client_id?: string;
79787
- client_secret?: string | null;
79743
+ account_key?: string | null;
79788
79744
  cluster_uri?: string | null;
79789
79745
  company_code?: string | null;
79790
79746
  company_name?: string | null;
@@ -79795,54 +79751,7 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
79795
79751
  is_active?: boolean;
79796
79752
  label?: string | null;
79797
79753
  office_code?: string | null;
79798
- redirect_uri?: string;
79799
- refresh_token?: string | null;
79800
- token_expires_at?: string | null;
79801
- updated_at?: string;
79802
- user_id?: string;
79803
- };
79804
- Relationships: [];
79805
- };
79806
- twinfield_credentials: {
79807
- Row: {
79808
- administration_code: string | null;
79809
- client_id: string | null;
79810
- client_secret: string | null;
79811
- cluster: string | null;
79812
- connected_at: string | null;
79813
- created_at: string;
79814
- environment: string | null;
79815
- id: string;
79816
- redirect_uri: string | null;
79817
- refresh_token: string | null;
79818
- updated_at: string;
79819
- user_id: string;
79820
- };
79821
- Insert: {
79822
- administration_code?: string | null;
79823
- client_id?: string | null;
79824
- client_secret?: string | null;
79825
- cluster?: string | null;
79826
- connected_at?: string | null;
79827
- created_at?: string;
79828
- environment?: string | null;
79829
- id?: string;
79830
- redirect_uri?: string | null;
79831
- refresh_token?: string | null;
79832
- updated_at?: string;
79833
- user_id: string;
79834
- };
79835
- Update: {
79836
- administration_code?: string | null;
79837
- client_id?: string | null;
79838
- client_secret?: string | null;
79839
- cluster?: string | null;
79840
- connected_at?: string | null;
79841
- created_at?: string;
79842
- environment?: string | null;
79843
- id?: string;
79844
79754
  redirect_uri?: string | null;
79845
- refresh_token?: string | null;
79846
79755
  updated_at?: string;
79847
79756
  user_id?: string;
79848
79757
  };
@@ -80289,12 +80198,15 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
80289
80198
  currency: string | null;
80290
80199
  customer_code: string | null;
80291
80200
  data: import("../integrations/supabase/types").Json;
80201
+ deleted_at: string | null;
80292
80202
  due_date: string | null;
80293
80203
  fetched_at: string;
80294
80204
  invoice_date: string | null;
80295
80205
  invoice_number: string;
80206
+ lines_fetched_at: string | null;
80296
80207
  modified_at: string | null;
80297
80208
  outstanding_amount: number | null;
80209
+ paid_at: string | null;
80298
80210
  status: string | null;
80299
80211
  status_label: string | null;
80300
80212
  total_excl: number | null;
@@ -80306,12 +80218,15 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
80306
80218
  currency?: string | null;
80307
80219
  customer_code?: string | null;
80308
80220
  data?: import("../integrations/supabase/types").Json;
80221
+ deleted_at?: string | null;
80309
80222
  due_date?: string | null;
80310
80223
  fetched_at?: string;
80311
80224
  invoice_date?: string | null;
80312
80225
  invoice_number: string;
80226
+ lines_fetched_at?: string | null;
80313
80227
  modified_at?: string | null;
80314
80228
  outstanding_amount?: number | null;
80229
+ paid_at?: string | null;
80315
80230
  status?: string | null;
80316
80231
  status_label?: string | null;
80317
80232
  total_excl?: number | null;
@@ -80323,12 +80238,15 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
80323
80238
  currency?: string | null;
80324
80239
  customer_code?: string | null;
80325
80240
  data?: import("../integrations/supabase/types").Json;
80241
+ deleted_at?: string | null;
80326
80242
  due_date?: string | null;
80327
80243
  fetched_at?: string;
80328
80244
  invoice_date?: string | null;
80329
80245
  invoice_number?: string;
80246
+ lines_fetched_at?: string | null;
80330
80247
  modified_at?: string | null;
80331
80248
  outstanding_amount?: number | null;
80249
+ paid_at?: string | null;
80332
80250
  status?: string | null;
80333
80251
  status_label?: string | null;
80334
80252
  total_excl?: number | null;
@@ -80343,30 +80261,6 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
80343
80261
  referencedColumns: ["id"];
80344
80262
  }];
80345
80263
  };
80346
- twinfield_oauth_state: {
80347
- Row: {
80348
- created_at: string;
80349
- environment: string;
80350
- nonce: string | null;
80351
- state: string;
80352
- user_id: string;
80353
- };
80354
- Insert: {
80355
- created_at?: string;
80356
- environment: string;
80357
- nonce?: string | null;
80358
- state: string;
80359
- user_id: string;
80360
- };
80361
- Update: {
80362
- created_at?: string;
80363
- environment?: string;
80364
- nonce?: string | null;
80365
- state?: string;
80366
- user_id?: string;
80367
- };
80368
- Relationships: [];
80369
- };
80370
80264
  twinfield_push_queue: {
80371
80265
  Row: {
80372
80266
  action: string;
@@ -80532,39 +80426,6 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
80532
80426
  referencedColumns: ["id"];
80533
80427
  }];
80534
80428
  };
80535
- twinfield_token_refresh_log: {
80536
- Row: {
80537
- attempted_at: string;
80538
- connection_id: string;
80539
- error: string | null;
80540
- expires_at: string | null;
80541
- id: string;
80542
- ok: boolean;
80543
- };
80544
- Insert: {
80545
- attempted_at?: string;
80546
- connection_id: string;
80547
- error?: string | null;
80548
- expires_at?: string | null;
80549
- id?: string;
80550
- ok: boolean;
80551
- };
80552
- Update: {
80553
- attempted_at?: string;
80554
- connection_id?: string;
80555
- error?: string | null;
80556
- expires_at?: string | null;
80557
- id?: string;
80558
- ok?: boolean;
80559
- };
80560
- Relationships: [{
80561
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
80562
- columns: ["connection_id"];
80563
- isOneToOne: false;
80564
- referencedRelation: "twinfield_connections";
80565
- referencedColumns: ["id"];
80566
- }];
80567
- };
80568
80429
  user_roles: {
80569
80430
  Row: {
80570
80431
  created_at: string;
@@ -83005,15 +82866,16 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
83005
82866
  };
83006
82867
  Returns: undefined;
83007
82868
  };
83008
- twinfield_decrypt: {
82869
+ twinfield_upsert_connection_by_account_key: {
83009
82870
  Args: {
83010
- cipher: string;
83011
- };
83012
- Returns: string;
83013
- };
83014
- twinfield_encrypt: {
83015
- Args: {
83016
- plain: string;
82871
+ p_account_key: string;
82872
+ p_cluster_uri?: string;
82873
+ p_company_code?: string;
82874
+ p_company_name?: string;
82875
+ p_environment: string;
82876
+ p_office_code?: string;
82877
+ p_status?: string;
82878
+ p_user_id: string;
83017
82879
  };
83018
82880
  Returns: string;
83019
82881
  };
@@ -87577,6 +87439,27 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
87577
87439
  referencedColumns: ["id"];
87578
87440
  }];
87579
87441
  };
87442
+ floriday_continuous_stock_cache: {
87443
+ Row: {
87444
+ connection_id: string;
87445
+ fetched_at: string;
87446
+ number_of_pieces: number;
87447
+ trade_item_id: string;
87448
+ };
87449
+ Insert: {
87450
+ connection_id: string;
87451
+ fetched_at?: string;
87452
+ number_of_pieces?: number;
87453
+ trade_item_id: string;
87454
+ };
87455
+ Update: {
87456
+ connection_id?: string;
87457
+ fetched_at?: string;
87458
+ number_of_pieces?: number;
87459
+ trade_item_id?: string;
87460
+ };
87461
+ Relationships: [];
87462
+ };
87580
87463
  floriday_continuous_stock_queue: {
87581
87464
  Row: {
87582
87465
  attempts: number;
@@ -88555,6 +88438,45 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
88555
88438
  referencedColumns: ["id"];
88556
88439
  }];
88557
88440
  };
88441
+ floriday_trade_settings_customers_cache: {
88442
+ Row: {
88443
+ connection_id: string;
88444
+ data: import("../integrations/supabase/types").Json;
88445
+ fetched_at: string;
88446
+ floriday_id: string;
88447
+ id: string;
88448
+ is_deleted: boolean;
88449
+ sequence_number: number;
88450
+ updated_at: string;
88451
+ };
88452
+ Insert: {
88453
+ connection_id: string;
88454
+ data: import("../integrations/supabase/types").Json;
88455
+ fetched_at?: string;
88456
+ floriday_id: string;
88457
+ id?: string;
88458
+ is_deleted?: boolean;
88459
+ sequence_number?: number;
88460
+ updated_at?: string;
88461
+ };
88462
+ Update: {
88463
+ connection_id?: string;
88464
+ data?: import("../integrations/supabase/types").Json;
88465
+ fetched_at?: string;
88466
+ floriday_id?: string;
88467
+ id?: string;
88468
+ is_deleted?: boolean;
88469
+ sequence_number?: number;
88470
+ updated_at?: string;
88471
+ };
88472
+ Relationships: [{
88473
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
88474
+ columns: ["connection_id"];
88475
+ isOneToOne: false;
88476
+ referencedRelation: "floriday_connections";
88477
+ referencedColumns: ["id"];
88478
+ }];
88479
+ };
88558
88480
  floriday_trips_cache: {
88559
88481
  Row: {
88560
88482
  carrier_organization_id: string | null;
@@ -88603,6 +88525,27 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
88603
88525
  referencedColumns: ["id"];
88604
88526
  }];
88605
88527
  };
88528
+ floriday_vbn_required_characteristics: {
88529
+ Row: {
88530
+ required_codes: string[];
88531
+ updated_at: string;
88532
+ updated_by: string | null;
88533
+ vbn_code: string;
88534
+ };
88535
+ Insert: {
88536
+ required_codes?: string[];
88537
+ updated_at?: string;
88538
+ updated_by?: string | null;
88539
+ vbn_code: string;
88540
+ };
88541
+ Update: {
88542
+ required_codes?: string[];
88543
+ updated_at?: string;
88544
+ updated_by?: string | null;
88545
+ vbn_code?: string;
88546
+ };
88547
+ Relationships: [];
88548
+ };
88606
88549
  floriday_warehouses_cache: {
88607
88550
  Row: {
88608
88551
  connection_id: string;
@@ -93576,9 +93519,7 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
93576
93519
  };
93577
93520
  twinfield_connections: {
93578
93521
  Row: {
93579
- access_token: string | null;
93580
- client_id: string;
93581
- client_secret: string | null;
93522
+ account_key: string | null;
93582
93523
  cluster_uri: string | null;
93583
93524
  company_code: string | null;
93584
93525
  company_name: string | null;
@@ -93589,16 +93530,12 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
93589
93530
  is_active: boolean;
93590
93531
  label: string | null;
93591
93532
  office_code: string | null;
93592
- redirect_uri: string;
93593
- refresh_token: string | null;
93594
- token_expires_at: string | null;
93533
+ redirect_uri: string | null;
93595
93534
  updated_at: string;
93596
93535
  user_id: string;
93597
93536
  };
93598
93537
  Insert: {
93599
- access_token?: string | null;
93600
- client_id: string;
93601
- client_secret?: string | null;
93538
+ account_key?: string | null;
93602
93539
  cluster_uri?: string | null;
93603
93540
  company_code?: string | null;
93604
93541
  company_name?: string | null;
@@ -93609,16 +93546,12 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
93609
93546
  is_active?: boolean;
93610
93547
  label?: string | null;
93611
93548
  office_code?: string | null;
93612
- redirect_uri: string;
93613
- refresh_token?: string | null;
93614
- token_expires_at?: string | null;
93549
+ redirect_uri?: string | null;
93615
93550
  updated_at?: string;
93616
93551
  user_id: string;
93617
93552
  };
93618
93553
  Update: {
93619
- access_token?: string | null;
93620
- client_id?: string;
93621
- client_secret?: string | null;
93554
+ account_key?: string | null;
93622
93555
  cluster_uri?: string | null;
93623
93556
  company_code?: string | null;
93624
93557
  company_name?: string | null;
@@ -93629,54 +93562,7 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
93629
93562
  is_active?: boolean;
93630
93563
  label?: string | null;
93631
93564
  office_code?: string | null;
93632
- redirect_uri?: string;
93633
- refresh_token?: string | null;
93634
- token_expires_at?: string | null;
93635
- updated_at?: string;
93636
- user_id?: string;
93637
- };
93638
- Relationships: [];
93639
- };
93640
- twinfield_credentials: {
93641
- Row: {
93642
- administration_code: string | null;
93643
- client_id: string | null;
93644
- client_secret: string | null;
93645
- cluster: string | null;
93646
- connected_at: string | null;
93647
- created_at: string;
93648
- environment: string | null;
93649
- id: string;
93650
- redirect_uri: string | null;
93651
- refresh_token: string | null;
93652
- updated_at: string;
93653
- user_id: string;
93654
- };
93655
- Insert: {
93656
- administration_code?: string | null;
93657
- client_id?: string | null;
93658
- client_secret?: string | null;
93659
- cluster?: string | null;
93660
- connected_at?: string | null;
93661
- created_at?: string;
93662
- environment?: string | null;
93663
- id?: string;
93664
- redirect_uri?: string | null;
93665
- refresh_token?: string | null;
93666
- updated_at?: string;
93667
- user_id: string;
93668
- };
93669
- Update: {
93670
- administration_code?: string | null;
93671
- client_id?: string | null;
93672
- client_secret?: string | null;
93673
- cluster?: string | null;
93674
- connected_at?: string | null;
93675
- created_at?: string;
93676
- environment?: string | null;
93677
- id?: string;
93678
93565
  redirect_uri?: string | null;
93679
- refresh_token?: string | null;
93680
93566
  updated_at?: string;
93681
93567
  user_id?: string;
93682
93568
  };
@@ -94123,12 +94009,15 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
94123
94009
  currency: string | null;
94124
94010
  customer_code: string | null;
94125
94011
  data: import("../integrations/supabase/types").Json;
94012
+ deleted_at: string | null;
94126
94013
  due_date: string | null;
94127
94014
  fetched_at: string;
94128
94015
  invoice_date: string | null;
94129
94016
  invoice_number: string;
94017
+ lines_fetched_at: string | null;
94130
94018
  modified_at: string | null;
94131
94019
  outstanding_amount: number | null;
94020
+ paid_at: string | null;
94132
94021
  status: string | null;
94133
94022
  status_label: string | null;
94134
94023
  total_excl: number | null;
@@ -94140,12 +94029,15 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
94140
94029
  currency?: string | null;
94141
94030
  customer_code?: string | null;
94142
94031
  data?: import("../integrations/supabase/types").Json;
94032
+ deleted_at?: string | null;
94143
94033
  due_date?: string | null;
94144
94034
  fetched_at?: string;
94145
94035
  invoice_date?: string | null;
94146
94036
  invoice_number: string;
94037
+ lines_fetched_at?: string | null;
94147
94038
  modified_at?: string | null;
94148
94039
  outstanding_amount?: number | null;
94040
+ paid_at?: string | null;
94149
94041
  status?: string | null;
94150
94042
  status_label?: string | null;
94151
94043
  total_excl?: number | null;
@@ -94157,12 +94049,15 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
94157
94049
  currency?: string | null;
94158
94050
  customer_code?: string | null;
94159
94051
  data?: import("../integrations/supabase/types").Json;
94052
+ deleted_at?: string | null;
94160
94053
  due_date?: string | null;
94161
94054
  fetched_at?: string;
94162
94055
  invoice_date?: string | null;
94163
94056
  invoice_number?: string;
94057
+ lines_fetched_at?: string | null;
94164
94058
  modified_at?: string | null;
94165
94059
  outstanding_amount?: number | null;
94060
+ paid_at?: string | null;
94166
94061
  status?: string | null;
94167
94062
  status_label?: string | null;
94168
94063
  total_excl?: number | null;
@@ -94177,30 +94072,6 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
94177
94072
  referencedColumns: ["id"];
94178
94073
  }];
94179
94074
  };
94180
- twinfield_oauth_state: {
94181
- Row: {
94182
- created_at: string;
94183
- environment: string;
94184
- nonce: string | null;
94185
- state: string;
94186
- user_id: string;
94187
- };
94188
- Insert: {
94189
- created_at?: string;
94190
- environment: string;
94191
- nonce?: string | null;
94192
- state: string;
94193
- user_id: string;
94194
- };
94195
- Update: {
94196
- created_at?: string;
94197
- environment?: string;
94198
- nonce?: string | null;
94199
- state?: string;
94200
- user_id?: string;
94201
- };
94202
- Relationships: [];
94203
- };
94204
94075
  twinfield_push_queue: {
94205
94076
  Row: {
94206
94077
  action: string;
@@ -94366,39 +94237,6 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
94366
94237
  referencedColumns: ["id"];
94367
94238
  }];
94368
94239
  };
94369
- twinfield_token_refresh_log: {
94370
- Row: {
94371
- attempted_at: string;
94372
- connection_id: string;
94373
- error: string | null;
94374
- expires_at: string | null;
94375
- id: string;
94376
- ok: boolean;
94377
- };
94378
- Insert: {
94379
- attempted_at?: string;
94380
- connection_id: string;
94381
- error?: string | null;
94382
- expires_at?: string | null;
94383
- id?: string;
94384
- ok: boolean;
94385
- };
94386
- Update: {
94387
- attempted_at?: string;
94388
- connection_id?: string;
94389
- error?: string | null;
94390
- expires_at?: string | null;
94391
- id?: string;
94392
- ok?: boolean;
94393
- };
94394
- Relationships: [{
94395
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
94396
- columns: ["connection_id"];
94397
- isOneToOne: false;
94398
- referencedRelation: "twinfield_connections";
94399
- referencedColumns: ["id"];
94400
- }];
94401
- };
94402
94240
  user_roles: {
94403
94241
  Row: {
94404
94242
  created_at: string;
@@ -96839,15 +96677,16 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
96839
96677
  };
96840
96678
  Returns: undefined;
96841
96679
  };
96842
- twinfield_decrypt: {
96680
+ twinfield_upsert_connection_by_account_key: {
96843
96681
  Args: {
96844
- cipher: string;
96845
- };
96846
- Returns: string;
96847
- };
96848
- twinfield_encrypt: {
96849
- Args: {
96850
- plain: string;
96682
+ p_account_key: string;
96683
+ p_cluster_uri?: string;
96684
+ p_company_code?: string;
96685
+ p_company_name?: string;
96686
+ p_environment: string;
96687
+ p_office_code?: string;
96688
+ p_status?: string;
96689
+ p_user_id: string;
96851
96690
  };
96852
96691
  Returns: string;
96853
96692
  };
@@ -101432,6 +101271,27 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
101432
101271
  referencedColumns: ["id"];
101433
101272
  }];
101434
101273
  };
101274
+ floriday_continuous_stock_cache: {
101275
+ Row: {
101276
+ connection_id: string;
101277
+ fetched_at: string;
101278
+ number_of_pieces: number;
101279
+ trade_item_id: string;
101280
+ };
101281
+ Insert: {
101282
+ connection_id: string;
101283
+ fetched_at?: string;
101284
+ number_of_pieces?: number;
101285
+ trade_item_id: string;
101286
+ };
101287
+ Update: {
101288
+ connection_id?: string;
101289
+ fetched_at?: string;
101290
+ number_of_pieces?: number;
101291
+ trade_item_id?: string;
101292
+ };
101293
+ Relationships: [];
101294
+ };
101435
101295
  floriday_continuous_stock_queue: {
101436
101296
  Row: {
101437
101297
  attempts: number;
@@ -102410,6 +102270,45 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
102410
102270
  referencedColumns: ["id"];
102411
102271
  }];
102412
102272
  };
102273
+ floriday_trade_settings_customers_cache: {
102274
+ Row: {
102275
+ connection_id: string;
102276
+ data: import("../integrations/supabase/types").Json;
102277
+ fetched_at: string;
102278
+ floriday_id: string;
102279
+ id: string;
102280
+ is_deleted: boolean;
102281
+ sequence_number: number;
102282
+ updated_at: string;
102283
+ };
102284
+ Insert: {
102285
+ connection_id: string;
102286
+ data: import("../integrations/supabase/types").Json;
102287
+ fetched_at?: string;
102288
+ floriday_id: string;
102289
+ id?: string;
102290
+ is_deleted?: boolean;
102291
+ sequence_number?: number;
102292
+ updated_at?: string;
102293
+ };
102294
+ Update: {
102295
+ connection_id?: string;
102296
+ data?: import("../integrations/supabase/types").Json;
102297
+ fetched_at?: string;
102298
+ floriday_id?: string;
102299
+ id?: string;
102300
+ is_deleted?: boolean;
102301
+ sequence_number?: number;
102302
+ updated_at?: string;
102303
+ };
102304
+ Relationships: [{
102305
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
102306
+ columns: ["connection_id"];
102307
+ isOneToOne: false;
102308
+ referencedRelation: "floriday_connections";
102309
+ referencedColumns: ["id"];
102310
+ }];
102311
+ };
102413
102312
  floriday_trips_cache: {
102414
102313
  Row: {
102415
102314
  carrier_organization_id: string | null;
@@ -102458,6 +102357,27 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
102458
102357
  referencedColumns: ["id"];
102459
102358
  }];
102460
102359
  };
102360
+ floriday_vbn_required_characteristics: {
102361
+ Row: {
102362
+ required_codes: string[];
102363
+ updated_at: string;
102364
+ updated_by: string | null;
102365
+ vbn_code: string;
102366
+ };
102367
+ Insert: {
102368
+ required_codes?: string[];
102369
+ updated_at?: string;
102370
+ updated_by?: string | null;
102371
+ vbn_code: string;
102372
+ };
102373
+ Update: {
102374
+ required_codes?: string[];
102375
+ updated_at?: string;
102376
+ updated_by?: string | null;
102377
+ vbn_code?: string;
102378
+ };
102379
+ Relationships: [];
102380
+ };
102461
102381
  floriday_warehouses_cache: {
102462
102382
  Row: {
102463
102383
  connection_id: string;
@@ -107431,9 +107351,7 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
107431
107351
  };
107432
107352
  twinfield_connections: {
107433
107353
  Row: {
107434
- access_token: string | null;
107435
- client_id: string;
107436
- client_secret: string | null;
107354
+ account_key: string | null;
107437
107355
  cluster_uri: string | null;
107438
107356
  company_code: string | null;
107439
107357
  company_name: string | null;
@@ -107444,16 +107362,12 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
107444
107362
  is_active: boolean;
107445
107363
  label: string | null;
107446
107364
  office_code: string | null;
107447
- redirect_uri: string;
107448
- refresh_token: string | null;
107449
- token_expires_at: string | null;
107365
+ redirect_uri: string | null;
107450
107366
  updated_at: string;
107451
107367
  user_id: string;
107452
107368
  };
107453
107369
  Insert: {
107454
- access_token?: string | null;
107455
- client_id: string;
107456
- client_secret?: string | null;
107370
+ account_key?: string | null;
107457
107371
  cluster_uri?: string | null;
107458
107372
  company_code?: string | null;
107459
107373
  company_name?: string | null;
@@ -107464,16 +107378,12 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
107464
107378
  is_active?: boolean;
107465
107379
  label?: string | null;
107466
107380
  office_code?: string | null;
107467
- redirect_uri: string;
107468
- refresh_token?: string | null;
107469
- token_expires_at?: string | null;
107381
+ redirect_uri?: string | null;
107470
107382
  updated_at?: string;
107471
107383
  user_id: string;
107472
107384
  };
107473
107385
  Update: {
107474
- access_token?: string | null;
107475
- client_id?: string;
107476
- client_secret?: string | null;
107386
+ account_key?: string | null;
107477
107387
  cluster_uri?: string | null;
107478
107388
  company_code?: string | null;
107479
107389
  company_name?: string | null;
@@ -107484,54 +107394,7 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
107484
107394
  is_active?: boolean;
107485
107395
  label?: string | null;
107486
107396
  office_code?: string | null;
107487
- redirect_uri?: string;
107488
- refresh_token?: string | null;
107489
- token_expires_at?: string | null;
107490
- updated_at?: string;
107491
- user_id?: string;
107492
- };
107493
- Relationships: [];
107494
- };
107495
- twinfield_credentials: {
107496
- Row: {
107497
- administration_code: string | null;
107498
- client_id: string | null;
107499
- client_secret: string | null;
107500
- cluster: string | null;
107501
- connected_at: string | null;
107502
- created_at: string;
107503
- environment: string | null;
107504
- id: string;
107505
- redirect_uri: string | null;
107506
- refresh_token: string | null;
107507
- updated_at: string;
107508
- user_id: string;
107509
- };
107510
- Insert: {
107511
- administration_code?: string | null;
107512
- client_id?: string | null;
107513
- client_secret?: string | null;
107514
- cluster?: string | null;
107515
- connected_at?: string | null;
107516
- created_at?: string;
107517
- environment?: string | null;
107518
- id?: string;
107519
107397
  redirect_uri?: string | null;
107520
- refresh_token?: string | null;
107521
- updated_at?: string;
107522
- user_id: string;
107523
- };
107524
- Update: {
107525
- administration_code?: string | null;
107526
- client_id?: string | null;
107527
- client_secret?: string | null;
107528
- cluster?: string | null;
107529
- connected_at?: string | null;
107530
- created_at?: string;
107531
- environment?: string | null;
107532
- id?: string;
107533
- redirect_uri?: string | null;
107534
- refresh_token?: string | null;
107535
107398
  updated_at?: string;
107536
107399
  user_id?: string;
107537
107400
  };
@@ -107978,12 +107841,15 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
107978
107841
  currency: string | null;
107979
107842
  customer_code: string | null;
107980
107843
  data: import("../integrations/supabase/types").Json;
107844
+ deleted_at: string | null;
107981
107845
  due_date: string | null;
107982
107846
  fetched_at: string;
107983
107847
  invoice_date: string | null;
107984
107848
  invoice_number: string;
107849
+ lines_fetched_at: string | null;
107985
107850
  modified_at: string | null;
107986
107851
  outstanding_amount: number | null;
107852
+ paid_at: string | null;
107987
107853
  status: string | null;
107988
107854
  status_label: string | null;
107989
107855
  total_excl: number | null;
@@ -107995,12 +107861,15 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
107995
107861
  currency?: string | null;
107996
107862
  customer_code?: string | null;
107997
107863
  data?: import("../integrations/supabase/types").Json;
107864
+ deleted_at?: string | null;
107998
107865
  due_date?: string | null;
107999
107866
  fetched_at?: string;
108000
107867
  invoice_date?: string | null;
108001
107868
  invoice_number: string;
107869
+ lines_fetched_at?: string | null;
108002
107870
  modified_at?: string | null;
108003
107871
  outstanding_amount?: number | null;
107872
+ paid_at?: string | null;
108004
107873
  status?: string | null;
108005
107874
  status_label?: string | null;
108006
107875
  total_excl?: number | null;
@@ -108012,12 +107881,15 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
108012
107881
  currency?: string | null;
108013
107882
  customer_code?: string | null;
108014
107883
  data?: import("../integrations/supabase/types").Json;
107884
+ deleted_at?: string | null;
108015
107885
  due_date?: string | null;
108016
107886
  fetched_at?: string;
108017
107887
  invoice_date?: string | null;
108018
107888
  invoice_number?: string;
107889
+ lines_fetched_at?: string | null;
108019
107890
  modified_at?: string | null;
108020
107891
  outstanding_amount?: number | null;
107892
+ paid_at?: string | null;
108021
107893
  status?: string | null;
108022
107894
  status_label?: string | null;
108023
107895
  total_excl?: number | null;
@@ -108032,30 +107904,6 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
108032
107904
  referencedColumns: ["id"];
108033
107905
  }];
108034
107906
  };
108035
- twinfield_oauth_state: {
108036
- Row: {
108037
- created_at: string;
108038
- environment: string;
108039
- nonce: string | null;
108040
- state: string;
108041
- user_id: string;
108042
- };
108043
- Insert: {
108044
- created_at?: string;
108045
- environment: string;
108046
- nonce?: string | null;
108047
- state: string;
108048
- user_id: string;
108049
- };
108050
- Update: {
108051
- created_at?: string;
108052
- environment?: string;
108053
- nonce?: string | null;
108054
- state?: string;
108055
- user_id?: string;
108056
- };
108057
- Relationships: [];
108058
- };
108059
107907
  twinfield_push_queue: {
108060
107908
  Row: {
108061
107909
  action: string;
@@ -108221,39 +108069,6 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
108221
108069
  referencedColumns: ["id"];
108222
108070
  }];
108223
108071
  };
108224
- twinfield_token_refresh_log: {
108225
- Row: {
108226
- attempted_at: string;
108227
- connection_id: string;
108228
- error: string | null;
108229
- expires_at: string | null;
108230
- id: string;
108231
- ok: boolean;
108232
- };
108233
- Insert: {
108234
- attempted_at?: string;
108235
- connection_id: string;
108236
- error?: string | null;
108237
- expires_at?: string | null;
108238
- id?: string;
108239
- ok: boolean;
108240
- };
108241
- Update: {
108242
- attempted_at?: string;
108243
- connection_id?: string;
108244
- error?: string | null;
108245
- expires_at?: string | null;
108246
- id?: string;
108247
- ok?: boolean;
108248
- };
108249
- Relationships: [{
108250
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
108251
- columns: ["connection_id"];
108252
- isOneToOne: false;
108253
- referencedRelation: "twinfield_connections";
108254
- referencedColumns: ["id"];
108255
- }];
108256
- };
108257
108072
  user_roles: {
108258
108073
  Row: {
108259
108074
  created_at: string;
@@ -110694,15 +110509,16 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
110694
110509
  };
110695
110510
  Returns: undefined;
110696
110511
  };
110697
- twinfield_decrypt: {
110512
+ twinfield_upsert_connection_by_account_key: {
110698
110513
  Args: {
110699
- cipher: string;
110700
- };
110701
- Returns: string;
110702
- };
110703
- twinfield_encrypt: {
110704
- Args: {
110705
- plain: string;
110514
+ p_account_key: string;
110515
+ p_cluster_uri?: string;
110516
+ p_company_code?: string;
110517
+ p_company_name?: string;
110518
+ p_environment: string;
110519
+ p_office_code?: string;
110520
+ p_status?: string;
110521
+ p_user_id: string;
110706
110522
  };
110707
110523
  Returns: string;
110708
110524
  };
@@ -115270,6 +115086,27 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
115270
115086
  referencedColumns: ["id"];
115271
115087
  }];
115272
115088
  };
115089
+ floriday_continuous_stock_cache: {
115090
+ Row: {
115091
+ connection_id: string;
115092
+ fetched_at: string;
115093
+ number_of_pieces: number;
115094
+ trade_item_id: string;
115095
+ };
115096
+ Insert: {
115097
+ connection_id: string;
115098
+ fetched_at?: string;
115099
+ number_of_pieces?: number;
115100
+ trade_item_id: string;
115101
+ };
115102
+ Update: {
115103
+ connection_id?: string;
115104
+ fetched_at?: string;
115105
+ number_of_pieces?: number;
115106
+ trade_item_id?: string;
115107
+ };
115108
+ Relationships: [];
115109
+ };
115273
115110
  floriday_continuous_stock_queue: {
115274
115111
  Row: {
115275
115112
  attempts: number;
@@ -116248,6 +116085,45 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
116248
116085
  referencedColumns: ["id"];
116249
116086
  }];
116250
116087
  };
116088
+ floriday_trade_settings_customers_cache: {
116089
+ Row: {
116090
+ connection_id: string;
116091
+ data: import("../integrations/supabase/types").Json;
116092
+ fetched_at: string;
116093
+ floriday_id: string;
116094
+ id: string;
116095
+ is_deleted: boolean;
116096
+ sequence_number: number;
116097
+ updated_at: string;
116098
+ };
116099
+ Insert: {
116100
+ connection_id: string;
116101
+ data: import("../integrations/supabase/types").Json;
116102
+ fetched_at?: string;
116103
+ floriday_id: string;
116104
+ id?: string;
116105
+ is_deleted?: boolean;
116106
+ sequence_number?: number;
116107
+ updated_at?: string;
116108
+ };
116109
+ Update: {
116110
+ connection_id?: string;
116111
+ data?: import("../integrations/supabase/types").Json;
116112
+ fetched_at?: string;
116113
+ floriday_id?: string;
116114
+ id?: string;
116115
+ is_deleted?: boolean;
116116
+ sequence_number?: number;
116117
+ updated_at?: string;
116118
+ };
116119
+ Relationships: [{
116120
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
116121
+ columns: ["connection_id"];
116122
+ isOneToOne: false;
116123
+ referencedRelation: "floriday_connections";
116124
+ referencedColumns: ["id"];
116125
+ }];
116126
+ };
116251
116127
  floriday_trips_cache: {
116252
116128
  Row: {
116253
116129
  carrier_organization_id: string | null;
@@ -116296,6 +116172,27 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
116296
116172
  referencedColumns: ["id"];
116297
116173
  }];
116298
116174
  };
116175
+ floriday_vbn_required_characteristics: {
116176
+ Row: {
116177
+ required_codes: string[];
116178
+ updated_at: string;
116179
+ updated_by: string | null;
116180
+ vbn_code: string;
116181
+ };
116182
+ Insert: {
116183
+ required_codes?: string[];
116184
+ updated_at?: string;
116185
+ updated_by?: string | null;
116186
+ vbn_code: string;
116187
+ };
116188
+ Update: {
116189
+ required_codes?: string[];
116190
+ updated_at?: string;
116191
+ updated_by?: string | null;
116192
+ vbn_code?: string;
116193
+ };
116194
+ Relationships: [];
116195
+ };
116299
116196
  floriday_warehouses_cache: {
116300
116197
  Row: {
116301
116198
  connection_id: string;
@@ -121269,9 +121166,7 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
121269
121166
  };
121270
121167
  twinfield_connections: {
121271
121168
  Row: {
121272
- access_token: string | null;
121273
- client_id: string;
121274
- client_secret: string | null;
121169
+ account_key: string | null;
121275
121170
  cluster_uri: string | null;
121276
121171
  company_code: string | null;
121277
121172
  company_name: string | null;
@@ -121282,16 +121177,12 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
121282
121177
  is_active: boolean;
121283
121178
  label: string | null;
121284
121179
  office_code: string | null;
121285
- redirect_uri: string;
121286
- refresh_token: string | null;
121287
- token_expires_at: string | null;
121180
+ redirect_uri: string | null;
121288
121181
  updated_at: string;
121289
121182
  user_id: string;
121290
121183
  };
121291
121184
  Insert: {
121292
- access_token?: string | null;
121293
- client_id: string;
121294
- client_secret?: string | null;
121185
+ account_key?: string | null;
121295
121186
  cluster_uri?: string | null;
121296
121187
  company_code?: string | null;
121297
121188
  company_name?: string | null;
@@ -121302,16 +121193,12 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
121302
121193
  is_active?: boolean;
121303
121194
  label?: string | null;
121304
121195
  office_code?: string | null;
121305
- redirect_uri: string;
121306
- refresh_token?: string | null;
121307
- token_expires_at?: string | null;
121196
+ redirect_uri?: string | null;
121308
121197
  updated_at?: string;
121309
121198
  user_id: string;
121310
121199
  };
121311
121200
  Update: {
121312
- access_token?: string | null;
121313
- client_id?: string;
121314
- client_secret?: string | null;
121201
+ account_key?: string | null;
121315
121202
  cluster_uri?: string | null;
121316
121203
  company_code?: string | null;
121317
121204
  company_name?: string | null;
@@ -121322,54 +121209,7 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
121322
121209
  is_active?: boolean;
121323
121210
  label?: string | null;
121324
121211
  office_code?: string | null;
121325
- redirect_uri?: string;
121326
- refresh_token?: string | null;
121327
- token_expires_at?: string | null;
121328
- updated_at?: string;
121329
- user_id?: string;
121330
- };
121331
- Relationships: [];
121332
- };
121333
- twinfield_credentials: {
121334
- Row: {
121335
- administration_code: string | null;
121336
- client_id: string | null;
121337
- client_secret: string | null;
121338
- cluster: string | null;
121339
- connected_at: string | null;
121340
- created_at: string;
121341
- environment: string | null;
121342
- id: string;
121343
- redirect_uri: string | null;
121344
- refresh_token: string | null;
121345
- updated_at: string;
121346
- user_id: string;
121347
- };
121348
- Insert: {
121349
- administration_code?: string | null;
121350
- client_id?: string | null;
121351
- client_secret?: string | null;
121352
- cluster?: string | null;
121353
- connected_at?: string | null;
121354
- created_at?: string;
121355
- environment?: string | null;
121356
- id?: string;
121357
- redirect_uri?: string | null;
121358
- refresh_token?: string | null;
121359
- updated_at?: string;
121360
- user_id: string;
121361
- };
121362
- Update: {
121363
- administration_code?: string | null;
121364
- client_id?: string | null;
121365
- client_secret?: string | null;
121366
- cluster?: string | null;
121367
- connected_at?: string | null;
121368
- created_at?: string;
121369
- environment?: string | null;
121370
- id?: string;
121371
121212
  redirect_uri?: string | null;
121372
- refresh_token?: string | null;
121373
121213
  updated_at?: string;
121374
121214
  user_id?: string;
121375
121215
  };
@@ -121816,12 +121656,15 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
121816
121656
  currency: string | null;
121817
121657
  customer_code: string | null;
121818
121658
  data: import("../integrations/supabase/types").Json;
121659
+ deleted_at: string | null;
121819
121660
  due_date: string | null;
121820
121661
  fetched_at: string;
121821
121662
  invoice_date: string | null;
121822
121663
  invoice_number: string;
121664
+ lines_fetched_at: string | null;
121823
121665
  modified_at: string | null;
121824
121666
  outstanding_amount: number | null;
121667
+ paid_at: string | null;
121825
121668
  status: string | null;
121826
121669
  status_label: string | null;
121827
121670
  total_excl: number | null;
@@ -121833,12 +121676,15 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
121833
121676
  currency?: string | null;
121834
121677
  customer_code?: string | null;
121835
121678
  data?: import("../integrations/supabase/types").Json;
121679
+ deleted_at?: string | null;
121836
121680
  due_date?: string | null;
121837
121681
  fetched_at?: string;
121838
121682
  invoice_date?: string | null;
121839
121683
  invoice_number: string;
121684
+ lines_fetched_at?: string | null;
121840
121685
  modified_at?: string | null;
121841
121686
  outstanding_amount?: number | null;
121687
+ paid_at?: string | null;
121842
121688
  status?: string | null;
121843
121689
  status_label?: string | null;
121844
121690
  total_excl?: number | null;
@@ -121850,12 +121696,15 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
121850
121696
  currency?: string | null;
121851
121697
  customer_code?: string | null;
121852
121698
  data?: import("../integrations/supabase/types").Json;
121699
+ deleted_at?: string | null;
121853
121700
  due_date?: string | null;
121854
121701
  fetched_at?: string;
121855
121702
  invoice_date?: string | null;
121856
121703
  invoice_number?: string;
121704
+ lines_fetched_at?: string | null;
121857
121705
  modified_at?: string | null;
121858
121706
  outstanding_amount?: number | null;
121707
+ paid_at?: string | null;
121859
121708
  status?: string | null;
121860
121709
  status_label?: string | null;
121861
121710
  total_excl?: number | null;
@@ -121870,30 +121719,6 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
121870
121719
  referencedColumns: ["id"];
121871
121720
  }];
121872
121721
  };
121873
- twinfield_oauth_state: {
121874
- Row: {
121875
- created_at: string;
121876
- environment: string;
121877
- nonce: string | null;
121878
- state: string;
121879
- user_id: string;
121880
- };
121881
- Insert: {
121882
- created_at?: string;
121883
- environment: string;
121884
- nonce?: string | null;
121885
- state: string;
121886
- user_id: string;
121887
- };
121888
- Update: {
121889
- created_at?: string;
121890
- environment?: string;
121891
- nonce?: string | null;
121892
- state?: string;
121893
- user_id?: string;
121894
- };
121895
- Relationships: [];
121896
- };
121897
121722
  twinfield_push_queue: {
121898
121723
  Row: {
121899
121724
  action: string;
@@ -122059,39 +121884,6 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
122059
121884
  referencedColumns: ["id"];
122060
121885
  }];
122061
121886
  };
122062
- twinfield_token_refresh_log: {
122063
- Row: {
122064
- attempted_at: string;
122065
- connection_id: string;
122066
- error: string | null;
122067
- expires_at: string | null;
122068
- id: string;
122069
- ok: boolean;
122070
- };
122071
- Insert: {
122072
- attempted_at?: string;
122073
- connection_id: string;
122074
- error?: string | null;
122075
- expires_at?: string | null;
122076
- id?: string;
122077
- ok: boolean;
122078
- };
122079
- Update: {
122080
- attempted_at?: string;
122081
- connection_id?: string;
122082
- error?: string | null;
122083
- expires_at?: string | null;
122084
- id?: string;
122085
- ok?: boolean;
122086
- };
122087
- Relationships: [{
122088
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
122089
- columns: ["connection_id"];
122090
- isOneToOne: false;
122091
- referencedRelation: "twinfield_connections";
122092
- referencedColumns: ["id"];
122093
- }];
122094
- };
122095
121887
  user_roles: {
122096
121888
  Row: {
122097
121889
  created_at: string;
@@ -124532,15 +124324,16 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
124532
124324
  };
124533
124325
  Returns: undefined;
124534
124326
  };
124535
- twinfield_decrypt: {
124327
+ twinfield_upsert_connection_by_account_key: {
124536
124328
  Args: {
124537
- cipher: string;
124538
- };
124539
- Returns: string;
124540
- };
124541
- twinfield_encrypt: {
124542
- Args: {
124543
- plain: string;
124329
+ p_account_key: string;
124330
+ p_cluster_uri?: string;
124331
+ p_company_code?: string;
124332
+ p_company_name?: string;
124333
+ p_environment: string;
124334
+ p_office_code?: string;
124335
+ p_status?: string;
124336
+ p_user_id: string;
124544
124337
  };
124545
124338
  Returns: string;
124546
124339
  };
@@ -129128,6 +128921,27 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
129128
128921
  referencedColumns: ["id"];
129129
128922
  }];
129130
128923
  };
128924
+ floriday_continuous_stock_cache: {
128925
+ Row: {
128926
+ connection_id: string;
128927
+ fetched_at: string;
128928
+ number_of_pieces: number;
128929
+ trade_item_id: string;
128930
+ };
128931
+ Insert: {
128932
+ connection_id: string;
128933
+ fetched_at?: string;
128934
+ number_of_pieces?: number;
128935
+ trade_item_id: string;
128936
+ };
128937
+ Update: {
128938
+ connection_id?: string;
128939
+ fetched_at?: string;
128940
+ number_of_pieces?: number;
128941
+ trade_item_id?: string;
128942
+ };
128943
+ Relationships: [];
128944
+ };
129131
128945
  floriday_continuous_stock_queue: {
129132
128946
  Row: {
129133
128947
  attempts: number;
@@ -130106,6 +129920,45 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
130106
129920
  referencedColumns: ["id"];
130107
129921
  }];
130108
129922
  };
129923
+ floriday_trade_settings_customers_cache: {
129924
+ Row: {
129925
+ connection_id: string;
129926
+ data: import("../integrations/supabase/types").Json;
129927
+ fetched_at: string;
129928
+ floriday_id: string;
129929
+ id: string;
129930
+ is_deleted: boolean;
129931
+ sequence_number: number;
129932
+ updated_at: string;
129933
+ };
129934
+ Insert: {
129935
+ connection_id: string;
129936
+ data: import("../integrations/supabase/types").Json;
129937
+ fetched_at?: string;
129938
+ floriday_id: string;
129939
+ id?: string;
129940
+ is_deleted?: boolean;
129941
+ sequence_number?: number;
129942
+ updated_at?: string;
129943
+ };
129944
+ Update: {
129945
+ connection_id?: string;
129946
+ data?: import("../integrations/supabase/types").Json;
129947
+ fetched_at?: string;
129948
+ floriday_id?: string;
129949
+ id?: string;
129950
+ is_deleted?: boolean;
129951
+ sequence_number?: number;
129952
+ updated_at?: string;
129953
+ };
129954
+ Relationships: [{
129955
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
129956
+ columns: ["connection_id"];
129957
+ isOneToOne: false;
129958
+ referencedRelation: "floriday_connections";
129959
+ referencedColumns: ["id"];
129960
+ }];
129961
+ };
130109
129962
  floriday_trips_cache: {
130110
129963
  Row: {
130111
129964
  carrier_organization_id: string | null;
@@ -130154,6 +130007,27 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
130154
130007
  referencedColumns: ["id"];
130155
130008
  }];
130156
130009
  };
130010
+ floriday_vbn_required_characteristics: {
130011
+ Row: {
130012
+ required_codes: string[];
130013
+ updated_at: string;
130014
+ updated_by: string | null;
130015
+ vbn_code: string;
130016
+ };
130017
+ Insert: {
130018
+ required_codes?: string[];
130019
+ updated_at?: string;
130020
+ updated_by?: string | null;
130021
+ vbn_code: string;
130022
+ };
130023
+ Update: {
130024
+ required_codes?: string[];
130025
+ updated_at?: string;
130026
+ updated_by?: string | null;
130027
+ vbn_code?: string;
130028
+ };
130029
+ Relationships: [];
130030
+ };
130157
130031
  floriday_warehouses_cache: {
130158
130032
  Row: {
130159
130033
  connection_id: string;
@@ -135127,9 +135001,7 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
135127
135001
  };
135128
135002
  twinfield_connections: {
135129
135003
  Row: {
135130
- access_token: string | null;
135131
- client_id: string;
135132
- client_secret: string | null;
135004
+ account_key: string | null;
135133
135005
  cluster_uri: string | null;
135134
135006
  company_code: string | null;
135135
135007
  company_name: string | null;
@@ -135140,16 +135012,12 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
135140
135012
  is_active: boolean;
135141
135013
  label: string | null;
135142
135014
  office_code: string | null;
135143
- redirect_uri: string;
135144
- refresh_token: string | null;
135145
- token_expires_at: string | null;
135015
+ redirect_uri: string | null;
135146
135016
  updated_at: string;
135147
135017
  user_id: string;
135148
135018
  };
135149
135019
  Insert: {
135150
- access_token?: string | null;
135151
- client_id: string;
135152
- client_secret?: string | null;
135020
+ account_key?: string | null;
135153
135021
  cluster_uri?: string | null;
135154
135022
  company_code?: string | null;
135155
135023
  company_name?: string | null;
@@ -135160,16 +135028,12 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
135160
135028
  is_active?: boolean;
135161
135029
  label?: string | null;
135162
135030
  office_code?: string | null;
135163
- redirect_uri: string;
135164
- refresh_token?: string | null;
135165
- token_expires_at?: string | null;
135031
+ redirect_uri?: string | null;
135166
135032
  updated_at?: string;
135167
135033
  user_id: string;
135168
135034
  };
135169
135035
  Update: {
135170
- access_token?: string | null;
135171
- client_id?: string;
135172
- client_secret?: string | null;
135036
+ account_key?: string | null;
135173
135037
  cluster_uri?: string | null;
135174
135038
  company_code?: string | null;
135175
135039
  company_name?: string | null;
@@ -135180,54 +135044,7 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
135180
135044
  is_active?: boolean;
135181
135045
  label?: string | null;
135182
135046
  office_code?: string | null;
135183
- redirect_uri?: string;
135184
- refresh_token?: string | null;
135185
- token_expires_at?: string | null;
135186
- updated_at?: string;
135187
- user_id?: string;
135188
- };
135189
- Relationships: [];
135190
- };
135191
- twinfield_credentials: {
135192
- Row: {
135193
- administration_code: string | null;
135194
- client_id: string | null;
135195
- client_secret: string | null;
135196
- cluster: string | null;
135197
- connected_at: string | null;
135198
- created_at: string;
135199
- environment: string | null;
135200
- id: string;
135201
- redirect_uri: string | null;
135202
- refresh_token: string | null;
135203
- updated_at: string;
135204
- user_id: string;
135205
- };
135206
- Insert: {
135207
- administration_code?: string | null;
135208
- client_id?: string | null;
135209
- client_secret?: string | null;
135210
- cluster?: string | null;
135211
- connected_at?: string | null;
135212
- created_at?: string;
135213
- environment?: string | null;
135214
- id?: string;
135215
- redirect_uri?: string | null;
135216
- refresh_token?: string | null;
135217
- updated_at?: string;
135218
- user_id: string;
135219
- };
135220
- Update: {
135221
- administration_code?: string | null;
135222
- client_id?: string | null;
135223
- client_secret?: string | null;
135224
- cluster?: string | null;
135225
- connected_at?: string | null;
135226
- created_at?: string;
135227
- environment?: string | null;
135228
- id?: string;
135229
135047
  redirect_uri?: string | null;
135230
- refresh_token?: string | null;
135231
135048
  updated_at?: string;
135232
135049
  user_id?: string;
135233
135050
  };
@@ -135674,12 +135491,15 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
135674
135491
  currency: string | null;
135675
135492
  customer_code: string | null;
135676
135493
  data: import("../integrations/supabase/types").Json;
135494
+ deleted_at: string | null;
135677
135495
  due_date: string | null;
135678
135496
  fetched_at: string;
135679
135497
  invoice_date: string | null;
135680
135498
  invoice_number: string;
135499
+ lines_fetched_at: string | null;
135681
135500
  modified_at: string | null;
135682
135501
  outstanding_amount: number | null;
135502
+ paid_at: string | null;
135683
135503
  status: string | null;
135684
135504
  status_label: string | null;
135685
135505
  total_excl: number | null;
@@ -135691,12 +135511,15 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
135691
135511
  currency?: string | null;
135692
135512
  customer_code?: string | null;
135693
135513
  data?: import("../integrations/supabase/types").Json;
135514
+ deleted_at?: string | null;
135694
135515
  due_date?: string | null;
135695
135516
  fetched_at?: string;
135696
135517
  invoice_date?: string | null;
135697
135518
  invoice_number: string;
135519
+ lines_fetched_at?: string | null;
135698
135520
  modified_at?: string | null;
135699
135521
  outstanding_amount?: number | null;
135522
+ paid_at?: string | null;
135700
135523
  status?: string | null;
135701
135524
  status_label?: string | null;
135702
135525
  total_excl?: number | null;
@@ -135708,12 +135531,15 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
135708
135531
  currency?: string | null;
135709
135532
  customer_code?: string | null;
135710
135533
  data?: import("../integrations/supabase/types").Json;
135534
+ deleted_at?: string | null;
135711
135535
  due_date?: string | null;
135712
135536
  fetched_at?: string;
135713
135537
  invoice_date?: string | null;
135714
135538
  invoice_number?: string;
135539
+ lines_fetched_at?: string | null;
135715
135540
  modified_at?: string | null;
135716
135541
  outstanding_amount?: number | null;
135542
+ paid_at?: string | null;
135717
135543
  status?: string | null;
135718
135544
  status_label?: string | null;
135719
135545
  total_excl?: number | null;
@@ -135728,30 +135554,6 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
135728
135554
  referencedColumns: ["id"];
135729
135555
  }];
135730
135556
  };
135731
- twinfield_oauth_state: {
135732
- Row: {
135733
- created_at: string;
135734
- environment: string;
135735
- nonce: string | null;
135736
- state: string;
135737
- user_id: string;
135738
- };
135739
- Insert: {
135740
- created_at?: string;
135741
- environment: string;
135742
- nonce?: string | null;
135743
- state: string;
135744
- user_id: string;
135745
- };
135746
- Update: {
135747
- created_at?: string;
135748
- environment?: string;
135749
- nonce?: string | null;
135750
- state?: string;
135751
- user_id?: string;
135752
- };
135753
- Relationships: [];
135754
- };
135755
135557
  twinfield_push_queue: {
135756
135558
  Row: {
135757
135559
  action: string;
@@ -135917,39 +135719,6 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
135917
135719
  referencedColumns: ["id"];
135918
135720
  }];
135919
135721
  };
135920
- twinfield_token_refresh_log: {
135921
- Row: {
135922
- attempted_at: string;
135923
- connection_id: string;
135924
- error: string | null;
135925
- expires_at: string | null;
135926
- id: string;
135927
- ok: boolean;
135928
- };
135929
- Insert: {
135930
- attempted_at?: string;
135931
- connection_id: string;
135932
- error?: string | null;
135933
- expires_at?: string | null;
135934
- id?: string;
135935
- ok: boolean;
135936
- };
135937
- Update: {
135938
- attempted_at?: string;
135939
- connection_id?: string;
135940
- error?: string | null;
135941
- expires_at?: string | null;
135942
- id?: string;
135943
- ok?: boolean;
135944
- };
135945
- Relationships: [{
135946
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
135947
- columns: ["connection_id"];
135948
- isOneToOne: false;
135949
- referencedRelation: "twinfield_connections";
135950
- referencedColumns: ["id"];
135951
- }];
135952
- };
135953
135722
  user_roles: {
135954
135723
  Row: {
135955
135724
  created_at: string;
@@ -138390,15 +138159,16 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
138390
138159
  };
138391
138160
  Returns: undefined;
138392
138161
  };
138393
- twinfield_decrypt: {
138162
+ twinfield_upsert_connection_by_account_key: {
138394
138163
  Args: {
138395
- cipher: string;
138396
- };
138397
- Returns: string;
138398
- };
138399
- twinfield_encrypt: {
138400
- Args: {
138401
- plain: string;
138164
+ p_account_key: string;
138165
+ p_cluster_uri?: string;
138166
+ p_company_code?: string;
138167
+ p_company_name?: string;
138168
+ p_environment: string;
138169
+ p_office_code?: string;
138170
+ p_status?: string;
138171
+ p_user_id: string;
138402
138172
  };
138403
138173
  Returns: string;
138404
138174
  };
@@ -142976,6 +142746,27 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
142976
142746
  referencedColumns: ["id"];
142977
142747
  }];
142978
142748
  };
142749
+ floriday_continuous_stock_cache: {
142750
+ Row: {
142751
+ connection_id: string;
142752
+ fetched_at: string;
142753
+ number_of_pieces: number;
142754
+ trade_item_id: string;
142755
+ };
142756
+ Insert: {
142757
+ connection_id: string;
142758
+ fetched_at?: string;
142759
+ number_of_pieces?: number;
142760
+ trade_item_id: string;
142761
+ };
142762
+ Update: {
142763
+ connection_id?: string;
142764
+ fetched_at?: string;
142765
+ number_of_pieces?: number;
142766
+ trade_item_id?: string;
142767
+ };
142768
+ Relationships: [];
142769
+ };
142979
142770
  floriday_continuous_stock_queue: {
142980
142771
  Row: {
142981
142772
  attempts: number;
@@ -143954,6 +143745,45 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
143954
143745
  referencedColumns: ["id"];
143955
143746
  }];
143956
143747
  };
143748
+ floriday_trade_settings_customers_cache: {
143749
+ Row: {
143750
+ connection_id: string;
143751
+ data: import("../integrations/supabase/types").Json;
143752
+ fetched_at: string;
143753
+ floriday_id: string;
143754
+ id: string;
143755
+ is_deleted: boolean;
143756
+ sequence_number: number;
143757
+ updated_at: string;
143758
+ };
143759
+ Insert: {
143760
+ connection_id: string;
143761
+ data: import("../integrations/supabase/types").Json;
143762
+ fetched_at?: string;
143763
+ floriday_id: string;
143764
+ id?: string;
143765
+ is_deleted?: boolean;
143766
+ sequence_number?: number;
143767
+ updated_at?: string;
143768
+ };
143769
+ Update: {
143770
+ connection_id?: string;
143771
+ data?: import("../integrations/supabase/types").Json;
143772
+ fetched_at?: string;
143773
+ floriday_id?: string;
143774
+ id?: string;
143775
+ is_deleted?: boolean;
143776
+ sequence_number?: number;
143777
+ updated_at?: string;
143778
+ };
143779
+ Relationships: [{
143780
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
143781
+ columns: ["connection_id"];
143782
+ isOneToOne: false;
143783
+ referencedRelation: "floriday_connections";
143784
+ referencedColumns: ["id"];
143785
+ }];
143786
+ };
143957
143787
  floriday_trips_cache: {
143958
143788
  Row: {
143959
143789
  carrier_organization_id: string | null;
@@ -144002,6 +143832,27 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
144002
143832
  referencedColumns: ["id"];
144003
143833
  }];
144004
143834
  };
143835
+ floriday_vbn_required_characteristics: {
143836
+ Row: {
143837
+ required_codes: string[];
143838
+ updated_at: string;
143839
+ updated_by: string | null;
143840
+ vbn_code: string;
143841
+ };
143842
+ Insert: {
143843
+ required_codes?: string[];
143844
+ updated_at?: string;
143845
+ updated_by?: string | null;
143846
+ vbn_code: string;
143847
+ };
143848
+ Update: {
143849
+ required_codes?: string[];
143850
+ updated_at?: string;
143851
+ updated_by?: string | null;
143852
+ vbn_code?: string;
143853
+ };
143854
+ Relationships: [];
143855
+ };
144005
143856
  floriday_warehouses_cache: {
144006
143857
  Row: {
144007
143858
  connection_id: string;
@@ -148975,9 +148826,7 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
148975
148826
  };
148976
148827
  twinfield_connections: {
148977
148828
  Row: {
148978
- access_token: string | null;
148979
- client_id: string;
148980
- client_secret: string | null;
148829
+ account_key: string | null;
148981
148830
  cluster_uri: string | null;
148982
148831
  company_code: string | null;
148983
148832
  company_name: string | null;
@@ -148988,16 +148837,12 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
148988
148837
  is_active: boolean;
148989
148838
  label: string | null;
148990
148839
  office_code: string | null;
148991
- redirect_uri: string;
148992
- refresh_token: string | null;
148993
- token_expires_at: string | null;
148840
+ redirect_uri: string | null;
148994
148841
  updated_at: string;
148995
148842
  user_id: string;
148996
148843
  };
148997
148844
  Insert: {
148998
- access_token?: string | null;
148999
- client_id: string;
149000
- client_secret?: string | null;
148845
+ account_key?: string | null;
149001
148846
  cluster_uri?: string | null;
149002
148847
  company_code?: string | null;
149003
148848
  company_name?: string | null;
@@ -149008,16 +148853,12 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
149008
148853
  is_active?: boolean;
149009
148854
  label?: string | null;
149010
148855
  office_code?: string | null;
149011
- redirect_uri: string;
149012
- refresh_token?: string | null;
149013
- token_expires_at?: string | null;
148856
+ redirect_uri?: string | null;
149014
148857
  updated_at?: string;
149015
148858
  user_id: string;
149016
148859
  };
149017
148860
  Update: {
149018
- access_token?: string | null;
149019
- client_id?: string;
149020
- client_secret?: string | null;
148861
+ account_key?: string | null;
149021
148862
  cluster_uri?: string | null;
149022
148863
  company_code?: string | null;
149023
148864
  company_name?: string | null;
@@ -149028,54 +148869,7 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
149028
148869
  is_active?: boolean;
149029
148870
  label?: string | null;
149030
148871
  office_code?: string | null;
149031
- redirect_uri?: string;
149032
- refresh_token?: string | null;
149033
- token_expires_at?: string | null;
149034
- updated_at?: string;
149035
- user_id?: string;
149036
- };
149037
- Relationships: [];
149038
- };
149039
- twinfield_credentials: {
149040
- Row: {
149041
- administration_code: string | null;
149042
- client_id: string | null;
149043
- client_secret: string | null;
149044
- cluster: string | null;
149045
- connected_at: string | null;
149046
- created_at: string;
149047
- environment: string | null;
149048
- id: string;
149049
- redirect_uri: string | null;
149050
- refresh_token: string | null;
149051
- updated_at: string;
149052
- user_id: string;
149053
- };
149054
- Insert: {
149055
- administration_code?: string | null;
149056
- client_id?: string | null;
149057
- client_secret?: string | null;
149058
- cluster?: string | null;
149059
- connected_at?: string | null;
149060
- created_at?: string;
149061
- environment?: string | null;
149062
- id?: string;
149063
148872
  redirect_uri?: string | null;
149064
- refresh_token?: string | null;
149065
- updated_at?: string;
149066
- user_id: string;
149067
- };
149068
- Update: {
149069
- administration_code?: string | null;
149070
- client_id?: string | null;
149071
- client_secret?: string | null;
149072
- cluster?: string | null;
149073
- connected_at?: string | null;
149074
- created_at?: string;
149075
- environment?: string | null;
149076
- id?: string;
149077
- redirect_uri?: string | null;
149078
- refresh_token?: string | null;
149079
148873
  updated_at?: string;
149080
148874
  user_id?: string;
149081
148875
  };
@@ -149522,12 +149316,15 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
149522
149316
  currency: string | null;
149523
149317
  customer_code: string | null;
149524
149318
  data: import("../integrations/supabase/types").Json;
149319
+ deleted_at: string | null;
149525
149320
  due_date: string | null;
149526
149321
  fetched_at: string;
149527
149322
  invoice_date: string | null;
149528
149323
  invoice_number: string;
149324
+ lines_fetched_at: string | null;
149529
149325
  modified_at: string | null;
149530
149326
  outstanding_amount: number | null;
149327
+ paid_at: string | null;
149531
149328
  status: string | null;
149532
149329
  status_label: string | null;
149533
149330
  total_excl: number | null;
@@ -149539,12 +149336,15 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
149539
149336
  currency?: string | null;
149540
149337
  customer_code?: string | null;
149541
149338
  data?: import("../integrations/supabase/types").Json;
149339
+ deleted_at?: string | null;
149542
149340
  due_date?: string | null;
149543
149341
  fetched_at?: string;
149544
149342
  invoice_date?: string | null;
149545
149343
  invoice_number: string;
149344
+ lines_fetched_at?: string | null;
149546
149345
  modified_at?: string | null;
149547
149346
  outstanding_amount?: number | null;
149347
+ paid_at?: string | null;
149548
149348
  status?: string | null;
149549
149349
  status_label?: string | null;
149550
149350
  total_excl?: number | null;
@@ -149556,12 +149356,15 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
149556
149356
  currency?: string | null;
149557
149357
  customer_code?: string | null;
149558
149358
  data?: import("../integrations/supabase/types").Json;
149359
+ deleted_at?: string | null;
149559
149360
  due_date?: string | null;
149560
149361
  fetched_at?: string;
149561
149362
  invoice_date?: string | null;
149562
149363
  invoice_number?: string;
149364
+ lines_fetched_at?: string | null;
149563
149365
  modified_at?: string | null;
149564
149366
  outstanding_amount?: number | null;
149367
+ paid_at?: string | null;
149565
149368
  status?: string | null;
149566
149369
  status_label?: string | null;
149567
149370
  total_excl?: number | null;
@@ -149576,30 +149379,6 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
149576
149379
  referencedColumns: ["id"];
149577
149380
  }];
149578
149381
  };
149579
- twinfield_oauth_state: {
149580
- Row: {
149581
- created_at: string;
149582
- environment: string;
149583
- nonce: string | null;
149584
- state: string;
149585
- user_id: string;
149586
- };
149587
- Insert: {
149588
- created_at?: string;
149589
- environment: string;
149590
- nonce?: string | null;
149591
- state: string;
149592
- user_id: string;
149593
- };
149594
- Update: {
149595
- created_at?: string;
149596
- environment?: string;
149597
- nonce?: string | null;
149598
- state?: string;
149599
- user_id?: string;
149600
- };
149601
- Relationships: [];
149602
- };
149603
149382
  twinfield_push_queue: {
149604
149383
  Row: {
149605
149384
  action: string;
@@ -149765,39 +149544,6 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
149765
149544
  referencedColumns: ["id"];
149766
149545
  }];
149767
149546
  };
149768
- twinfield_token_refresh_log: {
149769
- Row: {
149770
- attempted_at: string;
149771
- connection_id: string;
149772
- error: string | null;
149773
- expires_at: string | null;
149774
- id: string;
149775
- ok: boolean;
149776
- };
149777
- Insert: {
149778
- attempted_at?: string;
149779
- connection_id: string;
149780
- error?: string | null;
149781
- expires_at?: string | null;
149782
- id?: string;
149783
- ok: boolean;
149784
- };
149785
- Update: {
149786
- attempted_at?: string;
149787
- connection_id?: string;
149788
- error?: string | null;
149789
- expires_at?: string | null;
149790
- id?: string;
149791
- ok?: boolean;
149792
- };
149793
- Relationships: [{
149794
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
149795
- columns: ["connection_id"];
149796
- isOneToOne: false;
149797
- referencedRelation: "twinfield_connections";
149798
- referencedColumns: ["id"];
149799
- }];
149800
- };
149801
149547
  user_roles: {
149802
149548
  Row: {
149803
149549
  created_at: string;
@@ -152238,15 +151984,16 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
152238
151984
  };
152239
151985
  Returns: undefined;
152240
151986
  };
152241
- twinfield_decrypt: {
151987
+ twinfield_upsert_connection_by_account_key: {
152242
151988
  Args: {
152243
- cipher: string;
152244
- };
152245
- Returns: string;
152246
- };
152247
- twinfield_encrypt: {
152248
- Args: {
152249
- plain: string;
151989
+ p_account_key: string;
151990
+ p_cluster_uri?: string;
151991
+ p_company_code?: string;
151992
+ p_company_name?: string;
151993
+ p_environment: string;
151994
+ p_office_code?: string;
151995
+ p_status?: string;
151996
+ p_user_id: string;
152250
151997
  };
152251
151998
  Returns: string;
152252
151999
  };
@@ -156827,6 +156574,27 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
156827
156574
  referencedColumns: ["id"];
156828
156575
  }];
156829
156576
  };
156577
+ floriday_continuous_stock_cache: {
156578
+ Row: {
156579
+ connection_id: string;
156580
+ fetched_at: string;
156581
+ number_of_pieces: number;
156582
+ trade_item_id: string;
156583
+ };
156584
+ Insert: {
156585
+ connection_id: string;
156586
+ fetched_at?: string;
156587
+ number_of_pieces?: number;
156588
+ trade_item_id: string;
156589
+ };
156590
+ Update: {
156591
+ connection_id?: string;
156592
+ fetched_at?: string;
156593
+ number_of_pieces?: number;
156594
+ trade_item_id?: string;
156595
+ };
156596
+ Relationships: [];
156597
+ };
156830
156598
  floriday_continuous_stock_queue: {
156831
156599
  Row: {
156832
156600
  attempts: number;
@@ -157805,6 +157573,45 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
157805
157573
  referencedColumns: ["id"];
157806
157574
  }];
157807
157575
  };
157576
+ floriday_trade_settings_customers_cache: {
157577
+ Row: {
157578
+ connection_id: string;
157579
+ data: import("../integrations/supabase/types").Json;
157580
+ fetched_at: string;
157581
+ floriday_id: string;
157582
+ id: string;
157583
+ is_deleted: boolean;
157584
+ sequence_number: number;
157585
+ updated_at: string;
157586
+ };
157587
+ Insert: {
157588
+ connection_id: string;
157589
+ data: import("../integrations/supabase/types").Json;
157590
+ fetched_at?: string;
157591
+ floriday_id: string;
157592
+ id?: string;
157593
+ is_deleted?: boolean;
157594
+ sequence_number?: number;
157595
+ updated_at?: string;
157596
+ };
157597
+ Update: {
157598
+ connection_id?: string;
157599
+ data?: import("../integrations/supabase/types").Json;
157600
+ fetched_at?: string;
157601
+ floriday_id?: string;
157602
+ id?: string;
157603
+ is_deleted?: boolean;
157604
+ sequence_number?: number;
157605
+ updated_at?: string;
157606
+ };
157607
+ Relationships: [{
157608
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
157609
+ columns: ["connection_id"];
157610
+ isOneToOne: false;
157611
+ referencedRelation: "floriday_connections";
157612
+ referencedColumns: ["id"];
157613
+ }];
157614
+ };
157808
157615
  floriday_trips_cache: {
157809
157616
  Row: {
157810
157617
  carrier_organization_id: string | null;
@@ -157853,6 +157660,27 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
157853
157660
  referencedColumns: ["id"];
157854
157661
  }];
157855
157662
  };
157663
+ floriday_vbn_required_characteristics: {
157664
+ Row: {
157665
+ required_codes: string[];
157666
+ updated_at: string;
157667
+ updated_by: string | null;
157668
+ vbn_code: string;
157669
+ };
157670
+ Insert: {
157671
+ required_codes?: string[];
157672
+ updated_at?: string;
157673
+ updated_by?: string | null;
157674
+ vbn_code: string;
157675
+ };
157676
+ Update: {
157677
+ required_codes?: string[];
157678
+ updated_at?: string;
157679
+ updated_by?: string | null;
157680
+ vbn_code?: string;
157681
+ };
157682
+ Relationships: [];
157683
+ };
157856
157684
  floriday_warehouses_cache: {
157857
157685
  Row: {
157858
157686
  connection_id: string;
@@ -162826,9 +162654,7 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
162826
162654
  };
162827
162655
  twinfield_connections: {
162828
162656
  Row: {
162829
- access_token: string | null;
162830
- client_id: string;
162831
- client_secret: string | null;
162657
+ account_key: string | null;
162832
162658
  cluster_uri: string | null;
162833
162659
  company_code: string | null;
162834
162660
  company_name: string | null;
@@ -162839,16 +162665,12 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
162839
162665
  is_active: boolean;
162840
162666
  label: string | null;
162841
162667
  office_code: string | null;
162842
- redirect_uri: string;
162843
- refresh_token: string | null;
162844
- token_expires_at: string | null;
162668
+ redirect_uri: string | null;
162845
162669
  updated_at: string;
162846
162670
  user_id: string;
162847
162671
  };
162848
162672
  Insert: {
162849
- access_token?: string | null;
162850
- client_id: string;
162851
- client_secret?: string | null;
162673
+ account_key?: string | null;
162852
162674
  cluster_uri?: string | null;
162853
162675
  company_code?: string | null;
162854
162676
  company_name?: string | null;
@@ -162859,16 +162681,12 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
162859
162681
  is_active?: boolean;
162860
162682
  label?: string | null;
162861
162683
  office_code?: string | null;
162862
- redirect_uri: string;
162863
- refresh_token?: string | null;
162864
- token_expires_at?: string | null;
162684
+ redirect_uri?: string | null;
162865
162685
  updated_at?: string;
162866
162686
  user_id: string;
162867
162687
  };
162868
162688
  Update: {
162869
- access_token?: string | null;
162870
- client_id?: string;
162871
- client_secret?: string | null;
162689
+ account_key?: string | null;
162872
162690
  cluster_uri?: string | null;
162873
162691
  company_code?: string | null;
162874
162692
  company_name?: string | null;
@@ -162879,54 +162697,7 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
162879
162697
  is_active?: boolean;
162880
162698
  label?: string | null;
162881
162699
  office_code?: string | null;
162882
- redirect_uri?: string;
162883
- refresh_token?: string | null;
162884
- token_expires_at?: string | null;
162885
- updated_at?: string;
162886
- user_id?: string;
162887
- };
162888
- Relationships: [];
162889
- };
162890
- twinfield_credentials: {
162891
- Row: {
162892
- administration_code: string | null;
162893
- client_id: string | null;
162894
- client_secret: string | null;
162895
- cluster: string | null;
162896
- connected_at: string | null;
162897
- created_at: string;
162898
- environment: string | null;
162899
- id: string;
162900
- redirect_uri: string | null;
162901
- refresh_token: string | null;
162902
- updated_at: string;
162903
- user_id: string;
162904
- };
162905
- Insert: {
162906
- administration_code?: string | null;
162907
- client_id?: string | null;
162908
- client_secret?: string | null;
162909
- cluster?: string | null;
162910
- connected_at?: string | null;
162911
- created_at?: string;
162912
- environment?: string | null;
162913
- id?: string;
162914
- redirect_uri?: string | null;
162915
- refresh_token?: string | null;
162916
- updated_at?: string;
162917
- user_id: string;
162918
- };
162919
- Update: {
162920
- administration_code?: string | null;
162921
- client_id?: string | null;
162922
- client_secret?: string | null;
162923
- cluster?: string | null;
162924
- connected_at?: string | null;
162925
- created_at?: string;
162926
- environment?: string | null;
162927
- id?: string;
162928
162700
  redirect_uri?: string | null;
162929
- refresh_token?: string | null;
162930
162701
  updated_at?: string;
162931
162702
  user_id?: string;
162932
162703
  };
@@ -163373,12 +163144,15 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
163373
163144
  currency: string | null;
163374
163145
  customer_code: string | null;
163375
163146
  data: import("../integrations/supabase/types").Json;
163147
+ deleted_at: string | null;
163376
163148
  due_date: string | null;
163377
163149
  fetched_at: string;
163378
163150
  invoice_date: string | null;
163379
163151
  invoice_number: string;
163152
+ lines_fetched_at: string | null;
163380
163153
  modified_at: string | null;
163381
163154
  outstanding_amount: number | null;
163155
+ paid_at: string | null;
163382
163156
  status: string | null;
163383
163157
  status_label: string | null;
163384
163158
  total_excl: number | null;
@@ -163390,12 +163164,15 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
163390
163164
  currency?: string | null;
163391
163165
  customer_code?: string | null;
163392
163166
  data?: import("../integrations/supabase/types").Json;
163167
+ deleted_at?: string | null;
163393
163168
  due_date?: string | null;
163394
163169
  fetched_at?: string;
163395
163170
  invoice_date?: string | null;
163396
163171
  invoice_number: string;
163172
+ lines_fetched_at?: string | null;
163397
163173
  modified_at?: string | null;
163398
163174
  outstanding_amount?: number | null;
163175
+ paid_at?: string | null;
163399
163176
  status?: string | null;
163400
163177
  status_label?: string | null;
163401
163178
  total_excl?: number | null;
@@ -163407,12 +163184,15 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
163407
163184
  currency?: string | null;
163408
163185
  customer_code?: string | null;
163409
163186
  data?: import("../integrations/supabase/types").Json;
163187
+ deleted_at?: string | null;
163410
163188
  due_date?: string | null;
163411
163189
  fetched_at?: string;
163412
163190
  invoice_date?: string | null;
163413
163191
  invoice_number?: string;
163192
+ lines_fetched_at?: string | null;
163414
163193
  modified_at?: string | null;
163415
163194
  outstanding_amount?: number | null;
163195
+ paid_at?: string | null;
163416
163196
  status?: string | null;
163417
163197
  status_label?: string | null;
163418
163198
  total_excl?: number | null;
@@ -163427,30 +163207,6 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
163427
163207
  referencedColumns: ["id"];
163428
163208
  }];
163429
163209
  };
163430
- twinfield_oauth_state: {
163431
- Row: {
163432
- created_at: string;
163433
- environment: string;
163434
- nonce: string | null;
163435
- state: string;
163436
- user_id: string;
163437
- };
163438
- Insert: {
163439
- created_at?: string;
163440
- environment: string;
163441
- nonce?: string | null;
163442
- state: string;
163443
- user_id: string;
163444
- };
163445
- Update: {
163446
- created_at?: string;
163447
- environment?: string;
163448
- nonce?: string | null;
163449
- state?: string;
163450
- user_id?: string;
163451
- };
163452
- Relationships: [];
163453
- };
163454
163210
  twinfield_push_queue: {
163455
163211
  Row: {
163456
163212
  action: string;
@@ -163616,39 +163372,6 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
163616
163372
  referencedColumns: ["id"];
163617
163373
  }];
163618
163374
  };
163619
- twinfield_token_refresh_log: {
163620
- Row: {
163621
- attempted_at: string;
163622
- connection_id: string;
163623
- error: string | null;
163624
- expires_at: string | null;
163625
- id: string;
163626
- ok: boolean;
163627
- };
163628
- Insert: {
163629
- attempted_at?: string;
163630
- connection_id: string;
163631
- error?: string | null;
163632
- expires_at?: string | null;
163633
- id?: string;
163634
- ok: boolean;
163635
- };
163636
- Update: {
163637
- attempted_at?: string;
163638
- connection_id?: string;
163639
- error?: string | null;
163640
- expires_at?: string | null;
163641
- id?: string;
163642
- ok?: boolean;
163643
- };
163644
- Relationships: [{
163645
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
163646
- columns: ["connection_id"];
163647
- isOneToOne: false;
163648
- referencedRelation: "twinfield_connections";
163649
- referencedColumns: ["id"];
163650
- }];
163651
- };
163652
163375
  user_roles: {
163653
163376
  Row: {
163654
163377
  created_at: string;
@@ -166089,15 +165812,16 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
166089
165812
  };
166090
165813
  Returns: undefined;
166091
165814
  };
166092
- twinfield_decrypt: {
165815
+ twinfield_upsert_connection_by_account_key: {
166093
165816
  Args: {
166094
- cipher: string;
166095
- };
166096
- Returns: string;
166097
- };
166098
- twinfield_encrypt: {
166099
- Args: {
166100
- plain: string;
165817
+ p_account_key: string;
165818
+ p_cluster_uri?: string;
165819
+ p_company_code?: string;
165820
+ p_company_name?: string;
165821
+ p_environment: string;
165822
+ p_office_code?: string;
165823
+ p_status?: string;
165824
+ p_user_id: string;
166101
165825
  };
166102
165826
  Returns: string;
166103
165827
  };