@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 getFlorydayCachedList: import("@tanstack/start-client-core"
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 getFlorydayCachedList: import("@tanstack/start-client-core"
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 getFlorydayCachedList: import("@tanstack/start-client-core"
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 getFlorydayCachedList: import("@tanstack/start-client-core"
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 getFlorydayCachedList: import("@tanstack/start-client-core"
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 getFlorydayCachedList: import("@tanstack/start-client-core"
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 getFlorydayCachedList: import("@tanstack/start-client-core"
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 getFlorydayCachedList: import("@tanstack/start-client-core"
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 getFlorydayCachedList: import("@tanstack/start-client-core"
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 getFlorydayCachedList: import("@tanstack/start-client-core"
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 getFlorydayCachedList: import("@tanstack/start-client-core"
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 getFlorydayCachedList: import("@tanstack/start-client-core"
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 getFlorydayCachedList: import("@tanstack/start-client-core"
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
  };
@@ -18370,6 +18347,27 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
18370
18347
  referencedColumns: ["id"];
18371
18348
  }];
18372
18349
  };
18350
+ floriday_continuous_stock_cache: {
18351
+ Row: {
18352
+ connection_id: string;
18353
+ fetched_at: string;
18354
+ number_of_pieces: number;
18355
+ trade_item_id: string;
18356
+ };
18357
+ Insert: {
18358
+ connection_id: string;
18359
+ fetched_at?: string;
18360
+ number_of_pieces?: number;
18361
+ trade_item_id: string;
18362
+ };
18363
+ Update: {
18364
+ connection_id?: string;
18365
+ fetched_at?: string;
18366
+ number_of_pieces?: number;
18367
+ trade_item_id?: string;
18368
+ };
18369
+ Relationships: [];
18370
+ };
18373
18371
  floriday_continuous_stock_queue: {
18374
18372
  Row: {
18375
18373
  attempts: number;
@@ -19348,6 +19346,45 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19348
19346
  referencedColumns: ["id"];
19349
19347
  }];
19350
19348
  };
19349
+ floriday_trade_settings_customers_cache: {
19350
+ Row: {
19351
+ connection_id: string;
19352
+ data: import("../integrations/supabase/types").Json;
19353
+ fetched_at: string;
19354
+ floriday_id: string;
19355
+ id: string;
19356
+ is_deleted: boolean;
19357
+ sequence_number: number;
19358
+ updated_at: string;
19359
+ };
19360
+ Insert: {
19361
+ connection_id: string;
19362
+ data: import("../integrations/supabase/types").Json;
19363
+ fetched_at?: string;
19364
+ floriday_id: string;
19365
+ id?: string;
19366
+ is_deleted?: boolean;
19367
+ sequence_number?: number;
19368
+ updated_at?: string;
19369
+ };
19370
+ Update: {
19371
+ connection_id?: string;
19372
+ data?: import("../integrations/supabase/types").Json;
19373
+ fetched_at?: string;
19374
+ floriday_id?: string;
19375
+ id?: string;
19376
+ is_deleted?: boolean;
19377
+ sequence_number?: number;
19378
+ updated_at?: string;
19379
+ };
19380
+ Relationships: [{
19381
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19382
+ columns: ["connection_id"];
19383
+ isOneToOne: false;
19384
+ referencedRelation: "floriday_connections";
19385
+ referencedColumns: ["id"];
19386
+ }];
19387
+ };
19351
19388
  floriday_trips_cache: {
19352
19389
  Row: {
19353
19390
  carrier_organization_id: string | null;
@@ -19396,6 +19433,27 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
19396
19433
  referencedColumns: ["id"];
19397
19434
  }];
19398
19435
  };
19436
+ floriday_vbn_required_characteristics: {
19437
+ Row: {
19438
+ required_codes: string[];
19439
+ updated_at: string;
19440
+ updated_by: string | null;
19441
+ vbn_code: string;
19442
+ };
19443
+ Insert: {
19444
+ required_codes?: string[];
19445
+ updated_at?: string;
19446
+ updated_by?: string | null;
19447
+ vbn_code: string;
19448
+ };
19449
+ Update: {
19450
+ required_codes?: string[];
19451
+ updated_at?: string;
19452
+ updated_by?: string | null;
19453
+ vbn_code?: string;
19454
+ };
19455
+ Relationships: [];
19456
+ };
19399
19457
  floriday_warehouses_cache: {
19400
19458
  Row: {
19401
19459
  connection_id: string;
@@ -24369,9 +24427,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
24369
24427
  };
24370
24428
  twinfield_connections: {
24371
24429
  Row: {
24372
- access_token: string | null;
24373
- client_id: string;
24374
- client_secret: string | null;
24430
+ account_key: string | null;
24375
24431
  cluster_uri: string | null;
24376
24432
  company_code: string | null;
24377
24433
  company_name: string | null;
@@ -24382,16 +24438,12 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
24382
24438
  is_active: boolean;
24383
24439
  label: string | null;
24384
24440
  office_code: string | null;
24385
- redirect_uri: string;
24386
- refresh_token: string | null;
24387
- token_expires_at: string | null;
24441
+ redirect_uri: string | null;
24388
24442
  updated_at: string;
24389
24443
  user_id: string;
24390
24444
  };
24391
24445
  Insert: {
24392
- access_token?: string | null;
24393
- client_id: string;
24394
- client_secret?: string | null;
24446
+ account_key?: string | null;
24395
24447
  cluster_uri?: string | null;
24396
24448
  company_code?: string | null;
24397
24449
  company_name?: string | null;
@@ -24402,16 +24454,12 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
24402
24454
  is_active?: boolean;
24403
24455
  label?: string | null;
24404
24456
  office_code?: string | null;
24405
- redirect_uri: string;
24406
- refresh_token?: string | null;
24407
- token_expires_at?: string | null;
24457
+ redirect_uri?: string | null;
24408
24458
  updated_at?: string;
24409
24459
  user_id: string;
24410
24460
  };
24411
24461
  Update: {
24412
- access_token?: string | null;
24413
- client_id?: string;
24414
- client_secret?: string | null;
24462
+ account_key?: string | null;
24415
24463
  cluster_uri?: string | null;
24416
24464
  company_code?: string | null;
24417
24465
  company_name?: string | null;
@@ -24422,54 +24470,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
24422
24470
  is_active?: boolean;
24423
24471
  label?: string | null;
24424
24472
  office_code?: string | null;
24425
- redirect_uri?: string;
24426
- refresh_token?: string | null;
24427
- token_expires_at?: string | null;
24428
- updated_at?: string;
24429
- user_id?: string;
24430
- };
24431
- Relationships: [];
24432
- };
24433
- twinfield_credentials: {
24434
- Row: {
24435
- administration_code: string | null;
24436
- client_id: string | null;
24437
- client_secret: string | null;
24438
- cluster: string | null;
24439
- connected_at: string | null;
24440
- created_at: string;
24441
- environment: string | null;
24442
- id: string;
24443
- redirect_uri: string | null;
24444
- refresh_token: string | null;
24445
- updated_at: string;
24446
- user_id: string;
24447
- };
24448
- Insert: {
24449
- administration_code?: string | null;
24450
- client_id?: string | null;
24451
- client_secret?: string | null;
24452
- cluster?: string | null;
24453
- connected_at?: string | null;
24454
- created_at?: string;
24455
- environment?: string | null;
24456
- id?: string;
24457
- redirect_uri?: string | null;
24458
- refresh_token?: string | null;
24459
- updated_at?: string;
24460
- user_id: string;
24461
- };
24462
- Update: {
24463
- administration_code?: string | null;
24464
- client_id?: string | null;
24465
- client_secret?: string | null;
24466
- cluster?: string | null;
24467
- connected_at?: string | null;
24468
- created_at?: string;
24469
- environment?: string | null;
24470
- id?: string;
24471
24473
  redirect_uri?: string | null;
24472
- refresh_token?: string | null;
24473
24474
  updated_at?: string;
24474
24475
  user_id?: string;
24475
24476
  };
@@ -24916,12 +24917,15 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
24916
24917
  currency: string | null;
24917
24918
  customer_code: string | null;
24918
24919
  data: import("../integrations/supabase/types").Json;
24920
+ deleted_at: string | null;
24919
24921
  due_date: string | null;
24920
24922
  fetched_at: string;
24921
24923
  invoice_date: string | null;
24922
24924
  invoice_number: string;
24925
+ lines_fetched_at: string | null;
24923
24926
  modified_at: string | null;
24924
24927
  outstanding_amount: number | null;
24928
+ paid_at: string | null;
24925
24929
  status: string | null;
24926
24930
  status_label: string | null;
24927
24931
  total_excl: number | null;
@@ -24933,12 +24937,15 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
24933
24937
  currency?: string | null;
24934
24938
  customer_code?: string | null;
24935
24939
  data?: import("../integrations/supabase/types").Json;
24940
+ deleted_at?: string | null;
24936
24941
  due_date?: string | null;
24937
24942
  fetched_at?: string;
24938
24943
  invoice_date?: string | null;
24939
24944
  invoice_number: string;
24945
+ lines_fetched_at?: string | null;
24940
24946
  modified_at?: string | null;
24941
24947
  outstanding_amount?: number | null;
24948
+ paid_at?: string | null;
24942
24949
  status?: string | null;
24943
24950
  status_label?: string | null;
24944
24951
  total_excl?: number | null;
@@ -24950,12 +24957,15 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
24950
24957
  currency?: string | null;
24951
24958
  customer_code?: string | null;
24952
24959
  data?: import("../integrations/supabase/types").Json;
24960
+ deleted_at?: string | null;
24953
24961
  due_date?: string | null;
24954
24962
  fetched_at?: string;
24955
24963
  invoice_date?: string | null;
24956
24964
  invoice_number?: string;
24965
+ lines_fetched_at?: string | null;
24957
24966
  modified_at?: string | null;
24958
24967
  outstanding_amount?: number | null;
24968
+ paid_at?: string | null;
24959
24969
  status?: string | null;
24960
24970
  status_label?: string | null;
24961
24971
  total_excl?: number | null;
@@ -24970,30 +24980,6 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
24970
24980
  referencedColumns: ["id"];
24971
24981
  }];
24972
24982
  };
24973
- twinfield_oauth_state: {
24974
- Row: {
24975
- created_at: string;
24976
- environment: string;
24977
- nonce: string | null;
24978
- state: string;
24979
- user_id: string;
24980
- };
24981
- Insert: {
24982
- created_at?: string;
24983
- environment: string;
24984
- nonce?: string | null;
24985
- state: string;
24986
- user_id: string;
24987
- };
24988
- Update: {
24989
- created_at?: string;
24990
- environment?: string;
24991
- nonce?: string | null;
24992
- state?: string;
24993
- user_id?: string;
24994
- };
24995
- Relationships: [];
24996
- };
24997
24983
  twinfield_push_queue: {
24998
24984
  Row: {
24999
24985
  action: string;
@@ -25159,39 +25145,6 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
25159
25145
  referencedColumns: ["id"];
25160
25146
  }];
25161
25147
  };
25162
- twinfield_token_refresh_log: {
25163
- Row: {
25164
- attempted_at: string;
25165
- connection_id: string;
25166
- error: string | null;
25167
- expires_at: string | null;
25168
- id: string;
25169
- ok: boolean;
25170
- };
25171
- Insert: {
25172
- attempted_at?: string;
25173
- connection_id: string;
25174
- error?: string | null;
25175
- expires_at?: string | null;
25176
- id?: string;
25177
- ok: boolean;
25178
- };
25179
- Update: {
25180
- attempted_at?: string;
25181
- connection_id?: string;
25182
- error?: string | null;
25183
- expires_at?: string | null;
25184
- id?: string;
25185
- ok?: boolean;
25186
- };
25187
- Relationships: [{
25188
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25189
- columns: ["connection_id"];
25190
- isOneToOne: false;
25191
- referencedRelation: "twinfield_connections";
25192
- referencedColumns: ["id"];
25193
- }];
25194
- };
25195
25148
  user_roles: {
25196
25149
  Row: {
25197
25150
  created_at: string;
@@ -27632,15 +27585,16 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
27632
27585
  };
27633
27586
  Returns: undefined;
27634
27587
  };
27635
- twinfield_decrypt: {
27636
- Args: {
27637
- cipher: string;
27638
- };
27639
- Returns: string;
27640
- };
27641
- twinfield_encrypt: {
27588
+ twinfield_upsert_connection_by_account_key: {
27642
27589
  Args: {
27643
- plain: string;
27590
+ p_account_key: string;
27591
+ p_cluster_uri?: string;
27592
+ p_company_code?: string;
27593
+ p_company_name?: string;
27594
+ p_environment: string;
27595
+ p_office_code?: string;
27596
+ p_status?: string;
27597
+ p_user_id: string;
27644
27598
  };
27645
27599
  Returns: string;
27646
27600
  };
@@ -32208,6 +32162,27 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
32208
32162
  referencedColumns: ["id"];
32209
32163
  }];
32210
32164
  };
32165
+ floriday_continuous_stock_cache: {
32166
+ Row: {
32167
+ connection_id: string;
32168
+ fetched_at: string;
32169
+ number_of_pieces: number;
32170
+ trade_item_id: string;
32171
+ };
32172
+ Insert: {
32173
+ connection_id: string;
32174
+ fetched_at?: string;
32175
+ number_of_pieces?: number;
32176
+ trade_item_id: string;
32177
+ };
32178
+ Update: {
32179
+ connection_id?: string;
32180
+ fetched_at?: string;
32181
+ number_of_pieces?: number;
32182
+ trade_item_id?: string;
32183
+ };
32184
+ Relationships: [];
32185
+ };
32211
32186
  floriday_continuous_stock_queue: {
32212
32187
  Row: {
32213
32188
  attempts: number;
@@ -33186,6 +33161,45 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
33186
33161
  referencedColumns: ["id"];
33187
33162
  }];
33188
33163
  };
33164
+ floriday_trade_settings_customers_cache: {
33165
+ Row: {
33166
+ connection_id: string;
33167
+ data: import("../integrations/supabase/types").Json;
33168
+ fetched_at: string;
33169
+ floriday_id: string;
33170
+ id: string;
33171
+ is_deleted: boolean;
33172
+ sequence_number: number;
33173
+ updated_at: string;
33174
+ };
33175
+ Insert: {
33176
+ connection_id: string;
33177
+ data: import("../integrations/supabase/types").Json;
33178
+ fetched_at?: string;
33179
+ floriday_id: string;
33180
+ id?: string;
33181
+ is_deleted?: boolean;
33182
+ sequence_number?: number;
33183
+ updated_at?: string;
33184
+ };
33185
+ Update: {
33186
+ connection_id?: string;
33187
+ data?: import("../integrations/supabase/types").Json;
33188
+ fetched_at?: string;
33189
+ floriday_id?: string;
33190
+ id?: string;
33191
+ is_deleted?: boolean;
33192
+ sequence_number?: number;
33193
+ updated_at?: string;
33194
+ };
33195
+ Relationships: [{
33196
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33197
+ columns: ["connection_id"];
33198
+ isOneToOne: false;
33199
+ referencedRelation: "floriday_connections";
33200
+ referencedColumns: ["id"];
33201
+ }];
33202
+ };
33189
33203
  floriday_trips_cache: {
33190
33204
  Row: {
33191
33205
  carrier_organization_id: string | null;
@@ -33234,6 +33248,27 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
33234
33248
  referencedColumns: ["id"];
33235
33249
  }];
33236
33250
  };
33251
+ floriday_vbn_required_characteristics: {
33252
+ Row: {
33253
+ required_codes: string[];
33254
+ updated_at: string;
33255
+ updated_by: string | null;
33256
+ vbn_code: string;
33257
+ };
33258
+ Insert: {
33259
+ required_codes?: string[];
33260
+ updated_at?: string;
33261
+ updated_by?: string | null;
33262
+ vbn_code: string;
33263
+ };
33264
+ Update: {
33265
+ required_codes?: string[];
33266
+ updated_at?: string;
33267
+ updated_by?: string | null;
33268
+ vbn_code?: string;
33269
+ };
33270
+ Relationships: [];
33271
+ };
33237
33272
  floriday_warehouses_cache: {
33238
33273
  Row: {
33239
33274
  connection_id: string;
@@ -38207,9 +38242,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
38207
38242
  };
38208
38243
  twinfield_connections: {
38209
38244
  Row: {
38210
- access_token: string | null;
38211
- client_id: string;
38212
- client_secret: string | null;
38245
+ account_key: string | null;
38213
38246
  cluster_uri: string | null;
38214
38247
  company_code: string | null;
38215
38248
  company_name: string | null;
@@ -38220,16 +38253,12 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
38220
38253
  is_active: boolean;
38221
38254
  label: string | null;
38222
38255
  office_code: string | null;
38223
- redirect_uri: string;
38224
- refresh_token: string | null;
38225
- token_expires_at: string | null;
38256
+ redirect_uri: string | null;
38226
38257
  updated_at: string;
38227
38258
  user_id: string;
38228
38259
  };
38229
38260
  Insert: {
38230
- access_token?: string | null;
38231
- client_id: string;
38232
- client_secret?: string | null;
38261
+ account_key?: string | null;
38233
38262
  cluster_uri?: string | null;
38234
38263
  company_code?: string | null;
38235
38264
  company_name?: string | null;
@@ -38240,16 +38269,12 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
38240
38269
  is_active?: boolean;
38241
38270
  label?: string | null;
38242
38271
  office_code?: string | null;
38243
- redirect_uri: string;
38244
- refresh_token?: string | null;
38245
- token_expires_at?: string | null;
38272
+ redirect_uri?: string | null;
38246
38273
  updated_at?: string;
38247
38274
  user_id: string;
38248
38275
  };
38249
38276
  Update: {
38250
- access_token?: string | null;
38251
- client_id?: string;
38252
- client_secret?: string | null;
38277
+ account_key?: string | null;
38253
38278
  cluster_uri?: string | null;
38254
38279
  company_code?: string | null;
38255
38280
  company_name?: string | null;
@@ -38260,54 +38285,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
38260
38285
  is_active?: boolean;
38261
38286
  label?: string | null;
38262
38287
  office_code?: string | null;
38263
- redirect_uri?: string;
38264
- refresh_token?: string | null;
38265
- token_expires_at?: string | null;
38266
- updated_at?: string;
38267
- user_id?: string;
38268
- };
38269
- Relationships: [];
38270
- };
38271
- twinfield_credentials: {
38272
- Row: {
38273
- administration_code: string | null;
38274
- client_id: string | null;
38275
- client_secret: string | null;
38276
- cluster: string | null;
38277
- connected_at: string | null;
38278
- created_at: string;
38279
- environment: string | null;
38280
- id: string;
38281
- redirect_uri: string | null;
38282
- refresh_token: string | null;
38283
- updated_at: string;
38284
- user_id: string;
38285
- };
38286
- Insert: {
38287
- administration_code?: string | null;
38288
- client_id?: string | null;
38289
- client_secret?: string | null;
38290
- cluster?: string | null;
38291
- connected_at?: string | null;
38292
- created_at?: string;
38293
- environment?: string | null;
38294
- id?: string;
38295
- redirect_uri?: string | null;
38296
- refresh_token?: string | null;
38297
- updated_at?: string;
38298
- user_id: string;
38299
- };
38300
- Update: {
38301
- administration_code?: string | null;
38302
- client_id?: string | null;
38303
- client_secret?: string | null;
38304
- cluster?: string | null;
38305
- connected_at?: string | null;
38306
- created_at?: string;
38307
- environment?: string | null;
38308
- id?: string;
38309
38288
  redirect_uri?: string | null;
38310
- refresh_token?: string | null;
38311
38289
  updated_at?: string;
38312
38290
  user_id?: string;
38313
38291
  };
@@ -38754,12 +38732,15 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
38754
38732
  currency: string | null;
38755
38733
  customer_code: string | null;
38756
38734
  data: import("../integrations/supabase/types").Json;
38735
+ deleted_at: string | null;
38757
38736
  due_date: string | null;
38758
38737
  fetched_at: string;
38759
38738
  invoice_date: string | null;
38760
38739
  invoice_number: string;
38740
+ lines_fetched_at: string | null;
38761
38741
  modified_at: string | null;
38762
38742
  outstanding_amount: number | null;
38743
+ paid_at: string | null;
38763
38744
  status: string | null;
38764
38745
  status_label: string | null;
38765
38746
  total_excl: number | null;
@@ -38771,12 +38752,15 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
38771
38752
  currency?: string | null;
38772
38753
  customer_code?: string | null;
38773
38754
  data?: import("../integrations/supabase/types").Json;
38755
+ deleted_at?: string | null;
38774
38756
  due_date?: string | null;
38775
38757
  fetched_at?: string;
38776
38758
  invoice_date?: string | null;
38777
38759
  invoice_number: string;
38760
+ lines_fetched_at?: string | null;
38778
38761
  modified_at?: string | null;
38779
38762
  outstanding_amount?: number | null;
38763
+ paid_at?: string | null;
38780
38764
  status?: string | null;
38781
38765
  status_label?: string | null;
38782
38766
  total_excl?: number | null;
@@ -38788,12 +38772,15 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
38788
38772
  currency?: string | null;
38789
38773
  customer_code?: string | null;
38790
38774
  data?: import("../integrations/supabase/types").Json;
38775
+ deleted_at?: string | null;
38791
38776
  due_date?: string | null;
38792
38777
  fetched_at?: string;
38793
38778
  invoice_date?: string | null;
38794
38779
  invoice_number?: string;
38780
+ lines_fetched_at?: string | null;
38795
38781
  modified_at?: string | null;
38796
38782
  outstanding_amount?: number | null;
38783
+ paid_at?: string | null;
38797
38784
  status?: string | null;
38798
38785
  status_label?: string | null;
38799
38786
  total_excl?: number | null;
@@ -38808,30 +38795,6 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
38808
38795
  referencedColumns: ["id"];
38809
38796
  }];
38810
38797
  };
