@flowselections/floriday-klanten-module 1.0.15 → 1.0.16

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 (100) hide show
  1. package/dist-lib/assets/floriday-logo.png.asset.json +11 -0
  2. package/dist-lib/components/klanten/BackLink.d.ts +12 -0
  3. package/dist-lib/components/klanten/BackLink.d.ts.map +1 -0
  4. package/dist-lib/components/klanten/BackLink.js +12 -0
  5. package/dist-lib/components/klanten/FloridayAssortmentTab.d.ts +4 -0
  6. package/dist-lib/components/klanten/FloridayAssortmentTab.d.ts.map +1 -0
  7. package/dist-lib/components/klanten/FloridayAssortmentTab.js +80 -0
  8. package/dist-lib/components/klanten/FloridayDeeplinkButton.d.ts +8 -0
  9. package/dist-lib/components/klanten/FloridayDeeplinkButton.d.ts.map +1 -0
  10. package/dist-lib/components/klanten/FloridayDeeplinkButton.js +9 -0
  11. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
  12. package/dist-lib/components/klanten/GroupedKlantDetail.js +19 -5
  13. package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -1
  14. package/dist-lib/components/klanten/ImportKlanten.js +3 -2
  15. package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
  16. package/dist-lib/components/klanten/KlantDetail.js +9 -3
  17. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  18. package/dist-lib/components/klanten/KlantenOverzicht.js +6 -3
  19. package/dist-lib/components/klanten/NetwerkPagina.d.ts.map +1 -1
  20. package/dist-lib/components/klanten/NetwerkPagina.js +21 -18
  21. package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
  22. package/dist-lib/components/klanten/NieuweKlant.js +23 -8
  23. package/dist-lib/components/klanten/PriceGroupBadges.d.ts +7 -0
  24. package/dist-lib/components/klanten/PriceGroupBadges.d.ts.map +1 -0
  25. package/dist-lib/components/klanten/PriceGroupBadges.js +13 -0
  26. package/dist-lib/components/klanten/SyncStatusChip.d.ts +4 -0
  27. package/dist-lib/components/klanten/SyncStatusChip.d.ts.map +1 -0
  28. package/dist-lib/components/klanten/SyncStatusChip.js +49 -0
  29. package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.d.ts +8 -0
  30. package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.d.ts.map +1 -0
  31. package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.js +75 -0
  32. package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.d.ts +4 -0
  33. package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.d.ts.map +1 -0
  34. package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.js +269 -0
  35. package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.d.ts +2 -0
  36. package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.d.ts.map +1 -0
  37. package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.js +133 -0
  38. package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.d.ts +8 -0
  39. package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.d.ts.map +1 -0
  40. package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.js +18 -0
  41. package/dist-lib/index.d.ts +1 -0
  42. package/dist-lib/index.d.ts.map +1 -1
  43. package/dist-lib/index.js +6 -1
  44. package/dist-lib/integrations/supabase/auth-middleware.d.ts +762 -3
  45. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  46. package/dist-lib/integrations/supabase/client.d.ts +762 -3
  47. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  48. package/dist-lib/integrations/supabase/client.js +4 -3
  49. package/dist-lib/integrations/supabase/client.server.d.ts +762 -3
  50. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  51. package/dist-lib/integrations/supabase/types.d.ts +789 -8
  52. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  53. package/dist-lib/lib/accounting/twinfield/client.server.d.ts +21 -0
  54. package/dist-lib/lib/accounting/twinfield/client.server.d.ts.map +1 -0
  55. package/dist-lib/lib/accounting/twinfield/client.server.js +171 -0
  56. package/dist-lib/lib/accounting/twinfield/mapping.d.ts +46 -0
  57. package/dist-lib/lib/accounting/twinfield/mapping.d.ts.map +1 -0
  58. package/dist-lib/lib/accounting/twinfield/mapping.js +109 -0
  59. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +36318 -0
  60. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -0
  61. package/dist-lib/lib/accounting/twinfield/worker.functions.js +48 -0
  62. package/dist-lib/lib/accounting/twinfield/worker.server.d.ts +12 -0
  63. package/dist-lib/lib/accounting/twinfield/worker.server.d.ts.map +1 -0
  64. package/dist-lib/lib/accounting/twinfield/worker.server.js +124 -0
  65. package/dist-lib/lib/accounting.functions.d.ts +2286 -9
  66. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  67. package/dist-lib/lib/customer-analytics.functions.d.ts +762 -3
  68. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  69. package/dist-lib/lib/customer-schemas.d.ts +2 -0
  70. package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
  71. package/dist-lib/lib/customer-schemas.js +1 -0
  72. package/dist-lib/lib/customers.functions.d.ts +18241 -99
  73. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/customers.functions.js +92 -4
  75. package/dist-lib/lib/delivery-locations.functions.d.ts +3048 -12
  76. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  77. package/dist-lib/lib/external-customers.functions.d.ts +3048 -12
  78. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  79. package/dist-lib/lib/floriday-assortment.functions.d.ts +12127 -0
  80. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -0
  81. package/dist-lib/lib/floriday-assortment.functions.js +213 -0
  82. package/dist-lib/lib/floriday-discounts.functions.d.ts +1800 -282
  83. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  84. package/dist-lib/lib/floriday-trade-items.functions.d.ts +12111 -0
  85. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -0
  86. package/dist-lib/lib/floriday-trade-items.functions.js +107 -0
  87. package/dist-lib/lib/local-discounts.functions.d.ts +5336 -23
  88. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  89. package/dist-lib/lib/overdue-invoices.functions.d.ts +762 -3
  90. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  91. package/dist-lib/lib/price-groups-local.functions.d.ts +84841 -0
  92. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -0
  93. package/dist-lib/lib/price-groups-local.functions.js +148 -0
  94. package/dist-lib/lib/price-groups.functions.d.ts +12120 -0
  95. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -0
  96. package/dist-lib/lib/price-groups.functions.js +115 -0
  97. package/dist-lib/lib/pricing.d.ts +24 -0
  98. package/dist-lib/lib/pricing.d.ts.map +1 -0
  99. package/dist-lib/lib/pricing.js +60 -0
  100. package/package.json +6 -3
@@ -280,6 +280,237 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
280
280
  };
281
281
  Relationships: [];
282
282
  };
283
+ ai_admin_credentials: {
284
+ Row: {
285
+ active: boolean;
286
+ admin_key: string;
287
+ created_at: string;
288
+ id: string;
289
+ label: string;
290
+ provider_id: string;
291
+ updated_at: string;
292
+ };
293
+ Insert: {
294
+ active?: boolean;
295
+ admin_key: string;
296
+ created_at?: string;
297
+ id?: string;
298
+ label: string;
299
+ provider_id: string;
300
+ updated_at?: string;
301
+ };
302
+ Update: {
303
+ active?: boolean;
304
+ admin_key?: string;
305
+ created_at?: string;
306
+ id?: string;
307
+ label?: string;
308
+ provider_id?: string;
309
+ updated_at?: string;
310
+ };
311
+ Relationships: [{
312
+ foreignKeyName: "ai_admin_credentials_provider_id_fkey";
313
+ columns: ["provider_id"];
314
+ isOneToOne: true;
315
+ referencedRelation: "ai_providers";
316
+ referencedColumns: ["id"];
317
+ }];
318
+ };
319
+ ai_credentials: {
320
+ Row: {
321
+ active: boolean;
322
+ api_key: string;
323
+ created_at: string;
324
+ id: string;
325
+ label: string;
326
+ provider_id: string;
327
+ updated_at: string;
328
+ };
329
+ Insert: {
330
+ active?: boolean;
331
+ api_key: string;
332
+ created_at?: string;
333
+ id?: string;
334
+ label: string;
335
+ provider_id: string;
336
+ updated_at?: string;
337
+ };
338
+ Update: {
339
+ active?: boolean;
340
+ api_key?: string;
341
+ created_at?: string;
342
+ id?: string;
343
+ label?: string;
344
+ provider_id?: string;
345
+ updated_at?: string;
346
+ };
347
+ Relationships: [{
348
+ foreignKeyName: "ai_credentials_provider_id_fkey";
349
+ columns: ["provider_id"];
350
+ isOneToOne: false;
351
+ referencedRelation: "ai_providers";
352
+ referencedColumns: ["id"];
353
+ }];
354
+ };
355
+ ai_model_pricing: {
356
+ Row: {
357
+ created_at: string;
358
+ currency: string;
359
+ fetched_at: string;
360
+ id: string;
361
+ input_per_mtok: number | null;
362
+ model_slug: string;
363
+ output_per_mtok: number | null;
364
+ provider_slug: string;
365
+ source: string;
366
+ updated_at: string;
367
+ };
368
+ Insert: {
369
+ created_at?: string;
370
+ currency?: string;
371
+ fetched_at?: string;
372
+ id?: string;
373
+ input_per_mtok?: number | null;
374
+ model_slug: string;
375
+ output_per_mtok?: number | null;
376
+ provider_slug: string;
377
+ source?: string;
378
+ updated_at?: string;
379
+ };
380
+ Update: {
381
+ created_at?: string;
382
+ currency?: string;
383
+ fetched_at?: string;
384
+ id?: string;
385
+ input_per_mtok?: number | null;
386
+ model_slug?: string;
387
+ output_per_mtok?: number | null;
388
+ provider_slug?: string;
389
+ source?: string;
390
+ updated_at?: string;
391
+ };
392
+ Relationships: [];
393
+ };
394
+ ai_models: {
395
+ Row: {
396
+ active: boolean;
397
+ context_window: number | null;
398
+ created_at: string;
399
+ display_name: string;
400
+ id: string;
401
+ is_default: boolean;
402
+ modality: string;
403
+ provider_id: string;
404
+ slug: string;
405
+ updated_at: string;
406
+ };
407
+ Insert: {
408
+ active?: boolean;
409
+ context_window?: number | null;
410
+ created_at?: string;
411
+ display_name: string;
412
+ id?: string;
413
+ is_default?: boolean;
414
+ modality?: string;
415
+ provider_id: string;
416
+ slug: string;
417
+ updated_at?: string;
418
+ };
419
+ Update: {
420
+ active?: boolean;
421
+ context_window?: number | null;
422
+ created_at?: string;
423
+ display_name?: string;
424
+ id?: string;
425
+ is_default?: boolean;
426
+ modality?: string;
427
+ provider_id?: string;
428
+ slug?: string;
429
+ updated_at?: string;
430
+ };
431
+ Relationships: [{
432
+ foreignKeyName: "ai_models_provider_id_fkey";
433
+ columns: ["provider_id"];
434
+ isOneToOne: false;
435
+ referencedRelation: "ai_providers";
436
+ referencedColumns: ["id"];
437
+ }];
438
+ };
439
+ ai_module_bindings: {
440
+ Row: {
441
+ consumer_module_id: string;
442
+ created_at: string;
443
+ credential_id: string;
444
+ id: string;
445
+ model_id: string;
446
+ notes: string | null;
447
+ updated_at: string;
448
+ };
449
+ Insert: {
450
+ consumer_module_id: string;
451
+ created_at?: string;
452
+ credential_id: string;
453
+ id?: string;
454
+ model_id: string;
455
+ notes?: string | null;
456
+ updated_at?: string;
457
+ };
458
+ Update: {
459
+ consumer_module_id?: string;
460
+ created_at?: string;
461
+ credential_id?: string;
462
+ id?: string;
463
+ model_id?: string;
464
+ notes?: string | null;
465
+ updated_at?: string;
466
+ };
467
+ Relationships: [{
468
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
469
+ columns: ["credential_id"];
470
+ isOneToOne: false;
471
+ referencedRelation: "ai_credentials";
472
+ referencedColumns: ["id"];
473
+ }, {
474
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
475
+ columns: ["model_id"];
476
+ isOneToOne: false;
477
+ referencedRelation: "ai_models";
478
+ referencedColumns: ["id"];
479
+ }];
480
+ };
481
+ ai_providers: {
482
+ Row: {
483
+ active: boolean;
484
+ auth_type: string;
485
+ base_url: string | null;
486
+ created_at: string;
487
+ id: string;
488
+ name: string;
489
+ slug: string;
490
+ updated_at: string;
491
+ };
492
+ Insert: {
493
+ active?: boolean;
494
+ auth_type?: string;
495
+ base_url?: string | null;
496
+ created_at?: string;
497
+ id?: string;
498
+ name: string;
499
+ slug: string;
500
+ updated_at?: string;
501
+ };
502
+ Update: {
503
+ active?: boolean;
504
+ auth_type?: string;
505
+ base_url?: string | null;
506
+ created_at?: string;
507
+ id?: string;
508
+ name?: string;
509
+ slug?: string;
510
+ updated_at?: string;
511
+ };
512
+ Relationships: [];
513
+ };
283
514
  app_settings: {
284
515
  Row: {
285
516
  created_at: string;
@@ -937,6 +1168,69 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
937
1168
  referencedColumns: ["id"];
938
1169
  }];
939
1170
  };
1171
+ catalog_articles_cache: {
1172
+ Row: {
1173
+ created_at: string;
1174
+ default_price: number;
1175
+ default_vat_rate_ref: string | null;
1176
+ external_ref: string;
1177
+ id: string;
1178
+ name: string;
1179
+ updated_at: string;
1180
+ user_id: string;
1181
+ };
1182
+ Insert: {
1183
+ created_at?: string;
1184
+ default_price?: number;
1185
+ default_vat_rate_ref?: string | null;
1186
+ external_ref: string;
1187
+ id?: string;
1188
+ name: string;
1189
+ updated_at?: string;
1190
+ user_id: string;
1191
+ };
1192
+ Update: {
1193
+ created_at?: string;
1194
+ default_price?: number;
1195
+ default_vat_rate_ref?: string | null;
1196
+ external_ref?: string;
1197
+ id?: string;
1198
+ name?: string;
1199
+ updated_at?: string;
1200
+ user_id?: string;
1201
+ };
1202
+ Relationships: [];
1203
+ };
1204
+ catalog_vat_rates_cache: {
1205
+ Row: {
1206
+ created_at: string;
1207
+ external_ref: string;
1208
+ id: string;
1209
+ label: string;
1210
+ percentage: number;
1211
+ updated_at: string;
1212
+ user_id: string;
1213
+ };
1214
+ Insert: {
1215
+ created_at?: string;
1216
+ external_ref: string;
1217
+ id?: string;
1218
+ label: string;
1219
+ percentage?: number;
1220
+ updated_at?: string;
1221
+ user_id: string;
1222
+ };
1223
+ Update: {
1224
+ created_at?: string;
1225
+ external_ref?: string;
1226
+ id?: string;
1227
+ label?: string;
1228
+ percentage?: number;
1229
+ updated_at?: string;
1230
+ user_id?: string;
1231
+ };
1232
+ Relationships: [];
1233
+ };
940
1234
  collections: {
941
1235
  Row: {
942
1236
  created_at: string;
@@ -1186,6 +1480,105 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
1186
1480
  };
1187
1481
  Relationships: [];
1188
1482
  };
1483
+ customer_price_group_members: {
1484
+ Row: {
1485
+ created_at: string;
1486
+ customer_key: string;
1487
+ id: string;
1488
+ owner_id: string;
1489
+ price_group_id: string;
1490
+ };
1491
+ Insert: {
1492
+ created_at?: string;
1493
+ customer_key: string;
1494
+ id?: string;
1495
+ owner_id?: string;
1496
+ price_group_id: string;
1497
+ };
1498
+ Update: {
1499
+ created_at?: string;
1500
+ customer_key?: string;
1501
+ id?: string;
1502
+ owner_id?: string;
1503
+ price_group_id?: string;
1504
+ };
1505
+ Relationships: [{
1506
+ foreignKeyName: "customer_price_group_members_price_group_id_fkey";
1507
+ columns: ["price_group_id"];
1508
+ isOneToOne: false;
1509
+ referencedRelation: "customer_price_groups";
1510
+ referencedColumns: ["id"];
1511
+ }];
1512
+ };
1513
+ customer_price_groups: {
1514
+ Row: {
1515
+ calc_type: string | null;
1516
+ calc_value: number | null;
1517
+ calc_value_type: string | null;
1518
+ created_at: string;
1519
+ currency: string;
1520
+ distribute_over: string | null;
1521
+ group_type: string;
1522
+ handling_fee: number | null;
1523
+ id: string;
1524
+ include_stickers: boolean;
1525
+ is_active: boolean;
1526
+ name: string;
1527
+ owner_id: string;
1528
+ price_scope: string;
1529
+ pricing_mode: string;
1530
+ rounding: string;
1531
+ rounding_step: number;
1532
+ sort_order: number;
1533
+ unit: string;
1534
+ updated_at: string;
1535
+ };
1536
+ Insert: {
1537
+ calc_type?: string | null;
1538
+ calc_value?: number | null;
1539
+ calc_value_type?: string | null;
1540
+ created_at?: string;
1541
+ currency?: string;
1542
+ distribute_over?: string | null;
1543
+ group_type?: string;
1544
+ handling_fee?: number | null;
1545
+ id?: string;
1546
+ include_stickers?: boolean;
1547
+ is_active?: boolean;
1548
+ name: string;
1549
+ owner_id?: string;
1550
+ price_scope?: string;
1551
+ pricing_mode?: string;
1552
+ rounding?: string;
1553
+ rounding_step?: number;
1554
+ sort_order?: number;
1555
+ unit?: string;
1556
+ updated_at?: string;
1557
+ };
1558
+ Update: {
1559
+ calc_type?: string | null;
1560
+ calc_value?: number | null;
1561
+ calc_value_type?: string | null;
1562
+ created_at?: string;
1563
+ currency?: string;
1564
+ distribute_over?: string | null;
1565
+ group_type?: string;
1566
+ handling_fee?: number | null;
1567
+ id?: string;
1568
+ include_stickers?: boolean;
1569
+ is_active?: boolean;
1570
+ name?: string;
1571
+ owner_id?: string;
1572
+ price_scope?: string;
1573
+ pricing_mode?: string;
1574
+ rounding?: string;
1575
+ rounding_step?: number;
1576
+ sort_order?: number;
1577
+ unit?: string;
1578
+ updated_at?: string;
1579
+ };
1580
+ Relationships: [];
1581
+ };
1189
1582
  customer_selected_assortment: {
1190
1583
  Row: {
1191
1584
  article_number: string | null;
@@ -1339,6 +1732,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
1339
1732
  sync_error: string | null;
1340
1733
  sync_status: string;
1341
1734
  trade_forms: string[];
1735
+ twinfield_code: string | null;
1736
+ twinfield_last_hash: string | null;
1737
+ twinfield_sync_error: string | null;
1738
+ twinfield_synced_at: string | null;
1342
1739
  updated_at: string;
1343
1740
  vat_display: string | null;
1344
1741
  vat_number: string | null;
@@ -1406,6 +1803,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
1406
1803
  sync_error?: string | null;
1407
1804
  sync_status?: string;
1408
1805
  trade_forms?: string[];
1806
+ twinfield_code?: string | null;
1807
+ twinfield_last_hash?: string | null;
1808
+ twinfield_sync_error?: string | null;
1809
+ twinfield_synced_at?: string | null;
1409
1810
  updated_at?: string;
1410
1811
  vat_display?: string | null;
1411
1812
  vat_number?: string | null;
@@ -1473,6 +1874,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
1473
1874
  sync_error?: string | null;
1474
1875
  sync_status?: string;
1475
1876
  trade_forms?: string[];
1877
+ twinfield_code?: string | null;
1878
+ twinfield_last_hash?: string | null;
1879
+ twinfield_sync_error?: string | null;
1880
+ twinfield_synced_at?: string | null;
1476
1881
  updated_at?: string;
1477
1882
  vat_display?: string | null;
1478
1883
  vat_number?: string | null;
@@ -8455,6 +8860,27 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8455
8860
  };
8456
8861
  Relationships: [];
8457
8862
  };
