@flowselections/floriday-verkoop-module 1.0.26 → 1.0.27

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
@@ -4534,6 +4534,27 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
4534
4534
  referencedColumns: ["id"];
4535
4535
  }];
4536
4536
  };
4537
+ floriday_continuous_stock_cache: {
4538
+ Row: {
4539
+ connection_id: string;
4540
+ fetched_at: string;
4541
+ number_of_pieces: number;
4542
+ trade_item_id: string;
4543
+ };
4544
+ Insert: {
4545
+ connection_id: string;
4546
+ fetched_at?: string;
4547
+ number_of_pieces?: number;
4548
+ trade_item_id: string;
4549
+ };
4550
+ Update: {
4551
+ connection_id?: string;
4552
+ fetched_at?: string;
4553
+ number_of_pieces?: number;
4554
+ trade_item_id?: string;
4555
+ };
4556
+ Relationships: [];
4557
+ };
4537
4558
  floriday_continuous_stock_queue: {
4538
4559
  Row: {
4539
4560
  attempts: number;
@@ -5512,6 +5533,45 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
5512
5533
  referencedColumns: ["id"];
5513
5534
  }];
5514
5535
  };
5536
+ floriday_trade_settings_customers_cache: {
5537
+ Row: {
5538
+ connection_id: string;
5539
+ data: import("../integrations/supabase/types").Json;
5540
+ fetched_at: string;
5541
+ floriday_id: string;
5542
+ id: string;
5543
+ is_deleted: boolean;
5544
+ sequence_number: number;
5545
+ updated_at: string;
5546
+ };
5547
+ Insert: {
5548
+ connection_id: string;
5549
+ data: import("../integrations/supabase/types").Json;
5550
+ fetched_at?: string;
5551
+ floriday_id: string;
5552
+ id?: string;
5553
+ is_deleted?: boolean;
5554
+ sequence_number?: number;
5555
+ updated_at?: string;
5556
+ };
5557
+ Update: {
5558
+ connection_id?: string;
5559
+ data?: import("../integrations/supabase/types").Json;
5560
+ fetched_at?: string;
5561
+ floriday_id?: string;
5562
+ id?: string;
5563
+ is_deleted?: boolean;
5564
+ sequence_number?: number;
5565
+ updated_at?: string;
5566
+ };
5567
+ Relationships: [{
5568
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5569
+ columns: ["connection_id"];
5570
+ isOneToOne: false;
5571
+ referencedRelation: "floriday_connections";
5572
+ referencedColumns: ["id"];
5573
+ }];
5574
+ };
5515
5575
  floriday_trips_cache: {
5516
5576
  Row: {
5517
5577
  carrier_organization_id: string | null;
@@ -5560,6 +5620,27 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
5560
5620
  referencedColumns: ["id"];
5561
5621
  }];
5562
5622
  };
5623
+ floriday_vbn_required_characteristics: {
5624
+ Row: {
5625
+ required_codes: string[];
5626
+ updated_at: string;
5627
+ updated_by: string | null;
5628
+ vbn_code: string;
5629
+ };
5630
+ Insert: {
5631
+ required_codes?: string[];
5632
+ updated_at?: string;
5633
+ updated_by?: string | null;
5634
+ vbn_code: string;
5635
+ };
5636
+ Update: {
5637
+ required_codes?: string[];
5638
+ updated_at?: string;
5639
+ updated_by?: string | null;
5640
+ vbn_code?: string;
5641
+ };
5642
+ Relationships: [];
5643
+ };
5563
5644
  floriday_warehouses_cache: {
5564
5645
  Row: {
5565
5646
  connection_id: string;
@@ -10533,9 +10614,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
10533
10614
  };
10534
10615
  twinfield_connections: {
10535
10616
  Row: {
10536
- access_token: string | null;
10537
- client_id: string;
10538
- client_secret: string | null;
10617
+ account_key: string | null;
10539
10618
  cluster_uri: string | null;
10540
10619
  company_code: string | null;
10541
10620
  company_name: string | null;
@@ -10546,16 +10625,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
10546
10625
  is_active: boolean;
10547
10626
  label: string | null;
10548
10627
  office_code: string | null;
10549
- redirect_uri: string;
10550
- refresh_token: string | null;
10551
- token_expires_at: string | null;
10628
+ redirect_uri: string | null;
10552
10629
  updated_at: string;
10553
10630
  user_id: string;
10554
10631
  };
10555
10632
  Insert: {
10556
- access_token?: string | null;
10557
- client_id: string;
10558
- client_secret?: string | null;
10633
+ account_key?: string | null;
10559
10634
  cluster_uri?: string | null;
10560
10635
  company_code?: string | null;
10561
10636
  company_name?: string | null;
@@ -10566,16 +10641,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
10566
10641
  is_active?: boolean;
10567
10642
  label?: string | null;
10568
10643
  office_code?: string | null;
10569
- redirect_uri: string;
10570
- refresh_token?: string | null;
10571
- token_expires_at?: string | null;
10644
+ redirect_uri?: string | null;
10572
10645
  updated_at?: string;
10573
10646
  user_id: string;
10574
10647
  };
10575
10648
  Update: {
10576
- access_token?: string | null;
10577
- client_id?: string;
10578
- client_secret?: string | null;
10649
+ account_key?: string | null;
10579
10650
  cluster_uri?: string | null;
10580
10651
  company_code?: string | null;
10581
10652
  company_name?: string | null;
@@ -10586,54 +10657,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
10586
10657
  is_active?: boolean;
10587
10658
  label?: string | null;
10588
10659
  office_code?: string | null;
10589
- redirect_uri?: string;
10590
- refresh_token?: string | null;
10591
- token_expires_at?: string | null;
10592
- updated_at?: string;
10593
- user_id?: string;
10594
- };
10595
- Relationships: [];
10596
- };
10597
- twinfield_credentials: {
10598
- Row: {
10599
- administration_code: string | null;
10600
- client_id: string | null;
10601
- client_secret: string | null;
10602
- cluster: string | null;
10603
- connected_at: string | null;
10604
- created_at: string;
10605
- environment: string | null;
10606
- id: string;
10607
- redirect_uri: string | null;
10608
- refresh_token: string | null;
10609
- updated_at: string;
10610
- user_id: string;
10611
- };
10612
- Insert: {
10613
- administration_code?: string | null;
10614
- client_id?: string | null;
10615
- client_secret?: string | null;
10616
- cluster?: string | null;
10617
- connected_at?: string | null;
10618
- created_at?: string;
10619
- environment?: string | null;
10620
- id?: string;
10621
- redirect_uri?: string | null;
10622
- refresh_token?: string | null;
10623
- updated_at?: string;
10624
- user_id: string;
10625
- };
10626
- Update: {
10627
- administration_code?: string | null;
10628
- client_id?: string | null;
10629
- client_secret?: string | null;
10630
- cluster?: string | null;
10631
- connected_at?: string | null;
10632
- created_at?: string;
10633
- environment?: string | null;
10634
- id?: string;
10635
10660
  redirect_uri?: string | null;
10636
- refresh_token?: string | null;
10637
10661
  updated_at?: string;
10638
10662
  user_id?: string;
10639
10663
  };
@@ -11080,12 +11104,15 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
11080
11104
  currency: string | null;
11081
11105
  customer_code: string | null;
11082
11106
  data: import("../integrations/supabase/types").Json;
11107
+ deleted_at: string | null;
11083
11108
  due_date: string | null;
11084
11109
  fetched_at: string;
11085
11110
  invoice_date: string | null;
11086
11111
  invoice_number: string;
11112
+ lines_fetched_at: string | null;
11087
11113
  modified_at: string | null;
11088
11114
  outstanding_amount: number | null;
11115
+ paid_at: string | null;
11089
11116
  status: string | null;
11090
11117
  status_label: string | null;
11091
11118
  total_excl: number | null;
@@ -11097,12 +11124,15 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
11097
11124
  currency?: string | null;
11098
11125
  customer_code?: string | null;
11099
11126
  data?: import("../integrations/supabase/types").Json;
11127
+ deleted_at?: string | null;
11100
11128
  due_date?: string | null;
11101
11129
  fetched_at?: string;
11102
11130
  invoice_date?: string | null;
11103
11131
  invoice_number: string;
11132
+ lines_fetched_at?: string | null;
11104
11133
  modified_at?: string | null;
11105
11134
  outstanding_amount?: number | null;
11135
+ paid_at?: string | null;
11106
11136
  status?: string | null;
11107
11137
  status_label?: string | null;
11108
11138
  total_excl?: number | null;
@@ -11114,12 +11144,15 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
11114
11144
  currency?: string | null;
11115
11145
  customer_code?: string | null;
11116
11146
  data?: import("../integrations/supabase/types").Json;
11147
+ deleted_at?: string | null;
11117
11148
  due_date?: string | null;
11118
11149
  fetched_at?: string;
11119
11150
  invoice_date?: string | null;
11120
11151
  invoice_number?: string;
11152
+ lines_fetched_at?: string | null;
11121
11153
  modified_at?: string | null;
11122
11154
  outstanding_amount?: number | null;
11155
+ paid_at?: string | null;
11123
11156
  status?: string | null;
11124
11157
  status_label?: string | null;
11125
11158
  total_excl?: number | null;
@@ -11134,30 +11167,6 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
11134
11167
  referencedColumns: ["id"];
11135
11168
  }];