38811
- twinfield_oauth_state: {
38812
- Row: {
38813
- created_at: string;
38814
- environment: string;
38815
- nonce: string | null;
38816
- state: string;
38817
- user_id: string;
38818
- };
38819
- Insert: {
38820
- created_at?: string;
38821
- environment: string;
38822
- nonce?: string | null;
38823
- state: string;
38824
- user_id: string;
38825
- };
38826
- Update: {
38827
- created_at?: string;
38828
- environment?: string;
38829
- nonce?: string | null;
38830
- state?: string;
38831
- user_id?: string;
38832
- };
38833
- Relationships: [];
38834
- };
38835
38798
  twinfield_push_queue: {
38836
38799
  Row: {
38837
38800
  action: string;
@@ -38997,39 +38960,6 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
38997
38960
  referencedColumns: ["id"];
38998
38961
  }];
38999
38962
  };
39000
- twinfield_token_refresh_log: {
39001
- Row: {
39002
- attempted_at: string;
39003
- connection_id: string;
39004
- error: string | null;
39005
- expires_at: string | null;
39006
- id: string;
39007
- ok: boolean;
39008
- };
39009
- Insert: {
39010
- attempted_at?: string;
39011
- connection_id: string;
39012
- error?: string | null;
39013
- expires_at?: string | null;
39014
- id?: string;
39015
- ok: boolean;
39016
- };
39017
- Update: {
39018
- attempted_at?: string;
39019
- connection_id?: string;
39020
- error?: string | null;
39021
- expires_at?: string | null;
39022
- id?: string;
39023
- ok?: boolean;
39024
- };
39025
- Relationships: [{
39026
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39027
- columns: ["connection_id"];
39028
- isOneToOne: false;
39029
- referencedRelation: "twinfield_connections";
39030
- referencedColumns: ["id"];
39031
- }];
39032
- };
39033
38963
  user_roles: {
39034
38964
  Row: {
39035
38965
  created_at: string;
@@ -41470,15 +41400,16 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
41470
41400
  };
41471
41401
  Returns: undefined;
41472
41402
  };
