@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
@@ -241,6 +241,237 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
241
241
  };
242
242
  Relationships: [];
243
243
  };
244
+ ai_admin_credentials: {
245
+ Row: {
246
+ active: boolean;
247
+ admin_key: string;
248
+ created_at: string;
249
+ id: string;
250
+ label: string;
251
+ provider_id: string;
252
+ updated_at: string;
253
+ };
254
+ Insert: {
255
+ active?: boolean;
256
+ admin_key: string;
257
+ created_at?: string;
258
+ id?: string;
259
+ label: string;
260
+ provider_id: string;
261
+ updated_at?: string;
262
+ };
263
+ Update: {
264
+ active?: boolean;
265
+ admin_key?: string;
266
+ created_at?: string;
267
+ id?: string;
268
+ label?: string;
269
+ provider_id?: string;
270
+ updated_at?: string;
271
+ };
272
+ Relationships: [{
273
+ foreignKeyName: "ai_admin_credentials_provider_id_fkey";
274
+ columns: ["provider_id"];
275
+ isOneToOne: true;
276
+ referencedRelation: "ai_providers";
277
+ referencedColumns: ["id"];
278
+ }];
279
+ };
280
+ ai_credentials: {
281
+ Row: {
282
+ active: boolean;
283
+ api_key: string;
284
+ created_at: string;
285
+ id: string;
286
+ label: string;
287
+ provider_id: string;
288
+ updated_at: string;
289
+ };
290
+ Insert: {
291
+ active?: boolean;
292
+ api_key: string;
293
+ created_at?: string;
294
+ id?: string;
295
+ label: string;
296
+ provider_id: string;
297
+ updated_at?: string;
298
+ };
299
+ Update: {
300
+ active?: boolean;
301
+ api_key?: string;
302
+ created_at?: string;
303
+ id?: string;
304
+ label?: string;
305
+ provider_id?: string;
306
+ updated_at?: string;
307
+ };
308
+ Relationships: [{
309
+ foreignKeyName: "ai_credentials_provider_id_fkey";
310
+ columns: ["provider_id"];
311
+ isOneToOne: false;
312
+ referencedRelation: "ai_providers";
313
+ referencedColumns: ["id"];
314
+ }];
315
+ };
316
+ ai_model_pricing: {
317
+ Row: {
318
+ created_at: string;
319
+ currency: string;
320
+ fetched_at: string;
321
+ id: string;
322
+ input_per_mtok: number | null;
323
+ model_slug: string;
324
+ output_per_mtok: number | null;
325
+ provider_slug: string;
326
+ source: string;
327
+ updated_at: string;
328
+ };
329
+ Insert: {
330
+ created_at?: string;
331
+ currency?: string;
332
+ fetched_at?: string;
333
+ id?: string;
334
+ input_per_mtok?: number | null;
335
+ model_slug: string;
336
+ output_per_mtok?: number | null;
337
+ provider_slug: string;
338
+ source?: string;
339
+ updated_at?: string;
340
+ };
341
+ Update: {
342
+ created_at?: string;
343
+ currency?: string;
344
+ fetched_at?: string;
345
+ id?: string;
346
+ input_per_mtok?: number | null;
347
+ model_slug?: string;
348
+ output_per_mtok?: number | null;
349
+ provider_slug?: string;
350
+ source?: string;
351
+ updated_at?: string;
352
+ };
353
+ Relationships: [];
354
+ };
355
+ ai_models: {
356
+ Row: {
357
+ active: boolean;
358
+ context_window: number | null;
359
+ created_at: string;
360
+ display_name: string;
361
+ id: string;
362
+ is_default: boolean;
363
+ modality: string;
364
+ provider_id: string;
365
+ slug: string;
366
+ updated_at: string;
367
+ };
368
+ Insert: {
369
+ active?: boolean;
370
+ context_window?: number | null;
371
+ created_at?: string;
372
+ display_name: string;
373
+ id?: string;
374
+ is_default?: boolean;
375
+ modality?: string;
376
+ provider_id: string;
377
+ slug: string;
378
+ updated_at?: string;
379
+ };
380
+ Update: {
381
+ active?: boolean;
382
+ context_window?: number | null;
383
+ created_at?: string;
384
+ display_name?: string;
385
+ id?: string;
386
+ is_default?: boolean;
387
+ modality?: string;
388
+ provider_id?: string;
389
+ slug?: string;
390
+ updated_at?: string;
391
+ };
392
+ Relationships: [{
393
+ foreignKeyName: "ai_models_provider_id_fkey";
394
+ columns: ["provider_id"];
395
+ isOneToOne: false;
396
+ referencedRelation: "ai_providers";
397
+ referencedColumns: ["id"];
398
+ }];
399
+ };
400
+ ai_module_bindings: {
401
+ Row: {
402
+ consumer_module_id: string;
403
+ created_at: string;
404
+ credential_id: string;
405
+ id: string;
406
+ model_id: string;
407
+ notes: string | null;
408
+ updated_at: string;
409
+ };
410
+ Insert: {
411
+ consumer_module_id: string;
412
+ created_at?: string;
413
+ credential_id: string;
414
+ id?: string;
415
+ model_id: string;
416
+ notes?: string | null;
417
+ updated_at?: string;
418
+ };
419
+ Update: {
420
+ consumer_module_id?: string;
421
+ created_at?: string;
422
+ credential_id?: string;
423
+ id?: string;
424
+ model_id?: string;
425
+ notes?: string | null;
426
+ updated_at?: string;
427
+ };
428
+ Relationships: [{
429
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
430
+ columns: ["credential_id"];
431
+ isOneToOne: false;
432
+ referencedRelation: "ai_credentials";
433
+ referencedColumns: ["id"];
434
+ }, {
435
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
436
+ columns: ["model_id"];
437
+ isOneToOne: false;
438
+ referencedRelation: "ai_models";
439
+ referencedColumns: ["id"];
440
+ }];
441
+ };
442
+ ai_providers: {
443
+ Row: {
444
+ active: boolean;
445
+ auth_type: string;
446
+ base_url: string | null;
447
+ created_at: string;
448
+ id: string;
449
+ name: string;
450
+ slug: string;
451
+ updated_at: string;
452
+ };
453
+ Insert: {
454
+ active?: boolean;
455
+ auth_type?: string;
456
+ base_url?: string | null;
457
+ created_at?: string;
458
+ id?: string;
459
+ name: string;
460
+ slug: string;
461
+ updated_at?: string;
462
+ };
463
+ Update: {
464
+ active?: boolean;
465
+ auth_type?: string;
466
+ base_url?: string | null;
467
+ created_at?: string;
468
+ id?: string;
469
+ name?: string;
470
+ slug?: string;
471
+ updated_at?: string;
472
+ };
473
+ Relationships: [];
474
+ };
244
475
  app_settings: {
245
476
  Row: {
246
477
  created_at: string;
@@ -898,6 +1129,69 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
898
1129
  referencedColumns: ["id"];
899
1130
  }];