8863
+ technician_rates: {
8864
+ Row: {
8865
+ created_at: string;
8866
+ hourly_rate_cents: number;
8867
+ updated_at: string;
8868
+ user_id: string;
8869
+ };
8870
+ Insert: {
8871
+ created_at?: string;
8872
+ hourly_rate_cents?: number;
8873
+ updated_at?: string;
8874
+ user_id: string;
8875
+ };
8876
+ Update: {
8877
+ created_at?: string;
8878
+ hourly_rate_cents?: number;
8879
+ updated_at?: string;
8880
+ user_id?: string;
8881
+ };
8882
+ Relationships: [];
8883
+ };
8458
8884
  tenants: {
8459
8885
  Row: {
8460
8886
  created_at: string;
@@ -8924,6 +9350,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8924
9350
  country: string | null;
8925
9351
  created_at: string;
8926
9352
  email: string | null;
9353
+ external_group_key: string | null;
8927
9354
  id: string;
8928
9355
  last_synced_at: string | null;
8929
9356
  name: string;
@@ -8942,6 +9369,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8942
9369
  country?: string | null;
8943
9370
  created_at?: string;
8944
9371
  email?: string | null;
9372
+ external_group_key?: string | null;
8945
9373
  id?: string;
8946
9374
  last_synced_at?: string | null;
8947
9375
  name: string;
@@ -8960,6 +9388,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
8960
9388
  country?: string | null;
8961
9389
  created_at?: string;
8962
9390
  email?: string | null;
9391
+ external_group_key?: string | null;
8963
9392
  id?: string;
8964
9393
  last_synced_at?: string | null;
8965
9394
  name?: string;
@@ -9124,6 +9553,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9124
9553
  twinfield_invoice_settings: {
9125
9554
  Row: {
9126
9555
  created_at: string;
9556
+ debtor_gl_account: string;
9557
+ default_credit_invoice_type: string | null;
9127
9558
  default_gl_account: string;
9128
9559
  default_invoice_type: string;
9129
9560
  default_payment_term_days: number;
@@ -9132,11 +9563,15 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9132
9563
  invoice_enabled_fo: boolean;
9133
9564
  invoice_enabled_ho: boolean;
9134
9565
  invoice_enabled_mo: boolean;
9566
+ payment_gl_account: string;
9567
+ payment_journal_code: string;
9135
9568
  updated_at: string;
9136
9569
  user_id: string;
9137
9570
  };
9138
9571
  Insert: {
9139
9572
  created_at?: string;
9573
+ debtor_gl_account?: string;
9574
+ default_credit_invoice_type?: string | null;
9140
9575
  default_gl_account?: string;
9141
9576
  default_invoice_type?: string;
9142
9577
  default_payment_term_days?: number;
@@ -9145,11 +9580,15 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9145
9580
  invoice_enabled_fo?: boolean;
9146
9581
  invoice_enabled_ho?: boolean;
9147
9582
  invoice_enabled_mo?: boolean;
9583
+ payment_gl_account?: string;
9584
+ payment_journal_code?: string;
9148
9585
  updated_at?: string;
9149
9586
  user_id: string;
9150
9587
  };
9151
9588
  Update: {
9152
9589
  created_at?: string;
9590
+ debtor_gl_account?: string;
9591
+ default_credit_invoice_type?: string | null;
9153
9592
  default_gl_account?: string;
9154
9593
  default_invoice_type?: string;
9155
9594
  default_payment_term_days?: number;
@@ -9158,6 +9597,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9158
9597
  invoice_enabled_fo?: boolean;
9159
9598
  invoice_enabled_ho?: boolean;
9160
9599
  invoice_enabled_mo?: boolean;
9600
+ payment_gl_account?: string;
9601
+ payment_journal_code?: string;
9161
9602
  updated_at?: string;
9162
9603
  user_id?: string;
9163
9604
  };
@@ -9378,43 +9819,49 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9378
9819
  };
9379
9820
  twinfield_push_queue: {
9380
9821
  Row: {
9822
+ action: string;
9381
9823
  attempts: number;
9382
9824
  connection_id: string;
9383
9825
  created_at: string;
9826
+ customer_id: string | null;
9384
9827
  external_id: string | null;
9385
9828
  id: string;
9386
9829
  idempotency_key: string;
9387
9830
  last_error: string | null;
9388
9831
  next_attempt_at: string;
9389
- office_code: string;
9832
+ office_code: string | null;
9390
9833
  payload: import("../integrations/supabase/types").Json;
9391
9834
  status: string;
9392
9835
  updated_at: string;
9393
9836
  };
9394
9837
  Insert: {
9838
+ action?: string;
9395
9839
  attempts?: number;
9396
9840
  connection_id: string;
9397
9841
  created_at?: string;
9842
+ customer_id?: string | null;
9398
9843
  external_id?: string | null;
9399
9844
  id?: string;
9400
9845
  idempotency_key: string;
9401
9846
  last_error?: string | null;
9402
9847
  next_attempt_at?: string;
9403
- office_code: string;
9848
+ office_code?: string | null;
9404
9849
  payload: import("../integrations/supabase/types").Json;
9405
9850
  status?: string;
9406
9851
  updated_at?: string;
9407
9852
  };
9408
9853
  Update: {
9854
+ action?: string;
9409
9855
  attempts?: number;
9410
9856
  connection_id?: string;
9411
9857
  created_at?: string;
9858
+ customer_id?: string | null;
9412
9859
  external_id?: string | null;
9413
9860
  id?: string;
9414
9861
  idempotency_key?: string;
9415
9862
  last_error?: string | null;
9416
9863
  next_attempt_at?: string;
9417
- office_code?: string;
9864
+ office_code?: string | null;
9418
9865
  payload?: import("../integrations/supabase/types").Json;
9419
9866
  status?: string;
9420
9867
  updated_at?: string;
@@ -9425,6 +9872,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9425
9872
  isOneToOne: false;
9426
9873
  referencedRelation: "twinfield_connections";
9427
9874
  referencedColumns: ["id"];
9875
+ }, {
9876
+ foreignKeyName: "twinfield_push_queue_customer_id_fkey";
9877
+ columns: ["customer_id"];
9878
+ isOneToOne: false;
9879
+ referencedRelation: "customers";
9880
+ referencedColumns: ["id"];
9428
9881
  }];
9429
9882
  };
9430
9883
  twinfield_request_metrics: {
@@ -9700,6 +10153,246 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9700
10153
  };
9701
10154
  Relationships: [];
9702
10155
  };
10156
+ werkbon_package_lines: {
10157
+ Row: {
10158
+ created_at: string;
10159
+ created_by: string | null;
10160
+ id: string;
10161
+ package_id: string;
10162
+ quantity: number;
10163
+ unit_price_cents_snapshot: number;
10164
+ werkbon_id: string;
10165
+ };
10166
+ Insert: {
10167
+ created_at?: string;
10168
+ created_by?: string | null;
10169
+ id?: string;
10170
+ package_id: string;
10171
+ quantity?: number;
10172
+ unit_price_cents_snapshot?: number;
10173
+ werkbon_id: string;
10174
+ };
10175
+ Update: {
10176
+ created_at?: string;
10177
+ created_by?: string | null;
10178
+ id?: string;
10179
+ package_id?: string;
10180
+ quantity?: number;
10181
+ unit_price_cents_snapshot?: number;
10182
+ werkbon_id?: string;
10183
+ };
10184
+ Relationships: [{
10185
+ foreignKeyName: "werkbon_package_lines_package_id_fkey";
10186
+ columns: ["package_id"];
10187
+ isOneToOne: false;
10188
+ referencedRelation: "werkbon_packages";
10189
+ referencedColumns: ["id"];
10190
+ }, {
10191
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
10192
+ columns: ["werkbon_id"];
10193
+ isOneToOne: false;
10194
+ referencedRelation: "werkbonnen";
10195
+ referencedColumns: ["id"];
10196
+ }];
10197
+ };
10198
+ werkbon_packages: {
10199
+ Row: {
10200
+ active: boolean;
10201
+ code: string;
10202
+ created_at: string;
10203
+ default_quantity: number;
10204
+ description: string | null;
10205
+ id: string;
10206
+ name: string;
10207
+ unit_price_cents: number;
10208
+ updated_at: string;
10209
+ };
10210
+ Insert: {
10211
+ active?: boolean;
10212
+ code: string;
10213
+ created_at?: string;
10214
+ default_quantity?: number;
10215
+ description?: string | null;
10216
+ id?: string;
10217
+ name: string;
10218
+ unit_price_cents?: number;
10219
+ updated_at?: string;
10220
+ };
10221
+ Update: {
10222
+ active?: boolean;
10223
+ code?: string;
10224
+ created_at?: string;
10225
+ default_quantity?: number;
10226
+ description?: string | null;
10227
+ id?: string;
10228
+ name?: string;
10229
+ unit_price_cents?: number;
10230
+ updated_at?: string;
10231
+ };
10232
+ Relationships: [];
10233
+ };
10234
+ werkbon_photos: {
10235
+ Row: {
10236
+ created_at: string;
10237
+ id: string;
10238
+ storage_path: string;
10239
+ user_id: string;
10240
+ werkbon_id: string;
10241
+ };
10242
+ Insert: {
10243
+ created_at?: string;
10244
+ id?: string;
10245
+ storage_path: string;
10246
+ user_id: string;
10247
+ werkbon_id: string;
10248
+ };
10249
+ Update: {
10250
+ created_at?: string;
10251
+ id?: string;
10252
+ storage_path?: string;
10253
+ user_id?: string;
10254
+ werkbon_id?: string;
10255
+ };
10256
+ Relationships: [{
10257
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
10258
+ columns: ["werkbon_id"];
10259
+ isOneToOne: false;
10260
+ referencedRelation: "werkbonnen";
10261
+ referencedColumns: ["id"];
10262
+ }];
10263
+ };
10264
+ werkbon_time_logs: {
10265
+ Row: {
10266
+ activity: string;
10267
+ created_at: string;
10268
+ ended_at: string | null;
10269
+ id: string;
10270
+ started_at: string;
10271
+ user_id: string;
10272
+ werkbon_id: string;
10273
+ };
10274
+ Insert: {
10275
+ activity: string;
10276
+ created_at?: string;
10277
+ ended_at?: string | null;
10278
+ id?: string;
10279
+ started_at?: string;
10280
+ user_id: string;
10281
+ werkbon_id: string;
10282
+ };
10283
+ Update: {
10284
+ activity?: string;
10285
+ created_at?: string;
10286
+ ended_at?: string | null;
10287
+ id?: string;
10288
+ started_at?: string;
10289
+ user_id?: string;
10290
+ werkbon_id?: string;
10291
+ };
10292
+ Relationships: [{
10293
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
10294
+ columns: ["werkbon_id"];
10295
+ isOneToOne: false;
10296
+ referencedRelation: "werkbonnen";
10297
+ referencedColumns: ["id"];
10298
+ }];
10299
+ };
10300
+ werkbonnen: {
10301
+ Row: {
10302
+ assigned_user_id: string | null;
10303
+ budget_mandate_cents: number;
10304
+ complaint_description: string | null;
10305
+ created_at: string;
10306
+ created_by: string | null;
10307
+ customer_id: string | null;
10308
+ externe_referentie: string | null;
10309
+ first_time_fix: boolean | null;
10310
+ id: string;
10311
+ internal_notes: string | null;
10312
+ parent_werkbon_id: string | null;
10313
+ parsed_payload: import("../integrations/supabase/types").Json | null;
10314
+ project_number: string | null;
10315
+ room_number: string | null;
10316
+ scheduled_end_time: string | null;
10317
+ scheduled_start_time: string | null;
10318
+ sequence_number: number;
10319
+ source_pdf_path: string | null;
10320
+ status: string;
10321
+ technician_notes: string | null;
10322
+ technician_notes_raw: string | null;
10323
+ technician_task_description: string | null;
10324
+ updated_at: string;
10325
+ version: number;
10326
+ work_address: string | null;
10327
+ };
10328
+ Insert: {
10329
+ assigned_user_id?: string | null;
10330
+ budget_mandate_cents?: number;
10331
+ complaint_description?: string | null;
10332
+ created_at?: string;
10333
+ created_by?: string | null;
10334
+ customer_id?: string | null;
10335
+ externe_referentie?: string | null;
10336
+ first_time_fix?: boolean | null;
10337
+ id?: string;
10338
+ internal_notes?: string | null;
10339
+ parent_werkbon_id?: string | null;
10340
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
10341
+ project_number?: string | null;
10342
+ room_number?: string | null;
10343
+ scheduled_end_time?: string | null;
10344
+ scheduled_start_time?: string | null;
10345
+ sequence_number: number;
10346
+ source_pdf_path?: string | null;
10347
+ status?: string;
10348
+ technician_notes?: string | null;
10349
+ technician_notes_raw?: string | null;
10350
+ technician_task_description?: string | null;
10351
+ updated_at?: string;
10352
+ version?: number;
10353
+ work_address?: string | null;
10354
+ };
10355
+ Update: {
10356
+ assigned_user_id?: string | null;
10357
+ budget_mandate_cents?: number;
10358
+ complaint_description?: string | null;
10359
+ created_at?: string;
10360
+ created_by?: string | null;
10361
+ customer_id?: string | null;
10362
+ externe_referentie?: string | null;
10363
+ first_time_fix?: boolean | null;
10364
+ id?: string;
10365
+ internal_notes?: string | null;
10366
+ parent_werkbon_id?: string | null;
10367
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
10368
+ project_number?: string | null;
10369
+ room_number?: string | null;
10370
+ scheduled_end_time?: string | null;
10371
+ scheduled_start_time?: string | null;
10372
+ sequence_number?: number;
10373
+ source_pdf_path?: string | null;
10374
+ status?: string;
10375
+ technician_notes?: string | null;
10376
+ technician_notes_raw?: string | null;
10377
+ technician_task_description?: string | null;
10378
+ updated_at?: string;
10379
+ version?: number;
10380
+ work_address?: string | null;
10381
+ };
10382
+ Relationships: [{
10383
+ foreignKeyName: "werkbonnen_customer_id_fkey";
10384
+ columns: ["customer_id"];
10385
+ isOneToOne: false;
10386
+ referencedRelation: "customers";
10387
+ referencedColumns: ["id"];
10388
+ }, {
10389
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
10390
+ columns: ["parent_werkbon_id"];
10391
+ isOneToOne: false;
10392
+ referencedRelation: "werkbonnen";
10393
+ referencedColumns: ["id"];
10394
+ }];
10395
+ };
9703
10396
  work_order_monteurs: {
9704
10397
  Row: {
9705
10398
  created_at: string;
@@ -9870,6 +10563,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9870
10563
  created_at: string | null;
9871
10564
  created_by: string | null;
9872
10565
  display_name: string | null;
10566
+ graph_subscription_expires_at: string | null;
10567
+ graph_subscription_id: string | null;
9873
10568
  has_access_token: boolean | null;
9874
10569
  has_client_id: boolean | null;
9875
10570
  has_client_secret: boolean | null;
@@ -9887,6 +10582,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9887
10582
  oauth_mode: string | null;
9888
10583
  provider: string | null;
9889
10584
  purpose_assignments: import("../integrations/supabase/types").Json | null;
10585
+ realtime_mode: string | null;
9890
10586
  scopes: string[] | null;
9891
10587
  smtp_host: string | null;
9892
10588
  smtp_port: number | null;
@@ -9901,6 +10597,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9901
10597
  created_at?: string | null;
9902
10598
  created_by?: string | null;
9903
10599
  display_name?: string | null;
10600
+ graph_subscription_expires_at?: string | null;
10601
+ graph_subscription_id?: string | null;
9904
10602
  has_access_token?: never;
9905
10603
  has_client_id?: never;
9906
10604
  has_client_secret?: never;
@@ -9918,6 +10616,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9918
10616
  oauth_mode?: string | null;
9919
10617
  provider?: string | null;
9920
10618
  purpose_assignments?: import("../integrations/supabase/types").Json | null;
10619
+ realtime_mode?: string | null;
9921
10620
  scopes?: string[] | null;
9922
10621
  smtp_host?: string | null;
9923
10622
  smtp_port?: number | null;
@@ -9932,6 +10631,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9932
10631
  created_at?: string | null;
9933
10632
  created_by?: string | null;
9934
10633
  display_name?: string | null;
10634
+ graph_subscription_expires_at?: string | null;
10635
+ graph_subscription_id?: string | null;
9935
10636
  has_access_token?: never;
9936
10637
  has_client_id?: never;
9937
10638
  has_client_secret?: never;
@@ -9949,6 +10650,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
9949
10650
  oauth_mode?: string | null;
9950
10651
  provider?: string | null;
9951
10652
  purpose_assignments?: import("../integrations/supabase/types").Json | null;
10653
+ realtime_mode?: string | null;
9952
10654
  scopes?: string[] | null;
9953
10655
  smtp_host?: string | null;
9954
10656
  smtp_port?: number | null;
@@ -10492,6 +11194,33 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10492
11194
  };
10493
11195
  Returns: import("../integrations/supabase/types").Json;
10494
11196
  };
