@flowselections/floriday-klanten-module 1.0.14 → 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 (101) hide show
  1. package/dist-lib/assets/floriday-logo.png.asset.json +11 -0
  2. package/dist-lib/components/CustomerAvatar.js +1 -1
  3. package/dist-lib/components/klanten/BackLink.d.ts +12 -0
  4. package/dist-lib/components/klanten/BackLink.d.ts.map +1 -0
  5. package/dist-lib/components/klanten/BackLink.js +12 -0
  6. package/dist-lib/components/klanten/FloridayAssortmentTab.d.ts +4 -0
  7. package/dist-lib/components/klanten/FloridayAssortmentTab.d.ts.map +1 -0
  8. package/dist-lib/components/klanten/FloridayAssortmentTab.js +80 -0
  9. package/dist-lib/components/klanten/FloridayDeeplinkButton.d.ts +8 -0
  10. package/dist-lib/components/klanten/FloridayDeeplinkButton.d.ts.map +1 -0
  11. package/dist-lib/components/klanten/FloridayDeeplinkButton.js +9 -0
  12. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
  13. package/dist-lib/components/klanten/GroupedKlantDetail.js +19 -5
  14. package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -1
  15. package/dist-lib/components/klanten/ImportKlanten.js +46 -13
  16. package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
  17. package/dist-lib/components/klanten/KlantDetail.js +9 -3
  18. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  19. package/dist-lib/components/klanten/KlantenOverzicht.js +6 -3
  20. package/dist-lib/components/klanten/NetwerkPagina.d.ts.map +1 -1
  21. package/dist-lib/components/klanten/NetwerkPagina.js +42 -10
  22. package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
  23. package/dist-lib/components/klanten/NieuweKlant.js +23 -8
  24. package/dist-lib/components/klanten/PriceGroupBadges.d.ts +7 -0
  25. package/dist-lib/components/klanten/PriceGroupBadges.d.ts.map +1 -0
  26. package/dist-lib/components/klanten/PriceGroupBadges.js +13 -0
  27. package/dist-lib/components/klanten/SyncStatusChip.d.ts +4 -0
  28. package/dist-lib/components/klanten/SyncStatusChip.d.ts.map +1 -0
  29. package/dist-lib/components/klanten/SyncStatusChip.js +49 -0
  30. package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.d.ts +8 -0
  31. package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.d.ts.map +1 -0
  32. package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.js +75 -0
  33. package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.d.ts +4 -0
  34. package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.d.ts.map +1 -0
  35. package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.js +269 -0
  36. package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.d.ts +2 -0
  37. package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.d.ts.map +1 -0
  38. package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.js +133 -0
  39. package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.d.ts +8 -0
  40. package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.d.ts.map +1 -0
  41. package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.js +18 -0
  42. package/dist-lib/index.d.ts +1 -0
  43. package/dist-lib/index.d.ts.map +1 -1
  44. package/dist-lib/index.js +6 -1
  45. package/dist-lib/integrations/supabase/auth-middleware.d.ts +762 -3
  46. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  47. package/dist-lib/integrations/supabase/client.d.ts +762 -3
  48. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  49. package/dist-lib/integrations/supabase/client.js +4 -3
  50. package/dist-lib/integrations/supabase/client.server.d.ts +762 -3
  51. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  52. package/dist-lib/integrations/supabase/types.d.ts +789 -8
  53. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  54. package/dist-lib/lib/accounting/twinfield/client.server.d.ts +21 -0
  55. package/dist-lib/lib/accounting/twinfield/client.server.d.ts.map +1 -0
  56. package/dist-lib/lib/accounting/twinfield/client.server.js +171 -0
  57. package/dist-lib/lib/accounting/twinfield/mapping.d.ts +46 -0
  58. package/dist-lib/lib/accounting/twinfield/mapping.d.ts.map +1 -0
  59. package/dist-lib/lib/accounting/twinfield/mapping.js +109 -0
  60. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +36318 -0
  61. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -0
  62. package/dist-lib/lib/accounting/twinfield/worker.functions.js +48 -0
  63. package/dist-lib/lib/accounting/twinfield/worker.server.d.ts +12 -0
  64. package/dist-lib/lib/accounting/twinfield/worker.server.d.ts.map +1 -0
  65. package/dist-lib/lib/accounting/twinfield/worker.server.js +124 -0
  66. package/dist-lib/lib/accounting.functions.d.ts +2286 -9
  67. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/customer-analytics.functions.d.ts +762 -3
  69. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/customer-schemas.d.ts +48 -46
  71. package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
  72. package/dist-lib/lib/customer-schemas.js +46 -3
  73. package/dist-lib/lib/customers.functions.d.ts +18288 -129
  74. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/customers.functions.js +146 -10
  76. package/dist-lib/lib/delivery-locations.functions.d.ts +3048 -12
  77. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  78. package/dist-lib/lib/external-customers.functions.d.ts +3048 -12
  79. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  80. package/dist-lib/lib/floriday-assortment.functions.d.ts +12127 -0
  81. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -0
  82. package/dist-lib/lib/floriday-assortment.functions.js +213 -0
  83. package/dist-lib/lib/floriday-discounts.functions.d.ts +1800 -282
  84. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  85. package/dist-lib/lib/floriday-trade-items.functions.d.ts +12111 -0
  86. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -0
  87. package/dist-lib/lib/floriday-trade-items.functions.js +107 -0
  88. package/dist-lib/lib/local-discounts.functions.d.ts +5336 -23
  89. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  90. package/dist-lib/lib/overdue-invoices.functions.d.ts +762 -3
  91. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  92. package/dist-lib/lib/price-groups-local.functions.d.ts +84841 -0
  93. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -0
  94. package/dist-lib/lib/price-groups-local.functions.js +148 -0
  95. package/dist-lib/lib/price-groups.functions.d.ts +12120 -0
  96. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -0
  97. package/dist-lib/lib/price-groups.functions.js +115 -0
  98. package/dist-lib/lib/pricing.d.ts +24 -0
  99. package/dist-lib/lib/pricing.d.ts.map +1 -0
  100. package/dist-lib/lib/pricing.js +60 -0
  101. package/package.json +6 -3
