@flowselections/floriday-afhandeling-module 1.0.6 → 1.0.7

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 (30) hide show
  1. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/LeveringenPage.js +23 -2
  3. package/dist-lib/components/afhandeling/VervoerderForm.d.ts +6 -0
  4. package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -0
  5. package/dist-lib/components/afhandeling/VervoerderForm.js +136 -0
  6. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts +2 -0
  7. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -0
  8. package/dist-lib/components/afhandeling/VervoerdersPage.js +41 -0
  9. package/dist-lib/index.d.ts +1 -0
  10. package/dist-lib/index.d.ts.map +1 -1
  11. package/dist-lib/index.js +5 -3
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1288 -21
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/client.d.ts +1288 -21
  15. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.server.d.ts +1288 -21
  17. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/types.d.ts +1299 -7
  19. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/types.js +10 -0
  21. package/dist-lib/lib/carriers.functions.d.ts +20428 -0
  22. package/dist-lib/lib/carriers.functions.d.ts.map +1 -0
  23. package/dist-lib/lib/carriers.functions.js +131 -0
  24. package/dist-lib/lib/countries.d.ts +7 -0
  25. package/dist-lib/lib/countries.d.ts.map +1 -0
  26. package/dist-lib/lib/countries.js +47 -0
  27. package/dist-lib/lib/floriday.functions.d.ts +1290 -22
  28. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday.functions.js +4 -5
  30. package/package.json +8 -3
@@ -224,6 +224,84 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
224
224
  };
225
225
  Relationships: [];
226
226
  };
227
+ carrier_shipping_rates: {
228
+ Row: {
229
+ carrier_id: string;
230
+ country_code: string;
231
+ created_at: string;
232
+ id: string;
233
+ price_per_trolley: number;
234
+ };
235
+ Insert: {
236
+ carrier_id: string;
237
+ country_code: string;
238
+ created_at?: string;
239
+ id?: string;
240
+ price_per_trolley: number;
241
+ };
242
+ Update: {
243
+ carrier_id?: string;
244
+ country_code?: string;
245
+ created_at?: string;
246
+ id?: string;
247
+ price_per_trolley?: number;
248
+ };
249
+ Relationships: [{
250
+ foreignKeyName: "carrier_shipping_rates_carrier_id_fkey";
251
+ columns: ["carrier_id"];
252
+ isOneToOne: false;
253
+ referencedRelation: "carriers";
254
+ referencedColumns: ["id"];
255
+ }];
256
+ };
257
+ carriers: {
258
+ Row: {
259
+ address: string | null;
260
+ contact_person: string | null;
261
+ created_at: string;
262
+ delivery_days: number | null;
263
+ email: string | null;
264
+ id: string;
265
+ name: string;
266
+ notes: string | null;
267
+ phone: string | null;
268
+ signup_time_1: string | null;
269
+ signup_time_2: string | null;
270
+ updated_at: string;
271
+ user_id: string;
272
+ };
273
+ Insert: {
274
+ address?: string | null;
275
+ contact_person?: string | null;
276
+ created_at?: string;
277
+ delivery_days?: number | null;
278
+ email?: string | null;
279
+ id?: string;
280
+ name: string;
281
+ notes?: string | null;
282
+ phone?: string | null;
283
+ signup_time_1?: string | null;
284
+ signup_time_2?: string | null;
285
+ updated_at?: string;
286
+ user_id: string;
287
+ };
288
+ Update: {
289
+ address?: string | null;
290
+ contact_person?: string | null;
291
+ created_at?: string;
292
+ delivery_days?: number | null;
293
+ email?: string | null;
294
+ id?: string;
295
+ name?: string;
296
+ notes?: string | null;
297
+ phone?: string | null;
298
+ signup_time_1?: string | null;
299
+ signup_time_2?: string | null;
300
+ updated_at?: string;
301
+ user_id?: string;
302
+ };
303
+ Relationships: [];
304
+ };
227
305
  collections: {
228
306
  Row: {
229
307
  created_at: string;
@@ -932,6 +1010,99 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
932
1010
  };
933
1011
  Relationships: [];
934
1012
  };
