@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
|
@@ -267,6 +267,318 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
267
267
|
};
|
|
268
268
|
Relationships: [];
|
|
269
269
|
};
|
|
270
|
+
ai_admin_credentials: {
|
|
271
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
290
|
+
active?: boolean;
|
|
291
|
+
admin_key?: string;
|
|
292
|
+
created_at?: string;
|
|
293
|
+
id?: string;
|
|
294
|
+
label?: string;
|
|
295
|
+
provider_id?: string;
|
|
296
|
+
updated_at?: string;
|
|
297
|
+
};
|
|
298
|
+
Relationships: [{
|
|
299
|
+
foreignKeyName: "ai_admin_credentials_provider_id_fkey";
|
|
300
|
+
columns: ["provider_id"];
|
|
301
|
+
isOneToOne: true;
|
|
302
|
+
referencedRelation: "ai_providers";
|
|
303
|
+
referencedColumns: ["id"];
|
|
304
|
+
}];
|
|
305
|
+
};
|
|
306
|
+
ai_call_log: {
|
|
307
|
+
Row: {
|
|
308
|
+
consumer_module_id: string;
|
|
309
|
+
cost_usd: number | null;
|
|
310
|
+
created_at: string;
|
|
311
|
+
created_by: string | null;
|
|
312
|
+
duration_ms: number | null;
|
|
313
|
+
error_code: string | null;
|
|
314
|
+
error_message: string | null;
|
|
315
|
+
id: string;
|
|
316
|
+
input_tokens: number;
|
|
317
|
+
model_slug: string | null;
|
|
318
|
+
output_tokens: number;
|
|
319
|
+
provider_slug: string | null;
|
|
320
|
+
status: string;
|
|
321
|
+
total_tokens: number;
|
|
322
|
+
};
|
|
323
|
+
Insert: {
|
|
324
|
+
consumer_module_id: string;
|
|
325
|
+
cost_usd?: number | null;
|
|
326
|
+
created_at?: string;
|
|
327
|
+
created_by?: string | null;
|
|
328
|
+
duration_ms?: number | null;
|
|
329
|
+
error_code?: string | null;
|
|
330
|
+
error_message?: string | null;
|
|
331
|
+
id?: string;
|
|
332
|
+
input_tokens?: number;
|
|
333
|
+
model_slug?: string | null;
|
|
334
|
+
output_tokens?: number;
|
|
335
|
+
provider_slug?: string | null;
|
|
336
|
+
status: string;
|
|
337
|
+
total_tokens?: number;
|
|
338
|
+
};
|
|
339
|
+
Update: {
|
|
340
|
+
consumer_module_id?: string;
|
|
341
|
+
cost_usd?: number | null;
|
|
342
|
+
created_at?: string;
|
|
343
|
+
created_by?: string | null;
|
|
344
|
+
duration_ms?: number | null;
|
|
345
|
+
error_code?: string | null;
|
|
346
|
+
error_message?: string | null;
|
|
347
|
+
id?: string;
|
|
348
|
+
input_tokens?: number;
|
|
349
|
+
model_slug?: string | null;
|
|
350
|
+
output_tokens?: number;
|
|
351
|
+
provider_slug?: string | null;
|
|
352
|
+
status?: string;
|
|
353
|
+
total_tokens?: number;
|
|
354
|
+
};
|
|
355
|
+
Relationships: [];
|
|
356
|
+
};
|
|
357
|
+
ai_credentials: {
|
|
358
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
377
|
+
active?: boolean;
|
|
378
|
+
api_key?: string;
|
|
379
|
+
created_at?: string;
|
|
380
|
+
id?: string;
|
|
381
|
+
label?: string;
|
|
382
|
+
provider_id?: string;
|
|
383
|
+
updated_at?: string;
|
|
384
|
+
};
|
|
385
|
+
Relationships: [{
|
|
386
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
387
|
+
columns: ["provider_id"];
|
|
388
|
+
isOneToOne: false;
|
|
389
|
+
referencedRelation: "ai_providers";
|
|
390
|
+
referencedColumns: ["id"];
|
|
391
|
+
}];
|
|
392
|
+
};
|
|
393
|
+
ai_goals: {
|
|
394
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
413
|
+
active?: boolean;
|
|
414
|
+
created_at?: string;
|
|
415
|
+
description?: string | null;
|
|
416
|
+
key?: string;
|
|
417
|
+
label?: string;
|
|
418
|
+
sort_order?: number;
|
|
419
|
+
updated_at?: string;
|
|
420
|
+
};
|
|
421
|
+
Relationships: [];
|
|
422
|
+
};
|
|
423
|
+
ai_model_pricing: {
|
|
424
|
+
Row: {
|
|
425
|
+
created_at: string;
|
|
426
|
+
currency: string;
|
|
427
|
+
fetched_at: string;
|
|
428
|
+
id: string;
|
|
429
|
+
input_per_mtok: number | null;
|
|
430
|
+
model_slug: string;
|
|
431
|
+
output_per_mtok: number | null;
|
|
432
|
+
provider_slug: string;
|
|
433
|
+
source: string;
|
|
434
|
+
updated_at: string;
|
|
435
|
+
};
|
|
436
|
+
Insert: {
|
|
437
|
+
created_at?: string;
|
|
438
|
+
currency?: string;
|
|
439
|
+
fetched_at?: string;
|
|
440
|
+
id?: string;
|
|
441
|
+
input_per_mtok?: number | null;
|
|
442
|
+
model_slug: string;
|
|
443
|
+
output_per_mtok?: number | null;
|
|
444
|
+
provider_slug: string;
|
|
445
|
+
source?: string;
|
|
446
|
+
updated_at?: string;
|
|
447
|
+
};
|
|
448
|
+
Update: {
|
|
449
|
+
created_at?: string;
|
|
450
|
+
currency?: string;
|
|
451
|
+
fetched_at?: string;
|
|
452
|
+
id?: string;
|
|
453
|
+
input_per_mtok?: number | null;
|
|
454
|
+
model_slug?: string;
|
|
455
|
+
output_per_mtok?: number | null;
|
|
456
|
+
provider_slug?: string;
|
|
457
|
+
source?: string;
|
|
458
|
+
updated_at?: string;
|
|
459
|
+
};
|
|
460
|
+
Relationships: [];
|
|
461
|
+
};
|
|
462
|
+
ai_models: {
|
|
463
|
+
Row: {
|
|
464
|
+
active: boolean;
|
|
465
|
+
context_window: number | null;
|
|
466
|
+
created_at: string;
|
|
467
|
+
display_name: string;
|
|
468
|
+
id: string;
|
|
469
|
+
is_default: boolean;
|
|
470
|
+
modality: string;
|
|
471
|
+
provider_id: string;
|
|
472
|
+
slug: string;
|
|
473
|
+
updated_at: string;
|
|
474
|
+
};
|
|
475
|
+
Insert: {
|
|
476
|
+
active?: boolean;
|
|
477
|
+
context_window?: number | null;
|
|
478
|
+
created_at?: string;
|
|
479
|
+
display_name: string;
|
|
480
|
+
id?: string;
|
|
481
|
+
is_default?: boolean;
|
|
482
|
+
modality?: string;
|
|
483
|
+
provider_id: string;
|
|
484
|
+
slug: string;
|
|
485
|
+
updated_at?: string;
|
|
486
|
+
};
|
|
487
|
+
Update: {
|
|
488
|
+
active?: boolean;
|
|
489
|
+
context_window?: number | null;
|
|
490
|
+
created_at?: string;
|
|
491
|
+
display_name?: string;
|
|
492
|
+
id?: string;
|
|
493
|
+
is_default?: boolean;
|
|
494
|
+
modality?: string;
|
|
495
|
+
provider_id?: string;
|
|
496
|
+
slug?: string;
|
|
497
|
+
updated_at?: string;
|
|
498
|
+
};
|
|
499
|
+
Relationships: [{
|
|
500
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
501
|
+
columns: ["provider_id"];
|
|
502
|
+
isOneToOne: false;
|
|
503
|
+
referencedRelation: "ai_providers";
|
|
504
|
+
referencedColumns: ["id"];
|
|
505
|
+
}];
|
|
506
|
+
};
|
|
507
|
+
ai_module_bindings: {
|
|
508
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
527
|
+
consumer_module_id?: string;
|
|
528
|
+
created_at?: string;
|
|
529
|
+
credential_id?: string;
|
|
530
|
+
id?: string;
|
|
531
|
+
model_id?: string;
|
|
532
|
+
notes?: string | null;
|
|
533
|
+
updated_at?: string;
|
|
534
|
+
};
|
|
535
|
+
Relationships: [{
|
|
536
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
537
|
+
columns: ["credential_id"];
|
|
538
|
+
isOneToOne: false;
|
|
539
|
+
referencedRelation: "ai_credentials";
|
|
540
|
+
referencedColumns: ["id"];
|
|
541
|
+
}, {
|
|
542
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
543
|
+
columns: ["model_id"];
|
|
544
|
+
isOneToOne: false;
|
|
545
|
+
referencedRelation: "ai_models";
|
|
546
|
+
referencedColumns: ["id"];
|
|
547
|
+
}];
|
|
548
|
+
};
|
|
549
|
+
ai_providers: {
|
|
550
|
+
Row: {
|
|
551
|
+
active: boolean;
|
|
552
|
+
auth_type: string;
|
|
553
|
+
base_url: string | null;
|
|
554
|
+
created_at: string;
|
|
555
|
+
id: string;
|
|
556
|
+
name: string;
|
|
557
|
+
slug: string;
|
|
558
|
+
updated_at: string;
|
|
559
|
+
};
|
|
560
|
+
Insert: {
|
|
561
|
+
active?: boolean;
|
|
562
|
+
auth_type?: string;
|
|
563
|
+
base_url?: string | null;
|
|
564
|
+
created_at?: string;
|
|
565
|
+
id?: string;
|
|
566
|
+
name: string;
|
|
567
|
+
slug: string;
|
|
568
|
+
updated_at?: string;
|
|
569
|
+
};
|
|
570
|
+
Update: {
|
|
571
|
+
active?: boolean;
|
|
572
|
+
auth_type?: string;
|
|
573
|
+
base_url?: string | null;
|
|
574
|
+
created_at?: string;
|
|
575
|
+
id?: string;
|
|
576
|
+
name?: string;
|
|
577
|
+
slug?: string;
|
|
578
|
+
updated_at?: string;
|
|
579
|
+
};
|
|
580
|
+
Relationships: [];
|
|
581
|
+
};
|
|
270
582
|
app_settings: {
|
|
271
583
|
Row: {
|
|
272
584
|
created_at: string;
|
|
@@ -894,6 +1206,141 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
894
1206
|
};
|
|
895
1207
|
Relationships: [];
|
|
896
1208
|
};
|
|
1209
|
+
cart_planning_pick_times: {
|
|
1210
|
+
Row: {
|
|
1211
|
+
created_at: string;
|
|
1212
|
+
id: string;
|
|
1213
|
+
pot_size: string;
|
|
1214
|
+
seconds_per_cart: number;
|
|
1215
|
+
updated_at: string;
|
|
1216
|
+
};
|
|
1217
|
+
Insert: {
|
|
1218
|
+
created_at?: string;
|
|
1219
|
+
id?: string;
|
|
1220
|
+
pot_size: string;
|
|
1221
|
+
seconds_per_cart: number;
|
|
1222
|
+
updated_at?: string;
|
|
1223
|
+
};
|
|
1224
|
+
Update: {
|
|
1225
|
+
created_at?: string;
|
|
1226
|
+
id?: string;
|
|
1227
|
+
pot_size?: string;
|
|
1228
|
+
seconds_per_cart?: number;
|
|
1229
|
+
updated_at?: string;
|
|
1230
|
+
};
|
|
1231
|
+
Relationships: [];
|
|
1232
|
+
};
|
|
1233
|
+
cart_planning_product_overrides: {
|
|
1234
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
1253
|
+
created_at?: string;
|
|
1254
|
+
id?: string;
|
|
1255
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1256
|
+
never_mix?: boolean;
|
|
1257
|
+
notes?: string | null;
|
|
1258
|
+
product_id?: string;
|
|
1259
|
+
updated_at?: string;
|
|
1260
|
+
};
|
|
1261
|
+
Relationships: [{
|
|
1262
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1263
|
+
columns: ["product_id"];
|
|
1264
|
+
isOneToOne: true;
|
|
1265
|
+
referencedRelation: "products";
|
|
1266
|
+
referencedColumns: ["id"];
|
|
1267
|
+
}];
|
|
1268
|
+
};
|
|
1269
|
+
cart_planning_settings: {
|
|
1270
|
+
Row: {
|
|
1271
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1272
|
+
buffer_grouping_mode: string;
|
|
1273
|
+
combine_floriday_orders: boolean;
|
|
1274
|
+
combine_floriday_orders_window: string;
|
|
1275
|
+
combine_orders_scope: string;
|
|
1276
|
+
default_workers: number;
|
|
1277
|
+
id: number;
|
|
1278
|
+
max_beladingen_per_layer: number;
|
|
1279
|
+
max_customers_per_cart: number;
|
|
1280
|
+
max_one_customer_per_layer: boolean;
|
|
1281
|
+
max_party_share_per_layer_pct: number;
|
|
1282
|
+
optimization_strategy: string;
|
|
1283
|
+
own_cart_from_layers: number;
|
|
1284
|
+
pick_time_mode: string;
|
|
1285
|
+
plants_per_day: number;
|
|
1286
|
+
plants_per_hour: number;
|
|
1287
|
+
require_same_carrier: boolean;
|
|
1288
|
+
require_same_crate_type: boolean;
|
|
1289
|
+
require_same_delivery_date: boolean;
|
|
1290
|
+
require_same_delivery_location: boolean;
|
|
1291
|
+
updated_at: string;
|
|
1292
|
+
updated_by: string | null;
|
|
1293
|
+
};
|
|
1294
|
+
Insert: {
|
|
1295
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1296
|
+
buffer_grouping_mode?: string;
|
|
1297
|
+
combine_floriday_orders?: boolean;
|
|
1298
|
+
combine_floriday_orders_window?: string;
|
|
1299
|
+
combine_orders_scope?: string;
|
|
1300
|
+
default_workers?: number;
|
|
1301
|
+
id?: number;
|
|
1302
|
+
max_beladingen_per_layer?: number;
|
|
1303
|
+
max_customers_per_cart?: number;
|
|
1304
|
+
max_one_customer_per_layer?: boolean;
|
|
1305
|
+
max_party_share_per_layer_pct?: number;
|
|
1306
|
+
optimization_strategy?: string;
|
|
1307
|
+
own_cart_from_layers?: number;
|
|
1308
|
+
pick_time_mode?: string;
|
|
1309
|
+
plants_per_day?: number;
|
|
1310
|
+
plants_per_hour?: number;
|
|
1311
|
+
require_same_carrier?: boolean;
|
|
1312
|
+
require_same_crate_type?: boolean;
|
|
1313
|
+
require_same_delivery_date?: boolean;
|
|
1314
|
+
require_same_delivery_location?: boolean;
|
|
1315
|
+
updated_at?: string;
|
|
1316
|
+
updated_by?: string | null;
|
|
1317
|
+
};
|
|
1318
|
+
Update: {
|
|
1319
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1320
|
+
buffer_grouping_mode?: string;
|
|
1321
|
+
combine_floriday_orders?: boolean;
|
|
1322
|
+
combine_floriday_orders_window?: string;
|
|
1323
|
+
combine_orders_scope?: string;
|
|
1324
|
+
default_workers?: number;
|
|
1325
|
+
id?: number;
|
|
1326
|
+
max_beladingen_per_layer?: number;
|
|
1327
|
+
max_customers_per_cart?: number;
|
|
1328
|
+
max_one_customer_per_layer?: boolean;
|
|
1329
|
+
max_party_share_per_layer_pct?: number;
|
|
1330
|
+
optimization_strategy?: string;
|
|
1331
|
+
own_cart_from_layers?: number;
|
|
1332
|
+
pick_time_mode?: string;
|
|
1333
|
+
plants_per_day?: number;
|
|
1334
|
+
plants_per_hour?: number;
|
|
1335
|
+
require_same_carrier?: boolean;
|
|
1336
|
+
require_same_crate_type?: boolean;
|
|
1337
|
+
require_same_delivery_date?: boolean;
|
|
1338
|
+
require_same_delivery_location?: boolean;
|
|
1339
|
+
updated_at?: string;
|
|
1340
|
+
updated_by?: string | null;
|
|
1341
|
+
};
|
|
1342
|
+
Relationships: [];
|
|
1343
|
+
};
|
|
897
1344
|
cart_replan_queue: {
|
|
898
1345
|
Row: {
|
|
899
1346
|
attempts: number;
|
|
@@ -924,6 +1371,102 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
924
1371
|
referencedColumns: ["id"];
|
|
925
1372
|
}];
|
|
926
1373
|
};
|
|
1374
|
+
cart_types: {
|
|
1375
|
+
Row: {
|
|
1376
|
+
created_at: string;
|
|
1377
|
+
id: string;
|
|
1378
|
+
is_default: boolean;
|
|
1379
|
+
layer_length_cm: number;
|
|
1380
|
+
layer_width_cm: number;
|
|
1381
|
+
layers_per_cart: number;
|
|
1382
|
+
name: string;
|
|
1383
|
+
updated_at: string;
|
|
1384
|
+
};
|
|
1385
|
+
Insert: {
|
|
1386
|
+
created_at?: string;
|
|
1387
|
+
id?: string;
|
|
1388
|
+
is_default?: boolean;
|
|
1389
|
+
layer_length_cm: number;
|
|
1390
|
+
layer_width_cm: number;
|
|
1391
|
+
layers_per_cart?: number;
|
|
1392
|
+
name: string;
|
|
1393
|
+
updated_at?: string;
|
|
1394
|
+
};
|
|
1395
|
+
Update: {
|
|
1396
|
+
created_at?: string;
|
|
1397
|
+
id?: string;
|
|
1398
|
+
is_default?: boolean;
|
|
1399
|
+
layer_length_cm?: number;
|
|
1400
|
+
layer_width_cm?: number;
|
|
1401
|
+
layers_per_cart?: number;
|
|
1402
|
+
name?: string;
|
|
1403
|
+
updated_at?: string;
|
|
1404
|
+
};
|
|
1405
|
+
Relationships: [];
|
|
1406
|
+
};
|
|
1407
|
+
catalog_articles_cache: {
|
|
1408
|
+
Row: {
|
|
1409
|
+
created_at: string;
|
|
1410
|
+
default_price: number;
|
|
1411
|
+
default_vat_rate_ref: string | null;
|
|
1412
|
+
external_ref: string;
|
|
1413
|
+
id: string;
|
|
1414
|
+
name: string;
|
|
1415
|
+
updated_at: string;
|
|
1416
|
+
user_id: string;
|
|
1417
|
+
};
|
|
1418
|
+
Insert: {
|
|
1419
|
+
created_at?: string;
|
|
1420
|
+
default_price?: number;
|
|
1421
|
+
default_vat_rate_ref?: string | null;
|
|
1422
|
+
external_ref: string;
|
|
1423
|
+
id?: string;
|
|
1424
|
+
name: string;
|
|
1425
|
+
updated_at?: string;
|
|
1426
|
+
user_id: string;
|
|
1427
|
+
};
|
|
1428
|
+
Update: {
|
|
1429
|
+
created_at?: string;
|
|
1430
|
+
default_price?: number;
|
|
1431
|
+
default_vat_rate_ref?: string | null;
|
|
1432
|
+
external_ref?: string;
|
|
1433
|
+
id?: string;
|
|
1434
|
+
name?: string;
|
|
1435
|
+
updated_at?: string;
|
|
1436
|
+
user_id?: string;
|
|
1437
|
+
};
|
|
1438
|
+
Relationships: [];
|
|
1439
|
+
};
|
|
1440
|
+
catalog_vat_rates_cache: {
|
|
1441
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
1460
|
+
created_at?: string;
|
|
1461
|
+
external_ref?: string;
|
|
1462
|
+
id?: string;
|
|
1463
|
+
label?: string;
|
|
1464
|
+
percentage?: number;
|
|
1465
|
+
updated_at?: string;
|
|
1466
|
+
user_id?: string;
|
|
1467
|
+
};
|
|
1468
|
+
Relationships: [];
|
|
1469
|
+
};
|
|
927
1470
|
collections: {
|
|
928
1471
|
Row: {
|
|
929
1472
|
created_at: string;
|
|
@@ -948,6 +1491,36 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
948
1491
|
};
|
|
949
1492
|
Relationships: [];
|
|
950
1493
|
};
|
|
1494
|
+
crate_types: {
|
|
1495
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
1514
|
+
created_at?: string;
|
|
1515
|
+
id?: string;
|
|
1516
|
+
length_cm?: number;
|
|
1517
|
+
name?: string;
|
|
1518
|
+
plants_per_crate?: number;
|
|
1519
|
+
updated_at?: string;
|
|
1520
|
+
width_cm?: number;
|
|
1521
|
+
};
|
|
1522
|
+
Relationships: [];
|
|
1523
|
+
};
|
|
951
1524
|
customer_audit_log: {
|
|
952
1525
|
Row: {
|
|
953
1526
|
action: string;
|
|
@@ -1173,6 +1746,105 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
1173
1746
|
};
|
|
1174
1747
|
Relationships: [];
|
|
1175
1748
|
};
|
|
1749
|
+
customer_price_group_members: {
|
|
1750
|
+
Row: {
|
|
1751
|
+
created_at: string;
|
|
1752
|
+
customer_key: string;
|
|
1753
|
+
id: string;
|
|
1754
|
+
owner_id: string;
|
|
1755
|
+
price_group_id: string;
|
|
1756
|
+
};
|
|
1757
|
+
Insert: {
|
|
1758
|
+
created_at?: string;
|
|
1759
|
+
customer_key: string;
|
|
1760
|
+
id?: string;
|
|
1761
|
+
owner_id?: string;
|
|
1762
|
+
price_group_id: string;
|
|
1763
|
+
};
|
|
1764
|
+
Update: {
|
|
1765
|
+
created_at?: string;
|
|
1766
|
+
customer_key?: string;
|
|
1767
|
+
id?: string;
|
|
1768
|
+
owner_id?: string;
|
|
1769
|
+
price_group_id?: string;
|
|
1770
|
+
};
|
|
1771
|
+
Relationships: [{
|
|
1772
|
+
foreignKeyName: "customer_price_group_members_price_group_id_fkey";
|
|
1773
|
+
columns: ["price_group_id"];
|
|
1774
|
+
isOneToOne: false;
|
|
1775
|
+
referencedRelation: "customer_price_groups";
|
|
1776
|
+
referencedColumns: ["id"];
|
|
1777
|
+
}];
|
|
1778
|
+
};
|
|
1779
|
+
customer_price_groups: {
|
|
1780
|
+
Row: {
|
|
1781
|
+
calc_type: string | null;
|
|
1782
|
+
calc_value: number | null;
|
|
1783
|
+
calc_value_type: string | null;
|
|
1784
|
+
created_at: string;
|
|
1785
|
+
currency: string;
|
|
1786
|
+
distribute_over: string | null;
|
|
1787
|
+
group_type: string;
|
|
1788
|
+
handling_fee: number | null;
|
|
1789
|
+
id: string;
|
|
1790
|
+
include_stickers: boolean;
|
|
1791
|
+
is_active: boolean;
|
|
1792
|
+
name: string;
|
|
1793
|
+
owner_id: string;
|
|
1794
|
+
price_scope: string;
|
|
1795
|
+
pricing_mode: string;
|
|
1796
|
+
rounding: string;
|
|
1797
|
+
rounding_step: number;
|
|
1798
|
+
sort_order: number;
|
|
1799
|
+
unit: string;
|
|
1800
|
+
updated_at: string;
|
|
1801
|
+
};
|
|
1802
|
+
Insert: {
|
|
1803
|
+
calc_type?: string | null;
|
|
1804
|
+
calc_value?: number | null;
|
|
1805
|
+
calc_value_type?: string | null;
|
|
1806
|
+
created_at?: string;
|
|
1807
|
+
currency?: string;
|
|
1808
|
+
distribute_over?: string | null;
|
|
1809
|
+
group_type?: string;
|
|
1810
|
+
handling_fee?: number | null;
|
|
1811
|
+
id?: string;
|
|
1812
|
+
include_stickers?: boolean;
|
|
1813
|
+
is_active?: boolean;
|
|
1814
|
+
name: string;
|
|
1815
|
+
owner_id?: string;
|
|
1816
|
+
price_scope?: string;
|
|
1817
|
+
pricing_mode?: string;
|
|
1818
|
+
rounding?: string;
|
|
1819
|
+
rounding_step?: number;
|
|
1820
|
+
sort_order?: number;
|
|
1821
|
+
unit?: string;
|
|
1822
|
+
updated_at?: string;
|
|
1823
|
+
};
|
|
1824
|
+
Update: {
|
|
1825
|
+
calc_type?: string | null;
|
|
1826
|
+
calc_value?: number | null;
|
|
1827
|
+
calc_value_type?: string | null;
|
|
1828
|
+
created_at?: string;
|
|
1829
|
+
currency?: string;
|
|
1830
|
+
distribute_over?: string | null;
|
|
1831
|
+
group_type?: string;
|
|
1832
|
+
handling_fee?: number | null;
|
|
1833
|
+
id?: string;
|
|
1834
|
+
include_stickers?: boolean;
|
|
1835
|
+
is_active?: boolean;
|
|
1836
|
+
name?: string;
|
|
1837
|
+
owner_id?: string;
|
|
1838
|
+
price_scope?: string;
|
|
1839
|
+
pricing_mode?: string;
|
|
1840
|
+
rounding?: string;
|
|
1841
|
+
rounding_step?: number;
|
|
1842
|
+
sort_order?: number;
|
|
1843
|
+
unit?: string;
|
|
1844
|
+
updated_at?: string;
|
|
1845
|
+
};
|
|
1846
|
+
Relationships: [];
|
|
1847
|
+
};
|
|
1176
1848
|
customer_selected_assortment: {
|
|
1177
1849
|
Row: {
|
|
1178
1850
|
article_number: string | null;
|
|
@@ -1326,6 +1998,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
1326
1998
|
sync_error: string | null;
|
|
1327
1999
|
sync_status: string;
|
|
1328
2000
|
trade_forms: string[];
|
|
2001
|
+
twinfield_code: string | null;
|
|
2002
|
+
twinfield_last_hash: string | null;
|
|
2003
|
+
twinfield_sync_error: string | null;
|
|
2004
|
+
twinfield_synced_at: string | null;
|
|
1329
2005
|
updated_at: string;
|
|
1330
2006
|
vat_display: string | null;
|
|
1331
2007
|
vat_number: string | null;
|
|
@@ -1393,6 +2069,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
1393
2069
|
sync_error?: string | null;
|
|
1394
2070
|
sync_status?: string;
|
|
1395
2071
|
trade_forms?: string[];
|
|
2072
|
+
twinfield_code?: string | null;
|
|
2073
|
+
twinfield_last_hash?: string | null;
|
|
2074
|
+
twinfield_sync_error?: string | null;
|
|
2075
|
+
twinfield_synced_at?: string | null;
|
|
1396
2076
|
updated_at?: string;
|
|
1397
2077
|
vat_display?: string | null;
|
|
1398
2078
|
vat_number?: string | null;
|
|
@@ -1460,6 +2140,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
1460
2140
|
sync_error?: string | null;
|
|
1461
2141
|
sync_status?: string;
|
|
1462
2142
|
trade_forms?: string[];
|
|
2143
|
+
twinfield_code?: string | null;
|
|
2144
|
+
twinfield_last_hash?: string | null;
|
|
2145
|
+
twinfield_sync_error?: string | null;
|
|
2146
|
+
twinfield_synced_at?: string | null;
|
|
1463
2147
|
updated_at?: string;
|
|
1464
2148
|
vat_display?: string | null;
|
|
1465
2149
|
vat_number?: string | null;
|
|
@@ -5245,136 +5929,418 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
5245
5929
|
updated_at: string;
|
|
5246
5930
|
};
|
|
5247
5931
|
Insert: {
|
|
5248
|
-
connection_id?: string | null;
|
|
5932
|
+
connection_id?: string | null;
|
|
5933
|
+
created_at?: string;
|
|
5934
|
+
created_by?: string;
|
|
5935
|
+
customer_id?: string | null;
|
|
5936
|
+
id?: string;
|
|
5937
|
+
last_error?: string | null;
|
|
5938
|
+
last_polled_at?: string | null;
|
|
5939
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
5940
|
+
provider_id: string;
|
|
5941
|
+
queue_id?: string | null;
|
|
5942
|
+
status?: string;
|
|
5943
|
+
updated_at?: string;
|
|
5944
|
+
};
|
|
5945
|
+
Update: {
|
|
5946
|
+
connection_id?: string | null;
|
|
5947
|
+
created_at?: string;
|
|
5948
|
+
created_by?: string;
|
|
5949
|
+
customer_id?: string | null;
|
|
5950
|
+
id?: string;
|
|
5951
|
+
last_error?: string | null;
|
|
5952
|
+
last_polled_at?: string | null;
|
|
5953
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
5954
|
+
provider_id?: string;
|
|
5955
|
+
queue_id?: string | null;
|
|
5956
|
+
status?: string;
|
|
5957
|
+
updated_at?: string;
|
|
5958
|
+
};
|
|
5959
|
+
Relationships: [{
|
|
5960
|
+
foreignKeyName: "invoice_push_log_provider_id_fkey";
|
|
5961
|
+
columns: ["provider_id"];
|
|
5962
|
+
isOneToOne: false;
|
|
5963
|
+
referencedRelation: "external_invoice_providers";
|
|
5964
|
+
referencedColumns: ["provider"];
|
|
5965
|
+
}];
|
|
5966
|
+
};
|
|
5967
|
+
invoice_run_items: {
|
|
5968
|
+
Row: {
|
|
5969
|
+
booking_id: string | null;
|
|
5970
|
+
company_name: string | null;
|
|
5971
|
+
created_at: string;
|
|
5972
|
+
customer_email: string | null;
|
|
5973
|
+
description: string | null;
|
|
5974
|
+
exact_article_id: string | null;
|
|
5975
|
+
id: string;
|
|
5976
|
+
invoice_run_id: string | null;
|
|
5977
|
+
quantity: number | null;
|
|
5978
|
+
total_excl_vat: number | null;
|
|
5979
|
+
total_incl_vat: number | null;
|
|
5980
|
+
unit_price: number | null;
|
|
5981
|
+
vat_amount: number | null;
|
|
5982
|
+
};
|
|
5983
|
+
Insert: {
|
|
5984
|
+
booking_id?: string | null;
|
|
5985
|
+
company_name?: string | null;
|
|
5986
|
+
created_at?: string;
|
|
5987
|
+
customer_email?: string | null;
|
|
5988
|
+
description?: string | null;
|
|
5989
|
+
exact_article_id?: string | null;
|
|
5990
|
+
id?: string;
|
|
5991
|
+
invoice_run_id?: string | null;
|
|
5992
|
+
quantity?: number | null;
|
|
5993
|
+
total_excl_vat?: number | null;
|
|
5994
|
+
total_incl_vat?: number | null;
|
|
5995
|
+
unit_price?: number | null;
|
|
5996
|
+
vat_amount?: number | null;
|
|
5997
|
+
};
|
|
5998
|
+
Update: {
|
|
5999
|
+
booking_id?: string | null;
|
|
6000
|
+
company_name?: string | null;
|
|
6001
|
+
created_at?: string;
|
|
6002
|
+
customer_email?: string | null;
|
|
6003
|
+
description?: string | null;
|
|
6004
|
+
exact_article_id?: string | null;
|
|
6005
|
+
id?: string;
|
|
6006
|
+
invoice_run_id?: string | null;
|
|
6007
|
+
quantity?: number | null;
|
|
6008
|
+
total_excl_vat?: number | null;
|
|
6009
|
+
total_incl_vat?: number | null;
|
|
6010
|
+
unit_price?: number | null;
|
|
6011
|
+
vat_amount?: number | null;
|
|
6012
|
+
};
|
|
6013
|
+
Relationships: [{
|
|
6014
|
+
foreignKeyName: "invoice_run_items_booking_id_fkey";
|
|
6015
|
+
columns: ["booking_id"];
|
|
6016
|
+
isOneToOne: false;
|
|
6017
|
+
referencedRelation: "bookings";
|
|
6018
|
+
referencedColumns: ["id"];
|
|
6019
|
+
}, {
|
|
6020
|
+
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
6021
|
+
columns: ["invoice_run_id"];
|
|
6022
|
+
isOneToOne: false;
|
|
6023
|
+
referencedRelation: "invoice_runs";
|
|
6024
|
+
referencedColumns: ["id"];
|
|
6025
|
+
}];
|
|
6026
|
+
};
|
|
6027
|
+
invoice_runs: {
|
|
6028
|
+
Row: {
|
|
6029
|
+
created_at: string;
|
|
6030
|
+
created_by: string | null;
|
|
6031
|
+
id: string;
|
|
6032
|
+
period_end: string;
|
|
6033
|
+
period_start: string;
|
|
6034
|
+
status: string;
|
|
6035
|
+
total_excl_vat: number | null;
|
|
6036
|
+
total_incl_vat: number | null;
|
|
6037
|
+
vat_amount: number | null;
|
|
6038
|
+
};
|
|
6039
|
+
Insert: {
|
|
6040
|
+
created_at?: string;
|
|
6041
|
+
created_by?: string | null;
|
|
6042
|
+
id?: string;
|
|
6043
|
+
period_end: string;
|
|
6044
|
+
period_start: string;
|
|
6045
|
+
status?: string;
|
|
6046
|
+
total_excl_vat?: number | null;
|
|
6047
|
+
total_incl_vat?: number | null;
|
|
6048
|
+
vat_amount?: number | null;
|
|
6049
|
+
};
|
|
6050
|
+
Update: {
|
|
6051
|
+
created_at?: string;
|
|
6052
|
+
created_by?: string | null;
|
|
6053
|
+
id?: string;
|
|
6054
|
+
period_end?: string;
|
|
6055
|
+
period_start?: string;
|
|
6056
|
+
status?: string;
|
|
6057
|
+
total_excl_vat?: number | null;
|
|
6058
|
+
total_incl_vat?: number | null;
|
|
6059
|
+
vat_amount?: number | null;
|
|
6060
|
+
};
|
|
6061
|
+
Relationships: [];
|
|
6062
|
+
};
|
|
6063
|
+
itk_contact_persons: {
|
|
6064
|
+
Row: {
|
|
6065
|
+
created_at: string;
|
|
6066
|
+
customer_id: string;
|
|
6067
|
+
email: string | null;
|
|
6068
|
+
id: string;
|
|
6069
|
+
name: string;
|
|
6070
|
+
phone: string | null;
|
|
6071
|
+
role: string | null;
|
|
6072
|
+
updated_at: string;
|
|
6073
|
+
};
|
|
6074
|
+
Insert: {
|
|
6075
|
+
created_at?: string;
|
|
6076
|
+
customer_id: string;
|
|
6077
|
+
email?: string | null;
|
|
6078
|
+
id?: string;
|
|
6079
|
+
name: string;
|
|
6080
|
+
phone?: string | null;
|
|
6081
|
+
role?: string | null;
|
|
6082
|
+
updated_at?: string;
|
|
6083
|
+
};
|
|
6084
|
+
Update: {
|
|
6085
|
+
created_at?: string;
|
|
6086
|
+
customer_id?: string;
|
|
6087
|
+
email?: string | null;
|
|
6088
|
+
id?: string;
|
|
6089
|
+
name?: string;
|
|
6090
|
+
phone?: string | null;
|
|
6091
|
+
role?: string | null;
|
|
6092
|
+
updated_at?: string;
|
|
6093
|
+
};
|
|
6094
|
+
Relationships: [{
|
|
6095
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
6096
|
+
columns: ["customer_id"];
|
|
6097
|
+
isOneToOne: false;
|
|
6098
|
+
referencedRelation: "itk_customers";
|
|
6099
|
+
referencedColumns: ["id"];
|
|
6100
|
+
}];
|
|
6101
|
+
};
|
|
6102
|
+
itk_customer_dynamic_values: {
|
|
6103
|
+
Row: {
|
|
6104
|
+
created_at: string;
|
|
6105
|
+
customer_id: string;
|
|
6106
|
+
field_id: string;
|
|
6107
|
+
id: string;
|
|
6108
|
+
updated_at: string;
|
|
6109
|
+
value: string | null;
|
|
6110
|
+
};
|
|
6111
|
+
Insert: {
|
|
6112
|
+
created_at?: string;
|
|
6113
|
+
customer_id: string;
|
|
6114
|
+
field_id: string;
|
|
6115
|
+
id?: string;
|
|
6116
|
+
updated_at?: string;
|
|
6117
|
+
value?: string | null;
|
|
6118
|
+
};
|
|
6119
|
+
Update: {
|
|
6120
|
+
created_at?: string;
|
|
6121
|
+
customer_id?: string;
|
|
6122
|
+
field_id?: string;
|
|
6123
|
+
id?: string;
|
|
6124
|
+
updated_at?: string;
|
|
6125
|
+
value?: string | null;
|
|
6126
|
+
};
|
|
6127
|
+
Relationships: [{
|
|
6128
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
6129
|
+
columns: ["customer_id"];
|
|
6130
|
+
isOneToOne: false;
|
|
6131
|
+
referencedRelation: "itk_customers";
|
|
6132
|
+
referencedColumns: ["id"];
|
|
6133
|
+
}, {
|
|
6134
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6135
|
+
columns: ["field_id"];
|
|
6136
|
+
isOneToOne: false;
|
|
6137
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6138
|
+
referencedColumns: ["id"];
|
|
6139
|
+
}];
|
|
6140
|
+
};
|
|
6141
|
+
itk_customer_notes: {
|
|
6142
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
6161
|
+
body?: string;
|
|
6162
|
+
created_at?: string;
|
|
6163
|
+
created_by?: string | null;
|
|
6164
|
+
customer_id?: string;
|
|
6165
|
+
id?: string;
|
|
6166
|
+
note_type?: string;
|
|
6167
|
+
updated_at?: string;
|
|
6168
|
+
};
|
|
6169
|
+
Relationships: [{
|
|
6170
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6171
|
+
columns: ["customer_id"];
|
|
6172
|
+
isOneToOne: false;
|
|
6173
|
+
referencedRelation: "itk_customers";
|
|
6174
|
+
referencedColumns: ["id"];
|
|
6175
|
+
}];
|
|
6176
|
+
};
|
|
6177
|
+
itk_customers: {
|
|
6178
|
+
Row: {
|
|
6179
|
+
billing_city: string | null;
|
|
6180
|
+
billing_postcode: string | null;
|
|
6181
|
+
billing_street: string | null;
|
|
6182
|
+
created_at: string;
|
|
6183
|
+
general_email: string | null;
|
|
6184
|
+
general_phone: string | null;
|
|
6185
|
+
id: string;
|
|
6186
|
+
legacy_customer_id: string | null;
|
|
6187
|
+
name: string;
|
|
6188
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6189
|
+
updated_at: string;
|
|
6190
|
+
};
|
|
6191
|
+
Insert: {
|
|
6192
|
+
billing_city?: string | null;
|
|
6193
|
+
billing_postcode?: string | null;
|
|
6194
|
+
billing_street?: string | null;
|
|
6195
|
+
created_at?: string;
|
|
6196
|
+
general_email?: string | null;
|
|
6197
|
+
general_phone?: string | null;
|
|
6198
|
+
id?: string;
|
|
6199
|
+
legacy_customer_id?: string | null;
|
|
6200
|
+
name: string;
|
|
6201
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6202
|
+
updated_at?: string;
|
|
6203
|
+
};
|
|
6204
|
+
Update: {
|
|
6205
|
+
billing_city?: string | null;
|
|
6206
|
+
billing_postcode?: string | null;
|
|
6207
|
+
billing_street?: string | null;
|
|
6208
|
+
created_at?: string;
|
|
6209
|
+
general_email?: string | null;
|
|
6210
|
+
general_phone?: string | null;
|
|
6211
|
+
id?: string;
|
|
6212
|
+
legacy_customer_id?: string | null;
|
|
6213
|
+
name?: string;
|
|
6214
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6215
|
+
updated_at?: string;
|
|
6216
|
+
};
|
|
6217
|
+
Relationships: [{
|
|
6218
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6219
|
+
columns: ["legacy_customer_id"];
|
|
6220
|
+
isOneToOne: false;
|
|
6221
|
+
referencedRelation: "customers";
|
|
6222
|
+
referencedColumns: ["id"];
|
|
6223
|
+
}];
|
|
6224
|
+
};
|
|
6225
|
+
itk_dynamic_fields: {
|
|
6226
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
5249
6236
|
created_at?: string;
|
|
5250
|
-
|
|
5251
|
-
|
|
6237
|
+
field_name: string;
|
|
6238
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
5252
6239
|
id?: string;
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
payload?: import("../integrations/supabase/types").Json;
|
|
5256
|
-
provider_id: string;
|
|
5257
|
-
queue_id?: string | null;
|
|
5258
|
-
status?: string;
|
|
6240
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6241
|
+
sort_order?: number;
|
|
5259
6242
|
updated_at?: string;
|
|
5260
6243
|
};
|
|
5261
6244
|
Update: {
|
|
5262
|
-
connection_id?: string | null;
|
|
5263
6245
|
created_at?: string;
|
|
5264
|
-
|
|
5265
|
-
|
|
6246
|
+
field_name?: string;
|
|
6247
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
5266
6248
|
id?: string;
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
payload?: import("../integrations/supabase/types").Json;
|
|
5270
|
-
provider_id?: string;
|
|
5271
|
-
queue_id?: string | null;
|
|
5272
|
-
status?: string;
|
|
6249
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6250
|
+
sort_order?: number;
|
|
5273
6251
|
updated_at?: string;
|
|
5274
6252
|
};
|
|
5275
|
-
Relationships: [
|
|
5276
|
-
foreignKeyName: "invoice_push_log_provider_id_fkey";
|
|
5277
|
-
columns: ["provider_id"];
|
|
5278
|
-
isOneToOne: false;
|
|
5279
|
-
referencedRelation: "external_invoice_providers";
|
|
5280
|
-
referencedColumns: ["provider"];
|
|
5281
|
-
}];
|
|
6253
|
+
Relationships: [];
|
|
5282
6254
|
};
|
|
5283
|
-
|
|
6255
|
+
itk_work_locations: {
|
|
5284
6256
|
Row: {
|
|
5285
|
-
|
|
5286
|
-
company_name: string | null;
|
|
6257
|
+
city: string | null;
|
|
5287
6258
|
created_at: string;
|
|
5288
|
-
|
|
5289
|
-
description: string | null;
|
|
5290
|
-
exact_article_id: string | null;
|
|
6259
|
+
customer_id: string;
|
|
5291
6260
|
id: string;
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
6261
|
+
instructions: string | null;
|
|
6262
|
+
label: string;
|
|
6263
|
+
latitude: number | null;
|
|
6264
|
+
longitude: number | null;
|
|
6265
|
+
postcode: string | null;
|
|
6266
|
+
street: string | null;
|
|
6267
|
+
updated_at: string;
|
|
5298
6268
|
};
|
|
5299
6269
|
Insert: {
|
|
5300
|
-
|
|
5301
|
-
company_name?: string | null;
|
|
6270
|
+
city?: string | null;
|
|
5302
6271
|
created_at?: string;
|
|
5303
|
-
|
|
5304
|
-
description?: string | null;
|
|
5305
|
-
exact_article_id?: string | null;
|
|
6272
|
+
customer_id: string;
|
|
5306
6273
|
id?: string;
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
6274
|
+
instructions?: string | null;
|
|
6275
|
+
label: string;
|
|
6276
|
+
latitude?: number | null;
|
|
6277
|
+
longitude?: number | null;
|
|
6278
|
+
postcode?: string | null;
|
|
6279
|
+
street?: string | null;
|
|
6280
|
+
updated_at?: string;
|
|
5313
6281
|
};
|
|
5314
6282
|
Update: {
|
|
5315
|
-
|
|
5316
|
-
company_name?: string | null;
|
|
6283
|
+
city?: string | null;
|
|
5317
6284
|
created_at?: string;
|
|
5318
|
-
|
|
5319
|
-
description?: string | null;
|
|
5320
|
-
exact_article_id?: string | null;
|
|
6285
|
+
customer_id?: string;
|
|
5321
6286
|
id?: string;
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
6287
|
+
instructions?: string | null;
|
|
6288
|
+
label?: string;
|
|
6289
|
+
latitude?: number | null;
|
|
6290
|
+
longitude?: number | null;
|
|
6291
|
+
postcode?: string | null;
|
|
6292
|
+
street?: string | null;
|
|
6293
|
+
updated_at?: string;
|
|
5328
6294
|
};
|
|
5329
6295
|
Relationships: [{
|
|
5330
|
-
foreignKeyName: "
|
|
5331
|
-
columns: ["
|
|
5332
|
-
isOneToOne: false;
|
|
5333
|
-
referencedRelation: "bookings";
|
|
5334
|
-
referencedColumns: ["id"];
|
|
5335
|
-
}, {
|
|
5336
|
-
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
5337
|
-
columns: ["invoice_run_id"];
|
|
6296
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6297
|
+
columns: ["customer_id"];
|
|
5338
6298
|
isOneToOne: false;
|
|
5339
|
-
referencedRelation: "
|
|
6299
|
+
referencedRelation: "itk_customers";
|
|
5340
6300
|
referencedColumns: ["id"];
|
|
5341
6301
|
}];
|
|
5342
6302
|
};
|
|
5343
|
-
|
|
6303
|
+
leave_requests: {
|
|
5344
6304
|
Row: {
|
|
5345
6305
|
created_at: string;
|
|
5346
|
-
|
|
6306
|
+
end_date: string;
|
|
5347
6307
|
id: string;
|
|
5348
|
-
|
|
5349
|
-
|
|
6308
|
+
reason: string | null;
|
|
6309
|
+
start_date: string;
|
|
5350
6310
|
status: string;
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
6311
|
+
tenant_id: string;
|
|
6312
|
+
updated_at: string;
|
|
6313
|
+
user_id: string;
|
|
5354
6314
|
};
|
|
5355
6315
|
Insert: {
|
|
5356
6316
|
created_at?: string;
|
|
5357
|
-
|
|
6317
|
+
end_date: string;
|
|
5358
6318
|
id?: string;
|
|
5359
|
-
|
|
5360
|
-
|
|
6319
|
+
reason?: string | null;
|
|
6320
|
+
start_date: string;
|
|
5361
6321
|
status?: string;
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
6322
|
+
tenant_id?: string;
|
|
6323
|
+
updated_at?: string;
|
|
6324
|
+
user_id: string;
|
|
5365
6325
|
};
|
|
5366
6326
|
Update: {
|
|
5367
6327
|
created_at?: string;
|
|
5368
|
-
|
|
6328
|
+
end_date?: string;
|
|
5369
6329
|
id?: string;
|
|
5370
|
-
|
|
5371
|
-
|
|
6330
|
+
reason?: string | null;
|
|
6331
|
+
start_date?: string;
|
|
5372
6332
|
status?: string;
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
6333
|
+
tenant_id?: string;
|
|
6334
|
+
updated_at?: string;
|
|
6335
|
+
user_id?: string;
|
|
5376
6336
|
};
|
|
5377
|
-
Relationships: [
|
|
6337
|
+
Relationships: [{
|
|
6338
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6339
|
+
columns: ["user_id"];
|
|
6340
|
+
isOneToOne: false;
|
|
6341
|
+
referencedRelation: "monteurs";
|
|
6342
|
+
referencedColumns: ["id"];
|
|
6343
|
+
}];
|
|
5378
6344
|
};
|
|
5379
6345
|
local_customer_agreements: {
|
|
5380
6346
|
Row: {
|
|
@@ -6027,6 +6993,33 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
6027
6993
|
};
|
|
6028
6994
|
Relationships: [];
|
|
6029
6995
|
};
|
|
6996
|
+
module_permissions: {
|
|
6997
|
+
Row: {
|
|
6998
|
+
created_at: string;
|
|
6999
|
+
id: string;
|
|
7000
|
+
module_id: string;
|
|
7001
|
+
permission: string;
|
|
7002
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7003
|
+
updated_at: string;
|
|
7004
|
+
};
|
|
7005
|
+
Insert: {
|
|
7006
|
+
created_at?: string;
|
|
7007
|
+
id?: string;
|
|
7008
|
+
module_id: string;
|
|
7009
|
+
permission: string;
|
|
7010
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7011
|
+
updated_at?: string;
|
|
7012
|
+
};
|
|
7013
|
+
Update: {
|
|
7014
|
+
created_at?: string;
|
|
7015
|
+
id?: string;
|
|
7016
|
+
module_id?: string;
|
|
7017
|
+
permission?: string;
|
|
7018
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7019
|
+
updated_at?: string;
|
|
7020
|
+
};
|
|
7021
|
+
Relationships: [];
|
|
7022
|
+
};
|
|
6030
7023
|
monteurs: {
|
|
6031
7024
|
Row: {
|
|
6032
7025
|
avatar_url: string | null;
|
|
@@ -6756,6 +7749,42 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
6756
7749
|
};
|
|
6757
7750
|
Relationships: [];
|
|
6758
7751
|
};
|
|
7752
|
+
order_buffers: {
|
|
7753
|
+
Row: {
|
|
7754
|
+
buffer_key: string;
|
|
7755
|
+
created_at: string;
|
|
7756
|
+
customer_id: string | null;
|
|
7757
|
+
grouping_mode: string;
|
|
7758
|
+
id: string;
|
|
7759
|
+
pickup_date: string | null;
|
|
7760
|
+
pickup_location: string | null;
|
|
7761
|
+
plan_locked_at: string | null;
|
|
7762
|
+
updated_at: string;
|
|
7763
|
+
};
|
|
7764
|
+
Insert: {
|
|
7765
|
+
buffer_key: string;
|
|
7766
|
+
created_at?: string;
|
|
7767
|
+
customer_id?: string | null;
|
|
7768
|
+
grouping_mode: string;
|
|
7769
|
+
id?: string;
|
|
7770
|
+
pickup_date?: string | null;
|
|
7771
|
+
pickup_location?: string | null;
|
|
7772
|
+
plan_locked_at?: string | null;
|
|
7773
|
+
updated_at?: string;
|
|
7774
|
+
};
|
|
7775
|
+
Update: {
|
|
7776
|
+
buffer_key?: string;
|
|
7777
|
+
created_at?: string;
|
|
7778
|
+
customer_id?: string | null;
|
|
7779
|
+
grouping_mode?: string;
|
|
7780
|
+
id?: string;
|
|
7781
|
+
pickup_date?: string | null;
|
|
7782
|
+
pickup_location?: string | null;
|
|
7783
|
+
plan_locked_at?: string | null;
|
|
7784
|
+
updated_at?: string;
|
|
7785
|
+
};
|
|
7786
|
+
Relationships: [];
|
|
7787
|
+
};
|
|
6759
7788
|
order_cart_items: {
|
|
6760
7789
|
Row: {
|
|
6761
7790
|
cart_id: string;
|
|
@@ -6822,6 +7851,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
6822
7851
|
order_carts: {
|
|
6823
7852
|
Row: {
|
|
6824
7853
|
algorithm_version: number;
|
|
7854
|
+
buffer_id: string | null;
|
|
6825
7855
|
cart_number: number;
|
|
6826
7856
|
created_at: string;
|
|
6827
7857
|
id: string;
|
|
@@ -6829,13 +7859,14 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
6829
7859
|
is_complete: boolean;
|
|
6830
7860
|
notes: string | null;
|
|
6831
7861
|
occupancy_pct: number;
|
|
6832
|
-
order_id: string;
|
|
7862
|
+
order_id: string | null;
|
|
6833
7863
|
source: string;
|
|
6834
7864
|
total_layers_used: number;
|
|
6835
7865
|
updated_at: string;
|
|
6836
7866
|
};
|
|
6837
7867
|
Insert: {
|
|
6838
7868
|
algorithm_version?: number;
|
|
7869
|
+
buffer_id?: string | null;
|
|
6839
7870
|
cart_number: number;
|
|
6840
7871
|
created_at?: string;
|
|
6841
7872
|
id?: string;
|
|
@@ -6843,13 +7874,14 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
6843
7874
|
is_complete?: boolean;
|
|
6844
7875
|
notes?: string | null;
|
|
6845
7876
|
occupancy_pct?: number;
|
|
6846
|
-
order_id
|
|
7877
|
+
order_id?: string | null;
|
|
6847
7878
|
source?: string;
|
|
6848
7879
|
total_layers_used?: number;
|
|
6849
7880
|
updated_at?: string;
|
|
6850
7881
|
};
|
|
6851
7882
|
Update: {
|
|
6852
7883
|
algorithm_version?: number;
|
|
7884
|
+
buffer_id?: string | null;
|
|
6853
7885
|
cart_number?: number;
|
|
6854
7886
|
created_at?: string;
|
|
6855
7887
|
id?: string;
|
|
@@ -6857,12 +7889,18 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
6857
7889
|
is_complete?: boolean;
|
|
6858
7890
|
notes?: string | null;
|
|
6859
7891
|
occupancy_pct?: number;
|
|
6860
|
-
order_id?: string;
|
|
7892
|
+
order_id?: string | null;
|
|
6861
7893
|
source?: string;
|
|
6862
7894
|
total_layers_used?: number;
|
|
6863
7895
|
updated_at?: string;
|
|
6864
7896
|
};
|
|
6865
7897
|
Relationships: [{
|
|
7898
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7899
|
+
columns: ["buffer_id"];
|
|
7900
|
+
isOneToOne: false;
|
|
7901
|
+
referencedRelation: "order_buffers";
|
|
7902
|
+
referencedColumns: ["id"];
|
|
7903
|
+
}, {
|
|
6866
7904
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
6867
7905
|
columns: ["order_id"];
|
|
6868
7906
|
isOneToOne: false;
|
|
@@ -6999,15 +8037,117 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
6999
8037
|
};
|
|
7000
8038
|
Relationships: [];
|
|
7001
8039
|
};
|
|
8040
|
+
order_shipment_items: {
|
|
8041
|
+
Row: {
|
|
8042
|
+
created_at: string;
|
|
8043
|
+
id: string;
|
|
8044
|
+
order_item_id: string;
|
|
8045
|
+
product_id: string | null;
|
|
8046
|
+
product_name: string;
|
|
8047
|
+
quantity: number;
|
|
8048
|
+
shipment_id: string;
|
|
8049
|
+
updated_at: string;
|
|
8050
|
+
};
|
|
8051
|
+
Insert: {
|
|
8052
|
+
created_at?: string;
|
|
8053
|
+
id?: string;
|
|
8054
|
+
order_item_id: string;
|
|
8055
|
+
product_id?: string | null;
|
|
8056
|
+
product_name: string;
|
|
8057
|
+
quantity: number;
|
|
8058
|
+
shipment_id: string;
|
|
8059
|
+
updated_at?: string;
|
|
8060
|
+
};
|
|
8061
|
+
Update: {
|
|
8062
|
+
created_at?: string;
|
|
8063
|
+
id?: string;
|
|
8064
|
+
order_item_id?: string;
|
|
8065
|
+
product_id?: string | null;
|
|
8066
|
+
product_name?: string;
|
|
8067
|
+
quantity?: number;
|
|
8068
|
+
shipment_id?: string;
|
|
8069
|
+
updated_at?: string;
|
|
8070
|
+
};
|
|
8071
|
+
Relationships: [{
|
|
8072
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
8073
|
+
columns: ["order_item_id"];
|
|
8074
|
+
isOneToOne: false;
|
|
8075
|
+
referencedRelation: "order_items";
|
|
8076
|
+
referencedColumns: ["id"];
|
|
8077
|
+
}, {
|
|
8078
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
8079
|
+
columns: ["shipment_id"];
|
|
8080
|
+
isOneToOne: false;
|
|
8081
|
+
referencedRelation: "order_shipments";
|
|
8082
|
+
referencedColumns: ["id"];
|
|
8083
|
+
}];
|
|
8084
|
+
};
|
|
8085
|
+
order_shipments: {
|
|
8086
|
+
Row: {
|
|
8087
|
+
carrier_id: string | null;
|
|
8088
|
+
created_at: string;
|
|
8089
|
+
delivery_date: string | null;
|
|
8090
|
+
delivery_location_id: string | null;
|
|
8091
|
+
id: string;
|
|
8092
|
+
notes: string | null;
|
|
8093
|
+
order_id: string;
|
|
8094
|
+
shipment_number: number;
|
|
8095
|
+
shipped_at: string | null;
|
|
8096
|
+
status: string;
|
|
8097
|
+
updated_at: string;
|
|
8098
|
+
};
|
|
8099
|
+
Insert: {
|
|
8100
|
+
carrier_id?: string | null;
|
|
8101
|
+
created_at?: string;
|
|
8102
|
+
delivery_date?: string | null;
|
|
8103
|
+
delivery_location_id?: string | null;
|
|
8104
|
+
id?: string;
|
|
8105
|
+
notes?: string | null;
|
|
8106
|
+
order_id: string;
|
|
8107
|
+
shipment_number: number;
|
|
8108
|
+
shipped_at?: string | null;
|
|
8109
|
+
status?: string;
|
|
8110
|
+
updated_at?: string;
|
|
8111
|
+
};
|
|
8112
|
+
Update: {
|
|
8113
|
+
carrier_id?: string | null;
|
|
8114
|
+
created_at?: string;
|
|
8115
|
+
delivery_date?: string | null;
|
|
8116
|
+
delivery_location_id?: string | null;
|
|
8117
|
+
id?: string;
|
|
8118
|
+
notes?: string | null;
|
|
8119
|
+
order_id?: string;
|
|
8120
|
+
shipment_number?: number;
|
|
8121
|
+
shipped_at?: string | null;
|
|
8122
|
+
status?: string;
|
|
8123
|
+
updated_at?: string;
|
|
8124
|
+
};
|
|
8125
|
+
Relationships: [{
|
|
8126
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
8127
|
+
columns: ["carrier_id"];
|
|
8128
|
+
isOneToOne: false;
|
|
8129
|
+
referencedRelation: "carriers";
|
|
8130
|
+
referencedColumns: ["id"];
|
|
8131
|
+
}, {
|
|
8132
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
8133
|
+
columns: ["order_id"];
|
|
8134
|
+
isOneToOne: false;
|
|
8135
|
+
referencedRelation: "orders";
|
|
8136
|
+
referencedColumns: ["id"];
|
|
8137
|
+
}];
|
|
8138
|
+
};
|
|
7002
8139
|
orders: {
|
|
7003
8140
|
Row: {
|
|
8141
|
+
buffer_id: string | null;
|
|
7004
8142
|
created_at: string;
|
|
7005
8143
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7006
8144
|
customer_id: string | null;
|
|
7007
8145
|
customer_name: string;
|
|
7008
8146
|
deleted_at: string | null;
|
|
7009
|
-
delivery_date: string;
|
|
8147
|
+
delivery_date: string | null;
|
|
8148
|
+
floriday_sales_order_id: string | null;
|
|
7010
8149
|
id: string;
|
|
8150
|
+
is_reservation: boolean;
|
|
7011
8151
|
notes: string | null;
|
|
7012
8152
|
order_date: string;
|
|
7013
8153
|
order_number: string;
|
|
@@ -7019,13 +8159,16 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7019
8159
|
updated_at: string;
|
|
7020
8160
|
};
|
|
7021
8161
|
Insert: {
|
|
8162
|
+
buffer_id?: string | null;
|
|
7022
8163
|
created_at?: string;
|
|
7023
8164
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7024
8165
|
customer_id?: string | null;
|
|
7025
8166
|
customer_name?: string;
|
|
7026
8167
|
deleted_at?: string | null;
|
|
7027
|
-
delivery_date
|
|
8168
|
+
delivery_date?: string | null;
|
|
8169
|
+
floriday_sales_order_id?: string | null;
|
|
7028
8170
|
id?: string;
|
|
8171
|
+
is_reservation?: boolean;
|
|
7029
8172
|
notes?: string | null;
|
|
7030
8173
|
order_date?: string;
|
|
7031
8174
|
order_number: string;
|
|
@@ -7037,13 +8180,16 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7037
8180
|
updated_at?: string;
|
|
7038
8181
|
};
|
|
7039
8182
|
Update: {
|
|
8183
|
+
buffer_id?: string | null;
|
|
7040
8184
|
created_at?: string;
|
|
7041
8185
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7042
8186
|
customer_id?: string | null;
|
|
7043
8187
|
customer_name?: string;
|
|
7044
8188
|
deleted_at?: string | null;
|
|
7045
|
-
delivery_date?: string;
|
|
8189
|
+
delivery_date?: string | null;
|
|
8190
|
+
floriday_sales_order_id?: string | null;
|
|
7046
8191
|
id?: string;
|
|
8192
|
+
is_reservation?: boolean;
|
|
7047
8193
|
notes?: string | null;
|
|
7048
8194
|
order_date?: string;
|
|
7049
8195
|
order_number?: string;
|
|
@@ -7055,6 +8201,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7055
8201
|
updated_at?: string;
|
|
7056
8202
|
};
|
|
7057
8203
|
Relationships: [{
|
|
8204
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8205
|
+
columns: ["buffer_id"];
|
|
8206
|
+
isOneToOne: false;
|
|
8207
|
+
referencedRelation: "order_buffers";
|
|
8208
|
+
referencedColumns: ["id"];
|
|
8209
|
+
}, {
|
|
7058
8210
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7059
8211
|
columns: ["customer_id"];
|
|
7060
8212
|
isOneToOne: false;
|
|
@@ -7318,6 +8470,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7318
8470
|
Row: {
|
|
7319
8471
|
created_at: string;
|
|
7320
8472
|
description: string | null;
|
|
8473
|
+
head_product_id: string | null;
|
|
8474
|
+
head_trade_item_floriday_id: string | null;
|
|
7321
8475
|
id: string;
|
|
7322
8476
|
is_active: boolean;
|
|
7323
8477
|
name: string;
|
|
@@ -7327,6 +8481,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7327
8481
|
Insert: {
|
|
7328
8482
|
created_at?: string;
|
|
7329
8483
|
description?: string | null;
|
|
8484
|
+
head_product_id?: string | null;
|
|
8485
|
+
head_trade_item_floriday_id?: string | null;
|
|
7330
8486
|
id?: string;
|
|
7331
8487
|
is_active?: boolean;
|
|
7332
8488
|
name: string;
|
|
@@ -7336,13 +8492,21 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
7336
8492
|
Update: {
|
|
7337
8493
|
created_at?: string;
|
|
7338
8494
|
description?: string | null;
|
|
8495
|
+
head_product_id?: string | null;
|
|
8496
|
+
head_trade_item_floriday_id?: string | null;
|
|
7339
8497
|
id?: string;
|
|
7340
8498
|
is_active?: boolean;
|
|
7341
8499
|
name?: string;
|
|
7342
8500
|
tenant_id?: string;
|
|
7343
8501
|
updated_at?: string;
|
|
7344
8502
|
};
|
|
7345
|
-
Relationships: [
|
|
8503
|
+
Relationships: [{
|
|
8504
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8505
|
+
columns: ["head_product_id"];
|
|
8506
|
+
isOneToOne: false;
|
|
8507
|
+
referencedRelation: "products";
|
|
8508
|
+
referencedColumns: ["id"];
|
|
8509
|
+
}];
|
|
7346
8510
|
};
|
|
7347
8511
|
products: {
|
|
7348
8512
|
Row: {
|
|
@@ -8442,6 +9606,27 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
8442
9606
|
};
|
|
8443
9607
|
Relationships: [];
|
|
8444
9608
|
};
|
|
9609
|
+
technician_rates: {
|
|
9610
|
+
Row: {
|
|
9611
|
+
created_at: string;
|
|
9612
|
+
hourly_rate_cents: number;
|
|
9613
|
+
updated_at: string;
|
|
9614
|
+
user_id: string;
|
|
9615
|
+
};
|
|
9616
|
+
Insert: {
|
|
9617
|
+
created_at?: string;
|
|
9618
|
+
hourly_rate_cents?: number;
|
|
9619
|
+
updated_at?: string;
|
|
9620
|
+
user_id: string;
|
|
9621
|
+
};
|
|
9622
|
+
Update: {
|
|
9623
|
+
created_at?: string;
|
|
9624
|
+
hourly_rate_cents?: number;
|
|
9625
|
+
updated_at?: string;
|
|
9626
|
+
user_id?: string;
|
|
9627
|
+
};
|
|
9628
|
+
Relationships: [];
|
|
9629
|
+
};
|
|
8445
9630
|
tenants: {
|
|
8446
9631
|
Row: {
|
|
8447
9632
|
created_at: string;
|
|
@@ -8911,6 +10096,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
8911
10096
|
country: string | null;
|
|
8912
10097
|
created_at: string;
|
|
8913
10098
|
email: string | null;
|
|
10099
|
+
external_group_key: string | null;
|
|
8914
10100
|
id: string;
|
|
8915
10101
|
last_synced_at: string | null;
|
|
8916
10102
|
name: string;
|
|
@@ -8929,6 +10115,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
8929
10115
|
country?: string | null;
|
|
8930
10116
|
created_at?: string;
|
|
8931
10117
|
email?: string | null;
|
|
10118
|
+
external_group_key?: string | null;
|
|
8932
10119
|
id?: string;
|
|
8933
10120
|
last_synced_at?: string | null;
|
|
8934
10121
|
name: string;
|
|
@@ -8947,6 +10134,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
8947
10134
|
country?: string | null;
|
|
8948
10135
|
created_at?: string;
|
|
8949
10136
|
email?: string | null;
|
|
10137
|
+
external_group_key?: string | null;
|
|
8950
10138
|
id?: string;
|
|
8951
10139
|
last_synced_at?: string | null;
|
|
8952
10140
|
name?: string;
|
|
@@ -9111,6 +10299,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9111
10299
|
twinfield_invoice_settings: {
|
|
9112
10300
|
Row: {
|
|
9113
10301
|
created_at: string;
|
|
10302
|
+
debtor_gl_account: string;
|
|
10303
|
+
default_credit_invoice_type: string | null;
|
|
9114
10304
|
default_gl_account: string;
|
|
9115
10305
|
default_invoice_type: string;
|
|
9116
10306
|
default_payment_term_days: number;
|
|
@@ -9119,11 +10309,15 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9119
10309
|
invoice_enabled_fo: boolean;
|
|
9120
10310
|
invoice_enabled_ho: boolean;
|
|
9121
10311
|
invoice_enabled_mo: boolean;
|
|
10312
|
+
payment_gl_account: string;
|
|
10313
|
+
payment_journal_code: string;
|
|
9122
10314
|
updated_at: string;
|
|
9123
10315
|
user_id: string;
|
|
9124
10316
|
};
|
|
9125
10317
|
Insert: {
|
|
9126
10318
|
created_at?: string;
|
|
10319
|
+
debtor_gl_account?: string;
|
|
10320
|
+
default_credit_invoice_type?: string | null;
|
|
9127
10321
|
default_gl_account?: string;
|
|
9128
10322
|
default_invoice_type?: string;
|
|
9129
10323
|
default_payment_term_days?: number;
|
|
@@ -9132,11 +10326,15 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9132
10326
|
invoice_enabled_fo?: boolean;
|
|
9133
10327
|
invoice_enabled_ho?: boolean;
|
|
9134
10328
|
invoice_enabled_mo?: boolean;
|
|
10329
|
+
payment_gl_account?: string;
|
|
10330
|
+
payment_journal_code?: string;
|
|
9135
10331
|
updated_at?: string;
|
|
9136
10332
|
user_id: string;
|
|
9137
10333
|
};
|
|
9138
10334
|
Update: {
|
|
9139
10335
|
created_at?: string;
|
|
10336
|
+
debtor_gl_account?: string;
|
|
10337
|
+
default_credit_invoice_type?: string | null;
|
|
9140
10338
|
default_gl_account?: string;
|
|
9141
10339
|
default_invoice_type?: string;
|
|
9142
10340
|
default_payment_term_days?: number;
|
|
@@ -9145,6 +10343,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9145
10343
|
invoice_enabled_fo?: boolean;
|
|
9146
10344
|
invoice_enabled_ho?: boolean;
|
|
9147
10345
|
invoice_enabled_mo?: boolean;
|
|
10346
|
+
payment_gl_account?: string;
|
|
10347
|
+
payment_journal_code?: string;
|
|
9148
10348
|
updated_at?: string;
|
|
9149
10349
|
user_id?: string;
|
|
9150
10350
|
};
|
|
@@ -9365,43 +10565,49 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9365
10565
|
};
|
|
9366
10566
|
twinfield_push_queue: {
|
|
9367
10567
|
Row: {
|
|
10568
|
+
action: string;
|
|
9368
10569
|
attempts: number;
|
|
9369
10570
|
connection_id: string;
|
|
9370
10571
|
created_at: string;
|
|
10572
|
+
customer_id: string | null;
|
|
9371
10573
|
external_id: string | null;
|
|
9372
10574
|
id: string;
|
|
9373
10575
|
idempotency_key: string;
|
|
9374
10576
|
last_error: string | null;
|
|
9375
10577
|
next_attempt_at: string;
|
|
9376
|
-
office_code: string;
|
|
10578
|
+
office_code: string | null;
|
|
9377
10579
|
payload: import("../integrations/supabase/types").Json;
|
|
9378
10580
|
status: string;
|
|
9379
10581
|
updated_at: string;
|
|
9380
10582
|
};
|
|
9381
10583
|
Insert: {
|
|
10584
|
+
action?: string;
|
|
9382
10585
|
attempts?: number;
|
|
9383
10586
|
connection_id: string;
|
|
9384
10587
|
created_at?: string;
|
|
10588
|
+
customer_id?: string | null;
|
|
9385
10589
|
external_id?: string | null;
|
|
9386
10590
|
id?: string;
|
|
9387
10591
|
idempotency_key: string;
|
|
9388
10592
|
last_error?: string | null;
|
|
9389
10593
|
next_attempt_at?: string;
|
|
9390
|
-
office_code
|
|
10594
|
+
office_code?: string | null;
|
|
9391
10595
|
payload: import("../integrations/supabase/types").Json;
|
|
9392
10596
|
status?: string;
|
|
9393
10597
|
updated_at?: string;
|
|
9394
10598
|
};
|
|
9395
10599
|
Update: {
|
|
10600
|
+
action?: string;
|
|
9396
10601
|
attempts?: number;
|
|
9397
10602
|
connection_id?: string;
|
|
9398
10603
|
created_at?: string;
|
|
10604
|
+
customer_id?: string | null;
|
|
9399
10605
|
external_id?: string | null;
|
|
9400
10606
|
id?: string;
|
|
9401
10607
|
idempotency_key?: string;
|
|
9402
10608
|
last_error?: string | null;
|
|
9403
10609
|
next_attempt_at?: string;
|
|
9404
|
-
office_code?: string;
|
|
10610
|
+
office_code?: string | null;
|
|
9405
10611
|
payload?: import("../integrations/supabase/types").Json;
|
|
9406
10612
|
status?: string;
|
|
9407
10613
|
updated_at?: string;
|
|
@@ -9412,6 +10618,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9412
10618
|
isOneToOne: false;
|
|
9413
10619
|
referencedRelation: "twinfield_connections";
|
|
9414
10620
|
referencedColumns: ["id"];
|
|
10621
|
+
}, {
|
|
10622
|
+
foreignKeyName: "twinfield_push_queue_customer_id_fkey";
|
|
10623
|
+
columns: ["customer_id"];
|
|
10624
|
+
isOneToOne: false;
|
|
10625
|
+
referencedRelation: "customers";
|
|
10626
|
+
referencedColumns: ["id"];
|
|
9415
10627
|
}];
|
|
9416
10628
|
};
|
|
9417
10629
|
twinfield_request_metrics: {
|
|
@@ -9687,6 +10899,252 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9687
10899
|
};
|
|
9688
10900
|
Relationships: [];
|
|
9689
10901
|
};
|
|
10902
|
+
werkbon_package_lines: {
|
|
10903
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
10922
|
+
created_at?: string;
|
|
10923
|
+
created_by?: string | null;
|
|
10924
|
+
id?: string;
|
|
10925
|
+
package_id?: string;
|
|
10926
|
+
quantity?: number;
|
|
10927
|
+
unit_price_cents_snapshot?: number;
|
|
10928
|
+
werkbon_id?: string;
|
|
10929
|
+
};
|
|
10930
|
+
Relationships: [{
|
|
10931
|
+
foreignKeyName: "werkbon_package_lines_package_id_fkey";
|
|
10932
|
+
columns: ["package_id"];
|
|
10933
|
+
isOneToOne: false;
|
|
10934
|
+
referencedRelation: "werkbon_packages";
|
|
10935
|
+
referencedColumns: ["id"];
|
|
10936
|
+
}, {
|
|
10937
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
10938
|
+
columns: ["werkbon_id"];
|
|
10939
|
+
isOneToOne: false;
|
|
10940
|
+
referencedRelation: "werkbonnen";
|
|
10941
|
+
referencedColumns: ["id"];
|
|
10942
|
+
}];
|
|
10943
|
+
};
|
|
10944
|
+
werkbon_packages: {
|
|
10945
|
+
Row: {
|
|
10946
|
+
active: boolean;
|
|
10947
|
+
code: string;
|
|
10948
|
+
created_at: string;
|
|
10949
|
+
default_quantity: number;
|
|
10950
|
+
description: string | null;
|
|
10951
|
+
id: string;
|
|
10952
|
+
name: string;
|
|
10953
|
+
unit_price_cents: number;
|
|
10954
|
+
updated_at: string;
|
|
10955
|
+
};
|
|
10956
|
+
Insert: {
|
|
10957
|
+
active?: boolean;
|
|
10958
|
+
code: string;
|
|
10959
|
+
created_at?: string;
|
|
10960
|
+
default_quantity?: number;
|
|
10961
|
+
description?: string | null;
|
|
10962
|
+
id?: string;
|
|
10963
|
+
name: string;
|
|
10964
|
+
unit_price_cents?: number;
|
|
10965
|
+
updated_at?: string;
|
|
10966
|
+
};
|
|
10967
|
+
Update: {
|
|
10968
|
+
active?: boolean;
|
|
10969
|
+
code?: string;
|
|
10970
|
+
created_at?: string;
|
|
10971
|
+
default_quantity?: number;
|
|
10972
|
+
description?: string | null;
|
|
10973
|
+
id?: string;
|
|
10974
|
+
name?: string;
|
|
10975
|
+
unit_price_cents?: number;
|
|
10976
|
+
updated_at?: string;
|
|
10977
|
+
};
|
|
10978
|
+
Relationships: [];
|
|
10979
|
+
};
|
|
10980
|
+
werkbon_photos: {
|
|
10981
|
+
Row: {
|
|
10982
|
+
created_at: string;
|
|
10983
|
+
id: string;
|
|
10984
|
+
storage_path: string;
|
|
10985
|
+
user_id: string;
|
|
10986
|
+
werkbon_id: string;
|
|
10987
|
+
};
|
|
10988
|
+
Insert: {
|
|
10989
|
+
created_at?: string;
|
|
10990
|
+
id?: string;
|
|
10991
|
+
storage_path: string;
|
|
10992
|
+
user_id: string;
|
|
10993
|
+
werkbon_id: string;
|
|
10994
|
+
};
|
|
10995
|
+
Update: {
|
|
10996
|
+
created_at?: string;
|
|
10997
|
+
id?: string;
|
|
10998
|
+
storage_path?: string;
|
|
10999
|
+
user_id?: string;
|
|
11000
|
+
werkbon_id?: string;
|
|
11001
|
+
};
|
|
11002
|
+
Relationships: [{
|
|
11003
|
+
foreignKeyName: "werkbon_photos_werkbon_id_fkey";
|
|
11004
|
+
columns: ["werkbon_id"];
|
|
11005
|
+
isOneToOne: false;
|
|
11006
|
+
referencedRelation: "werkbonnen";
|
|
11007
|
+
referencedColumns: ["id"];
|
|
11008
|
+
}];
|
|
11009
|
+
};
|
|
11010
|
+
werkbon_time_logs: {
|
|
11011
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
11030
|
+
activity?: string;
|
|
11031
|
+
created_at?: string;
|
|
11032
|
+
ended_at?: string | null;
|
|
11033
|
+
id?: string;
|
|
11034
|
+
started_at?: string;
|
|
11035
|
+
user_id?: string;
|
|
11036
|
+
werkbon_id?: string;
|
|
11037
|
+
};
|
|
11038
|
+
Relationships: [{
|
|
11039
|
+
foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
|
|
11040
|
+
columns: ["werkbon_id"];
|
|
11041
|
+
isOneToOne: false;
|
|
11042
|
+
referencedRelation: "werkbonnen";
|
|
11043
|
+
referencedColumns: ["id"];
|
|
11044
|
+
}];
|
|
11045
|
+
};
|
|
11046
|
+
werkbonnen: {
|
|
11047
|
+
Row: {
|
|
11048
|
+
assigned_user_id: string | null;
|
|
11049
|
+
budget_mandate_cents: number;
|
|
11050
|
+
complaint_description: string | null;
|
|
11051
|
+
created_at: string;
|
|
11052
|
+
created_by: string | null;
|
|
11053
|
+
customer_id: string | null;
|
|
11054
|
+
externe_referentie: string | null;
|
|
11055
|
+
first_time_fix: boolean | null;
|
|
11056
|
+
id: string;
|
|
11057
|
+
internal_notes: string | null;
|
|
11058
|
+
parent_werkbon_id: string | null;
|
|
11059
|
+
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
11060
|
+
planning_status: string;
|
|
11061
|
+
project_number: string | null;
|
|
11062
|
+
room_number: string | null;
|
|
11063
|
+
scheduled_end_time: string | null;
|
|
11064
|
+
scheduled_start_time: string | null;
|
|
11065
|
+
sequence_number: number;
|
|
11066
|
+
source_pdf_path: string | null;
|
|
11067
|
+
status: string;
|
|
11068
|
+
technician_id: string | null;
|
|
11069
|
+
technician_notes: string | null;
|
|
11070
|
+
technician_notes_raw: string | null;
|
|
11071
|
+
technician_task_description: string | null;
|
|
11072
|
+
updated_at: string;
|
|
11073
|
+
version: number;
|
|
11074
|
+
work_address: string | null;
|
|
11075
|
+
};
|
|
11076
|
+
Insert: {
|
|
11077
|
+
assigned_user_id?: string | null;
|
|
11078
|
+
budget_mandate_cents?: number;
|
|
11079
|
+
complaint_description?: string | null;
|
|
11080
|
+
created_at?: string;
|
|
11081
|
+
created_by?: string | null;
|
|
11082
|
+
customer_id?: string | null;
|
|
11083
|
+
externe_referentie?: string | null;
|
|
11084
|
+
first_time_fix?: boolean | null;
|
|
11085
|
+
id?: string;
|
|
11086
|
+
internal_notes?: string | null;
|
|
11087
|
+
parent_werkbon_id?: string | null;
|
|
11088
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11089
|
+
planning_status?: string;
|
|
11090
|
+
project_number?: string | null;
|
|
11091
|
+
room_number?: string | null;
|
|
11092
|
+
scheduled_end_time?: string | null;
|
|
11093
|
+
scheduled_start_time?: string | null;
|
|
11094
|
+
sequence_number: number;
|
|
11095
|
+
source_pdf_path?: string | null;
|
|
11096
|
+
status?: string;
|
|
11097
|
+
technician_id?: string | null;
|
|
11098
|
+
technician_notes?: string | null;
|
|
11099
|
+
technician_notes_raw?: string | null;
|
|
11100
|
+
technician_task_description?: string | null;
|
|
11101
|
+
updated_at?: string;
|
|
11102
|
+
version?: number;
|
|
11103
|
+
work_address?: string | null;
|
|
11104
|
+
};
|
|
11105
|
+
Update: {
|
|
11106
|
+
assigned_user_id?: string | null;
|
|
11107
|
+
budget_mandate_cents?: number;
|
|
11108
|
+
complaint_description?: string | null;
|
|
11109
|
+
created_at?: string;
|
|
11110
|
+
created_by?: string | null;
|
|
11111
|
+
customer_id?: string | null;
|
|
11112
|
+
externe_referentie?: string | null;
|
|
11113
|
+
first_time_fix?: boolean | null;
|
|
11114
|
+
id?: string;
|
|
11115
|
+
internal_notes?: string | null;
|
|
11116
|
+
parent_werkbon_id?: string | null;
|
|
11117
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11118
|
+
planning_status?: string;
|
|
11119
|
+
project_number?: string | null;
|
|
11120
|
+
room_number?: string | null;
|
|
11121
|
+
scheduled_end_time?: string | null;
|
|
11122
|
+
scheduled_start_time?: string | null;
|
|
11123
|
+
sequence_number?: number;
|
|
11124
|
+
source_pdf_path?: string | null;
|
|
11125
|
+
status?: string;
|
|
11126
|
+
technician_id?: string | null;
|
|
11127
|
+
technician_notes?: string | null;
|
|
11128
|
+
technician_notes_raw?: string | null;
|
|
11129
|
+
technician_task_description?: string | null;
|
|
11130
|
+
updated_at?: string;
|
|
11131
|
+
version?: number;
|
|
11132
|
+
work_address?: string | null;
|
|
11133
|
+
};
|
|
11134
|
+
Relationships: [{
|
|
11135
|
+
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
11136
|
+
columns: ["parent_werkbon_id"];
|
|
11137
|
+
isOneToOne: false;
|
|
11138
|
+
referencedRelation: "werkbonnen";
|
|
11139
|
+
referencedColumns: ["id"];
|
|
11140
|
+
}, {
|
|
11141
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
11142
|
+
columns: ["technician_id"];
|
|
11143
|
+
isOneToOne: false;
|
|
11144
|
+
referencedRelation: "monteurs";
|
|
11145
|
+
referencedColumns: ["id"];
|
|
11146
|
+
}];
|
|
11147
|
+
};
|
|
9690
11148
|
work_order_monteurs: {
|
|
9691
11149
|
Row: {
|
|
9692
11150
|
created_at: string;
|
|
@@ -9857,6 +11315,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9857
11315
|
created_at: string | null;
|
|
9858
11316
|
created_by: string | null;
|
|
9859
11317
|
display_name: string | null;
|
|
11318
|
+
graph_subscription_expires_at: string | null;
|
|
11319
|
+
graph_subscription_id: string | null;
|
|
9860
11320
|
has_access_token: boolean | null;
|
|
9861
11321
|
has_client_id: boolean | null;
|
|
9862
11322
|
has_client_secret: boolean | null;
|
|
@@ -9874,6 +11334,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9874
11334
|
oauth_mode: string | null;
|
|
9875
11335
|
provider: string | null;
|
|
9876
11336
|
purpose_assignments: import("../integrations/supabase/types").Json | null;
|
|
11337
|
+
realtime_mode: string | null;
|
|
9877
11338
|
scopes: string[] | null;
|
|
9878
11339
|
smtp_host: string | null;
|
|
9879
11340
|
smtp_port: number | null;
|
|
@@ -9888,6 +11349,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9888
11349
|
created_at?: string | null;
|
|
9889
11350
|
created_by?: string | null;
|
|
9890
11351
|
display_name?: string | null;
|
|
11352
|
+
graph_subscription_expires_at?: string | null;
|
|
11353
|
+
graph_subscription_id?: string | null;
|
|
9891
11354
|
has_access_token?: never;
|
|
9892
11355
|
has_client_id?: never;
|
|
9893
11356
|
has_client_secret?: never;
|
|
@@ -9905,6 +11368,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9905
11368
|
oauth_mode?: string | null;
|
|
9906
11369
|
provider?: string | null;
|
|
9907
11370
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
11371
|
+
realtime_mode?: string | null;
|
|
9908
11372
|
scopes?: string[] | null;
|
|
9909
11373
|
smtp_host?: string | null;
|
|
9910
11374
|
smtp_port?: number | null;
|
|
@@ -9919,6 +11383,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9919
11383
|
created_at?: string | null;
|
|
9920
11384
|
created_by?: string | null;
|
|
9921
11385
|
display_name?: string | null;
|
|
11386
|
+
graph_subscription_expires_at?: string | null;
|
|
11387
|
+
graph_subscription_id?: string | null;
|
|
9922
11388
|
has_access_token?: never;
|
|
9923
11389
|
has_client_id?: never;
|
|
9924
11390
|
has_client_secret?: never;
|
|
@@ -9936,6 +11402,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9936
11402
|
oauth_mode?: string | null;
|
|
9937
11403
|
provider?: string | null;
|
|
9938
11404
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
11405
|
+
realtime_mode?: string | null;
|
|
9939
11406
|
scopes?: string[] | null;
|
|
9940
11407
|
smtp_host?: string | null;
|
|
9941
11408
|
smtp_port?: number | null;
|
|
@@ -10394,6 +11861,21 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10394
11861
|
};
|
|
10395
11862
|
Returns: string;
|
|
10396
11863
|
};
|
|
11864
|
+
ai_usage_by_module: {
|
|
11865
|
+
Args: {
|
|
11866
|
+
_from: string;
|
|
11867
|
+
_to: string;
|
|
11868
|
+
};
|
|
11869
|
+
Returns: {
|
|
11870
|
+
calls: number;
|
|
11871
|
+
consumer_module_id: string;
|
|
11872
|
+
cost_usd: number;
|
|
11873
|
+
errors: number;
|
|
11874
|
+
input_tokens: number;
|
|
11875
|
+
output_tokens: number;
|
|
11876
|
+
total_tokens: number;
|
|
11877
|
+
}[];
|
|
11878
|
+
};
|
|
10397
11879
|
apply_stock_consumption: {
|
|
10398
11880
|
Args: {
|
|
10399
11881
|
p_order_id: string;
|
|
@@ -10479,6 +11961,33 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10479
11961
|
};
|
|
10480
11962
|
Returns: import("../integrations/supabase/types").Json;
|
|
10481
11963
|
};
|
|
11964
|
+
claim_twinfield_push_batch: {
|
|
11965
|
+
Args: {
|
|
11966
|
+
_limit?: number;
|
|
11967
|
+
};
|
|
11968
|
+
Returns: {
|
|
11969
|
+
action: string;
|
|
11970
|
+
attempts: number;
|
|
11971
|
+
connection_id: string;
|
|
11972
|
+
created_at: string;
|
|
11973
|
+
customer_id: string | null;
|
|
11974
|
+
external_id: string | null;
|
|
11975
|
+
id: string;
|
|
11976
|
+
idempotency_key: string;
|
|
11977
|
+
last_error: string | null;
|
|
11978
|
+
next_attempt_at: string;
|
|
11979
|
+
office_code: string | null;
|
|
11980
|
+
payload: import("../integrations/supabase/types").Json;
|
|
11981
|
+
status: string;
|
|
11982
|
+
updated_at: string;
|
|
11983
|
+
}[];
|
|
11984
|
+
SetofOptions: {
|
|
11985
|
+
from: "*";
|
|
11986
|
+
to: "twinfield_push_queue";
|
|
11987
|
+
isOneToOne: false;
|
|
11988
|
+
isSetofReturn: true;
|
|
11989
|
+
};
|
|
11990
|
+
};
|
|
10482
11991
|
cleanup_old_bookings: {
|
|
10483
11992
|
Args: never;
|
|
10484
11993
|
Returns: undefined;
|
|
@@ -10515,6 +12024,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10515
12024
|
Args: never;
|
|
10516
12025
|
Returns: string;
|
|
10517
12026
|
};
|
|
12027
|
+
custom_access_token_hook: {
|
|
12028
|
+
Args: {
|
|
12029
|
+
event: import("../integrations/supabase/types").Json;
|
|
12030
|
+
};
|
|
12031
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12032
|
+
};
|
|
10518
12033
|
dashboard_alert_counts: {
|
|
10519
12034
|
Args: never;
|
|
10520
12035
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -10575,6 +12090,16 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10575
12090
|
status: string;
|
|
10576
12091
|
}[];
|
|
10577
12092
|
};
|
|
12093
|
+
email_auth_upsert_connection: {
|
|
12094
|
+
Args: {
|
|
12095
|
+
_account_email: string;
|
|
12096
|
+
_created_by: string;
|
|
12097
|
+
_is_active: boolean;
|
|
12098
|
+
_provider: string;
|
|
12099
|
+
_status: string;
|
|
12100
|
+
};
|
|
12101
|
+
Returns: string;
|
|
12102
|
+
};
|
|
10578
12103
|
enqueue_cart_replan_if_unlocked: {
|
|
10579
12104
|
Args: {
|
|
10580
12105
|
p_order_id: string;
|
|
@@ -10840,6 +12365,14 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10840
12365
|
};
|
|
10841
12366
|
Returns: string;
|
|
10842
12367
|
};
|
|
12368
|
+
has_module_permission: {
|
|
12369
|
+
Args: {
|
|
12370
|
+
_min: string;
|
|
12371
|
+
_module_id: string;
|
|
12372
|
+
_user_id: string;
|
|
12373
|
+
};
|
|
12374
|
+
Returns: boolean;
|
|
12375
|
+
};
|
|
10843
12376
|
has_role: {
|
|
10844
12377
|
Args: {
|
|
10845
12378
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -10847,6 +12380,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10847
12380
|
};
|
|
10848
12381
|
Returns: boolean;
|
|
10849
12382
|
};
|
|
12383
|
+
has_twinfield_link: {
|
|
12384
|
+
Args: never;
|
|
12385
|
+
Returns: boolean;
|
|
12386
|
+
};
|
|
10850
12387
|
is_authenticated: {
|
|
10851
12388
|
Args: never;
|
|
10852
12389
|
Returns: boolean;
|
|
@@ -10861,6 +12398,20 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10861
12398
|
};
|
|
10862
12399
|
Returns: boolean;
|
|
10863
12400
|
};
|
|
12401
|
+
jwt_has_role: {
|
|
12402
|
+
Args: {
|
|
12403
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
12404
|
+
};
|
|
12405
|
+
Returns: boolean;
|
|
12406
|
+
};
|
|
12407
|
+
list_monteurs: {
|
|
12408
|
+
Args: never;
|
|
12409
|
+
Returns: {
|
|
12410
|
+
display_name: string;
|
|
12411
|
+
email: string;
|
|
12412
|
+
user_id: string;
|
|
12413
|
+
}[];
|
|
12414
|
+
};
|
|
10864
12415
|
local_effective_price: {
|
|
10865
12416
|
Args: {
|
|
10866
12417
|
_customer_id: string;
|
|
@@ -10877,6 +12428,22 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10877
12428
|
source_id: string;
|
|
10878
12429
|
}[];
|
|
10879
12430
|
};
|
|
12431
|
+
log_ai_call: {
|
|
12432
|
+
Args: {
|
|
12433
|
+
_consumer_module_id: string;
|
|
12434
|
+
_cost_usd: number;
|
|
12435
|
+
_duration_ms: number;
|
|
12436
|
+
_error_code: string;
|
|
12437
|
+
_error_message: string;
|
|
12438
|
+
_input_tokens: number;
|
|
12439
|
+
_model_slug: string;
|
|
12440
|
+
_output_tokens: number;
|
|
12441
|
+
_provider_slug: string;
|
|
12442
|
+
_status: string;
|
|
12443
|
+
_total_tokens: number;
|
|
12444
|
+
};
|
|
12445
|
+
Returns: string;
|
|
12446
|
+
};
|
|
10880
12447
|
mark_offer_clicked: {
|
|
10881
12448
|
Args: {
|
|
10882
12449
|
p_code: string;
|
|
@@ -10889,6 +12456,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10889
12456
|
};
|
|
10890
12457
|
Returns: undefined;
|
|
10891
12458
|
};
|
|
12459
|
+
mark_shipment_shipped: {
|
|
12460
|
+
Args: {
|
|
12461
|
+
p_shipment_id: string;
|
|
12462
|
+
};
|
|
12463
|
+
Returns: undefined;
|
|
12464
|
+
};
|
|
10892
12465
|
next_order_number: {
|
|
10893
12466
|
Args: {
|
|
10894
12467
|
p_prefix: string;
|
|
@@ -10902,6 +12475,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10902
12475
|
};
|
|
10903
12476
|
Returns: string;
|
|
10904
12477
|
};
|
|
12478
|
+
next_twinfield_code: {
|
|
12479
|
+
Args: never;
|
|
12480
|
+
Returns: string;
|
|
12481
|
+
};
|
|
10905
12482
|
next_work_order_number: {
|
|
10906
12483
|
Args: {
|
|
10907
12484
|
p_parent_work_order_id?: string;
|
|
@@ -11016,6 +12593,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
11016
12593
|
};
|
|
11017
12594
|
Returns: number;
|
|
11018
12595
|
};
|
|
12596
|
+
reorder_customer_price_groups: {
|
|
12597
|
+
Args: {
|
|
12598
|
+
_ids: string[];
|
|
12599
|
+
};
|
|
12600
|
+
Returns: undefined;
|
|
12601
|
+
};
|
|
11019
12602
|
reset_floriday_sync_cursor: {
|
|
11020
12603
|
Args: {
|
|
11021
12604
|
p_connection_id: string;
|
|
@@ -11029,6 +12612,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
11029
12612
|
};
|
|
11030
12613
|
Returns: string;
|
|
11031
12614
|
};
|
|
12615
|
+
retry_twinfield_push: {
|
|
12616
|
+
Args: {
|
|
12617
|
+
_customer_id: string;
|
|
12618
|
+
};
|
|
12619
|
+
Returns: number;
|
|
12620
|
+
};
|
|
11032
12621
|
schedule_floriday_additional_services_sync: {
|
|
11033
12622
|
Args: {
|
|
11034
12623
|
p_apikey: string;
|
|
@@ -11349,9 +12938,11 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
11349
12938
|
};
|
|
11350
12939
|
};
|
|
11351
12940
|
Enums: {
|
|
11352
|
-
app_role: "admin" | "
|
|
12941
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
11353
12942
|
exact_env: "staging" | "live";
|
|
11354
12943
|
exact_push_status: "pending" | "sent" | "error";
|
|
12944
|
+
itk_customer_segment: "Business" | "Private";
|
|
12945
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
11355
12946
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
11356
12947
|
};
|
|
11357
12948
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -11561,48 +13152,360 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
11561
13152
|
scope?: string | null;
|
|
11562
13153
|
token_expires_at?: string | null;
|
|
11563
13154
|
updated_at?: string;
|
|
11564
|
-
user_id: string;
|
|
13155
|
+
user_id: string;
|
|
13156
|
+
};
|
|
13157
|
+
Update: {
|
|
13158
|
+
access_token?: string | null;
|
|
13159
|
+
created_at?: string;
|
|
13160
|
+
id?: string;
|
|
13161
|
+
provider?: string;
|
|
13162
|
+
refresh_token?: string | null;
|
|
13163
|
+
scope?: string | null;
|
|
13164
|
+
token_expires_at?: string | null;
|
|
13165
|
+
updated_at?: string;
|
|
13166
|
+
user_id?: string;
|
|
13167
|
+
};
|
|
13168
|
+
Relationships: [];
|
|
13169
|
+
};
|
|
13170
|
+
agenda_settings: {
|
|
13171
|
+
Row: {
|
|
13172
|
+
color_map: import("../integrations/supabase/types").Json;
|
|
13173
|
+
created_at: string;
|
|
13174
|
+
default_calendar_id: string;
|
|
13175
|
+
default_view: string;
|
|
13176
|
+
settings: import("../integrations/supabase/types").Json;
|
|
13177
|
+
updated_at: string;
|
|
13178
|
+
user_id: string;
|
|
13179
|
+
};
|
|
13180
|
+
Insert: {
|
|
13181
|
+
color_map?: import("../integrations/supabase/types").Json;
|
|
13182
|
+
created_at?: string;
|
|
13183
|
+
default_calendar_id?: string;
|
|
13184
|
+
default_view?: string;
|
|
13185
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
13186
|
+
updated_at?: string;
|
|
13187
|
+
user_id: string;
|
|
13188
|
+
};
|
|
13189
|
+
Update: {
|
|
13190
|
+
color_map?: import("../integrations/supabase/types").Json;
|
|
13191
|
+
created_at?: string;
|
|
13192
|
+
default_calendar_id?: string;
|
|
13193
|
+
default_view?: string;
|
|
13194
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
13195
|
+
updated_at?: string;
|
|
13196
|
+
user_id?: string;
|
|
13197
|
+
};
|
|
13198
|
+
Relationships: [];
|
|
13199
|
+
};
|
|
13200
|
+
ai_admin_credentials: {
|
|
13201
|
+
Row: {
|
|
13202
|
+
active: boolean;
|
|
13203
|
+
admin_key: string;
|
|
13204
|
+
created_at: string;
|
|
13205
|
+
id: string;
|
|
13206
|
+
label: string;
|
|
13207
|
+
provider_id: string;
|
|
13208
|
+
updated_at: string;
|
|
13209
|
+
};
|
|
13210
|
+
Insert: {
|
|
13211
|
+
active?: boolean;
|
|
13212
|
+
admin_key: string;
|
|
13213
|
+
created_at?: string;
|
|
13214
|
+
id?: string;
|
|
13215
|
+
label: string;
|
|
13216
|
+
provider_id: string;
|
|
13217
|
+
updated_at?: string;
|
|
13218
|
+
};
|
|
13219
|
+
Update: {
|
|
13220
|
+
active?: boolean;
|
|
13221
|
+
admin_key?: string;
|
|
13222
|
+
created_at?: string;
|
|
13223
|
+
id?: string;
|
|
13224
|
+
label?: string;
|
|
13225
|
+
provider_id?: string;
|
|
13226
|
+
updated_at?: string;
|
|
13227
|
+
};
|
|
13228
|
+
Relationships: [{
|
|
13229
|
+
foreignKeyName: "ai_admin_credentials_provider_id_fkey";
|
|
13230
|
+
columns: ["provider_id"];
|
|
13231
|
+
isOneToOne: true;
|
|
13232
|
+
referencedRelation: "ai_providers";
|
|
13233
|
+
referencedColumns: ["id"];
|
|
13234
|
+
}];
|
|
13235
|
+
};
|
|
13236
|
+
ai_call_log: {
|
|
13237
|
+
Row: {
|
|
13238
|
+
consumer_module_id: string;
|
|
13239
|
+
cost_usd: number | null;
|
|
13240
|
+
created_at: string;
|
|
13241
|
+
created_by: string | null;
|
|
13242
|
+
duration_ms: number | null;
|
|
13243
|
+
error_code: string | null;
|
|
13244
|
+
error_message: string | null;
|
|
13245
|
+
id: string;
|
|
13246
|
+
input_tokens: number;
|
|
13247
|
+
model_slug: string | null;
|
|
13248
|
+
output_tokens: number;
|
|
13249
|
+
provider_slug: string | null;
|
|
13250
|
+
status: string;
|
|
13251
|
+
total_tokens: number;
|
|
13252
|
+
};
|
|
13253
|
+
Insert: {
|
|
13254
|
+
consumer_module_id: string;
|
|
13255
|
+
cost_usd?: number | null;
|
|
13256
|
+
created_at?: string;
|
|
13257
|
+
created_by?: string | null;
|
|
13258
|
+
duration_ms?: number | null;
|
|
13259
|
+
error_code?: string | null;
|
|
13260
|
+
error_message?: string | null;
|
|
13261
|
+
id?: string;
|
|
13262
|
+
input_tokens?: number;
|
|
13263
|
+
model_slug?: string | null;
|
|
13264
|
+
output_tokens?: number;
|
|
13265
|
+
provider_slug?: string | null;
|
|
13266
|
+
status: string;
|
|
13267
|
+
total_tokens?: number;
|
|
13268
|
+
};
|
|
13269
|
+
Update: {
|
|
13270
|
+
consumer_module_id?: string;
|
|
13271
|
+
cost_usd?: number | null;
|
|
13272
|
+
created_at?: string;
|
|
13273
|
+
created_by?: string | null;
|
|
13274
|
+
duration_ms?: number | null;
|
|
13275
|
+
error_code?: string | null;
|
|
13276
|
+
error_message?: string | null;
|
|
13277
|
+
id?: string;
|
|
13278
|
+
input_tokens?: number;
|
|
13279
|
+
model_slug?: string | null;
|
|
13280
|
+
output_tokens?: number;
|
|
13281
|
+
provider_slug?: string | null;
|
|
13282
|
+
status?: string;
|
|
13283
|
+
total_tokens?: number;
|
|
13284
|
+
};
|
|
13285
|
+
Relationships: [];
|
|
13286
|
+
};
|
|
13287
|
+
ai_credentials: {
|
|
13288
|
+
Row: {
|
|
13289
|
+
active: boolean;
|
|
13290
|
+
api_key: string;
|
|
13291
|
+
created_at: string;
|
|
13292
|
+
id: string;
|
|
13293
|
+
label: string;
|
|
13294
|
+
provider_id: string;
|
|
13295
|
+
updated_at: string;
|
|
13296
|
+
};
|
|
13297
|
+
Insert: {
|
|
13298
|
+
active?: boolean;
|
|
13299
|
+
api_key: string;
|
|
13300
|
+
created_at?: string;
|
|
13301
|
+
id?: string;
|
|
13302
|
+
label: string;
|
|
13303
|
+
provider_id: string;
|
|
13304
|
+
updated_at?: string;
|
|
13305
|
+
};
|
|
13306
|
+
Update: {
|
|
13307
|
+
active?: boolean;
|
|
13308
|
+
api_key?: string;
|
|
13309
|
+
created_at?: string;
|
|
13310
|
+
id?: string;
|
|
13311
|
+
label?: string;
|
|
13312
|
+
provider_id?: string;
|
|
13313
|
+
updated_at?: string;
|
|
13314
|
+
};
|
|
13315
|
+
Relationships: [{
|
|
13316
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
13317
|
+
columns: ["provider_id"];
|
|
13318
|
+
isOneToOne: false;
|
|
13319
|
+
referencedRelation: "ai_providers";
|
|
13320
|
+
referencedColumns: ["id"];
|
|
13321
|
+
}];
|
|
13322
|
+
};
|
|
13323
|
+
ai_goals: {
|
|
13324
|
+
Row: {
|
|
13325
|
+
active: boolean;
|
|
13326
|
+
created_at: string;
|
|
13327
|
+
description: string | null;
|
|
13328
|
+
key: string;
|
|
13329
|
+
label: string;
|
|
13330
|
+
sort_order: number;
|
|
13331
|
+
updated_at: string;
|
|
13332
|
+
};
|
|
13333
|
+
Insert: {
|
|
13334
|
+
active?: boolean;
|
|
13335
|
+
created_at?: string;
|
|
13336
|
+
description?: string | null;
|
|
13337
|
+
key: string;
|
|
13338
|
+
label: string;
|
|
13339
|
+
sort_order?: number;
|
|
13340
|
+
updated_at?: string;
|
|
13341
|
+
};
|
|
13342
|
+
Update: {
|
|
13343
|
+
active?: boolean;
|
|
13344
|
+
created_at?: string;
|
|
13345
|
+
description?: string | null;
|
|
13346
|
+
key?: string;
|
|
13347
|
+
label?: string;
|
|
13348
|
+
sort_order?: number;
|
|
13349
|
+
updated_at?: string;
|
|
13350
|
+
};
|
|
13351
|
+
Relationships: [];
|
|
13352
|
+
};
|
|
13353
|
+
ai_model_pricing: {
|
|
13354
|
+
Row: {
|
|
13355
|
+
created_at: string;
|
|
13356
|
+
currency: string;
|
|
13357
|
+
fetched_at: string;
|
|
13358
|
+
id: string;
|
|
13359
|
+
input_per_mtok: number | null;
|
|
13360
|
+
model_slug: string;
|
|
13361
|
+
output_per_mtok: number | null;
|
|
13362
|
+
provider_slug: string;
|
|
13363
|
+
source: string;
|
|
13364
|
+
updated_at: string;
|
|
13365
|
+
};
|
|
13366
|
+
Insert: {
|
|
13367
|
+
created_at?: string;
|
|
13368
|
+
currency?: string;
|
|
13369
|
+
fetched_at?: string;
|
|
13370
|
+
id?: string;
|
|
13371
|
+
input_per_mtok?: number | null;
|
|
13372
|
+
model_slug: string;
|
|
13373
|
+
output_per_mtok?: number | null;
|
|
13374
|
+
provider_slug: string;
|
|
13375
|
+
source?: string;
|
|
13376
|
+
updated_at?: string;
|
|
13377
|
+
};
|
|
13378
|
+
Update: {
|
|
13379
|
+
created_at?: string;
|
|
13380
|
+
currency?: string;
|
|
13381
|
+
fetched_at?: string;
|
|
13382
|
+
id?: string;
|
|
13383
|
+
input_per_mtok?: number | null;
|
|
13384
|
+
model_slug?: string;
|
|
13385
|
+
output_per_mtok?: number | null;
|
|
13386
|
+
provider_slug?: string;
|
|
13387
|
+
source?: string;
|
|
13388
|
+
updated_at?: string;
|
|
13389
|
+
};
|
|
13390
|
+
Relationships: [];
|
|
13391
|
+
};
|
|
13392
|
+
ai_models: {
|
|
13393
|
+
Row: {
|
|
13394
|
+
active: boolean;
|
|
13395
|
+
context_window: number | null;
|
|
13396
|
+
created_at: string;
|
|
13397
|
+
display_name: string;
|
|
13398
|
+
id: string;
|
|
13399
|
+
is_default: boolean;
|
|
13400
|
+
modality: string;
|
|
13401
|
+
provider_id: string;
|
|
13402
|
+
slug: string;
|
|
13403
|
+
updated_at: string;
|
|
13404
|
+
};
|
|
13405
|
+
Insert: {
|
|
13406
|
+
active?: boolean;
|
|
13407
|
+
context_window?: number | null;
|
|
13408
|
+
created_at?: string;
|
|
13409
|
+
display_name: string;
|
|
13410
|
+
id?: string;
|
|
13411
|
+
is_default?: boolean;
|
|
13412
|
+
modality?: string;
|
|
13413
|
+
provider_id: string;
|
|
13414
|
+
slug: string;
|
|
13415
|
+
updated_at?: string;
|
|
13416
|
+
};
|
|
13417
|
+
Update: {
|
|
13418
|
+
active?: boolean;
|
|
13419
|
+
context_window?: number | null;
|
|
13420
|
+
created_at?: string;
|
|
13421
|
+
display_name?: string;
|
|
13422
|
+
id?: string;
|
|
13423
|
+
is_default?: boolean;
|
|
13424
|
+
modality?: string;
|
|
13425
|
+
provider_id?: string;
|
|
13426
|
+
slug?: string;
|
|
13427
|
+
updated_at?: string;
|
|
13428
|
+
};
|
|
13429
|
+
Relationships: [{
|
|
13430
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
13431
|
+
columns: ["provider_id"];
|
|
13432
|
+
isOneToOne: false;
|
|
13433
|
+
referencedRelation: "ai_providers";
|
|
13434
|
+
referencedColumns: ["id"];
|
|
13435
|
+
}];
|
|
13436
|
+
};
|
|
13437
|
+
ai_module_bindings: {
|
|
13438
|
+
Row: {
|
|
13439
|
+
consumer_module_id: string;
|
|
13440
|
+
created_at: string;
|
|
13441
|
+
credential_id: string;
|
|
13442
|
+
id: string;
|
|
13443
|
+
model_id: string;
|
|
13444
|
+
notes: string | null;
|
|
13445
|
+
updated_at: string;
|
|
13446
|
+
};
|
|
13447
|
+
Insert: {
|
|
13448
|
+
consumer_module_id: string;
|
|
13449
|
+
created_at?: string;
|
|
13450
|
+
credential_id: string;
|
|
13451
|
+
id?: string;
|
|
13452
|
+
model_id: string;
|
|
13453
|
+
notes?: string | null;
|
|
13454
|
+
updated_at?: string;
|
|
11565
13455
|
};
|
|
11566
13456
|
Update: {
|
|
11567
|
-
|
|
13457
|
+
consumer_module_id?: string;
|
|
11568
13458
|
created_at?: string;
|
|
13459
|
+
credential_id?: string;
|
|
11569
13460
|
id?: string;
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
scope?: string | null;
|
|
11573
|
-
token_expires_at?: string | null;
|
|
13461
|
+
model_id?: string;
|
|
13462
|
+
notes?: string | null;
|
|
11574
13463
|
updated_at?: string;
|
|
11575
|
-
user_id?: string;
|
|
11576
13464
|
};
|
|
11577
|
-
Relationships: [
|
|
13465
|
+
Relationships: [{
|
|
13466
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
13467
|
+
columns: ["credential_id"];
|
|
13468
|
+
isOneToOne: false;
|
|
13469
|
+
referencedRelation: "ai_credentials";
|
|
13470
|
+
referencedColumns: ["id"];
|
|
13471
|
+
}, {
|
|
13472
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
13473
|
+
columns: ["model_id"];
|
|
13474
|
+
isOneToOne: false;
|
|
13475
|
+
referencedRelation: "ai_models";
|
|
13476
|
+
referencedColumns: ["id"];
|
|
13477
|
+
}];
|
|
11578
13478
|
};
|
|
11579
|
-
|
|
13479
|
+
ai_providers: {
|
|
11580
13480
|
Row: {
|
|
11581
|
-
|
|
13481
|
+
active: boolean;
|
|
13482
|
+
auth_type: string;
|
|
13483
|
+
base_url: string | null;
|
|
11582
13484
|
created_at: string;
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
13485
|
+
id: string;
|
|
13486
|
+
name: string;
|
|
13487
|
+
slug: string;
|
|
11586
13488
|
updated_at: string;
|
|
11587
|
-
user_id: string;
|
|
11588
13489
|
};
|
|
11589
13490
|
Insert: {
|
|
11590
|
-
|
|
13491
|
+
active?: boolean;
|
|
13492
|
+
auth_type?: string;
|
|
13493
|
+
base_url?: string | null;
|
|
11591
13494
|
created_at?: string;
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
13495
|
+
id?: string;
|
|
13496
|
+
name: string;
|
|
13497
|
+
slug: string;
|
|
11595
13498
|
updated_at?: string;
|
|
11596
|
-
user_id: string;
|
|
11597
13499
|
};
|
|
11598
13500
|
Update: {
|
|
11599
|
-
|
|
13501
|
+
active?: boolean;
|
|
13502
|
+
auth_type?: string;
|
|
13503
|
+
base_url?: string | null;
|
|
11600
13504
|
created_at?: string;
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
13505
|
+
id?: string;
|
|
13506
|
+
name?: string;
|
|
13507
|
+
slug?: string;
|
|
11604
13508
|
updated_at?: string;
|
|
11605
|
-
user_id?: string;
|
|
11606
13509
|
};
|
|
11607
13510
|
Relationships: [];
|
|
11608
13511
|
};
|
|
@@ -12233,6 +14136,141 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12233
14136
|
};
|
|
12234
14137
|
Relationships: [];
|
|
12235
14138
|
};
|
|
14139
|
+
cart_planning_pick_times: {
|
|
14140
|
+
Row: {
|
|
14141
|
+
created_at: string;
|
|
14142
|
+
id: string;
|
|
14143
|
+
pot_size: string;
|
|
14144
|
+
seconds_per_cart: number;
|
|
14145
|
+
updated_at: string;
|
|
14146
|
+
};
|
|
14147
|
+
Insert: {
|
|
14148
|
+
created_at?: string;
|
|
14149
|
+
id?: string;
|
|
14150
|
+
pot_size: string;
|
|
14151
|
+
seconds_per_cart: number;
|
|
14152
|
+
updated_at?: string;
|
|
14153
|
+
};
|
|
14154
|
+
Update: {
|
|
14155
|
+
created_at?: string;
|
|
14156
|
+
id?: string;
|
|
14157
|
+
pot_size?: string;
|
|
14158
|
+
seconds_per_cart?: number;
|
|
14159
|
+
updated_at?: string;
|
|
14160
|
+
};
|
|
14161
|
+
Relationships: [];
|
|
14162
|
+
};
|
|
14163
|
+
cart_planning_product_overrides: {
|
|
14164
|
+
Row: {
|
|
14165
|
+
created_at: string;
|
|
14166
|
+
id: string;
|
|
14167
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
14168
|
+
never_mix: boolean;
|
|
14169
|
+
notes: string | null;
|
|
14170
|
+
product_id: string;
|
|
14171
|
+
updated_at: string;
|
|
14172
|
+
};
|
|
14173
|
+
Insert: {
|
|
14174
|
+
created_at?: string;
|
|
14175
|
+
id?: string;
|
|
14176
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
14177
|
+
never_mix?: boolean;
|
|
14178
|
+
notes?: string | null;
|
|
14179
|
+
product_id: string;
|
|
14180
|
+
updated_at?: string;
|
|
14181
|
+
};
|
|
14182
|
+
Update: {
|
|
14183
|
+
created_at?: string;
|
|
14184
|
+
id?: string;
|
|
14185
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
14186
|
+
never_mix?: boolean;
|
|
14187
|
+
notes?: string | null;
|
|
14188
|
+
product_id?: string;
|
|
14189
|
+
updated_at?: string;
|
|
14190
|
+
};
|
|
14191
|
+
Relationships: [{
|
|
14192
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
14193
|
+
columns: ["product_id"];
|
|
14194
|
+
isOneToOne: true;
|
|
14195
|
+
referencedRelation: "products";
|
|
14196
|
+
referencedColumns: ["id"];
|
|
14197
|
+
}];
|
|
14198
|
+
};
|
|
14199
|
+
cart_planning_settings: {
|
|
14200
|
+
Row: {
|
|
14201
|
+
allow_editing_after_pickstation_send: boolean;
|
|
14202
|
+
buffer_grouping_mode: string;
|
|
14203
|
+
combine_floriday_orders: boolean;
|
|
14204
|
+
combine_floriday_orders_window: string;
|
|
14205
|
+
combine_orders_scope: string;
|
|
14206
|
+
default_workers: number;
|
|
14207
|
+
id: number;
|
|
14208
|
+
max_beladingen_per_layer: number;
|
|
14209
|
+
max_customers_per_cart: number;
|
|
14210
|
+
max_one_customer_per_layer: boolean;
|
|
14211
|
+
max_party_share_per_layer_pct: number;
|
|
14212
|
+
optimization_strategy: string;
|
|
14213
|
+
own_cart_from_layers: number;
|
|
14214
|
+
pick_time_mode: string;
|
|
14215
|
+
plants_per_day: number;
|
|
14216
|
+
plants_per_hour: number;
|
|
14217
|
+
require_same_carrier: boolean;
|
|
14218
|
+
require_same_crate_type: boolean;
|
|
14219
|
+
require_same_delivery_date: boolean;
|
|
14220
|
+
require_same_delivery_location: boolean;
|
|
14221
|
+
updated_at: string;
|
|
14222
|
+
updated_by: string | null;
|
|
14223
|
+
};
|
|
14224
|
+
Insert: {
|
|
14225
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
14226
|
+
buffer_grouping_mode?: string;
|
|
14227
|
+
combine_floriday_orders?: boolean;
|
|
14228
|
+
combine_floriday_orders_window?: string;
|
|
14229
|
+
combine_orders_scope?: string;
|
|
14230
|
+
default_workers?: number;
|
|
14231
|
+
id?: number;
|
|
14232
|
+
max_beladingen_per_layer?: number;
|
|
14233
|
+
max_customers_per_cart?: number;
|
|
14234
|
+
max_one_customer_per_layer?: boolean;
|
|
14235
|
+
max_party_share_per_layer_pct?: number;
|
|
14236
|
+
optimization_strategy?: string;
|
|
14237
|
+
own_cart_from_layers?: number;
|
|
14238
|
+
pick_time_mode?: string;
|
|
14239
|
+
plants_per_day?: number;
|
|
14240
|
+
plants_per_hour?: number;
|
|
14241
|
+
require_same_carrier?: boolean;
|
|
14242
|
+
require_same_crate_type?: boolean;
|
|
14243
|
+
require_same_delivery_date?: boolean;
|
|
14244
|
+
require_same_delivery_location?: boolean;
|
|
14245
|
+
updated_at?: string;
|
|
14246
|
+
updated_by?: string | null;
|
|
14247
|
+
};
|
|
14248
|
+
Update: {
|
|
14249
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
14250
|
+
buffer_grouping_mode?: string;
|
|
14251
|
+
combine_floriday_orders?: boolean;
|
|
14252
|
+
combine_floriday_orders_window?: string;
|
|
14253
|
+
combine_orders_scope?: string;
|
|
14254
|
+
default_workers?: number;
|
|
14255
|
+
id?: number;
|
|
14256
|
+
max_beladingen_per_layer?: number;
|
|
14257
|
+
max_customers_per_cart?: number;
|
|
14258
|
+
max_one_customer_per_layer?: boolean;
|
|
14259
|
+
max_party_share_per_layer_pct?: number;
|
|
14260
|
+
optimization_strategy?: string;
|
|
14261
|
+
own_cart_from_layers?: number;
|
|
14262
|
+
pick_time_mode?: string;
|
|
14263
|
+
plants_per_day?: number;
|
|
14264
|
+
plants_per_hour?: number;
|
|
14265
|
+
require_same_carrier?: boolean;
|
|
14266
|
+
require_same_crate_type?: boolean;
|
|
14267
|
+
require_same_delivery_date?: boolean;
|
|
14268
|
+
require_same_delivery_location?: boolean;
|
|
14269
|
+
updated_at?: string;
|
|
14270
|
+
updated_by?: string | null;
|
|
14271
|
+
};
|
|
14272
|
+
Relationships: [];
|
|
14273
|
+
};
|
|
12236
14274
|
cart_replan_queue: {
|
|
12237
14275
|
Row: {
|
|
12238
14276
|
attempts: number;
|
|
@@ -12263,6 +14301,102 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12263
14301
|
referencedColumns: ["id"];
|
|
12264
14302
|
}];
|
|
12265
14303
|
};
|
|
14304
|
+
cart_types: {
|
|
14305
|
+
Row: {
|
|
14306
|
+
created_at: string;
|
|
14307
|
+
id: string;
|
|
14308
|
+
is_default: boolean;
|
|
14309
|
+
layer_length_cm: number;
|
|
14310
|
+
layer_width_cm: number;
|
|
14311
|
+
layers_per_cart: number;
|
|
14312
|
+
name: string;
|
|
14313
|
+
updated_at: string;
|
|
14314
|
+
};
|
|
14315
|
+
Insert: {
|
|
14316
|
+
created_at?: string;
|
|
14317
|
+
id?: string;
|
|
14318
|
+
is_default?: boolean;
|
|
14319
|
+
layer_length_cm: number;
|
|
14320
|
+
layer_width_cm: number;
|
|
14321
|
+
layers_per_cart?: number;
|
|
14322
|
+
name: string;
|
|
14323
|
+
updated_at?: string;
|
|
14324
|
+
};
|
|
14325
|
+
Update: {
|
|
14326
|
+
created_at?: string;
|
|
14327
|
+
id?: string;
|
|
14328
|
+
is_default?: boolean;
|
|
14329
|
+
layer_length_cm?: number;
|
|
14330
|
+
layer_width_cm?: number;
|
|
14331
|
+
layers_per_cart?: number;
|
|
14332
|
+
name?: string;
|
|
14333
|
+
updated_at?: string;
|
|
14334
|
+
};
|
|
14335
|
+
Relationships: [];
|
|
14336
|
+
};
|
|
14337
|
+
catalog_articles_cache: {
|
|
14338
|
+
Row: {
|
|
14339
|
+
created_at: string;
|
|
14340
|
+
default_price: number;
|
|
14341
|
+
default_vat_rate_ref: string | null;
|
|
14342
|
+
external_ref: string;
|
|
14343
|
+
id: string;
|
|
14344
|
+
name: string;
|
|
14345
|
+
updated_at: string;
|
|
14346
|
+
user_id: string;
|
|
14347
|
+
};
|
|
14348
|
+
Insert: {
|
|
14349
|
+
created_at?: string;
|
|
14350
|
+
default_price?: number;
|
|
14351
|
+
default_vat_rate_ref?: string | null;
|
|
14352
|
+
external_ref: string;
|
|
14353
|
+
id?: string;
|
|
14354
|
+
name: string;
|
|
14355
|
+
updated_at?: string;
|
|
14356
|
+
user_id: string;
|
|
14357
|
+
};
|
|
14358
|
+
Update: {
|
|
14359
|
+
created_at?: string;
|
|
14360
|
+
default_price?: number;
|
|
14361
|
+
default_vat_rate_ref?: string | null;
|
|
14362
|
+
external_ref?: string;
|
|
14363
|
+
id?: string;
|
|
14364
|
+
name?: string;
|
|
14365
|
+
updated_at?: string;
|
|
14366
|
+
user_id?: string;
|
|
14367
|
+
};
|
|
14368
|
+
Relationships: [];
|
|
14369
|
+
};
|
|
14370
|
+
catalog_vat_rates_cache: {
|
|
14371
|
+
Row: {
|
|
14372
|
+
created_at: string;
|
|
14373
|
+
external_ref: string;
|
|
14374
|
+
id: string;
|
|
14375
|
+
label: string;
|
|
14376
|
+
percentage: number;
|
|
14377
|
+
updated_at: string;
|
|
14378
|
+
user_id: string;
|
|
14379
|
+
};
|
|
14380
|
+
Insert: {
|
|
14381
|
+
created_at?: string;
|
|
14382
|
+
external_ref: string;
|
|
14383
|
+
id?: string;
|
|
14384
|
+
label: string;
|
|
14385
|
+
percentage?: number;
|
|
14386
|
+
updated_at?: string;
|
|
14387
|
+
user_id: string;
|
|
14388
|
+
};
|
|
14389
|
+
Update: {
|
|
14390
|
+
created_at?: string;
|
|
14391
|
+
external_ref?: string;
|
|
14392
|
+
id?: string;
|
|
14393
|
+
label?: string;
|
|
14394
|
+
percentage?: number;
|
|
14395
|
+
updated_at?: string;
|
|
14396
|
+
user_id?: string;
|
|
14397
|
+
};
|
|
14398
|
+
Relationships: [];
|
|
14399
|
+
};
|
|
12266
14400
|
collections: {
|
|
12267
14401
|
Row: {
|
|
12268
14402
|
created_at: string;
|
|
@@ -12287,6 +14421,36 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12287
14421
|
};
|
|
12288
14422
|
Relationships: [];
|
|
12289
14423
|
};
|
|
14424
|
+
crate_types: {
|
|
14425
|
+
Row: {
|
|
14426
|
+
created_at: string;
|
|
14427
|
+
id: string;
|
|
14428
|
+
length_cm: number;
|
|
14429
|
+
name: string;
|
|
14430
|
+
plants_per_crate: number;
|
|
14431
|
+
updated_at: string;
|
|
14432
|
+
width_cm: number;
|
|
14433
|
+
};
|
|
14434
|
+
Insert: {
|
|
14435
|
+
created_at?: string;
|
|
14436
|
+
id?: string;
|
|
14437
|
+
length_cm: number;
|
|
14438
|
+
name: string;
|
|
14439
|
+
plants_per_crate?: number;
|
|
14440
|
+
updated_at?: string;
|
|
14441
|
+
width_cm: number;
|
|
14442
|
+
};
|
|
14443
|
+
Update: {
|
|
14444
|
+
created_at?: string;
|
|
14445
|
+
id?: string;
|
|
14446
|
+
length_cm?: number;
|
|
14447
|
+
name?: string;
|
|
14448
|
+
plants_per_crate?: number;
|
|
14449
|
+
updated_at?: string;
|
|
14450
|
+
width_cm?: number;
|
|
14451
|
+
};
|
|
14452
|
+
Relationships: [];
|
|
14453
|
+
};
|
|
12290
14454
|
customer_audit_log: {
|
|
12291
14455
|
Row: {
|
|
12292
14456
|
action: string;
|
|
@@ -12461,53 +14625,152 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12461
14625
|
created_at?: string;
|
|
12462
14626
|
field_setting_id: string;
|
|
12463
14627
|
id?: string;
|
|
12464
|
-
label: string;
|
|
12465
|
-
sort_order?: number;
|
|
14628
|
+
label: string;
|
|
14629
|
+
sort_order?: number;
|
|
14630
|
+
};
|
|
14631
|
+
Update: {
|
|
14632
|
+
created_at?: string;
|
|
14633
|
+
field_setting_id?: string;
|
|
14634
|
+
id?: string;
|
|
14635
|
+
label?: string;
|
|
14636
|
+
sort_order?: number;
|
|
14637
|
+
};
|
|
14638
|
+
Relationships: [{
|
|
14639
|
+
foreignKeyName: "customer_field_options_field_setting_id_fkey";
|
|
14640
|
+
columns: ["field_setting_id"];
|
|
14641
|
+
isOneToOne: false;
|
|
14642
|
+
referencedRelation: "customer_field_settings";
|
|
14643
|
+
referencedColumns: ["id"];
|
|
14644
|
+
}];
|
|
14645
|
+
};
|
|
14646
|
+
customer_field_settings: {
|
|
14647
|
+
Row: {
|
|
14648
|
+
created_at: string;
|
|
14649
|
+
field_key: string;
|
|
14650
|
+
field_label: string;
|
|
14651
|
+
field_type: string;
|
|
14652
|
+
id: string;
|
|
14653
|
+
is_custom: boolean;
|
|
14654
|
+
sort_order: number;
|
|
14655
|
+
updated_at: string;
|
|
14656
|
+
};
|
|
14657
|
+
Insert: {
|
|
14658
|
+
created_at?: string;
|
|
14659
|
+
field_key: string;
|
|
14660
|
+
field_label: string;
|
|
14661
|
+
field_type?: string;
|
|
14662
|
+
id?: string;
|
|
14663
|
+
is_custom?: boolean;
|
|
14664
|
+
sort_order?: number;
|
|
14665
|
+
updated_at?: string;
|
|
14666
|
+
};
|
|
14667
|
+
Update: {
|
|
14668
|
+
created_at?: string;
|
|
14669
|
+
field_key?: string;
|
|
14670
|
+
field_label?: string;
|
|
14671
|
+
field_type?: string;
|
|
14672
|
+
id?: string;
|
|
14673
|
+
is_custom?: boolean;
|
|
14674
|
+
sort_order?: number;
|
|
14675
|
+
updated_at?: string;
|
|
14676
|
+
};
|
|
14677
|
+
Relationships: [];
|
|
14678
|
+
};
|
|
14679
|
+
customer_price_group_members: {
|
|
14680
|
+
Row: {
|
|
14681
|
+
created_at: string;
|
|
14682
|
+
customer_key: string;
|
|
14683
|
+
id: string;
|
|
14684
|
+
owner_id: string;
|
|
14685
|
+
price_group_id: string;
|
|
14686
|
+
};
|
|
14687
|
+
Insert: {
|
|
14688
|
+
created_at?: string;
|
|
14689
|
+
customer_key: string;
|
|
14690
|
+
id?: string;
|
|
14691
|
+
owner_id?: string;
|
|
14692
|
+
price_group_id: string;
|
|
12466
14693
|
};
|
|
12467
14694
|
Update: {
|
|
12468
14695
|
created_at?: string;
|
|
12469
|
-
|
|
14696
|
+
customer_key?: string;
|
|
12470
14697
|
id?: string;
|
|
12471
|
-
|
|
12472
|
-
|
|
14698
|
+
owner_id?: string;
|
|
14699
|
+
price_group_id?: string;
|
|
12473
14700
|
};
|
|
12474
14701
|
Relationships: [{
|
|
12475
|
-
foreignKeyName: "
|
|
12476
|
-
columns: ["
|
|
14702
|
+
foreignKeyName: "customer_price_group_members_price_group_id_fkey";
|
|
14703
|
+
columns: ["price_group_id"];
|
|
12477
14704
|
isOneToOne: false;
|
|
12478
|
-
referencedRelation: "
|
|
14705
|
+
referencedRelation: "customer_price_groups";
|
|
12479
14706
|
referencedColumns: ["id"];
|
|
12480
14707
|
}];
|
|
12481
14708
|
};
|
|
12482
|
-
|
|
14709
|
+
customer_price_groups: {
|
|
12483
14710
|
Row: {
|
|
14711
|
+
calc_type: string | null;
|
|
14712
|
+
calc_value: number | null;
|
|
14713
|
+
calc_value_type: string | null;
|
|
12484
14714
|
created_at: string;
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
14715
|
+
currency: string;
|
|
14716
|
+
distribute_over: string | null;
|
|
14717
|
+
group_type: string;
|
|
14718
|
+
handling_fee: number | null;
|
|
12488
14719
|
id: string;
|
|
12489
|
-
|
|
14720
|
+
include_stickers: boolean;
|
|
14721
|
+
is_active: boolean;
|
|
14722
|
+
name: string;
|
|
14723
|
+
owner_id: string;
|
|
14724
|
+
price_scope: string;
|
|
14725
|
+
pricing_mode: string;
|
|
14726
|
+
rounding: string;
|
|
14727
|
+
rounding_step: number;
|
|
12490
14728
|
sort_order: number;
|
|
14729
|
+
unit: string;
|
|
12491
14730
|
updated_at: string;
|
|
12492
14731
|
};
|
|
12493
14732
|
Insert: {
|
|
14733
|
+
calc_type?: string | null;
|
|
14734
|
+
calc_value?: number | null;
|
|
14735
|
+
calc_value_type?: string | null;
|
|
12494
14736
|
created_at?: string;
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
14737
|
+
currency?: string;
|
|
14738
|
+
distribute_over?: string | null;
|
|
14739
|
+
group_type?: string;
|
|
14740
|
+
handling_fee?: number | null;
|
|
12498
14741
|
id?: string;
|
|
12499
|
-
|
|
14742
|
+
include_stickers?: boolean;
|
|
14743
|
+
is_active?: boolean;
|
|
14744
|
+
name: string;
|
|
14745
|
+
owner_id?: string;
|
|
14746
|
+
price_scope?: string;
|
|
14747
|
+
pricing_mode?: string;
|
|
14748
|
+
rounding?: string;
|
|
14749
|
+
rounding_step?: number;
|
|
12500
14750
|
sort_order?: number;
|
|
14751
|
+
unit?: string;
|
|
12501
14752
|
updated_at?: string;
|
|
12502
14753
|
};
|
|
12503
14754
|
Update: {
|
|
14755
|
+
calc_type?: string | null;
|
|
14756
|
+
calc_value?: number | null;
|
|
14757
|
+
calc_value_type?: string | null;
|
|
12504
14758
|
created_at?: string;
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
14759
|
+
currency?: string;
|
|
14760
|
+
distribute_over?: string | null;
|
|
14761
|
+
group_type?: string;
|
|
14762
|
+
handling_fee?: number | null;
|
|
12508
14763
|
id?: string;
|
|
12509
|
-
|
|
14764
|
+
include_stickers?: boolean;
|
|
14765
|
+
is_active?: boolean;
|
|
14766
|
+
name?: string;
|
|
14767
|
+
owner_id?: string;
|
|
14768
|
+
price_scope?: string;
|
|
14769
|
+
pricing_mode?: string;
|
|
14770
|
+
rounding?: string;
|
|
14771
|
+
rounding_step?: number;
|
|
12510
14772
|
sort_order?: number;
|
|
14773
|
+
unit?: string;
|
|
12511
14774
|
updated_at?: string;
|
|
12512
14775
|
};
|
|
12513
14776
|
Relationships: [];
|
|
@@ -12665,6 +14928,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12665
14928
|
sync_error: string | null;
|
|
12666
14929
|
sync_status: string;
|
|
12667
14930
|
trade_forms: string[];
|
|
14931
|
+
twinfield_code: string | null;
|
|
14932
|
+
twinfield_last_hash: string | null;
|
|
14933
|
+
twinfield_sync_error: string | null;
|
|
14934
|
+
twinfield_synced_at: string | null;
|
|
12668
14935
|
updated_at: string;
|
|
12669
14936
|
vat_display: string | null;
|
|
12670
14937
|
vat_number: string | null;
|
|
@@ -12732,6 +14999,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12732
14999
|
sync_error?: string | null;
|
|
12733
15000
|
sync_status?: string;
|
|
12734
15001
|
trade_forms?: string[];
|
|
15002
|
+
twinfield_code?: string | null;
|
|
15003
|
+
twinfield_last_hash?: string | null;
|
|
15004
|
+
twinfield_sync_error?: string | null;
|
|
15005
|
+
twinfield_synced_at?: string | null;
|
|
12735
15006
|
updated_at?: string;
|
|
12736
15007
|
vat_display?: string | null;
|
|
12737
15008
|
vat_number?: string | null;
|
|
@@ -12799,6 +15070,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12799
15070
|
sync_error?: string | null;
|
|
12800
15071
|
sync_status?: string;
|
|
12801
15072
|
trade_forms?: string[];
|
|
15073
|
+
twinfield_code?: string | null;
|
|
15074
|
+
twinfield_last_hash?: string | null;
|
|
15075
|
+
twinfield_sync_error?: string | null;
|
|
15076
|
+
twinfield_synced_at?: string | null;
|
|
12802
15077
|
updated_at?: string;
|
|
12803
15078
|
vat_display?: string | null;
|
|
12804
15079
|
vat_number?: string | null;
|
|
@@ -16636,84 +18911,366 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
16636
18911
|
vat_amount: number | null;
|
|
16637
18912
|
};
|
|
16638
18913
|
Insert: {
|
|
16639
|
-
booking_id?: string | null;
|
|
16640
|
-
company_name?: string | null;
|
|
18914
|
+
booking_id?: string | null;
|
|
18915
|
+
company_name?: string | null;
|
|
18916
|
+
created_at?: string;
|
|
18917
|
+
customer_email?: string | null;
|
|
18918
|
+
description?: string | null;
|
|
18919
|
+
exact_article_id?: string | null;
|
|
18920
|
+
id?: string;
|
|
18921
|
+
invoice_run_id?: string | null;
|
|
18922
|
+
quantity?: number | null;
|
|
18923
|
+
total_excl_vat?: number | null;
|
|
18924
|
+
total_incl_vat?: number | null;
|
|
18925
|
+
unit_price?: number | null;
|
|
18926
|
+
vat_amount?: number | null;
|
|
18927
|
+
};
|
|
18928
|
+
Update: {
|
|
18929
|
+
booking_id?: string | null;
|
|
18930
|
+
company_name?: string | null;
|
|
18931
|
+
created_at?: string;
|
|
18932
|
+
customer_email?: string | null;
|
|
18933
|
+
description?: string | null;
|
|
18934
|
+
exact_article_id?: string | null;
|
|
18935
|
+
id?: string;
|
|
18936
|
+
invoice_run_id?: string | null;
|
|
18937
|
+
quantity?: number | null;
|
|
18938
|
+
total_excl_vat?: number | null;
|
|
18939
|
+
total_incl_vat?: number | null;
|
|
18940
|
+
unit_price?: number | null;
|
|
18941
|
+
vat_amount?: number | null;
|
|
18942
|
+
};
|
|
18943
|
+
Relationships: [{
|
|
18944
|
+
foreignKeyName: "invoice_run_items_booking_id_fkey";
|
|
18945
|
+
columns: ["booking_id"];
|
|
18946
|
+
isOneToOne: false;
|
|
18947
|
+
referencedRelation: "bookings";
|
|
18948
|
+
referencedColumns: ["id"];
|
|
18949
|
+
}, {
|
|
18950
|
+
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
18951
|
+
columns: ["invoice_run_id"];
|
|
18952
|
+
isOneToOne: false;
|
|
18953
|
+
referencedRelation: "invoice_runs";
|
|
18954
|
+
referencedColumns: ["id"];
|
|
18955
|
+
}];
|
|
18956
|
+
};
|
|
18957
|
+
invoice_runs: {
|
|
18958
|
+
Row: {
|
|
18959
|
+
created_at: string;
|
|
18960
|
+
created_by: string | null;
|
|
18961
|
+
id: string;
|
|
18962
|
+
period_end: string;
|
|
18963
|
+
period_start: string;
|
|
18964
|
+
status: string;
|
|
18965
|
+
total_excl_vat: number | null;
|
|
18966
|
+
total_incl_vat: number | null;
|
|
18967
|
+
vat_amount: number | null;
|
|
18968
|
+
};
|
|
18969
|
+
Insert: {
|
|
18970
|
+
created_at?: string;
|
|
18971
|
+
created_by?: string | null;
|
|
18972
|
+
id?: string;
|
|
18973
|
+
period_end: string;
|
|
18974
|
+
period_start: string;
|
|
18975
|
+
status?: string;
|
|
18976
|
+
total_excl_vat?: number | null;
|
|
18977
|
+
total_incl_vat?: number | null;
|
|
18978
|
+
vat_amount?: number | null;
|
|
18979
|
+
};
|
|
18980
|
+
Update: {
|
|
18981
|
+
created_at?: string;
|
|
18982
|
+
created_by?: string | null;
|
|
18983
|
+
id?: string;
|
|
18984
|
+
period_end?: string;
|
|
18985
|
+
period_start?: string;
|
|
18986
|
+
status?: string;
|
|
18987
|
+
total_excl_vat?: number | null;
|
|
18988
|
+
total_incl_vat?: number | null;
|
|
18989
|
+
vat_amount?: number | null;
|
|
18990
|
+
};
|
|
18991
|
+
Relationships: [];
|
|
18992
|
+
};
|
|
18993
|
+
itk_contact_persons: {
|
|
18994
|
+
Row: {
|
|
18995
|
+
created_at: string;
|
|
18996
|
+
customer_id: string;
|
|
18997
|
+
email: string | null;
|
|
18998
|
+
id: string;
|
|
18999
|
+
name: string;
|
|
19000
|
+
phone: string | null;
|
|
19001
|
+
role: string | null;
|
|
19002
|
+
updated_at: string;
|
|
19003
|
+
};
|
|
19004
|
+
Insert: {
|
|
19005
|
+
created_at?: string;
|
|
19006
|
+
customer_id: string;
|
|
19007
|
+
email?: string | null;
|
|
19008
|
+
id?: string;
|
|
19009
|
+
name: string;
|
|
19010
|
+
phone?: string | null;
|
|
19011
|
+
role?: string | null;
|
|
19012
|
+
updated_at?: string;
|
|
19013
|
+
};
|
|
19014
|
+
Update: {
|
|
19015
|
+
created_at?: string;
|
|
19016
|
+
customer_id?: string;
|
|
19017
|
+
email?: string | null;
|
|
19018
|
+
id?: string;
|
|
19019
|
+
name?: string;
|
|
19020
|
+
phone?: string | null;
|
|
19021
|
+
role?: string | null;
|
|
19022
|
+
updated_at?: string;
|
|
19023
|
+
};
|
|
19024
|
+
Relationships: [{
|
|
19025
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
19026
|
+
columns: ["customer_id"];
|
|
19027
|
+
isOneToOne: false;
|
|
19028
|
+
referencedRelation: "itk_customers";
|
|
19029
|
+
referencedColumns: ["id"];
|
|
19030
|
+
}];
|
|
19031
|
+
};
|
|
19032
|
+
itk_customer_dynamic_values: {
|
|
19033
|
+
Row: {
|
|
19034
|
+
created_at: string;
|
|
19035
|
+
customer_id: string;
|
|
19036
|
+
field_id: string;
|
|
19037
|
+
id: string;
|
|
19038
|
+
updated_at: string;
|
|
19039
|
+
value: string | null;
|
|
19040
|
+
};
|
|
19041
|
+
Insert: {
|
|
19042
|
+
created_at?: string;
|
|
19043
|
+
customer_id: string;
|
|
19044
|
+
field_id: string;
|
|
19045
|
+
id?: string;
|
|
19046
|
+
updated_at?: string;
|
|
19047
|
+
value?: string | null;
|
|
19048
|
+
};
|
|
19049
|
+
Update: {
|
|
19050
|
+
created_at?: string;
|
|
19051
|
+
customer_id?: string;
|
|
19052
|
+
field_id?: string;
|
|
19053
|
+
id?: string;
|
|
19054
|
+
updated_at?: string;
|
|
19055
|
+
value?: string | null;
|
|
19056
|
+
};
|
|
19057
|
+
Relationships: [{
|
|
19058
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
19059
|
+
columns: ["customer_id"];
|
|
19060
|
+
isOneToOne: false;
|
|
19061
|
+
referencedRelation: "itk_customers";
|
|
19062
|
+
referencedColumns: ["id"];
|
|
19063
|
+
}, {
|
|
19064
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
19065
|
+
columns: ["field_id"];
|
|
19066
|
+
isOneToOne: false;
|
|
19067
|
+
referencedRelation: "itk_dynamic_fields";
|
|
19068
|
+
referencedColumns: ["id"];
|
|
19069
|
+
}];
|
|
19070
|
+
};
|
|
19071
|
+
itk_customer_notes: {
|
|
19072
|
+
Row: {
|
|
19073
|
+
body: string;
|
|
19074
|
+
created_at: string;
|
|
19075
|
+
created_by: string | null;
|
|
19076
|
+
customer_id: string;
|
|
19077
|
+
id: string;
|
|
19078
|
+
note_type: string;
|
|
19079
|
+
updated_at: string;
|
|
19080
|
+
};
|
|
19081
|
+
Insert: {
|
|
19082
|
+
body: string;
|
|
19083
|
+
created_at?: string;
|
|
19084
|
+
created_by?: string | null;
|
|
19085
|
+
customer_id: string;
|
|
19086
|
+
id?: string;
|
|
19087
|
+
note_type?: string;
|
|
19088
|
+
updated_at?: string;
|
|
19089
|
+
};
|
|
19090
|
+
Update: {
|
|
19091
|
+
body?: string;
|
|
19092
|
+
created_at?: string;
|
|
19093
|
+
created_by?: string | null;
|
|
19094
|
+
customer_id?: string;
|
|
19095
|
+
id?: string;
|
|
19096
|
+
note_type?: string;
|
|
19097
|
+
updated_at?: string;
|
|
19098
|
+
};
|
|
19099
|
+
Relationships: [{
|
|
19100
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
19101
|
+
columns: ["customer_id"];
|
|
19102
|
+
isOneToOne: false;
|
|
19103
|
+
referencedRelation: "itk_customers";
|
|
19104
|
+
referencedColumns: ["id"];
|
|
19105
|
+
}];
|
|
19106
|
+
};
|
|
19107
|
+
itk_customers: {
|
|
19108
|
+
Row: {
|
|
19109
|
+
billing_city: string | null;
|
|
19110
|
+
billing_postcode: string | null;
|
|
19111
|
+
billing_street: string | null;
|
|
19112
|
+
created_at: string;
|
|
19113
|
+
general_email: string | null;
|
|
19114
|
+
general_phone: string | null;
|
|
19115
|
+
id: string;
|
|
19116
|
+
legacy_customer_id: string | null;
|
|
19117
|
+
name: string;
|
|
19118
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
19119
|
+
updated_at: string;
|
|
19120
|
+
};
|
|
19121
|
+
Insert: {
|
|
19122
|
+
billing_city?: string | null;
|
|
19123
|
+
billing_postcode?: string | null;
|
|
19124
|
+
billing_street?: string | null;
|
|
19125
|
+
created_at?: string;
|
|
19126
|
+
general_email?: string | null;
|
|
19127
|
+
general_phone?: string | null;
|
|
19128
|
+
id?: string;
|
|
19129
|
+
legacy_customer_id?: string | null;
|
|
19130
|
+
name: string;
|
|
19131
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
19132
|
+
updated_at?: string;
|
|
19133
|
+
};
|
|
19134
|
+
Update: {
|
|
19135
|
+
billing_city?: string | null;
|
|
19136
|
+
billing_postcode?: string | null;
|
|
19137
|
+
billing_street?: string | null;
|
|
19138
|
+
created_at?: string;
|
|
19139
|
+
general_email?: string | null;
|
|
19140
|
+
general_phone?: string | null;
|
|
19141
|
+
id?: string;
|
|
19142
|
+
legacy_customer_id?: string | null;
|
|
19143
|
+
name?: string;
|
|
19144
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
19145
|
+
updated_at?: string;
|
|
19146
|
+
};
|
|
19147
|
+
Relationships: [{
|
|
19148
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
19149
|
+
columns: ["legacy_customer_id"];
|
|
19150
|
+
isOneToOne: false;
|
|
19151
|
+
referencedRelation: "customers";
|
|
19152
|
+
referencedColumns: ["id"];
|
|
19153
|
+
}];
|
|
19154
|
+
};
|
|
19155
|
+
itk_dynamic_fields: {
|
|
19156
|
+
Row: {
|
|
19157
|
+
created_at: string;
|
|
19158
|
+
field_name: string;
|
|
19159
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
19160
|
+
id: string;
|
|
19161
|
+
options: import("../integrations/supabase/types").Json;
|
|
19162
|
+
sort_order: number;
|
|
19163
|
+
updated_at: string;
|
|
19164
|
+
};
|
|
19165
|
+
Insert: {
|
|
19166
|
+
created_at?: string;
|
|
19167
|
+
field_name: string;
|
|
19168
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
19169
|
+
id?: string;
|
|
19170
|
+
options?: import("../integrations/supabase/types").Json;
|
|
19171
|
+
sort_order?: number;
|
|
19172
|
+
updated_at?: string;
|
|
19173
|
+
};
|
|
19174
|
+
Update: {
|
|
19175
|
+
created_at?: string;
|
|
19176
|
+
field_name?: string;
|
|
19177
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
19178
|
+
id?: string;
|
|
19179
|
+
options?: import("../integrations/supabase/types").Json;
|
|
19180
|
+
sort_order?: number;
|
|
19181
|
+
updated_at?: string;
|
|
19182
|
+
};
|
|
19183
|
+
Relationships: [];
|
|
19184
|
+
};
|
|
19185
|
+
itk_work_locations: {
|
|
19186
|
+
Row: {
|
|
19187
|
+
city: string | null;
|
|
19188
|
+
created_at: string;
|
|
19189
|
+
customer_id: string;
|
|
19190
|
+
id: string;
|
|
19191
|
+
instructions: string | null;
|
|
19192
|
+
label: string;
|
|
19193
|
+
latitude: number | null;
|
|
19194
|
+
longitude: number | null;
|
|
19195
|
+
postcode: string | null;
|
|
19196
|
+
street: string | null;
|
|
19197
|
+
updated_at: string;
|
|
19198
|
+
};
|
|
19199
|
+
Insert: {
|
|
19200
|
+
city?: string | null;
|
|
16641
19201
|
created_at?: string;
|
|
16642
|
-
|
|
16643
|
-
description?: string | null;
|
|
16644
|
-
exact_article_id?: string | null;
|
|
19202
|
+
customer_id: string;
|
|
16645
19203
|
id?: string;
|
|
16646
|
-
|
|
16647
|
-
|
|
16648
|
-
|
|
16649
|
-
|
|
16650
|
-
|
|
16651
|
-
|
|
19204
|
+
instructions?: string | null;
|
|
19205
|
+
label: string;
|
|
19206
|
+
latitude?: number | null;
|
|
19207
|
+
longitude?: number | null;
|
|
19208
|
+
postcode?: string | null;
|
|
19209
|
+
street?: string | null;
|
|
19210
|
+
updated_at?: string;
|
|
16652
19211
|
};
|
|
16653
19212
|
Update: {
|
|
16654
|
-
|
|
16655
|
-
company_name?: string | null;
|
|
19213
|
+
city?: string | null;
|
|
16656
19214
|
created_at?: string;
|
|
16657
|
-
|
|
16658
|
-
description?: string | null;
|
|
16659
|
-
exact_article_id?: string | null;
|
|
19215
|
+
customer_id?: string;
|
|
16660
19216
|
id?: string;
|
|
16661
|
-
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
|
|
16665
|
-
|
|
16666
|
-
|
|
19217
|
+
instructions?: string | null;
|
|
19218
|
+
label?: string;
|
|
19219
|
+
latitude?: number | null;
|
|
19220
|
+
longitude?: number | null;
|
|
19221
|
+
postcode?: string | null;
|
|
19222
|
+
street?: string | null;
|
|
19223
|
+
updated_at?: string;
|
|
16667
19224
|
};
|
|
16668
19225
|
Relationships: [{
|
|
16669
|
-
foreignKeyName: "
|
|
16670
|
-
columns: ["
|
|
16671
|
-
isOneToOne: false;
|
|
16672
|
-
referencedRelation: "bookings";
|
|
16673
|
-
referencedColumns: ["id"];
|
|
16674
|
-
}, {
|
|
16675
|
-
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
16676
|
-
columns: ["invoice_run_id"];
|
|
19226
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
19227
|
+
columns: ["customer_id"];
|
|
16677
19228
|
isOneToOne: false;
|
|
16678
|
-
referencedRelation: "
|
|
19229
|
+
referencedRelation: "itk_customers";
|
|
16679
19230
|
referencedColumns: ["id"];
|
|
16680
19231
|
}];
|
|
16681
19232
|
};
|
|
16682
|
-
|
|
19233
|
+
leave_requests: {
|
|
16683
19234
|
Row: {
|
|
16684
19235
|
created_at: string;
|
|
16685
|
-
|
|
19236
|
+
end_date: string;
|
|
16686
19237
|
id: string;
|
|
16687
|
-
|
|
16688
|
-
|
|
19238
|
+
reason: string | null;
|
|
19239
|
+
start_date: string;
|
|
16689
19240
|
status: string;
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
|
|
19241
|
+
tenant_id: string;
|
|
19242
|
+
updated_at: string;
|
|
19243
|
+
user_id: string;
|
|
16693
19244
|
};
|
|
16694
19245
|
Insert: {
|
|
16695
19246
|
created_at?: string;
|
|
16696
|
-
|
|
19247
|
+
end_date: string;
|
|
16697
19248
|
id?: string;
|
|
16698
|
-
|
|
16699
|
-
|
|
19249
|
+
reason?: string | null;
|
|
19250
|
+
start_date: string;
|
|
16700
19251
|
status?: string;
|
|
16701
|
-
|
|
16702
|
-
|
|
16703
|
-
|
|
19252
|
+
tenant_id?: string;
|
|
19253
|
+
updated_at?: string;
|
|
19254
|
+
user_id: string;
|
|
16704
19255
|
};
|
|
16705
19256
|
Update: {
|
|
16706
19257
|
created_at?: string;
|
|
16707
|
-
|
|
19258
|
+
end_date?: string;
|
|
16708
19259
|
id?: string;
|
|
16709
|
-
|
|
16710
|
-
|
|
19260
|
+
reason?: string | null;
|
|
19261
|
+
start_date?: string;
|
|
16711
19262
|
status?: string;
|
|
16712
|
-
|
|
16713
|
-
|
|
16714
|
-
|
|
19263
|
+
tenant_id?: string;
|
|
19264
|
+
updated_at?: string;
|
|
19265
|
+
user_id?: string;
|
|
16715
19266
|
};
|
|
16716
|
-
Relationships: [
|
|
19267
|
+
Relationships: [{
|
|
19268
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
19269
|
+
columns: ["user_id"];
|
|
19270
|
+
isOneToOne: false;
|
|
19271
|
+
referencedRelation: "monteurs";
|
|
19272
|
+
referencedColumns: ["id"];
|
|
19273
|
+
}];
|
|
16717
19274
|
};
|
|
16718
19275
|
local_customer_agreements: {
|
|
16719
19276
|
Row: {
|
|
@@ -17366,6 +19923,33 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
17366
19923
|
};
|
|
17367
19924
|
Relationships: [];
|
|
17368
19925
|
};
|
|
19926
|
+
module_permissions: {
|
|
19927
|
+
Row: {
|
|
19928
|
+
created_at: string;
|
|
19929
|
+
id: string;
|
|
19930
|
+
module_id: string;
|
|
19931
|
+
permission: string;
|
|
19932
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19933
|
+
updated_at: string;
|
|
19934
|
+
};
|
|
19935
|
+
Insert: {
|
|
19936
|
+
created_at?: string;
|
|
19937
|
+
id?: string;
|
|
19938
|
+
module_id: string;
|
|
19939
|
+
permission: string;
|
|
19940
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19941
|
+
updated_at?: string;
|
|
19942
|
+
};
|
|
19943
|
+
Update: {
|
|
19944
|
+
created_at?: string;
|
|
19945
|
+
id?: string;
|
|
19946
|
+
module_id?: string;
|
|
19947
|
+
permission?: string;
|
|
19948
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
19949
|
+
updated_at?: string;
|
|
19950
|
+
};
|
|
19951
|
+
Relationships: [];
|
|
19952
|
+
};
|
|
17369
19953
|
monteurs: {
|
|
17370
19954
|
Row: {
|
|
17371
19955
|
avatar_url: string | null;
|
|
@@ -18095,6 +20679,42 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18095
20679
|
};
|
|
18096
20680
|
Relationships: [];
|
|
18097
20681
|
};
|
|
20682
|
+
order_buffers: {
|
|
20683
|
+
Row: {
|
|
20684
|
+
buffer_key: string;
|
|
20685
|
+
created_at: string;
|
|
20686
|
+
customer_id: string | null;
|
|
20687
|
+
grouping_mode: string;
|
|
20688
|
+
id: string;
|
|
20689
|
+
pickup_date: string | null;
|
|
20690
|
+
pickup_location: string | null;
|
|
20691
|
+
plan_locked_at: string | null;
|
|
20692
|
+
updated_at: string;
|
|
20693
|
+
};
|
|
20694
|
+
Insert: {
|
|
20695
|
+
buffer_key: string;
|
|
20696
|
+
created_at?: string;
|
|
20697
|
+
customer_id?: string | null;
|
|
20698
|
+
grouping_mode: string;
|
|
20699
|
+
id?: string;
|
|
20700
|
+
pickup_date?: string | null;
|
|
20701
|
+
pickup_location?: string | null;
|
|
20702
|
+
plan_locked_at?: string | null;
|
|
20703
|
+
updated_at?: string;
|
|
20704
|
+
};
|
|
20705
|
+
Update: {
|
|
20706
|
+
buffer_key?: string;
|
|
20707
|
+
created_at?: string;
|
|
20708
|
+
customer_id?: string | null;
|
|
20709
|
+
grouping_mode?: string;
|
|
20710
|
+
id?: string;
|
|
20711
|
+
pickup_date?: string | null;
|
|
20712
|
+
pickup_location?: string | null;
|
|
20713
|
+
plan_locked_at?: string | null;
|
|
20714
|
+
updated_at?: string;
|
|
20715
|
+
};
|
|
20716
|
+
Relationships: [];
|
|
20717
|
+
};
|
|
18098
20718
|
order_cart_items: {
|
|
18099
20719
|
Row: {
|
|
18100
20720
|
cart_id: string;
|
|
@@ -18161,6 +20781,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18161
20781
|
order_carts: {
|
|
18162
20782
|
Row: {
|
|
18163
20783
|
algorithm_version: number;
|
|
20784
|
+
buffer_id: string | null;
|
|
18164
20785
|
cart_number: number;
|
|
18165
20786
|
created_at: string;
|
|
18166
20787
|
id: string;
|
|
@@ -18168,13 +20789,14 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18168
20789
|
is_complete: boolean;
|
|
18169
20790
|
notes: string | null;
|
|
18170
20791
|
occupancy_pct: number;
|
|
18171
|
-
order_id: string;
|
|
20792
|
+
order_id: string | null;
|
|
18172
20793
|
source: string;
|
|
18173
20794
|
total_layers_used: number;
|
|
18174
20795
|
updated_at: string;
|
|
18175
20796
|
};
|
|
18176
20797
|
Insert: {
|
|
18177
20798
|
algorithm_version?: number;
|
|
20799
|
+
buffer_id?: string | null;
|
|
18178
20800
|
cart_number: number;
|
|
18179
20801
|
created_at?: string;
|
|
18180
20802
|
id?: string;
|
|
@@ -18182,13 +20804,14 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18182
20804
|
is_complete?: boolean;
|
|
18183
20805
|
notes?: string | null;
|
|
18184
20806
|
occupancy_pct?: number;
|
|
18185
|
-
order_id
|
|
20807
|
+
order_id?: string | null;
|
|
18186
20808
|
source?: string;
|
|
18187
20809
|
total_layers_used?: number;
|
|
18188
20810
|
updated_at?: string;
|
|
18189
20811
|
};
|
|
18190
20812
|
Update: {
|
|
18191
20813
|
algorithm_version?: number;
|
|
20814
|
+
buffer_id?: string | null;
|
|
18192
20815
|
cart_number?: number;
|
|
18193
20816
|
created_at?: string;
|
|
18194
20817
|
id?: string;
|
|
@@ -18196,12 +20819,18 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18196
20819
|
is_complete?: boolean;
|
|
18197
20820
|
notes?: string | null;
|
|
18198
20821
|
occupancy_pct?: number;
|
|
18199
|
-
order_id?: string;
|
|
20822
|
+
order_id?: string | null;
|
|
18200
20823
|
source?: string;
|
|
18201
20824
|
total_layers_used?: number;
|
|
18202
20825
|
updated_at?: string;
|
|
18203
20826
|
};
|
|
18204
20827
|
Relationships: [{
|
|
20828
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
20829
|
+
columns: ["buffer_id"];
|
|
20830
|
+
isOneToOne: false;
|
|
20831
|
+
referencedRelation: "order_buffers";
|
|
20832
|
+
referencedColumns: ["id"];
|
|
20833
|
+
}, {
|
|
18205
20834
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
18206
20835
|
columns: ["order_id"];
|
|
18207
20836
|
isOneToOne: false;
|
|
@@ -18338,15 +20967,117 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18338
20967
|
};
|
|
18339
20968
|
Relationships: [];
|
|
18340
20969
|
};
|
|
20970
|
+
order_shipment_items: {
|
|
20971
|
+
Row: {
|
|
20972
|
+
created_at: string;
|
|
20973
|
+
id: string;
|
|
20974
|
+
order_item_id: string;
|
|
20975
|
+
product_id: string | null;
|
|
20976
|
+
product_name: string;
|
|
20977
|
+
quantity: number;
|
|
20978
|
+
shipment_id: string;
|
|
20979
|
+
updated_at: string;
|
|
20980
|
+
};
|
|
20981
|
+
Insert: {
|
|
20982
|
+
created_at?: string;
|
|
20983
|
+
id?: string;
|
|
20984
|
+
order_item_id: string;
|
|
20985
|
+
product_id?: string | null;
|
|
20986
|
+
product_name: string;
|
|
20987
|
+
quantity: number;
|
|
20988
|
+
shipment_id: string;
|
|
20989
|
+
updated_at?: string;
|
|
20990
|
+
};
|
|
20991
|
+
Update: {
|
|
20992
|
+
created_at?: string;
|
|
20993
|
+
id?: string;
|
|
20994
|
+
order_item_id?: string;
|
|
20995
|
+
product_id?: string | null;
|
|
20996
|
+
product_name?: string;
|
|
20997
|
+
quantity?: number;
|
|
20998
|
+
shipment_id?: string;
|
|
20999
|
+
updated_at?: string;
|
|
21000
|
+
};
|
|
21001
|
+
Relationships: [{
|
|
21002
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
21003
|
+
columns: ["order_item_id"];
|
|
21004
|
+
isOneToOne: false;
|
|
21005
|
+
referencedRelation: "order_items";
|
|
21006
|
+
referencedColumns: ["id"];
|
|
21007
|
+
}, {
|
|
21008
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
21009
|
+
columns: ["shipment_id"];
|
|
21010
|
+
isOneToOne: false;
|
|
21011
|
+
referencedRelation: "order_shipments";
|
|
21012
|
+
referencedColumns: ["id"];
|
|
21013
|
+
}];
|
|
21014
|
+
};
|
|
21015
|
+
order_shipments: {
|
|
21016
|
+
Row: {
|
|
21017
|
+
carrier_id: string | null;
|
|
21018
|
+
created_at: string;
|
|
21019
|
+
delivery_date: string | null;
|
|
21020
|
+
delivery_location_id: string | null;
|
|
21021
|
+
id: string;
|
|
21022
|
+
notes: string | null;
|
|
21023
|
+
order_id: string;
|
|
21024
|
+
shipment_number: number;
|
|
21025
|
+
shipped_at: string | null;
|
|
21026
|
+
status: string;
|
|
21027
|
+
updated_at: string;
|
|
21028
|
+
};
|
|
21029
|
+
Insert: {
|
|
21030
|
+
carrier_id?: string | null;
|
|
21031
|
+
created_at?: string;
|
|
21032
|
+
delivery_date?: string | null;
|
|
21033
|
+
delivery_location_id?: string | null;
|
|
21034
|
+
id?: string;
|
|
21035
|
+
notes?: string | null;
|
|
21036
|
+
order_id: string;
|
|
21037
|
+
shipment_number: number;
|
|
21038
|
+
shipped_at?: string | null;
|
|
21039
|
+
status?: string;
|
|
21040
|
+
updated_at?: string;
|
|
21041
|
+
};
|
|
21042
|
+
Update: {
|
|
21043
|
+
carrier_id?: string | null;
|
|
21044
|
+
created_at?: string;
|
|
21045
|
+
delivery_date?: string | null;
|
|
21046
|
+
delivery_location_id?: string | null;
|
|
21047
|
+
id?: string;
|
|
21048
|
+
notes?: string | null;
|
|
21049
|
+
order_id?: string;
|
|
21050
|
+
shipment_number?: number;
|
|
21051
|
+
shipped_at?: string | null;
|
|
21052
|
+
status?: string;
|
|
21053
|
+
updated_at?: string;
|
|
21054
|
+
};
|
|
21055
|
+
Relationships: [{
|
|
21056
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
21057
|
+
columns: ["carrier_id"];
|
|
21058
|
+
isOneToOne: false;
|
|
21059
|
+
referencedRelation: "carriers";
|
|
21060
|
+
referencedColumns: ["id"];
|
|
21061
|
+
}, {
|
|
21062
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
21063
|
+
columns: ["order_id"];
|
|
21064
|
+
isOneToOne: false;
|
|
21065
|
+
referencedRelation: "orders";
|
|
21066
|
+
referencedColumns: ["id"];
|
|
21067
|
+
}];
|
|
21068
|
+
};
|
|
18341
21069
|
orders: {
|
|
18342
21070
|
Row: {
|
|
21071
|
+
buffer_id: string | null;
|
|
18343
21072
|
created_at: string;
|
|
18344
21073
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
18345
21074
|
customer_id: string | null;
|
|
18346
21075
|
customer_name: string;
|
|
18347
21076
|
deleted_at: string | null;
|
|
18348
|
-
delivery_date: string;
|
|
21077
|
+
delivery_date: string | null;
|
|
21078
|
+
floriday_sales_order_id: string | null;
|
|
18349
21079
|
id: string;
|
|
21080
|
+
is_reservation: boolean;
|
|
18350
21081
|
notes: string | null;
|
|
18351
21082
|
order_date: string;
|
|
18352
21083
|
order_number: string;
|
|
@@ -18358,13 +21089,16 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18358
21089
|
updated_at: string;
|
|
18359
21090
|
};
|
|
18360
21091
|
Insert: {
|
|
21092
|
+
buffer_id?: string | null;
|
|
18361
21093
|
created_at?: string;
|
|
18362
21094
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
18363
21095
|
customer_id?: string | null;
|
|
18364
21096
|
customer_name?: string;
|
|
18365
21097
|
deleted_at?: string | null;
|
|
18366
|
-
delivery_date
|
|
21098
|
+
delivery_date?: string | null;
|
|
21099
|
+
floriday_sales_order_id?: string | null;
|
|
18367
21100
|
id?: string;
|
|
21101
|
+
is_reservation?: boolean;
|
|
18368
21102
|
notes?: string | null;
|
|
18369
21103
|
order_date?: string;
|
|
18370
21104
|
order_number: string;
|
|
@@ -18376,13 +21110,16 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18376
21110
|
updated_at?: string;
|
|
18377
21111
|
};
|
|
18378
21112
|
Update: {
|
|
21113
|
+
buffer_id?: string | null;
|
|
18379
21114
|
created_at?: string;
|
|
18380
21115
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
18381
21116
|
customer_id?: string | null;
|
|
18382
21117
|
customer_name?: string;
|
|
18383
21118
|
deleted_at?: string | null;
|
|
18384
|
-
delivery_date?: string;
|
|
21119
|
+
delivery_date?: string | null;
|
|
21120
|
+
floriday_sales_order_id?: string | null;
|
|
18385
21121
|
id?: string;
|
|
21122
|
+
is_reservation?: boolean;
|
|
18386
21123
|
notes?: string | null;
|
|
18387
21124
|
order_date?: string;
|
|
18388
21125
|
order_number?: string;
|
|
@@ -18394,6 +21131,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18394
21131
|
updated_at?: string;
|
|
18395
21132
|
};
|
|
18396
21133
|
Relationships: [{
|
|
21134
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
21135
|
+
columns: ["buffer_id"];
|
|
21136
|
+
isOneToOne: false;
|
|
21137
|
+
referencedRelation: "order_buffers";
|
|
21138
|
+
referencedColumns: ["id"];
|
|
21139
|
+
}, {
|
|
18397
21140
|
foreignKeyName: "orders_customer_id_fkey";
|
|
18398
21141
|
columns: ["customer_id"];
|
|
18399
21142
|
isOneToOne: false;
|
|
@@ -18657,6 +21400,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18657
21400
|
Row: {
|
|
18658
21401
|
created_at: string;
|
|
18659
21402
|
description: string | null;
|
|
21403
|
+
head_product_id: string | null;
|
|
21404
|
+
head_trade_item_floriday_id: string | null;
|
|
18660
21405
|
id: string;
|
|
18661
21406
|
is_active: boolean;
|
|
18662
21407
|
name: string;
|
|
@@ -18666,6 +21411,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18666
21411
|
Insert: {
|
|
18667
21412
|
created_at?: string;
|
|
18668
21413
|
description?: string | null;
|
|
21414
|
+
head_product_id?: string | null;
|
|
21415
|
+
head_trade_item_floriday_id?: string | null;
|
|
18669
21416
|
id?: string;
|
|
18670
21417
|
is_active?: boolean;
|
|
18671
21418
|
name: string;
|
|
@@ -18675,13 +21422,21 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
18675
21422
|
Update: {
|
|
18676
21423
|
created_at?: string;
|
|
18677
21424
|
description?: string | null;
|
|
21425
|
+
head_product_id?: string | null;
|
|
21426
|
+
head_trade_item_floriday_id?: string | null;
|
|
18678
21427
|
id?: string;
|
|
18679
21428
|
is_active?: boolean;
|
|
18680
21429
|
name?: string;
|
|
18681
21430
|
tenant_id?: string;
|
|
18682
21431
|
updated_at?: string;
|
|
18683
21432
|
};
|
|
18684
|
-
Relationships: [
|
|
21433
|
+
Relationships: [{
|
|
21434
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
21435
|
+
columns: ["head_product_id"];
|
|
21436
|
+
isOneToOne: false;
|
|
21437
|
+
referencedRelation: "products";
|
|
21438
|
+
referencedColumns: ["id"];
|
|
21439
|
+
}];
|
|
18685
21440
|
};
|
|
18686
21441
|
products: {
|
|
18687
21442
|
Row: {
|
|
@@ -19766,18 +22521,39 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19766
22521
|
updated_at?: string;
|
|
19767
22522
|
};
|
|
19768
22523
|
Update: {
|
|
19769
|
-
address?: string | null;
|
|
19770
|
-
column_mappings?: import("../integrations/supabase/types").Json | null;
|
|
19771
|
-
contact_person?: string | null;
|
|
22524
|
+
address?: string | null;
|
|
22525
|
+
column_mappings?: import("../integrations/supabase/types").Json | null;
|
|
22526
|
+
contact_person?: string | null;
|
|
22527
|
+
created_at?: string;
|
|
22528
|
+
default_product_type?: string;
|
|
22529
|
+
email?: string | null;
|
|
22530
|
+
id?: string;
|
|
22531
|
+
imported_file_name?: string | null;
|
|
22532
|
+
name?: string;
|
|
22533
|
+
notes?: string | null;
|
|
22534
|
+
phone?: string | null;
|
|
22535
|
+
updated_at?: string;
|
|
22536
|
+
};
|
|
22537
|
+
Relationships: [];
|
|
22538
|
+
};
|
|
22539
|
+
technician_rates: {
|
|
22540
|
+
Row: {
|
|
22541
|
+
created_at: string;
|
|
22542
|
+
hourly_rate_cents: number;
|
|
22543
|
+
updated_at: string;
|
|
22544
|
+
user_id: string;
|
|
22545
|
+
};
|
|
22546
|
+
Insert: {
|
|
22547
|
+
created_at?: string;
|
|
22548
|
+
hourly_rate_cents?: number;
|
|
22549
|
+
updated_at?: string;
|
|
22550
|
+
user_id: string;
|
|
22551
|
+
};
|
|
22552
|
+
Update: {
|
|
19772
22553
|
created_at?: string;
|
|
19773
|
-
|
|
19774
|
-
email?: string | null;
|
|
19775
|
-
id?: string;
|
|
19776
|
-
imported_file_name?: string | null;
|
|
19777
|
-
name?: string;
|
|
19778
|
-
notes?: string | null;
|
|
19779
|
-
phone?: string | null;
|
|
22554
|
+
hourly_rate_cents?: number;
|
|
19780
22555
|
updated_at?: string;
|
|
22556
|
+
user_id?: string;
|
|
19781
22557
|
};
|
|
19782
22558
|
Relationships: [];
|
|
19783
22559
|
};
|
|
@@ -20250,6 +23026,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20250
23026
|
country: string | null;
|
|
20251
23027
|
created_at: string;
|
|
20252
23028
|
email: string | null;
|
|
23029
|
+
external_group_key: string | null;
|
|
20253
23030
|
id: string;
|
|
20254
23031
|
last_synced_at: string | null;
|
|
20255
23032
|
name: string;
|
|
@@ -20268,6 +23045,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20268
23045
|
country?: string | null;
|
|
20269
23046
|
created_at?: string;
|
|
20270
23047
|
email?: string | null;
|
|
23048
|
+
external_group_key?: string | null;
|
|
20271
23049
|
id?: string;
|
|
20272
23050
|
last_synced_at?: string | null;
|
|
20273
23051
|
name: string;
|
|
@@ -20286,6 +23064,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20286
23064
|
country?: string | null;
|
|
20287
23065
|
created_at?: string;
|
|
20288
23066
|
email?: string | null;
|
|
23067
|
+
external_group_key?: string | null;
|
|
20289
23068
|
id?: string;
|
|
20290
23069
|
last_synced_at?: string | null;
|
|
20291
23070
|
name?: string;
|
|
@@ -20450,6 +23229,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20450
23229
|
twinfield_invoice_settings: {
|
|
20451
23230
|
Row: {
|
|
20452
23231
|
created_at: string;
|
|
23232
|
+
debtor_gl_account: string;
|
|
23233
|
+
default_credit_invoice_type: string | null;
|
|
20453
23234
|
default_gl_account: string;
|
|
20454
23235
|
default_invoice_type: string;
|
|
20455
23236
|
default_payment_term_days: number;
|
|
@@ -20458,11 +23239,15 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20458
23239
|
invoice_enabled_fo: boolean;
|
|
20459
23240
|
invoice_enabled_ho: boolean;
|
|
20460
23241
|
invoice_enabled_mo: boolean;
|
|
23242
|
+
payment_gl_account: string;
|
|
23243
|
+
payment_journal_code: string;
|
|
20461
23244
|
updated_at: string;
|
|
20462
23245
|
user_id: string;
|
|
20463
23246
|
};
|
|
20464
23247
|
Insert: {
|
|
20465
23248
|
created_at?: string;
|
|
23249
|
+
debtor_gl_account?: string;
|
|
23250
|
+
default_credit_invoice_type?: string | null;
|
|
20466
23251
|
default_gl_account?: string;
|
|
20467
23252
|
default_invoice_type?: string;
|
|
20468
23253
|
default_payment_term_days?: number;
|
|
@@ -20471,11 +23256,15 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20471
23256
|
invoice_enabled_fo?: boolean;
|
|
20472
23257
|
invoice_enabled_ho?: boolean;
|
|
20473
23258
|
invoice_enabled_mo?: boolean;
|
|
23259
|
+
payment_gl_account?: string;
|
|
23260
|
+
payment_journal_code?: string;
|
|
20474
23261
|
updated_at?: string;
|
|
20475
23262
|
user_id: string;
|
|
20476
23263
|
};
|
|
20477
23264
|
Update: {
|
|
20478
23265
|
created_at?: string;
|
|
23266
|
+
debtor_gl_account?: string;
|
|
23267
|
+
default_credit_invoice_type?: string | null;
|
|
20479
23268
|
default_gl_account?: string;
|
|
20480
23269
|
default_invoice_type?: string;
|
|
20481
23270
|
default_payment_term_days?: number;
|
|
@@ -20484,6 +23273,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20484
23273
|
invoice_enabled_fo?: boolean;
|
|
20485
23274
|
invoice_enabled_ho?: boolean;
|
|
20486
23275
|
invoice_enabled_mo?: boolean;
|
|
23276
|
+
payment_gl_account?: string;
|
|
23277
|
+
payment_journal_code?: string;
|
|
20487
23278
|
updated_at?: string;
|
|
20488
23279
|
user_id?: string;
|
|
20489
23280
|
};
|
|
@@ -20704,43 +23495,49 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20704
23495
|
};
|
|
20705
23496
|
twinfield_push_queue: {
|
|
20706
23497
|
Row: {
|
|
23498
|
+
action: string;
|
|
20707
23499
|
attempts: number;
|
|
20708
23500
|
connection_id: string;
|
|
20709
23501
|
created_at: string;
|
|
23502
|
+
customer_id: string | null;
|
|
20710
23503
|
external_id: string | null;
|
|
20711
23504
|
id: string;
|
|
20712
23505
|
idempotency_key: string;
|
|
20713
23506
|
last_error: string | null;
|
|
20714
23507
|
next_attempt_at: string;
|
|
20715
|
-
office_code: string;
|
|
23508
|
+
office_code: string | null;
|
|
20716
23509
|
payload: import("../integrations/supabase/types").Json;
|
|
20717
23510
|
status: string;
|
|
20718
23511
|
updated_at: string;
|
|
20719
23512
|
};
|
|
20720
23513
|
Insert: {
|
|
23514
|
+
action?: string;
|
|
20721
23515
|
attempts?: number;
|
|
20722
23516
|
connection_id: string;
|
|
20723
23517
|
created_at?: string;
|
|
23518
|
+
customer_id?: string | null;
|
|
20724
23519
|
external_id?: string | null;
|
|
20725
23520
|
id?: string;
|
|
20726
23521
|
idempotency_key: string;
|
|
20727
23522
|
last_error?: string | null;
|
|
20728
23523
|
next_attempt_at?: string;
|
|
20729
|
-
office_code
|
|
23524
|
+
office_code?: string | null;
|
|
20730
23525
|
payload: import("../integrations/supabase/types").Json;
|
|
20731
23526
|
status?: string;
|
|
20732
23527
|
updated_at?: string;
|
|
20733
23528
|
};
|
|
20734
23529
|
Update: {
|
|
23530
|
+
action?: string;
|
|
20735
23531
|
attempts?: number;
|
|
20736
23532
|
connection_id?: string;
|
|
20737
23533
|
created_at?: string;
|
|
23534
|
+
customer_id?: string | null;
|
|
20738
23535
|
external_id?: string | null;
|
|
20739
23536
|
id?: string;
|
|
20740
23537
|
idempotency_key?: string;
|
|
20741
23538
|
last_error?: string | null;
|
|
20742
23539
|
next_attempt_at?: string;
|
|
20743
|
-
office_code?: string;
|
|
23540
|
+
office_code?: string | null;
|
|
20744
23541
|
payload?: import("../integrations/supabase/types").Json;
|
|
20745
23542
|
status?: string;
|
|
20746
23543
|
updated_at?: string;
|
|
@@ -20751,6 +23548,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20751
23548
|
isOneToOne: false;
|
|
20752
23549
|
referencedRelation: "twinfield_connections";
|
|
20753
23550
|
referencedColumns: ["id"];
|
|
23551
|
+
}, {
|
|
23552
|
+
foreignKeyName: "twinfield_push_queue_customer_id_fkey";
|
|
23553
|
+
columns: ["customer_id"];
|
|
23554
|
+
isOneToOne: false;
|
|
23555
|
+
referencedRelation: "customers";
|
|
23556
|
+
referencedColumns: ["id"];
|
|
20754
23557
|
}];
|
|
20755
23558
|
};
|
|
20756
23559
|
twinfield_request_metrics: {
|
|
@@ -21026,6 +23829,252 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21026
23829
|
};
|
|
21027
23830
|
Relationships: [];
|
|
21028
23831
|
};
|
|
23832
|
+
werkbon_package_lines: {
|
|
23833
|
+
Row: {
|
|
23834
|
+
created_at: string;
|
|
23835
|
+
created_by: string | null;
|
|
23836
|
+
id: string;
|
|
23837
|
+
package_id: string;
|
|
23838
|
+
quantity: number;
|
|
23839
|
+
unit_price_cents_snapshot: number;
|
|
23840
|
+
werkbon_id: string;
|
|
23841
|
+
};
|
|
23842
|
+
Insert: {
|
|
23843
|
+
created_at?: string;
|
|
23844
|
+
created_by?: string | null;
|
|
23845
|
+
id?: string;
|
|
23846
|
+
package_id: string;
|
|
23847
|
+
quantity?: number;
|
|
23848
|
+
unit_price_cents_snapshot?: number;
|
|
23849
|
+
werkbon_id: string;
|
|
23850
|
+
};
|
|
23851
|
+
Update: {
|
|
23852
|
+
created_at?: string;
|
|
23853
|
+
created_by?: string | null;
|
|
23854
|
+
id?: string;
|
|
23855
|
+
package_id?: string;
|
|
23856
|
+
quantity?: number;
|
|
23857
|
+
unit_price_cents_snapshot?: number;
|
|
23858
|
+
werkbon_id?: string;
|
|
23859
|
+
};
|
|
23860
|
+
Relationships: [{
|
|
23861
|
+
foreignKeyName: "werkbon_package_lines_package_id_fkey";
|
|
23862
|
+
columns: ["package_id"];
|
|
23863
|
+
isOneToOne: false;
|
|
23864
|
+
referencedRelation: "werkbon_packages";
|
|
23865
|
+
referencedColumns: ["id"];
|
|
23866
|
+
}, {
|
|
23867
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
23868
|
+
columns: ["werkbon_id"];
|
|
23869
|
+
isOneToOne: false;
|
|
23870
|
+
referencedRelation: "werkbonnen";
|
|
23871
|
+
referencedColumns: ["id"];
|
|
23872
|
+
}];
|
|
23873
|
+
};
|
|
23874
|
+
werkbon_packages: {
|
|
23875
|
+
Row: {
|
|
23876
|
+
active: boolean;
|
|
23877
|
+
code: string;
|
|
23878
|
+
created_at: string;
|
|
23879
|
+
default_quantity: number;
|
|
23880
|
+
description: string | null;
|
|
23881
|
+
id: string;
|
|
23882
|
+
name: string;
|
|
23883
|
+
unit_price_cents: number;
|
|
23884
|
+
updated_at: string;
|
|
23885
|
+
};
|
|
23886
|
+
Insert: {
|
|
23887
|
+
active?: boolean;
|
|
23888
|
+
code: string;
|
|
23889
|
+
created_at?: string;
|
|
23890
|
+
default_quantity?: number;
|
|
23891
|
+
description?: string | null;
|
|
23892
|
+
id?: string;
|
|
23893
|
+
name: string;
|
|
23894
|
+
unit_price_cents?: number;
|
|
23895
|
+
updated_at?: string;
|
|
23896
|
+
};
|
|
23897
|
+
Update: {
|
|
23898
|
+
active?: boolean;
|
|
23899
|
+
code?: string;
|
|
23900
|
+
created_at?: string;
|
|
23901
|
+
default_quantity?: number;
|
|
23902
|
+
description?: string | null;
|
|
23903
|
+
id?: string;
|
|
23904
|
+
name?: string;
|
|
23905
|
+
unit_price_cents?: number;
|
|
23906
|
+
updated_at?: string;
|
|
23907
|
+
};
|
|
23908
|
+
Relationships: [];
|
|
23909
|
+
};
|
|
23910
|
+
werkbon_photos: {
|
|
23911
|
+
Row: {
|
|
23912
|
+
created_at: string;
|
|
23913
|
+
id: string;
|
|
23914
|
+
storage_path: string;
|
|
23915
|
+
user_id: string;
|
|
23916
|
+
werkbon_id: string;
|
|
23917
|
+
};
|
|
23918
|
+
Insert: {
|
|
23919
|
+
created_at?: string;
|
|
23920
|
+
id?: string;
|
|
23921
|
+
storage_path: string;
|
|
23922
|
+
user_id: string;
|
|
23923
|
+
werkbon_id: string;
|
|
23924
|
+
};
|
|
23925
|
+
Update: {
|
|
23926
|
+
created_at?: string;
|
|
23927
|
+
id?: string;
|
|
23928
|
+
storage_path?: string;
|
|
23929
|
+
user_id?: string;
|
|
23930
|
+
werkbon_id?: string;
|
|
23931
|
+
};
|
|
23932
|
+
Relationships: [{
|
|
23933
|
+
foreignKeyName: "werkbon_photos_werkbon_id_fkey";
|
|
23934
|
+
columns: ["werkbon_id"];
|
|
23935
|
+
isOneToOne: false;
|
|
23936
|
+
referencedRelation: "werkbonnen";
|
|
23937
|
+
referencedColumns: ["id"];
|
|
23938
|
+
}];
|
|
23939
|
+
};
|
|
23940
|
+
werkbon_time_logs: {
|
|
23941
|
+
Row: {
|
|
23942
|
+
activity: string;
|
|
23943
|
+
created_at: string;
|
|
23944
|
+
ended_at: string | null;
|
|
23945
|
+
id: string;
|
|
23946
|
+
started_at: string;
|
|
23947
|
+
user_id: string;
|
|
23948
|
+
werkbon_id: string;
|
|
23949
|
+
};
|
|
23950
|
+
Insert: {
|
|
23951
|
+
activity: string;
|
|
23952
|
+
created_at?: string;
|
|
23953
|
+
ended_at?: string | null;
|
|
23954
|
+
id?: string;
|
|
23955
|
+
started_at?: string;
|
|
23956
|
+
user_id: string;
|
|
23957
|
+
werkbon_id: string;
|
|
23958
|
+
};
|
|
23959
|
+
Update: {
|
|
23960
|
+
activity?: string;
|
|
23961
|
+
created_at?: string;
|
|
23962
|
+
ended_at?: string | null;
|
|
23963
|
+
id?: string;
|
|
23964
|
+
started_at?: string;
|
|
23965
|
+
user_id?: string;
|
|
23966
|
+
werkbon_id?: string;
|
|
23967
|
+
};
|
|
23968
|
+
Relationships: [{
|
|
23969
|
+
foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
|
|
23970
|
+
columns: ["werkbon_id"];
|
|
23971
|
+
isOneToOne: false;
|
|
23972
|
+
referencedRelation: "werkbonnen";
|
|
23973
|
+
referencedColumns: ["id"];
|
|
23974
|
+
}];
|
|
23975
|
+
};
|
|
23976
|
+
werkbonnen: {
|
|
23977
|
+
Row: {
|
|
23978
|
+
assigned_user_id: string | null;
|
|
23979
|
+
budget_mandate_cents: number;
|
|
23980
|
+
complaint_description: string | null;
|
|
23981
|
+
created_at: string;
|
|
23982
|
+
created_by: string | null;
|
|
23983
|
+
customer_id: string | null;
|
|
23984
|
+
externe_referentie: string | null;
|
|
23985
|
+
first_time_fix: boolean | null;
|
|
23986
|
+
id: string;
|
|
23987
|
+
internal_notes: string | null;
|
|
23988
|
+
parent_werkbon_id: string | null;
|
|
23989
|
+
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
23990
|
+
planning_status: string;
|
|
23991
|
+
project_number: string | null;
|
|
23992
|
+
room_number: string | null;
|
|
23993
|
+
scheduled_end_time: string | null;
|
|
23994
|
+
scheduled_start_time: string | null;
|
|
23995
|
+
sequence_number: number;
|
|
23996
|
+
source_pdf_path: string | null;
|
|
23997
|
+
status: string;
|
|
23998
|
+
technician_id: string | null;
|
|
23999
|
+
technician_notes: string | null;
|
|
24000
|
+
technician_notes_raw: string | null;
|
|
24001
|
+
technician_task_description: string | null;
|
|
24002
|
+
updated_at: string;
|
|
24003
|
+
version: number;
|
|
24004
|
+
work_address: string | null;
|
|
24005
|
+
};
|
|
24006
|
+
Insert: {
|
|
24007
|
+
assigned_user_id?: string | null;
|
|
24008
|
+
budget_mandate_cents?: number;
|
|
24009
|
+
complaint_description?: string | null;
|
|
24010
|
+
created_at?: string;
|
|
24011
|
+
created_by?: string | null;
|
|
24012
|
+
customer_id?: string | null;
|
|
24013
|
+
externe_referentie?: string | null;
|
|
24014
|
+
first_time_fix?: boolean | null;
|
|
24015
|
+
id?: string;
|
|
24016
|
+
internal_notes?: string | null;
|
|
24017
|
+
parent_werkbon_id?: string | null;
|
|
24018
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
24019
|
+
planning_status?: string;
|
|
24020
|
+
project_number?: string | null;
|
|
24021
|
+
room_number?: string | null;
|
|
24022
|
+
scheduled_end_time?: string | null;
|
|
24023
|
+
scheduled_start_time?: string | null;
|
|
24024
|
+
sequence_number: number;
|
|
24025
|
+
source_pdf_path?: string | null;
|
|
24026
|
+
status?: string;
|
|
24027
|
+
technician_id?: string | null;
|
|
24028
|
+
technician_notes?: string | null;
|
|
24029
|
+
technician_notes_raw?: string | null;
|
|
24030
|
+
technician_task_description?: string | null;
|
|
24031
|
+
updated_at?: string;
|
|
24032
|
+
version?: number;
|
|
24033
|
+
work_address?: string | null;
|
|
24034
|
+
};
|
|
24035
|
+
Update: {
|
|
24036
|
+
assigned_user_id?: string | null;
|
|
24037
|
+
budget_mandate_cents?: number;
|
|
24038
|
+
complaint_description?: string | null;
|
|
24039
|
+
created_at?: string;
|
|
24040
|
+
created_by?: string | null;
|
|
24041
|
+
customer_id?: string | null;
|
|
24042
|
+
externe_referentie?: string | null;
|
|
24043
|
+
first_time_fix?: boolean | null;
|
|
24044
|
+
id?: string;
|
|
24045
|
+
internal_notes?: string | null;
|
|
24046
|
+
parent_werkbon_id?: string | null;
|
|
24047
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
24048
|
+
planning_status?: string;
|
|
24049
|
+
project_number?: string | null;
|
|
24050
|
+
room_number?: string | null;
|
|
24051
|
+
scheduled_end_time?: string | null;
|
|
24052
|
+
scheduled_start_time?: string | null;
|
|
24053
|
+
sequence_number?: number;
|
|
24054
|
+
source_pdf_path?: string | null;
|
|
24055
|
+
status?: string;
|
|
24056
|
+
technician_id?: string | null;
|
|
24057
|
+
technician_notes?: string | null;
|
|
24058
|
+
technician_notes_raw?: string | null;
|
|
24059
|
+
technician_task_description?: string | null;
|
|
24060
|
+
updated_at?: string;
|
|
24061
|
+
version?: number;
|
|
24062
|
+
work_address?: string | null;
|
|
24063
|
+
};
|
|
24064
|
+
Relationships: [{
|
|
24065
|
+
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
24066
|
+
columns: ["parent_werkbon_id"];
|
|
24067
|
+
isOneToOne: false;
|
|
24068
|
+
referencedRelation: "werkbonnen";
|
|
24069
|
+
referencedColumns: ["id"];
|
|
24070
|
+
}, {
|
|
24071
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
24072
|
+
columns: ["technician_id"];
|
|
24073
|
+
isOneToOne: false;
|
|
24074
|
+
referencedRelation: "monteurs";
|
|
24075
|
+
referencedColumns: ["id"];
|
|
24076
|
+
}];
|
|
24077
|
+
};
|
|
21029
24078
|
work_order_monteurs: {
|
|
21030
24079
|
Row: {
|
|
21031
24080
|
created_at: string;
|
|
@@ -21196,6 +24245,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21196
24245
|
created_at: string | null;
|
|
21197
24246
|
created_by: string | null;
|
|
21198
24247
|
display_name: string | null;
|
|
24248
|
+
graph_subscription_expires_at: string | null;
|
|
24249
|
+
graph_subscription_id: string | null;
|
|
21199
24250
|
has_access_token: boolean | null;
|
|
21200
24251
|
has_client_id: boolean | null;
|
|
21201
24252
|
has_client_secret: boolean | null;
|
|
@@ -21213,6 +24264,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21213
24264
|
oauth_mode: string | null;
|
|
21214
24265
|
provider: string | null;
|
|
21215
24266
|
purpose_assignments: import("../integrations/supabase/types").Json | null;
|
|
24267
|
+
realtime_mode: string | null;
|
|
21216
24268
|
scopes: string[] | null;
|
|
21217
24269
|
smtp_host: string | null;
|
|
21218
24270
|
smtp_port: number | null;
|
|
@@ -21227,6 +24279,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21227
24279
|
created_at?: string | null;
|
|
21228
24280
|
created_by?: string | null;
|
|
21229
24281
|
display_name?: string | null;
|
|
24282
|
+
graph_subscription_expires_at?: string | null;
|
|
24283
|
+
graph_subscription_id?: string | null;
|
|
21230
24284
|
has_access_token?: never;
|
|
21231
24285
|
has_client_id?: never;
|
|
21232
24286
|
has_client_secret?: never;
|
|
@@ -21244,6 +24298,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21244
24298
|
oauth_mode?: string | null;
|
|
21245
24299
|
provider?: string | null;
|
|
21246
24300
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
24301
|
+
realtime_mode?: string | null;
|
|
21247
24302
|
scopes?: string[] | null;
|
|
21248
24303
|
smtp_host?: string | null;
|
|
21249
24304
|
smtp_port?: number | null;
|
|
@@ -21258,6 +24313,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21258
24313
|
created_at?: string | null;
|
|
21259
24314
|
created_by?: string | null;
|
|
21260
24315
|
display_name?: string | null;
|
|
24316
|
+
graph_subscription_expires_at?: string | null;
|
|
24317
|
+
graph_subscription_id?: string | null;
|
|
21261
24318
|
has_access_token?: never;
|
|
21262
24319
|
has_client_id?: never;
|
|
21263
24320
|
has_client_secret?: never;
|
|
@@ -21275,6 +24332,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21275
24332
|
oauth_mode?: string | null;
|
|
21276
24333
|
provider?: string | null;
|
|
21277
24334
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
24335
|
+
realtime_mode?: string | null;
|
|
21278
24336
|
scopes?: string[] | null;
|
|
21279
24337
|
smtp_host?: string | null;
|
|
21280
24338
|
smtp_port?: number | null;
|
|
@@ -21733,6 +24791,21 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21733
24791
|
};
|
|
21734
24792
|
Returns: string;
|
|
21735
24793
|
};
|
|
24794
|
+
ai_usage_by_module: {
|
|
24795
|
+
Args: {
|
|
24796
|
+
_from: string;
|
|
24797
|
+
_to: string;
|
|
24798
|
+
};
|
|
24799
|
+
Returns: {
|
|
24800
|
+
calls: number;
|
|
24801
|
+
consumer_module_id: string;
|
|
24802
|
+
cost_usd: number;
|
|
24803
|
+
errors: number;
|
|
24804
|
+
input_tokens: number;
|
|
24805
|
+
output_tokens: number;
|
|
24806
|
+
total_tokens: number;
|
|
24807
|
+
}[];
|
|
24808
|
+
};
|
|
21736
24809
|
apply_stock_consumption: {
|
|
21737
24810
|
Args: {
|
|
21738
24811
|
p_order_id: string;
|
|
@@ -21818,6 +24891,33 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21818
24891
|
};
|
|
21819
24892
|
Returns: import("../integrations/supabase/types").Json;
|
|
21820
24893
|
};
|
|
24894
|
+
claim_twinfield_push_batch: {
|
|
24895
|
+
Args: {
|
|
24896
|
+
_limit?: number;
|
|
24897
|
+
};
|
|
24898
|
+
Returns: {
|
|
24899
|
+
action: string;
|
|
24900
|
+
attempts: number;
|
|
24901
|
+
connection_id: string;
|
|
24902
|
+
created_at: string;
|
|
24903
|
+
customer_id: string | null;
|
|
24904
|
+
external_id: string | null;
|
|
24905
|
+
id: string;
|
|
24906
|
+
idempotency_key: string;
|
|
24907
|
+
last_error: string | null;
|
|
24908
|
+
next_attempt_at: string;
|
|
24909
|
+
office_code: string | null;
|
|
24910
|
+
payload: import("../integrations/supabase/types").Json;
|
|
24911
|
+
status: string;
|
|
24912
|
+
updated_at: string;
|
|
24913
|
+
}[];
|
|
24914
|
+
SetofOptions: {
|
|
24915
|
+
from: "*";
|
|
24916
|
+
to: "twinfield_push_queue";
|
|
24917
|
+
isOneToOne: false;
|
|
24918
|
+
isSetofReturn: true;
|
|
24919
|
+
};
|
|
24920
|
+
};
|
|
21821
24921
|
cleanup_old_bookings: {
|
|
21822
24922
|
Args: never;
|
|
21823
24923
|
Returns: undefined;
|
|
@@ -21854,6 +24954,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21854
24954
|
Args: never;
|
|
21855
24955
|
Returns: string;
|
|
21856
24956
|
};
|
|
24957
|
+
custom_access_token_hook: {
|
|
24958
|
+
Args: {
|
|
24959
|
+
event: import("../integrations/supabase/types").Json;
|
|
24960
|
+
};
|
|
24961
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
24962
|
+
};
|
|
21857
24963
|
dashboard_alert_counts: {
|
|
21858
24964
|
Args: never;
|
|
21859
24965
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -21914,6 +25020,16 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21914
25020
|
status: string;
|
|
21915
25021
|
}[];
|
|
21916
25022
|
};
|
|
25023
|
+
email_auth_upsert_connection: {
|
|
25024
|
+
Args: {
|
|
25025
|
+
_account_email: string;
|
|
25026
|
+
_created_by: string;
|
|
25027
|
+
_is_active: boolean;
|
|
25028
|
+
_provider: string;
|
|
25029
|
+
_status: string;
|
|
25030
|
+
};
|
|
25031
|
+
Returns: string;
|
|
25032
|
+
};
|
|
21917
25033
|
enqueue_cart_replan_if_unlocked: {
|
|
21918
25034
|
Args: {
|
|
21919
25035
|
p_order_id: string;
|
|
@@ -22179,6 +25295,14 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22179
25295
|
};
|
|
22180
25296
|
Returns: string;
|
|
22181
25297
|
};
|
|
25298
|
+
has_module_permission: {
|
|
25299
|
+
Args: {
|
|
25300
|
+
_min: string;
|
|
25301
|
+
_module_id: string;
|
|
25302
|
+
_user_id: string;
|
|
25303
|
+
};
|
|
25304
|
+
Returns: boolean;
|
|
25305
|
+
};
|
|
22182
25306
|
has_role: {
|
|
22183
25307
|
Args: {
|
|
22184
25308
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -22186,6 +25310,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22186
25310
|
};
|
|
22187
25311
|
Returns: boolean;
|
|
22188
25312
|
};
|
|
25313
|
+
has_twinfield_link: {
|
|
25314
|
+
Args: never;
|
|
25315
|
+
Returns: boolean;
|
|
25316
|
+
};
|
|
22189
25317
|
is_authenticated: {
|
|
22190
25318
|
Args: never;
|
|
22191
25319
|
Returns: boolean;
|
|
@@ -22200,6 +25328,20 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22200
25328
|
};
|
|
22201
25329
|
Returns: boolean;
|
|
22202
25330
|
};
|
|
25331
|
+
jwt_has_role: {
|
|
25332
|
+
Args: {
|
|
25333
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
25334
|
+
};
|
|
25335
|
+
Returns: boolean;
|
|
25336
|
+
};
|
|
25337
|
+
list_monteurs: {
|
|
25338
|
+
Args: never;
|
|
25339
|
+
Returns: {
|
|
25340
|
+
display_name: string;
|
|
25341
|
+
email: string;
|
|
25342
|
+
user_id: string;
|
|
25343
|
+
}[];
|
|
25344
|
+
};
|
|
22203
25345
|
local_effective_price: {
|
|
22204
25346
|
Args: {
|
|
22205
25347
|
_customer_id: string;
|
|
@@ -22216,6 +25358,22 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22216
25358
|
source_id: string;
|
|
22217
25359
|
}[];
|
|
22218
25360
|
};
|
|
25361
|
+
log_ai_call: {
|
|
25362
|
+
Args: {
|
|
25363
|
+
_consumer_module_id: string;
|
|
25364
|
+
_cost_usd: number;
|
|
25365
|
+
_duration_ms: number;
|
|
25366
|
+
_error_code: string;
|
|
25367
|
+
_error_message: string;
|
|
25368
|
+
_input_tokens: number;
|
|
25369
|
+
_model_slug: string;
|
|
25370
|
+
_output_tokens: number;
|
|
25371
|
+
_provider_slug: string;
|
|
25372
|
+
_status: string;
|
|
25373
|
+
_total_tokens: number;
|
|
25374
|
+
};
|
|
25375
|
+
Returns: string;
|
|
25376
|
+
};
|
|
22219
25377
|
mark_offer_clicked: {
|
|
22220
25378
|
Args: {
|
|
22221
25379
|
p_code: string;
|
|
@@ -22228,6 +25386,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22228
25386
|
};
|
|
22229
25387
|
Returns: undefined;
|
|
22230
25388
|
};
|
|
25389
|
+
mark_shipment_shipped: {
|
|
25390
|
+
Args: {
|
|
25391
|
+
p_shipment_id: string;
|
|
25392
|
+
};
|
|
25393
|
+
Returns: undefined;
|
|
25394
|
+
};
|
|
22231
25395
|
next_order_number: {
|
|
22232
25396
|
Args: {
|
|
22233
25397
|
p_prefix: string;
|
|
@@ -22241,6 +25405,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22241
25405
|
};
|
|
22242
25406
|
Returns: string;
|
|
22243
25407
|
};
|
|
25408
|
+
next_twinfield_code: {
|
|
25409
|
+
Args: never;
|
|
25410
|
+
Returns: string;
|
|
25411
|
+
};
|
|
22244
25412
|
next_work_order_number: {
|
|
22245
25413
|
Args: {
|
|
22246
25414
|
p_parent_work_order_id?: string;
|
|
@@ -22355,6 +25523,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22355
25523
|
};
|
|
22356
25524
|
Returns: number;
|
|
22357
25525
|
};
|
|
25526
|
+
reorder_customer_price_groups: {
|
|
25527
|
+
Args: {
|
|
25528
|
+
_ids: string[];
|
|
25529
|
+
};
|
|
25530
|
+
Returns: undefined;
|
|
25531
|
+
};
|
|
22358
25532
|
reset_floriday_sync_cursor: {
|
|
22359
25533
|
Args: {
|
|
22360
25534
|
p_connection_id: string;
|
|
@@ -22368,6 +25542,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22368
25542
|
};
|
|
22369
25543
|
Returns: string;
|
|
22370
25544
|
};
|
|
25545
|
+
retry_twinfield_push: {
|
|
25546
|
+
Args: {
|
|
25547
|
+
_customer_id: string;
|
|
25548
|
+
};
|
|
25549
|
+
Returns: number;
|
|
25550
|
+
};
|
|
22371
25551
|
schedule_floriday_additional_services_sync: {
|
|
22372
25552
|
Args: {
|
|
22373
25553
|
p_apikey: string;
|
|
@@ -22688,9 +25868,11 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22688
25868
|
};
|
|
22689
25869
|
};
|
|
22690
25870
|
Enums: {
|
|
22691
|
-
app_role: "admin" | "
|
|
25871
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
22692
25872
|
exact_env: "staging" | "live";
|
|
22693
25873
|
exact_push_status: "pending" | "sent" | "error";
|
|
25874
|
+
itk_customer_segment: "Business" | "Private";
|
|
25875
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
22694
25876
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
22695
25877
|
};
|
|
22696
25878
|
CompositeTypes: { [_ in never]: never; };
|