@flowselections/floriday-klanten-module 1.0.15 → 1.0.17
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/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 +3 -2
- 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 +9 -6
- package/dist-lib/components/klanten/NetwerkPagina.d.ts.map +1 -1
- package/dist-lib/components/klanten/NetwerkPagina.js +21 -18
- 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 +1684 -93
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1684 -93
- 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 +1684 -93
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1712 -72
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -9
- 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 +121 -0
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +38814 -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 +4806 -33
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +1684 -93
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-schemas.d.ts +2 -0
- package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
- package/dist-lib/lib/customer-schemas.js +1 -0
- package/dist-lib/lib/customers.functions.d.ts +25793 -163
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.js +92 -4
- package/dist-lib/lib/delivery-locations.functions.d.ts +6408 -44
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +6408 -44
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-assortment.functions.d.ts +12959 -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 +3398 -216
- package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-trade-items.functions.d.ts +12943 -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 +11216 -79
- package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/overdue-invoices.functions.d.ts +1684 -93
- package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups-local.functions.d.ts +90665 -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 +12952 -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 +8 -4
- package/public/flowselections-assets/Klanten/floriday-logo.png +0 -0
|
@@ -258,6 +258,318 @@ 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_call_log: {
|
|
298
|
+
Row: {
|
|
299
|
+
consumer_module_id: string;
|
|
300
|
+
cost_usd: number | null;
|
|
301
|
+
created_at: string;
|
|
302
|
+
created_by: string | null;
|
|
303
|
+
duration_ms: number | null;
|
|
304
|
+
error_code: string | null;
|
|
305
|
+
error_message: string | null;
|
|
306
|
+
id: string;
|
|
307
|
+
input_tokens: number;
|
|
308
|
+
model_slug: string | null;
|
|
309
|
+
output_tokens: number;
|
|
310
|
+
provider_slug: string | null;
|
|
311
|
+
status: string;
|
|
312
|
+
total_tokens: number;
|
|
313
|
+
};
|
|
314
|
+
Insert: {
|
|
315
|
+
consumer_module_id: string;
|
|
316
|
+
cost_usd?: number | null;
|
|
317
|
+
created_at?: string;
|
|
318
|
+
created_by?: string | null;
|
|
319
|
+
duration_ms?: number | null;
|
|
320
|
+
error_code?: string | null;
|
|
321
|
+
error_message?: string | null;
|
|
322
|
+
id?: string;
|
|
323
|
+
input_tokens?: number;
|
|
324
|
+
model_slug?: string | null;
|
|
325
|
+
output_tokens?: number;
|
|
326
|
+
provider_slug?: string | null;
|
|
327
|
+
status: string;
|
|
328
|
+
total_tokens?: number;
|
|
329
|
+
};
|
|
330
|
+
Update: {
|
|
331
|
+
consumer_module_id?: string;
|
|
332
|
+
cost_usd?: number | null;
|
|
333
|
+
created_at?: string;
|
|
334
|
+
created_by?: string | null;
|
|
335
|
+
duration_ms?: number | null;
|
|
336
|
+
error_code?: string | null;
|
|
337
|
+
error_message?: string | null;
|
|
338
|
+
id?: string;
|
|
339
|
+
input_tokens?: number;
|
|
340
|
+
model_slug?: string | null;
|
|
341
|
+
output_tokens?: number;
|
|
342
|
+
provider_slug?: string | null;
|
|
343
|
+
status?: string;
|
|
344
|
+
total_tokens?: number;
|
|
345
|
+
};
|
|
346
|
+
Relationships: [];
|
|
347
|
+
};
|
|
348
|
+
ai_credentials: {
|
|
349
|
+
Row: {
|
|
350
|
+
active: boolean;
|
|
351
|
+
api_key: string;
|
|
352
|
+
created_at: string;
|
|
353
|
+
id: string;
|
|
354
|
+
label: string;
|
|
355
|
+
provider_id: string;
|
|
356
|
+
updated_at: string;
|
|
357
|
+
};
|
|
358
|
+
Insert: {
|
|
359
|
+
active?: boolean;
|
|
360
|
+
api_key: string;
|
|
361
|
+
created_at?: string;
|
|
362
|
+
id?: string;
|
|
363
|
+
label: string;
|
|
364
|
+
provider_id: string;
|
|
365
|
+
updated_at?: string;
|
|
366
|
+
};
|
|
367
|
+
Update: {
|
|
368
|
+
active?: boolean;
|
|
369
|
+
api_key?: string;
|
|
370
|
+
created_at?: string;
|
|
371
|
+
id?: string;
|
|
372
|
+
label?: string;
|
|
373
|
+
provider_id?: string;
|
|
374
|
+
updated_at?: string;
|
|
375
|
+
};
|
|
376
|
+
Relationships: [{
|
|
377
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
378
|
+
columns: ["provider_id"];
|
|
379
|
+
isOneToOne: false;
|
|
380
|
+
referencedRelation: "ai_providers";
|
|
381
|
+
referencedColumns: ["id"];
|
|
382
|
+
}];
|
|
383
|
+
};
|
|
384
|
+
ai_goals: {
|
|
385
|
+
Row: {
|
|
386
|
+
active: boolean;
|
|
387
|
+
created_at: string;
|
|
388
|
+
description: string | null;
|
|
389
|
+
key: string;
|
|
390
|
+
label: string;
|
|
391
|
+
sort_order: number;
|
|
392
|
+
updated_at: string;
|
|
393
|
+
};
|
|
394
|
+
Insert: {
|
|
395
|
+
active?: boolean;
|
|
396
|
+
created_at?: string;
|
|
397
|
+
description?: string | null;
|
|
398
|
+
key: string;
|
|
399
|
+
label: string;
|
|
400
|
+
sort_order?: number;
|
|
401
|
+
updated_at?: string;
|
|
402
|
+
};
|
|
403
|
+
Update: {
|
|
404
|
+
active?: boolean;
|
|
405
|
+
created_at?: string;
|
|
406
|
+
description?: string | null;
|
|
407
|
+
key?: string;
|
|
408
|
+
label?: string;
|
|
409
|
+
sort_order?: number;
|
|
410
|
+
updated_at?: string;
|
|
411
|
+
};
|
|
412
|
+
Relationships: [];
|
|
413
|
+
};
|
|
414
|
+
ai_model_pricing: {
|
|
415
|
+
Row: {
|
|
416
|
+
created_at: string;
|
|
417
|
+
currency: string;
|
|
418
|
+
fetched_at: string;
|
|
419
|
+
id: string;
|
|
420
|
+
input_per_mtok: number | null;
|
|
421
|
+
model_slug: string;
|
|
422
|
+
output_per_mtok: number | null;
|
|
423
|
+
provider_slug: string;
|
|
424
|
+
source: string;
|
|
425
|
+
updated_at: string;
|
|
426
|
+
};
|
|
427
|
+
Insert: {
|
|
428
|
+
created_at?: string;
|
|
429
|
+
currency?: string;
|
|
430
|
+
fetched_at?: string;
|
|
431
|
+
id?: string;
|
|
432
|
+
input_per_mtok?: number | null;
|
|
433
|
+
model_slug: string;
|
|
434
|
+
output_per_mtok?: number | null;
|
|
435
|
+
provider_slug: string;
|
|
436
|
+
source?: string;
|
|
437
|
+
updated_at?: string;
|
|
438
|
+
};
|
|
439
|
+
Update: {
|
|
440
|
+
created_at?: string;
|
|
441
|
+
currency?: string;
|
|
442
|
+
fetched_at?: string;
|
|
443
|
+
id?: string;
|
|
444
|
+
input_per_mtok?: number | null;
|
|
445
|
+
model_slug?: string;
|
|
446
|
+
output_per_mtok?: number | null;
|
|
447
|
+
provider_slug?: string;
|
|
448
|
+
source?: string;
|
|
449
|
+
updated_at?: string;
|
|
450
|
+
};
|
|
451
|
+
Relationships: [];
|
|
452
|
+
};
|
|
453
|
+
ai_models: {
|
|
454
|
+
Row: {
|
|
455
|
+
active: boolean;
|
|
456
|
+
context_window: number | null;
|
|
457
|
+
created_at: string;
|
|
458
|
+
display_name: string;
|
|
459
|
+
id: string;
|
|
460
|
+
is_default: boolean;
|
|
461
|
+
modality: string;
|
|
462
|
+
provider_id: string;
|
|
463
|
+
slug: string;
|
|
464
|
+
updated_at: string;
|
|
465
|
+
};
|
|
466
|
+
Insert: {
|
|
467
|
+
active?: boolean;
|
|
468
|
+
context_window?: number | null;
|
|
469
|
+
created_at?: string;
|
|
470
|
+
display_name: string;
|
|
471
|
+
id?: string;
|
|
472
|
+
is_default?: boolean;
|
|
473
|
+
modality?: string;
|
|
474
|
+
provider_id: string;
|
|
475
|
+
slug: string;
|
|
476
|
+
updated_at?: string;
|
|
477
|
+
};
|
|
478
|
+
Update: {
|
|
479
|
+
active?: boolean;
|
|
480
|
+
context_window?: number | null;
|
|
481
|
+
created_at?: string;
|
|
482
|
+
display_name?: string;
|
|
483
|
+
id?: string;
|
|
484
|
+
is_default?: boolean;
|
|
485
|
+
modality?: string;
|
|
486
|
+
provider_id?: string;
|
|
487
|
+
slug?: string;
|
|
488
|
+
updated_at?: string;
|
|
489
|
+
};
|
|
490
|
+
Relationships: [{
|
|
491
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
492
|
+
columns: ["provider_id"];
|
|
493
|
+
isOneToOne: false;
|
|
494
|
+
referencedRelation: "ai_providers";
|
|
495
|
+
referencedColumns: ["id"];
|
|
496
|
+
}];
|
|
497
|
+
};
|
|
498
|
+
ai_module_bindings: {
|
|
499
|
+
Row: {
|
|
500
|
+
consumer_module_id: string;
|
|
501
|
+
created_at: string;
|
|
502
|
+
credential_id: string;
|
|
503
|
+
id: string;
|
|
504
|
+
model_id: string;
|
|
505
|
+
notes: string | null;
|
|
506
|
+
updated_at: string;
|
|
507
|
+
};
|
|
508
|
+
Insert: {
|
|
509
|
+
consumer_module_id: string;
|
|
510
|
+
created_at?: string;
|
|
511
|
+
credential_id: string;
|
|
512
|
+
id?: string;
|
|
513
|
+
model_id: string;
|
|
514
|
+
notes?: string | null;
|
|
515
|
+
updated_at?: string;
|
|
516
|
+
};
|
|
517
|
+
Update: {
|
|
518
|
+
consumer_module_id?: string;
|
|
519
|
+
created_at?: string;
|
|
520
|
+
credential_id?: string;
|
|
521
|
+
id?: string;
|
|
522
|
+
model_id?: string;
|
|
523
|
+
notes?: string | null;
|
|
524
|
+
updated_at?: string;
|
|
525
|
+
};
|
|
526
|
+
Relationships: [{
|
|
527
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
528
|
+
columns: ["credential_id"];
|
|
529
|
+
isOneToOne: false;
|
|
530
|
+
referencedRelation: "ai_credentials";
|
|
531
|
+
referencedColumns: ["id"];
|
|
532
|
+
}, {
|
|
533
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
534
|
+
columns: ["model_id"];
|
|
535
|
+
isOneToOne: false;
|
|
536
|
+
referencedRelation: "ai_models";
|
|
537
|
+
referencedColumns: ["id"];
|
|
538
|
+
}];
|
|
539
|
+
};
|
|
540
|
+
ai_providers: {
|
|
541
|
+
Row: {
|
|
542
|
+
active: boolean;
|
|
543
|
+
auth_type: string;
|
|
544
|
+
base_url: string | null;
|
|
545
|
+
created_at: string;
|
|
546
|
+
id: string;
|
|
547
|
+
name: string;
|
|
548
|
+
slug: string;
|
|
549
|
+
updated_at: string;
|
|
550
|
+
};
|
|
551
|
+
Insert: {
|
|
552
|
+
active?: boolean;
|
|
553
|
+
auth_type?: string;
|
|
554
|
+
base_url?: string | null;
|
|
555
|
+
created_at?: string;
|
|
556
|
+
id?: string;
|
|
557
|
+
name: string;
|
|
558
|
+
slug: string;
|
|
559
|
+
updated_at?: string;
|
|
560
|
+
};
|
|
561
|
+
Update: {
|
|
562
|
+
active?: boolean;
|
|
563
|
+
auth_type?: string;
|
|
564
|
+
base_url?: string | null;
|
|
565
|
+
created_at?: string;
|
|
566
|
+
id?: string;
|
|
567
|
+
name?: string;
|
|
568
|
+
slug?: string;
|
|
569
|
+
updated_at?: string;
|
|
570
|
+
};
|
|
571
|
+
Relationships: [];
|
|
572
|
+
};
|
|
261
573
|
app_settings: {
|
|
262
574
|
Row: {
|
|
263
575
|
created_at: string;
|
|
@@ -885,6 +1197,141 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
885
1197
|
};
|
|
886
1198
|
Relationships: [];
|
|
887
1199
|
};
|
|
1200
|
+
cart_planning_pick_times: {
|
|
1201
|
+
Row: {
|
|
1202
|
+
created_at: string;
|
|
1203
|
+
id: string;
|
|
1204
|
+
pot_size: string;
|
|
1205
|
+
seconds_per_cart: number;
|
|
1206
|
+
updated_at: string;
|
|
1207
|
+
};
|
|
1208
|
+
Insert: {
|
|
1209
|
+
created_at?: string;
|
|
1210
|
+
id?: string;
|
|
1211
|
+
pot_size: string;
|
|
1212
|
+
seconds_per_cart: number;
|
|
1213
|
+
updated_at?: string;
|
|
1214
|
+
};
|
|
1215
|
+
Update: {
|
|
1216
|
+
created_at?: string;
|
|
1217
|
+
id?: string;
|
|
1218
|
+
pot_size?: string;
|
|
1219
|
+
seconds_per_cart?: number;
|
|
1220
|
+
updated_at?: string;
|
|
1221
|
+
};
|
|
1222
|
+
Relationships: [];
|
|
1223
|
+
};
|
|
1224
|
+
cart_planning_product_overrides: {
|
|
1225
|
+
Row: {
|
|
1226
|
+
created_at: string;
|
|
1227
|
+
id: string;
|
|
1228
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1229
|
+
never_mix: boolean;
|
|
1230
|
+
notes: string | null;
|
|
1231
|
+
product_id: string;
|
|
1232
|
+
updated_at: string;
|
|
1233
|
+
};
|
|
1234
|
+
Insert: {
|
|
1235
|
+
created_at?: string;
|
|
1236
|
+
id?: string;
|
|
1237
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1238
|
+
never_mix?: boolean;
|
|
1239
|
+
notes?: string | null;
|
|
1240
|
+
product_id: string;
|
|
1241
|
+
updated_at?: string;
|
|
1242
|
+
};
|
|
1243
|
+
Update: {
|
|
1244
|
+
created_at?: string;
|
|
1245
|
+
id?: string;
|
|
1246
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1247
|
+
never_mix?: boolean;
|
|
1248
|
+
notes?: string | null;
|
|
1249
|
+
product_id?: string;
|
|
1250
|
+
updated_at?: string;
|
|
1251
|
+
};
|
|
1252
|
+
Relationships: [{
|
|
1253
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1254
|
+
columns: ["product_id"];
|
|
1255
|
+
isOneToOne: true;
|
|
1256
|
+
referencedRelation: "products";
|
|
1257
|
+
referencedColumns: ["id"];
|
|
1258
|
+
}];
|
|
1259
|
+
};
|
|
1260
|
+
cart_planning_settings: {
|
|
1261
|
+
Row: {
|
|
1262
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1263
|
+
buffer_grouping_mode: string;
|
|
1264
|
+
combine_floriday_orders: boolean;
|
|
1265
|
+
combine_floriday_orders_window: string;
|
|
1266
|
+
combine_orders_scope: string;
|
|
1267
|
+
default_workers: number;
|
|
1268
|
+
id: number;
|
|
1269
|
+
max_beladingen_per_layer: number;
|
|
1270
|
+
max_customers_per_cart: number;
|
|
1271
|
+
max_one_customer_per_layer: boolean;
|
|
1272
|
+
max_party_share_per_layer_pct: number;
|
|
1273
|
+
optimization_strategy: string;
|
|
1274
|
+
own_cart_from_layers: number;
|
|
1275
|
+
pick_time_mode: string;
|
|
1276
|
+
plants_per_day: number;
|
|
1277
|
+
plants_per_hour: number;
|
|
1278
|
+
require_same_carrier: boolean;
|
|
1279
|
+
require_same_crate_type: boolean;
|
|
1280
|
+
require_same_delivery_date: boolean;
|
|
1281
|
+
require_same_delivery_location: boolean;
|
|
1282
|
+
updated_at: string;
|
|
1283
|
+
updated_by: string | null;
|
|
1284
|
+
};
|
|
1285
|
+
Insert: {
|
|
1286
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1287
|
+
buffer_grouping_mode?: string;
|
|
1288
|
+
combine_floriday_orders?: boolean;
|
|
1289
|
+
combine_floriday_orders_window?: string;
|
|
1290
|
+
combine_orders_scope?: string;
|
|
1291
|
+
default_workers?: number;
|
|
1292
|
+
id?: number;
|
|
1293
|
+
max_beladingen_per_layer?: number;
|
|
1294
|
+
max_customers_per_cart?: number;
|
|
1295
|
+
max_one_customer_per_layer?: boolean;
|
|
1296
|
+
max_party_share_per_layer_pct?: number;
|
|
1297
|
+
optimization_strategy?: string;
|
|
1298
|
+
own_cart_from_layers?: number;
|
|
1299
|
+
pick_time_mode?: string;
|
|
1300
|
+
plants_per_day?: number;
|
|
1301
|
+
plants_per_hour?: number;
|
|
1302
|
+
require_same_carrier?: boolean;
|
|
1303
|
+
require_same_crate_type?: boolean;
|
|
1304
|
+
require_same_delivery_date?: boolean;
|
|
1305
|
+
require_same_delivery_location?: boolean;
|
|
1306
|
+
updated_at?: string;
|
|
1307
|
+
updated_by?: string | null;
|
|
1308
|
+
};
|
|
1309
|
+
Update: {
|
|
1310
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1311
|
+
buffer_grouping_mode?: string;
|
|
1312
|
+
combine_floriday_orders?: boolean;
|
|
1313
|
+
combine_floriday_orders_window?: string;
|
|
1314
|
+
combine_orders_scope?: string;
|
|
1315
|
+
default_workers?: number;
|
|
1316
|
+
id?: number;
|
|
1317
|
+
max_beladingen_per_layer?: number;
|
|
1318
|
+
max_customers_per_cart?: number;
|
|
1319
|
+
max_one_customer_per_layer?: boolean;
|
|
1320
|
+
max_party_share_per_layer_pct?: number;
|
|
1321
|
+
optimization_strategy?: string;
|
|
1322
|
+
own_cart_from_layers?: number;
|
|
1323
|
+
pick_time_mode?: string;
|
|
1324
|
+
plants_per_day?: number;
|
|
1325
|
+
plants_per_hour?: number;
|
|
1326
|
+
require_same_carrier?: boolean;
|
|
1327
|
+
require_same_crate_type?: boolean;
|
|
1328
|
+
require_same_delivery_date?: boolean;
|
|
1329
|
+
require_same_delivery_location?: boolean;
|
|
1330
|
+
updated_at?: string;
|
|
1331
|
+
updated_by?: string | null;
|
|
1332
|
+
};
|
|
1333
|
+
Relationships: [];
|
|
1334
|
+
};
|
|
888
1335
|
cart_replan_queue: {
|
|
889
1336
|
Row: {
|
|
890
1337
|
attempts: number;
|
|
@@ -915,6 +1362,102 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
915
1362
|
referencedColumns: ["id"];
|
|
916
1363
|
}];
|
|
917
1364
|
};
|
|
1365
|
+
cart_types: {
|
|
1366
|
+
Row: {
|
|
1367
|
+
created_at: string;
|
|
1368
|
+
id: string;
|
|
1369
|
+
is_default: boolean;
|
|
1370
|
+
layer_length_cm: number;
|
|
1371
|
+
layer_width_cm: number;
|
|
1372
|
+
layers_per_cart: number;
|
|
1373
|
+
name: string;
|
|
1374
|
+
updated_at: string;
|
|
1375
|
+
};
|
|
1376
|
+
Insert: {
|
|
1377
|
+
created_at?: string;
|
|
1378
|
+
id?: string;
|
|
1379
|
+
is_default?: boolean;
|
|
1380
|
+
layer_length_cm: number;
|
|
1381
|
+
layer_width_cm: number;
|
|
1382
|
+
layers_per_cart?: number;
|
|
1383
|
+
name: string;
|
|
1384
|
+
updated_at?: string;
|
|
1385
|
+
};
|
|
1386
|
+
Update: {
|
|
1387
|
+
created_at?: string;
|
|
1388
|
+
id?: string;
|
|
1389
|
+
is_default?: boolean;
|
|
1390
|
+
layer_length_cm?: number;
|
|
1391
|
+
layer_width_cm?: number;
|
|
1392
|
+
layers_per_cart?: number;
|
|
1393
|
+
name?: string;
|
|
1394
|
+
updated_at?: string;
|
|
1395
|
+
};
|
|
1396
|
+
Relationships: [];
|
|
1397
|
+
};
|
|
1398
|
+
catalog_articles_cache: {
|
|
1399
|
+
Row: {
|
|
1400
|
+
created_at: string;
|
|
1401
|
+
default_price: number;
|
|
1402
|
+
default_vat_rate_ref: string | null;
|
|
1403
|
+
external_ref: string;
|
|
1404
|
+
id: string;
|
|
1405
|
+
name: string;
|
|
1406
|
+
updated_at: string;
|
|
1407
|
+
user_id: string;
|
|
1408
|
+
};
|
|
1409
|
+
Insert: {
|
|
1410
|
+
created_at?: string;
|
|
1411
|
+
default_price?: number;
|
|
1412
|
+
default_vat_rate_ref?: string | null;
|
|
1413
|
+
external_ref: string;
|
|
1414
|
+
id?: string;
|
|
1415
|
+
name: string;
|
|
1416
|
+
updated_at?: string;
|
|
1417
|
+
user_id: string;
|
|
1418
|
+
};
|
|
1419
|
+
Update: {
|
|
1420
|
+
created_at?: string;
|
|
1421
|
+
default_price?: number;
|
|
1422
|
+
default_vat_rate_ref?: string | null;
|
|
1423
|
+
external_ref?: string;
|
|
1424
|
+
id?: string;
|
|
1425
|
+
name?: string;
|
|
1426
|
+
updated_at?: string;
|
|
1427
|
+
user_id?: string;
|
|
1428
|
+
};
|
|
1429
|
+
Relationships: [];
|
|
1430
|
+
};
|
|
1431
|
+
catalog_vat_rates_cache: {
|
|
1432
|
+
Row: {
|
|
1433
|
+
created_at: string;
|
|
1434
|
+
external_ref: string;
|
|
1435
|
+
id: string;
|
|
1436
|
+
label: string;
|
|
1437
|
+
percentage: number;
|
|
1438
|
+
updated_at: string;
|
|
1439
|
+
user_id: string;
|
|
1440
|
+
};
|
|
1441
|
+
Insert: {
|
|
1442
|
+
created_at?: string;
|
|
1443
|
+
external_ref: string;
|
|
1444
|
+
id?: string;
|
|
1445
|
+
label: string;
|
|
1446
|
+
percentage?: number;
|
|
1447
|
+
updated_at?: string;
|
|
1448
|
+
user_id: string;
|
|
1449
|
+
};
|
|
1450
|
+
Update: {
|
|
1451
|
+
created_at?: string;
|
|
1452
|
+
external_ref?: string;
|
|
1453
|
+
id?: string;
|
|
1454
|
+
label?: string;
|
|
1455
|
+
percentage?: number;
|
|
1456
|
+
updated_at?: string;
|
|
1457
|
+
user_id?: string;
|
|
1458
|
+
};
|
|
1459
|
+
Relationships: [];
|
|
1460
|
+
};
|
|
918
1461
|
collections: {
|
|
919
1462
|
Row: {
|
|
920
1463
|
created_at: string;
|
|
@@ -939,6 +1482,36 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
939
1482
|
};
|
|
940
1483
|
Relationships: [];
|
|
941
1484
|
};
|
|
1485
|
+
crate_types: {
|
|
1486
|
+
Row: {
|
|
1487
|
+
created_at: string;
|
|
1488
|
+
id: string;
|
|
1489
|
+
length_cm: number;
|
|
1490
|
+
name: string;
|
|
1491
|
+
plants_per_crate: number;
|
|
1492
|
+
updated_at: string;
|
|
1493
|
+
width_cm: number;
|
|
1494
|
+
};
|
|
1495
|
+
Insert: {
|
|
1496
|
+
created_at?: string;
|
|
1497
|
+
id?: string;
|
|
1498
|
+
length_cm: number;
|
|
1499
|
+
name: string;
|
|
1500
|
+
plants_per_crate?: number;
|
|
1501
|
+
updated_at?: string;
|
|
1502
|
+
width_cm: number;
|
|
1503
|
+
};
|
|
1504
|
+
Update: {
|
|
1505
|
+
created_at?: string;
|
|
1506
|
+
id?: string;
|
|
1507
|
+
length_cm?: number;
|
|
1508
|
+
name?: string;
|
|
1509
|
+
plants_per_crate?: number;
|
|
1510
|
+
updated_at?: string;
|
|
1511
|
+
width_cm?: number;
|
|
1512
|
+
};
|
|
1513
|
+
Relationships: [];
|
|
1514
|
+
};
|
|
942
1515
|
customer_audit_log: {
|
|
943
1516
|
Row: {
|
|
944
1517
|
action: string;
|
|
@@ -1113,53 +1686,152 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1113
1686
|
created_at?: string;
|
|
1114
1687
|
field_setting_id: string;
|
|
1115
1688
|
id?: string;
|
|
1116
|
-
label: string;
|
|
1117
|
-
sort_order?: number;
|
|
1689
|
+
label: string;
|
|
1690
|
+
sort_order?: number;
|
|
1691
|
+
};
|
|
1692
|
+
Update: {
|
|
1693
|
+
created_at?: string;
|
|
1694
|
+
field_setting_id?: string;
|
|
1695
|
+
id?: string;
|
|
1696
|
+
label?: string;
|
|
1697
|
+
sort_order?: number;
|
|
1698
|
+
};
|
|
1699
|
+
Relationships: [{
|
|
1700
|
+
foreignKeyName: "customer_field_options_field_setting_id_fkey";
|
|
1701
|
+
columns: ["field_setting_id"];
|
|
1702
|
+
isOneToOne: false;
|
|
1703
|
+
referencedRelation: "customer_field_settings";
|
|
1704
|
+
referencedColumns: ["id"];
|
|
1705
|
+
}];
|
|
1706
|
+
};
|
|
1707
|
+
customer_field_settings: {
|
|
1708
|
+
Row: {
|
|
1709
|
+
created_at: string;
|
|
1710
|
+
field_key: string;
|
|
1711
|
+
field_label: string;
|
|
1712
|
+
field_type: string;
|
|
1713
|
+
id: string;
|
|
1714
|
+
is_custom: boolean;
|
|
1715
|
+
sort_order: number;
|
|
1716
|
+
updated_at: string;
|
|
1717
|
+
};
|
|
1718
|
+
Insert: {
|
|
1719
|
+
created_at?: string;
|
|
1720
|
+
field_key: string;
|
|
1721
|
+
field_label: string;
|
|
1722
|
+
field_type?: string;
|
|
1723
|
+
id?: string;
|
|
1724
|
+
is_custom?: boolean;
|
|
1725
|
+
sort_order?: number;
|
|
1726
|
+
updated_at?: string;
|
|
1727
|
+
};
|
|
1728
|
+
Update: {
|
|
1729
|
+
created_at?: string;
|
|
1730
|
+
field_key?: string;
|
|
1731
|
+
field_label?: string;
|
|
1732
|
+
field_type?: string;
|
|
1733
|
+
id?: string;
|
|
1734
|
+
is_custom?: boolean;
|
|
1735
|
+
sort_order?: number;
|
|
1736
|
+
updated_at?: string;
|
|
1737
|
+
};
|
|
1738
|
+
Relationships: [];
|
|
1739
|
+
};
|
|
1740
|
+
customer_price_group_members: {
|
|
1741
|
+
Row: {
|
|
1742
|
+
created_at: string;
|
|
1743
|
+
customer_key: string;
|
|
1744
|
+
id: string;
|
|
1745
|
+
owner_id: string;
|
|
1746
|
+
price_group_id: string;
|
|
1747
|
+
};
|
|
1748
|
+
Insert: {
|
|
1749
|
+
created_at?: string;
|
|
1750
|
+
customer_key: string;
|
|
1751
|
+
id?: string;
|
|
1752
|
+
owner_id?: string;
|
|
1753
|
+
price_group_id: string;
|
|
1118
1754
|
};
|
|
1119
1755
|
Update: {
|
|
1120
1756
|
created_at?: string;
|
|
1121
|
-
|
|
1757
|
+
customer_key?: string;
|
|
1122
1758
|
id?: string;
|
|
1123
|
-
|
|
1124
|
-
|
|
1759
|
+
owner_id?: string;
|
|
1760
|
+
price_group_id?: string;
|
|
1125
1761
|
};
|
|
1126
1762
|
Relationships: [{
|
|
1127
|
-
foreignKeyName: "
|
|
1128
|
-
columns: ["
|
|
1763
|
+
foreignKeyName: "customer_price_group_members_price_group_id_fkey";
|
|
1764
|
+
columns: ["price_group_id"];
|
|
1129
1765
|
isOneToOne: false;
|
|
1130
|
-
referencedRelation: "
|
|
1766
|
+
referencedRelation: "customer_price_groups";
|
|
1131
1767
|
referencedColumns: ["id"];
|
|
1132
1768
|
}];
|
|
1133
1769
|
};
|
|
1134
|
-
|
|
1770
|
+
customer_price_groups: {
|
|
1135
1771
|
Row: {
|
|
1772
|
+
calc_type: string | null;
|
|
1773
|
+
calc_value: number | null;
|
|
1774
|
+
calc_value_type: string | null;
|
|
1136
1775
|
created_at: string;
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1776
|
+
currency: string;
|
|
1777
|
+
distribute_over: string | null;
|
|
1778
|
+
group_type: string;
|
|
1779
|
+
handling_fee: number | null;
|
|
1140
1780
|
id: string;
|
|
1141
|
-
|
|
1781
|
+
include_stickers: boolean;
|
|
1782
|
+
is_active: boolean;
|
|
1783
|
+
name: string;
|
|
1784
|
+
owner_id: string;
|
|
1785
|
+
price_scope: string;
|
|
1786
|
+
pricing_mode: string;
|
|
1787
|
+
rounding: string;
|
|
1788
|
+
rounding_step: number;
|
|
1142
1789
|
sort_order: number;
|
|
1790
|
+
unit: string;
|
|
1143
1791
|
updated_at: string;
|
|
1144
1792
|
};
|
|
1145
1793
|
Insert: {
|
|
1794
|
+
calc_type?: string | null;
|
|
1795
|
+
calc_value?: number | null;
|
|
1796
|
+
calc_value_type?: string | null;
|
|
1146
1797
|
created_at?: string;
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1798
|
+
currency?: string;
|
|
1799
|
+
distribute_over?: string | null;
|
|
1800
|
+
group_type?: string;
|
|
1801
|
+
handling_fee?: number | null;
|
|
1150
1802
|
id?: string;
|
|
1151
|
-
|
|
1803
|
+
include_stickers?: boolean;
|
|
1804
|
+
is_active?: boolean;
|
|
1805
|
+
name: string;
|
|
1806
|
+
owner_id?: string;
|
|
1807
|
+
price_scope?: string;
|
|
1808
|
+
pricing_mode?: string;
|
|
1809
|
+
rounding?: string;
|
|
1810
|
+
rounding_step?: number;
|
|
1152
1811
|
sort_order?: number;
|
|
1812
|
+
unit?: string;
|
|
1153
1813
|
updated_at?: string;
|
|
1154
1814
|
};
|
|
1155
1815
|
Update: {
|
|
1816
|
+
calc_type?: string | null;
|
|
1817
|
+
calc_value?: number | null;
|
|
1818
|
+
calc_value_type?: string | null;
|
|
1156
1819
|
created_at?: string;
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1820
|
+
currency?: string;
|
|
1821
|
+
distribute_over?: string | null;
|
|
1822
|
+
group_type?: string;
|
|
1823
|
+
handling_fee?: number | null;
|
|
1160
1824
|
id?: string;
|
|
1161
|
-
|
|
1825
|
+
include_stickers?: boolean;
|
|
1826
|
+
is_active?: boolean;
|
|
1827
|
+
name?: string;
|
|
1828
|
+
owner_id?: string;
|
|
1829
|
+
price_scope?: string;
|
|
1830
|
+
pricing_mode?: string;
|
|
1831
|
+
rounding?: string;
|
|
1832
|
+
rounding_step?: number;
|
|
1162
1833
|
sort_order?: number;
|
|
1834
|
+
unit?: string;
|
|
1163
1835
|
updated_at?: string;
|
|
1164
1836
|
};
|
|
1165
1837
|
Relationships: [];
|
|
@@ -1317,6 +1989,10 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1317
1989
|
sync_error: string | null;
|
|
1318
1990
|
sync_status: string;
|
|
1319
1991
|
trade_forms: string[];
|
|
1992
|
+
twinfield_code: string | null;
|
|
1993
|
+
twinfield_last_hash: string | null;
|
|
1994
|
+
twinfield_sync_error: string | null;
|
|
1995
|
+
twinfield_synced_at: string | null;
|
|
1320
1996
|
updated_at: string;
|
|
1321
1997
|
vat_display: string | null;
|
|
1322
1998
|
vat_number: string | null;
|
|
@@ -1384,6 +2060,10 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1384
2060
|
sync_error?: string | null;
|
|
1385
2061
|
sync_status?: string;
|
|
1386
2062
|
trade_forms?: string[];
|
|
2063
|
+
twinfield_code?: string | null;
|
|
2064
|
+
twinfield_last_hash?: string | null;
|
|
2065
|
+
twinfield_sync_error?: string | null;
|
|
2066
|
+
twinfield_synced_at?: string | null;
|
|
1387
2067
|
updated_at?: string;
|
|
1388
2068
|
vat_display?: string | null;
|
|
1389
2069
|
vat_number?: string | null;
|
|
@@ -1451,6 +2131,10 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1451
2131
|
sync_error?: string | null;
|
|
1452
2132
|
sync_status?: string;
|
|
1453
2133
|
trade_forms?: string[];
|
|
2134
|
+
twinfield_code?: string | null;
|
|
2135
|
+
twinfield_last_hash?: string | null;
|
|
2136
|
+
twinfield_sync_error?: string | null;
|
|
2137
|
+
twinfield_synced_at?: string | null;
|
|
1454
2138
|
updated_at?: string;
|
|
1455
2139
|
vat_display?: string | null;
|
|
1456
2140
|
vat_number?: string | null;
|
|
@@ -5288,84 +5972,366 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
5288
5972
|
vat_amount: number | null;
|
|
5289
5973
|
};
|
|
5290
5974
|
Insert: {
|
|
5291
|
-
booking_id?: string | null;
|
|
5292
|
-
company_name?: string | null;
|
|
5975
|
+
booking_id?: string | null;
|
|
5976
|
+
company_name?: string | null;
|
|
5977
|
+
created_at?: string;
|
|
5978
|
+
customer_email?: string | null;
|
|
5979
|
+
description?: string | null;
|
|
5980
|
+
exact_article_id?: string | null;
|
|
5981
|
+
id?: string;
|
|
5982
|
+
invoice_run_id?: string | null;
|
|
5983
|
+
quantity?: number | null;
|
|
5984
|
+
total_excl_vat?: number | null;
|
|
5985
|
+
total_incl_vat?: number | null;
|
|
5986
|
+
unit_price?: number | null;
|
|
5987
|
+
vat_amount?: number | null;
|
|
5988
|
+
};
|
|
5989
|
+
Update: {
|
|
5990
|
+
booking_id?: string | null;
|
|
5991
|
+
company_name?: string | null;
|
|
5992
|
+
created_at?: string;
|
|
5993
|
+
customer_email?: string | null;
|
|
5994
|
+
description?: string | null;
|
|
5995
|
+
exact_article_id?: string | null;
|
|
5996
|
+
id?: string;
|
|
5997
|
+
invoice_run_id?: string | null;
|
|
5998
|
+
quantity?: number | null;
|
|
5999
|
+
total_excl_vat?: number | null;
|
|
6000
|
+
total_incl_vat?: number | null;
|
|
6001
|
+
unit_price?: number | null;
|
|
6002
|
+
vat_amount?: number | null;
|
|
6003
|
+
};
|
|
6004
|
+
Relationships: [{
|
|
6005
|
+
foreignKeyName: "invoice_run_items_booking_id_fkey";
|
|
6006
|
+
columns: ["booking_id"];
|
|
6007
|
+
isOneToOne: false;
|
|
6008
|
+
referencedRelation: "bookings";
|
|
6009
|
+
referencedColumns: ["id"];
|
|
6010
|
+
}, {
|
|
6011
|
+
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
6012
|
+
columns: ["invoice_run_id"];
|
|
6013
|
+
isOneToOne: false;
|
|
6014
|
+
referencedRelation: "invoice_runs";
|
|
6015
|
+
referencedColumns: ["id"];
|
|
6016
|
+
}];
|
|
6017
|
+
};
|
|
6018
|
+
invoice_runs: {
|
|
6019
|
+
Row: {
|
|
6020
|
+
created_at: string;
|
|
6021
|
+
created_by: string | null;
|
|
6022
|
+
id: string;
|
|
6023
|
+
period_end: string;
|
|
6024
|
+
period_start: string;
|
|
6025
|
+
status: string;
|
|
6026
|
+
total_excl_vat: number | null;
|
|
6027
|
+
total_incl_vat: number | null;
|
|
6028
|
+
vat_amount: number | null;
|
|
6029
|
+
};
|
|
6030
|
+
Insert: {
|
|
6031
|
+
created_at?: string;
|
|
6032
|
+
created_by?: string | null;
|
|
6033
|
+
id?: string;
|
|
6034
|
+
period_end: string;
|
|
6035
|
+
period_start: string;
|
|
6036
|
+
status?: string;
|
|
6037
|
+
total_excl_vat?: number | null;
|
|
6038
|
+
total_incl_vat?: number | null;
|
|
6039
|
+
vat_amount?: number | null;
|
|
6040
|
+
};
|
|
6041
|
+
Update: {
|
|
6042
|
+
created_at?: string;
|
|
6043
|
+
created_by?: string | null;
|
|
6044
|
+
id?: string;
|
|
6045
|
+
period_end?: string;
|
|
6046
|
+
period_start?: string;
|
|
6047
|
+
status?: string;
|
|
6048
|
+
total_excl_vat?: number | null;
|
|
6049
|
+
total_incl_vat?: number | null;
|
|
6050
|
+
vat_amount?: number | null;
|
|
6051
|
+
};
|
|
6052
|
+
Relationships: [];
|
|
6053
|
+
};
|
|
6054
|
+
itk_contact_persons: {
|
|
6055
|
+
Row: {
|
|
6056
|
+
created_at: string;
|
|
6057
|
+
customer_id: string;
|
|
6058
|
+
email: string | null;
|
|
6059
|
+
id: string;
|
|
6060
|
+
name: string;
|
|
6061
|
+
phone: string | null;
|
|
6062
|
+
role: string | null;
|
|
6063
|
+
updated_at: string;
|
|
6064
|
+
};
|
|
6065
|
+
Insert: {
|
|
6066
|
+
created_at?: string;
|
|
6067
|
+
customer_id: string;
|
|
6068
|
+
email?: string | null;
|
|
6069
|
+
id?: string;
|
|
6070
|
+
name: string;
|
|
6071
|
+
phone?: string | null;
|
|
6072
|
+
role?: string | null;
|
|
6073
|
+
updated_at?: string;
|
|
6074
|
+
};
|
|
6075
|
+
Update: {
|
|
6076
|
+
created_at?: string;
|
|
6077
|
+
customer_id?: string;
|
|
6078
|
+
email?: string | null;
|
|
6079
|
+
id?: string;
|
|
6080
|
+
name?: string;
|
|
6081
|
+
phone?: string | null;
|
|
6082
|
+
role?: string | null;
|
|
6083
|
+
updated_at?: string;
|
|
6084
|
+
};
|
|
6085
|
+
Relationships: [{
|
|
6086
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
6087
|
+
columns: ["customer_id"];
|
|
6088
|
+
isOneToOne: false;
|
|
6089
|
+
referencedRelation: "itk_customers";
|
|
6090
|
+
referencedColumns: ["id"];
|
|
6091
|
+
}];
|
|
6092
|
+
};
|
|
6093
|
+
itk_customer_dynamic_values: {
|
|
6094
|
+
Row: {
|
|
6095
|
+
created_at: string;
|
|
6096
|
+
customer_id: string;
|
|
6097
|
+
field_id: string;
|
|
6098
|
+
id: string;
|
|
6099
|
+
updated_at: string;
|
|
6100
|
+
value: string | null;
|
|
6101
|
+
};
|
|
6102
|
+
Insert: {
|
|
6103
|
+
created_at?: string;
|
|
6104
|
+
customer_id: string;
|
|
6105
|
+
field_id: string;
|
|
6106
|
+
id?: string;
|
|
6107
|
+
updated_at?: string;
|
|
6108
|
+
value?: string | null;
|
|
6109
|
+
};
|
|
6110
|
+
Update: {
|
|
6111
|
+
created_at?: string;
|
|
6112
|
+
customer_id?: string;
|
|
6113
|
+
field_id?: string;
|
|
6114
|
+
id?: string;
|
|
6115
|
+
updated_at?: string;
|
|
6116
|
+
value?: string | null;
|
|
6117
|
+
};
|
|
6118
|
+
Relationships: [{
|
|
6119
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
6120
|
+
columns: ["customer_id"];
|
|
6121
|
+
isOneToOne: false;
|
|
6122
|
+
referencedRelation: "itk_customers";
|
|
6123
|
+
referencedColumns: ["id"];
|
|
6124
|
+
}, {
|
|
6125
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6126
|
+
columns: ["field_id"];
|
|
6127
|
+
isOneToOne: false;
|
|
6128
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6129
|
+
referencedColumns: ["id"];
|
|
6130
|
+
}];
|
|
6131
|
+
};
|
|
6132
|
+
itk_customer_notes: {
|
|
6133
|
+
Row: {
|
|
6134
|
+
body: string;
|
|
6135
|
+
created_at: string;
|
|
6136
|
+
created_by: string | null;
|
|
6137
|
+
customer_id: string;
|
|
6138
|
+
id: string;
|
|
6139
|
+
note_type: string;
|
|
6140
|
+
updated_at: string;
|
|
6141
|
+
};
|
|
6142
|
+
Insert: {
|
|
6143
|
+
body: string;
|
|
6144
|
+
created_at?: string;
|
|
6145
|
+
created_by?: string | null;
|
|
6146
|
+
customer_id: string;
|
|
6147
|
+
id?: string;
|
|
6148
|
+
note_type?: string;
|
|
6149
|
+
updated_at?: string;
|
|
6150
|
+
};
|
|
6151
|
+
Update: {
|
|
6152
|
+
body?: string;
|
|
6153
|
+
created_at?: string;
|
|
6154
|
+
created_by?: string | null;
|
|
6155
|
+
customer_id?: string;
|
|
6156
|
+
id?: string;
|
|
6157
|
+
note_type?: string;
|
|
6158
|
+
updated_at?: string;
|
|
6159
|
+
};
|
|
6160
|
+
Relationships: [{
|
|
6161
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6162
|
+
columns: ["customer_id"];
|
|
6163
|
+
isOneToOne: false;
|
|
6164
|
+
referencedRelation: "itk_customers";
|
|
6165
|
+
referencedColumns: ["id"];
|
|
6166
|
+
}];
|
|
6167
|
+
};
|
|
6168
|
+
itk_customers: {
|
|
6169
|
+
Row: {
|
|
6170
|
+
billing_city: string | null;
|
|
6171
|
+
billing_postcode: string | null;
|
|
6172
|
+
billing_street: string | null;
|
|
6173
|
+
created_at: string;
|
|
6174
|
+
general_email: string | null;
|
|
6175
|
+
general_phone: string | null;
|
|
6176
|
+
id: string;
|
|
6177
|
+
legacy_customer_id: string | null;
|
|
6178
|
+
name: string;
|
|
6179
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6180
|
+
updated_at: string;
|
|
6181
|
+
};
|
|
6182
|
+
Insert: {
|
|
6183
|
+
billing_city?: string | null;
|
|
6184
|
+
billing_postcode?: string | null;
|
|
6185
|
+
billing_street?: string | null;
|
|
6186
|
+
created_at?: string;
|
|
6187
|
+
general_email?: string | null;
|
|
6188
|
+
general_phone?: string | null;
|
|
6189
|
+
id?: string;
|
|
6190
|
+
legacy_customer_id?: string | null;
|
|
6191
|
+
name: string;
|
|
6192
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6193
|
+
updated_at?: string;
|
|
6194
|
+
};
|
|
6195
|
+
Update: {
|
|
6196
|
+
billing_city?: string | null;
|
|
6197
|
+
billing_postcode?: string | null;
|
|
6198
|
+
billing_street?: string | null;
|
|
6199
|
+
created_at?: string;
|
|
6200
|
+
general_email?: string | null;
|
|
6201
|
+
general_phone?: string | null;
|
|
6202
|
+
id?: string;
|
|
6203
|
+
legacy_customer_id?: string | null;
|
|
6204
|
+
name?: string;
|
|
6205
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6206
|
+
updated_at?: string;
|
|
6207
|
+
};
|
|
6208
|
+
Relationships: [{
|
|
6209
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6210
|
+
columns: ["legacy_customer_id"];
|
|
6211
|
+
isOneToOne: false;
|
|
6212
|
+
referencedRelation: "customers";
|
|
6213
|
+
referencedColumns: ["id"];
|
|
6214
|
+
}];
|
|
6215
|
+
};
|
|
6216
|
+
itk_dynamic_fields: {
|
|
6217
|
+
Row: {
|
|
6218
|
+
created_at: string;
|
|
6219
|
+
field_name: string;
|
|
6220
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6221
|
+
id: string;
|
|
6222
|
+
options: import("../integrations/supabase/types").Json;
|
|
6223
|
+
sort_order: number;
|
|
6224
|
+
updated_at: string;
|
|
6225
|
+
};
|
|
6226
|
+
Insert: {
|
|
6227
|
+
created_at?: string;
|
|
6228
|
+
field_name: string;
|
|
6229
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6230
|
+
id?: string;
|
|
6231
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6232
|
+
sort_order?: number;
|
|
6233
|
+
updated_at?: string;
|
|
6234
|
+
};
|
|
6235
|
+
Update: {
|
|
6236
|
+
created_at?: string;
|
|
6237
|
+
field_name?: string;
|
|
6238
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6239
|
+
id?: string;
|
|
6240
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6241
|
+
sort_order?: number;
|
|
6242
|
+
updated_at?: string;
|
|
6243
|
+
};
|
|
6244
|
+
Relationships: [];
|
|
6245
|
+
};
|
|
6246
|
+
itk_work_locations: {
|
|
6247
|
+
Row: {
|
|
6248
|
+
city: string | null;
|
|
6249
|
+
created_at: string;
|
|
6250
|
+
customer_id: string;
|
|
6251
|
+
id: string;
|
|
6252
|
+
instructions: string | null;
|
|
6253
|
+
label: string;
|
|
6254
|
+
latitude: number | null;
|
|
6255
|
+
longitude: number | null;
|
|
6256
|
+
postcode: string | null;
|
|
6257
|
+
street: string | null;
|
|
6258
|
+
updated_at: string;
|
|
6259
|
+
};
|
|
6260
|
+
Insert: {
|
|
6261
|
+
city?: string | null;
|
|
5293
6262
|
created_at?: string;
|
|
5294
|
-
|
|
5295
|
-
description?: string | null;
|
|
5296
|
-
exact_article_id?: string | null;
|
|
6263
|
+
customer_id: string;
|
|
5297
6264
|
id?: string;
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
6265
|
+
instructions?: string | null;
|
|
6266
|
+
label: string;
|
|
6267
|
+
latitude?: number | null;
|
|
6268
|
+
longitude?: number | null;
|
|
6269
|
+
postcode?: string | null;
|
|
6270
|
+
street?: string | null;
|
|
6271
|
+
updated_at?: string;
|
|
5304
6272
|
};
|
|
5305
6273
|
Update: {
|
|
5306
|
-
|
|
5307
|
-
company_name?: string | null;
|
|
6274
|
+
city?: string | null;
|
|
5308
6275
|
created_at?: string;
|
|
5309
|
-
|
|
5310
|
-
description?: string | null;
|
|
5311
|
-
exact_article_id?: string | null;
|
|
6276
|
+
customer_id?: string;
|
|
5312
6277
|
id?: string;
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
6278
|
+
instructions?: string | null;
|
|
6279
|
+
label?: string;
|
|
6280
|
+
latitude?: number | null;
|
|
6281
|
+
longitude?: number | null;
|
|
6282
|
+
postcode?: string | null;
|
|
6283
|
+
street?: string | null;
|
|
6284
|
+
updated_at?: string;
|
|
5319
6285
|
};
|
|
5320
6286
|
Relationships: [{
|
|
5321
|
-
foreignKeyName: "
|
|
5322
|
-
columns: ["
|
|
5323
|
-
isOneToOne: false;
|
|
5324
|
-
referencedRelation: "bookings";
|
|
5325
|
-
referencedColumns: ["id"];
|
|
5326
|
-
}, {
|
|
5327
|
-
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
5328
|
-
columns: ["invoice_run_id"];
|
|
6287
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6288
|
+
columns: ["customer_id"];
|
|
5329
6289
|
isOneToOne: false;
|
|
5330
|
-
referencedRelation: "
|
|
6290
|
+
referencedRelation: "itk_customers";
|
|
5331
6291
|
referencedColumns: ["id"];
|
|
5332
6292
|
}];
|
|
5333
6293
|
};
|
|
5334
|
-
|
|
6294
|
+
leave_requests: {
|
|
5335
6295
|
Row: {
|
|
5336
6296
|
created_at: string;
|
|
5337
|
-
|
|
6297
|
+
end_date: string;
|
|
5338
6298
|
id: string;
|
|
5339
|
-
|
|
5340
|
-
|
|
6299
|
+
reason: string | null;
|
|
6300
|
+
start_date: string;
|
|
5341
6301
|
status: string;
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
6302
|
+
tenant_id: string;
|
|
6303
|
+
updated_at: string;
|
|
6304
|
+
user_id: string;
|
|
5345
6305
|
};
|
|
5346
6306
|
Insert: {
|
|
5347
6307
|
created_at?: string;
|
|
5348
|
-
|
|
6308
|
+
end_date: string;
|
|
5349
6309
|
id?: string;
|
|
5350
|
-
|
|
5351
|
-
|
|
6310
|
+
reason?: string | null;
|
|
6311
|
+
start_date: string;
|
|
5352
6312
|
status?: string;
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
6313
|
+
tenant_id?: string;
|
|
6314
|
+
updated_at?: string;
|
|
6315
|
+
user_id: string;
|
|
5356
6316
|
};
|
|
5357
6317
|
Update: {
|
|
5358
6318
|
created_at?: string;
|
|
5359
|
-
|
|
6319
|
+
end_date?: string;
|
|
5360
6320
|
id?: string;
|
|
5361
|
-
|
|
5362
|
-
|
|
6321
|
+
reason?: string | null;
|
|
6322
|
+
start_date?: string;
|
|
5363
6323
|
status?: string;
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
6324
|
+
tenant_id?: string;
|
|
6325
|
+
updated_at?: string;
|
|
6326
|
+
user_id?: string;
|
|
5367
6327
|
};
|
|
5368
|
-
Relationships: [
|
|
6328
|
+
Relationships: [{
|
|
6329
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6330
|
+
columns: ["user_id"];
|
|
6331
|
+
isOneToOne: false;
|
|
6332
|
+
referencedRelation: "monteurs";
|
|
6333
|
+
referencedColumns: ["id"];
|
|
6334
|
+
}];
|
|
5369
6335
|
};
|
|
5370
6336
|
local_customer_agreements: {
|
|
5371
6337
|
Row: {
|
|
@@ -6018,6 +6984,33 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
6018
6984
|
};
|
|
6019
6985
|
Relationships: [];
|
|
6020
6986
|
};
|
|
6987
|
+
module_permissions: {
|
|
6988
|
+
Row: {
|
|
6989
|
+
created_at: string;
|
|
6990
|
+
id: string;
|
|
6991
|
+
module_id: string;
|
|
6992
|
+
permission: string;
|
|
6993
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
6994
|
+
updated_at: string;
|
|
6995
|
+
};
|
|
6996
|
+
Insert: {
|
|
6997
|
+
created_at?: string;
|
|
6998
|
+
id?: string;
|
|
6999
|
+
module_id: string;
|
|
7000
|
+
permission: string;
|
|
7001
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7002
|
+
updated_at?: string;
|
|
7003
|
+
};
|
|
7004
|
+
Update: {
|
|
7005
|
+
created_at?: string;
|
|
7006
|
+
id?: string;
|
|
7007
|
+
module_id?: string;
|
|
7008
|
+
permission?: string;
|
|
7009
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7010
|
+
updated_at?: string;
|
|
7011
|
+
};
|
|
7012
|
+
Relationships: [];
|
|
7013
|
+
};
|
|
6021
7014
|
monteurs: {
|
|
6022
7015
|
Row: {
|
|
6023
7016
|
avatar_url: string | null;
|
|
@@ -6747,6 +7740,42 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
6747
7740
|
};
|
|
6748
7741
|
Relationships: [];
|
|
6749
7742
|
};
|
|
7743
|
+
order_buffers: {
|
|
7744
|
+
Row: {
|
|
7745
|
+
buffer_key: string;
|
|
7746
|
+
created_at: string;
|
|
7747
|
+
customer_id: string | null;
|
|
7748
|
+
grouping_mode: string;
|
|
7749
|
+
id: string;
|
|
7750
|
+
pickup_date: string | null;
|
|
7751
|
+
pickup_location: string | null;
|
|
7752
|
+
plan_locked_at: string | null;
|
|
7753
|
+
updated_at: string;
|
|
7754
|
+
};
|
|
7755
|
+
Insert: {
|
|
7756
|
+
buffer_key: string;
|
|
7757
|
+
created_at?: string;
|
|
7758
|
+
customer_id?: string | null;
|
|
7759
|
+
grouping_mode: string;
|
|
7760
|
+
id?: string;
|
|
7761
|
+
pickup_date?: string | null;
|
|
7762
|
+
pickup_location?: string | null;
|
|
7763
|
+
plan_locked_at?: string | null;
|
|
7764
|
+
updated_at?: string;
|
|
7765
|
+
};
|
|
7766
|
+
Update: {
|
|
7767
|
+
buffer_key?: string;
|
|
7768
|
+
created_at?: string;
|
|
7769
|
+
customer_id?: string | null;
|
|
7770
|
+
grouping_mode?: string;
|
|
7771
|
+
id?: string;
|
|
7772
|
+
pickup_date?: string | null;
|
|
7773
|
+
pickup_location?: string | null;
|
|
7774
|
+
plan_locked_at?: string | null;
|
|
7775
|
+
updated_at?: string;
|
|
7776
|
+
};
|
|
7777
|
+
Relationships: [];
|
|
7778
|
+
};
|
|
6750
7779
|
order_cart_items: {
|
|
6751
7780
|
Row: {
|
|
6752
7781
|
cart_id: string;
|
|
@@ -6813,6 +7842,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
6813
7842
|
order_carts: {
|
|
6814
7843
|
Row: {
|
|
6815
7844
|
algorithm_version: number;
|
|
7845
|
+
buffer_id: string | null;
|
|
6816
7846
|
cart_number: number;
|
|
6817
7847
|
created_at: string;
|
|
6818
7848
|
id: string;
|
|
@@ -6820,13 +7850,14 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
6820
7850
|
is_complete: boolean;
|
|
6821
7851
|
notes: string | null;
|
|
6822
7852
|
occupancy_pct: number;
|
|
6823
|
-
order_id: string;
|
|
7853
|
+
order_id: string | null;
|
|
6824
7854
|
source: string;
|
|
6825
7855
|
total_layers_used: number;
|
|
6826
7856
|
updated_at: string;
|
|
6827
7857
|
};
|
|
6828
7858
|
Insert: {
|
|
6829
7859
|
algorithm_version?: number;
|
|
7860
|
+
buffer_id?: string | null;
|
|
6830
7861
|
cart_number: number;
|
|
6831
7862
|
created_at?: string;
|
|
6832
7863
|
id?: string;
|
|
@@ -6834,13 +7865,14 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
6834
7865
|
is_complete?: boolean;
|
|
6835
7866
|
notes?: string | null;
|
|
6836
7867
|
occupancy_pct?: number;
|
|
6837
|
-
order_id
|
|
7868
|
+
order_id?: string | null;
|
|
6838
7869
|
source?: string;
|
|
6839
7870
|
total_layers_used?: number;
|
|
6840
7871
|
updated_at?: string;
|
|
6841
7872
|
};
|
|
6842
7873
|
Update: {
|
|
6843
7874
|
algorithm_version?: number;
|
|
7875
|
+
buffer_id?: string | null;
|
|
6844
7876
|
cart_number?: number;
|
|
6845
7877
|
created_at?: string;
|
|
6846
7878
|
id?: string;
|
|
@@ -6848,12 +7880,18 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
6848
7880
|
is_complete?: boolean;
|
|
6849
7881
|
notes?: string | null;
|
|
6850
7882
|
occupancy_pct?: number;
|
|
6851
|
-
order_id?: string;
|
|
7883
|
+
order_id?: string | null;
|
|
6852
7884
|
source?: string;
|
|
6853
7885
|
total_layers_used?: number;
|
|
6854
7886
|
updated_at?: string;
|
|
6855
7887
|
};
|
|
6856
7888
|
Relationships: [{
|
|
7889
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7890
|
+
columns: ["buffer_id"];
|
|
7891
|
+
isOneToOne: false;
|
|
7892
|
+
referencedRelation: "order_buffers";
|
|
7893
|
+
referencedColumns: ["id"];
|
|
7894
|
+
}, {
|
|
6857
7895
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
6858
7896
|
columns: ["order_id"];
|
|
6859
7897
|
isOneToOne: false;
|
|
@@ -6990,15 +8028,117 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
6990
8028
|
};
|
|
6991
8029
|
Relationships: [];
|
|
6992
8030
|
};
|
|
8031
|
+
order_shipment_items: {
|
|
8032
|
+
Row: {
|
|
8033
|
+
created_at: string;
|
|
8034
|
+
id: string;
|
|
8035
|
+
order_item_id: string;
|
|
8036
|
+
product_id: string | null;
|
|
8037
|
+
product_name: string;
|
|
8038
|
+
quantity: number;
|
|
8039
|
+
shipment_id: string;
|
|
8040
|
+
updated_at: string;
|
|
8041
|
+
};
|
|
8042
|
+
Insert: {
|
|
8043
|
+
created_at?: string;
|
|
8044
|
+
id?: string;
|
|
8045
|
+
order_item_id: string;
|
|
8046
|
+
product_id?: string | null;
|
|
8047
|
+
product_name: string;
|
|
8048
|
+
quantity: number;
|
|
8049
|
+
shipment_id: string;
|
|
8050
|
+
updated_at?: string;
|
|
8051
|
+
};
|
|
8052
|
+
Update: {
|
|
8053
|
+
created_at?: string;
|
|
8054
|
+
id?: string;
|
|
8055
|
+
order_item_id?: string;
|
|
8056
|
+
product_id?: string | null;
|
|
8057
|
+
product_name?: string;
|
|
8058
|
+
quantity?: number;
|
|
8059
|
+
shipment_id?: string;
|
|
8060
|
+
updated_at?: string;
|
|
8061
|
+
};
|
|
8062
|
+
Relationships: [{
|
|
8063
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
8064
|
+
columns: ["order_item_id"];
|
|
8065
|
+
isOneToOne: false;
|
|
8066
|
+
referencedRelation: "order_items";
|
|
8067
|
+
referencedColumns: ["id"];
|
|
8068
|
+
}, {
|
|
8069
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
8070
|
+
columns: ["shipment_id"];
|
|
8071
|
+
isOneToOne: false;
|
|
8072
|
+
referencedRelation: "order_shipments";
|
|
8073
|
+
referencedColumns: ["id"];
|
|
8074
|
+
}];
|
|
8075
|
+
};
|
|
8076
|
+
order_shipments: {
|
|
8077
|
+
Row: {
|
|
8078
|
+
carrier_id: string | null;
|
|
8079
|
+
created_at: string;
|
|
8080
|
+
delivery_date: string | null;
|
|
8081
|
+
delivery_location_id: string | null;
|
|
8082
|
+
id: string;
|
|
8083
|
+
notes: string | null;
|
|
8084
|
+
order_id: string;
|
|
8085
|
+
shipment_number: number;
|
|
8086
|
+
shipped_at: string | null;
|
|
8087
|
+
status: string;
|
|
8088
|
+
updated_at: string;
|
|
8089
|
+
};
|
|
8090
|
+
Insert: {
|
|
8091
|
+
carrier_id?: string | null;
|
|
8092
|
+
created_at?: string;
|
|
8093
|
+
delivery_date?: string | null;
|
|
8094
|
+
delivery_location_id?: string | null;
|
|
8095
|
+
id?: string;
|
|
8096
|
+
notes?: string | null;
|
|
8097
|
+
order_id: string;
|
|
8098
|
+
shipment_number: number;
|
|
8099
|
+
shipped_at?: string | null;
|
|
8100
|
+
status?: string;
|
|
8101
|
+
updated_at?: string;
|
|
8102
|
+
};
|
|
8103
|
+
Update: {
|
|
8104
|
+
carrier_id?: string | null;
|
|
8105
|
+
created_at?: string;
|
|
8106
|
+
delivery_date?: string | null;
|
|
8107
|
+
delivery_location_id?: string | null;
|
|
8108
|
+
id?: string;
|
|
8109
|
+
notes?: string | null;
|
|
8110
|
+
order_id?: string;
|
|
8111
|
+
shipment_number?: number;
|
|
8112
|
+
shipped_at?: string | null;
|
|
8113
|
+
status?: string;
|
|
8114
|
+
updated_at?: string;
|
|
8115
|
+
};
|
|
8116
|
+
Relationships: [{
|
|
8117
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
8118
|
+
columns: ["carrier_id"];
|
|
8119
|
+
isOneToOne: false;
|
|
8120
|
+
referencedRelation: "carriers";
|
|
8121
|
+
referencedColumns: ["id"];
|
|
8122
|
+
}, {
|
|
8123
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
8124
|
+
columns: ["order_id"];
|
|
8125
|
+
isOneToOne: false;
|
|
8126
|
+
referencedRelation: "orders";
|
|
8127
|
+
referencedColumns: ["id"];
|
|
8128
|
+
}];
|
|
8129
|
+
};
|
|
6993
8130
|
orders: {
|
|
6994
8131
|
Row: {
|
|
8132
|
+
buffer_id: string | null;
|
|
6995
8133
|
created_at: string;
|
|
6996
8134
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
6997
8135
|
customer_id: string | null;
|
|
6998
8136
|
customer_name: string;
|
|
6999
8137
|
deleted_at: string | null;
|
|
7000
|
-
delivery_date: string;
|
|
8138
|
+
delivery_date: string | null;
|
|
8139
|
+
floriday_sales_order_id: string | null;
|
|
7001
8140
|
id: string;
|
|
8141
|
+
is_reservation: boolean;
|
|
7002
8142
|
notes: string | null;
|
|
7003
8143
|
order_date: string;
|
|
7004
8144
|
order_number: string;
|
|
@@ -7010,13 +8150,16 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7010
8150
|
updated_at: string;
|
|
7011
8151
|
};
|
|
7012
8152
|
Insert: {
|
|
8153
|
+
buffer_id?: string | null;
|
|
7013
8154
|
created_at?: string;
|
|
7014
8155
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7015
8156
|
customer_id?: string | null;
|
|
7016
8157
|
customer_name?: string;
|
|
7017
8158
|
deleted_at?: string | null;
|
|
7018
|
-
delivery_date
|
|
8159
|
+
delivery_date?: string | null;
|
|
8160
|
+
floriday_sales_order_id?: string | null;
|
|
7019
8161
|
id?: string;
|
|
8162
|
+
is_reservation?: boolean;
|
|
7020
8163
|
notes?: string | null;
|
|
7021
8164
|
order_date?: string;
|
|
7022
8165
|
order_number: string;
|
|
@@ -7028,13 +8171,16 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7028
8171
|
updated_at?: string;
|
|
7029
8172
|
};
|
|
7030
8173
|
Update: {
|
|
8174
|
+
buffer_id?: string | null;
|
|
7031
8175
|
created_at?: string;
|
|
7032
8176
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7033
8177
|
customer_id?: string | null;
|
|
7034
8178
|
customer_name?: string;
|
|
7035
8179
|
deleted_at?: string | null;
|
|
7036
|
-
delivery_date?: string;
|
|
8180
|
+
delivery_date?: string | null;
|
|
8181
|
+
floriday_sales_order_id?: string | null;
|
|
7037
8182
|
id?: string;
|
|
8183
|
+
is_reservation?: boolean;
|
|
7038
8184
|
notes?: string | null;
|
|
7039
8185
|
order_date?: string;
|
|
7040
8186
|
order_number?: string;
|
|
@@ -7046,6 +8192,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7046
8192
|
updated_at?: string;
|
|
7047
8193
|
};
|
|
7048
8194
|
Relationships: [{
|
|
8195
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8196
|
+
columns: ["buffer_id"];
|
|
8197
|
+
isOneToOne: false;
|
|
8198
|
+
referencedRelation: "order_buffers";
|
|
8199
|
+
referencedColumns: ["id"];
|
|
8200
|
+
}, {
|
|
7049
8201
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7050
8202
|
columns: ["customer_id"];
|
|
7051
8203
|
isOneToOne: false;
|
|
@@ -7309,6 +8461,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7309
8461
|
Row: {
|
|
7310
8462
|
created_at: string;
|
|
7311
8463
|
description: string | null;
|
|
8464
|
+
head_product_id: string | null;
|
|
8465
|
+
head_trade_item_floriday_id: string | null;
|
|
7312
8466
|
id: string;
|
|
7313
8467
|
is_active: boolean;
|
|
7314
8468
|
name: string;
|
|
@@ -7318,6 +8472,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7318
8472
|
Insert: {
|
|
7319
8473
|
created_at?: string;
|
|
7320
8474
|
description?: string | null;
|
|
8475
|
+
head_product_id?: string | null;
|
|
8476
|
+
head_trade_item_floriday_id?: string | null;
|
|
7321
8477
|
id?: string;
|
|
7322
8478
|
is_active?: boolean;
|
|
7323
8479
|
name: string;
|
|
@@ -7327,13 +8483,21 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7327
8483
|
Update: {
|
|
7328
8484
|
created_at?: string;
|
|
7329
8485
|
description?: string | null;
|
|
8486
|
+
head_product_id?: string | null;
|
|
8487
|
+
head_trade_item_floriday_id?: string | null;
|
|
7330
8488
|
id?: string;
|
|
7331
8489
|
is_active?: boolean;
|
|
7332
8490
|
name?: string;
|
|
7333
8491
|
tenant_id?: string;
|
|
7334
8492
|
updated_at?: string;
|
|
7335
8493
|
};
|
|
7336
|
-
Relationships: [
|
|
8494
|
+
Relationships: [{
|
|
8495
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8496
|
+
columns: ["head_product_id"];
|
|
8497
|
+
isOneToOne: false;
|
|
8498
|
+
referencedRelation: "products";
|
|
8499
|
+
referencedColumns: ["id"];
|
|
8500
|
+
}];
|
|
7337
8501
|
};
|
|
7338
8502
|
products: {
|
|
7339
8503
|
Row: {
|
|
@@ -8418,18 +9582,39 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
8418
9582
|
updated_at?: string;
|
|
8419
9583
|
};
|
|
8420
9584
|
Update: {
|
|
8421
|
-
address?: string | null;
|
|
8422
|
-
column_mappings?: import("../integrations/supabase/types").Json | null;
|
|
8423
|
-
contact_person?: string | null;
|
|
9585
|
+
address?: string | null;
|
|
9586
|
+
column_mappings?: import("../integrations/supabase/types").Json | null;
|
|
9587
|
+
contact_person?: string | null;
|
|
9588
|
+
created_at?: string;
|
|
9589
|
+
default_product_type?: string;
|
|
9590
|
+
email?: string | null;
|
|
9591
|
+
id?: string;
|
|
9592
|
+
imported_file_name?: string | null;
|
|
9593
|
+
name?: string;
|
|
9594
|
+
notes?: string | null;
|
|
9595
|
+
phone?: string | null;
|
|
9596
|
+
updated_at?: string;
|
|
9597
|
+
};
|
|
9598
|
+
Relationships: [];
|
|
9599
|
+
};
|
|
9600
|
+
technician_rates: {
|
|
9601
|
+
Row: {
|
|
9602
|
+
created_at: string;
|
|
9603
|
+
hourly_rate_cents: number;
|
|
9604
|
+
updated_at: string;
|
|
9605
|
+
user_id: string;
|
|
9606
|
+
};
|
|
9607
|
+
Insert: {
|
|
9608
|
+
created_at?: string;
|
|
9609
|
+
hourly_rate_cents?: number;
|
|
9610
|
+
updated_at?: string;
|
|
9611
|
+
user_id: string;
|
|
9612
|
+
};
|
|
9613
|
+
Update: {
|
|
8424
9614
|
created_at?: string;
|
|
8425
|
-
|
|
8426
|
-
email?: string | null;
|
|
8427
|
-
id?: string;
|
|
8428
|
-
imported_file_name?: string | null;
|
|
8429
|
-
name?: string;
|
|
8430
|
-
notes?: string | null;
|
|
8431
|
-
phone?: string | null;
|
|
9615
|
+
hourly_rate_cents?: number;
|
|
8432
9616
|
updated_at?: string;
|
|
9617
|
+
user_id?: string;
|
|
8433
9618
|
};
|
|
8434
9619
|
Relationships: [];
|
|
8435
9620
|
};
|
|
@@ -8902,6 +10087,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
8902
10087
|
country: string | null;
|
|
8903
10088
|
created_at: string;
|
|
8904
10089
|
email: string | null;
|
|
10090
|
+
external_group_key: string | null;
|
|
8905
10091
|
id: string;
|
|
8906
10092
|
last_synced_at: string | null;
|
|
8907
10093
|
name: string;
|
|
@@ -8920,6 +10106,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
8920
10106
|
country?: string | null;
|
|
8921
10107
|
created_at?: string;
|
|
8922
10108
|
email?: string | null;
|
|
10109
|
+
external_group_key?: string | null;
|
|
8923
10110
|
id?: string;
|
|
8924
10111
|
last_synced_at?: string | null;
|
|
8925
10112
|
name: string;
|
|
@@ -8938,6 +10125,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
8938
10125
|
country?: string | null;
|
|
8939
10126
|
created_at?: string;
|
|
8940
10127
|
email?: string | null;
|
|
10128
|
+
external_group_key?: string | null;
|
|
8941
10129
|
id?: string;
|
|
8942
10130
|
last_synced_at?: string | null;
|
|
8943
10131
|
name?: string;
|
|
@@ -9102,6 +10290,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9102
10290
|
twinfield_invoice_settings: {
|
|
9103
10291
|
Row: {
|
|
9104
10292
|
created_at: string;
|
|
10293
|
+
debtor_gl_account: string;
|
|
10294
|
+
default_credit_invoice_type: string | null;
|
|
9105
10295
|
default_gl_account: string;
|
|
9106
10296
|
default_invoice_type: string;
|
|
9107
10297
|
default_payment_term_days: number;
|
|
@@ -9110,11 +10300,15 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9110
10300
|
invoice_enabled_fo: boolean;
|
|
9111
10301
|
invoice_enabled_ho: boolean;
|
|
9112
10302
|
invoice_enabled_mo: boolean;
|
|
10303
|
+
payment_gl_account: string;
|
|
10304
|
+
payment_journal_code: string;
|
|
9113
10305
|
updated_at: string;
|
|
9114
10306
|
user_id: string;
|
|
9115
10307
|
};
|
|
9116
10308
|
Insert: {
|
|
9117
10309
|
created_at?: string;
|
|
10310
|
+
debtor_gl_account?: string;
|
|
10311
|
+
default_credit_invoice_type?: string | null;
|
|
9118
10312
|
default_gl_account?: string;
|
|
9119
10313
|
default_invoice_type?: string;
|
|
9120
10314
|
default_payment_term_days?: number;
|
|
@@ -9123,11 +10317,15 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9123
10317
|
invoice_enabled_fo?: boolean;
|
|
9124
10318
|
invoice_enabled_ho?: boolean;
|
|
9125
10319
|
invoice_enabled_mo?: boolean;
|
|
10320
|
+
payment_gl_account?: string;
|
|
10321
|
+
payment_journal_code?: string;
|
|
9126
10322
|
updated_at?: string;
|
|
9127
10323
|
user_id: string;
|
|
9128
10324
|
};
|
|
9129
10325
|
Update: {
|
|
9130
10326
|
created_at?: string;
|
|
10327
|
+
debtor_gl_account?: string;
|
|
10328
|
+
default_credit_invoice_type?: string | null;
|
|
9131
10329
|
default_gl_account?: string;
|
|
9132
10330
|
default_invoice_type?: string;
|
|
9133
10331
|
default_payment_term_days?: number;
|
|
@@ -9136,6 +10334,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9136
10334
|
invoice_enabled_fo?: boolean;
|
|
9137
10335
|
invoice_enabled_ho?: boolean;
|
|
9138
10336
|
invoice_enabled_mo?: boolean;
|
|
10337
|
+
payment_gl_account?: string;
|
|
10338
|
+
payment_journal_code?: string;
|
|
9139
10339
|
updated_at?: string;
|
|
9140
10340
|
user_id?: string;
|
|
9141
10341
|
};
|
|
@@ -9356,43 +10556,49 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9356
10556
|
};
|
|
9357
10557
|
twinfield_push_queue: {
|
|
9358
10558
|
Row: {
|
|
10559
|
+
action: string;
|
|
9359
10560
|
attempts: number;
|
|
9360
10561
|
connection_id: string;
|
|
9361
10562
|
created_at: string;
|
|
10563
|
+
customer_id: string | null;
|
|
9362
10564
|
external_id: string | null;
|
|
9363
10565
|
id: string;
|
|
9364
10566
|
idempotency_key: string;
|
|
9365
10567
|
last_error: string | null;
|
|
9366
10568
|
next_attempt_at: string;
|
|
9367
|
-
office_code: string;
|
|
10569
|
+
office_code: string | null;
|
|
9368
10570
|
payload: import("../integrations/supabase/types").Json;
|
|
9369
10571
|
status: string;
|
|
9370
10572
|
updated_at: string;
|
|
9371
10573
|
};
|
|
9372
10574
|
Insert: {
|
|
10575
|
+
action?: string;
|
|
9373
10576
|
attempts?: number;
|
|
9374
10577
|
connection_id: string;
|
|
9375
10578
|
created_at?: string;
|
|
10579
|
+
customer_id?: string | null;
|
|
9376
10580
|
external_id?: string | null;
|
|
9377
10581
|
id?: string;
|
|
9378
10582
|
idempotency_key: string;
|
|
9379
10583
|
last_error?: string | null;
|
|
9380
10584
|
next_attempt_at?: string;
|
|
9381
|
-
office_code
|
|
10585
|
+
office_code?: string | null;
|
|
9382
10586
|
payload: import("../integrations/supabase/types").Json;
|
|
9383
10587
|
status?: string;
|
|
9384
10588
|
updated_at?: string;
|
|
9385
10589
|
};
|
|
9386
10590
|
Update: {
|
|
10591
|
+
action?: string;
|
|
9387
10592
|
attempts?: number;
|
|
9388
10593
|
connection_id?: string;
|
|
9389
10594
|
created_at?: string;
|
|
10595
|
+
customer_id?: string | null;
|
|
9390
10596
|
external_id?: string | null;
|
|
9391
10597
|
id?: string;
|
|
9392
10598
|
idempotency_key?: string;
|
|
9393
10599
|
last_error?: string | null;
|
|
9394
10600
|
next_attempt_at?: string;
|
|
9395
|
-
office_code?: string;
|
|
10601
|
+
office_code?: string | null;
|
|
9396
10602
|
payload?: import("../integrations/supabase/types").Json;
|
|
9397
10603
|
status?: string;
|
|
9398
10604
|
updated_at?: string;
|
|
@@ -9403,6 +10609,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9403
10609
|
isOneToOne: false;
|
|
9404
10610
|
referencedRelation: "twinfield_connections";
|
|
9405
10611
|
referencedColumns: ["id"];
|
|
10612
|
+
}, {
|
|
10613
|
+
foreignKeyName: "twinfield_push_queue_customer_id_fkey";
|
|
10614
|
+
columns: ["customer_id"];
|
|
10615
|
+
isOneToOne: false;
|
|
10616
|
+
referencedRelation: "customers";
|
|
10617
|
+
referencedColumns: ["id"];
|
|
9406
10618
|
}];
|
|
9407
10619
|
};
|
|
9408
10620
|
twinfield_request_metrics: {
|
|
@@ -9678,6 +10890,252 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9678
10890
|
};
|
|
9679
10891
|
Relationships: [];
|
|
9680
10892
|
};
|
|
10893
|
+
werkbon_package_lines: {
|
|
10894
|
+
Row: {
|
|
10895
|
+
created_at: string;
|
|
10896
|
+
created_by: string | null;
|
|
10897
|
+
id: string;
|
|
10898
|
+
package_id: string;
|
|
10899
|
+
quantity: number;
|
|
10900
|
+
unit_price_cents_snapshot: number;
|
|
10901
|
+
werkbon_id: string;
|
|
10902
|
+
};
|
|
10903
|
+
Insert: {
|
|
10904
|
+
created_at?: string;
|
|
10905
|
+
created_by?: string | null;
|
|
10906
|
+
id?: string;
|
|
10907
|
+
package_id: string;
|
|
10908
|
+
quantity?: number;
|
|
10909
|
+
unit_price_cents_snapshot?: number;
|
|
10910
|
+
werkbon_id: string;
|
|
10911
|
+
};
|
|
10912
|
+
Update: {
|
|
10913
|
+
created_at?: string;
|
|
10914
|
+
created_by?: string | null;
|
|
10915
|
+
id?: string;
|
|
10916
|
+
package_id?: string;
|
|
10917
|
+
quantity?: number;
|
|
10918
|
+
unit_price_cents_snapshot?: number;
|
|
10919
|
+
werkbon_id?: string;
|
|
10920
|
+
};
|
|
10921
|
+
Relationships: [{
|
|
10922
|
+
foreignKeyName: "werkbon_package_lines_package_id_fkey";
|
|
10923
|
+
columns: ["package_id"];
|
|
10924
|
+
isOneToOne: false;
|
|
10925
|
+
referencedRelation: "werkbon_packages";
|
|
10926
|
+
referencedColumns: ["id"];
|
|
10927
|
+
}, {
|
|
10928
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
10929
|
+
columns: ["werkbon_id"];
|
|
10930
|
+
isOneToOne: false;
|
|
10931
|
+
referencedRelation: "werkbonnen";
|
|
10932
|
+
referencedColumns: ["id"];
|
|
10933
|
+
}];
|
|
10934
|
+
};
|
|
10935
|
+
werkbon_packages: {
|
|
10936
|
+
Row: {
|
|
10937
|
+
active: boolean;
|
|
10938
|
+
code: string;
|
|
10939
|
+
created_at: string;
|
|
10940
|
+
default_quantity: number;
|
|
10941
|
+
description: string | null;
|
|
10942
|
+
id: string;
|
|
10943
|
+
name: string;
|
|
10944
|
+
unit_price_cents: number;
|
|
10945
|
+
updated_at: string;
|
|
10946
|
+
};
|
|
10947
|
+
Insert: {
|
|
10948
|
+
active?: boolean;
|
|
10949
|
+
code: string;
|
|
10950
|
+
created_at?: string;
|
|
10951
|
+
default_quantity?: number;
|
|
10952
|
+
description?: string | null;
|
|
10953
|
+
id?: string;
|
|
10954
|
+
name: string;
|
|
10955
|
+
unit_price_cents?: number;
|
|
10956
|
+
updated_at?: string;
|
|
10957
|
+
};
|
|
10958
|
+
Update: {
|
|
10959
|
+
active?: boolean;
|
|
10960
|
+
code?: string;
|
|
10961
|
+
created_at?: string;
|
|
10962
|
+
default_quantity?: number;
|
|
10963
|
+
description?: string | null;
|
|
10964
|
+
id?: string;
|
|
10965
|
+
name?: string;
|
|
10966
|
+
unit_price_cents?: number;
|
|
10967
|
+
updated_at?: string;
|
|
10968
|
+
};
|
|
10969
|
+
Relationships: [];
|
|
10970
|
+
};
|
|
10971
|
+
werkbon_photos: {
|
|
10972
|
+
Row: {
|
|
10973
|
+
created_at: string;
|
|
10974
|
+
id: string;
|
|
10975
|
+
storage_path: string;
|
|
10976
|
+
user_id: string;
|
|
10977
|
+
werkbon_id: string;
|
|
10978
|
+
};
|
|
10979
|
+
Insert: {
|
|
10980
|
+
created_at?: string;
|
|
10981
|
+
id?: string;
|
|
10982
|
+
storage_path: string;
|
|
10983
|
+
user_id: string;
|
|
10984
|
+
werkbon_id: string;
|
|
10985
|
+
};
|
|
10986
|
+
Update: {
|
|
10987
|
+
created_at?: string;
|
|
10988
|
+
id?: string;
|
|
10989
|
+
storage_path?: string;
|
|
10990
|
+
user_id?: string;
|
|
10991
|
+
werkbon_id?: string;
|
|
10992
|
+
};
|
|
10993
|
+
Relationships: [{
|
|
10994
|
+
foreignKeyName: "werkbon_photos_werkbon_id_fkey";
|
|
10995
|
+
columns: ["werkbon_id"];
|
|
10996
|
+
isOneToOne: false;
|
|
10997
|
+
referencedRelation: "werkbonnen";
|
|
10998
|
+
referencedColumns: ["id"];
|
|
10999
|
+
}];
|
|
11000
|
+
};
|
|
11001
|
+
werkbon_time_logs: {
|
|
11002
|
+
Row: {
|
|
11003
|
+
activity: string;
|
|
11004
|
+
created_at: string;
|
|
11005
|
+
ended_at: string | null;
|
|
11006
|
+
id: string;
|
|
11007
|
+
started_at: string;
|
|
11008
|
+
user_id: string;
|
|
11009
|
+
werkbon_id: string;
|
|
11010
|
+
};
|
|
11011
|
+
Insert: {
|
|
11012
|
+
activity: string;
|
|
11013
|
+
created_at?: string;
|
|
11014
|
+
ended_at?: string | null;
|
|
11015
|
+
id?: string;
|
|
11016
|
+
started_at?: string;
|
|
11017
|
+
user_id: string;
|
|
11018
|
+
werkbon_id: string;
|
|
11019
|
+
};
|
|
11020
|
+
Update: {
|
|
11021
|
+
activity?: string;
|
|
11022
|
+
created_at?: string;
|
|
11023
|
+
ended_at?: string | null;
|
|
11024
|
+
id?: string;
|
|
11025
|
+
started_at?: string;
|
|
11026
|
+
user_id?: string;
|
|
11027
|
+
werkbon_id?: string;
|
|
11028
|
+
};
|
|
11029
|
+
Relationships: [{
|
|
11030
|
+
foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
|
|
11031
|
+
columns: ["werkbon_id"];
|
|
11032
|
+
isOneToOne: false;
|
|
11033
|
+
referencedRelation: "werkbonnen";
|
|
11034
|
+
referencedColumns: ["id"];
|
|
11035
|
+
}];
|
|
11036
|
+
};
|
|
11037
|
+
werkbonnen: {
|
|
11038
|
+
Row: {
|
|
11039
|
+
assigned_user_id: string | null;
|
|
11040
|
+
budget_mandate_cents: number;
|
|
11041
|
+
complaint_description: string | null;
|
|
11042
|
+
created_at: string;
|
|
11043
|
+
created_by: string | null;
|
|
11044
|
+
customer_id: string | null;
|
|
11045
|
+
externe_referentie: string | null;
|
|
11046
|
+
first_time_fix: boolean | null;
|
|
11047
|
+
id: string;
|
|
11048
|
+
internal_notes: string | null;
|
|
11049
|
+
parent_werkbon_id: string | null;
|
|
11050
|
+
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
11051
|
+
planning_status: string;
|
|
11052
|
+
project_number: string | null;
|
|
11053
|
+
room_number: string | null;
|
|
11054
|
+
scheduled_end_time: string | null;
|
|
11055
|
+
scheduled_start_time: string | null;
|
|
11056
|
+
sequence_number: number;
|
|
11057
|
+
source_pdf_path: string | null;
|
|
11058
|
+
status: string;
|
|
11059
|
+
technician_id: string | null;
|
|
11060
|
+
technician_notes: string | null;
|
|
11061
|
+
technician_notes_raw: string | null;
|
|
11062
|
+
technician_task_description: string | null;
|
|
11063
|
+
updated_at: string;
|
|
11064
|
+
version: number;
|
|
11065
|
+
work_address: string | null;
|
|
11066
|
+
};
|
|
11067
|
+
Insert: {
|
|
11068
|
+
assigned_user_id?: string | null;
|
|
11069
|
+
budget_mandate_cents?: number;
|
|
11070
|
+
complaint_description?: string | null;
|
|
11071
|
+
created_at?: string;
|
|
11072
|
+
created_by?: string | null;
|
|
11073
|
+
customer_id?: string | null;
|
|
11074
|
+
externe_referentie?: string | null;
|
|
11075
|
+
first_time_fix?: boolean | null;
|
|
11076
|
+
id?: string;
|
|
11077
|
+
internal_notes?: string | null;
|
|
11078
|
+
parent_werkbon_id?: string | null;
|
|
11079
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11080
|
+
planning_status?: string;
|
|
11081
|
+
project_number?: string | null;
|
|
11082
|
+
room_number?: string | null;
|
|
11083
|
+
scheduled_end_time?: string | null;
|
|
11084
|
+
scheduled_start_time?: string | null;
|
|
11085
|
+
sequence_number: number;
|
|
11086
|
+
source_pdf_path?: string | null;
|
|
11087
|
+
status?: string;
|
|
11088
|
+
technician_id?: string | null;
|
|
11089
|
+
technician_notes?: string | null;
|
|
11090
|
+
technician_notes_raw?: string | null;
|
|
11091
|
+
technician_task_description?: string | null;
|
|
11092
|
+
updated_at?: string;
|
|
11093
|
+
version?: number;
|
|
11094
|
+
work_address?: string | null;
|
|
11095
|
+
};
|
|
11096
|
+
Update: {
|
|
11097
|
+
assigned_user_id?: string | null;
|
|
11098
|
+
budget_mandate_cents?: number;
|
|
11099
|
+
complaint_description?: string | null;
|
|
11100
|
+
created_at?: string;
|
|
11101
|
+
created_by?: string | null;
|
|
11102
|
+
customer_id?: string | null;
|
|
11103
|
+
externe_referentie?: string | null;
|
|
11104
|
+
first_time_fix?: boolean | null;
|
|
11105
|
+
id?: string;
|
|
11106
|
+
internal_notes?: string | null;
|
|
11107
|
+
parent_werkbon_id?: string | null;
|
|
11108
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11109
|
+
planning_status?: string;
|
|
11110
|
+
project_number?: string | null;
|
|
11111
|
+
room_number?: string | null;
|
|
11112
|
+
scheduled_end_time?: string | null;
|
|
11113
|
+
scheduled_start_time?: string | null;
|
|
11114
|
+
sequence_number?: number;
|
|
11115
|
+
source_pdf_path?: string | null;
|
|
11116
|
+
status?: string;
|
|
11117
|
+
technician_id?: string | null;
|
|
11118
|
+
technician_notes?: string | null;
|
|
11119
|
+
technician_notes_raw?: string | null;
|
|
11120
|
+
technician_task_description?: string | null;
|
|
11121
|
+
updated_at?: string;
|
|
11122
|
+
version?: number;
|
|
11123
|
+
work_address?: string | null;
|
|
11124
|
+
};
|
|
11125
|
+
Relationships: [{
|
|
11126
|
+
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
11127
|
+
columns: ["parent_werkbon_id"];
|
|
11128
|
+
isOneToOne: false;
|
|
11129
|
+
referencedRelation: "werkbonnen";
|
|
11130
|
+
referencedColumns: ["id"];
|
|
11131
|
+
}, {
|
|
11132
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
11133
|
+
columns: ["technician_id"];
|
|
11134
|
+
isOneToOne: false;
|
|
11135
|
+
referencedRelation: "monteurs";
|
|
11136
|
+
referencedColumns: ["id"];
|
|
11137
|
+
}];
|
|
11138
|
+
};
|
|
9681
11139
|
work_order_monteurs: {
|
|
9682
11140
|
Row: {
|
|
9683
11141
|
created_at: string;
|
|
@@ -9848,6 +11306,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9848
11306
|
created_at: string | null;
|
|
9849
11307
|
created_by: string | null;
|
|
9850
11308
|
display_name: string | null;
|
|
11309
|
+
graph_subscription_expires_at: string | null;
|
|
11310
|
+
graph_subscription_id: string | null;
|
|
9851
11311
|
has_access_token: boolean | null;
|
|
9852
11312
|
has_client_id: boolean | null;
|
|
9853
11313
|
has_client_secret: boolean | null;
|
|
@@ -9865,6 +11325,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9865
11325
|
oauth_mode: string | null;
|
|
9866
11326
|
provider: string | null;
|
|
9867
11327
|
purpose_assignments: import("../integrations/supabase/types").Json | null;
|
|
11328
|
+
realtime_mode: string | null;
|
|
9868
11329
|
scopes: string[] | null;
|
|
9869
11330
|
smtp_host: string | null;
|
|
9870
11331
|
smtp_port: number | null;
|
|
@@ -9879,6 +11340,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9879
11340
|
created_at?: string | null;
|
|
9880
11341
|
created_by?: string | null;
|
|
9881
11342
|
display_name?: string | null;
|
|
11343
|
+
graph_subscription_expires_at?: string | null;
|
|
11344
|
+
graph_subscription_id?: string | null;
|
|
9882
11345
|
has_access_token?: never;
|
|
9883
11346
|
has_client_id?: never;
|
|
9884
11347
|
has_client_secret?: never;
|
|
@@ -9896,6 +11359,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9896
11359
|
oauth_mode?: string | null;
|
|
9897
11360
|
provider?: string | null;
|
|
9898
11361
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
11362
|
+
realtime_mode?: string | null;
|
|
9899
11363
|
scopes?: string[] | null;
|
|
9900
11364
|
smtp_host?: string | null;
|
|
9901
11365
|
smtp_port?: number | null;
|
|
@@ -9910,6 +11374,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9910
11374
|
created_at?: string | null;
|
|
9911
11375
|
created_by?: string | null;
|
|
9912
11376
|
display_name?: string | null;
|
|
11377
|
+
graph_subscription_expires_at?: string | null;
|
|
11378
|
+
graph_subscription_id?: string | null;
|
|
9913
11379
|
has_access_token?: never;
|
|
9914
11380
|
has_client_id?: never;
|
|
9915
11381
|
has_client_secret?: never;
|
|
@@ -9927,6 +11393,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
9927
11393
|
oauth_mode?: string | null;
|
|
9928
11394
|
provider?: string | null;
|
|
9929
11395
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
11396
|
+
realtime_mode?: string | null;
|
|
9930
11397
|
scopes?: string[] | null;
|
|
9931
11398
|
smtp_host?: string | null;
|
|
9932
11399
|
smtp_port?: number | null;
|
|
@@ -10385,6 +11852,21 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10385
11852
|
};
|
|
10386
11853
|
Returns: string;
|
|
10387
11854
|
};
|
|
11855
|
+
ai_usage_by_module: {
|
|
11856
|
+
Args: {
|
|
11857
|
+
_from: string;
|
|
11858
|
+
_to: string;
|
|
11859
|
+
};
|
|
11860
|
+
Returns: {
|
|
11861
|
+
calls: number;
|
|
11862
|
+
consumer_module_id: string;
|
|
11863
|
+
cost_usd: number;
|
|
11864
|
+
errors: number;
|
|
11865
|
+
input_tokens: number;
|
|
11866
|
+
output_tokens: number;
|
|
11867
|
+
total_tokens: number;
|
|
11868
|
+
}[];
|
|
11869
|
+
};
|
|
10388
11870
|
apply_stock_consumption: {
|
|
10389
11871
|
Args: {
|
|
10390
11872
|
p_order_id: string;
|
|
@@ -10470,6 +11952,33 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10470
11952
|
};
|
|
10471
11953
|
Returns: import("../integrations/supabase/types").Json;
|
|
10472
11954
|
};
|
|
11955
|
+
claim_twinfield_push_batch: {
|
|
11956
|
+
Args: {
|
|
11957
|
+
_limit?: number;
|
|
11958
|
+
};
|
|
11959
|
+
Returns: {
|
|
11960
|
+
action: string;
|
|
11961
|
+
attempts: number;
|
|
11962
|
+
connection_id: string;
|
|
11963
|
+
created_at: string;
|
|
11964
|
+
customer_id: string | null;
|
|
11965
|
+
external_id: string | null;
|
|
11966
|
+
id: string;
|
|
11967
|
+
idempotency_key: string;
|
|
11968
|
+
last_error: string | null;
|
|
11969
|
+
next_attempt_at: string;
|
|
11970
|
+
office_code: string | null;
|
|
11971
|
+
payload: import("../integrations/supabase/types").Json;
|
|
11972
|
+
status: string;
|
|
11973
|
+
updated_at: string;
|
|
11974
|
+
}[];
|
|
11975
|
+
SetofOptions: {
|
|
11976
|
+
from: "*";
|
|
11977
|
+
to: "twinfield_push_queue";
|
|
11978
|
+
isOneToOne: false;
|
|
11979
|
+
isSetofReturn: true;
|
|
11980
|
+
};
|
|
11981
|
+
};
|
|
10473
11982
|
cleanup_old_bookings: {
|
|
10474
11983
|
Args: never;
|
|
10475
11984
|
Returns: undefined;
|
|
@@ -10506,6 +12015,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10506
12015
|
Args: never;
|
|
10507
12016
|
Returns: string;
|
|
10508
12017
|
};
|
|
12018
|
+
custom_access_token_hook: {
|
|
12019
|
+
Args: {
|
|
12020
|
+
event: import("../integrations/supabase/types").Json;
|
|
12021
|
+
};
|
|
12022
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12023
|
+
};
|
|
10509
12024
|
dashboard_alert_counts: {
|
|
10510
12025
|
Args: never;
|
|
10511
12026
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -10566,6 +12081,16 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10566
12081
|
status: string;
|
|
10567
12082
|
}[];
|
|
10568
12083
|
};
|
|
12084
|
+
email_auth_upsert_connection: {
|
|
12085
|
+
Args: {
|
|
12086
|
+
_account_email: string;
|
|
12087
|
+
_created_by: string;
|
|
12088
|
+
_is_active: boolean;
|
|
12089
|
+
_provider: string;
|
|
12090
|
+
_status: string;
|
|
12091
|
+
};
|
|
12092
|
+
Returns: string;
|
|
12093
|
+
};
|
|
10569
12094
|
enqueue_cart_replan_if_unlocked: {
|
|
10570
12095
|
Args: {
|
|
10571
12096
|
p_order_id: string;
|
|
@@ -10831,6 +12356,14 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10831
12356
|
};
|
|
10832
12357
|
Returns: string;
|
|
10833
12358
|
};
|
|
12359
|
+
has_module_permission: {
|
|
12360
|
+
Args: {
|
|
12361
|
+
_min: string;
|
|
12362
|
+
_module_id: string;
|
|
12363
|
+
_user_id: string;
|
|
12364
|
+
};
|
|
12365
|
+
Returns: boolean;
|
|
12366
|
+
};
|
|
10834
12367
|
has_role: {
|
|
10835
12368
|
Args: {
|
|
10836
12369
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -10838,6 +12371,10 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10838
12371
|
};
|
|
10839
12372
|
Returns: boolean;
|
|
10840
12373
|
};
|
|
12374
|
+
has_twinfield_link: {
|
|
12375
|
+
Args: never;
|
|
12376
|
+
Returns: boolean;
|
|
12377
|
+
};
|
|
10841
12378
|
is_authenticated: {
|
|
10842
12379
|
Args: never;
|
|
10843
12380
|
Returns: boolean;
|
|
@@ -10852,6 +12389,20 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10852
12389
|
};
|
|
10853
12390
|
Returns: boolean;
|
|
10854
12391
|
};
|
|
12392
|
+
jwt_has_role: {
|
|
12393
|
+
Args: {
|
|
12394
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
12395
|
+
};
|
|
12396
|
+
Returns: boolean;
|
|
12397
|
+
};
|
|
12398
|
+
list_monteurs: {
|
|
12399
|
+
Args: never;
|
|
12400
|
+
Returns: {
|
|
12401
|
+
display_name: string;
|
|
12402
|
+
email: string;
|
|
12403
|
+
user_id: string;
|
|
12404
|
+
}[];
|
|
12405
|
+
};
|
|
10855
12406
|
local_effective_price: {
|
|
10856
12407
|
Args: {
|
|
10857
12408
|
_customer_id: string;
|
|
@@ -10868,6 +12419,22 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10868
12419
|
source_id: string;
|
|
10869
12420
|
}[];
|
|
10870
12421
|
};
|
|
12422
|
+
log_ai_call: {
|
|
12423
|
+
Args: {
|
|
12424
|
+
_consumer_module_id: string;
|
|
12425
|
+
_cost_usd: number;
|
|
12426
|
+
_duration_ms: number;
|
|
12427
|
+
_error_code: string;
|
|
12428
|
+
_error_message: string;
|
|
12429
|
+
_input_tokens: number;
|
|
12430
|
+
_model_slug: string;
|
|
12431
|
+
_output_tokens: number;
|
|
12432
|
+
_provider_slug: string;
|
|
12433
|
+
_status: string;
|
|
12434
|
+
_total_tokens: number;
|
|
12435
|
+
};
|
|
12436
|
+
Returns: string;
|
|
12437
|
+
};
|
|
10871
12438
|
mark_offer_clicked: {
|
|
10872
12439
|
Args: {
|
|
10873
12440
|
p_code: string;
|
|
@@ -10880,6 +12447,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10880
12447
|
};
|
|
10881
12448
|
Returns: undefined;
|
|
10882
12449
|
};
|
|
12450
|
+
mark_shipment_shipped: {
|
|
12451
|
+
Args: {
|
|
12452
|
+
p_shipment_id: string;
|
|
12453
|
+
};
|
|
12454
|
+
Returns: undefined;
|
|
12455
|
+
};
|
|
10883
12456
|
next_order_number: {
|
|
10884
12457
|
Args: {
|
|
10885
12458
|
p_prefix: string;
|
|
@@ -10893,6 +12466,10 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10893
12466
|
};
|
|
10894
12467
|
Returns: string;
|
|
10895
12468
|
};
|
|
12469
|
+
next_twinfield_code: {
|
|
12470
|
+
Args: never;
|
|
12471
|
+
Returns: string;
|
|
12472
|
+
};
|
|
10896
12473
|
next_work_order_number: {
|
|
10897
12474
|
Args: {
|
|
10898
12475
|
p_parent_work_order_id?: string;
|
|
@@ -11007,6 +12584,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11007
12584
|
};
|
|
11008
12585
|
Returns: number;
|
|
11009
12586
|
};
|
|
12587
|
+
reorder_customer_price_groups: {
|
|
12588
|
+
Args: {
|
|
12589
|
+
_ids: string[];
|
|
12590
|
+
};
|
|
12591
|
+
Returns: undefined;
|
|
12592
|
+
};
|
|
11010
12593
|
reset_floriday_sync_cursor: {
|
|
11011
12594
|
Args: {
|
|
11012
12595
|
p_connection_id: string;
|
|
@@ -11020,6 +12603,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11020
12603
|
};
|
|
11021
12604
|
Returns: string;
|
|
11022
12605
|
};
|
|
12606
|
+
retry_twinfield_push: {
|
|
12607
|
+
Args: {
|
|
12608
|
+
_customer_id: string;
|
|
12609
|
+
};
|
|
12610
|
+
Returns: number;
|
|
12611
|
+
};
|
|
11023
12612
|
schedule_floriday_additional_services_sync: {
|
|
11024
12613
|
Args: {
|
|
11025
12614
|
p_apikey: string;
|
|
@@ -11340,9 +12929,11 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
11340
12929
|
};
|
|
11341
12930
|
};
|
|
11342
12931
|
Enums: {
|
|
11343
|
-
app_role: "admin" | "
|
|
12932
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
11344
12933
|
exact_env: "staging" | "live";
|
|
11345
12934
|
exact_push_status: "pending" | "sent" | "error";
|
|
12935
|
+
itk_customer_segment: "Business" | "Private";
|
|
12936
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
11346
12937
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
11347
12938
|
};
|
|
11348
12939
|
CompositeTypes: { [_ in never]: never; };
|