41473
- twinfield_decrypt: {
41474
- Args: {
41475
- cipher: string;
41476
- };
41477
- Returns: string;
41478
- };
41479
- twinfield_encrypt: {
41403
+ twinfield_upsert_connection_by_account_key: {
41480
41404
  Args: {
41481
- plain: string;
41405
+ p_account_key: string;
41406
+ p_cluster_uri?: string;
41407
+ p_company_code?: string;
41408
+ p_company_name?: string;
41409
+ p_environment: string;
41410
+ p_office_code?: string;
41411
+ p_status?: string;
41412
+ p_user_id: string;
41482
41413
  };
41483
41414
  Returns: string;
41484
41415
  };
@@ -46046,6 +45977,27 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
46046
45977
  referencedColumns: ["id"];
46047
45978
  }];
46048
45979
  };
45980
+ floriday_continuous_stock_cache: {
45981
+ Row: {
45982
+ connection_id: string;
45983
+ fetched_at: string;
45984
+ number_of_pieces: number;
45985
+ trade_item_id: string;
45986
+ };
45987
+ Insert: {
45988
+ connection_id: string;
45989
+ fetched_at?: string;
45990
+ number_of_pieces?: number;
45991
+ trade_item_id: string;
45992
+ };
45993
+ Update: {
45994
+ connection_id?: string;
45995
+ fetched_at?: string;
45996
+ number_of_pieces?: number;
45997
+ trade_item_id?: string;
45998
+ };
45999
+ Relationships: [];
46000
+ };
46049
46001
  floriday_continuous_stock_queue: {
46050
46002
  Row: {
46051
46003
  attempts: number;
@@ -47024,6 +46976,45 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
47024
46976
  referencedColumns: ["id"];
47025
46977
  }];
47026
46978
  };
46979
+ floriday_trade_settings_customers_cache: {
46980
+ Row: {
46981
+ connection_id: string;
46982
+ data: import("../integrations/supabase/types").Json;
46983
+ fetched_at: string;
46984
+ floriday_id: string;
46985
+ id: string;
46986
+ is_deleted: boolean;
46987
+ sequence_number: number;
46988
+ updated_at: string;
46989
+ };
46990
+ Insert: {
46991
+ connection_id: string;
46992
+ data: import("../integrations/supabase/types").Json;
46993
+ fetched_at?: string;
46994
+ floriday_id: string;
46995
+ id?: string;
46996
+ is_deleted?: boolean;
46997
+ sequence_number?: number;
46998
+ updated_at?: string;
46999
+ };
47000
+ Update: {
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
+ Relationships: [{
47011
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
47012
+ columns: ["connection_id"];
47013
+ isOneToOne: false;
47014
+ referencedRelation: "floriday_connections";
47015
+ referencedColumns: ["id"];
47016
+ }];
47017
+ };
47027
47018
  floriday_trips_cache: {
47028
47019
  Row: {
47029
47020
  carrier_organization_id: string | null;
@@ -47072,6 +47063,27 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
47072
47063
  referencedColumns: ["id"];
47073
47064
  }];
47074
47065
  };