11136
11169
  };
11137
- twinfield_oauth_state: {
11138
- Row: {
11139
- created_at: string;
11140
- environment: string;
11141
- nonce: string | null;
11142
- state: string;
11143
- user_id: string;
11144
- };
11145
- Insert: {
11146
- created_at?: string;
11147
- environment: string;
11148
- nonce?: string | null;
11149
- state: string;
11150
- user_id: string;
11151
- };
11152
- Update: {
11153
- created_at?: string;
11154
- environment?: string;
11155
- nonce?: string | null;
11156
- state?: string;
11157
- user_id?: string;
11158
- };
11159
- Relationships: [];
11160
- };
11161
11170
  twinfield_push_queue: {
11162
11171
  Row: {
11163
11172
  action: string;
@@ -11323,39 +11332,6 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
11323
11332
  referencedColumns: ["id"];
11324
11333
  }];
11325
11334
  };
11326
- twinfield_token_refresh_log: {
11327
- Row: {
11328
- attempted_at: string;
11329
- connection_id: string;
11330
- error: string | null;
11331
- expires_at: string | null;
11332
- id: string;
11333
- ok: boolean;
11334
- };
11335
- Insert: {
11336
- attempted_at?: string;
11337
- connection_id: string;
11338
- error?: string | null;
11339
- expires_at?: string | null;
11340
- id?: string;
11341
- ok: boolean;
11342
- };
11343
- Update: {
11344
- attempted_at?: string;
11345
- connection_id?: string;
11346
- error?: string | null;
11347
- expires_at?: string | null;
11348
- id?: string;
11349
- ok?: boolean;
11350
- };
11351
- Relationships: [{
11352
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11353
- columns: ["connection_id"];
11354
- isOneToOne: false;
11355
- referencedRelation: "twinfield_connections";
11356
- referencedColumns: ["id"];
11357
- }];
11358
- };
11359
11335
  user_roles: {
11360
11336
  Row: {
11361
11337
  created_at: string;
@@ -13796,15 +13772,16 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13796
13772
  };
13797
13773
  Returns: undefined;
13798
13774
  };
13799
- twinfield_decrypt: {
13800
- Args: {
13801
- cipher: string;
13802
- };
13803
- Returns: string;
13804
- };
13805
- twinfield_encrypt: {
13775
+ twinfield_upsert_connection_by_account_key: {
13806
13776
  Args: {
13807
- plain: string;
13777
+ p_account_key: string;
13778
+ p_cluster_uri?: string;
13779
+ p_company_code?: string;
13780
+ p_company_name?: string;
13781
+ p_environment: string;
13782
+ p_office_code?: string;
13783
+ p_status?: string;
13784
+ p_user_id: string;
13808
13785
  };
13809
13786
  Returns: string;
13810
13787
  };
@@ -18369,6 +18346,27 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
18369
18346
  referencedColumns: ["id"];
18370
18347
  }];
18371
18348
  };