@@ -258,6 +258,237 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
258
258
  };
259
259
  Relationships: [];
260
260
  };
261
+ ai_admin_credentials: {
262
+ Row: {
263
+ active: boolean;
264
+ admin_key: string;
265
+ created_at: string;
266
+ id: string;
267
+ label: string;
268
+ provider_id: string;
269
+ updated_at: string;
270
+ };
271
+ Insert: {
272
+ active?: boolean;
273
+ admin_key: string;
274
+ created_at?: string;
275
+ id?: string;
276
+ label: string;
277
+ provider_id: string;
278
+ updated_at?: string;
279
+ };
280
+ Update: {
281
+ active?: boolean;
282
+ admin_key?: string;
283
+ created_at?: string;
284
+ id?: string;
285
+ label?: string;
286
+ provider_id?: string;
287
+ updated_at?: string;
288
+ };
289
+ Relationships: [{
290
+ foreignKeyName: "ai_admin_credentials_provider_id_fkey";
291
+ columns: ["provider_id"];
292
+ isOneToOne: true;
293
+ referencedRelation: "ai_providers";
294
+ referencedColumns: ["id"];
295
+ }];
296
+ };
297
+ ai_credentials: {
298
+ Row: {
299
+ active: boolean;
300
+ api_key: string;
301
+ created_at: string;
302
+ id: string;
303
+ label: string;
304
+ provider_id: string;
305
+ updated_at: string;
306
+ };
307
+ Insert: {
308
+ active?: boolean;
309
+ api_key: string;
310
+ created_at?: string;
311
+ id?: string;
312
+ label: string;
313
+ provider_id: string;
314
+ updated_at?: string;
315
+ };
316
+ Update: {
317
+ active?: boolean;
318
+ api_key?: string;
319
+ created_at?: string;
320
+ id?: string;
321
+ label?: string;
322
+ provider_id?: string;
323
+ updated_at?: string;
324
+ };
325
+ Relationships: [{
326
+ foreignKeyName: "ai_credentials_provider_id_fkey";
327
+ columns: ["provider_id"];
328
+ isOneToOne: false;
329
+ referencedRelation: "ai_providers";
330
+ referencedColumns: ["id"];
331
+ }];
332
+ };
333
+ ai_model_pricing: {
334
+ Row: {
335
+ created_at: string;
336
+ currency: string;
337
+ fetched_at: string;
338
+ id: string;
339
+ input_per_mtok: number | null;
340
+ model_slug: string;
341
+ output_per_mtok: number | null;
342
+ provider_slug: string;
343
+ source: string;
344
+ updated_at: string;
345
+ };
346
+ Insert: {
347
+ created_at?: string;
348
+ currency?: string;
349
+ fetched_at?: string;
350
+ id?: string;
351
+ input_per_mtok?: number | null;
352
+ model_slug: string;
353
+ output_per_mtok?: number | null;
354
+ provider_slug: string;
355
+ source?: string;
356
+ updated_at?: string;
357
+ };
358
+ Update: {
359
+ created_at?: string;
360
+ currency?: string;
361
+ fetched_at?: string;
362
+ id?: string;
363
+ input_per_mtok?: number | null;
364
+ model_slug?: string;
365
+ output_per_mtok?: number | null;
366
+ provider_slug?: string;
367
+ source?: string;
368
+ updated_at?: string;
369
+ };
370
+ Relationships: [];
371
+ };
372
+ ai_models: {
373
+ Row: {
374
+ active: boolean;
375
+ context_window: number | null;
376
+ created_at: string;
377
+ display_name: string;
378
+ id: string;
379
+ is_default: boolean;
380
+ modality: string;
381
+ provider_id: string;
382
+ slug: string;
383
+ updated_at: string;
384
+ };
385
+ Insert: {
386
+ active?: boolean;
387
+ context_window?: number | null;
388
+ created_at?: string;
389
+ display_name: string;
390
+ id?: string;
391
+ is_default?: boolean;
392
+ modality?: string;
393
+ provider_id: string;
394
+ slug: string;
395
+ updated_at?: string;
396
+ };
397
+ Update: {
398
+ active?: boolean;
399
+ context_window?: number | null;
400
+ created_at?: string;
401
+ display_name?: string;
402
+ id?: string;
403
+ is_default?: boolean;
404
+ modality?: string;
405
+ provider_id?: string;
406
+ slug?: string;
407
+ updated_at?: string;
408
+ };
409
+ Relationships: [{
410
+ foreignKeyName: "ai_models_provider_id_fkey";
411
+ columns: ["provider_id"];
412
+ isOneToOne: false;
413
+ referencedRelation: "ai_providers";
414
+ referencedColumns: ["id"];
415
+ }];
416
+ };
417
+ ai_module_bindings: {
418
+ Row: {
419
+ consumer_module_id: string;
420
+ created_at: string;
421
+ credential_id: string;
422
+ id: string;
423
+ model_id: string;
424
+ notes: string | null;
425
+ updated_at: string;
426
+ };
427
+ Insert: {
428
+ consumer_module_id: string;
429
+ created_at?: string;
430
+ credential_id: string;
431
+ id?: string;
432
+ model_id: string;
433
+ notes?: string | null;
434
+ updated_at?: string;
435
+ };
436
+ Update: {
437
+ consumer_module_id?: string;
438
+ created_at?: string;
439
+ credential_id?: string;
440
+ id?: string;
441
+ model_id?: string;
442
+ notes?: string | null;
443
+ updated_at?: string;
444
+ };
445
+ Relationships: [{
446
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
447
+ columns: ["credential_id"];
448
+ isOneToOne: false;
449
+ referencedRelation: "ai_credentials";
450
+ referencedColumns: ["id"];
451
+ }, {
452
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
453
+ columns: ["model_id"];
454
+ isOneToOne: false;
455
+ referencedRelation: "ai_models";
456
+ referencedColumns: ["id"];
457
+ }];
458
+ };
459
+ ai_providers: {
460
+ Row: {
461
+ active: boolean;
462
+ auth_type: string;
463
+ base_url: string | null;
464
+ created_at: string;
465
+ id: string;
466
+ name: string;
467
+ slug: string;
468
+ updated_at: string;
469
+ };
470
+ Insert: {
471
+ active?: boolean;
472
+ auth_type?: string;
473
+ base_url?: string | null;
474
+ created_at?: string;
475
+ id?: string;
476
+ name: string;
477
+ slug: string;
478
+ updated_at?: string;
479
+ };
480
+ Update: {
481
+ active?: boolean;
482
+ auth_type?: string;
483
+ base_url?: string | null;
484
+ created_at?: string;
485
+ id?: string;
486
+ name?: string;
487
+ slug?: string;
488
+ updated_at?: string;
489
+ };
490
+ Relationships: [];
491
+ };
261
492
  app_settings: {
262
493
  Row: {
263
494
  created_at: string;
@@ -915,6 +1146,69 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
915
1146
  referencedColumns: ["id"];
916
1147
  }];