1013
+ email_auth_connections: {
1014
+ Row: {
1015
+ access_token_encrypted: string | null;
1016
+ account_email: string | null;
1017
+ client_id_encrypted: string | null;
1018
+ client_secret_encrypted: string | null;
1019
+ created_at: string;
1020
+ created_by: string | null;
1021
+ display_name: string | null;
1022
+ id: string;
1023
+ imap_host: string | null;
1024
+ imap_password_encrypted: string | null;
1025
+ imap_port: number | null;
1026
+ imap_secure: boolean | null;
1027
+ imap_username: string | null;
1028
+ is_active: boolean;
1029
+ last_error: string | null;
1030
+ last_verified_at: string | null;
1031
+ oauth_mode: string | null;
1032
+ provider: string;
1033
+ refresh_token_encrypted: string | null;
1034
+ scopes: string[] | null;
1035
+ smtp_host: string | null;
1036
+ smtp_password_encrypted: string | null;
1037
+ smtp_port: number | null;
1038
+ smtp_secure: boolean | null;
1039
+ smtp_username: string | null;
1040
+ status: string;
1041
+ token_expires_at: string | null;
1042
+ updated_at: string;
1043
+ };
1044
+ Insert: {
1045
+ access_token_encrypted?: string | null;
1046
+ account_email?: string | null;
1047
+ client_id_encrypted?: string | null;
1048
+ client_secret_encrypted?: string | null;
1049
+ created_at?: string;
1050
+ created_by?: string | null;
1051
+ display_name?: string | null;
1052
+ id?: string;
1053
+ imap_host?: string | null;
1054
+ imap_password_encrypted?: string | null;
1055
+ imap_port?: number | null;
1056
+ imap_secure?: boolean | null;
1057
+ imap_username?: string | null;
1058
+ is_active?: boolean;
1059
+ last_error?: string | null;
1060
+ last_verified_at?: string | null;
1061
+ oauth_mode?: string | null;
1062
+ provider: string;
1063
+ refresh_token_encrypted?: string | null;
1064
+ scopes?: string[] | null;
1065
+ smtp_host?: string | null;
1066
+ smtp_password_encrypted?: string | null;
1067
+ smtp_port?: number | null;
1068
+ smtp_secure?: boolean | null;
1069
+ smtp_username?: string | null;
1070
+ status?: string;
1071
+ token_expires_at?: string | null;
1072
+ updated_at?: string;
1073
+ };
1074
+ Update: {
1075
+ access_token_encrypted?: string | null;
1076
+ account_email?: string | null;
1077
+ client_id_encrypted?: string | null;
1078
+ client_secret_encrypted?: string | null;
1079
+ created_at?: string;
1080
+ created_by?: string | null;
1081
+ display_name?: string | null;
1082
+ id?: string;
1083
+ imap_host?: string | null;
1084
+ imap_password_encrypted?: string | null;
1085
+ imap_port?: number | null;
1086
+ imap_secure?: boolean | null;
1087
+ imap_username?: string | null;
1088
+ is_active?: boolean;
1089
+ last_error?: string | null;
1090
+ last_verified_at?: string | null;
1091
+ oauth_mode?: string | null;
1092
+ provider?: string;
1093
+ refresh_token_encrypted?: string | null;
1094
+ scopes?: string[] | null;
1095
+ smtp_host?: string | null;
1096
+ smtp_password_encrypted?: string | null;
1097
+ smtp_port?: number | null;
1098
+ smtp_secure?: boolean | null;
1099
+ smtp_username?: string | null;
1100
+ status?: string;
1101
+ token_expires_at?: string | null;
1102
+ updated_at?: string;
1103
+ };
1104
+ Relationships: [];
1105
+ };
935
1106
  exact_account_analytics_cache: {
936
1107
  Row: {
937
1108
  account_id: string;
@@ -1290,11 +1461,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1290
1461
  address_line1: string | null;
1291
1462
  address_line2: string | null;
1292
1463
  balance: number | null;
1464
+ chamber_of_commerce: string | null;
1293
1465
  city: string | null;
1466
+ classification_description: string | null;
1294
1467
  connection_id: string;
1295
1468
  contact_name: string | null;
1296
1469
  country: string | null;
1470
+ created_at_exact: string | null;
1297
1471
  credit_line: number | null;
1472
+ currency: string | null;
1298
1473
  data_raw: import("./types").Json | null;
1299
1474
  email: string | null;
1300
1475
  exact_id: string;
@@ -1303,12 +1478,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1303
1478
  id: string;
1304
1479
  is_sales: boolean | null;
1305
1480
  is_supplier: boolean | null;
1481
+ language: string | null;
1482
+ modified_at_exact: string | null;
1483
+ payment_condition_description: string | null;
1484
+ payment_condition_sales: string | null;
1306
1485
  phone: string | null;
1307
1486
  postal_code: string | null;
1487
+ remarks: string | null;
1308
1488
  search_text: string | null;
1309
1489
  status: string | null;
1310
1490
  updated_at: string;
1311
1491
  vat_number: string | null;
1492
+ website: string | null;
1312
1493
  };
1313
1494
  Insert: {
1314
1495
  account_name?: string | null;
@@ -1316,11 +1497,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1316
1497
  address_line1?: string | null;
1317
1498
  address_line2?: string | null;
1318
1499
  balance?: number | null;
1500
+ chamber_of_commerce?: string | null;
1319
1501
  city?: string | null;
1502
+ classification_description?: string | null;
1320
1503
  connection_id: string;
1321
1504
  contact_name?: string | null;
1322
1505
  country?: string | null;
1506
+ created_at_exact?: string | null;
1323
1507
  credit_line?: number | null;
1508
+ currency?: string | null;
1324
1509
  data_raw?: import("./types").Json | null;
1325
1510
  email?: string | null;
1326
1511
  exact_id: string;
@@ -1329,12 +1514,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1329
1514
  id?: string;
1330
1515
  is_sales?: boolean | null;
1331
1516
  is_supplier?: boolean | null;
1517
+ language?: string | null;
1518
+ modified_at_exact?: string | null;
1519
+ payment_condition_description?: string | null;
1520
+ payment_condition_sales?: string | null;
1332
1521
  phone?: string | null;
1333
1522
  postal_code?: string | null;
1523
+ remarks?: string | null;
1334
1524
  search_text?: string | null;
1335
1525
  status?: string | null;
1336
1526
  updated_at?: string;
1337
1527
  vat_number?: string | null;
1528
+ website?: string | null;
1338
1529
  };
1339
1530
  Update: {
1340
1531
  account_name?: string | null;
@@ -1342,11 +1533,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1342
1533
  address_line1?: string | null;
1343
1534
  address_line2?: string | null;
1344
1535
  balance?: number | null;
1536
+ chamber_of_commerce?: string | null;
1345
1537
  city?: string | null;
1538
+ classification_description?: string | null;
1346
1539
  connection_id?: string;
1347
1540
  contact_name?: string | null;
1348
1541
  country?: string | null;
1542
+ created_at_exact?: string | null;
1349
1543
  credit_line?: number | null;
1544
+ currency?: string | null;
1350
1545
  data_raw?: import("./types").Json | null;
1351
1546
  email?: string | null;
1352
1547
  exact_id?: string;
@@ -1355,12 +1550,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1355
1550
  id?: string;
1356
1551
  is_sales?: boolean | null;
1357
1552
  is_supplier?: boolean | null;
1553
+ language?: string | null;
1554
+ modified_at_exact?: string | null;
1555
+ payment_condition_description?: string | null;
1556
+ payment_condition_sales?: string | null;
1358
1557
  phone?: string | null;
1359
1558
  postal_code?: string | null;
1559
+ remarks?: string | null;
1360
1560
  search_text?: string | null;
1361
1561
  status?: string | null;
1362
1562
  updated_at?: string;
1363
1563
  vat_number?: string | null;
1564
+ website?: string | null;
1364
1565
  };
1365
1566
  Relationships: [{
1366
1567
  foreignKeyName: "exact_customers_cache_connection_id_fkey";
@@ -1496,6 +1697,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1496
1697
  connection_id: string;
1497
1698
  data_raw: import("./types").Json | null;
1498
1699
  due_date: string | null;
1700
+ entry_id: string | null;
1499
1701
  exact_id: string;
1500
1702
  expires_at: string | null;
1501
1703
  fetched_at: string;
@@ -1521,6 +1723,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1521
1723
  connection_id: string;
1522
1724
  data_raw?: import("./types").Json | null;
1523
1725
  due_date?: string | null;
1726
+ entry_id?: string | null;
1524
1727
  exact_id: string;
1525
1728
  expires_at?: string | null;
1526
1729
  fetched_at?: string;
@@ -1546,6 +1749,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1546
1749
  connection_id?: string;
1547
1750
  data_raw?: import("./types").Json | null;
1548
1751
  due_date?: string | null;
1752
+ entry_id?: string | null;
1549
1753
  exact_id?: string;
1550
1754
  expires_at?: string | null;
1551
1755
  fetched_at?: string;
@@ -1622,6 +1826,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1622
1826
  referencedColumns: ["id"];
1623
1827
  }];
1624
1828
  };
1829
+ exact_refresh_locks: {
1830
+ Row: {
1831
+ environment: Database["public"]["Enums"]["exact_env"];
1832
+ locked_by: string;
1833
+ locked_until: string;
1834
+ updated_at: string;
1835
+ };
1836
+ Insert: {
1837
+ environment: Database["public"]["Enums"]["exact_env"];
1838
+ locked_by: string;
1839
+ locked_until: string;
1840
+ updated_at?: string;
1841
+ };
1842
+ Update: {
1843
+ environment?: Database["public"]["Enums"]["exact_env"];
1844
+ locked_by?: string;
1845
+ locked_until?: string;
1846
+ updated_at?: string;
1847
+ };
1848
+ Relationships: [];
1849
+ };
1625
1850
  exact_sync_state: {
1626
1851
  Row: {
1627
1852
  connection_id: string;
@@ -1796,6 +2021,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1796
2021
  };
1797
2022
  Relationships: [];
1798
2023
  };