11197
+ claim_twinfield_push_batch: {
11198
+ Args: {
11199
+ _limit?: number;
11200
+ };
11201
+ Returns: {
11202
+ action: string;
11203
+ attempts: number;
11204
+ connection_id: string;
11205
+ created_at: string;
11206
+ customer_id: string | null;
11207
+ external_id: string | null;
11208
+ id: string;
11209
+ idempotency_key: string;
11210
+ last_error: string | null;
11211
+ next_attempt_at: string;
11212
+ office_code: string | null;
11213
+ payload: import("../integrations/supabase/types").Json;
11214
+ status: string;
11215
+ updated_at: string;
11216
+ }[];
11217
+ SetofOptions: {
11218
+ from: "*";
11219
+ to: "twinfield_push_queue";
11220
+ isOneToOne: false;
11221
+ isSetofReturn: true;
11222
+ };
11223
+ };
10495
11224
  cleanup_old_bookings: {
10496
11225
  Args: never;
10497
11226
  Returns: undefined;
@@ -10588,6 +11317,16 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10588
11317
  status: string;
10589
11318
  }[];
10590
11319
  };
11320
+ email_auth_upsert_connection: {
11321
+ Args: {
11322
+ _account_email: string;
11323
+ _created_by: string;
11324
+ _is_active: boolean;
11325
+ _provider: string;
11326
+ _status: string;
11327
+ };
11328
+ Returns: string;
11329
+ };
10591
11330
  enqueue_cart_replan_if_unlocked: {
10592
11331
  Args: {
10593
11332
  p_order_id: string;
@@ -10860,6 +11599,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10860
11599
  };
10861
11600
  Returns: boolean;
10862
11601
  };
11602
+ has_twinfield_link: {
11603
+ Args: never;
11604
+ Returns: boolean;
11605
+ };
10863
11606
  is_authenticated: {
10864
11607
  Args: never;
10865
11608
  Returns: boolean;
@@ -10915,6 +11658,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10915
11658
  };
10916
11659
  Returns: string;
10917
11660
  };
11661
+ next_twinfield_code: {
11662
+ Args: never;
11663
+ Returns: string;
11664
+ };
10918
11665
  next_work_order_number: {
10919
11666
  Args: {
10920
11667
  p_parent_work_order_id?: string;
@@ -11029,6 +11776,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11029
11776
  };
11030
11777
  Returns: number;
11031
11778
  };
11779
+ reorder_customer_price_groups: {
11780
+ Args: {
11781
+ _ids: string[];
11782
+ };
11783
+ Returns: undefined;
11784
+ };
11032
11785
  reset_floriday_sync_cursor: {
11033
11786
  Args: {
11034
11787
  p_connection_id: string;
@@ -11042,6 +11795,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11042
11795
  };
11043
11796
  Returns: string;
11044
11797
  };
11798
+ retry_twinfield_push: {
11799
+ Args: {
11800
+ _customer_id: string;
11801
+ };
11802
+ Returns: number;
11803
+ };
11045
11804
  schedule_floriday_additional_services_sync: {
11046
11805
  Args: {
11047
11806
  p_apikey: string;
@@ -11626,6 +12385,237 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
11626
12385
  };
11627
12386
  Relationships: [];
11628
12387
  };
12388
+ ai_admin_credentials: {
12389
+ Row: {
12390
+ active: boolean;
12391
+ admin_key: string;
12392
+ created_at: string;
12393
+ id: string;
12394
+ label: string;
12395
+ provider_id: string;
12396
+ updated_at: string;
12397
+ };
12398
+ Insert: {
12399
+ active?: boolean;
12400
+ admin_key: string;
12401
+ created_at?: string;
12402
+ id?: string;
12403
+ label: string;
12404
+ provider_id: string;
12405
+ updated_at?: string;
12406
+ };
12407
+ Update: {
12408
+ active?: boolean;
12409
+ admin_key?: string;
12410
+ created_at?: string;
12411
+ id?: string;
12412
+ label?: string;
12413
+ provider_id?: string;
12414
+ updated_at?: string;
12415
+ };
12416
+ Relationships: [{
12417
+ foreignKeyName: "ai_admin_credentials_provider_id_fkey";
12418
+ columns: ["provider_id"];
12419
+ isOneToOne: true;
12420
+ referencedRelation: "ai_providers";
12421
+ referencedColumns: ["id"];
12422
+ }];
12423
+ };
12424
+ ai_credentials: {
12425
+ Row: {
12426
+ active: boolean;
12427
+ api_key: string;
12428
+ created_at: string;
12429
+ id: string;
12430
+ label: string;
12431
+ provider_id: string;
12432
+ updated_at: string;
12433
+ };
12434
+ Insert: {
12435
+ active?: boolean;
12436
+ api_key: string;
12437
+ created_at?: string;
12438
+ id?: string;
12439
+ label: string;
12440
+ provider_id: string;
12441
+ updated_at?: string;
12442
+ };
12443
+ Update: {
12444
+ active?: boolean;
12445
+ api_key?: string;
12446
+ created_at?: string;
12447
+ id?: string;
12448
+ label?: string;
12449
+ provider_id?: string;
12450
+ updated_at?: string;
12451
+ };
12452
+ Relationships: [{
12453
+ foreignKeyName: "ai_credentials_provider_id_fkey";
12454
+ columns: ["provider_id"];
12455
+ isOneToOne: false;
12456
+ referencedRelation: "ai_providers";
12457
+ referencedColumns: ["id"];
12458
+ }];
12459
+ };
12460
+ ai_model_pricing: {
12461
+ Row: {
12462
+ created_at: string;
12463
+ currency: string;
12464
+ fetched_at: string;
12465
+ id: string;
12466
+ input_per_mtok: number | null;
12467
+ model_slug: string;
12468
+ output_per_mtok: number | null;
12469
+ provider_slug: string;
12470
+ source: string;
12471
+ updated_at: string;
12472
+ };
12473
+ Insert: {
12474
+ created_at?: string;
12475
+ currency?: string;
12476
+ fetched_at?: string;
12477
+ id?: string;
12478
+ input_per_mtok?: number | null;
12479
+ model_slug: string;
12480
+ output_per_mtok?: number | null;
12481
+ provider_slug: string;
12482
+ source?: string;
12483
+ updated_at?: string;
12484
+ };
12485
+ Update: {
12486
+ created_at?: string;
12487
+ currency?: string;
12488
+ fetched_at?: string;
12489
+ id?: string;
12490
+ input_per_mtok?: number | null;
12491
+ model_slug?: string;
12492
+ output_per_mtok?: number | null;
12493
+ provider_slug?: string;
12494
+ source?: string;
12495
+ updated_at?: string;
12496
+ };
12497
+ Relationships: [];
12498
+ };
12499
+ ai_models: {
12500
+ Row: {
12501
+ active: boolean;
12502
+ context_window: number | null;
12503
+ created_at: string;
12504
+ display_name: string;
12505
+ id: string;
12506
+ is_default: boolean;
12507
+ modality: string;
12508
+ provider_id: string;
12509
+ slug: string;
12510
+ updated_at: string;
12511
+ };
12512
+ Insert: {
12513
+ active?: boolean;
12514
+ context_window?: number | null;
12515
+ created_at?: string;
12516
+ display_name: string;
12517
+ id?: string;
12518
+ is_default?: boolean;
12519
+ modality?: string;
12520
+ provider_id: string;
12521
+ slug: string;
12522
+ updated_at?: string;
12523
+ };
12524
+ Update: {
12525
+ active?: boolean;
12526
+ context_window?: number | null;
12527
+ created_at?: string;
12528
+ display_name?: string;
12529
+ id?: string;
12530
+ is_default?: boolean;
12531
+ modality?: string;
12532
+ provider_id?: string;
12533
+ slug?: string;
12534
+ updated_at?: string;
12535
+ };
12536
+ Relationships: [{
12537
+ foreignKeyName: "ai_models_provider_id_fkey";
12538
+ columns: ["provider_id"];
12539
+ isOneToOne: false;
12540
+ referencedRelation: "ai_providers";
12541
+ referencedColumns: ["id"];
12542
+ }];
12543
+ };
12544
+ ai_module_bindings: {
12545
+ Row: {
12546
+ consumer_module_id: string;
12547
+ created_at: string;
12548
+ credential_id: string;
12549
+ id: string;
12550
+ model_id: string;
12551
+ notes: string | null;
12552
+ updated_at: string;
12553
+ };
12554
+ Insert: {
12555
+ consumer_module_id: string;
12556
+ created_at?: string;
12557
+ credential_id: string;
12558
+ id?: string;
12559
+ model_id: string;
12560
+ notes?: string | null;
12561
+ updated_at?: string;
12562
+ };
12563
+ Update: {
12564
+ consumer_module_id?: string;
12565
+ created_at?: string;
12566
+ credential_id?: string;
12567
+ id?: string;
12568
+ model_id?: string;
12569
+ notes?: string | null;
12570
+ updated_at?: string;
12571
+ };
12572
+ Relationships: [{
12573
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
12574
+ columns: ["credential_id"];
12575
+ isOneToOne: false;
12576
+ referencedRelation: "ai_credentials";
12577
+ referencedColumns: ["id"];
12578
+ }, {
12579
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
12580
+ columns: ["model_id"];
12581
+ isOneToOne: false;
12582
+ referencedRelation: "ai_models";
12583
+ referencedColumns: ["id"];
12584
+ }];
12585
+ };
12586
+ ai_providers: {
12587
+ Row: {
12588
+ active: boolean;
12589
+ auth_type: string;
12590
+ base_url: string | null;
12591
+ created_at: string;
12592
+ id: string;
12593
+ name: string;
12594
+ slug: string;
12595
+ updated_at: string;
12596
+ };
12597
+ Insert: {
12598
+ active?: boolean;
12599
+ auth_type?: string;
12600
+ base_url?: string | null;
12601
+ created_at?: string;
12602
+ id?: string;
12603
+ name: string;
12604
+ slug: string;
12605
+ updated_at?: string;
12606
+ };
12607
+ Update: {
12608
+ active?: boolean;
12609
+ auth_type?: string;
12610
+ base_url?: string | null;
12611
+ created_at?: string;
12612
+ id?: string;
12613
+ name?: string;
12614
+ slug?: string;
12615
+ updated_at?: string;
12616
+ };
12617
+ Relationships: [];
12618
+ };
11629
12619
  app_settings: {
11630
12620
  Row: {
11631
12621
  created_at: string;
@@ -12283,6 +13273,69 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
12283
13273
  referencedColumns: ["id"];
12284
13274
  }];
12285
13275
  };
13276
+ catalog_articles_cache: {
13277
+ Row: {
13278
+ created_at: string;
13279
+ default_price: number;
13280
+ default_vat_rate_ref: string | null;
13281
+ external_ref: string;
13282
+ id: string;
13283
+ name: string;
13284
+ updated_at: string;
13285
+ user_id: string;
13286
+ };
13287
+ Insert: {
13288
+ created_at?: string;
13289
+ default_price?: number;
13290
+ default_vat_rate_ref?: string | null;
13291
+ external_ref: string;
13292
+ id?: string;
13293
+ name: string;
13294
+ updated_at?: string;
13295
+ user_id: string;
13296
+ };
13297
+ Update: {
13298
+ created_at?: string;
13299
+ default_price?: number;
13300
+ default_vat_rate_ref?: string | null;
13301
+ external_ref?: string;
13302
+ id?: string;
13303
+ name?: string;
13304
+ updated_at?: string;
13305
+ user_id?: string;
13306
+ };
13307
+ Relationships: [];
13308
+ };
13309
+ catalog_vat_rates_cache: {
13310
+ Row: {
13311
+ created_at: string;
13312
+ external_ref: string;
13313
+ id: string;
13314
+ label: string;
13315
+ percentage: number;
13316
+ updated_at: string;
13317
+ user_id: string;
13318
+ };
13319
+ Insert: {
13320
+ created_at?: string;
13321
+ external_ref: string;
13322
+ id?: string;
13323
+ label: string;
13324
+ percentage?: number;
13325
+ updated_at?: string;
13326
+ user_id: string;
13327
+ };
13328
+ Update: {
13329
+ created_at?: string;
13330
+ external_ref?: string;
13331
+ id?: string;
13332
+ label?: string;
13333
+ percentage?: number;
13334
+ updated_at?: string;
13335
+ user_id?: string;
13336
+ };
13337
+ Relationships: [];
13338
+ };
12286
13339
  collections: {
12287
13340
  Row: {
12288
13341
  created_at: string;
@@ -12532,6 +13585,105 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
12532
13585
  };
12533
13586
  Relationships: [];
12534
13587
  };
13588
+ customer_price_group_members: {
13589
+ Row: {
13590
+ created_at: string;
13591
+ customer_key: string;
13592
+ id: string;
13593
+ owner_id: string;
13594
+ price_group_id: string;
13595
+ };
13596
+ Insert: {
13597
+ created_at?: string;
13598
+ customer_key: string;
13599
+ id?: string;
13600
+ owner_id?: string;
13601
+ price_group_id: string;
13602
+ };
13603
+ Update: {
13604
+ created_at?: string;
13605
+ customer_key?: string;
13606
+ id?: string;
13607
+ owner_id?: string;
13608
+ price_group_id?: string;
13609
+ };
13610
+ Relationships: [{
13611
+ foreignKeyName: "customer_price_group_members_price_group_id_fkey";
13612
+ columns: ["price_group_id"];
13613
+ isOneToOne: false;
13614
+ referencedRelation: "customer_price_groups";
13615
+ referencedColumns: ["id"];
13616
+ }];
13617
+ };
13618
+ customer_price_groups: {
13619
+ Row: {
13620
+ calc_type: string | null;
13621
+ calc_value: number | null;
13622
+ calc_value_type: string | null;
13623
+ created_at: string;
13624
+ currency: string;
13625
+ distribute_over: string | null;
13626
+ group_type: string;
13627
+ handling_fee: number | null;
13628
+ id: string;
13629
+ include_stickers: boolean;
13630
+ is_active: boolean;
13631
+ name: string;
13632
+ owner_id: string;
13633
+ price_scope: string;
13634
+ pricing_mode: string;
13635
+ rounding: string;
13636
+ rounding_step: number;
13637
+ sort_order: number;
13638
+ unit: string;
13639
+ updated_at: string;
13640
+ };
13641
+ Insert: {
13642
+ calc_type?: string | null;
13643
+ calc_value?: number | null;
13644
+ calc_value_type?: string | null;
13645
+ created_at?: string;
13646
+ currency?: string;
13647
+ distribute_over?: string | null;
13648
+ group_type?: string;
13649
+ handling_fee?: number | null;
13650
+ id?: string;
13651
+ include_stickers?: boolean;
13652
+ is_active?: boolean;
13653
+ name: string;
13654
+ owner_id?: string;
13655
+ price_scope?: string;
13656
+ pricing_mode?: string;
13657
+ rounding?: string;
13658
+ rounding_step?: number;
13659
+ sort_order?: number;
13660
+ unit?: string;
13661
+ updated_at?: string;
13662
+ };
13663
+ Update: {
13664
+ calc_type?: string | null;
13665
+ calc_value?: number | null;
13666
+ calc_value_type?: string | null;
13667
+ created_at?: string;
13668
+ currency?: string;
13669
+ distribute_over?: string | null;
13670
+ group_type?: string;
13671
+ handling_fee?: number | null;
13672
+ id?: string;
13673
+ include_stickers?: boolean;
13674
+ is_active?: boolean;
13675
+ name?: string;
13676
+ owner_id?: string;
13677
+ price_scope?: string;
13678
+ pricing_mode?: string;
13679
+ rounding?: string;
13680
+ rounding_step?: number;
13681
+ sort_order?: number;
13682
+ unit?: string;
13683
+ updated_at?: string;
13684
+ };
13685
+ Relationships: [];
13686
+ };
12535
13687
  customer_selected_assortment: {
12536
13688
  Row: {
12537
13689
  article_number: string | null;
@@ -12685,6 +13837,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
12685
13837
  sync_error: string | null;
12686
13838
  sync_status: string;
12687
13839
  trade_forms: string[];
13840
+ twinfield_code: string | null;
13841
+ twinfield_last_hash: string | null;
13842
+ twinfield_sync_error: string | null;
13843
+ twinfield_synced_at: string | null;
12688
13844
  updated_at: string;
12689
13845
  vat_display: string | null;
12690
13846
  vat_number: string | null;
@@ -12752,6 +13908,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
12752
13908
  sync_error?: string | null;
12753
13909
  sync_status?: string;
12754
13910
  trade_forms?: string[];
13911
+ twinfield_code?: string | null;
13912
+ twinfield_last_hash?: string | null;
13913
+ twinfield_sync_error?: string | null;
13914
+ twinfield_synced_at?: string | null;
12755
13915
  updated_at?: string;
12756
13916
  vat_display?: string | null;
12757
13917
  vat_number?: string | null;
@@ -12819,6 +13979,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
12819
13979
  sync_error?: string | null;
12820
13980
  sync_status?: string;
12821
13981
  trade_forms?: string[];
13982
+ twinfield_code?: string | null;
13983
+ twinfield_last_hash?: string | null;
13984
+ twinfield_sync_error?: string | null;
13985
+ twinfield_synced_at?: string | null;
12822
13986
  updated_at?: string;
12823
13987
  vat_display?: string | null;
12824
13988
  vat_number?: string | null;
@@ -19801,6 +20965,27 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
19801
20965
  };
19802
20966
  Relationships: [];
19803
20967
  };