900
1131
  };
1132
+ catalog_articles_cache: {
1133
+ Row: {
1134
+ created_at: string;
1135
+ default_price: number;
1136
+ default_vat_rate_ref: string | null;
1137
+ external_ref: string;
1138
+ id: string;
1139
+ name: string;
1140
+ updated_at: string;
1141
+ user_id: string;
1142
+ };
1143
+ Insert: {
1144
+ created_at?: string;
1145
+ default_price?: number;
1146
+ default_vat_rate_ref?: string | null;
1147
+ external_ref: string;
1148
+ id?: string;
1149
+ name: string;
1150
+ updated_at?: string;
1151
+ user_id: string;
1152
+ };
1153
+ Update: {
1154
+ created_at?: string;
1155
+ default_price?: number;
1156
+ default_vat_rate_ref?: string | null;
1157
+ external_ref?: string;
1158
+ id?: string;
1159
+ name?: string;
1160
+ updated_at?: string;
1161
+ user_id?: string;
1162
+ };
1163
+ Relationships: [];
1164
+ };
1165
+ catalog_vat_rates_cache: {
1166
+ Row: {
1167
+ created_at: string;
1168
+ external_ref: string;
1169
+ id: string;
1170
+ label: string;
1171
+ percentage: number;
1172
+ updated_at: string;
1173
+ user_id: string;
1174
+ };
1175
+ Insert: {
1176
+ created_at?: string;
1177
+ external_ref: string;
1178
+ id?: string;
1179
+ label: string;
1180
+ percentage?: number;
1181
+ updated_at?: string;
1182
+ user_id: string;
1183
+ };
1184
+ Update: {
1185
+ created_at?: string;
1186
+ external_ref?: string;
1187
+ id?: string;
1188
+ label?: string;
1189
+ percentage?: number;
1190
+ updated_at?: string;
1191
+ user_id?: string;
1192
+ };
1193
+ Relationships: [];
1194
+ };
901
1195
  collections: {
902
1196
  Row: {
903
1197
  created_at: string;
@@ -1147,6 +1441,105 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1147
1441
  };
1148
1442
  Relationships: [];
1149
1443
  };