2024
+ floriday_connections_cache: {
2025
+ Row: {
2026
+ buyer_organization_id: string | null;
2027
+ buyer_organization_name: string | null;
2028
+ connection_id: string;
2029
+ data: import("./types").Json;
2030
+ floriday_connection_id: string;
2031
+ is_deleted: boolean;
2032
+ sequence_number: number;
2033
+ status: string | null;
2034
+ synced_at: string;
2035
+ };
2036
+ Insert: {
2037
+ buyer_organization_id?: string | null;
2038
+ buyer_organization_name?: string | null;
2039
+ connection_id: string;
2040
+ data: import("./types").Json;
2041
+ floriday_connection_id: string;
2042
+ is_deleted?: boolean;
2043
+ sequence_number: number;
2044
+ status?: string | null;
2045
+ synced_at?: string;
2046
+ };
2047
+ Update: {
2048
+ buyer_organization_id?: string | null;
2049
+ buyer_organization_name?: string | null;
2050
+ connection_id?: string;
2051
+ data?: import("./types").Json;
2052
+ floriday_connection_id?: string;
2053
+ is_deleted?: boolean;
2054
+ sequence_number?: number;
2055
+ status?: string | null;
2056
+ synced_at?: string;
2057
+ };
2058
+ Relationships: [{
2059
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
2060
+ columns: ["connection_id"];
2061
+ isOneToOne: false;
2062
+ referencedRelation: "floriday_connections";
2063
+ referencedColumns: ["id"];
2064
+ }];
2065
+ };
1799
2066
  floriday_customers_cache: {
1800
2067
  Row: {
1801
2068
  connection_id: string | null;
@@ -1880,6 +2147,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1880
2147
  };
1881
2148
  Relationships: [];
1882
2149
  };
2150
+ floriday_salesorders_cache: {
2151
+ Row: {
2152
+ buyer_organization_id: string | null;
2153
+ connection_id: string;
2154
+ created_at: string;
2155
+ data: import("./types").Json;
2156
+ floriday_id: string;
2157
+ is_deleted: boolean;
2158
+ sequence_number: number;
2159
+ status: string | null;
2160
+ updated_at: string;
2161
+ };
2162
+ Insert: {
2163
+ buyer_organization_id?: string | null;
2164
+ connection_id: string;
2165
+ created_at?: string;
2166
+ data: import("./types").Json;
2167
+ floriday_id: string;
2168
+ is_deleted?: boolean;
2169
+ sequence_number: number;
2170
+ status?: string | null;
2171
+ updated_at?: string;
2172
+ };
2173
+ Update: {
2174
+ buyer_organization_id?: string | null;
2175
+ connection_id?: string;
2176
+ created_at?: string;
2177
+ data?: import("./types").Json;
2178
+ floriday_id?: string;
2179
+ is_deleted?: boolean;
2180
+ sequence_number?: number;
2181
+ status?: string | null;
2182
+ updated_at?: string;
2183
+ };
2184
+ Relationships: [{
2185
+ foreignKeyName: "floriday_salesorders_cache_connection_id_fkey";
2186
+ columns: ["connection_id"];
2187
+ isOneToOne: false;
2188
+ referencedRelation: "floriday_connections";
2189
+ referencedColumns: ["id"];
2190
+ }];
2191
+ };
1883
2192
  floriday_settings: {
1884
2193
  Row: {
1885
2194
  active_environment: string;
@@ -1898,6 +2207,108 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1898
2207
  };
1899
2208
  Relationships: [];
1900
2209
  };
2210
+ floriday_sync_state: {
2211
+ Row: {
2212
+ connection_id: string;
2213
+ entity_type: string;
2214
+ last_error: string | null;
2215
+ last_sequence_number: number;
2216
+ last_synced_at: string | null;
2217
+ updated_at: string;
2218
+ };
2219
+ Insert: {
2220
+ connection_id: string;
2221
+ entity_type: string;
2222
+ last_error?: string | null;
2223
+ last_sequence_number?: number;
2224
+ last_synced_at?: string | null;
2225
+ updated_at?: string;
2226
+ };
2227
+ Update: {
2228
+ connection_id?: string;
2229
+ entity_type?: string;
2230
+ last_error?: string | null;
2231
+ last_sequence_number?: number;
2232
+ last_synced_at?: string | null;
2233
+ updated_at?: string;
2234
+ };
2235
+ Relationships: [{
2236
+ foreignKeyName: "floriday_sync_state_connection_id_fkey";
2237
+ columns: ["connection_id"];
2238
+ isOneToOne: false;
2239
+ referencedRelation: "floriday_connections";
2240
+ referencedColumns: ["id"];
2241
+ }];
2242
+ };
2243
+ floriday_token_refresh_log: {
2244
+ Row: {
2245
+ attempted_at: string;
2246
+ connection_id: string | null;
2247
+ environment: string;
2248
+ error: string | null;
2249
+ expires_at: string | null;
2250
+ id: string;
2251
+ ok: boolean;
2252
+ };
2253
+ Insert: {
2254
+ attempted_at?: string;
2255
+ connection_id?: string | null;
2256
+ environment: string;
2257
+ error?: string | null;
2258
+ expires_at?: string | null;
2259
+ id?: string;
2260
+ ok: boolean;
2261
+ };
2262
+ Update: {
2263
+ attempted_at?: string;
2264
+ connection_id?: string | null;
2265
+ environment?: string;
2266
+ error?: string | null;
2267
+ expires_at?: string | null;
2268
+ id?: string;
2269
+ ok?: boolean;
2270
+ };
2271
+ Relationships: [{
2272
+ foreignKeyName: "floriday_token_refresh_log_connection_id_fkey";
2273
+ columns: ["connection_id"];
2274
+ isOneToOne: false;
2275
+ referencedRelation: "floriday_connections";
2276
+ referencedColumns: ["id"];
2277
+ }];
2278
+ };
2279
+ floriday_trade_items_cache: {
2280
+ Row: {
2281
+ connection_id: string;
2282
+ data: import("./types").Json;
2283
+ fetched_at: string;
2284
+ floriday_id: string;
2285
+ is_deleted: boolean;
2286
+ sequence_number: number;
2287
+ };
2288
+ Insert: {
2289
+ connection_id: string;
2290
+ data?: import("./types").Json;
2291
+ fetched_at?: string;
2292
+ floriday_id: string;
2293
+ is_deleted?: boolean;
2294
+ sequence_number?: number;
2295
+ };
2296
+ Update: {
2297
+ connection_id?: string;
2298
+ data?: import("./types").Json;
2299
+ fetched_at?: string;
2300
+ floriday_id?: string;
2301
+ is_deleted?: boolean;
2302
+ sequence_number?: number;
2303
+ };
2304
+ Relationships: [{
2305
+ foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
2306
+ columns: ["connection_id"];
2307
+ isOneToOne: false;
2308
+ referencedRelation: "floriday_connections";
2309
+ referencedColumns: ["id"];
2310
+ }];
2311
+ };
1901
2312
  imap_accounts: {
1902
2313
  Row: {
1903
2314
  created_at: string;
@@ -3527,35 +3938,197 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3527
3938
  referencedColumns: ["id"];
3528
3939
  }];