20968
+ technician_rates: {
20969
+ Row: {
20970
+ created_at: string;
20971
+ hourly_rate_cents: number;
20972
+ updated_at: string;
20973
+ user_id: string;
20974
+ };
20975
+ Insert: {
20976
+ created_at?: string;
20977
+ hourly_rate_cents?: number;
20978
+ updated_at?: string;
20979
+ user_id: string;
20980
+ };
20981
+ Update: {
20982
+ created_at?: string;
20983
+ hourly_rate_cents?: number;
20984
+ updated_at?: string;
20985
+ user_id?: string;
20986
+ };
20987
+ Relationships: [];
20988
+ };
19804
20989
  tenants: {
19805
20990
  Row: {
19806
20991
  created_at: string;
@@ -20270,6 +21455,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
20270
21455
  country: string | null;
20271
21456
  created_at: string;
20272
21457
  email: string | null;
21458
+ external_group_key: string | null;
20273
21459
  id: string;
20274
21460
  last_synced_at: string | null;
20275
21461
  name: string;
@@ -20288,6 +21474,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
20288
21474
  country?: string | null;
20289
21475
  created_at?: string;
20290
21476
  email?: string | null;
21477
+ external_group_key?: string | null;
20291
21478
  id?: string;
20292
21479
  last_synced_at?: string | null;
20293
21480
  name: string;
@@ -20306,6 +21493,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
20306
21493
  country?: string | null;
20307
21494
  created_at?: string;
20308
21495
  email?: string | null;
21496
+ external_group_key?: string | null;
20309
21497
  id?: string;
20310
21498
  last_synced_at?: string | null;
20311
21499
  name?: string;
@@ -20470,6 +21658,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
20470
21658
  twinfield_invoice_settings: {
20471
21659
  Row: {
20472
21660
  created_at: string;
21661
+ debtor_gl_account: string;
21662
+ default_credit_invoice_type: string | null;
20473
21663
  default_gl_account: string;
20474
21664
  default_invoice_type: string;
20475
21665
  default_payment_term_days: number;
@@ -20478,11 +21668,15 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
20478
21668
  invoice_enabled_fo: boolean;
20479
21669
  invoice_enabled_ho: boolean;
20480
21670
  invoice_enabled_mo: boolean;
21671
+ payment_gl_account: string;
21672
+ payment_journal_code: string;
20481
21673
  updated_at: string;
20482
21674
  user_id: string;
20483
21675
  };
20484
21676
  Insert: {
20485
21677
  created_at?: string;
21678
+ debtor_gl_account?: string;
21679
+ default_credit_invoice_type?: string | null;
20486
21680
  default_gl_account?: string;
20487
21681
  default_invoice_type?: string;
20488
21682
  default_payment_term_days?: number;
@@ -20491,11 +21685,15 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
20491
21685
  invoice_enabled_fo?: boolean;
20492
21686
  invoice_enabled_ho?: boolean;
20493
21687
  invoice_enabled_mo?: boolean;
21688
+ payment_gl_account?: string;
21689
+ payment_journal_code?: string;
20494
21690
  updated_at?: string;
20495
21691
  user_id: string;
20496
21692
  };
20497
21693
  Update: {
20498
21694
  created_at?: string;
21695
+ debtor_gl_account?: string;
21696
+ default_credit_invoice_type?: string | null;
20499
21697
  default_gl_account?: string;
20500
21698
  default_invoice_type?: string;
20501
21699
  default_payment_term_days?: number;
@@ -20504,6 +21702,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
20504
21702
  invoice_enabled_fo?: boolean;
20505
21703
  invoice_enabled_ho?: boolean;
20506
21704
  invoice_enabled_mo?: boolean;
21705
+ payment_gl_account?: string;
21706
+ payment_journal_code?: string;
20507
21707
  updated_at?: string;
20508
21708
  user_id?: string;
20509
21709
  };
@@ -20724,43 +21924,49 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
20724
21924
  };
20725
21925
  twinfield_push_queue: {
20726
21926
  Row: {
21927
+ action: string;
20727
21928
  attempts: number;
20728
21929
  connection_id: string;
20729
21930
  created_at: string;
21931
+ customer_id: string | null;
20730
21932
  external_id: string | null;
20731
21933
  id: string;
20732
21934
  idempotency_key: string;
20733
21935
  last_error: string | null;
20734
21936
  next_attempt_at: string;
20735
- office_code: string;
21937
+ office_code: string | null;
20736
21938
  payload: import("../integrations/supabase/types").Json;
20737
21939
  status: string;
20738
21940
  updated_at: string;
20739
21941
  };
20740
21942
  Insert: {
21943
+ action?: string;
20741
21944
  attempts?: number;
20742
21945
  connection_id: string;
20743
21946
  created_at?: string;
21947
+ customer_id?: string | null;
20744
21948
  external_id?: string | null;
20745
21949
  id?: string;
20746
21950
  idempotency_key: string;
20747
21951
  last_error?: string | null;
20748
21952
  next_attempt_at?: string;
20749
- office_code: string;
21953
+ office_code?: string | null;
20750
21954
  payload: import("../integrations/supabase/types").Json;
20751
21955
  status?: string;
20752
21956
  updated_at?: string;
20753
21957
  };
20754
21958
  Update: {
21959
+ action?: string;
20755
21960
  attempts?: number;
20756
21961
  connection_id?: string;
20757
21962
  created_at?: string;
21963
+ customer_id?: string | null;
20758
21964
  external_id?: string | null;
20759
21965
  id?: string;
20760
21966
  idempotency_key?: string;
20761
21967
  last_error?: string | null;
20762
21968
  next_attempt_at?: string;
20763
- office_code?: string;
21969
+ office_code?: string | null;
20764
21970
  payload?: import("../integrations/supabase/types").Json;
20765
21971
  status?: string;
20766
21972
  updated_at?: string;
@@ -20771,6 +21977,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
20771
21977
  isOneToOne: false;
20772
21978
  referencedRelation: "twinfield_connections";
20773
21979
  referencedColumns: ["id"];
21980
+ }, {
21981
+ foreignKeyName: "twinfield_push_queue_customer_id_fkey";
21982
+ columns: ["customer_id"];
21983
+ isOneToOne: false;
21984
+ referencedRelation: "customers";
21985
+ referencedColumns: ["id"];
20774
21986
  }];
20775
21987
  };
20776
21988
  twinfield_request_metrics: {
@@ -21046,6 +22258,246 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
21046
22258
  };
21047
22259
  Relationships: [];
21048
22260
  };
22261
+ werkbon_package_lines: {
22262
+ Row: {
22263
+ created_at: string;
22264
+ created_by: string | null;
22265
+ id: string;
22266
+ package_id: string;
22267
+ quantity: number;
22268
+ unit_price_cents_snapshot: number;
22269
+ werkbon_id: string;
22270
+ };
22271
+ Insert: {
22272
+ created_at?: string;
22273
+ created_by?: string | null;
22274
+ id?: string;
22275
+ package_id: string;
22276
+ quantity?: number;
22277
+ unit_price_cents_snapshot?: number;
22278
+ werkbon_id: string;
22279
+ };
22280
+ Update: {
22281
+ created_at?: string;
22282
+ created_by?: string | null;
22283
+ id?: string;
22284
+ package_id?: string;
22285
+ quantity?: number;
22286
+ unit_price_cents_snapshot?: number;
22287
+ werkbon_id?: string;
22288
+ };
22289
+ Relationships: [{
22290
+ foreignKeyName: "werkbon_package_lines_package_id_fkey";
22291
+ columns: ["package_id"];
22292
+ isOneToOne: false;
22293
+ referencedRelation: "werkbon_packages";
22294
+ referencedColumns: ["id"];
22295
+ }, {
22296
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
22297
+ columns: ["werkbon_id"];
22298
+ isOneToOne: false;
22299
+ referencedRelation: "werkbonnen";
22300
+ referencedColumns: ["id"];
22301
+ }];
22302
+ };
22303
+ werkbon_packages: {
22304
+ Row: {
22305
+ active: boolean;
22306
+ code: string;
22307
+ created_at: string;
22308
+ default_quantity: number;
22309
+ description: string | null;
22310
+ id: string;
22311
+ name: string;
22312
+ unit_price_cents: number;
22313
+ updated_at: string;
22314
+ };
22315
+ Insert: {
22316
+ active?: boolean;
22317
+ code: string;
22318
+ created_at?: string;
22319
+ default_quantity?: number;
22320
+ description?: string | null;
22321
+ id?: string;
22322
+ name: string;
22323
+ unit_price_cents?: number;
22324
+ updated_at?: string;
22325
+ };
22326
+ Update: {
22327
+ active?: boolean;
22328
+ code?: string;
22329
+ created_at?: string;
22330
+ default_quantity?: number;
22331
+ description?: string | null;
22332
+ id?: string;
22333
+ name?: string;
22334
+ unit_price_cents?: number;
22335
+ updated_at?: string;
22336
+ };
22337
+ Relationships: [];
22338
+ };
22339
+ werkbon_photos: {
22340
+ Row: {
22341
+ created_at: string;
22342
+ id: string;
22343
+ storage_path: string;
22344
+ user_id: string;
22345
+ werkbon_id: string;
22346
+ };
22347
+ Insert: {
22348
+ created_at?: string;
22349
+ id?: string;
22350
+ storage_path: string;
22351
+ user_id: string;
22352
+ werkbon_id: string;
22353
+ };
22354
+ Update: {
22355
+ created_at?: string;
22356
+ id?: string;
22357
+ storage_path?: string;
22358
+ user_id?: string;
22359
+ werkbon_id?: string;
22360
+ };
22361
+ Relationships: [{
22362
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
22363
+ columns: ["werkbon_id"];
22364
+ isOneToOne: false;
22365
+ referencedRelation: "werkbonnen";
22366
+ referencedColumns: ["id"];
22367
+ }];
22368
+ };
22369
+ werkbon_time_logs: {
22370
+ Row: {
22371
+ activity: string;
22372
+ created_at: string;
22373
+ ended_at: string | null;
22374
+ id: string;
22375
+ started_at: string;
22376
+ user_id: string;
22377
+ werkbon_id: string;
22378
+ };
22379
+ Insert: {
22380
+ activity: string;
22381
+ created_at?: string;
22382
+ ended_at?: string | null;
22383
+ id?: string;
22384
+ started_at?: string;
22385
+ user_id: string;
22386
+ werkbon_id: string;
22387
+ };
22388
+ Update: {
22389
+ activity?: string;
22390
+ created_at?: string;
22391
+ ended_at?: string | null;
22392
+ id?: string;
22393
+ started_at?: string;
22394
+ user_id?: string;
22395
+ werkbon_id?: string;
22396
+ };
22397
+ Relationships: [{
22398
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
22399
+ columns: ["werkbon_id"];
22400
+ isOneToOne: false;
22401
+ referencedRelation: "werkbonnen";
22402
+ referencedColumns: ["id"];
22403
+ }];
22404
+ };
22405
+ werkbonnen: {
22406
+ Row: {
22407
+ assigned_user_id: string | null;
22408
+ budget_mandate_cents: number;
22409
+ complaint_description: string | null;
22410
+ created_at: string;
22411
+ created_by: string | null;
22412
+ customer_id: string | null;
22413
+ externe_referentie: string | null;
22414
+ first_time_fix: boolean | null;
22415
+ id: string;
22416
+ internal_notes: string | null;
22417
+ parent_werkbon_id: string | null;
22418
+ parsed_payload: import("../integrations/supabase/types").Json | null;
22419
+ project_number: string | null;
22420
+ room_number: string | null;
22421
+ scheduled_end_time: string | null;
22422
+ scheduled_start_time: string | null;
22423
+ sequence_number: number;
22424
+ source_pdf_path: string | null;
22425
+ status: string;
22426
+ technician_notes: string | null;
22427
+ technician_notes_raw: string | null;
22428
+ technician_task_description: string | null;
22429
+ updated_at: string;
22430
+ version: number;
22431
+ work_address: string | null;
22432
+ };
22433
+ Insert: {
22434
+ assigned_user_id?: string | null;
22435
+ budget_mandate_cents?: number;
22436
+ complaint_description?: string | null;
22437
+ created_at?: string;
22438
+ created_by?: string | null;
22439
+ customer_id?: string | null;
22440
+ externe_referentie?: string | null;
22441
+ first_time_fix?: boolean | null;
22442
+ id?: string;
22443
+ internal_notes?: string | null;
22444
+ parent_werkbon_id?: string | null;
22445
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
22446
+ project_number?: string | null;
22447
+ room_number?: string | null;
22448
+ scheduled_end_time?: string | null;
22449
+ scheduled_start_time?: string | null;
22450
+ sequence_number: number;
22451
+ source_pdf_path?: string | null;
22452
+ status?: string;
22453
+ technician_notes?: string | null;
22454
+ technician_notes_raw?: string | null;
22455
+ technician_task_description?: string | null;
22456
+ updated_at?: string;
22457
+ version?: number;
22458
+ work_address?: string | null;
22459
+ };
22460
+ Update: {
22461
+ assigned_user_id?: string | null;
22462
+ budget_mandate_cents?: number;
22463
+ complaint_description?: string | null;
22464
+ created_at?: string;
22465
+ created_by?: string | null;
22466
+ customer_id?: string | null;
22467
+ externe_referentie?: string | null;
22468
+ first_time_fix?: boolean | null;
22469
+ id?: string;
22470
+ internal_notes?: string | null;
22471
+ parent_werkbon_id?: string | null;
22472
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
22473
+ project_number?: string | null;
22474
+ room_number?: string | null;
22475
+ scheduled_end_time?: string | null;
22476
+ scheduled_start_time?: string | null;
22477
+ sequence_number?: number;
22478
+ source_pdf_path?: string | null;
22479
+ status?: string;
22480
+ technician_notes?: string | null;
22481
+ technician_notes_raw?: string | null;
22482
+ technician_task_description?: string | null;
22483
+ updated_at?: string;
22484
+ version?: number;
22485
+ work_address?: string | null;
22486
+ };
22487
+ Relationships: [{
22488
+ foreignKeyName: "werkbonnen_customer_id_fkey";
22489
+ columns: ["customer_id"];
22490
+ isOneToOne: false;
22491
+ referencedRelation: "customers";
22492
+ referencedColumns: ["id"];
22493
+ }, {
22494
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
22495
+ columns: ["parent_werkbon_id"];
22496
+ isOneToOne: false;
22497
+ referencedRelation: "werkbonnen";
22498
+ referencedColumns: ["id"];
22499
+ }];
22500
+ };
21049
22501
  work_order_monteurs: {
21050
22502
  Row: {
21051
22503
  created_at: string;
@@ -21216,6 +22668,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
21216
22668
  created_at: string | null;
21217
22669
  created_by: string | null;
21218
22670
  display_name: string | null;
22671
+ graph_subscription_expires_at: string | null;
22672
+ graph_subscription_id: string | null;
21219
22673
  has_access_token: boolean | null;
21220
22674
  has_client_id: boolean | null;
21221
22675
  has_client_secret: boolean | null;
@@ -21233,6 +22687,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
21233
22687
  oauth_mode: string | null;
21234
22688
  provider: string | null;
21235
22689
  purpose_assignments: import("../integrations/supabase/types").Json | null;
22690
+ realtime_mode: string | null;
21236
22691
  scopes: string[] | null;
21237
22692
  smtp_host: string | null;
21238
22693
  smtp_port: number | null;
@@ -21247,6 +22702,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
21247
22702
  created_at?: string | null;
21248
22703
  created_by?: string | null;
21249
22704
  display_name?: string | null;
22705
+ graph_subscription_expires_at?: string | null;
22706
+ graph_subscription_id?: string | null;
21250
22707
  has_access_token?: never;
21251
22708
  has_client_id?: never;
21252
22709
  has_client_secret?: never;
@@ -21264,6 +22721,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
21264
22721
  oauth_mode?: string | null;
21265
22722
  provider?: string | null;
21266
22723
  purpose_assignments?: import("../integrations/supabase/types").Json | null;
22724
+ realtime_mode?: string | null;
21267
22725
  scopes?: string[] | null;
21268
22726
  smtp_host?: string | null;
21269
22727
  smtp_port?: number | null;
@@ -21278,6 +22736,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
21278
22736
  created_at?: string | null;
21279
22737
  created_by?: string | null;
21280
22738
  display_name?: string | null;
22739
+ graph_subscription_expires_at?: string | null;
22740
+ graph_subscription_id?: string | null;
21281
22741
  has_access_token?: never;
21282
22742
  has_client_id?: never;
21283
22743
  has_client_secret?: never;
@@ -21295,6 +22755,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
21295
22755
  oauth_mode?: string | null;
21296
22756
  provider?: string | null;
21297
22757
  purpose_assignments?: import("../integrations/supabase/types").Json | null;
22758
+ realtime_mode?: string | null;
21298
22759
  scopes?: string[] | null;
21299
22760
  smtp_host?: string | null;
21300
22761
  smtp_port?: number | null;
@@ -21838,6 +23299,33 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
21838
23299
  };
21839
23300
  Returns: import("../integrations/supabase/types").Json;
21840
23301
  };