917
1148
  };
1149
+ catalog_articles_cache: {
1150
+ Row: {
1151
+ created_at: string;
1152
+ default_price: number;
1153
+ default_vat_rate_ref: string | null;
1154
+ external_ref: string;
1155
+ id: string;
1156
+ name: string;
1157
+ updated_at: string;
1158
+ user_id: string;
1159
+ };
1160
+ Insert: {
1161
+ created_at?: string;
1162
+ default_price?: number;
1163
+ default_vat_rate_ref?: string | null;
1164
+ external_ref: string;
1165
+ id?: string;
1166
+ name: string;
1167
+ updated_at?: string;
1168
+ user_id: string;
1169
+ };
1170
+ Update: {
1171
+ created_at?: string;
1172
+ default_price?: number;
1173
+ default_vat_rate_ref?: string | null;
1174
+ external_ref?: string;
1175
+ id?: string;
1176
+ name?: string;
1177
+ updated_at?: string;
1178
+ user_id?: string;
1179
+ };
1180
+ Relationships: [];
1181
+ };
1182
+ catalog_vat_rates_cache: {
1183
+ Row: {
1184
+ created_at: string;
1185
+ external_ref: string;
1186
+ id: string;
1187
+ label: string;
1188
+ percentage: number;
1189
+ updated_at: string;
1190
+ user_id: string;
1191
+ };
1192
+ Insert: {
1193
+ created_at?: string;
1194
+ external_ref: string;
1195
+ id?: string;
1196
+ label: string;
1197
+ percentage?: number;
1198
+ updated_at?: string;
1199
+ user_id: string;
1200
+ };
1201
+ Update: {
1202
+ created_at?: string;
1203
+ external_ref?: string;
1204
+ id?: string;
1205
+ label?: string;
1206
+ percentage?: number;
1207
+ updated_at?: string;
1208
+ user_id?: string;
1209
+ };
1210
+ Relationships: [];
1211
+ };
918
1212
  collections: {
919
1213
  Row: {
920
1214
  created_at: string;
@@ -1164,6 +1458,105 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
1164
1458
  };
1165
1459
  Relationships: [];
1166
1460
  };
