@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
|
@@ -285,6 +285,57 @@ export type Database = {
|
|
|
285
285
|
}
|
|
286
286
|
];
|
|
287
287
|
};
|
|
288
|
+
ai_call_log: {
|
|
289
|
+
Row: {
|
|
290
|
+
consumer_module_id: string;
|
|
291
|
+
cost_usd: number | null;
|
|
292
|
+
created_at: string;
|
|
293
|
+
created_by: string | null;
|
|
294
|
+
duration_ms: number | null;
|
|
295
|
+
error_code: string | null;
|
|
296
|
+
error_message: string | null;
|
|
297
|
+
id: string;
|
|
298
|
+
input_tokens: number;
|
|
299
|
+
model_slug: string | null;
|
|
300
|
+
output_tokens: number;
|
|
301
|
+
provider_slug: string | null;
|
|
302
|
+
status: string;
|
|
303
|
+
total_tokens: number;
|
|
304
|
+
};
|
|
305
|
+
Insert: {
|
|
306
|
+
consumer_module_id: string;
|
|
307
|
+
cost_usd?: number | null;
|
|
308
|
+
created_at?: string;
|
|
309
|
+
created_by?: string | null;
|
|
310
|
+
duration_ms?: number | null;
|
|
311
|
+
error_code?: string | null;
|
|
312
|
+
error_message?: string | null;
|
|
313
|
+
id?: string;
|
|
314
|
+
input_tokens?: number;
|
|
315
|
+
model_slug?: string | null;
|
|
316
|
+
output_tokens?: number;
|
|
317
|
+
provider_slug?: string | null;
|
|
318
|
+
status: string;
|
|
319
|
+
total_tokens?: number;
|
|
320
|
+
};
|
|
321
|
+
Update: {
|
|
322
|
+
consumer_module_id?: string;
|
|
323
|
+
cost_usd?: number | null;
|
|
324
|
+
created_at?: string;
|
|
325
|
+
created_by?: string | null;
|
|
326
|
+
duration_ms?: number | null;
|
|
327
|
+
error_code?: string | null;
|
|
328
|
+
error_message?: string | null;
|
|
329
|
+
id?: string;
|
|
330
|
+
input_tokens?: number;
|
|
331
|
+
model_slug?: string | null;
|
|
332
|
+
output_tokens?: number;
|
|
333
|
+
provider_slug?: string | null;
|
|
334
|
+
status?: string;
|
|
335
|
+
total_tokens?: number;
|
|
336
|
+
};
|
|
337
|
+
Relationships: [];
|
|
338
|
+
};
|
|
288
339
|
ai_credentials: {
|
|
289
340
|
Row: {
|
|
290
341
|
active: boolean;
|
|
@@ -323,6 +374,36 @@ export type Database = {
|
|
|
323
374
|
}
|
|
324
375
|
];
|
|
325
376
|
};
|
|
377
|
+
ai_goals: {
|
|
378
|
+
Row: {
|
|
379
|
+
active: boolean;
|
|
380
|
+
created_at: string;
|
|
381
|
+
description: string | null;
|
|
382
|
+
key: string;
|
|
383
|
+
label: string;
|
|
384
|
+
sort_order: number;
|
|
385
|
+
updated_at: string;
|
|
386
|
+
};
|
|
387
|
+
Insert: {
|
|
388
|
+
active?: boolean;
|
|
389
|
+
created_at?: string;
|
|
390
|
+
description?: string | null;
|
|
391
|
+
key: string;
|
|
392
|
+
label: string;
|
|
393
|
+
sort_order?: number;
|
|
394
|
+
updated_at?: string;
|
|
395
|
+
};
|
|
396
|
+
Update: {
|
|
397
|
+
active?: boolean;
|
|
398
|
+
created_at?: string;
|
|
399
|
+
description?: string | null;
|
|
400
|
+
key?: string;
|
|
401
|
+
label?: string;
|
|
402
|
+
sort_order?: number;
|
|
403
|
+
updated_at?: string;
|
|
404
|
+
};
|
|
405
|
+
Relationships: [];
|
|
406
|
+
};
|
|
326
407
|
ai_model_pricing: {
|
|
327
408
|
Row: {
|
|
328
409
|
created_at: string;
|
|
@@ -6652,6 +6733,291 @@ export type Database = {
|
|
|
6652
6733
|
};
|
|
6653
6734
|
Relationships: [];
|
|
6654
6735
|
};
|
|
6736
|
+
logistics_capacity_events: {
|
|
6737
|
+
Row: {
|
|
6738
|
+
available_carts: number;
|
|
6739
|
+
created_at: string;
|
|
6740
|
+
id: string;
|
|
6741
|
+
measures: Json;
|
|
6742
|
+
note: string | null;
|
|
6743
|
+
outcome: string;
|
|
6744
|
+
required_carts: number;
|
|
6745
|
+
reserve_minutes: number;
|
|
6746
|
+
shortage_carts: number;
|
|
6747
|
+
status: string;
|
|
6748
|
+
user_id: string;
|
|
6749
|
+
};
|
|
6750
|
+
Insert: {
|
|
6751
|
+
available_carts?: number;
|
|
6752
|
+
created_at?: string;
|
|
6753
|
+
id?: string;
|
|
6754
|
+
measures?: Json;
|
|
6755
|
+
note?: string | null;
|
|
6756
|
+
outcome?: string;
|
|
6757
|
+
required_carts?: number;
|
|
6758
|
+
reserve_minutes?: number;
|
|
6759
|
+
shortage_carts?: number;
|
|
6760
|
+
status: string;
|
|
6761
|
+
user_id: string;
|
|
6762
|
+
};
|
|
6763
|
+
Update: {
|
|
6764
|
+
available_carts?: number;
|
|
6765
|
+
created_at?: string;
|
|
6766
|
+
id?: string;
|
|
6767
|
+
measures?: Json;
|
|
6768
|
+
note?: string | null;
|
|
6769
|
+
outcome?: string;
|
|
6770
|
+
required_carts?: number;
|
|
6771
|
+
reserve_minutes?: number;
|
|
6772
|
+
shortage_carts?: number;
|
|
6773
|
+
status?: string;
|
|
6774
|
+
user_id?: string;
|
|
6775
|
+
};
|
|
6776
|
+
Relationships: [];
|
|
6777
|
+
};
|
|
6778
|
+
logistics_capacity_settings: {
|
|
6779
|
+
Row: {
|
|
6780
|
+
created_at: string;
|
|
6781
|
+
settings: Json;
|
|
6782
|
+
updated_at: string;
|
|
6783
|
+
user_id: string;
|
|
6784
|
+
};
|
|
6785
|
+
Insert: {
|
|
6786
|
+
created_at?: string;
|
|
6787
|
+
settings?: Json;
|
|
6788
|
+
updated_at?: string;
|
|
6789
|
+
user_id: string;
|
|
6790
|
+
};
|
|
6791
|
+
Update: {
|
|
6792
|
+
created_at?: string;
|
|
6793
|
+
settings?: Json;
|
|
6794
|
+
updated_at?: string;
|
|
6795
|
+
user_id?: string;
|
|
6796
|
+
};
|
|
6797
|
+
Relationships: [];
|
|
6798
|
+
};
|
|
6799
|
+
logistics_decisions: {
|
|
6800
|
+
Row: {
|
|
6801
|
+
created_at: string;
|
|
6802
|
+
explanation: string | null;
|
|
6803
|
+
id: string;
|
|
6804
|
+
input_snapshot: Json;
|
|
6805
|
+
result: Json;
|
|
6806
|
+
slot: string;
|
|
6807
|
+
strategy_id: string | null;
|
|
6808
|
+
subject_id: string;
|
|
6809
|
+
subject_type: string;
|
|
6810
|
+
user_id: string;
|
|
6811
|
+
};
|
|
6812
|
+
Insert: {
|
|
6813
|
+
created_at?: string;
|
|
6814
|
+
explanation?: string | null;
|
|
6815
|
+
id?: string;
|
|
6816
|
+
input_snapshot?: Json;
|
|
6817
|
+
result?: Json;
|
|
6818
|
+
slot: string;
|
|
6819
|
+
strategy_id?: string | null;
|
|
6820
|
+
subject_id: string;
|
|
6821
|
+
subject_type: string;
|
|
6822
|
+
user_id: string;
|
|
6823
|
+
};
|
|
6824
|
+
Update: {
|
|
6825
|
+
created_at?: string;
|
|
6826
|
+
explanation?: string | null;
|
|
6827
|
+
id?: string;
|
|
6828
|
+
input_snapshot?: Json;
|
|
6829
|
+
result?: Json;
|
|
6830
|
+
slot?: string;
|
|
6831
|
+
strategy_id?: string | null;
|
|
6832
|
+
subject_id?: string;
|
|
6833
|
+
subject_type?: string;
|
|
6834
|
+
user_id?: string;
|
|
6835
|
+
};
|
|
6836
|
+
Relationships: [
|
|
6837
|
+
{
|
|
6838
|
+
foreignKeyName: "logistics_decisions_strategy_id_fkey";
|
|
6839
|
+
columns: ["strategy_id"];
|
|
6840
|
+
isOneToOne: false;
|
|
6841
|
+
referencedRelation: "logistics_strategies";
|
|
6842
|
+
referencedColumns: ["id"];
|
|
6843
|
+
}
|
|
6844
|
+
];
|
|
6845
|
+
};
|
|
6846
|
+
logistics_formulas: {
|
|
6847
|
+
Row: {
|
|
6848
|
+
created_at: string;
|
|
6849
|
+
expression: string;
|
|
6850
|
+
id: string;
|
|
6851
|
+
notes: string | null;
|
|
6852
|
+
slot: string;
|
|
6853
|
+
strategy_id: string;
|
|
6854
|
+
updated_at: string;
|
|
6855
|
+
user_id: string;
|
|
6856
|
+
version: number;
|
|
6857
|
+
};
|
|
6858
|
+
Insert: {
|
|
6859
|
+
created_at?: string;
|
|
6860
|
+
expression?: string;
|
|
6861
|
+
id?: string;
|
|
6862
|
+
notes?: string | null;
|
|
6863
|
+
slot: string;
|
|
6864
|
+
strategy_id: string;
|
|
6865
|
+
updated_at?: string;
|
|
6866
|
+
user_id: string;
|
|
6867
|
+
version?: number;
|
|
6868
|
+
};
|
|
6869
|
+
Update: {
|
|
6870
|
+
created_at?: string;
|
|
6871
|
+
expression?: string;
|
|
6872
|
+
id?: string;
|
|
6873
|
+
notes?: string | null;
|
|
6874
|
+
slot?: string;
|
|
6875
|
+
strategy_id?: string;
|
|
6876
|
+
updated_at?: string;
|
|
6877
|
+
user_id?: string;
|
|
6878
|
+
version?: number;
|
|
6879
|
+
};
|
|
6880
|
+
Relationships: [
|
|
6881
|
+
{
|
|
6882
|
+
foreignKeyName: "logistics_formulas_strategy_id_fkey";
|
|
6883
|
+
columns: ["strategy_id"];
|
|
6884
|
+
isOneToOne: false;
|
|
6885
|
+
referencedRelation: "logistics_strategies";
|
|
6886
|
+
referencedColumns: ["id"];
|
|
6887
|
+
}
|
|
6888
|
+
];
|
|
6889
|
+
};
|
|
6890
|
+
logistics_strategies: {
|
|
6891
|
+
Row: {
|
|
6892
|
+
color: string;
|
|
6893
|
+
created_at: string;
|
|
6894
|
+
description: string | null;
|
|
6895
|
+
id: string;
|
|
6896
|
+
is_active: boolean;
|
|
6897
|
+
name: string;
|
|
6898
|
+
priority: number;
|
|
6899
|
+
updated_at: string;
|
|
6900
|
+
updated_by: string | null;
|
|
6901
|
+
user_id: string;
|
|
6902
|
+
version: number;
|
|
6903
|
+
};
|
|
6904
|
+
Insert: {
|
|
6905
|
+
color?: string;
|
|
6906
|
+
created_at?: string;
|
|
6907
|
+
description?: string | null;
|
|
6908
|
+
id?: string;
|
|
6909
|
+
is_active?: boolean;
|
|
6910
|
+
name: string;
|
|
6911
|
+
priority?: number;
|
|
6912
|
+
updated_at?: string;
|
|
6913
|
+
updated_by?: string | null;
|
|
6914
|
+
user_id: string;
|
|
6915
|
+
version?: number;
|
|
6916
|
+
};
|
|
6917
|
+
Update: {
|
|
6918
|
+
color?: string;
|
|
6919
|
+
created_at?: string;
|
|
6920
|
+
description?: string | null;
|
|
6921
|
+
id?: string;
|
|
6922
|
+
is_active?: boolean;
|
|
6923
|
+
name?: string;
|
|
6924
|
+
priority?: number;
|
|
6925
|
+
updated_at?: string;
|
|
6926
|
+
updated_by?: string | null;
|
|
6927
|
+
user_id?: string;
|
|
6928
|
+
version?: number;
|
|
6929
|
+
};
|
|
6930
|
+
Relationships: [];
|
|
6931
|
+
};
|
|
6932
|
+
logistics_strategy_schedules: {
|
|
6933
|
+
Row: {
|
|
6934
|
+
condition_expression: string | null;
|
|
6935
|
+
created_at: string;
|
|
6936
|
+
end_date: string | null;
|
|
6937
|
+
id: string;
|
|
6938
|
+
is_enabled: boolean;
|
|
6939
|
+
priority: number;
|
|
6940
|
+
rule_type: string;
|
|
6941
|
+
start_date: string | null;
|
|
6942
|
+
strategy_id: string;
|
|
6943
|
+
updated_at: string;
|
|
6944
|
+
user_id: string;
|
|
6945
|
+
};
|
|
6946
|
+
Insert: {
|
|
6947
|
+
condition_expression?: string | null;
|
|
6948
|
+
created_at?: string;
|
|
6949
|
+
end_date?: string | null;
|
|
6950
|
+
id?: string;
|
|
6951
|
+
is_enabled?: boolean;
|
|
6952
|
+
priority?: number;
|
|
6953
|
+
rule_type: string;
|
|
6954
|
+
start_date?: string | null;
|
|
6955
|
+
strategy_id: string;
|
|
6956
|
+
updated_at?: string;
|
|
6957
|
+
user_id: string;
|
|
6958
|
+
};
|
|
6959
|
+
Update: {
|
|
6960
|
+
condition_expression?: string | null;
|
|
6961
|
+
created_at?: string;
|
|
6962
|
+
end_date?: string | null;
|
|
6963
|
+
id?: string;
|
|
6964
|
+
is_enabled?: boolean;
|
|
6965
|
+
priority?: number;
|
|
6966
|
+
rule_type?: string;
|
|
6967
|
+
start_date?: string | null;
|
|
6968
|
+
strategy_id?: string;
|
|
6969
|
+
updated_at?: string;
|
|
6970
|
+
user_id?: string;
|
|
6971
|
+
};
|
|
6972
|
+
Relationships: [
|
|
6973
|
+
{
|
|
6974
|
+
foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
|
|
6975
|
+
columns: ["strategy_id"];
|
|
6976
|
+
isOneToOne: false;
|
|
6977
|
+
referencedRelation: "logistics_strategies";
|
|
6978
|
+
referencedColumns: ["id"];
|
|
6979
|
+
}
|
|
6980
|
+
];
|
|
6981
|
+
};
|
|
6982
|
+
logistics_variables: {
|
|
6983
|
+
Row: {
|
|
6984
|
+
created_at: string;
|
|
6985
|
+
default_value: string | null;
|
|
6986
|
+
description: string | null;
|
|
6987
|
+
id: string;
|
|
6988
|
+
is_builtin: boolean;
|
|
6989
|
+
key: string;
|
|
6990
|
+
label: string;
|
|
6991
|
+
updated_at: string;
|
|
6992
|
+
user_id: string;
|
|
6993
|
+
value_type: string;
|
|
6994
|
+
};
|
|
6995
|
+
Insert: {
|
|
6996
|
+
created_at?: string;
|
|
6997
|
+
default_value?: string | null;
|
|
6998
|
+
description?: string | null;
|
|
6999
|
+
id?: string;
|
|
7000
|
+
is_builtin?: boolean;
|
|
7001
|
+
key: string;
|
|
7002
|
+
label: string;
|
|
7003
|
+
updated_at?: string;
|
|
7004
|
+
user_id: string;
|
|
7005
|
+
value_type: string;
|
|
7006
|
+
};
|
|
7007
|
+
Update: {
|
|
7008
|
+
created_at?: string;
|
|
7009
|
+
default_value?: string | null;
|
|
7010
|
+
description?: string | null;
|
|
7011
|
+
id?: string;
|
|
7012
|
+
is_builtin?: boolean;
|
|
7013
|
+
key?: string;
|
|
7014
|
+
label?: string;
|
|
7015
|
+
updated_at?: string;
|
|
7016
|
+
user_id?: string;
|
|
7017
|
+
value_type?: string;
|
|
7018
|
+
};
|
|
7019
|
+
Relationships: [];
|
|
7020
|
+
};
|
|
6655
7021
|
mailbox_messages: {
|
|
6656
7022
|
Row: {
|
|
6657
7023
|
body_html: string | null;
|
|
@@ -8488,15 +8854,154 @@ export type Database = {
|
|
|
8488
8854
|
};
|
|
8489
8855
|
Relationships: [];
|
|
8490
8856
|
};
|
|
8491
|
-
|
|
8857
|
+
planning_item_assistants: {
|
|
8492
8858
|
Row: {
|
|
8493
|
-
color: string;
|
|
8494
8859
|
created_at: string;
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8860
|
+
created_by: string | null;
|
|
8861
|
+
monteur_id: string;
|
|
8862
|
+
planning_item_id: string;
|
|
8863
|
+
};
|
|
8864
|
+
Insert: {
|
|
8865
|
+
created_at?: string;
|
|
8866
|
+
created_by?: string | null;
|
|
8867
|
+
monteur_id: string;
|
|
8868
|
+
planning_item_id: string;
|
|
8869
|
+
};
|
|
8870
|
+
Update: {
|
|
8871
|
+
created_at?: string;
|
|
8872
|
+
created_by?: string | null;
|
|
8873
|
+
monteur_id?: string;
|
|
8874
|
+
planning_item_id?: string;
|
|
8875
|
+
};
|
|
8876
|
+
Relationships: [
|
|
8877
|
+
{
|
|
8878
|
+
foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
|
|
8879
|
+
columns: ["planning_item_id"];
|
|
8880
|
+
isOneToOne: false;
|
|
8881
|
+
referencedRelation: "planning_items";
|
|
8882
|
+
referencedColumns: ["id"];
|
|
8883
|
+
}
|
|
8884
|
+
];
|
|
8885
|
+
};
|
|
8886
|
+
planning_items: {
|
|
8887
|
+
Row: {
|
|
8888
|
+
assigned_monteur_id: string;
|
|
8889
|
+
created_at: string;
|
|
8890
|
+
created_by: string | null;
|
|
8891
|
+
end_at: string;
|
|
8892
|
+
id: string;
|
|
8893
|
+
notes: string | null;
|
|
8894
|
+
start_at: string;
|
|
8895
|
+
status: Database["public"]["Enums"]["planning_item_status"];
|
|
8896
|
+
updated_at: string;
|
|
8897
|
+
werkbon_id: string;
|
|
8898
|
+
};
|
|
8899
|
+
Insert: {
|
|
8900
|
+
assigned_monteur_id: string;
|
|
8901
|
+
created_at?: string;
|
|
8902
|
+
created_by?: string | null;
|
|
8903
|
+
end_at: string;
|
|
8904
|
+
id?: string;
|
|
8905
|
+
notes?: string | null;
|
|
8906
|
+
start_at: string;
|
|
8907
|
+
status?: Database["public"]["Enums"]["planning_item_status"];
|
|
8908
|
+
updated_at?: string;
|
|
8909
|
+
werkbon_id: string;
|
|
8910
|
+
};
|
|
8911
|
+
Update: {
|
|
8912
|
+
assigned_monteur_id?: string;
|
|
8913
|
+
created_at?: string;
|
|
8914
|
+
created_by?: string | null;
|
|
8915
|
+
end_at?: string;
|
|
8916
|
+
id?: string;
|
|
8917
|
+
notes?: string | null;
|
|
8918
|
+
start_at?: string;
|
|
8919
|
+
status?: Database["public"]["Enums"]["planning_item_status"];
|
|
8920
|
+
updated_at?: string;
|
|
8921
|
+
werkbon_id?: string;
|
|
8922
|
+
};
|
|
8923
|
+
Relationships: [
|
|
8924
|
+
{
|
|
8925
|
+
foreignKeyName: "planning_items_werkbon_id_fkey";
|
|
8926
|
+
columns: ["werkbon_id"];
|
|
8927
|
+
isOneToOne: false;
|
|
8928
|
+
referencedRelation: "werkbonnen";
|
|
8929
|
+
referencedColumns: ["id"];
|
|
8930
|
+
}
|
|
8931
|
+
];
|
|
8932
|
+
};
|
|
8933
|
+
product_bom_items: {
|
|
8934
|
+
Row: {
|
|
8935
|
+
component_product_id: string | null;
|
|
8936
|
+
component_trade_item_floriday_id: string | null;
|
|
8937
|
+
created_at: string;
|
|
8938
|
+
id: string;
|
|
8939
|
+
notes: string | null;
|
|
8940
|
+
packing_configuration_id: string | null;
|
|
8941
|
+
parent_product_id: string | null;
|
|
8942
|
+
parent_trade_item_floriday_id: string | null;
|
|
8943
|
+
quantity: number;
|
|
8944
|
+
sort_order: number;
|
|
8945
|
+
tenant_id: string;
|
|
8946
|
+
unit: string;
|
|
8947
|
+
updated_at: string;
|
|
8948
|
+
};
|
|
8949
|
+
Insert: {
|
|
8950
|
+
component_product_id?: string | null;
|
|
8951
|
+
component_trade_item_floriday_id?: string | null;
|
|
8952
|
+
created_at?: string;
|
|
8953
|
+
id?: string;
|
|
8954
|
+
notes?: string | null;
|
|
8955
|
+
packing_configuration_id?: string | null;
|
|
8956
|
+
parent_product_id?: string | null;
|
|
8957
|
+
parent_trade_item_floriday_id?: string | null;
|
|
8958
|
+
quantity?: number;
|
|
8959
|
+
sort_order?: number;
|
|
8960
|
+
tenant_id: string;
|
|
8961
|
+
unit?: string;
|
|
8962
|
+
updated_at?: string;
|
|
8963
|
+
};
|
|
8964
|
+
Update: {
|
|
8965
|
+
component_product_id?: string | null;
|
|
8966
|
+
component_trade_item_floriday_id?: string | null;
|
|
8967
|
+
created_at?: string;
|
|
8968
|
+
id?: string;
|
|
8969
|
+
notes?: string | null;
|
|
8970
|
+
packing_configuration_id?: string | null;
|
|
8971
|
+
parent_product_id?: string | null;
|
|
8972
|
+
parent_trade_item_floriday_id?: string | null;
|
|
8973
|
+
quantity?: number;
|
|
8974
|
+
sort_order?: number;
|
|
8975
|
+
tenant_id?: string;
|
|
8976
|
+
unit?: string;
|
|
8977
|
+
updated_at?: string;
|
|
8978
|
+
};
|
|
8979
|
+
Relationships: [
|
|
8980
|
+
{
|
|
8981
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
8982
|
+
columns: ["component_product_id"];
|
|
8983
|
+
isOneToOne: false;
|
|
8984
|
+
referencedRelation: "products";
|
|
8985
|
+
referencedColumns: ["id"];
|
|
8986
|
+
},
|
|
8987
|
+
{
|
|
8988
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
8989
|
+
columns: ["parent_product_id"];
|
|
8990
|
+
isOneToOne: false;
|
|
8991
|
+
referencedRelation: "products";
|
|
8992
|
+
referencedColumns: ["id"];
|
|
8993
|
+
}
|
|
8994
|
+
];
|
|
8995
|
+
};
|
|
8996
|
+
product_categories: {
|
|
8997
|
+
Row: {
|
|
8998
|
+
color: string;
|
|
8999
|
+
created_at: string;
|
|
9000
|
+
icon: string | null;
|
|
9001
|
+
id: string;
|
|
9002
|
+
name: string;
|
|
9003
|
+
slug: string;
|
|
9004
|
+
sort_order: number;
|
|
8500
9005
|
updated_at: string;
|
|
8501
9006
|
};
|
|
8502
9007
|
Insert: {
|
|
@@ -8595,6 +9100,7 @@ export type Database = {
|
|
|
8595
9100
|
id: string;
|
|
8596
9101
|
product_group_id: string;
|
|
8597
9102
|
quantity: number;
|
|
9103
|
+
sort_order: number;
|
|
8598
9104
|
trade_item_id: string;
|
|
8599
9105
|
};
|
|
8600
9106
|
Insert: {
|
|
@@ -8602,6 +9108,7 @@ export type Database = {
|
|
|
8602
9108
|
id?: string;
|
|
8603
9109
|
product_group_id: string;
|
|
8604
9110
|
quantity?: number;
|
|
9111
|
+
sort_order?: number;
|
|
8605
9112
|
trade_item_id: string;
|
|
8606
9113
|
};
|
|
8607
9114
|
Update: {
|
|
@@ -8609,6 +9116,7 @@ export type Database = {
|
|
|
8609
9116
|
id?: string;
|
|
8610
9117
|
product_group_id?: string;
|
|
8611
9118
|
quantity?: number;
|
|
9119
|
+
sort_order?: number;
|
|
8612
9120
|
trade_item_id?: string;
|
|
8613
9121
|
};
|
|
8614
9122
|
Relationships: [
|
|
@@ -8625,6 +9133,8 @@ export type Database = {
|
|
|
8625
9133
|
Row: {
|
|
8626
9134
|
created_at: string;
|
|
8627
9135
|
description: string | null;
|
|
9136
|
+
head_product_id: string | null;
|
|
9137
|
+
head_trade_item_floriday_id: string | null;
|
|
8628
9138
|
id: string;
|
|
8629
9139
|
is_active: boolean;
|
|
8630
9140
|
name: string;
|
|
@@ -8634,6 +9144,8 @@ export type Database = {
|
|
|
8634
9144
|
Insert: {
|
|
8635
9145
|
created_at?: string;
|
|
8636
9146
|
description?: string | null;
|
|
9147
|
+
head_product_id?: string | null;
|
|
9148
|
+
head_trade_item_floriday_id?: string | null;
|
|
8637
9149
|
id?: string;
|
|
8638
9150
|
is_active?: boolean;
|
|
8639
9151
|
name: string;
|
|
@@ -8643,24 +9155,139 @@ export type Database = {
|
|
|
8643
9155
|
Update: {
|
|
8644
9156
|
created_at?: string;
|
|
8645
9157
|
description?: string | null;
|
|
9158
|
+
head_product_id?: string | null;
|
|
9159
|
+
head_trade_item_floriday_id?: string | null;
|
|
8646
9160
|
id?: string;
|
|
8647
9161
|
is_active?: boolean;
|
|
8648
9162
|
name?: string;
|
|
8649
9163
|
tenant_id?: string;
|
|
8650
9164
|
updated_at?: string;
|
|
8651
9165
|
};
|
|
9166
|
+
Relationships: [
|
|
9167
|
+
{
|
|
9168
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
9169
|
+
columns: ["head_product_id"];
|
|
9170
|
+
isOneToOne: false;
|
|
9171
|
+
referencedRelation: "products";
|
|
9172
|
+
referencedColumns: ["id"];
|
|
9173
|
+
}
|
|
9174
|
+
];
|
|
9175
|
+
};
|
|
9176
|
+
product_load_settings: {
|
|
9177
|
+
Row: {
|
|
9178
|
+
created_at: string;
|
|
9179
|
+
id: string;
|
|
9180
|
+
is_package: boolean;
|
|
9181
|
+
label: string | null;
|
|
9182
|
+
layers_per_load_carrier: number | null;
|
|
9183
|
+
load_carrier: string | null;
|
|
9184
|
+
package_id: string | null;
|
|
9185
|
+
package_label: string | null;
|
|
9186
|
+
packages_per_layer: number | null;
|
|
9187
|
+
packing_configuration_id: string;
|
|
9188
|
+
product_id: string | null;
|
|
9189
|
+
tenant_id: string;
|
|
9190
|
+
trade_item_floriday_id: string | null;
|
|
9191
|
+
units_per_package: number | null;
|
|
9192
|
+
updated_at: string;
|
|
9193
|
+
};
|
|
9194
|
+
Insert: {
|
|
9195
|
+
created_at?: string;
|
|
9196
|
+
id?: string;
|
|
9197
|
+
is_package?: boolean;
|
|
9198
|
+
label?: string | null;
|
|
9199
|
+
layers_per_load_carrier?: number | null;
|
|
9200
|
+
load_carrier?: string | null;
|
|
9201
|
+
package_id?: string | null;
|
|
9202
|
+
package_label?: string | null;
|
|
9203
|
+
packages_per_layer?: number | null;
|
|
9204
|
+
packing_configuration_id?: string;
|
|
9205
|
+
product_id?: string | null;
|
|
9206
|
+
tenant_id: string;
|
|
9207
|
+
trade_item_floriday_id?: string | null;
|
|
9208
|
+
units_per_package?: number | null;
|
|
9209
|
+
updated_at?: string;
|
|
9210
|
+
};
|
|
9211
|
+
Update: {
|
|
9212
|
+
created_at?: string;
|
|
9213
|
+
id?: string;
|
|
9214
|
+
is_package?: boolean;
|
|
9215
|
+
label?: string | null;
|
|
9216
|
+
layers_per_load_carrier?: number | null;
|
|
9217
|
+
load_carrier?: string | null;
|
|
9218
|
+
package_id?: string | null;
|
|
9219
|
+
package_label?: string | null;
|
|
9220
|
+
packages_per_layer?: number | null;
|
|
9221
|
+
packing_configuration_id?: string;
|
|
9222
|
+
product_id?: string | null;
|
|
9223
|
+
tenant_id?: string;
|
|
9224
|
+
trade_item_floriday_id?: string | null;
|
|
9225
|
+
units_per_package?: number | null;
|
|
9226
|
+
updated_at?: string;
|
|
9227
|
+
};
|
|
9228
|
+
Relationships: [
|
|
9229
|
+
{
|
|
9230
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
9231
|
+
columns: ["package_id"];
|
|
9232
|
+
isOneToOne: false;
|
|
9233
|
+
referencedRelation: "packages";
|
|
9234
|
+
referencedColumns: ["id"];
|
|
9235
|
+
},
|
|
9236
|
+
{
|
|
9237
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
9238
|
+
columns: ["product_id"];
|
|
9239
|
+
isOneToOne: false;
|
|
9240
|
+
referencedRelation: "products";
|
|
9241
|
+
referencedColumns: ["id"];
|
|
9242
|
+
}
|
|
9243
|
+
];
|
|
9244
|
+
};
|
|
9245
|
+
product_merge_log: {
|
|
9246
|
+
Row: {
|
|
9247
|
+
canonical_product_id: string | null;
|
|
9248
|
+
id: string;
|
|
9249
|
+
merged_at: string;
|
|
9250
|
+
merged_from_id: string;
|
|
9251
|
+
notes: string | null;
|
|
9252
|
+
snapshot: Json;
|
|
9253
|
+
source_table: string;
|
|
9254
|
+
status: string;
|
|
9255
|
+
};
|
|
9256
|
+
Insert: {
|
|
9257
|
+
canonical_product_id?: string | null;
|
|
9258
|
+
id?: string;
|
|
9259
|
+
merged_at?: string;
|
|
9260
|
+
merged_from_id: string;
|
|
9261
|
+
notes?: string | null;
|
|
9262
|
+
snapshot?: Json;
|
|
9263
|
+
source_table: string;
|
|
9264
|
+
status?: string;
|
|
9265
|
+
};
|
|
9266
|
+
Update: {
|
|
9267
|
+
canonical_product_id?: string | null;
|
|
9268
|
+
id?: string;
|
|
9269
|
+
merged_at?: string;
|
|
9270
|
+
merged_from_id?: string;
|
|
9271
|
+
notes?: string | null;
|
|
9272
|
+
snapshot?: Json;
|
|
9273
|
+
source_table?: string;
|
|
9274
|
+
status?: string;
|
|
9275
|
+
};
|
|
8652
9276
|
Relationships: [];
|
|
8653
9277
|
};
|
|
8654
9278
|
products: {
|
|
8655
9279
|
Row: {
|
|
9280
|
+
article_number: string | null;
|
|
8656
9281
|
barcode: string | null;
|
|
8657
9282
|
batch: string;
|
|
8658
9283
|
crates_per_layer: number;
|
|
8659
9284
|
created_at: string;
|
|
8660
9285
|
custom_fields: Json;
|
|
9286
|
+
floriday_trade_item_id: string | null;
|
|
8661
9287
|
id: string;
|
|
8662
9288
|
image_url: string | null;
|
|
8663
9289
|
incoming_quantity: number;
|
|
9290
|
+
is_layer: boolean;
|
|
8664
9291
|
layers_per_cart: number;
|
|
8665
9292
|
location: string;
|
|
8666
9293
|
min_quantity: number;
|
|
@@ -8676,14 +9303,17 @@ export type Database = {
|
|
|
8676
9303
|
weight: string | null;
|
|
8677
9304
|
};
|
|
8678
9305
|
Insert: {
|
|
9306
|
+
article_number?: string | null;
|
|
8679
9307
|
barcode?: string | null;
|
|
8680
9308
|
batch: string;
|
|
8681
9309
|
crates_per_layer?: number;
|
|
8682
9310
|
created_at?: string;
|
|
8683
9311
|
custom_fields?: Json;
|
|
9312
|
+
floriday_trade_item_id?: string | null;
|
|
8684
9313
|
id?: string;
|
|
8685
9314
|
image_url?: string | null;
|
|
8686
9315
|
incoming_quantity?: number;
|
|
9316
|
+
is_layer?: boolean;
|
|
8687
9317
|
layers_per_cart?: number;
|
|
8688
9318
|
location: string;
|
|
8689
9319
|
min_quantity?: number;
|
|
@@ -8699,14 +9329,17 @@ export type Database = {
|
|
|
8699
9329
|
weight?: string | null;
|
|
8700
9330
|
};
|
|
8701
9331
|
Update: {
|
|
9332
|
+
article_number?: string | null;
|
|
8702
9333
|
barcode?: string | null;
|
|
8703
9334
|
batch?: string;
|
|
8704
9335
|
crates_per_layer?: number;
|
|
8705
9336
|
created_at?: string;
|
|
8706
9337
|
custom_fields?: Json;
|
|
9338
|
+
floriday_trade_item_id?: string | null;
|
|
8707
9339
|
id?: string;
|
|
8708
9340
|
image_url?: string | null;
|
|
8709
9341
|
incoming_quantity?: number;
|
|
9342
|
+
is_layer?: boolean;
|
|
8710
9343
|
layers_per_cart?: number;
|
|
8711
9344
|
location?: string;
|
|
8712
9345
|
min_quantity?: number;
|
|
@@ -8726,6 +9359,7 @@ export type Database = {
|
|
|
8726
9359
|
profiles: {
|
|
8727
9360
|
Row: {
|
|
8728
9361
|
address: string | null;
|
|
9362
|
+
avatar_url: string | null;
|
|
8729
9363
|
created_at: string;
|
|
8730
9364
|
display_name: string | null;
|
|
8731
9365
|
email: string | null;
|
|
@@ -8737,6 +9371,7 @@ export type Database = {
|
|
|
8737
9371
|
};
|
|
8738
9372
|
Insert: {
|
|
8739
9373
|
address?: string | null;
|
|
9374
|
+
avatar_url?: string | null;
|
|
8740
9375
|
created_at?: string;
|
|
8741
9376
|
display_name?: string | null;
|
|
8742
9377
|
email?: string | null;
|
|
@@ -8748,6 +9383,7 @@ export type Database = {
|
|
|
8748
9383
|
};
|
|
8749
9384
|
Update: {
|
|
8750
9385
|
address?: string | null;
|
|
9386
|
+
avatar_url?: string | null;
|
|
8751
9387
|
created_at?: string;
|
|
8752
9388
|
display_name?: string | null;
|
|
8753
9389
|
email?: string | null;
|
|
@@ -9646,6 +10282,7 @@ export type Database = {
|
|
|
9646
10282
|
order_source: string | null;
|
|
9647
10283
|
physical_after: number | null;
|
|
9648
10284
|
physical_before: number | null;
|
|
10285
|
+
production_batch_id: string | null;
|
|
9649
10286
|
qty_delta: number;
|
|
9650
10287
|
reason: string | null;
|
|
9651
10288
|
reserved_after: number | null;
|
|
@@ -9663,6 +10300,7 @@ export type Database = {
|
|
|
9663
10300
|
order_source?: string | null;
|
|
9664
10301
|
physical_after?: number | null;
|
|
9665
10302
|
physical_before?: number | null;
|
|
10303
|
+
production_batch_id?: string | null;
|
|
9666
10304
|
qty_delta: number;
|
|
9667
10305
|
reason?: string | null;
|
|
9668
10306
|
reserved_after?: number | null;
|
|
@@ -9680,6 +10318,7 @@ export type Database = {
|
|
|
9680
10318
|
order_source?: string | null;
|
|
9681
10319
|
physical_after?: number | null;
|
|
9682
10320
|
physical_before?: number | null;
|
|
10321
|
+
production_batch_id?: string | null;
|
|
9683
10322
|
qty_delta?: number;
|
|
9684
10323
|
reason?: string | null;
|
|
9685
10324
|
reserved_after?: number | null;
|
|
@@ -10014,6 +10653,48 @@ export type Database = {
|
|
|
10014
10653
|
};
|
|
10015
10654
|
Relationships: [];
|
|
10016
10655
|
};
|
|
10656
|
+
trade_item_prices: {
|
|
10657
|
+
Row: {
|
|
10658
|
+
created_at: string;
|
|
10659
|
+
currency: string;
|
|
10660
|
+
id: string;
|
|
10661
|
+
last_push_error: string | null;
|
|
10662
|
+
last_pushed_at: string | null;
|
|
10663
|
+
price_group_id: string | null;
|
|
10664
|
+
price_per_piece: number;
|
|
10665
|
+
supply_line_id: string | null;
|
|
10666
|
+
trade_item_key: string;
|
|
10667
|
+
updated_at: string;
|
|
10668
|
+
user_id: string;
|
|
10669
|
+
};
|
|
10670
|
+
Insert: {
|
|
10671
|
+
created_at?: string;
|
|
10672
|
+
currency?: string;
|
|
10673
|
+
id?: string;
|
|
10674
|
+
last_push_error?: string | null;
|
|
10675
|
+
last_pushed_at?: string | null;
|
|
10676
|
+
price_group_id?: string | null;
|
|
10677
|
+
price_per_piece: number;
|
|
10678
|
+
supply_line_id?: string | null;
|
|
10679
|
+
trade_item_key: string;
|
|
10680
|
+
updated_at?: string;
|
|
10681
|
+
user_id: string;
|
|
10682
|
+
};
|
|
10683
|
+
Update: {
|
|
10684
|
+
created_at?: string;
|
|
10685
|
+
currency?: string;
|
|
10686
|
+
id?: string;
|
|
10687
|
+
last_push_error?: string | null;
|
|
10688
|
+
last_pushed_at?: string | null;
|
|
10689
|
+
price_group_id?: string | null;
|
|
10690
|
+
price_per_piece?: number;
|
|
10691
|
+
supply_line_id?: string | null;
|
|
10692
|
+
trade_item_key?: string;
|
|
10693
|
+
updated_at?: string;
|
|
10694
|
+
user_id?: string;
|
|
10695
|
+
};
|
|
10696
|
+
Relationships: [];
|
|
10697
|
+
};
|
|
10017
10698
|
trade_item_stock: {
|
|
10018
10699
|
Row: {
|
|
10019
10700
|
connection_id: string;
|
|
@@ -10487,6 +11168,53 @@ export type Database = {
|
|
|
10487
11168
|
}
|
|
10488
11169
|
];
|
|
10489
11170
|
};
|
|
11171
|
+
twinfield_invoice_pdf_cache: {
|
|
11172
|
+
Row: {
|
|
11173
|
+
connection_id: string;
|
|
11174
|
+
created_at: string;
|
|
11175
|
+
fetched_at: string;
|
|
11176
|
+
id: string;
|
|
11177
|
+
invoice_number: string;
|
|
11178
|
+
last_accessed_at: string;
|
|
11179
|
+
object_path: string;
|
|
11180
|
+
office_code: string;
|
|
11181
|
+
size_bytes: number;
|
|
11182
|
+
updated_at: string;
|
|
11183
|
+
};
|
|
11184
|
+
Insert: {
|
|
11185
|
+
connection_id: string;
|
|
11186
|
+
created_at?: string;
|
|
11187
|
+
fetched_at?: string;
|
|
11188
|
+
id?: string;
|
|
11189
|
+
invoice_number: string;
|
|
11190
|
+
last_accessed_at?: string;
|
|
11191
|
+
object_path: string;
|
|
11192
|
+
office_code: string;
|
|
11193
|
+
size_bytes?: number;
|
|
11194
|
+
updated_at?: string;
|
|
11195
|
+
};
|
|
11196
|
+
Update: {
|
|
11197
|
+
connection_id?: string;
|
|
11198
|
+
created_at?: string;
|
|
11199
|
+
fetched_at?: string;
|
|
11200
|
+
id?: string;
|
|
11201
|
+
invoice_number?: string;
|
|
11202
|
+
last_accessed_at?: string;
|
|
11203
|
+
object_path?: string;
|
|
11204
|
+
office_code?: string;
|
|
11205
|
+
size_bytes?: number;
|
|
11206
|
+
updated_at?: string;
|
|
11207
|
+
};
|
|
11208
|
+
Relationships: [
|
|
11209
|
+
{
|
|
11210
|
+
foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
|
|
11211
|
+
columns: ["connection_id"];
|
|
11212
|
+
isOneToOne: false;
|
|
11213
|
+
referencedRelation: "twinfield_connections";
|
|
11214
|
+
referencedColumns: ["id"];
|
|
11215
|
+
}
|
|
11216
|
+
];
|
|
11217
|
+
};
|
|
10490
11218
|
twinfield_invoice_settings: {
|
|
10491
11219
|
Row: {
|
|
10492
11220
|
created_at: string;
|
|
@@ -11101,6 +11829,80 @@ export type Database = {
|
|
|
11101
11829
|
};
|
|
11102
11830
|
Relationships: [];
|
|
11103
11831
|
};
|
|
11832
|
+
werkbon_package_ai_rules: {
|
|
11833
|
+
Row: {
|
|
11834
|
+
active: boolean;
|
|
11835
|
+
case_sensitive: boolean;
|
|
11836
|
+
created_at: string;
|
|
11837
|
+
id: string;
|
|
11838
|
+
package_id: string;
|
|
11839
|
+
priority: number;
|
|
11840
|
+
rule_type: string;
|
|
11841
|
+
updated_at: string;
|
|
11842
|
+
value: string;
|
|
11843
|
+
};
|
|
11844
|
+
Insert: {
|
|
11845
|
+
active?: boolean;
|
|
11846
|
+
case_sensitive?: boolean;
|
|
11847
|
+
created_at?: string;
|
|
11848
|
+
id?: string;
|
|
11849
|
+
package_id: string;
|
|
11850
|
+
priority?: number;
|
|
11851
|
+
rule_type: string;
|
|
11852
|
+
updated_at?: string;
|
|
11853
|
+
value: string;
|
|
11854
|
+
};
|
|
11855
|
+
Update: {
|
|
11856
|
+
active?: boolean;
|
|
11857
|
+
case_sensitive?: boolean;
|
|
11858
|
+
created_at?: string;
|
|
11859
|
+
id?: string;
|
|
11860
|
+
package_id?: string;
|
|
11861
|
+
priority?: number;
|
|
11862
|
+
rule_type?: string;
|
|
11863
|
+
updated_at?: string;
|
|
11864
|
+
value?: string;
|
|
11865
|
+
};
|
|
11866
|
+
Relationships: [
|
|
11867
|
+
{
|
|
11868
|
+
foreignKeyName: "werkbon_package_ai_rules_package_id_fkey";
|
|
11869
|
+
columns: ["package_id"];
|
|
11870
|
+
isOneToOne: false;
|
|
11871
|
+
referencedRelation: "werkbon_packages";
|
|
11872
|
+
referencedColumns: ["id"];
|
|
11873
|
+
}
|
|
11874
|
+
];
|
|
11875
|
+
};
|
|
11876
|
+
werkbon_package_categories: {
|
|
11877
|
+
Row: {
|
|
11878
|
+
active: boolean;
|
|
11879
|
+
created_at: string;
|
|
11880
|
+
id: string;
|
|
11881
|
+
kleur: string | null;
|
|
11882
|
+
naam: string;
|
|
11883
|
+
sort_order: number;
|
|
11884
|
+
updated_at: string;
|
|
11885
|
+
};
|
|
11886
|
+
Insert: {
|
|
11887
|
+
active?: boolean;
|
|
11888
|
+
created_at?: string;
|
|
11889
|
+
id?: string;
|
|
11890
|
+
kleur?: string | null;
|
|
11891
|
+
naam: string;
|
|
11892
|
+
sort_order?: number;
|
|
11893
|
+
updated_at?: string;
|
|
11894
|
+
};
|
|
11895
|
+
Update: {
|
|
11896
|
+
active?: boolean;
|
|
11897
|
+
created_at?: string;
|
|
11898
|
+
id?: string;
|
|
11899
|
+
kleur?: string | null;
|
|
11900
|
+
naam?: string;
|
|
11901
|
+
sort_order?: number;
|
|
11902
|
+
updated_at?: string;
|
|
11903
|
+
};
|
|
11904
|
+
Relationships: [];
|
|
11905
|
+
};
|
|
11104
11906
|
werkbon_package_lines: {
|
|
11105
11907
|
Row: {
|
|
11106
11908
|
created_at: string;
|
|
@@ -11149,38 +11951,61 @@ export type Database = {
|
|
|
11149
11951
|
werkbon_packages: {
|
|
11150
11952
|
Row: {
|
|
11151
11953
|
active: boolean;
|
|
11954
|
+
ai_tags: string[];
|
|
11955
|
+
category_id: string | null;
|
|
11152
11956
|
code: string;
|
|
11153
11957
|
created_at: string;
|
|
11154
11958
|
default_quantity: number;
|
|
11155
11959
|
description: string | null;
|
|
11960
|
+
duration_minutes: number | null;
|
|
11156
11961
|
id: string;
|
|
11962
|
+
mandaat_type: string | null;
|
|
11157
11963
|
name: string;
|
|
11964
|
+
sort_order: number;
|
|
11158
11965
|
unit_price_cents: number;
|
|
11159
11966
|
updated_at: string;
|
|
11160
11967
|
};
|
|
11161
11968
|
Insert: {
|
|
11162
11969
|
active?: boolean;
|
|
11970
|
+
ai_tags?: string[];
|
|
11971
|
+
category_id?: string | null;
|
|
11163
11972
|
code: string;
|
|
11164
11973
|
created_at?: string;
|
|
11165
11974
|
default_quantity?: number;
|
|
11166
11975
|
description?: string | null;
|
|
11976
|
+
duration_minutes?: number | null;
|
|
11167
11977
|
id?: string;
|
|
11978
|
+
mandaat_type?: string | null;
|
|
11168
11979
|
name: string;
|
|
11980
|
+
sort_order?: number;
|
|
11169
11981
|
unit_price_cents?: number;
|
|
11170
11982
|
updated_at?: string;
|
|
11171
11983
|
};
|
|
11172
11984
|
Update: {
|
|
11173
11985
|
active?: boolean;
|
|
11986
|
+
ai_tags?: string[];
|
|
11987
|
+
category_id?: string | null;
|
|
11174
11988
|
code?: string;
|
|
11175
11989
|
created_at?: string;
|
|
11176
11990
|
default_quantity?: number;
|
|
11177
11991
|
description?: string | null;
|
|
11992
|
+
duration_minutes?: number | null;
|
|
11178
11993
|
id?: string;
|
|
11994
|
+
mandaat_type?: string | null;
|
|
11179
11995
|
name?: string;
|
|
11996
|
+
sort_order?: number;
|
|
11180
11997
|
unit_price_cents?: number;
|
|
11181
11998
|
updated_at?: string;
|
|
11182
11999
|
};
|
|
11183
|
-
Relationships: [
|
|
12000
|
+
Relationships: [
|
|
12001
|
+
{
|
|
12002
|
+
foreignKeyName: "werkbon_packages_category_id_fkey";
|
|
12003
|
+
columns: ["category_id"];
|
|
12004
|
+
isOneToOne: false;
|
|
12005
|
+
referencedRelation: "werkbon_package_categories";
|
|
12006
|
+
referencedColumns: ["id"];
|
|
12007
|
+
}
|
|
12008
|
+
];
|
|
11184
12009
|
};
|
|
11185
12010
|
werkbon_photos: {
|
|
11186
12011
|
Row: {
|
|
@@ -11272,7 +12097,10 @@ export type Database = {
|
|
|
11272
12097
|
scheduled_end_time: string | null;
|
|
11273
12098
|
scheduled_start_time: string | null;
|
|
11274
12099
|
sequence_number: number;
|
|
12100
|
+
source_email_meta: Json | null;
|
|
12101
|
+
source_mailbox_message_id: string | null;
|
|
11275
12102
|
source_pdf_path: string | null;
|
|
12103
|
+
source_type: string;
|
|
11276
12104
|
status: string;
|
|
11277
12105
|
technician_id: string | null;
|
|
11278
12106
|
technician_notes: string | null;
|
|
@@ -11301,7 +12129,10 @@ export type Database = {
|
|
|
11301
12129
|
scheduled_end_time?: string | null;
|
|
11302
12130
|
scheduled_start_time?: string | null;
|
|
11303
12131
|
sequence_number: number;
|
|
12132
|
+
source_email_meta?: Json | null;
|
|
12133
|
+
source_mailbox_message_id?: string | null;
|
|
11304
12134
|
source_pdf_path?: string | null;
|
|
12135
|
+
source_type?: string;
|
|
11305
12136
|
status?: string;
|
|
11306
12137
|
technician_id?: string | null;
|
|
11307
12138
|
technician_notes?: string | null;
|
|
@@ -11330,7 +12161,10 @@ export type Database = {
|
|
|
11330
12161
|
scheduled_end_time?: string | null;
|
|
11331
12162
|
scheduled_start_time?: string | null;
|
|
11332
12163
|
sequence_number?: number;
|
|
12164
|
+
source_email_meta?: Json | null;
|
|
12165
|
+
source_mailbox_message_id?: string | null;
|
|
11333
12166
|
source_pdf_path?: string | null;
|
|
12167
|
+
source_type?: string;
|
|
11334
12168
|
status?: string;
|
|
11335
12169
|
technician_id?: string | null;
|
|
11336
12170
|
technician_notes?: string | null;
|
|
@@ -11349,10 +12183,10 @@ export type Database = {
|
|
|
11349
12183
|
referencedColumns: ["id"];
|
|
11350
12184
|
},
|
|
11351
12185
|
{
|
|
11352
|
-
foreignKeyName: "
|
|
11353
|
-
columns: ["
|
|
12186
|
+
foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
|
|
12187
|
+
columns: ["source_mailbox_message_id"];
|
|
11354
12188
|
isOneToOne: false;
|
|
11355
|
-
referencedRelation: "
|
|
12189
|
+
referencedRelation: "mailbox_messages";
|
|
11356
12190
|
referencedColumns: ["id"];
|
|
11357
12191
|
}
|
|
11358
12192
|
];
|
|
@@ -12065,6 +12899,13 @@ export type Database = {
|
|
|
12065
12899
|
};
|
|
12066
12900
|
Returns: number;
|
|
12067
12901
|
};
|
|
12902
|
+
_migrate_rewrite_stock_key: {
|
|
12903
|
+
Args: {
|
|
12904
|
+
_from_key: string;
|
|
12905
|
+
_to_key: string;
|
|
12906
|
+
};
|
|
12907
|
+
Returns: undefined;
|
|
12908
|
+
};
|
|
12068
12909
|
afh_city_code: {
|
|
12069
12910
|
Args: {
|
|
12070
12911
|
_city: string;
|
|
@@ -12091,6 +12932,21 @@ export type Database = {
|
|
|
12091
12932
|
};
|
|
12092
12933
|
Returns: string;
|
|
12093
12934
|
};
|
|
12935
|
+
ai_usage_by_module: {
|
|
12936
|
+
Args: {
|
|
12937
|
+
_from: string;
|
|
12938
|
+
_to: string;
|
|
12939
|
+
};
|
|
12940
|
+
Returns: {
|
|
12941
|
+
calls: number;
|
|
12942
|
+
consumer_module_id: string;
|
|
12943
|
+
cost_usd: number;
|
|
12944
|
+
errors: number;
|
|
12945
|
+
input_tokens: number;
|
|
12946
|
+
output_tokens: number;
|
|
12947
|
+
total_tokens: number;
|
|
12948
|
+
}[];
|
|
12949
|
+
};
|
|
12094
12950
|
apply_stock_consumption: {
|
|
12095
12951
|
Args: {
|
|
12096
12952
|
p_order_id: string;
|
|
@@ -12148,6 +13004,12 @@ export type Database = {
|
|
|
12148
13004
|
processed_items: number;
|
|
12149
13005
|
}[];
|
|
12150
13006
|
};
|
|
13007
|
+
calculate_layer_stock: {
|
|
13008
|
+
Args: {
|
|
13009
|
+
p_product_id: string;
|
|
13010
|
+
};
|
|
13011
|
+
Returns: number;
|
|
13012
|
+
};
|
|
12151
13013
|
call_exact_route: {
|
|
12152
13014
|
Args: {
|
|
12153
13015
|
path: string;
|
|
@@ -12207,6 +13069,28 @@ export type Database = {
|
|
|
12207
13069
|
Args: never;
|
|
12208
13070
|
Returns: undefined;
|
|
12209
13071
|
};
|
|
13072
|
+
consume_bom_for_production: {
|
|
13073
|
+
Args: {
|
|
13074
|
+
p_connection_id: string;
|
|
13075
|
+
p_parent_id: string;
|
|
13076
|
+
p_parent_key: string;
|
|
13077
|
+
p_parent_kind: string;
|
|
13078
|
+
p_quantity: number;
|
|
13079
|
+
p_user_id: string;
|
|
13080
|
+
};
|
|
13081
|
+
Returns: Json;
|
|
13082
|
+
} | {
|
|
13083
|
+
Args: {
|
|
13084
|
+
p_batch_id?: string;
|
|
13085
|
+
p_connection_id: string;
|
|
13086
|
+
p_parent_id: string;
|
|
13087
|
+
p_parent_key: string;
|
|
13088
|
+
p_parent_kind: string;
|
|
13089
|
+
p_quantity: number;
|
|
13090
|
+
p_user_id: string;
|
|
13091
|
+
};
|
|
13092
|
+
Returns: Json;
|
|
13093
|
+
};
|
|
12210
13094
|
consume_floriday_rate_limit: {
|
|
12211
13095
|
Args: {
|
|
12212
13096
|
p_bucket: string;
|
|
@@ -12239,6 +13123,12 @@ export type Database = {
|
|
|
12239
13123
|
Args: never;
|
|
12240
13124
|
Returns: string;
|
|
12241
13125
|
};
|
|
13126
|
+
custom_access_token_hook: {
|
|
13127
|
+
Args: {
|
|
13128
|
+
event: Json;
|
|
13129
|
+
};
|
|
13130
|
+
Returns: Json;
|
|
13131
|
+
};
|
|
12242
13132
|
dashboard_alert_counts: {
|
|
12243
13133
|
Args: never;
|
|
12244
13134
|
Returns: Json;
|
|
@@ -12258,6 +13148,13 @@ export type Database = {
|
|
|
12258
13148
|
table_name: string;
|
|
12259
13149
|
}[];
|
|
12260
13150
|
};
|
|
13151
|
+
delete_samenstelling: {
|
|
13152
|
+
Args: {
|
|
13153
|
+
p_parent_id: string;
|
|
13154
|
+
p_parent_kind: string;
|
|
13155
|
+
};
|
|
13156
|
+
Returns: Json;
|
|
13157
|
+
};
|
|
12261
13158
|
dispatch_carrier_signups_sql: {
|
|
12262
13159
|
Args: {
|
|
12263
13160
|
_catchup?: string;
|
|
@@ -12513,6 +13410,27 @@ export type Database = {
|
|
|
12513
13410
|
minutes_since_success: number;
|
|
12514
13411
|
}[];
|
|
12515
13412
|
};
|
|
13413
|
+
get_group_allocation_keys: {
|
|
13414
|
+
Args: {
|
|
13415
|
+
p_product_id: string;
|
|
13416
|
+
};
|
|
13417
|
+
Returns: {
|
|
13418
|
+
k: string;
|
|
13419
|
+
ord: number;
|
|
13420
|
+
}[];
|
|
13421
|
+
};
|
|
13422
|
+
get_group_head_key: {
|
|
13423
|
+
Args: {
|
|
13424
|
+
p_group_id: string;
|
|
13425
|
+
};
|
|
13426
|
+
Returns: string;
|
|
13427
|
+
};
|
|
13428
|
+
get_inventory_stock_for_key: {
|
|
13429
|
+
Args: {
|
|
13430
|
+
p_key: string;
|
|
13431
|
+
};
|
|
13432
|
+
Returns: number;
|
|
13433
|
+
};
|
|
12516
13434
|
get_offer_by_link_code: {
|
|
12517
13435
|
Args: {
|
|
12518
13436
|
p_code: string;
|
|
@@ -12543,6 +13461,12 @@ export type Database = {
|
|
|
12543
13461
|
};
|
|
12544
13462
|
Returns: string;
|
|
12545
13463
|
};
|
|
13464
|
+
get_product_group_available_stock: {
|
|
13465
|
+
Args: {
|
|
13466
|
+
p_group_id: string;
|
|
13467
|
+
};
|
|
13468
|
+
Returns: number;
|
|
13469
|
+
};
|
|
12546
13470
|
get_room_busy_windows: {
|
|
12547
13471
|
Args: {
|
|
12548
13472
|
p_from: string;
|
|
@@ -12607,12 +13531,35 @@ export type Database = {
|
|
|
12607
13531
|
};
|
|
12608
13532
|
Returns: boolean;
|
|
12609
13533
|
};
|
|
13534
|
+
jwt_has_role: {
|
|
13535
|
+
Args: {
|
|
13536
|
+
_role: Database["public"]["Enums"]["app_role"];
|
|
13537
|
+
};
|
|
13538
|
+
Returns: boolean;
|
|
13539
|
+
};
|
|
12610
13540
|
list_monteurs: {
|
|
12611
13541
|
Args: never;
|
|
12612
13542
|
Returns: {
|
|
13543
|
+
avatar_url: string;
|
|
12613
13544
|
display_name: string;
|
|
12614
13545
|
email: string;
|
|
12615
|
-
|
|
13546
|
+
id: string;
|
|
13547
|
+
}[];
|
|
13548
|
+
};
|
|
13549
|
+
list_my_planning_items: {
|
|
13550
|
+
Args: {
|
|
13551
|
+
_from: string;
|
|
13552
|
+
_to: string;
|
|
13553
|
+
};
|
|
13554
|
+
Returns: {
|
|
13555
|
+
assigned_monteur_id: string;
|
|
13556
|
+
end_at: string;
|
|
13557
|
+
id: string;
|
|
13558
|
+
notes: string;
|
|
13559
|
+
role: string;
|
|
13560
|
+
start_at: string;
|
|
13561
|
+
status: Database["public"]["Enums"]["planning_item_status"];
|
|
13562
|
+
werkbon_id: string;
|
|
12616
13563
|
}[];
|
|
12617
13564
|
};
|
|
12618
13565
|
local_effective_price: {
|
|
@@ -12631,6 +13578,22 @@ export type Database = {
|
|
|
12631
13578
|
source_id: string;
|
|
12632
13579
|
}[];
|
|
12633
13580
|
};
|
|
13581
|
+
log_ai_call: {
|
|
13582
|
+
Args: {
|
|
13583
|
+
_consumer_module_id: string;
|
|
13584
|
+
_cost_usd: number;
|
|
13585
|
+
_duration_ms: number;
|
|
13586
|
+
_error_code: string;
|
|
13587
|
+
_error_message: string;
|
|
13588
|
+
_input_tokens: number;
|
|
13589
|
+
_model_slug: string;
|
|
13590
|
+
_output_tokens: number;
|
|
13591
|
+
_provider_slug: string;
|
|
13592
|
+
_status: string;
|
|
13593
|
+
_total_tokens: number;
|
|
13594
|
+
};
|
|
13595
|
+
Returns: string;
|
|
13596
|
+
};
|
|
12634
13597
|
mark_offer_clicked: {
|
|
12635
13598
|
Args: {
|
|
12636
13599
|
p_code: string;
|
|
@@ -12643,12 +13606,32 @@ export type Database = {
|
|
|
12643
13606
|
};
|
|
12644
13607
|
Returns: undefined;
|
|
12645
13608
|
};
|
|
13609
|
+
mark_salesorder_controlled: {
|
|
13610
|
+
Args: {
|
|
13611
|
+
p_controlled: boolean;
|
|
13612
|
+
p_floriday_id: string;
|
|
13613
|
+
};
|
|
13614
|
+
Returns: undefined;
|
|
13615
|
+
};
|
|
12646
13616
|
mark_shipment_shipped: {
|
|
12647
13617
|
Args: {
|
|
12648
13618
|
p_shipment_id: string;
|
|
12649
13619
|
};
|
|
12650
13620
|
Returns: undefined;
|
|
12651
13621
|
};
|
|
13622
|
+
merge_products: {
|
|
13623
|
+
Args: {
|
|
13624
|
+
_canonical: string;
|
|
13625
|
+
_loser: string;
|
|
13626
|
+
};
|
|
13627
|
+
Returns: undefined;
|
|
13628
|
+
};
|
|
13629
|
+
next_manufacture_partij: {
|
|
13630
|
+
Args: {
|
|
13631
|
+
_tenant_id: string;
|
|
13632
|
+
};
|
|
13633
|
+
Returns: string;
|
|
13634
|
+
};
|
|
12652
13635
|
next_order_number: {
|
|
12653
13636
|
Args: {
|
|
12654
13637
|
p_prefix: string;
|
|
@@ -12722,6 +13705,15 @@ export type Database = {
|
|
|
12722
13705
|
};
|
|
12723
13706
|
Returns: undefined;
|
|
12724
13707
|
};
|
|
13708
|
+
pickstation_resolve_delivery_orders: {
|
|
13709
|
+
Args: {
|
|
13710
|
+
p_sales_order_ids: string[];
|
|
13711
|
+
};
|
|
13712
|
+
Returns: {
|
|
13713
|
+
delivery_order_id: string;
|
|
13714
|
+
sales_order_id: string;
|
|
13715
|
+
}[];
|
|
13716
|
+
};
|
|
12725
13717
|
pickstation_set_cart_status: {
|
|
12726
13718
|
Args: {
|
|
12727
13719
|
p_cart_index: number;
|
|
@@ -12731,6 +13723,14 @@ export type Database = {
|
|
|
12731
13723
|
};
|
|
12732
13724
|
Returns: undefined;
|
|
12733
13725
|
};
|
|
13726
|
+
produce_designed_product: {
|
|
13727
|
+
Args: {
|
|
13728
|
+
p_parent_id: string;
|
|
13729
|
+
p_parent_kind: string;
|
|
13730
|
+
p_quantity: number;
|
|
13731
|
+
};
|
|
13732
|
+
Returns: Json;
|
|
13733
|
+
};
|
|
12734
13734
|
promote_trade_item_key: {
|
|
12735
13735
|
Args: {
|
|
12736
13736
|
p_new: string;
|
|
@@ -12738,6 +13738,10 @@ export type Database = {
|
|
|
12738
13738
|
};
|
|
12739
13739
|
Returns: undefined;
|
|
12740
13740
|
};
|
|
13741
|
+
recompute_all_reserved_stock: {
|
|
13742
|
+
Args: never;
|
|
13743
|
+
Returns: undefined;
|
|
13744
|
+
};
|
|
12741
13745
|
recompute_order_status: {
|
|
12742
13746
|
Args: {
|
|
12743
13747
|
p_order_id: string;
|
|
@@ -12793,18 +13797,50 @@ export type Database = {
|
|
|
12793
13797
|
};
|
|
12794
13798
|
Returns: undefined;
|
|
12795
13799
|
};
|
|
13800
|
+
resolve_group_allocation: {
|
|
13801
|
+
Args: {
|
|
13802
|
+
_needed: number;
|
|
13803
|
+
_product_group_id: string;
|
|
13804
|
+
};
|
|
13805
|
+
Returns: {
|
|
13806
|
+
allocated: number;
|
|
13807
|
+
trade_item_id: string;
|
|
13808
|
+
}[];
|
|
13809
|
+
};
|
|
13810
|
+
resolve_group_member_stock_key: {
|
|
13811
|
+
Args: {
|
|
13812
|
+
p_trade_item_id: string;
|
|
13813
|
+
};
|
|
13814
|
+
Returns: string;
|
|
13815
|
+
};
|
|
12796
13816
|
resolve_product_id_for_item: {
|
|
12797
13817
|
Args: {
|
|
12798
13818
|
p_product_name: string;
|
|
12799
13819
|
};
|
|
12800
13820
|
Returns: string;
|
|
12801
13821
|
};
|
|
13822
|
+
resolve_stock_trade_item_key: {
|
|
13823
|
+
Args: {
|
|
13824
|
+
p_product_id: string;
|
|
13825
|
+
};
|
|
13826
|
+
Returns: string;
|
|
13827
|
+
};
|
|
12802
13828
|
retry_twinfield_push: {
|
|
12803
13829
|
Args: {
|
|
12804
13830
|
_customer_id: string;
|
|
12805
13831
|
};
|
|
12806
13832
|
Returns: number;
|
|
12807
13833
|
};
|
|
13834
|
+
reverse_production: {
|
|
13835
|
+
Args: {
|
|
13836
|
+
p_connection_id?: string;
|
|
13837
|
+
p_parent_key: string;
|
|
13838
|
+
p_quantity: number;
|
|
13839
|
+
p_reason?: string;
|
|
13840
|
+
p_user_id?: string;
|
|
13841
|
+
};
|
|
13842
|
+
Returns: Json;
|
|
13843
|
+
};
|
|
12808
13844
|
schedule_floriday_additional_services_sync: {
|
|
12809
13845
|
Args: {
|
|
12810
13846
|
p_apikey: string;
|
|
@@ -13072,6 +14108,17 @@ export type Database = {
|
|
|
13072
14108
|
};
|
|
13073
14109
|
Returns: number;
|
|
13074
14110
|
};
|
|
14111
|
+
self_heal_floriday_links: {
|
|
14112
|
+
Args: never;
|
|
14113
|
+
Returns: number;
|
|
14114
|
+
};
|
|
14115
|
+
set_planning_status: {
|
|
14116
|
+
Args: {
|
|
14117
|
+
_id: string;
|
|
14118
|
+
_status: Database["public"]["Enums"]["planning_item_status"];
|
|
14119
|
+
};
|
|
14120
|
+
Returns: undefined;
|
|
14121
|
+
};
|
|
13075
14122
|
show_limit: {
|
|
13076
14123
|
Args: never;
|
|
13077
14124
|
Returns: number;
|
|
@@ -13082,18 +14129,34 @@ export type Database = {
|
|
|
13082
14129
|
};
|
|
13083
14130
|
Returns: string[];
|
|
13084
14131
|
};
|
|
14132
|
+
sync_all_layer_stocks: {
|
|
14133
|
+
Args: never;
|
|
14134
|
+
Returns: undefined;
|
|
14135
|
+
};
|
|
13085
14136
|
sync_cached_packing_from_product: {
|
|
13086
14137
|
Args: {
|
|
13087
14138
|
p_product_id: string;
|
|
13088
14139
|
};
|
|
13089
14140
|
Returns: undefined;
|
|
13090
14141
|
};
|
|
14142
|
+
sync_layer_stock: {
|
|
14143
|
+
Args: {
|
|
14144
|
+
p_product_id: string;
|
|
14145
|
+
};
|
|
14146
|
+
Returns: undefined;
|
|
14147
|
+
};
|
|
13091
14148
|
sync_order_cart_item_packing_from_product: {
|
|
13092
14149
|
Args: {
|
|
13093
14150
|
p_product_id: string;
|
|
13094
14151
|
};
|
|
13095
14152
|
Returns: undefined;
|
|
13096
14153
|
};
|
|
14154
|
+
sync_product_group_belading: {
|
|
14155
|
+
Args: {
|
|
14156
|
+
_group_id: string;
|
|
14157
|
+
};
|
|
14158
|
+
Returns: undefined;
|
|
14159
|
+
};
|
|
13097
14160
|
sync_product_packing_from_floriday_cache: {
|
|
13098
14161
|
Args: {
|
|
13099
14162
|
p_floriday_id: string;
|
|
@@ -13125,11 +14188,12 @@ export type Database = {
|
|
|
13125
14188
|
};
|
|
13126
14189
|
};
|
|
13127
14190
|
Enums: {
|
|
13128
|
-
app_role: "admin" | "planner" | "monteur" | "administratie";
|
|
14191
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
13129
14192
|
exact_env: "staging" | "live";
|
|
13130
14193
|
exact_push_status: "pending" | "sent" | "error";
|
|
13131
14194
|
itk_customer_segment: "Business" | "Private";
|
|
13132
14195
|
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
14196
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
13133
14197
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
13134
14198
|
};
|
|
13135
14199
|
CompositeTypes: {
|
|
@@ -13189,11 +14253,12 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
|
|
|
13189
14253
|
export declare const Constants: {
|
|
13190
14254
|
readonly public: {
|
|
13191
14255
|
readonly Enums: {
|
|
13192
|
-
readonly app_role: readonly ["admin", "planner", "monteur", "administratie"];
|
|
14256
|
+
readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin"];
|
|
13193
14257
|
readonly exact_env: readonly ["staging", "live"];
|
|
13194
14258
|
readonly exact_push_status: readonly ["pending", "sent", "error"];
|
|
13195
14259
|
readonly itk_customer_segment: readonly ["Business", "Private"];
|
|
13196
14260
|
readonly itk_dynamic_field_type: readonly ["text", "select", "date", "checkbox"];
|
|
14261
|
+
readonly planning_item_status: readonly ["gepland", "bezig", "afgerond", "geannuleerd", "concept", "vrijgegeven"];
|
|
13197
14262
|
readonly quote_status: readonly ["concept", "verzonden", "bekeken", "in_behandeling", "geaccepteerd", "afgewezen", "verlopen", "gearchiveerd"];
|
|
13198
14263
|
};
|
|
13199
14264
|
};
|