1444
+ customer_price_group_members: {
1445
+ Row: {
1446
+ created_at: string;
1447
+ customer_key: string;
1448
+ id: string;
1449
+ owner_id: string;
1450
+ price_group_id: string;
1451
+ };
1452
+ Insert: {
1453
+ created_at?: string;
1454
+ customer_key: string;
1455
+ id?: string;
1456
+ owner_id?: string;
1457
+ price_group_id: string;
1458
+ };
1459
+ Update: {
1460
+ created_at?: string;
1461
+ customer_key?: string;
1462
+ id?: string;
1463
+ owner_id?: string;
1464
+ price_group_id?: string;
1465
+ };
1466
+ Relationships: [{
1467
+ foreignKeyName: "customer_price_group_members_price_group_id_fkey";
1468
+ columns: ["price_group_id"];
1469
+ isOneToOne: false;
1470
+ referencedRelation: "customer_price_groups";
1471
+ referencedColumns: ["id"];
1472
+ }];
1473
+ };
1474
+ customer_price_groups: {
1475
+ Row: {
1476
+ calc_type: string | null;
1477
+ calc_value: number | null;
1478
+ calc_value_type: string | null;
1479
+ created_at: string;
1480
+ currency: string;
1481
+ distribute_over: string | null;
1482
+ group_type: string;
1483
+ handling_fee: number | null;
1484
+ id: string;
1485
+ include_stickers: boolean;
1486
+ is_active: boolean;
1487
+ name: string;
1488
+ owner_id: string;
1489
+ price_scope: string;
1490
+ pricing_mode: string;
1491
+ rounding: string;
1492
+ rounding_step: number;
1493
+ sort_order: number;
1494
+ unit: string;
1495
+ updated_at: string;
1496
+ };
1497
+ Insert: {
1498
+ calc_type?: string | null;
1499
+ calc_value?: number | null;
1500
+ calc_value_type?: string | null;
1501
+ created_at?: string;
1502
+ currency?: string;
1503
+ distribute_over?: string | null;
1504
+ group_type?: string;
1505
+ handling_fee?: number | null;
1506
+ id?: string;
1507
+ include_stickers?: boolean;
1508
+ is_active?: boolean;
1509
+ name: string;
1510
+ owner_id?: string;
1511
+ price_scope?: string;
1512
+ pricing_mode?: string;
1513
+ rounding?: string;
1514
+ rounding_step?: number;
1515
+ sort_order?: number;
1516
+ unit?: string;
1517
+ updated_at?: string;
1518
+ };
1519
+ Update: {
1520
+ calc_type?: string | null;
1521
+ calc_value?: number | null;
1522
+ calc_value_type?: string | null;
1523
+ created_at?: string;
1524
+ currency?: string;
1525
+ distribute_over?: string | null;
1526
+ group_type?: string;
1527
+ handling_fee?: number | null;
1528
+ id?: string;
1529
+ include_stickers?: boolean;
1530
+ is_active?: boolean;
1531
+ name?: string;
1532
+ owner_id?: string;
1533
+ price_scope?: string;
1534
+ pricing_mode?: string;
1535
+ rounding?: string;
1536
+ rounding_step?: number;
1537
+ sort_order?: number;
1538
+ unit?: string;
1539
+ updated_at?: string;
1540
+ };
1541
+ Relationships: [];
1542
+ };
1150
1543
  customer_selected_assortment: {
1151
1544
  Row: {
1152
1545
  article_number: string | null;
@@ -1300,6 +1693,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1300
1693
  sync_error: string | null;
1301
1694
  sync_status: string;
1302
1695
  trade_forms: string[];
1696
+ twinfield_code: string | null;
1697
+ twinfield_last_hash: string | null;
1698
+ twinfield_sync_error: string | null;
1699
+ twinfield_synced_at: string | null;
1303
1700
  updated_at: string;
1304
1701
  vat_display: string | null;
1305
1702
  vat_number: string | null;
@@ -1367,6 +1764,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1367
1764
  sync_error?: string | null;
1368
1765
  sync_status?: string;
1369
1766
  trade_forms?: string[];
1767
+ twinfield_code?: string | null;
1768
+ twinfield_last_hash?: string | null;
1769
+ twinfield_sync_error?: string | null;
1770
+ twinfield_synced_at?: string | null;
1370
1771
  updated_at?: string;
1371
1772
  vat_display?: string | null;
1372
1773
  vat_number?: string | null;
@@ -1434,6 +1835,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1434
1835
  sync_error?: string | null;
1435
1836
  sync_status?: string;
1436
1837
  trade_forms?: string[];
1838
+ twinfield_code?: string | null;
1839
+ twinfield_last_hash?: string | null;
1840
+ twinfield_sync_error?: string | null;
1841
+ twinfield_synced_at?: string | null;
1437
1842
  updated_at?: string;
1438
1843
  vat_display?: string | null;
1439
1844
  vat_number?: string | null;
@@ -8416,6 +8821,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8416
8821
  };
8417
8822
  Relationships: [];
8418
8823
  };