47066
+ floriday_vbn_required_characteristics: {
47067
+ Row: {
47068
+ required_codes: string[];
47069
+ updated_at: string;
47070
+ updated_by: string | null;
47071
+ vbn_code: string;
47072
+ };
47073
+ Insert: {
47074
+ required_codes?: string[];
47075
+ updated_at?: string;
47076
+ updated_by?: string | null;
47077
+ vbn_code: string;
47078
+ };
47079
+ Update: {
47080
+ required_codes?: string[];
47081
+ updated_at?: string;
47082
+ updated_by?: string | null;
47083
+ vbn_code?: string;
47084
+ };
47085
+ Relationships: [];
47086
+ };
47075
47087
  floriday_warehouses_cache: {
47076
47088
  Row: {
47077
47089
  connection_id: string;
@@ -52045,9 +52057,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
52045
52057
  };
52046
52058
  twinfield_connections: {
52047
52059
  Row: {
52048
- access_token: string | null;
52049
- client_id: string;
52050
- client_secret: string | null;
52060
+ account_key: string | null;
52051
52061
  cluster_uri: string | null;
52052
52062
  company_code: string | null;
52053
52063
  company_name: string | null;
@@ -52058,16 +52068,12 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
52058
52068
  is_active: boolean;
52059
52069
  label: string | null;
52060
52070
  office_code: string | null;
52061
- redirect_uri: string;
52062
- refresh_token: string | null;
52063
- token_expires_at: string | null;
52071
+ redirect_uri: string | null;
52064
52072
  updated_at: string;
52065
52073
  user_id: string;
52066
52074
  };
52067
52075
  Insert: {
52068
- access_token?: string | null;
52069
- client_id: string;
52070
- client_secret?: string | null;
52076
+ account_key?: string | null;
52071
52077
  cluster_uri?: string | null;
52072
52078
  company_code?: string | null;
52073
52079
  company_name?: string | null;
@@ -52078,16 +52084,12 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
52078
52084
  is_active?: boolean;
52079
52085
  label?: string | null;
52080
52086
  office_code?: string | null;
52081
- redirect_uri: string;
52082
- refresh_token?: string | null;
52083
- token_expires_at?: string | null;
52087
+ redirect_uri?: string | null;
52084
52088
  updated_at?: string;
52085
52089
  user_id: string;
52086
52090
  };
52087
52091
  Update: {
52088
- access_token?: string | null;
52089
- client_id?: string;
52090
- client_secret?: string | null;
52092
+ account_key?: string | null;
52091
52093
  cluster_uri?: string | null;
52092
52094
  company_code?: string | null;
52093
52095
  company_name?: string | null;
@@ -52098,54 +52100,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
52098
52100
  is_active?: boolean;
52099
52101
  label?: string | null;
52100
52102
  office_code?: string | null;
52101
- redirect_uri?: string;
52102
- refresh_token?: string | null;
52103
- token_expires_at?: string | null;
52104
- updated_at?: string;
52105
- user_id?: string;
52106
- };
52107
- Relationships: [];
52108
- };
52109
- twinfield_credentials: {
52110
- Row: {
52111
- administration_code: string | null;
52112
- client_id: string | null;
52113
- client_secret: string | null;
52114
- cluster: string | null;
52115
- connected_at: string | null;
52116
- created_at: string;
52117
- environment: string | null;
52118
- id: string;
52119
- redirect_uri: string | null;
52120
- refresh_token: string | null;
52121
- updated_at: string;
52122
- user_id: string;
52123
- };
52124
- Insert: {
52125
- administration_code?: string | null;
52126
- client_id?: string | null;
52127
- client_secret?: string | null;
52128
- cluster?: string | null;
52129
- connected_at?: string | null;
52130
- created_at?: string;
52131
- environment?: string | null;
52132
- id?: string;
52133
- redirect_uri?: string | null;
52134
- refresh_token?: string | null;
52135
- updated_at?: string;
52136
- user_id: string;
52137
- };
52138
- Update: {
52139
- administration_code?: string | null;
52140
- client_id?: string | null;
52141
- client_secret?: string | null;
52142
- cluster?: string | null;
52143
- connected_at?: string | null;
52144
- created_at?: string;
52145
- environment?: string | null;
52146
- id?: string;
52147
52103
  redirect_uri?: string | null;
52148
- refresh_token?: string | null;
52149
52104
  updated_at?: string;
52150
52105
  user_id?: string;
52151
52106
  };
@@ -52592,12 +52547,15 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
52592
52547
  currency: string | null;
52593
52548
  customer_code: string | null;
52594
52549
  data: import("../integrations/supabase/types").Json;
52550
+ deleted_at: string | null;
52595
52551
  due_date: string | null;
52596
52552
  fetched_at: string;
52597
52553
  invoice_date: string | null;
52598
52554
  invoice_number: string;
52555
+ lines_fetched_at: string | null;
52599
52556
  modified_at: string | null;
52600
52557
  outstanding_amount: number | null;
52558
+ paid_at: string | null;
52601
52559
  status: string | null;
52602
52560
  status_label: string | null;
52603
52561
  total_excl: number | null;
@@ -52609,12 +52567,15 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
52609
52567
  currency?: string | null;
52610
52568
  customer_code?: string | null;
52611
52569
  data?: import("../integrations/supabase/types").Json;
52570
+ deleted_at?: string | null;
52612
52571
  due_date?: string | null;
52613
52572
  fetched_at?: string;
52614
52573
  invoice_date?: string | null;
52615
52574
  invoice_number: string;
52575
+ lines_fetched_at?: string | null;
52616
52576
  modified_at?: string | null;
52617
52577
  outstanding_amount?: number | null;
52578
+ paid_at?: string | null;
52618
52579
  status?: string | null;
52619
52580
  status_label?: string | null;
52620
52581
  total_excl?: number | null;
@@ -52626,12 +52587,15 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
52626
52587
  currency?: string | null;
52627
52588
  customer_code?: string | null;
52628
52589
  data?: import("../integrations/supabase/types").Json;
52590
+ deleted_at?: string | null;
52629
52591
  due_date?: string | null;
52630
52592
  fetched_at?: string;
52631
52593
  invoice_date?: string | null;
52632
52594
  invoice_number?: string;
52595
+ lines_fetched_at?: string | null;
52633
52596
  modified_at?: string | null;
52634
52597
  outstanding_amount?: number | null;
52598
+ paid_at?: string | null;
52635
52599
  status?: string | null;
52636
52600
  status_label?: string | null;
52637
52601
  total_excl?: number | null;
@@ -52646,30 +52610,6 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
52646
52610
  referencedColumns: ["id"];
52647
52611
  }];
52648
52612
  };
52649
- twinfield_oauth_state: {
52650
- Row: {
52651
- created_at: string;
52652
- environment: string;
52653
- nonce: string | null;
52654
- state: string;
52655
- user_id: string;
52656
- };
52657
- Insert: {
52658
- created_at?: string;
52659
- environment: string;
52660
- nonce?: string | null;
52661
- state: string;
52662
- user_id: string;
52663
- };
52664
- Update: {
52665
- created_at?: string;
52666
- environment?: string;
52667
- nonce?: string | null;
52668
- state?: string;
52669
- user_id?: string;
52670
- };
52671
- Relationships: [];
52672
- };
52673
52613
  twinfield_push_queue: {
52674
52614
  Row: {
52675
52615
  action: string;
@@ -52835,39 +52775,6 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
52835
52775
  referencedColumns: ["id"];
52836
52776
  }];
52837
52777
  };
52838
- twinfield_token_refresh_log: {
52839
- Row: {
52840
- attempted_at: string;
52841
- connection_id: string;
52842
- error: string | null;
52843
- expires_at: string | null;
52844
- id: string;
52845
- ok: boolean;
52846
- };
52847
- Insert: {
52848
- attempted_at?: string;
52849
- connection_id: string;
52850
- error?: string | null;
52851
- expires_at?: string | null;
52852
- id?: string;
52853
- ok: boolean;
52854
- };
52855
- Update: {
52856
- attempted_at?: string;
52857
- connection_id?: string;
52858
- error?: string | null;
52859
- expires_at?: string | null;
52860
- id?: string;
52861
- ok?: boolean;
52862
- };
52863
- Relationships: [{
52864
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
52865
- columns: ["connection_id"];
52866
- isOneToOne: false;
52867
- referencedRelation: "twinfield_connections";
52868
- referencedColumns: ["id"];
52869
- }];
52870
- };
52871
52778
  user_roles: {
52872
52779
  Row: {
52873
52780
  created_at: string;
@@ -55308,15 +55215,16 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
55308
55215
  };
55309
55216
  Returns: undefined;
55310
55217
  };