3529
3940
  };
3530
- quote_items: {
3941
+ quote_activities: {
3531
3942
  Row: {
3532
3943
  created_at: string;
3533
- description: string;
3944
+ event_type: string;
3534
3945
  id: string;
3535
- quantity: number;
3946
+ metadata: import("./types").Json;
3536
3947
  quote_id: string;
3537
- sort_order: number;
3538
- unit_price: number;
3948
+ user_id: string | null;
3539
3949
  };
3540
3950
  Insert: {
3541
3951
  created_at?: string;
3542
- description?: string;
3952
+ event_type: string;
3543
3953
  id?: string;
3544
- quantity?: number;
3954
+ metadata?: import("./types").Json;
3545
3955
  quote_id: string;
3546
- sort_order?: number;
3547
- unit_price?: number;
3956
+ user_id?: string | null;
3548
3957
  };
3549
3958
  Update: {
3959
+ created_at?: string;
3960
+ event_type?: string;
3961
+ id?: string;
3962
+ metadata?: import("./types").Json;
3963
+ quote_id?: string;
3964
+ user_id?: string | null;
3965
+ };
3966
+ Relationships: [{
3967
+ foreignKeyName: "quote_activities_quote_id_fkey";
3968
+ columns: ["quote_id"];
3969
+ isOneToOne: false;
3970
+ referencedRelation: "quotes";
3971
+ referencedColumns: ["id"];
3972
+ }];
3973
+ };
3974
+ quote_attachments: {
3975
+ Row: {
3976
+ created_at: string;
3977
+ file_name: string;
3978
+ file_size: number | null;
3979
+ file_url: string;
3980
+ id: string;
3981
+ mime_type: string | null;
3982
+ quote_id: string;
3983
+ };
3984
+ Insert: {
3985
+ created_at?: string;
3986
+ file_name: string;
3987
+ file_size?: number | null;
3988
+ file_url: string;
3989
+ id?: string;
3990
+ mime_type?: string | null;
3991
+ quote_id: string;
3992
+ };
3993
+ Update: {
3994
+ created_at?: string;
3995
+ file_name?: string;
3996
+ file_size?: number | null;
3997
+ file_url?: string;
3998
+ id?: string;
3999
+ mime_type?: string | null;
4000
+ quote_id?: string;
4001
+ };
4002
+ Relationships: [{
4003
+ foreignKeyName: "quote_attachments_quote_id_fkey";
4004
+ columns: ["quote_id"];
4005
+ isOneToOne: false;
4006
+ referencedRelation: "quotes";
4007
+ referencedColumns: ["id"];
4008
+ }];
4009
+ };
4010
+ quote_field_options: {
4011
+ Row: {
4012
+ created_at: string;
4013
+ field_id: string;
4014
+ id: string;
4015
+ label: string;
4016
+ sort_order: number;
4017
+ value: string;
4018
+ };
4019
+ Insert: {
4020
+ created_at?: string;
4021
+ field_id: string;
4022
+ id?: string;
4023
+ label: string;
4024
+ sort_order?: number;
4025
+ value: string;
4026
+ };
4027
+ Update: {
4028
+ created_at?: string;
4029
+ field_id?: string;
4030
+ id?: string;
4031
+ label?: string;
4032
+ sort_order?: number;
4033
+ value?: string;
4034
+ };
4035
+ Relationships: [{
4036
+ foreignKeyName: "quote_field_options_field_id_fkey";
4037
+ columns: ["field_id"];
4038
+ isOneToOne: false;
4039
+ referencedRelation: "quote_field_settings";
4040
+ referencedColumns: ["id"];
4041
+ }];
4042
+ };
4043
+ quote_field_settings: {
4044
+ Row: {
4045
+ created_at: string;
4046
+ default_value: string | null;
4047
+ field_key: string;
4048
+ field_type: string;
4049
+ id: string;
4050
+ is_system: boolean;
4051
+ label: string;
4052
+ required: boolean;
4053
+ sort_order: number;
4054
+ updated_at: string;
4055
+ visible: boolean;
4056
+ };
4057
+ Insert: {
4058
+ created_at?: string;
4059
+ default_value?: string | null;
4060
+ field_key: string;
4061
+ field_type: string;
4062
+ id?: string;
4063
+ is_system?: boolean;
4064
+ label: string;
4065
+ required?: boolean;
4066
+ sort_order?: number;
4067
+ updated_at?: string;
4068
+ visible?: boolean;
4069
+ };
4070
+ Update: {
4071
+ created_at?: string;
4072
+ default_value?: string | null;
4073
+ field_key?: string;
4074
+ field_type?: string;
4075
+ id?: string;
4076
+ is_system?: boolean;
4077
+ label?: string;
4078
+ required?: boolean;
4079
+ sort_order?: number;
4080
+ updated_at?: string;
4081
+ visible?: boolean;
4082
+ };
4083
+ Relationships: [];
4084
+ };
4085
+ quote_items: {
4086
+ Row: {
4087
+ category: string | null;
4088
+ created_at: string;
4089
+ description: string;
4090
+ id: string;
4091
+ line_total: number;
4092
+ module_id: string | null;
4093
+ name: string | null;
4094
+ quantity: number;
4095
+ quote_id: string;
4096
+ sort_order: number;
4097
+ unit_price: number;
4098
+ };
4099
+ Insert: {
4100
+ category?: string | null;
4101
+ created_at?: string;
4102
+ description?: string;
4103
+ id?: string;
4104
+ line_total?: number;
4105
+ module_id?: string | null;
4106
+ name?: string | null;
4107
+ quantity?: number;
4108
+ quote_id: string;
4109
+ sort_order?: number;
4110
+ unit_price?: number;
4111
+ };
4112
+ Update: {
4113
+ category?: string | null;
3550
4114
  created_at?: string;
3551
4115
  description?: string;
3552
4116
  id?: string;
4117
+ line_total?: number;
4118
+ module_id?: string | null;
4119
+ name?: string | null;
3553
4120
  quantity?: number;
3554
4121
  quote_id?: string;
3555
4122
  sort_order?: number;
3556
4123
  unit_price?: number;
3557
4124
  };
3558
4125
  Relationships: [{
4126
+ foreignKeyName: "quote_items_module_id_fkey";
4127
+ columns: ["module_id"];
4128
+ isOneToOne: false;
4129
+ referencedRelation: "quote_modules";
4130
+ referencedColumns: ["id"];
4131
+ }, {
3559
4132
  foreignKeyName: "quote_items_quote_id_fkey";
3560
4133
  columns: ["quote_id"];
3561
4134
  isOneToOne: false;
@@ -3563,46 +4136,250 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3563
4136
  referencedColumns: ["id"];
3564
4137
  }];
3565
4138
  };
4139
+ quote_modules: {
4140
+ Row: {
4141
+ category: string | null;
4142
+ created_at: string;
4143
+ description: string | null;
4144
+ id: string;
4145
+ is_active: boolean;
4146
+ name: string;
4147
+ price: number;
4148
+ sort_order: number;
4149
+ updated_at: string;
4150
+ };
4151
+ Insert: {
4152
+ category?: string | null;
4153
+ created_at?: string;
4154
+ description?: string | null;
4155
+ id?: string;
4156
+ is_active?: boolean;
4157
+ name: string;
4158
+ price?: number;
4159
+ sort_order?: number;
4160
+ updated_at?: string;
4161
+ };
4162
+ Update: {
4163
+ category?: string | null;
4164
+ created_at?: string;
4165
+ description?: string | null;
4166
+ id?: string;
4167
+ is_active?: boolean;
4168
+ name?: string;
4169
+ price?: number;
4170
+ sort_order?: number;
4171
+ updated_at?: string;
4172
+ };
4173
+ Relationships: [];
4174
+ };
4175
+ quote_templates: {
4176
+ Row: {
4177
+ created_at: string;
4178
+ description: string | null;
4179
+ field_values: import("./types").Json;
4180
+ id: string;
4181
+ is_default: boolean;
4182
+ items: import("./types").Json;
4183
+ name: string;
4184
+ updated_at: string;
4185
+ vat_rate: number;
4186
+ };
4187
+ Insert: {
4188
+ created_at?: string;
4189
+ description?: string | null;
4190
+ field_values?: import("./types").Json;
4191
+ id?: string;
4192
+ is_default?: boolean;
4193
+ items?: import("./types").Json;
4194
+ name: string;
4195
+ updated_at?: string;
4196
+ vat_rate?: number;
4197
+ };
4198
+ Update: {
4199
+ created_at?: string;
4200
+ description?: string | null;
4201
+ field_values?: import("./types").Json;
4202
+ id?: string;
4203
+ is_default?: boolean;
4204
+ items?: import("./types").Json;
4205
+ name?: string;
4206
+ updated_at?: string;
4207
+ vat_rate?: number;
4208
+ };
4209
+ Relationships: [];
4210
+ };
4211
+ quote_terms: {
4212
+ Row: {
4213
+ content: string | null;
4214
+ created_at: string;
4215
+ file_url: string | null;
4216
+ id: string;
4217
+ is_active: boolean;
4218
+ name: string;
4219
+ published_at: string | null;
4220
+ updated_at: string;
4221
+ version: string;
4222
+ };
4223
+ Insert: {
4224
+ content?: string | null;
4225
+ created_at?: string;
4226
+ file_url?: string | null;
4227
+ id?: string;
4228
+ is_active?: boolean;
4229
+ name: string;
4230
+ published_at?: string | null;
4231
+ updated_at?: string;
4232
+ version?: string;
4233
+ };
4234
+ Update: {
4235
+ content?: string | null;
4236
+ created_at?: string;
4237
+ file_url?: string | null;
4238
+ id?: string;
4239
+ is_active?: boolean;
4240
+ name?: string;
4241
+ published_at?: string | null;
4242
+ updated_at?: string;
4243
+ version?: string;
4244
+ };
4245
+ Relationships: [];
4246
+ };
3566
4247
  quotes: {
3567
4248
  Row: {
4249
+ accepted_at: string | null;
4250
+ archived_at: string | null;
4251
+ contact_id: string | null;
3568
4252
  created_at: string;
4253
+ customer_id: string | null;
4254
+ discount: number;
4255
+ expires_at: string | null;
4256
+ field_values: import("./types").Json;
3569
4257
  id: string;
3570
4258
  notes: string | null;
4259
+ owner_id: string | null;
4260
+ personal_message: string | null;
4261
+ project_id: string | null;
3571
4262
  prospect_id: string | null;
4263
+ public_token: string;
3572
4264
  quote_number: string | null;
4265
+ recipient_email: string | null;
4266
+ recipient_name: string | null;
4267
+ rejected_at: string | null;
4268
+ sent_at: string | null;
3573
4269
  status: string;
4270
+ subtotal: number;
4271
+ template_id: string | null;
4272
+ terms_id: string | null;
3574
4273
  title: string;
4274
+ total: number;
3575
4275
  updated_at: string;
3576
4276
  valid_until: string | null;
4277
+ vat_amount: number;
4278
+ vat_rate: number;
4279
+ viewed_at: string | null;
3577
4280
  };
3578
4281
  Insert: {
4282
+ accepted_at?: string | null;
4283
+ archived_at?: string | null;
4284
+ contact_id?: string | null;
3579
4285
  created_at?: string;
4286
+ customer_id?: string | null;
4287
+ discount?: number;
4288
+ expires_at?: string | null;
4289
+ field_values?: import("./types").Json;
3580
4290
  id?: string;
3581
4291
  notes?: string | null;
4292
+ owner_id?: string | null;
4293
+ personal_message?: string | null;
4294
+ project_id?: string | null;
3582
4295
  prospect_id?: string | null;
4296
+ public_token?: string;
3583
4297
  quote_number?: string | null;
4298
+ recipient_email?: string | null;
4299
+ recipient_name?: string | null;
4300
+ rejected_at?: string | null;
4301
+ sent_at?: string | null;
3584
4302
  status?: string;
4303
+ subtotal?: number;
4304
+ template_id?: string | null;
4305
+ terms_id?: string | null;
3585
4306
  title?: string;
4307
+ total?: number;
3586
4308
  updated_at?: string;
3587
4309
  valid_until?: string | null;
4310
+ vat_amount?: number;
4311
+ vat_rate?: number;
4312
+ viewed_at?: string | null;
3588
4313
  };
3589
4314
  Update: {
4315
+ accepted_at?: string | null;
4316
+ archived_at?: string | null;
4317
+ contact_id?: string | null;
3590
4318
  created_at?: string;
4319
+ customer_id?: string | null;
4320
+ discount?: number;
4321
+ expires_at?: string | null;
4322
+ field_values?: import("./types").Json;
3591
4323
  id?: string;
3592
4324
  notes?: string | null;
4325
+ owner_id?: string | null;
4326
+ personal_message?: string | null;
4327
+ project_id?: string | null;
3593
4328
  prospect_id?: string | null;
4329
+ public_token?: string;
3594
4330
  quote_number?: string | null;
4331
+ recipient_email?: string | null;
4332
+ recipient_name?: string | null;
4333
+ rejected_at?: string | null;
4334
+ sent_at?: string | null;
3595
4335
  status?: string;
4336
+ subtotal?: number;
4337
+ template_id?: string | null;
4338
+ terms_id?: string | null;
3596
4339
  title?: string;
4340
+ total?: number;
3597
4341
  updated_at?: string;
3598
4342
  valid_until?: string | null;
4343
+ vat_amount?: number;
4344
+ vat_rate?: number;
4345
+ viewed_at?: string | null;
3599
4346
  };
3600
4347
  Relationships: [{
4348
+ foreignKeyName: "quotes_contact_id_fkey";
4349
+ columns: ["contact_id"];
4350
+ isOneToOne: false;
4351
+ referencedRelation: "customer_contacts";
4352
+ referencedColumns: ["id"];
4353
+ }, {
4354
+ foreignKeyName: "quotes_customer_id_fkey";
4355
+ columns: ["customer_id"];
4356
+ isOneToOne: false;
4357
+ referencedRelation: "customers";
4358
+ referencedColumns: ["id"];
4359
+ }, {
4360
+ foreignKeyName: "quotes_project_id_fkey";
4361
+ columns: ["project_id"];
4362
+ isOneToOne: false;
4363
+ referencedRelation: "projects";
4364
+ referencedColumns: ["id"];
4365
+ }, {
3601
4366
  foreignKeyName: "quotes_prospect_id_fkey";
3602
4367
  columns: ["prospect_id"];
3603
4368
  isOneToOne: false;
3604
4369
  referencedRelation: "prospects";
3605
4370
  referencedColumns: ["id"];
4371
+ }, {
4372
+ foreignKeyName: "quotes_template_id_fkey";
4373
+ columns: ["template_id"];
4374
+ isOneToOne: false;
4375
+ referencedRelation: "quote_templates";
4376
+ referencedColumns: ["id"];
4377
+ }, {
4378
+ foreignKeyName: "quotes_terms_id_fkey";
4379
+ columns: ["terms_id"];
4380
+ isOneToOne: false;
4381
+ referencedRelation: "quote_terms";
4382
+ referencedColumns: ["id"];
3606
4383
  }];
3607
4384
  };
3608
4385
  supplier_products: {
@@ -3725,35 +4502,441 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3725
4502
  };
3726
4503
  Relationships: [];
3727
4504
  };