23302
+ claim_twinfield_push_batch: {
23303
+ Args: {
23304
+ _limit?: number;
23305
+ };
23306
+ Returns: {
23307
+ action: string;
23308
+ attempts: number;
23309
+ connection_id: string;
23310
+ created_at: string;
23311
+ customer_id: string | null;
23312
+ external_id: string | null;
23313
+ id: string;
23314
+ idempotency_key: string;
23315
+ last_error: string | null;
23316
+ next_attempt_at: string;
23317
+ office_code: string | null;
23318
+ payload: import("../integrations/supabase/types").Json;
23319
+ status: string;
23320
+ updated_at: string;
23321
+ }[];
23322
+ SetofOptions: {
23323
+ from: "*";
23324
+ to: "twinfield_push_queue";
23325
+ isOneToOne: false;
23326
+ isSetofReturn: true;
23327
+ };
23328
+ };
21841
23329
  cleanup_old_bookings: {
21842
23330
  Args: never;
21843
23331
  Returns: undefined;
@@ -21934,6 +23422,16 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
21934
23422
  status: string;
21935
23423
  }[];
21936
23424
  };
23425
+ email_auth_upsert_connection: {
23426
+ Args: {
23427
+ _account_email: string;
23428
+ _created_by: string;
23429
+ _is_active: boolean;
23430
+ _provider: string;
23431
+ _status: string;
23432
+ };
23433
+ Returns: string;
23434
+ };
21937
23435
  enqueue_cart_replan_if_unlocked: {
21938
23436
  Args: {
21939
23437
  p_order_id: string;
@@ -22206,6 +23704,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
22206
23704
  };
22207
23705
  Returns: boolean;
22208
23706
  };
23707
+ has_twinfield_link: {
23708
+ Args: never;
23709
+ Returns: boolean;
23710
+ };
22209
23711
  is_authenticated: {
22210
23712
  Args: never;
22211
23713
  Returns: boolean;
@@ -22261,6 +23763,10 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
22261
23763
  };
22262
23764
  Returns: string;
22263
23765
  };
23766
+ next_twinfield_code: {
23767
+ Args: never;
23768
+ Returns: string;
23769
+ };
22264
23770
  next_work_order_number: {
22265
23771
  Args: {
22266
23772
  p_parent_work_order_id?: string;
@@ -22375,6 +23881,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
22375
23881
  };
22376
23882
  Returns: number;
22377
23883
  };
23884
+ reorder_customer_price_groups: {
23885
+ Args: {
23886
+ _ids: string[];
23887
+ };
23888
+ Returns: undefined;
23889
+ };
22378
23890
  reset_floriday_sync_cursor: {
22379
23891
  Args: {
22380
23892
  p_connection_id: string;
@@ -22388,6 +23900,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
22388
23900
  };
22389
23901
  Returns: string;
22390
23902
  };
23903
+ retry_twinfield_push: {
23904
+ Args: {
23905
+ _customer_id: string;
23906
+ };
23907
+ Returns: number;
23908
+ };
22391
23909
  schedule_floriday_additional_services_sync: {
22392
23910
  Args: {
22393
23911
  p_apikey: string;
@@ -22989,6 +24507,237 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
22989
24507
  };
22990
24508
  Relationships: [];
22991
24509
  };
24510
+ ai_admin_credentials: {
24511
+ Row: {
24512
+ active: boolean;
24513
+ admin_key: string;
24514
+ created_at: string;
24515
+ id: string;
24516
+ label: string;
24517
+ provider_id: string;
24518
+ updated_at: string;
24519
+ };
24520
+ Insert: {
24521
+ active?: boolean;
24522
+ admin_key: string;
24523
+ created_at?: string;
24524
+ id?: string;
24525
+ label: string;
24526
+ provider_id: string;
24527
+ updated_at?: string;
24528
+ };
24529
+ Update: {
24530
+ active?: boolean;
24531
+ admin_key?: string;
24532
+ created_at?: string;
24533
+ id?: string;
24534
+ label?: string;
24535
+ provider_id?: string;
24536
+ updated_at?: string;
24537
+ };
24538
+ Relationships: [{
24539
+ foreignKeyName: "ai_admin_credentials_provider_id_fkey";
24540
+ columns: ["provider_id"];
24541
+ isOneToOne: true;
24542
+ referencedRelation: "ai_providers";
24543
+ referencedColumns: ["id"];
24544
+ }];
24545
+ };
24546
+ ai_credentials: {
24547
+ Row: {
24548
+ active: boolean;
24549
+ api_key: string;
24550
+ created_at: string;
24551
+ id: string;
24552
+ label: string;
24553
+ provider_id: string;
24554
+ updated_at: string;
24555
+ };
24556
+ Insert: {
24557
+ active?: boolean;
24558
+ api_key: string;
24559
+ created_at?: string;
24560
+ id?: string;
24561
+ label: string;
24562
+ provider_id: string;
24563
+ updated_at?: string;
24564
+ };
24565
+ Update: {
24566
+ active?: boolean;
24567
+ api_key?: string;
24568
+ created_at?: string;
24569
+ id?: string;
24570
+ label?: string;
24571
+ provider_id?: string;
24572
+ updated_at?: string;
24573
+ };
24574
+ Relationships: [{
24575
+ foreignKeyName: "ai_credentials_provider_id_fkey";
24576
+ columns: ["provider_id"];
24577
+ isOneToOne: false;
24578
+ referencedRelation: "ai_providers";
24579
+ referencedColumns: ["id"];
24580
+ }];
24581
+ };
24582
+ ai_model_pricing: {
24583
+ Row: {
24584
+ created_at: string;
24585
+ currency: string;
24586
+ fetched_at: string;
24587
+ id: string;
24588
+ input_per_mtok: number | null;
24589
+ model_slug: string;
24590
+ output_per_mtok: number | null;
24591
+ provider_slug: string;
24592
+ source: string;
24593
+ updated_at: string;
24594
+ };
24595
+ Insert: {
24596
+ created_at?: string;
24597
+ currency?: string;
24598
+ fetched_at?: string;
24599
+ id?: string;
24600
+ input_per_mtok?: number | null;
24601
+ model_slug: string;
24602
+ output_per_mtok?: number | null;
24603
+ provider_slug: string;
24604
+ source?: string;
24605
+ updated_at?: string;
24606
+ };
24607
+ Update: {
24608
+ created_at?: string;
24609
+ currency?: string;
24610
+ fetched_at?: string;
24611
+ id?: string;
24612
+ input_per_mtok?: number | null;
24613
+ model_slug?: string;
24614
+ output_per_mtok?: number | null;
24615
+ provider_slug?: string;
24616
+ source?: string;
24617
+ updated_at?: string;
24618
+ };
24619
+ Relationships: [];
24620
+ };
24621
+ ai_models: {
24622
+ Row: {
24623
+ active: boolean;
24624
+ context_window: number | null;
24625
+ created_at: string;
24626
+ display_name: string;
24627
+ id: string;
24628
+ is_default: boolean;
24629
+ modality: string;
24630
+ provider_id: string;
24631
+ slug: string;
24632
+ updated_at: string;
24633
+ };
24634
+ Insert: {
24635
+ active?: boolean;
24636
+ context_window?: number | null;
24637
+ created_at?: string;
24638
+ display_name: string;
24639
+ id?: string;
24640
+ is_default?: boolean;
24641
+ modality?: string;
24642
+ provider_id: string;
24643
+ slug: string;
24644
+ updated_at?: string;
24645
+ };
24646
+ Update: {
24647
+ active?: boolean;
24648
+ context_window?: number | null;
24649
+ created_at?: string;
24650
+ display_name?: string;
24651
+ id?: string;
24652
+ is_default?: boolean;
24653
+ modality?: string;
24654
+ provider_id?: string;
24655
+ slug?: string;
24656
+ updated_at?: string;
24657
+ };
24658
+ Relationships: [{
24659
+ foreignKeyName: "ai_models_provider_id_fkey";
24660
+ columns: ["provider_id"];
24661
+ isOneToOne: false;
24662
+ referencedRelation: "ai_providers";
24663
+ referencedColumns: ["id"];
24664
+ }];
24665
+ };
24666
+ ai_module_bindings: {
24667
+ Row: {
24668
+ consumer_module_id: string;
24669
+ created_at: string;
24670
+ credential_id: string;
24671
+ id: string;
24672
+ model_id: string;
24673
+ notes: string | null;
24674
+ updated_at: string;
24675
+ };
24676
+ Insert: {
24677
+ consumer_module_id: string;
24678
+ created_at?: string;
24679
+ credential_id: string;
24680
+ id?: string;
24681
+ model_id: string;
24682
+ notes?: string | null;
24683
+ updated_at?: string;
24684
+ };
24685
+ Update: {
24686
+ consumer_module_id?: string;
24687
+ created_at?: string;
24688
+ credential_id?: string;
24689
+ id?: string;
24690
+ model_id?: string;
24691
+ notes?: string | null;
24692
+ updated_at?: string;
24693
+ };
24694
+ Relationships: [{
24695
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
24696
+ columns: ["credential_id"];
24697
+ isOneToOne: false;
24698
+ referencedRelation: "ai_credentials";
24699
+ referencedColumns: ["id"];
24700
+ }, {
24701
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
24702
+ columns: ["model_id"];
24703
+ isOneToOne: false;
24704
+ referencedRelation: "ai_models";
24705
+ referencedColumns: ["id"];
24706
+ }];
24707
+ };
24708
+ ai_providers: {
24709
+ Row: {
24710
+ active: boolean;
24711
+ auth_type: string;
24712
+ base_url: string | null;
24713
+ created_at: string;
24714
+ id: string;
24715
+ name: string;
24716
+ slug: string;
24717
+ updated_at: string;
24718
+ };
24719
+ Insert: {
24720
+ active?: boolean;
24721
+ auth_type?: string;
24722
+ base_url?: string | null;
24723
+ created_at?: string;
24724
+ id?: string;
24725
+ name: string;
24726
+ slug: string;
24727
+ updated_at?: string;
24728
+ };
24729
+ Update: {
24730
+ active?: boolean;
24731
+ auth_type?: string;
24732
+ base_url?: string | null;
24733
+ created_at?: string;
24734
+ id?: string;
24735
+ name?: string;
24736
+ slug?: string;
24737
+ updated_at?: string;
24738
+ };
24739
+ Relationships: [];
24740
+ };
22992
24741
  app_settings: {
22993
24742
  Row: {
22994
24743
  created_at: string;
@@ -23646,6 +25395,69 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
23646
25395
  referencedColumns: ["id"];
23647
25396
  }];
23648
25397
  };
25398
+ catalog_articles_cache: {
25399
+ Row: {
25400
+ created_at: string;
25401
+ default_price: number;
25402
+ default_vat_rate_ref: string | null;
25403
+ external_ref: string;
25404
+ id: string;
25405
+ name: string;
25406
+ updated_at: string;
25407
+ user_id: string;
25408
+ };
25409
+ Insert: {
25410
+ created_at?: string;
25411
+ default_price?: number;
25412
+ default_vat_rate_ref?: string | null;
25413
+ external_ref: string;
25414
+ id?: string;
25415
+ name: string;
25416
+ updated_at?: string;
25417
+ user_id: string;
25418
+ };
25419
+ Update: {
25420
+ created_at?: string;
25421
+ default_price?: number;
25422
+ default_vat_rate_ref?: string | null;
25423
+ external_ref?: string;
25424
+ id?: string;
25425
+ name?: string;
25426
+ updated_at?: string;
25427
+ user_id?: string;
25428
+ };
25429
+ Relationships: [];
25430
+ };
25431
+ catalog_vat_rates_cache: {
25432
+ Row: {
25433
+ created_at: string;
25434
+ external_ref: string;
25435
+ id: string;
25436
+ label: string;
25437
+ percentage: number;
25438
+ updated_at: string;
25439
+ user_id: string;
25440
+ };
25441
+ Insert: {
25442
+ created_at?: string;
25443
+ external_ref: string;
25444
+ id?: string;
25445
+ label: string;
25446
+ percentage?: number;
25447
+ updated_at?: string;
25448
+ user_id: string;
25449
+ };
25450
+ Update: {
25451
+ created_at?: string;
25452
+ external_ref?: string;
25453
+ id?: string;
25454
+ label?: string;
25455
+ percentage?: number;
25456
+ updated_at?: string;
25457
+ user_id?: string;
25458
+ };
25459
+ Relationships: [];
25460
+ };
23649
25461
  collections: {
23650
25462
  Row: {
23651
25463
  created_at: string;
@@ -23895,6 +25707,105 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
23895
25707
  };
23896
25708
  Relationships: [];
23897
25709
  };
25710
+ customer_price_group_members: {
25711
+ Row: {
25712
+ created_at: string;
25713
+ customer_key: string;
25714
+ id: string;
25715
+ owner_id: string;
25716
+ price_group_id: string;
25717
+ };
25718
+ Insert: {
25719
+ created_at?: string;
25720
+ customer_key: string;
25721
+ id?: string;
25722
+ owner_id?: string;
25723
+ price_group_id: string;
25724
+ };
25725
+ Update: {
25726
+ created_at?: string;
25727
+ customer_key?: string;
25728
+ id?: string;
25729
+ owner_id?: string;
25730
+ price_group_id?: string;
25731
+ };
25732
+ Relationships: [{
25733
+ foreignKeyName: "customer_price_group_members_price_group_id_fkey";
25734
+ columns: ["price_group_id"];
25735
+ isOneToOne: false;
25736
+ referencedRelation: "customer_price_groups";
25737
+ referencedColumns: ["id"];
25738
+ }];
25739
+ };
25740
+ customer_price_groups: {
25741
+ Row: {
25742
+ calc_type: string | null;
25743
+ calc_value: number | null;
25744
+ calc_value_type: string | null;
25745
+ created_at: string;
25746
+ currency: string;
25747
+ distribute_over: string | null;
25748
+ group_type: string;
25749
+ handling_fee: number | null;
25750
+ id: string;
25751
+ include_stickers: boolean;
25752
+ is_active: boolean;
25753
+ name: string;
25754
+ owner_id: string;
25755
+ price_scope: string;
25756
+ pricing_mode: string;
25757
+ rounding: string;
25758
+ rounding_step: number;
25759
+ sort_order: number;
25760
+ unit: string;
25761
+ updated_at: string;
25762
+ };
25763
+ Insert: {
25764
+ calc_type?: string | null;
25765
+ calc_value?: number | null;
25766
+ calc_value_type?: string | null;
25767
+ created_at?: string;
25768
+ currency?: string;
25769
+ distribute_over?: string | null;
25770
+ group_type?: string;
25771
+ handling_fee?: number | null;
25772
+ id?: string;
25773
+ include_stickers?: boolean;
25774
+ is_active?: boolean;
25775
+ name: string;
25776
+ owner_id?: string;
25777
+ price_scope?: string;
25778
+ pricing_mode?: string;
25779
+ rounding?: string;
25780
+ rounding_step?: number;
25781
+ sort_order?: number;
25782
+ unit?: string;
25783
+ updated_at?: string;
25784
+ };
25785
+ Update: {
25786
+ calc_type?: string | null;
25787
+ calc_value?: number | null;
25788
+ calc_value_type?: string | null;
25789
+ created_at?: string;
25790
+ currency?: string;
25791
+ distribute_over?: string | null;
25792
+ group_type?: string;
25793
+ handling_fee?: number | null;
25794
+ id?: string;
25795
+ include_stickers?: boolean;
25796
+ is_active?: boolean;
25797
+ name?: string;
25798
+ owner_id?: string;
25799
+ price_scope?: string;
25800
+ pricing_mode?: string;
25801
+ rounding?: string;
25802
+ rounding_step?: number;
25803
+ sort_order?: number;
25804
+ unit?: string;
25805
+ updated_at?: string;
25806
+ };
25807
+ Relationships: [];
25808
+ };
23898
25809
  customer_selected_assortment: {
23899
25810
  Row: {
23900
25811
  article_number: string | null;
@@ -24048,6 +25959,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
24048
25959
  sync_error: string | null;
24049
25960
  sync_status: string;
24050
25961
  trade_forms: string[];
25962
+ twinfield_code: string | null;
25963
+ twinfield_last_hash: string | null;
25964
+ twinfield_sync_error: string | null;
25965
+ twinfield_synced_at: string | null;
24051
25966
  updated_at: string;
24052
25967
  vat_display: string | null;
24053
25968
  vat_number: string | null;
@@ -24115,6 +26030,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
24115
26030
  sync_error?: string | null;
24116
26031
  sync_status?: string;
24117
26032
  trade_forms?: string[];
26033
+ twinfield_code?: string | null;
26034
+ twinfield_last_hash?: string | null;
26035
+ twinfield_sync_error?: string | null;
26036
+ twinfield_synced_at?: string | null;
24118
26037
  updated_at?: string;
24119
26038
  vat_display?: string | null;
24120
26039
  vat_number?: string | null;
@@ -24182,6 +26101,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
24182
26101
  sync_error?: string | null;
24183
26102
  sync_status?: string;
24184
26103
  trade_forms?: string[];
26104
+ twinfield_code?: string | null;
26105
+ twinfield_last_hash?: string | null;
26106
+ twinfield_sync_error?: string | null;
26107
+ twinfield_synced_at?: string | null;
24185
26108
  updated_at?: string;
24186
26109
  vat_display?: string | null;
24187
26110
  vat_number?: string | null;
@@ -31164,6 +33087,27 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
31164
33087
  };
31165
33088
  Relationships: [];
31166
33089
  };