55311
- twinfield_decrypt: {
55312
- Args: {
55313
- cipher: string;
55314
- };
55315
- Returns: string;
55316
- };
55317
- twinfield_encrypt: {
55218
+ twinfield_upsert_connection_by_account_key: {
55318
55219
  Args: {
55319
- plain: string;
55220
+ p_account_key: string;
55221
+ p_cluster_uri?: string;
55222
+ p_company_code?: string;
55223
+ p_company_name?: string;
55224
+ p_environment: string;
55225
+ p_office_code?: string;
55226
+ p_status?: string;
55227
+ p_user_id: string;
55320
55228
  };
55321
55229
  Returns: string;
55322
55230
  };
@@ -59894,6 +59802,27 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
59894
59802
  referencedColumns: ["id"];
59895
59803
  }];
59896
59804
  };
59805
+ floriday_continuous_stock_cache: {
59806
+ Row: {
59807
+ connection_id: string;
59808
+ fetched_at: string;
59809
+ number_of_pieces: number;
59810
+ trade_item_id: string;
59811
+ };
59812
+ Insert: {
59813
+ connection_id: string;
59814
+ fetched_at?: string;
59815
+ number_of_pieces?: number;
59816
+ trade_item_id: string;
59817
+ };
59818
+ Update: {
59819
+ connection_id?: string;
59820
+ fetched_at?: string;
59821
+ number_of_pieces?: number;
59822
+ trade_item_id?: string;
59823
+ };
59824
+ Relationships: [];
59825
+ };
59897
59826
  floriday_continuous_stock_queue: {
59898
59827
  Row: {
59899
59828
  attempts: number;
@@ -60872,6 +60801,45 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
60872
60801
  referencedColumns: ["id"];
60873
60802
  }];
60874
60803
  };
60804
+ floriday_trade_settings_customers_cache: {
60805
+ Row: {
60806
+ connection_id: string;
60807
+ data: import("../integrations/supabase/types").Json;
60808
+ fetched_at: string;
60809
+ floriday_id: string;
60810
+ id: string;
60811
+ is_deleted: boolean;
60812
+ sequence_number: number;
60813
+ updated_at: string;
60814
+ };
60815
+ Insert: {
60816
+ connection_id: string;
60817
+ data: import("../integrations/supabase/types").Json;
60818
+ fetched_at?: string;
60819
+ floriday_id: string;
60820
+ id?: string;
60821
+ is_deleted?: boolean;
60822
+ sequence_number?: number;
60823
+ updated_at?: string;
60824
+ };
60825
+ Update: {
60826
+ connection_id?: string;
60827
+ data?: import("../integrations/supabase/types").Json;
60828
+ fetched_at?: string;
60829
+ floriday_id?: string;
60830
+ id?: string;
60831
+ is_deleted?: boolean;
60832
+ sequence_number?: number;
60833
+ updated_at?: string;
60834
+ };
60835
+ Relationships: [{
60836
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
60837
+ columns: ["connection_id"];
60838
+ isOneToOne: false;
60839
+ referencedRelation: "floriday_connections";
60840
+ referencedColumns: ["id"];
60841
+ }];
60842
+ };
60875
60843
  floriday_trips_cache: {
60876
60844
  Row: {
60877
60845
  carrier_organization_id: string | null;
@@ -60920,6 +60888,27 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
60920
60888
  referencedColumns: ["id"];
60921
60889
  }];
60922
60890
  };
60891
+ floriday_vbn_required_characteristics: {
60892
+ Row: {
60893
+ required_codes: string[];
60894
+ updated_at: string;
60895
+ updated_by: string | null;
60896
+ vbn_code: string;
60897
+ };
60898
+ Insert: {
60899
+ required_codes?: string[];
60900
+ updated_at?: string;
60901
+ updated_by?: string | null;
60902
+ vbn_code: string;
60903
+ };
60904
+ Update: {
60905
+ required_codes?: string[];
60906
+ updated_at?: string;
60907
+ updated_by?: string | null;
60908
+ vbn_code?: string;
60909
+ };
60910
+ Relationships: [];
60911
+ };
60923
60912
  floriday_warehouses_cache: {
60924
60913
  Row: {
60925
60914
  connection_id: string;
@@ -65893,9 +65882,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
65893
65882
  };
65894
65883
  twinfield_connections: {
65895
65884
  Row: {
65896
- access_token: string | null;
65897
- client_id: string;
65898
- client_secret: string | null;
65885
+ account_key: string | null;
65899
65886
  cluster_uri: string | null;
65900
65887
  company_code: string | null;
65901
65888
  company_name: string | null;
@@ -65906,16 +65893,12 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
65906
65893
  is_active: boolean;
65907
65894
  label: string | null;
65908
65895
  office_code: string | null;
65909
- redirect_uri: string;
65910
- refresh_token: string | null;
65911
- token_expires_at: string | null;
65896
+ redirect_uri: string | null;
65912
65897
  updated_at: string;
65913
65898
  user_id: string;
65914
65899
  };
65915
65900
  Insert: {
65916
- access_token?: string | null;
65917
- client_id: string;
65918
- client_secret?: string | null;
65901
+ account_key?: string | null;
65919
65902
  cluster_uri?: string | null;
65920
65903
  company_code?: string | null;
65921
65904
  company_name?: string | null;
@@ -65926,16 +65909,12 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
65926
65909
  is_active?: boolean;
65927
65910
  label?: string | null;
65928
65911
  office_code?: string | null;
65929
- redirect_uri: string;
65930
- refresh_token?: string | null;
65931
- token_expires_at?: string | null;
65912
+ redirect_uri?: string | null;
65932
65913
  updated_at?: string;
65933
65914
  user_id: string;
65934
65915
  };
65935
65916
  Update: {
65936
- access_token?: string | null;
65937
- client_id?: string;
65938
- client_secret?: string | null;
65917
+ account_key?: string | null;
65939
65918
  cluster_uri?: string | null;
65940
65919
  company_code?: string | null;
65941
65920
  company_name?: string | null;
@@ -65946,54 +65925,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
65946
65925
  is_active?: boolean;
65947
65926
  label?: string | null;
65948
65927
  office_code?: string | null;
65949
- redirect_uri?: string;
65950
- refresh_token?: string | null;
65951
- token_expires_at?: string | null;
65952
- updated_at?: string;
65953
- user_id?: string;
65954
- };
65955
- Relationships: [];
65956
- };
65957
- twinfield_credentials: {
65958
- Row: {
65959
- administration_code: string | null;
65960
- client_id: string | null;
65961
- client_secret: string | null;
65962
- cluster: string | null;
65963
- connected_at: string | null;
65964
- created_at: string;
65965
- environment: string | null;
65966
- id: string;
65967
- redirect_uri: string | null;
65968
- refresh_token: string | null;
65969
- updated_at: string;
65970
- user_id: string;
65971
- };
65972
- Insert: {
65973
- administration_code?: string | null;
65974
- client_id?: string | null;
65975
- client_secret?: string | null;
65976
- cluster?: string | null;
65977
- connected_at?: string | null;
65978
- created_at?: string;
65979
- environment?: string | null;
65980
- id?: string;
65981
- redirect_uri?: string | null;
65982
- refresh_token?: string | null;
65983
- updated_at?: string;
65984
- user_id: string;
65985
- };
65986
- Update: {
65987
- administration_code?: string | null;
65988
- client_id?: string | null;
65989
- client_secret?: string | null;
65990
- cluster?: string | null;
65991
- connected_at?: string | null;
65992
- created_at?: string;
65993
- environment?: string | null;
65994
- id?: string;
65995
65928
  redirect_uri?: string | null;
65996
- refresh_token?: string | null;
65997
65929
  updated_at?: string;
65998
65930
  user_id?: string;
65999
65931
  };
@@ -66440,12 +66372,15 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
66440
66372
  currency: string | null;
66441
66373
  customer_code: string | null;
66442
66374
  data: import("../integrations/supabase/types").Json;
66375
+ deleted_at: string | null;
66443
66376
  due_date: string | null;
66444
66377
  fetched_at: string;
66445
66378
  invoice_date: string | null;
66446
66379
  invoice_number: string;
66380
+ lines_fetched_at: string | null;
66447
66381
  modified_at: string | null;
66448
66382
  outstanding_amount: number | null;
66383
+ paid_at: string | null;
66449
66384
  status: string | null;
66450
66385
  status_label: string | null;
66451
66386
  total_excl: number | null;
@@ -66457,12 +66392,15 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
66457
66392
  currency?: string | null;
66458
66393
  customer_code?: string | null;
66459
66394
  data?: import("../integrations/supabase/types").Json;
66395
+ deleted_at?: string | null;
66460
66396
  due_date?: string | null;
66461
66397
  fetched_at?: string;
66462
66398
  invoice_date?: string | null;
66463
66399
  invoice_number: string;
66400
+ lines_fetched_at?: string | null;
66464
66401
  modified_at?: string | null;
66465
66402
  outstanding_amount?: number | null;
66403
+ paid_at?: string | null;
66466
66404
  status?: string | null;
66467
66405
  status_label?: string | null;
66468
66406
  total_excl?: number | null;
@@ -66474,12 +66412,15 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
66474
66412
  currency?: string | null;
66475
66413
  customer_code?: string | null;
66476
66414
  data?: import("../integrations/supabase/types").Json;
66415
+ deleted_at?: string | null;
66477
66416
  due_date?: string | null;
66478
66417
  fetched_at?: string;
66479
66418
  invoice_date?: string | null;
66480
66419
  invoice_number?: string;
66420
+ lines_fetched_at?: string | null;
66481
66421
  modified_at?: string | null;
66482
66422
  outstanding_amount?: number | null;
66423
+ paid_at?: string | null;
66483
66424
  status?: string | null;
66484
66425
  status_label?: string | null;
66485
66426
  total_excl?: number | null;
@@ -66494,30 +66435,6 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
66494
66435
  referencedColumns: ["id"];
66495
66436
  }];