1461
+ customer_price_group_members: {
1462
+ Row: {
1463
+ created_at: string;
1464
+ customer_key: string;
1465
+ id: string;
1466
+ owner_id: string;
1467
+ price_group_id: string;
1468
+ };
1469
+ Insert: {
1470
+ created_at?: string;
1471
+ customer_key: string;
1472
+ id?: string;
1473
+ owner_id?: string;
1474
+ price_group_id: string;
1475
+ };
1476
+ Update: {
1477
+ created_at?: string;
1478
+ customer_key?: string;
1479
+ id?: string;
1480
+ owner_id?: string;
1481
+ price_group_id?: string;
1482
+ };
1483
+ Relationships: [{
1484
+ foreignKeyName: "customer_price_group_members_price_group_id_fkey";
1485
+ columns: ["price_group_id"];
1486
+ isOneToOne: false;
1487
+ referencedRelation: "customer_price_groups";
1488
+ referencedColumns: ["id"];
1489
+ }];
1490
+ };
1491
+ customer_price_groups: {
1492
+ Row: {
1493
+ calc_type: string | null;
1494
+ calc_value: number | null;
1495
+ calc_value_type: string | null;
1496
+ created_at: string;
1497
+ currency: string;
1498
+ distribute_over: string | null;
1499
+ group_type: string;
1500
+ handling_fee: number | null;
1501
+ id: string;
1502
+ include_stickers: boolean;
1503
+ is_active: boolean;
1504
+ name: string;
1505
+ owner_id: string;
1506
+ price_scope: string;
1507
+ pricing_mode: string;
1508
+ rounding: string;
1509
+ rounding_step: number;
1510
+ sort_order: number;
1511
+ unit: string;
1512
+ updated_at: string;
1513
+ };
1514
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
1559
+ };
1167
1560
  customer_selected_assortment: {
1168
1561
  Row: {
1169
1562
  article_number: string | null;
@@ -1317,6 +1710,10 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
1317
1710
  sync_error: string | null;
1318
1711
  sync_status: string;
1319
1712
  trade_forms: string[];
1713
+ twinfield_code: string | null;
1714
+ twinfield_last_hash: string | null;
1715
+ twinfield_sync_error: string | null;
1716
+ twinfield_synced_at: string | null;
1320
1717
  updated_at: string;
1321
1718
  vat_display: string | null;
1322
1719
  vat_number: string | null;
@@ -1384,6 +1781,10 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
1384
1781
  sync_error?: string | null;
1385
1782
  sync_status?: string;
1386
1783
  trade_forms?: string[];
1784
+ twinfield_code?: string | null;
1785
+ twinfield_last_hash?: string | null;
1786
+ twinfield_sync_error?: string | null;
1787
+ twinfield_synced_at?: string | null;
1387
1788
  updated_at?: string;
1388
1789
  vat_display?: string | null;
1389
1790
  vat_number?: string | null;
@@ -1451,6 +1852,10 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
1451
1852
  sync_error?: string | null;
1452
1853
  sync_status?: string;
1453
1854
  trade_forms?: string[];
1855
+ twinfield_code?: string | null;
1856
+ twinfield_last_hash?: string | null;
1857
+ twinfield_sync_error?: string | null;
1858
+ twinfield_synced_at?: string | null;
1454
1859
  updated_at?: string;
1455
1860
  vat_display?: string | null;
1456
1861
  vat_number?: string | null;
@@ -8433,6 +8838,27 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8433
8838
  };
8434
8839
  Relationships: [];
8435
8840
  };