8824
+ technician_rates: {
8825
+ Row: {
8826
+ created_at: string;
8827
+ hourly_rate_cents: number;
8828
+ updated_at: string;
8829
+ user_id: string;
8830
+ };
8831
+ Insert: {
8832
+ created_at?: string;
8833
+ hourly_rate_cents?: number;
8834
+ updated_at?: string;
8835
+ user_id: string;
8836
+ };
8837
+ Update: {
8838
+ created_at?: string;
8839
+ hourly_rate_cents?: number;
8840
+ updated_at?: string;
8841
+ user_id?: string;
8842
+ };
8843
+ Relationships: [];
8844
+ };
8419
8845
  tenants: {
8420
8846
  Row: {
8421
8847
  created_at: string;
@@ -8885,6 +9311,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8885
9311
  country: string | null;
8886
9312
  created_at: string;
8887
9313
  email: string | null;
9314
+ external_group_key: string | null;
8888
9315
  id: string;
8889
9316
  last_synced_at: string | null;
8890
9317
  name: string;
@@ -8903,6 +9330,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8903
9330
  country?: string | null;
8904
9331
  created_at?: string;
8905
9332
  email?: string | null;
9333
+ external_group_key?: string | null;
8906
9334
  id?: string;
8907
9335
  last_synced_at?: string | null;
8908
9336
  name: string;
@@ -8921,6 +9349,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8921
9349
  country?: string | null;
8922
9350
  created_at?: string;
8923
9351
  email?: string | null;
9352
+ external_group_key?: string | null;
8924
9353
  id?: string;
8925
9354
  last_synced_at?: string | null;
8926
9355
  name?: string;
@@ -9085,6 +9514,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9085
9514
  twinfield_invoice_settings: {
9086
9515
  Row: {
9087
9516
  created_at: string;
9517
+ debtor_gl_account: string;
9518
+ default_credit_invoice_type: string | null;
9088
9519
  default_gl_account: string;
9089
9520
  default_invoice_type: string;
9090
9521
  default_payment_term_days: number;
@@ -9093,11 +9524,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9093
9524
  invoice_enabled_fo: boolean;
9094
9525
  invoice_enabled_ho: boolean;
9095
9526
  invoice_enabled_mo: boolean;
9527
+ payment_gl_account: string;
9528
+ payment_journal_code: string;
9096
9529
  updated_at: string;
9097
9530
  user_id: string;
9098
9531
  };
9099
9532
  Insert: {
9100
9533
  created_at?: string;
9534
+ debtor_gl_account?: string;
9535
+ default_credit_invoice_type?: string | null;
9101
9536
  default_gl_account?: string;
9102
9537
  default_invoice_type?: string;
9103
9538
  default_payment_term_days?: number;
@@ -9106,11 +9541,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9106
9541
  invoice_enabled_fo?: boolean;
9107
9542
  invoice_enabled_ho?: boolean;
9108
9543
  invoice_enabled_mo?: boolean;
9544
+ payment_gl_account?: string;
9545
+ payment_journal_code?: string;
9109
9546
  updated_at?: string;
9110
9547
  user_id: string;
9111
9548
  };
9112
9549
  Update: {
9113
9550
  created_at?: string;
9551
+ debtor_gl_account?: string;
9552
+ default_credit_invoice_type?: string | null;
9114
9553
  default_gl_account?: string;
9115
9554
  default_invoice_type?: string;
9116
9555
  default_payment_term_days?: number;
@@ -9119,6 +9558,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9119
9558
  invoice_enabled_fo?: boolean;
9120
9559
  invoice_enabled_ho?: boolean;
9121
9560
  invoice_enabled_mo?: boolean;
9561
+ payment_gl_account?: string;
9562
+ payment_journal_code?: string;
9122
9563
  updated_at?: string;
9123
9564
  user_id?: string;
9124
9565
  };
@@ -9339,43 +9780,49 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9339
9780
  };
9340
9781
  twinfield_push_queue: {
9341
9782
  Row: {
9783
+ action: string;
9342
9784
  attempts: number;
9343
9785
  connection_id: string;
9344
9786
  created_at: string;
9787
+ customer_id: string | null;
9345
9788
  external_id: string | null;
9346
9789
  id: string;
9347
9790
  idempotency_key: string;
9348
9791
  last_error: string | null;
9349
9792
  next_attempt_at: string;
9350
- office_code: string;
9793
+ office_code: string | null;
9351
9794
  payload: import("./types").Json;
9352
9795
  status: string;
9353
9796
  updated_at: string;
9354
9797
  };
9355
9798
  Insert: {
9799
+ action?: string;
9356
9800
  attempts?: number;
9357
9801
  connection_id: string;
9358
9802
  created_at?: string;
9803
+ customer_id?: string | null;
9359
9804
  external_id?: string | null;
9360
9805
  id?: string;
9361
9806
  idempotency_key: string;
9362
9807
  last_error?: string | null;
9363
9808
  next_attempt_at?: string;
9364
- office_code: string;
9809
+ office_code?: string | null;
9365
9810
  payload: import("./types").Json;
9366
9811
  status?: string;
9367
9812
  updated_at?: string;
9368
9813
  };
9369
9814
  Update: {
9815
+ action?: string;
9370
9816
  attempts?: number;
9371
9817
  connection_id?: string;
9372
9818
  created_at?: string;
9819
+ customer_id?: string | null;
9373
9820
  external_id?: string | null;
9374
9821
  id?: string;
9375
9822
  idempotency_key?: string;
9376
9823
  last_error?: string | null;
9377
9824
  next_attempt_at?: string;
9378
- office_code?: string;
9825
+ office_code?: string | null;
9379
9826
  payload?: import("./types").Json;
9380
9827
  status?: string;
9381
9828
  updated_at?: string;
@@ -9386,6 +9833,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9386
9833
  isOneToOne: false;
9387
9834
  referencedRelation: "twinfield_connections";
9388
9835
  referencedColumns: ["id"];
9836
+ }, {
9837
+ foreignKeyName: "twinfield_push_queue_customer_id_fkey";
9838
+ columns: ["customer_id"];
9839
+ isOneToOne: false;
9840
+ referencedRelation: "customers";
9841
+ referencedColumns: ["id"];
9389
9842
  }];
9390
9843
  };
9391
9844
  twinfield_request_metrics: {
@@ -9661,6 +10114,246 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9661
10114
  };
9662
10115
  Relationships: [];
9663
10116
  };