66496
66437
  };
66497
- twinfield_oauth_state: {
66498
- Row: {
66499
- created_at: string;
66500
- environment: string;
66501
- nonce: string | null;
66502
- state: string;
66503
- user_id: string;
66504
- };
66505
- Insert: {
66506
- created_at?: string;
66507
- environment: string;
66508
- nonce?: string | null;
66509
- state: string;
66510
- user_id: string;
66511
- };
66512
- Update: {
66513
- created_at?: string;
66514
- environment?: string;
66515
- nonce?: string | null;
66516
- state?: string;
66517
- user_id?: string;
66518
- };
66519
- Relationships: [];
66520
- };
66521
66438
  twinfield_push_queue: {
66522
66439
  Row: {
66523
66440
  action: string;
@@ -66683,39 +66600,6 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
66683
66600
  referencedColumns: ["id"];
66684
66601
  }];
66685
66602
  };
66686
- twinfield_token_refresh_log: {
66687
- Row: {
66688
- attempted_at: string;
66689
- connection_id: string;
66690
- error: string | null;
66691
- expires_at: string | null;
66692
- id: string;
66693
- ok: boolean;
66694
- };
66695
- Insert: {
66696
- attempted_at?: string;
66697
- connection_id: string;
66698
- error?: string | null;
66699
- expires_at?: string | null;
66700
- id?: string;
66701
- ok: boolean;
66702
- };
66703
- Update: {
66704
- attempted_at?: string;
66705
- connection_id?: string;
66706
- error?: string | null;
66707
- expires_at?: string | null;
66708
- id?: string;
66709
- ok?: boolean;
66710
- };
66711
- Relationships: [{
66712
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
66713
- columns: ["connection_id"];
66714
- isOneToOne: false;
66715
- referencedRelation: "twinfield_connections";
66716
- referencedColumns: ["id"];
66717
- }];
66718
- };
66719
66603
  user_roles: {
66720
66604
  Row: {
66721
66605
  created_at: string;
@@ -69156,15 +69040,16 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
69156
69040
  };
69157
69041
  Returns: undefined;
69158
69042
  };
69159
- twinfield_decrypt: {
69160
- Args: {
69161
- cipher: string;
69162
- };
69163
- Returns: string;
69164
- };
69165
- twinfield_encrypt: {
69043
+ twinfield_upsert_connection_by_account_key: {
69166
69044
  Args: {
69167
- plain: string;
69045
+ p_account_key: string;
69046
+ p_cluster_uri?: string;
69047
+ p_company_code?: string;
69048
+ p_company_name?: string;
69049
+ p_environment: string;
69050
+ p_office_code?: string;
69051
+ p_status?: string;
69052
+ p_user_id: string;
69168
69053
  };
69169
69054
  Returns: string;
69170
69055
  };
@@ -73732,6 +73617,27 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
73732
73617
  referencedColumns: ["id"];
73733
73618
  }];
73734
73619
  };
73620
+ floriday_continuous_stock_cache: {
73621
+ Row: {
73622
+ connection_id: string;
73623
+ fetched_at: string;
73624
+ number_of_pieces: number;
73625
+ trade_item_id: string;
73626
+ };
73627
+ Insert: {
73628
+ connection_id: string;
73629
+ fetched_at?: string;
73630
+ number_of_pieces?: number;
73631
+ trade_item_id: string;
73632
+ };
73633
+ Update: {
73634
+ connection_id?: string;
73635
+ fetched_at?: string;
73636
+ number_of_pieces?: number;
73637
+ trade_item_id?: string;
73638
+ };
73639
+ Relationships: [];
73640
+ };
73735
73641
  floriday_continuous_stock_queue: {
73736
73642
  Row: {
73737
73643
  attempts: number;
@@ -74710,6 +74616,45 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
74710
74616
  referencedColumns: ["id"];
74711
74617
  }];
74712
74618
  };
74619
+ floriday_trade_settings_customers_cache: {
74620
+ Row: {
74621
+ connection_id: string;
74622
+ data: import("../integrations/supabase/types").Json;
74623
+ fetched_at: string;
74624
+ floriday_id: string;
74625
+ id: string;
74626
+ is_deleted: boolean;
74627
+ sequence_number: number;
74628
+ updated_at: string;
74629
+ };
74630
+ Insert: {
74631
+ connection_id: string;
74632
+ data: import("../integrations/supabase/types").Json;
74633
+ fetched_at?: string;
74634
+ floriday_id: string;
74635
+ id?: string;
74636
+ is_deleted?: boolean;
74637
+ sequence_number?: number;
74638
+ updated_at?: string;
74639
+ };
74640
+ Update: {
74641
+ connection_id?: string;
74642
+ data?: import("../integrations/supabase/types").Json;
74643
+ fetched_at?: string;
74644
+ floriday_id?: string;
74645
+ id?: string;
74646
+ is_deleted?: boolean;
74647
+ sequence_number?: number;
74648
+ updated_at?: string;
74649
+ };
74650
+ Relationships: [{
74651
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
74652
+ columns: ["connection_id"];
74653
+ isOneToOne: false;
74654
+ referencedRelation: "floriday_connections";
74655
+ referencedColumns: ["id"];
74656
+ }];
74657
+ };
74713
74658
  floriday_trips_cache: {
74714
74659
  Row: {
74715
74660
  carrier_organization_id: string | null;
@@ -74758,6 +74703,27 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
74758
74703
  referencedColumns: ["id"];
74759
74704
  }];
74760
74705
  };