18349
+ floriday_continuous_stock_cache: {
18350
+ Row: {
18351
+ connection_id: string;
18352
+ fetched_at: string;
18353
+ number_of_pieces: number;
18354
+ trade_item_id: string;
18355
+ };
18356
+ Insert: {
18357
+ connection_id: string;
18358
+ fetched_at?: string;
18359
+ number_of_pieces?: number;
18360
+ trade_item_id: string;
18361
+ };
18362
+ Update: {
18363
+ connection_id?: string;
18364
+ fetched_at?: string;
18365
+ number_of_pieces?: number;
18366
+ trade_item_id?: string;
18367
+ };
18368
+ Relationships: [];
18369
+ };
18372
18370
  floriday_continuous_stock_queue: {
18373
18371
  Row: {
18374
18372
  attempts: number;
@@ -19347,6 +19345,45 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
19347
19345
  referencedColumns: ["id"];
19348
19346
  }];
19349
19347
  };
19348
+ floriday_trade_settings_customers_cache: {
19349
+ Row: {
19350
+ connection_id: string;
19351
+ data: import("../integrations/supabase/types").Json;
19352
+ fetched_at: string;
19353
+ floriday_id: string;
19354
+ id: string;
19355
+ is_deleted: boolean;
19356
+ sequence_number: number;
19357
+ updated_at: string;
19358
+ };
19359
+ Insert: {
19360
+ connection_id: string;
19361
+ data: import("../integrations/supabase/types").Json;
19362
+ fetched_at?: string;
19363
+ floriday_id: string;
19364
+ id?: string;
19365
+ is_deleted?: boolean;
19366
+ sequence_number?: number;
19367
+ updated_at?: string;
19368
+ };
19369
+ Update: {
19370
+ connection_id?: string;
19371
+ data?: import("../integrations/supabase/types").Json;
19372
+ fetched_at?: string;
19373
+ floriday_id?: string;
19374
+ id?: string;
19375
+ is_deleted?: boolean;
19376
+ sequence_number?: number;
19377
+ updated_at?: string;
19378
+ };
19379
+ Relationships: [{
19380
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19381
+ columns: ["connection_id"];
19382
+ isOneToOne: false;
19383
+ referencedRelation: "floriday_connections";
19384
+ referencedColumns: ["id"];
19385
+ }];
19386
+ };
19350
19387
  floriday_trips_cache: {
19351
19388
  Row: {
19352
19389
  carrier_organization_id: string | null;
@@ -19395,6 +19432,27 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
19395
19432
  referencedColumns: ["id"];
19396
19433
  }];
19397
19434
  };
19435
+ floriday_vbn_required_characteristics: {
19436
+ Row: {
19437
+ required_codes: string[];
19438
+ updated_at: string;
19439
+ updated_by: string | null;
19440
+ vbn_code: string;
19441
+ };
19442
+ Insert: {
19443
+ required_codes?: string[];
19444
+ updated_at?: string;
19445
+ updated_by?: string | null;
19446
+ vbn_code: string;
19447
+ };
19448
+ Update: {
19449
+ required_codes?: string[];
19450
+ updated_at?: string;
19451
+ updated_by?: string | null;
19452
+ vbn_code?: string;
19453
+ };
19454
+ Relationships: [];
19455
+ };
19398
19456
  floriday_warehouses_cache: {
19399
19457
  Row: {
19400
19458
  connection_id: string;
@@ -24368,9 +24426,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
24368
24426
  };
24369
24427
  twinfield_connections: {
24370
24428
  Row: {
24371
- access_token: string | null;
24372
- client_id: string;
24373
- client_secret: string | null;
24429
+ account_key: string | null;
24374
24430
  cluster_uri: string | null;
24375
24431
  company_code: string | null;
24376
24432
  company_name: string | null;
@@ -24381,16 +24437,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
24381
24437
  is_active: boolean;
24382
24438
  label: string | null;
24383
24439
  office_code: string | null;
24384
- redirect_uri: string;
24385
- refresh_token: string | null;
24386
- token_expires_at: string | null;
24440
+ redirect_uri: string | null;
24387
24441
  updated_at: string;
24388
24442
  user_id: string;
24389
24443
  };
24390
24444
  Insert: {
24391
- access_token?: string | null;
24392
- client_id: string;
24393
- client_secret?: string | null;
24445
+ account_key?: string | null;
24394
24446
  cluster_uri?: string | null;
24395
24447
  company_code?: string | null;
24396
24448
  company_name?: string | null;
@@ -24401,16 +24453,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
24401
24453
  is_active?: boolean;
24402
24454
  label?: string | null;
24403
24455
  office_code?: string | null;
24404
- redirect_uri: string;
24405
- refresh_token?: string | null;
24406
- token_expires_at?: string | null;
24456
+ redirect_uri?: string | null;
24407
24457
  updated_at?: string;
24408
24458
  user_id: string;
24409
24459
  };
24410
24460
  Update: {
24411
- access_token?: string | null;
24412
- client_id?: string;
24413
- client_secret?: string | null;
24461
+ account_key?: string | null;
24414
24462
  cluster_uri?: string | null;
24415
24463
  company_code?: string | null;
24416
24464
  company_name?: string | null;
@@ -24421,54 +24469,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
24421
24469
  is_active?: boolean;
24422
24470
  label?: string | null;
24423
24471
  office_code?: string | null;
24424
- redirect_uri?: string;
24425
- refresh_token?: string | null;
24426
- token_expires_at?: string | null;
24427
- updated_at?: string;
24428
- user_id?: string;
24429
- };
24430
- Relationships: [];
24431
- };
24432
- twinfield_credentials: {
24433
- Row: {
24434
- administration_code: string | null;
24435
- client_id: string | null;
24436
- client_secret: string | null;
24437
- cluster: string | null;
24438
- connected_at: string | null;
24439
- created_at: string;
24440
- environment: string | null;
24441
- id: string;
24442
- redirect_uri: string | null;
24443
- refresh_token: string | null;
24444
- updated_at: string;
24445
- user_id: string;
24446
- };
24447
- Insert: {
24448
- administration_code?: string | null;
24449
- client_id?: string | null;
24450
- client_secret?: string | null;
24451
- cluster?: string | null;
24452
- connected_at?: string | null;
24453
- created_at?: string;
24454
- environment?: string | null;
24455
- id?: string;
24456
- redirect_uri?: string | null;
24457
- refresh_token?: string | null;
24458
- updated_at?: string;
24459
- user_id: string;
24460
- };
24461
- Update: {
24462
- administration_code?: string | null;
24463
- client_id?: string | null;
24464
- client_secret?: string | null;
24465
- cluster?: string | null;
24466
- connected_at?: string | null;
24467
- created_at?: string;
24468
- environment?: string | null;
24469
- id?: string;
24470
24472
  redirect_uri?: string | null;
24471
- refresh_token?: string | null;
24472
24473
  updated_at?: string;
24473
24474
  user_id?: string;
24474
24475
  };
@@ -24915,12 +24916,15 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
24915
24916
  currency: string | null;
24916
24917
  customer_code: string | null;
24917
24918
  data: import("../integrations/supabase/types").Json;
24919
+ deleted_at: string | null;
24918
24920
  due_date: string | null;
24919
24921
  fetched_at: string;
24920
24922
  invoice_date: string | null;
24921
24923
  invoice_number: string;
24924
+ lines_fetched_at: string | null;
24922
24925
  modified_at: string | null;
24923
24926
  outstanding_amount: number | null;
24927
+ paid_at: string | null;
24924
24928
  status: string | null;
24925
24929
  status_label: string | null;
24926
24930
  total_excl: number | null;
@@ -24932,12 +24936,15 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
24932
24936
  currency?: string | null;
24933
24937
  customer_code?: string | null;
24934
24938
  data?: import("../integrations/supabase/types").Json;
24939
+ deleted_at?: string | null;
24935
24940
  due_date?: string | null;
24936
24941
  fetched_at?: string;
24937
24942
  invoice_date?: string | null;
24938
24943
  invoice_number: string;
24944
+ lines_fetched_at?: string | null;
24939
24945
  modified_at?: string | null;
24940
24946
  outstanding_amount?: number | null;
24947
+ paid_at?: string | null;
24941
24948
  status?: string | null;
24942
24949
  status_label?: string | null;
24943
24950
  total_excl?: number | null;
@@ -24949,12 +24956,15 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
24949
24956
  currency?: string | null;
24950
24957
  customer_code?: string | null;
24951
24958
  data?: import("../integrations/supabase/types").Json;
24959
+ deleted_at?: string | null;
24952
24960
  due_date?: string | null;
24953
24961
  fetched_at?: string;
24954
24962
  invoice_date?: string | null;
24955
24963
  invoice_number?: string;
24964
+ lines_fetched_at?: string | null;
24956
24965
  modified_at?: string | null;
24957
24966
  outstanding_amount?: number | null;
24967
+ paid_at?: string | null;
24958
24968
  status?: string | null;
24959
24969
  status_label?: string | null;
24960
24970
  total_excl?: number | null;
@@ -24969,30 +24979,6 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
24969
24979
  referencedColumns: ["id"];
24970
24980
  }];