33090
+ technician_rates: {
33091
+ Row: {
33092
+ created_at: string;
33093
+ hourly_rate_cents: number;
33094
+ updated_at: string;
33095
+ user_id: string;
33096
+ };
33097
+ Insert: {
33098
+ created_at?: string;
33099
+ hourly_rate_cents?: number;
33100
+ updated_at?: string;
33101
+ user_id: string;
33102
+ };
33103
+ Update: {
33104
+ created_at?: string;
33105
+ hourly_rate_cents?: number;
33106
+ updated_at?: string;
33107
+ user_id?: string;
33108
+ };
33109
+ Relationships: [];
33110
+ };
31167
33111
  tenants: {
31168
33112
  Row: {
31169
33113
  created_at: string;
@@ -31633,6 +33577,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
31633
33577
  country: string | null;
31634
33578
  created_at: string;
31635
33579
  email: string | null;
33580
+ external_group_key: string | null;
31636
33581
  id: string;
31637
33582
  last_synced_at: string | null;
31638
33583
  name: string;
@@ -31651,6 +33596,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
31651
33596
  country?: string | null;
31652
33597
  created_at?: string;
31653
33598
  email?: string | null;
33599
+ external_group_key?: string | null;
31654
33600
  id?: string;
31655
33601
  last_synced_at?: string | null;
31656
33602
  name: string;
@@ -31669,6 +33615,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
31669
33615
  country?: string | null;
31670
33616
  created_at?: string;
31671
33617
  email?: string | null;
33618
+ external_group_key?: string | null;
31672
33619
  id?: string;
31673
33620
  last_synced_at?: string | null;
31674
33621
  name?: string;
@@ -31833,6 +33780,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
31833
33780
  twinfield_invoice_settings: {
31834
33781
  Row: {
31835
33782
  created_at: string;
33783
+ debtor_gl_account: string;
33784
+ default_credit_invoice_type: string | null;
31836
33785
  default_gl_account: string;
31837
33786
  default_invoice_type: string;
31838
33787
  default_payment_term_days: number;
@@ -31841,11 +33790,15 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
31841
33790
  invoice_enabled_fo: boolean;
31842
33791
  invoice_enabled_ho: boolean;
31843
33792
  invoice_enabled_mo: boolean;
33793
+ payment_gl_account: string;
33794
+ payment_journal_code: string;
31844
33795
  updated_at: string;
31845
33796
  user_id: string;
31846
33797
  };
31847
33798
  Insert: {
31848
33799
  created_at?: string;
33800
+ debtor_gl_account?: string;
33801
+ default_credit_invoice_type?: string | null;
31849
33802
  default_gl_account?: string;
31850
33803
  default_invoice_type?: string;
31851
33804
  default_payment_term_days?: number;
@@ -31854,11 +33807,15 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
31854
33807
  invoice_enabled_fo?: boolean;
31855
33808
  invoice_enabled_ho?: boolean;
31856
33809
  invoice_enabled_mo?: boolean;
33810
+ payment_gl_account?: string;
33811
+ payment_journal_code?: string;
31857
33812
  updated_at?: string;
31858
33813
  user_id: string;
31859
33814
  };
31860
33815
  Update: {
31861
33816
  created_at?: string;
33817
+ debtor_gl_account?: string;
33818
+ default_credit_invoice_type?: string | null;
31862
33819
  default_gl_account?: string;
31863
33820
  default_invoice_type?: string;
31864
33821
  default_payment_term_days?: number;
@@ -31867,6 +33824,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
31867
33824
  invoice_enabled_fo?: boolean;
31868
33825
  invoice_enabled_ho?: boolean;
31869
33826
  invoice_enabled_mo?: boolean;
33827
+ payment_gl_account?: string;
33828
+ payment_journal_code?: string;
31870
33829
  updated_at?: string;
31871
33830
  user_id?: string;
31872
33831
  };
@@ -32087,43 +34046,49 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
32087
34046
  };
32088
34047
  twinfield_push_queue: {
32089
34048
  Row: {
34049
+ action: string;
32090
34050
  attempts: number;
32091
34051
  connection_id: string;
32092
34052
  created_at: string;
34053
+ customer_id: string | null;
32093
34054
  external_id: string | null;
32094
34055
  id: string;
32095
34056
  idempotency_key: string;
32096
34057
  last_error: string | null;
32097
34058
  next_attempt_at: string;
32098
- office_code: string;
34059
+ office_code: string | null;
32099
34060
  payload: import("../integrations/supabase/types").Json;
32100
34061
  status: string;
32101
34062
  updated_at: string;
32102
34063
  };
32103
34064
  Insert: {
34065
+ action?: string;
32104
34066
  attempts?: number;
32105
34067
  connection_id: string;
32106
34068
  created_at?: string;
34069
+ customer_id?: string | null;
32107
34070
  external_id?: string | null;
32108
34071
  id?: string;
32109
34072
  idempotency_key: string;
32110
34073
  last_error?: string | null;
32111
34074
  next_attempt_at?: string;
32112
- office_code: string;
34075
+ office_code?: string | null;
32113
34076
  payload: import("../integrations/supabase/types").Json;
32114
34077
  status?: string;
32115
34078
  updated_at?: string;
32116
34079
  };
32117
34080
  Update: {
34081
+ action?: string;
32118
34082
  attempts?: number;
32119
34083
  connection_id?: string;
32120
34084
  created_at?: string;
34085
+ customer_id?: string | null;
32121
34086
  external_id?: string | null;
32122
34087
  id?: string;
32123
34088
  idempotency_key?: string;
32124
34089
  last_error?: string | null;
32125
34090
  next_attempt_at?: string;
32126
- office_code?: string;
34091
+ office_code?: string | null;
32127
34092
  payload?: import("../integrations/supabase/types").Json;
32128
34093
  status?: string;
32129
34094
  updated_at?: string;
@@ -32134,6 +34099,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
32134
34099
  isOneToOne: false;
32135
34100
  referencedRelation: "twinfield_connections";
32136
34101
  referencedColumns: ["id"];
34102
+ }, {
34103
+ foreignKeyName: "twinfield_push_queue_customer_id_fkey";
34104
+ columns: ["customer_id"];
34105
+ isOneToOne: false;
34106
+ referencedRelation: "customers";
34107
+ referencedColumns: ["id"];
32137
34108
  }];
32138
34109
  };
32139
34110
  twinfield_request_metrics: {
@@ -32409,6 +34380,246 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
32409
34380
  };
32410
34381
  Relationships: [];
32411
34382
  };
34383
+ werkbon_package_lines: {
34384
+ Row: {
34385
+ created_at: string;
34386
+ created_by: string | null;
34387
+ id: string;
34388
+ package_id: string;
34389
+ quantity: number;
34390
+ unit_price_cents_snapshot: number;
34391
+ werkbon_id: string;
34392
+ };
34393
+ Insert: {
34394
+ created_at?: string;
34395
+ created_by?: string | null;
34396
+ id?: string;
34397
+ package_id: string;
34398
+ quantity?: number;
34399
+ unit_price_cents_snapshot?: number;
34400
+ werkbon_id: string;
34401
+ };
34402
+ Update: {
34403
+ created_at?: string;
34404
+ created_by?: string | null;
34405
+ id?: string;
34406
+ package_id?: string;
34407
+ quantity?: number;
34408
+ unit_price_cents_snapshot?: number;
34409
+ werkbon_id?: string;
34410
+ };
34411
+ Relationships: [{
34412
+ foreignKeyName: "werkbon_package_lines_package_id_fkey";
34413
+ columns: ["package_id"];
34414
+ isOneToOne: false;
34415
+ referencedRelation: "werkbon_packages";
34416
+ referencedColumns: ["id"];
34417
+ }, {
34418
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
34419
+ columns: ["werkbon_id"];
34420
+ isOneToOne: false;
34421
+ referencedRelation: "werkbonnen";
34422
+ referencedColumns: ["id"];
34423
+ }];
34424
+ };
34425
+ werkbon_packages: {
34426
+ Row: {
34427
+ active: boolean;
34428
+ code: string;
34429
+ created_at: string;
34430
+ default_quantity: number;
34431
+ description: string | null;
34432
+ id: string;
34433
+ name: string;
34434
+ unit_price_cents: number;
34435
+ updated_at: string;
34436
+ };
34437
+ Insert: {
34438
+ active?: boolean;
34439
+ code: string;
34440
+ created_at?: string;
34441
+ default_quantity?: number;
34442
+ description?: string | null;
34443
+ id?: string;
34444
+ name: string;
34445
+ unit_price_cents?: number;
34446
+ updated_at?: string;
34447
+ };
34448
+ Update: {
34449
+ active?: boolean;
34450
+ code?: string;
34451
+ created_at?: string;
34452
+ default_quantity?: number;
34453
+ description?: string | null;
34454
+ id?: string;
34455
+ name?: string;
34456
+ unit_price_cents?: number;
34457
+ updated_at?: string;
34458
+ };
34459
+ Relationships: [];
34460
+ };
34461
+ werkbon_photos: {
34462
+ Row: {
34463
+ created_at: string;
34464
+ id: string;
34465
+ storage_path: string;
34466
+ user_id: string;
34467
+ werkbon_id: string;
34468
+ };
34469
+ Insert: {
34470
+ created_at?: string;
34471
+ id?: string;
34472
+ storage_path: string;
34473
+ user_id: string;
34474
+ werkbon_id: string;
34475
+ };
34476
+ Update: {
34477
+ created_at?: string;
34478
+ id?: string;
34479
+ storage_path?: string;
34480
+ user_id?: string;
34481
+ werkbon_id?: string;
34482
+ };
34483
+ Relationships: [{
34484
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
34485
+ columns: ["werkbon_id"];
34486
+ isOneToOne: false;
34487
+ referencedRelation: "werkbonnen";
34488
+ referencedColumns: ["id"];
34489
+ }];
34490
+ };
34491
+ werkbon_time_logs: {
34492
+ Row: {
34493
+ activity: string;
34494
+ created_at: string;
34495
+ ended_at: string | null;
34496
+ id: string;
34497
+ started_at: string;
34498
+ user_id: string;
34499
+ werkbon_id: string;
34500
+ };
34501
+ Insert: {
34502
+ activity: string;
34503
+ created_at?: string;
34504
+ ended_at?: string | null;
34505
+ id?: string;
34506
+ started_at?: string;
34507
+ user_id: string;
34508
+ werkbon_id: string;
34509
+ };
34510
+ Update: {
34511
+ activity?: string;
34512
+ created_at?: string;
34513
+ ended_at?: string | null;
34514
+ id?: string;
34515
+ started_at?: string;
34516
+ user_id?: string;
34517
+ werkbon_id?: string;
34518
+ };
34519
+ Relationships: [{
34520
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
34521
+ columns: ["werkbon_id"];
34522
+ isOneToOne: false;
34523
+ referencedRelation: "werkbonnen";
34524
+ referencedColumns: ["id"];
34525
+ }];
34526
+ };
34527
+ werkbonnen: {
34528
+ Row: {
34529
+ assigned_user_id: string | null;
34530
+ budget_mandate_cents: number;
34531
+ complaint_description: string | null;
34532
+ created_at: string;
34533
+ created_by: string | null;
34534
+ customer_id: string | null;
34535
+ externe_referentie: string | null;
34536
+ first_time_fix: boolean | null;
34537
+ id: string;
34538
+ internal_notes: string | null;
34539
+ parent_werkbon_id: string | null;
34540
+ parsed_payload: import("../integrations/supabase/types").Json | null;
34541
+ project_number: string | null;
34542
+ room_number: string | null;
34543
+ scheduled_end_time: string | null;
34544
+ scheduled_start_time: string | null;
34545
+ sequence_number: number;
34546
+ source_pdf_path: string | null;
34547
+ status: string;
34548
+ technician_notes: string | null;
34549
+ technician_notes_raw: string | null;
34550
+ technician_task_description: string | null;
34551
+ updated_at: string;
34552
+ version: number;
34553
+ work_address: string | null;
34554
+ };
34555
+ Insert: {
34556
+ assigned_user_id?: string | null;
34557
+ budget_mandate_cents?: number;
34558
+ complaint_description?: string | null;
34559
+ created_at?: string;
34560
+ created_by?: string | null;
34561
+ customer_id?: string | null;
34562
+ externe_referentie?: string | null;
34563
+ first_time_fix?: boolean | null;
34564
+ id?: string;
34565
+ internal_notes?: string | null;
34566
+ parent_werkbon_id?: string | null;
34567
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
34568
+ project_number?: string | null;
34569
+ room_number?: string | null;
34570
+ scheduled_end_time?: string | null;
34571
+ scheduled_start_time?: string | null;
34572
+ sequence_number: number;
34573
+ source_pdf_path?: string | null;
34574
+ status?: string;
34575
+ technician_notes?: string | null;
34576
+ technician_notes_raw?: string | null;
34577
+ technician_task_description?: string | null;
34578
+ updated_at?: string;
34579
+ version?: number;
34580
+ work_address?: string | null;
34581
+ };
34582
+ Update: {
34583
+ assigned_user_id?: string | null;
34584
+ budget_mandate_cents?: number;
34585
+ complaint_description?: string | null;
34586
+ created_at?: string;
34587
+ created_by?: string | null;
34588
+ customer_id?: string | null;
34589
+ externe_referentie?: string | null;
34590
+ first_time_fix?: boolean | null;
34591
+ id?: string;
34592
+ internal_notes?: string | null;
34593
+ parent_werkbon_id?: string | null;
34594
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
34595
+ project_number?: string | null;
34596
+ room_number?: string | null;
34597
+ scheduled_end_time?: string | null;
34598
+ scheduled_start_time?: string | null;
34599
+ sequence_number?: number;
34600
+ source_pdf_path?: string | null;
34601
+ status?: string;
34602
+ technician_notes?: string | null;
34603
+ technician_notes_raw?: string | null;
34604
+ technician_task_description?: string | null;
34605
+ updated_at?: string;
34606
+ version?: number;
34607
+ work_address?: string | null;
34608
+ };
34609
+ Relationships: [{
34610
+ foreignKeyName: "werkbonnen_customer_id_fkey";
34611
+ columns: ["customer_id"];
34612
+ isOneToOne: false;
34613
+ referencedRelation: "customers";
34614
+ referencedColumns: ["id"];
34615
+ }, {
34616
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
34617
+ columns: ["parent_werkbon_id"];
34618
+ isOneToOne: false;
34619
+ referencedRelation: "werkbonnen";
34620
+ referencedColumns: ["id"];
34621
+ }];
34622
+ };
32412
34623
  work_order_monteurs: {
32413
34624
  Row: {
32414
34625
  created_at: string;
@@ -32579,6 +34790,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
32579
34790
  created_at: string | null;
32580
34791
  created_by: string | null;
32581
34792
  display_name: string | null;
34793
+ graph_subscription_expires_at: string | null;
34794
+ graph_subscription_id: string | null;
32582
34795
  has_access_token: boolean | null;
32583
34796
  has_client_id: boolean | null;
32584
34797
  has_client_secret: boolean | null;
@@ -32596,6 +34809,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
32596
34809
  oauth_mode: string | null;
32597
34810
  provider: string | null;
32598
34811
  purpose_assignments: import("../integrations/supabase/types").Json | null;
34812
+ realtime_mode: string | null;
32599
34813
  scopes: string[] | null;
32600
34814
  smtp_host: string | null;
32601
34815
  smtp_port: number | null;
@@ -32610,6 +34824,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
32610
34824
  created_at?: string | null;
32611
34825
  created_by?: string | null;
32612
34826
  display_name?: string | null;
34827
+ graph_subscription_expires_at?: string | null;
34828
+ graph_subscription_id?: string | null;
32613
34829
  has_access_token?: never;
32614
34830
  has_client_id?: never;
32615
34831
  has_client_secret?: never;
@@ -32627,6 +34843,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
32627
34843
  oauth_mode?: string | null;
32628
34844
  provider?: string | null;
32629
34845
  purpose_assignments?: import("../integrations/supabase/types").Json | null;
34846
+ realtime_mode?: string | null;
32630
34847
  scopes?: string[] | null;
32631
34848
  smtp_host?: string | null;
32632
34849
  smtp_port?: number | null;
@@ -32641,6 +34858,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
32641
34858
  created_at?: string | null;
32642
34859
  created_by?: string | null;
32643
34860
  display_name?: string | null;
34861
+ graph_subscription_expires_at?: string | null;
34862
+ graph_subscription_id?: string | null;
32644
34863
  has_access_token?: never;
32645
34864
  has_client_id?: never;
32646
34865
  has_client_secret?: never;
@@ -32658,6 +34877,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
32658
34877
  oauth_mode?: string | null;
32659
34878
  provider?: string | null;
32660
34879
  purpose_assignments?: import("../integrations/supabase/types").Json | null;
34880
+ realtime_mode?: string | null;
32661
34881
  scopes?: string[] | null;
32662
34882
  smtp_host?: string | null;
32663
34883
  smtp_port?: number | null;
@@ -33201,6 +35421,33 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
33201
35421
  };
33202
35422
  Returns: import("../integrations/supabase/types").Json;
33203
35423
  };
35424
+ claim_twinfield_push_batch: {
35425
+ Args: {
35426
+ _limit?: number;
35427
+ };
35428
+ Returns: {
35429
+ action: string;
35430
+ attempts: number;
35431
+ connection_id: string;
35432
+ created_at: string;
35433
+ customer_id: string | null;
35434
+ external_id: string | null;
35435
+ id: string;
35436
+ idempotency_key: string;
35437
+ last_error: string | null;
35438
+ next_attempt_at: string;
35439
+ office_code: string | null;
35440
+ payload: import("../integrations/supabase/types").Json;
35441
+ status: string;
35442
+ updated_at: string;
35443
+ }[];
35444
+ SetofOptions: {
35445
+ from: "*";
35446
+ to: "twinfield_push_queue";
35447
+ isOneToOne: false;
35448
+ isSetofReturn: true;
35449
+ };
35450
+ };
33204
35451
  cleanup_old_bookings: {
33205
35452
  Args: never;
33206
35453
  Returns: undefined;
@@ -33297,6 +35544,16 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
33297
35544
  status: string;
33298
35545
  }[];
33299
35546
  };
35547
+ email_auth_upsert_connection: {
35548
+ Args: {
35549
+ _account_email: string;
35550
+ _created_by: string;
35551
+ _is_active: boolean;
35552
+ _provider: string;
35553
+ _status: string;
35554
+ };
35555
+ Returns: string;
35556
+ };
33300
35557
  enqueue_cart_replan_if_unlocked: {
33301
35558
  Args: {
33302
35559
  p_order_id: string;
@@ -33569,6 +35826,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
33569
35826
  };
33570
35827
  Returns: boolean;
33571
35828
  };