10117
+ werkbon_package_lines: {
10118
+ Row: {
10119
+ created_at: string;
10120
+ created_by: string | null;
10121
+ id: string;
10122
+ package_id: string;
10123
+ quantity: number;
10124
+ unit_price_cents_snapshot: number;
10125
+ werkbon_id: string;
10126
+ };
10127
+ Insert: {
10128
+ created_at?: string;
10129
+ created_by?: string | null;
10130
+ id?: string;
10131
+ package_id: string;
10132
+ quantity?: number;
10133
+ unit_price_cents_snapshot?: number;
10134
+ werkbon_id: string;
10135
+ };
10136
+ Update: {
10137
+ created_at?: string;
10138
+ created_by?: string | null;
10139
+ id?: string;
10140
+ package_id?: string;
10141
+ quantity?: number;
10142
+ unit_price_cents_snapshot?: number;
10143
+ werkbon_id?: string;
10144
+ };
10145
+ Relationships: [{
10146
+ foreignKeyName: "werkbon_package_lines_package_id_fkey";
10147
+ columns: ["package_id"];
10148
+ isOneToOne: false;
10149
+ referencedRelation: "werkbon_packages";
10150
+ referencedColumns: ["id"];
10151
+ }, {
10152
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
10153
+ columns: ["werkbon_id"];
10154
+ isOneToOne: false;
10155
+ referencedRelation: "werkbonnen";
10156
+ referencedColumns: ["id"];
10157
+ }];
10158
+ };
10159
+ werkbon_packages: {
10160
+ Row: {
10161
+ active: boolean;
10162
+ code: string;
10163
+ created_at: string;
10164
+ default_quantity: number;
10165
+ description: string | null;
10166
+ id: string;
10167
+ name: string;
10168
+ unit_price_cents: number;
10169
+ updated_at: string;
10170
+ };
10171
+ Insert: {
10172
+ active?: boolean;
10173
+ code: string;
10174
+ created_at?: string;
10175
+ default_quantity?: number;
10176
+ description?: string | null;
10177
+ id?: string;
10178
+ name: string;
10179
+ unit_price_cents?: number;
10180
+ updated_at?: string;
10181
+ };
10182
+ Update: {
10183
+ active?: boolean;
10184
+ code?: string;
10185
+ created_at?: string;
10186
+ default_quantity?: number;
10187
+ description?: string | null;
10188
+ id?: string;
10189
+ name?: string;
10190
+ unit_price_cents?: number;
10191
+ updated_at?: string;
10192
+ };
10193
+ Relationships: [];
10194
+ };
10195
+ werkbon_photos: {
10196
+ Row: {
10197
+ created_at: string;
10198
+ id: string;
10199
+ storage_path: string;
10200
+ user_id: string;
10201
+ werkbon_id: string;
10202
+ };
10203
+ Insert: {
10204
+ created_at?: string;
10205
+ id?: string;
10206
+ storage_path: string;
10207
+ user_id: string;
10208
+ werkbon_id: string;
10209
+ };
10210
+ Update: {
10211
+ created_at?: string;
10212
+ id?: string;
10213
+ storage_path?: string;
10214
+ user_id?: string;
10215
+ werkbon_id?: string;
10216
+ };
10217
+ Relationships: [{
10218
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
10219
+ columns: ["werkbon_id"];
10220
+ isOneToOne: false;
10221
+ referencedRelation: "werkbonnen";
10222
+ referencedColumns: ["id"];
10223
+ }];
10224
+ };
10225
+ werkbon_time_logs: {
10226
+ Row: {
10227
+ activity: string;
10228
+ created_at: string;
10229
+ ended_at: string | null;
10230
+ id: string;
10231
+ started_at: string;
10232
+ user_id: string;
10233
+ werkbon_id: string;
10234
+ };
10235
+ Insert: {
10236
+ activity: string;
10237
+ created_at?: string;
10238
+ ended_at?: string | null;
10239
+ id?: string;
10240
+ started_at?: string;
10241
+ user_id: string;
10242
+ werkbon_id: string;
10243
+ };
10244
+ Update: {
10245
+ activity?: string;
10246
+ created_at?: string;
10247
+ ended_at?: string | null;
10248
+ id?: string;
10249
+ started_at?: string;
10250
+ user_id?: string;
10251
+ werkbon_id?: string;
10252
+ };
10253
+ Relationships: [{
10254
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
10255
+ columns: ["werkbon_id"];
10256
+ isOneToOne: false;
10257
+ referencedRelation: "werkbonnen";
10258
+ referencedColumns: ["id"];
10259
+ }];
10260
+ };
10261
+ werkbonnen: {
10262
+ Row: {
10263
+ assigned_user_id: string | null;
10264
+ budget_mandate_cents: number;
10265
+ complaint_description: string | null;
10266
+ created_at: string;
10267
+ created_by: string | null;
10268
+ customer_id: string | null;
10269
+ externe_referentie: string | null;
10270
+ first_time_fix: boolean | null;
10271
+ id: string;
10272
+ internal_notes: string | null;
10273
+ parent_werkbon_id: string | null;
10274
+ parsed_payload: import("./types").Json | null;
10275
+ project_number: string | null;
10276
+ room_number: string | null;
10277
+ scheduled_end_time: string | null;
10278
+ scheduled_start_time: string | null;
10279
+ sequence_number: number;
10280
+ source_pdf_path: string | null;
10281
+ status: string;
10282
+ technician_notes: string | null;
10283
+ technician_notes_raw: string | null;
10284
+ technician_task_description: string | null;
10285
+ updated_at: string;
10286
+ version: number;
10287
+ work_address: string | null;
10288
+ };
10289
+ Insert: {
10290
+ assigned_user_id?: string | null;
10291
+ budget_mandate_cents?: number;
10292
+ complaint_description?: string | null;
10293
+ created_at?: string;
10294
+ created_by?: string | null;
10295
+ customer_id?: string | null;
10296
+ externe_referentie?: string | null;
10297
+ first_time_fix?: boolean | null;
10298
+ id?: string;
10299
+ internal_notes?: string | null;
10300
+ parent_werkbon_id?: string | null;
10301
+ parsed_payload?: import("./types").Json | null;
10302
+ project_number?: string | null;
10303
+ room_number?: string | null;
10304
+ scheduled_end_time?: string | null;
10305
+ scheduled_start_time?: string | null;
10306
+ sequence_number: number;
10307
+ source_pdf_path?: string | null;
10308
+ status?: string;
10309
+ technician_notes?: string | null;
10310
+ technician_notes_raw?: string | null;
10311
+ technician_task_description?: string | null;
10312
+ updated_at?: string;
10313
+ version?: number;
10314
+ work_address?: string | null;
10315
+ };
10316
+ Update: {
10317
+ assigned_user_id?: string | null;
10318
+ budget_mandate_cents?: number;
10319
+ complaint_description?: string | null;
10320
+ created_at?: string;
10321
+ created_by?: string | null;
10322
+ customer_id?: string | null;
10323
+ externe_referentie?: string | null;
10324
+ first_time_fix?: boolean | null;
10325
+ id?: string;
10326
+ internal_notes?: string | null;
10327
+ parent_werkbon_id?: string | null;
10328
+ parsed_payload?: import("./types").Json | null;
10329
+ project_number?: string | null;
10330
+ room_number?: string | null;
10331
+ scheduled_end_time?: string | null;
10332
+ scheduled_start_time?: string | null;
10333
+ sequence_number?: number;
10334
+ source_pdf_path?: string | null;
10335
+ status?: string;
10336
+ technician_notes?: string | null;
10337
+ technician_notes_raw?: string | null;
10338
+ technician_task_description?: string | null;
10339
+ updated_at?: string;
10340
+ version?: number;
10341
+ work_address?: string | null;
10342
+ };
10343
+ Relationships: [{
10344
+ foreignKeyName: "werkbonnen_customer_id_fkey";
10345
+ columns: ["customer_id"];
10346
+ isOneToOne: false;
10347
+ referencedRelation: "customers";
10348
+ referencedColumns: ["id"];
10349
+ }, {
10350
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
10351
+ columns: ["parent_werkbon_id"];
10352
+ isOneToOne: false;
10353
+ referencedRelation: "werkbonnen";
10354
+ referencedColumns: ["id"];
10355
+ }];
10356
+ };
9664
10357
  work_order_monteurs: {
9665
10358
  Row: {
9666
10359
  created_at: string;
@@ -9831,6 +10524,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9831
10524
  created_at: string | null;
9832
10525
  created_by: string | null;
9833
10526
  display_name: string | null;
10527
+ graph_subscription_expires_at: string | null;
10528
+ graph_subscription_id: string | null;
9834
10529
  has_access_token: boolean | null;
9835
10530
  has_client_id: boolean | null;
9836
10531
  has_client_secret: boolean | null;
@@ -9848,6 +10543,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9848
10543
  oauth_mode: string | null;
9849
10544
  provider: string | null;
9850
10545
  purpose_assignments: import("./types").Json | null;
10546
+ realtime_mode: string | null;
9851
10547
  scopes: string[] | null;
9852
10548
  smtp_host: string | null;
9853
10549
  smtp_port: number | null;
@@ -9862,6 +10558,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9862
10558
  created_at?: string | null;
9863
10559
  created_by?: string | null;
9864
10560
  display_name?: string | null;
10561
+ graph_subscription_expires_at?: string | null;
10562
+ graph_subscription_id?: string | null;
9865
10563
  has_access_token?: never;
9866
10564
  has_client_id?: never;
9867
10565
  has_client_secret?: never;
@@ -9879,6 +10577,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9879
10577
  oauth_mode?: string | null;
9880
10578
  provider?: string | null;
9881
10579
  purpose_assignments?: import("./types").Json | null;
10580
+ realtime_mode?: string | null;
9882
10581
  scopes?: string[] | null;
9883
10582
  smtp_host?: string | null;
9884
10583
  smtp_port?: number | null;
@@ -9893,6 +10592,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9893
10592
  created_at?: string | null;
9894
10593
  created_by?: string | null;
9895
10594
  display_name?: string | null;
10595
+ graph_subscription_expires_at?: string | null;
10596
+ graph_subscription_id?: string | null;
9896
10597
  has_access_token?: never;
9897
10598
  has_client_id?: never;
9898
10599
  has_client_secret?: never;
@@ -9910,6 +10611,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9910
10611
  oauth_mode?: string | null;
9911
10612
  provider?: string | null;
9912
10613
  purpose_assignments?: import("./types").Json | null;
10614
+ realtime_mode?: string | null;
9913
10615
  scopes?: string[] | null;
9914
10616
  smtp_host?: string | null;
9915
10617
  smtp_port?: number | null;
@@ -10453,6 +11155,33 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10453
11155
  };
10454
11156
  Returns: import("./types").Json;
10455
11157
  };
