@flowselections/floriday-verkoop-module 1.0.24 → 1.0.26
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/integrations/supabase/auth-middleware.d.ts +1057 -17
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1057 -17
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1057 -17
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1079 -14
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +9 -1
- package/dist-lib/lib/cart-lock.functions.d.ts +1057 -17
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +11506 -66
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +3138 -18
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.d.ts +12552 -72
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/cron/index.d.ts +5 -0
- package/dist-lib/lib/cron/index.d.ts.map +1 -0
- package/dist-lib/lib/cron/index.js +4 -0
- package/dist-lib/lib/cron/mirror-floriday-orders.d.ts +4 -0
- package/dist-lib/lib/cron/mirror-floriday-orders.d.ts.map +1 -0
- package/dist-lib/lib/cron/mirror-floriday-orders.js +23 -0
- package/dist-lib/lib/cron/replan-carts.d.ts +4 -0
- package/dist-lib/lib/cron/replan-carts.d.ts.map +1 -0
- package/dist-lib/lib/cron/replan-carts.js +18 -0
- package/dist-lib/lib/cron/sync-salesorders.d.ts +4 -0
- package/dist-lib/lib/cron/sync-salesorders.d.ts.map +1 -0
- package/dist-lib/lib/cron/sync-salesorders.js +18 -0
- package/dist-lib/lib/cron/sync-tradeitems.d.ts +4 -0
- package/dist-lib/lib/cron/sync-tradeitems.d.ts.map +1 -0
- package/dist-lib/lib/cron/sync-tradeitems.js +18 -0
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +3138 -18
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +1057 -17
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts +1057 -17
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +7322 -42
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +5230 -30
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-buffers.functions.d.ts +3138 -18
- package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +4184 -24
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.d.ts +5230 -30
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +1057 -17
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/package.json +24 -2
|
@@ -297,6 +297,57 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
297
297
|
referencedColumns: ["id"];
|
|
298
298
|
}];
|
|
299
299
|
};
|
|
300
|
+
ai_call_log: {
|
|
301
|
+
Row: {
|
|
302
|
+
consumer_module_id: string;
|
|
303
|
+
cost_usd: number | null;
|
|
304
|
+
created_at: string;
|
|
305
|
+
created_by: string | null;
|
|
306
|
+
duration_ms: number | null;
|
|
307
|
+
error_code: string | null;
|
|
308
|
+
error_message: string | null;
|
|
309
|
+
id: string;
|
|
310
|
+
input_tokens: number;
|
|
311
|
+
model_slug: string | null;
|
|
312
|
+
output_tokens: number;
|
|
313
|
+
provider_slug: string | null;
|
|
314
|
+
status: string;
|
|
315
|
+
total_tokens: number;
|
|
316
|
+
};
|
|
317
|
+
Insert: {
|
|
318
|
+
consumer_module_id: string;
|
|
319
|
+
cost_usd?: number | null;
|
|
320
|
+
created_at?: string;
|
|
321
|
+
created_by?: string | null;
|
|
322
|
+
duration_ms?: number | null;
|
|
323
|
+
error_code?: string | null;
|
|
324
|
+
error_message?: string | null;
|
|
325
|
+
id?: string;
|
|
326
|
+
input_tokens?: number;
|
|
327
|
+
model_slug?: string | null;
|
|
328
|
+
output_tokens?: number;
|
|
329
|
+
provider_slug?: string | null;
|
|
330
|
+
status: string;
|
|
331
|
+
total_tokens?: number;
|
|
332
|
+
};
|
|
333
|
+
Update: {
|
|
334
|
+
consumer_module_id?: string;
|
|
335
|
+
cost_usd?: number | null;
|
|
336
|
+
created_at?: string;
|
|
337
|
+
created_by?: string | null;
|
|
338
|
+
duration_ms?: number | null;
|
|
339
|
+
error_code?: string | null;
|
|
340
|
+
error_message?: string | null;
|
|
341
|
+
id?: string;
|
|
342
|
+
input_tokens?: number;
|
|
343
|
+
model_slug?: string | null;
|
|
344
|
+
output_tokens?: number;
|
|
345
|
+
provider_slug?: string | null;
|
|
346
|
+
status?: string;
|
|
347
|
+
total_tokens?: number;
|
|
348
|
+
};
|
|
349
|
+
Relationships: [];
|
|
350
|
+
};
|
|
300
351
|
ai_credentials: {
|
|
301
352
|
Row: {
|
|
302
353
|
active: boolean;
|
|
@@ -333,6 +384,36 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
333
384
|
referencedColumns: ["id"];
|
|
334
385
|
}];
|
|
335
386
|
};
|
|
387
|
+
ai_goals: {
|
|
388
|
+
Row: {
|
|
389
|
+
active: boolean;
|
|
390
|
+
created_at: string;
|
|
391
|
+
description: string | null;
|
|
392
|
+
key: string;
|
|
393
|
+
label: string;
|
|
394
|
+
sort_order: number;
|
|
395
|
+
updated_at: string;
|
|
396
|
+
};
|
|
397
|
+
Insert: {
|
|
398
|
+
active?: boolean;
|
|
399
|
+
created_at?: string;
|
|
400
|
+
description?: string | null;
|
|
401
|
+
key: string;
|
|
402
|
+
label: string;
|
|
403
|
+
sort_order?: number;
|
|
404
|
+
updated_at?: string;
|
|
405
|
+
};
|
|
406
|
+
Update: {
|
|
407
|
+
active?: boolean;
|
|
408
|
+
created_at?: string;
|
|
409
|
+
description?: string | null;
|
|
410
|
+
key?: string;
|
|
411
|
+
label?: string;
|
|
412
|
+
sort_order?: number;
|
|
413
|
+
updated_at?: string;
|
|
414
|
+
};
|
|
415
|
+
Relationships: [];
|
|
416
|
+
};
|
|
336
417
|
ai_model_pricing: {
|
|
337
418
|
Row: {
|
|
338
419
|
created_at: string;
|
|
@@ -6477,6 +6558,285 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
6477
6558
|
};
|
|
6478
6559
|
Relationships: [];
|
|
6479
6560
|
};
|
|
6561
|
+
logistics_capacity_events: {
|
|
6562
|
+
Row: {
|
|
6563
|
+
available_carts: number;
|
|
6564
|
+
created_at: string;
|
|
6565
|
+
id: string;
|
|
6566
|
+
measures: import("../integrations/supabase/types").Json;
|
|
6567
|
+
note: string | null;
|
|
6568
|
+
outcome: string;
|
|
6569
|
+
required_carts: number;
|
|
6570
|
+
reserve_minutes: number;
|
|
6571
|
+
shortage_carts: number;
|
|
6572
|
+
status: string;
|
|
6573
|
+
user_id: string;
|
|
6574
|
+
};
|
|
6575
|
+
Insert: {
|
|
6576
|
+
available_carts?: number;
|
|
6577
|
+
created_at?: string;
|
|
6578
|
+
id?: string;
|
|
6579
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
6580
|
+
note?: string | null;
|
|
6581
|
+
outcome?: string;
|
|
6582
|
+
required_carts?: number;
|
|
6583
|
+
reserve_minutes?: number;
|
|
6584
|
+
shortage_carts?: number;
|
|
6585
|
+
status: string;
|
|
6586
|
+
user_id: string;
|
|
6587
|
+
};
|
|
6588
|
+
Update: {
|
|
6589
|
+
available_carts?: number;
|
|
6590
|
+
created_at?: string;
|
|
6591
|
+
id?: string;
|
|
6592
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
6593
|
+
note?: string | null;
|
|
6594
|
+
outcome?: string;
|
|
6595
|
+
required_carts?: number;
|
|
6596
|
+
reserve_minutes?: number;
|
|
6597
|
+
shortage_carts?: number;
|
|
6598
|
+
status?: string;
|
|
6599
|
+
user_id?: string;
|
|
6600
|
+
};
|
|
6601
|
+
Relationships: [];
|
|
6602
|
+
};
|
|
6603
|
+
logistics_capacity_settings: {
|
|
6604
|
+
Row: {
|
|
6605
|
+
created_at: string;
|
|
6606
|
+
settings: import("../integrations/supabase/types").Json;
|
|
6607
|
+
updated_at: string;
|
|
6608
|
+
user_id: string;
|
|
6609
|
+
};
|
|
6610
|
+
Insert: {
|
|
6611
|
+
created_at?: string;
|
|
6612
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
6613
|
+
updated_at?: string;
|
|
6614
|
+
user_id: string;
|
|
6615
|
+
};
|
|
6616
|
+
Update: {
|
|
6617
|
+
created_at?: string;
|
|
6618
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
6619
|
+
updated_at?: string;
|
|
6620
|
+
user_id?: string;
|
|
6621
|
+
};
|
|
6622
|
+
Relationships: [];
|
|
6623
|
+
};
|
|
6624
|
+
logistics_decisions: {
|
|
6625
|
+
Row: {
|
|
6626
|
+
created_at: string;
|
|
6627
|
+
explanation: string | null;
|
|
6628
|
+
id: string;
|
|
6629
|
+
input_snapshot: import("../integrations/supabase/types").Json;
|
|
6630
|
+
result: import("../integrations/supabase/types").Json;
|
|
6631
|
+
slot: string;
|
|
6632
|
+
strategy_id: string | null;
|
|
6633
|
+
subject_id: string;
|
|
6634
|
+
subject_type: string;
|
|
6635
|
+
user_id: string;
|
|
6636
|
+
};
|
|
6637
|
+
Insert: {
|
|
6638
|
+
created_at?: string;
|
|
6639
|
+
explanation?: string | null;
|
|
6640
|
+
id?: string;
|
|
6641
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
6642
|
+
result?: import("../integrations/supabase/types").Json;
|
|
6643
|
+
slot: string;
|
|
6644
|
+
strategy_id?: string | null;
|
|
6645
|
+
subject_id: string;
|
|
6646
|
+
subject_type: string;
|
|
6647
|
+
user_id: string;
|
|
6648
|
+
};
|
|
6649
|
+
Update: {
|
|
6650
|
+
created_at?: string;
|
|
6651
|
+
explanation?: string | null;
|
|
6652
|
+
id?: string;
|
|
6653
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
6654
|
+
result?: import("../integrations/supabase/types").Json;
|
|
6655
|
+
slot?: string;
|
|
6656
|
+
strategy_id?: string | null;
|
|
6657
|
+
subject_id?: string;
|
|
6658
|
+
subject_type?: string;
|
|
6659
|
+
user_id?: string;
|
|
6660
|
+
};
|
|
6661
|
+
Relationships: [{
|
|
6662
|
+
foreignKeyName: "logistics_decisions_strategy_id_fkey";
|
|
6663
|
+
columns: ["strategy_id"];
|
|
6664
|
+
isOneToOne: false;
|
|
6665
|
+
referencedRelation: "logistics_strategies";
|
|
6666
|
+
referencedColumns: ["id"];
|
|
6667
|
+
}];
|
|
6668
|
+
};
|
|
6669
|
+
logistics_formulas: {
|
|
6670
|
+
Row: {
|
|
6671
|
+
created_at: string;
|
|
6672
|
+
expression: string;
|
|
6673
|
+
id: string;
|
|
6674
|
+
notes: string | null;
|
|
6675
|
+
slot: string;
|
|
6676
|
+
strategy_id: string;
|
|
6677
|
+
updated_at: string;
|
|
6678
|
+
user_id: string;
|
|
6679
|
+
version: number;
|
|
6680
|
+
};
|
|
6681
|
+
Insert: {
|
|
6682
|
+
created_at?: string;
|
|
6683
|
+
expression?: string;
|
|
6684
|
+
id?: string;
|
|
6685
|
+
notes?: string | null;
|
|
6686
|
+
slot: string;
|
|
6687
|
+
strategy_id: string;
|
|
6688
|
+
updated_at?: string;
|
|
6689
|
+
user_id: string;
|
|
6690
|
+
version?: number;
|
|
6691
|
+
};
|
|
6692
|
+
Update: {
|
|
6693
|
+
created_at?: string;
|
|
6694
|
+
expression?: string;
|
|
6695
|
+
id?: string;
|
|
6696
|
+
notes?: string | null;
|
|
6697
|
+
slot?: string;
|
|
6698
|
+
strategy_id?: string;
|
|
6699
|
+
updated_at?: string;
|
|
6700
|
+
user_id?: string;
|
|
6701
|
+
version?: number;
|
|
6702
|
+
};
|
|
6703
|
+
Relationships: [{
|
|
6704
|
+
foreignKeyName: "logistics_formulas_strategy_id_fkey";
|
|
6705
|
+
columns: ["strategy_id"];
|
|
6706
|
+
isOneToOne: false;
|
|
6707
|
+
referencedRelation: "logistics_strategies";
|
|
6708
|
+
referencedColumns: ["id"];
|
|
6709
|
+
}];
|
|
6710
|
+
};
|
|
6711
|
+
logistics_strategies: {
|
|
6712
|
+
Row: {
|
|
6713
|
+
color: string;
|
|
6714
|
+
created_at: string;
|
|
6715
|
+
description: string | null;
|
|
6716
|
+
id: string;
|
|
6717
|
+
is_active: boolean;
|
|
6718
|
+
name: string;
|
|
6719
|
+
priority: number;
|
|
6720
|
+
updated_at: string;
|
|
6721
|
+
updated_by: string | null;
|
|
6722
|
+
user_id: string;
|
|
6723
|
+
version: number;
|
|
6724
|
+
};
|
|
6725
|
+
Insert: {
|
|
6726
|
+
color?: string;
|
|
6727
|
+
created_at?: string;
|
|
6728
|
+
description?: string | null;
|
|
6729
|
+
id?: string;
|
|
6730
|
+
is_active?: boolean;
|
|
6731
|
+
name: string;
|
|
6732
|
+
priority?: number;
|
|
6733
|
+
updated_at?: string;
|
|
6734
|
+
updated_by?: string | null;
|
|
6735
|
+
user_id: string;
|
|
6736
|
+
version?: number;
|
|
6737
|
+
};
|
|
6738
|
+
Update: {
|
|
6739
|
+
color?: string;
|
|
6740
|
+
created_at?: string;
|
|
6741
|
+
description?: string | null;
|
|
6742
|
+
id?: string;
|
|
6743
|
+
is_active?: boolean;
|
|
6744
|
+
name?: string;
|
|
6745
|
+
priority?: number;
|
|
6746
|
+
updated_at?: string;
|
|
6747
|
+
updated_by?: string | null;
|
|
6748
|
+
user_id?: string;
|
|
6749
|
+
version?: number;
|
|
6750
|
+
};
|
|
6751
|
+
Relationships: [];
|
|
6752
|
+
};
|
|
6753
|
+
logistics_strategy_schedules: {
|
|
6754
|
+
Row: {
|
|
6755
|
+
condition_expression: string | null;
|
|
6756
|
+
created_at: string;
|
|
6757
|
+
end_date: string | null;
|
|
6758
|
+
id: string;
|
|
6759
|
+
is_enabled: boolean;
|
|
6760
|
+
priority: number;
|
|
6761
|
+
rule_type: string;
|
|
6762
|
+
start_date: string | null;
|
|
6763
|
+
strategy_id: string;
|
|
6764
|
+
updated_at: string;
|
|
6765
|
+
user_id: string;
|
|
6766
|
+
};
|
|
6767
|
+
Insert: {
|
|
6768
|
+
condition_expression?: string | null;
|
|
6769
|
+
created_at?: string;
|
|
6770
|
+
end_date?: string | null;
|
|
6771
|
+
id?: string;
|
|
6772
|
+
is_enabled?: boolean;
|
|
6773
|
+
priority?: number;
|
|
6774
|
+
rule_type: string;
|
|
6775
|
+
start_date?: string | null;
|
|
6776
|
+
strategy_id: string;
|
|
6777
|
+
updated_at?: string;
|
|
6778
|
+
user_id: string;
|
|
6779
|
+
};
|
|
6780
|
+
Update: {
|
|
6781
|
+
condition_expression?: string | null;
|
|
6782
|
+
created_at?: string;
|
|
6783
|
+
end_date?: string | null;
|
|
6784
|
+
id?: string;
|
|
6785
|
+
is_enabled?: boolean;
|
|
6786
|
+
priority?: number;
|
|
6787
|
+
rule_type?: string;
|
|
6788
|
+
start_date?: string | null;
|
|
6789
|
+
strategy_id?: string;
|
|
6790
|
+
updated_at?: string;
|
|
6791
|
+
user_id?: string;
|
|
6792
|
+
};
|
|
6793
|
+
Relationships: [{
|
|
6794
|
+
foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
|
|
6795
|
+
columns: ["strategy_id"];
|
|
6796
|
+
isOneToOne: false;
|
|
6797
|
+
referencedRelation: "logistics_strategies";
|
|
6798
|
+
referencedColumns: ["id"];
|
|
6799
|
+
}];
|
|
6800
|
+
};
|
|
6801
|
+
logistics_variables: {
|
|
6802
|
+
Row: {
|
|
6803
|
+
created_at: string;
|
|
6804
|
+
default_value: string | null;
|
|
6805
|
+
description: string | null;
|
|
6806
|
+
id: string;
|
|
6807
|
+
is_builtin: boolean;
|
|
6808
|
+
key: string;
|
|
6809
|
+
label: string;
|
|
6810
|
+
updated_at: string;
|
|
6811
|
+
user_id: string;
|
|
6812
|
+
value_type: string;
|
|
6813
|
+
};
|
|
6814
|
+
Insert: {
|
|
6815
|
+
created_at?: string;
|
|
6816
|
+
default_value?: string | null;
|
|
6817
|
+
description?: string | null;
|
|
6818
|
+
id?: string;
|
|
6819
|
+
is_builtin?: boolean;
|
|
6820
|
+
key: string;
|
|
6821
|
+
label: string;
|
|
6822
|
+
updated_at?: string;
|
|
6823
|
+
user_id: string;
|
|
6824
|
+
value_type: string;
|
|
6825
|
+
};
|
|
6826
|
+
Update: {
|
|
6827
|
+
created_at?: string;
|
|
6828
|
+
default_value?: string | null;
|
|
6829
|
+
description?: string | null;
|
|
6830
|
+
id?: string;
|
|
6831
|
+
is_builtin?: boolean;
|
|
6832
|
+
key?: string;
|
|
6833
|
+
label?: string;
|
|
6834
|
+
updated_at?: string;
|
|
6835
|
+
user_id?: string;
|
|
6836
|
+
value_type?: string;
|
|
6837
|
+
};
|
|
6838
|
+
Relationships: [];
|
|
6839
|
+
};
|
|
6480
6840
|
mailbox_messages: {
|
|
6481
6841
|
Row: {
|
|
6482
6842
|
body_html: string | null;
|
|
@@ -8250,6 +8610,138 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
8250
8610
|
};
|
|
8251
8611
|
Relationships: [];
|
|
8252
8612
|
};
|
|
8613
|
+
planning_item_assistants: {
|
|
8614
|
+
Row: {
|
|
8615
|
+
created_at: string;
|
|
8616
|
+
created_by: string | null;
|
|
8617
|
+
monteur_id: string;
|
|
8618
|
+
planning_item_id: string;
|
|
8619
|
+
};
|
|
8620
|
+
Insert: {
|
|
8621
|
+
created_at?: string;
|
|
8622
|
+
created_by?: string | null;
|
|
8623
|
+
monteur_id: string;
|
|
8624
|
+
planning_item_id: string;
|
|
8625
|
+
};
|
|
8626
|
+
Update: {
|
|
8627
|
+
created_at?: string;
|
|
8628
|
+
created_by?: string | null;
|
|
8629
|
+
monteur_id?: string;
|
|
8630
|
+
planning_item_id?: string;
|
|
8631
|
+
};
|
|
8632
|
+
Relationships: [{
|
|
8633
|
+
foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
|
|
8634
|
+
columns: ["planning_item_id"];
|
|
8635
|
+
isOneToOne: false;
|
|
8636
|
+
referencedRelation: "planning_items";
|
|
8637
|
+
referencedColumns: ["id"];
|
|
8638
|
+
}];
|
|
8639
|
+
};
|
|
8640
|
+
planning_items: {
|
|
8641
|
+
Row: {
|
|
8642
|
+
assigned_monteur_id: string;
|
|
8643
|
+
created_at: string;
|
|
8644
|
+
created_by: string | null;
|
|
8645
|
+
end_at: string;
|
|
8646
|
+
id: string;
|
|
8647
|
+
notes: string | null;
|
|
8648
|
+
start_at: string;
|
|
8649
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8650
|
+
updated_at: string;
|
|
8651
|
+
werkbon_id: string;
|
|
8652
|
+
};
|
|
8653
|
+
Insert: {
|
|
8654
|
+
assigned_monteur_id: string;
|
|
8655
|
+
created_at?: string;
|
|
8656
|
+
created_by?: string | null;
|
|
8657
|
+
end_at: string;
|
|
8658
|
+
id?: string;
|
|
8659
|
+
notes?: string | null;
|
|
8660
|
+
start_at: string;
|
|
8661
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8662
|
+
updated_at?: string;
|
|
8663
|
+
werkbon_id: string;
|
|
8664
|
+
};
|
|
8665
|
+
Update: {
|
|
8666
|
+
assigned_monteur_id?: string;
|
|
8667
|
+
created_at?: string;
|
|
8668
|
+
created_by?: string | null;
|
|
8669
|
+
end_at?: string;
|
|
8670
|
+
id?: string;
|
|
8671
|
+
notes?: string | null;
|
|
8672
|
+
start_at?: string;
|
|
8673
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
8674
|
+
updated_at?: string;
|
|
8675
|
+
werkbon_id?: string;
|
|
8676
|
+
};
|
|
8677
|
+
Relationships: [{
|
|
8678
|
+
foreignKeyName: "planning_items_werkbon_id_fkey";
|
|
8679
|
+
columns: ["werkbon_id"];
|
|
8680
|
+
isOneToOne: false;
|
|
8681
|
+
referencedRelation: "werkbonnen";
|
|
8682
|
+
referencedColumns: ["id"];
|
|
8683
|
+
}];
|
|
8684
|
+
};
|
|
8685
|
+
product_bom_items: {
|
|
8686
|
+
Row: {
|
|
8687
|
+
component_product_id: string | null;
|
|
8688
|
+
component_trade_item_floriday_id: string | null;
|
|
8689
|
+
created_at: string;
|
|
8690
|
+
id: string;
|
|
8691
|
+
notes: string | null;
|
|
8692
|
+
packing_configuration_id: string | null;
|
|
8693
|
+
parent_product_id: string | null;
|
|
8694
|
+
parent_trade_item_floriday_id: string | null;
|
|
8695
|
+
quantity: number;
|
|
8696
|
+
sort_order: number;
|
|
8697
|
+
tenant_id: string;
|
|
8698
|
+
unit: string;
|
|
8699
|
+
updated_at: string;
|
|
8700
|
+
};
|
|
8701
|
+
Insert: {
|
|
8702
|
+
component_product_id?: string | null;
|
|
8703
|
+
component_trade_item_floriday_id?: string | null;
|
|
8704
|
+
created_at?: string;
|
|
8705
|
+
id?: string;
|
|
8706
|
+
notes?: string | null;
|
|
8707
|
+
packing_configuration_id?: string | null;
|
|
8708
|
+
parent_product_id?: string | null;
|
|
8709
|
+
parent_trade_item_floriday_id?: string | null;
|
|
8710
|
+
quantity?: number;
|
|
8711
|
+
sort_order?: number;
|
|
8712
|
+
tenant_id: string;
|
|
8713
|
+
unit?: string;
|
|
8714
|
+
updated_at?: string;
|
|
8715
|
+
};
|
|
8716
|
+
Update: {
|
|
8717
|
+
component_product_id?: string | null;
|
|
8718
|
+
component_trade_item_floriday_id?: string | null;
|
|
8719
|
+
created_at?: string;
|
|
8720
|
+
id?: string;
|
|
8721
|
+
notes?: string | null;
|
|
8722
|
+
packing_configuration_id?: string | null;
|
|
8723
|
+
parent_product_id?: string | null;
|
|
8724
|
+
parent_trade_item_floriday_id?: string | null;
|
|
8725
|
+
quantity?: number;
|
|
8726
|
+
sort_order?: number;
|
|
8727
|
+
tenant_id?: string;
|
|
8728
|
+
unit?: string;
|
|
8729
|
+
updated_at?: string;
|
|
8730
|
+
};
|
|
8731
|
+
Relationships: [{
|
|
8732
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
8733
|
+
columns: ["component_product_id"];
|
|
8734
|
+
isOneToOne: false;
|
|
8735
|
+
referencedRelation: "products";
|
|
8736
|
+
referencedColumns: ["id"];
|
|
8737
|
+
}, {
|
|
8738
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
8739
|
+
columns: ["parent_product_id"];
|
|
8740
|
+
isOneToOne: false;
|
|
8741
|
+
referencedRelation: "products";
|
|
8742
|
+
referencedColumns: ["id"];
|
|
8743
|
+
}];
|
|
8744
|
+
};
|
|
8253
8745
|
product_categories: {
|
|
8254
8746
|
Row: {
|
|
8255
8747
|
color: string;
|
|
@@ -8355,6 +8847,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
8355
8847
|
id: string;
|
|
8356
8848
|
product_group_id: string;
|
|
8357
8849
|
quantity: number;
|
|
8850
|
+
sort_order: number;
|
|
8358
8851
|
trade_item_id: string;
|
|
8359
8852
|
};
|
|
8360
8853
|
Insert: {
|
|
@@ -8362,6 +8855,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
8362
8855
|
id?: string;
|
|
8363
8856
|
product_group_id: string;
|
|
8364
8857
|
quantity?: number;
|
|
8858
|
+
sort_order?: number;
|
|
8365
8859
|
trade_item_id: string;
|
|
8366
8860
|
};
|
|
8367
8861
|
Update: {
|
|
@@ -8369,6 +8863,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
8369
8863
|
id?: string;
|
|
8370
8864
|
product_group_id?: string;
|
|
8371
8865
|
quantity?: number;
|
|
8866
|
+
sort_order?: number;
|
|
8372
8867
|
trade_item_id?: string;
|
|
8373
8868
|
};
|
|
8374
8869
|
Relationships: [{
|
|
@@ -8383,6 +8878,8 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
8383
8878
|
Row: {
|
|
8384
8879
|
created_at: string;
|
|
8385
8880
|
description: string | null;
|
|
8881
|
+
head_product_id: string | null;
|
|
8882
|
+
head_trade_item_floriday_id: string | null;
|
|
8386
8883
|
id: string;
|
|
8387
8884
|
is_active: boolean;
|
|
8388
8885
|
name: string;
|
|
@@ -8392,6 +8889,8 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
8392
8889
|
Insert: {
|
|
8393
8890
|
created_at?: string;
|
|
8394
8891
|
description?: string | null;
|
|
8892
|
+
head_product_id?: string | null;
|
|
8893
|
+
head_trade_item_floriday_id?: string | null;
|
|
8395
8894
|
id?: string;
|
|
8396
8895
|
is_active?: boolean;
|
|
8397
8896
|
name: string;
|
|
@@ -8401,24 +8900,134 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
8401
8900
|
Update: {
|
|
8402
8901
|
created_at?: string;
|
|
8403
8902
|
description?: string | null;
|
|
8903
|
+
head_product_id?: string | null;
|
|
8904
|
+
head_trade_item_floriday_id?: string | null;
|
|
8404
8905
|
id?: string;
|
|
8405
8906
|
is_active?: boolean;
|
|
8406
8907
|
name?: string;
|
|
8407
8908
|
tenant_id?: string;
|
|
8408
8909
|
updated_at?: string;
|
|
8409
8910
|
};
|
|
8911
|
+
Relationships: [{
|
|
8912
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8913
|
+
columns: ["head_product_id"];
|
|
8914
|
+
isOneToOne: false;
|
|
8915
|
+
referencedRelation: "products";
|
|
8916
|
+
referencedColumns: ["id"];
|
|
8917
|
+
}];
|
|
8918
|
+
};
|
|
8919
|
+
product_load_settings: {
|
|
8920
|
+
Row: {
|
|
8921
|
+
created_at: string;
|
|
8922
|
+
id: string;
|
|
8923
|
+
is_package: boolean;
|
|
8924
|
+
label: string | null;
|
|
8925
|
+
layers_per_load_carrier: number | null;
|
|
8926
|
+
load_carrier: string | null;
|
|
8927
|
+
package_id: string | null;
|
|
8928
|
+
package_label: string | null;
|
|
8929
|
+
packages_per_layer: number | null;
|
|
8930
|
+
packing_configuration_id: string;
|
|
8931
|
+
product_id: string | null;
|
|
8932
|
+
tenant_id: string;
|
|
8933
|
+
trade_item_floriday_id: string | null;
|
|
8934
|
+
units_per_package: number | null;
|
|
8935
|
+
updated_at: string;
|
|
8936
|
+
};
|
|
8937
|
+
Insert: {
|
|
8938
|
+
created_at?: string;
|
|
8939
|
+
id?: string;
|
|
8940
|
+
is_package?: boolean;
|
|
8941
|
+
label?: string | null;
|
|
8942
|
+
layers_per_load_carrier?: number | null;
|
|
8943
|
+
load_carrier?: string | null;
|
|
8944
|
+
package_id?: string | null;
|
|
8945
|
+
package_label?: string | null;
|
|
8946
|
+
packages_per_layer?: number | null;
|
|
8947
|
+
packing_configuration_id?: string;
|
|
8948
|
+
product_id?: string | null;
|
|
8949
|
+
tenant_id: string;
|
|
8950
|
+
trade_item_floriday_id?: string | null;
|
|
8951
|
+
units_per_package?: number | null;
|
|
8952
|
+
updated_at?: string;
|
|
8953
|
+
};
|
|
8954
|
+
Update: {
|
|
8955
|
+
created_at?: string;
|
|
8956
|
+
id?: string;
|
|
8957
|
+
is_package?: boolean;
|
|
8958
|
+
label?: string | null;
|
|
8959
|
+
layers_per_load_carrier?: number | null;
|
|
8960
|
+
load_carrier?: string | null;
|
|
8961
|
+
package_id?: string | null;
|
|
8962
|
+
package_label?: string | null;
|
|
8963
|
+
packages_per_layer?: number | null;
|
|
8964
|
+
packing_configuration_id?: string;
|
|
8965
|
+
product_id?: string | null;
|
|
8966
|
+
tenant_id?: string;
|
|
8967
|
+
trade_item_floriday_id?: string | null;
|
|
8968
|
+
units_per_package?: number | null;
|
|
8969
|
+
updated_at?: string;
|
|
8970
|
+
};
|
|
8971
|
+
Relationships: [{
|
|
8972
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
8973
|
+
columns: ["package_id"];
|
|
8974
|
+
isOneToOne: false;
|
|
8975
|
+
referencedRelation: "packages";
|
|
8976
|
+
referencedColumns: ["id"];
|
|
8977
|
+
}, {
|
|
8978
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
8979
|
+
columns: ["product_id"];
|
|
8980
|
+
isOneToOne: false;
|
|
8981
|
+
referencedRelation: "products";
|
|
8982
|
+
referencedColumns: ["id"];
|
|
8983
|
+
}];
|
|
8984
|
+
};
|
|
8985
|
+
product_merge_log: {
|
|
8986
|
+
Row: {
|
|
8987
|
+
canonical_product_id: string | null;
|
|
8988
|
+
id: string;
|
|
8989
|
+
merged_at: string;
|
|
8990
|
+
merged_from_id: string;
|
|
8991
|
+
notes: string | null;
|
|
8992
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
8993
|
+
source_table: string;
|
|
8994
|
+
status: string;
|
|
8995
|
+
};
|
|
8996
|
+
Insert: {
|
|
8997
|
+
canonical_product_id?: string | null;
|
|
8998
|
+
id?: string;
|
|
8999
|
+
merged_at?: string;
|
|
9000
|
+
merged_from_id: string;
|
|
9001
|
+
notes?: string | null;
|
|
9002
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
9003
|
+
source_table: string;
|
|
9004
|
+
status?: string;
|
|
9005
|
+
};
|
|
9006
|
+
Update: {
|
|
9007
|
+
canonical_product_id?: string | null;
|
|
9008
|
+
id?: string;
|
|
9009
|
+
merged_at?: string;
|
|
9010
|
+
merged_from_id?: string;
|
|
9011
|
+
notes?: string | null;
|
|
9012
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
9013
|
+
source_table?: string;
|
|
9014
|
+
status?: string;
|
|
9015
|
+
};
|
|
8410
9016
|
Relationships: [];
|
|
8411
9017
|
};
|
|
8412
9018
|
products: {
|
|
8413
9019
|
Row: {
|
|
9020
|
+
article_number: string | null;
|
|
8414
9021
|
barcode: string | null;
|
|
8415
9022
|
batch: string;
|
|
8416
9023
|
crates_per_layer: number;
|
|
8417
9024
|
created_at: string;
|
|
8418
9025
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
9026
|
+
floriday_trade_item_id: string | null;
|
|
8419
9027
|
id: string;
|
|
8420
9028
|
image_url: string | null;
|
|
8421
9029
|
incoming_quantity: number;
|
|
9030
|
+
is_layer: boolean;
|
|
8422
9031
|
layers_per_cart: number;
|
|
8423
9032
|
location: string;
|
|
8424
9033
|
min_quantity: number;
|
|
@@ -8434,14 +9043,17 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
8434
9043
|
weight: string | null;
|
|
8435
9044
|
};
|
|
8436
9045
|
Insert: {
|
|
9046
|
+
article_number?: string | null;
|
|
8437
9047
|
barcode?: string | null;
|
|
8438
9048
|
batch: string;
|
|
8439
9049
|
crates_per_layer?: number;
|
|
8440
9050
|
created_at?: string;
|
|
8441
9051
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
9052
|
+
floriday_trade_item_id?: string | null;
|
|
8442
9053
|
id?: string;
|
|
8443
9054
|
image_url?: string | null;
|
|
8444
9055
|
incoming_quantity?: number;
|
|
9056
|
+
is_layer?: boolean;
|
|
8445
9057
|
layers_per_cart?: number;
|
|
8446
9058
|
location: string;
|
|
8447
9059
|
min_quantity?: number;
|
|
@@ -8457,14 +9069,17 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
8457
9069
|
weight?: string | null;
|
|
8458
9070
|
};
|
|
8459
9071
|
Update: {
|
|
9072
|
+
article_number?: string | null;
|
|
8460
9073
|
barcode?: string | null;
|
|
8461
9074
|
batch?: string;
|
|
8462
9075
|
crates_per_layer?: number;
|
|
8463
9076
|
created_at?: string;
|
|
8464
9077
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
9078
|
+
floriday_trade_item_id?: string | null;
|
|
8465
9079
|
id?: string;
|
|
8466
9080
|
image_url?: string | null;
|
|
8467
9081
|
incoming_quantity?: number;
|
|
9082
|
+
is_layer?: boolean;
|
|
8468
9083
|
layers_per_cart?: number;
|
|
8469
9084
|
location?: string;
|
|
8470
9085
|
min_quantity?: number;
|
|
@@ -8484,6 +9099,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
8484
9099
|
profiles: {
|
|
8485
9100
|
Row: {
|
|
8486
9101
|
address: string | null;
|
|
9102
|
+
avatar_url: string | null;
|
|
8487
9103
|
created_at: string;
|
|
8488
9104
|
display_name: string | null;
|
|
8489
9105
|
email: string | null;
|
|
@@ -8495,6 +9111,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
8495
9111
|
};
|
|
8496
9112
|
Insert: {
|
|
8497
9113
|
address?: string | null;
|
|
9114
|
+
avatar_url?: string | null;
|
|
8498
9115
|
created_at?: string;
|
|
8499
9116
|
display_name?: string | null;
|
|
8500
9117
|
email?: string | null;
|
|
@@ -8506,6 +9123,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
8506
9123
|
};
|
|
8507
9124
|
Update: {
|
|
8508
9125
|
address?: string | null;
|
|
9126
|
+
avatar_url?: string | null;
|
|
8509
9127
|
created_at?: string;
|
|
8510
9128
|
display_name?: string | null;
|
|
8511
9129
|
email?: string | null;
|
|
@@ -9372,6 +9990,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
9372
9990
|
order_source: string | null;
|
|
9373
9991
|
physical_after: number | null;
|
|
9374
9992
|
physical_before: number | null;
|
|
9993
|
+
production_batch_id: string | null;
|
|
9375
9994
|
qty_delta: number;
|
|
9376
9995
|
reason: string | null;
|
|
9377
9996
|
reserved_after: number | null;
|
|
@@ -9389,6 +10008,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
9389
10008
|
order_source?: string | null;
|
|
9390
10009
|
physical_after?: number | null;
|
|
9391
10010
|
physical_before?: number | null;
|
|
10011
|
+
production_batch_id?: string | null;
|
|
9392
10012
|
qty_delta: number;
|
|
9393
10013
|
reason?: string | null;
|
|
9394
10014
|
reserved_after?: number | null;
|
|
@@ -9406,6 +10026,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
9406
10026
|
order_source?: string | null;
|
|
9407
10027
|
physical_after?: number | null;
|
|
9408
10028
|
physical_before?: number | null;
|
|
10029
|
+
production_batch_id?: string | null;
|
|
9409
10030
|
qty_delta?: number;
|
|
9410
10031
|
reason?: string | null;
|
|
9411
10032
|
reserved_after?: number | null;
|
|
@@ -9732,6 +10353,48 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
9732
10353
|
};
|
|
9733
10354
|
Relationships: [];
|
|
9734
10355
|
};
|
|
10356
|
+
trade_item_prices: {
|
|
10357
|
+
Row: {
|
|
10358
|
+
created_at: string;
|
|
10359
|
+
currency: string;
|
|
10360
|
+
id: string;
|
|
10361
|
+
last_push_error: string | null;
|
|
10362
|
+
last_pushed_at: string | null;
|
|
10363
|
+
price_group_id: string | null;
|
|
10364
|
+
price_per_piece: number;
|
|
10365
|
+
supply_line_id: string | null;
|
|
10366
|
+
trade_item_key: string;
|
|
10367
|
+
updated_at: string;
|
|
10368
|
+
user_id: string;
|
|
10369
|
+
};
|
|
10370
|
+
Insert: {
|
|
10371
|
+
created_at?: string;
|
|
10372
|
+
currency?: string;
|
|
10373
|
+
id?: string;
|
|
10374
|
+
last_push_error?: string | null;
|
|
10375
|
+
last_pushed_at?: string | null;
|
|
10376
|
+
price_group_id?: string | null;
|
|
10377
|
+
price_per_piece: number;
|
|
10378
|
+
supply_line_id?: string | null;
|
|
10379
|
+
trade_item_key: string;
|
|
10380
|
+
updated_at?: string;
|
|
10381
|
+
user_id: string;
|
|
10382
|
+
};
|
|
10383
|
+
Update: {
|
|
10384
|
+
created_at?: string;
|
|
10385
|
+
currency?: string;
|
|
10386
|
+
id?: string;
|
|
10387
|
+
last_push_error?: string | null;
|
|
10388
|
+
last_pushed_at?: string | null;
|
|
10389
|
+
price_group_id?: string | null;
|
|
10390
|
+
price_per_piece?: number;
|
|
10391
|
+
supply_line_id?: string | null;
|
|
10392
|
+
trade_item_key?: string;
|
|
10393
|
+
updated_at?: string;
|
|
10394
|
+
user_id?: string;
|
|
10395
|
+
};
|
|
10396
|
+
Relationships: [];
|
|
10397
|
+
};
|
|
9735
10398
|
trade_item_stock: {
|
|
9736
10399
|
Row: {
|
|
9737
10400
|
connection_id: string;
|
|
@@ -10197,6 +10860,51 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
10197
10860
|
referencedColumns: ["id"];
|
|
10198
10861
|
}];
|
|
10199
10862
|
};
|
|
10863
|
+
twinfield_invoice_pdf_cache: {
|
|
10864
|
+
Row: {
|
|
10865
|
+
connection_id: string;
|
|
10866
|
+
created_at: string;
|
|
10867
|
+
fetched_at: string;
|
|
10868
|
+
id: string;
|
|
10869
|
+
invoice_number: string;
|
|
10870
|
+
last_accessed_at: string;
|
|
10871
|
+
object_path: string;
|
|
10872
|
+
office_code: string;
|
|
10873
|
+
size_bytes: number;
|
|
10874
|
+
updated_at: string;
|
|
10875
|
+
};
|
|
10876
|
+
Insert: {
|
|
10877
|
+
connection_id: string;
|
|
10878
|
+
created_at?: string;
|
|
10879
|
+
fetched_at?: string;
|
|
10880
|
+
id?: string;
|
|
10881
|
+
invoice_number: string;
|
|
10882
|
+
last_accessed_at?: string;
|
|
10883
|
+
object_path: string;
|
|
10884
|
+
office_code: string;
|
|
10885
|
+
size_bytes?: number;
|
|
10886
|
+
updated_at?: string;
|
|
10887
|
+
};
|
|
10888
|
+
Update: {
|
|
10889
|
+
connection_id?: string;
|
|
10890
|
+
created_at?: string;
|
|
10891
|
+
fetched_at?: string;
|
|
10892
|
+
id?: string;
|
|
10893
|
+
invoice_number?: string;
|
|
10894
|
+
last_accessed_at?: string;
|
|
10895
|
+
object_path?: string;
|
|
10896
|
+
office_code?: string;
|
|
10897
|
+
size_bytes?: number;
|
|
10898
|
+
updated_at?: string;
|
|
10899
|
+
};
|
|
10900
|
+
Relationships: [{
|
|
10901
|
+
foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
|
|
10902
|
+
columns: ["connection_id"];
|
|
10903
|
+
isOneToOne: false;
|
|
10904
|
+
referencedRelation: "twinfield_connections";
|
|
10905
|
+
referencedColumns: ["id"];
|
|
10906
|
+
}];
|
|
10907
|
+
};
|
|
10200
10908
|
twinfield_invoice_settings: {
|
|
10201
10909
|
Row: {
|
|
10202
10910
|
created_at: string;
|
|
@@ -10800,6 +11508,78 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
10800
11508
|
};
|
|
10801
11509
|
Relationships: [];
|
|
10802
11510
|
};
|
|
11511
|
+
werkbon_package_ai_rules: {
|
|
11512
|
+
Row: {
|
|
11513
|
+
active: boolean;
|
|
11514
|
+
case_sensitive: boolean;
|
|
11515
|
+
created_at: string;
|
|
11516
|
+
id: string;
|
|
11517
|
+
package_id: string;
|
|
11518
|
+
priority: number;
|
|
11519
|
+
rule_type: string;
|
|
11520
|
+
updated_at: string;
|
|
11521
|
+
value: string;
|
|
11522
|
+
};
|
|
11523
|
+
Insert: {
|
|
11524
|
+
active?: boolean;
|
|
11525
|
+
case_sensitive?: boolean;
|
|
11526
|
+
created_at?: string;
|
|
11527
|
+
id?: string;
|
|
11528
|
+
package_id: string;
|
|
11529
|
+
priority?: number;
|
|
11530
|
+
rule_type: string;
|
|
11531
|
+
updated_at?: string;
|
|
11532
|
+
value: string;
|
|
11533
|
+
};
|
|
11534
|
+
Update: {
|
|
11535
|
+
active?: boolean;
|
|
11536
|
+
case_sensitive?: boolean;
|
|
11537
|
+
created_at?: string;
|
|
11538
|
+
id?: string;
|
|
11539
|
+
package_id?: string;
|
|
11540
|
+
priority?: number;
|
|
11541
|
+
rule_type?: string;
|
|
11542
|
+
updated_at?: string;
|
|
11543
|
+
value?: string;
|
|
11544
|
+
};
|
|
11545
|
+
Relationships: [{
|
|
11546
|
+
foreignKeyName: "werkbon_package_ai_rules_package_id_fkey";
|
|
11547
|
+
columns: ["package_id"];
|
|
11548
|
+
isOneToOne: false;
|
|
11549
|
+
referencedRelation: "werkbon_packages";
|
|
11550
|
+
referencedColumns: ["id"];
|
|
11551
|
+
}];
|
|
11552
|
+
};
|
|
11553
|
+
werkbon_package_categories: {
|
|
11554
|
+
Row: {
|
|
11555
|
+
active: boolean;
|
|
11556
|
+
created_at: string;
|
|
11557
|
+
id: string;
|
|
11558
|
+
kleur: string | null;
|
|
11559
|
+
naam: string;
|
|
11560
|
+
sort_order: number;
|
|
11561
|
+
updated_at: string;
|
|
11562
|
+
};
|
|
11563
|
+
Insert: {
|
|
11564
|
+
active?: boolean;
|
|
11565
|
+
created_at?: string;
|
|
11566
|
+
id?: string;
|
|
11567
|
+
kleur?: string | null;
|
|
11568
|
+
naam: string;
|
|
11569
|
+
sort_order?: number;
|
|
11570
|
+
updated_at?: string;
|
|
11571
|
+
};
|
|
11572
|
+
Update: {
|
|
11573
|
+
active?: boolean;
|
|
11574
|
+
created_at?: string;
|
|
11575
|
+
id?: string;
|
|
11576
|
+
kleur?: string | null;
|
|
11577
|
+
naam?: string;
|
|
11578
|
+
sort_order?: number;
|
|
11579
|
+
updated_at?: string;
|
|
11580
|
+
};
|
|
11581
|
+
Relationships: [];
|
|
11582
|
+
};
|
|
10803
11583
|
werkbon_package_lines: {
|
|
10804
11584
|
Row: {
|
|
10805
11585
|
created_at: string;
|
|
@@ -10845,38 +11625,59 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
10845
11625
|
werkbon_packages: {
|
|
10846
11626
|
Row: {
|
|
10847
11627
|
active: boolean;
|
|
11628
|
+
ai_tags: string[];
|
|
11629
|
+
category_id: string | null;
|
|
10848
11630
|
code: string;
|
|
10849
11631
|
created_at: string;
|
|
10850
11632
|
default_quantity: number;
|
|
10851
11633
|
description: string | null;
|
|
11634
|
+
duration_minutes: number | null;
|
|
10852
11635
|
id: string;
|
|
11636
|
+
mandaat_type: string | null;
|
|
10853
11637
|
name: string;
|
|
11638
|
+
sort_order: number;
|
|
10854
11639
|
unit_price_cents: number;
|
|
10855
11640
|
updated_at: string;
|
|
10856
11641
|
};
|
|
10857
11642
|
Insert: {
|
|
10858
11643
|
active?: boolean;
|
|
11644
|
+
ai_tags?: string[];
|
|
11645
|
+
category_id?: string | null;
|
|
10859
11646
|
code: string;
|
|
10860
11647
|
created_at?: string;
|
|
10861
11648
|
default_quantity?: number;
|
|
10862
11649
|
description?: string | null;
|
|
11650
|
+
duration_minutes?: number | null;
|
|
10863
11651
|
id?: string;
|
|
11652
|
+
mandaat_type?: string | null;
|
|
10864
11653
|
name: string;
|
|
11654
|
+
sort_order?: number;
|
|
10865
11655
|
unit_price_cents?: number;
|
|
10866
11656
|
updated_at?: string;
|
|
10867
11657
|
};
|
|
10868
11658
|
Update: {
|
|
10869
11659
|
active?: boolean;
|
|
11660
|
+
ai_tags?: string[];
|
|
11661
|
+
category_id?: string | null;
|
|
10870
11662
|
code?: string;
|
|
10871
11663
|
created_at?: string;
|
|
10872
11664
|
default_quantity?: number;
|
|
10873
11665
|
description?: string | null;
|
|
11666
|
+
duration_minutes?: number | null;
|
|
10874
11667
|
id?: string;
|
|
11668
|
+
mandaat_type?: string | null;
|
|
10875
11669
|
name?: string;
|
|
11670
|
+
sort_order?: number;
|
|
10876
11671
|
unit_price_cents?: number;
|
|
10877
11672
|
updated_at?: string;
|
|
10878
11673
|
};
|
|
10879
|
-
Relationships: [
|
|
11674
|
+
Relationships: [{
|
|
11675
|
+
foreignKeyName: "werkbon_packages_category_id_fkey";
|
|
11676
|
+
columns: ["category_id"];
|
|
11677
|
+
isOneToOne: false;
|
|
11678
|
+
referencedRelation: "werkbon_package_categories";
|
|
11679
|
+
referencedColumns: ["id"];
|
|
11680
|
+
}];
|
|
10880
11681
|
};
|
|
10881
11682
|
werkbon_photos: {
|
|
10882
11683
|
Row: {
|
|
@@ -10964,7 +11765,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
10964
11765
|
scheduled_end_time: string | null;
|
|
10965
11766
|
scheduled_start_time: string | null;
|
|
10966
11767
|
sequence_number: number;
|
|
11768
|
+
source_email_meta: import("../integrations/supabase/types").Json | null;
|
|
11769
|
+
source_mailbox_message_id: string | null;
|
|
10967
11770
|
source_pdf_path: string | null;
|
|
11771
|
+
source_type: string;
|
|
10968
11772
|
status: string;
|
|
10969
11773
|
technician_id: string | null;
|
|
10970
11774
|
technician_notes: string | null;
|
|
@@ -10993,7 +11797,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
10993
11797
|
scheduled_end_time?: string | null;
|
|
10994
11798
|
scheduled_start_time?: string | null;
|
|
10995
11799
|
sequence_number: number;
|
|
11800
|
+
source_email_meta?: import("../integrations/supabase/types").Json | null;
|
|
11801
|
+
source_mailbox_message_id?: string | null;
|
|
10996
11802
|
source_pdf_path?: string | null;
|
|
11803
|
+
source_type?: string;
|
|
10997
11804
|
status?: string;
|
|
10998
11805
|
technician_id?: string | null;
|
|
10999
11806
|
technician_notes?: string | null;
|
|
@@ -11022,7 +11829,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
11022
11829
|
scheduled_end_time?: string | null;
|
|
11023
11830
|
scheduled_start_time?: string | null;
|
|
11024
11831
|
sequence_number?: number;
|
|
11832
|
+
source_email_meta?: import("../integrations/supabase/types").Json | null;
|
|
11833
|
+
source_mailbox_message_id?: string | null;
|
|
11025
11834
|
source_pdf_path?: string | null;
|
|
11835
|
+
source_type?: string;
|
|
11026
11836
|
status?: string;
|
|
11027
11837
|
technician_id?: string | null;
|
|
11028
11838
|
technician_notes?: string | null;
|
|
@@ -11039,10 +11849,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
11039
11849
|
referencedRelation: "werkbonnen";
|
|
11040
11850
|
referencedColumns: ["id"];
|
|
11041
11851
|
}, {
|
|
11042
|
-
foreignKeyName: "
|
|
11043
|
-
columns: ["
|
|
11852
|
+
foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
|
|
11853
|
+
columns: ["source_mailbox_message_id"];
|
|
11044
11854
|
isOneToOne: false;
|
|
11045
|
-
referencedRelation: "
|
|
11855
|
+
referencedRelation: "mailbox_messages";
|
|
11046
11856
|
referencedColumns: ["id"];
|
|
11047
11857
|
}];
|
|
11048
11858
|
};
|
|
@@ -11736,6 +12546,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
11736
12546
|
};
|
|
11737
12547
|
Returns: number;
|
|
11738
12548
|
};
|
|
12549
|
+
_migrate_rewrite_stock_key: {
|
|
12550
|
+
Args: {
|
|
12551
|
+
_from_key: string;
|
|
12552
|
+
_to_key: string;
|
|
12553
|
+
};
|
|
12554
|
+
Returns: undefined;
|
|
12555
|
+
};
|
|
11739
12556
|
afh_city_code: {
|
|
11740
12557
|
Args: {
|
|
11741
12558
|
_city: string;
|
|
@@ -11762,6 +12579,21 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
11762
12579
|
};
|
|
11763
12580
|
Returns: string;
|
|
11764
12581
|
};
|
|
12582
|
+
ai_usage_by_module: {
|
|
12583
|
+
Args: {
|
|
12584
|
+
_from: string;
|
|
12585
|
+
_to: string;
|
|
12586
|
+
};
|
|
12587
|
+
Returns: {
|
|
12588
|
+
calls: number;
|
|
12589
|
+
consumer_module_id: string;
|
|
12590
|
+
cost_usd: number;
|
|
12591
|
+
errors: number;
|
|
12592
|
+
input_tokens: number;
|
|
12593
|
+
output_tokens: number;
|
|
12594
|
+
total_tokens: number;
|
|
12595
|
+
}[];
|
|
12596
|
+
};
|
|
11765
12597
|
apply_stock_consumption: {
|
|
11766
12598
|
Args: {
|
|
11767
12599
|
p_order_id: string;
|
|
@@ -11819,6 +12651,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
11819
12651
|
processed_items: number;
|
|
11820
12652
|
}[];
|
|
11821
12653
|
};
|
|
12654
|
+
calculate_layer_stock: {
|
|
12655
|
+
Args: {
|
|
12656
|
+
p_product_id: string;
|
|
12657
|
+
};
|
|
12658
|
+
Returns: number;
|
|
12659
|
+
};
|
|
11822
12660
|
call_exact_route: {
|
|
11823
12661
|
Args: {
|
|
11824
12662
|
path: string;
|
|
@@ -11878,6 +12716,28 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
11878
12716
|
Args: never;
|
|
11879
12717
|
Returns: undefined;
|
|
11880
12718
|
};
|
|
12719
|
+
consume_bom_for_production: {
|
|
12720
|
+
Args: {
|
|
12721
|
+
p_connection_id: string;
|
|
12722
|
+
p_parent_id: string;
|
|
12723
|
+
p_parent_key: string;
|
|
12724
|
+
p_parent_kind: string;
|
|
12725
|
+
p_quantity: number;
|
|
12726
|
+
p_user_id: string;
|
|
12727
|
+
};
|
|
12728
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12729
|
+
} | {
|
|
12730
|
+
Args: {
|
|
12731
|
+
p_batch_id?: string;
|
|
12732
|
+
p_connection_id: string;
|
|
12733
|
+
p_parent_id: string;
|
|
12734
|
+
p_parent_key: string;
|
|
12735
|
+
p_parent_kind: string;
|
|
12736
|
+
p_quantity: number;
|
|
12737
|
+
p_user_id: string;
|
|
12738
|
+
};
|
|
12739
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12740
|
+
};
|
|
11881
12741
|
consume_floriday_rate_limit: {
|
|
11882
12742
|
Args: {
|
|
11883
12743
|
p_bucket: string;
|
|
@@ -11910,6 +12770,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
11910
12770
|
Args: never;
|
|
11911
12771
|
Returns: string;
|
|
11912
12772
|
};
|
|
12773
|
+
custom_access_token_hook: {
|
|
12774
|
+
Args: {
|
|
12775
|
+
event: import("../integrations/supabase/types").Json;
|
|
12776
|
+
};
|
|
12777
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12778
|
+
};
|
|
11913
12779
|
dashboard_alert_counts: {
|
|
11914
12780
|
Args: never;
|
|
11915
12781
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -11929,6 +12795,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
11929
12795
|
table_name: string;
|
|
11930
12796
|
}[];
|
|
11931
12797
|
};
|
|
12798
|
+
delete_samenstelling: {
|
|
12799
|
+
Args: {
|
|
12800
|
+
p_parent_id: string;
|
|
12801
|
+
p_parent_kind: string;
|
|
12802
|
+
};
|
|
12803
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12804
|
+
};
|
|
11932
12805
|
dispatch_carrier_signups_sql: {
|
|
11933
12806
|
Args: {
|
|
11934
12807
|
_catchup?: string;
|
|
@@ -12184,6 +13057,27 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
12184
13057
|
minutes_since_success: number;
|
|
12185
13058
|
}[];
|
|
12186
13059
|
};
|
|
13060
|
+
get_group_allocation_keys: {
|
|
13061
|
+
Args: {
|
|
13062
|
+
p_product_id: string;
|
|
13063
|
+
};
|
|
13064
|
+
Returns: {
|
|
13065
|
+
k: string;
|
|
13066
|
+
ord: number;
|
|
13067
|
+
}[];
|
|
13068
|
+
};
|
|
13069
|
+
get_group_head_key: {
|
|
13070
|
+
Args: {
|
|
13071
|
+
p_group_id: string;
|
|
13072
|
+
};
|
|
13073
|
+
Returns: string;
|
|
13074
|
+
};
|
|
13075
|
+
get_inventory_stock_for_key: {
|
|
13076
|
+
Args: {
|
|
13077
|
+
p_key: string;
|
|
13078
|
+
};
|
|
13079
|
+
Returns: number;
|
|
13080
|
+
};
|
|
12187
13081
|
get_offer_by_link_code: {
|
|
12188
13082
|
Args: {
|
|
12189
13083
|
p_code: string;
|
|
@@ -12214,6 +13108,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
12214
13108
|
};
|
|
12215
13109
|
Returns: string;
|
|
12216
13110
|
};
|
|
13111
|
+
get_product_group_available_stock: {
|
|
13112
|
+
Args: {
|
|
13113
|
+
p_group_id: string;
|
|
13114
|
+
};
|
|
13115
|
+
Returns: number;
|
|
13116
|
+
};
|
|
12217
13117
|
get_room_busy_windows: {
|
|
12218
13118
|
Args: {
|
|
12219
13119
|
p_from: string;
|
|
@@ -12278,12 +13178,35 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
12278
13178
|
};
|
|
12279
13179
|
Returns: boolean;
|
|
12280
13180
|
};
|
|
13181
|
+
jwt_has_role: {
|
|
13182
|
+
Args: {
|
|
13183
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
13184
|
+
};
|
|
13185
|
+
Returns: boolean;
|
|
13186
|
+
};
|
|
12281
13187
|
list_monteurs: {
|
|
12282
13188
|
Args: never;
|
|
12283
13189
|
Returns: {
|
|
13190
|
+
avatar_url: string;
|
|
12284
13191
|
display_name: string;
|
|
12285
13192
|
email: string;
|
|
12286
|
-
|
|
13193
|
+
id: string;
|
|
13194
|
+
}[];
|
|
13195
|
+
};
|
|
13196
|
+
list_my_planning_items: {
|
|
13197
|
+
Args: {
|
|
13198
|
+
_from: string;
|
|
13199
|
+
_to: string;
|
|
13200
|
+
};
|
|
13201
|
+
Returns: {
|
|
13202
|
+
assigned_monteur_id: string;
|
|
13203
|
+
end_at: string;
|
|
13204
|
+
id: string;
|
|
13205
|
+
notes: string;
|
|
13206
|
+
role: string;
|
|
13207
|
+
start_at: string;
|
|
13208
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
13209
|
+
werkbon_id: string;
|
|
12287
13210
|
}[];
|
|
12288
13211
|
};
|
|
12289
13212
|
local_effective_price: {
|
|
@@ -12302,6 +13225,22 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
12302
13225
|
source_id: string;
|
|
12303
13226
|
}[];
|
|
12304
13227
|
};
|
|
13228
|
+
log_ai_call: {
|
|
13229
|
+
Args: {
|
|
13230
|
+
_consumer_module_id: string;
|
|
13231
|
+
_cost_usd: number;
|
|
13232
|
+
_duration_ms: number;
|
|
13233
|
+
_error_code: string;
|
|
13234
|
+
_error_message: string;
|
|
13235
|
+
_input_tokens: number;
|
|
13236
|
+
_model_slug: string;
|
|
13237
|
+
_output_tokens: number;
|
|
13238
|
+
_provider_slug: string;
|
|
13239
|
+
_status: string;
|
|
13240
|
+
_total_tokens: number;
|
|
13241
|
+
};
|
|
13242
|
+
Returns: string;
|
|
13243
|
+
};
|
|
12305
13244
|
mark_offer_clicked: {
|
|
12306
13245
|
Args: {
|
|
12307
13246
|
p_code: string;
|
|
@@ -12314,12 +13253,32 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
12314
13253
|
};
|
|
12315
13254
|
Returns: undefined;
|
|
12316
13255
|
};
|
|
13256
|
+
mark_salesorder_controlled: {
|
|
13257
|
+
Args: {
|
|
13258
|
+
p_controlled: boolean;
|
|
13259
|
+
p_floriday_id: string;
|
|
13260
|
+
};
|
|
13261
|
+
Returns: undefined;
|
|
13262
|
+
};
|
|
12317
13263
|
mark_shipment_shipped: {
|
|
12318
13264
|
Args: {
|
|
12319
13265
|
p_shipment_id: string;
|
|
12320
13266
|
};
|
|
12321
13267
|
Returns: undefined;
|
|
12322
13268
|
};
|
|
13269
|
+
merge_products: {
|
|
13270
|
+
Args: {
|
|
13271
|
+
_canonical: string;
|
|
13272
|
+
_loser: string;
|
|
13273
|
+
};
|
|
13274
|
+
Returns: undefined;
|
|
13275
|
+
};
|
|
13276
|
+
next_manufacture_partij: {
|
|
13277
|
+
Args: {
|
|
13278
|
+
_tenant_id: string;
|
|
13279
|
+
};
|
|
13280
|
+
Returns: string;
|
|
13281
|
+
};
|
|
12323
13282
|
next_order_number: {
|
|
12324
13283
|
Args: {
|
|
12325
13284
|
p_prefix: string;
|
|
@@ -12393,6 +13352,15 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
12393
13352
|
};
|
|
12394
13353
|
Returns: undefined;
|
|
12395
13354
|
};
|
|
13355
|
+
pickstation_resolve_delivery_orders: {
|
|
13356
|
+
Args: {
|
|
13357
|
+
p_sales_order_ids: string[];
|
|
13358
|
+
};
|
|
13359
|
+
Returns: {
|
|
13360
|
+
delivery_order_id: string;
|
|
13361
|
+
sales_order_id: string;
|
|
13362
|
+
}[];
|
|
13363
|
+
};
|
|
12396
13364
|
pickstation_set_cart_status: {
|
|
12397
13365
|
Args: {
|
|
12398
13366
|
p_cart_index: number;
|
|
@@ -12402,6 +13370,14 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
12402
13370
|
};
|
|
12403
13371
|
Returns: undefined;
|
|
12404
13372
|
};
|
|
13373
|
+
produce_designed_product: {
|
|
13374
|
+
Args: {
|
|
13375
|
+
p_parent_id: string;
|
|
13376
|
+
p_parent_kind: string;
|
|
13377
|
+
p_quantity: number;
|
|
13378
|
+
};
|
|
13379
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
13380
|
+
};
|
|
12405
13381
|
promote_trade_item_key: {
|
|
12406
13382
|
Args: {
|
|
12407
13383
|
p_new: string;
|
|
@@ -12409,6 +13385,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
12409
13385
|
};
|
|
12410
13386
|
Returns: undefined;
|
|
12411
13387
|
};
|
|
13388
|
+
recompute_all_reserved_stock: {
|
|
13389
|
+
Args: never;
|
|
13390
|
+
Returns: undefined;
|
|
13391
|
+
};
|
|
12412
13392
|
recompute_order_status: {
|
|
12413
13393
|
Args: {
|
|
12414
13394
|
p_order_id: string;
|
|
@@ -12464,18 +13444,50 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
12464
13444
|
};
|
|
12465
13445
|
Returns: undefined;
|
|
12466
13446
|
};
|
|
13447
|
+
resolve_group_allocation: {
|
|
13448
|
+
Args: {
|
|
13449
|
+
_needed: number;
|
|
13450
|
+
_product_group_id: string;
|
|
13451
|
+
};
|
|
13452
|
+
Returns: {
|
|
13453
|
+
allocated: number;
|
|
13454
|
+
trade_item_id: string;
|
|
13455
|
+
}[];
|
|
13456
|
+
};
|
|
13457
|
+
resolve_group_member_stock_key: {
|
|
13458
|
+
Args: {
|
|
13459
|
+
p_trade_item_id: string;
|
|
13460
|
+
};
|
|
13461
|
+
Returns: string;
|
|
13462
|
+
};
|
|
12467
13463
|
resolve_product_id_for_item: {
|
|
12468
13464
|
Args: {
|
|
12469
13465
|
p_product_name: string;
|
|
12470
13466
|
};
|
|
12471
13467
|
Returns: string;
|
|
12472
13468
|
};
|
|
13469
|
+
resolve_stock_trade_item_key: {
|
|
13470
|
+
Args: {
|
|
13471
|
+
p_product_id: string;
|
|
13472
|
+
};
|
|
13473
|
+
Returns: string;
|
|
13474
|
+
};
|
|
12473
13475
|
retry_twinfield_push: {
|
|
12474
13476
|
Args: {
|
|
12475
13477
|
_customer_id: string;
|
|
12476
13478
|
};
|
|
12477
13479
|
Returns: number;
|
|
12478
13480
|
};
|
|
13481
|
+
reverse_production: {
|
|
13482
|
+
Args: {
|
|
13483
|
+
p_connection_id?: string;
|
|
13484
|
+
p_parent_key: string;
|
|
13485
|
+
p_quantity: number;
|
|
13486
|
+
p_reason?: string;
|
|
13487
|
+
p_user_id?: string;
|
|
13488
|
+
};
|
|
13489
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
13490
|
+
};
|
|
12479
13491
|
schedule_floriday_additional_services_sync: {
|
|
12480
13492
|
Args: {
|
|
12481
13493
|
p_apikey: string;
|
|
@@ -12743,6 +13755,17 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
12743
13755
|
};
|
|
12744
13756
|
Returns: number;
|
|
12745
13757
|
};
|
|
13758
|
+
self_heal_floriday_links: {
|
|
13759
|
+
Args: never;
|
|
13760
|
+
Returns: number;
|
|
13761
|
+
};
|
|
13762
|
+
set_planning_status: {
|
|
13763
|
+
Args: {
|
|
13764
|
+
_id: string;
|
|
13765
|
+
_status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
13766
|
+
};
|
|
13767
|
+
Returns: undefined;
|
|
13768
|
+
};
|
|
12746
13769
|
show_limit: {
|
|
12747
13770
|
Args: never;
|
|
12748
13771
|
Returns: number;
|
|
@@ -12753,18 +13776,34 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
12753
13776
|
};
|
|
12754
13777
|
Returns: string[];
|
|
12755
13778
|
};
|
|
13779
|
+
sync_all_layer_stocks: {
|
|
13780
|
+
Args: never;
|
|
13781
|
+
Returns: undefined;
|
|
13782
|
+
};
|
|
12756
13783
|
sync_cached_packing_from_product: {
|
|
12757
13784
|
Args: {
|
|
12758
13785
|
p_product_id: string;
|
|
12759
13786
|
};
|
|
12760
13787
|
Returns: undefined;
|
|
12761
13788
|
};
|
|
13789
|
+
sync_layer_stock: {
|
|
13790
|
+
Args: {
|
|
13791
|
+
p_product_id: string;
|
|
13792
|
+
};
|
|
13793
|
+
Returns: undefined;
|
|
13794
|
+
};
|
|
12762
13795
|
sync_order_cart_item_packing_from_product: {
|
|
12763
13796
|
Args: {
|
|
12764
13797
|
p_product_id: string;
|
|
12765
13798
|
};
|
|
12766
13799
|
Returns: undefined;
|
|
12767
13800
|
};
|
|
13801
|
+
sync_product_group_belading: {
|
|
13802
|
+
Args: {
|
|
13803
|
+
_group_id: string;
|
|
13804
|
+
};
|
|
13805
|
+
Returns: undefined;
|
|
13806
|
+
};
|
|
12768
13807
|
sync_product_packing_from_floriday_cache: {
|
|
12769
13808
|
Args: {
|
|
12770
13809
|
p_floriday_id: string;
|
|
@@ -12796,11 +13835,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
12796
13835
|
};
|
|
12797
13836
|
};
|
|
12798
13837
|
Enums: {
|
|
12799
|
-
app_role: "admin" | "planner" | "monteur" | "administratie";
|
|
13838
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
12800
13839
|
exact_env: "staging" | "live";
|
|
12801
13840
|
exact_push_status: "pending" | "sent" | "error";
|
|
12802
13841
|
itk_customer_segment: "Business" | "Private";
|
|
12803
13842
|
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
13843
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
12804
13844
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12805
13845
|
};
|
|
12806
13846
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -13092,6 +14132,57 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
13092
14132
|
referencedColumns: ["id"];
|
|
13093
14133
|
}];
|
|
13094
14134
|
};
|
|
14135
|
+
ai_call_log: {
|
|
14136
|
+
Row: {
|
|
14137
|
+
consumer_module_id: string;
|
|
14138
|
+
cost_usd: number | null;
|
|
14139
|
+
created_at: string;
|
|
14140
|
+
created_by: string | null;
|
|
14141
|
+
duration_ms: number | null;
|
|
14142
|
+
error_code: string | null;
|
|
14143
|
+
error_message: string | null;
|
|
14144
|
+
id: string;
|
|
14145
|
+
input_tokens: number;
|
|
14146
|
+
model_slug: string | null;
|
|
14147
|
+
output_tokens: number;
|
|
14148
|
+
provider_slug: string | null;
|
|
14149
|
+
status: string;
|
|
14150
|
+
total_tokens: number;
|
|
14151
|
+
};
|
|
14152
|
+
Insert: {
|
|
14153
|
+
consumer_module_id: string;
|
|
14154
|
+
cost_usd?: number | null;
|
|
14155
|
+
created_at?: string;
|
|
14156
|
+
created_by?: string | null;
|
|
14157
|
+
duration_ms?: number | null;
|
|
14158
|
+
error_code?: string | null;
|
|
14159
|
+
error_message?: string | null;
|
|
14160
|
+
id?: string;
|
|
14161
|
+
input_tokens?: number;
|
|
14162
|
+
model_slug?: string | null;
|
|
14163
|
+
output_tokens?: number;
|
|
14164
|
+
provider_slug?: string | null;
|
|
14165
|
+
status: string;
|
|
14166
|
+
total_tokens?: number;
|
|
14167
|
+
};
|
|
14168
|
+
Update: {
|
|
14169
|
+
consumer_module_id?: string;
|
|
14170
|
+
cost_usd?: number | null;
|
|
14171
|
+
created_at?: string;
|
|
14172
|
+
created_by?: string | null;
|
|
14173
|
+
duration_ms?: number | null;
|
|
14174
|
+
error_code?: string | null;
|
|
14175
|
+
error_message?: string | null;
|
|
14176
|
+
id?: string;
|
|
14177
|
+
input_tokens?: number;
|
|
14178
|
+
model_slug?: string | null;
|
|
14179
|
+
output_tokens?: number;
|
|
14180
|
+
provider_slug?: string | null;
|
|
14181
|
+
status?: string;
|
|
14182
|
+
total_tokens?: number;
|
|
14183
|
+
};
|
|
14184
|
+
Relationships: [];
|
|
14185
|
+
};
|
|
13095
14186
|
ai_credentials: {
|
|
13096
14187
|
Row: {
|
|
13097
14188
|
active: boolean;
|
|
@@ -13128,6 +14219,36 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
13128
14219
|
referencedColumns: ["id"];
|
|
13129
14220
|
}];
|
|
13130
14221
|
};
|
|
14222
|
+
ai_goals: {
|
|
14223
|
+
Row: {
|
|
14224
|
+
active: boolean;
|
|
14225
|
+
created_at: string;
|
|
14226
|
+
description: string | null;
|
|
14227
|
+
key: string;
|
|
14228
|
+
label: string;
|
|
14229
|
+
sort_order: number;
|
|
14230
|
+
updated_at: string;
|
|
14231
|
+
};
|
|
14232
|
+
Insert: {
|
|
14233
|
+
active?: boolean;
|
|
14234
|
+
created_at?: string;
|
|
14235
|
+
description?: string | null;
|
|
14236
|
+
key: string;
|
|
14237
|
+
label: string;
|
|
14238
|
+
sort_order?: number;
|
|
14239
|
+
updated_at?: string;
|
|
14240
|
+
};
|
|
14241
|
+
Update: {
|
|
14242
|
+
active?: boolean;
|
|
14243
|
+
created_at?: string;
|
|
14244
|
+
description?: string | null;
|
|
14245
|
+
key?: string;
|
|
14246
|
+
label?: string;
|
|
14247
|
+
sort_order?: number;
|
|
14248
|
+
updated_at?: string;
|
|
14249
|
+
};
|
|
14250
|
+
Relationships: [];
|
|
14251
|
+
};
|
|
13131
14252
|
ai_model_pricing: {
|
|
13132
14253
|
Row: {
|
|
13133
14254
|
created_at: string;
|
|
@@ -19272,6 +20393,285 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
19272
20393
|
};
|
|
19273
20394
|
Relationships: [];
|
|
19274
20395
|
};
|
|
20396
|
+
logistics_capacity_events: {
|
|
20397
|
+
Row: {
|
|
20398
|
+
available_carts: number;
|
|
20399
|
+
created_at: string;
|
|
20400
|
+
id: string;
|
|
20401
|
+
measures: import("../integrations/supabase/types").Json;
|
|
20402
|
+
note: string | null;
|
|
20403
|
+
outcome: string;
|
|
20404
|
+
required_carts: number;
|
|
20405
|
+
reserve_minutes: number;
|
|
20406
|
+
shortage_carts: number;
|
|
20407
|
+
status: string;
|
|
20408
|
+
user_id: string;
|
|
20409
|
+
};
|
|
20410
|
+
Insert: {
|
|
20411
|
+
available_carts?: number;
|
|
20412
|
+
created_at?: string;
|
|
20413
|
+
id?: string;
|
|
20414
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
20415
|
+
note?: string | null;
|
|
20416
|
+
outcome?: string;
|
|
20417
|
+
required_carts?: number;
|
|
20418
|
+
reserve_minutes?: number;
|
|
20419
|
+
shortage_carts?: number;
|
|
20420
|
+
status: string;
|
|
20421
|
+
user_id: string;
|
|
20422
|
+
};
|
|
20423
|
+
Update: {
|
|
20424
|
+
available_carts?: number;
|
|
20425
|
+
created_at?: string;
|
|
20426
|
+
id?: string;
|
|
20427
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
20428
|
+
note?: string | null;
|
|
20429
|
+
outcome?: string;
|
|
20430
|
+
required_carts?: number;
|
|
20431
|
+
reserve_minutes?: number;
|
|
20432
|
+
shortage_carts?: number;
|
|
20433
|
+
status?: string;
|
|
20434
|
+
user_id?: string;
|
|
20435
|
+
};
|
|
20436
|
+
Relationships: [];
|
|
20437
|
+
};
|
|
20438
|
+
logistics_capacity_settings: {
|
|
20439
|
+
Row: {
|
|
20440
|
+
created_at: string;
|
|
20441
|
+
settings: import("../integrations/supabase/types").Json;
|
|
20442
|
+
updated_at: string;
|
|
20443
|
+
user_id: string;
|
|
20444
|
+
};
|
|
20445
|
+
Insert: {
|
|
20446
|
+
created_at?: string;
|
|
20447
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
20448
|
+
updated_at?: string;
|
|
20449
|
+
user_id: string;
|
|
20450
|
+
};
|
|
20451
|
+
Update: {
|
|
20452
|
+
created_at?: string;
|
|
20453
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
20454
|
+
updated_at?: string;
|
|
20455
|
+
user_id?: string;
|
|
20456
|
+
};
|
|
20457
|
+
Relationships: [];
|
|
20458
|
+
};
|
|
20459
|
+
logistics_decisions: {
|
|
20460
|
+
Row: {
|
|
20461
|
+
created_at: string;
|
|
20462
|
+
explanation: string | null;
|
|
20463
|
+
id: string;
|
|
20464
|
+
input_snapshot: import("../integrations/supabase/types").Json;
|
|
20465
|
+
result: import("../integrations/supabase/types").Json;
|
|
20466
|
+
slot: string;
|
|
20467
|
+
strategy_id: string | null;
|
|
20468
|
+
subject_id: string;
|
|
20469
|
+
subject_type: string;
|
|
20470
|
+
user_id: string;
|
|
20471
|
+
};
|
|
20472
|
+
Insert: {
|
|
20473
|
+
created_at?: string;
|
|
20474
|
+
explanation?: string | null;
|
|
20475
|
+
id?: string;
|
|
20476
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
20477
|
+
result?: import("../integrations/supabase/types").Json;
|
|
20478
|
+
slot: string;
|
|
20479
|
+
strategy_id?: string | null;
|
|
20480
|
+
subject_id: string;
|
|
20481
|
+
subject_type: string;
|
|
20482
|
+
user_id: string;
|
|
20483
|
+
};
|
|
20484
|
+
Update: {
|
|
20485
|
+
created_at?: string;
|
|
20486
|
+
explanation?: string | null;
|
|
20487
|
+
id?: string;
|
|
20488
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
20489
|
+
result?: import("../integrations/supabase/types").Json;
|
|
20490
|
+
slot?: string;
|
|
20491
|
+
strategy_id?: string | null;
|
|
20492
|
+
subject_id?: string;
|
|
20493
|
+
subject_type?: string;
|
|
20494
|
+
user_id?: string;
|
|
20495
|
+
};
|
|
20496
|
+
Relationships: [{
|
|
20497
|
+
foreignKeyName: "logistics_decisions_strategy_id_fkey";
|
|
20498
|
+
columns: ["strategy_id"];
|
|
20499
|
+
isOneToOne: false;
|
|
20500
|
+
referencedRelation: "logistics_strategies";
|
|
20501
|
+
referencedColumns: ["id"];
|
|
20502
|
+
}];
|
|
20503
|
+
};
|
|
20504
|
+
logistics_formulas: {
|
|
20505
|
+
Row: {
|
|
20506
|
+
created_at: string;
|
|
20507
|
+
expression: string;
|
|
20508
|
+
id: string;
|
|
20509
|
+
notes: string | null;
|
|
20510
|
+
slot: string;
|
|
20511
|
+
strategy_id: string;
|
|
20512
|
+
updated_at: string;
|
|
20513
|
+
user_id: string;
|
|
20514
|
+
version: number;
|
|
20515
|
+
};
|
|
20516
|
+
Insert: {
|
|
20517
|
+
created_at?: string;
|
|
20518
|
+
expression?: string;
|
|
20519
|
+
id?: string;
|
|
20520
|
+
notes?: string | null;
|
|
20521
|
+
slot: string;
|
|
20522
|
+
strategy_id: string;
|
|
20523
|
+
updated_at?: string;
|
|
20524
|
+
user_id: string;
|
|
20525
|
+
version?: number;
|
|
20526
|
+
};
|
|
20527
|
+
Update: {
|
|
20528
|
+
created_at?: string;
|
|
20529
|
+
expression?: string;
|
|
20530
|
+
id?: string;
|
|
20531
|
+
notes?: string | null;
|
|
20532
|
+
slot?: string;
|
|
20533
|
+
strategy_id?: string;
|
|
20534
|
+
updated_at?: string;
|
|
20535
|
+
user_id?: string;
|
|
20536
|
+
version?: number;
|
|
20537
|
+
};
|
|
20538
|
+
Relationships: [{
|
|
20539
|
+
foreignKeyName: "logistics_formulas_strategy_id_fkey";
|
|
20540
|
+
columns: ["strategy_id"];
|
|
20541
|
+
isOneToOne: false;
|
|
20542
|
+
referencedRelation: "logistics_strategies";
|
|
20543
|
+
referencedColumns: ["id"];
|
|
20544
|
+
}];
|
|
20545
|
+
};
|
|
20546
|
+
logistics_strategies: {
|
|
20547
|
+
Row: {
|
|
20548
|
+
color: string;
|
|
20549
|
+
created_at: string;
|
|
20550
|
+
description: string | null;
|
|
20551
|
+
id: string;
|
|
20552
|
+
is_active: boolean;
|
|
20553
|
+
name: string;
|
|
20554
|
+
priority: number;
|
|
20555
|
+
updated_at: string;
|
|
20556
|
+
updated_by: string | null;
|
|
20557
|
+
user_id: string;
|
|
20558
|
+
version: number;
|
|
20559
|
+
};
|
|
20560
|
+
Insert: {
|
|
20561
|
+
color?: string;
|
|
20562
|
+
created_at?: string;
|
|
20563
|
+
description?: string | null;
|
|
20564
|
+
id?: string;
|
|
20565
|
+
is_active?: boolean;
|
|
20566
|
+
name: string;
|
|
20567
|
+
priority?: number;
|
|
20568
|
+
updated_at?: string;
|
|
20569
|
+
updated_by?: string | null;
|
|
20570
|
+
user_id: string;
|
|
20571
|
+
version?: number;
|
|
20572
|
+
};
|
|
20573
|
+
Update: {
|
|
20574
|
+
color?: string;
|
|
20575
|
+
created_at?: string;
|
|
20576
|
+
description?: string | null;
|
|
20577
|
+
id?: string;
|
|
20578
|
+
is_active?: boolean;
|
|
20579
|
+
name?: string;
|
|
20580
|
+
priority?: number;
|
|
20581
|
+
updated_at?: string;
|
|
20582
|
+
updated_by?: string | null;
|
|
20583
|
+
user_id?: string;
|
|
20584
|
+
version?: number;
|
|
20585
|
+
};
|
|
20586
|
+
Relationships: [];
|
|
20587
|
+
};
|
|
20588
|
+
logistics_strategy_schedules: {
|
|
20589
|
+
Row: {
|
|
20590
|
+
condition_expression: string | null;
|
|
20591
|
+
created_at: string;
|
|
20592
|
+
end_date: string | null;
|
|
20593
|
+
id: string;
|
|
20594
|
+
is_enabled: boolean;
|
|
20595
|
+
priority: number;
|
|
20596
|
+
rule_type: string;
|
|
20597
|
+
start_date: string | null;
|
|
20598
|
+
strategy_id: string;
|
|
20599
|
+
updated_at: string;
|
|
20600
|
+
user_id: string;
|
|
20601
|
+
};
|
|
20602
|
+
Insert: {
|
|
20603
|
+
condition_expression?: string | null;
|
|
20604
|
+
created_at?: string;
|
|
20605
|
+
end_date?: string | null;
|
|
20606
|
+
id?: string;
|
|
20607
|
+
is_enabled?: boolean;
|
|
20608
|
+
priority?: number;
|
|
20609
|
+
rule_type: string;
|
|
20610
|
+
start_date?: string | null;
|
|
20611
|
+
strategy_id: string;
|
|
20612
|
+
updated_at?: string;
|
|
20613
|
+
user_id: string;
|
|
20614
|
+
};
|
|
20615
|
+
Update: {
|
|
20616
|
+
condition_expression?: string | null;
|
|
20617
|
+
created_at?: string;
|
|
20618
|
+
end_date?: string | null;
|
|
20619
|
+
id?: string;
|
|
20620
|
+
is_enabled?: boolean;
|
|
20621
|
+
priority?: number;
|
|
20622
|
+
rule_type?: string;
|
|
20623
|
+
start_date?: string | null;
|
|
20624
|
+
strategy_id?: string;
|
|
20625
|
+
updated_at?: string;
|
|
20626
|
+
user_id?: string;
|
|
20627
|
+
};
|
|
20628
|
+
Relationships: [{
|
|
20629
|
+
foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
|
|
20630
|
+
columns: ["strategy_id"];
|
|
20631
|
+
isOneToOne: false;
|
|
20632
|
+
referencedRelation: "logistics_strategies";
|
|
20633
|
+
referencedColumns: ["id"];
|
|
20634
|
+
}];
|
|
20635
|
+
};
|
|
20636
|
+
logistics_variables: {
|
|
20637
|
+
Row: {
|
|
20638
|
+
created_at: string;
|
|
20639
|
+
default_value: string | null;
|
|
20640
|
+
description: string | null;
|
|
20641
|
+
id: string;
|
|
20642
|
+
is_builtin: boolean;
|
|
20643
|
+
key: string;
|
|
20644
|
+
label: string;
|
|
20645
|
+
updated_at: string;
|
|
20646
|
+
user_id: string;
|
|
20647
|
+
value_type: string;
|
|
20648
|
+
};
|
|
20649
|
+
Insert: {
|
|
20650
|
+
created_at?: string;
|
|
20651
|
+
default_value?: string | null;
|
|
20652
|
+
description?: string | null;
|
|
20653
|
+
id?: string;
|
|
20654
|
+
is_builtin?: boolean;
|
|
20655
|
+
key: string;
|
|
20656
|
+
label: string;
|
|
20657
|
+
updated_at?: string;
|
|
20658
|
+
user_id: string;
|
|
20659
|
+
value_type: string;
|
|
20660
|
+
};
|
|
20661
|
+
Update: {
|
|
20662
|
+
created_at?: string;
|
|
20663
|
+
default_value?: string | null;
|
|
20664
|
+
description?: string | null;
|
|
20665
|
+
id?: string;
|
|
20666
|
+
is_builtin?: boolean;
|
|
20667
|
+
key?: string;
|
|
20668
|
+
label?: string;
|
|
20669
|
+
updated_at?: string;
|
|
20670
|
+
user_id?: string;
|
|
20671
|
+
value_type?: string;
|
|
20672
|
+
};
|
|
20673
|
+
Relationships: [];
|
|
20674
|
+
};
|
|
19275
20675
|
mailbox_messages: {
|
|
19276
20676
|
Row: {
|
|
19277
20677
|
body_html: string | null;
|
|
@@ -21045,6 +22445,138 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
21045
22445
|
};
|
|
21046
22446
|
Relationships: [];
|
|
21047
22447
|
};
|
|
22448
|
+
planning_item_assistants: {
|
|
22449
|
+
Row: {
|
|
22450
|
+
created_at: string;
|
|
22451
|
+
created_by: string | null;
|
|
22452
|
+
monteur_id: string;
|
|
22453
|
+
planning_item_id: string;
|
|
22454
|
+
};
|
|
22455
|
+
Insert: {
|
|
22456
|
+
created_at?: string;
|
|
22457
|
+
created_by?: string | null;
|
|
22458
|
+
monteur_id: string;
|
|
22459
|
+
planning_item_id: string;
|
|
22460
|
+
};
|
|
22461
|
+
Update: {
|
|
22462
|
+
created_at?: string;
|
|
22463
|
+
created_by?: string | null;
|
|
22464
|
+
monteur_id?: string;
|
|
22465
|
+
planning_item_id?: string;
|
|
22466
|
+
};
|
|
22467
|
+
Relationships: [{
|
|
22468
|
+
foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
|
|
22469
|
+
columns: ["planning_item_id"];
|
|
22470
|
+
isOneToOne: false;
|
|
22471
|
+
referencedRelation: "planning_items";
|
|
22472
|
+
referencedColumns: ["id"];
|
|
22473
|
+
}];
|
|
22474
|
+
};
|
|
22475
|
+
planning_items: {
|
|
22476
|
+
Row: {
|
|
22477
|
+
assigned_monteur_id: string;
|
|
22478
|
+
created_at: string;
|
|
22479
|
+
created_by: string | null;
|
|
22480
|
+
end_at: string;
|
|
22481
|
+
id: string;
|
|
22482
|
+
notes: string | null;
|
|
22483
|
+
start_at: string;
|
|
22484
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
22485
|
+
updated_at: string;
|
|
22486
|
+
werkbon_id: string;
|
|
22487
|
+
};
|
|
22488
|
+
Insert: {
|
|
22489
|
+
assigned_monteur_id: string;
|
|
22490
|
+
created_at?: string;
|
|
22491
|
+
created_by?: string | null;
|
|
22492
|
+
end_at: string;
|
|
22493
|
+
id?: string;
|
|
22494
|
+
notes?: string | null;
|
|
22495
|
+
start_at: string;
|
|
22496
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
22497
|
+
updated_at?: string;
|
|
22498
|
+
werkbon_id: string;
|
|
22499
|
+
};
|
|
22500
|
+
Update: {
|
|
22501
|
+
assigned_monteur_id?: string;
|
|
22502
|
+
created_at?: string;
|
|
22503
|
+
created_by?: string | null;
|
|
22504
|
+
end_at?: string;
|
|
22505
|
+
id?: string;
|
|
22506
|
+
notes?: string | null;
|
|
22507
|
+
start_at?: string;
|
|
22508
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
22509
|
+
updated_at?: string;
|
|
22510
|
+
werkbon_id?: string;
|
|
22511
|
+
};
|
|
22512
|
+
Relationships: [{
|
|
22513
|
+
foreignKeyName: "planning_items_werkbon_id_fkey";
|
|
22514
|
+
columns: ["werkbon_id"];
|
|
22515
|
+
isOneToOne: false;
|
|
22516
|
+
referencedRelation: "werkbonnen";
|
|
22517
|
+
referencedColumns: ["id"];
|
|
22518
|
+
}];
|
|
22519
|
+
};
|
|
22520
|
+
product_bom_items: {
|
|
22521
|
+
Row: {
|
|
22522
|
+
component_product_id: string | null;
|
|
22523
|
+
component_trade_item_floriday_id: string | null;
|
|
22524
|
+
created_at: string;
|
|
22525
|
+
id: string;
|
|
22526
|
+
notes: string | null;
|
|
22527
|
+
packing_configuration_id: string | null;
|
|
22528
|
+
parent_product_id: string | null;
|
|
22529
|
+
parent_trade_item_floriday_id: string | null;
|
|
22530
|
+
quantity: number;
|
|
22531
|
+
sort_order: number;
|
|
22532
|
+
tenant_id: string;
|
|
22533
|
+
unit: string;
|
|
22534
|
+
updated_at: string;
|
|
22535
|
+
};
|
|
22536
|
+
Insert: {
|
|
22537
|
+
component_product_id?: string | null;
|
|
22538
|
+
component_trade_item_floriday_id?: string | null;
|
|
22539
|
+
created_at?: string;
|
|
22540
|
+
id?: string;
|
|
22541
|
+
notes?: string | null;
|
|
22542
|
+
packing_configuration_id?: string | null;
|
|
22543
|
+
parent_product_id?: string | null;
|
|
22544
|
+
parent_trade_item_floriday_id?: string | null;
|
|
22545
|
+
quantity?: number;
|
|
22546
|
+
sort_order?: number;
|
|
22547
|
+
tenant_id: string;
|
|
22548
|
+
unit?: string;
|
|
22549
|
+
updated_at?: string;
|
|
22550
|
+
};
|
|
22551
|
+
Update: {
|
|
22552
|
+
component_product_id?: string | null;
|
|
22553
|
+
component_trade_item_floriday_id?: string | null;
|
|
22554
|
+
created_at?: string;
|
|
22555
|
+
id?: string;
|
|
22556
|
+
notes?: string | null;
|
|
22557
|
+
packing_configuration_id?: string | null;
|
|
22558
|
+
parent_product_id?: string | null;
|
|
22559
|
+
parent_trade_item_floriday_id?: string | null;
|
|
22560
|
+
quantity?: number;
|
|
22561
|
+
sort_order?: number;
|
|
22562
|
+
tenant_id?: string;
|
|
22563
|
+
unit?: string;
|
|
22564
|
+
updated_at?: string;
|
|
22565
|
+
};
|
|
22566
|
+
Relationships: [{
|
|
22567
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
22568
|
+
columns: ["component_product_id"];
|
|
22569
|
+
isOneToOne: false;
|
|
22570
|
+
referencedRelation: "products";
|
|
22571
|
+
referencedColumns: ["id"];
|
|
22572
|
+
}, {
|
|
22573
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
22574
|
+
columns: ["parent_product_id"];
|
|
22575
|
+
isOneToOne: false;
|
|
22576
|
+
referencedRelation: "products";
|
|
22577
|
+
referencedColumns: ["id"];
|
|
22578
|
+
}];
|
|
22579
|
+
};
|
|
21048
22580
|
product_categories: {
|
|
21049
22581
|
Row: {
|
|
21050
22582
|
color: string;
|
|
@@ -21150,6 +22682,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
21150
22682
|
id: string;
|
|
21151
22683
|
product_group_id: string;
|
|
21152
22684
|
quantity: number;
|
|
22685
|
+
sort_order: number;
|
|
21153
22686
|
trade_item_id: string;
|
|
21154
22687
|
};
|
|
21155
22688
|
Insert: {
|
|
@@ -21157,6 +22690,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
21157
22690
|
id?: string;
|
|
21158
22691
|
product_group_id: string;
|
|
21159
22692
|
quantity?: number;
|
|
22693
|
+
sort_order?: number;
|
|
21160
22694
|
trade_item_id: string;
|
|
21161
22695
|
};
|
|
21162
22696
|
Update: {
|
|
@@ -21164,6 +22698,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
21164
22698
|
id?: string;
|
|
21165
22699
|
product_group_id?: string;
|
|
21166
22700
|
quantity?: number;
|
|
22701
|
+
sort_order?: number;
|
|
21167
22702
|
trade_item_id?: string;
|
|
21168
22703
|
};
|
|
21169
22704
|
Relationships: [{
|
|
@@ -21178,6 +22713,8 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
21178
22713
|
Row: {
|
|
21179
22714
|
created_at: string;
|
|
21180
22715
|
description: string | null;
|
|
22716
|
+
head_product_id: string | null;
|
|
22717
|
+
head_trade_item_floriday_id: string | null;
|
|
21181
22718
|
id: string;
|
|
21182
22719
|
is_active: boolean;
|
|
21183
22720
|
name: string;
|
|
@@ -21187,6 +22724,8 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
21187
22724
|
Insert: {
|
|
21188
22725
|
created_at?: string;
|
|
21189
22726
|
description?: string | null;
|
|
22727
|
+
head_product_id?: string | null;
|
|
22728
|
+
head_trade_item_floriday_id?: string | null;
|
|
21190
22729
|
id?: string;
|
|
21191
22730
|
is_active?: boolean;
|
|
21192
22731
|
name: string;
|
|
@@ -21196,24 +22735,134 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
21196
22735
|
Update: {
|
|
21197
22736
|
created_at?: string;
|
|
21198
22737
|
description?: string | null;
|
|
22738
|
+
head_product_id?: string | null;
|
|
22739
|
+
head_trade_item_floriday_id?: string | null;
|
|
21199
22740
|
id?: string;
|
|
21200
22741
|
is_active?: boolean;
|
|
21201
22742
|
name?: string;
|
|
21202
22743
|
tenant_id?: string;
|
|
21203
22744
|
updated_at?: string;
|
|
21204
22745
|
};
|
|
22746
|
+
Relationships: [{
|
|
22747
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
22748
|
+
columns: ["head_product_id"];
|
|
22749
|
+
isOneToOne: false;
|
|
22750
|
+
referencedRelation: "products";
|
|
22751
|
+
referencedColumns: ["id"];
|
|
22752
|
+
}];
|
|
22753
|
+
};
|
|
22754
|
+
product_load_settings: {
|
|
22755
|
+
Row: {
|
|
22756
|
+
created_at: string;
|
|
22757
|
+
id: string;
|
|
22758
|
+
is_package: boolean;
|
|
22759
|
+
label: string | null;
|
|
22760
|
+
layers_per_load_carrier: number | null;
|
|
22761
|
+
load_carrier: string | null;
|
|
22762
|
+
package_id: string | null;
|
|
22763
|
+
package_label: string | null;
|
|
22764
|
+
packages_per_layer: number | null;
|
|
22765
|
+
packing_configuration_id: string;
|
|
22766
|
+
product_id: string | null;
|
|
22767
|
+
tenant_id: string;
|
|
22768
|
+
trade_item_floriday_id: string | null;
|
|
22769
|
+
units_per_package: number | null;
|
|
22770
|
+
updated_at: string;
|
|
22771
|
+
};
|
|
22772
|
+
Insert: {
|
|
22773
|
+
created_at?: string;
|
|
22774
|
+
id?: string;
|
|
22775
|
+
is_package?: boolean;
|
|
22776
|
+
label?: string | null;
|
|
22777
|
+
layers_per_load_carrier?: number | null;
|
|
22778
|
+
load_carrier?: string | null;
|
|
22779
|
+
package_id?: string | null;
|
|
22780
|
+
package_label?: string | null;
|
|
22781
|
+
packages_per_layer?: number | null;
|
|
22782
|
+
packing_configuration_id?: string;
|
|
22783
|
+
product_id?: string | null;
|
|
22784
|
+
tenant_id: string;
|
|
22785
|
+
trade_item_floriday_id?: string | null;
|
|
22786
|
+
units_per_package?: number | null;
|
|
22787
|
+
updated_at?: string;
|
|
22788
|
+
};
|
|
22789
|
+
Update: {
|
|
22790
|
+
created_at?: string;
|
|
22791
|
+
id?: string;
|
|
22792
|
+
is_package?: boolean;
|
|
22793
|
+
label?: string | null;
|
|
22794
|
+
layers_per_load_carrier?: number | null;
|
|
22795
|
+
load_carrier?: string | null;
|
|
22796
|
+
package_id?: string | null;
|
|
22797
|
+
package_label?: string | null;
|
|
22798
|
+
packages_per_layer?: number | null;
|
|
22799
|
+
packing_configuration_id?: string;
|
|
22800
|
+
product_id?: string | null;
|
|
22801
|
+
tenant_id?: string;
|
|
22802
|
+
trade_item_floriday_id?: string | null;
|
|
22803
|
+
units_per_package?: number | null;
|
|
22804
|
+
updated_at?: string;
|
|
22805
|
+
};
|
|
22806
|
+
Relationships: [{
|
|
22807
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
22808
|
+
columns: ["package_id"];
|
|
22809
|
+
isOneToOne: false;
|
|
22810
|
+
referencedRelation: "packages";
|
|
22811
|
+
referencedColumns: ["id"];
|
|
22812
|
+
}, {
|
|
22813
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
22814
|
+
columns: ["product_id"];
|
|
22815
|
+
isOneToOne: false;
|
|
22816
|
+
referencedRelation: "products";
|
|
22817
|
+
referencedColumns: ["id"];
|
|
22818
|
+
}];
|
|
22819
|
+
};
|
|
22820
|
+
product_merge_log: {
|
|
22821
|
+
Row: {
|
|
22822
|
+
canonical_product_id: string | null;
|
|
22823
|
+
id: string;
|
|
22824
|
+
merged_at: string;
|
|
22825
|
+
merged_from_id: string;
|
|
22826
|
+
notes: string | null;
|
|
22827
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
22828
|
+
source_table: string;
|
|
22829
|
+
status: string;
|
|
22830
|
+
};
|
|
22831
|
+
Insert: {
|
|
22832
|
+
canonical_product_id?: string | null;
|
|
22833
|
+
id?: string;
|
|
22834
|
+
merged_at?: string;
|
|
22835
|
+
merged_from_id: string;
|
|
22836
|
+
notes?: string | null;
|
|
22837
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
22838
|
+
source_table: string;
|
|
22839
|
+
status?: string;
|
|
22840
|
+
};
|
|
22841
|
+
Update: {
|
|
22842
|
+
canonical_product_id?: string | null;
|
|
22843
|
+
id?: string;
|
|
22844
|
+
merged_at?: string;
|
|
22845
|
+
merged_from_id?: string;
|
|
22846
|
+
notes?: string | null;
|
|
22847
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
22848
|
+
source_table?: string;
|
|
22849
|
+
status?: string;
|
|
22850
|
+
};
|
|
21205
22851
|
Relationships: [];
|
|
21206
22852
|
};
|
|
21207
22853
|
products: {
|
|
21208
22854
|
Row: {
|
|
22855
|
+
article_number: string | null;
|
|
21209
22856
|
barcode: string | null;
|
|
21210
22857
|
batch: string;
|
|
21211
22858
|
crates_per_layer: number;
|
|
21212
22859
|
created_at: string;
|
|
21213
22860
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
22861
|
+
floriday_trade_item_id: string | null;
|
|
21214
22862
|
id: string;
|
|
21215
22863
|
image_url: string | null;
|
|
21216
22864
|
incoming_quantity: number;
|
|
22865
|
+
is_layer: boolean;
|
|
21217
22866
|
layers_per_cart: number;
|
|
21218
22867
|
location: string;
|
|
21219
22868
|
min_quantity: number;
|
|
@@ -21229,14 +22878,17 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
21229
22878
|
weight: string | null;
|
|
21230
22879
|
};
|
|
21231
22880
|
Insert: {
|
|
22881
|
+
article_number?: string | null;
|
|
21232
22882
|
barcode?: string | null;
|
|
21233
22883
|
batch: string;
|
|
21234
22884
|
crates_per_layer?: number;
|
|
21235
22885
|
created_at?: string;
|
|
21236
22886
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
22887
|
+
floriday_trade_item_id?: string | null;
|
|
21237
22888
|
id?: string;
|
|
21238
22889
|
image_url?: string | null;
|
|
21239
22890
|
incoming_quantity?: number;
|
|
22891
|
+
is_layer?: boolean;
|
|
21240
22892
|
layers_per_cart?: number;
|
|
21241
22893
|
location: string;
|
|
21242
22894
|
min_quantity?: number;
|
|
@@ -21252,14 +22904,17 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
21252
22904
|
weight?: string | null;
|
|
21253
22905
|
};
|
|
21254
22906
|
Update: {
|
|
22907
|
+
article_number?: string | null;
|
|
21255
22908
|
barcode?: string | null;
|
|
21256
22909
|
batch?: string;
|
|
21257
22910
|
crates_per_layer?: number;
|
|
21258
22911
|
created_at?: string;
|
|
21259
22912
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
22913
|
+
floriday_trade_item_id?: string | null;
|
|
21260
22914
|
id?: string;
|
|
21261
22915
|
image_url?: string | null;
|
|
21262
22916
|
incoming_quantity?: number;
|
|
22917
|
+
is_layer?: boolean;
|
|
21263
22918
|
layers_per_cart?: number;
|
|
21264
22919
|
location?: string;
|
|
21265
22920
|
min_quantity?: number;
|
|
@@ -21279,6 +22934,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
21279
22934
|
profiles: {
|
|
21280
22935
|
Row: {
|
|
21281
22936
|
address: string | null;
|
|
22937
|
+
avatar_url: string | null;
|
|
21282
22938
|
created_at: string;
|
|
21283
22939
|
display_name: string | null;
|
|
21284
22940
|
email: string | null;
|
|
@@ -21290,6 +22946,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
21290
22946
|
};
|
|
21291
22947
|
Insert: {
|
|
21292
22948
|
address?: string | null;
|
|
22949
|
+
avatar_url?: string | null;
|
|
21293
22950
|
created_at?: string;
|
|
21294
22951
|
display_name?: string | null;
|
|
21295
22952
|
email?: string | null;
|
|
@@ -21301,6 +22958,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
21301
22958
|
};
|
|
21302
22959
|
Update: {
|
|
21303
22960
|
address?: string | null;
|
|
22961
|
+
avatar_url?: string | null;
|
|
21304
22962
|
created_at?: string;
|
|
21305
22963
|
display_name?: string | null;
|
|
21306
22964
|
email?: string | null;
|
|
@@ -22167,6 +23825,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
22167
23825
|
order_source: string | null;
|
|
22168
23826
|
physical_after: number | null;
|
|
22169
23827
|
physical_before: number | null;
|
|
23828
|
+
production_batch_id: string | null;
|
|
22170
23829
|
qty_delta: number;
|
|
22171
23830
|
reason: string | null;
|
|
22172
23831
|
reserved_after: number | null;
|
|
@@ -22184,6 +23843,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
22184
23843
|
order_source?: string | null;
|
|
22185
23844
|
physical_after?: number | null;
|
|
22186
23845
|
physical_before?: number | null;
|
|
23846
|
+
production_batch_id?: string | null;
|
|
22187
23847
|
qty_delta: number;
|
|
22188
23848
|
reason?: string | null;
|
|
22189
23849
|
reserved_after?: number | null;
|
|
@@ -22201,6 +23861,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
22201
23861
|
order_source?: string | null;
|
|
22202
23862
|
physical_after?: number | null;
|
|
22203
23863
|
physical_before?: number | null;
|
|
23864
|
+
production_batch_id?: string | null;
|
|
22204
23865
|
qty_delta?: number;
|
|
22205
23866
|
reason?: string | null;
|
|
22206
23867
|
reserved_after?: number | null;
|
|
@@ -22527,6 +24188,48 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
22527
24188
|
};
|
|
22528
24189
|
Relationships: [];
|
|
22529
24190
|
};
|
|
24191
|
+
trade_item_prices: {
|
|
24192
|
+
Row: {
|
|
24193
|
+
created_at: string;
|
|
24194
|
+
currency: string;
|
|
24195
|
+
id: string;
|
|
24196
|
+
last_push_error: string | null;
|
|
24197
|
+
last_pushed_at: string | null;
|
|
24198
|
+
price_group_id: string | null;
|
|
24199
|
+
price_per_piece: number;
|
|
24200
|
+
supply_line_id: string | null;
|
|
24201
|
+
trade_item_key: string;
|
|
24202
|
+
updated_at: string;
|
|
24203
|
+
user_id: string;
|
|
24204
|
+
};
|
|
24205
|
+
Insert: {
|
|
24206
|
+
created_at?: string;
|
|
24207
|
+
currency?: string;
|
|
24208
|
+
id?: string;
|
|
24209
|
+
last_push_error?: string | null;
|
|
24210
|
+
last_pushed_at?: string | null;
|
|
24211
|
+
price_group_id?: string | null;
|
|
24212
|
+
price_per_piece: number;
|
|
24213
|
+
supply_line_id?: string | null;
|
|
24214
|
+
trade_item_key: string;
|
|
24215
|
+
updated_at?: string;
|
|
24216
|
+
user_id: string;
|
|
24217
|
+
};
|
|
24218
|
+
Update: {
|
|
24219
|
+
created_at?: string;
|
|
24220
|
+
currency?: string;
|
|
24221
|
+
id?: string;
|
|
24222
|
+
last_push_error?: string | null;
|
|
24223
|
+
last_pushed_at?: string | null;
|
|
24224
|
+
price_group_id?: string | null;
|
|
24225
|
+
price_per_piece?: number;
|
|
24226
|
+
supply_line_id?: string | null;
|
|
24227
|
+
trade_item_key?: string;
|
|
24228
|
+
updated_at?: string;
|
|
24229
|
+
user_id?: string;
|
|
24230
|
+
};
|
|
24231
|
+
Relationships: [];
|
|
24232
|
+
};
|
|
22530
24233
|
trade_item_stock: {
|
|
22531
24234
|
Row: {
|
|
22532
24235
|
connection_id: string;
|
|
@@ -22992,6 +24695,51 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
22992
24695
|
referencedColumns: ["id"];
|
|
22993
24696
|
}];
|
|
22994
24697
|
};
|
|
24698
|
+
twinfield_invoice_pdf_cache: {
|
|
24699
|
+
Row: {
|
|
24700
|
+
connection_id: string;
|
|
24701
|
+
created_at: string;
|
|
24702
|
+
fetched_at: string;
|
|
24703
|
+
id: string;
|
|
24704
|
+
invoice_number: string;
|
|
24705
|
+
last_accessed_at: string;
|
|
24706
|
+
object_path: string;
|
|
24707
|
+
office_code: string;
|
|
24708
|
+
size_bytes: number;
|
|
24709
|
+
updated_at: string;
|
|
24710
|
+
};
|
|
24711
|
+
Insert: {
|
|
24712
|
+
connection_id: string;
|
|
24713
|
+
created_at?: string;
|
|
24714
|
+
fetched_at?: string;
|
|
24715
|
+
id?: string;
|
|
24716
|
+
invoice_number: string;
|
|
24717
|
+
last_accessed_at?: string;
|
|
24718
|
+
object_path: string;
|
|
24719
|
+
office_code: string;
|
|
24720
|
+
size_bytes?: number;
|
|
24721
|
+
updated_at?: string;
|
|
24722
|
+
};
|
|
24723
|
+
Update: {
|
|
24724
|
+
connection_id?: string;
|
|
24725
|
+
created_at?: string;
|
|
24726
|
+
fetched_at?: string;
|
|
24727
|
+
id?: string;
|
|
24728
|
+
invoice_number?: string;
|
|
24729
|
+
last_accessed_at?: string;
|
|
24730
|
+
object_path?: string;
|
|
24731
|
+
office_code?: string;
|
|
24732
|
+
size_bytes?: number;
|
|
24733
|
+
updated_at?: string;
|
|
24734
|
+
};
|
|
24735
|
+
Relationships: [{
|
|
24736
|
+
foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
|
|
24737
|
+
columns: ["connection_id"];
|
|
24738
|
+
isOneToOne: false;
|
|
24739
|
+
referencedRelation: "twinfield_connections";
|
|
24740
|
+
referencedColumns: ["id"];
|
|
24741
|
+
}];
|
|
24742
|
+
};
|
|
22995
24743
|
twinfield_invoice_settings: {
|
|
22996
24744
|
Row: {
|
|
22997
24745
|
created_at: string;
|
|
@@ -23595,6 +25343,78 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
23595
25343
|
};
|
|
23596
25344
|
Relationships: [];
|
|
23597
25345
|
};
|
|
25346
|
+
werkbon_package_ai_rules: {
|
|
25347
|
+
Row: {
|
|
25348
|
+
active: boolean;
|
|
25349
|
+
case_sensitive: boolean;
|
|
25350
|
+
created_at: string;
|
|
25351
|
+
id: string;
|
|
25352
|
+
package_id: string;
|
|
25353
|
+
priority: number;
|
|
25354
|
+
rule_type: string;
|
|
25355
|
+
updated_at: string;
|
|
25356
|
+
value: string;
|
|
25357
|
+
};
|
|
25358
|
+
Insert: {
|
|
25359
|
+
active?: boolean;
|
|
25360
|
+
case_sensitive?: boolean;
|
|
25361
|
+
created_at?: string;
|
|
25362
|
+
id?: string;
|
|
25363
|
+
package_id: string;
|
|
25364
|
+
priority?: number;
|
|
25365
|
+
rule_type: string;
|
|
25366
|
+
updated_at?: string;
|
|
25367
|
+
value: string;
|
|
25368
|
+
};
|
|
25369
|
+
Update: {
|
|
25370
|
+
active?: boolean;
|
|
25371
|
+
case_sensitive?: boolean;
|
|
25372
|
+
created_at?: string;
|
|
25373
|
+
id?: string;
|
|
25374
|
+
package_id?: string;
|
|
25375
|
+
priority?: number;
|
|
25376
|
+
rule_type?: string;
|
|
25377
|
+
updated_at?: string;
|
|
25378
|
+
value?: string;
|
|
25379
|
+
};
|
|
25380
|
+
Relationships: [{
|
|
25381
|
+
foreignKeyName: "werkbon_package_ai_rules_package_id_fkey";
|
|
25382
|
+
columns: ["package_id"];
|
|
25383
|
+
isOneToOne: false;
|
|
25384
|
+
referencedRelation: "werkbon_packages";
|
|
25385
|
+
referencedColumns: ["id"];
|
|
25386
|
+
}];
|
|
25387
|
+
};
|
|
25388
|
+
werkbon_package_categories: {
|
|
25389
|
+
Row: {
|
|
25390
|
+
active: boolean;
|
|
25391
|
+
created_at: string;
|
|
25392
|
+
id: string;
|
|
25393
|
+
kleur: string | null;
|
|
25394
|
+
naam: string;
|
|
25395
|
+
sort_order: number;
|
|
25396
|
+
updated_at: string;
|
|
25397
|
+
};
|
|
25398
|
+
Insert: {
|
|
25399
|
+
active?: boolean;
|
|
25400
|
+
created_at?: string;
|
|
25401
|
+
id?: string;
|
|
25402
|
+
kleur?: string | null;
|
|
25403
|
+
naam: string;
|
|
25404
|
+
sort_order?: number;
|
|
25405
|
+
updated_at?: string;
|
|
25406
|
+
};
|
|
25407
|
+
Update: {
|
|
25408
|
+
active?: boolean;
|
|
25409
|
+
created_at?: string;
|
|
25410
|
+
id?: string;
|
|
25411
|
+
kleur?: string | null;
|
|
25412
|
+
naam?: string;
|
|
25413
|
+
sort_order?: number;
|
|
25414
|
+
updated_at?: string;
|
|
25415
|
+
};
|
|
25416
|
+
Relationships: [];
|
|
25417
|
+
};
|
|
23598
25418
|
werkbon_package_lines: {
|
|
23599
25419
|
Row: {
|
|
23600
25420
|
created_at: string;
|
|
@@ -23640,38 +25460,59 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
23640
25460
|
werkbon_packages: {
|
|
23641
25461
|
Row: {
|
|
23642
25462
|
active: boolean;
|
|
25463
|
+
ai_tags: string[];
|
|
25464
|
+
category_id: string | null;
|
|
23643
25465
|
code: string;
|
|
23644
25466
|
created_at: string;
|
|
23645
25467
|
default_quantity: number;
|
|
23646
25468
|
description: string | null;
|
|
25469
|
+
duration_minutes: number | null;
|
|
23647
25470
|
id: string;
|
|
25471
|
+
mandaat_type: string | null;
|
|
23648
25472
|
name: string;
|
|
25473
|
+
sort_order: number;
|
|
23649
25474
|
unit_price_cents: number;
|
|
23650
25475
|
updated_at: string;
|
|
23651
25476
|
};
|
|
23652
25477
|
Insert: {
|
|
23653
25478
|
active?: boolean;
|
|
25479
|
+
ai_tags?: string[];
|
|
25480
|
+
category_id?: string | null;
|
|
23654
25481
|
code: string;
|
|
23655
25482
|
created_at?: string;
|
|
23656
25483
|
default_quantity?: number;
|
|
23657
25484
|
description?: string | null;
|
|
25485
|
+
duration_minutes?: number | null;
|
|
23658
25486
|
id?: string;
|
|
25487
|
+
mandaat_type?: string | null;
|
|
23659
25488
|
name: string;
|
|
25489
|
+
sort_order?: number;
|
|
23660
25490
|
unit_price_cents?: number;
|
|
23661
25491
|
updated_at?: string;
|
|
23662
25492
|
};
|
|
23663
25493
|
Update: {
|
|
23664
25494
|
active?: boolean;
|
|
25495
|
+
ai_tags?: string[];
|
|
25496
|
+
category_id?: string | null;
|
|
23665
25497
|
code?: string;
|
|
23666
25498
|
created_at?: string;
|
|
23667
25499
|
default_quantity?: number;
|
|
23668
25500
|
description?: string | null;
|
|
25501
|
+
duration_minutes?: number | null;
|
|
23669
25502
|
id?: string;
|
|
25503
|
+
mandaat_type?: string | null;
|
|
23670
25504
|
name?: string;
|
|
25505
|
+
sort_order?: number;
|
|
23671
25506
|
unit_price_cents?: number;
|
|
23672
25507
|
updated_at?: string;
|
|
23673
25508
|
};
|
|
23674
|
-
Relationships: [
|
|
25509
|
+
Relationships: [{
|
|
25510
|
+
foreignKeyName: "werkbon_packages_category_id_fkey";
|
|
25511
|
+
columns: ["category_id"];
|
|
25512
|
+
isOneToOne: false;
|
|
25513
|
+
referencedRelation: "werkbon_package_categories";
|
|
25514
|
+
referencedColumns: ["id"];
|
|
25515
|
+
}];
|
|
23675
25516
|
};
|
|
23676
25517
|
werkbon_photos: {
|
|
23677
25518
|
Row: {
|
|
@@ -23759,7 +25600,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
23759
25600
|
scheduled_end_time: string | null;
|
|
23760
25601
|
scheduled_start_time: string | null;
|
|
23761
25602
|
sequence_number: number;
|
|
25603
|
+
source_email_meta: import("../integrations/supabase/types").Json | null;
|
|
25604
|
+
source_mailbox_message_id: string | null;
|
|
23762
25605
|
source_pdf_path: string | null;
|
|
25606
|
+
source_type: string;
|
|
23763
25607
|
status: string;
|
|
23764
25608
|
technician_id: string | null;
|
|
23765
25609
|
technician_notes: string | null;
|
|
@@ -23788,7 +25632,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
23788
25632
|
scheduled_end_time?: string | null;
|
|
23789
25633
|
scheduled_start_time?: string | null;
|
|
23790
25634
|
sequence_number: number;
|
|
25635
|
+
source_email_meta?: import("../integrations/supabase/types").Json | null;
|
|
25636
|
+
source_mailbox_message_id?: string | null;
|
|
23791
25637
|
source_pdf_path?: string | null;
|
|
25638
|
+
source_type?: string;
|
|
23792
25639
|
status?: string;
|
|
23793
25640
|
technician_id?: string | null;
|
|
23794
25641
|
technician_notes?: string | null;
|
|
@@ -23817,7 +25664,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
23817
25664
|
scheduled_end_time?: string | null;
|
|
23818
25665
|
scheduled_start_time?: string | null;
|
|
23819
25666
|
sequence_number?: number;
|
|
25667
|
+
source_email_meta?: import("../integrations/supabase/types").Json | null;
|
|
25668
|
+
source_mailbox_message_id?: string | null;
|
|
23820
25669
|
source_pdf_path?: string | null;
|
|
25670
|
+
source_type?: string;
|
|
23821
25671
|
status?: string;
|
|
23822
25672
|
technician_id?: string | null;
|
|
23823
25673
|
technician_notes?: string | null;
|
|
@@ -23834,10 +25684,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
23834
25684
|
referencedRelation: "werkbonnen";
|
|
23835
25685
|
referencedColumns: ["id"];
|
|
23836
25686
|
}, {
|
|
23837
|
-
foreignKeyName: "
|
|
23838
|
-
columns: ["
|
|
25687
|
+
foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
|
|
25688
|
+
columns: ["source_mailbox_message_id"];
|
|
23839
25689
|
isOneToOne: false;
|
|
23840
|
-
referencedRelation: "
|
|
25690
|
+
referencedRelation: "mailbox_messages";
|
|
23841
25691
|
referencedColumns: ["id"];
|
|
23842
25692
|
}];
|
|
23843
25693
|
};
|
|
@@ -24531,6 +26381,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
24531
26381
|
};
|
|
24532
26382
|
Returns: number;
|
|
24533
26383
|
};
|
|
26384
|
+
_migrate_rewrite_stock_key: {
|
|
26385
|
+
Args: {
|
|
26386
|
+
_from_key: string;
|
|
26387
|
+
_to_key: string;
|
|
26388
|
+
};
|
|
26389
|
+
Returns: undefined;
|
|
26390
|
+
};
|
|
24534
26391
|
afh_city_code: {
|
|
24535
26392
|
Args: {
|
|
24536
26393
|
_city: string;
|
|
@@ -24557,6 +26414,21 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
24557
26414
|
};
|
|
24558
26415
|
Returns: string;
|
|
24559
26416
|
};
|
|
26417
|
+
ai_usage_by_module: {
|
|
26418
|
+
Args: {
|
|
26419
|
+
_from: string;
|
|
26420
|
+
_to: string;
|
|
26421
|
+
};
|
|
26422
|
+
Returns: {
|
|
26423
|
+
calls: number;
|
|
26424
|
+
consumer_module_id: string;
|
|
26425
|
+
cost_usd: number;
|
|
26426
|
+
errors: number;
|
|
26427
|
+
input_tokens: number;
|
|
26428
|
+
output_tokens: number;
|
|
26429
|
+
total_tokens: number;
|
|
26430
|
+
}[];
|
|
26431
|
+
};
|
|
24560
26432
|
apply_stock_consumption: {
|
|
24561
26433
|
Args: {
|
|
24562
26434
|
p_order_id: string;
|
|
@@ -24614,6 +26486,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
24614
26486
|
processed_items: number;
|
|
24615
26487
|
}[];
|
|
24616
26488
|
};
|
|
26489
|
+
calculate_layer_stock: {
|
|
26490
|
+
Args: {
|
|
26491
|
+
p_product_id: string;
|
|
26492
|
+
};
|
|
26493
|
+
Returns: number;
|
|
26494
|
+
};
|
|
24617
26495
|
call_exact_route: {
|
|
24618
26496
|
Args: {
|
|
24619
26497
|
path: string;
|
|
@@ -24673,6 +26551,28 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
24673
26551
|
Args: never;
|
|
24674
26552
|
Returns: undefined;
|
|
24675
26553
|
};
|
|
26554
|
+
consume_bom_for_production: {
|
|
26555
|
+
Args: {
|
|
26556
|
+
p_connection_id: string;
|
|
26557
|
+
p_parent_id: string;
|
|
26558
|
+
p_parent_key: string;
|
|
26559
|
+
p_parent_kind: string;
|
|
26560
|
+
p_quantity: number;
|
|
26561
|
+
p_user_id: string;
|
|
26562
|
+
};
|
|
26563
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
26564
|
+
} | {
|
|
26565
|
+
Args: {
|
|
26566
|
+
p_batch_id?: string;
|
|
26567
|
+
p_connection_id: string;
|
|
26568
|
+
p_parent_id: string;
|
|
26569
|
+
p_parent_key: string;
|
|
26570
|
+
p_parent_kind: string;
|
|
26571
|
+
p_quantity: number;
|
|
26572
|
+
p_user_id: string;
|
|
26573
|
+
};
|
|
26574
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
26575
|
+
};
|
|
24676
26576
|
consume_floriday_rate_limit: {
|
|
24677
26577
|
Args: {
|
|
24678
26578
|
p_bucket: string;
|
|
@@ -24705,6 +26605,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
24705
26605
|
Args: never;
|
|
24706
26606
|
Returns: string;
|
|
24707
26607
|
};
|
|
26608
|
+
custom_access_token_hook: {
|
|
26609
|
+
Args: {
|
|
26610
|
+
event: import("../integrations/supabase/types").Json;
|
|
26611
|
+
};
|
|
26612
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
26613
|
+
};
|
|
24708
26614
|
dashboard_alert_counts: {
|
|
24709
26615
|
Args: never;
|
|
24710
26616
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -24724,6 +26630,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
24724
26630
|
table_name: string;
|
|
24725
26631
|
}[];
|
|
24726
26632
|
};
|
|
26633
|
+
delete_samenstelling: {
|
|
26634
|
+
Args: {
|
|
26635
|
+
p_parent_id: string;
|
|
26636
|
+
p_parent_kind: string;
|
|
26637
|
+
};
|
|
26638
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
26639
|
+
};
|
|
24727
26640
|
dispatch_carrier_signups_sql: {
|
|
24728
26641
|
Args: {
|
|
24729
26642
|
_catchup?: string;
|
|
@@ -24979,6 +26892,27 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
24979
26892
|
minutes_since_success: number;
|
|
24980
26893
|
}[];
|
|
24981
26894
|
};
|
|
26895
|
+
get_group_allocation_keys: {
|
|
26896
|
+
Args: {
|
|
26897
|
+
p_product_id: string;
|
|
26898
|
+
};
|
|
26899
|
+
Returns: {
|
|
26900
|
+
k: string;
|
|
26901
|
+
ord: number;
|
|
26902
|
+
}[];
|
|
26903
|
+
};
|
|
26904
|
+
get_group_head_key: {
|
|
26905
|
+
Args: {
|
|
26906
|
+
p_group_id: string;
|
|
26907
|
+
};
|
|
26908
|
+
Returns: string;
|
|
26909
|
+
};
|
|
26910
|
+
get_inventory_stock_for_key: {
|
|
26911
|
+
Args: {
|
|
26912
|
+
p_key: string;
|
|
26913
|
+
};
|
|
26914
|
+
Returns: number;
|
|
26915
|
+
};
|
|
24982
26916
|
get_offer_by_link_code: {
|
|
24983
26917
|
Args: {
|
|
24984
26918
|
p_code: string;
|
|
@@ -25009,6 +26943,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
25009
26943
|
};
|
|
25010
26944
|
Returns: string;
|
|
25011
26945
|
};
|
|
26946
|
+
get_product_group_available_stock: {
|
|
26947
|
+
Args: {
|
|
26948
|
+
p_group_id: string;
|
|
26949
|
+
};
|
|
26950
|
+
Returns: number;
|
|
26951
|
+
};
|
|
25012
26952
|
get_room_busy_windows: {
|
|
25013
26953
|
Args: {
|
|
25014
26954
|
p_from: string;
|
|
@@ -25073,12 +27013,35 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
25073
27013
|
};
|
|
25074
27014
|
Returns: boolean;
|
|
25075
27015
|
};
|
|
27016
|
+
jwt_has_role: {
|
|
27017
|
+
Args: {
|
|
27018
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
27019
|
+
};
|
|
27020
|
+
Returns: boolean;
|
|
27021
|
+
};
|
|
25076
27022
|
list_monteurs: {
|
|
25077
27023
|
Args: never;
|
|
25078
27024
|
Returns: {
|
|
27025
|
+
avatar_url: string;
|
|
25079
27026
|
display_name: string;
|
|
25080
27027
|
email: string;
|
|
25081
|
-
|
|
27028
|
+
id: string;
|
|
27029
|
+
}[];
|
|
27030
|
+
};
|
|
27031
|
+
list_my_planning_items: {
|
|
27032
|
+
Args: {
|
|
27033
|
+
_from: string;
|
|
27034
|
+
_to: string;
|
|
27035
|
+
};
|
|
27036
|
+
Returns: {
|
|
27037
|
+
assigned_monteur_id: string;
|
|
27038
|
+
end_at: string;
|
|
27039
|
+
id: string;
|
|
27040
|
+
notes: string;
|
|
27041
|
+
role: string;
|
|
27042
|
+
start_at: string;
|
|
27043
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
27044
|
+
werkbon_id: string;
|
|
25082
27045
|
}[];
|
|
25083
27046
|
};
|
|
25084
27047
|
local_effective_price: {
|
|
@@ -25097,6 +27060,22 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
25097
27060
|
source_id: string;
|
|
25098
27061
|
}[];
|
|
25099
27062
|
};
|
|
27063
|
+
log_ai_call: {
|
|
27064
|
+
Args: {
|
|
27065
|
+
_consumer_module_id: string;
|
|
27066
|
+
_cost_usd: number;
|
|
27067
|
+
_duration_ms: number;
|
|
27068
|
+
_error_code: string;
|
|
27069
|
+
_error_message: string;
|
|
27070
|
+
_input_tokens: number;
|
|
27071
|
+
_model_slug: string;
|
|
27072
|
+
_output_tokens: number;
|
|
27073
|
+
_provider_slug: string;
|
|
27074
|
+
_status: string;
|
|
27075
|
+
_total_tokens: number;
|
|
27076
|
+
};
|
|
27077
|
+
Returns: string;
|
|
27078
|
+
};
|
|
25100
27079
|
mark_offer_clicked: {
|
|
25101
27080
|
Args: {
|
|
25102
27081
|
p_code: string;
|
|
@@ -25109,12 +27088,32 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
25109
27088
|
};
|
|
25110
27089
|
Returns: undefined;
|
|
25111
27090
|
};
|
|
27091
|
+
mark_salesorder_controlled: {
|
|
27092
|
+
Args: {
|
|
27093
|
+
p_controlled: boolean;
|
|
27094
|
+
p_floriday_id: string;
|
|
27095
|
+
};
|
|
27096
|
+
Returns: undefined;
|
|
27097
|
+
};
|
|
25112
27098
|
mark_shipment_shipped: {
|
|
25113
27099
|
Args: {
|
|
25114
27100
|
p_shipment_id: string;
|
|
25115
27101
|
};
|
|
25116
27102
|
Returns: undefined;
|
|
25117
27103
|
};
|
|
27104
|
+
merge_products: {
|
|
27105
|
+
Args: {
|
|
27106
|
+
_canonical: string;
|
|
27107
|
+
_loser: string;
|
|
27108
|
+
};
|
|
27109
|
+
Returns: undefined;
|
|
27110
|
+
};
|
|
27111
|
+
next_manufacture_partij: {
|
|
27112
|
+
Args: {
|
|
27113
|
+
_tenant_id: string;
|
|
27114
|
+
};
|
|
27115
|
+
Returns: string;
|
|
27116
|
+
};
|
|
25118
27117
|
next_order_number: {
|
|
25119
27118
|
Args: {
|
|
25120
27119
|
p_prefix: string;
|
|
@@ -25188,6 +27187,15 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
25188
27187
|
};
|
|
25189
27188
|
Returns: undefined;
|
|
25190
27189
|
};
|
|
27190
|
+
pickstation_resolve_delivery_orders: {
|
|
27191
|
+
Args: {
|
|
27192
|
+
p_sales_order_ids: string[];
|
|
27193
|
+
};
|
|
27194
|
+
Returns: {
|
|
27195
|
+
delivery_order_id: string;
|
|
27196
|
+
sales_order_id: string;
|
|
27197
|
+
}[];
|
|
27198
|
+
};
|
|
25191
27199
|
pickstation_set_cart_status: {
|
|
25192
27200
|
Args: {
|
|
25193
27201
|
p_cart_index: number;
|
|
@@ -25197,6 +27205,14 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
25197
27205
|
};
|
|
25198
27206
|
Returns: undefined;
|
|
25199
27207
|
};
|
|
27208
|
+
produce_designed_product: {
|
|
27209
|
+
Args: {
|
|
27210
|
+
p_parent_id: string;
|
|
27211
|
+
p_parent_kind: string;
|
|
27212
|
+
p_quantity: number;
|
|
27213
|
+
};
|
|
27214
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
27215
|
+
};
|
|
25200
27216
|
promote_trade_item_key: {
|
|
25201
27217
|
Args: {
|
|
25202
27218
|
p_new: string;
|
|
@@ -25204,6 +27220,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
25204
27220
|
};
|
|
25205
27221
|
Returns: undefined;
|
|
25206
27222
|
};
|
|
27223
|
+
recompute_all_reserved_stock: {
|
|
27224
|
+
Args: never;
|
|
27225
|
+
Returns: undefined;
|
|
27226
|
+
};
|
|
25207
27227
|
recompute_order_status: {
|
|
25208
27228
|
Args: {
|
|
25209
27229
|
p_order_id: string;
|
|
@@ -25259,18 +27279,50 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
25259
27279
|
};
|
|
25260
27280
|
Returns: undefined;
|
|
25261
27281
|
};
|
|
27282
|
+
resolve_group_allocation: {
|
|
27283
|
+
Args: {
|
|
27284
|
+
_needed: number;
|
|
27285
|
+
_product_group_id: string;
|
|
27286
|
+
};
|
|
27287
|
+
Returns: {
|
|
27288
|
+
allocated: number;
|
|
27289
|
+
trade_item_id: string;
|
|
27290
|
+
}[];
|
|
27291
|
+
};
|
|
27292
|
+
resolve_group_member_stock_key: {
|
|
27293
|
+
Args: {
|
|
27294
|
+
p_trade_item_id: string;
|
|
27295
|
+
};
|
|
27296
|
+
Returns: string;
|
|
27297
|
+
};
|
|
25262
27298
|
resolve_product_id_for_item: {
|
|
25263
27299
|
Args: {
|
|
25264
27300
|
p_product_name: string;
|
|
25265
27301
|
};
|
|
25266
27302
|
Returns: string;
|
|
25267
27303
|
};
|
|
27304
|
+
resolve_stock_trade_item_key: {
|
|
27305
|
+
Args: {
|
|
27306
|
+
p_product_id: string;
|
|
27307
|
+
};
|
|
27308
|
+
Returns: string;
|
|
27309
|
+
};
|
|
25268
27310
|
retry_twinfield_push: {
|
|
25269
27311
|
Args: {
|
|
25270
27312
|
_customer_id: string;
|
|
25271
27313
|
};
|
|
25272
27314
|
Returns: number;
|
|
25273
27315
|
};
|
|
27316
|
+
reverse_production: {
|
|
27317
|
+
Args: {
|
|
27318
|
+
p_connection_id?: string;
|
|
27319
|
+
p_parent_key: string;
|
|
27320
|
+
p_quantity: number;
|
|
27321
|
+
p_reason?: string;
|
|
27322
|
+
p_user_id?: string;
|
|
27323
|
+
};
|
|
27324
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
27325
|
+
};
|
|
25274
27326
|
schedule_floriday_additional_services_sync: {
|
|
25275
27327
|
Args: {
|
|
25276
27328
|
p_apikey: string;
|
|
@@ -25538,6 +27590,17 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
25538
27590
|
};
|
|
25539
27591
|
Returns: number;
|
|
25540
27592
|
};
|
|
27593
|
+
self_heal_floriday_links: {
|
|
27594
|
+
Args: never;
|
|
27595
|
+
Returns: number;
|
|
27596
|
+
};
|
|
27597
|
+
set_planning_status: {
|
|
27598
|
+
Args: {
|
|
27599
|
+
_id: string;
|
|
27600
|
+
_status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
27601
|
+
};
|
|
27602
|
+
Returns: undefined;
|
|
27603
|
+
};
|
|
25541
27604
|
show_limit: {
|
|
25542
27605
|
Args: never;
|
|
25543
27606
|
Returns: number;
|
|
@@ -25548,18 +27611,34 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
25548
27611
|
};
|
|
25549
27612
|
Returns: string[];
|
|
25550
27613
|
};
|
|
27614
|
+
sync_all_layer_stocks: {
|
|
27615
|
+
Args: never;
|
|
27616
|
+
Returns: undefined;
|
|
27617
|
+
};
|
|
25551
27618
|
sync_cached_packing_from_product: {
|
|
25552
27619
|
Args: {
|
|
25553
27620
|
p_product_id: string;
|
|
25554
27621
|
};
|
|
25555
27622
|
Returns: undefined;
|
|
25556
27623
|
};
|
|
27624
|
+
sync_layer_stock: {
|
|
27625
|
+
Args: {
|
|
27626
|
+
p_product_id: string;
|
|
27627
|
+
};
|
|
27628
|
+
Returns: undefined;
|
|
27629
|
+
};
|
|
25557
27630
|
sync_order_cart_item_packing_from_product: {
|
|
25558
27631
|
Args: {
|
|
25559
27632
|
p_product_id: string;
|
|
25560
27633
|
};
|
|
25561
27634
|
Returns: undefined;
|
|
25562
27635
|
};
|
|
27636
|
+
sync_product_group_belading: {
|
|
27637
|
+
Args: {
|
|
27638
|
+
_group_id: string;
|
|
27639
|
+
};
|
|
27640
|
+
Returns: undefined;
|
|
27641
|
+
};
|
|
25563
27642
|
sync_product_packing_from_floriday_cache: {
|
|
25564
27643
|
Args: {
|
|
25565
27644
|
p_floriday_id: string;
|
|
@@ -25591,11 +27670,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
25591
27670
|
};
|
|
25592
27671
|
};
|
|
25593
27672
|
Enums: {
|
|
25594
|
-
app_role: "admin" | "planner" | "monteur" | "administratie";
|
|
27673
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
25595
27674
|
exact_env: "staging" | "live";
|
|
25596
27675
|
exact_push_status: "pending" | "sent" | "error";
|
|
25597
27676
|
itk_customer_segment: "Business" | "Private";
|
|
25598
27677
|
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
27678
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
25599
27679
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
25600
27680
|
};
|
|
25601
27681
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -25889,6 +27969,57 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
25889
27969
|
referencedColumns: ["id"];
|
|
25890
27970
|
}];
|
|
25891
27971
|
};
|
|
27972
|
+
ai_call_log: {
|
|
27973
|
+
Row: {
|
|
27974
|
+
consumer_module_id: string;
|
|
27975
|
+
cost_usd: number | null;
|
|
27976
|
+
created_at: string;
|
|
27977
|
+
created_by: string | null;
|
|
27978
|
+
duration_ms: number | null;
|
|
27979
|
+
error_code: string | null;
|
|
27980
|
+
error_message: string | null;
|
|
27981
|
+
id: string;
|
|
27982
|
+
input_tokens: number;
|
|
27983
|
+
model_slug: string | null;
|
|
27984
|
+
output_tokens: number;
|
|
27985
|
+
provider_slug: string | null;
|
|
27986
|
+
status: string;
|
|
27987
|
+
total_tokens: number;
|
|
27988
|
+
};
|
|
27989
|
+
Insert: {
|
|
27990
|
+
consumer_module_id: string;
|
|
27991
|
+
cost_usd?: number | null;
|
|
27992
|
+
created_at?: string;
|
|
27993
|
+
created_by?: string | null;
|
|
27994
|
+
duration_ms?: number | null;
|
|
27995
|
+
error_code?: string | null;
|
|
27996
|
+
error_message?: string | null;
|
|
27997
|
+
id?: string;
|
|
27998
|
+
input_tokens?: number;
|
|
27999
|
+
model_slug?: string | null;
|
|
28000
|
+
output_tokens?: number;
|
|
28001
|
+
provider_slug?: string | null;
|
|
28002
|
+
status: string;
|
|
28003
|
+
total_tokens?: number;
|
|
28004
|
+
};
|
|
28005
|
+
Update: {
|
|
28006
|
+
consumer_module_id?: string;
|
|
28007
|
+
cost_usd?: number | null;
|
|
28008
|
+
created_at?: string;
|
|
28009
|
+
created_by?: string | null;
|
|
28010
|
+
duration_ms?: number | null;
|
|
28011
|
+
error_code?: string | null;
|
|
28012
|
+
error_message?: string | null;
|
|
28013
|
+
id?: string;
|
|
28014
|
+
input_tokens?: number;
|
|
28015
|
+
model_slug?: string | null;
|
|
28016
|
+
output_tokens?: number;
|
|
28017
|
+
provider_slug?: string | null;
|
|
28018
|
+
status?: string;
|
|
28019
|
+
total_tokens?: number;
|
|
28020
|
+
};
|
|
28021
|
+
Relationships: [];
|
|
28022
|
+
};
|
|
25892
28023
|
ai_credentials: {
|
|
25893
28024
|
Row: {
|
|
25894
28025
|
active: boolean;
|
|
@@ -25925,6 +28056,36 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
25925
28056
|
referencedColumns: ["id"];
|
|
25926
28057
|
}];
|
|
25927
28058
|
};
|
|
28059
|
+
ai_goals: {
|
|
28060
|
+
Row: {
|
|
28061
|
+
active: boolean;
|
|
28062
|
+
created_at: string;
|
|
28063
|
+
description: string | null;
|
|
28064
|
+
key: string;
|
|
28065
|
+
label: string;
|
|
28066
|
+
sort_order: number;
|
|
28067
|
+
updated_at: string;
|
|
28068
|
+
};
|
|
28069
|
+
Insert: {
|
|
28070
|
+
active?: boolean;
|
|
28071
|
+
created_at?: string;
|
|
28072
|
+
description?: string | null;
|
|
28073
|
+
key: string;
|
|
28074
|
+
label: string;
|
|
28075
|
+
sort_order?: number;
|
|
28076
|
+
updated_at?: string;
|
|
28077
|
+
};
|
|
28078
|
+
Update: {
|
|
28079
|
+
active?: boolean;
|
|
28080
|
+
created_at?: string;
|
|
28081
|
+
description?: string | null;
|
|
28082
|
+
key?: string;
|
|
28083
|
+
label?: string;
|
|
28084
|
+
sort_order?: number;
|
|
28085
|
+
updated_at?: string;
|
|
28086
|
+
};
|
|
28087
|
+
Relationships: [];
|
|
28088
|
+
};
|
|
25928
28089
|
ai_model_pricing: {
|
|
25929
28090
|
Row: {
|
|
25930
28091
|
created_at: string;
|
|
@@ -32069,6 +34230,285 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
32069
34230
|
};
|
|
32070
34231
|
Relationships: [];
|
|
32071
34232
|
};
|
|
34233
|
+
logistics_capacity_events: {
|
|
34234
|
+
Row: {
|
|
34235
|
+
available_carts: number;
|
|
34236
|
+
created_at: string;
|
|
34237
|
+
id: string;
|
|
34238
|
+
measures: import("../integrations/supabase/types").Json;
|
|
34239
|
+
note: string | null;
|
|
34240
|
+
outcome: string;
|
|
34241
|
+
required_carts: number;
|
|
34242
|
+
reserve_minutes: number;
|
|
34243
|
+
shortage_carts: number;
|
|
34244
|
+
status: string;
|
|
34245
|
+
user_id: string;
|
|
34246
|
+
};
|
|
34247
|
+
Insert: {
|
|
34248
|
+
available_carts?: number;
|
|
34249
|
+
created_at?: string;
|
|
34250
|
+
id?: string;
|
|
34251
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
34252
|
+
note?: string | null;
|
|
34253
|
+
outcome?: string;
|
|
34254
|
+
required_carts?: number;
|
|
34255
|
+
reserve_minutes?: number;
|
|
34256
|
+
shortage_carts?: number;
|
|
34257
|
+
status: string;
|
|
34258
|
+
user_id: string;
|
|
34259
|
+
};
|
|
34260
|
+
Update: {
|
|
34261
|
+
available_carts?: number;
|
|
34262
|
+
created_at?: string;
|
|
34263
|
+
id?: string;
|
|
34264
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
34265
|
+
note?: string | null;
|
|
34266
|
+
outcome?: string;
|
|
34267
|
+
required_carts?: number;
|
|
34268
|
+
reserve_minutes?: number;
|
|
34269
|
+
shortage_carts?: number;
|
|
34270
|
+
status?: string;
|
|
34271
|
+
user_id?: string;
|
|
34272
|
+
};
|
|
34273
|
+
Relationships: [];
|
|
34274
|
+
};
|
|
34275
|
+
logistics_capacity_settings: {
|
|
34276
|
+
Row: {
|
|
34277
|
+
created_at: string;
|
|
34278
|
+
settings: import("../integrations/supabase/types").Json;
|
|
34279
|
+
updated_at: string;
|
|
34280
|
+
user_id: string;
|
|
34281
|
+
};
|
|
34282
|
+
Insert: {
|
|
34283
|
+
created_at?: string;
|
|
34284
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
34285
|
+
updated_at?: string;
|
|
34286
|
+
user_id: string;
|
|
34287
|
+
};
|
|
34288
|
+
Update: {
|
|
34289
|
+
created_at?: string;
|
|
34290
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
34291
|
+
updated_at?: string;
|
|
34292
|
+
user_id?: string;
|
|
34293
|
+
};
|
|
34294
|
+
Relationships: [];
|
|
34295
|
+
};
|
|
34296
|
+
logistics_decisions: {
|
|
34297
|
+
Row: {
|
|
34298
|
+
created_at: string;
|
|
34299
|
+
explanation: string | null;
|
|
34300
|
+
id: string;
|
|
34301
|
+
input_snapshot: import("../integrations/supabase/types").Json;
|
|
34302
|
+
result: import("../integrations/supabase/types").Json;
|
|
34303
|
+
slot: string;
|
|
34304
|
+
strategy_id: string | null;
|
|
34305
|
+
subject_id: string;
|
|
34306
|
+
subject_type: string;
|
|
34307
|
+
user_id: string;
|
|
34308
|
+
};
|
|
34309
|
+
Insert: {
|
|
34310
|
+
created_at?: string;
|
|
34311
|
+
explanation?: string | null;
|
|
34312
|
+
id?: string;
|
|
34313
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
34314
|
+
result?: import("../integrations/supabase/types").Json;
|
|
34315
|
+
slot: string;
|
|
34316
|
+
strategy_id?: string | null;
|
|
34317
|
+
subject_id: string;
|
|
34318
|
+
subject_type: string;
|
|
34319
|
+
user_id: string;
|
|
34320
|
+
};
|
|
34321
|
+
Update: {
|
|
34322
|
+
created_at?: string;
|
|
34323
|
+
explanation?: string | null;
|
|
34324
|
+
id?: string;
|
|
34325
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
34326
|
+
result?: import("../integrations/supabase/types").Json;
|
|
34327
|
+
slot?: string;
|
|
34328
|
+
strategy_id?: string | null;
|
|
34329
|
+
subject_id?: string;
|
|
34330
|
+
subject_type?: string;
|
|
34331
|
+
user_id?: string;
|
|
34332
|
+
};
|
|
34333
|
+
Relationships: [{
|
|
34334
|
+
foreignKeyName: "logistics_decisions_strategy_id_fkey";
|
|
34335
|
+
columns: ["strategy_id"];
|
|
34336
|
+
isOneToOne: false;
|
|
34337
|
+
referencedRelation: "logistics_strategies";
|
|
34338
|
+
referencedColumns: ["id"];
|
|
34339
|
+
}];
|
|
34340
|
+
};
|
|
34341
|
+
logistics_formulas: {
|
|
34342
|
+
Row: {
|
|
34343
|
+
created_at: string;
|
|
34344
|
+
expression: string;
|
|
34345
|
+
id: string;
|
|
34346
|
+
notes: string | null;
|
|
34347
|
+
slot: string;
|
|
34348
|
+
strategy_id: string;
|
|
34349
|
+
updated_at: string;
|
|
34350
|
+
user_id: string;
|
|
34351
|
+
version: number;
|
|
34352
|
+
};
|
|
34353
|
+
Insert: {
|
|
34354
|
+
created_at?: string;
|
|
34355
|
+
expression?: string;
|
|
34356
|
+
id?: string;
|
|
34357
|
+
notes?: string | null;
|
|
34358
|
+
slot: string;
|
|
34359
|
+
strategy_id: string;
|
|
34360
|
+
updated_at?: string;
|
|
34361
|
+
user_id: string;
|
|
34362
|
+
version?: number;
|
|
34363
|
+
};
|
|
34364
|
+
Update: {
|
|
34365
|
+
created_at?: string;
|
|
34366
|
+
expression?: string;
|
|
34367
|
+
id?: string;
|
|
34368
|
+
notes?: string | null;
|
|
34369
|
+
slot?: string;
|
|
34370
|
+
strategy_id?: string;
|
|
34371
|
+
updated_at?: string;
|
|
34372
|
+
user_id?: string;
|
|
34373
|
+
version?: number;
|
|
34374
|
+
};
|
|
34375
|
+
Relationships: [{
|
|
34376
|
+
foreignKeyName: "logistics_formulas_strategy_id_fkey";
|
|
34377
|
+
columns: ["strategy_id"];
|
|
34378
|
+
isOneToOne: false;
|
|
34379
|
+
referencedRelation: "logistics_strategies";
|
|
34380
|
+
referencedColumns: ["id"];
|
|
34381
|
+
}];
|
|
34382
|
+
};
|
|
34383
|
+
logistics_strategies: {
|
|
34384
|
+
Row: {
|
|
34385
|
+
color: string;
|
|
34386
|
+
created_at: string;
|
|
34387
|
+
description: string | null;
|
|
34388
|
+
id: string;
|
|
34389
|
+
is_active: boolean;
|
|
34390
|
+
name: string;
|
|
34391
|
+
priority: number;
|
|
34392
|
+
updated_at: string;
|
|
34393
|
+
updated_by: string | null;
|
|
34394
|
+
user_id: string;
|
|
34395
|
+
version: number;
|
|
34396
|
+
};
|
|
34397
|
+
Insert: {
|
|
34398
|
+
color?: string;
|
|
34399
|
+
created_at?: string;
|
|
34400
|
+
description?: string | null;
|
|
34401
|
+
id?: string;
|
|
34402
|
+
is_active?: boolean;
|
|
34403
|
+
name: string;
|
|
34404
|
+
priority?: number;
|
|
34405
|
+
updated_at?: string;
|
|
34406
|
+
updated_by?: string | null;
|
|
34407
|
+
user_id: string;
|
|
34408
|
+
version?: number;
|
|
34409
|
+
};
|
|
34410
|
+
Update: {
|
|
34411
|
+
color?: string;
|
|
34412
|
+
created_at?: string;
|
|
34413
|
+
description?: string | null;
|
|
34414
|
+
id?: string;
|
|
34415
|
+
is_active?: boolean;
|
|
34416
|
+
name?: string;
|
|
34417
|
+
priority?: number;
|
|
34418
|
+
updated_at?: string;
|
|
34419
|
+
updated_by?: string | null;
|
|
34420
|
+
user_id?: string;
|
|
34421
|
+
version?: number;
|
|
34422
|
+
};
|
|
34423
|
+
Relationships: [];
|
|
34424
|
+
};
|
|
34425
|
+
logistics_strategy_schedules: {
|
|
34426
|
+
Row: {
|
|
34427
|
+
condition_expression: string | null;
|
|
34428
|
+
created_at: string;
|
|
34429
|
+
end_date: string | null;
|
|
34430
|
+
id: string;
|
|
34431
|
+
is_enabled: boolean;
|
|
34432
|
+
priority: number;
|
|
34433
|
+
rule_type: string;
|
|
34434
|
+
start_date: string | null;
|
|
34435
|
+
strategy_id: string;
|
|
34436
|
+
updated_at: string;
|
|
34437
|
+
user_id: string;
|
|
34438
|
+
};
|
|
34439
|
+
Insert: {
|
|
34440
|
+
condition_expression?: string | null;
|
|
34441
|
+
created_at?: string;
|
|
34442
|
+
end_date?: string | null;
|
|
34443
|
+
id?: string;
|
|
34444
|
+
is_enabled?: boolean;
|
|
34445
|
+
priority?: number;
|
|
34446
|
+
rule_type: string;
|
|
34447
|
+
start_date?: string | null;
|
|
34448
|
+
strategy_id: string;
|
|
34449
|
+
updated_at?: string;
|
|
34450
|
+
user_id: string;
|
|
34451
|
+
};
|
|
34452
|
+
Update: {
|
|
34453
|
+
condition_expression?: string | null;
|
|
34454
|
+
created_at?: string;
|
|
34455
|
+
end_date?: string | null;
|
|
34456
|
+
id?: string;
|
|
34457
|
+
is_enabled?: boolean;
|
|
34458
|
+
priority?: number;
|
|
34459
|
+
rule_type?: string;
|
|
34460
|
+
start_date?: string | null;
|
|
34461
|
+
strategy_id?: string;
|
|
34462
|
+
updated_at?: string;
|
|
34463
|
+
user_id?: string;
|
|
34464
|
+
};
|
|
34465
|
+
Relationships: [{
|
|
34466
|
+
foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
|
|
34467
|
+
columns: ["strategy_id"];
|
|
34468
|
+
isOneToOne: false;
|
|
34469
|
+
referencedRelation: "logistics_strategies";
|
|
34470
|
+
referencedColumns: ["id"];
|
|
34471
|
+
}];
|
|
34472
|
+
};
|
|
34473
|
+
logistics_variables: {
|
|
34474
|
+
Row: {
|
|
34475
|
+
created_at: string;
|
|
34476
|
+
default_value: string | null;
|
|
34477
|
+
description: string | null;
|
|
34478
|
+
id: string;
|
|
34479
|
+
is_builtin: boolean;
|
|
34480
|
+
key: string;
|
|
34481
|
+
label: string;
|
|
34482
|
+
updated_at: string;
|
|
34483
|
+
user_id: string;
|
|
34484
|
+
value_type: string;
|
|
34485
|
+
};
|
|
34486
|
+
Insert: {
|
|
34487
|
+
created_at?: string;
|
|
34488
|
+
default_value?: string | null;
|
|
34489
|
+
description?: string | null;
|
|
34490
|
+
id?: string;
|
|
34491
|
+
is_builtin?: boolean;
|
|
34492
|
+
key: string;
|
|
34493
|
+
label: string;
|
|
34494
|
+
updated_at?: string;
|
|
34495
|
+
user_id: string;
|
|
34496
|
+
value_type: string;
|
|
34497
|
+
};
|
|
34498
|
+
Update: {
|
|
34499
|
+
created_at?: string;
|
|
34500
|
+
default_value?: string | null;
|
|
34501
|
+
description?: string | null;
|
|
34502
|
+
id?: string;
|
|
34503
|
+
is_builtin?: boolean;
|
|
34504
|
+
key?: string;
|
|
34505
|
+
label?: string;
|
|
34506
|
+
updated_at?: string;
|
|
34507
|
+
user_id?: string;
|
|
34508
|
+
value_type?: string;
|
|
34509
|
+
};
|
|
34510
|
+
Relationships: [];
|
|
34511
|
+
};
|
|
32072
34512
|
mailbox_messages: {
|
|
32073
34513
|
Row: {
|
|
32074
34514
|
body_html: string | null;
|
|
@@ -33842,6 +36282,138 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
33842
36282
|
};
|
|
33843
36283
|
Relationships: [];
|
|
33844
36284
|
};
|
|
36285
|
+
planning_item_assistants: {
|
|
36286
|
+
Row: {
|
|
36287
|
+
created_at: string;
|
|
36288
|
+
created_by: string | null;
|
|
36289
|
+
monteur_id: string;
|
|
36290
|
+
planning_item_id: string;
|
|
36291
|
+
};
|
|
36292
|
+
Insert: {
|
|
36293
|
+
created_at?: string;
|
|
36294
|
+
created_by?: string | null;
|
|
36295
|
+
monteur_id: string;
|
|
36296
|
+
planning_item_id: string;
|
|
36297
|
+
};
|
|
36298
|
+
Update: {
|
|
36299
|
+
created_at?: string;
|
|
36300
|
+
created_by?: string | null;
|
|
36301
|
+
monteur_id?: string;
|
|
36302
|
+
planning_item_id?: string;
|
|
36303
|
+
};
|
|
36304
|
+
Relationships: [{
|
|
36305
|
+
foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
|
|
36306
|
+
columns: ["planning_item_id"];
|
|
36307
|
+
isOneToOne: false;
|
|
36308
|
+
referencedRelation: "planning_items";
|
|
36309
|
+
referencedColumns: ["id"];
|
|
36310
|
+
}];
|
|
36311
|
+
};
|
|
36312
|
+
planning_items: {
|
|
36313
|
+
Row: {
|
|
36314
|
+
assigned_monteur_id: string;
|
|
36315
|
+
created_at: string;
|
|
36316
|
+
created_by: string | null;
|
|
36317
|
+
end_at: string;
|
|
36318
|
+
id: string;
|
|
36319
|
+
notes: string | null;
|
|
36320
|
+
start_at: string;
|
|
36321
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
36322
|
+
updated_at: string;
|
|
36323
|
+
werkbon_id: string;
|
|
36324
|
+
};
|
|
36325
|
+
Insert: {
|
|
36326
|
+
assigned_monteur_id: string;
|
|
36327
|
+
created_at?: string;
|
|
36328
|
+
created_by?: string | null;
|
|
36329
|
+
end_at: string;
|
|
36330
|
+
id?: string;
|
|
36331
|
+
notes?: string | null;
|
|
36332
|
+
start_at: string;
|
|
36333
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
36334
|
+
updated_at?: string;
|
|
36335
|
+
werkbon_id: string;
|
|
36336
|
+
};
|
|
36337
|
+
Update: {
|
|
36338
|
+
assigned_monteur_id?: string;
|
|
36339
|
+
created_at?: string;
|
|
36340
|
+
created_by?: string | null;
|
|
36341
|
+
end_at?: string;
|
|
36342
|
+
id?: string;
|
|
36343
|
+
notes?: string | null;
|
|
36344
|
+
start_at?: string;
|
|
36345
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
36346
|
+
updated_at?: string;
|
|
36347
|
+
werkbon_id?: string;
|
|
36348
|
+
};
|
|
36349
|
+
Relationships: [{
|
|
36350
|
+
foreignKeyName: "planning_items_werkbon_id_fkey";
|
|
36351
|
+
columns: ["werkbon_id"];
|
|
36352
|
+
isOneToOne: false;
|
|
36353
|
+
referencedRelation: "werkbonnen";
|
|
36354
|
+
referencedColumns: ["id"];
|
|
36355
|
+
}];
|
|
36356
|
+
};
|
|
36357
|
+
product_bom_items: {
|
|
36358
|
+
Row: {
|
|
36359
|
+
component_product_id: string | null;
|
|
36360
|
+
component_trade_item_floriday_id: string | null;
|
|
36361
|
+
created_at: string;
|
|
36362
|
+
id: string;
|
|
36363
|
+
notes: string | null;
|
|
36364
|
+
packing_configuration_id: string | null;
|
|
36365
|
+
parent_product_id: string | null;
|
|
36366
|
+
parent_trade_item_floriday_id: string | null;
|
|
36367
|
+
quantity: number;
|
|
36368
|
+
sort_order: number;
|
|
36369
|
+
tenant_id: string;
|
|
36370
|
+
unit: string;
|
|
36371
|
+
updated_at: string;
|
|
36372
|
+
};
|
|
36373
|
+
Insert: {
|
|
36374
|
+
component_product_id?: string | null;
|
|
36375
|
+
component_trade_item_floriday_id?: string | null;
|
|
36376
|
+
created_at?: string;
|
|
36377
|
+
id?: string;
|
|
36378
|
+
notes?: string | null;
|
|
36379
|
+
packing_configuration_id?: string | null;
|
|
36380
|
+
parent_product_id?: string | null;
|
|
36381
|
+
parent_trade_item_floriday_id?: string | null;
|
|
36382
|
+
quantity?: number;
|
|
36383
|
+
sort_order?: number;
|
|
36384
|
+
tenant_id: string;
|
|
36385
|
+
unit?: string;
|
|
36386
|
+
updated_at?: string;
|
|
36387
|
+
};
|
|
36388
|
+
Update: {
|
|
36389
|
+
component_product_id?: string | null;
|
|
36390
|
+
component_trade_item_floriday_id?: string | null;
|
|
36391
|
+
created_at?: string;
|
|
36392
|
+
id?: string;
|
|
36393
|
+
notes?: string | null;
|
|
36394
|
+
packing_configuration_id?: string | null;
|
|
36395
|
+
parent_product_id?: string | null;
|
|
36396
|
+
parent_trade_item_floriday_id?: string | null;
|
|
36397
|
+
quantity?: number;
|
|
36398
|
+
sort_order?: number;
|
|
36399
|
+
tenant_id?: string;
|
|
36400
|
+
unit?: string;
|
|
36401
|
+
updated_at?: string;
|
|
36402
|
+
};
|
|
36403
|
+
Relationships: [{
|
|
36404
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
36405
|
+
columns: ["component_product_id"];
|
|
36406
|
+
isOneToOne: false;
|
|
36407
|
+
referencedRelation: "products";
|
|
36408
|
+
referencedColumns: ["id"];
|
|
36409
|
+
}, {
|
|
36410
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
36411
|
+
columns: ["parent_product_id"];
|
|
36412
|
+
isOneToOne: false;
|
|
36413
|
+
referencedRelation: "products";
|
|
36414
|
+
referencedColumns: ["id"];
|
|
36415
|
+
}];
|
|
36416
|
+
};
|
|
33845
36417
|
product_categories: {
|
|
33846
36418
|
Row: {
|
|
33847
36419
|
color: string;
|
|
@@ -33947,6 +36519,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
33947
36519
|
id: string;
|
|
33948
36520
|
product_group_id: string;
|
|
33949
36521
|
quantity: number;
|
|
36522
|
+
sort_order: number;
|
|
33950
36523
|
trade_item_id: string;
|
|
33951
36524
|
};
|
|
33952
36525
|
Insert: {
|
|
@@ -33954,6 +36527,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
33954
36527
|
id?: string;
|
|
33955
36528
|
product_group_id: string;
|
|
33956
36529
|
quantity?: number;
|
|
36530
|
+
sort_order?: number;
|
|
33957
36531
|
trade_item_id: string;
|
|
33958
36532
|
};
|
|
33959
36533
|
Update: {
|
|
@@ -33961,6 +36535,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
33961
36535
|
id?: string;
|
|
33962
36536
|
product_group_id?: string;
|
|
33963
36537
|
quantity?: number;
|
|
36538
|
+
sort_order?: number;
|
|
33964
36539
|
trade_item_id?: string;
|
|
33965
36540
|
};
|
|
33966
36541
|
Relationships: [{
|
|
@@ -33975,6 +36550,8 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
33975
36550
|
Row: {
|
|
33976
36551
|
created_at: string;
|
|
33977
36552
|
description: string | null;
|
|
36553
|
+
head_product_id: string | null;
|
|
36554
|
+
head_trade_item_floriday_id: string | null;
|
|
33978
36555
|
id: string;
|
|
33979
36556
|
is_active: boolean;
|
|
33980
36557
|
name: string;
|
|
@@ -33984,6 +36561,8 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
33984
36561
|
Insert: {
|
|
33985
36562
|
created_at?: string;
|
|
33986
36563
|
description?: string | null;
|
|
36564
|
+
head_product_id?: string | null;
|
|
36565
|
+
head_trade_item_floriday_id?: string | null;
|
|
33987
36566
|
id?: string;
|
|
33988
36567
|
is_active?: boolean;
|
|
33989
36568
|
name: string;
|
|
@@ -33993,24 +36572,134 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
33993
36572
|
Update: {
|
|
33994
36573
|
created_at?: string;
|
|
33995
36574
|
description?: string | null;
|
|
36575
|
+
head_product_id?: string | null;
|
|
36576
|
+
head_trade_item_floriday_id?: string | null;
|
|
33996
36577
|
id?: string;
|
|
33997
36578
|
is_active?: boolean;
|
|
33998
36579
|
name?: string;
|
|
33999
36580
|
tenant_id?: string;
|
|
34000
36581
|
updated_at?: string;
|
|
34001
36582
|
};
|
|
36583
|
+
Relationships: [{
|
|
36584
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
36585
|
+
columns: ["head_product_id"];
|
|
36586
|
+
isOneToOne: false;
|
|
36587
|
+
referencedRelation: "products";
|
|
36588
|
+
referencedColumns: ["id"];
|
|
36589
|
+
}];
|
|
36590
|
+
};
|
|
36591
|
+
product_load_settings: {
|
|
36592
|
+
Row: {
|
|
36593
|
+
created_at: string;
|
|
36594
|
+
id: string;
|
|
36595
|
+
is_package: boolean;
|
|
36596
|
+
label: string | null;
|
|
36597
|
+
layers_per_load_carrier: number | null;
|
|
36598
|
+
load_carrier: string | null;
|
|
36599
|
+
package_id: string | null;
|
|
36600
|
+
package_label: string | null;
|
|
36601
|
+
packages_per_layer: number | null;
|
|
36602
|
+
packing_configuration_id: string;
|
|
36603
|
+
product_id: string | null;
|
|
36604
|
+
tenant_id: string;
|
|
36605
|
+
trade_item_floriday_id: string | null;
|
|
36606
|
+
units_per_package: number | null;
|
|
36607
|
+
updated_at: string;
|
|
36608
|
+
};
|
|
36609
|
+
Insert: {
|
|
36610
|
+
created_at?: string;
|
|
36611
|
+
id?: string;
|
|
36612
|
+
is_package?: boolean;
|
|
36613
|
+
label?: string | null;
|
|
36614
|
+
layers_per_load_carrier?: number | null;
|
|
36615
|
+
load_carrier?: string | null;
|
|
36616
|
+
package_id?: string | null;
|
|
36617
|
+
package_label?: string | null;
|
|
36618
|
+
packages_per_layer?: number | null;
|
|
36619
|
+
packing_configuration_id?: string;
|
|
36620
|
+
product_id?: string | null;
|
|
36621
|
+
tenant_id: string;
|
|
36622
|
+
trade_item_floriday_id?: string | null;
|
|
36623
|
+
units_per_package?: number | null;
|
|
36624
|
+
updated_at?: string;
|
|
36625
|
+
};
|
|
36626
|
+
Update: {
|
|
36627
|
+
created_at?: string;
|
|
36628
|
+
id?: string;
|
|
36629
|
+
is_package?: boolean;
|
|
36630
|
+
label?: string | null;
|
|
36631
|
+
layers_per_load_carrier?: number | null;
|
|
36632
|
+
load_carrier?: string | null;
|
|
36633
|
+
package_id?: string | null;
|
|
36634
|
+
package_label?: string | null;
|
|
36635
|
+
packages_per_layer?: number | null;
|
|
36636
|
+
packing_configuration_id?: string;
|
|
36637
|
+
product_id?: string | null;
|
|
36638
|
+
tenant_id?: string;
|
|
36639
|
+
trade_item_floriday_id?: string | null;
|
|
36640
|
+
units_per_package?: number | null;
|
|
36641
|
+
updated_at?: string;
|
|
36642
|
+
};
|
|
36643
|
+
Relationships: [{
|
|
36644
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
36645
|
+
columns: ["package_id"];
|
|
36646
|
+
isOneToOne: false;
|
|
36647
|
+
referencedRelation: "packages";
|
|
36648
|
+
referencedColumns: ["id"];
|
|
36649
|
+
}, {
|
|
36650
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
36651
|
+
columns: ["product_id"];
|
|
36652
|
+
isOneToOne: false;
|
|
36653
|
+
referencedRelation: "products";
|
|
36654
|
+
referencedColumns: ["id"];
|
|
36655
|
+
}];
|
|
36656
|
+
};
|
|
36657
|
+
product_merge_log: {
|
|
36658
|
+
Row: {
|
|
36659
|
+
canonical_product_id: string | null;
|
|
36660
|
+
id: string;
|
|
36661
|
+
merged_at: string;
|
|
36662
|
+
merged_from_id: string;
|
|
36663
|
+
notes: string | null;
|
|
36664
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
36665
|
+
source_table: string;
|
|
36666
|
+
status: string;
|
|
36667
|
+
};
|
|
36668
|
+
Insert: {
|
|
36669
|
+
canonical_product_id?: string | null;
|
|
36670
|
+
id?: string;
|
|
36671
|
+
merged_at?: string;
|
|
36672
|
+
merged_from_id: string;
|
|
36673
|
+
notes?: string | null;
|
|
36674
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
36675
|
+
source_table: string;
|
|
36676
|
+
status?: string;
|
|
36677
|
+
};
|
|
36678
|
+
Update: {
|
|
36679
|
+
canonical_product_id?: string | null;
|
|
36680
|
+
id?: string;
|
|
36681
|
+
merged_at?: string;
|
|
36682
|
+
merged_from_id?: string;
|
|
36683
|
+
notes?: string | null;
|
|
36684
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
36685
|
+
source_table?: string;
|
|
36686
|
+
status?: string;
|
|
36687
|
+
};
|
|
34002
36688
|
Relationships: [];
|
|
34003
36689
|
};
|
|
34004
36690
|
products: {
|
|
34005
36691
|
Row: {
|
|
36692
|
+
article_number: string | null;
|
|
34006
36693
|
barcode: string | null;
|
|
34007
36694
|
batch: string;
|
|
34008
36695
|
crates_per_layer: number;
|
|
34009
36696
|
created_at: string;
|
|
34010
36697
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
36698
|
+
floriday_trade_item_id: string | null;
|
|
34011
36699
|
id: string;
|
|
34012
36700
|
image_url: string | null;
|
|
34013
36701
|
incoming_quantity: number;
|
|
36702
|
+
is_layer: boolean;
|
|
34014
36703
|
layers_per_cart: number;
|
|
34015
36704
|
location: string;
|
|
34016
36705
|
min_quantity: number;
|
|
@@ -34026,14 +36715,17 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
34026
36715
|
weight: string | null;
|
|
34027
36716
|
};
|
|
34028
36717
|
Insert: {
|
|
36718
|
+
article_number?: string | null;
|
|
34029
36719
|
barcode?: string | null;
|
|
34030
36720
|
batch: string;
|
|
34031
36721
|
crates_per_layer?: number;
|
|
34032
36722
|
created_at?: string;
|
|
34033
36723
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
36724
|
+
floriday_trade_item_id?: string | null;
|
|
34034
36725
|
id?: string;
|
|
34035
36726
|
image_url?: string | null;
|
|
34036
36727
|
incoming_quantity?: number;
|
|
36728
|
+
is_layer?: boolean;
|
|
34037
36729
|
layers_per_cart?: number;
|
|
34038
36730
|
location: string;
|
|
34039
36731
|
min_quantity?: number;
|
|
@@ -34049,14 +36741,17 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
34049
36741
|
weight?: string | null;
|
|
34050
36742
|
};
|
|
34051
36743
|
Update: {
|
|
36744
|
+
article_number?: string | null;
|
|
34052
36745
|
barcode?: string | null;
|
|
34053
36746
|
batch?: string;
|
|
34054
36747
|
crates_per_layer?: number;
|
|
34055
36748
|
created_at?: string;
|
|
34056
36749
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
36750
|
+
floriday_trade_item_id?: string | null;
|
|
34057
36751
|
id?: string;
|
|
34058
36752
|
image_url?: string | null;
|
|
34059
36753
|
incoming_quantity?: number;
|
|
36754
|
+
is_layer?: boolean;
|
|
34060
36755
|
layers_per_cart?: number;
|
|
34061
36756
|
location?: string;
|
|
34062
36757
|
min_quantity?: number;
|
|
@@ -34076,6 +36771,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
34076
36771
|
profiles: {
|
|
34077
36772
|
Row: {
|
|
34078
36773
|
address: string | null;
|
|
36774
|
+
avatar_url: string | null;
|
|
34079
36775
|
created_at: string;
|
|
34080
36776
|
display_name: string | null;
|
|
34081
36777
|
email: string | null;
|
|
@@ -34087,6 +36783,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
34087
36783
|
};
|
|
34088
36784
|
Insert: {
|
|
34089
36785
|
address?: string | null;
|
|
36786
|
+
avatar_url?: string | null;
|
|
34090
36787
|
created_at?: string;
|
|
34091
36788
|
display_name?: string | null;
|
|
34092
36789
|
email?: string | null;
|
|
@@ -34098,6 +36795,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
34098
36795
|
};
|
|
34099
36796
|
Update: {
|
|
34100
36797
|
address?: string | null;
|
|
36798
|
+
avatar_url?: string | null;
|
|
34101
36799
|
created_at?: string;
|
|
34102
36800
|
display_name?: string | null;
|
|
34103
36801
|
email?: string | null;
|
|
@@ -34964,6 +37662,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
34964
37662
|
order_source: string | null;
|
|
34965
37663
|
physical_after: number | null;
|
|
34966
37664
|
physical_before: number | null;
|
|
37665
|
+
production_batch_id: string | null;
|
|
34967
37666
|
qty_delta: number;
|
|
34968
37667
|
reason: string | null;
|
|
34969
37668
|
reserved_after: number | null;
|
|
@@ -34981,6 +37680,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
34981
37680
|
order_source?: string | null;
|
|
34982
37681
|
physical_after?: number | null;
|
|
34983
37682
|
physical_before?: number | null;
|
|
37683
|
+
production_batch_id?: string | null;
|
|
34984
37684
|
qty_delta: number;
|
|
34985
37685
|
reason?: string | null;
|
|
34986
37686
|
reserved_after?: number | null;
|
|
@@ -34998,6 +37698,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
34998
37698
|
order_source?: string | null;
|
|
34999
37699
|
physical_after?: number | null;
|
|
35000
37700
|
physical_before?: number | null;
|
|
37701
|
+
production_batch_id?: string | null;
|
|
35001
37702
|
qty_delta?: number;
|
|
35002
37703
|
reason?: string | null;
|
|
35003
37704
|
reserved_after?: number | null;
|
|
@@ -35324,6 +38025,48 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
35324
38025
|
};
|
|
35325
38026
|
Relationships: [];
|
|
35326
38027
|
};
|
|
38028
|
+
trade_item_prices: {
|
|
38029
|
+
Row: {
|
|
38030
|
+
created_at: string;
|
|
38031
|
+
currency: string;
|
|
38032
|
+
id: string;
|
|
38033
|
+
last_push_error: string | null;
|
|
38034
|
+
last_pushed_at: string | null;
|
|
38035
|
+
price_group_id: string | null;
|
|
38036
|
+
price_per_piece: number;
|
|
38037
|
+
supply_line_id: string | null;
|
|
38038
|
+
trade_item_key: string;
|
|
38039
|
+
updated_at: string;
|
|
38040
|
+
user_id: string;
|
|
38041
|
+
};
|
|
38042
|
+
Insert: {
|
|
38043
|
+
created_at?: string;
|
|
38044
|
+
currency?: string;
|
|
38045
|
+
id?: string;
|
|
38046
|
+
last_push_error?: string | null;
|
|
38047
|
+
last_pushed_at?: string | null;
|
|
38048
|
+
price_group_id?: string | null;
|
|
38049
|
+
price_per_piece: number;
|
|
38050
|
+
supply_line_id?: string | null;
|
|
38051
|
+
trade_item_key: string;
|
|
38052
|
+
updated_at?: string;
|
|
38053
|
+
user_id: string;
|
|
38054
|
+
};
|
|
38055
|
+
Update: {
|
|
38056
|
+
created_at?: string;
|
|
38057
|
+
currency?: string;
|
|
38058
|
+
id?: string;
|
|
38059
|
+
last_push_error?: string | null;
|
|
38060
|
+
last_pushed_at?: string | null;
|
|
38061
|
+
price_group_id?: string | null;
|
|
38062
|
+
price_per_piece?: number;
|
|
38063
|
+
supply_line_id?: string | null;
|
|
38064
|
+
trade_item_key?: string;
|
|
38065
|
+
updated_at?: string;
|
|
38066
|
+
user_id?: string;
|
|
38067
|
+
};
|
|
38068
|
+
Relationships: [];
|
|
38069
|
+
};
|
|
35327
38070
|
trade_item_stock: {
|
|
35328
38071
|
Row: {
|
|
35329
38072
|
connection_id: string;
|
|
@@ -35789,6 +38532,51 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
35789
38532
|
referencedColumns: ["id"];
|
|
35790
38533
|
}];
|
|
35791
38534
|
};
|
|
38535
|
+
twinfield_invoice_pdf_cache: {
|
|
38536
|
+
Row: {
|
|
38537
|
+
connection_id: string;
|
|
38538
|
+
created_at: string;
|
|
38539
|
+
fetched_at: string;
|
|
38540
|
+
id: string;
|
|
38541
|
+
invoice_number: string;
|
|
38542
|
+
last_accessed_at: string;
|
|
38543
|
+
object_path: string;
|
|
38544
|
+
office_code: string;
|
|
38545
|
+
size_bytes: number;
|
|
38546
|
+
updated_at: string;
|
|
38547
|
+
};
|
|
38548
|
+
Insert: {
|
|
38549
|
+
connection_id: string;
|
|
38550
|
+
created_at?: string;
|
|
38551
|
+
fetched_at?: string;
|
|
38552
|
+
id?: string;
|
|
38553
|
+
invoice_number: string;
|
|
38554
|
+
last_accessed_at?: string;
|
|
38555
|
+
object_path: string;
|
|
38556
|
+
office_code: string;
|
|
38557
|
+
size_bytes?: number;
|
|
38558
|
+
updated_at?: string;
|
|
38559
|
+
};
|
|
38560
|
+
Update: {
|
|
38561
|
+
connection_id?: string;
|
|
38562
|
+
created_at?: string;
|
|
38563
|
+
fetched_at?: string;
|
|
38564
|
+
id?: string;
|
|
38565
|
+
invoice_number?: string;
|
|
38566
|
+
last_accessed_at?: string;
|
|
38567
|
+
object_path?: string;
|
|
38568
|
+
office_code?: string;
|
|
38569
|
+
size_bytes?: number;
|
|
38570
|
+
updated_at?: string;
|
|
38571
|
+
};
|
|
38572
|
+
Relationships: [{
|
|
38573
|
+
foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
|
|
38574
|
+
columns: ["connection_id"];
|
|
38575
|
+
isOneToOne: false;
|
|
38576
|
+
referencedRelation: "twinfield_connections";
|
|
38577
|
+
referencedColumns: ["id"];
|
|
38578
|
+
}];
|
|
38579
|
+
};
|
|
35792
38580
|
twinfield_invoice_settings: {
|
|
35793
38581
|
Row: {
|
|
35794
38582
|
created_at: string;
|
|
@@ -36392,6 +39180,78 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
36392
39180
|
};
|
|
36393
39181
|
Relationships: [];
|
|
36394
39182
|
};
|
|
39183
|
+
werkbon_package_ai_rules: {
|
|
39184
|
+
Row: {
|
|
39185
|
+
active: boolean;
|
|
39186
|
+
case_sensitive: boolean;
|
|
39187
|
+
created_at: string;
|
|
39188
|
+
id: string;
|
|
39189
|
+
package_id: string;
|
|
39190
|
+
priority: number;
|
|
39191
|
+
rule_type: string;
|
|
39192
|
+
updated_at: string;
|
|
39193
|
+
value: string;
|
|
39194
|
+
};
|
|
39195
|
+
Insert: {
|
|
39196
|
+
active?: boolean;
|
|
39197
|
+
case_sensitive?: boolean;
|
|
39198
|
+
created_at?: string;
|
|
39199
|
+
id?: string;
|
|
39200
|
+
package_id: string;
|
|
39201
|
+
priority?: number;
|
|
39202
|
+
rule_type: string;
|
|
39203
|
+
updated_at?: string;
|
|
39204
|
+
value: string;
|
|
39205
|
+
};
|
|
39206
|
+
Update: {
|
|
39207
|
+
active?: boolean;
|
|
39208
|
+
case_sensitive?: boolean;
|
|
39209
|
+
created_at?: string;
|
|
39210
|
+
id?: string;
|
|
39211
|
+
package_id?: string;
|
|
39212
|
+
priority?: number;
|
|
39213
|
+
rule_type?: string;
|
|
39214
|
+
updated_at?: string;
|
|
39215
|
+
value?: string;
|
|
39216
|
+
};
|
|
39217
|
+
Relationships: [{
|
|
39218
|
+
foreignKeyName: "werkbon_package_ai_rules_package_id_fkey";
|
|
39219
|
+
columns: ["package_id"];
|
|
39220
|
+
isOneToOne: false;
|
|
39221
|
+
referencedRelation: "werkbon_packages";
|
|
39222
|
+
referencedColumns: ["id"];
|
|
39223
|
+
}];
|
|
39224
|
+
};
|
|
39225
|
+
werkbon_package_categories: {
|
|
39226
|
+
Row: {
|
|
39227
|
+
active: boolean;
|
|
39228
|
+
created_at: string;
|
|
39229
|
+
id: string;
|
|
39230
|
+
kleur: string | null;
|
|
39231
|
+
naam: string;
|
|
39232
|
+
sort_order: number;
|
|
39233
|
+
updated_at: string;
|
|
39234
|
+
};
|
|
39235
|
+
Insert: {
|
|
39236
|
+
active?: boolean;
|
|
39237
|
+
created_at?: string;
|
|
39238
|
+
id?: string;
|
|
39239
|
+
kleur?: string | null;
|
|
39240
|
+
naam: string;
|
|
39241
|
+
sort_order?: number;
|
|
39242
|
+
updated_at?: string;
|
|
39243
|
+
};
|
|
39244
|
+
Update: {
|
|
39245
|
+
active?: boolean;
|
|
39246
|
+
created_at?: string;
|
|
39247
|
+
id?: string;
|
|
39248
|
+
kleur?: string | null;
|
|
39249
|
+
naam?: string;
|
|
39250
|
+
sort_order?: number;
|
|
39251
|
+
updated_at?: string;
|
|
39252
|
+
};
|
|
39253
|
+
Relationships: [];
|
|
39254
|
+
};
|
|
36395
39255
|
werkbon_package_lines: {
|
|
36396
39256
|
Row: {
|
|
36397
39257
|
created_at: string;
|
|
@@ -36437,38 +39297,59 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
36437
39297
|
werkbon_packages: {
|
|
36438
39298
|
Row: {
|
|
36439
39299
|
active: boolean;
|
|
39300
|
+
ai_tags: string[];
|
|
39301
|
+
category_id: string | null;
|
|
36440
39302
|
code: string;
|
|
36441
39303
|
created_at: string;
|
|
36442
39304
|
default_quantity: number;
|
|
36443
39305
|
description: string | null;
|
|
39306
|
+
duration_minutes: number | null;
|
|
36444
39307
|
id: string;
|
|
39308
|
+
mandaat_type: string | null;
|
|
36445
39309
|
name: string;
|
|
39310
|
+
sort_order: number;
|
|
36446
39311
|
unit_price_cents: number;
|
|
36447
39312
|
updated_at: string;
|
|
36448
39313
|
};
|
|
36449
39314
|
Insert: {
|
|
36450
39315
|
active?: boolean;
|
|
39316
|
+
ai_tags?: string[];
|
|
39317
|
+
category_id?: string | null;
|
|
36451
39318
|
code: string;
|
|
36452
39319
|
created_at?: string;
|
|
36453
39320
|
default_quantity?: number;
|
|
36454
39321
|
description?: string | null;
|
|
39322
|
+
duration_minutes?: number | null;
|
|
36455
39323
|
id?: string;
|
|
39324
|
+
mandaat_type?: string | null;
|
|
36456
39325
|
name: string;
|
|
39326
|
+
sort_order?: number;
|
|
36457
39327
|
unit_price_cents?: number;
|
|
36458
39328
|
updated_at?: string;
|
|
36459
39329
|
};
|
|
36460
39330
|
Update: {
|
|
36461
39331
|
active?: boolean;
|
|
39332
|
+
ai_tags?: string[];
|
|
39333
|
+
category_id?: string | null;
|
|
36462
39334
|
code?: string;
|
|
36463
39335
|
created_at?: string;
|
|
36464
39336
|
default_quantity?: number;
|
|
36465
39337
|
description?: string | null;
|
|
39338
|
+
duration_minutes?: number | null;
|
|
36466
39339
|
id?: string;
|
|
39340
|
+
mandaat_type?: string | null;
|
|
36467
39341
|
name?: string;
|
|
39342
|
+
sort_order?: number;
|
|
36468
39343
|
unit_price_cents?: number;
|
|
36469
39344
|
updated_at?: string;
|
|
36470
39345
|
};
|
|
36471
|
-
Relationships: [
|
|
39346
|
+
Relationships: [{
|
|
39347
|
+
foreignKeyName: "werkbon_packages_category_id_fkey";
|
|
39348
|
+
columns: ["category_id"];
|
|
39349
|
+
isOneToOne: false;
|
|
39350
|
+
referencedRelation: "werkbon_package_categories";
|
|
39351
|
+
referencedColumns: ["id"];
|
|
39352
|
+
}];
|
|
36472
39353
|
};
|
|
36473
39354
|
werkbon_photos: {
|
|
36474
39355
|
Row: {
|
|
@@ -36556,7 +39437,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
36556
39437
|
scheduled_end_time: string | null;
|
|
36557
39438
|
scheduled_start_time: string | null;
|
|
36558
39439
|
sequence_number: number;
|
|
39440
|
+
source_email_meta: import("../integrations/supabase/types").Json | null;
|
|
39441
|
+
source_mailbox_message_id: string | null;
|
|
36559
39442
|
source_pdf_path: string | null;
|
|
39443
|
+
source_type: string;
|
|
36560
39444
|
status: string;
|
|
36561
39445
|
technician_id: string | null;
|
|
36562
39446
|
technician_notes: string | null;
|
|
@@ -36585,7 +39469,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
36585
39469
|
scheduled_end_time?: string | null;
|
|
36586
39470
|
scheduled_start_time?: string | null;
|
|
36587
39471
|
sequence_number: number;
|
|
39472
|
+
source_email_meta?: import("../integrations/supabase/types").Json | null;
|
|
39473
|
+
source_mailbox_message_id?: string | null;
|
|
36588
39474
|
source_pdf_path?: string | null;
|
|
39475
|
+
source_type?: string;
|
|
36589
39476
|
status?: string;
|
|
36590
39477
|
technician_id?: string | null;
|
|
36591
39478
|
technician_notes?: string | null;
|
|
@@ -36614,7 +39501,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
36614
39501
|
scheduled_end_time?: string | null;
|
|
36615
39502
|
scheduled_start_time?: string | null;
|
|
36616
39503
|
sequence_number?: number;
|
|
39504
|
+
source_email_meta?: import("../integrations/supabase/types").Json | null;
|
|
39505
|
+
source_mailbox_message_id?: string | null;
|
|
36617
39506
|
source_pdf_path?: string | null;
|
|
39507
|
+
source_type?: string;
|
|
36618
39508
|
status?: string;
|
|
36619
39509
|
technician_id?: string | null;
|
|
36620
39510
|
technician_notes?: string | null;
|
|
@@ -36631,10 +39521,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
36631
39521
|
referencedRelation: "werkbonnen";
|
|
36632
39522
|
referencedColumns: ["id"];
|
|
36633
39523
|
}, {
|
|
36634
|
-
foreignKeyName: "
|
|
36635
|
-
columns: ["
|
|
39524
|
+
foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
|
|
39525
|
+
columns: ["source_mailbox_message_id"];
|
|
36636
39526
|
isOneToOne: false;
|
|
36637
|
-
referencedRelation: "
|
|
39527
|
+
referencedRelation: "mailbox_messages";
|
|
36638
39528
|
referencedColumns: ["id"];
|
|
36639
39529
|
}];
|
|
36640
39530
|
};
|
|
@@ -37328,6 +40218,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37328
40218
|
};
|
|
37329
40219
|
Returns: number;
|
|
37330
40220
|
};
|
|
40221
|
+
_migrate_rewrite_stock_key: {
|
|
40222
|
+
Args: {
|
|
40223
|
+
_from_key: string;
|
|
40224
|
+
_to_key: string;
|
|
40225
|
+
};
|
|
40226
|
+
Returns: undefined;
|
|
40227
|
+
};
|
|
37331
40228
|
afh_city_code: {
|
|
37332
40229
|
Args: {
|
|
37333
40230
|
_city: string;
|
|
@@ -37354,6 +40251,21 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37354
40251
|
};
|
|
37355
40252
|
Returns: string;
|
|
37356
40253
|
};
|
|
40254
|
+
ai_usage_by_module: {
|
|
40255
|
+
Args: {
|
|
40256
|
+
_from: string;
|
|
40257
|
+
_to: string;
|
|
40258
|
+
};
|
|
40259
|
+
Returns: {
|
|
40260
|
+
calls: number;
|
|
40261
|
+
consumer_module_id: string;
|
|
40262
|
+
cost_usd: number;
|
|
40263
|
+
errors: number;
|
|
40264
|
+
input_tokens: number;
|
|
40265
|
+
output_tokens: number;
|
|
40266
|
+
total_tokens: number;
|
|
40267
|
+
}[];
|
|
40268
|
+
};
|
|
37357
40269
|
apply_stock_consumption: {
|
|
37358
40270
|
Args: {
|
|
37359
40271
|
p_order_id: string;
|
|
@@ -37411,6 +40323,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37411
40323
|
processed_items: number;
|
|
37412
40324
|
}[];
|
|
37413
40325
|
};
|
|
40326
|
+
calculate_layer_stock: {
|
|
40327
|
+
Args: {
|
|
40328
|
+
p_product_id: string;
|
|
40329
|
+
};
|
|
40330
|
+
Returns: number;
|
|
40331
|
+
};
|
|
37414
40332
|
call_exact_route: {
|
|
37415
40333
|
Args: {
|
|
37416
40334
|
path: string;
|
|
@@ -37470,6 +40388,28 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37470
40388
|
Args: never;
|
|
37471
40389
|
Returns: undefined;
|
|
37472
40390
|
};
|
|
40391
|
+
consume_bom_for_production: {
|
|
40392
|
+
Args: {
|
|
40393
|
+
p_connection_id: string;
|
|
40394
|
+
p_parent_id: string;
|
|
40395
|
+
p_parent_key: string;
|
|
40396
|
+
p_parent_kind: string;
|
|
40397
|
+
p_quantity: number;
|
|
40398
|
+
p_user_id: string;
|
|
40399
|
+
};
|
|
40400
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
40401
|
+
} | {
|
|
40402
|
+
Args: {
|
|
40403
|
+
p_batch_id?: string;
|
|
40404
|
+
p_connection_id: string;
|
|
40405
|
+
p_parent_id: string;
|
|
40406
|
+
p_parent_key: string;
|
|
40407
|
+
p_parent_kind: string;
|
|
40408
|
+
p_quantity: number;
|
|
40409
|
+
p_user_id: string;
|
|
40410
|
+
};
|
|
40411
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
40412
|
+
};
|
|
37473
40413
|
consume_floriday_rate_limit: {
|
|
37474
40414
|
Args: {
|
|
37475
40415
|
p_bucket: string;
|
|
@@ -37502,6 +40442,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37502
40442
|
Args: never;
|
|
37503
40443
|
Returns: string;
|
|
37504
40444
|
};
|
|
40445
|
+
custom_access_token_hook: {
|
|
40446
|
+
Args: {
|
|
40447
|
+
event: import("../integrations/supabase/types").Json;
|
|
40448
|
+
};
|
|
40449
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
40450
|
+
};
|
|
37505
40451
|
dashboard_alert_counts: {
|
|
37506
40452
|
Args: never;
|
|
37507
40453
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -37521,6 +40467,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37521
40467
|
table_name: string;
|
|
37522
40468
|
}[];
|
|
37523
40469
|
};
|
|
40470
|
+
delete_samenstelling: {
|
|
40471
|
+
Args: {
|
|
40472
|
+
p_parent_id: string;
|
|
40473
|
+
p_parent_kind: string;
|
|
40474
|
+
};
|
|
40475
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
40476
|
+
};
|
|
37524
40477
|
dispatch_carrier_signups_sql: {
|
|
37525
40478
|
Args: {
|
|
37526
40479
|
_catchup?: string;
|
|
@@ -37776,6 +40729,27 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37776
40729
|
minutes_since_success: number;
|
|
37777
40730
|
}[];
|
|
37778
40731
|
};
|
|
40732
|
+
get_group_allocation_keys: {
|
|
40733
|
+
Args: {
|
|
40734
|
+
p_product_id: string;
|
|
40735
|
+
};
|
|
40736
|
+
Returns: {
|
|
40737
|
+
k: string;
|
|
40738
|
+
ord: number;
|
|
40739
|
+
}[];
|
|
40740
|
+
};
|
|
40741
|
+
get_group_head_key: {
|
|
40742
|
+
Args: {
|
|
40743
|
+
p_group_id: string;
|
|
40744
|
+
};
|
|
40745
|
+
Returns: string;
|
|
40746
|
+
};
|
|
40747
|
+
get_inventory_stock_for_key: {
|
|
40748
|
+
Args: {
|
|
40749
|
+
p_key: string;
|
|
40750
|
+
};
|
|
40751
|
+
Returns: number;
|
|
40752
|
+
};
|
|
37779
40753
|
get_offer_by_link_code: {
|
|
37780
40754
|
Args: {
|
|
37781
40755
|
p_code: string;
|
|
@@ -37806,6 +40780,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37806
40780
|
};
|
|
37807
40781
|
Returns: string;
|
|
37808
40782
|
};
|
|
40783
|
+
get_product_group_available_stock: {
|
|
40784
|
+
Args: {
|
|
40785
|
+
p_group_id: string;
|
|
40786
|
+
};
|
|
40787
|
+
Returns: number;
|
|
40788
|
+
};
|
|
37809
40789
|
get_room_busy_windows: {
|
|
37810
40790
|
Args: {
|
|
37811
40791
|
p_from: string;
|
|
@@ -37870,12 +40850,35 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37870
40850
|
};
|
|
37871
40851
|
Returns: boolean;
|
|
37872
40852
|
};
|
|
40853
|
+
jwt_has_role: {
|
|
40854
|
+
Args: {
|
|
40855
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
40856
|
+
};
|
|
40857
|
+
Returns: boolean;
|
|
40858
|
+
};
|
|
37873
40859
|
list_monteurs: {
|
|
37874
40860
|
Args: never;
|
|
37875
40861
|
Returns: {
|
|
40862
|
+
avatar_url: string;
|
|
37876
40863
|
display_name: string;
|
|
37877
40864
|
email: string;
|
|
37878
|
-
|
|
40865
|
+
id: string;
|
|
40866
|
+
}[];
|
|
40867
|
+
};
|
|
40868
|
+
list_my_planning_items: {
|
|
40869
|
+
Args: {
|
|
40870
|
+
_from: string;
|
|
40871
|
+
_to: string;
|
|
40872
|
+
};
|
|
40873
|
+
Returns: {
|
|
40874
|
+
assigned_monteur_id: string;
|
|
40875
|
+
end_at: string;
|
|
40876
|
+
id: string;
|
|
40877
|
+
notes: string;
|
|
40878
|
+
role: string;
|
|
40879
|
+
start_at: string;
|
|
40880
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
40881
|
+
werkbon_id: string;
|
|
37879
40882
|
}[];
|
|
37880
40883
|
};
|
|
37881
40884
|
local_effective_price: {
|
|
@@ -37894,6 +40897,22 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37894
40897
|
source_id: string;
|
|
37895
40898
|
}[];
|
|
37896
40899
|
};
|
|
40900
|
+
log_ai_call: {
|
|
40901
|
+
Args: {
|
|
40902
|
+
_consumer_module_id: string;
|
|
40903
|
+
_cost_usd: number;
|
|
40904
|
+
_duration_ms: number;
|
|
40905
|
+
_error_code: string;
|
|
40906
|
+
_error_message: string;
|
|
40907
|
+
_input_tokens: number;
|
|
40908
|
+
_model_slug: string;
|
|
40909
|
+
_output_tokens: number;
|
|
40910
|
+
_provider_slug: string;
|
|
40911
|
+
_status: string;
|
|
40912
|
+
_total_tokens: number;
|
|
40913
|
+
};
|
|
40914
|
+
Returns: string;
|
|
40915
|
+
};
|
|
37897
40916
|
mark_offer_clicked: {
|
|
37898
40917
|
Args: {
|
|
37899
40918
|
p_code: string;
|
|
@@ -37906,12 +40925,32 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37906
40925
|
};
|
|
37907
40926
|
Returns: undefined;
|
|
37908
40927
|
};
|
|
40928
|
+
mark_salesorder_controlled: {
|
|
40929
|
+
Args: {
|
|
40930
|
+
p_controlled: boolean;
|
|
40931
|
+
p_floriday_id: string;
|
|
40932
|
+
};
|
|
40933
|
+
Returns: undefined;
|
|
40934
|
+
};
|
|
37909
40935
|
mark_shipment_shipped: {
|
|
37910
40936
|
Args: {
|
|
37911
40937
|
p_shipment_id: string;
|
|
37912
40938
|
};
|
|
37913
40939
|
Returns: undefined;
|
|
37914
40940
|
};
|
|
40941
|
+
merge_products: {
|
|
40942
|
+
Args: {
|
|
40943
|
+
_canonical: string;
|
|
40944
|
+
_loser: string;
|
|
40945
|
+
};
|
|
40946
|
+
Returns: undefined;
|
|
40947
|
+
};
|
|
40948
|
+
next_manufacture_partij: {
|
|
40949
|
+
Args: {
|
|
40950
|
+
_tenant_id: string;
|
|
40951
|
+
};
|
|
40952
|
+
Returns: string;
|
|
40953
|
+
};
|
|
37915
40954
|
next_order_number: {
|
|
37916
40955
|
Args: {
|
|
37917
40956
|
p_prefix: string;
|
|
@@ -37985,6 +41024,15 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37985
41024
|
};
|
|
37986
41025
|
Returns: undefined;
|
|
37987
41026
|
};
|
|
41027
|
+
pickstation_resolve_delivery_orders: {
|
|
41028
|
+
Args: {
|
|
41029
|
+
p_sales_order_ids: string[];
|
|
41030
|
+
};
|
|
41031
|
+
Returns: {
|
|
41032
|
+
delivery_order_id: string;
|
|
41033
|
+
sales_order_id: string;
|
|
41034
|
+
}[];
|
|
41035
|
+
};
|
|
37988
41036
|
pickstation_set_cart_status: {
|
|
37989
41037
|
Args: {
|
|
37990
41038
|
p_cart_index: number;
|
|
@@ -37994,6 +41042,14 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
37994
41042
|
};
|
|
37995
41043
|
Returns: undefined;
|
|
37996
41044
|
};
|
|
41045
|
+
produce_designed_product: {
|
|
41046
|
+
Args: {
|
|
41047
|
+
p_parent_id: string;
|
|
41048
|
+
p_parent_kind: string;
|
|
41049
|
+
p_quantity: number;
|
|
41050
|
+
};
|
|
41051
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
41052
|
+
};
|
|
37997
41053
|
promote_trade_item_key: {
|
|
37998
41054
|
Args: {
|
|
37999
41055
|
p_new: string;
|
|
@@ -38001,6 +41057,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
38001
41057
|
};
|
|
38002
41058
|
Returns: undefined;
|
|
38003
41059
|
};
|
|
41060
|
+
recompute_all_reserved_stock: {
|
|
41061
|
+
Args: never;
|
|
41062
|
+
Returns: undefined;
|
|
41063
|
+
};
|
|
38004
41064
|
recompute_order_status: {
|
|
38005
41065
|
Args: {
|
|
38006
41066
|
p_order_id: string;
|
|
@@ -38056,18 +41116,50 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
38056
41116
|
};
|
|
38057
41117
|
Returns: undefined;
|
|
38058
41118
|
};
|
|
41119
|
+
resolve_group_allocation: {
|
|
41120
|
+
Args: {
|
|
41121
|
+
_needed: number;
|
|
41122
|
+
_product_group_id: string;
|
|
41123
|
+
};
|
|
41124
|
+
Returns: {
|
|
41125
|
+
allocated: number;
|
|
41126
|
+
trade_item_id: string;
|
|
41127
|
+
}[];
|
|
41128
|
+
};
|
|
41129
|
+
resolve_group_member_stock_key: {
|
|
41130
|
+
Args: {
|
|
41131
|
+
p_trade_item_id: string;
|
|
41132
|
+
};
|
|
41133
|
+
Returns: string;
|
|
41134
|
+
};
|
|
38059
41135
|
resolve_product_id_for_item: {
|
|
38060
41136
|
Args: {
|
|
38061
41137
|
p_product_name: string;
|
|
38062
41138
|
};
|
|
38063
41139
|
Returns: string;
|
|
38064
41140
|
};
|
|
41141
|
+
resolve_stock_trade_item_key: {
|
|
41142
|
+
Args: {
|
|
41143
|
+
p_product_id: string;
|
|
41144
|
+
};
|
|
41145
|
+
Returns: string;
|
|
41146
|
+
};
|
|
38065
41147
|
retry_twinfield_push: {
|
|
38066
41148
|
Args: {
|
|
38067
41149
|
_customer_id: string;
|
|
38068
41150
|
};
|
|
38069
41151
|
Returns: number;
|
|
38070
41152
|
};
|
|
41153
|
+
reverse_production: {
|
|
41154
|
+
Args: {
|
|
41155
|
+
p_connection_id?: string;
|
|
41156
|
+
p_parent_key: string;
|
|
41157
|
+
p_quantity: number;
|
|
41158
|
+
p_reason?: string;
|
|
41159
|
+
p_user_id?: string;
|
|
41160
|
+
};
|
|
41161
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
41162
|
+
};
|
|
38071
41163
|
schedule_floriday_additional_services_sync: {
|
|
38072
41164
|
Args: {
|
|
38073
41165
|
p_apikey: string;
|
|
@@ -38335,6 +41427,17 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
38335
41427
|
};
|
|
38336
41428
|
Returns: number;
|
|
38337
41429
|
};
|
|
41430
|
+
self_heal_floriday_links: {
|
|
41431
|
+
Args: never;
|
|
41432
|
+
Returns: number;
|
|
41433
|
+
};
|
|
41434
|
+
set_planning_status: {
|
|
41435
|
+
Args: {
|
|
41436
|
+
_id: string;
|
|
41437
|
+
_status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"];
|
|
41438
|
+
};
|
|
41439
|
+
Returns: undefined;
|
|
41440
|
+
};
|
|
38338
41441
|
show_limit: {
|
|
38339
41442
|
Args: never;
|
|
38340
41443
|
Returns: number;
|
|
@@ -38345,18 +41448,34 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
38345
41448
|
};
|
|
38346
41449
|
Returns: string[];
|
|
38347
41450
|
};
|
|
41451
|
+
sync_all_layer_stocks: {
|
|
41452
|
+
Args: never;
|
|
41453
|
+
Returns: undefined;
|
|
41454
|
+
};
|
|
38348
41455
|
sync_cached_packing_from_product: {
|
|
38349
41456
|
Args: {
|
|
38350
41457
|
p_product_id: string;
|
|
38351
41458
|
};
|
|
38352
41459
|
Returns: undefined;
|
|
38353
41460
|
};
|
|
41461
|
+
sync_layer_stock: {
|
|
41462
|
+
Args: {
|
|
41463
|
+
p_product_id: string;
|
|
41464
|
+
};
|
|
41465
|
+
Returns: undefined;
|
|
41466
|
+
};
|
|
38354
41467
|
sync_order_cart_item_packing_from_product: {
|
|
38355
41468
|
Args: {
|
|
38356
41469
|
p_product_id: string;
|
|
38357
41470
|
};
|
|
38358
41471
|
Returns: undefined;
|
|
38359
41472
|
};
|
|
41473
|
+
sync_product_group_belading: {
|
|
41474
|
+
Args: {
|
|
41475
|
+
_group_id: string;
|
|
41476
|
+
};
|
|
41477
|
+
Returns: undefined;
|
|
41478
|
+
};
|
|
38360
41479
|
sync_product_packing_from_floriday_cache: {
|
|
38361
41480
|
Args: {
|
|
38362
41481
|
p_floriday_id: string;
|
|
@@ -38388,11 +41507,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
38388
41507
|
};
|
|
38389
41508
|
};
|
|
38390
41509
|
Enums: {
|
|
38391
|
-
app_role: "admin" | "planner" | "monteur" | "administratie";
|
|
41510
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
38392
41511
|
exact_env: "staging" | "live";
|
|
38393
41512
|
exact_push_status: "pending" | "sent" | "error";
|
|
38394
41513
|
itk_customer_segment: "Business" | "Private";
|
|
38395
41514
|
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
41515
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
38396
41516
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
38397
41517
|
};
|
|
38398
41518
|
CompositeTypes: { [_ in never]: never; };
|