3728
- user_roles: {
4505
+ twinfield_credentials: {
3729
4506
  Row: {
4507
+ administration_code: string | null;
4508
+ client_id: string | null;
4509
+ client_secret: string | null;
4510
+ cluster: string | null;
4511
+ connected_at: string | null;
3730
4512
  created_at: string;
4513
+ environment: string | null;
3731
4514
  id: string;
3732
- role: Database["public"]["Enums"]["app_role"];
4515
+ redirect_uri: string | null;
4516
+ refresh_token: string | null;
4517
+ updated_at: string;
3733
4518
  user_id: string;
3734
4519
  };
3735
4520
  Insert: {
4521
+ administration_code?: string | null;
4522
+ client_id?: string | null;
4523
+ client_secret?: string | null;
4524
+ cluster?: string | null;
4525
+ connected_at?: string | null;
3736
4526
  created_at?: string;
4527
+ environment?: string | null;
3737
4528
  id?: string;
3738
- role: Database["public"]["Enums"]["app_role"];
4529
+ redirect_uri?: string | null;
4530
+ refresh_token?: string | null;
4531
+ updated_at?: string;
3739
4532
  user_id: string;
3740
4533
  };
3741
4534
  Update: {
4535
+ administration_code?: string | null;
4536
+ client_id?: string | null;
4537
+ client_secret?: string | null;
4538
+ cluster?: string | null;
4539
+ connected_at?: string | null;
3742
4540
  created_at?: string;
4541
+ environment?: string | null;
3743
4542
  id?: string;
3744
- role?: Database["public"]["Enums"]["app_role"];
4543
+ redirect_uri?: string | null;
4544
+ refresh_token?: string | null;
4545
+ updated_at?: string;
3745
4546
  user_id?: string;
3746
4547
  };
3747
- Relationships: [{
3748
- foreignKeyName: "user_roles_user_id_fkey";
3749
- columns: ["user_id"];
3750
- isOneToOne: false;
3751
- referencedRelation: "profiles";
3752
- referencedColumns: ["id"];
3753
- }];
4548
+ Relationships: [];
4549
+ };
4550
+ twinfield_customers: {
4551
+ Row: {
4552
+ address: string | null;
4553
+ city: string | null;
4554
+ country: string | null;
4555
+ created_at: string;
4556
+ email: string | null;
4557
+ id: string;
4558
+ last_synced_at: string | null;
4559
+ name: string;
4560
+ phone: string | null;
4561
+ postal_code: string | null;
4562
+ status: string;
4563
+ sync_error: string | null;
4564
+ sync_status: string;
4565
+ twinfield_code: string | null;
4566
+ updated_at: string;
4567
+ user_id: string;
4568
+ };
4569
+ Insert: {
4570
+ address?: string | null;
4571
+ city?: string | null;
4572
+ country?: string | null;
4573
+ created_at?: string;
4574
+ email?: string | null;
4575
+ id?: string;
4576
+ last_synced_at?: string | null;
4577
+ name: string;
4578
+ phone?: string | null;
4579
+ postal_code?: string | null;
4580
+ status?: string;
4581
+ sync_error?: string | null;
4582
+ sync_status?: string;
4583
+ twinfield_code?: string | null;
4584
+ updated_at?: string;
4585
+ user_id: string;
4586
+ };
4587
+ Update: {
4588
+ address?: string | null;
4589
+ city?: string | null;
4590
+ country?: string | null;
4591
+ created_at?: string;
4592
+ email?: string | null;
4593
+ id?: string;
4594
+ last_synced_at?: string | null;
4595
+ name?: string;
4596
+ phone?: string | null;
4597
+ postal_code?: string | null;
4598
+ status?: string;
4599
+ sync_error?: string | null;
4600
+ sync_status?: string;
4601
+ twinfield_code?: string | null;
4602
+ updated_at?: string;
4603
+ user_id?: string;
4604
+ };
4605
+ Relationships: [];
4606
+ };
4607
+ twinfield_invoice_lines: {
4608
+ Row: {
4609
+ article_code: string | null;
4610
+ created_at: string;
4611
+ description: string | null;
4612
+ gl_account: string | null;
4613
+ id: string;
4614
+ invoice_id: string;
4615
+ line_number: number | null;
4616
+ line_total: number;
4617
+ quantity: number;
4618
+ unit_price: number;
4619
+ user_id: string;
4620
+ vat_code: string | null;
4621
+ vat_rate: number;
4622
+ };
4623
+ Insert: {
4624
+ article_code?: string | null;
4625
+ created_at?: string;
4626
+ description?: string | null;
4627
+ gl_account?: string | null;
4628
+ id?: string;
4629
+ invoice_id: string;
4630
+ line_number?: number | null;
4631
+ line_total?: number;
4632
+ quantity?: number;
4633
+ unit_price?: number;
4634
+ user_id: string;
4635
+ vat_code?: string | null;
4636
+ vat_rate?: number;
4637
+ };
4638
+ Update: {
4639
+ article_code?: string | null;
4640
+ created_at?: string;
4641
+ description?: string | null;
4642
+ gl_account?: string | null;
4643
+ id?: string;
4644
+ invoice_id?: string;
4645
+ line_number?: number | null;
4646
+ line_total?: number;
4647
+ quantity?: number;
4648
+ unit_price?: number;
4649
+ user_id?: string;
4650
+ vat_code?: string | null;
4651
+ vat_rate?: number;
4652
+ };
4653
+ Relationships: [{
4654
+ foreignKeyName: "twinfield_invoice_lines_invoice_id_fkey";
4655
+ columns: ["invoice_id"];
4656
+ isOneToOne: false;
4657
+ referencedRelation: "twinfield_invoices";
4658
+ referencedColumns: ["id"];
4659
+ }];
4660
+ };
4661
+ twinfield_invoice_settings: {
4662
+ Row: {
4663
+ created_at: string;
4664
+ default_gl_account: string;
4665
+ default_invoice_type: string;
4666
+ default_payment_term_days: number;
4667
+ default_vat_code: string;
4668
+ updated_at: string;
4669
+ user_id: string;
4670
+ };
4671
+ Insert: {
4672
+ created_at?: string;
4673
+ default_gl_account?: string;
4674
+ default_invoice_type?: string;
4675
+ default_payment_term_days?: number;
4676
+ default_vat_code?: string;
4677
+ updated_at?: string;
4678
+ user_id: string;
4679
+ };
4680
+ Update: {
4681
+ created_at?: string;
4682
+ default_gl_account?: string;
4683
+ default_invoice_type?: string;
4684
+ default_payment_term_days?: number;
4685
+ default_vat_code?: string;
4686
+ updated_at?: string;
4687
+ user_id?: string;
4688
+ };
4689
+ Relationships: [];
4690
+ };
4691
+ twinfield_invoice_sync_logs: {
4692
+ Row: {
4693
+ created_at: string;
4694
+ details: import("./types").Json | null;
4695
+ duration_ms: number | null;
4696
+ id: string;
4697
+ invoice_lines_fetched: number | null;
4698
+ invoices_fetched: number | null;
4699
+ message: string | null;
4700
+ status: string;
4701
+ step: string | null;
4702
+ user_id: string;
4703
+ };
4704
+ Insert: {
4705
+ created_at?: string;
4706
+ details?: import("./types").Json | null;
4707
+ duration_ms?: number | null;
4708
+ id?: string;
4709
+ invoice_lines_fetched?: number | null;
4710
+ invoices_fetched?: number | null;
4711
+ message?: string | null;
4712
+ status: string;
4713
+ step?: string | null;
4714
+ user_id: string;
4715
+ };
4716
+ Update: {
4717
+ created_at?: string;
4718
+ details?: import("./types").Json | null;
4719
+ duration_ms?: number | null;
4720
+ id?: string;
4721
+ invoice_lines_fetched?: number | null;
4722
+ invoices_fetched?: number | null;
4723
+ message?: string | null;
4724
+ status?: string;
4725
+ step?: string | null;
4726
+ user_id?: string;
4727
+ };
4728
+ Relationships: [];
4729
+ };
4730
+ twinfield_invoices: {
4731
+ Row: {
4732
+ administration_code: string | null;
4733
+ created_at: string;
4734
+ currency: string | null;
4735
+ customer_code: string | null;
4736
+ customer_email: string | null;
4737
+ customer_name: string | null;
4738
+ customer_phone: string | null;
4739
+ due_date: string | null;
4740
+ id: string;
4741
+ invoice_date: string | null;
4742
+ last_synced_at: string;
4743
+ local_invoice_number: string | null;
4744
+ outstanding_amount: number;
4745
+ paid_amount: number;
4746
+ payment_date: string | null;
4747
+ raw_payload: import("./types").Json | null;
4748
+ status: string;
4749
+ subtotal: number;
4750
+ sync_error: string | null;
4751
+ sync_status: string;
4752
+ total: number;
4753
+ twinfield_invoice_number: string;
4754
+ twinfield_transaction_number: string | null;
4755
+ updated_at: string;
4756
+ user_id: string;
4757
+ vat_amount: number;
4758
+ };
4759
+ Insert: {
4760
+ administration_code?: string | null;
4761
+ created_at?: string;
4762
+ currency?: string | null;
4763
+ customer_code?: string | null;
4764
+ customer_email?: string | null;
4765
+ customer_name?: string | null;
4766
+ customer_phone?: string | null;
4767
+ due_date?: string | null;
4768
+ id?: string;
4769
+ invoice_date?: string | null;
4770
+ last_synced_at?: string;
4771
+ local_invoice_number?: string | null;
4772
+ outstanding_amount?: number;
4773
+ paid_amount?: number;
4774
+ payment_date?: string | null;
4775
+ raw_payload?: import("./types").Json | null;
4776
+ status?: string;
4777
+ subtotal?: number;
4778
+ sync_error?: string | null;
4779
+ sync_status?: string;
4780
+ total?: number;
4781
+ twinfield_invoice_number: string;
4782
+ twinfield_transaction_number?: string | null;
4783
+ updated_at?: string;
4784
+ user_id: string;
4785
+ vat_amount?: number;
4786
+ };
4787
+ Update: {
4788
+ administration_code?: string | null;
4789
+ created_at?: string;
4790
+ currency?: string | null;
4791
+ customer_code?: string | null;
4792
+ customer_email?: string | null;
4793
+ customer_name?: string | null;
4794
+ customer_phone?: string | null;
4795
+ due_date?: string | null;
4796
+ id?: string;
4797
+ invoice_date?: string | null;
4798
+ last_synced_at?: string;
4799
+ local_invoice_number?: string | null;
4800
+ outstanding_amount?: number;
4801
+ paid_amount?: number;
4802
+ payment_date?: string | null;
4803
+ raw_payload?: import("./types").Json | null;
4804
+ status?: string;
4805
+ subtotal?: number;
4806
+ sync_error?: string | null;
4807
+ sync_status?: string;
4808
+ total?: number;
4809
+ twinfield_invoice_number?: string;
4810
+ twinfield_transaction_number?: string | null;
4811
+ updated_at?: string;
4812
+ user_id?: string;
4813
+ vat_amount?: number;
4814
+ };
4815
+ Relationships: [];
4816
+ };
4817
+ user_roles: {
4818
+ Row: {
4819
+ created_at: string;
4820
+ id: string;
4821
+ role: Database["public"]["Enums"]["app_role"];
4822
+ user_id: string;
4823
+ };
4824
+ Insert: {
4825
+ created_at?: string;
4826
+ id?: string;
4827
+ role: Database["public"]["Enums"]["app_role"];
4828
+ user_id: string;
4829
+ };
4830
+ Update: {
4831
+ created_at?: string;
4832
+ id?: string;
4833
+ role?: Database["public"]["Enums"]["app_role"];
4834
+ user_id?: string;
4835
+ };
4836
+ Relationships: [{
4837
+ foreignKeyName: "user_roles_user_id_fkey";
4838
+ columns: ["user_id"];
4839
+ isOneToOne: false;
4840
+ referencedRelation: "profiles";
4841
+ referencedColumns: ["id"];
4842
+ }];
4843
+ };
4844
+ };
4845
+ Views: {
4846
+ email_auth_connections_safe: {
4847
+ Row: {
4848
+ account_email: string | null;
4849
+ created_at: string | null;
4850
+ created_by: string | null;
4851
+ display_name: string | null;
4852
+ has_access_token: boolean | null;
4853
+ has_client_id: boolean | null;
4854
+ has_client_secret: boolean | null;
4855
+ has_imap_password: boolean | null;
4856
+ has_refresh_token: boolean | null;
4857
+ has_smtp_password: boolean | null;
4858
+ id: string | null;
4859
+ imap_host: string | null;
4860
+ imap_port: number | null;
4861
+ imap_secure: boolean | null;
4862
+ imap_username: string | null;
4863
+ is_active: boolean | null;
4864
+ last_error: string | null;
4865
+ last_verified_at: string | null;
4866
+ oauth_mode: string | null;
4867
+ provider: string | null;
4868
+ scopes: string[] | null;
4869
+ smtp_host: string | null;
4870
+ smtp_port: number | null;
4871
+ smtp_secure: boolean | null;
4872
+ smtp_username: string | null;
4873
+ status: string | null;
4874
+ token_expires_at: string | null;
4875
+ updated_at: string | null;
4876
+ };
4877
+ Insert: {
4878
+ account_email?: string | null;
4879
+ created_at?: string | null;
4880
+ created_by?: string | null;
4881
+ display_name?: string | null;
4882
+ has_access_token?: never;
4883
+ has_client_id?: never;
4884
+ has_client_secret?: never;
4885
+ has_imap_password?: never;
4886
+ has_refresh_token?: never;
4887
+ has_smtp_password?: never;
4888
+ id?: string | null;
4889
+ imap_host?: string | null;
4890
+ imap_port?: number | null;
4891
+ imap_secure?: boolean | null;
4892
+ imap_username?: string | null;
4893
+ is_active?: boolean | null;
4894
+ last_error?: string | null;
4895
+ last_verified_at?: string | null;
4896
+ oauth_mode?: string | null;
4897
+ provider?: string | null;
4898
+ scopes?: string[] | null;
4899
+ smtp_host?: string | null;
4900
+ smtp_port?: number | null;
4901
+ smtp_secure?: boolean | null;
4902
+ smtp_username?: string | null;
4903
+ status?: string | null;
4904
+ token_expires_at?: string | null;
4905
+ updated_at?: string | null;
4906
+ };
4907
+ Update: {
4908
+ account_email?: string | null;
4909
+ created_at?: string | null;
4910
+ created_by?: string | null;
4911
+ display_name?: string | null;
4912
+ has_access_token?: never;
4913
+ has_client_id?: never;
4914
+ has_client_secret?: never;
4915
+ has_imap_password?: never;
4916
+ has_refresh_token?: never;
4917
+ has_smtp_password?: never;
4918
+ id?: string | null;
4919
+ imap_host?: string | null;
4920
+ imap_port?: number | null;
4921
+ imap_secure?: boolean | null;
4922
+ imap_username?: string | null;
4923
+ is_active?: boolean | null;
4924
+ last_error?: string | null;
4925
+ last_verified_at?: string | null;
4926
+ oauth_mode?: string | null;
4927
+ provider?: string | null;
4928
+ scopes?: string[] | null;
4929
+ smtp_host?: string | null;
4930
+ smtp_port?: number | null;
4931
+ smtp_secure?: boolean | null;
4932
+ smtp_username?: string | null;
4933
+ status?: string | null;
4934
+ token_expires_at?: string | null;
4935
+ updated_at?: string | null;
4936
+ };
4937
+ Relationships: [];
3754
4938
  };
3755
4939
  };