11158
+ claim_twinfield_push_batch: {
11159
+ Args: {
11160
+ _limit?: number;
11161
+ };
11162
+ Returns: {
11163
+ action: string;
11164
+ attempts: number;
11165
+ connection_id: string;
11166
+ created_at: string;
11167
+ customer_id: string | null;
11168
+ external_id: string | null;
11169
+ id: string;
11170
+ idempotency_key: string;
11171
+ last_error: string | null;
11172
+ next_attempt_at: string;
11173
+ office_code: string | null;
11174
+ payload: import("./types").Json;
11175
+ status: string;
11176
+ updated_at: string;
11177
+ }[];
11178
+ SetofOptions: {
11179
+ from: "*";
11180
+ to: "twinfield_push_queue";
11181
+ isOneToOne: false;
11182
+ isSetofReturn: true;
11183
+ };
11184
+ };
10456
11185
  cleanup_old_bookings: {
10457
11186
  Args: never;
10458
11187
  Returns: undefined;
@@ -10549,6 +11278,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10549
11278
  status: string;
10550
11279
  }[];
10551
11280
  };
11281
+ email_auth_upsert_connection: {
11282
+ Args: {
11283
+ _account_email: string;
11284
+ _created_by: string;
11285
+ _is_active: boolean;
11286
+ _provider: string;
11287
+ _status: string;
11288
+ };
11289
+ Returns: string;
11290
+ };
10552
11291
  enqueue_cart_replan_if_unlocked: {
10553
11292
  Args: {
10554
11293
  p_order_id: string;
@@ -10821,6 +11560,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10821
11560
  };
10822
11561
  Returns: boolean;
10823
11562
  };