8841
+ technician_rates: {
8842
+ Row: {
8843
+ created_at: string;
8844
+ hourly_rate_cents: number;
8845
+ updated_at: string;
8846
+ user_id: string;
8847
+ };
8848
+ Insert: {
8849
+ created_at?: string;
8850
+ hourly_rate_cents?: number;
8851
+ updated_at?: string;
8852
+ user_id: string;
8853
+ };
8854
+ Update: {
8855
+ created_at?: string;
8856
+ hourly_rate_cents?: number;
8857
+ updated_at?: string;
8858
+ user_id?: string;
8859
+ };
8860
+ Relationships: [];
8861
+ };
8436
8862
  tenants: {
8437
8863
  Row: {
8438
8864
  created_at: string;
@@ -8902,6 +9328,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8902
9328
  country: string | null;
8903
9329
  created_at: string;
8904
9330
  email: string | null;
9331
+ external_group_key: string | null;
8905
9332
  id: string;
8906
9333
  last_synced_at: string | null;
8907
9334
  name: string;
@@ -8920,6 +9347,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8920
9347
  country?: string | null;
8921
9348
  created_at?: string;
8922
9349
  email?: string | null;
9350
+ external_group_key?: string | null;
8923
9351
  id?: string;
8924
9352
  last_synced_at?: string | null;
8925
9353
  name: string;
@@ -8938,6 +9366,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8938
9366
  country?: string | null;
8939
9367
  created_at?: string;
8940
9368
  email?: string | null;
9369
+ external_group_key?: string | null;
8941
9370
  id?: string;
8942
9371
  last_synced_at?: string | null;
8943
9372
  name?: string;
@@ -9102,6 +9531,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9102
9531
  twinfield_invoice_settings: {
9103
9532
  Row: {
9104
9533
  created_at: string;
9534
+ debtor_gl_account: string;
9535
+ default_credit_invoice_type: string | null;
9105
9536
  default_gl_account: string;
9106
9537
  default_invoice_type: string;
9107
9538
  default_payment_term_days: number;
@@ -9110,11 +9541,15 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9110
9541
  invoice_enabled_fo: boolean;
9111
9542
  invoice_enabled_ho: boolean;
9112
9543
  invoice_enabled_mo: boolean;
9544
+ payment_gl_account: string;
9545
+ payment_journal_code: string;
9113
9546
  updated_at: string;
9114
9547
  user_id: string;
9115
9548
  };
9116
9549
  Insert: {
9117
9550
  created_at?: string;
9551
+ debtor_gl_account?: string;
9552
+ default_credit_invoice_type?: string | null;
9118
9553
  default_gl_account?: string;
9119
9554
  default_invoice_type?: string;
9120
9555
  default_payment_term_days?: number;
@@ -9123,11 +9558,15 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9123
9558
  invoice_enabled_fo?: boolean;
9124
9559
  invoice_enabled_ho?: boolean;
9125
9560
  invoice_enabled_mo?: boolean;
9561
+ payment_gl_account?: string;
9562
+ payment_journal_code?: string;
9126
9563
  updated_at?: string;
9127
9564
  user_id: string;
9128
9565
  };
9129
9566
  Update: {
9130
9567
  created_at?: string;
9568
+ debtor_gl_account?: string;
9569
+ default_credit_invoice_type?: string | null;
9131
9570
  default_gl_account?: string;
9132
9571
  default_invoice_type?: string;
9133
9572
  default_payment_term_days?: number;
@@ -9136,6 +9575,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9136
9575
  invoice_enabled_fo?: boolean;
9137
9576
  invoice_enabled_ho?: boolean;
9138
9577
  invoice_enabled_mo?: boolean;
9578
+ payment_gl_account?: string;
9579
+ payment_journal_code?: string;
9139
9580
  updated_at?: string;
9140
9581
  user_id?: string;
9141
9582
  };
@@ -9356,43 +9797,49 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9356
9797
  };
9357
9798
  twinfield_push_queue: {
9358
9799
  Row: {
9800
+ action: string;
9359
9801
  attempts: number;
9360
9802
  connection_id: string;
9361
9803
  created_at: string;
9804
+ customer_id: string | null;
9362
9805
  external_id: string | null;
9363
9806
  id: string;
9364
9807
  idempotency_key: string;
9365
9808
  last_error: string | null;
9366
9809
  next_attempt_at: string;
9367
- office_code: string;
9810
+ office_code: string | null;
9368
9811
  payload: import("../integrations/supabase/types").Json;
9369
9812
  status: string;
9370
9813
  updated_at: string;
9371
9814
  };
9372
9815
  Insert: {
9816
+ action?: string;
9373
9817
  attempts?: number;
9374
9818
  connection_id: string;
9375
9819
  created_at?: string;
9820
+ customer_id?: string | null;
9376
9821
  external_id?: string | null;
9377
9822
  id?: string;
9378
9823
  idempotency_key: string;
9379
9824
  last_error?: string | null;
9380
9825
  next_attempt_at?: string;
9381
- office_code: string;
9826
+ office_code?: string | null;
9382
9827
  payload: import("../integrations/supabase/types").Json;
9383
9828
  status?: string;
9384
9829
  updated_at?: string;
9385
9830
  };
9386
9831
  Update: {
9832
+ action?: string;
9387
9833
  attempts?: number;
9388
9834
  connection_id?: string;
9389
9835
  created_at?: string;
9836
+ customer_id?: string | null;
9390
9837
  external_id?: string | null;
9391
9838
  id?: string;
9392
9839
  idempotency_key?: string;
9393
9840
  last_error?: string | null;
9394
9841
  next_attempt_at?: string;
9395
- office_code?: string;
9842
+ office_code?: string | null;
9396
9843
  payload?: import("../integrations/supabase/types").Json;
9397
9844
  status?: string;
9398
9845
  updated_at?: string;
@@ -9403,6 +9850,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9403
9850
  isOneToOne: false;
9404
9851
  referencedRelation: "twinfield_connections";
9405
9852
  referencedColumns: ["id"];
9853
+ }, {
9854
+ foreignKeyName: "twinfield_push_queue_customer_id_fkey";
9855
+ columns: ["customer_id"];
9856
+ isOneToOne: false;
9857
+ referencedRelation: "customers";
9858
+ referencedColumns: ["id"];
9406
9859
  }];
9407
9860
  };
9408
9861
  twinfield_request_metrics: {
@@ -9678,6 +10131,246 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9678
10131
  };
9679
10132
  Relationships: [];
9680
10133
  };