35829
+ has_twinfield_link: {
35830
+ Args: never;
35831
+ Returns: boolean;
35832
+ };
33572
35833
  is_authenticated: {
33573
35834
  Args: never;
33574
35835
  Returns: boolean;
@@ -33624,6 +35885,10 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
33624
35885
  };
33625
35886
  Returns: string;
33626
35887
  };
35888
+ next_twinfield_code: {
35889
+ Args: never;
35890
+ Returns: string;
35891
+ };
33627
35892
  next_work_order_number: {
33628
35893
  Args: {
33629
35894
  p_parent_work_order_id?: string;
@@ -33738,6 +36003,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
33738
36003
  };
33739
36004
  Returns: number;
33740
36005
  };
36006
+ reorder_customer_price_groups: {
36007
+ Args: {
36008
+ _ids: string[];
36009
+ };
36010
+ Returns: undefined;
36011
+ };
33741
36012
  reset_floriday_sync_cursor: {
33742
36013
  Args: {
33743
36014
  p_connection_id: string;
@@ -33751,6 +36022,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
33751
36022
  };
33752
36023
  Returns: string;
33753
36024
  };
36025
+ retry_twinfield_push: {
36026
+ Args: {
36027
+ _customer_id: string;
36028
+ };
36029
+ Returns: number;
36030
+ };
33754
36031
  schedule_floriday_additional_services_sync: {
33755
36032
  Args: {
33756
36033
  p_apikey: string;
@@ -34362,6 +36639,237 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
34362
36639
  };
34363
36640
  Relationships: [];
34364
36641
  };
36642
+ ai_admin_credentials: {
36643
+ Row: {
36644
+ active: boolean;
36645
+ admin_key: string;
36646
+ created_at: string;
36647
+ id: string;
36648
+ label: string;
36649
+ provider_id: string;
36650
+ updated_at: string;
36651
+ };
36652
+ Insert: {
36653
+ active?: boolean;
36654
+ admin_key: string;
36655
+ created_at?: string;
36656
+ id?: string;
36657
+ label: string;
36658
+ provider_id: string;
36659
+ updated_at?: string;
36660
+ };
36661
+ Update: {
36662
+ active?: boolean;
36663
+ admin_key?: string;
36664
+ created_at?: string;
36665
+ id?: string;
36666
+ label?: string;
36667
+ provider_id?: string;
36668
+ updated_at?: string;
36669
+ };
36670
+ Relationships: [{
36671
+ foreignKeyName: "ai_admin_credentials_provider_id_fkey";
36672
+ columns: ["provider_id"];
36673
+ isOneToOne: true;
36674
+ referencedRelation: "ai_providers";
36675
+ referencedColumns: ["id"];
36676
+ }];
36677
+ };
36678
+ ai_credentials: {
36679
+ Row: {
36680
+ active: boolean;
36681
+ api_key: string;
36682
+ created_at: string;
36683
+ id: string;
36684
+ label: string;
36685
+ provider_id: string;
36686
+ updated_at: string;
36687
+ };
36688
+ Insert: {
36689
+ active?: boolean;
36690
+ api_key: string;
36691
+ created_at?: string;
36692
+ id?: string;
36693
+ label: string;
36694
+ provider_id: string;
36695
+ updated_at?: string;
36696
+ };
36697
+ Update: {
36698
+ active?: boolean;
36699
+ api_key?: string;
36700
+ created_at?: string;
36701
+ id?: string;
36702
+ label?: string;
36703
+ provider_id?: string;
36704
+ updated_at?: string;
36705
+ };
36706
+ Relationships: [{
36707
+ foreignKeyName: "ai_credentials_provider_id_fkey";
36708
+ columns: ["provider_id"];
36709
+ isOneToOne: false;
36710
+ referencedRelation: "ai_providers";
36711
+ referencedColumns: ["id"];
36712
+ }];
36713
+ };
36714
+ ai_model_pricing: {
36715
+ Row: {
36716
+ created_at: string;
36717
+ currency: string;
36718
+ fetched_at: string;
36719
+ id: string;
36720
+ input_per_mtok: number | null;
36721
+ model_slug: string;
36722
+ output_per_mtok: number | null;
36723
+ provider_slug: string;
36724
+ source: string;
36725
+ updated_at: string;
36726
+ };
36727
+ Insert: {
36728
+ created_at?: string;
36729
+ currency?: string;
36730
+ fetched_at?: string;
36731
+ id?: string;
36732
+ input_per_mtok?: number | null;
36733
+ model_slug: string;
36734
+ output_per_mtok?: number | null;
36735
+ provider_slug: string;
36736
+ source?: string;
36737
+ updated_at?: string;
36738
+ };
36739
+ Update: {
36740
+ created_at?: string;
36741
+ currency?: string;
36742
+ fetched_at?: string;
36743
+ id?: string;
36744
+ input_per_mtok?: number | null;
36745
+ model_slug?: string;
36746
+ output_per_mtok?: number | null;
36747
+ provider_slug?: string;
36748
+ source?: string;
36749
+ updated_at?: string;
36750
+ };
36751
+ Relationships: [];
36752
+ };
36753
+ ai_models: {
36754
+ Row: {
36755
+ active: boolean;
36756
+ context_window: number | null;
36757
+ created_at: string;
36758
+ display_name: string;
36759
+ id: string;
36760
+ is_default: boolean;
36761
+ modality: string;
36762
+ provider_id: string;
36763
+ slug: string;
36764
+ updated_at: string;
36765
+ };
36766
+ Insert: {
36767
+ active?: boolean;
36768
+ context_window?: number | null;
36769
+ created_at?: string;
36770
+ display_name: string;
36771
+ id?: string;
36772
+ is_default?: boolean;
36773
+ modality?: string;
36774
+ provider_id: string;
36775
+ slug: string;
36776
+ updated_at?: string;
36777
+ };
36778
+ Update: {
36779
+ active?: boolean;
36780
+ context_window?: number | null;
36781
+ created_at?: string;
36782
+ display_name?: string;
36783
+ id?: string;
36784
+ is_default?: boolean;
36785
+ modality?: string;
36786
+ provider_id?: string;
36787
+ slug?: string;
36788
+ updated_at?: string;
36789
+ };
36790
+ Relationships: [{
36791
+ foreignKeyName: "ai_models_provider_id_fkey";
36792
+ columns: ["provider_id"];
36793
+ isOneToOne: false;
36794
+ referencedRelation: "ai_providers";
36795
+ referencedColumns: ["id"];
36796
+ }];
36797
+ };
36798
+ ai_module_bindings: {
36799
+ Row: {
36800
+ consumer_module_id: string;
36801
+ created_at: string;
36802
+ credential_id: string;
36803
+ id: string;
36804
+ model_id: string;
36805
+ notes: string | null;
36806
+ updated_at: string;
36807
+ };
36808
+ Insert: {
36809
+ consumer_module_id: string;
36810
+ created_at?: string;
36811
+ credential_id: string;
36812
+ id?: string;
36813
+ model_id: string;
36814
+ notes?: string | null;
36815
+ updated_at?: string;
36816
+ };
36817
+ Update: {
36818
+ consumer_module_id?: string;
36819
+ created_at?: string;
36820
+ credential_id?: string;
36821
+ id?: string;
36822
+ model_id?: string;
36823
+ notes?: string | null;
36824
+ updated_at?: string;
36825
+ };
36826
+ Relationships: [{
36827
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
36828
+ columns: ["credential_id"];
36829
+ isOneToOne: false;
36830
+ referencedRelation: "ai_credentials";
36831
+ referencedColumns: ["id"];
36832
+ }, {
36833
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
36834
+ columns: ["model_id"];
36835
+ isOneToOne: false;
36836
+ referencedRelation: "ai_models";
36837
+ referencedColumns: ["id"];
36838
+ }];
36839
+ };
36840
+ ai_providers: {
36841
+ Row: {
36842
+ active: boolean;
36843
+ auth_type: string;
36844
+ base_url: string | null;
36845
+ created_at: string;
36846
+ id: string;
36847
+ name: string;
36848
+ slug: string;
36849
+ updated_at: string;
36850
+ };
36851
+ Insert: {
36852
+ active?: boolean;
36853
+ auth_type?: string;
36854
+ base_url?: string | null;
36855
+ created_at?: string;
36856
+ id?: string;
36857
+ name: string;
36858
+ slug: string;
36859
+ updated_at?: string;
36860
+ };
36861
+ Update: {
36862
+ active?: boolean;
36863
+ auth_type?: string;
36864
+ base_url?: string | null;
36865
+ created_at?: string;
36866
+ id?: string;
36867
+ name?: string;
36868
+ slug?: string;
36869
+ updated_at?: string;
36870
+ };
36871
+ Relationships: [];
36872
+ };
34365
36873
  app_settings: {
34366
36874
  Row: {
34367
36875
  created_at: string;
@@ -35019,6 +37527,69 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
35019
37527
  referencedColumns: ["id"];
35020
37528
  }];
35021
37529
  };
37530
+ catalog_articles_cache: {
37531
+ Row: {
37532
+ created_at: string;
37533
+ default_price: number;
37534
+ default_vat_rate_ref: string | null;
37535
+ external_ref: string;
37536
+ id: string;
37537
+ name: string;
37538
+ updated_at: string;
37539
+ user_id: string;
37540
+ };
37541
+ Insert: {
37542
+ created_at?: string;
37543
+ default_price?: number;
37544
+ default_vat_rate_ref?: string | null;
37545
+ external_ref: string;
37546
+ id?: string;
37547
+ name: string;
37548
+ updated_at?: string;
37549
+ user_id: string;
37550
+ };
37551
+ Update: {
37552
+ created_at?: string;
37553
+ default_price?: number;
37554
+ default_vat_rate_ref?: string | null;
37555
+ external_ref?: string;
37556
+ id?: string;
37557
+ name?: string;
37558
+ updated_at?: string;
37559
+ user_id?: string;
37560
+ };
37561
+ Relationships: [];
37562
+ };
37563
+ catalog_vat_rates_cache: {
37564
+ Row: {
37565
+ created_at: string;
37566
+ external_ref: string;
37567
+ id: string;
37568
+ label: string;
37569
+ percentage: number;
37570
+ updated_at: string;
37571
+ user_id: string;
37572
+ };
37573
+ Insert: {
37574
+ created_at?: string;
37575
+ external_ref: string;
37576
+ id?: string;
37577
+ label: string;
37578
+ percentage?: number;
37579
+ updated_at?: string;
37580
+ user_id: string;
37581
+ };
37582
+ Update: {
37583
+ created_at?: string;
37584
+ external_ref?: string;
37585
+ id?: string;
37586
+ label?: string;
37587
+ percentage?: number;
37588
+ updated_at?: string;
37589
+ user_id?: string;
37590
+ };
37591
+ Relationships: [];
37592
+ };
35022
37593
  collections: {
35023
37594
  Row: {
35024
37595
  created_at: string;
@@ -35268,6 +37839,105 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
35268
37839
  };
35269
37840
  Relationships: [];
35270
37841
  };
37842
+ customer_price_group_members: {
37843
+ Row: {
37844
+ created_at: string;
37845
+ customer_key: string;
37846
+ id: string;
37847
+ owner_id: string;
37848
+ price_group_id: string;
37849
+ };
37850
+ Insert: {
37851
+ created_at?: string;
37852
+ customer_key: string;
37853
+ id?: string;
37854
+ owner_id?: string;
37855
+ price_group_id: string;
37856
+ };
37857
+ Update: {
37858
+ created_at?: string;
37859
+ customer_key?: string;
37860
+ id?: string;
37861
+ owner_id?: string;
37862
+ price_group_id?: string;
37863
+ };
37864
+ Relationships: [{
37865
+ foreignKeyName: "customer_price_group_members_price_group_id_fkey";
37866
+ columns: ["price_group_id"];
37867
+ isOneToOne: false;
37868
+ referencedRelation: "customer_price_groups";
37869
+ referencedColumns: ["id"];
37870
+ }];
37871
+ };
37872
+ customer_price_groups: {
37873
+ Row: {
37874
+ calc_type: string | null;
37875
+ calc_value: number | null;
37876
+ calc_value_type: string | null;
37877
+ created_at: string;
37878
+ currency: string;
37879
+ distribute_over: string | null;
37880
+ group_type: string;
37881
+ handling_fee: number | null;
37882
+ id: string;
37883
+ include_stickers: boolean;
37884
+ is_active: boolean;
37885
+ name: string;
37886
+ owner_id: string;
37887
+ price_scope: string;
37888
+ pricing_mode: string;
37889
+ rounding: string;
37890
+ rounding_step: number;
37891
+ sort_order: number;
37892
+ unit: string;
37893
+ updated_at: string;
37894
+ };
37895
+ Insert: {
37896
+ calc_type?: string | null;
37897
+ calc_value?: number | null;
37898
+ calc_value_type?: string | null;
37899
+ created_at?: string;
37900
+ currency?: string;
37901
+ distribute_over?: string | null;
37902
+ group_type?: string;
37903
+ handling_fee?: number | null;
37904
+ id?: string;
37905
+ include_stickers?: boolean;
37906
+ is_active?: boolean;
37907
+ name: string;
37908
+ owner_id?: string;
37909
+ price_scope?: string;
37910
+ pricing_mode?: string;
37911
+ rounding?: string;
37912
+ rounding_step?: number;
37913
+ sort_order?: number;
37914
+ unit?: string;
37915
+ updated_at?: string;
37916
+ };
37917
+ Update: {
37918
+ calc_type?: string | null;
37919
+ calc_value?: number | null;
37920
+ calc_value_type?: string | null;
37921
+ created_at?: string;
37922
+ currency?: string;
37923
+ distribute_over?: string | null;
37924
+ group_type?: string;
37925
+ handling_fee?: number | null;
37926
+ id?: string;
37927
+ include_stickers?: boolean;
37928
+ is_active?: boolean;
37929
+ name?: string;
37930
+ owner_id?: string;
37931
+ price_scope?: string;
37932
+ pricing_mode?: string;
37933
+ rounding?: string;
37934
+ rounding_step?: number;
37935
+ sort_order?: number;
37936
+ unit?: string;
37937
+ updated_at?: string;
37938
+ };
37939
+ Relationships: [];
37940
+ };
35271
37941
  customer_selected_assortment: {
35272
37942
  Row: {
35273
37943
  article_number: string | null;
@@ -35421,6 +38091,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
35421
38091
  sync_error: string | null;
35422
38092
  sync_status: string;
35423
38093
  trade_forms: string[];
38094
+ twinfield_code: string | null;
38095
+ twinfield_last_hash: string | null;
38096
+ twinfield_sync_error: string | null;
38097
+ twinfield_synced_at: string | null;
35424
38098
  updated_at: string;
35425
38099
  vat_display: string | null;
35426
38100
  vat_number: string | null;
@@ -35488,6 +38162,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
35488
38162
  sync_error?: string | null;
35489
38163
  sync_status?: string;
35490
38164
  trade_forms?: string[];
38165
+ twinfield_code?: string | null;
38166
+ twinfield_last_hash?: string | null;
38167
+ twinfield_sync_error?: string | null;
38168
+ twinfield_synced_at?: string | null;
35491
38169
  updated_at?: string;
35492
38170
  vat_display?: string | null;
35493
38171
  vat_number?: string | null;
@@ -35555,6 +38233,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
35555
38233
  sync_error?: string | null;
35556
38234
  sync_status?: string;
35557
38235
  trade_forms?: string[];
38236
+ twinfield_code?: string | null;
38237
+ twinfield_last_hash?: string | null;
38238
+ twinfield_sync_error?: string | null;
38239
+ twinfield_synced_at?: string | null;
35558
38240
  updated_at?: string;
35559
38241
  vat_display?: string | null;
35560
38242
  vat_number?: string | null;
@@ -42537,6 +45219,27 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
42537
45219
  };
42538
45220
  Relationships: [];
42539
45221
  };