11563
+ has_twinfield_link: {
11564
+ Args: never;
11565
+ Returns: boolean;
11566
+ };
10824
11567
  is_authenticated: {
10825
11568
  Args: never;
10826
11569
  Returns: boolean;
@@ -10876,6 +11619,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10876
11619
  };
10877
11620
  Returns: string;
10878
11621
  };
11622
+ next_twinfield_code: {
11623
+ Args: never;
11624
+ Returns: string;
11625
+ };
10879
11626
  next_work_order_number: {
10880
11627
  Args: {
10881
11628
  p_parent_work_order_id?: string;
@@ -10990,6 +11737,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10990
11737
  };
10991
11738
  Returns: number;
10992
11739
  };
11740
+ reorder_customer_price_groups: {
11741
+ Args: {
11742
+ _ids: string[];
11743
+ };
11744
+ Returns: undefined;
11745
+ };
10993
11746
  reset_floriday_sync_cursor: {
10994
11747
  Args: {
10995
11748
  p_connection_id: string;
@@ -11003,6 +11756,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11003
11756
  };
11004
11757
  Returns: string;
11005
11758
  };
11759
+ retry_twinfield_push: {
11760
+ Args: {
11761
+ _customer_id: string;
11762
+ };
11763
+ Returns: number;
11764
+ };
11006
11765
  schedule_floriday_additional_services_sync: {
11007
11766
  Args: {
11008
11767
  p_apikey: string;