74706
+ floriday_vbn_required_characteristics: {
74707
+ Row: {
74708
+ required_codes: string[];
74709
+ updated_at: string;
74710
+ updated_by: string | null;
74711
+ vbn_code: string;
74712
+ };
74713
+ Insert: {
74714
+ required_codes?: string[];
74715
+ updated_at?: string;
74716
+ updated_by?: string | null;
74717
+ vbn_code: string;
74718
+ };
74719
+ Update: {
74720
+ required_codes?: string[];
74721
+ updated_at?: string;
74722
+ updated_by?: string | null;
74723
+ vbn_code?: string;
74724
+ };
74725
+ Relationships: [];
74726
+ };
74761
74727
  floriday_warehouses_cache: {
74762
74728
  Row: {
74763
74729
  connection_id: string;
@@ -79731,9 +79697,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
79731
79697
  };
79732
79698
  twinfield_connections: {
79733
79699
  Row: {
79734
- access_token: string | null;
79735
- client_id: string;
79736
- client_secret: string | null;
79700
+ account_key: string | null;
79737
79701
  cluster_uri: string | null;
79738
79702
  company_code: string | null;
79739
79703
  company_name: string | null;
@@ -79744,16 +79708,12 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
79744
79708
  is_active: boolean;
79745
79709
  label: string | null;
79746
79710
  office_code: string | null;
79747
- redirect_uri: string;
79748
- refresh_token: string | null;
79749
- token_expires_at: string | null;
79711
+ redirect_uri: string | null;
79750
79712
  updated_at: string;
79751
79713
  user_id: string;
79752
79714
  };
79753
79715
  Insert: {
79754
- access_token?: string | null;
79755
- client_id: string;
79756
- client_secret?: string | null;
79716
+ account_key?: string | null;
79757
79717
  cluster_uri?: string | null;
79758
79718
  company_code?: string | null;
79759
79719
  company_name?: string | null;
@@ -79764,16 +79724,12 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
79764
79724
  is_active?: boolean;
79765
79725
  label?: string | null;
79766
79726
  office_code?: string | null;
79767
- redirect_uri: string;
79768
- refresh_token?: string | null;
79769
- token_expires_at?: string | null;
79727
+ redirect_uri?: string | null;
79770
79728
  updated_at?: string;
79771
79729
  user_id: string;
79772
79730
  };
79773
79731
  Update: {
79774
- access_token?: string | null;
79775
- client_id?: string;
79776
- client_secret?: string | null;
79732
+ account_key?: string | null;
79777
79733
  cluster_uri?: string | null;
79778
79734
  company_code?: string | null;
79779
79735
  company_name?: string | null;
@@ -79784,54 +79740,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
79784
79740
  is_active?: boolean;
79785
79741
  label?: string | null;
79786
79742
  office_code?: string | null;
79787
- redirect_uri?: string;
79788
- refresh_token?: string | null;
79789
- token_expires_at?: string | null;
79790
- updated_at?: string;
79791
- user_id?: string;
79792
- };
79793
- Relationships: [];
79794
- };
79795
- twinfield_credentials: {
79796
- Row: {
79797
- administration_code: string | null;
79798
- client_id: string | null;
79799
- client_secret: string | null;
79800
- cluster: string | null;
79801
- connected_at: string | null;
79802
- created_at: string;
79803
- environment: string | null;
79804
- id: string;
79805
- redirect_uri: string | null;
79806
- refresh_token: string | null;
79807
- updated_at: string;
79808
- user_id: string;
79809
- };
79810
- Insert: {
79811
- administration_code?: string | null;
79812
- client_id?: string | null;
79813
- client_secret?: string | null;
79814
- cluster?: string | null;
79815
- connected_at?: string | null;
79816
- created_at?: string;
79817
- environment?: string | null;
79818
- id?: string;
79819
79743
  redirect_uri?: string | null;
79820
- refresh_token?: string | null;
79821
- updated_at?: string;
79822
- user_id: string;
79823
- };
79824
- Update: {
79825
- administration_code?: string | null;
79826
- client_id?: string | null;
79827
- client_secret?: string | null;
79828
- cluster?: string | null;
79829
- connected_at?: string | null;
79830
- created_at?: string;
79831
- environment?: string | null;
79832
- id?: string;
79833
- redirect_uri?: string | null;
79834
- refresh_token?: string | null;
79835
79744
  updated_at?: string;
79836
79745
  user_id?: string;
79837
79746
  };
@@ -80278,12 +80187,15 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
80278
80187
  currency: string | null;
80279
80188
  customer_code: string | null;
80280
80189
  data: import("../integrations/supabase/types").Json;
80190
+ deleted_at: string | null;
80281
80191
  due_date: string | null;
80282
80192
  fetched_at: string;
80283
80193
  invoice_date: string | null;
80284
80194
  invoice_number: string;
80195
+ lines_fetched_at: string | null;
80285
80196
  modified_at: string | null;
80286
80197
  outstanding_amount: number | null;
80198
+ paid_at: string | null;
80287
80199
  status: string | null;
80288
80200
  status_label: string | null;
80289
80201
  total_excl: number | null;
@@ -80295,12 +80207,15 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
80295
80207
  currency?: string | null;
80296
80208
  customer_code?: string | null;
80297
80209
  data?: import("../integrations/supabase/types").Json;
80210
+ deleted_at?: string | null;
80298
80211
  due_date?: string | null;
80299
80212
  fetched_at?: string;
80300
80213
  invoice_date?: string | null;
80301
80214
  invoice_number: string;
80215
+ lines_fetched_at?: string | null;
80302
80216
  modified_at?: string | null;
80303
80217
  outstanding_amount?: number | null;
80218
+ paid_at?: string | null;
80304
80219
  status?: string | null;
80305
80220
  status_label?: string | null;
80306
80221
  total_excl?: number | null;
@@ -80312,12 +80227,15 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
80312
80227
  currency?: string | null;
80313
80228
  customer_code?: string | null;
80314
80229
  data?: import("../integrations/supabase/types").Json;
80230
+ deleted_at?: string | null;
80315
80231
  due_date?: string | null;
80316
80232
  fetched_at?: string;
80317
80233
  invoice_date?: string | null;
80318
80234
  invoice_number?: string;
80235
+ lines_fetched_at?: string | null;
80319
80236
  modified_at?: string | null;
80320
80237
  outstanding_amount?: number | null;
80238
+ paid_at?: string | null;
80321
80239
  status?: string | null;
80322
80240
  status_label?: string | null;
80323
80241
  total_excl?: number | null;
@@ -80332,30 +80250,6 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
80332
80250
  referencedColumns: ["id"];
80333
80251
  }];
80334
80252
  };
80335
- twinfield_oauth_state: {
80336
- Row: {
80337
- created_at: string;
80338
- environment: string;
80339
- nonce: string | null;
80340
- state: string;
80341
- user_id: string;
80342
- };
80343
- Insert: {
80344
- created_at?: string;
80345
- environment: string;
80346
- nonce?: string | null;
80347
- state: string;
80348
- user_id: string;
80349
- };
80350
- Update: {
80351
- created_at?: string;
80352
- environment?: string;
80353
- nonce?: string | null;
80354
- state?: string;
80355
- user_id?: string;
80356
- };
80357
- Relationships: [];
80358
- };
80359
80253
  twinfield_push_queue: {
80360
80254
  Row: {
80361
80255
  action: string;
@@ -80521,39 +80415,6 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
80521
80415
  referencedColumns: ["id"];
80522
80416
  }];
80523
80417
  };
80524
- twinfield_token_refresh_log: {
80525
- Row: {
80526
- attempted_at: string;
80527
- connection_id: string;
80528
- error: string | null;
80529
- expires_at: string | null;
80530
- id: string;
80531
- ok: boolean;
80532
- };
80533
- Insert: {
80534
- attempted_at?: string;
80535
- connection_id: string;
80536
- error?: string | null;
80537
- expires_at?: string | null;
80538
- id?: string;
80539
- ok: boolean;
80540
- };
80541
- Update: {
80542
- attempted_at?: string;
80543
- connection_id?: string;
80544
- error?: string | null;
80545
- expires_at?: string | null;
80546
- id?: string;
80547
- ok?: boolean;
80548
- };
80549
- Relationships: [{
80550
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
80551
- columns: ["connection_id"];
80552
- isOneToOne: false;
80553
- referencedRelation: "twinfield_connections";
80554
- referencedColumns: ["id"];
80555
- }];
80556
- };
80557
80418
  user_roles: {
80558
80419
  Row: {
80559
80420
  created_at: string;
@@ -82994,15 +82855,16 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
82994
82855
  };
82995
82856
  Returns: undefined;
82996
82857
  };
82997
- twinfield_decrypt: {
82998
- Args: {
82999
- cipher: string;
83000
- };
83001
- Returns: string;
83002
- };
83003
- twinfield_encrypt: {
82858
+ twinfield_upsert_connection_by_account_key: {
83004
82859
  Args: {
83005
- plain: string;
82860
+ p_account_key: string;
82861
+ p_cluster_uri?: string;
82862
+ p_company_code?: string;
82863
+ p_company_name?: string;
82864
+ p_environment: string;
82865
+ p_office_code?: string;
82866
+ p_status?: string;
82867
+ p_user_id: string;
83006
82868
  };
83007
82869
  Returns: string;
83008
82870
  };
@@ -87567,6 +87429,27 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
87567
87429
  referencedColumns: ["id"];
87568
87430
  }];
87569
87431
  };
87432
+ floriday_continuous_stock_cache: {
87433
+ Row: {
87434
+ connection_id: string;
87435
+ fetched_at: string;
87436
+ number_of_pieces: number;
87437
+ trade_item_id: string;
87438
+ };
87439
+ Insert: {
87440
+ connection_id: string;
87441
+ fetched_at?: string;
87442
+ number_of_pieces?: number;
87443
+ trade_item_id: string;
87444
+ };
87445
+ Update: {
87446
+ connection_id?: string;
87447
+ fetched_at?: string;
87448
+ number_of_pieces?: number;
87449
+ trade_item_id?: string;
87450
+ };
87451
+ Relationships: [];
87452
+ };
87570
87453
  floriday_continuous_stock_queue: {
87571
87454
  Row: {
87572
87455
  attempts: number;
@@ -88545,6 +88428,45 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
88545
88428
  referencedColumns: ["id"];
88546
88429
  }];
88547
88430
  };
88431
+ floriday_trade_settings_customers_cache: {
88432
+ Row: {
88433
+ connection_id: string;
88434
+ data: import("../integrations/supabase/types").Json;
88435
+ fetched_at: string;
88436
+ floriday_id: string;
88437
+ id: string;
88438
+ is_deleted: boolean;
88439
+ sequence_number: number;
88440
+ updated_at: string;
88441
+ };
88442
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
88463
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
88464
+ columns: ["connection_id"];
88465
+ isOneToOne: false;
88466
+ referencedRelation: "floriday_connections";
88467
+ referencedColumns: ["id"];
88468
+ }];
88469
+ };
88548
88470
  floriday_trips_cache: {
88549
88471
  Row: {
88550
88472
  carrier_organization_id: string | null;
@@ -88593,6 +88515,27 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
88593
88515
  referencedColumns: ["id"];
88594
88516
  }];
88595
88517
  };