3756
- Views: { [_ in never]: never; };
3757
4940
  Functions: {
3758
4941
  dashboard_list_public_schema: {
3759
4942
  Args: never;
@@ -3763,6 +4946,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3763
4946
  table_name: string;
3764
4947
  }[];
3765
4948
  };
4949
+ email_auth_decrypt: {
4950
+ Args: {
4951
+ cipher: string;
4952
+ };
4953
+ Returns: string;
4954
+ };
4955
+ email_auth_encrypt: {
4956
+ Args: {
4957
+ plain: string;
4958
+ };
4959
+ Returns: string;
4960
+ };
3766
4961
  exact_decrypt: {
3767
4962
  Args: {
3768
4963
  cipher: string;
@@ -3775,6 +4970,49 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3775
4970
  };
3776
4971
  Returns: string;
3777
4972
  };
4973
+ exact_lock_environment: {
4974
+ Args: {
4975
+ _environment: string;
4976
+ };
4977
+ Returns: undefined;
4978
+ };
4979
+ exact_release_refresh_lock: {
4980
+ Args: {
4981
+ _environment: Database["public"]["Enums"]["exact_env"];
4982
+ _locked_by: string;
4983
+ };
4984
+ Returns: undefined;
4985
+ };
4986
+ exact_try_acquire_refresh_lock: {
4987
+ Args: {
4988
+ _environment: Database["public"]["Enums"]["exact_env"];
4989
+ _lease_seconds?: number;
4990
+ _locked_by?: string;
4991
+ };
4992
+ Returns: boolean;
4993
+ };
4994
+ get_active_floriday_connection_public: {
4995
+ Args: never;
4996
+ Returns: {
4997
+ active_environment: string;
4998
+ environment: string;
4999
+ gln_code: string;
5000
+ id: string;
5001
+ label: string;
5002
+ organization_name: string;
5003
+ preferred_warehouse_id: string;
5004
+ preferred_warehouse_name: string;
5005
+ }[];
5006
+ };
5007
+ get_floriday_cron_jobs: {
5008
+ Args: never;
5009
+ Returns: {
5010
+ active: boolean;
5011
+ jobname: string;
5012
+ schedule: string;
5013
+ url: string;
5014
+ }[];
5015
+ };
3778
5016
  get_offer_by_link_code: {
3779
5017
  Args: {
3780
5018
  p_code: string;
@@ -3788,6 +5026,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3788
5026
  };
3789
5027
  Returns: boolean;
3790
5028
  };