45222
+ technician_rates: {
45223
+ Row: {
45224
+ created_at: string;
45225
+ hourly_rate_cents: number;
45226
+ updated_at: string;
45227
+ user_id: string;
45228
+ };
45229
+ Insert: {
45230
+ created_at?: string;
45231
+ hourly_rate_cents?: number;
45232
+ updated_at?: string;
45233
+ user_id: string;
45234
+ };
45235
+ Update: {
45236
+ created_at?: string;
45237
+ hourly_rate_cents?: number;
45238
+ updated_at?: string;
45239
+ user_id?: string;
45240
+ };
45241
+ Relationships: [];
45242
+ };
42540
45243
  tenants: {
42541
45244
  Row: {
42542
45245
  created_at: string;
@@ -43006,6 +45709,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43006
45709
  country: string | null;
43007
45710
  created_at: string;
43008
45711
  email: string | null;
45712
+ external_group_key: string | null;
43009
45713
  id: string;
43010
45714
  last_synced_at: string | null;
43011
45715
  name: string;
@@ -43024,6 +45728,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43024
45728
  country?: string | null;
43025
45729
  created_at?: string;
43026
45730
  email?: string | null;
45731
+ external_group_key?: string | null;
43027
45732
  id?: string;
43028
45733
  last_synced_at?: string | null;
43029
45734
  name: string;
@@ -43042,6 +45747,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43042
45747
  country?: string | null;
43043
45748
  created_at?: string;
43044
45749
  email?: string | null;
45750
+ external_group_key?: string | null;
43045
45751
  id?: string;
43046
45752
  last_synced_at?: string | null;
43047
45753
  name?: string;
@@ -43206,6 +45912,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43206
45912
  twinfield_invoice_settings: {
43207
45913
  Row: {
43208
45914
  created_at: string;
45915
+ debtor_gl_account: string;
45916
+ default_credit_invoice_type: string | null;
43209
45917
  default_gl_account: string;
43210
45918
  default_invoice_type: string;
43211
45919
  default_payment_term_days: number;
@@ -43214,11 +45922,15 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43214
45922
  invoice_enabled_fo: boolean;
43215
45923
  invoice_enabled_ho: boolean;
43216
45924
  invoice_enabled_mo: boolean;
45925
+ payment_gl_account: string;
45926
+ payment_journal_code: string;
43217
45927
  updated_at: string;
43218
45928
  user_id: string;
43219
45929
  };
43220
45930
  Insert: {
43221
45931
  created_at?: string;
45932
+ debtor_gl_account?: string;
45933
+ default_credit_invoice_type?: string | null;
43222
45934
  default_gl_account?: string;
43223
45935
  default_invoice_type?: string;
43224
45936
  default_payment_term_days?: number;
@@ -43227,11 +45939,15 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43227
45939
  invoice_enabled_fo?: boolean;
43228
45940
  invoice_enabled_ho?: boolean;
43229
45941
  invoice_enabled_mo?: boolean;
45942
+ payment_gl_account?: string;
45943
+ payment_journal_code?: string;
43230
45944
  updated_at?: string;
43231
45945
  user_id: string;
43232
45946
  };
43233
45947
  Update: {
43234
45948
  created_at?: string;
45949
+ debtor_gl_account?: string;
45950
+ default_credit_invoice_type?: string | null;
43235
45951
  default_gl_account?: string;
43236
45952
  default_invoice_type?: string;
43237
45953
  default_payment_term_days?: number;
@@ -43240,6 +45956,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43240
45956
  invoice_enabled_fo?: boolean;
43241
45957
  invoice_enabled_ho?: boolean;
43242
45958
  invoice_enabled_mo?: boolean;
45959
+ payment_gl_account?: string;
45960
+ payment_journal_code?: string;
43243
45961
  updated_at?: string;
43244
45962
  user_id?: string;
43245
45963
  };
@@ -43460,43 +46178,49 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43460
46178
  };
43461
46179
  twinfield_push_queue: {
43462
46180
  Row: {
46181
+ action: string;
43463
46182
  attempts: number;
43464
46183
  connection_id: string;
43465
46184
  created_at: string;
46185
+ customer_id: string | null;
43466
46186
  external_id: string | null;
43467
46187
  id: string;
43468
46188
  idempotency_key: string;
43469
46189
  last_error: string | null;
43470
46190
  next_attempt_at: string;
43471
- office_code: string;
46191
+ office_code: string | null;
43472
46192
  payload: import("../integrations/supabase/types").Json;
43473
46193
  status: string;
43474
46194
  updated_at: string;
43475
46195
  };
43476
46196
  Insert: {
46197
+ action?: string;
43477
46198
  attempts?: number;
43478
46199
  connection_id: string;
43479
46200
  created_at?: string;
46201
+ customer_id?: string | null;
43480
46202
  external_id?: string | null;
43481
46203
  id?: string;
43482
46204
  idempotency_key: string;
43483
46205
  last_error?: string | null;
43484
46206
  next_attempt_at?: string;
43485
- office_code: string;
46207
+ office_code?: string | null;
43486
46208
  payload: import("../integrations/supabase/types").Json;
43487
46209
  status?: string;
43488
46210
  updated_at?: string;
43489
46211
  };
43490
46212
  Update: {
46213
+ action?: string;
43491
46214
  attempts?: number;
43492
46215
  connection_id?: string;
43493
46216
  created_at?: string;
46217
+ customer_id?: string | null;
43494
46218
  external_id?: string | null;
43495
46219
  id?: string;
43496
46220
  idempotency_key?: string;
43497
46221
  last_error?: string | null;
43498
46222
  next_attempt_at?: string;
43499
- office_code?: string;
46223
+ office_code?: string | null;
43500
46224
  payload?: import("../integrations/supabase/types").Json;
43501
46225
  status?: string;
43502
46226
  updated_at?: string;
@@ -43507,6 +46231,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43507
46231
  isOneToOne: false;
43508
46232
  referencedRelation: "twinfield_connections";
43509
46233
  referencedColumns: ["id"];
46234
+ }, {
46235
+ foreignKeyName: "twinfield_push_queue_customer_id_fkey";
46236
+ columns: ["customer_id"];
46237
+ isOneToOne: false;
46238
+ referencedRelation: "customers";
46239
+ referencedColumns: ["id"];
43510
46240
  }];
43511
46241
  };
43512
46242
  twinfield_request_metrics: {
@@ -43782,6 +46512,246 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43782
46512
  };
43783
46513
  Relationships: [];
43784
46514
  };
46515
+ werkbon_package_lines: {
46516
+ Row: {
46517
+ created_at: string;
46518
+ created_by: string | null;
46519
+ id: string;
46520
+ package_id: string;
46521
+ quantity: number;
46522
+ unit_price_cents_snapshot: number;
46523
+ werkbon_id: string;
46524
+ };
46525
+ Insert: {
46526
+ created_at?: string;
46527
+ created_by?: string | null;
46528
+ id?: string;
46529
+ package_id: string;
46530
+ quantity?: number;
46531
+ unit_price_cents_snapshot?: number;
46532
+ werkbon_id: string;
46533
+ };
46534
+ Update: {
46535
+ created_at?: string;
46536
+ created_by?: string | null;
46537
+ id?: string;
46538
+ package_id?: string;
46539
+ quantity?: number;
46540
+ unit_price_cents_snapshot?: number;
46541
+ werkbon_id?: string;
46542
+ };
46543
+ Relationships: [{
46544
+ foreignKeyName: "werkbon_package_lines_package_id_fkey";
46545
+ columns: ["package_id"];
46546
+ isOneToOne: false;
46547
+ referencedRelation: "werkbon_packages";
46548
+ referencedColumns: ["id"];
46549
+ }, {
46550
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
46551
+ columns: ["werkbon_id"];
46552
+ isOneToOne: false;
46553
+ referencedRelation: "werkbonnen";
46554
+ referencedColumns: ["id"];
46555
+ }];
46556
+ };
46557
+ werkbon_packages: {
46558
+ Row: {
46559
+ active: boolean;
46560
+ code: string;
46561
+ created_at: string;
46562
+ default_quantity: number;
46563
+ description: string | null;
46564
+ id: string;
46565
+ name: string;
46566
+ unit_price_cents: number;
46567
+ updated_at: string;
46568
+ };
46569
+ Insert: {
46570
+ active?: boolean;
46571
+ code: string;
46572
+ created_at?: string;
46573
+ default_quantity?: number;
46574
+ description?: string | null;
46575
+ id?: string;
46576
+ name: string;
46577
+ unit_price_cents?: number;
46578
+ updated_at?: string;
46579
+ };
46580
+ Update: {
46581
+ active?: boolean;
46582
+ code?: string;
46583
+ created_at?: string;
46584
+ default_quantity?: number;
46585
+ description?: string | null;
46586
+ id?: string;
46587
+ name?: string;
46588
+ unit_price_cents?: number;
46589
+ updated_at?: string;
46590
+ };
46591
+ Relationships: [];
46592
+ };
46593
+ werkbon_photos: {
46594
+ Row: {
46595
+ created_at: string;
46596
+ id: string;
46597
+ storage_path: string;
46598
+ user_id: string;
46599
+ werkbon_id: string;
46600
+ };
46601
+ Insert: {
46602
+ created_at?: string;
46603
+ id?: string;
46604
+ storage_path: string;
46605
+ user_id: string;
46606
+ werkbon_id: string;
46607
+ };
46608
+ Update: {
46609
+ created_at?: string;
46610
+ id?: string;
46611
+ storage_path?: string;
46612
+ user_id?: string;
46613
+ werkbon_id?: string;
46614
+ };
46615
+ Relationships: [{
46616
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
46617
+ columns: ["werkbon_id"];
46618
+ isOneToOne: false;
46619
+ referencedRelation: "werkbonnen";
46620
+ referencedColumns: ["id"];
46621
+ }];
46622
+ };
46623
+ werkbon_time_logs: {
46624
+ Row: {
46625
+ activity: string;
46626
+ created_at: string;
46627
+ ended_at: string | null;
46628
+ id: string;
46629
+ started_at: string;
46630
+ user_id: string;
46631
+ werkbon_id: string;
46632
+ };
46633
+ Insert: {
46634
+ activity: string;
46635
+ created_at?: string;
46636
+ ended_at?: string | null;
46637
+ id?: string;
46638
+ started_at?: string;
46639
+ user_id: string;
46640
+ werkbon_id: string;
46641
+ };
46642
+ Update: {
46643
+ activity?: string;
46644
+ created_at?: string;
46645
+ ended_at?: string | null;
46646
+ id?: string;
46647
+ started_at?: string;
46648
+ user_id?: string;
46649
+ werkbon_id?: string;
46650
+ };
46651
+ Relationships: [{
46652
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
46653
+ columns: ["werkbon_id"];
46654
+ isOneToOne: false;
46655
+ referencedRelation: "werkbonnen";
46656
+ referencedColumns: ["id"];
46657
+ }];
46658
+ };
46659
+ werkbonnen: {
46660
+ Row: {
46661
+ assigned_user_id: string | null;
46662
+ budget_mandate_cents: number;
46663
+ complaint_description: string | null;
46664
+ created_at: string;
46665
+ created_by: string | null;
46666
+ customer_id: string | null;
46667
+ externe_referentie: string | null;
46668
+ first_time_fix: boolean | null;
46669
+ id: string;
46670
+ internal_notes: string | null;
46671
+ parent_werkbon_id: string | null;
46672
+ parsed_payload: import("../integrations/supabase/types").Json | null;
46673
+ project_number: string | null;
46674
+ room_number: string | null;
46675
+ scheduled_end_time: string | null;
46676
+ scheduled_start_time: string | null;
46677
+ sequence_number: number;
46678
+ source_pdf_path: string | null;
46679
+ status: string;
46680
+ technician_notes: string | null;
46681
+ technician_notes_raw: string | null;
46682
+ technician_task_description: string | null;
46683
+ updated_at: string;
46684
+ version: number;
46685
+ work_address: string | null;
46686
+ };
46687
+ Insert: {
46688
+ assigned_user_id?: string | null;
46689
+ budget_mandate_cents?: number;
46690
+ complaint_description?: string | null;
46691
+ created_at?: string;
46692
+ created_by?: string | null;
46693
+ customer_id?: string | null;
46694
+ externe_referentie?: string | null;
46695
+ first_time_fix?: boolean | null;
46696
+ id?: string;
46697
+ internal_notes?: string | null;
46698
+ parent_werkbon_id?: string | null;
46699
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
46700
+ project_number?: string | null;
46701
+ room_number?: string | null;
46702
+ scheduled_end_time?: string | null;
46703
+ scheduled_start_time?: string | null;
46704
+ sequence_number: number;
46705
+ source_pdf_path?: string | null;
46706
+ status?: string;
46707
+ technician_notes?: string | null;
46708
+ technician_notes_raw?: string | null;
46709
+ technician_task_description?: string | null;
46710
+ updated_at?: string;
46711
+ version?: number;
46712
+ work_address?: string | null;
46713
+ };
46714
+ Update: {
46715
+ assigned_user_id?: string | null;
46716
+ budget_mandate_cents?: number;
46717
+ complaint_description?: string | null;
46718
+ created_at?: string;
46719
+ created_by?: string | null;
46720
+ customer_id?: string | null;
46721
+ externe_referentie?: string | null;
46722
+ first_time_fix?: boolean | null;
46723
+ id?: string;
46724
+ internal_notes?: string | null;
46725
+ parent_werkbon_id?: string | null;
46726
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
46727
+ project_number?: string | null;
46728
+ room_number?: string | null;
46729
+ scheduled_end_time?: string | null;
46730
+ scheduled_start_time?: string | null;
46731
+ sequence_number?: number;
46732
+ source_pdf_path?: string | null;
46733
+ status?: string;
46734
+ technician_notes?: string | null;
46735
+ technician_notes_raw?: string | null;
46736
+ technician_task_description?: string | null;
46737
+ updated_at?: string;
46738
+ version?: number;
46739
+ work_address?: string | null;
46740
+ };
46741
+ Relationships: [{
46742
+ foreignKeyName: "werkbonnen_customer_id_fkey";
46743
+ columns: ["customer_id"];
46744
+ isOneToOne: false;
46745
+ referencedRelation: "customers";
46746
+ referencedColumns: ["id"];
46747
+ }, {
46748
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
46749
+ columns: ["parent_werkbon_id"];
46750
+ isOneToOne: false;
46751
+ referencedRelation: "werkbonnen";
46752
+ referencedColumns: ["id"];
46753
+ }];
46754
+ };
43785
46755
  work_order_monteurs: {
43786
46756
  Row: {
43787
46757
  created_at: string;
@@ -43952,6 +46922,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43952
46922
  created_at: string | null;
43953
46923
  created_by: string | null;
43954
46924
  display_name: string | null;
46925
+ graph_subscription_expires_at: string | null;
46926
+ graph_subscription_id: string | null;
43955
46927
  has_access_token: boolean | null;
43956
46928
  has_client_id: boolean | null;
43957
46929
  has_client_secret: boolean | null;
@@ -43969,6 +46941,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43969
46941
  oauth_mode: string | null;
43970
46942
  provider: string | null;
43971
46943
  purpose_assignments: import("../integrations/supabase/types").Json | null;
46944
+ realtime_mode: string | null;
43972
46945
  scopes: string[] | null;
43973
46946
  smtp_host: string | null;
43974
46947
  smtp_port: number | null;
@@ -43983,6 +46956,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
43983
46956
  created_at?: string | null;
43984
46957
  created_by?: string | null;
43985
46958
  display_name?: string | null;
46959
+ graph_subscription_expires_at?: string | null;
46960
+ graph_subscription_id?: string | null;
43986
46961
  has_access_token?: never;
43987
46962
  has_client_id?: never;
43988
46963
  has_client_secret?: never;
@@ -44000,6 +46975,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
44000
46975
  oauth_mode?: string | null;
44001
46976
  provider?: string | null;
44002
46977
  purpose_assignments?: import("../integrations/supabase/types").Json | null;
46978
+ realtime_mode?: string | null;
44003
46979
  scopes?: string[] | null;
44004
46980
  smtp_host?: string | null;
44005
46981
  smtp_port?: number | null;
@@ -44014,6 +46990,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
44014
46990
  created_at?: string | null;
44015
46991
  created_by?: string | null;
44016
46992
  display_name?: string | null;
46993
+ graph_subscription_expires_at?: string | null;
46994
+ graph_subscription_id?: string | null;
44017
46995
  has_access_token?: never;
44018
46996
  has_client_id?: never;
44019
46997
  has_client_secret?: never;
@@ -44031,6 +47009,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
44031
47009
  oauth_mode?: string | null;
44032
47010
  provider?: string | null;
44033
47011
  purpose_assignments?: import("../integrations/supabase/types").Json | null;
47012
+ realtime_mode?: string | null;
44034
47013
  scopes?: string[] | null;
44035
47014
  smtp_host?: string | null;
44036
47015
  smtp_port?: number | null;
@@ -44574,6 +47553,33 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
44574
47553
  };
44575
47554
  Returns: import("../integrations/supabase/types").Json;
44576
47555
  };
47556
+ claim_twinfield_push_batch: {
47557
+ Args: {
47558
+ _limit?: number;
47559
+ };
47560
+ Returns: {
47561
+ action: string;
47562
+ attempts: number;
47563
+ connection_id: string;
47564
+ created_at: string;
47565
+ customer_id: string | null;
47566
+ external_id: string | null;
47567
+ id: string;
47568
+ idempotency_key: string;
47569
+ last_error: string | null;
47570
+ next_attempt_at: string;
47571
+ office_code: string | null;
47572
+ payload: import("../integrations/supabase/types").Json;
47573
+ status: string;
47574
+ updated_at: string;
47575
+ }[];
47576
+ SetofOptions: {
47577
+ from: "*";
47578
+ to: "twinfield_push_queue";
47579
+ isOneToOne: false;
47580
+ isSetofReturn: true;
47581
+ };
47582
+ };
44577
47583
  cleanup_old_bookings: {
44578
47584
  Args: never;
44579
47585
  Returns: undefined;
@@ -44670,6 +47676,16 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
44670
47676
  status: string;
44671
47677
  }[];
44672
47678
  };
47679
+ email_auth_upsert_connection: {
47680
+ Args: {
47681
+ _account_email: string;
47682
+ _created_by: string;
47683
+ _is_active: boolean;
47684
+ _provider: string;
47685
+ _status: string;
47686
+ };
47687
+ Returns: string;
47688
+ };
44673
47689
  enqueue_cart_replan_if_unlocked: {
44674
47690
  Args: {
44675
47691
  p_order_id: string;
@@ -44942,6 +47958,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
44942
47958
  };
44943
47959
  Returns: boolean;
44944
47960
  };
47961
+ has_twinfield_link: {
47962
+ Args: never;
47963
+ Returns: boolean;
47964
+ };
44945
47965
  is_authenticated: {
44946
47966
  Args: never;
44947
47967
  Returns: boolean;
@@ -44997,6 +48017,10 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
44997
48017
  };
44998
48018
  Returns: string;
44999
48019
  };
48020
+ next_twinfield_code: {
48021
+ Args: never;
48022
+ Returns: string;
48023
+ };
45000
48024
  next_work_order_number: {
45001
48025
  Args: {
45002
48026
  p_parent_work_order_id?: string;
@@ -45111,6 +48135,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
45111
48135
  };
45112
48136
  Returns: number;
45113
48137
  };
48138
+ reorder_customer_price_groups: {
48139
+ Args: {
48140
+ _ids: string[];
48141
+ };
48142
+ Returns: undefined;
48143
+ };
45114
48144
  reset_floriday_sync_cursor: {
45115
48145
  Args: {
45116
48146
  p_connection_id: string;
@@ -45124,6 +48154,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
45124
48154
  };
45125
48155
  Returns: string;
45126
48156
  };
48157
+ retry_twinfield_push: {
48158
+ Args: {
48159
+ _customer_id: string;
48160
+ };
48161
+ Returns: number;
48162
+ };
45127
48163
  schedule_floriday_additional_services_sync: {
45128
48164
  Args: {
45129
48165
  p_apikey: string;