@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
@@ -1,3 +1,4 @@
1
+ import type { SupabaseClient } from "@supabase/supabase-js";
1
2
  export interface FloridayOrder {
2
3
  id: string;
3
4
  orderNumber: string;
@@ -10,7 +11,7 @@ export interface FloridayOrder {
10
11
  currency: string | null;
11
12
  }
12
13
  export declare const getFloridayOrders: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
13
- supabase: import("@supabase/supabase-js").SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
14
+ supabase: SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
14
15
  Tables: {
15
16
  agenda_connections: {
16
17
  Row: {
@@ -234,6 +235,84 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
234
235
  };
235
236
  Relationships: [];
236
237
  };
238
+ carrier_shipping_rates: {
239
+ Row: {
240
+ carrier_id: string;
241
+ country_code: string;
242
+ created_at: string;
243
+ id: string;
244
+ price_per_trolley: number;
245
+ };
246
+ Insert: {
247
+ carrier_id: string;
248
+ country_code: string;
249
+ created_at?: string;
250
+ id?: string;
251
+ price_per_trolley: number;
252
+ };
253
+ Update: {
254
+ carrier_id?: string;
255
+ country_code?: string;
256
+ created_at?: string;
257
+ id?: string;
258
+ price_per_trolley?: number;
259
+ };
260
+ Relationships: [{
261
+ foreignKeyName: "carrier_shipping_rates_carrier_id_fkey";
262
+ columns: ["carrier_id"];
263
+ isOneToOne: false;
264
+ referencedRelation: "carriers";
265
+ referencedColumns: ["id"];
266
+ }];
267
+ };
268
+ carriers: {
269
+ Row: {
270
+ address: string | null;
271
+ contact_person: string | null;
272
+ created_at: string;
273
+ delivery_days: number | null;
274
+ email: string | null;
275
+ id: string;
276
+ name: string;
277
+ notes: string | null;
278
+ phone: string | null;
279
+ signup_time_1: string | null;
280
+ signup_time_2: string | null;
281
+ updated_at: string;
282
+ user_id: string;
283
+ };
284
+ Insert: {
285
+ address?: string | null;
286
+ contact_person?: string | null;
287
+ created_at?: string;
288
+ delivery_days?: number | null;
289
+ email?: string | null;
290
+ id?: string;
291
+ name: string;
292
+ notes?: string | null;
293
+ phone?: string | null;
294
+ signup_time_1?: string | null;
295
+ signup_time_2?: string | null;
296
+ updated_at?: string;
297
+ user_id: string;
298
+ };
299
+ Update: {
300
+ address?: string | null;
301
+ contact_person?: string | null;
302
+ created_at?: string;
303
+ delivery_days?: number | null;
304
+ email?: string | null;
305
+ id?: string;
306
+ name?: string;
307
+ notes?: string | null;
308
+ phone?: string | null;
309
+ signup_time_1?: string | null;
310
+ signup_time_2?: string | null;
311
+ updated_at?: string;
312
+ user_id?: string;
313
+ };
314
+ Relationships: [];
315
+ };
237
316
  collections: {
238
317
  Row: {
239
318
  created_at: string;
@@ -942,6 +1021,99 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
942
1021
  };
943
1022
  Relationships: [];
944
1023
  };
1024
+ email_auth_connections: {
1025
+ Row: {
1026
+ access_token_encrypted: string | null;
1027
+ account_email: string | null;
1028
+ client_id_encrypted: string | null;
1029
+ client_secret_encrypted: string | null;
1030
+ created_at: string;
1031
+ created_by: string | null;
1032
+ display_name: string | null;
1033
+ id: string;
1034
+ imap_host: string | null;
1035
+ imap_password_encrypted: string | null;
1036
+ imap_port: number | null;
1037
+ imap_secure: boolean | null;
1038
+ imap_username: string | null;
1039
+ is_active: boolean;
1040
+ last_error: string | null;
1041
+ last_verified_at: string | null;
1042
+ oauth_mode: string | null;
1043
+ provider: string;
1044
+ refresh_token_encrypted: string | null;
1045
+ scopes: string[] | null;
1046
+ smtp_host: string | null;
1047
+ smtp_password_encrypted: string | null;
1048
+ smtp_port: number | null;
1049
+ smtp_secure: boolean | null;
1050
+ smtp_username: string | null;
1051
+ status: string;
1052
+ token_expires_at: string | null;
1053
+ updated_at: string;
1054
+ };
1055
+ Insert: {
1056
+ access_token_encrypted?: string | null;
1057
+ account_email?: string | null;
1058
+ client_id_encrypted?: string | null;
1059
+ client_secret_encrypted?: string | null;
1060
+ created_at?: string;
1061
+ created_by?: string | null;
1062
+ display_name?: string | null;
1063
+ id?: string;
1064
+ imap_host?: string | null;
1065
+ imap_password_encrypted?: string | null;
1066
+ imap_port?: number | null;
1067
+ imap_secure?: boolean | null;
1068
+ imap_username?: string | null;
1069
+ is_active?: boolean;
1070
+ last_error?: string | null;
1071
+ last_verified_at?: string | null;
1072
+ oauth_mode?: string | null;
1073
+ provider: string;
1074
+ refresh_token_encrypted?: string | null;
1075
+ scopes?: string[] | null;
1076
+ smtp_host?: string | null;
1077
+ smtp_password_encrypted?: string | null;
1078
+ smtp_port?: number | null;
1079
+ smtp_secure?: boolean | null;
1080
+ smtp_username?: string | null;
1081
+ status?: string;
1082
+ token_expires_at?: string | null;
1083
+ updated_at?: string;
1084
+ };
1085
+ Update: {
1086
+ access_token_encrypted?: string | null;
1087
+ account_email?: string | null;
1088
+ client_id_encrypted?: string | null;
1089
+ client_secret_encrypted?: string | null;
1090
+ created_at?: string;
1091
+ created_by?: string | null;
1092
+ display_name?: string | null;
1093
+ id?: string;
1094
+ imap_host?: string | null;
1095
+ imap_password_encrypted?: string | null;
1096
+ imap_port?: number | null;
1097
+ imap_secure?: boolean | null;
1098
+ imap_username?: string | null;
1099
+ is_active?: boolean;
1100
+ last_error?: string | null;
1101
+ last_verified_at?: string | null;
1102
+ oauth_mode?: string | null;
1103
+ provider?: string;
1104
+ refresh_token_encrypted?: string | null;
1105
+ scopes?: string[] | null;
1106
+ smtp_host?: string | null;
1107
+ smtp_password_encrypted?: string | null;
1108
+ smtp_port?: number | null;
1109
+ smtp_secure?: boolean | null;
1110
+ smtp_username?: string | null;
1111
+ status?: string;
1112
+ token_expires_at?: string | null;
1113
+ updated_at?: string;
1114
+ };
1115
+ Relationships: [];
1116
+ };
945
1117
  exact_account_analytics_cache: {
946
1118
  Row: {
947
1119
  account_id: string;
@@ -1300,11 +1472,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1300
1472
  address_line1: string | null;
1301
1473
  address_line2: string | null;
1302
1474
  balance: number | null;
1475
+ chamber_of_commerce: string | null;
1303
1476
  city: string | null;
1477
+ classification_description: string | null;
1304
1478
  connection_id: string;
1305
1479
  contact_name: string | null;
1306
1480
  country: string | null;
1481
+ created_at_exact: string | null;
1307
1482
  credit_line: number | null;
1483
+ currency: string | null;
1308
1484
  data_raw: import("../integrations/supabase/types").Json | null;
1309
1485
  email: string | null;
1310
1486
  exact_id: string;
@@ -1313,12 +1489,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1313
1489
  id: string;
1314
1490
  is_sales: boolean | null;
1315
1491
  is_supplier: boolean | null;
1492
+ language: string | null;
1493
+ modified_at_exact: string | null;
1494
+ payment_condition_description: string | null;
1495
+ payment_condition_sales: string | null;
1316
1496
  phone: string | null;
1317
1497
  postal_code: string | null;
1498
+ remarks: string | null;
1318
1499
  search_text: string | null;
1319
1500
  status: string | null;
1320
1501
  updated_at: string;
1321
1502
  vat_number: string | null;
1503
+ website: string | null;
1322
1504
  };
1323
1505
  Insert: {
1324
1506
  account_name?: string | null;
@@ -1326,11 +1508,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1326
1508
  address_line1?: string | null;
1327
1509
  address_line2?: string | null;
1328
1510
  balance?: number | null;
1511
+ chamber_of_commerce?: string | null;
1329
1512
  city?: string | null;
1513
+ classification_description?: string | null;
1330
1514
  connection_id: string;
1331
1515
  contact_name?: string | null;
1332
1516
  country?: string | null;
1517
+ created_at_exact?: string | null;
1333
1518
  credit_line?: number | null;
1519
+ currency?: string | null;
1334
1520
  data_raw?: import("../integrations/supabase/types").Json | null;
1335
1521
  email?: string | null;
1336
1522
  exact_id: string;
@@ -1339,12 +1525,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1339
1525
  id?: string;
1340
1526
  is_sales?: boolean | null;
1341
1527
  is_supplier?: boolean | null;
1528
+ language?: string | null;
1529
+ modified_at_exact?: string | null;
1530
+ payment_condition_description?: string | null;
1531
+ payment_condition_sales?: string | null;
1342
1532
  phone?: string | null;
1343
1533
  postal_code?: string | null;
1534
+ remarks?: string | null;
1344
1535
  search_text?: string | null;
1345
1536
  status?: string | null;
1346
1537
  updated_at?: string;
1347
1538
  vat_number?: string | null;
1539
+ website?: string | null;
1348
1540
  };
1349
1541
  Update: {
1350
1542
  account_name?: string | null;
@@ -1352,11 +1544,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1352
1544
  address_line1?: string | null;
1353
1545
  address_line2?: string | null;
1354
1546
  balance?: number | null;
1547
+ chamber_of_commerce?: string | null;
1355
1548
  city?: string | null;
1549
+ classification_description?: string | null;
1356
1550
  connection_id?: string;
1357
1551
  contact_name?: string | null;
1358
1552
  country?: string | null;
1553
+ created_at_exact?: string | null;
1359
1554
  credit_line?: number | null;
1555
+ currency?: string | null;
1360
1556
  data_raw?: import("../integrations/supabase/types").Json | null;
1361
1557
  email?: string | null;
1362
1558
  exact_id?: string;
@@ -1365,12 +1561,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1365
1561
  id?: string;
1366
1562
  is_sales?: boolean | null;
1367
1563
  is_supplier?: boolean | null;
1564
+ language?: string | null;
1565
+ modified_at_exact?: string | null;
1566
+ payment_condition_description?: string | null;
1567
+ payment_condition_sales?: string | null;
1368
1568
  phone?: string | null;
1369
1569
  postal_code?: string | null;
1570
+ remarks?: string | null;
1370
1571
  search_text?: string | null;
1371
1572
  status?: string | null;
1372
1573
  updated_at?: string;
1373
1574
  vat_number?: string | null;
1575
+ website?: string | null;
1374
1576
  };
1375
1577
  Relationships: [{
1376
1578
  foreignKeyName: "exact_customers_cache_connection_id_fkey";
@@ -1506,6 +1708,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1506
1708
  connection_id: string;
1507
1709
  data_raw: import("../integrations/supabase/types").Json | null;
1508
1710
  due_date: string | null;
1711
+ entry_id: string | null;
1509
1712
  exact_id: string;
1510
1713
  expires_at: string | null;
1511
1714
  fetched_at: string;
@@ -1531,6 +1734,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1531
1734
  connection_id: string;
1532
1735
  data_raw?: import("../integrations/supabase/types").Json | null;
1533
1736
  due_date?: string | null;
1737
+ entry_id?: string | null;
1534
1738
  exact_id: string;
1535
1739
  expires_at?: string | null;
1536
1740
  fetched_at?: string;
@@ -1556,6 +1760,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1556
1760
  connection_id?: string;
1557
1761
  data_raw?: import("../integrations/supabase/types").Json | null;
1558
1762
  due_date?: string | null;
1763
+ entry_id?: string | null;
1559
1764
  exact_id?: string;
1560
1765
  expires_at?: string | null;
1561
1766
  fetched_at?: string;
@@ -1632,6 +1837,27 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1632
1837
  referencedColumns: ["id"];
1633
1838
  }];
1634
1839
  };
1840
+ exact_refresh_locks: {
1841
+ Row: {
1842
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
1843
+ locked_by: string;
1844
+ locked_until: string;
1845
+ updated_at: string;
1846
+ };
1847
+ Insert: {
1848
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
1849
+ locked_by: string;
1850
+ locked_until: string;
1851
+ updated_at?: string;
1852
+ };
1853
+ Update: {
1854
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
1855
+ locked_by?: string;
1856
+ locked_until?: string;
1857
+ updated_at?: string;
1858
+ };
1859
+ Relationships: [];
1860
+ };
1635
1861
  exact_sync_state: {
1636
1862
  Row: {
1637
1863
  connection_id: string;
@@ -1806,6 +2032,48 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1806
2032
  };
1807
2033
  Relationships: [];
1808
2034
  };
2035
+ floriday_connections_cache: {
2036
+ Row: {
2037
+ buyer_organization_id: string | null;
2038
+ buyer_organization_name: string | null;
2039
+ connection_id: string;
2040
+ data: import("../integrations/supabase/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
+ Insert: {
2048
+ buyer_organization_id?: string | null;
2049
+ buyer_organization_name?: string | null;
2050
+ connection_id: string;
2051
+ data: import("../integrations/supabase/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
+ Update: {
2059
+ buyer_organization_id?: string | null;
2060
+ buyer_organization_name?: string | null;
2061
+ connection_id?: string;
2062
+ data?: import("../integrations/supabase/types").Json;
2063
+ floriday_connection_id?: string;
2064
+ is_deleted?: boolean;
2065
+ sequence_number?: number;
2066
+ status?: string | null;
2067
+ synced_at?: string;
2068
+ };
2069
+ Relationships: [{
2070
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
2071
+ columns: ["connection_id"];
2072
+ isOneToOne: false;
2073
+ referencedRelation: "floriday_connections";
2074
+ referencedColumns: ["id"];
2075
+ }];
2076
+ };
1809
2077
  floriday_customers_cache: {
1810
2078
  Row: {
1811
2079
  connection_id: string | null;
@@ -1890,6 +2158,48 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1890
2158
  };
1891
2159
  Relationships: [];
1892
2160
  };
2161
+ floriday_salesorders_cache: {
2162
+ Row: {
2163
+ buyer_organization_id: string | null;
2164
+ connection_id: string;
2165
+ created_at: string;
2166
+ data: import("../integrations/supabase/types").Json;
2167
+ floriday_id: string;
2168
+ is_deleted: boolean;
2169
+ sequence_number: number;
2170
+ status: string | null;
2171
+ updated_at: string;
2172
+ };
2173
+ Insert: {
2174
+ buyer_organization_id?: string | null;
2175
+ connection_id: string;
2176
+ created_at?: string;
2177
+ data: import("../integrations/supabase/types").Json;
2178
+ floriday_id: string;
2179
+ is_deleted?: boolean;
2180
+ sequence_number: number;
2181
+ status?: string | null;
2182
+ updated_at?: string;
2183
+ };
2184
+ Update: {
2185
+ buyer_organization_id?: string | null;
2186
+ connection_id?: string;
2187
+ created_at?: string;
2188
+ data?: import("../integrations/supabase/types").Json;
2189
+ floriday_id?: string;
2190
+ is_deleted?: boolean;
2191
+ sequence_number?: number;
2192
+ status?: string | null;
2193
+ updated_at?: string;
2194
+ };
2195
+ Relationships: [{
2196
+ foreignKeyName: "floriday_salesorders_cache_connection_id_fkey";
2197
+ columns: ["connection_id"];
2198
+ isOneToOne: false;
2199
+ referencedRelation: "floriday_connections";
2200
+ referencedColumns: ["id"];
2201
+ }];
2202
+ };
1893
2203
  floriday_settings: {
1894
2204
  Row: {
1895
2205
  active_environment: string;
@@ -1908,6 +2218,108 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1908
2218
  };
1909
2219
  Relationships: [];
1910
2220
  };
2221
+ floriday_sync_state: {
2222
+ Row: {
2223
+ connection_id: string;
2224
+ entity_type: string;
2225
+ last_error: string | null;
2226
+ last_sequence_number: number;
2227
+ last_synced_at: string | null;
2228
+ updated_at: string;
2229
+ };
2230
+ Insert: {
2231
+ connection_id: string;
2232
+ entity_type: string;
2233
+ last_error?: string | null;
2234
+ last_sequence_number?: number;
2235
+ last_synced_at?: string | null;
2236
+ updated_at?: string;
2237
+ };
2238
+ Update: {
2239
+ connection_id?: string;
2240
+ entity_type?: string;
2241
+ last_error?: string | null;
2242
+ last_sequence_number?: number;
2243
+ last_synced_at?: string | null;
2244
+ updated_at?: string;
2245
+ };
2246
+ Relationships: [{
2247
+ foreignKeyName: "floriday_sync_state_connection_id_fkey";
2248
+ columns: ["connection_id"];
2249
+ isOneToOne: false;
2250
+ referencedRelation: "floriday_connections";
2251
+ referencedColumns: ["id"];
2252
+ }];
2253
+ };
2254
+ floriday_token_refresh_log: {
2255
+ Row: {
2256
+ attempted_at: string;
2257
+ connection_id: string | null;
2258
+ environment: string;
2259
+ error: string | null;
2260
+ expires_at: string | null;
2261
+ id: string;
2262
+ ok: boolean;
2263
+ };
2264
+ Insert: {
2265
+ attempted_at?: string;
2266
+ connection_id?: string | null;
2267
+ environment: string;
2268
+ error?: string | null;
2269
+ expires_at?: string | null;
2270
+ id?: string;
2271
+ ok: boolean;
2272
+ };
2273
+ Update: {
2274
+ attempted_at?: string;
2275
+ connection_id?: string | null;
2276
+ environment?: string;
2277
+ error?: string | null;
2278
+ expires_at?: string | null;
2279
+ id?: string;
2280
+ ok?: boolean;
2281
+ };
2282
+ Relationships: [{
2283
+ foreignKeyName: "floriday_token_refresh_log_connection_id_fkey";
2284
+ columns: ["connection_id"];
2285
+ isOneToOne: false;
2286
+ referencedRelation: "floriday_connections";
2287
+ referencedColumns: ["id"];
2288
+ }];
2289
+ };
2290
+ floriday_trade_items_cache: {
2291
+ Row: {
2292
+ connection_id: string;
2293
+ data: import("../integrations/supabase/types").Json;
2294
+ fetched_at: string;
2295
+ floriday_id: string;
2296
+ is_deleted: boolean;
2297
+ sequence_number: number;
2298
+ };
2299
+ Insert: {
2300
+ connection_id: string;
2301
+ data?: import("../integrations/supabase/types").Json;
2302
+ fetched_at?: string;
2303
+ floriday_id: string;
2304
+ is_deleted?: boolean;
2305
+ sequence_number?: number;
2306
+ };
2307
+ Update: {
2308
+ connection_id?: string;
2309
+ data?: import("../integrations/supabase/types").Json;
2310
+ fetched_at?: string;
2311
+ floriday_id?: string;
2312
+ is_deleted?: boolean;
2313
+ sequence_number?: number;
2314
+ };
2315
+ Relationships: [{
2316
+ foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
2317
+ columns: ["connection_id"];
2318
+ isOneToOne: false;
2319
+ referencedRelation: "floriday_connections";
2320
+ referencedColumns: ["id"];
2321
+ }];
2322
+ };
1911
2323
  imap_accounts: {
1912
2324
  Row: {
1913
2325
  created_at: string;
@@ -3537,35 +3949,197 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3537
3949
  referencedColumns: ["id"];
3538
3950
  }];
3539
3951
  };
3540
- quote_items: {
3952
+ quote_activities: {
3541
3953
  Row: {
3542
3954
  created_at: string;
3543
- description: string;
3955
+ event_type: string;
3544
3956
  id: string;
3545
- quantity: number;
3957
+ metadata: import("../integrations/supabase/types").Json;
3546
3958
  quote_id: string;
3547
- sort_order: number;
3548
- unit_price: number;
3959
+ user_id: string | null;
3549
3960
  };
3550
3961
  Insert: {
3551
3962
  created_at?: string;
3552
- description?: string;
3963
+ event_type: string;
3553
3964
  id?: string;
3554
- quantity?: number;
3965
+ metadata?: import("../integrations/supabase/types").Json;
3555
3966
  quote_id: string;
3556
- sort_order?: number;
3557
- unit_price?: number;
3967
+ user_id?: string | null;
3558
3968
  };
3559
3969
  Update: {
3970
+ created_at?: string;
3971
+ event_type?: string;
3972
+ id?: string;
3973
+ metadata?: import("../integrations/supabase/types").Json;
3974
+ quote_id?: string;
3975
+ user_id?: string | null;
3976
+ };
3977
+ Relationships: [{
3978
+ foreignKeyName: "quote_activities_quote_id_fkey";
3979
+ columns: ["quote_id"];
3980
+ isOneToOne: false;
3981
+ referencedRelation: "quotes";
3982
+ referencedColumns: ["id"];
3983
+ }];
3984
+ };
3985
+ quote_attachments: {
3986
+ Row: {
3987
+ created_at: string;
3988
+ file_name: string;
3989
+ file_size: number | null;
3990
+ file_url: string;
3991
+ id: string;
3992
+ mime_type: string | null;
3993
+ quote_id: string;
3994
+ };
3995
+ Insert: {
3996
+ created_at?: string;
3997
+ file_name: string;
3998
+ file_size?: number | null;
3999
+ file_url: string;
4000
+ id?: string;
4001
+ mime_type?: string | null;
4002
+ quote_id: string;
4003
+ };
4004
+ Update: {
4005
+ created_at?: string;
4006
+ file_name?: string;
4007
+ file_size?: number | null;
4008
+ file_url?: string;
4009
+ id?: string;
4010
+ mime_type?: string | null;
4011
+ quote_id?: string;
4012
+ };
4013
+ Relationships: [{
4014
+ foreignKeyName: "quote_attachments_quote_id_fkey";
4015
+ columns: ["quote_id"];
4016
+ isOneToOne: false;
4017
+ referencedRelation: "quotes";
4018
+ referencedColumns: ["id"];
4019
+ }];
4020
+ };
4021
+ quote_field_options: {
4022
+ Row: {
4023
+ created_at: string;
4024
+ field_id: string;
4025
+ id: string;
4026
+ label: string;
4027
+ sort_order: number;
4028
+ value: string;
4029
+ };
4030
+ Insert: {
4031
+ created_at?: string;
4032
+ field_id: string;
4033
+ id?: string;
4034
+ label: string;
4035
+ sort_order?: number;
4036
+ value: string;
4037
+ };
4038
+ Update: {
4039
+ created_at?: string;
4040
+ field_id?: string;
4041
+ id?: string;
4042
+ label?: string;
4043
+ sort_order?: number;
4044
+ value?: string;
4045
+ };
4046
+ Relationships: [{
4047
+ foreignKeyName: "quote_field_options_field_id_fkey";
4048
+ columns: ["field_id"];
4049
+ isOneToOne: false;
4050
+ referencedRelation: "quote_field_settings";
4051
+ referencedColumns: ["id"];
4052
+ }];
4053
+ };
4054
+ quote_field_settings: {
4055
+ Row: {
4056
+ created_at: string;
4057
+ default_value: string | null;
4058
+ field_key: string;
4059
+ field_type: string;
4060
+ id: string;
4061
+ is_system: boolean;
4062
+ label: string;
4063
+ required: boolean;
4064
+ sort_order: number;
4065
+ updated_at: string;
4066
+ visible: boolean;
4067
+ };
4068
+ Insert: {
4069
+ created_at?: string;
4070
+ default_value?: string | null;
4071
+ field_key: string;
4072
+ field_type: string;
4073
+ id?: string;
4074
+ is_system?: boolean;
4075
+ label: string;
4076
+ required?: boolean;
4077
+ sort_order?: number;
4078
+ updated_at?: string;
4079
+ visible?: boolean;
4080
+ };
4081
+ Update: {
4082
+ created_at?: string;
4083
+ default_value?: string | null;
4084
+ field_key?: string;
4085
+ field_type?: string;
4086
+ id?: string;
4087
+ is_system?: boolean;
4088
+ label?: string;
4089
+ required?: boolean;
4090
+ sort_order?: number;
4091
+ updated_at?: string;
4092
+ visible?: boolean;
4093
+ };
4094
+ Relationships: [];
4095
+ };
4096
+ quote_items: {
4097
+ Row: {
4098
+ category: string | null;
4099
+ created_at: string;
4100
+ description: string;
4101
+ id: string;
4102
+ line_total: number;
4103
+ module_id: string | null;
4104
+ name: string | null;
4105
+ quantity: number;
4106
+ quote_id: string;
4107
+ sort_order: number;
4108
+ unit_price: number;
4109
+ };
4110
+ Insert: {
4111
+ category?: string | null;
4112
+ created_at?: string;
4113
+ description?: string;
4114
+ id?: string;
4115
+ line_total?: number;
4116
+ module_id?: string | null;
4117
+ name?: string | null;
4118
+ quantity?: number;
4119
+ quote_id: string;
4120
+ sort_order?: number;
4121
+ unit_price?: number;
4122
+ };
4123
+ Update: {
4124
+ category?: string | null;
3560
4125
  created_at?: string;
3561
4126
  description?: string;
3562
4127
  id?: string;
4128
+ line_total?: number;
4129
+ module_id?: string | null;
4130
+ name?: string | null;
3563
4131
  quantity?: number;
3564
4132
  quote_id?: string;
3565
4133
  sort_order?: number;
3566
4134
  unit_price?: number;
3567
4135
  };
3568
4136
  Relationships: [{
4137
+ foreignKeyName: "quote_items_module_id_fkey";
4138
+ columns: ["module_id"];
4139
+ isOneToOne: false;
4140
+ referencedRelation: "quote_modules";
4141
+ referencedColumns: ["id"];
4142
+ }, {
3569
4143
  foreignKeyName: "quote_items_quote_id_fkey";
3570
4144
  columns: ["quote_id"];
3571
4145
  isOneToOne: false;
@@ -3573,46 +4147,250 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3573
4147
  referencedColumns: ["id"];
3574
4148
  }];
3575
4149
  };
4150
+ quote_modules: {
4151
+ Row: {
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
+ Insert: {
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
+ Update: {
4174
+ category?: string | null;
4175
+ created_at?: string;
4176
+ description?: string | null;
4177
+ id?: string;
4178
+ is_active?: boolean;
4179
+ name?: string;
4180
+ price?: number;
4181
+ sort_order?: number;
4182
+ updated_at?: string;
4183
+ };
4184
+ Relationships: [];
4185
+ };
4186
+ quote_templates: {
4187
+ Row: {
4188
+ created_at: string;
4189
+ description: string | null;
4190
+ field_values: import("../integrations/supabase/types").Json;
4191
+ id: string;
4192
+ is_default: boolean;
4193
+ items: import("../integrations/supabase/types").Json;
4194
+ name: string;
4195
+ updated_at: string;
4196
+ vat_rate: number;
4197
+ };
4198
+ Insert: {
4199
+ created_at?: string;
4200
+ description?: string | null;
4201
+ field_values?: import("../integrations/supabase/types").Json;
4202
+ id?: string;
4203
+ is_default?: boolean;
4204
+ items?: import("../integrations/supabase/types").Json;
4205
+ name: string;
4206
+ updated_at?: string;
4207
+ vat_rate?: number;
4208
+ };
4209
+ Update: {
4210
+ created_at?: string;
4211
+ description?: string | null;
4212
+ field_values?: import("../integrations/supabase/types").Json;
4213
+ id?: string;
4214
+ is_default?: boolean;
4215
+ items?: import("../integrations/supabase/types").Json;
4216
+ name?: string;
4217
+ updated_at?: string;
4218
+ vat_rate?: number;
4219
+ };
4220
+ Relationships: [];
4221
+ };
4222
+ quote_terms: {
4223
+ Row: {
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
+ Insert: {
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
+ Update: {
4246
+ content?: string | null;
4247
+ created_at?: string;
4248
+ file_url?: string | null;
4249
+ id?: string;
4250
+ is_active?: boolean;
4251
+ name?: string;
4252
+ published_at?: string | null;
4253
+ updated_at?: string;
4254
+ version?: string;
4255
+ };
4256
+ Relationships: [];
4257
+ };
3576
4258
  quotes: {
3577
4259
  Row: {
4260
+ accepted_at: string | null;
4261
+ archived_at: string | null;
4262
+ contact_id: string | null;
3578
4263
  created_at: string;
4264
+ customer_id: string | null;
4265
+ discount: number;
4266
+ expires_at: string | null;
4267
+ field_values: import("../integrations/supabase/types").Json;
3579
4268
  id: string;
3580
4269
  notes: string | null;
4270
+ owner_id: string | null;
4271
+ personal_message: string | null;
4272
+ project_id: string | null;
3581
4273
  prospect_id: string | null;
4274
+ public_token: string;
3582
4275
  quote_number: string | null;
4276
+ recipient_email: string | null;
4277
+ recipient_name: string | null;
4278
+ rejected_at: string | null;
4279
+ sent_at: string | null;
3583
4280
  status: string;
4281
+ subtotal: number;
4282
+ template_id: string | null;
4283
+ terms_id: string | null;
3584
4284
  title: string;
4285
+ total: number;
3585
4286
  updated_at: string;
3586
4287
  valid_until: string | null;
4288
+ vat_amount: number;
4289
+ vat_rate: number;
4290
+ viewed_at: string | null;
3587
4291
  };
3588
4292
  Insert: {
4293
+ accepted_at?: string | null;
4294
+ archived_at?: string | null;
4295
+ contact_id?: string | null;
3589
4296
  created_at?: string;
4297
+ customer_id?: string | null;
4298
+ discount?: number;
4299
+ expires_at?: string | null;
4300
+ field_values?: import("../integrations/supabase/types").Json;
3590
4301
  id?: string;
3591
4302
  notes?: string | null;
4303
+ owner_id?: string | null;
4304
+ personal_message?: string | null;
4305
+ project_id?: string | null;
3592
4306
  prospect_id?: string | null;
4307
+ public_token?: string;
3593
4308
  quote_number?: string | null;
4309
+ recipient_email?: string | null;
4310
+ recipient_name?: string | null;
4311
+ rejected_at?: string | null;
4312
+ sent_at?: string | null;
3594
4313
  status?: string;
4314
+ subtotal?: number;
4315
+ template_id?: string | null;
4316
+ terms_id?: string | null;
3595
4317
  title?: string;
4318
+ total?: number;
3596
4319
  updated_at?: string;
3597
4320
  valid_until?: string | null;
4321
+ vat_amount?: number;
4322
+ vat_rate?: number;
4323
+ viewed_at?: string | null;
3598
4324
  };
3599
4325
  Update: {
4326
+ accepted_at?: string | null;
4327
+ archived_at?: string | null;
4328
+ contact_id?: string | null;
3600
4329
  created_at?: string;
4330
+ customer_id?: string | null;
4331
+ discount?: number;
4332
+ expires_at?: string | null;
4333
+ field_values?: import("../integrations/supabase/types").Json;
3601
4334
  id?: string;
3602
4335
  notes?: string | null;
4336
+ owner_id?: string | null;
4337
+ personal_message?: string | null;
4338
+ project_id?: string | null;
3603
4339
  prospect_id?: string | null;
4340
+ public_token?: string;
3604
4341
  quote_number?: string | null;
4342
+ recipient_email?: string | null;
4343
+ recipient_name?: string | null;
4344
+ rejected_at?: string | null;
4345
+ sent_at?: string | null;
3605
4346
  status?: string;
4347
+ subtotal?: number;
4348
+ template_id?: string | null;
4349
+ terms_id?: string | null;
3606
4350
  title?: string;
4351
+ total?: number;
3607
4352
  updated_at?: string;
3608
4353
  valid_until?: string | null;
4354
+ vat_amount?: number;
4355
+ vat_rate?: number;
4356
+ viewed_at?: string | null;
3609
4357
  };
3610
4358
  Relationships: [{
4359
+ foreignKeyName: "quotes_contact_id_fkey";
4360
+ columns: ["contact_id"];
4361
+ isOneToOne: false;
4362
+ referencedRelation: "customer_contacts";
4363
+ referencedColumns: ["id"];
4364
+ }, {
4365
+ foreignKeyName: "quotes_customer_id_fkey";
4366
+ columns: ["customer_id"];
4367
+ isOneToOne: false;
4368
+ referencedRelation: "customers";
4369
+ referencedColumns: ["id"];
4370
+ }, {
4371
+ foreignKeyName: "quotes_project_id_fkey";
4372
+ columns: ["project_id"];
4373
+ isOneToOne: false;
4374
+ referencedRelation: "projects";
4375
+ referencedColumns: ["id"];
4376
+ }, {
3611
4377
  foreignKeyName: "quotes_prospect_id_fkey";
3612
4378
  columns: ["prospect_id"];
3613
4379
  isOneToOne: false;
3614
4380
  referencedRelation: "prospects";
3615
4381
  referencedColumns: ["id"];
4382
+ }, {
4383
+ foreignKeyName: "quotes_template_id_fkey";
4384
+ columns: ["template_id"];
4385
+ isOneToOne: false;
4386
+ referencedRelation: "quote_templates";
4387
+ referencedColumns: ["id"];
4388
+ }, {
4389
+ foreignKeyName: "quotes_terms_id_fkey";
4390
+ columns: ["terms_id"];
4391
+ isOneToOne: false;
4392
+ referencedRelation: "quote_terms";
4393
+ referencedColumns: ["id"];
3616
4394
  }];
3617
4395
  };
3618
4396
  supplier_products: {
@@ -3735,35 +4513,441 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3735
4513
  };
3736
4514
  Relationships: [];
3737
4515
  };
3738
- user_roles: {
4516
+ twinfield_credentials: {
3739
4517
  Row: {
4518
+ administration_code: string | null;
4519
+ client_id: string | null;
4520
+ client_secret: string | null;
4521
+ cluster: string | null;
4522
+ connected_at: string | null;
3740
4523
  created_at: string;
4524
+ environment: string | null;
3741
4525
  id: string;
3742
- role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
4526
+ redirect_uri: string | null;
4527
+ refresh_token: string | null;
4528
+ updated_at: string;
3743
4529
  user_id: string;
3744
4530
  };
3745
4531
  Insert: {
4532
+ administration_code?: string | null;
4533
+ client_id?: string | null;
4534
+ client_secret?: string | null;
4535
+ cluster?: string | null;
4536
+ connected_at?: string | null;
3746
4537
  created_at?: string;
4538
+ environment?: string | null;
3747
4539
  id?: string;
3748
- role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
4540
+ redirect_uri?: string | null;
4541
+ refresh_token?: string | null;
4542
+ updated_at?: string;
3749
4543
  user_id: string;
3750
4544
  };
3751
4545
  Update: {
4546
+ administration_code?: string | null;
4547
+ client_id?: string | null;
4548
+ client_secret?: string | null;
4549
+ cluster?: string | null;
4550
+ connected_at?: string | null;
3752
4551
  created_at?: string;
4552
+ environment?: string | null;
3753
4553
  id?: string;
3754
- role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
4554
+ redirect_uri?: string | null;
4555
+ refresh_token?: string | null;
4556
+ updated_at?: string;
3755
4557
  user_id?: string;
3756
4558
  };
3757
- Relationships: [{
3758
- foreignKeyName: "user_roles_user_id_fkey";
3759
- columns: ["user_id"];
3760
- isOneToOne: false;
3761
- referencedRelation: "profiles";
3762
- referencedColumns: ["id"];
3763
- }];
4559
+ Relationships: [];
4560
+ };
4561
+ twinfield_customers: {
4562
+ Row: {
4563
+ address: string | null;
4564
+ city: string | null;
4565
+ country: string | null;
4566
+ created_at: string;
4567
+ email: string | null;
4568
+ id: string;
4569
+ last_synced_at: string | null;
4570
+ name: string;
4571
+ phone: string | null;
4572
+ postal_code: string | null;
4573
+ status: string;
4574
+ sync_error: string | null;
4575
+ sync_status: string;
4576
+ twinfield_code: string | null;
4577
+ updated_at: string;
4578
+ user_id: string;
4579
+ };
4580
+ Insert: {
4581
+ address?: string | null;
4582
+ city?: string | null;
4583
+ country?: string | null;
4584
+ created_at?: string;
4585
+ email?: string | null;
4586
+ id?: string;
4587
+ last_synced_at?: string | null;
4588
+ name: string;
4589
+ phone?: string | null;
4590
+ postal_code?: string | null;
4591
+ status?: string;
4592
+ sync_error?: string | null;
4593
+ sync_status?: string;
4594
+ twinfield_code?: string | null;
4595
+ updated_at?: string;
4596
+ user_id: string;
4597
+ };
4598
+ Update: {
4599
+ address?: string | null;
4600
+ city?: string | null;
4601
+ country?: string | null;
4602
+ created_at?: string;
4603
+ email?: string | null;
4604
+ id?: string;
4605
+ last_synced_at?: string | null;
4606
+ name?: string;
4607
+ phone?: string | null;
4608
+ postal_code?: string | null;
4609
+ status?: string;
4610
+ sync_error?: string | null;
4611
+ sync_status?: string;
4612
+ twinfield_code?: string | null;
4613
+ updated_at?: string;
4614
+ user_id?: string;
4615
+ };
4616
+ Relationships: [];
4617
+ };
4618
+ twinfield_invoice_lines: {
4619
+ Row: {
4620
+ article_code: string | null;
4621
+ created_at: string;
4622
+ description: string | null;
4623
+ gl_account: string | null;
4624
+ id: string;
4625
+ invoice_id: string;
4626
+ line_number: number | null;
4627
+ line_total: number;
4628
+ quantity: number;
4629
+ unit_price: number;
4630
+ user_id: string;
4631
+ vat_code: string | null;
4632
+ vat_rate: number;
4633
+ };
4634
+ Insert: {
4635
+ article_code?: string | null;
4636
+ created_at?: string;
4637
+ description?: string | null;
4638
+ gl_account?: string | null;
4639
+ id?: string;
4640
+ invoice_id: string;
4641
+ line_number?: number | null;
4642
+ line_total?: number;
4643
+ quantity?: number;
4644
+ unit_price?: number;
4645
+ user_id: string;
4646
+ vat_code?: string | null;
4647
+ vat_rate?: number;
4648
+ };
4649
+ Update: {
4650
+ article_code?: string | null;
4651
+ created_at?: string;
4652
+ description?: string | null;
4653
+ gl_account?: string | null;
4654
+ id?: string;
4655
+ invoice_id?: string;
4656
+ line_number?: number | null;
4657
+ line_total?: number;
4658
+ quantity?: number;
4659
+ unit_price?: number;
4660
+ user_id?: string;
4661
+ vat_code?: string | null;
4662
+ vat_rate?: number;
4663
+ };
4664
+ Relationships: [{
4665
+ foreignKeyName: "twinfield_invoice_lines_invoice_id_fkey";
4666
+ columns: ["invoice_id"];
4667
+ isOneToOne: false;
4668
+ referencedRelation: "twinfield_invoices";
4669
+ referencedColumns: ["id"];
4670
+ }];
4671
+ };
4672
+ twinfield_invoice_settings: {
4673
+ Row: {
4674
+ created_at: string;
4675
+ default_gl_account: string;
4676
+ default_invoice_type: string;
4677
+ default_payment_term_days: number;
4678
+ default_vat_code: string;
4679
+ updated_at: string;
4680
+ user_id: string;
4681
+ };
4682
+ Insert: {
4683
+ created_at?: string;
4684
+ default_gl_account?: string;
4685
+ default_invoice_type?: string;
4686
+ default_payment_term_days?: number;
4687
+ default_vat_code?: string;
4688
+ updated_at?: string;
4689
+ user_id: string;
4690
+ };
4691
+ Update: {
4692
+ created_at?: string;
4693
+ default_gl_account?: string;
4694
+ default_invoice_type?: string;
4695
+ default_payment_term_days?: number;
4696
+ default_vat_code?: string;
4697
+ updated_at?: string;
4698
+ user_id?: string;
4699
+ };
4700
+ Relationships: [];
4701
+ };
4702
+ twinfield_invoice_sync_logs: {
4703
+ Row: {
4704
+ created_at: string;
4705
+ details: import("../integrations/supabase/types").Json | null;
4706
+ duration_ms: number | null;
4707
+ id: string;
4708
+ invoice_lines_fetched: number | null;
4709
+ invoices_fetched: number | null;
4710
+ message: string | null;
4711
+ status: string;
4712
+ step: string | null;
4713
+ user_id: string;
4714
+ };
4715
+ Insert: {
4716
+ created_at?: string;
4717
+ details?: import("../integrations/supabase/types").Json | null;
4718
+ duration_ms?: number | null;
4719
+ id?: string;
4720
+ invoice_lines_fetched?: number | null;
4721
+ invoices_fetched?: number | null;
4722
+ message?: string | null;
4723
+ status: string;
4724
+ step?: string | null;
4725
+ user_id: string;
4726
+ };
4727
+ Update: {
4728
+ created_at?: string;
4729
+ details?: import("../integrations/supabase/types").Json | null;
4730
+ duration_ms?: number | null;
4731
+ id?: string;
4732
+ invoice_lines_fetched?: number | null;
4733
+ invoices_fetched?: number | null;
4734
+ message?: string | null;
4735
+ status?: string;
4736
+ step?: string | null;
4737
+ user_id?: string;
4738
+ };
4739
+ Relationships: [];
4740
+ };
4741
+ twinfield_invoices: {
4742
+ Row: {
4743
+ administration_code: string | null;
4744
+ created_at: string;
4745
+ currency: string | null;
4746
+ customer_code: string | null;
4747
+ customer_email: string | null;
4748
+ customer_name: string | null;
4749
+ customer_phone: string | null;
4750
+ due_date: string | null;
4751
+ id: string;
4752
+ invoice_date: string | null;
4753
+ last_synced_at: string;
4754
+ local_invoice_number: string | null;
4755
+ outstanding_amount: number;
4756
+ paid_amount: number;
4757
+ payment_date: string | null;
4758
+ raw_payload: import("../integrations/supabase/types").Json | null;
4759
+ status: string;
4760
+ subtotal: number;
4761
+ sync_error: string | null;
4762
+ sync_status: string;
4763
+ total: number;
4764
+ twinfield_invoice_number: string;
4765
+ twinfield_transaction_number: string | null;
4766
+ updated_at: string;
4767
+ user_id: string;
4768
+ vat_amount: number;
4769
+ };
4770
+ Insert: {
4771
+ administration_code?: string | null;
4772
+ created_at?: string;
4773
+ currency?: string | null;
4774
+ customer_code?: string | null;
4775
+ customer_email?: string | null;
4776
+ customer_name?: string | null;
4777
+ customer_phone?: string | null;
4778
+ due_date?: string | null;
4779
+ id?: string;
4780
+ invoice_date?: string | null;
4781
+ last_synced_at?: string;
4782
+ local_invoice_number?: string | null;
4783
+ outstanding_amount?: number;
4784
+ paid_amount?: number;
4785
+ payment_date?: string | null;
4786
+ raw_payload?: import("../integrations/supabase/types").Json | null;
4787
+ status?: string;
4788
+ subtotal?: number;
4789
+ sync_error?: string | null;
4790
+ sync_status?: string;
4791
+ total?: number;
4792
+ twinfield_invoice_number: string;
4793
+ twinfield_transaction_number?: string | null;
4794
+ updated_at?: string;
4795
+ user_id: string;
4796
+ vat_amount?: number;
4797
+ };
4798
+ Update: {
4799
+ administration_code?: string | null;
4800
+ created_at?: string;
4801
+ currency?: string | null;
4802
+ customer_code?: string | null;
4803
+ customer_email?: string | null;
4804
+ customer_name?: string | null;
4805
+ customer_phone?: string | null;
4806
+ due_date?: string | null;
4807
+ id?: string;
4808
+ invoice_date?: string | null;
4809
+ last_synced_at?: string;
4810
+ local_invoice_number?: string | null;
4811
+ outstanding_amount?: number;
4812
+ paid_amount?: number;
4813
+ payment_date?: string | null;
4814
+ raw_payload?: import("../integrations/supabase/types").Json | null;
4815
+ status?: string;
4816
+ subtotal?: number;
4817
+ sync_error?: string | null;
4818
+ sync_status?: string;
4819
+ total?: number;
4820
+ twinfield_invoice_number?: string;
4821
+ twinfield_transaction_number?: string | null;
4822
+ updated_at?: string;
4823
+ user_id?: string;
4824
+ vat_amount?: number;
4825
+ };
4826
+ Relationships: [];
4827
+ };
4828
+ user_roles: {
4829
+ Row: {
4830
+ created_at: string;
4831
+ id: string;
4832
+ role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
4833
+ user_id: string;
4834
+ };
4835
+ Insert: {
4836
+ created_at?: string;
4837
+ id?: string;
4838
+ role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
4839
+ user_id: string;
4840
+ };
4841
+ Update: {
4842
+ created_at?: string;
4843
+ id?: string;
4844
+ role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
4845
+ user_id?: string;
4846
+ };
4847
+ Relationships: [{
4848
+ foreignKeyName: "user_roles_user_id_fkey";
4849
+ columns: ["user_id"];
4850
+ isOneToOne: false;
4851
+ referencedRelation: "profiles";
4852
+ referencedColumns: ["id"];
4853
+ }];
4854
+ };
4855
+ };
4856
+ Views: {
4857
+ email_auth_connections_safe: {
4858
+ Row: {
4859
+ account_email: string | null;
4860
+ created_at: string | null;
4861
+ created_by: string | null;
4862
+ display_name: string | null;
4863
+ has_access_token: boolean | null;
4864
+ has_client_id: boolean | null;
4865
+ has_client_secret: boolean | null;
4866
+ has_imap_password: boolean | null;
4867
+ has_refresh_token: boolean | null;
4868
+ has_smtp_password: boolean | null;
4869
+ id: string | null;
4870
+ imap_host: string | null;
4871
+ imap_port: number | null;
4872
+ imap_secure: boolean | null;
4873
+ imap_username: string | null;
4874
+ is_active: boolean | null;
4875
+ last_error: string | null;
4876
+ last_verified_at: string | null;
4877
+ oauth_mode: string | null;
4878
+ provider: string | null;
4879
+ scopes: string[] | null;
4880
+ smtp_host: string | null;
4881
+ smtp_port: number | null;
4882
+ smtp_secure: boolean | null;
4883
+ smtp_username: string | null;
4884
+ status: string | null;
4885
+ token_expires_at: string | null;
4886
+ updated_at: string | null;
4887
+ };
4888
+ Insert: {
4889
+ account_email?: string | null;
4890
+ created_at?: string | null;
4891
+ created_by?: string | null;
4892
+ display_name?: string | null;
4893
+ has_access_token?: never;
4894
+ has_client_id?: never;
4895
+ has_client_secret?: never;
4896
+ has_imap_password?: never;
4897
+ has_refresh_token?: never;
4898
+ has_smtp_password?: never;
4899
+ id?: string | null;
4900
+ imap_host?: string | null;
4901
+ imap_port?: number | null;
4902
+ imap_secure?: boolean | null;
4903
+ imap_username?: string | null;
4904
+ is_active?: boolean | null;
4905
+ last_error?: string | null;
4906
+ last_verified_at?: string | null;
4907
+ oauth_mode?: string | null;
4908
+ provider?: string | null;
4909
+ scopes?: string[] | null;
4910
+ smtp_host?: string | null;
4911
+ smtp_port?: number | null;
4912
+ smtp_secure?: boolean | null;
4913
+ smtp_username?: string | null;
4914
+ status?: string | null;
4915
+ token_expires_at?: string | null;
4916
+ updated_at?: string | null;
4917
+ };
4918
+ Update: {
4919
+ account_email?: string | null;
4920
+ created_at?: string | null;
4921
+ created_by?: string | null;
4922
+ display_name?: string | null;
4923
+ has_access_token?: never;
4924
+ has_client_id?: never;
4925
+ has_client_secret?: never;
4926
+ has_imap_password?: never;
4927
+ has_refresh_token?: never;
4928
+ has_smtp_password?: never;
4929
+ id?: string | null;
4930
+ imap_host?: string | null;
4931
+ imap_port?: number | null;
4932
+ imap_secure?: boolean | null;
4933
+ imap_username?: string | null;
4934
+ is_active?: boolean | null;
4935
+ last_error?: string | null;
4936
+ last_verified_at?: string | null;
4937
+ oauth_mode?: string | null;
4938
+ provider?: string | null;
4939
+ scopes?: string[] | null;
4940
+ smtp_host?: string | null;
4941
+ smtp_port?: number | null;
4942
+ smtp_secure?: boolean | null;
4943
+ smtp_username?: string | null;
4944
+ status?: string | null;
4945
+ token_expires_at?: string | null;
4946
+ updated_at?: string | null;
4947
+ };
4948
+ Relationships: [];
3764
4949
  };
3765
4950
  };
3766
- Views: { [_ in never]: never; };
3767
4951
  Functions: {
3768
4952
  dashboard_list_public_schema: {
3769
4953
  Args: never;
@@ -3773,6 +4957,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3773
4957
  table_name: string;
3774
4958
  }[];
3775
4959
  };
4960
+ email_auth_decrypt: {
4961
+ Args: {
4962
+ cipher: string;
4963
+ };
4964
+ Returns: string;
4965
+ };
4966
+ email_auth_encrypt: {
4967
+ Args: {
4968
+ plain: string;
4969
+ };
4970
+ Returns: string;
4971
+ };
3776
4972
  exact_decrypt: {
3777
4973
  Args: {
3778
4974
  cipher: string;
@@ -3785,6 +4981,49 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3785
4981
  };
3786
4982
  Returns: string;
3787
4983
  };
4984
+ exact_lock_environment: {
4985
+ Args: {
4986
+ _environment: string;
4987
+ };
4988
+ Returns: undefined;
4989
+ };
4990
+ exact_release_refresh_lock: {
4991
+ Args: {
4992
+ _environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4993
+ _locked_by: string;
4994
+ };
4995
+ Returns: undefined;
4996
+ };
4997
+ exact_try_acquire_refresh_lock: {
4998
+ Args: {
4999
+ _environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
5000
+ _lease_seconds?: number;
5001
+ _locked_by?: string;
5002
+ };
5003
+ Returns: boolean;
5004
+ };
5005
+ get_active_floriday_connection_public: {
5006
+ Args: never;
5007
+ Returns: {
5008
+ active_environment: string;
5009
+ environment: string;
5010
+ gln_code: string;
5011
+ id: string;
5012
+ label: string;
5013
+ organization_name: string;
5014
+ preferred_warehouse_id: string;
5015
+ preferred_warehouse_name: string;
5016
+ }[];
5017
+ };
5018
+ get_floriday_cron_jobs: {
5019
+ Args: never;
5020
+ Returns: {
5021
+ active: boolean;
5022
+ jobname: string;
5023
+ schedule: string;
5024
+ url: string;
5025
+ }[];
5026
+ };
3788
5027
  get_offer_by_link_code: {
3789
5028
  Args: {
3790
5029
  p_code: string;
@@ -3798,6 +5037,20 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3798
5037
  };
3799
5038
  Returns: boolean;
3800
5039
  };
5040
+ schedule_floriday_connections_sync: {
5041
+ Args: {
5042
+ p_apikey: string;
5043
+ p_url: string;
5044
+ };
5045
+ Returns: number;
5046
+ };
5047
+ schedule_floriday_customer_organizations_sync: {
5048
+ Args: {
5049
+ p_apikey: string;
5050
+ p_url: string;
5051
+ };
5052
+ Returns: number;
5053
+ };
3801
5054
  schedule_floriday_network_sync: {
3802
5055
  Args: {
3803
5056
  p_apikey: string;
@@ -3805,6 +5058,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3805
5058
  };
3806
5059
  Returns: number;
3807
5060
  };
5061
+ schedule_floriday_salesorders_sync: {
5062
+ Args: {
5063
+ p_apikey: string;
5064
+ p_url: string;
5065
+ };
5066
+ Returns: number;
5067
+ };
3808
5068
  schedule_floriday_token_refresh: {
3809
5069
  Args: {
3810
5070
  p_apikey: string;
@@ -3812,6 +5072,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3812
5072
  };
3813
5073
  Returns: number;
3814
5074
  };
5075
+ schedule_floriday_trade_items_sync: {
5076
+ Args: {
5077
+ p_apikey: string;
5078
+ p_url: string;
5079
+ };
5080
+ Returns: number;
5081
+ };
3815
5082
  show_limit: {
3816
5083
  Args: never;
3817
5084
  Returns: number;
@@ -3826,6 +5093,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3826
5093
  Enums: {
3827
5094
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
3828
5095
  exact_env: "staging" | "live";
5096
+ quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
3829
5097
  };
3830
5098
  CompositeTypes: { [_ in never]: never; };
3831
5099
  }, {