10134
+ werkbon_package_lines: {
10135
+ Row: {
10136
+ created_at: string;
10137
+ created_by: string | null;
10138
+ id: string;
10139
+ package_id: string;
10140
+ quantity: number;
10141
+ unit_price_cents_snapshot: number;
10142
+ werkbon_id: string;
10143
+ };
10144
+ Insert: {
10145
+ created_at?: string;
10146
+ created_by?: string | null;
10147
+ id?: string;
10148
+ package_id: string;
10149
+ quantity?: number;
10150
+ unit_price_cents_snapshot?: number;
10151
+ werkbon_id: string;
10152
+ };
10153
+ Update: {
10154
+ created_at?: string;
10155
+ created_by?: string | null;
10156
+ id?: string;
10157
+ package_id?: string;
10158
+ quantity?: number;
10159
+ unit_price_cents_snapshot?: number;
10160
+ werkbon_id?: string;
10161
+ };
10162
+ Relationships: [{
10163
+ foreignKeyName: "werkbon_package_lines_package_id_fkey";
10164
+ columns: ["package_id"];
10165
+ isOneToOne: false;
10166
+ referencedRelation: "werkbon_packages";
10167
+ referencedColumns: ["id"];
10168
+ }, {
10169
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
10170
+ columns: ["werkbon_id"];
10171
+ isOneToOne: false;
10172
+ referencedRelation: "werkbonnen";
10173
+ referencedColumns: ["id"];
10174
+ }];
10175
+ };
10176
+ werkbon_packages: {
10177
+ Row: {
10178
+ active: boolean;
10179
+ code: string;
10180
+ created_at: string;
10181
+ default_quantity: number;
10182
+ description: string | null;
10183
+ id: string;
10184
+ name: string;
10185
+ unit_price_cents: number;
10186
+ updated_at: string;
10187
+ };
10188
+ Insert: {
10189
+ active?: boolean;
10190
+ code: string;
10191
+ created_at?: string;
10192
+ default_quantity?: number;
10193
+ description?: string | null;
10194
+ id?: string;
10195
+ name: string;
10196
+ unit_price_cents?: number;
10197
+ updated_at?: string;
10198
+ };
10199
+ Update: {
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
+ Relationships: [];
10211
+ };
10212
+ werkbon_photos: {
10213
+ Row: {
10214
+ created_at: string;
10215
+ id: string;
10216
+ storage_path: string;
10217
+ user_id: string;
10218
+ werkbon_id: string;
10219
+ };
10220
+ Insert: {
10221
+ created_at?: string;
10222
+ id?: string;
10223
+ storage_path: string;
10224
+ user_id: string;
10225
+ werkbon_id: string;
10226
+ };
10227
+ Update: {
10228
+ created_at?: string;
10229
+ id?: string;
10230
+ storage_path?: string;
10231
+ user_id?: string;
10232
+ werkbon_id?: string;
10233
+ };
10234
+ Relationships: [{
10235
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
10236
+ columns: ["werkbon_id"];
10237
+ isOneToOne: false;
10238
+ referencedRelation: "werkbonnen";
10239
+ referencedColumns: ["id"];
10240
+ }];
10241
+ };
10242
+ werkbon_time_logs: {
10243
+ Row: {
10244
+ activity: string;
10245
+ created_at: string;
10246
+ ended_at: string | null;
10247
+ id: string;
10248
+ started_at: string;
10249
+ user_id: string;
10250
+ werkbon_id: string;
10251
+ };
10252
+ Insert: {
10253
+ activity: string;
10254
+ created_at?: string;
10255
+ ended_at?: string | null;
10256
+ id?: string;
10257
+ started_at?: string;
10258
+ user_id: string;
10259
+ werkbon_id: string;
10260
+ };
10261
+ Update: {
10262
+ activity?: string;
10263
+ created_at?: string;
10264
+ ended_at?: string | null;
10265
+ id?: string;
10266
+ started_at?: string;
10267
+ user_id?: string;
10268
+ werkbon_id?: string;
10269
+ };
10270
+ Relationships: [{
10271
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
10272
+ columns: ["werkbon_id"];
10273
+ isOneToOne: false;
10274
+ referencedRelation: "werkbonnen";
10275
+ referencedColumns: ["id"];
10276
+ }];
10277
+ };
10278
+ werkbonnen: {
10279
+ Row: {
10280
+ assigned_user_id: string | null;
10281
+ budget_mandate_cents: number;
10282
+ complaint_description: string | null;
10283
+ created_at: string;
10284
+ created_by: string | null;
10285
+ customer_id: string | null;
10286
+ externe_referentie: string | null;
10287
+ first_time_fix: boolean | null;
10288
+ id: string;
10289
+ internal_notes: string | null;
10290
+ parent_werkbon_id: string | null;
10291
+ parsed_payload: import("../integrations/supabase/types").Json | null;
10292
+ project_number: string | null;
10293
+ room_number: string | null;
10294
+ scheduled_end_time: string | null;
10295
+ scheduled_start_time: string | null;
10296
+ sequence_number: number;
10297
+ source_pdf_path: string | null;
10298
+ status: string;
10299
+ technician_notes: string | null;
10300
+ technician_notes_raw: string | null;
10301
+ technician_task_description: string | null;
10302
+ updated_at: string;
10303
+ version: number;
10304
+ work_address: string | null;
10305
+ };
10306
+ Insert: {
10307
+ assigned_user_id?: string | null;
10308
+ budget_mandate_cents?: number;
10309
+ complaint_description?: string | null;
10310
+ created_at?: string;
10311
+ created_by?: string | null;
10312
+ customer_id?: string | null;
10313
+ externe_referentie?: string | null;
10314
+ first_time_fix?: boolean | null;
10315
+ id?: string;
10316
+ internal_notes?: string | null;
10317
+ parent_werkbon_id?: string | null;
10318
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
10319
+ project_number?: string | null;
10320
+ room_number?: string | null;
10321
+ scheduled_end_time?: string | null;
10322
+ scheduled_start_time?: string | null;
10323
+ sequence_number: number;
10324
+ source_pdf_path?: string | null;
10325
+ status?: string;
10326
+ technician_notes?: string | null;
10327
+ technician_notes_raw?: string | null;
10328
+ technician_task_description?: string | null;
10329
+ updated_at?: string;
10330
+ version?: number;
10331
+ work_address?: string | null;
10332
+ };
10333
+ Update: {
10334
+ assigned_user_id?: string | null;
10335
+ budget_mandate_cents?: number;
10336
+ complaint_description?: string | null;
10337
+ created_at?: string;
10338
+ created_by?: string | null;
10339
+ customer_id?: string | null;
10340
+ externe_referentie?: string | null;
10341
+ first_time_fix?: boolean | null;
10342
+ id?: string;
10343
+ internal_notes?: string | null;
10344
+ parent_werkbon_id?: string | null;
10345
+ parsed_payload?: import("../integrations/supabase/types").Json | null;
10346
+ project_number?: string | null;
10347
+ room_number?: string | null;
10348
+ scheduled_end_time?: string | null;
10349
+ scheduled_start_time?: string | null;
10350
+ sequence_number?: number;
10351
+ source_pdf_path?: string | null;
10352
+ status?: string;
10353
+ technician_notes?: string | null;
10354
+ technician_notes_raw?: string | null;
10355
+ technician_task_description?: string | null;
10356
+ updated_at?: string;
10357
+ version?: number;
10358
+ work_address?: string | null;
10359
+ };
10360
+ Relationships: [{
10361
+ foreignKeyName: "werkbonnen_customer_id_fkey";
10362
+ columns: ["customer_id"];
10363
+ isOneToOne: false;
10364
+ referencedRelation: "customers";
10365
+ referencedColumns: ["id"];
10366
+ }, {
10367
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
10368
+ columns: ["parent_werkbon_id"];
10369
+ isOneToOne: false;
10370
+ referencedRelation: "werkbonnen";
10371
+ referencedColumns: ["id"];
10372
+ }];
10373
+ };
9681
10374
  work_order_monteurs: {
9682
10375
  Row: {
9683
10376
  created_at: string;
@@ -9848,6 +10541,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9848
10541
  created_at: string | null;
9849
10542
  created_by: string | null;
9850
10543
  display_name: string | null;
10544
+ graph_subscription_expires_at: string | null;
10545
+ graph_subscription_id: string | null;
9851
10546
  has_access_token: boolean | null;
9852
10547
  has_client_id: boolean | null;
9853
10548
  has_client_secret: boolean | null;
@@ -9865,6 +10560,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9865
10560
  oauth_mode: string | null;
9866
10561
  provider: string | null;
9867
10562
  purpose_assignments: import("../integrations/supabase/types").Json | null;
10563
+ realtime_mode: string | null;
9868
10564
  scopes: string[] | null;
9869
10565
  smtp_host: string | null;
9870
10566
  smtp_port: number | null;
@@ -9879,6 +10575,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9879
10575
  created_at?: string | null;
9880
10576
  created_by?: string | null;
9881
10577
  display_name?: string | null;
10578
+ graph_subscription_expires_at?: string | null;
10579
+ graph_subscription_id?: string | null;
9882
10580
  has_access_token?: never;
9883
10581
  has_client_id?: never;
9884
10582
  has_client_secret?: never;
@@ -9896,6 +10594,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9896
10594
  oauth_mode?: string | null;
9897
10595
  provider?: string | null;
9898
10596
  purpose_assignments?: import("../integrations/supabase/types").Json | null;
10597
+ realtime_mode?: string | null;
9899
10598
  scopes?: string[] | null;
9900
10599
  smtp_host?: string | null;
9901
10600
  smtp_port?: number | null;
@@ -9910,6 +10609,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9910
10609
  created_at?: string | null;
9911
10610
  created_by?: string | null;
9912
10611
  display_name?: string | null;
10612
+ graph_subscription_expires_at?: string | null;
10613
+ graph_subscription_id?: string | null;
9913
10614
  has_access_token?: never;
9914
10615
  has_client_id?: never;
9915
10616
  has_client_secret?: never;
@@ -9927,6 +10628,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9927
10628
  oauth_mode?: string | null;
9928
10629
  provider?: string | null;
9929
10630
  purpose_assignments?: import("../integrations/supabase/types").Json | null;
10631
+ realtime_mode?: string | null;
9930
10632
  scopes?: string[] | null;
9931
10633
  smtp_host?: string | null;
9932
10634
  smtp_port?: number | null;
@@ -10470,6 +11172,33 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
10470
11172
  };
10471
11173
  Returns: import("../integrations/supabase/types").Json;
10472
11174
  };
11175
+ claim_twinfield_push_batch: {
11176
+ Args: {
11177
+ _limit?: number;
11178
+ };
11179
+ Returns: {
11180
+ action: string;
11181
+ attempts: number;
11182
+ connection_id: string;
11183
+ created_at: string;
11184
+ customer_id: string | null;
11185
+ external_id: string | null;
11186
+ id: string;
11187
+ idempotency_key: string;
11188
+ last_error: string | null;
11189
+ next_attempt_at: string;
11190
+ office_code: string | null;
11191
+ payload: import("../integrations/supabase/types").Json;
11192
+ status: string;
11193
+ updated_at: string;
11194
+ }[];
11195
+ SetofOptions: {
11196
+ from: "*";
11197
+ to: "twinfield_push_queue";
11198
+ isOneToOne: false;
11199
+ isSetofReturn: true;
11200
+ };
11201
+ };
10473
11202
  cleanup_old_bookings: {
10474
11203
  Args: never;
10475
11204
  Returns: undefined;
@@ -10566,6 +11295,16 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
10566
11295
  status: string;
10567
11296
  }[];
10568
11297
  };