24971
24981
  };
24972
- twinfield_oauth_state: {
24973
- Row: {
24974
- created_at: string;
24975
- environment: string;
24976
- nonce: string | null;
24977
- state: string;
24978
- user_id: string;
24979
- };
24980
- Insert: {
24981
- created_at?: string;
24982
- environment: string;
24983
- nonce?: string | null;
24984
- state: string;
24985
- user_id: string;
24986
- };
24987
- Update: {
24988
- created_at?: string;
24989
- environment?: string;
24990
- nonce?: string | null;
24991
- state?: string;
24992
- user_id?: string;
24993
- };
24994
- Relationships: [];
24995
- };
24996
24982
  twinfield_push_queue: {
24997
24983
  Row: {
24998
24984
  action: string;
@@ -25158,39 +25144,6 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
25158
25144
  referencedColumns: ["id"];
25159
25145
  }];
25160
25146
  };
25161
- twinfield_token_refresh_log: {
25162
- Row: {
25163
- attempted_at: string;
25164
- connection_id: string;
25165
- error: string | null;
25166
- expires_at: string | null;
25167
- id: string;
25168
- ok: boolean;
25169
- };
25170
- Insert: {
25171
- attempted_at?: string;
25172
- connection_id: string;
25173
- error?: string | null;
25174
- expires_at?: string | null;
25175
- id?: string;
25176
- ok: boolean;
25177
- };
25178
- Update: {
25179
- attempted_at?: string;
25180
- connection_id?: string;
25181
- error?: string | null;
25182
- expires_at?: string | null;
25183
- id?: string;
25184
- ok?: boolean;
25185
- };
25186
- Relationships: [{
25187
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25188
- columns: ["connection_id"];
25189
- isOneToOne: false;
25190
- referencedRelation: "twinfield_connections";
25191
- referencedColumns: ["id"];
25192
- }];
25193
- };
25194
25147
  user_roles: {
25195
25148
  Row: {
25196
25149
  created_at: string;
@@ -27631,15 +27584,16 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
27631
27584
  };
27632
27585
  Returns: undefined;
27633
27586
  };
