@flowselections/floriday-verkoop-module 1.0.42 → 1.0.44
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/components/verkoop/SalesOrdersTable.d.ts +5 -2
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +27 -13
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.js +114 -35
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +571 -12
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +571 -12
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +571 -12
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +594 -13
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -0
- package/dist-lib/lib/cart-lock.functions.d.ts +571 -12
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +6281 -132
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +1713 -36
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.d.ts +31355 -193
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +18 -1
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1713 -36
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +571 -12
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts +571 -12
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.js +6 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +3997 -84
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +2855 -60
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.functions.d.ts +2284 -48
- package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.server.js +1 -0
- package/dist-lib/lib/load-carriers.functions.d.ts +571 -12
- package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-engine.functions.d.ts +2855 -60
- package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-stock.functions.d.ts +1142 -24
- package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-addresses.functions.d.ts +571 -12
- package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-buffers.functions.d.ts +1713 -36
- package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-cancel.server.d.ts +24 -0
- package/dist-lib/lib/order-cancel.server.d.ts.map +1 -0
- package/dist-lib/lib/order-cancel.server.js +130 -0
- package/dist-lib/lib/order-carrier.functions.d.ts +1142 -24
- package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-pickup.functions.d.ts +1142 -24
- package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +2284 -48
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.functions.d.ts +571 -12
- package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.js +4 -60
- package/dist-lib/lib/salesorders.functions.d.ts +2855 -60
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +571 -12
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5045,6 +5045,42 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
5045
5045
|
};
|
|
5046
5046
|
Relationships: [];
|
|
5047
5047
|
};
|
|
5048
|
+
facturen: {
|
|
5049
|
+
Row: {
|
|
5050
|
+
bedrag_incl_btw: number;
|
|
5051
|
+
created_at: string;
|
|
5052
|
+
datum: string;
|
|
5053
|
+
factuurnummer: string;
|
|
5054
|
+
id: string;
|
|
5055
|
+
klantnaam: string;
|
|
5056
|
+
status: string;
|
|
5057
|
+
updated_at: string;
|
|
5058
|
+
user_id: string;
|
|
5059
|
+
};
|
|
5060
|
+
Insert: {
|
|
5061
|
+
bedrag_incl_btw: number;
|
|
5062
|
+
created_at?: string;
|
|
5063
|
+
datum?: string;
|
|
5064
|
+
factuurnummer: string;
|
|
5065
|
+
id?: string;
|
|
5066
|
+
klantnaam: string;
|
|
5067
|
+
status?: string;
|
|
5068
|
+
updated_at?: string;
|
|
5069
|
+
user_id?: string;
|
|
5070
|
+
};
|
|
5071
|
+
Update: {
|
|
5072
|
+
bedrag_incl_btw?: number;
|
|
5073
|
+
created_at?: string;
|
|
5074
|
+
datum?: string;
|
|
5075
|
+
factuurnummer?: string;
|
|
5076
|
+
id?: string;
|
|
5077
|
+
klantnaam?: string;
|
|
5078
|
+
status?: string;
|
|
5079
|
+
updated_at?: string;
|
|
5080
|
+
user_id?: string;
|
|
5081
|
+
};
|
|
5082
|
+
Relationships: [];
|
|
5083
|
+
};
|
|
5048
5084
|
floricode_connection_settings: {
|
|
5049
5085
|
Row: {
|
|
5050
5086
|
catalog_key: string | null;
|
|
@@ -7769,6 +7805,258 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
7769
7805
|
};
|
|
7770
7806
|
Relationships: [];
|
|
7771
7807
|
};
|
|
7808
|
+
itk_offerte_events: {
|
|
7809
|
+
Row: {
|
|
7810
|
+
created_at: string;
|
|
7811
|
+
event_type: string;
|
|
7812
|
+
id: string;
|
|
7813
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
7814
|
+
offerte_id: string;
|
|
7815
|
+
omschrijving: string | null;
|
|
7816
|
+
user_id: string | null;
|
|
7817
|
+
};
|
|
7818
|
+
Insert: {
|
|
7819
|
+
created_at?: string;
|
|
7820
|
+
event_type: string;
|
|
7821
|
+
id?: string;
|
|
7822
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7823
|
+
offerte_id: string;
|
|
7824
|
+
omschrijving?: string | null;
|
|
7825
|
+
user_id?: string | null;
|
|
7826
|
+
};
|
|
7827
|
+
Update: {
|
|
7828
|
+
created_at?: string;
|
|
7829
|
+
event_type?: string;
|
|
7830
|
+
id?: string;
|
|
7831
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7832
|
+
offerte_id?: string;
|
|
7833
|
+
omschrijving?: string | null;
|
|
7834
|
+
user_id?: string | null;
|
|
7835
|
+
};
|
|
7836
|
+
Relationships: [{
|
|
7837
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
7838
|
+
columns: ["offerte_id"];
|
|
7839
|
+
isOneToOne: false;
|
|
7840
|
+
referencedRelation: "itk_offertes";
|
|
7841
|
+
referencedColumns: ["id"];
|
|
7842
|
+
}];
|
|
7843
|
+
};
|
|
7844
|
+
itk_offerte_regels: {
|
|
7845
|
+
Row: {
|
|
7846
|
+
created_at: string;
|
|
7847
|
+
id: string;
|
|
7848
|
+
line_total_cents: number;
|
|
7849
|
+
offerte_id: string;
|
|
7850
|
+
omschrijving: string;
|
|
7851
|
+
package_id: string | null;
|
|
7852
|
+
quantity: number;
|
|
7853
|
+
sort_order: number;
|
|
7854
|
+
source: string;
|
|
7855
|
+
unit_price_cents: number;
|
|
7856
|
+
updated_at: string;
|
|
7857
|
+
};
|
|
7858
|
+
Insert: {
|
|
7859
|
+
created_at?: string;
|
|
7860
|
+
id?: string;
|
|
7861
|
+
line_total_cents?: number;
|
|
7862
|
+
offerte_id: string;
|
|
7863
|
+
omschrijving?: string;
|
|
7864
|
+
package_id?: string | null;
|
|
7865
|
+
quantity?: number;
|
|
7866
|
+
sort_order?: number;
|
|
7867
|
+
source?: string;
|
|
7868
|
+
unit_price_cents?: number;
|
|
7869
|
+
updated_at?: string;
|
|
7870
|
+
};
|
|
7871
|
+
Update: {
|
|
7872
|
+
created_at?: string;
|
|
7873
|
+
id?: string;
|
|
7874
|
+
line_total_cents?: number;
|
|
7875
|
+
offerte_id?: string;
|
|
7876
|
+
omschrijving?: string;
|
|
7877
|
+
package_id?: string | null;
|
|
7878
|
+
quantity?: number;
|
|
7879
|
+
sort_order?: number;
|
|
7880
|
+
source?: string;
|
|
7881
|
+
unit_price_cents?: number;
|
|
7882
|
+
updated_at?: string;
|
|
7883
|
+
};
|
|
7884
|
+
Relationships: [{
|
|
7885
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
7886
|
+
columns: ["offerte_id"];
|
|
7887
|
+
isOneToOne: false;
|
|
7888
|
+
referencedRelation: "itk_offertes";
|
|
7889
|
+
referencedColumns: ["id"];
|
|
7890
|
+
}, {
|
|
7891
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
7892
|
+
columns: ["package_id"];
|
|
7893
|
+
isOneToOne: false;
|
|
7894
|
+
referencedRelation: "werkbon_packages";
|
|
7895
|
+
referencedColumns: ["id"];
|
|
7896
|
+
}];
|
|
7897
|
+
};
|
|
7898
|
+
itk_offerte_settings: {
|
|
7899
|
+
Row: {
|
|
7900
|
+
auto_convert_binnen_mandaat: boolean;
|
|
7901
|
+
created_at: string;
|
|
7902
|
+
default_geldigheid_dagen: number;
|
|
7903
|
+
default_vat_rate: number;
|
|
7904
|
+
id: string;
|
|
7905
|
+
singleton: boolean;
|
|
7906
|
+
updated_at: string;
|
|
7907
|
+
};
|
|
7908
|
+
Insert: {
|
|
7909
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7910
|
+
created_at?: string;
|
|
7911
|
+
default_geldigheid_dagen?: number;
|
|
7912
|
+
default_vat_rate?: number;
|
|
7913
|
+
id?: string;
|
|
7914
|
+
singleton?: boolean;
|
|
7915
|
+
updated_at?: string;
|
|
7916
|
+
};
|
|
7917
|
+
Update: {
|
|
7918
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7919
|
+
created_at?: string;
|
|
7920
|
+
default_geldigheid_dagen?: number;
|
|
7921
|
+
default_vat_rate?: number;
|
|
7922
|
+
id?: string;
|
|
7923
|
+
singleton?: boolean;
|
|
7924
|
+
updated_at?: string;
|
|
7925
|
+
};
|
|
7926
|
+
Relationships: [];
|
|
7927
|
+
};
|
|
7928
|
+
itk_offertes: {
|
|
7929
|
+
Row: {
|
|
7930
|
+
ai_generated: boolean;
|
|
7931
|
+
approved_at: string | null;
|
|
7932
|
+
binnen_mandaat: boolean;
|
|
7933
|
+
contact_id: string | null;
|
|
7934
|
+
converted_at: string | null;
|
|
7935
|
+
created_at: string;
|
|
7936
|
+
created_by: string | null;
|
|
7937
|
+
customer_id: string | null;
|
|
7938
|
+
follow_up_werkbon_id: string | null;
|
|
7939
|
+
id: string;
|
|
7940
|
+
jaar: number;
|
|
7941
|
+
mandaat_restant_cents: number;
|
|
7942
|
+
notities: string | null;
|
|
7943
|
+
offerte_number: string | null;
|
|
7944
|
+
omschrijving: string;
|
|
7945
|
+
rejected_at: string | null;
|
|
7946
|
+
sent_at: string | null;
|
|
7947
|
+
source_number: string | null;
|
|
7948
|
+
source_ref: string | null;
|
|
7949
|
+
source_type: string;
|
|
7950
|
+
status: string;
|
|
7951
|
+
subtotal_cents: number;
|
|
7952
|
+
total_cents: number;
|
|
7953
|
+
updated_at: string;
|
|
7954
|
+
valid_until: string | null;
|
|
7955
|
+
vat_cents: number;
|
|
7956
|
+
vat_rate: number;
|
|
7957
|
+
viewed_at: string | null;
|
|
7958
|
+
volgnummer: number | null;
|
|
7959
|
+
werkbon_id: string | null;
|
|
7960
|
+
work_location_id: string | null;
|
|
7961
|
+
};
|
|
7962
|
+
Insert: {
|
|
7963
|
+
ai_generated?: boolean;
|
|
7964
|
+
approved_at?: string | null;
|
|
7965
|
+
binnen_mandaat?: boolean;
|
|
7966
|
+
contact_id?: string | null;
|
|
7967
|
+
converted_at?: string | null;
|
|
7968
|
+
created_at?: string;
|
|
7969
|
+
created_by?: string | null;
|
|
7970
|
+
customer_id?: string | null;
|
|
7971
|
+
follow_up_werkbon_id?: string | null;
|
|
7972
|
+
id?: string;
|
|
7973
|
+
jaar?: number;
|
|
7974
|
+
mandaat_restant_cents?: number;
|
|
7975
|
+
notities?: string | null;
|
|
7976
|
+
offerte_number?: string | null;
|
|
7977
|
+
omschrijving?: string;
|
|
7978
|
+
rejected_at?: string | null;
|
|
7979
|
+
sent_at?: string | null;
|
|
7980
|
+
source_number?: string | null;
|
|
7981
|
+
source_ref?: string | null;
|
|
7982
|
+
source_type?: string;
|
|
7983
|
+
status?: string;
|
|
7984
|
+
subtotal_cents?: number;
|
|
7985
|
+
total_cents?: number;
|
|
7986
|
+
updated_at?: string;
|
|
7987
|
+
valid_until?: string | null;
|
|
7988
|
+
vat_cents?: number;
|
|
7989
|
+
vat_rate?: number;
|
|
7990
|
+
viewed_at?: string | null;
|
|
7991
|
+
volgnummer?: number | null;
|
|
7992
|
+
werkbon_id?: string | null;
|
|
7993
|
+
work_location_id?: string | null;
|
|
7994
|
+
};
|
|
7995
|
+
Update: {
|
|
7996
|
+
ai_generated?: boolean;
|
|
7997
|
+
approved_at?: string | null;
|
|
7998
|
+
binnen_mandaat?: boolean;
|
|
7999
|
+
contact_id?: string | null;
|
|
8000
|
+
converted_at?: string | null;
|
|
8001
|
+
created_at?: string;
|
|
8002
|
+
created_by?: string | null;
|
|
8003
|
+
customer_id?: string | null;
|
|
8004
|
+
follow_up_werkbon_id?: string | null;
|
|
8005
|
+
id?: string;
|
|
8006
|
+
jaar?: number;
|
|
8007
|
+
mandaat_restant_cents?: number;
|
|
8008
|
+
notities?: string | null;
|
|
8009
|
+
offerte_number?: string | null;
|
|
8010
|
+
omschrijving?: string;
|
|
8011
|
+
rejected_at?: string | null;
|
|
8012
|
+
sent_at?: string | null;
|
|
8013
|
+
source_number?: string | null;
|
|
8014
|
+
source_ref?: string | null;
|
|
8015
|
+
source_type?: string;
|
|
8016
|
+
status?: string;
|
|
8017
|
+
subtotal_cents?: number;
|
|
8018
|
+
total_cents?: number;
|
|
8019
|
+
updated_at?: string;
|
|
8020
|
+
valid_until?: string | null;
|
|
8021
|
+
vat_cents?: number;
|
|
8022
|
+
vat_rate?: number;
|
|
8023
|
+
viewed_at?: string | null;
|
|
8024
|
+
volgnummer?: number | null;
|
|
8025
|
+
werkbon_id?: string | null;
|
|
8026
|
+
work_location_id?: string | null;
|
|
8027
|
+
};
|
|
8028
|
+
Relationships: [{
|
|
8029
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8030
|
+
columns: ["contact_id"];
|
|
8031
|
+
isOneToOne: false;
|
|
8032
|
+
referencedRelation: "itk_contact_persons";
|
|
8033
|
+
referencedColumns: ["id"];
|
|
8034
|
+
}, {
|
|
8035
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8036
|
+
columns: ["customer_id"];
|
|
8037
|
+
isOneToOne: false;
|
|
8038
|
+
referencedRelation: "itk_customers";
|
|
8039
|
+
referencedColumns: ["id"];
|
|
8040
|
+
}, {
|
|
8041
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8042
|
+
columns: ["follow_up_werkbon_id"];
|
|
8043
|
+
isOneToOne: false;
|
|
8044
|
+
referencedRelation: "werkbonnen";
|
|
8045
|
+
referencedColumns: ["id"];
|
|
8046
|
+
}, {
|
|
8047
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8048
|
+
columns: ["werkbon_id"];
|
|
8049
|
+
isOneToOne: false;
|
|
8050
|
+
referencedRelation: "werkbonnen";
|
|
8051
|
+
referencedColumns: ["id"];
|
|
8052
|
+
}, {
|
|
8053
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8054
|
+
columns: ["work_location_id"];
|
|
8055
|
+
isOneToOne: false;
|
|
8056
|
+
referencedRelation: "itk_work_locations";
|
|
8057
|
+
referencedColumns: ["id"];
|
|
8058
|
+
}];
|
|
8059
|
+
};
|
|
7772
8060
|
itk_work_locations: {
|
|
7773
8061
|
Row: {
|
|
7774
8062
|
city: string | null;
|
|
@@ -10142,6 +10430,63 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
10142
10430
|
referencedColumns: ["id"];
|
|
10143
10431
|
}];
|
|
10144
10432
|
};
|
|
10433
|
+
medewerker_details: {
|
|
10434
|
+
Row: {
|
|
10435
|
+
color: string | null;
|
|
10436
|
+
created_at: string;
|
|
10437
|
+
hours_fri: number | null;
|
|
10438
|
+
hours_mon: number | null;
|
|
10439
|
+
hours_thu: number | null;
|
|
10440
|
+
hours_tue: number | null;
|
|
10441
|
+
hours_wed: number | null;
|
|
10442
|
+
id: string;
|
|
10443
|
+
is_active: boolean;
|
|
10444
|
+
leave_balance_hours: number;
|
|
10445
|
+
persnr: string | null;
|
|
10446
|
+
phone: string | null;
|
|
10447
|
+
profile_id: string;
|
|
10448
|
+
updated_at: string;
|
|
10449
|
+
};
|
|
10450
|
+
Insert: {
|
|
10451
|
+
color?: string | null;
|
|
10452
|
+
created_at?: string;
|
|
10453
|
+
hours_fri?: number | null;
|
|
10454
|
+
hours_mon?: number | null;
|
|
10455
|
+
hours_thu?: number | null;
|
|
10456
|
+
hours_tue?: number | null;
|
|
10457
|
+
hours_wed?: number | null;
|
|
10458
|
+
id?: string;
|
|
10459
|
+
is_active?: boolean;
|
|
10460
|
+
leave_balance_hours?: number;
|
|
10461
|
+
persnr?: string | null;
|
|
10462
|
+
phone?: string | null;
|
|
10463
|
+
profile_id: string;
|
|
10464
|
+
updated_at?: string;
|
|
10465
|
+
};
|
|
10466
|
+
Update: {
|
|
10467
|
+
color?: string | null;
|
|
10468
|
+
created_at?: string;
|
|
10469
|
+
hours_fri?: number | null;
|
|
10470
|
+
hours_mon?: number | null;
|
|
10471
|
+
hours_thu?: number | null;
|
|
10472
|
+
hours_tue?: number | null;
|
|
10473
|
+
hours_wed?: number | null;
|
|
10474
|
+
id?: string;
|
|
10475
|
+
is_active?: boolean;
|
|
10476
|
+
leave_balance_hours?: number;
|
|
10477
|
+
persnr?: string | null;
|
|
10478
|
+
phone?: string | null;
|
|
10479
|
+
profile_id?: string;
|
|
10480
|
+
updated_at?: string;
|
|
10481
|
+
};
|
|
10482
|
+
Relationships: [{
|
|
10483
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10484
|
+
columns: ["profile_id"];
|
|
10485
|
+
isOneToOne: true;
|
|
10486
|
+
referencedRelation: "profiles";
|
|
10487
|
+
referencedColumns: ["id"];
|
|
10488
|
+
}];
|
|
10489
|
+
};
|
|
10145
10490
|
module_features: {
|
|
10146
10491
|
Row: {
|
|
10147
10492
|
created_at: string;
|
|
@@ -11435,6 +11780,8 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
11435
11780
|
orders: {
|
|
11436
11781
|
Row: {
|
|
11437
11782
|
buffer_id: string | null;
|
|
11783
|
+
cancel_reason: string | null;
|
|
11784
|
+
cancelled_at: string | null;
|
|
11438
11785
|
created_at: string;
|
|
11439
11786
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
11440
11787
|
customer_id: string | null;
|
|
@@ -11457,6 +11804,8 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
11457
11804
|
};
|
|
11458
11805
|
Insert: {
|
|
11459
11806
|
buffer_id?: string | null;
|
|
11807
|
+
cancel_reason?: string | null;
|
|
11808
|
+
cancelled_at?: string | null;
|
|
11460
11809
|
created_at?: string;
|
|
11461
11810
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11462
11811
|
customer_id?: string | null;
|
|
@@ -11479,6 +11828,8 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
11479
11828
|
};
|
|
11480
11829
|
Update: {
|
|
11481
11830
|
buffer_id?: string | null;
|
|
11831
|
+
cancel_reason?: string | null;
|
|
11832
|
+
cancelled_at?: string | null;
|
|
11482
11833
|
created_at?: string;
|
|
11483
11834
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11484
11835
|
customer_id?: string | null;
|
|
@@ -13541,6 +13892,66 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
13541
13892
|
};
|
|
13542
13893
|
Relationships: [];
|
|
13543
13894
|
};
|
|
13895
|
+
profile_modules: {
|
|
13896
|
+
Row: {
|
|
13897
|
+
created_at: string;
|
|
13898
|
+
id: string;
|
|
13899
|
+
module_id: string;
|
|
13900
|
+
profile_id: string;
|
|
13901
|
+
};
|
|
13902
|
+
Insert: {
|
|
13903
|
+
created_at?: string;
|
|
13904
|
+
id?: string;
|
|
13905
|
+
module_id: string;
|
|
13906
|
+
profile_id: string;
|
|
13907
|
+
};
|
|
13908
|
+
Update: {
|
|
13909
|
+
created_at?: string;
|
|
13910
|
+
id?: string;
|
|
13911
|
+
module_id?: string;
|
|
13912
|
+
profile_id?: string;
|
|
13913
|
+
};
|
|
13914
|
+
Relationships: [{
|
|
13915
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
13916
|
+
columns: ["profile_id"];
|
|
13917
|
+
isOneToOne: false;
|
|
13918
|
+
referencedRelation: "profiles_org";
|
|
13919
|
+
referencedColumns: ["id"];
|
|
13920
|
+
}];
|
|
13921
|
+
};
|
|
13922
|
+
profile_roles: {
|
|
13923
|
+
Row: {
|
|
13924
|
+
created_at: string;
|
|
13925
|
+
id: string;
|
|
13926
|
+
profile_id: string;
|
|
13927
|
+
role_id: string;
|
|
13928
|
+
};
|
|
13929
|
+
Insert: {
|
|
13930
|
+
created_at?: string;
|
|
13931
|
+
id?: string;
|
|
13932
|
+
profile_id: string;
|
|
13933
|
+
role_id: string;
|
|
13934
|
+
};
|
|
13935
|
+
Update: {
|
|
13936
|
+
created_at?: string;
|
|
13937
|
+
id?: string;
|
|
13938
|
+
profile_id?: string;
|
|
13939
|
+
role_id?: string;
|
|
13940
|
+
};
|
|
13941
|
+
Relationships: [{
|
|
13942
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
13943
|
+
columns: ["profile_id"];
|
|
13944
|
+
isOneToOne: false;
|
|
13945
|
+
referencedRelation: "profiles_org";
|
|
13946
|
+
referencedColumns: ["id"];
|
|
13947
|
+
}, {
|
|
13948
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
13949
|
+
columns: ["role_id"];
|
|
13950
|
+
isOneToOne: false;
|
|
13951
|
+
referencedRelation: "roles";
|
|
13952
|
+
referencedColumns: ["id"];
|
|
13953
|
+
}];
|
|
13954
|
+
};
|
|
13544
13955
|
profiles: {
|
|
13545
13956
|
Row: {
|
|
13546
13957
|
address: string | null;
|
|
@@ -13586,6 +13997,39 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
13586
13997
|
referencedColumns: ["id"];
|
|
13587
13998
|
}];
|
|
13588
13999
|
};
|
|
14000
|
+
profiles_org: {
|
|
14001
|
+
Row: {
|
|
14002
|
+
created_at: string;
|
|
14003
|
+
id: string;
|
|
14004
|
+
is_default: boolean;
|
|
14005
|
+
name: string;
|
|
14006
|
+
tenant_id: string | null;
|
|
14007
|
+
updated_at: string;
|
|
14008
|
+
};
|
|
14009
|
+
Insert: {
|
|
14010
|
+
created_at?: string;
|
|
14011
|
+
id?: string;
|
|
14012
|
+
is_default?: boolean;
|
|
14013
|
+
name: string;
|
|
14014
|
+
tenant_id?: string | null;
|
|
14015
|
+
updated_at?: string;
|
|
14016
|
+
};
|
|
14017
|
+
Update: {
|
|
14018
|
+
created_at?: string;
|
|
14019
|
+
id?: string;
|
|
14020
|
+
is_default?: boolean;
|
|
14021
|
+
name?: string;
|
|
14022
|
+
tenant_id?: string | null;
|
|
14023
|
+
updated_at?: string;
|
|
14024
|
+
};
|
|
14025
|
+
Relationships: [{
|
|
14026
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14027
|
+
columns: ["tenant_id"];
|
|
14028
|
+
isOneToOne: false;
|
|
14029
|
+
referencedRelation: "tenants";
|
|
14030
|
+
referencedColumns: ["id"];
|
|
14031
|
+
}];
|
|
14032
|
+
};
|
|
13589
14033
|
projects: {
|
|
13590
14034
|
Row: {
|
|
13591
14035
|
contact_name: string | null;
|
|
@@ -14760,6 +15204,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
14760
15204
|
type: string;
|
|
14761
15205
|
updated_at: string;
|
|
14762
15206
|
vereist_medewerker: boolean;
|
|
15207
|
+
werkplek: string | null;
|
|
14763
15208
|
};
|
|
14764
15209
|
Insert: {
|
|
14765
15210
|
actief?: boolean;
|
|
@@ -14773,6 +15218,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
14773
15218
|
type?: string;
|
|
14774
15219
|
updated_at?: string;
|
|
14775
15220
|
vereist_medewerker?: boolean;
|
|
15221
|
+
werkplek?: string | null;
|
|
14776
15222
|
};
|
|
14777
15223
|
Update: {
|
|
14778
15224
|
actief?: boolean;
|
|
@@ -14786,9 +15232,46 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
14786
15232
|
type?: string;
|
|
14787
15233
|
updated_at?: string;
|
|
14788
15234
|
vereist_medewerker?: boolean;
|
|
15235
|
+
werkplek?: string | null;
|
|
14789
15236
|
};
|
|
14790
15237
|
Relationships: [];
|
|
14791
15238
|
};
|
|
15239
|
+
sick_periods: {
|
|
15240
|
+
Row: {
|
|
15241
|
+
created_at: string;
|
|
15242
|
+
employee_id: string;
|
|
15243
|
+
end_date: string | null;
|
|
15244
|
+
id: string;
|
|
15245
|
+
notes: string | null;
|
|
15246
|
+
start_date: string;
|
|
15247
|
+
updated_at: string;
|
|
15248
|
+
};
|
|
15249
|
+
Insert: {
|
|
15250
|
+
created_at?: string;
|
|
15251
|
+
employee_id: string;
|
|
15252
|
+
end_date?: string | null;
|
|
15253
|
+
id?: string;
|
|
15254
|
+
notes?: string | null;
|
|
15255
|
+
start_date: string;
|
|
15256
|
+
updated_at?: string;
|
|
15257
|
+
};
|
|
15258
|
+
Update: {
|
|
15259
|
+
created_at?: string;
|
|
15260
|
+
employee_id?: string;
|
|
15261
|
+
end_date?: string | null;
|
|
15262
|
+
id?: string;
|
|
15263
|
+
notes?: string | null;
|
|
15264
|
+
start_date?: string;
|
|
15265
|
+
updated_at?: string;
|
|
15266
|
+
};
|
|
15267
|
+
Relationships: [{
|
|
15268
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15269
|
+
columns: ["employee_id"];
|
|
15270
|
+
isOneToOne: false;
|
|
15271
|
+
referencedRelation: "profiles";
|
|
15272
|
+
referencedColumns: ["id"];
|
|
15273
|
+
}];
|
|
15274
|
+
};
|
|
14792
15275
|
sidebar_config: {
|
|
14793
15276
|
Row: {
|
|
14794
15277
|
id: string;
|
|
@@ -19473,6 +19956,13 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
19473
19956
|
};
|
|
19474
19957
|
Returns: string;
|
|
19475
19958
|
};
|
|
19959
|
+
employee_day_hours: {
|
|
19960
|
+
Args: {
|
|
19961
|
+
_day: string;
|
|
19962
|
+
_employee_id: string;
|
|
19963
|
+
};
|
|
19964
|
+
Returns: number;
|
|
19965
|
+
};
|
|
19476
19966
|
enqueue_cart_replan_if_unlocked: {
|
|
19477
19967
|
Args: {
|
|
19478
19968
|
p_order_id: string;
|
|
@@ -19826,6 +20316,19 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
19826
20316
|
Args: never;
|
|
19827
20317
|
Returns: boolean;
|
|
19828
20318
|
};
|
|
20319
|
+
itk_offerte_naar_werkbon: {
|
|
20320
|
+
Args: {
|
|
20321
|
+
_offerte_id: string;
|
|
20322
|
+
};
|
|
20323
|
+
Returns: string;
|
|
20324
|
+
};
|
|
20325
|
+
itk_offerte_restant_mandaat: {
|
|
20326
|
+
Args: {
|
|
20327
|
+
_exclude_offerte_id?: string;
|
|
20328
|
+
_werkbon_id: string;
|
|
20329
|
+
};
|
|
20330
|
+
Returns: number;
|
|
20331
|
+
};
|
|
19829
20332
|
jwt_has_role: {
|
|
19830
20333
|
Args: {
|
|
19831
20334
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -19836,9 +20339,19 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
19836
20339
|
Args: never;
|
|
19837
20340
|
Returns: {
|
|
19838
20341
|
avatar_url: string;
|
|
20342
|
+
color: string;
|
|
19839
20343
|
display_name: string;
|
|
19840
20344
|
email: string;
|
|
20345
|
+
hours_fri: number;
|
|
20346
|
+
hours_mon: number;
|
|
20347
|
+
hours_thu: number;
|
|
20348
|
+
hours_tue: number;
|
|
20349
|
+
hours_wed: number;
|
|
19841
20350
|
id: string;
|
|
20351
|
+
is_active: boolean;
|
|
20352
|
+
leave_balance_hours: number;
|
|
20353
|
+
persnr: string;
|
|
20354
|
+
phone: string;
|
|
19842
20355
|
roles: string[];
|
|
19843
20356
|
}[];
|
|
19844
20357
|
};
|
|
@@ -20165,17 +20678,6 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
20165
20678
|
Returns: string;
|
|
20166
20679
|
};
|
|
20167
20680
|
logistics_emit_event: {
|
|
20168
|
-
Args: {
|
|
20169
|
-
p_event_type: string;
|
|
20170
|
-
p_idempotency_key?: string;
|
|
20171
|
-
p_order_ref: string;
|
|
20172
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
20173
|
-
p_shadow?: boolean;
|
|
20174
|
-
p_source_module: string;
|
|
20175
|
-
p_strategy_id?: string;
|
|
20176
|
-
};
|
|
20177
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
20178
|
-
} | {
|
|
20179
20681
|
Args: {
|
|
20180
20682
|
p_event_type: string;
|
|
20181
20683
|
p_idempotency_key?: string;
|
|
@@ -21020,6 +21522,37 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
21020
21522
|
};
|
|
21021
21523
|
Returns: undefined;
|
|
21022
21524
|
};
|
|
21525
|
+
quote_create_from_source: {
|
|
21526
|
+
Args: {
|
|
21527
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
21528
|
+
_source_id: string;
|
|
21529
|
+
_source_type: string;
|
|
21530
|
+
};
|
|
21531
|
+
Returns: string;
|
|
21532
|
+
};
|
|
21533
|
+
quote_get_billable_lines: {
|
|
21534
|
+
Args: {
|
|
21535
|
+
_quotation_id: string;
|
|
21536
|
+
};
|
|
21537
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21538
|
+
};
|
|
21539
|
+
quote_get_summary: {
|
|
21540
|
+
Args: {
|
|
21541
|
+
_quotation_id: string;
|
|
21542
|
+
};
|
|
21543
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21544
|
+
};
|
|
21545
|
+
quote_list_packages: {
|
|
21546
|
+
Args: never;
|
|
21547
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21548
|
+
};
|
|
21549
|
+
quote_list_sources: {
|
|
21550
|
+
Args: {
|
|
21551
|
+
_limit?: number;
|
|
21552
|
+
_source_type?: string;
|
|
21553
|
+
};
|
|
21554
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21555
|
+
};
|
|
21023
21556
|
recompute_all_reserved_stock: {
|
|
21024
21557
|
Args: never;
|
|
21025
21558
|
Returns: undefined;
|
|
@@ -21555,6 +22088,12 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
21555
22088
|
};
|
|
21556
22089
|
Returns: undefined;
|
|
21557
22090
|
};
|
|
22091
|
+
sync_sick_time_off: {
|
|
22092
|
+
Args: {
|
|
22093
|
+
_period_id: string;
|
|
22094
|
+
};
|
|
22095
|
+
Returns: number;
|
|
22096
|
+
};
|
|
21558
22097
|
trade_item_stock_duplicates: {
|
|
21559
22098
|
Args: never;
|
|
21560
22099
|
Returns: {
|
|
@@ -21628,11 +22167,31 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
|
|
|
21628
22167
|
Args: never;
|
|
21629
22168
|
Returns: string;
|
|
21630
22169
|
};
|
|
22170
|
+
wo_create_from_source: {
|
|
22171
|
+
Args: {
|
|
22172
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
22173
|
+
_source_id: string;
|
|
22174
|
+
_source_type: string;
|
|
22175
|
+
};
|
|
22176
|
+
Returns: string;
|
|
22177
|
+
};
|
|
22178
|
+
wo_get_billable_lines: {
|
|
22179
|
+
Args: {
|
|
22180
|
+
_work_order_id: string;
|
|
22181
|
+
};
|
|
22182
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22183
|
+
};
|
|
22184
|
+
wo_get_summary: {
|
|
22185
|
+
Args: {
|
|
22186
|
+
_work_order_id: string;
|
|
22187
|
+
};
|
|
22188
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22189
|
+
};
|
|
21631
22190
|
};
|
|
21632
22191
|
Enums: {
|
|
21633
22192
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21634
22193
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21635
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
22194
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21636
22195
|
doc_orientation: "portrait" | "landscape";
|
|
21637
22196
|
exact_env: "staging" | "live";
|
|
21638
22197
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -26709,6 +27268,42 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
26709
27268
|
};
|
|
26710
27269
|
Relationships: [];
|
|
26711
27270
|
};
|
|
27271
|
+
facturen: {
|
|
27272
|
+
Row: {
|
|
27273
|
+
bedrag_incl_btw: number;
|
|
27274
|
+
created_at: string;
|
|
27275
|
+
datum: string;
|
|
27276
|
+
factuurnummer: string;
|
|
27277
|
+
id: string;
|
|
27278
|
+
klantnaam: string;
|
|
27279
|
+
status: string;
|
|
27280
|
+
updated_at: string;
|
|
27281
|
+
user_id: string;
|
|
27282
|
+
};
|
|
27283
|
+
Insert: {
|
|
27284
|
+
bedrag_incl_btw: number;
|
|
27285
|
+
created_at?: string;
|
|
27286
|
+
datum?: string;
|
|
27287
|
+
factuurnummer: string;
|
|
27288
|
+
id?: string;
|
|
27289
|
+
klantnaam: string;
|
|
27290
|
+
status?: string;
|
|
27291
|
+
updated_at?: string;
|
|
27292
|
+
user_id?: string;
|
|
27293
|
+
};
|
|
27294
|
+
Update: {
|
|
27295
|
+
bedrag_incl_btw?: number;
|
|
27296
|
+
created_at?: string;
|
|
27297
|
+
datum?: string;
|
|
27298
|
+
factuurnummer?: string;
|
|
27299
|
+
id?: string;
|
|
27300
|
+
klantnaam?: string;
|
|
27301
|
+
status?: string;
|
|
27302
|
+
updated_at?: string;
|
|
27303
|
+
user_id?: string;
|
|
27304
|
+
};
|
|
27305
|
+
Relationships: [];
|
|
27306
|
+
};
|
|
26712
27307
|
floricode_connection_settings: {
|
|
26713
27308
|
Row: {
|
|
26714
27309
|
catalog_key: string | null;
|
|
@@ -29433,6 +30028,258 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
29433
30028
|
};
|
|
29434
30029
|
Relationships: [];
|
|
29435
30030
|
};
|
|
30031
|
+
itk_offerte_events: {
|
|
30032
|
+
Row: {
|
|
30033
|
+
created_at: string;
|
|
30034
|
+
event_type: string;
|
|
30035
|
+
id: string;
|
|
30036
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
30037
|
+
offerte_id: string;
|
|
30038
|
+
omschrijving: string | null;
|
|
30039
|
+
user_id: string | null;
|
|
30040
|
+
};
|
|
30041
|
+
Insert: {
|
|
30042
|
+
created_at?: string;
|
|
30043
|
+
event_type: string;
|
|
30044
|
+
id?: string;
|
|
30045
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30046
|
+
offerte_id: string;
|
|
30047
|
+
omschrijving?: string | null;
|
|
30048
|
+
user_id?: string | null;
|
|
30049
|
+
};
|
|
30050
|
+
Update: {
|
|
30051
|
+
created_at?: string;
|
|
30052
|
+
event_type?: string;
|
|
30053
|
+
id?: string;
|
|
30054
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30055
|
+
offerte_id?: string;
|
|
30056
|
+
omschrijving?: string | null;
|
|
30057
|
+
user_id?: string | null;
|
|
30058
|
+
};
|
|
30059
|
+
Relationships: [{
|
|
30060
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
30061
|
+
columns: ["offerte_id"];
|
|
30062
|
+
isOneToOne: false;
|
|
30063
|
+
referencedRelation: "itk_offertes";
|
|
30064
|
+
referencedColumns: ["id"];
|
|
30065
|
+
}];
|
|
30066
|
+
};
|
|
30067
|
+
itk_offerte_regels: {
|
|
30068
|
+
Row: {
|
|
30069
|
+
created_at: string;
|
|
30070
|
+
id: string;
|
|
30071
|
+
line_total_cents: number;
|
|
30072
|
+
offerte_id: string;
|
|
30073
|
+
omschrijving: string;
|
|
30074
|
+
package_id: string | null;
|
|
30075
|
+
quantity: number;
|
|
30076
|
+
sort_order: number;
|
|
30077
|
+
source: string;
|
|
30078
|
+
unit_price_cents: number;
|
|
30079
|
+
updated_at: string;
|
|
30080
|
+
};
|
|
30081
|
+
Insert: {
|
|
30082
|
+
created_at?: string;
|
|
30083
|
+
id?: string;
|
|
30084
|
+
line_total_cents?: number;
|
|
30085
|
+
offerte_id: string;
|
|
30086
|
+
omschrijving?: string;
|
|
30087
|
+
package_id?: string | null;
|
|
30088
|
+
quantity?: number;
|
|
30089
|
+
sort_order?: number;
|
|
30090
|
+
source?: string;
|
|
30091
|
+
unit_price_cents?: number;
|
|
30092
|
+
updated_at?: string;
|
|
30093
|
+
};
|
|
30094
|
+
Update: {
|
|
30095
|
+
created_at?: string;
|
|
30096
|
+
id?: string;
|
|
30097
|
+
line_total_cents?: number;
|
|
30098
|
+
offerte_id?: string;
|
|
30099
|
+
omschrijving?: string;
|
|
30100
|
+
package_id?: string | null;
|
|
30101
|
+
quantity?: number;
|
|
30102
|
+
sort_order?: number;
|
|
30103
|
+
source?: string;
|
|
30104
|
+
unit_price_cents?: number;
|
|
30105
|
+
updated_at?: string;
|
|
30106
|
+
};
|
|
30107
|
+
Relationships: [{
|
|
30108
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
30109
|
+
columns: ["offerte_id"];
|
|
30110
|
+
isOneToOne: false;
|
|
30111
|
+
referencedRelation: "itk_offertes";
|
|
30112
|
+
referencedColumns: ["id"];
|
|
30113
|
+
}, {
|
|
30114
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
30115
|
+
columns: ["package_id"];
|
|
30116
|
+
isOneToOne: false;
|
|
30117
|
+
referencedRelation: "werkbon_packages";
|
|
30118
|
+
referencedColumns: ["id"];
|
|
30119
|
+
}];
|
|
30120
|
+
};
|
|
30121
|
+
itk_offerte_settings: {
|
|
30122
|
+
Row: {
|
|
30123
|
+
auto_convert_binnen_mandaat: boolean;
|
|
30124
|
+
created_at: string;
|
|
30125
|
+
default_geldigheid_dagen: number;
|
|
30126
|
+
default_vat_rate: number;
|
|
30127
|
+
id: string;
|
|
30128
|
+
singleton: boolean;
|
|
30129
|
+
updated_at: string;
|
|
30130
|
+
};
|
|
30131
|
+
Insert: {
|
|
30132
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30133
|
+
created_at?: string;
|
|
30134
|
+
default_geldigheid_dagen?: number;
|
|
30135
|
+
default_vat_rate?: number;
|
|
30136
|
+
id?: string;
|
|
30137
|
+
singleton?: boolean;
|
|
30138
|
+
updated_at?: string;
|
|
30139
|
+
};
|
|
30140
|
+
Update: {
|
|
30141
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30142
|
+
created_at?: string;
|
|
30143
|
+
default_geldigheid_dagen?: number;
|
|
30144
|
+
default_vat_rate?: number;
|
|
30145
|
+
id?: string;
|
|
30146
|
+
singleton?: boolean;
|
|
30147
|
+
updated_at?: string;
|
|
30148
|
+
};
|
|
30149
|
+
Relationships: [];
|
|
30150
|
+
};
|
|
30151
|
+
itk_offertes: {
|
|
30152
|
+
Row: {
|
|
30153
|
+
ai_generated: boolean;
|
|
30154
|
+
approved_at: string | null;
|
|
30155
|
+
binnen_mandaat: boolean;
|
|
30156
|
+
contact_id: string | null;
|
|
30157
|
+
converted_at: string | null;
|
|
30158
|
+
created_at: string;
|
|
30159
|
+
created_by: string | null;
|
|
30160
|
+
customer_id: string | null;
|
|
30161
|
+
follow_up_werkbon_id: string | null;
|
|
30162
|
+
id: string;
|
|
30163
|
+
jaar: number;
|
|
30164
|
+
mandaat_restant_cents: number;
|
|
30165
|
+
notities: string | null;
|
|
30166
|
+
offerte_number: string | null;
|
|
30167
|
+
omschrijving: string;
|
|
30168
|
+
rejected_at: string | null;
|
|
30169
|
+
sent_at: string | null;
|
|
30170
|
+
source_number: string | null;
|
|
30171
|
+
source_ref: string | null;
|
|
30172
|
+
source_type: string;
|
|
30173
|
+
status: string;
|
|
30174
|
+
subtotal_cents: number;
|
|
30175
|
+
total_cents: number;
|
|
30176
|
+
updated_at: string;
|
|
30177
|
+
valid_until: string | null;
|
|
30178
|
+
vat_cents: number;
|
|
30179
|
+
vat_rate: number;
|
|
30180
|
+
viewed_at: string | null;
|
|
30181
|
+
volgnummer: number | null;
|
|
30182
|
+
werkbon_id: string | null;
|
|
30183
|
+
work_location_id: string | null;
|
|
30184
|
+
};
|
|
30185
|
+
Insert: {
|
|
30186
|
+
ai_generated?: boolean;
|
|
30187
|
+
approved_at?: string | null;
|
|
30188
|
+
binnen_mandaat?: boolean;
|
|
30189
|
+
contact_id?: string | null;
|
|
30190
|
+
converted_at?: string | null;
|
|
30191
|
+
created_at?: string;
|
|
30192
|
+
created_by?: string | null;
|
|
30193
|
+
customer_id?: string | null;
|
|
30194
|
+
follow_up_werkbon_id?: string | null;
|
|
30195
|
+
id?: string;
|
|
30196
|
+
jaar?: number;
|
|
30197
|
+
mandaat_restant_cents?: number;
|
|
30198
|
+
notities?: string | null;
|
|
30199
|
+
offerte_number?: string | null;
|
|
30200
|
+
omschrijving?: string;
|
|
30201
|
+
rejected_at?: string | null;
|
|
30202
|
+
sent_at?: string | null;
|
|
30203
|
+
source_number?: string | null;
|
|
30204
|
+
source_ref?: string | null;
|
|
30205
|
+
source_type?: string;
|
|
30206
|
+
status?: string;
|
|
30207
|
+
subtotal_cents?: number;
|
|
30208
|
+
total_cents?: number;
|
|
30209
|
+
updated_at?: string;
|
|
30210
|
+
valid_until?: string | null;
|
|
30211
|
+
vat_cents?: number;
|
|
30212
|
+
vat_rate?: number;
|
|
30213
|
+
viewed_at?: string | null;
|
|
30214
|
+
volgnummer?: number | null;
|
|
30215
|
+
werkbon_id?: string | null;
|
|
30216
|
+
work_location_id?: string | null;
|
|
30217
|
+
};
|
|
30218
|
+
Update: {
|
|
30219
|
+
ai_generated?: boolean;
|
|
30220
|
+
approved_at?: string | null;
|
|
30221
|
+
binnen_mandaat?: boolean;
|
|
30222
|
+
contact_id?: string | null;
|
|
30223
|
+
converted_at?: string | null;
|
|
30224
|
+
created_at?: string;
|
|
30225
|
+
created_by?: string | null;
|
|
30226
|
+
customer_id?: string | null;
|
|
30227
|
+
follow_up_werkbon_id?: string | null;
|
|
30228
|
+
id?: string;
|
|
30229
|
+
jaar?: number;
|
|
30230
|
+
mandaat_restant_cents?: number;
|
|
30231
|
+
notities?: string | null;
|
|
30232
|
+
offerte_number?: string | null;
|
|
30233
|
+
omschrijving?: string;
|
|
30234
|
+
rejected_at?: string | null;
|
|
30235
|
+
sent_at?: string | null;
|
|
30236
|
+
source_number?: string | null;
|
|
30237
|
+
source_ref?: string | null;
|
|
30238
|
+
source_type?: string;
|
|
30239
|
+
status?: string;
|
|
30240
|
+
subtotal_cents?: number;
|
|
30241
|
+
total_cents?: number;
|
|
30242
|
+
updated_at?: string;
|
|
30243
|
+
valid_until?: string | null;
|
|
30244
|
+
vat_cents?: number;
|
|
30245
|
+
vat_rate?: number;
|
|
30246
|
+
viewed_at?: string | null;
|
|
30247
|
+
volgnummer?: number | null;
|
|
30248
|
+
werkbon_id?: string | null;
|
|
30249
|
+
work_location_id?: string | null;
|
|
30250
|
+
};
|
|
30251
|
+
Relationships: [{
|
|
30252
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
30253
|
+
columns: ["contact_id"];
|
|
30254
|
+
isOneToOne: false;
|
|
30255
|
+
referencedRelation: "itk_contact_persons";
|
|
30256
|
+
referencedColumns: ["id"];
|
|
30257
|
+
}, {
|
|
30258
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
30259
|
+
columns: ["customer_id"];
|
|
30260
|
+
isOneToOne: false;
|
|
30261
|
+
referencedRelation: "itk_customers";
|
|
30262
|
+
referencedColumns: ["id"];
|
|
30263
|
+
}, {
|
|
30264
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
30265
|
+
columns: ["follow_up_werkbon_id"];
|
|
30266
|
+
isOneToOne: false;
|
|
30267
|
+
referencedRelation: "werkbonnen";
|
|
30268
|
+
referencedColumns: ["id"];
|
|
30269
|
+
}, {
|
|
30270
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
30271
|
+
columns: ["werkbon_id"];
|
|
30272
|
+
isOneToOne: false;
|
|
30273
|
+
referencedRelation: "werkbonnen";
|
|
30274
|
+
referencedColumns: ["id"];
|
|
30275
|
+
}, {
|
|
30276
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
30277
|
+
columns: ["work_location_id"];
|
|
30278
|
+
isOneToOne: false;
|
|
30279
|
+
referencedRelation: "itk_work_locations";
|
|
30280
|
+
referencedColumns: ["id"];
|
|
30281
|
+
}];
|
|
30282
|
+
};
|
|
29436
30283
|
itk_work_locations: {
|
|
29437
30284
|
Row: {
|
|
29438
30285
|
city: string | null;
|
|
@@ -31806,6 +32653,63 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
31806
32653
|
referencedColumns: ["id"];
|
|
31807
32654
|
}];
|
|
31808
32655
|
};
|
|
32656
|
+
medewerker_details: {
|
|
32657
|
+
Row: {
|
|
32658
|
+
color: string | null;
|
|
32659
|
+
created_at: string;
|
|
32660
|
+
hours_fri: number | null;
|
|
32661
|
+
hours_mon: number | null;
|
|
32662
|
+
hours_thu: number | null;
|
|
32663
|
+
hours_tue: number | null;
|
|
32664
|
+
hours_wed: number | null;
|
|
32665
|
+
id: string;
|
|
32666
|
+
is_active: boolean;
|
|
32667
|
+
leave_balance_hours: number;
|
|
32668
|
+
persnr: string | null;
|
|
32669
|
+
phone: string | null;
|
|
32670
|
+
profile_id: string;
|
|
32671
|
+
updated_at: string;
|
|
32672
|
+
};
|
|
32673
|
+
Insert: {
|
|
32674
|
+
color?: string | null;
|
|
32675
|
+
created_at?: string;
|
|
32676
|
+
hours_fri?: number | null;
|
|
32677
|
+
hours_mon?: number | null;
|
|
32678
|
+
hours_thu?: number | null;
|
|
32679
|
+
hours_tue?: number | null;
|
|
32680
|
+
hours_wed?: number | null;
|
|
32681
|
+
id?: string;
|
|
32682
|
+
is_active?: boolean;
|
|
32683
|
+
leave_balance_hours?: number;
|
|
32684
|
+
persnr?: string | null;
|
|
32685
|
+
phone?: string | null;
|
|
32686
|
+
profile_id: string;
|
|
32687
|
+
updated_at?: string;
|
|
32688
|
+
};
|
|
32689
|
+
Update: {
|
|
32690
|
+
color?: string | null;
|
|
32691
|
+
created_at?: string;
|
|
32692
|
+
hours_fri?: number | null;
|
|
32693
|
+
hours_mon?: number | null;
|
|
32694
|
+
hours_thu?: number | null;
|
|
32695
|
+
hours_tue?: number | null;
|
|
32696
|
+
hours_wed?: number | null;
|
|
32697
|
+
id?: string;
|
|
32698
|
+
is_active?: boolean;
|
|
32699
|
+
leave_balance_hours?: number;
|
|
32700
|
+
persnr?: string | null;
|
|
32701
|
+
phone?: string | null;
|
|
32702
|
+
profile_id?: string;
|
|
32703
|
+
updated_at?: string;
|
|
32704
|
+
};
|
|
32705
|
+
Relationships: [{
|
|
32706
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
32707
|
+
columns: ["profile_id"];
|
|
32708
|
+
isOneToOne: true;
|
|
32709
|
+
referencedRelation: "profiles";
|
|
32710
|
+
referencedColumns: ["id"];
|
|
32711
|
+
}];
|
|
32712
|
+
};
|
|
31809
32713
|
module_features: {
|
|
31810
32714
|
Row: {
|
|
31811
32715
|
created_at: string;
|
|
@@ -33099,6 +34003,8 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
33099
34003
|
orders: {
|
|
33100
34004
|
Row: {
|
|
33101
34005
|
buffer_id: string | null;
|
|
34006
|
+
cancel_reason: string | null;
|
|
34007
|
+
cancelled_at: string | null;
|
|
33102
34008
|
created_at: string;
|
|
33103
34009
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
33104
34010
|
customer_id: string | null;
|
|
@@ -33121,6 +34027,8 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
33121
34027
|
};
|
|
33122
34028
|
Insert: {
|
|
33123
34029
|
buffer_id?: string | null;
|
|
34030
|
+
cancel_reason?: string | null;
|
|
34031
|
+
cancelled_at?: string | null;
|
|
33124
34032
|
created_at?: string;
|
|
33125
34033
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33126
34034
|
customer_id?: string | null;
|
|
@@ -33143,6 +34051,8 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
33143
34051
|
};
|
|
33144
34052
|
Update: {
|
|
33145
34053
|
buffer_id?: string | null;
|
|
34054
|
+
cancel_reason?: string | null;
|
|
34055
|
+
cancelled_at?: string | null;
|
|
33146
34056
|
created_at?: string;
|
|
33147
34057
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33148
34058
|
customer_id?: string | null;
|
|
@@ -35205,6 +36115,66 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
35205
36115
|
};
|
|
35206
36116
|
Relationships: [];
|
|
35207
36117
|
};
|
|
36118
|
+
profile_modules: {
|
|
36119
|
+
Row: {
|
|
36120
|
+
created_at: string;
|
|
36121
|
+
id: string;
|
|
36122
|
+
module_id: string;
|
|
36123
|
+
profile_id: string;
|
|
36124
|
+
};
|
|
36125
|
+
Insert: {
|
|
36126
|
+
created_at?: string;
|
|
36127
|
+
id?: string;
|
|
36128
|
+
module_id: string;
|
|
36129
|
+
profile_id: string;
|
|
36130
|
+
};
|
|
36131
|
+
Update: {
|
|
36132
|
+
created_at?: string;
|
|
36133
|
+
id?: string;
|
|
36134
|
+
module_id?: string;
|
|
36135
|
+
profile_id?: string;
|
|
36136
|
+
};
|
|
36137
|
+
Relationships: [{
|
|
36138
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
36139
|
+
columns: ["profile_id"];
|
|
36140
|
+
isOneToOne: false;
|
|
36141
|
+
referencedRelation: "profiles_org";
|
|
36142
|
+
referencedColumns: ["id"];
|
|
36143
|
+
}];
|
|
36144
|
+
};
|
|
36145
|
+
profile_roles: {
|
|
36146
|
+
Row: {
|
|
36147
|
+
created_at: string;
|
|
36148
|
+
id: string;
|
|
36149
|
+
profile_id: string;
|
|
36150
|
+
role_id: string;
|
|
36151
|
+
};
|
|
36152
|
+
Insert: {
|
|
36153
|
+
created_at?: string;
|
|
36154
|
+
id?: string;
|
|
36155
|
+
profile_id: string;
|
|
36156
|
+
role_id: string;
|
|
36157
|
+
};
|
|
36158
|
+
Update: {
|
|
36159
|
+
created_at?: string;
|
|
36160
|
+
id?: string;
|
|
36161
|
+
profile_id?: string;
|
|
36162
|
+
role_id?: string;
|
|
36163
|
+
};
|
|
36164
|
+
Relationships: [{
|
|
36165
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
36166
|
+
columns: ["profile_id"];
|
|
36167
|
+
isOneToOne: false;
|
|
36168
|
+
referencedRelation: "profiles_org";
|
|
36169
|
+
referencedColumns: ["id"];
|
|
36170
|
+
}, {
|
|
36171
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
36172
|
+
columns: ["role_id"];
|
|
36173
|
+
isOneToOne: false;
|
|
36174
|
+
referencedRelation: "roles";
|
|
36175
|
+
referencedColumns: ["id"];
|
|
36176
|
+
}];
|
|
36177
|
+
};
|
|
35208
36178
|
profiles: {
|
|
35209
36179
|
Row: {
|
|
35210
36180
|
address: string | null;
|
|
@@ -35250,6 +36220,39 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
35250
36220
|
referencedColumns: ["id"];
|
|
35251
36221
|
}];
|
|
35252
36222
|
};
|
|
36223
|
+
profiles_org: {
|
|
36224
|
+
Row: {
|
|
36225
|
+
created_at: string;
|
|
36226
|
+
id: string;
|
|
36227
|
+
is_default: boolean;
|
|
36228
|
+
name: string;
|
|
36229
|
+
tenant_id: string | null;
|
|
36230
|
+
updated_at: string;
|
|
36231
|
+
};
|
|
36232
|
+
Insert: {
|
|
36233
|
+
created_at?: string;
|
|
36234
|
+
id?: string;
|
|
36235
|
+
is_default?: boolean;
|
|
36236
|
+
name: string;
|
|
36237
|
+
tenant_id?: string | null;
|
|
36238
|
+
updated_at?: string;
|
|
36239
|
+
};
|
|
36240
|
+
Update: {
|
|
36241
|
+
created_at?: string;
|
|
36242
|
+
id?: string;
|
|
36243
|
+
is_default?: boolean;
|
|
36244
|
+
name?: string;
|
|
36245
|
+
tenant_id?: string | null;
|
|
36246
|
+
updated_at?: string;
|
|
36247
|
+
};
|
|
36248
|
+
Relationships: [{
|
|
36249
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
36250
|
+
columns: ["tenant_id"];
|
|
36251
|
+
isOneToOne: false;
|
|
36252
|
+
referencedRelation: "tenants";
|
|
36253
|
+
referencedColumns: ["id"];
|
|
36254
|
+
}];
|
|
36255
|
+
};
|
|
35253
36256
|
projects: {
|
|
35254
36257
|
Row: {
|
|
35255
36258
|
contact_name: string | null;
|
|
@@ -36424,6 +37427,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
36424
37427
|
type: string;
|
|
36425
37428
|
updated_at: string;
|
|
36426
37429
|
vereist_medewerker: boolean;
|
|
37430
|
+
werkplek: string | null;
|
|
36427
37431
|
};
|
|
36428
37432
|
Insert: {
|
|
36429
37433
|
actief?: boolean;
|
|
@@ -36437,6 +37441,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
36437
37441
|
type?: string;
|
|
36438
37442
|
updated_at?: string;
|
|
36439
37443
|
vereist_medewerker?: boolean;
|
|
37444
|
+
werkplek?: string | null;
|
|
36440
37445
|
};
|
|
36441
37446
|
Update: {
|
|
36442
37447
|
actief?: boolean;
|
|
@@ -36450,9 +37455,46 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
36450
37455
|
type?: string;
|
|
36451
37456
|
updated_at?: string;
|
|
36452
37457
|
vereist_medewerker?: boolean;
|
|
37458
|
+
werkplek?: string | null;
|
|
36453
37459
|
};
|
|
36454
37460
|
Relationships: [];
|
|
36455
37461
|
};
|
|
37462
|
+
sick_periods: {
|
|
37463
|
+
Row: {
|
|
37464
|
+
created_at: string;
|
|
37465
|
+
employee_id: string;
|
|
37466
|
+
end_date: string | null;
|
|
37467
|
+
id: string;
|
|
37468
|
+
notes: string | null;
|
|
37469
|
+
start_date: string;
|
|
37470
|
+
updated_at: string;
|
|
37471
|
+
};
|
|
37472
|
+
Insert: {
|
|
37473
|
+
created_at?: string;
|
|
37474
|
+
employee_id: string;
|
|
37475
|
+
end_date?: string | null;
|
|
37476
|
+
id?: string;
|
|
37477
|
+
notes?: string | null;
|
|
37478
|
+
start_date: string;
|
|
37479
|
+
updated_at?: string;
|
|
37480
|
+
};
|
|
37481
|
+
Update: {
|
|
37482
|
+
created_at?: string;
|
|
37483
|
+
employee_id?: string;
|
|
37484
|
+
end_date?: string | null;
|
|
37485
|
+
id?: string;
|
|
37486
|
+
notes?: string | null;
|
|
37487
|
+
start_date?: string;
|
|
37488
|
+
updated_at?: string;
|
|
37489
|
+
};
|
|
37490
|
+
Relationships: [{
|
|
37491
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
37492
|
+
columns: ["employee_id"];
|
|
37493
|
+
isOneToOne: false;
|
|
37494
|
+
referencedRelation: "profiles";
|
|
37495
|
+
referencedColumns: ["id"];
|
|
37496
|
+
}];
|
|
37497
|
+
};
|
|
36456
37498
|
sidebar_config: {
|
|
36457
37499
|
Row: {
|
|
36458
37500
|
id: string;
|
|
@@ -41137,6 +42179,13 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
41137
42179
|
};
|
|
41138
42180
|
Returns: string;
|
|
41139
42181
|
};
|
|
42182
|
+
employee_day_hours: {
|
|
42183
|
+
Args: {
|
|
42184
|
+
_day: string;
|
|
42185
|
+
_employee_id: string;
|
|
42186
|
+
};
|
|
42187
|
+
Returns: number;
|
|
42188
|
+
};
|
|
41140
42189
|
enqueue_cart_replan_if_unlocked: {
|
|
41141
42190
|
Args: {
|
|
41142
42191
|
p_order_id: string;
|
|
@@ -41490,6 +42539,19 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
41490
42539
|
Args: never;
|
|
41491
42540
|
Returns: boolean;
|
|
41492
42541
|
};
|
|
42542
|
+
itk_offerte_naar_werkbon: {
|
|
42543
|
+
Args: {
|
|
42544
|
+
_offerte_id: string;
|
|
42545
|
+
};
|
|
42546
|
+
Returns: string;
|
|
42547
|
+
};
|
|
42548
|
+
itk_offerte_restant_mandaat: {
|
|
42549
|
+
Args: {
|
|
42550
|
+
_exclude_offerte_id?: string;
|
|
42551
|
+
_werkbon_id: string;
|
|
42552
|
+
};
|
|
42553
|
+
Returns: number;
|
|
42554
|
+
};
|
|
41493
42555
|
jwt_has_role: {
|
|
41494
42556
|
Args: {
|
|
41495
42557
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -41500,9 +42562,19 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
41500
42562
|
Args: never;
|
|
41501
42563
|
Returns: {
|
|
41502
42564
|
avatar_url: string;
|
|
42565
|
+
color: string;
|
|
41503
42566
|
display_name: string;
|
|
41504
42567
|
email: string;
|
|
42568
|
+
hours_fri: number;
|
|
42569
|
+
hours_mon: number;
|
|
42570
|
+
hours_thu: number;
|
|
42571
|
+
hours_tue: number;
|
|
42572
|
+
hours_wed: number;
|
|
41505
42573
|
id: string;
|
|
42574
|
+
is_active: boolean;
|
|
42575
|
+
leave_balance_hours: number;
|
|
42576
|
+
persnr: string;
|
|
42577
|
+
phone: string;
|
|
41506
42578
|
roles: string[];
|
|
41507
42579
|
}[];
|
|
41508
42580
|
};
|
|
@@ -41829,17 +42901,6 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
41829
42901
|
Returns: string;
|
|
41830
42902
|
};
|
|
41831
42903
|
logistics_emit_event: {
|
|
41832
|
-
Args: {
|
|
41833
|
-
p_event_type: string;
|
|
41834
|
-
p_idempotency_key?: string;
|
|
41835
|
-
p_order_ref: string;
|
|
41836
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
41837
|
-
p_shadow?: boolean;
|
|
41838
|
-
p_source_module: string;
|
|
41839
|
-
p_strategy_id?: string;
|
|
41840
|
-
};
|
|
41841
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
41842
|
-
} | {
|
|
41843
42904
|
Args: {
|
|
41844
42905
|
p_event_type: string;
|
|
41845
42906
|
p_idempotency_key?: string;
|
|
@@ -42684,6 +43745,37 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
42684
43745
|
};
|
|
42685
43746
|
Returns: undefined;
|
|
42686
43747
|
};
|
|
43748
|
+
quote_create_from_source: {
|
|
43749
|
+
Args: {
|
|
43750
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
43751
|
+
_source_id: string;
|
|
43752
|
+
_source_type: string;
|
|
43753
|
+
};
|
|
43754
|
+
Returns: string;
|
|
43755
|
+
};
|
|
43756
|
+
quote_get_billable_lines: {
|
|
43757
|
+
Args: {
|
|
43758
|
+
_quotation_id: string;
|
|
43759
|
+
};
|
|
43760
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43761
|
+
};
|
|
43762
|
+
quote_get_summary: {
|
|
43763
|
+
Args: {
|
|
43764
|
+
_quotation_id: string;
|
|
43765
|
+
};
|
|
43766
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43767
|
+
};
|
|
43768
|
+
quote_list_packages: {
|
|
43769
|
+
Args: never;
|
|
43770
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43771
|
+
};
|
|
43772
|
+
quote_list_sources: {
|
|
43773
|
+
Args: {
|
|
43774
|
+
_limit?: number;
|
|
43775
|
+
_source_type?: string;
|
|
43776
|
+
};
|
|
43777
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43778
|
+
};
|
|
42687
43779
|
recompute_all_reserved_stock: {
|
|
42688
43780
|
Args: never;
|
|
42689
43781
|
Returns: undefined;
|
|
@@ -43219,6 +44311,12 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
43219
44311
|
};
|
|
43220
44312
|
Returns: undefined;
|
|
43221
44313
|
};
|
|
44314
|
+
sync_sick_time_off: {
|
|
44315
|
+
Args: {
|
|
44316
|
+
_period_id: string;
|
|
44317
|
+
};
|
|
44318
|
+
Returns: number;
|
|
44319
|
+
};
|
|
43222
44320
|
trade_item_stock_duplicates: {
|
|
43223
44321
|
Args: never;
|
|
43224
44322
|
Returns: {
|
|
@@ -43292,11 +44390,31 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
|
|
|
43292
44390
|
Args: never;
|
|
43293
44391
|
Returns: string;
|
|
43294
44392
|
};
|
|
44393
|
+
wo_create_from_source: {
|
|
44394
|
+
Args: {
|
|
44395
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
44396
|
+
_source_id: string;
|
|
44397
|
+
_source_type: string;
|
|
44398
|
+
};
|
|
44399
|
+
Returns: string;
|
|
44400
|
+
};
|
|
44401
|
+
wo_get_billable_lines: {
|
|
44402
|
+
Args: {
|
|
44403
|
+
_work_order_id: string;
|
|
44404
|
+
};
|
|
44405
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44406
|
+
};
|
|
44407
|
+
wo_get_summary: {
|
|
44408
|
+
Args: {
|
|
44409
|
+
_work_order_id: string;
|
|
44410
|
+
};
|
|
44411
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44412
|
+
};
|
|
43295
44413
|
};
|
|
43296
44414
|
Enums: {
|
|
43297
44415
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
43298
44416
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
43299
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
44417
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
43300
44418
|
doc_orientation: "portrait" | "landscape";
|
|
43301
44419
|
exact_env: "staging" | "live";
|
|
43302
44420
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -48407,6 +49525,42 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
48407
49525
|
};
|
|
48408
49526
|
Relationships: [];
|
|
48409
49527
|
};
|
|
49528
|
+
facturen: {
|
|
49529
|
+
Row: {
|
|
49530
|
+
bedrag_incl_btw: number;
|
|
49531
|
+
created_at: string;
|
|
49532
|
+
datum: string;
|
|
49533
|
+
factuurnummer: string;
|
|
49534
|
+
id: string;
|
|
49535
|
+
klantnaam: string;
|
|
49536
|
+
status: string;
|
|
49537
|
+
updated_at: string;
|
|
49538
|
+
user_id: string;
|
|
49539
|
+
};
|
|
49540
|
+
Insert: {
|
|
49541
|
+
bedrag_incl_btw: number;
|
|
49542
|
+
created_at?: string;
|
|
49543
|
+
datum?: string;
|
|
49544
|
+
factuurnummer: string;
|
|
49545
|
+
id?: string;
|
|
49546
|
+
klantnaam: string;
|
|
49547
|
+
status?: string;
|
|
49548
|
+
updated_at?: string;
|
|
49549
|
+
user_id?: string;
|
|
49550
|
+
};
|
|
49551
|
+
Update: {
|
|
49552
|
+
bedrag_incl_btw?: number;
|
|
49553
|
+
created_at?: string;
|
|
49554
|
+
datum?: string;
|
|
49555
|
+
factuurnummer?: string;
|
|
49556
|
+
id?: string;
|
|
49557
|
+
klantnaam?: string;
|
|
49558
|
+
status?: string;
|
|
49559
|
+
updated_at?: string;
|
|
49560
|
+
user_id?: string;
|
|
49561
|
+
};
|
|
49562
|
+
Relationships: [];
|
|
49563
|
+
};
|
|
48410
49564
|
floricode_connection_settings: {
|
|
48411
49565
|
Row: {
|
|
48412
49566
|
catalog_key: string | null;
|
|
@@ -51131,6 +52285,258 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
51131
52285
|
};
|
|
51132
52286
|
Relationships: [];
|
|
51133
52287
|
};
|
|
52288
|
+
itk_offerte_events: {
|
|
52289
|
+
Row: {
|
|
52290
|
+
created_at: string;
|
|
52291
|
+
event_type: string;
|
|
52292
|
+
id: string;
|
|
52293
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
52294
|
+
offerte_id: string;
|
|
52295
|
+
omschrijving: string | null;
|
|
52296
|
+
user_id: string | null;
|
|
52297
|
+
};
|
|
52298
|
+
Insert: {
|
|
52299
|
+
created_at?: string;
|
|
52300
|
+
event_type: string;
|
|
52301
|
+
id?: string;
|
|
52302
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52303
|
+
offerte_id: string;
|
|
52304
|
+
omschrijving?: string | null;
|
|
52305
|
+
user_id?: string | null;
|
|
52306
|
+
};
|
|
52307
|
+
Update: {
|
|
52308
|
+
created_at?: string;
|
|
52309
|
+
event_type?: string;
|
|
52310
|
+
id?: string;
|
|
52311
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52312
|
+
offerte_id?: string;
|
|
52313
|
+
omschrijving?: string | null;
|
|
52314
|
+
user_id?: string | null;
|
|
52315
|
+
};
|
|
52316
|
+
Relationships: [{
|
|
52317
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
52318
|
+
columns: ["offerte_id"];
|
|
52319
|
+
isOneToOne: false;
|
|
52320
|
+
referencedRelation: "itk_offertes";
|
|
52321
|
+
referencedColumns: ["id"];
|
|
52322
|
+
}];
|
|
52323
|
+
};
|
|
52324
|
+
itk_offerte_regels: {
|
|
52325
|
+
Row: {
|
|
52326
|
+
created_at: string;
|
|
52327
|
+
id: string;
|
|
52328
|
+
line_total_cents: number;
|
|
52329
|
+
offerte_id: string;
|
|
52330
|
+
omschrijving: string;
|
|
52331
|
+
package_id: string | null;
|
|
52332
|
+
quantity: number;
|
|
52333
|
+
sort_order: number;
|
|
52334
|
+
source: string;
|
|
52335
|
+
unit_price_cents: number;
|
|
52336
|
+
updated_at: string;
|
|
52337
|
+
};
|
|
52338
|
+
Insert: {
|
|
52339
|
+
created_at?: string;
|
|
52340
|
+
id?: string;
|
|
52341
|
+
line_total_cents?: number;
|
|
52342
|
+
offerte_id: string;
|
|
52343
|
+
omschrijving?: string;
|
|
52344
|
+
package_id?: string | null;
|
|
52345
|
+
quantity?: number;
|
|
52346
|
+
sort_order?: number;
|
|
52347
|
+
source?: string;
|
|
52348
|
+
unit_price_cents?: number;
|
|
52349
|
+
updated_at?: string;
|
|
52350
|
+
};
|
|
52351
|
+
Update: {
|
|
52352
|
+
created_at?: string;
|
|
52353
|
+
id?: string;
|
|
52354
|
+
line_total_cents?: number;
|
|
52355
|
+
offerte_id?: string;
|
|
52356
|
+
omschrijving?: string;
|
|
52357
|
+
package_id?: string | null;
|
|
52358
|
+
quantity?: number;
|
|
52359
|
+
sort_order?: number;
|
|
52360
|
+
source?: string;
|
|
52361
|
+
unit_price_cents?: number;
|
|
52362
|
+
updated_at?: string;
|
|
52363
|
+
};
|
|
52364
|
+
Relationships: [{
|
|
52365
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
52366
|
+
columns: ["offerte_id"];
|
|
52367
|
+
isOneToOne: false;
|
|
52368
|
+
referencedRelation: "itk_offertes";
|
|
52369
|
+
referencedColumns: ["id"];
|
|
52370
|
+
}, {
|
|
52371
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
52372
|
+
columns: ["package_id"];
|
|
52373
|
+
isOneToOne: false;
|
|
52374
|
+
referencedRelation: "werkbon_packages";
|
|
52375
|
+
referencedColumns: ["id"];
|
|
52376
|
+
}];
|
|
52377
|
+
};
|
|
52378
|
+
itk_offerte_settings: {
|
|
52379
|
+
Row: {
|
|
52380
|
+
auto_convert_binnen_mandaat: boolean;
|
|
52381
|
+
created_at: string;
|
|
52382
|
+
default_geldigheid_dagen: number;
|
|
52383
|
+
default_vat_rate: number;
|
|
52384
|
+
id: string;
|
|
52385
|
+
singleton: boolean;
|
|
52386
|
+
updated_at: string;
|
|
52387
|
+
};
|
|
52388
|
+
Insert: {
|
|
52389
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52390
|
+
created_at?: string;
|
|
52391
|
+
default_geldigheid_dagen?: number;
|
|
52392
|
+
default_vat_rate?: number;
|
|
52393
|
+
id?: string;
|
|
52394
|
+
singleton?: boolean;
|
|
52395
|
+
updated_at?: string;
|
|
52396
|
+
};
|
|
52397
|
+
Update: {
|
|
52398
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52399
|
+
created_at?: string;
|
|
52400
|
+
default_geldigheid_dagen?: number;
|
|
52401
|
+
default_vat_rate?: number;
|
|
52402
|
+
id?: string;
|
|
52403
|
+
singleton?: boolean;
|
|
52404
|
+
updated_at?: string;
|
|
52405
|
+
};
|
|
52406
|
+
Relationships: [];
|
|
52407
|
+
};
|
|
52408
|
+
itk_offertes: {
|
|
52409
|
+
Row: {
|
|
52410
|
+
ai_generated: boolean;
|
|
52411
|
+
approved_at: string | null;
|
|
52412
|
+
binnen_mandaat: boolean;
|
|
52413
|
+
contact_id: string | null;
|
|
52414
|
+
converted_at: string | null;
|
|
52415
|
+
created_at: string;
|
|
52416
|
+
created_by: string | null;
|
|
52417
|
+
customer_id: string | null;
|
|
52418
|
+
follow_up_werkbon_id: string | null;
|
|
52419
|
+
id: string;
|
|
52420
|
+
jaar: number;
|
|
52421
|
+
mandaat_restant_cents: number;
|
|
52422
|
+
notities: string | null;
|
|
52423
|
+
offerte_number: string | null;
|
|
52424
|
+
omschrijving: string;
|
|
52425
|
+
rejected_at: string | null;
|
|
52426
|
+
sent_at: string | null;
|
|
52427
|
+
source_number: string | null;
|
|
52428
|
+
source_ref: string | null;
|
|
52429
|
+
source_type: string;
|
|
52430
|
+
status: string;
|
|
52431
|
+
subtotal_cents: number;
|
|
52432
|
+
total_cents: number;
|
|
52433
|
+
updated_at: string;
|
|
52434
|
+
valid_until: string | null;
|
|
52435
|
+
vat_cents: number;
|
|
52436
|
+
vat_rate: number;
|
|
52437
|
+
viewed_at: string | null;
|
|
52438
|
+
volgnummer: number | null;
|
|
52439
|
+
werkbon_id: string | null;
|
|
52440
|
+
work_location_id: string | null;
|
|
52441
|
+
};
|
|
52442
|
+
Insert: {
|
|
52443
|
+
ai_generated?: boolean;
|
|
52444
|
+
approved_at?: string | null;
|
|
52445
|
+
binnen_mandaat?: boolean;
|
|
52446
|
+
contact_id?: string | null;
|
|
52447
|
+
converted_at?: string | null;
|
|
52448
|
+
created_at?: string;
|
|
52449
|
+
created_by?: string | null;
|
|
52450
|
+
customer_id?: string | null;
|
|
52451
|
+
follow_up_werkbon_id?: string | null;
|
|
52452
|
+
id?: string;
|
|
52453
|
+
jaar?: number;
|
|
52454
|
+
mandaat_restant_cents?: number;
|
|
52455
|
+
notities?: string | null;
|
|
52456
|
+
offerte_number?: string | null;
|
|
52457
|
+
omschrijving?: string;
|
|
52458
|
+
rejected_at?: string | null;
|
|
52459
|
+
sent_at?: string | null;
|
|
52460
|
+
source_number?: string | null;
|
|
52461
|
+
source_ref?: string | null;
|
|
52462
|
+
source_type?: string;
|
|
52463
|
+
status?: string;
|
|
52464
|
+
subtotal_cents?: number;
|
|
52465
|
+
total_cents?: number;
|
|
52466
|
+
updated_at?: string;
|
|
52467
|
+
valid_until?: string | null;
|
|
52468
|
+
vat_cents?: number;
|
|
52469
|
+
vat_rate?: number;
|
|
52470
|
+
viewed_at?: string | null;
|
|
52471
|
+
volgnummer?: number | null;
|
|
52472
|
+
werkbon_id?: string | null;
|
|
52473
|
+
work_location_id?: string | null;
|
|
52474
|
+
};
|
|
52475
|
+
Update: {
|
|
52476
|
+
ai_generated?: boolean;
|
|
52477
|
+
approved_at?: string | null;
|
|
52478
|
+
binnen_mandaat?: boolean;
|
|
52479
|
+
contact_id?: string | null;
|
|
52480
|
+
converted_at?: string | null;
|
|
52481
|
+
created_at?: string;
|
|
52482
|
+
created_by?: string | null;
|
|
52483
|
+
customer_id?: string | null;
|
|
52484
|
+
follow_up_werkbon_id?: string | null;
|
|
52485
|
+
id?: string;
|
|
52486
|
+
jaar?: number;
|
|
52487
|
+
mandaat_restant_cents?: number;
|
|
52488
|
+
notities?: string | null;
|
|
52489
|
+
offerte_number?: string | null;
|
|
52490
|
+
omschrijving?: string;
|
|
52491
|
+
rejected_at?: string | null;
|
|
52492
|
+
sent_at?: string | null;
|
|
52493
|
+
source_number?: string | null;
|
|
52494
|
+
source_ref?: string | null;
|
|
52495
|
+
source_type?: string;
|
|
52496
|
+
status?: string;
|
|
52497
|
+
subtotal_cents?: number;
|
|
52498
|
+
total_cents?: number;
|
|
52499
|
+
updated_at?: string;
|
|
52500
|
+
valid_until?: string | null;
|
|
52501
|
+
vat_cents?: number;
|
|
52502
|
+
vat_rate?: number;
|
|
52503
|
+
viewed_at?: string | null;
|
|
52504
|
+
volgnummer?: number | null;
|
|
52505
|
+
werkbon_id?: string | null;
|
|
52506
|
+
work_location_id?: string | null;
|
|
52507
|
+
};
|
|
52508
|
+
Relationships: [{
|
|
52509
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
52510
|
+
columns: ["contact_id"];
|
|
52511
|
+
isOneToOne: false;
|
|
52512
|
+
referencedRelation: "itk_contact_persons";
|
|
52513
|
+
referencedColumns: ["id"];
|
|
52514
|
+
}, {
|
|
52515
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
52516
|
+
columns: ["customer_id"];
|
|
52517
|
+
isOneToOne: false;
|
|
52518
|
+
referencedRelation: "itk_customers";
|
|
52519
|
+
referencedColumns: ["id"];
|
|
52520
|
+
}, {
|
|
52521
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
52522
|
+
columns: ["follow_up_werkbon_id"];
|
|
52523
|
+
isOneToOne: false;
|
|
52524
|
+
referencedRelation: "werkbonnen";
|
|
52525
|
+
referencedColumns: ["id"];
|
|
52526
|
+
}, {
|
|
52527
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
52528
|
+
columns: ["werkbon_id"];
|
|
52529
|
+
isOneToOne: false;
|
|
52530
|
+
referencedRelation: "werkbonnen";
|
|
52531
|
+
referencedColumns: ["id"];
|
|
52532
|
+
}, {
|
|
52533
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
52534
|
+
columns: ["work_location_id"];
|
|
52535
|
+
isOneToOne: false;
|
|
52536
|
+
referencedRelation: "itk_work_locations";
|
|
52537
|
+
referencedColumns: ["id"];
|
|
52538
|
+
}];
|
|
52539
|
+
};
|
|
51134
52540
|
itk_work_locations: {
|
|
51135
52541
|
Row: {
|
|
51136
52542
|
city: string | null;
|
|
@@ -53504,6 +54910,63 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
53504
54910
|
referencedColumns: ["id"];
|
|
53505
54911
|
}];
|
|
53506
54912
|
};
|
|
54913
|
+
medewerker_details: {
|
|
54914
|
+
Row: {
|
|
54915
|
+
color: string | null;
|
|
54916
|
+
created_at: string;
|
|
54917
|
+
hours_fri: number | null;
|
|
54918
|
+
hours_mon: number | null;
|
|
54919
|
+
hours_thu: number | null;
|
|
54920
|
+
hours_tue: number | null;
|
|
54921
|
+
hours_wed: number | null;
|
|
54922
|
+
id: string;
|
|
54923
|
+
is_active: boolean;
|
|
54924
|
+
leave_balance_hours: number;
|
|
54925
|
+
persnr: string | null;
|
|
54926
|
+
phone: string | null;
|
|
54927
|
+
profile_id: string;
|
|
54928
|
+
updated_at: string;
|
|
54929
|
+
};
|
|
54930
|
+
Insert: {
|
|
54931
|
+
color?: string | null;
|
|
54932
|
+
created_at?: string;
|
|
54933
|
+
hours_fri?: number | null;
|
|
54934
|
+
hours_mon?: number | null;
|
|
54935
|
+
hours_thu?: number | null;
|
|
54936
|
+
hours_tue?: number | null;
|
|
54937
|
+
hours_wed?: number | null;
|
|
54938
|
+
id?: string;
|
|
54939
|
+
is_active?: boolean;
|
|
54940
|
+
leave_balance_hours?: number;
|
|
54941
|
+
persnr?: string | null;
|
|
54942
|
+
phone?: string | null;
|
|
54943
|
+
profile_id: string;
|
|
54944
|
+
updated_at?: string;
|
|
54945
|
+
};
|
|
54946
|
+
Update: {
|
|
54947
|
+
color?: string | null;
|
|
54948
|
+
created_at?: string;
|
|
54949
|
+
hours_fri?: number | null;
|
|
54950
|
+
hours_mon?: number | null;
|
|
54951
|
+
hours_thu?: number | null;
|
|
54952
|
+
hours_tue?: number | null;
|
|
54953
|
+
hours_wed?: number | null;
|
|
54954
|
+
id?: string;
|
|
54955
|
+
is_active?: boolean;
|
|
54956
|
+
leave_balance_hours?: number;
|
|
54957
|
+
persnr?: string | null;
|
|
54958
|
+
phone?: string | null;
|
|
54959
|
+
profile_id?: string;
|
|
54960
|
+
updated_at?: string;
|
|
54961
|
+
};
|
|
54962
|
+
Relationships: [{
|
|
54963
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
54964
|
+
columns: ["profile_id"];
|
|
54965
|
+
isOneToOne: true;
|
|
54966
|
+
referencedRelation: "profiles";
|
|
54967
|
+
referencedColumns: ["id"];
|
|
54968
|
+
}];
|
|
54969
|
+
};
|
|
53507
54970
|
module_features: {
|
|
53508
54971
|
Row: {
|
|
53509
54972
|
created_at: string;
|
|
@@ -54797,6 +56260,8 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
54797
56260
|
orders: {
|
|
54798
56261
|
Row: {
|
|
54799
56262
|
buffer_id: string | null;
|
|
56263
|
+
cancel_reason: string | null;
|
|
56264
|
+
cancelled_at: string | null;
|
|
54800
56265
|
created_at: string;
|
|
54801
56266
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
54802
56267
|
customer_id: string | null;
|
|
@@ -54819,6 +56284,8 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
54819
56284
|
};
|
|
54820
56285
|
Insert: {
|
|
54821
56286
|
buffer_id?: string | null;
|
|
56287
|
+
cancel_reason?: string | null;
|
|
56288
|
+
cancelled_at?: string | null;
|
|
54822
56289
|
created_at?: string;
|
|
54823
56290
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54824
56291
|
customer_id?: string | null;
|
|
@@ -54841,6 +56308,8 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
54841
56308
|
};
|
|
54842
56309
|
Update: {
|
|
54843
56310
|
buffer_id?: string | null;
|
|
56311
|
+
cancel_reason?: string | null;
|
|
56312
|
+
cancelled_at?: string | null;
|
|
54844
56313
|
created_at?: string;
|
|
54845
56314
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54846
56315
|
customer_id?: string | null;
|
|
@@ -56903,6 +58372,66 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
56903
58372
|
};
|
|
56904
58373
|
Relationships: [];
|
|
56905
58374
|
};
|
|
58375
|
+
profile_modules: {
|
|
58376
|
+
Row: {
|
|
58377
|
+
created_at: string;
|
|
58378
|
+
id: string;
|
|
58379
|
+
module_id: string;
|
|
58380
|
+
profile_id: string;
|
|
58381
|
+
};
|
|
58382
|
+
Insert: {
|
|
58383
|
+
created_at?: string;
|
|
58384
|
+
id?: string;
|
|
58385
|
+
module_id: string;
|
|
58386
|
+
profile_id: string;
|
|
58387
|
+
};
|
|
58388
|
+
Update: {
|
|
58389
|
+
created_at?: string;
|
|
58390
|
+
id?: string;
|
|
58391
|
+
module_id?: string;
|
|
58392
|
+
profile_id?: string;
|
|
58393
|
+
};
|
|
58394
|
+
Relationships: [{
|
|
58395
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
58396
|
+
columns: ["profile_id"];
|
|
58397
|
+
isOneToOne: false;
|
|
58398
|
+
referencedRelation: "profiles_org";
|
|
58399
|
+
referencedColumns: ["id"];
|
|
58400
|
+
}];
|
|
58401
|
+
};
|
|
58402
|
+
profile_roles: {
|
|
58403
|
+
Row: {
|
|
58404
|
+
created_at: string;
|
|
58405
|
+
id: string;
|
|
58406
|
+
profile_id: string;
|
|
58407
|
+
role_id: string;
|
|
58408
|
+
};
|
|
58409
|
+
Insert: {
|
|
58410
|
+
created_at?: string;
|
|
58411
|
+
id?: string;
|
|
58412
|
+
profile_id: string;
|
|
58413
|
+
role_id: string;
|
|
58414
|
+
};
|
|
58415
|
+
Update: {
|
|
58416
|
+
created_at?: string;
|
|
58417
|
+
id?: string;
|
|
58418
|
+
profile_id?: string;
|
|
58419
|
+
role_id?: string;
|
|
58420
|
+
};
|
|
58421
|
+
Relationships: [{
|
|
58422
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
58423
|
+
columns: ["profile_id"];
|
|
58424
|
+
isOneToOne: false;
|
|
58425
|
+
referencedRelation: "profiles_org";
|
|
58426
|
+
referencedColumns: ["id"];
|
|
58427
|
+
}, {
|
|
58428
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
58429
|
+
columns: ["role_id"];
|
|
58430
|
+
isOneToOne: false;
|
|
58431
|
+
referencedRelation: "roles";
|
|
58432
|
+
referencedColumns: ["id"];
|
|
58433
|
+
}];
|
|
58434
|
+
};
|
|
56906
58435
|
profiles: {
|
|
56907
58436
|
Row: {
|
|
56908
58437
|
address: string | null;
|
|
@@ -56948,6 +58477,39 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
56948
58477
|
referencedColumns: ["id"];
|
|
56949
58478
|
}];
|
|
56950
58479
|
};
|
|
58480
|
+
profiles_org: {
|
|
58481
|
+
Row: {
|
|
58482
|
+
created_at: string;
|
|
58483
|
+
id: string;
|
|
58484
|
+
is_default: boolean;
|
|
58485
|
+
name: string;
|
|
58486
|
+
tenant_id: string | null;
|
|
58487
|
+
updated_at: string;
|
|
58488
|
+
};
|
|
58489
|
+
Insert: {
|
|
58490
|
+
created_at?: string;
|
|
58491
|
+
id?: string;
|
|
58492
|
+
is_default?: boolean;
|
|
58493
|
+
name: string;
|
|
58494
|
+
tenant_id?: string | null;
|
|
58495
|
+
updated_at?: string;
|
|
58496
|
+
};
|
|
58497
|
+
Update: {
|
|
58498
|
+
created_at?: string;
|
|
58499
|
+
id?: string;
|
|
58500
|
+
is_default?: boolean;
|
|
58501
|
+
name?: string;
|
|
58502
|
+
tenant_id?: string | null;
|
|
58503
|
+
updated_at?: string;
|
|
58504
|
+
};
|
|
58505
|
+
Relationships: [{
|
|
58506
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
58507
|
+
columns: ["tenant_id"];
|
|
58508
|
+
isOneToOne: false;
|
|
58509
|
+
referencedRelation: "tenants";
|
|
58510
|
+
referencedColumns: ["id"];
|
|
58511
|
+
}];
|
|
58512
|
+
};
|
|
56951
58513
|
projects: {
|
|
56952
58514
|
Row: {
|
|
56953
58515
|
contact_name: string | null;
|
|
@@ -58122,6 +59684,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
58122
59684
|
type: string;
|
|
58123
59685
|
updated_at: string;
|
|
58124
59686
|
vereist_medewerker: boolean;
|
|
59687
|
+
werkplek: string | null;
|
|
58125
59688
|
};
|
|
58126
59689
|
Insert: {
|
|
58127
59690
|
actief?: boolean;
|
|
@@ -58135,6 +59698,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
58135
59698
|
type?: string;
|
|
58136
59699
|
updated_at?: string;
|
|
58137
59700
|
vereist_medewerker?: boolean;
|
|
59701
|
+
werkplek?: string | null;
|
|
58138
59702
|
};
|
|
58139
59703
|
Update: {
|
|
58140
59704
|
actief?: boolean;
|
|
@@ -58148,9 +59712,46 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
58148
59712
|
type?: string;
|
|
58149
59713
|
updated_at?: string;
|
|
58150
59714
|
vereist_medewerker?: boolean;
|
|
59715
|
+
werkplek?: string | null;
|
|
58151
59716
|
};
|
|
58152
59717
|
Relationships: [];
|
|
58153
59718
|
};
|
|
59719
|
+
sick_periods: {
|
|
59720
|
+
Row: {
|
|
59721
|
+
created_at: string;
|
|
59722
|
+
employee_id: string;
|
|
59723
|
+
end_date: string | null;
|
|
59724
|
+
id: string;
|
|
59725
|
+
notes: string | null;
|
|
59726
|
+
start_date: string;
|
|
59727
|
+
updated_at: string;
|
|
59728
|
+
};
|
|
59729
|
+
Insert: {
|
|
59730
|
+
created_at?: string;
|
|
59731
|
+
employee_id: string;
|
|
59732
|
+
end_date?: string | null;
|
|
59733
|
+
id?: string;
|
|
59734
|
+
notes?: string | null;
|
|
59735
|
+
start_date: string;
|
|
59736
|
+
updated_at?: string;
|
|
59737
|
+
};
|
|
59738
|
+
Update: {
|
|
59739
|
+
created_at?: string;
|
|
59740
|
+
employee_id?: string;
|
|
59741
|
+
end_date?: string | null;
|
|
59742
|
+
id?: string;
|
|
59743
|
+
notes?: string | null;
|
|
59744
|
+
start_date?: string;
|
|
59745
|
+
updated_at?: string;
|
|
59746
|
+
};
|
|
59747
|
+
Relationships: [{
|
|
59748
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
59749
|
+
columns: ["employee_id"];
|
|
59750
|
+
isOneToOne: false;
|
|
59751
|
+
referencedRelation: "profiles";
|
|
59752
|
+
referencedColumns: ["id"];
|
|
59753
|
+
}];
|
|
59754
|
+
};
|
|
58154
59755
|
sidebar_config: {
|
|
58155
59756
|
Row: {
|
|
58156
59757
|
id: string;
|
|
@@ -62835,6 +64436,13 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
62835
64436
|
};
|
|
62836
64437
|
Returns: string;
|
|
62837
64438
|
};
|
|
64439
|
+
employee_day_hours: {
|
|
64440
|
+
Args: {
|
|
64441
|
+
_day: string;
|
|
64442
|
+
_employee_id: string;
|
|
64443
|
+
};
|
|
64444
|
+
Returns: number;
|
|
64445
|
+
};
|
|
62838
64446
|
enqueue_cart_replan_if_unlocked: {
|
|
62839
64447
|
Args: {
|
|
62840
64448
|
p_order_id: string;
|
|
@@ -63188,6 +64796,19 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
63188
64796
|
Args: never;
|
|
63189
64797
|
Returns: boolean;
|
|
63190
64798
|
};
|
|
64799
|
+
itk_offerte_naar_werkbon: {
|
|
64800
|
+
Args: {
|
|
64801
|
+
_offerte_id: string;
|
|
64802
|
+
};
|
|
64803
|
+
Returns: string;
|
|
64804
|
+
};
|
|
64805
|
+
itk_offerte_restant_mandaat: {
|
|
64806
|
+
Args: {
|
|
64807
|
+
_exclude_offerte_id?: string;
|
|
64808
|
+
_werkbon_id: string;
|
|
64809
|
+
};
|
|
64810
|
+
Returns: number;
|
|
64811
|
+
};
|
|
63191
64812
|
jwt_has_role: {
|
|
63192
64813
|
Args: {
|
|
63193
64814
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -63198,9 +64819,19 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
63198
64819
|
Args: never;
|
|
63199
64820
|
Returns: {
|
|
63200
64821
|
avatar_url: string;
|
|
64822
|
+
color: string;
|
|
63201
64823
|
display_name: string;
|
|
63202
64824
|
email: string;
|
|
64825
|
+
hours_fri: number;
|
|
64826
|
+
hours_mon: number;
|
|
64827
|
+
hours_thu: number;
|
|
64828
|
+
hours_tue: number;
|
|
64829
|
+
hours_wed: number;
|
|
63203
64830
|
id: string;
|
|
64831
|
+
is_active: boolean;
|
|
64832
|
+
leave_balance_hours: number;
|
|
64833
|
+
persnr: string;
|
|
64834
|
+
phone: string;
|
|
63204
64835
|
roles: string[];
|
|
63205
64836
|
}[];
|
|
63206
64837
|
};
|
|
@@ -63527,17 +65158,6 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
63527
65158
|
Returns: string;
|
|
63528
65159
|
};
|
|
63529
65160
|
logistics_emit_event: {
|
|
63530
|
-
Args: {
|
|
63531
|
-
p_event_type: string;
|
|
63532
|
-
p_idempotency_key?: string;
|
|
63533
|
-
p_order_ref: string;
|
|
63534
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
63535
|
-
p_shadow?: boolean;
|
|
63536
|
-
p_source_module: string;
|
|
63537
|
-
p_strategy_id?: string;
|
|
63538
|
-
};
|
|
63539
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
63540
|
-
} | {
|
|
63541
65161
|
Args: {
|
|
63542
65162
|
p_event_type: string;
|
|
63543
65163
|
p_idempotency_key?: string;
|
|
@@ -64382,6 +66002,37 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
64382
66002
|
};
|
|
64383
66003
|
Returns: undefined;
|
|
64384
66004
|
};
|
|
66005
|
+
quote_create_from_source: {
|
|
66006
|
+
Args: {
|
|
66007
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
66008
|
+
_source_id: string;
|
|
66009
|
+
_source_type: string;
|
|
66010
|
+
};
|
|
66011
|
+
Returns: string;
|
|
66012
|
+
};
|
|
66013
|
+
quote_get_billable_lines: {
|
|
66014
|
+
Args: {
|
|
66015
|
+
_quotation_id: string;
|
|
66016
|
+
};
|
|
66017
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66018
|
+
};
|
|
66019
|
+
quote_get_summary: {
|
|
66020
|
+
Args: {
|
|
66021
|
+
_quotation_id: string;
|
|
66022
|
+
};
|
|
66023
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66024
|
+
};
|
|
66025
|
+
quote_list_packages: {
|
|
66026
|
+
Args: never;
|
|
66027
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66028
|
+
};
|
|
66029
|
+
quote_list_sources: {
|
|
66030
|
+
Args: {
|
|
66031
|
+
_limit?: number;
|
|
66032
|
+
_source_type?: string;
|
|
66033
|
+
};
|
|
66034
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66035
|
+
};
|
|
64385
66036
|
recompute_all_reserved_stock: {
|
|
64386
66037
|
Args: never;
|
|
64387
66038
|
Returns: undefined;
|
|
@@ -64917,6 +66568,12 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
64917
66568
|
};
|
|
64918
66569
|
Returns: undefined;
|
|
64919
66570
|
};
|
|
66571
|
+
sync_sick_time_off: {
|
|
66572
|
+
Args: {
|
|
66573
|
+
_period_id: string;
|
|
66574
|
+
};
|
|
66575
|
+
Returns: number;
|
|
66576
|
+
};
|
|
64920
66577
|
trade_item_stock_duplicates: {
|
|
64921
66578
|
Args: never;
|
|
64922
66579
|
Returns: {
|
|
@@ -64990,11 +66647,31 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
|
|
|
64990
66647
|
Args: never;
|
|
64991
66648
|
Returns: string;
|
|
64992
66649
|
};
|
|
66650
|
+
wo_create_from_source: {
|
|
66651
|
+
Args: {
|
|
66652
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
66653
|
+
_source_id: string;
|
|
66654
|
+
_source_type: string;
|
|
66655
|
+
};
|
|
66656
|
+
Returns: string;
|
|
66657
|
+
};
|
|
66658
|
+
wo_get_billable_lines: {
|
|
66659
|
+
Args: {
|
|
66660
|
+
_work_order_id: string;
|
|
66661
|
+
};
|
|
66662
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66663
|
+
};
|
|
66664
|
+
wo_get_summary: {
|
|
66665
|
+
Args: {
|
|
66666
|
+
_work_order_id: string;
|
|
66667
|
+
};
|
|
66668
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66669
|
+
};
|
|
64993
66670
|
};
|
|
64994
66671
|
Enums: {
|
|
64995
66672
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
64996
66673
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
64997
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
66674
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
64998
66675
|
doc_orientation: "portrait" | "landscape";
|
|
64999
66676
|
exact_env: "staging" | "live";
|
|
65000
66677
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -70069,6 +71746,42 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
70069
71746
|
};
|
|
70070
71747
|
Relationships: [];
|
|
70071
71748
|
};
|
|
71749
|
+
facturen: {
|
|
71750
|
+
Row: {
|
|
71751
|
+
bedrag_incl_btw: number;
|
|
71752
|
+
created_at: string;
|
|
71753
|
+
datum: string;
|
|
71754
|
+
factuurnummer: string;
|
|
71755
|
+
id: string;
|
|
71756
|
+
klantnaam: string;
|
|
71757
|
+
status: string;
|
|
71758
|
+
updated_at: string;
|
|
71759
|
+
user_id: string;
|
|
71760
|
+
};
|
|
71761
|
+
Insert: {
|
|
71762
|
+
bedrag_incl_btw: number;
|
|
71763
|
+
created_at?: string;
|
|
71764
|
+
datum?: string;
|
|
71765
|
+
factuurnummer: string;
|
|
71766
|
+
id?: string;
|
|
71767
|
+
klantnaam: string;
|
|
71768
|
+
status?: string;
|
|
71769
|
+
updated_at?: string;
|
|
71770
|
+
user_id?: string;
|
|
71771
|
+
};
|
|
71772
|
+
Update: {
|
|
71773
|
+
bedrag_incl_btw?: number;
|
|
71774
|
+
created_at?: string;
|
|
71775
|
+
datum?: string;
|
|
71776
|
+
factuurnummer?: string;
|
|
71777
|
+
id?: string;
|
|
71778
|
+
klantnaam?: string;
|
|
71779
|
+
status?: string;
|
|
71780
|
+
updated_at?: string;
|
|
71781
|
+
user_id?: string;
|
|
71782
|
+
};
|
|
71783
|
+
Relationships: [];
|
|
71784
|
+
};
|
|
70072
71785
|
floricode_connection_settings: {
|
|
70073
71786
|
Row: {
|
|
70074
71787
|
catalog_key: string | null;
|
|
@@ -72793,6 +74506,258 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
72793
74506
|
};
|
|
72794
74507
|
Relationships: [];
|
|
72795
74508
|
};
|
|
74509
|
+
itk_offerte_events: {
|
|
74510
|
+
Row: {
|
|
74511
|
+
created_at: string;
|
|
74512
|
+
event_type: string;
|
|
74513
|
+
id: string;
|
|
74514
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
74515
|
+
offerte_id: string;
|
|
74516
|
+
omschrijving: string | null;
|
|
74517
|
+
user_id: string | null;
|
|
74518
|
+
};
|
|
74519
|
+
Insert: {
|
|
74520
|
+
created_at?: string;
|
|
74521
|
+
event_type: string;
|
|
74522
|
+
id?: string;
|
|
74523
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
74524
|
+
offerte_id: string;
|
|
74525
|
+
omschrijving?: string | null;
|
|
74526
|
+
user_id?: string | null;
|
|
74527
|
+
};
|
|
74528
|
+
Update: {
|
|
74529
|
+
created_at?: string;
|
|
74530
|
+
event_type?: string;
|
|
74531
|
+
id?: string;
|
|
74532
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
74533
|
+
offerte_id?: string;
|
|
74534
|
+
omschrijving?: string | null;
|
|
74535
|
+
user_id?: string | null;
|
|
74536
|
+
};
|
|
74537
|
+
Relationships: [{
|
|
74538
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
74539
|
+
columns: ["offerte_id"];
|
|
74540
|
+
isOneToOne: false;
|
|
74541
|
+
referencedRelation: "itk_offertes";
|
|
74542
|
+
referencedColumns: ["id"];
|
|
74543
|
+
}];
|
|
74544
|
+
};
|
|
74545
|
+
itk_offerte_regels: {
|
|
74546
|
+
Row: {
|
|
74547
|
+
created_at: string;
|
|
74548
|
+
id: string;
|
|
74549
|
+
line_total_cents: number;
|
|
74550
|
+
offerte_id: string;
|
|
74551
|
+
omschrijving: string;
|
|
74552
|
+
package_id: string | null;
|
|
74553
|
+
quantity: number;
|
|
74554
|
+
sort_order: number;
|
|
74555
|
+
source: string;
|
|
74556
|
+
unit_price_cents: number;
|
|
74557
|
+
updated_at: string;
|
|
74558
|
+
};
|
|
74559
|
+
Insert: {
|
|
74560
|
+
created_at?: string;
|
|
74561
|
+
id?: string;
|
|
74562
|
+
line_total_cents?: number;
|
|
74563
|
+
offerte_id: string;
|
|
74564
|
+
omschrijving?: string;
|
|
74565
|
+
package_id?: string | null;
|
|
74566
|
+
quantity?: number;
|
|
74567
|
+
sort_order?: number;
|
|
74568
|
+
source?: string;
|
|
74569
|
+
unit_price_cents?: number;
|
|
74570
|
+
updated_at?: string;
|
|
74571
|
+
};
|
|
74572
|
+
Update: {
|
|
74573
|
+
created_at?: string;
|
|
74574
|
+
id?: string;
|
|
74575
|
+
line_total_cents?: number;
|
|
74576
|
+
offerte_id?: string;
|
|
74577
|
+
omschrijving?: string;
|
|
74578
|
+
package_id?: string | null;
|
|
74579
|
+
quantity?: number;
|
|
74580
|
+
sort_order?: number;
|
|
74581
|
+
source?: string;
|
|
74582
|
+
unit_price_cents?: number;
|
|
74583
|
+
updated_at?: string;
|
|
74584
|
+
};
|
|
74585
|
+
Relationships: [{
|
|
74586
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
74587
|
+
columns: ["offerte_id"];
|
|
74588
|
+
isOneToOne: false;
|
|
74589
|
+
referencedRelation: "itk_offertes";
|
|
74590
|
+
referencedColumns: ["id"];
|
|
74591
|
+
}, {
|
|
74592
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
74593
|
+
columns: ["package_id"];
|
|
74594
|
+
isOneToOne: false;
|
|
74595
|
+
referencedRelation: "werkbon_packages";
|
|
74596
|
+
referencedColumns: ["id"];
|
|
74597
|
+
}];
|
|
74598
|
+
};
|
|
74599
|
+
itk_offerte_settings: {
|
|
74600
|
+
Row: {
|
|
74601
|
+
auto_convert_binnen_mandaat: boolean;
|
|
74602
|
+
created_at: string;
|
|
74603
|
+
default_geldigheid_dagen: number;
|
|
74604
|
+
default_vat_rate: number;
|
|
74605
|
+
id: string;
|
|
74606
|
+
singleton: boolean;
|
|
74607
|
+
updated_at: string;
|
|
74608
|
+
};
|
|
74609
|
+
Insert: {
|
|
74610
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
74611
|
+
created_at?: string;
|
|
74612
|
+
default_geldigheid_dagen?: number;
|
|
74613
|
+
default_vat_rate?: number;
|
|
74614
|
+
id?: string;
|
|
74615
|
+
singleton?: boolean;
|
|
74616
|
+
updated_at?: string;
|
|
74617
|
+
};
|
|
74618
|
+
Update: {
|
|
74619
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
74620
|
+
created_at?: string;
|
|
74621
|
+
default_geldigheid_dagen?: number;
|
|
74622
|
+
default_vat_rate?: number;
|
|
74623
|
+
id?: string;
|
|
74624
|
+
singleton?: boolean;
|
|
74625
|
+
updated_at?: string;
|
|
74626
|
+
};
|
|
74627
|
+
Relationships: [];
|
|
74628
|
+
};
|
|
74629
|
+
itk_offertes: {
|
|
74630
|
+
Row: {
|
|
74631
|
+
ai_generated: boolean;
|
|
74632
|
+
approved_at: string | null;
|
|
74633
|
+
binnen_mandaat: boolean;
|
|
74634
|
+
contact_id: string | null;
|
|
74635
|
+
converted_at: string | null;
|
|
74636
|
+
created_at: string;
|
|
74637
|
+
created_by: string | null;
|
|
74638
|
+
customer_id: string | null;
|
|
74639
|
+
follow_up_werkbon_id: string | null;
|
|
74640
|
+
id: string;
|
|
74641
|
+
jaar: number;
|
|
74642
|
+
mandaat_restant_cents: number;
|
|
74643
|
+
notities: string | null;
|
|
74644
|
+
offerte_number: string | null;
|
|
74645
|
+
omschrijving: string;
|
|
74646
|
+
rejected_at: string | null;
|
|
74647
|
+
sent_at: string | null;
|
|
74648
|
+
source_number: string | null;
|
|
74649
|
+
source_ref: string | null;
|
|
74650
|
+
source_type: string;
|
|
74651
|
+
status: string;
|
|
74652
|
+
subtotal_cents: number;
|
|
74653
|
+
total_cents: number;
|
|
74654
|
+
updated_at: string;
|
|
74655
|
+
valid_until: string | null;
|
|
74656
|
+
vat_cents: number;
|
|
74657
|
+
vat_rate: number;
|
|
74658
|
+
viewed_at: string | null;
|
|
74659
|
+
volgnummer: number | null;
|
|
74660
|
+
werkbon_id: string | null;
|
|
74661
|
+
work_location_id: string | null;
|
|
74662
|
+
};
|
|
74663
|
+
Insert: {
|
|
74664
|
+
ai_generated?: boolean;
|
|
74665
|
+
approved_at?: string | null;
|
|
74666
|
+
binnen_mandaat?: boolean;
|
|
74667
|
+
contact_id?: string | null;
|
|
74668
|
+
converted_at?: string | null;
|
|
74669
|
+
created_at?: string;
|
|
74670
|
+
created_by?: string | null;
|
|
74671
|
+
customer_id?: string | null;
|
|
74672
|
+
follow_up_werkbon_id?: string | null;
|
|
74673
|
+
id?: string;
|
|
74674
|
+
jaar?: number;
|
|
74675
|
+
mandaat_restant_cents?: number;
|
|
74676
|
+
notities?: string | null;
|
|
74677
|
+
offerte_number?: string | null;
|
|
74678
|
+
omschrijving?: string;
|
|
74679
|
+
rejected_at?: string | null;
|
|
74680
|
+
sent_at?: string | null;
|
|
74681
|
+
source_number?: string | null;
|
|
74682
|
+
source_ref?: string | null;
|
|
74683
|
+
source_type?: string;
|
|
74684
|
+
status?: string;
|
|
74685
|
+
subtotal_cents?: number;
|
|
74686
|
+
total_cents?: number;
|
|
74687
|
+
updated_at?: string;
|
|
74688
|
+
valid_until?: string | null;
|
|
74689
|
+
vat_cents?: number;
|
|
74690
|
+
vat_rate?: number;
|
|
74691
|
+
viewed_at?: string | null;
|
|
74692
|
+
volgnummer?: number | null;
|
|
74693
|
+
werkbon_id?: string | null;
|
|
74694
|
+
work_location_id?: string | null;
|
|
74695
|
+
};
|
|
74696
|
+
Update: {
|
|
74697
|
+
ai_generated?: boolean;
|
|
74698
|
+
approved_at?: string | null;
|
|
74699
|
+
binnen_mandaat?: boolean;
|
|
74700
|
+
contact_id?: string | null;
|
|
74701
|
+
converted_at?: string | null;
|
|
74702
|
+
created_at?: string;
|
|
74703
|
+
created_by?: string | null;
|
|
74704
|
+
customer_id?: string | null;
|
|
74705
|
+
follow_up_werkbon_id?: string | null;
|
|
74706
|
+
id?: string;
|
|
74707
|
+
jaar?: number;
|
|
74708
|
+
mandaat_restant_cents?: number;
|
|
74709
|
+
notities?: string | null;
|
|
74710
|
+
offerte_number?: string | null;
|
|
74711
|
+
omschrijving?: string;
|
|
74712
|
+
rejected_at?: string | null;
|
|
74713
|
+
sent_at?: string | null;
|
|
74714
|
+
source_number?: string | null;
|
|
74715
|
+
source_ref?: string | null;
|
|
74716
|
+
source_type?: string;
|
|
74717
|
+
status?: string;
|
|
74718
|
+
subtotal_cents?: number;
|
|
74719
|
+
total_cents?: number;
|
|
74720
|
+
updated_at?: string;
|
|
74721
|
+
valid_until?: string | null;
|
|
74722
|
+
vat_cents?: number;
|
|
74723
|
+
vat_rate?: number;
|
|
74724
|
+
viewed_at?: string | null;
|
|
74725
|
+
volgnummer?: number | null;
|
|
74726
|
+
werkbon_id?: string | null;
|
|
74727
|
+
work_location_id?: string | null;
|
|
74728
|
+
};
|
|
74729
|
+
Relationships: [{
|
|
74730
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
74731
|
+
columns: ["contact_id"];
|
|
74732
|
+
isOneToOne: false;
|
|
74733
|
+
referencedRelation: "itk_contact_persons";
|
|
74734
|
+
referencedColumns: ["id"];
|
|
74735
|
+
}, {
|
|
74736
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
74737
|
+
columns: ["customer_id"];
|
|
74738
|
+
isOneToOne: false;
|
|
74739
|
+
referencedRelation: "itk_customers";
|
|
74740
|
+
referencedColumns: ["id"];
|
|
74741
|
+
}, {
|
|
74742
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
74743
|
+
columns: ["follow_up_werkbon_id"];
|
|
74744
|
+
isOneToOne: false;
|
|
74745
|
+
referencedRelation: "werkbonnen";
|
|
74746
|
+
referencedColumns: ["id"];
|
|
74747
|
+
}, {
|
|
74748
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
74749
|
+
columns: ["werkbon_id"];
|
|
74750
|
+
isOneToOne: false;
|
|
74751
|
+
referencedRelation: "werkbonnen";
|
|
74752
|
+
referencedColumns: ["id"];
|
|
74753
|
+
}, {
|
|
74754
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
74755
|
+
columns: ["work_location_id"];
|
|
74756
|
+
isOneToOne: false;
|
|
74757
|
+
referencedRelation: "itk_work_locations";
|
|
74758
|
+
referencedColumns: ["id"];
|
|
74759
|
+
}];
|
|
74760
|
+
};
|
|
72796
74761
|
itk_work_locations: {
|
|
72797
74762
|
Row: {
|
|
72798
74763
|
city: string | null;
|
|
@@ -75166,6 +77131,63 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
75166
77131
|
referencedColumns: ["id"];
|
|
75167
77132
|
}];
|
|
75168
77133
|
};
|
|
77134
|
+
medewerker_details: {
|
|
77135
|
+
Row: {
|
|
77136
|
+
color: string | null;
|
|
77137
|
+
created_at: string;
|
|
77138
|
+
hours_fri: number | null;
|
|
77139
|
+
hours_mon: number | null;
|
|
77140
|
+
hours_thu: number | null;
|
|
77141
|
+
hours_tue: number | null;
|
|
77142
|
+
hours_wed: number | null;
|
|
77143
|
+
id: string;
|
|
77144
|
+
is_active: boolean;
|
|
77145
|
+
leave_balance_hours: number;
|
|
77146
|
+
persnr: string | null;
|
|
77147
|
+
phone: string | null;
|
|
77148
|
+
profile_id: string;
|
|
77149
|
+
updated_at: string;
|
|
77150
|
+
};
|
|
77151
|
+
Insert: {
|
|
77152
|
+
color?: string | null;
|
|
77153
|
+
created_at?: string;
|
|
77154
|
+
hours_fri?: number | null;
|
|
77155
|
+
hours_mon?: number | null;
|
|
77156
|
+
hours_thu?: number | null;
|
|
77157
|
+
hours_tue?: number | null;
|
|
77158
|
+
hours_wed?: number | null;
|
|
77159
|
+
id?: string;
|
|
77160
|
+
is_active?: boolean;
|
|
77161
|
+
leave_balance_hours?: number;
|
|
77162
|
+
persnr?: string | null;
|
|
77163
|
+
phone?: string | null;
|
|
77164
|
+
profile_id: string;
|
|
77165
|
+
updated_at?: string;
|
|
77166
|
+
};
|
|
77167
|
+
Update: {
|
|
77168
|
+
color?: string | null;
|
|
77169
|
+
created_at?: string;
|
|
77170
|
+
hours_fri?: number | null;
|
|
77171
|
+
hours_mon?: number | null;
|
|
77172
|
+
hours_thu?: number | null;
|
|
77173
|
+
hours_tue?: number | null;
|
|
77174
|
+
hours_wed?: number | null;
|
|
77175
|
+
id?: string;
|
|
77176
|
+
is_active?: boolean;
|
|
77177
|
+
leave_balance_hours?: number;
|
|
77178
|
+
persnr?: string | null;
|
|
77179
|
+
phone?: string | null;
|
|
77180
|
+
profile_id?: string;
|
|
77181
|
+
updated_at?: string;
|
|
77182
|
+
};
|
|
77183
|
+
Relationships: [{
|
|
77184
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
77185
|
+
columns: ["profile_id"];
|
|
77186
|
+
isOneToOne: true;
|
|
77187
|
+
referencedRelation: "profiles";
|
|
77188
|
+
referencedColumns: ["id"];
|
|
77189
|
+
}];
|
|
77190
|
+
};
|
|
75169
77191
|
module_features: {
|
|
75170
77192
|
Row: {
|
|
75171
77193
|
created_at: string;
|
|
@@ -76459,6 +78481,8 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
76459
78481
|
orders: {
|
|
76460
78482
|
Row: {
|
|
76461
78483
|
buffer_id: string | null;
|
|
78484
|
+
cancel_reason: string | null;
|
|
78485
|
+
cancelled_at: string | null;
|
|
76462
78486
|
created_at: string;
|
|
76463
78487
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
76464
78488
|
customer_id: string | null;
|
|
@@ -76481,6 +78505,8 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
76481
78505
|
};
|
|
76482
78506
|
Insert: {
|
|
76483
78507
|
buffer_id?: string | null;
|
|
78508
|
+
cancel_reason?: string | null;
|
|
78509
|
+
cancelled_at?: string | null;
|
|
76484
78510
|
created_at?: string;
|
|
76485
78511
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
76486
78512
|
customer_id?: string | null;
|
|
@@ -76503,6 +78529,8 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
76503
78529
|
};
|
|
76504
78530
|
Update: {
|
|
76505
78531
|
buffer_id?: string | null;
|
|
78532
|
+
cancel_reason?: string | null;
|
|
78533
|
+
cancelled_at?: string | null;
|
|
76506
78534
|
created_at?: string;
|
|
76507
78535
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
76508
78536
|
customer_id?: string | null;
|
|
@@ -78565,6 +80593,66 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
78565
80593
|
};
|
|
78566
80594
|
Relationships: [];
|
|
78567
80595
|
};
|
|
80596
|
+
profile_modules: {
|
|
80597
|
+
Row: {
|
|
80598
|
+
created_at: string;
|
|
80599
|
+
id: string;
|
|
80600
|
+
module_id: string;
|
|
80601
|
+
profile_id: string;
|
|
80602
|
+
};
|
|
80603
|
+
Insert: {
|
|
80604
|
+
created_at?: string;
|
|
80605
|
+
id?: string;
|
|
80606
|
+
module_id: string;
|
|
80607
|
+
profile_id: string;
|
|
80608
|
+
};
|
|
80609
|
+
Update: {
|
|
80610
|
+
created_at?: string;
|
|
80611
|
+
id?: string;
|
|
80612
|
+
module_id?: string;
|
|
80613
|
+
profile_id?: string;
|
|
80614
|
+
};
|
|
80615
|
+
Relationships: [{
|
|
80616
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
80617
|
+
columns: ["profile_id"];
|
|
80618
|
+
isOneToOne: false;
|
|
80619
|
+
referencedRelation: "profiles_org";
|
|
80620
|
+
referencedColumns: ["id"];
|
|
80621
|
+
}];
|
|
80622
|
+
};
|
|
80623
|
+
profile_roles: {
|
|
80624
|
+
Row: {
|
|
80625
|
+
created_at: string;
|
|
80626
|
+
id: string;
|
|
80627
|
+
profile_id: string;
|
|
80628
|
+
role_id: string;
|
|
80629
|
+
};
|
|
80630
|
+
Insert: {
|
|
80631
|
+
created_at?: string;
|
|
80632
|
+
id?: string;
|
|
80633
|
+
profile_id: string;
|
|
80634
|
+
role_id: string;
|
|
80635
|
+
};
|
|
80636
|
+
Update: {
|
|
80637
|
+
created_at?: string;
|
|
80638
|
+
id?: string;
|
|
80639
|
+
profile_id?: string;
|
|
80640
|
+
role_id?: string;
|
|
80641
|
+
};
|
|
80642
|
+
Relationships: [{
|
|
80643
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
80644
|
+
columns: ["profile_id"];
|
|
80645
|
+
isOneToOne: false;
|
|
80646
|
+
referencedRelation: "profiles_org";
|
|
80647
|
+
referencedColumns: ["id"];
|
|
80648
|
+
}, {
|
|
80649
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
80650
|
+
columns: ["role_id"];
|
|
80651
|
+
isOneToOne: false;
|
|
80652
|
+
referencedRelation: "roles";
|
|
80653
|
+
referencedColumns: ["id"];
|
|
80654
|
+
}];
|
|
80655
|
+
};
|
|
78568
80656
|
profiles: {
|
|
78569
80657
|
Row: {
|
|
78570
80658
|
address: string | null;
|
|
@@ -78610,6 +80698,39 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
78610
80698
|
referencedColumns: ["id"];
|
|
78611
80699
|
}];
|
|
78612
80700
|
};
|
|
80701
|
+
profiles_org: {
|
|
80702
|
+
Row: {
|
|
80703
|
+
created_at: string;
|
|
80704
|
+
id: string;
|
|
80705
|
+
is_default: boolean;
|
|
80706
|
+
name: string;
|
|
80707
|
+
tenant_id: string | null;
|
|
80708
|
+
updated_at: string;
|
|
80709
|
+
};
|
|
80710
|
+
Insert: {
|
|
80711
|
+
created_at?: string;
|
|
80712
|
+
id?: string;
|
|
80713
|
+
is_default?: boolean;
|
|
80714
|
+
name: string;
|
|
80715
|
+
tenant_id?: string | null;
|
|
80716
|
+
updated_at?: string;
|
|
80717
|
+
};
|
|
80718
|
+
Update: {
|
|
80719
|
+
created_at?: string;
|
|
80720
|
+
id?: string;
|
|
80721
|
+
is_default?: boolean;
|
|
80722
|
+
name?: string;
|
|
80723
|
+
tenant_id?: string | null;
|
|
80724
|
+
updated_at?: string;
|
|
80725
|
+
};
|
|
80726
|
+
Relationships: [{
|
|
80727
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
80728
|
+
columns: ["tenant_id"];
|
|
80729
|
+
isOneToOne: false;
|
|
80730
|
+
referencedRelation: "tenants";
|
|
80731
|
+
referencedColumns: ["id"];
|
|
80732
|
+
}];
|
|
80733
|
+
};
|
|
78613
80734
|
projects: {
|
|
78614
80735
|
Row: {
|
|
78615
80736
|
contact_name: string | null;
|
|
@@ -79784,6 +81905,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
79784
81905
|
type: string;
|
|
79785
81906
|
updated_at: string;
|
|
79786
81907
|
vereist_medewerker: boolean;
|
|
81908
|
+
werkplek: string | null;
|
|
79787
81909
|
};
|
|
79788
81910
|
Insert: {
|
|
79789
81911
|
actief?: boolean;
|
|
@@ -79797,6 +81919,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
79797
81919
|
type?: string;
|
|
79798
81920
|
updated_at?: string;
|
|
79799
81921
|
vereist_medewerker?: boolean;
|
|
81922
|
+
werkplek?: string | null;
|
|
79800
81923
|
};
|
|
79801
81924
|
Update: {
|
|
79802
81925
|
actief?: boolean;
|
|
@@ -79810,9 +81933,46 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
79810
81933
|
type?: string;
|
|
79811
81934
|
updated_at?: string;
|
|
79812
81935
|
vereist_medewerker?: boolean;
|
|
81936
|
+
werkplek?: string | null;
|
|
79813
81937
|
};
|
|
79814
81938
|
Relationships: [];
|
|
79815
81939
|
};
|
|
81940
|
+
sick_periods: {
|
|
81941
|
+
Row: {
|
|
81942
|
+
created_at: string;
|
|
81943
|
+
employee_id: string;
|
|
81944
|
+
end_date: string | null;
|
|
81945
|
+
id: string;
|
|
81946
|
+
notes: string | null;
|
|
81947
|
+
start_date: string;
|
|
81948
|
+
updated_at: string;
|
|
81949
|
+
};
|
|
81950
|
+
Insert: {
|
|
81951
|
+
created_at?: string;
|
|
81952
|
+
employee_id: string;
|
|
81953
|
+
end_date?: string | null;
|
|
81954
|
+
id?: string;
|
|
81955
|
+
notes?: string | null;
|
|
81956
|
+
start_date: string;
|
|
81957
|
+
updated_at?: string;
|
|
81958
|
+
};
|
|
81959
|
+
Update: {
|
|
81960
|
+
created_at?: string;
|
|
81961
|
+
employee_id?: string;
|
|
81962
|
+
end_date?: string | null;
|
|
81963
|
+
id?: string;
|
|
81964
|
+
notes?: string | null;
|
|
81965
|
+
start_date?: string;
|
|
81966
|
+
updated_at?: string;
|
|
81967
|
+
};
|
|
81968
|
+
Relationships: [{
|
|
81969
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
81970
|
+
columns: ["employee_id"];
|
|
81971
|
+
isOneToOne: false;
|
|
81972
|
+
referencedRelation: "profiles";
|
|
81973
|
+
referencedColumns: ["id"];
|
|
81974
|
+
}];
|
|
81975
|
+
};
|
|
79816
81976
|
sidebar_config: {
|
|
79817
81977
|
Row: {
|
|
79818
81978
|
id: string;
|
|
@@ -84497,6 +86657,13 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
84497
86657
|
};
|
|
84498
86658
|
Returns: string;
|
|
84499
86659
|
};
|
|
86660
|
+
employee_day_hours: {
|
|
86661
|
+
Args: {
|
|
86662
|
+
_day: string;
|
|
86663
|
+
_employee_id: string;
|
|
86664
|
+
};
|
|
86665
|
+
Returns: number;
|
|
86666
|
+
};
|
|
84500
86667
|
enqueue_cart_replan_if_unlocked: {
|
|
84501
86668
|
Args: {
|
|
84502
86669
|
p_order_id: string;
|
|
@@ -84850,6 +87017,19 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
84850
87017
|
Args: never;
|
|
84851
87018
|
Returns: boolean;
|
|
84852
87019
|
};
|
|
87020
|
+
itk_offerte_naar_werkbon: {
|
|
87021
|
+
Args: {
|
|
87022
|
+
_offerte_id: string;
|
|
87023
|
+
};
|
|
87024
|
+
Returns: string;
|
|
87025
|
+
};
|
|
87026
|
+
itk_offerte_restant_mandaat: {
|
|
87027
|
+
Args: {
|
|
87028
|
+
_exclude_offerte_id?: string;
|
|
87029
|
+
_werkbon_id: string;
|
|
87030
|
+
};
|
|
87031
|
+
Returns: number;
|
|
87032
|
+
};
|
|
84853
87033
|
jwt_has_role: {
|
|
84854
87034
|
Args: {
|
|
84855
87035
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -84860,9 +87040,19 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
84860
87040
|
Args: never;
|
|
84861
87041
|
Returns: {
|
|
84862
87042
|
avatar_url: string;
|
|
87043
|
+
color: string;
|
|
84863
87044
|
display_name: string;
|
|
84864
87045
|
email: string;
|
|
87046
|
+
hours_fri: number;
|
|
87047
|
+
hours_mon: number;
|
|
87048
|
+
hours_thu: number;
|
|
87049
|
+
hours_tue: number;
|
|
87050
|
+
hours_wed: number;
|
|
84865
87051
|
id: string;
|
|
87052
|
+
is_active: boolean;
|
|
87053
|
+
leave_balance_hours: number;
|
|
87054
|
+
persnr: string;
|
|
87055
|
+
phone: string;
|
|
84866
87056
|
roles: string[];
|
|
84867
87057
|
}[];
|
|
84868
87058
|
};
|
|
@@ -85189,17 +87379,6 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
85189
87379
|
Returns: string;
|
|
85190
87380
|
};
|
|
85191
87381
|
logistics_emit_event: {
|
|
85192
|
-
Args: {
|
|
85193
|
-
p_event_type: string;
|
|
85194
|
-
p_idempotency_key?: string;
|
|
85195
|
-
p_order_ref: string;
|
|
85196
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
85197
|
-
p_shadow?: boolean;
|
|
85198
|
-
p_source_module: string;
|
|
85199
|
-
p_strategy_id?: string;
|
|
85200
|
-
};
|
|
85201
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
85202
|
-
} | {
|
|
85203
87382
|
Args: {
|
|
85204
87383
|
p_event_type: string;
|
|
85205
87384
|
p_idempotency_key?: string;
|
|
@@ -86044,6 +88223,37 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
86044
88223
|
};
|
|
86045
88224
|
Returns: undefined;
|
|
86046
88225
|
};
|
|
88226
|
+
quote_create_from_source: {
|
|
88227
|
+
Args: {
|
|
88228
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
88229
|
+
_source_id: string;
|
|
88230
|
+
_source_type: string;
|
|
88231
|
+
};
|
|
88232
|
+
Returns: string;
|
|
88233
|
+
};
|
|
88234
|
+
quote_get_billable_lines: {
|
|
88235
|
+
Args: {
|
|
88236
|
+
_quotation_id: string;
|
|
88237
|
+
};
|
|
88238
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88239
|
+
};
|
|
88240
|
+
quote_get_summary: {
|
|
88241
|
+
Args: {
|
|
88242
|
+
_quotation_id: string;
|
|
88243
|
+
};
|
|
88244
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88245
|
+
};
|
|
88246
|
+
quote_list_packages: {
|
|
88247
|
+
Args: never;
|
|
88248
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88249
|
+
};
|
|
88250
|
+
quote_list_sources: {
|
|
88251
|
+
Args: {
|
|
88252
|
+
_limit?: number;
|
|
88253
|
+
_source_type?: string;
|
|
88254
|
+
};
|
|
88255
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88256
|
+
};
|
|
86047
88257
|
recompute_all_reserved_stock: {
|
|
86048
88258
|
Args: never;
|
|
86049
88259
|
Returns: undefined;
|
|
@@ -86579,6 +88789,12 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
86579
88789
|
};
|
|
86580
88790
|
Returns: undefined;
|
|
86581
88791
|
};
|
|
88792
|
+
sync_sick_time_off: {
|
|
88793
|
+
Args: {
|
|
88794
|
+
_period_id: string;
|
|
88795
|
+
};
|
|
88796
|
+
Returns: number;
|
|
88797
|
+
};
|
|
86582
88798
|
trade_item_stock_duplicates: {
|
|
86583
88799
|
Args: never;
|
|
86584
88800
|
Returns: {
|
|
@@ -86652,11 +88868,31 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
|
|
|
86652
88868
|
Args: never;
|
|
86653
88869
|
Returns: string;
|
|
86654
88870
|
};
|
|
88871
|
+
wo_create_from_source: {
|
|
88872
|
+
Args: {
|
|
88873
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
88874
|
+
_source_id: string;
|
|
88875
|
+
_source_type: string;
|
|
88876
|
+
};
|
|
88877
|
+
Returns: string;
|
|
88878
|
+
};
|
|
88879
|
+
wo_get_billable_lines: {
|
|
88880
|
+
Args: {
|
|
88881
|
+
_work_order_id: string;
|
|
88882
|
+
};
|
|
88883
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88884
|
+
};
|
|
88885
|
+
wo_get_summary: {
|
|
88886
|
+
Args: {
|
|
88887
|
+
_work_order_id: string;
|
|
88888
|
+
};
|
|
88889
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88890
|
+
};
|
|
86655
88891
|
};
|
|
86656
88892
|
Enums: {
|
|
86657
88893
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
86658
88894
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
86659
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
88895
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
86660
88896
|
doc_orientation: "portrait" | "landscape";
|
|
86661
88897
|
exact_env: "staging" | "live";
|
|
86662
88898
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -91745,6 +93981,42 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
91745
93981
|
};
|
|
91746
93982
|
Relationships: [];
|
|
91747
93983
|
};
|
|
93984
|
+
facturen: {
|
|
93985
|
+
Row: {
|
|
93986
|
+
bedrag_incl_btw: number;
|
|
93987
|
+
created_at: string;
|
|
93988
|
+
datum: string;
|
|
93989
|
+
factuurnummer: string;
|
|
93990
|
+
id: string;
|
|
93991
|
+
klantnaam: string;
|
|
93992
|
+
status: string;
|
|
93993
|
+
updated_at: string;
|
|
93994
|
+
user_id: string;
|
|
93995
|
+
};
|
|
93996
|
+
Insert: {
|
|
93997
|
+
bedrag_incl_btw: number;
|
|
93998
|
+
created_at?: string;
|
|
93999
|
+
datum?: string;
|
|
94000
|
+
factuurnummer: string;
|
|
94001
|
+
id?: string;
|
|
94002
|
+
klantnaam: string;
|
|
94003
|
+
status?: string;
|
|
94004
|
+
updated_at?: string;
|
|
94005
|
+
user_id?: string;
|
|
94006
|
+
};
|
|
94007
|
+
Update: {
|
|
94008
|
+
bedrag_incl_btw?: number;
|
|
94009
|
+
created_at?: string;
|
|
94010
|
+
datum?: string;
|
|
94011
|
+
factuurnummer?: string;
|
|
94012
|
+
id?: string;
|
|
94013
|
+
klantnaam?: string;
|
|
94014
|
+
status?: string;
|
|
94015
|
+
updated_at?: string;
|
|
94016
|
+
user_id?: string;
|
|
94017
|
+
};
|
|
94018
|
+
Relationships: [];
|
|
94019
|
+
};
|
|
91748
94020
|
floricode_connection_settings: {
|
|
91749
94021
|
Row: {
|
|
91750
94022
|
catalog_key: string | null;
|
|
@@ -94469,6 +96741,258 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
94469
96741
|
};
|
|
94470
96742
|
Relationships: [];
|
|
94471
96743
|
};
|
|
96744
|
+
itk_offerte_events: {
|
|
96745
|
+
Row: {
|
|
96746
|
+
created_at: string;
|
|
96747
|
+
event_type: string;
|
|
96748
|
+
id: string;
|
|
96749
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
96750
|
+
offerte_id: string;
|
|
96751
|
+
omschrijving: string | null;
|
|
96752
|
+
user_id: string | null;
|
|
96753
|
+
};
|
|
96754
|
+
Insert: {
|
|
96755
|
+
created_at?: string;
|
|
96756
|
+
event_type: string;
|
|
96757
|
+
id?: string;
|
|
96758
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
96759
|
+
offerte_id: string;
|
|
96760
|
+
omschrijving?: string | null;
|
|
96761
|
+
user_id?: string | null;
|
|
96762
|
+
};
|
|
96763
|
+
Update: {
|
|
96764
|
+
created_at?: string;
|
|
96765
|
+
event_type?: string;
|
|
96766
|
+
id?: string;
|
|
96767
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
96768
|
+
offerte_id?: string;
|
|
96769
|
+
omschrijving?: string | null;
|
|
96770
|
+
user_id?: string | null;
|
|
96771
|
+
};
|
|
96772
|
+
Relationships: [{
|
|
96773
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
96774
|
+
columns: ["offerte_id"];
|
|
96775
|
+
isOneToOne: false;
|
|
96776
|
+
referencedRelation: "itk_offertes";
|
|
96777
|
+
referencedColumns: ["id"];
|
|
96778
|
+
}];
|
|
96779
|
+
};
|
|
96780
|
+
itk_offerte_regels: {
|
|
96781
|
+
Row: {
|
|
96782
|
+
created_at: string;
|
|
96783
|
+
id: string;
|
|
96784
|
+
line_total_cents: number;
|
|
96785
|
+
offerte_id: string;
|
|
96786
|
+
omschrijving: string;
|
|
96787
|
+
package_id: string | null;
|
|
96788
|
+
quantity: number;
|
|
96789
|
+
sort_order: number;
|
|
96790
|
+
source: string;
|
|
96791
|
+
unit_price_cents: number;
|
|
96792
|
+
updated_at: string;
|
|
96793
|
+
};
|
|
96794
|
+
Insert: {
|
|
96795
|
+
created_at?: string;
|
|
96796
|
+
id?: string;
|
|
96797
|
+
line_total_cents?: number;
|
|
96798
|
+
offerte_id: string;
|
|
96799
|
+
omschrijving?: string;
|
|
96800
|
+
package_id?: string | null;
|
|
96801
|
+
quantity?: number;
|
|
96802
|
+
sort_order?: number;
|
|
96803
|
+
source?: string;
|
|
96804
|
+
unit_price_cents?: number;
|
|
96805
|
+
updated_at?: string;
|
|
96806
|
+
};
|
|
96807
|
+
Update: {
|
|
96808
|
+
created_at?: string;
|
|
96809
|
+
id?: string;
|
|
96810
|
+
line_total_cents?: number;
|
|
96811
|
+
offerte_id?: string;
|
|
96812
|
+
omschrijving?: string;
|
|
96813
|
+
package_id?: string | null;
|
|
96814
|
+
quantity?: number;
|
|
96815
|
+
sort_order?: number;
|
|
96816
|
+
source?: string;
|
|
96817
|
+
unit_price_cents?: number;
|
|
96818
|
+
updated_at?: string;
|
|
96819
|
+
};
|
|
96820
|
+
Relationships: [{
|
|
96821
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
96822
|
+
columns: ["offerte_id"];
|
|
96823
|
+
isOneToOne: false;
|
|
96824
|
+
referencedRelation: "itk_offertes";
|
|
96825
|
+
referencedColumns: ["id"];
|
|
96826
|
+
}, {
|
|
96827
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
96828
|
+
columns: ["package_id"];
|
|
96829
|
+
isOneToOne: false;
|
|
96830
|
+
referencedRelation: "werkbon_packages";
|
|
96831
|
+
referencedColumns: ["id"];
|
|
96832
|
+
}];
|
|
96833
|
+
};
|
|
96834
|
+
itk_offerte_settings: {
|
|
96835
|
+
Row: {
|
|
96836
|
+
auto_convert_binnen_mandaat: boolean;
|
|
96837
|
+
created_at: string;
|
|
96838
|
+
default_geldigheid_dagen: number;
|
|
96839
|
+
default_vat_rate: number;
|
|
96840
|
+
id: string;
|
|
96841
|
+
singleton: boolean;
|
|
96842
|
+
updated_at: string;
|
|
96843
|
+
};
|
|
96844
|
+
Insert: {
|
|
96845
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
96846
|
+
created_at?: string;
|
|
96847
|
+
default_geldigheid_dagen?: number;
|
|
96848
|
+
default_vat_rate?: number;
|
|
96849
|
+
id?: string;
|
|
96850
|
+
singleton?: boolean;
|
|
96851
|
+
updated_at?: string;
|
|
96852
|
+
};
|
|
96853
|
+
Update: {
|
|
96854
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
96855
|
+
created_at?: string;
|
|
96856
|
+
default_geldigheid_dagen?: number;
|
|
96857
|
+
default_vat_rate?: number;
|
|
96858
|
+
id?: string;
|
|
96859
|
+
singleton?: boolean;
|
|
96860
|
+
updated_at?: string;
|
|
96861
|
+
};
|
|
96862
|
+
Relationships: [];
|
|
96863
|
+
};
|
|
96864
|
+
itk_offertes: {
|
|
96865
|
+
Row: {
|
|
96866
|
+
ai_generated: boolean;
|
|
96867
|
+
approved_at: string | null;
|
|
96868
|
+
binnen_mandaat: boolean;
|
|
96869
|
+
contact_id: string | null;
|
|
96870
|
+
converted_at: string | null;
|
|
96871
|
+
created_at: string;
|
|
96872
|
+
created_by: string | null;
|
|
96873
|
+
customer_id: string | null;
|
|
96874
|
+
follow_up_werkbon_id: string | null;
|
|
96875
|
+
id: string;
|
|
96876
|
+
jaar: number;
|
|
96877
|
+
mandaat_restant_cents: number;
|
|
96878
|
+
notities: string | null;
|
|
96879
|
+
offerte_number: string | null;
|
|
96880
|
+
omschrijving: string;
|
|
96881
|
+
rejected_at: string | null;
|
|
96882
|
+
sent_at: string | null;
|
|
96883
|
+
source_number: string | null;
|
|
96884
|
+
source_ref: string | null;
|
|
96885
|
+
source_type: string;
|
|
96886
|
+
status: string;
|
|
96887
|
+
subtotal_cents: number;
|
|
96888
|
+
total_cents: number;
|
|
96889
|
+
updated_at: string;
|
|
96890
|
+
valid_until: string | null;
|
|
96891
|
+
vat_cents: number;
|
|
96892
|
+
vat_rate: number;
|
|
96893
|
+
viewed_at: string | null;
|
|
96894
|
+
volgnummer: number | null;
|
|
96895
|
+
werkbon_id: string | null;
|
|
96896
|
+
work_location_id: string | null;
|
|
96897
|
+
};
|
|
96898
|
+
Insert: {
|
|
96899
|
+
ai_generated?: boolean;
|
|
96900
|
+
approved_at?: string | null;
|
|
96901
|
+
binnen_mandaat?: boolean;
|
|
96902
|
+
contact_id?: string | null;
|
|
96903
|
+
converted_at?: string | null;
|
|
96904
|
+
created_at?: string;
|
|
96905
|
+
created_by?: string | null;
|
|
96906
|
+
customer_id?: string | null;
|
|
96907
|
+
follow_up_werkbon_id?: string | null;
|
|
96908
|
+
id?: string;
|
|
96909
|
+
jaar?: number;
|
|
96910
|
+
mandaat_restant_cents?: number;
|
|
96911
|
+
notities?: string | null;
|
|
96912
|
+
offerte_number?: string | null;
|
|
96913
|
+
omschrijving?: string;
|
|
96914
|
+
rejected_at?: string | null;
|
|
96915
|
+
sent_at?: string | null;
|
|
96916
|
+
source_number?: string | null;
|
|
96917
|
+
source_ref?: string | null;
|
|
96918
|
+
source_type?: string;
|
|
96919
|
+
status?: string;
|
|
96920
|
+
subtotal_cents?: number;
|
|
96921
|
+
total_cents?: number;
|
|
96922
|
+
updated_at?: string;
|
|
96923
|
+
valid_until?: string | null;
|
|
96924
|
+
vat_cents?: number;
|
|
96925
|
+
vat_rate?: number;
|
|
96926
|
+
viewed_at?: string | null;
|
|
96927
|
+
volgnummer?: number | null;
|
|
96928
|
+
werkbon_id?: string | null;
|
|
96929
|
+
work_location_id?: string | null;
|
|
96930
|
+
};
|
|
96931
|
+
Update: {
|
|
96932
|
+
ai_generated?: boolean;
|
|
96933
|
+
approved_at?: string | null;
|
|
96934
|
+
binnen_mandaat?: boolean;
|
|
96935
|
+
contact_id?: string | null;
|
|
96936
|
+
converted_at?: string | null;
|
|
96937
|
+
created_at?: string;
|
|
96938
|
+
created_by?: string | null;
|
|
96939
|
+
customer_id?: string | null;
|
|
96940
|
+
follow_up_werkbon_id?: string | null;
|
|
96941
|
+
id?: string;
|
|
96942
|
+
jaar?: number;
|
|
96943
|
+
mandaat_restant_cents?: number;
|
|
96944
|
+
notities?: string | null;
|
|
96945
|
+
offerte_number?: string | null;
|
|
96946
|
+
omschrijving?: string;
|
|
96947
|
+
rejected_at?: string | null;
|
|
96948
|
+
sent_at?: string | null;
|
|
96949
|
+
source_number?: string | null;
|
|
96950
|
+
source_ref?: string | null;
|
|
96951
|
+
source_type?: string;
|
|
96952
|
+
status?: string;
|
|
96953
|
+
subtotal_cents?: number;
|
|
96954
|
+
total_cents?: number;
|
|
96955
|
+
updated_at?: string;
|
|
96956
|
+
valid_until?: string | null;
|
|
96957
|
+
vat_cents?: number;
|
|
96958
|
+
vat_rate?: number;
|
|
96959
|
+
viewed_at?: string | null;
|
|
96960
|
+
volgnummer?: number | null;
|
|
96961
|
+
werkbon_id?: string | null;
|
|
96962
|
+
work_location_id?: string | null;
|
|
96963
|
+
};
|
|
96964
|
+
Relationships: [{
|
|
96965
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
96966
|
+
columns: ["contact_id"];
|
|
96967
|
+
isOneToOne: false;
|
|
96968
|
+
referencedRelation: "itk_contact_persons";
|
|
96969
|
+
referencedColumns: ["id"];
|
|
96970
|
+
}, {
|
|
96971
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
96972
|
+
columns: ["customer_id"];
|
|
96973
|
+
isOneToOne: false;
|
|
96974
|
+
referencedRelation: "itk_customers";
|
|
96975
|
+
referencedColumns: ["id"];
|
|
96976
|
+
}, {
|
|
96977
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
96978
|
+
columns: ["follow_up_werkbon_id"];
|
|
96979
|
+
isOneToOne: false;
|
|
96980
|
+
referencedRelation: "werkbonnen";
|
|
96981
|
+
referencedColumns: ["id"];
|
|
96982
|
+
}, {
|
|
96983
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
96984
|
+
columns: ["werkbon_id"];
|
|
96985
|
+
isOneToOne: false;
|
|
96986
|
+
referencedRelation: "werkbonnen";
|
|
96987
|
+
referencedColumns: ["id"];
|
|
96988
|
+
}, {
|
|
96989
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
96990
|
+
columns: ["work_location_id"];
|
|
96991
|
+
isOneToOne: false;
|
|
96992
|
+
referencedRelation: "itk_work_locations";
|
|
96993
|
+
referencedColumns: ["id"];
|
|
96994
|
+
}];
|
|
96995
|
+
};
|
|
94472
96996
|
itk_work_locations: {
|
|
94473
96997
|
Row: {
|
|
94474
96998
|
city: string | null;
|
|
@@ -96842,6 +99366,63 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
96842
99366
|
referencedColumns: ["id"];
|
|
96843
99367
|
}];
|
|
96844
99368
|
};
|
|
99369
|
+
medewerker_details: {
|
|
99370
|
+
Row: {
|
|
99371
|
+
color: string | null;
|
|
99372
|
+
created_at: string;
|
|
99373
|
+
hours_fri: number | null;
|
|
99374
|
+
hours_mon: number | null;
|
|
99375
|
+
hours_thu: number | null;
|
|
99376
|
+
hours_tue: number | null;
|
|
99377
|
+
hours_wed: number | null;
|
|
99378
|
+
id: string;
|
|
99379
|
+
is_active: boolean;
|
|
99380
|
+
leave_balance_hours: number;
|
|
99381
|
+
persnr: string | null;
|
|
99382
|
+
phone: string | null;
|
|
99383
|
+
profile_id: string;
|
|
99384
|
+
updated_at: string;
|
|
99385
|
+
};
|
|
99386
|
+
Insert: {
|
|
99387
|
+
color?: string | null;
|
|
99388
|
+
created_at?: string;
|
|
99389
|
+
hours_fri?: number | null;
|
|
99390
|
+
hours_mon?: number | null;
|
|
99391
|
+
hours_thu?: number | null;
|
|
99392
|
+
hours_tue?: number | null;
|
|
99393
|
+
hours_wed?: number | null;
|
|
99394
|
+
id?: string;
|
|
99395
|
+
is_active?: boolean;
|
|
99396
|
+
leave_balance_hours?: number;
|
|
99397
|
+
persnr?: string | null;
|
|
99398
|
+
phone?: string | null;
|
|
99399
|
+
profile_id: string;
|
|
99400
|
+
updated_at?: string;
|
|
99401
|
+
};
|
|
99402
|
+
Update: {
|
|
99403
|
+
color?: string | null;
|
|
99404
|
+
created_at?: string;
|
|
99405
|
+
hours_fri?: number | null;
|
|
99406
|
+
hours_mon?: number | null;
|
|
99407
|
+
hours_thu?: number | null;
|
|
99408
|
+
hours_tue?: number | null;
|
|
99409
|
+
hours_wed?: number | null;
|
|
99410
|
+
id?: string;
|
|
99411
|
+
is_active?: boolean;
|
|
99412
|
+
leave_balance_hours?: number;
|
|
99413
|
+
persnr?: string | null;
|
|
99414
|
+
phone?: string | null;
|
|
99415
|
+
profile_id?: string;
|
|
99416
|
+
updated_at?: string;
|
|
99417
|
+
};
|
|
99418
|
+
Relationships: [{
|
|
99419
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
99420
|
+
columns: ["profile_id"];
|
|
99421
|
+
isOneToOne: true;
|
|
99422
|
+
referencedRelation: "profiles";
|
|
99423
|
+
referencedColumns: ["id"];
|
|
99424
|
+
}];
|
|
99425
|
+
};
|
|
96845
99426
|
module_features: {
|
|
96846
99427
|
Row: {
|
|
96847
99428
|
created_at: string;
|
|
@@ -98135,6 +100716,8 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
98135
100716
|
orders: {
|
|
98136
100717
|
Row: {
|
|
98137
100718
|
buffer_id: string | null;
|
|
100719
|
+
cancel_reason: string | null;
|
|
100720
|
+
cancelled_at: string | null;
|
|
98138
100721
|
created_at: string;
|
|
98139
100722
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
98140
100723
|
customer_id: string | null;
|
|
@@ -98157,6 +100740,8 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
98157
100740
|
};
|
|
98158
100741
|
Insert: {
|
|
98159
100742
|
buffer_id?: string | null;
|
|
100743
|
+
cancel_reason?: string | null;
|
|
100744
|
+
cancelled_at?: string | null;
|
|
98160
100745
|
created_at?: string;
|
|
98161
100746
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
98162
100747
|
customer_id?: string | null;
|
|
@@ -98179,6 +100764,8 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
98179
100764
|
};
|
|
98180
100765
|
Update: {
|
|
98181
100766
|
buffer_id?: string | null;
|
|
100767
|
+
cancel_reason?: string | null;
|
|
100768
|
+
cancelled_at?: string | null;
|
|
98182
100769
|
created_at?: string;
|
|
98183
100770
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
98184
100771
|
customer_id?: string | null;
|
|
@@ -100241,6 +102828,66 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
100241
102828
|
};
|
|
100242
102829
|
Relationships: [];
|
|
100243
102830
|
};
|
|
102831
|
+
profile_modules: {
|
|
102832
|
+
Row: {
|
|
102833
|
+
created_at: string;
|
|
102834
|
+
id: string;
|
|
102835
|
+
module_id: string;
|
|
102836
|
+
profile_id: string;
|
|
102837
|
+
};
|
|
102838
|
+
Insert: {
|
|
102839
|
+
created_at?: string;
|
|
102840
|
+
id?: string;
|
|
102841
|
+
module_id: string;
|
|
102842
|
+
profile_id: string;
|
|
102843
|
+
};
|
|
102844
|
+
Update: {
|
|
102845
|
+
created_at?: string;
|
|
102846
|
+
id?: string;
|
|
102847
|
+
module_id?: string;
|
|
102848
|
+
profile_id?: string;
|
|
102849
|
+
};
|
|
102850
|
+
Relationships: [{
|
|
102851
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
102852
|
+
columns: ["profile_id"];
|
|
102853
|
+
isOneToOne: false;
|
|
102854
|
+
referencedRelation: "profiles_org";
|
|
102855
|
+
referencedColumns: ["id"];
|
|
102856
|
+
}];
|
|
102857
|
+
};
|
|
102858
|
+
profile_roles: {
|
|
102859
|
+
Row: {
|
|
102860
|
+
created_at: string;
|
|
102861
|
+
id: string;
|
|
102862
|
+
profile_id: string;
|
|
102863
|
+
role_id: string;
|
|
102864
|
+
};
|
|
102865
|
+
Insert: {
|
|
102866
|
+
created_at?: string;
|
|
102867
|
+
id?: string;
|
|
102868
|
+
profile_id: string;
|
|
102869
|
+
role_id: string;
|
|
102870
|
+
};
|
|
102871
|
+
Update: {
|
|
102872
|
+
created_at?: string;
|
|
102873
|
+
id?: string;
|
|
102874
|
+
profile_id?: string;
|
|
102875
|
+
role_id?: string;
|
|
102876
|
+
};
|
|
102877
|
+
Relationships: [{
|
|
102878
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
102879
|
+
columns: ["profile_id"];
|
|
102880
|
+
isOneToOne: false;
|
|
102881
|
+
referencedRelation: "profiles_org";
|
|
102882
|
+
referencedColumns: ["id"];
|
|
102883
|
+
}, {
|
|
102884
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
102885
|
+
columns: ["role_id"];
|
|
102886
|
+
isOneToOne: false;
|
|
102887
|
+
referencedRelation: "roles";
|
|
102888
|
+
referencedColumns: ["id"];
|
|
102889
|
+
}];
|
|
102890
|
+
};
|
|
100244
102891
|
profiles: {
|
|
100245
102892
|
Row: {
|
|
100246
102893
|
address: string | null;
|
|
@@ -100286,6 +102933,39 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
100286
102933
|
referencedColumns: ["id"];
|
|
100287
102934
|
}];
|
|
100288
102935
|
};
|
|
102936
|
+
profiles_org: {
|
|
102937
|
+
Row: {
|
|
102938
|
+
created_at: string;
|
|
102939
|
+
id: string;
|
|
102940
|
+
is_default: boolean;
|
|
102941
|
+
name: string;
|
|
102942
|
+
tenant_id: string | null;
|
|
102943
|
+
updated_at: string;
|
|
102944
|
+
};
|
|
102945
|
+
Insert: {
|
|
102946
|
+
created_at?: string;
|
|
102947
|
+
id?: string;
|
|
102948
|
+
is_default?: boolean;
|
|
102949
|
+
name: string;
|
|
102950
|
+
tenant_id?: string | null;
|
|
102951
|
+
updated_at?: string;
|
|
102952
|
+
};
|
|
102953
|
+
Update: {
|
|
102954
|
+
created_at?: string;
|
|
102955
|
+
id?: string;
|
|
102956
|
+
is_default?: boolean;
|
|
102957
|
+
name?: string;
|
|
102958
|
+
tenant_id?: string | null;
|
|
102959
|
+
updated_at?: string;
|
|
102960
|
+
};
|
|
102961
|
+
Relationships: [{
|
|
102962
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
102963
|
+
columns: ["tenant_id"];
|
|
102964
|
+
isOneToOne: false;
|
|
102965
|
+
referencedRelation: "tenants";
|
|
102966
|
+
referencedColumns: ["id"];
|
|
102967
|
+
}];
|
|
102968
|
+
};
|
|
100289
102969
|
projects: {
|
|
100290
102970
|
Row: {
|
|
100291
102971
|
contact_name: string | null;
|
|
@@ -101460,6 +104140,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
101460
104140
|
type: string;
|
|
101461
104141
|
updated_at: string;
|
|
101462
104142
|
vereist_medewerker: boolean;
|
|
104143
|
+
werkplek: string | null;
|
|
101463
104144
|
};
|
|
101464
104145
|
Insert: {
|
|
101465
104146
|
actief?: boolean;
|
|
@@ -101473,6 +104154,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
101473
104154
|
type?: string;
|
|
101474
104155
|
updated_at?: string;
|
|
101475
104156
|
vereist_medewerker?: boolean;
|
|
104157
|
+
werkplek?: string | null;
|
|
101476
104158
|
};
|
|
101477
104159
|
Update: {
|
|
101478
104160
|
actief?: boolean;
|
|
@@ -101486,9 +104168,46 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
101486
104168
|
type?: string;
|
|
101487
104169
|
updated_at?: string;
|
|
101488
104170
|
vereist_medewerker?: boolean;
|
|
104171
|
+
werkplek?: string | null;
|
|
101489
104172
|
};
|
|
101490
104173
|
Relationships: [];
|
|
101491
104174
|
};
|
|
104175
|
+
sick_periods: {
|
|
104176
|
+
Row: {
|
|
104177
|
+
created_at: string;
|
|
104178
|
+
employee_id: string;
|
|
104179
|
+
end_date: string | null;
|
|
104180
|
+
id: string;
|
|
104181
|
+
notes: string | null;
|
|
104182
|
+
start_date: string;
|
|
104183
|
+
updated_at: string;
|
|
104184
|
+
};
|
|
104185
|
+
Insert: {
|
|
104186
|
+
created_at?: string;
|
|
104187
|
+
employee_id: string;
|
|
104188
|
+
end_date?: string | null;
|
|
104189
|
+
id?: string;
|
|
104190
|
+
notes?: string | null;
|
|
104191
|
+
start_date: string;
|
|
104192
|
+
updated_at?: string;
|
|
104193
|
+
};
|
|
104194
|
+
Update: {
|
|
104195
|
+
created_at?: string;
|
|
104196
|
+
employee_id?: string;
|
|
104197
|
+
end_date?: string | null;
|
|
104198
|
+
id?: string;
|
|
104199
|
+
notes?: string | null;
|
|
104200
|
+
start_date?: string;
|
|
104201
|
+
updated_at?: string;
|
|
104202
|
+
};
|
|
104203
|
+
Relationships: [{
|
|
104204
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
104205
|
+
columns: ["employee_id"];
|
|
104206
|
+
isOneToOne: false;
|
|
104207
|
+
referencedRelation: "profiles";
|
|
104208
|
+
referencedColumns: ["id"];
|
|
104209
|
+
}];
|
|
104210
|
+
};
|
|
101492
104211
|
sidebar_config: {
|
|
101493
104212
|
Row: {
|
|
101494
104213
|
id: string;
|
|
@@ -106173,6 +108892,13 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
106173
108892
|
};
|
|
106174
108893
|
Returns: string;
|
|
106175
108894
|
};
|
|
108895
|
+
employee_day_hours: {
|
|
108896
|
+
Args: {
|
|
108897
|
+
_day: string;
|
|
108898
|
+
_employee_id: string;
|
|
108899
|
+
};
|
|
108900
|
+
Returns: number;
|
|
108901
|
+
};
|
|
106176
108902
|
enqueue_cart_replan_if_unlocked: {
|
|
106177
108903
|
Args: {
|
|
106178
108904
|
p_order_id: string;
|
|
@@ -106526,6 +109252,19 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
106526
109252
|
Args: never;
|
|
106527
109253
|
Returns: boolean;
|
|
106528
109254
|
};
|
|
109255
|
+
itk_offerte_naar_werkbon: {
|
|
109256
|
+
Args: {
|
|
109257
|
+
_offerte_id: string;
|
|
109258
|
+
};
|
|
109259
|
+
Returns: string;
|
|
109260
|
+
};
|
|
109261
|
+
itk_offerte_restant_mandaat: {
|
|
109262
|
+
Args: {
|
|
109263
|
+
_exclude_offerte_id?: string;
|
|
109264
|
+
_werkbon_id: string;
|
|
109265
|
+
};
|
|
109266
|
+
Returns: number;
|
|
109267
|
+
};
|
|
106529
109268
|
jwt_has_role: {
|
|
106530
109269
|
Args: {
|
|
106531
109270
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -106536,9 +109275,19 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
106536
109275
|
Args: never;
|
|
106537
109276
|
Returns: {
|
|
106538
109277
|
avatar_url: string;
|
|
109278
|
+
color: string;
|
|
106539
109279
|
display_name: string;
|
|
106540
109280
|
email: string;
|
|
109281
|
+
hours_fri: number;
|
|
109282
|
+
hours_mon: number;
|
|
109283
|
+
hours_thu: number;
|
|
109284
|
+
hours_tue: number;
|
|
109285
|
+
hours_wed: number;
|
|
106541
109286
|
id: string;
|
|
109287
|
+
is_active: boolean;
|
|
109288
|
+
leave_balance_hours: number;
|
|
109289
|
+
persnr: string;
|
|
109290
|
+
phone: string;
|
|
106542
109291
|
roles: string[];
|
|
106543
109292
|
}[];
|
|
106544
109293
|
};
|
|
@@ -106865,17 +109614,6 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
106865
109614
|
Returns: string;
|
|
106866
109615
|
};
|
|
106867
109616
|
logistics_emit_event: {
|
|
106868
|
-
Args: {
|
|
106869
|
-
p_event_type: string;
|
|
106870
|
-
p_idempotency_key?: string;
|
|
106871
|
-
p_order_ref: string;
|
|
106872
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
106873
|
-
p_shadow?: boolean;
|
|
106874
|
-
p_source_module: string;
|
|
106875
|
-
p_strategy_id?: string;
|
|
106876
|
-
};
|
|
106877
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
106878
|
-
} | {
|
|
106879
109617
|
Args: {
|
|
106880
109618
|
p_event_type: string;
|
|
106881
109619
|
p_idempotency_key?: string;
|
|
@@ -107720,6 +110458,37 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
107720
110458
|
};
|
|
107721
110459
|
Returns: undefined;
|
|
107722
110460
|
};
|
|
110461
|
+
quote_create_from_source: {
|
|
110462
|
+
Args: {
|
|
110463
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
110464
|
+
_source_id: string;
|
|
110465
|
+
_source_type: string;
|
|
110466
|
+
};
|
|
110467
|
+
Returns: string;
|
|
110468
|
+
};
|
|
110469
|
+
quote_get_billable_lines: {
|
|
110470
|
+
Args: {
|
|
110471
|
+
_quotation_id: string;
|
|
110472
|
+
};
|
|
110473
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
110474
|
+
};
|
|
110475
|
+
quote_get_summary: {
|
|
110476
|
+
Args: {
|
|
110477
|
+
_quotation_id: string;
|
|
110478
|
+
};
|
|
110479
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
110480
|
+
};
|
|
110481
|
+
quote_list_packages: {
|
|
110482
|
+
Args: never;
|
|
110483
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
110484
|
+
};
|
|
110485
|
+
quote_list_sources: {
|
|
110486
|
+
Args: {
|
|
110487
|
+
_limit?: number;
|
|
110488
|
+
_source_type?: string;
|
|
110489
|
+
};
|
|
110490
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
110491
|
+
};
|
|
107723
110492
|
recompute_all_reserved_stock: {
|
|
107724
110493
|
Args: never;
|
|
107725
110494
|
Returns: undefined;
|
|
@@ -108255,6 +111024,12 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
108255
111024
|
};
|
|
108256
111025
|
Returns: undefined;
|
|
108257
111026
|
};
|
|
111027
|
+
sync_sick_time_off: {
|
|
111028
|
+
Args: {
|
|
111029
|
+
_period_id: string;
|
|
111030
|
+
};
|
|
111031
|
+
Returns: number;
|
|
111032
|
+
};
|
|
108258
111033
|
trade_item_stock_duplicates: {
|
|
108259
111034
|
Args: never;
|
|
108260
111035
|
Returns: {
|
|
@@ -108328,11 +111103,31 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
|
|
|
108328
111103
|
Args: never;
|
|
108329
111104
|
Returns: string;
|
|
108330
111105
|
};
|
|
111106
|
+
wo_create_from_source: {
|
|
111107
|
+
Args: {
|
|
111108
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
111109
|
+
_source_id: string;
|
|
111110
|
+
_source_type: string;
|
|
111111
|
+
};
|
|
111112
|
+
Returns: string;
|
|
111113
|
+
};
|
|
111114
|
+
wo_get_billable_lines: {
|
|
111115
|
+
Args: {
|
|
111116
|
+
_work_order_id: string;
|
|
111117
|
+
};
|
|
111118
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
111119
|
+
};
|
|
111120
|
+
wo_get_summary: {
|
|
111121
|
+
Args: {
|
|
111122
|
+
_work_order_id: string;
|
|
111123
|
+
};
|
|
111124
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
111125
|
+
};
|
|
108331
111126
|
};
|
|
108332
111127
|
Enums: {
|
|
108333
111128
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
108334
111129
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
108335
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
111130
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
108336
111131
|
doc_orientation: "portrait" | "landscape";
|
|
108337
111132
|
exact_env: "staging" | "live";
|
|
108338
111133
|
exact_push_status: "pending" | "sent" | "error";
|