11298
+ email_auth_upsert_connection: {
11299
+ Args: {
11300
+ _account_email: string;
11301
+ _created_by: string;
11302
+ _is_active: boolean;
11303
+ _provider: string;
11304
+ _status: string;
11305
+ };
11306
+ Returns: string;
11307
+ };
10569
11308
  enqueue_cart_replan_if_unlocked: {
10570
11309
  Args: {
10571
11310
  p_order_id: string;
@@ -10838,6 +11577,10 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
10838
11577
  };
10839
11578
  Returns: boolean;
10840
11579
  };
11580
+ has_twinfield_link: {
11581
+ Args: never;
11582
+ Returns: boolean;
11583
+ };
10841
11584
  is_authenticated: {
10842
11585
  Args: never;
10843
11586
  Returns: boolean;
@@ -10893,6 +11636,10 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
10893
11636
  };
10894
11637
  Returns: string;
10895
11638
  };
11639
+ next_twinfield_code: {
11640
+ Args: never;
11641
+ Returns: string;
11642
+ };
10896
11643
  next_work_order_number: {
10897
11644
  Args: {
10898
11645
  p_parent_work_order_id?: string;
@@ -11007,6 +11754,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
11007
11754
  };
11008
11755
  Returns: number;
11009
11756
  };
11757
+ reorder_customer_price_groups: {
11758
+ Args: {
11759
+ _ids: string[];
11760
+ };
11761
+ Returns: undefined;
11762
+ };
11010
11763
  reset_floriday_sync_cursor: {
11011
11764
  Args: {
11012
11765
  p_connection_id: string;
@@ -11020,6 +11773,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
11020
11773
  };
11021
11774
  Returns: string;
11022
11775
  };
11776
+ retry_twinfield_push: {
11777
+ Args: {
11778
+ _customer_id: string;
11779
+ };
11780
+ Returns: number;
11781
+ };
11023
11782
  schedule_floriday_additional_services_sync: {
11024
11783
  Args: {
11025
11784
  p_apikey: string;