@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.
- package/dist-lib/assets/floriday-logo.png.asset.json +11 -0
- package/dist-lib/components/CustomerAvatar.js +1 -1
- package/dist-lib/components/klanten/BackLink.d.ts +12 -0
- package/dist-lib/components/klanten/BackLink.d.ts.map +1 -0
- package/dist-lib/components/klanten/BackLink.js +12 -0
- package/dist-lib/components/klanten/FloridayAssortmentTab.d.ts +4 -0
- package/dist-lib/components/klanten/FloridayAssortmentTab.d.ts.map +1 -0
- package/dist-lib/components/klanten/FloridayAssortmentTab.js +80 -0
- package/dist-lib/components/klanten/FloridayDeeplinkButton.d.ts +8 -0
- package/dist-lib/components/klanten/FloridayDeeplinkButton.d.ts.map +1 -0
- package/dist-lib/components/klanten/FloridayDeeplinkButton.js +9 -0
- package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/GroupedKlantDetail.js +19 -5
- package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -1
- package/dist-lib/components/klanten/ImportKlanten.js +46 -13
- package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantDetail.js +9 -3
- package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantenOverzicht.js +6 -3
- package/dist-lib/components/klanten/NetwerkPagina.d.ts.map +1 -1
- package/dist-lib/components/klanten/NetwerkPagina.js +42 -10
- package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
- package/dist-lib/components/klanten/NieuweKlant.js +23 -8
- package/dist-lib/components/klanten/PriceGroupBadges.d.ts +7 -0
- package/dist-lib/components/klanten/PriceGroupBadges.d.ts.map +1 -0
- package/dist-lib/components/klanten/PriceGroupBadges.js +13 -0
- package/dist-lib/components/klanten/SyncStatusChip.d.ts +4 -0
- package/dist-lib/components/klanten/SyncStatusChip.d.ts.map +1 -0
- package/dist-lib/components/klanten/SyncStatusChip.js +49 -0
- package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.d.ts +8 -0
- package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.d.ts.map +1 -0
- package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.js +75 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.d.ts +4 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.d.ts.map +1 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.js +269 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.d.ts +2 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.d.ts.map +1 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.js +133 -0
- package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.d.ts +8 -0
- package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.d.ts.map +1 -0
- package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.js +18 -0
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +6 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +762 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +762 -3
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.js +4 -3
- package/dist-lib/integrations/supabase/client.server.d.ts +762 -3
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +789 -8
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/accounting/twinfield/client.server.d.ts +21 -0
- package/dist-lib/lib/accounting/twinfield/client.server.d.ts.map +1 -0
- package/dist-lib/lib/accounting/twinfield/client.server.js +171 -0
- package/dist-lib/lib/accounting/twinfield/mapping.d.ts +46 -0
- package/dist-lib/lib/accounting/twinfield/mapping.d.ts.map +1 -0
- package/dist-lib/lib/accounting/twinfield/mapping.js +109 -0
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +36318 -0
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -0
- package/dist-lib/lib/accounting/twinfield/worker.functions.js +48 -0
- package/dist-lib/lib/accounting/twinfield/worker.server.d.ts +12 -0
- package/dist-lib/lib/accounting/twinfield/worker.server.d.ts.map +1 -0
- package/dist-lib/lib/accounting/twinfield/worker.server.js +124 -0
- package/dist-lib/lib/accounting.functions.d.ts +2286 -9
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +762 -3
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-schemas.d.ts +48 -46
- package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
- package/dist-lib/lib/customer-schemas.js +46 -3
- package/dist-lib/lib/customers.functions.d.ts +18288 -129
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.js +146 -10
- package/dist-lib/lib/delivery-locations.functions.d.ts +3048 -12
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +3048 -12
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-assortment.functions.d.ts +12127 -0
- package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-assortment.functions.js +213 -0
- package/dist-lib/lib/floriday-discounts.functions.d.ts +1800 -282
- package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-trade-items.functions.d.ts +12111 -0
- package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-trade-items.functions.js +107 -0
- package/dist-lib/lib/local-discounts.functions.d.ts +5336 -23
- package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/overdue-invoices.functions.d.ts +762 -3
- package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups-local.functions.d.ts +84841 -0
- package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -0
- package/dist-lib/lib/price-groups-local.functions.js +148 -0
- package/dist-lib/lib/price-groups.functions.d.ts +12120 -0
- package/dist-lib/lib/price-groups.functions.d.ts.map +1 -0
- package/dist-lib/lib/price-groups.functions.js +115 -0
- package/dist-lib/lib/pricing.d.ts +24 -0
- package/dist-lib/lib/pricing.d.ts.map +1 -0
- package/dist-lib/lib/pricing.js +60 -0
- package/package.json +6 -3
|
@@ -294,6 +294,237 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
294
294
|
};
|
|
295
295
|
Relationships: [];
|
|
296
296
|
};
|
|
297
|
+
ai_admin_credentials: {
|
|
298
|
+
Row: {
|
|
299
|
+
active: boolean;
|
|
300
|
+
admin_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
|
+
admin_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
|
+
admin_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_admin_credentials_provider_id_fkey";
|
|
327
|
+
columns: ["provider_id"];
|
|
328
|
+
isOneToOne: true;
|
|
329
|
+
referencedRelation: "ai_providers";
|
|
330
|
+
referencedColumns: ["id"];
|
|
331
|
+
}];
|
|
332
|
+
};
|
|
333
|
+
ai_credentials: {
|
|
334
|
+
Row: {
|
|
335
|
+
active: boolean;
|
|
336
|
+
api_key: string;
|
|
337
|
+
created_at: string;
|
|
338
|
+
id: string;
|
|
339
|
+
label: string;
|
|
340
|
+
provider_id: string;
|
|
341
|
+
updated_at: string;
|
|
342
|
+
};
|
|
343
|
+
Insert: {
|
|
344
|
+
active?: boolean;
|
|
345
|
+
api_key: string;
|
|
346
|
+
created_at?: string;
|
|
347
|
+
id?: string;
|
|
348
|
+
label: string;
|
|
349
|
+
provider_id: string;
|
|
350
|
+
updated_at?: string;
|
|
351
|
+
};
|
|
352
|
+
Update: {
|
|
353
|
+
active?: boolean;
|
|
354
|
+
api_key?: string;
|
|
355
|
+
created_at?: string;
|
|
356
|
+
id?: string;
|
|
357
|
+
label?: string;
|
|
358
|
+
provider_id?: string;
|
|
359
|
+
updated_at?: string;
|
|
360
|
+
};
|
|
361
|
+
Relationships: [{
|
|
362
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
363
|
+
columns: ["provider_id"];
|
|
364
|
+
isOneToOne: false;
|
|
365
|
+
referencedRelation: "ai_providers";
|
|
366
|
+
referencedColumns: ["id"];
|
|
367
|
+
}];
|
|
368
|
+
};
|
|
369
|
+
ai_model_pricing: {
|
|
370
|
+
Row: {
|
|
371
|
+
created_at: string;
|
|
372
|
+
currency: string;
|
|
373
|
+
fetched_at: string;
|
|
374
|
+
id: string;
|
|
375
|
+
input_per_mtok: number | null;
|
|
376
|
+
model_slug: string;
|
|
377
|
+
output_per_mtok: number | null;
|
|
378
|
+
provider_slug: string;
|
|
379
|
+
source: string;
|
|
380
|
+
updated_at: string;
|
|
381
|
+
};
|
|
382
|
+
Insert: {
|
|
383
|
+
created_at?: string;
|
|
384
|
+
currency?: string;
|
|
385
|
+
fetched_at?: string;
|
|
386
|
+
id?: string;
|
|
387
|
+
input_per_mtok?: number | null;
|
|
388
|
+
model_slug: string;
|
|
389
|
+
output_per_mtok?: number | null;
|
|
390
|
+
provider_slug: string;
|
|
391
|
+
source?: string;
|
|
392
|
+
updated_at?: string;
|
|
393
|
+
};
|
|
394
|
+
Update: {
|
|
395
|
+
created_at?: string;
|
|
396
|
+
currency?: string;
|
|
397
|
+
fetched_at?: string;
|
|
398
|
+
id?: string;
|
|
399
|
+
input_per_mtok?: number | null;
|
|
400
|
+
model_slug?: string;
|
|
401
|
+
output_per_mtok?: number | null;
|
|
402
|
+
provider_slug?: string;
|
|
403
|
+
source?: string;
|
|
404
|
+
updated_at?: string;
|
|
405
|
+
};
|
|
406
|
+
Relationships: [];
|
|
407
|
+
};
|
|
408
|
+
ai_models: {
|
|
409
|
+
Row: {
|
|
410
|
+
active: boolean;
|
|
411
|
+
context_window: number | null;
|
|
412
|
+
created_at: string;
|
|
413
|
+
display_name: string;
|
|
414
|
+
id: string;
|
|
415
|
+
is_default: boolean;
|
|
416
|
+
modality: string;
|
|
417
|
+
provider_id: string;
|
|
418
|
+
slug: string;
|
|
419
|
+
updated_at: string;
|
|
420
|
+
};
|
|
421
|
+
Insert: {
|
|
422
|
+
active?: boolean;
|
|
423
|
+
context_window?: number | null;
|
|
424
|
+
created_at?: string;
|
|
425
|
+
display_name: string;
|
|
426
|
+
id?: string;
|
|
427
|
+
is_default?: boolean;
|
|
428
|
+
modality?: string;
|
|
429
|
+
provider_id: string;
|
|
430
|
+
slug: string;
|
|
431
|
+
updated_at?: string;
|
|
432
|
+
};
|
|
433
|
+
Update: {
|
|
434
|
+
active?: boolean;
|
|
435
|
+
context_window?: number | null;
|
|
436
|
+
created_at?: string;
|
|
437
|
+
display_name?: string;
|
|
438
|
+
id?: string;
|
|
439
|
+
is_default?: boolean;
|
|
440
|
+
modality?: string;
|
|
441
|
+
provider_id?: string;
|
|
442
|
+
slug?: string;
|
|
443
|
+
updated_at?: string;
|
|
444
|
+
};
|
|
445
|
+
Relationships: [{
|
|
446
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
447
|
+
columns: ["provider_id"];
|
|
448
|
+
isOneToOne: false;
|
|
449
|
+
referencedRelation: "ai_providers";
|
|
450
|
+
referencedColumns: ["id"];
|
|
451
|
+
}];
|
|
452
|
+
};
|
|
453
|
+
ai_module_bindings: {
|
|
454
|
+
Row: {
|
|
455
|
+
consumer_module_id: string;
|
|
456
|
+
created_at: string;
|
|
457
|
+
credential_id: string;
|
|
458
|
+
id: string;
|
|
459
|
+
model_id: string;
|
|
460
|
+
notes: string | null;
|
|
461
|
+
updated_at: string;
|
|
462
|
+
};
|
|
463
|
+
Insert: {
|
|
464
|
+
consumer_module_id: string;
|
|
465
|
+
created_at?: string;
|
|
466
|
+
credential_id: string;
|
|
467
|
+
id?: string;
|
|
468
|
+
model_id: string;
|
|
469
|
+
notes?: string | null;
|
|
470
|
+
updated_at?: string;
|
|
471
|
+
};
|
|
472
|
+
Update: {
|
|
473
|
+
consumer_module_id?: string;
|
|
474
|
+
created_at?: string;
|
|
475
|
+
credential_id?: string;
|
|
476
|
+
id?: string;
|
|
477
|
+
model_id?: string;
|
|
478
|
+
notes?: string | null;
|
|
479
|
+
updated_at?: string;
|
|
480
|
+
};
|
|
481
|
+
Relationships: [{
|
|
482
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
483
|
+
columns: ["credential_id"];
|
|
484
|
+
isOneToOne: false;
|
|
485
|
+
referencedRelation: "ai_credentials";
|
|
486
|
+
referencedColumns: ["id"];
|
|
487
|
+
}, {
|
|
488
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
489
|
+
columns: ["model_id"];
|
|
490
|
+
isOneToOne: false;
|
|
491
|
+
referencedRelation: "ai_models";
|
|
492
|
+
referencedColumns: ["id"];
|
|
493
|
+
}];
|
|
494
|
+
};
|
|
495
|
+
ai_providers: {
|
|
496
|
+
Row: {
|
|
497
|
+
active: boolean;
|
|
498
|
+
auth_type: string;
|
|
499
|
+
base_url: string | null;
|
|
500
|
+
created_at: string;
|
|
501
|
+
id: string;
|
|
502
|
+
name: string;
|
|
503
|
+
slug: string;
|
|
504
|
+
updated_at: string;
|
|
505
|
+
};
|
|
506
|
+
Insert: {
|
|
507
|
+
active?: boolean;
|
|
508
|
+
auth_type?: string;
|
|
509
|
+
base_url?: string | null;
|
|
510
|
+
created_at?: string;
|
|
511
|
+
id?: string;
|
|
512
|
+
name: string;
|
|
513
|
+
slug: string;
|
|
514
|
+
updated_at?: string;
|
|
515
|
+
};
|
|
516
|
+
Update: {
|
|
517
|
+
active?: boolean;
|
|
518
|
+
auth_type?: string;
|
|
519
|
+
base_url?: string | null;
|
|
520
|
+
created_at?: string;
|
|
521
|
+
id?: string;
|
|
522
|
+
name?: string;
|
|
523
|
+
slug?: string;
|
|
524
|
+
updated_at?: string;
|
|
525
|
+
};
|
|
526
|
+
Relationships: [];
|
|
527
|
+
};
|
|
297
528
|
app_settings: {
|
|
298
529
|
Row: {
|
|
299
530
|
created_at: string;
|
|
@@ -951,6 +1182,69 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
951
1182
|
referencedColumns: ["id"];
|
|
952
1183
|
}];
|
|
953
1184
|
};
|
|
1185
|
+
catalog_articles_cache: {
|
|
1186
|
+
Row: {
|
|
1187
|
+
created_at: string;
|
|
1188
|
+
default_price: number;
|
|
1189
|
+
default_vat_rate_ref: string | null;
|
|
1190
|
+
external_ref: string;
|
|
1191
|
+
id: string;
|
|
1192
|
+
name: string;
|
|
1193
|
+
updated_at: string;
|
|
1194
|
+
user_id: string;
|
|
1195
|
+
};
|
|
1196
|
+
Insert: {
|
|
1197
|
+
created_at?: string;
|
|
1198
|
+
default_price?: number;
|
|
1199
|
+
default_vat_rate_ref?: string | null;
|
|
1200
|
+
external_ref: string;
|
|
1201
|
+
id?: string;
|
|
1202
|
+
name: string;
|
|
1203
|
+
updated_at?: string;
|
|
1204
|
+
user_id: string;
|
|
1205
|
+
};
|
|
1206
|
+
Update: {
|
|
1207
|
+
created_at?: string;
|
|
1208
|
+
default_price?: number;
|
|
1209
|
+
default_vat_rate_ref?: string | null;
|
|
1210
|
+
external_ref?: string;
|
|
1211
|
+
id?: string;
|
|
1212
|
+
name?: string;
|
|
1213
|
+
updated_at?: string;
|
|
1214
|
+
user_id?: string;
|
|
1215
|
+
};
|
|
1216
|
+
Relationships: [];
|
|
1217
|
+
};
|
|
1218
|
+
catalog_vat_rates_cache: {
|
|
1219
|
+
Row: {
|
|
1220
|
+
created_at: string;
|
|
1221
|
+
external_ref: string;
|
|
1222
|
+
id: string;
|
|
1223
|
+
label: string;
|
|
1224
|
+
percentage: number;
|
|
1225
|
+
updated_at: string;
|
|
1226
|
+
user_id: string;
|
|
1227
|
+
};
|
|
1228
|
+
Insert: {
|
|
1229
|
+
created_at?: string;
|
|
1230
|
+
external_ref: string;
|
|
1231
|
+
id?: string;
|
|
1232
|
+
label: string;
|
|
1233
|
+
percentage?: number;
|
|
1234
|
+
updated_at?: string;
|
|
1235
|
+
user_id: string;
|
|
1236
|
+
};
|
|
1237
|
+
Update: {
|
|
1238
|
+
created_at?: string;
|
|
1239
|
+
external_ref?: string;
|
|
1240
|
+
id?: string;
|
|
1241
|
+
label?: string;
|
|
1242
|
+
percentage?: number;
|
|
1243
|
+
updated_at?: string;
|
|
1244
|
+
user_id?: string;
|
|
1245
|
+
};
|
|
1246
|
+
Relationships: [];
|
|
1247
|
+
};
|
|
954
1248
|
collections: {
|
|
955
1249
|
Row: {
|
|
956
1250
|
created_at: string;
|
|
@@ -1200,6 +1494,105 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1200
1494
|
};
|
|
1201
1495
|
Relationships: [];
|
|
1202
1496
|
};
|
|
1497
|
+
customer_price_group_members: {
|
|
1498
|
+
Row: {
|
|
1499
|
+
created_at: string;
|
|
1500
|
+
customer_key: string;
|
|
1501
|
+
id: string;
|
|
1502
|
+
owner_id: string;
|
|
1503
|
+
price_group_id: string;
|
|
1504
|
+
};
|
|
1505
|
+
Insert: {
|
|
1506
|
+
created_at?: string;
|
|
1507
|
+
customer_key: string;
|
|
1508
|
+
id?: string;
|
|
1509
|
+
owner_id?: string;
|
|
1510
|
+
price_group_id: string;
|
|
1511
|
+
};
|
|
1512
|
+
Update: {
|
|
1513
|
+
created_at?: string;
|
|
1514
|
+
customer_key?: string;
|
|
1515
|
+
id?: string;
|
|
1516
|
+
owner_id?: string;
|
|
1517
|
+
price_group_id?: string;
|
|
1518
|
+
};
|
|
1519
|
+
Relationships: [{
|
|
1520
|
+
foreignKeyName: "customer_price_group_members_price_group_id_fkey";
|
|
1521
|
+
columns: ["price_group_id"];
|
|
1522
|
+
isOneToOne: false;
|
|
1523
|
+
referencedRelation: "customer_price_groups";
|
|
1524
|
+
referencedColumns: ["id"];
|
|
1525
|
+
}];
|
|
1526
|
+
};
|
|
1527
|
+
customer_price_groups: {
|
|
1528
|
+
Row: {
|
|
1529
|
+
calc_type: string | null;
|
|
1530
|
+
calc_value: number | null;
|
|
1531
|
+
calc_value_type: string | null;
|
|
1532
|
+
created_at: string;
|
|
1533
|
+
currency: string;
|
|
1534
|
+
distribute_over: string | null;
|
|
1535
|
+
group_type: string;
|
|
1536
|
+
handling_fee: number | null;
|
|
1537
|
+
id: string;
|
|
1538
|
+
include_stickers: boolean;
|
|
1539
|
+
is_active: boolean;
|
|
1540
|
+
name: string;
|
|
1541
|
+
owner_id: string;
|
|
1542
|
+
price_scope: string;
|
|
1543
|
+
pricing_mode: string;
|
|
1544
|
+
rounding: string;
|
|
1545
|
+
rounding_step: number;
|
|
1546
|
+
sort_order: number;
|
|
1547
|
+
unit: string;
|
|
1548
|
+
updated_at: string;
|
|
1549
|
+
};
|
|
1550
|
+
Insert: {
|
|
1551
|
+
calc_type?: string | null;
|
|
1552
|
+
calc_value?: number | null;
|
|
1553
|
+
calc_value_type?: string | null;
|
|
1554
|
+
created_at?: string;
|
|
1555
|
+
currency?: string;
|
|
1556
|
+
distribute_over?: string | null;
|
|
1557
|
+
group_type?: string;
|
|
1558
|
+
handling_fee?: number | null;
|
|
1559
|
+
id?: string;
|
|
1560
|
+
include_stickers?: boolean;
|
|
1561
|
+
is_active?: boolean;
|
|
1562
|
+
name: string;
|
|
1563
|
+
owner_id?: string;
|
|
1564
|
+
price_scope?: string;
|
|
1565
|
+
pricing_mode?: string;
|
|
1566
|
+
rounding?: string;
|
|
1567
|
+
rounding_step?: number;
|
|
1568
|
+
sort_order?: number;
|
|
1569
|
+
unit?: string;
|
|
1570
|
+
updated_at?: string;
|
|
1571
|
+
};
|
|
1572
|
+
Update: {
|
|
1573
|
+
calc_type?: string | null;
|
|
1574
|
+
calc_value?: number | null;
|
|
1575
|
+
calc_value_type?: string | null;
|
|
1576
|
+
created_at?: string;
|
|
1577
|
+
currency?: string;
|
|
1578
|
+
distribute_over?: string | null;
|
|
1579
|
+
group_type?: string;
|
|
1580
|
+
handling_fee?: number | null;
|
|
1581
|
+
id?: string;
|
|
1582
|
+
include_stickers?: boolean;
|
|
1583
|
+
is_active?: boolean;
|
|
1584
|
+
name?: string;
|
|
1585
|
+
owner_id?: string;
|
|
1586
|
+
price_scope?: string;
|
|
1587
|
+
pricing_mode?: string;
|
|
1588
|
+
rounding?: string;
|
|
1589
|
+
rounding_step?: number;
|
|
1590
|
+
sort_order?: number;
|
|
1591
|
+
unit?: string;
|
|
1592
|
+
updated_at?: string;
|
|
1593
|
+
};
|
|
1594
|
+
Relationships: [];
|
|
1595
|
+
};
|
|
1203
1596
|
customer_selected_assortment: {
|
|
1204
1597
|
Row: {
|
|
1205
1598
|
article_number: string | null;
|
|
@@ -1353,6 +1746,10 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1353
1746
|
sync_error: string | null;
|
|
1354
1747
|
sync_status: string;
|
|
1355
1748
|
trade_forms: string[];
|
|
1749
|
+
twinfield_code: string | null;
|
|
1750
|
+
twinfield_last_hash: string | null;
|
|
1751
|
+
twinfield_sync_error: string | null;
|
|
1752
|
+
twinfield_synced_at: string | null;
|
|
1356
1753
|
updated_at: string;
|
|
1357
1754
|
vat_display: string | null;
|
|
1358
1755
|
vat_number: string | null;
|
|
@@ -1420,6 +1817,10 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1420
1817
|
sync_error?: string | null;
|
|
1421
1818
|
sync_status?: string;
|
|
1422
1819
|
trade_forms?: string[];
|
|
1820
|
+
twinfield_code?: string | null;
|
|
1821
|
+
twinfield_last_hash?: string | null;
|
|
1822
|
+
twinfield_sync_error?: string | null;
|
|
1823
|
+
twinfield_synced_at?: string | null;
|
|
1423
1824
|
updated_at?: string;
|
|
1424
1825
|
vat_display?: string | null;
|
|
1425
1826
|
vat_number?: string | null;
|
|
@@ -1487,6 +1888,10 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1487
1888
|
sync_error?: string | null;
|
|
1488
1889
|
sync_status?: string;
|
|
1489
1890
|
trade_forms?: string[];
|
|
1891
|
+
twinfield_code?: string | null;
|
|
1892
|
+
twinfield_last_hash?: string | null;
|
|
1893
|
+
twinfield_sync_error?: string | null;
|
|
1894
|
+
twinfield_synced_at?: string | null;
|
|
1490
1895
|
updated_at?: string;
|
|
1491
1896
|
vat_display?: string | null;
|
|
1492
1897
|
vat_number?: string | null;
|
|
@@ -8469,6 +8874,27 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
8469
8874
|
};
|
|
8470
8875
|
Relationships: [];
|
|
8471
8876
|
};
|
|
8877
|
+
technician_rates: {
|
|
8878
|
+
Row: {
|
|
8879
|
+
created_at: string;
|
|
8880
|
+
hourly_rate_cents: number;
|
|
8881
|
+
updated_at: string;
|
|
8882
|
+
user_id: string;
|
|
8883
|
+
};
|
|
8884
|
+
Insert: {
|
|
8885
|
+
created_at?: string;
|
|
8886
|
+
hourly_rate_cents?: number;
|
|
8887
|
+
updated_at?: string;
|
|
8888
|
+
user_id: string;
|
|
8889
|
+
};
|
|
8890
|
+
Update: {
|
|
8891
|
+
created_at?: string;
|
|
8892
|
+
hourly_rate_cents?: number;
|
|
8893
|
+
updated_at?: string;
|
|
8894
|
+
user_id?: string;
|
|
8895
|
+
};
|
|
8896
|
+
Relationships: [];
|
|
8897
|
+
};
|
|
8472
8898
|
tenants: {
|
|
8473
8899
|
Row: {
|
|
8474
8900
|
created_at: string;
|
|
@@ -8938,6 +9364,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
8938
9364
|
country: string | null;
|
|
8939
9365
|
created_at: string;
|
|
8940
9366
|
email: string | null;
|
|
9367
|
+
external_group_key: string | null;
|
|
8941
9368
|
id: string;
|
|
8942
9369
|
last_synced_at: string | null;
|
|
8943
9370
|
name: string;
|
|
@@ -8956,6 +9383,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
8956
9383
|
country?: string | null;
|
|
8957
9384
|
created_at?: string;
|
|
8958
9385
|
email?: string | null;
|
|
9386
|
+
external_group_key?: string | null;
|
|
8959
9387
|
id?: string;
|
|
8960
9388
|
last_synced_at?: string | null;
|
|
8961
9389
|
name: string;
|
|
@@ -8974,6 +9402,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
8974
9402
|
country?: string | null;
|
|
8975
9403
|
created_at?: string;
|
|
8976
9404
|
email?: string | null;
|
|
9405
|
+
external_group_key?: string | null;
|
|
8977
9406
|
id?: string;
|
|
8978
9407
|
last_synced_at?: string | null;
|
|
8979
9408
|
name?: string;
|
|
@@ -9138,6 +9567,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9138
9567
|
twinfield_invoice_settings: {
|
|
9139
9568
|
Row: {
|
|
9140
9569
|
created_at: string;
|
|
9570
|
+
debtor_gl_account: string;
|
|
9571
|
+
default_credit_invoice_type: string | null;
|
|
9141
9572
|
default_gl_account: string;
|
|
9142
9573
|
default_invoice_type: string;
|
|
9143
9574
|
default_payment_term_days: number;
|
|
@@ -9146,11 +9577,15 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9146
9577
|
invoice_enabled_fo: boolean;
|
|
9147
9578
|
invoice_enabled_ho: boolean;
|
|
9148
9579
|
invoice_enabled_mo: boolean;
|
|
9580
|
+
payment_gl_account: string;
|
|
9581
|
+
payment_journal_code: string;
|
|
9149
9582
|
updated_at: string;
|
|
9150
9583
|
user_id: string;
|
|
9151
9584
|
};
|
|
9152
9585
|
Insert: {
|
|
9153
9586
|
created_at?: string;
|
|
9587
|
+
debtor_gl_account?: string;
|
|
9588
|
+
default_credit_invoice_type?: string | null;
|
|
9154
9589
|
default_gl_account?: string;
|
|
9155
9590
|
default_invoice_type?: string;
|
|
9156
9591
|
default_payment_term_days?: number;
|
|
@@ -9159,11 +9594,15 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9159
9594
|
invoice_enabled_fo?: boolean;
|
|
9160
9595
|
invoice_enabled_ho?: boolean;
|
|
9161
9596
|
invoice_enabled_mo?: boolean;
|
|
9597
|
+
payment_gl_account?: string;
|
|
9598
|
+
payment_journal_code?: string;
|
|
9162
9599
|
updated_at?: string;
|
|
9163
9600
|
user_id: string;
|
|
9164
9601
|
};
|
|
9165
9602
|
Update: {
|
|
9166
9603
|
created_at?: string;
|
|
9604
|
+
debtor_gl_account?: string;
|
|
9605
|
+
default_credit_invoice_type?: string | null;
|
|
9167
9606
|
default_gl_account?: string;
|
|
9168
9607
|
default_invoice_type?: string;
|
|
9169
9608
|
default_payment_term_days?: number;
|
|
@@ -9172,6 +9611,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9172
9611
|
invoice_enabled_fo?: boolean;
|
|
9173
9612
|
invoice_enabled_ho?: boolean;
|
|
9174
9613
|
invoice_enabled_mo?: boolean;
|
|
9614
|
+
payment_gl_account?: string;
|
|
9615
|
+
payment_journal_code?: string;
|
|
9175
9616
|
updated_at?: string;
|
|
9176
9617
|
user_id?: string;
|
|
9177
9618
|
};
|
|
@@ -9392,43 +9833,49 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9392
9833
|
};
|
|
9393
9834
|
twinfield_push_queue: {
|
|
9394
9835
|
Row: {
|
|
9836
|
+
action: string;
|
|
9395
9837
|
attempts: number;
|
|
9396
9838
|
connection_id: string;
|
|
9397
9839
|
created_at: string;
|
|
9840
|
+
customer_id: string | null;
|
|
9398
9841
|
external_id: string | null;
|
|
9399
9842
|
id: string;
|
|
9400
9843
|
idempotency_key: string;
|
|
9401
9844
|
last_error: string | null;
|
|
9402
9845
|
next_attempt_at: string;
|
|
9403
|
-
office_code: string;
|
|
9846
|
+
office_code: string | null;
|
|
9404
9847
|
payload: import("../integrations/supabase/types").Json;
|
|
9405
9848
|
status: string;
|
|
9406
9849
|
updated_at: string;
|
|
9407
9850
|
};
|
|
9408
9851
|
Insert: {
|
|
9852
|
+
action?: string;
|
|
9409
9853
|
attempts?: number;
|
|
9410
9854
|
connection_id: string;
|
|
9411
9855
|
created_at?: string;
|
|
9856
|
+
customer_id?: string | null;
|
|
9412
9857
|
external_id?: string | null;
|
|
9413
9858
|
id?: string;
|
|
9414
9859
|
idempotency_key: string;
|
|
9415
9860
|
last_error?: string | null;
|
|
9416
9861
|
next_attempt_at?: string;
|
|
9417
|
-
office_code
|
|
9862
|
+
office_code?: string | null;
|
|
9418
9863
|
payload: import("../integrations/supabase/types").Json;
|
|
9419
9864
|
status?: string;
|
|
9420
9865
|
updated_at?: string;
|
|
9421
9866
|
};
|
|
9422
9867
|
Update: {
|
|
9868
|
+
action?: string;
|
|
9423
9869
|
attempts?: number;
|
|
9424
9870
|
connection_id?: string;
|
|
9425
9871
|
created_at?: string;
|
|
9872
|
+
customer_id?: string | null;
|
|
9426
9873
|
external_id?: string | null;
|
|
9427
9874
|
id?: string;
|
|
9428
9875
|
idempotency_key?: string;
|
|
9429
9876
|
last_error?: string | null;
|
|
9430
9877
|
next_attempt_at?: string;
|
|
9431
|
-
office_code?: string;
|
|
9878
|
+
office_code?: string | null;
|
|
9432
9879
|
payload?: import("../integrations/supabase/types").Json;
|
|
9433
9880
|
status?: string;
|
|
9434
9881
|
updated_at?: string;
|
|
@@ -9439,6 +9886,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9439
9886
|
isOneToOne: false;
|
|
9440
9887
|
referencedRelation: "twinfield_connections";
|
|
9441
9888
|
referencedColumns: ["id"];
|
|
9889
|
+
}, {
|
|
9890
|
+
foreignKeyName: "twinfield_push_queue_customer_id_fkey";
|
|
9891
|
+
columns: ["customer_id"];
|
|
9892
|
+
isOneToOne: false;
|
|
9893
|
+
referencedRelation: "customers";
|
|
9894
|
+
referencedColumns: ["id"];
|
|
9442
9895
|
}];
|
|
9443
9896
|
};
|
|
9444
9897
|
twinfield_request_metrics: {
|
|
@@ -9714,6 +10167,246 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9714
10167
|
};
|
|
9715
10168
|
Relationships: [];
|
|
9716
10169
|
};
|
|
10170
|
+
werkbon_package_lines: {
|
|
10171
|
+
Row: {
|
|
10172
|
+
created_at: string;
|
|
10173
|
+
created_by: string | null;
|
|
10174
|
+
id: string;
|
|
10175
|
+
package_id: string;
|
|
10176
|
+
quantity: number;
|
|
10177
|
+
unit_price_cents_snapshot: number;
|
|
10178
|
+
werkbon_id: string;
|
|
10179
|
+
};
|
|
10180
|
+
Insert: {
|
|
10181
|
+
created_at?: string;
|
|
10182
|
+
created_by?: string | null;
|
|
10183
|
+
id?: string;
|
|
10184
|
+
package_id: string;
|
|
10185
|
+
quantity?: number;
|
|
10186
|
+
unit_price_cents_snapshot?: number;
|
|
10187
|
+
werkbon_id: string;
|
|
10188
|
+
};
|
|
10189
|
+
Update: {
|
|
10190
|
+
created_at?: string;
|
|
10191
|
+
created_by?: string | null;
|
|
10192
|
+
id?: string;
|
|
10193
|
+
package_id?: string;
|
|
10194
|
+
quantity?: number;
|
|
10195
|
+
unit_price_cents_snapshot?: number;
|
|
10196
|
+
werkbon_id?: string;
|
|
10197
|
+
};
|
|
10198
|
+
Relationships: [{
|
|
10199
|
+
foreignKeyName: "werkbon_package_lines_package_id_fkey";
|
|
10200
|
+
columns: ["package_id"];
|
|
10201
|
+
isOneToOne: false;
|
|
10202
|
+
referencedRelation: "werkbon_packages";
|
|
10203
|
+
referencedColumns: ["id"];
|
|
10204
|
+
}, {
|
|
10205
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
10206
|
+
columns: ["werkbon_id"];
|
|
10207
|
+
isOneToOne: false;
|
|
10208
|
+
referencedRelation: "werkbonnen";
|
|
10209
|
+
referencedColumns: ["id"];
|
|
10210
|
+
}];
|
|
10211
|
+
};
|
|
10212
|
+
werkbon_packages: {
|
|
10213
|
+
Row: {
|
|
10214
|
+
active: boolean;
|
|
10215
|
+
code: string;
|
|
10216
|
+
created_at: string;
|
|
10217
|
+
default_quantity: number;
|
|
10218
|
+
description: string | null;
|
|
10219
|
+
id: string;
|
|
10220
|
+
name: string;
|
|
10221
|
+
unit_price_cents: number;
|
|
10222
|
+
updated_at: string;
|
|
10223
|
+
};
|
|
10224
|
+
Insert: {
|
|
10225
|
+
active?: boolean;
|
|
10226
|
+
code: string;
|
|
10227
|
+
created_at?: string;
|
|
10228
|
+
default_quantity?: number;
|
|
10229
|
+
description?: string | null;
|
|
10230
|
+
id?: string;
|
|
10231
|
+
name: string;
|
|
10232
|
+
unit_price_cents?: number;
|
|
10233
|
+
updated_at?: string;
|
|
10234
|
+
};
|
|
10235
|
+
Update: {
|
|
10236
|
+
active?: boolean;
|
|
10237
|
+
code?: string;
|
|
10238
|
+
created_at?: string;
|
|
10239
|
+
default_quantity?: number;
|
|
10240
|
+
description?: string | null;
|
|
10241
|
+
id?: string;
|
|
10242
|
+
name?: string;
|
|
10243
|
+
unit_price_cents?: number;
|
|
10244
|
+
updated_at?: string;
|
|
10245
|
+
};
|
|
10246
|
+
Relationships: [];
|
|
10247
|
+
};
|
|
10248
|
+
werkbon_photos: {
|
|
10249
|
+
Row: {
|
|
10250
|
+
created_at: string;
|
|
10251
|
+
id: string;
|
|
10252
|
+
storage_path: string;
|
|
10253
|
+
user_id: string;
|
|
10254
|
+
werkbon_id: string;
|
|
10255
|
+
};
|
|
10256
|
+
Insert: {
|
|
10257
|
+
created_at?: string;
|
|
10258
|
+
id?: string;
|
|
10259
|
+
storage_path: string;
|
|
10260
|
+
user_id: string;
|
|
10261
|
+
werkbon_id: string;
|
|
10262
|
+
};
|
|
10263
|
+
Update: {
|
|
10264
|
+
created_at?: string;
|
|
10265
|
+
id?: string;
|
|
10266
|
+
storage_path?: string;
|
|
10267
|
+
user_id?: string;
|
|
10268
|
+
werkbon_id?: string;
|
|
10269
|
+
};
|
|
10270
|
+
Relationships: [{
|
|
10271
|
+
foreignKeyName: "werkbon_photos_werkbon_id_fkey";
|
|
10272
|
+
columns: ["werkbon_id"];
|
|
10273
|
+
isOneToOne: false;
|
|
10274
|
+
referencedRelation: "werkbonnen";
|
|
10275
|
+
referencedColumns: ["id"];
|
|
10276
|
+
}];
|
|
10277
|
+
};
|
|
10278
|
+
werkbon_time_logs: {
|
|
10279
|
+
Row: {
|
|
10280
|
+
activity: string;
|
|
10281
|
+
created_at: string;
|
|
10282
|
+
ended_at: string | null;
|
|
10283
|
+
id: string;
|
|
10284
|
+
started_at: string;
|
|
10285
|
+
user_id: string;
|
|
10286
|
+
werkbon_id: string;
|
|
10287
|
+
};
|
|
10288
|
+
Insert: {
|
|
10289
|
+
activity: string;
|
|
10290
|
+
created_at?: string;
|
|
10291
|
+
ended_at?: string | null;
|
|
10292
|
+
id?: string;
|
|
10293
|
+
started_at?: string;
|
|
10294
|
+
user_id: string;
|
|
10295
|
+
werkbon_id: string;
|
|
10296
|
+
};
|
|
10297
|
+
Update: {
|
|
10298
|
+
activity?: string;
|
|
10299
|
+
created_at?: string;
|
|
10300
|
+
ended_at?: string | null;
|
|
10301
|
+
id?: string;
|
|
10302
|
+
started_at?: string;
|
|
10303
|
+
user_id?: string;
|
|
10304
|
+
werkbon_id?: string;
|
|
10305
|
+
};
|
|
10306
|
+
Relationships: [{
|
|
10307
|
+
foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
|
|
10308
|
+
columns: ["werkbon_id"];
|
|
10309
|
+
isOneToOne: false;
|
|
10310
|
+
referencedRelation: "werkbonnen";
|
|
10311
|
+
referencedColumns: ["id"];
|
|
10312
|
+
}];
|
|
10313
|
+
};
|
|
10314
|
+
werkbonnen: {
|
|
10315
|
+
Row: {
|
|
10316
|
+
assigned_user_id: string | null;
|
|
10317
|
+
budget_mandate_cents: number;
|
|
10318
|
+
complaint_description: string | null;
|
|
10319
|
+
created_at: string;
|
|
10320
|
+
created_by: string | null;
|
|
10321
|
+
customer_id: string | null;
|
|
10322
|
+
externe_referentie: string | null;
|
|
10323
|
+
first_time_fix: boolean | null;
|
|
10324
|
+
id: string;
|
|
10325
|
+
internal_notes: string | null;
|
|
10326
|
+
parent_werkbon_id: string | null;
|
|
10327
|
+
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
10328
|
+
project_number: string | null;
|
|
10329
|
+
room_number: string | null;
|
|
10330
|
+
scheduled_end_time: string | null;
|
|
10331
|
+
scheduled_start_time: string | null;
|
|
10332
|
+
sequence_number: number;
|
|
10333
|
+
source_pdf_path: string | null;
|
|
10334
|
+
status: string;
|
|
10335
|
+
technician_notes: string | null;
|
|
10336
|
+
technician_notes_raw: string | null;
|
|
10337
|
+
technician_task_description: string | null;
|
|
10338
|
+
updated_at: string;
|
|
10339
|
+
version: number;
|
|
10340
|
+
work_address: string | null;
|
|
10341
|
+
};
|
|
10342
|
+
Insert: {
|
|
10343
|
+
assigned_user_id?: string | null;
|
|
10344
|
+
budget_mandate_cents?: number;
|
|
10345
|
+
complaint_description?: string | null;
|
|
10346
|
+
created_at?: string;
|
|
10347
|
+
created_by?: string | null;
|
|
10348
|
+
customer_id?: string | null;
|
|
10349
|
+
externe_referentie?: string | null;
|
|
10350
|
+
first_time_fix?: boolean | null;
|
|
10351
|
+
id?: string;
|
|
10352
|
+
internal_notes?: string | null;
|
|
10353
|
+
parent_werkbon_id?: string | null;
|
|
10354
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
10355
|
+
project_number?: string | null;
|
|
10356
|
+
room_number?: string | null;
|
|
10357
|
+
scheduled_end_time?: string | null;
|
|
10358
|
+
scheduled_start_time?: string | null;
|
|
10359
|
+
sequence_number: number;
|
|
10360
|
+
source_pdf_path?: string | null;
|
|
10361
|
+
status?: string;
|
|
10362
|
+
technician_notes?: string | null;
|
|
10363
|
+
technician_notes_raw?: string | null;
|
|
10364
|
+
technician_task_description?: string | null;
|
|
10365
|
+
updated_at?: string;
|
|
10366
|
+
version?: number;
|
|
10367
|
+
work_address?: string | null;
|
|
10368
|
+
};
|
|
10369
|
+
Update: {
|
|
10370
|
+
assigned_user_id?: string | null;
|
|
10371
|
+
budget_mandate_cents?: number;
|
|
10372
|
+
complaint_description?: string | null;
|
|
10373
|
+
created_at?: string;
|
|
10374
|
+
created_by?: string | null;
|
|
10375
|
+
customer_id?: string | null;
|
|
10376
|
+
externe_referentie?: string | null;
|
|
10377
|
+
first_time_fix?: boolean | null;
|
|
10378
|
+
id?: string;
|
|
10379
|
+
internal_notes?: string | null;
|
|
10380
|
+
parent_werkbon_id?: string | null;
|
|
10381
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
10382
|
+
project_number?: string | null;
|
|
10383
|
+
room_number?: string | null;
|
|
10384
|
+
scheduled_end_time?: string | null;
|
|
10385
|
+
scheduled_start_time?: string | null;
|
|
10386
|
+
sequence_number?: number;
|
|
10387
|
+
source_pdf_path?: string | null;
|
|
10388
|
+
status?: string;
|
|
10389
|
+
technician_notes?: string | null;
|
|
10390
|
+
technician_notes_raw?: string | null;
|
|
10391
|
+
technician_task_description?: string | null;
|
|
10392
|
+
updated_at?: string;
|
|
10393
|
+
version?: number;
|
|
10394
|
+
work_address?: string | null;
|
|
10395
|
+
};
|
|
10396
|
+
Relationships: [{
|
|
10397
|
+
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
10398
|
+
columns: ["customer_id"];
|
|
10399
|
+
isOneToOne: false;
|
|
10400
|
+
referencedRelation: "customers";
|
|
10401
|
+
referencedColumns: ["id"];
|
|
10402
|
+
}, {
|
|
10403
|
+
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
10404
|
+
columns: ["parent_werkbon_id"];
|
|
10405
|
+
isOneToOne: false;
|
|
10406
|
+
referencedRelation: "werkbonnen";
|
|
10407
|
+
referencedColumns: ["id"];
|
|
10408
|
+
}];
|
|
10409
|
+
};
|
|
9717
10410
|
work_order_monteurs: {
|
|
9718
10411
|
Row: {
|
|
9719
10412
|
created_at: string;
|
|
@@ -9884,6 +10577,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9884
10577
|
created_at: string | null;
|
|
9885
10578
|
created_by: string | null;
|
|
9886
10579
|
display_name: string | null;
|
|
10580
|
+
graph_subscription_expires_at: string | null;
|
|
10581
|
+
graph_subscription_id: string | null;
|
|
9887
10582
|
has_access_token: boolean | null;
|
|
9888
10583
|
has_client_id: boolean | null;
|
|
9889
10584
|
has_client_secret: boolean | null;
|
|
@@ -9901,6 +10596,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9901
10596
|
oauth_mode: string | null;
|
|
9902
10597
|
provider: string | null;
|
|
9903
10598
|
purpose_assignments: import("../integrations/supabase/types").Json | null;
|
|
10599
|
+
realtime_mode: string | null;
|
|
9904
10600
|
scopes: string[] | null;
|
|
9905
10601
|
smtp_host: string | null;
|
|
9906
10602
|
smtp_port: number | null;
|
|
@@ -9915,6 +10611,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9915
10611
|
created_at?: string | null;
|
|
9916
10612
|
created_by?: string | null;
|
|
9917
10613
|
display_name?: string | null;
|
|
10614
|
+
graph_subscription_expires_at?: string | null;
|
|
10615
|
+
graph_subscription_id?: string | null;
|
|
9918
10616
|
has_access_token?: never;
|
|
9919
10617
|
has_client_id?: never;
|
|
9920
10618
|
has_client_secret?: never;
|
|
@@ -9932,6 +10630,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9932
10630
|
oauth_mode?: string | null;
|
|
9933
10631
|
provider?: string | null;
|
|
9934
10632
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
10633
|
+
realtime_mode?: string | null;
|
|
9935
10634
|
scopes?: string[] | null;
|
|
9936
10635
|
smtp_host?: string | null;
|
|
9937
10636
|
smtp_port?: number | null;
|
|
@@ -9946,6 +10645,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9946
10645
|
created_at?: string | null;
|
|
9947
10646
|
created_by?: string | null;
|
|
9948
10647
|
display_name?: string | null;
|
|
10648
|
+
graph_subscription_expires_at?: string | null;
|
|
10649
|
+
graph_subscription_id?: string | null;
|
|
9949
10650
|
has_access_token?: never;
|
|
9950
10651
|
has_client_id?: never;
|
|
9951
10652
|
has_client_secret?: never;
|
|
@@ -9963,6 +10664,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9963
10664
|
oauth_mode?: string | null;
|
|
9964
10665
|
provider?: string | null;
|
|
9965
10666
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
10667
|
+
realtime_mode?: string | null;
|
|
9966
10668
|
scopes?: string[] | null;
|
|
9967
10669
|
smtp_host?: string | null;
|
|
9968
10670
|
smtp_port?: number | null;
|
|
@@ -10506,6 +11208,33 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
10506
11208
|
};
|
|
10507
11209
|
Returns: import("../integrations/supabase/types").Json;
|
|
10508
11210
|
};
|
|
11211
|
+
claim_twinfield_push_batch: {
|
|
11212
|
+
Args: {
|
|
11213
|
+
_limit?: number;
|
|
11214
|
+
};
|
|
11215
|
+
Returns: {
|
|
11216
|
+
action: string;
|
|
11217
|
+
attempts: number;
|
|
11218
|
+
connection_id: string;
|
|
11219
|
+
created_at: string;
|
|
11220
|
+
customer_id: string | null;
|
|
11221
|
+
external_id: string | null;
|
|
11222
|
+
id: string;
|
|
11223
|
+
idempotency_key: string;
|
|
11224
|
+
last_error: string | null;
|
|
11225
|
+
next_attempt_at: string;
|
|
11226
|
+
office_code: string | null;
|
|
11227
|
+
payload: import("../integrations/supabase/types").Json;
|
|
11228
|
+
status: string;
|
|
11229
|
+
updated_at: string;
|
|
11230
|
+
}[];
|
|
11231
|
+
SetofOptions: {
|
|
11232
|
+
from: "*";
|
|
11233
|
+
to: "twinfield_push_queue";
|
|
11234
|
+
isOneToOne: false;
|
|
11235
|
+
isSetofReturn: true;
|
|
11236
|
+
};
|
|
11237
|
+
};
|
|
10509
11238
|
cleanup_old_bookings: {
|
|
10510
11239
|
Args: never;
|
|
10511
11240
|
Returns: undefined;
|
|
@@ -10602,6 +11331,16 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
10602
11331
|
status: string;
|
|
10603
11332
|
}[];
|
|
10604
11333
|
};
|
|
11334
|
+
email_auth_upsert_connection: {
|
|
11335
|
+
Args: {
|
|
11336
|
+
_account_email: string;
|
|
11337
|
+
_created_by: string;
|
|
11338
|
+
_is_active: boolean;
|
|
11339
|
+
_provider: string;
|
|
11340
|
+
_status: string;
|
|
11341
|
+
};
|
|
11342
|
+
Returns: string;
|
|
11343
|
+
};
|
|
10605
11344
|
enqueue_cart_replan_if_unlocked: {
|
|
10606
11345
|
Args: {
|
|
10607
11346
|
p_order_id: string;
|
|
@@ -10874,6 +11613,10 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
10874
11613
|
};
|
|
10875
11614
|
Returns: boolean;
|
|
10876
11615
|
};
|
|
11616
|
+
has_twinfield_link: {
|
|
11617
|
+
Args: never;
|
|
11618
|
+
Returns: boolean;
|
|
11619
|
+
};
|
|
10877
11620
|
is_authenticated: {
|
|
10878
11621
|
Args: never;
|
|
10879
11622
|
Returns: boolean;
|
|
@@ -10929,6 +11672,10 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
10929
11672
|
};
|
|
10930
11673
|
Returns: string;
|
|
10931
11674
|
};
|
|
11675
|
+
next_twinfield_code: {
|
|
11676
|
+
Args: never;
|
|
11677
|
+
Returns: string;
|
|
11678
|
+
};
|
|
10932
11679
|
next_work_order_number: {
|
|
10933
11680
|
Args: {
|
|
10934
11681
|
p_parent_work_order_id?: string;
|
|
@@ -11043,6 +11790,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
11043
11790
|
};
|
|
11044
11791
|
Returns: number;
|
|
11045
11792
|
};
|
|
11793
|
+
reorder_customer_price_groups: {
|
|
11794
|
+
Args: {
|
|
11795
|
+
_ids: string[];
|
|
11796
|
+
};
|
|
11797
|
+
Returns: undefined;
|
|
11798
|
+
};
|
|
11046
11799
|
reset_floriday_sync_cursor: {
|
|
11047
11800
|
Args: {
|
|
11048
11801
|
p_connection_id: string;
|
|
@@ -11056,6 +11809,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
11056
11809
|
};
|
|
11057
11810
|
Returns: string;
|
|
11058
11811
|
};
|
|
11812
|
+
retry_twinfield_push: {
|
|
11813
|
+
Args: {
|
|
11814
|
+
_customer_id: string;
|
|
11815
|
+
};
|
|
11816
|
+
Returns: number;
|
|
11817
|
+
};
|
|
11059
11818
|
schedule_floriday_additional_services_sync: {
|
|
11060
11819
|
Args: {
|
|
11061
11820
|
p_apikey: string;
|