27634
- twinfield_decrypt: {
27635
- Args: {
27636
- cipher: string;
27637
- };
27638
- Returns: string;
27639
- };
27640
- twinfield_encrypt: {
27587
+ twinfield_upsert_connection_by_account_key: {
27641
27588
  Args: {
27642
- plain: string;
27589
+ p_account_key: string;
27590
+ p_cluster_uri?: string;
27591
+ p_company_code?: string;
27592
+ p_company_name?: string;
27593
+ p_environment: string;
27594
+ p_office_code?: string;
27595
+ p_status?: string;
27596
+ p_user_id: string;
27643
27597
  };
27644
27598
  Returns: string;
27645
27599
  };
@@ -32214,6 +32168,27 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
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 diagnoseFloridayConnection: import("@tanstack/start-client-
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 diagnoseFloridayConnection: import("@tanstack/start-client-
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 diagnoseFloridayConnection: import("@tanstack/start-client-
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 diagnoseFloridayConnection: import("@tanstack/start-client-
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 diagnoseFloridayConnection: import("@tanstack/start-client-
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 diagnoseFloridayConnection: import("@tanstack/start-client-
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 diagnoseFloridayConnection: import("@tanstack/start-client-
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 diagnoseFloridayConnection: import("@tanstack/start-client-
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 diagnoseFloridayConnection: import("@tanstack/start-client-
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 diagnoseFloridayConnection: import("@tanstack/start-client-
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 diagnoseFloridayConnection: import("@tanstack/start-client-
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 diagnoseFloridayConnection: import("@tanstack/start-client-
41476
41406
  };
41477
41407
  Returns: undefined;
41478
41408
  };
41479
- twinfield_decrypt: {
41409
+ twinfield_upsert_connection_by_account_key: {
41480
41410
  Args: {
41481
- cipher: string;
41482
- };
41483
- Returns: string;
41484
- };
41485
- twinfield_encrypt: {
41486
- 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
  };
@@ -46077,6 +46008,27 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
46077
46008
  referencedColumns: ["id"];
46078
46009
  }];
46079
46010
  };
46011
+ floriday_continuous_stock_cache: {
46012
+ Row: {
46013
+ connection_id: string;
46014
+ fetched_at: string;
46015
+ number_of_pieces: number;
46016
+ trade_item_id: string;
46017
+ };
46018
+ Insert: {
46019
+ connection_id: string;
46020
+ fetched_at?: string;
46021
+ number_of_pieces?: number;
46022
+ trade_item_id: string;
46023
+ };
46024
+ Update: {
46025
+ connection_id?: string;
46026
+ fetched_at?: string;
46027
+ number_of_pieces?: number;
46028
+ trade_item_id?: string;
46029
+ };
46030
+ Relationships: [];
46031
+ };
46080
46032
  floriday_continuous_stock_queue: {
46081
46033
  Row: {
46082
46034
  attempts: number;
@@ -47055,6 +47007,45 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
47055
47007
  referencedColumns: ["id"];
47056
47008
  }];
47057
47009
  };
47010
+ floriday_trade_settings_customers_cache: {
47011
+ Row: {
47012
+ connection_id: string;
47013
+ data: import("../integrations/supabase/types").Json;
47014
+ fetched_at: string;
47015
+ floriday_id: string;
47016
+ id: string;
47017
+ is_deleted: boolean;
47018
+ sequence_number: number;
47019
+ updated_at: string;
47020
+ };
47021
+ Insert: {
47022
+ connection_id: string;
47023
+ data: import("../integrations/supabase/types").Json;
47024
+ fetched_at?: string;
47025
+ floriday_id: string;
47026
+ id?: string;
47027
+ is_deleted?: boolean;
47028
+ sequence_number?: number;
47029
+ updated_at?: string;
47030
+ };
47031
+ Update: {
47032
+ connection_id?: string;
47033
+ data?: import("../integrations/supabase/types").Json;
47034
+ fetched_at?: string;
47035
+ floriday_id?: string;
47036
+ id?: string;
47037
+ is_deleted?: boolean;
47038
+ sequence_number?: number;
47039
+ updated_at?: string;
47040
+ };
47041
+ Relationships: [{
47042
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
47043
+ columns: ["connection_id"];
47044
+ isOneToOne: false;
47045
+ referencedRelation: "floriday_connections";
47046
+ referencedColumns: ["id"];
47047
+ }];
47048
+ };
47058
47049
  floriday_trips_cache: {
47059
47050
  Row: {
47060
47051
  carrier_organization_id: string | null;
@@ -47103,6 +47094,27 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
47103
47094
  referencedColumns: ["id"];
47104
47095
  }];
47105
47096
  };
47097
+ floriday_vbn_required_characteristics: {
47098
+ Row: {
47099
+ required_codes: string[];
47100
+ updated_at: string;
47101
+ updated_by: string | null;
47102
+ vbn_code: string;
47103
+ };
47104
+ Insert: {
47105
+ required_codes?: string[];
47106
+ updated_at?: string;
47107
+ updated_by?: string | null;
47108
+ vbn_code: string;
47109
+ };
47110
+ Update: {
47111
+ required_codes?: string[];
47112
+ updated_at?: string;
47113
+ updated_by?: string | null;
47114
+ vbn_code?: string;
47115
+ };
47116
+ Relationships: [];
47117
+ };
47106
47118
  floriday_warehouses_cache: {
47107
47119
  Row: {
47108
47120
  connection_id: string;
@@ -52076,9 +52088,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
52076
52088
  };
52077
52089
  twinfield_connections: {
52078
52090
  Row: {
52079
- access_token: string | null;
52080
- client_id: string;
52081
- client_secret: string | null;
52091
+ account_key: string | null;
52082
52092
  cluster_uri: string | null;
52083
52093
  company_code: string | null;
52084
52094
  company_name: string | null;
@@ -52089,16 +52099,12 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
52089
52099
  is_active: boolean;
52090
52100
  label: string | null;
52091
52101
  office_code: string | null;
52092
- redirect_uri: string;
52093
- refresh_token: string | null;
52094
- token_expires_at: string | null;
52102
+ redirect_uri: string | null;
52095
52103
  updated_at: string;
52096
52104
  user_id: string;
52097
52105
  };
52098
52106
  Insert: {
52099
- access_token?: string | null;
52100
- client_id: string;
52101
- client_secret?: string | null;
52107
+ account_key?: string | null;
52102
52108
  cluster_uri?: string | null;
52103
52109
  company_code?: string | null;
52104
52110
  company_name?: string | null;
@@ -52109,16 +52115,12 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
52109
52115
  is_active?: boolean;
52110
52116
  label?: string | null;
52111
52117
  office_code?: string | null;
52112
- redirect_uri: string;
52113
- refresh_token?: string | null;
52114
- token_expires_at?: string | null;
52118
+ redirect_uri?: string | null;
52115
52119
  updated_at?: string;
52116
52120
  user_id: string;
52117
52121
  };
52118
52122
  Update: {
52119
- access_token?: string | null;
52120
- client_id?: string;
52121
- client_secret?: string | null;
52123
+ account_key?: string | null;
52122
52124
  cluster_uri?: string | null;
52123
52125
  company_code?: string | null;
52124
52126
  company_name?: string | null;
@@ -52129,54 +52131,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
52129
52131
  is_active?: boolean;
52130
52132
  label?: string | null;
52131
52133
  office_code?: string | null;
52132
- redirect_uri?: string;
52133
- refresh_token?: string | null;
52134
- token_expires_at?: string | null;
52135
- updated_at?: string;
52136
- user_id?: string;
52137
- };
52138
- Relationships: [];
52139
- };
52140
- twinfield_credentials: {
52141
- Row: {
52142
- administration_code: string | null;
52143
- client_id: string | null;
52144
- client_secret: string | null;
52145
- cluster: string | null;
52146
- connected_at: string | null;
52147
- created_at: string;
52148
- environment: string | null;
52149
- id: string;
52150
- redirect_uri: string | null;
52151
- refresh_token: string | null;
52152
- updated_at: string;
52153
- user_id: string;
52154
- };
52155
- Insert: {
52156
- administration_code?: string | null;
52157
- client_id?: string | null;
52158
- client_secret?: string | null;
52159
- cluster?: string | null;
52160
- connected_at?: string | null;
52161
- created_at?: string;
52162
- environment?: string | null;
52163
- id?: string;
52164
52134
  redirect_uri?: string | null;
52165
- refresh_token?: string | null;
52166
- updated_at?: string;
52167
- user_id: string;
52168
- };
52169
- Update: {
52170
- administration_code?: string | null;
52171
- client_id?: string | null;
52172
- client_secret?: string | null;
52173
- cluster?: string | null;
52174
- connected_at?: string | null;
52175
- created_at?: string;
52176
- environment?: string | null;
52177
- id?: string;
52178
- redirect_uri?: string | null;
52179
- refresh_token?: string | null;
52180
52135
  updated_at?: string;
52181
52136
  user_id?: string;
52182
52137
  };
@@ -52623,12 +52578,15 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
52623
52578
  currency: string | null;
52624
52579
  customer_code: string | null;
52625
52580
  data: import("../integrations/supabase/types").Json;
52581
+ deleted_at: string | null;
52626
52582
  due_date: string | null;
52627
52583
  fetched_at: string;
52628
52584
  invoice_date: string | null;
52629
52585
  invoice_number: string;
52586
+ lines_fetched_at: string | null;
52630
52587
  modified_at: string | null;
52631
52588
  outstanding_amount: number | null;
52589
+ paid_at: string | null;
52632
52590
  status: string | null;
52633
52591
  status_label: string | null;
52634
52592
  total_excl: number | null;
@@ -52640,12 +52598,15 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
52640
52598
  currency?: string | null;
52641
52599
  customer_code?: string | null;
52642
52600
  data?: import("../integrations/supabase/types").Json;
52601
+ deleted_at?: string | null;
52643
52602
  due_date?: string | null;
52644
52603
  fetched_at?: string;
52645
52604
  invoice_date?: string | null;
52646
52605
  invoice_number: string;
52606
+ lines_fetched_at?: string | null;
52647
52607
  modified_at?: string | null;
52648
52608
  outstanding_amount?: number | null;
52609
+ paid_at?: string | null;
52649
52610
  status?: string | null;
52650
52611
  status_label?: string | null;
52651
52612
  total_excl?: number | null;
@@ -52657,12 +52618,15 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
52657
52618
  currency?: string | null;
52658
52619
  customer_code?: string | null;
52659
52620
  data?: import("../integrations/supabase/types").Json;
52621
+ deleted_at?: string | null;
52660
52622
  due_date?: string | null;
52661
52623
  fetched_at?: string;
52662
52624
  invoice_date?: string | null;
52663
52625
  invoice_number?: string;
52626
+ lines_fetched_at?: string | null;
52664
52627
  modified_at?: string | null;
52665
52628
  outstanding_amount?: number | null;
52629
+ paid_at?: string | null;
52666
52630
  status?: string | null;
52667
52631
  status_label?: string | null;
52668
52632
  total_excl?: number | null;
@@ -52677,30 +52641,6 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
52677
52641
  referencedColumns: ["id"];
52678
52642
  }];
52679
52643
  };
52680
- twinfield_oauth_state: {
52681
- Row: {
52682
- created_at: string;
52683
- environment: string;
52684
- nonce: string | null;
52685
- state: string;
52686
- user_id: string;
52687
- };
52688
- Insert: {
52689
- created_at?: string;
52690
- environment: string;
52691
- nonce?: string | null;
52692
- state: string;
52693
- user_id: string;
52694
- };
52695
- Update: {
52696
- created_at?: string;
52697
- environment?: string;
52698
- nonce?: string | null;
52699
- state?: string;
52700
- user_id?: string;
52701
- };
52702
- Relationships: [];
52703
- };
52704
52644
  twinfield_push_queue: {
52705
52645
  Row: {
52706
52646
  action: string;
@@ -52866,39 +52806,6 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
52866
52806
  referencedColumns: ["id"];
52867
52807
  }];
52868
52808
  };
52869
- twinfield_token_refresh_log: {
52870
- Row: {
52871
- attempted_at: string;
52872
- connection_id: string;
52873
- error: string | null;
52874
- expires_at: string | null;
52875
- id: string;
52876
- ok: boolean;
52877
- };
52878
- Insert: {
52879
- attempted_at?: string;
52880
- connection_id: string;
52881
- error?: string | null;
52882
- expires_at?: string | null;
52883
- id?: string;
52884
- ok: boolean;
52885
- };
52886
- Update: {
52887
- attempted_at?: string;
52888
- connection_id?: string;
52889
- error?: string | null;
52890
- expires_at?: string | null;
52891
- id?: string;
52892
- ok?: boolean;
52893
- };
52894
- Relationships: [{
52895
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
52896
- columns: ["connection_id"];
52897
- isOneToOne: false;
52898
- referencedRelation: "twinfield_connections";
52899
- referencedColumns: ["id"];
52900
- }];
52901
- };
52902
52809
  user_roles: {
52903
52810
  Row: {
52904
52811
  created_at: string;
@@ -55339,15 +55246,16 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
55339
55246
  };
55340
55247
  Returns: undefined;
55341
55248
  };
55342
- twinfield_decrypt: {
55249
+ twinfield_upsert_connection_by_account_key: {
55343
55250
  Args: {
55344
- cipher: string;
55345
- };
55346
- Returns: string;
55347
- };
55348
- twinfield_encrypt: {
55349
- Args: {
55350
- plain: string;
55251
+ p_account_key: string;
55252
+ p_cluster_uri?: string;
55253
+ p_company_code?: string;
55254
+ p_company_name?: string;
55255
+ p_environment: string;
55256
+ p_office_code?: string;
55257
+ p_status?: string;
55258
+ p_user_id: string;
55351
55259
  };
55352
55260
  Returns: string;
55353
55261
  };
@@ -59911,6 +59819,27 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
59911
59819
  referencedColumns: ["id"];
59912
59820
  }];
59913
59821
  };
59822
+ floriday_continuous_stock_cache: {
59823
+ Row: {
59824
+ connection_id: string;
59825
+ fetched_at: string;
59826
+ number_of_pieces: number;
59827
+ trade_item_id: string;
59828
+ };
59829
+ Insert: {
59830
+ connection_id: string;
59831
+ fetched_at?: string;
59832
+ number_of_pieces?: number;
59833
+ trade_item_id: string;
59834
+ };
59835
+ Update: {
59836
+ connection_id?: string;
59837
+ fetched_at?: string;
59838
+ number_of_pieces?: number;
59839
+ trade_item_id?: string;
59840
+ };
59841
+ Relationships: [];
59842
+ };
59914
59843
  floriday_continuous_stock_queue: {
59915
59844
  Row: {
59916
59845
  attempts: number;
@@ -60889,6 +60818,45 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
60889
60818
  referencedColumns: ["id"];
60890
60819
  }];
60891
60820
  };
60821
+ floriday_trade_settings_customers_cache: {
60822
+ Row: {
60823
+ connection_id: string;
60824
+ data: import("../integrations/supabase/types").Json;
60825
+ fetched_at: string;
60826
+ floriday_id: string;
60827
+ id: string;
60828
+ is_deleted: boolean;
60829
+ sequence_number: number;
60830
+ updated_at: string;
60831
+ };
60832
+ Insert: {
60833
+ connection_id: string;
60834
+ data: import("../integrations/supabase/types").Json;
60835
+ fetched_at?: string;
60836
+ floriday_id: string;
60837
+ id?: string;
60838
+ is_deleted?: boolean;
60839
+ sequence_number?: number;
60840
+ updated_at?: string;
60841
+ };
60842
+ Update: {
60843
+ connection_id?: string;
60844
+ data?: import("../integrations/supabase/types").Json;
60845
+ fetched_at?: string;
60846
+ floriday_id?: string;
60847
+ id?: string;
60848
+ is_deleted?: boolean;
60849
+ sequence_number?: number;
60850
+ updated_at?: string;
60851
+ };
60852
+ Relationships: [{
60853
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
60854
+ columns: ["connection_id"];
60855
+ isOneToOne: false;
60856
+ referencedRelation: "floriday_connections";
60857
+ referencedColumns: ["id"];
60858
+ }];
60859
+ };
60892
60860
  floriday_trips_cache: {
60893
60861
  Row: {
60894
60862
  carrier_organization_id: string | null;
@@ -60937,6 +60905,27 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
60937
60905
  referencedColumns: ["id"];
60938
60906
  }];
60939
60907
  };
60908
+ floriday_vbn_required_characteristics: {
60909
+ Row: {
60910
+ required_codes: string[];
60911
+ updated_at: string;
60912
+ updated_by: string | null;
60913
+ vbn_code: string;
60914
+ };
60915
+ Insert: {
60916
+ required_codes?: string[];
60917
+ updated_at?: string;
60918
+ updated_by?: string | null;
60919
+ vbn_code: string;
60920
+ };
60921
+ Update: {
60922
+ required_codes?: string[];
60923
+ updated_at?: string;
60924
+ updated_by?: string | null;
60925
+ vbn_code?: string;
60926
+ };
60927
+ Relationships: [];
60928
+ };
60940
60929
  floriday_warehouses_cache: {
60941
60930
  Row: {
60942
60931
  connection_id: string;
@@ -65910,9 +65899,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
65910
65899
  };
65911
65900
  twinfield_connections: {
65912
65901
  Row: {
65913
- access_token: string | null;
65914
- client_id: string;
65915
- client_secret: string | null;
65902
+ account_key: string | null;
65916
65903
  cluster_uri: string | null;
65917
65904
  company_code: string | null;
65918
65905
  company_name: string | null;
@@ -65923,16 +65910,12 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
65923
65910
  is_active: boolean;
65924
65911
  label: string | null;
65925
65912
  office_code: string | null;
65926
- redirect_uri: string;
65927
- refresh_token: string | null;
65928
- token_expires_at: string | null;
65913
+ redirect_uri: string | null;
65929
65914
  updated_at: string;
65930
65915
  user_id: string;
65931
65916
  };
65932
65917
  Insert: {
65933
- access_token?: string | null;
65934
- client_id: string;
65935
- client_secret?: string | null;
65918
+ account_key?: string | null;
65936
65919
  cluster_uri?: string | null;
65937
65920
  company_code?: string | null;
65938
65921
  company_name?: string | null;
@@ -65943,16 +65926,12 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
65943
65926
  is_active?: boolean;
65944
65927
  label?: string | null;
65945
65928
  office_code?: string | null;
65946
- redirect_uri: string;
65947
- refresh_token?: string | null;
65948
- token_expires_at?: string | null;
65929
+ redirect_uri?: string | null;
65949
65930
  updated_at?: string;
65950
65931
  user_id: string;
65951
65932
  };
65952
65933
  Update: {
65953
- access_token?: string | null;
65954
- client_id?: string;
65955
- client_secret?: string | null;
65934
+ account_key?: string | null;
65956
65935
  cluster_uri?: string | null;
65957
65936
  company_code?: string | null;
65958
65937
  company_name?: string | null;
@@ -65963,54 +65942,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
65963
65942
  is_active?: boolean;
65964
65943
  label?: string | null;
65965
65944
  office_code?: string | null;
65966
- redirect_uri?: string;
65967
- refresh_token?: string | null;
65968
- token_expires_at?: string | null;
65969
- updated_at?: string;
65970
- user_id?: string;
65971
- };
65972
- Relationships: [];
65973
- };
65974
- twinfield_credentials: {
65975
- Row: {
65976
- administration_code: string | null;
65977
- client_id: string | null;
65978
- client_secret: string | null;
65979
- cluster: string | null;
65980
- connected_at: string | null;
65981
- created_at: string;
65982
- environment: string | null;
65983
- id: string;
65984
- redirect_uri: string | null;
65985
- refresh_token: string | null;
65986
- updated_at: string;
65987
- user_id: string;
65988
- };
65989
- Insert: {
65990
- administration_code?: string | null;
65991
- client_id?: string | null;
65992
- client_secret?: string | null;
65993
- cluster?: string | null;
65994
- connected_at?: string | null;
65995
- created_at?: string;
65996
- environment?: string | null;
65997
- id?: string;
65998
- redirect_uri?: string | null;
65999
- refresh_token?: string | null;
66000
- updated_at?: string;
66001
- user_id: string;
66002
- };
66003
- Update: {
66004
- administration_code?: string | null;
66005
- client_id?: string | null;
66006
- client_secret?: string | null;
66007
- cluster?: string | null;
66008
- connected_at?: string | null;
66009
- created_at?: string;
66010
- environment?: string | null;
66011
- id?: string;
66012
65945
  redirect_uri?: string | null;
66013
- refresh_token?: string | null;
66014
65946
  updated_at?: string;
66015
65947
  user_id?: string;
66016
65948
  };
@@ -66457,12 +66389,15 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
66457
66389
  currency: string | null;
66458
66390
  customer_code: string | null;
66459
66391
  data: import("../integrations/supabase/types").Json;
66392
+ deleted_at: string | null;
66460
66393
  due_date: string | null;
66461
66394
  fetched_at: string;
66462
66395
  invoice_date: string | null;
66463
66396
  invoice_number: string;
66397
+ lines_fetched_at: string | null;
66464
66398
  modified_at: string | null;
66465
66399
  outstanding_amount: number | null;
66400
+ paid_at: string | null;
66466
66401
  status: string | null;
66467
66402
  status_label: string | null;
66468
66403
  total_excl: number | null;
@@ -66474,12 +66409,15 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
66474
66409
  currency?: string | null;
66475
66410
  customer_code?: string | null;
66476
66411
  data?: import("../integrations/supabase/types").Json;
66412
+ deleted_at?: string | null;
66477
66413
  due_date?: string | null;
66478
66414
  fetched_at?: string;
66479
66415
  invoice_date?: string | null;
66480
66416
  invoice_number: string;
66417
+ lines_fetched_at?: string | null;
66481
66418
  modified_at?: string | null;
66482
66419
  outstanding_amount?: number | null;
66420
+ paid_at?: string | null;
66483
66421
  status?: string | null;
66484
66422
  status_label?: string | null;
66485
66423
  total_excl?: number | null;
@@ -66491,12 +66429,15 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
66491
66429
  currency?: string | null;
66492
66430
  customer_code?: string | null;
66493
66431
  data?: import("../integrations/supabase/types").Json;
66432
+ deleted_at?: string | null;
66494
66433
  due_date?: string | null;
66495
66434
  fetched_at?: string;
66496
66435
  invoice_date?: string | null;
66497
66436
  invoice_number?: string;
66437
+ lines_fetched_at?: string | null;
66498
66438
  modified_at?: string | null;
66499
66439
  outstanding_amount?: number | null;
66440
+ paid_at?: string | null;
66500
66441
  status?: string | null;
66501
66442
  status_label?: string | null;
66502
66443
  total_excl?: number | null;
@@ -66511,30 +66452,6 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
66511
66452
  referencedColumns: ["id"];
66512
66453
  }];
66513
66454
  };