88518
+ floriday_vbn_required_characteristics: {
88519
+ Row: {
88520
+ required_codes: string[];
88521
+ updated_at: string;
88522
+ updated_by: string | null;
88523
+ vbn_code: string;
88524
+ };
88525
+ Insert: {
88526
+ required_codes?: string[];
88527
+ updated_at?: string;
88528
+ updated_by?: string | null;
88529
+ vbn_code: string;
88530
+ };
88531
+ Update: {
88532
+ required_codes?: string[];
88533
+ updated_at?: string;
88534
+ updated_by?: string | null;
88535
+ vbn_code?: string;
88536
+ };
88537
+ Relationships: [];
88538
+ };
88596
88539
  floriday_warehouses_cache: {
88597
88540
  Row: {
88598
88541
  connection_id: string;
@@ -93566,9 +93509,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
93566
93509
  };
93567
93510
  twinfield_connections: {
93568
93511
  Row: {
93569
- access_token: string | null;
93570
- client_id: string;
93571
- client_secret: string | null;
93512
+ account_key: string | null;
93572
93513
  cluster_uri: string | null;
93573
93514
  company_code: string | null;
93574
93515
  company_name: string | null;
@@ -93579,16 +93520,12 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
93579
93520
  is_active: boolean;
93580
93521
  label: string | null;
93581
93522
  office_code: string | null;
93582
- redirect_uri: string;
93583
- refresh_token: string | null;
93584
- token_expires_at: string | null;
93523
+ redirect_uri: string | null;
93585
93524
  updated_at: string;
93586
93525
  user_id: string;
93587
93526
  };
93588
93527
  Insert: {
93589
- access_token?: string | null;
93590
- client_id: string;
93591
- client_secret?: string | null;
93528
+ account_key?: string | null;
93592
93529
  cluster_uri?: string | null;
93593
93530
  company_code?: string | null;
93594
93531
  company_name?: string | null;
@@ -93599,16 +93536,12 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
93599
93536
  is_active?: boolean;
93600
93537
  label?: string | null;
93601
93538
  office_code?: string | null;
93602
- redirect_uri: string;
93603
- refresh_token?: string | null;
93604
- token_expires_at?: string | null;
93539
+ redirect_uri?: string | null;
93605
93540
  updated_at?: string;
93606
93541
  user_id: string;
93607
93542
  };
93608
93543
  Update: {
93609
- access_token?: string | null;
93610
- client_id?: string;
93611
- client_secret?: string | null;
93544
+ account_key?: string | null;
93612
93545
  cluster_uri?: string | null;
93613
93546
  company_code?: string | null;
93614
93547
  company_name?: string | null;
@@ -93619,54 +93552,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
93619
93552
  is_active?: boolean;
93620
93553
  label?: string | null;
93621
93554
  office_code?: string | null;
93622
- redirect_uri?: string;
93623
- refresh_token?: string | null;
93624
- token_expires_at?: string | null;
93625
- updated_at?: string;
93626
- user_id?: string;
93627
- };
93628
- Relationships: [];
93629
- };
93630
- twinfield_credentials: {
93631
- Row: {
93632
- administration_code: string | null;
93633
- client_id: string | null;
93634
- client_secret: string | null;
93635
- cluster: string | null;
93636
- connected_at: string | null;
93637
- created_at: string;
93638
- environment: string | null;
93639
- id: string;
93640
- redirect_uri: string | null;
93641
- refresh_token: string | null;
93642
- updated_at: string;
93643
- user_id: string;
93644
- };
93645
- Insert: {
93646
- administration_code?: string | null;
93647
- client_id?: string | null;
93648
- client_secret?: string | null;
93649
- cluster?: string | null;
93650
- connected_at?: string | null;
93651
- created_at?: string;
93652
- environment?: string | null;
93653
- id?: string;
93654
93555
  redirect_uri?: string | null;
93655
- refresh_token?: string | null;
93656
- updated_at?: string;
93657
- user_id: string;
93658
- };
93659
- Update: {
93660
- administration_code?: string | null;
93661
- client_id?: string | null;
93662
- client_secret?: string | null;
93663
- cluster?: string | null;
93664
- connected_at?: string | null;
93665
- created_at?: string;
93666
- environment?: string | null;
93667
- id?: string;
93668
- redirect_uri?: string | null;
93669
- refresh_token?: string | null;
93670
93556
  updated_at?: string;
93671
93557
  user_id?: string;
93672
93558
  };
@@ -94113,12 +93999,15 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
94113
93999
  currency: string | null;
94114
94000
  customer_code: string | null;
94115
94001
  data: import("../integrations/supabase/types").Json;
94002
+ deleted_at: string | null;
94116
94003
  due_date: string | null;
94117
94004
  fetched_at: string;
94118
94005
  invoice_date: string | null;
94119
94006
  invoice_number: string;
94007
+ lines_fetched_at: string | null;
94120
94008
  modified_at: string | null;
94121
94009
  outstanding_amount: number | null;
94010
+ paid_at: string | null;
94122
94011
  status: string | null;
94123
94012
  status_label: string | null;
94124
94013
  total_excl: number | null;
@@ -94130,12 +94019,15 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
94130
94019
  currency?: string | null;
94131
94020
  customer_code?: string | null;
94132
94021
  data?: import("../integrations/supabase/types").Json;
94022
+ deleted_at?: string | null;
94133
94023
  due_date?: string | null;
94134
94024
  fetched_at?: string;
94135
94025
  invoice_date?: string | null;
94136
94026
  invoice_number: string;
94027
+ lines_fetched_at?: string | null;
94137
94028
  modified_at?: string | null;
94138
94029
  outstanding_amount?: number | null;
94030
+ paid_at?: string | null;
94139
94031
  status?: string | null;
94140
94032
  status_label?: string | null;
94141
94033
  total_excl?: number | null;
@@ -94147,12 +94039,15 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
94147
94039
  currency?: string | null;
94148
94040
  customer_code?: string | null;
94149
94041
  data?: import("../integrations/supabase/types").Json;
94042
+ deleted_at?: string | null;
94150
94043
  due_date?: string | null;
94151
94044
  fetched_at?: string;
94152
94045
  invoice_date?: string | null;
94153
94046
  invoice_number?: string;
94047
+ lines_fetched_at?: string | null;
94154
94048
  modified_at?: string | null;
94155
94049
  outstanding_amount?: number | null;
94050
+ paid_at?: string | null;
94156
94051
  status?: string | null;
94157
94052
  status_label?: string | null;
94158
94053
  total_excl?: number | null;
@@ -94167,30 +94062,6 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
94167
94062
  referencedColumns: ["id"];
94168
94063
  }];
94169
94064
  };
94170
- twinfield_oauth_state: {
94171
- Row: {
94172
- created_at: string;
94173
- environment: string;
94174
- nonce: string | null;
94175
- state: string;
94176
- user_id: string;
94177
- };
94178
- Insert: {
94179
- created_at?: string;
94180
- environment: string;
94181
- nonce?: string | null;
94182
- state: string;
94183
- user_id: string;
94184
- };
94185
- Update: {
94186
- created_at?: string;
94187
- environment?: string;
94188
- nonce?: string | null;
94189
- state?: string;
94190
- user_id?: string;
94191
- };
94192
- Relationships: [];
94193
- };
94194
94065
  twinfield_push_queue: {
94195
94066
  Row: {
94196
94067
  action: string;
@@ -94356,39 +94227,6 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
94356
94227
  referencedColumns: ["id"];
94357
94228
  }];
94358
94229
  };
94359
- twinfield_token_refresh_log: {
94360
- Row: {
94361
- attempted_at: string;
94362
- connection_id: string;
94363
- error: string | null;
94364
- expires_at: string | null;
94365
- id: string;
94366
- ok: boolean;
94367
- };
94368
- Insert: {
94369
- attempted_at?: string;
94370
- connection_id: string;
94371
- error?: string | null;
94372
- expires_at?: string | null;
94373
- id?: string;
94374
- ok: boolean;
94375
- };
94376
- Update: {
94377
- attempted_at?: string;
94378
- connection_id?: string;
94379
- error?: string | null;
94380
- expires_at?: string | null;
94381
- id?: string;
94382
- ok?: boolean;
94383
- };
94384
- Relationships: [{
94385
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
94386
- columns: ["connection_id"];
94387
- isOneToOne: false;
94388
- referencedRelation: "twinfield_connections";
94389
- referencedColumns: ["id"];
94390
- }];
94391
- };
94392
94230
  user_roles: {
94393
94231
  Row: {
94394
94232
  created_at: string;
@@ -96829,15 +96667,16 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
96829
96667
  };
96830
96668
  Returns: undefined;
96831
96669
  };
96832
- twinfield_decrypt: {
96833
- Args: {
96834
- cipher: string;
96835
- };
96836
- Returns: string;
96837
- };
96838
- twinfield_encrypt: {
96670
+ twinfield_upsert_connection_by_account_key: {
96839
96671
  Args: {
96840
- plain: string;
96672
+ p_account_key: string;
96673
+ p_cluster_uri?: string;
96674
+ p_company_code?: string;
96675
+ p_company_name?: string;
96676
+ p_environment: string;
96677
+ p_office_code?: string;
96678
+ p_status?: string;
96679
+ p_user_id: string;
96841
96680
  };
96842
96681
  Returns: string;
96843
96682
  };