5029
+ schedule_floriday_connections_sync: {
5030
+ Args: {
5031
+ p_apikey: string;
5032
+ p_url: string;
5033
+ };
5034
+ Returns: number;
5035
+ };
5036
+ schedule_floriday_customer_organizations_sync: {
5037
+ Args: {
5038
+ p_apikey: string;
5039
+ p_url: string;
5040
+ };
5041
+ Returns: number;
5042
+ };
3791
5043
  schedule_floriday_network_sync: {
3792
5044
  Args: {
3793
5045
  p_apikey: string;
@@ -3795,6 +5047,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3795
5047
  };
3796
5048
  Returns: number;
3797
5049
  };
5050
+ schedule_floriday_salesorders_sync: {
5051
+ Args: {
5052
+ p_apikey: string;
5053
+ p_url: string;
5054
+ };
5055
+ Returns: number;
5056
+ };
3798
5057
  schedule_floriday_token_refresh: {
3799
5058
  Args: {
3800
5059
  p_apikey: string;
@@ -3802,6 +5061,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3802
5061
  };
3803
5062
  Returns: number;
3804
5063
  };
5064
+ schedule_floriday_trade_items_sync: {
5065
+ Args: {
5066
+ p_apikey: string;
5067
+ p_url: string;
5068
+ };
5069
+ Returns: number;
5070
+ };
3805
5071
  show_limit: {
3806
5072
  Args: never;
3807
5073
  Returns: number;
@@ -3816,6 +5082,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3816
5082
  Enums: {
3817
5083
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
3818
5084
  exact_env: "staging" | "live";
5085
+ quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
3819
5086
  };
3820
5087
  CompositeTypes: { [_ in never]: never; };
3821
5088
  }, {