66514
- twinfield_oauth_state: {
66515
- Row: {
66516
- created_at: string;
66517
- environment: string;
66518
- nonce: string | null;
66519
- state: string;
66520
- user_id: string;
66521
- };
66522
- Insert: {
66523
- created_at?: string;
66524
- environment: string;
66525
- nonce?: string | null;
66526
- state: string;
66527
- user_id: string;
66528
- };
66529
- Update: {
66530
- created_at?: string;
66531
- environment?: string;
66532
- nonce?: string | null;
66533
- state?: string;
66534
- user_id?: string;
66535
- };
66536
- Relationships: [];
66537
- };
66538
66455
  twinfield_push_queue: {
66539
66456
  Row: {
66540
66457
  action: string;
@@ -66700,39 +66617,6 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
66700
66617
  referencedColumns: ["id"];
66701
66618
  }];
66702
66619
  };
66703
- twinfield_token_refresh_log: {
66704
- Row: {
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
- Insert: {
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
- Update: {
66721
- attempted_at?: string;
66722
- connection_id?: string;
66723
- error?: string | null;
66724
- expires_at?: string | null;
66725
- id?: string;
66726
- ok?: boolean;
66727
- };
66728
- Relationships: [{
66729
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
66730
- columns: ["connection_id"];
66731
- isOneToOne: false;
66732
- referencedRelation: "twinfield_connections";
66733
- referencedColumns: ["id"];
66734
- }];
66735
- };
66736
66620
  user_roles: {
66737
66621
  Row: {
66738
66622
  created_at: string;
@@ -69173,15 +69057,16 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
69173
69057
  };
69174
69058
  Returns: undefined;
69175
69059
  };
69176
- twinfield_decrypt: {
69060
+ twinfield_upsert_connection_by_account_key: {
69177
69061
  Args: {
69178
- cipher: string;
69179
- };
69180
- Returns: string;
69181
- };
69182
- twinfield_encrypt: {
69183
- Args: {
69184
- plain: string;
69062
+ p_account_key: string;
69063
+ p_cluster_uri?: string;
69064
+ p_company_code?: string;
69065
+ p_company_name?: string;
69066
+ p_environment: string;
69067
+ p_office_code?: string;
69068
+ p_status?: string;
69069
+ p_user_id: string;
69185
69070
  };
69186
69071
  Returns: string;
69187
69072
  };