@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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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 acknowledgeSalesOrder: 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";
|
|
@@ -26704,6 +27263,42 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
26704
27263
|
};
|
|
26705
27264
|
Relationships: [];
|
|
26706
27265
|
};
|
|
27266
|
+
facturen: {
|
|
27267
|
+
Row: {
|
|
27268
|
+
bedrag_incl_btw: number;
|
|
27269
|
+
created_at: string;
|
|
27270
|
+
datum: string;
|
|
27271
|
+
factuurnummer: string;
|
|
27272
|
+
id: string;
|
|
27273
|
+
klantnaam: string;
|
|
27274
|
+
status: string;
|
|
27275
|
+
updated_at: string;
|
|
27276
|
+
user_id: string;
|
|
27277
|
+
};
|
|
27278
|
+
Insert: {
|
|
27279
|
+
bedrag_incl_btw: number;
|
|
27280
|
+
created_at?: string;
|
|
27281
|
+
datum?: string;
|
|
27282
|
+
factuurnummer: string;
|
|
27283
|
+
id?: string;
|
|
27284
|
+
klantnaam: string;
|
|
27285
|
+
status?: string;
|
|
27286
|
+
updated_at?: string;
|
|
27287
|
+
user_id?: string;
|
|
27288
|
+
};
|
|
27289
|
+
Update: {
|
|
27290
|
+
bedrag_incl_btw?: number;
|
|
27291
|
+
created_at?: string;
|
|
27292
|
+
datum?: string;
|
|
27293
|
+
factuurnummer?: string;
|
|
27294
|
+
id?: string;
|
|
27295
|
+
klantnaam?: string;
|
|
27296
|
+
status?: string;
|
|
27297
|
+
updated_at?: string;
|
|
27298
|
+
user_id?: string;
|
|
27299
|
+
};
|
|
27300
|
+
Relationships: [];
|
|
27301
|
+
};
|
|
26707
27302
|
floricode_connection_settings: {
|
|
26708
27303
|
Row: {
|
|
26709
27304
|
catalog_key: string | null;
|
|
@@ -29428,6 +30023,258 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
29428
30023
|
};
|
|
29429
30024
|
Relationships: [];
|
|
29430
30025
|
};
|
|
30026
|
+
itk_offerte_events: {
|
|
30027
|
+
Row: {
|
|
30028
|
+
created_at: string;
|
|
30029
|
+
event_type: string;
|
|
30030
|
+
id: string;
|
|
30031
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
30032
|
+
offerte_id: string;
|
|
30033
|
+
omschrijving: string | null;
|
|
30034
|
+
user_id: string | null;
|
|
30035
|
+
};
|
|
30036
|
+
Insert: {
|
|
30037
|
+
created_at?: string;
|
|
30038
|
+
event_type: string;
|
|
30039
|
+
id?: string;
|
|
30040
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30041
|
+
offerte_id: string;
|
|
30042
|
+
omschrijving?: string | null;
|
|
30043
|
+
user_id?: string | null;
|
|
30044
|
+
};
|
|
30045
|
+
Update: {
|
|
30046
|
+
created_at?: string;
|
|
30047
|
+
event_type?: string;
|
|
30048
|
+
id?: string;
|
|
30049
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30050
|
+
offerte_id?: string;
|
|
30051
|
+
omschrijving?: string | null;
|
|
30052
|
+
user_id?: string | null;
|
|
30053
|
+
};
|
|
30054
|
+
Relationships: [{
|
|
30055
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
30056
|
+
columns: ["offerte_id"];
|
|
30057
|
+
isOneToOne: false;
|
|
30058
|
+
referencedRelation: "itk_offertes";
|
|
30059
|
+
referencedColumns: ["id"];
|
|
30060
|
+
}];
|
|
30061
|
+
};
|
|
30062
|
+
itk_offerte_regels: {
|
|
30063
|
+
Row: {
|
|
30064
|
+
created_at: string;
|
|
30065
|
+
id: string;
|
|
30066
|
+
line_total_cents: number;
|
|
30067
|
+
offerte_id: string;
|
|
30068
|
+
omschrijving: string;
|
|
30069
|
+
package_id: string | null;
|
|
30070
|
+
quantity: number;
|
|
30071
|
+
sort_order: number;
|
|
30072
|
+
source: string;
|
|
30073
|
+
unit_price_cents: number;
|
|
30074
|
+
updated_at: string;
|
|
30075
|
+
};
|
|
30076
|
+
Insert: {
|
|
30077
|
+
created_at?: string;
|
|
30078
|
+
id?: string;
|
|
30079
|
+
line_total_cents?: number;
|
|
30080
|
+
offerte_id: string;
|
|
30081
|
+
omschrijving?: string;
|
|
30082
|
+
package_id?: string | null;
|
|
30083
|
+
quantity?: number;
|
|
30084
|
+
sort_order?: number;
|
|
30085
|
+
source?: string;
|
|
30086
|
+
unit_price_cents?: number;
|
|
30087
|
+
updated_at?: string;
|
|
30088
|
+
};
|
|
30089
|
+
Update: {
|
|
30090
|
+
created_at?: string;
|
|
30091
|
+
id?: string;
|
|
30092
|
+
line_total_cents?: number;
|
|
30093
|
+
offerte_id?: string;
|
|
30094
|
+
omschrijving?: string;
|
|
30095
|
+
package_id?: string | null;
|
|
30096
|
+
quantity?: number;
|
|
30097
|
+
sort_order?: number;
|
|
30098
|
+
source?: string;
|
|
30099
|
+
unit_price_cents?: number;
|
|
30100
|
+
updated_at?: string;
|
|
30101
|
+
};
|
|
30102
|
+
Relationships: [{
|
|
30103
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
30104
|
+
columns: ["offerte_id"];
|
|
30105
|
+
isOneToOne: false;
|
|
30106
|
+
referencedRelation: "itk_offertes";
|
|
30107
|
+
referencedColumns: ["id"];
|
|
30108
|
+
}, {
|
|
30109
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
30110
|
+
columns: ["package_id"];
|
|
30111
|
+
isOneToOne: false;
|
|
30112
|
+
referencedRelation: "werkbon_packages";
|
|
30113
|
+
referencedColumns: ["id"];
|
|
30114
|
+
}];
|
|
30115
|
+
};
|
|
30116
|
+
itk_offerte_settings: {
|
|
30117
|
+
Row: {
|
|
30118
|
+
auto_convert_binnen_mandaat: boolean;
|
|
30119
|
+
created_at: string;
|
|
30120
|
+
default_geldigheid_dagen: number;
|
|
30121
|
+
default_vat_rate: number;
|
|
30122
|
+
id: string;
|
|
30123
|
+
singleton: boolean;
|
|
30124
|
+
updated_at: string;
|
|
30125
|
+
};
|
|
30126
|
+
Insert: {
|
|
30127
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30128
|
+
created_at?: string;
|
|
30129
|
+
default_geldigheid_dagen?: number;
|
|
30130
|
+
default_vat_rate?: number;
|
|
30131
|
+
id?: string;
|
|
30132
|
+
singleton?: boolean;
|
|
30133
|
+
updated_at?: string;
|
|
30134
|
+
};
|
|
30135
|
+
Update: {
|
|
30136
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30137
|
+
created_at?: string;
|
|
30138
|
+
default_geldigheid_dagen?: number;
|
|
30139
|
+
default_vat_rate?: number;
|
|
30140
|
+
id?: string;
|
|
30141
|
+
singleton?: boolean;
|
|
30142
|
+
updated_at?: string;
|
|
30143
|
+
};
|
|
30144
|
+
Relationships: [];
|
|
30145
|
+
};
|
|
30146
|
+
itk_offertes: {
|
|
30147
|
+
Row: {
|
|
30148
|
+
ai_generated: boolean;
|
|
30149
|
+
approved_at: string | null;
|
|
30150
|
+
binnen_mandaat: boolean;
|
|
30151
|
+
contact_id: string | null;
|
|
30152
|
+
converted_at: string | null;
|
|
30153
|
+
created_at: string;
|
|
30154
|
+
created_by: string | null;
|
|
30155
|
+
customer_id: string | null;
|
|
30156
|
+
follow_up_werkbon_id: string | null;
|
|
30157
|
+
id: string;
|
|
30158
|
+
jaar: number;
|
|
30159
|
+
mandaat_restant_cents: number;
|
|
30160
|
+
notities: string | null;
|
|
30161
|
+
offerte_number: string | null;
|
|
30162
|
+
omschrijving: string;
|
|
30163
|
+
rejected_at: string | null;
|
|
30164
|
+
sent_at: string | null;
|
|
30165
|
+
source_number: string | null;
|
|
30166
|
+
source_ref: string | null;
|
|
30167
|
+
source_type: string;
|
|
30168
|
+
status: string;
|
|
30169
|
+
subtotal_cents: number;
|
|
30170
|
+
total_cents: number;
|
|
30171
|
+
updated_at: string;
|
|
30172
|
+
valid_until: string | null;
|
|
30173
|
+
vat_cents: number;
|
|
30174
|
+
vat_rate: number;
|
|
30175
|
+
viewed_at: string | null;
|
|
30176
|
+
volgnummer: number | null;
|
|
30177
|
+
werkbon_id: string | null;
|
|
30178
|
+
work_location_id: string | null;
|
|
30179
|
+
};
|
|
30180
|
+
Insert: {
|
|
30181
|
+
ai_generated?: boolean;
|
|
30182
|
+
approved_at?: string | null;
|
|
30183
|
+
binnen_mandaat?: boolean;
|
|
30184
|
+
contact_id?: string | null;
|
|
30185
|
+
converted_at?: string | null;
|
|
30186
|
+
created_at?: string;
|
|
30187
|
+
created_by?: string | null;
|
|
30188
|
+
customer_id?: string | null;
|
|
30189
|
+
follow_up_werkbon_id?: string | null;
|
|
30190
|
+
id?: string;
|
|
30191
|
+
jaar?: number;
|
|
30192
|
+
mandaat_restant_cents?: number;
|
|
30193
|
+
notities?: string | null;
|
|
30194
|
+
offerte_number?: string | null;
|
|
30195
|
+
omschrijving?: string;
|
|
30196
|
+
rejected_at?: string | null;
|
|
30197
|
+
sent_at?: string | null;
|
|
30198
|
+
source_number?: string | null;
|
|
30199
|
+
source_ref?: string | null;
|
|
30200
|
+
source_type?: string;
|
|
30201
|
+
status?: string;
|
|
30202
|
+
subtotal_cents?: number;
|
|
30203
|
+
total_cents?: number;
|
|
30204
|
+
updated_at?: string;
|
|
30205
|
+
valid_until?: string | null;
|
|
30206
|
+
vat_cents?: number;
|
|
30207
|
+
vat_rate?: number;
|
|
30208
|
+
viewed_at?: string | null;
|
|
30209
|
+
volgnummer?: number | null;
|
|
30210
|
+
werkbon_id?: string | null;
|
|
30211
|
+
work_location_id?: string | null;
|
|
30212
|
+
};
|
|
30213
|
+
Update: {
|
|
30214
|
+
ai_generated?: boolean;
|
|
30215
|
+
approved_at?: string | null;
|
|
30216
|
+
binnen_mandaat?: boolean;
|
|
30217
|
+
contact_id?: string | null;
|
|
30218
|
+
converted_at?: string | null;
|
|
30219
|
+
created_at?: string;
|
|
30220
|
+
created_by?: string | null;
|
|
30221
|
+
customer_id?: string | null;
|
|
30222
|
+
follow_up_werkbon_id?: string | null;
|
|
30223
|
+
id?: string;
|
|
30224
|
+
jaar?: number;
|
|
30225
|
+
mandaat_restant_cents?: number;
|
|
30226
|
+
notities?: string | null;
|
|
30227
|
+
offerte_number?: string | null;
|
|
30228
|
+
omschrijving?: string;
|
|
30229
|
+
rejected_at?: string | null;
|
|
30230
|
+
sent_at?: string | null;
|
|
30231
|
+
source_number?: string | null;
|
|
30232
|
+
source_ref?: string | null;
|
|
30233
|
+
source_type?: string;
|
|
30234
|
+
status?: string;
|
|
30235
|
+
subtotal_cents?: number;
|
|
30236
|
+
total_cents?: number;
|
|
30237
|
+
updated_at?: string;
|
|
30238
|
+
valid_until?: string | null;
|
|
30239
|
+
vat_cents?: number;
|
|
30240
|
+
vat_rate?: number;
|
|
30241
|
+
viewed_at?: string | null;
|
|
30242
|
+
volgnummer?: number | null;
|
|
30243
|
+
werkbon_id?: string | null;
|
|
30244
|
+
work_location_id?: string | null;
|
|
30245
|
+
};
|
|
30246
|
+
Relationships: [{
|
|
30247
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
30248
|
+
columns: ["contact_id"];
|
|
30249
|
+
isOneToOne: false;
|
|
30250
|
+
referencedRelation: "itk_contact_persons";
|
|
30251
|
+
referencedColumns: ["id"];
|
|
30252
|
+
}, {
|
|
30253
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
30254
|
+
columns: ["customer_id"];
|
|
30255
|
+
isOneToOne: false;
|
|
30256
|
+
referencedRelation: "itk_customers";
|
|
30257
|
+
referencedColumns: ["id"];
|
|
30258
|
+
}, {
|
|
30259
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
30260
|
+
columns: ["follow_up_werkbon_id"];
|
|
30261
|
+
isOneToOne: false;
|
|
30262
|
+
referencedRelation: "werkbonnen";
|
|
30263
|
+
referencedColumns: ["id"];
|
|
30264
|
+
}, {
|
|
30265
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
30266
|
+
columns: ["werkbon_id"];
|
|
30267
|
+
isOneToOne: false;
|
|
30268
|
+
referencedRelation: "werkbonnen";
|
|
30269
|
+
referencedColumns: ["id"];
|
|
30270
|
+
}, {
|
|
30271
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
30272
|
+
columns: ["work_location_id"];
|
|
30273
|
+
isOneToOne: false;
|
|
30274
|
+
referencedRelation: "itk_work_locations";
|
|
30275
|
+
referencedColumns: ["id"];
|
|
30276
|
+
}];
|
|
30277
|
+
};
|
|
29431
30278
|
itk_work_locations: {
|
|
29432
30279
|
Row: {
|
|
29433
30280
|
city: string | null;
|
|
@@ -31801,6 +32648,63 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
31801
32648
|
referencedColumns: ["id"];
|
|
31802
32649
|
}];
|
|
31803
32650
|
};
|
|
32651
|
+
medewerker_details: {
|
|
32652
|
+
Row: {
|
|
32653
|
+
color: string | null;
|
|
32654
|
+
created_at: string;
|
|
32655
|
+
hours_fri: number | null;
|
|
32656
|
+
hours_mon: number | null;
|
|
32657
|
+
hours_thu: number | null;
|
|
32658
|
+
hours_tue: number | null;
|
|
32659
|
+
hours_wed: number | null;
|
|
32660
|
+
id: string;
|
|
32661
|
+
is_active: boolean;
|
|
32662
|
+
leave_balance_hours: number;
|
|
32663
|
+
persnr: string | null;
|
|
32664
|
+
phone: string | null;
|
|
32665
|
+
profile_id: string;
|
|
32666
|
+
updated_at: string;
|
|
32667
|
+
};
|
|
32668
|
+
Insert: {
|
|
32669
|
+
color?: string | null;
|
|
32670
|
+
created_at?: string;
|
|
32671
|
+
hours_fri?: number | null;
|
|
32672
|
+
hours_mon?: number | null;
|
|
32673
|
+
hours_thu?: number | null;
|
|
32674
|
+
hours_tue?: number | null;
|
|
32675
|
+
hours_wed?: number | null;
|
|
32676
|
+
id?: string;
|
|
32677
|
+
is_active?: boolean;
|
|
32678
|
+
leave_balance_hours?: number;
|
|
32679
|
+
persnr?: string | null;
|
|
32680
|
+
phone?: string | null;
|
|
32681
|
+
profile_id: string;
|
|
32682
|
+
updated_at?: string;
|
|
32683
|
+
};
|
|
32684
|
+
Update: {
|
|
32685
|
+
color?: string | null;
|
|
32686
|
+
created_at?: string;
|
|
32687
|
+
hours_fri?: number | null;
|
|
32688
|
+
hours_mon?: number | null;
|
|
32689
|
+
hours_thu?: number | null;
|
|
32690
|
+
hours_tue?: number | null;
|
|
32691
|
+
hours_wed?: number | null;
|
|
32692
|
+
id?: string;
|
|
32693
|
+
is_active?: boolean;
|
|
32694
|
+
leave_balance_hours?: number;
|
|
32695
|
+
persnr?: string | null;
|
|
32696
|
+
phone?: string | null;
|
|
32697
|
+
profile_id?: string;
|
|
32698
|
+
updated_at?: string;
|
|
32699
|
+
};
|
|
32700
|
+
Relationships: [{
|
|
32701
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
32702
|
+
columns: ["profile_id"];
|
|
32703
|
+
isOneToOne: true;
|
|
32704
|
+
referencedRelation: "profiles";
|
|
32705
|
+
referencedColumns: ["id"];
|
|
32706
|
+
}];
|
|
32707
|
+
};
|
|
31804
32708
|
module_features: {
|
|
31805
32709
|
Row: {
|
|
31806
32710
|
created_at: string;
|
|
@@ -33094,6 +33998,8 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
33094
33998
|
orders: {
|
|
33095
33999
|
Row: {
|
|
33096
34000
|
buffer_id: string | null;
|
|
34001
|
+
cancel_reason: string | null;
|
|
34002
|
+
cancelled_at: string | null;
|
|
33097
34003
|
created_at: string;
|
|
33098
34004
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
33099
34005
|
customer_id: string | null;
|
|
@@ -33116,6 +34022,8 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
33116
34022
|
};
|
|
33117
34023
|
Insert: {
|
|
33118
34024
|
buffer_id?: string | null;
|
|
34025
|
+
cancel_reason?: string | null;
|
|
34026
|
+
cancelled_at?: string | null;
|
|
33119
34027
|
created_at?: string;
|
|
33120
34028
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33121
34029
|
customer_id?: string | null;
|
|
@@ -33138,6 +34046,8 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
33138
34046
|
};
|
|
33139
34047
|
Update: {
|
|
33140
34048
|
buffer_id?: string | null;
|
|
34049
|
+
cancel_reason?: string | null;
|
|
34050
|
+
cancelled_at?: string | null;
|
|
33141
34051
|
created_at?: string;
|
|
33142
34052
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33143
34053
|
customer_id?: string | null;
|
|
@@ -35200,6 +36110,66 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
35200
36110
|
};
|
|
35201
36111
|
Relationships: [];
|
|
35202
36112
|
};
|
|
36113
|
+
profile_modules: {
|
|
36114
|
+
Row: {
|
|
36115
|
+
created_at: string;
|
|
36116
|
+
id: string;
|
|
36117
|
+
module_id: string;
|
|
36118
|
+
profile_id: string;
|
|
36119
|
+
};
|
|
36120
|
+
Insert: {
|
|
36121
|
+
created_at?: string;
|
|
36122
|
+
id?: string;
|
|
36123
|
+
module_id: string;
|
|
36124
|
+
profile_id: string;
|
|
36125
|
+
};
|
|
36126
|
+
Update: {
|
|
36127
|
+
created_at?: string;
|
|
36128
|
+
id?: string;
|
|
36129
|
+
module_id?: string;
|
|
36130
|
+
profile_id?: string;
|
|
36131
|
+
};
|
|
36132
|
+
Relationships: [{
|
|
36133
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
36134
|
+
columns: ["profile_id"];
|
|
36135
|
+
isOneToOne: false;
|
|
36136
|
+
referencedRelation: "profiles_org";
|
|
36137
|
+
referencedColumns: ["id"];
|
|
36138
|
+
}];
|
|
36139
|
+
};
|
|
36140
|
+
profile_roles: {
|
|
36141
|
+
Row: {
|
|
36142
|
+
created_at: string;
|
|
36143
|
+
id: string;
|
|
36144
|
+
profile_id: string;
|
|
36145
|
+
role_id: string;
|
|
36146
|
+
};
|
|
36147
|
+
Insert: {
|
|
36148
|
+
created_at?: string;
|
|
36149
|
+
id?: string;
|
|
36150
|
+
profile_id: string;
|
|
36151
|
+
role_id: string;
|
|
36152
|
+
};
|
|
36153
|
+
Update: {
|
|
36154
|
+
created_at?: string;
|
|
36155
|
+
id?: string;
|
|
36156
|
+
profile_id?: string;
|
|
36157
|
+
role_id?: string;
|
|
36158
|
+
};
|
|
36159
|
+
Relationships: [{
|
|
36160
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
36161
|
+
columns: ["profile_id"];
|
|
36162
|
+
isOneToOne: false;
|
|
36163
|
+
referencedRelation: "profiles_org";
|
|
36164
|
+
referencedColumns: ["id"];
|
|
36165
|
+
}, {
|
|
36166
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
36167
|
+
columns: ["role_id"];
|
|
36168
|
+
isOneToOne: false;
|
|
36169
|
+
referencedRelation: "roles";
|
|
36170
|
+
referencedColumns: ["id"];
|
|
36171
|
+
}];
|
|
36172
|
+
};
|
|
35203
36173
|
profiles: {
|
|
35204
36174
|
Row: {
|
|
35205
36175
|
address: string | null;
|
|
@@ -35245,6 +36215,39 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
35245
36215
|
referencedColumns: ["id"];
|
|
35246
36216
|
}];
|
|
35247
36217
|
};
|
|
36218
|
+
profiles_org: {
|
|
36219
|
+
Row: {
|
|
36220
|
+
created_at: string;
|
|
36221
|
+
id: string;
|
|
36222
|
+
is_default: boolean;
|
|
36223
|
+
name: string;
|
|
36224
|
+
tenant_id: string | null;
|
|
36225
|
+
updated_at: string;
|
|
36226
|
+
};
|
|
36227
|
+
Insert: {
|
|
36228
|
+
created_at?: string;
|
|
36229
|
+
id?: string;
|
|
36230
|
+
is_default?: boolean;
|
|
36231
|
+
name: string;
|
|
36232
|
+
tenant_id?: string | null;
|
|
36233
|
+
updated_at?: string;
|
|
36234
|
+
};
|
|
36235
|
+
Update: {
|
|
36236
|
+
created_at?: string;
|
|
36237
|
+
id?: string;
|
|
36238
|
+
is_default?: boolean;
|
|
36239
|
+
name?: string;
|
|
36240
|
+
tenant_id?: string | null;
|
|
36241
|
+
updated_at?: string;
|
|
36242
|
+
};
|
|
36243
|
+
Relationships: [{
|
|
36244
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
36245
|
+
columns: ["tenant_id"];
|
|
36246
|
+
isOneToOne: false;
|
|
36247
|
+
referencedRelation: "tenants";
|
|
36248
|
+
referencedColumns: ["id"];
|
|
36249
|
+
}];
|
|
36250
|
+
};
|
|
35248
36251
|
projects: {
|
|
35249
36252
|
Row: {
|
|
35250
36253
|
contact_name: string | null;
|
|
@@ -36419,6 +37422,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
36419
37422
|
type: string;
|
|
36420
37423
|
updated_at: string;
|
|
36421
37424
|
vereist_medewerker: boolean;
|
|
37425
|
+
werkplek: string | null;
|
|
36422
37426
|
};
|
|
36423
37427
|
Insert: {
|
|
36424
37428
|
actief?: boolean;
|
|
@@ -36432,6 +37436,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
36432
37436
|
type?: string;
|
|
36433
37437
|
updated_at?: string;
|
|
36434
37438
|
vereist_medewerker?: boolean;
|
|
37439
|
+
werkplek?: string | null;
|
|
36435
37440
|
};
|
|
36436
37441
|
Update: {
|
|
36437
37442
|
actief?: boolean;
|
|
@@ -36445,9 +37450,46 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
36445
37450
|
type?: string;
|
|
36446
37451
|
updated_at?: string;
|
|
36447
37452
|
vereist_medewerker?: boolean;
|
|
37453
|
+
werkplek?: string | null;
|
|
36448
37454
|
};
|
|
36449
37455
|
Relationships: [];
|
|
36450
37456
|
};
|
|
37457
|
+
sick_periods: {
|
|
37458
|
+
Row: {
|
|
37459
|
+
created_at: string;
|
|
37460
|
+
employee_id: string;
|
|
37461
|
+
end_date: string | null;
|
|
37462
|
+
id: string;
|
|
37463
|
+
notes: string | null;
|
|
37464
|
+
start_date: string;
|
|
37465
|
+
updated_at: string;
|
|
37466
|
+
};
|
|
37467
|
+
Insert: {
|
|
37468
|
+
created_at?: string;
|
|
37469
|
+
employee_id: string;
|
|
37470
|
+
end_date?: string | null;
|
|
37471
|
+
id?: string;
|
|
37472
|
+
notes?: string | null;
|
|
37473
|
+
start_date: string;
|
|
37474
|
+
updated_at?: string;
|
|
37475
|
+
};
|
|
37476
|
+
Update: {
|
|
37477
|
+
created_at?: string;
|
|
37478
|
+
employee_id?: string;
|
|
37479
|
+
end_date?: string | null;
|
|
37480
|
+
id?: string;
|
|
37481
|
+
notes?: string | null;
|
|
37482
|
+
start_date?: string;
|
|
37483
|
+
updated_at?: string;
|
|
37484
|
+
};
|
|
37485
|
+
Relationships: [{
|
|
37486
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
37487
|
+
columns: ["employee_id"];
|
|
37488
|
+
isOneToOne: false;
|
|
37489
|
+
referencedRelation: "profiles";
|
|
37490
|
+
referencedColumns: ["id"];
|
|
37491
|
+
}];
|
|
37492
|
+
};
|
|
36451
37493
|
sidebar_config: {
|
|
36452
37494
|
Row: {
|
|
36453
37495
|
id: string;
|
|
@@ -41132,6 +42174,13 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
41132
42174
|
};
|
|
41133
42175
|
Returns: string;
|
|
41134
42176
|
};
|
|
42177
|
+
employee_day_hours: {
|
|
42178
|
+
Args: {
|
|
42179
|
+
_day: string;
|
|
42180
|
+
_employee_id: string;
|
|
42181
|
+
};
|
|
42182
|
+
Returns: number;
|
|
42183
|
+
};
|
|
41135
42184
|
enqueue_cart_replan_if_unlocked: {
|
|
41136
42185
|
Args: {
|
|
41137
42186
|
p_order_id: string;
|
|
@@ -41485,6 +42534,19 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
41485
42534
|
Args: never;
|
|
41486
42535
|
Returns: boolean;
|
|
41487
42536
|
};
|
|
42537
|
+
itk_offerte_naar_werkbon: {
|
|
42538
|
+
Args: {
|
|
42539
|
+
_offerte_id: string;
|
|
42540
|
+
};
|
|
42541
|
+
Returns: string;
|
|
42542
|
+
};
|
|
42543
|
+
itk_offerte_restant_mandaat: {
|
|
42544
|
+
Args: {
|
|
42545
|
+
_exclude_offerte_id?: string;
|
|
42546
|
+
_werkbon_id: string;
|
|
42547
|
+
};
|
|
42548
|
+
Returns: number;
|
|
42549
|
+
};
|
|
41488
42550
|
jwt_has_role: {
|
|
41489
42551
|
Args: {
|
|
41490
42552
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -41495,9 +42557,19 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
41495
42557
|
Args: never;
|
|
41496
42558
|
Returns: {
|
|
41497
42559
|
avatar_url: string;
|
|
42560
|
+
color: string;
|
|
41498
42561
|
display_name: string;
|
|
41499
42562
|
email: string;
|
|
42563
|
+
hours_fri: number;
|
|
42564
|
+
hours_mon: number;
|
|
42565
|
+
hours_thu: number;
|
|
42566
|
+
hours_tue: number;
|
|
42567
|
+
hours_wed: number;
|
|
41500
42568
|
id: string;
|
|
42569
|
+
is_active: boolean;
|
|
42570
|
+
leave_balance_hours: number;
|
|
42571
|
+
persnr: string;
|
|
42572
|
+
phone: string;
|
|
41501
42573
|
roles: string[];
|
|
41502
42574
|
}[];
|
|
41503
42575
|
};
|
|
@@ -41824,17 +42896,6 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
41824
42896
|
Returns: string;
|
|
41825
42897
|
};
|
|
41826
42898
|
logistics_emit_event: {
|
|
41827
|
-
Args: {
|
|
41828
|
-
p_event_type: string;
|
|
41829
|
-
p_idempotency_key?: string;
|
|
41830
|
-
p_order_ref: string;
|
|
41831
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
41832
|
-
p_shadow?: boolean;
|
|
41833
|
-
p_source_module: string;
|
|
41834
|
-
p_strategy_id?: string;
|
|
41835
|
-
};
|
|
41836
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
41837
|
-
} | {
|
|
41838
42899
|
Args: {
|
|
41839
42900
|
p_event_type: string;
|
|
41840
42901
|
p_idempotency_key?: string;
|
|
@@ -42679,6 +43740,37 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
42679
43740
|
};
|
|
42680
43741
|
Returns: undefined;
|
|
42681
43742
|
};
|
|
43743
|
+
quote_create_from_source: {
|
|
43744
|
+
Args: {
|
|
43745
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
43746
|
+
_source_id: string;
|
|
43747
|
+
_source_type: string;
|
|
43748
|
+
};
|
|
43749
|
+
Returns: string;
|
|
43750
|
+
};
|
|
43751
|
+
quote_get_billable_lines: {
|
|
43752
|
+
Args: {
|
|
43753
|
+
_quotation_id: string;
|
|
43754
|
+
};
|
|
43755
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43756
|
+
};
|
|
43757
|
+
quote_get_summary: {
|
|
43758
|
+
Args: {
|
|
43759
|
+
_quotation_id: string;
|
|
43760
|
+
};
|
|
43761
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43762
|
+
};
|
|
43763
|
+
quote_list_packages: {
|
|
43764
|
+
Args: never;
|
|
43765
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43766
|
+
};
|
|
43767
|
+
quote_list_sources: {
|
|
43768
|
+
Args: {
|
|
43769
|
+
_limit?: number;
|
|
43770
|
+
_source_type?: string;
|
|
43771
|
+
};
|
|
43772
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43773
|
+
};
|
|
42682
43774
|
recompute_all_reserved_stock: {
|
|
42683
43775
|
Args: never;
|
|
42684
43776
|
Returns: undefined;
|
|
@@ -43214,6 +44306,12 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
43214
44306
|
};
|
|
43215
44307
|
Returns: undefined;
|
|
43216
44308
|
};
|
|
44309
|
+
sync_sick_time_off: {
|
|
44310
|
+
Args: {
|
|
44311
|
+
_period_id: string;
|
|
44312
|
+
};
|
|
44313
|
+
Returns: number;
|
|
44314
|
+
};
|
|
43217
44315
|
trade_item_stock_duplicates: {
|
|
43218
44316
|
Args: never;
|
|
43219
44317
|
Returns: {
|
|
@@ -43287,11 +44385,31 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
43287
44385
|
Args: never;
|
|
43288
44386
|
Returns: string;
|
|
43289
44387
|
};
|
|
44388
|
+
wo_create_from_source: {
|
|
44389
|
+
Args: {
|
|
44390
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
44391
|
+
_source_id: string;
|
|
44392
|
+
_source_type: string;
|
|
44393
|
+
};
|
|
44394
|
+
Returns: string;
|
|
44395
|
+
};
|
|
44396
|
+
wo_get_billable_lines: {
|
|
44397
|
+
Args: {
|
|
44398
|
+
_work_order_id: string;
|
|
44399
|
+
};
|
|
44400
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44401
|
+
};
|
|
44402
|
+
wo_get_summary: {
|
|
44403
|
+
Args: {
|
|
44404
|
+
_work_order_id: string;
|
|
44405
|
+
};
|
|
44406
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44407
|
+
};
|
|
43290
44408
|
};
|
|
43291
44409
|
Enums: {
|
|
43292
44410
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
43293
44411
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
43294
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
44412
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
43295
44413
|
doc_orientation: "portrait" | "landscape";
|
|
43296
44414
|
exact_env: "staging" | "live";
|
|
43297
44415
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -48360,6 +49478,42 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
48360
49478
|
};
|
|
48361
49479
|
Relationships: [];
|
|
48362
49480
|
};
|
|
49481
|
+
facturen: {
|
|
49482
|
+
Row: {
|
|
49483
|
+
bedrag_incl_btw: number;
|
|
49484
|
+
created_at: string;
|
|
49485
|
+
datum: string;
|
|
49486
|
+
factuurnummer: string;
|
|
49487
|
+
id: string;
|
|
49488
|
+
klantnaam: string;
|
|
49489
|
+
status: string;
|
|
49490
|
+
updated_at: string;
|
|
49491
|
+
user_id: string;
|
|
49492
|
+
};
|
|
49493
|
+
Insert: {
|
|
49494
|
+
bedrag_incl_btw: number;
|
|
49495
|
+
created_at?: string;
|
|
49496
|
+
datum?: string;
|
|
49497
|
+
factuurnummer: string;
|
|
49498
|
+
id?: string;
|
|
49499
|
+
klantnaam: string;
|
|
49500
|
+
status?: string;
|
|
49501
|
+
updated_at?: string;
|
|
49502
|
+
user_id?: string;
|
|
49503
|
+
};
|
|
49504
|
+
Update: {
|
|
49505
|
+
bedrag_incl_btw?: number;
|
|
49506
|
+
created_at?: string;
|
|
49507
|
+
datum?: string;
|
|
49508
|
+
factuurnummer?: string;
|
|
49509
|
+
id?: string;
|
|
49510
|
+
klantnaam?: string;
|
|
49511
|
+
status?: string;
|
|
49512
|
+
updated_at?: string;
|
|
49513
|
+
user_id?: string;
|
|
49514
|
+
};
|
|
49515
|
+
Relationships: [];
|
|
49516
|
+
};
|
|
48363
49517
|
floricode_connection_settings: {
|
|
48364
49518
|
Row: {
|
|
48365
49519
|
catalog_key: string | null;
|
|
@@ -51084,6 +52238,258 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
51084
52238
|
};
|
|
51085
52239
|
Relationships: [];
|
|
51086
52240
|
};
|
|
52241
|
+
itk_offerte_events: {
|
|
52242
|
+
Row: {
|
|
52243
|
+
created_at: string;
|
|
52244
|
+
event_type: string;
|
|
52245
|
+
id: string;
|
|
52246
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
52247
|
+
offerte_id: string;
|
|
52248
|
+
omschrijving: string | null;
|
|
52249
|
+
user_id: string | null;
|
|
52250
|
+
};
|
|
52251
|
+
Insert: {
|
|
52252
|
+
created_at?: string;
|
|
52253
|
+
event_type: string;
|
|
52254
|
+
id?: string;
|
|
52255
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52256
|
+
offerte_id: string;
|
|
52257
|
+
omschrijving?: string | null;
|
|
52258
|
+
user_id?: string | null;
|
|
52259
|
+
};
|
|
52260
|
+
Update: {
|
|
52261
|
+
created_at?: string;
|
|
52262
|
+
event_type?: string;
|
|
52263
|
+
id?: string;
|
|
52264
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52265
|
+
offerte_id?: string;
|
|
52266
|
+
omschrijving?: string | null;
|
|
52267
|
+
user_id?: string | null;
|
|
52268
|
+
};
|
|
52269
|
+
Relationships: [{
|
|
52270
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
52271
|
+
columns: ["offerte_id"];
|
|
52272
|
+
isOneToOne: false;
|
|
52273
|
+
referencedRelation: "itk_offertes";
|
|
52274
|
+
referencedColumns: ["id"];
|
|
52275
|
+
}];
|
|
52276
|
+
};
|
|
52277
|
+
itk_offerte_regels: {
|
|
52278
|
+
Row: {
|
|
52279
|
+
created_at: string;
|
|
52280
|
+
id: string;
|
|
52281
|
+
line_total_cents: number;
|
|
52282
|
+
offerte_id: string;
|
|
52283
|
+
omschrijving: string;
|
|
52284
|
+
package_id: string | null;
|
|
52285
|
+
quantity: number;
|
|
52286
|
+
sort_order: number;
|
|
52287
|
+
source: string;
|
|
52288
|
+
unit_price_cents: number;
|
|
52289
|
+
updated_at: string;
|
|
52290
|
+
};
|
|
52291
|
+
Insert: {
|
|
52292
|
+
created_at?: string;
|
|
52293
|
+
id?: string;
|
|
52294
|
+
line_total_cents?: number;
|
|
52295
|
+
offerte_id: string;
|
|
52296
|
+
omschrijving?: string;
|
|
52297
|
+
package_id?: string | null;
|
|
52298
|
+
quantity?: number;
|
|
52299
|
+
sort_order?: number;
|
|
52300
|
+
source?: string;
|
|
52301
|
+
unit_price_cents?: number;
|
|
52302
|
+
updated_at?: string;
|
|
52303
|
+
};
|
|
52304
|
+
Update: {
|
|
52305
|
+
created_at?: string;
|
|
52306
|
+
id?: string;
|
|
52307
|
+
line_total_cents?: number;
|
|
52308
|
+
offerte_id?: string;
|
|
52309
|
+
omschrijving?: string;
|
|
52310
|
+
package_id?: string | null;
|
|
52311
|
+
quantity?: number;
|
|
52312
|
+
sort_order?: number;
|
|
52313
|
+
source?: string;
|
|
52314
|
+
unit_price_cents?: number;
|
|
52315
|
+
updated_at?: string;
|
|
52316
|
+
};
|
|
52317
|
+
Relationships: [{
|
|
52318
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
52319
|
+
columns: ["offerte_id"];
|
|
52320
|
+
isOneToOne: false;
|
|
52321
|
+
referencedRelation: "itk_offertes";
|
|
52322
|
+
referencedColumns: ["id"];
|
|
52323
|
+
}, {
|
|
52324
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
52325
|
+
columns: ["package_id"];
|
|
52326
|
+
isOneToOne: false;
|
|
52327
|
+
referencedRelation: "werkbon_packages";
|
|
52328
|
+
referencedColumns: ["id"];
|
|
52329
|
+
}];
|
|
52330
|
+
};
|
|
52331
|
+
itk_offerte_settings: {
|
|
52332
|
+
Row: {
|
|
52333
|
+
auto_convert_binnen_mandaat: boolean;
|
|
52334
|
+
created_at: string;
|
|
52335
|
+
default_geldigheid_dagen: number;
|
|
52336
|
+
default_vat_rate: number;
|
|
52337
|
+
id: string;
|
|
52338
|
+
singleton: boolean;
|
|
52339
|
+
updated_at: string;
|
|
52340
|
+
};
|
|
52341
|
+
Insert: {
|
|
52342
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52343
|
+
created_at?: string;
|
|
52344
|
+
default_geldigheid_dagen?: number;
|
|
52345
|
+
default_vat_rate?: number;
|
|
52346
|
+
id?: string;
|
|
52347
|
+
singleton?: boolean;
|
|
52348
|
+
updated_at?: string;
|
|
52349
|
+
};
|
|
52350
|
+
Update: {
|
|
52351
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52352
|
+
created_at?: string;
|
|
52353
|
+
default_geldigheid_dagen?: number;
|
|
52354
|
+
default_vat_rate?: number;
|
|
52355
|
+
id?: string;
|
|
52356
|
+
singleton?: boolean;
|
|
52357
|
+
updated_at?: string;
|
|
52358
|
+
};
|
|
52359
|
+
Relationships: [];
|
|
52360
|
+
};
|
|
52361
|
+
itk_offertes: {
|
|
52362
|
+
Row: {
|
|
52363
|
+
ai_generated: boolean;
|
|
52364
|
+
approved_at: string | null;
|
|
52365
|
+
binnen_mandaat: boolean;
|
|
52366
|
+
contact_id: string | null;
|
|
52367
|
+
converted_at: string | null;
|
|
52368
|
+
created_at: string;
|
|
52369
|
+
created_by: string | null;
|
|
52370
|
+
customer_id: string | null;
|
|
52371
|
+
follow_up_werkbon_id: string | null;
|
|
52372
|
+
id: string;
|
|
52373
|
+
jaar: number;
|
|
52374
|
+
mandaat_restant_cents: number;
|
|
52375
|
+
notities: string | null;
|
|
52376
|
+
offerte_number: string | null;
|
|
52377
|
+
omschrijving: string;
|
|
52378
|
+
rejected_at: string | null;
|
|
52379
|
+
sent_at: string | null;
|
|
52380
|
+
source_number: string | null;
|
|
52381
|
+
source_ref: string | null;
|
|
52382
|
+
source_type: string;
|
|
52383
|
+
status: string;
|
|
52384
|
+
subtotal_cents: number;
|
|
52385
|
+
total_cents: number;
|
|
52386
|
+
updated_at: string;
|
|
52387
|
+
valid_until: string | null;
|
|
52388
|
+
vat_cents: number;
|
|
52389
|
+
vat_rate: number;
|
|
52390
|
+
viewed_at: string | null;
|
|
52391
|
+
volgnummer: number | null;
|
|
52392
|
+
werkbon_id: string | null;
|
|
52393
|
+
work_location_id: string | null;
|
|
52394
|
+
};
|
|
52395
|
+
Insert: {
|
|
52396
|
+
ai_generated?: boolean;
|
|
52397
|
+
approved_at?: string | null;
|
|
52398
|
+
binnen_mandaat?: boolean;
|
|
52399
|
+
contact_id?: string | null;
|
|
52400
|
+
converted_at?: string | null;
|
|
52401
|
+
created_at?: string;
|
|
52402
|
+
created_by?: string | null;
|
|
52403
|
+
customer_id?: string | null;
|
|
52404
|
+
follow_up_werkbon_id?: string | null;
|
|
52405
|
+
id?: string;
|
|
52406
|
+
jaar?: number;
|
|
52407
|
+
mandaat_restant_cents?: number;
|
|
52408
|
+
notities?: string | null;
|
|
52409
|
+
offerte_number?: string | null;
|
|
52410
|
+
omschrijving?: string;
|
|
52411
|
+
rejected_at?: string | null;
|
|
52412
|
+
sent_at?: string | null;
|
|
52413
|
+
source_number?: string | null;
|
|
52414
|
+
source_ref?: string | null;
|
|
52415
|
+
source_type?: string;
|
|
52416
|
+
status?: string;
|
|
52417
|
+
subtotal_cents?: number;
|
|
52418
|
+
total_cents?: number;
|
|
52419
|
+
updated_at?: string;
|
|
52420
|
+
valid_until?: string | null;
|
|
52421
|
+
vat_cents?: number;
|
|
52422
|
+
vat_rate?: number;
|
|
52423
|
+
viewed_at?: string | null;
|
|
52424
|
+
volgnummer?: number | null;
|
|
52425
|
+
werkbon_id?: string | null;
|
|
52426
|
+
work_location_id?: string | null;
|
|
52427
|
+
};
|
|
52428
|
+
Update: {
|
|
52429
|
+
ai_generated?: boolean;
|
|
52430
|
+
approved_at?: string | null;
|
|
52431
|
+
binnen_mandaat?: boolean;
|
|
52432
|
+
contact_id?: string | null;
|
|
52433
|
+
converted_at?: string | null;
|
|
52434
|
+
created_at?: string;
|
|
52435
|
+
created_by?: string | null;
|
|
52436
|
+
customer_id?: string | null;
|
|
52437
|
+
follow_up_werkbon_id?: string | null;
|
|
52438
|
+
id?: string;
|
|
52439
|
+
jaar?: number;
|
|
52440
|
+
mandaat_restant_cents?: number;
|
|
52441
|
+
notities?: string | null;
|
|
52442
|
+
offerte_number?: string | null;
|
|
52443
|
+
omschrijving?: string;
|
|
52444
|
+
rejected_at?: string | null;
|
|
52445
|
+
sent_at?: string | null;
|
|
52446
|
+
source_number?: string | null;
|
|
52447
|
+
source_ref?: string | null;
|
|
52448
|
+
source_type?: string;
|
|
52449
|
+
status?: string;
|
|
52450
|
+
subtotal_cents?: number;
|
|
52451
|
+
total_cents?: number;
|
|
52452
|
+
updated_at?: string;
|
|
52453
|
+
valid_until?: string | null;
|
|
52454
|
+
vat_cents?: number;
|
|
52455
|
+
vat_rate?: number;
|
|
52456
|
+
viewed_at?: string | null;
|
|
52457
|
+
volgnummer?: number | null;
|
|
52458
|
+
werkbon_id?: string | null;
|
|
52459
|
+
work_location_id?: string | null;
|
|
52460
|
+
};
|
|
52461
|
+
Relationships: [{
|
|
52462
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
52463
|
+
columns: ["contact_id"];
|
|
52464
|
+
isOneToOne: false;
|
|
52465
|
+
referencedRelation: "itk_contact_persons";
|
|
52466
|
+
referencedColumns: ["id"];
|
|
52467
|
+
}, {
|
|
52468
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
52469
|
+
columns: ["customer_id"];
|
|
52470
|
+
isOneToOne: false;
|
|
52471
|
+
referencedRelation: "itk_customers";
|
|
52472
|
+
referencedColumns: ["id"];
|
|
52473
|
+
}, {
|
|
52474
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
52475
|
+
columns: ["follow_up_werkbon_id"];
|
|
52476
|
+
isOneToOne: false;
|
|
52477
|
+
referencedRelation: "werkbonnen";
|
|
52478
|
+
referencedColumns: ["id"];
|
|
52479
|
+
}, {
|
|
52480
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
52481
|
+
columns: ["werkbon_id"];
|
|
52482
|
+
isOneToOne: false;
|
|
52483
|
+
referencedRelation: "werkbonnen";
|
|
52484
|
+
referencedColumns: ["id"];
|
|
52485
|
+
}, {
|
|
52486
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
52487
|
+
columns: ["work_location_id"];
|
|
52488
|
+
isOneToOne: false;
|
|
52489
|
+
referencedRelation: "itk_work_locations";
|
|
52490
|
+
referencedColumns: ["id"];
|
|
52491
|
+
}];
|
|
52492
|
+
};
|
|
51087
52493
|
itk_work_locations: {
|
|
51088
52494
|
Row: {
|
|
51089
52495
|
city: string | null;
|
|
@@ -53457,6 +54863,63 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
53457
54863
|
referencedColumns: ["id"];
|
|
53458
54864
|
}];
|
|
53459
54865
|
};
|
|
54866
|
+
medewerker_details: {
|
|
54867
|
+
Row: {
|
|
54868
|
+
color: string | null;
|
|
54869
|
+
created_at: string;
|
|
54870
|
+
hours_fri: number | null;
|
|
54871
|
+
hours_mon: number | null;
|
|
54872
|
+
hours_thu: number | null;
|
|
54873
|
+
hours_tue: number | null;
|
|
54874
|
+
hours_wed: number | null;
|
|
54875
|
+
id: string;
|
|
54876
|
+
is_active: boolean;
|
|
54877
|
+
leave_balance_hours: number;
|
|
54878
|
+
persnr: string | null;
|
|
54879
|
+
phone: string | null;
|
|
54880
|
+
profile_id: string;
|
|
54881
|
+
updated_at: string;
|
|
54882
|
+
};
|
|
54883
|
+
Insert: {
|
|
54884
|
+
color?: string | null;
|
|
54885
|
+
created_at?: string;
|
|
54886
|
+
hours_fri?: number | null;
|
|
54887
|
+
hours_mon?: number | null;
|
|
54888
|
+
hours_thu?: number | null;
|
|
54889
|
+
hours_tue?: number | null;
|
|
54890
|
+
hours_wed?: number | null;
|
|
54891
|
+
id?: string;
|
|
54892
|
+
is_active?: boolean;
|
|
54893
|
+
leave_balance_hours?: number;
|
|
54894
|
+
persnr?: string | null;
|
|
54895
|
+
phone?: string | null;
|
|
54896
|
+
profile_id: string;
|
|
54897
|
+
updated_at?: string;
|
|
54898
|
+
};
|
|
54899
|
+
Update: {
|
|
54900
|
+
color?: string | null;
|
|
54901
|
+
created_at?: string;
|
|
54902
|
+
hours_fri?: number | null;
|
|
54903
|
+
hours_mon?: number | null;
|
|
54904
|
+
hours_thu?: number | null;
|
|
54905
|
+
hours_tue?: number | null;
|
|
54906
|
+
hours_wed?: number | null;
|
|
54907
|
+
id?: string;
|
|
54908
|
+
is_active?: boolean;
|
|
54909
|
+
leave_balance_hours?: number;
|
|
54910
|
+
persnr?: string | null;
|
|
54911
|
+
phone?: string | null;
|
|
54912
|
+
profile_id?: string;
|
|
54913
|
+
updated_at?: string;
|
|
54914
|
+
};
|
|
54915
|
+
Relationships: [{
|
|
54916
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
54917
|
+
columns: ["profile_id"];
|
|
54918
|
+
isOneToOne: true;
|
|
54919
|
+
referencedRelation: "profiles";
|
|
54920
|
+
referencedColumns: ["id"];
|
|
54921
|
+
}];
|
|
54922
|
+
};
|
|
53460
54923
|
module_features: {
|
|
53461
54924
|
Row: {
|
|
53462
54925
|
created_at: string;
|
|
@@ -54750,6 +56213,8 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
54750
56213
|
orders: {
|
|
54751
56214
|
Row: {
|
|
54752
56215
|
buffer_id: string | null;
|
|
56216
|
+
cancel_reason: string | null;
|
|
56217
|
+
cancelled_at: string | null;
|
|
54753
56218
|
created_at: string;
|
|
54754
56219
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
54755
56220
|
customer_id: string | null;
|
|
@@ -54772,6 +56237,8 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
54772
56237
|
};
|
|
54773
56238
|
Insert: {
|
|
54774
56239
|
buffer_id?: string | null;
|
|
56240
|
+
cancel_reason?: string | null;
|
|
56241
|
+
cancelled_at?: string | null;
|
|
54775
56242
|
created_at?: string;
|
|
54776
56243
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54777
56244
|
customer_id?: string | null;
|
|
@@ -54794,6 +56261,8 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
54794
56261
|
};
|
|
54795
56262
|
Update: {
|
|
54796
56263
|
buffer_id?: string | null;
|
|
56264
|
+
cancel_reason?: string | null;
|
|
56265
|
+
cancelled_at?: string | null;
|
|
54797
56266
|
created_at?: string;
|
|
54798
56267
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54799
56268
|
customer_id?: string | null;
|
|
@@ -56856,6 +58325,66 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
56856
58325
|
};
|
|
56857
58326
|
Relationships: [];
|
|
56858
58327
|
};
|
|
58328
|
+
profile_modules: {
|
|
58329
|
+
Row: {
|
|
58330
|
+
created_at: string;
|
|
58331
|
+
id: string;
|
|
58332
|
+
module_id: string;
|
|
58333
|
+
profile_id: string;
|
|
58334
|
+
};
|
|
58335
|
+
Insert: {
|
|
58336
|
+
created_at?: string;
|
|
58337
|
+
id?: string;
|
|
58338
|
+
module_id: string;
|
|
58339
|
+
profile_id: string;
|
|
58340
|
+
};
|
|
58341
|
+
Update: {
|
|
58342
|
+
created_at?: string;
|
|
58343
|
+
id?: string;
|
|
58344
|
+
module_id?: string;
|
|
58345
|
+
profile_id?: string;
|
|
58346
|
+
};
|
|
58347
|
+
Relationships: [{
|
|
58348
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
58349
|
+
columns: ["profile_id"];
|
|
58350
|
+
isOneToOne: false;
|
|
58351
|
+
referencedRelation: "profiles_org";
|
|
58352
|
+
referencedColumns: ["id"];
|
|
58353
|
+
}];
|
|
58354
|
+
};
|
|
58355
|
+
profile_roles: {
|
|
58356
|
+
Row: {
|
|
58357
|
+
created_at: string;
|
|
58358
|
+
id: string;
|
|
58359
|
+
profile_id: string;
|
|
58360
|
+
role_id: string;
|
|
58361
|
+
};
|
|
58362
|
+
Insert: {
|
|
58363
|
+
created_at?: string;
|
|
58364
|
+
id?: string;
|
|
58365
|
+
profile_id: string;
|
|
58366
|
+
role_id: string;
|
|
58367
|
+
};
|
|
58368
|
+
Update: {
|
|
58369
|
+
created_at?: string;
|
|
58370
|
+
id?: string;
|
|
58371
|
+
profile_id?: string;
|
|
58372
|
+
role_id?: string;
|
|
58373
|
+
};
|
|
58374
|
+
Relationships: [{
|
|
58375
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
58376
|
+
columns: ["profile_id"];
|
|
58377
|
+
isOneToOne: false;
|
|
58378
|
+
referencedRelation: "profiles_org";
|
|
58379
|
+
referencedColumns: ["id"];
|
|
58380
|
+
}, {
|
|
58381
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
58382
|
+
columns: ["role_id"];
|
|
58383
|
+
isOneToOne: false;
|
|
58384
|
+
referencedRelation: "roles";
|
|
58385
|
+
referencedColumns: ["id"];
|
|
58386
|
+
}];
|
|
58387
|
+
};
|
|
56859
58388
|
profiles: {
|
|
56860
58389
|
Row: {
|
|
56861
58390
|
address: string | null;
|
|
@@ -56901,6 +58430,39 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
56901
58430
|
referencedColumns: ["id"];
|
|
56902
58431
|
}];
|
|
56903
58432
|
};
|
|
58433
|
+
profiles_org: {
|
|
58434
|
+
Row: {
|
|
58435
|
+
created_at: string;
|
|
58436
|
+
id: string;
|
|
58437
|
+
is_default: boolean;
|
|
58438
|
+
name: string;
|
|
58439
|
+
tenant_id: string | null;
|
|
58440
|
+
updated_at: string;
|
|
58441
|
+
};
|
|
58442
|
+
Insert: {
|
|
58443
|
+
created_at?: string;
|
|
58444
|
+
id?: string;
|
|
58445
|
+
is_default?: boolean;
|
|
58446
|
+
name: string;
|
|
58447
|
+
tenant_id?: string | null;
|
|
58448
|
+
updated_at?: string;
|
|
58449
|
+
};
|
|
58450
|
+
Update: {
|
|
58451
|
+
created_at?: string;
|
|
58452
|
+
id?: string;
|
|
58453
|
+
is_default?: boolean;
|
|
58454
|
+
name?: string;
|
|
58455
|
+
tenant_id?: string | null;
|
|
58456
|
+
updated_at?: string;
|
|
58457
|
+
};
|
|
58458
|
+
Relationships: [{
|
|
58459
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
58460
|
+
columns: ["tenant_id"];
|
|
58461
|
+
isOneToOne: false;
|
|
58462
|
+
referencedRelation: "tenants";
|
|
58463
|
+
referencedColumns: ["id"];
|
|
58464
|
+
}];
|
|
58465
|
+
};
|
|
56904
58466
|
projects: {
|
|
56905
58467
|
Row: {
|
|
56906
58468
|
contact_name: string | null;
|
|
@@ -58075,6 +59637,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
58075
59637
|
type: string;
|
|
58076
59638
|
updated_at: string;
|
|
58077
59639
|
vereist_medewerker: boolean;
|
|
59640
|
+
werkplek: string | null;
|
|
58078
59641
|
};
|
|
58079
59642
|
Insert: {
|
|
58080
59643
|
actief?: boolean;
|
|
@@ -58088,6 +59651,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
58088
59651
|
type?: string;
|
|
58089
59652
|
updated_at?: string;
|
|
58090
59653
|
vereist_medewerker?: boolean;
|
|
59654
|
+
werkplek?: string | null;
|
|
58091
59655
|
};
|
|
58092
59656
|
Update: {
|
|
58093
59657
|
actief?: boolean;
|
|
@@ -58101,9 +59665,46 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
58101
59665
|
type?: string;
|
|
58102
59666
|
updated_at?: string;
|
|
58103
59667
|
vereist_medewerker?: boolean;
|
|
59668
|
+
werkplek?: string | null;
|
|
58104
59669
|
};
|
|
58105
59670
|
Relationships: [];
|
|
58106
59671
|
};
|
|
59672
|
+
sick_periods: {
|
|
59673
|
+
Row: {
|
|
59674
|
+
created_at: string;
|
|
59675
|
+
employee_id: string;
|
|
59676
|
+
end_date: string | null;
|
|
59677
|
+
id: string;
|
|
59678
|
+
notes: string | null;
|
|
59679
|
+
start_date: string;
|
|
59680
|
+
updated_at: string;
|
|
59681
|
+
};
|
|
59682
|
+
Insert: {
|
|
59683
|
+
created_at?: string;
|
|
59684
|
+
employee_id: string;
|
|
59685
|
+
end_date?: string | null;
|
|
59686
|
+
id?: string;
|
|
59687
|
+
notes?: string | null;
|
|
59688
|
+
start_date: string;
|
|
59689
|
+
updated_at?: string;
|
|
59690
|
+
};
|
|
59691
|
+
Update: {
|
|
59692
|
+
created_at?: string;
|
|
59693
|
+
employee_id?: string;
|
|
59694
|
+
end_date?: string | null;
|
|
59695
|
+
id?: string;
|
|
59696
|
+
notes?: string | null;
|
|
59697
|
+
start_date?: string;
|
|
59698
|
+
updated_at?: string;
|
|
59699
|
+
};
|
|
59700
|
+
Relationships: [{
|
|
59701
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
59702
|
+
columns: ["employee_id"];
|
|
59703
|
+
isOneToOne: false;
|
|
59704
|
+
referencedRelation: "profiles";
|
|
59705
|
+
referencedColumns: ["id"];
|
|
59706
|
+
}];
|
|
59707
|
+
};
|
|
58107
59708
|
sidebar_config: {
|
|
58108
59709
|
Row: {
|
|
58109
59710
|
id: string;
|
|
@@ -62788,6 +64389,13 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
62788
64389
|
};
|
|
62789
64390
|
Returns: string;
|
|
62790
64391
|
};
|
|
64392
|
+
employee_day_hours: {
|
|
64393
|
+
Args: {
|
|
64394
|
+
_day: string;
|
|
64395
|
+
_employee_id: string;
|
|
64396
|
+
};
|
|
64397
|
+
Returns: number;
|
|
64398
|
+
};
|
|
62791
64399
|
enqueue_cart_replan_if_unlocked: {
|
|
62792
64400
|
Args: {
|
|
62793
64401
|
p_order_id: string;
|
|
@@ -63141,6 +64749,19 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
63141
64749
|
Args: never;
|
|
63142
64750
|
Returns: boolean;
|
|
63143
64751
|
};
|
|
64752
|
+
itk_offerte_naar_werkbon: {
|
|
64753
|
+
Args: {
|
|
64754
|
+
_offerte_id: string;
|
|
64755
|
+
};
|
|
64756
|
+
Returns: string;
|
|
64757
|
+
};
|
|
64758
|
+
itk_offerte_restant_mandaat: {
|
|
64759
|
+
Args: {
|
|
64760
|
+
_exclude_offerte_id?: string;
|
|
64761
|
+
_werkbon_id: string;
|
|
64762
|
+
};
|
|
64763
|
+
Returns: number;
|
|
64764
|
+
};
|
|
63144
64765
|
jwt_has_role: {
|
|
63145
64766
|
Args: {
|
|
63146
64767
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -63151,9 +64772,19 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
63151
64772
|
Args: never;
|
|
63152
64773
|
Returns: {
|
|
63153
64774
|
avatar_url: string;
|
|
64775
|
+
color: string;
|
|
63154
64776
|
display_name: string;
|
|
63155
64777
|
email: string;
|
|
64778
|
+
hours_fri: number;
|
|
64779
|
+
hours_mon: number;
|
|
64780
|
+
hours_thu: number;
|
|
64781
|
+
hours_tue: number;
|
|
64782
|
+
hours_wed: number;
|
|
63156
64783
|
id: string;
|
|
64784
|
+
is_active: boolean;
|
|
64785
|
+
leave_balance_hours: number;
|
|
64786
|
+
persnr: string;
|
|
64787
|
+
phone: string;
|
|
63157
64788
|
roles: string[];
|
|
63158
64789
|
}[];
|
|
63159
64790
|
};
|
|
@@ -63480,17 +65111,6 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
63480
65111
|
Returns: string;
|
|
63481
65112
|
};
|
|
63482
65113
|
logistics_emit_event: {
|
|
63483
|
-
Args: {
|
|
63484
|
-
p_event_type: string;
|
|
63485
|
-
p_idempotency_key?: string;
|
|
63486
|
-
p_order_ref: string;
|
|
63487
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
63488
|
-
p_shadow?: boolean;
|
|
63489
|
-
p_source_module: string;
|
|
63490
|
-
p_strategy_id?: string;
|
|
63491
|
-
};
|
|
63492
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
63493
|
-
} | {
|
|
63494
65114
|
Args: {
|
|
63495
65115
|
p_event_type: string;
|
|
63496
65116
|
p_idempotency_key?: string;
|
|
@@ -64335,6 +65955,37 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
64335
65955
|
};
|
|
64336
65956
|
Returns: undefined;
|
|
64337
65957
|
};
|
|
65958
|
+
quote_create_from_source: {
|
|
65959
|
+
Args: {
|
|
65960
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
65961
|
+
_source_id: string;
|
|
65962
|
+
_source_type: string;
|
|
65963
|
+
};
|
|
65964
|
+
Returns: string;
|
|
65965
|
+
};
|
|
65966
|
+
quote_get_billable_lines: {
|
|
65967
|
+
Args: {
|
|
65968
|
+
_quotation_id: string;
|
|
65969
|
+
};
|
|
65970
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65971
|
+
};
|
|
65972
|
+
quote_get_summary: {
|
|
65973
|
+
Args: {
|
|
65974
|
+
_quotation_id: string;
|
|
65975
|
+
};
|
|
65976
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65977
|
+
};
|
|
65978
|
+
quote_list_packages: {
|
|
65979
|
+
Args: never;
|
|
65980
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65981
|
+
};
|
|
65982
|
+
quote_list_sources: {
|
|
65983
|
+
Args: {
|
|
65984
|
+
_limit?: number;
|
|
65985
|
+
_source_type?: string;
|
|
65986
|
+
};
|
|
65987
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65988
|
+
};
|
|
64338
65989
|
recompute_all_reserved_stock: {
|
|
64339
65990
|
Args: never;
|
|
64340
65991
|
Returns: undefined;
|
|
@@ -64870,6 +66521,12 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
64870
66521
|
};
|
|
64871
66522
|
Returns: undefined;
|
|
64872
66523
|
};
|
|
66524
|
+
sync_sick_time_off: {
|
|
66525
|
+
Args: {
|
|
66526
|
+
_period_id: string;
|
|
66527
|
+
};
|
|
66528
|
+
Returns: number;
|
|
66529
|
+
};
|
|
64873
66530
|
trade_item_stock_duplicates: {
|
|
64874
66531
|
Args: never;
|
|
64875
66532
|
Returns: {
|
|
@@ -64943,11 +66600,31 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
64943
66600
|
Args: never;
|
|
64944
66601
|
Returns: string;
|
|
64945
66602
|
};
|
|
66603
|
+
wo_create_from_source: {
|
|
66604
|
+
Args: {
|
|
66605
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
66606
|
+
_source_id: string;
|
|
66607
|
+
_source_type: string;
|
|
66608
|
+
};
|
|
66609
|
+
Returns: string;
|
|
66610
|
+
};
|
|
66611
|
+
wo_get_billable_lines: {
|
|
66612
|
+
Args: {
|
|
66613
|
+
_work_order_id: string;
|
|
66614
|
+
};
|
|
66615
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66616
|
+
};
|
|
66617
|
+
wo_get_summary: {
|
|
66618
|
+
Args: {
|
|
66619
|
+
_work_order_id: string;
|
|
66620
|
+
};
|
|
66621
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66622
|
+
};
|
|
64946
66623
|
};
|
|
64947
66624
|
Enums: {
|
|
64948
66625
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
64949
66626
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
64950
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
66627
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
64951
66628
|
doc_orientation: "portrait" | "landscape";
|
|
64952
66629
|
exact_env: "staging" | "live";
|
|
64953
66630
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -70019,6 +71696,42 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
70019
71696
|
};
|
|
70020
71697
|
Relationships: [];
|
|
70021
71698
|
};
|
|
71699
|
+
facturen: {
|
|
71700
|
+
Row: {
|
|
71701
|
+
bedrag_incl_btw: number;
|
|
71702
|
+
created_at: string;
|
|
71703
|
+
datum: string;
|
|
71704
|
+
factuurnummer: string;
|
|
71705
|
+
id: string;
|
|
71706
|
+
klantnaam: string;
|
|
71707
|
+
status: string;
|
|
71708
|
+
updated_at: string;
|
|
71709
|
+
user_id: string;
|
|
71710
|
+
};
|
|
71711
|
+
Insert: {
|
|
71712
|
+
bedrag_incl_btw: number;
|
|
71713
|
+
created_at?: string;
|
|
71714
|
+
datum?: string;
|
|
71715
|
+
factuurnummer: string;
|
|
71716
|
+
id?: string;
|
|
71717
|
+
klantnaam: string;
|
|
71718
|
+
status?: string;
|
|
71719
|
+
updated_at?: string;
|
|
71720
|
+
user_id?: string;
|
|
71721
|
+
};
|
|
71722
|
+
Update: {
|
|
71723
|
+
bedrag_incl_btw?: number;
|
|
71724
|
+
created_at?: string;
|
|
71725
|
+
datum?: string;
|
|
71726
|
+
factuurnummer?: string;
|
|
71727
|
+
id?: string;
|
|
71728
|
+
klantnaam?: string;
|
|
71729
|
+
status?: string;
|
|
71730
|
+
updated_at?: string;
|
|
71731
|
+
user_id?: string;
|
|
71732
|
+
};
|
|
71733
|
+
Relationships: [];
|
|
71734
|
+
};
|
|
70022
71735
|
floricode_connection_settings: {
|
|
70023
71736
|
Row: {
|
|
70024
71737
|
catalog_key: string | null;
|
|
@@ -72743,6 +74456,258 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
72743
74456
|
};
|
|
72744
74457
|
Relationships: [];
|
|
72745
74458
|
};
|
|
74459
|
+
itk_offerte_events: {
|
|
74460
|
+
Row: {
|
|
74461
|
+
created_at: string;
|
|
74462
|
+
event_type: string;
|
|
74463
|
+
id: string;
|
|
74464
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
74465
|
+
offerte_id: string;
|
|
74466
|
+
omschrijving: string | null;
|
|
74467
|
+
user_id: string | null;
|
|
74468
|
+
};
|
|
74469
|
+
Insert: {
|
|
74470
|
+
created_at?: string;
|
|
74471
|
+
event_type: string;
|
|
74472
|
+
id?: string;
|
|
74473
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
74474
|
+
offerte_id: string;
|
|
74475
|
+
omschrijving?: string | null;
|
|
74476
|
+
user_id?: string | null;
|
|
74477
|
+
};
|
|
74478
|
+
Update: {
|
|
74479
|
+
created_at?: string;
|
|
74480
|
+
event_type?: string;
|
|
74481
|
+
id?: string;
|
|
74482
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
74483
|
+
offerte_id?: string;
|
|
74484
|
+
omschrijving?: string | null;
|
|
74485
|
+
user_id?: string | null;
|
|
74486
|
+
};
|
|
74487
|
+
Relationships: [{
|
|
74488
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
74489
|
+
columns: ["offerte_id"];
|
|
74490
|
+
isOneToOne: false;
|
|
74491
|
+
referencedRelation: "itk_offertes";
|
|
74492
|
+
referencedColumns: ["id"];
|
|
74493
|
+
}];
|
|
74494
|
+
};
|
|
74495
|
+
itk_offerte_regels: {
|
|
74496
|
+
Row: {
|
|
74497
|
+
created_at: string;
|
|
74498
|
+
id: string;
|
|
74499
|
+
line_total_cents: number;
|
|
74500
|
+
offerte_id: string;
|
|
74501
|
+
omschrijving: string;
|
|
74502
|
+
package_id: string | null;
|
|
74503
|
+
quantity: number;
|
|
74504
|
+
sort_order: number;
|
|
74505
|
+
source: string;
|
|
74506
|
+
unit_price_cents: number;
|
|
74507
|
+
updated_at: string;
|
|
74508
|
+
};
|
|
74509
|
+
Insert: {
|
|
74510
|
+
created_at?: string;
|
|
74511
|
+
id?: string;
|
|
74512
|
+
line_total_cents?: number;
|
|
74513
|
+
offerte_id: string;
|
|
74514
|
+
omschrijving?: string;
|
|
74515
|
+
package_id?: string | null;
|
|
74516
|
+
quantity?: number;
|
|
74517
|
+
sort_order?: number;
|
|
74518
|
+
source?: string;
|
|
74519
|
+
unit_price_cents?: number;
|
|
74520
|
+
updated_at?: string;
|
|
74521
|
+
};
|
|
74522
|
+
Update: {
|
|
74523
|
+
created_at?: string;
|
|
74524
|
+
id?: string;
|
|
74525
|
+
line_total_cents?: number;
|
|
74526
|
+
offerte_id?: string;
|
|
74527
|
+
omschrijving?: string;
|
|
74528
|
+
package_id?: string | null;
|
|
74529
|
+
quantity?: number;
|
|
74530
|
+
sort_order?: number;
|
|
74531
|
+
source?: string;
|
|
74532
|
+
unit_price_cents?: number;
|
|
74533
|
+
updated_at?: string;
|
|
74534
|
+
};
|
|
74535
|
+
Relationships: [{
|
|
74536
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
74537
|
+
columns: ["offerte_id"];
|
|
74538
|
+
isOneToOne: false;
|
|
74539
|
+
referencedRelation: "itk_offertes";
|
|
74540
|
+
referencedColumns: ["id"];
|
|
74541
|
+
}, {
|
|
74542
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
74543
|
+
columns: ["package_id"];
|
|
74544
|
+
isOneToOne: false;
|
|
74545
|
+
referencedRelation: "werkbon_packages";
|
|
74546
|
+
referencedColumns: ["id"];
|
|
74547
|
+
}];
|
|
74548
|
+
};
|
|
74549
|
+
itk_offerte_settings: {
|
|
74550
|
+
Row: {
|
|
74551
|
+
auto_convert_binnen_mandaat: boolean;
|
|
74552
|
+
created_at: string;
|
|
74553
|
+
default_geldigheid_dagen: number;
|
|
74554
|
+
default_vat_rate: number;
|
|
74555
|
+
id: string;
|
|
74556
|
+
singleton: boolean;
|
|
74557
|
+
updated_at: string;
|
|
74558
|
+
};
|
|
74559
|
+
Insert: {
|
|
74560
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
74561
|
+
created_at?: string;
|
|
74562
|
+
default_geldigheid_dagen?: number;
|
|
74563
|
+
default_vat_rate?: number;
|
|
74564
|
+
id?: string;
|
|
74565
|
+
singleton?: boolean;
|
|
74566
|
+
updated_at?: string;
|
|
74567
|
+
};
|
|
74568
|
+
Update: {
|
|
74569
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
74570
|
+
created_at?: string;
|
|
74571
|
+
default_geldigheid_dagen?: number;
|
|
74572
|
+
default_vat_rate?: number;
|
|
74573
|
+
id?: string;
|
|
74574
|
+
singleton?: boolean;
|
|
74575
|
+
updated_at?: string;
|
|
74576
|
+
};
|
|
74577
|
+
Relationships: [];
|
|
74578
|
+
};
|
|
74579
|
+
itk_offertes: {
|
|
74580
|
+
Row: {
|
|
74581
|
+
ai_generated: boolean;
|
|
74582
|
+
approved_at: string | null;
|
|
74583
|
+
binnen_mandaat: boolean;
|
|
74584
|
+
contact_id: string | null;
|
|
74585
|
+
converted_at: string | null;
|
|
74586
|
+
created_at: string;
|
|
74587
|
+
created_by: string | null;
|
|
74588
|
+
customer_id: string | null;
|
|
74589
|
+
follow_up_werkbon_id: string | null;
|
|
74590
|
+
id: string;
|
|
74591
|
+
jaar: number;
|
|
74592
|
+
mandaat_restant_cents: number;
|
|
74593
|
+
notities: string | null;
|
|
74594
|
+
offerte_number: string | null;
|
|
74595
|
+
omschrijving: string;
|
|
74596
|
+
rejected_at: string | null;
|
|
74597
|
+
sent_at: string | null;
|
|
74598
|
+
source_number: string | null;
|
|
74599
|
+
source_ref: string | null;
|
|
74600
|
+
source_type: string;
|
|
74601
|
+
status: string;
|
|
74602
|
+
subtotal_cents: number;
|
|
74603
|
+
total_cents: number;
|
|
74604
|
+
updated_at: string;
|
|
74605
|
+
valid_until: string | null;
|
|
74606
|
+
vat_cents: number;
|
|
74607
|
+
vat_rate: number;
|
|
74608
|
+
viewed_at: string | null;
|
|
74609
|
+
volgnummer: number | null;
|
|
74610
|
+
werkbon_id: string | null;
|
|
74611
|
+
work_location_id: string | null;
|
|
74612
|
+
};
|
|
74613
|
+
Insert: {
|
|
74614
|
+
ai_generated?: boolean;
|
|
74615
|
+
approved_at?: string | null;
|
|
74616
|
+
binnen_mandaat?: boolean;
|
|
74617
|
+
contact_id?: string | null;
|
|
74618
|
+
converted_at?: string | null;
|
|
74619
|
+
created_at?: string;
|
|
74620
|
+
created_by?: string | null;
|
|
74621
|
+
customer_id?: string | null;
|
|
74622
|
+
follow_up_werkbon_id?: string | null;
|
|
74623
|
+
id?: string;
|
|
74624
|
+
jaar?: number;
|
|
74625
|
+
mandaat_restant_cents?: number;
|
|
74626
|
+
notities?: string | null;
|
|
74627
|
+
offerte_number?: string | null;
|
|
74628
|
+
omschrijving?: string;
|
|
74629
|
+
rejected_at?: string | null;
|
|
74630
|
+
sent_at?: string | null;
|
|
74631
|
+
source_number?: string | null;
|
|
74632
|
+
source_ref?: string | null;
|
|
74633
|
+
source_type?: string;
|
|
74634
|
+
status?: string;
|
|
74635
|
+
subtotal_cents?: number;
|
|
74636
|
+
total_cents?: number;
|
|
74637
|
+
updated_at?: string;
|
|
74638
|
+
valid_until?: string | null;
|
|
74639
|
+
vat_cents?: number;
|
|
74640
|
+
vat_rate?: number;
|
|
74641
|
+
viewed_at?: string | null;
|
|
74642
|
+
volgnummer?: number | null;
|
|
74643
|
+
werkbon_id?: string | null;
|
|
74644
|
+
work_location_id?: string | null;
|
|
74645
|
+
};
|
|
74646
|
+
Update: {
|
|
74647
|
+
ai_generated?: boolean;
|
|
74648
|
+
approved_at?: string | null;
|
|
74649
|
+
binnen_mandaat?: boolean;
|
|
74650
|
+
contact_id?: string | null;
|
|
74651
|
+
converted_at?: string | null;
|
|
74652
|
+
created_at?: string;
|
|
74653
|
+
created_by?: string | null;
|
|
74654
|
+
customer_id?: string | null;
|
|
74655
|
+
follow_up_werkbon_id?: string | null;
|
|
74656
|
+
id?: string;
|
|
74657
|
+
jaar?: number;
|
|
74658
|
+
mandaat_restant_cents?: number;
|
|
74659
|
+
notities?: string | null;
|
|
74660
|
+
offerte_number?: string | null;
|
|
74661
|
+
omschrijving?: string;
|
|
74662
|
+
rejected_at?: string | null;
|
|
74663
|
+
sent_at?: string | null;
|
|
74664
|
+
source_number?: string | null;
|
|
74665
|
+
source_ref?: string | null;
|
|
74666
|
+
source_type?: string;
|
|
74667
|
+
status?: string;
|
|
74668
|
+
subtotal_cents?: number;
|
|
74669
|
+
total_cents?: number;
|
|
74670
|
+
updated_at?: string;
|
|
74671
|
+
valid_until?: string | null;
|
|
74672
|
+
vat_cents?: number;
|
|
74673
|
+
vat_rate?: number;
|
|
74674
|
+
viewed_at?: string | null;
|
|
74675
|
+
volgnummer?: number | null;
|
|
74676
|
+
werkbon_id?: string | null;
|
|
74677
|
+
work_location_id?: string | null;
|
|
74678
|
+
};
|
|
74679
|
+
Relationships: [{
|
|
74680
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
74681
|
+
columns: ["contact_id"];
|
|
74682
|
+
isOneToOne: false;
|
|
74683
|
+
referencedRelation: "itk_contact_persons";
|
|
74684
|
+
referencedColumns: ["id"];
|
|
74685
|
+
}, {
|
|
74686
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
74687
|
+
columns: ["customer_id"];
|
|
74688
|
+
isOneToOne: false;
|
|
74689
|
+
referencedRelation: "itk_customers";
|
|
74690
|
+
referencedColumns: ["id"];
|
|
74691
|
+
}, {
|
|
74692
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
74693
|
+
columns: ["follow_up_werkbon_id"];
|
|
74694
|
+
isOneToOne: false;
|
|
74695
|
+
referencedRelation: "werkbonnen";
|
|
74696
|
+
referencedColumns: ["id"];
|
|
74697
|
+
}, {
|
|
74698
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
74699
|
+
columns: ["werkbon_id"];
|
|
74700
|
+
isOneToOne: false;
|
|
74701
|
+
referencedRelation: "werkbonnen";
|
|
74702
|
+
referencedColumns: ["id"];
|
|
74703
|
+
}, {
|
|
74704
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
74705
|
+
columns: ["work_location_id"];
|
|
74706
|
+
isOneToOne: false;
|
|
74707
|
+
referencedRelation: "itk_work_locations";
|
|
74708
|
+
referencedColumns: ["id"];
|
|
74709
|
+
}];
|
|
74710
|
+
};
|
|
72746
74711
|
itk_work_locations: {
|
|
72747
74712
|
Row: {
|
|
72748
74713
|
city: string | null;
|
|
@@ -75116,6 +77081,63 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
75116
77081
|
referencedColumns: ["id"];
|
|
75117
77082
|
}];
|
|
75118
77083
|
};
|
|
77084
|
+
medewerker_details: {
|
|
77085
|
+
Row: {
|
|
77086
|
+
color: string | null;
|
|
77087
|
+
created_at: string;
|
|
77088
|
+
hours_fri: number | null;
|
|
77089
|
+
hours_mon: number | null;
|
|
77090
|
+
hours_thu: number | null;
|
|
77091
|
+
hours_tue: number | null;
|
|
77092
|
+
hours_wed: number | null;
|
|
77093
|
+
id: string;
|
|
77094
|
+
is_active: boolean;
|
|
77095
|
+
leave_balance_hours: number;
|
|
77096
|
+
persnr: string | null;
|
|
77097
|
+
phone: string | null;
|
|
77098
|
+
profile_id: string;
|
|
77099
|
+
updated_at: string;
|
|
77100
|
+
};
|
|
77101
|
+
Insert: {
|
|
77102
|
+
color?: string | null;
|
|
77103
|
+
created_at?: string;
|
|
77104
|
+
hours_fri?: number | null;
|
|
77105
|
+
hours_mon?: number | null;
|
|
77106
|
+
hours_thu?: number | null;
|
|
77107
|
+
hours_tue?: number | null;
|
|
77108
|
+
hours_wed?: number | null;
|
|
77109
|
+
id?: string;
|
|
77110
|
+
is_active?: boolean;
|
|
77111
|
+
leave_balance_hours?: number;
|
|
77112
|
+
persnr?: string | null;
|
|
77113
|
+
phone?: string | null;
|
|
77114
|
+
profile_id: string;
|
|
77115
|
+
updated_at?: string;
|
|
77116
|
+
};
|
|
77117
|
+
Update: {
|
|
77118
|
+
color?: string | null;
|
|
77119
|
+
created_at?: string;
|
|
77120
|
+
hours_fri?: number | null;
|
|
77121
|
+
hours_mon?: number | null;
|
|
77122
|
+
hours_thu?: number | null;
|
|
77123
|
+
hours_tue?: number | null;
|
|
77124
|
+
hours_wed?: number | null;
|
|
77125
|
+
id?: string;
|
|
77126
|
+
is_active?: boolean;
|
|
77127
|
+
leave_balance_hours?: number;
|
|
77128
|
+
persnr?: string | null;
|
|
77129
|
+
phone?: string | null;
|
|
77130
|
+
profile_id?: string;
|
|
77131
|
+
updated_at?: string;
|
|
77132
|
+
};
|
|
77133
|
+
Relationships: [{
|
|
77134
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
77135
|
+
columns: ["profile_id"];
|
|
77136
|
+
isOneToOne: true;
|
|
77137
|
+
referencedRelation: "profiles";
|
|
77138
|
+
referencedColumns: ["id"];
|
|
77139
|
+
}];
|
|
77140
|
+
};
|
|
75119
77141
|
module_features: {
|
|
75120
77142
|
Row: {
|
|
75121
77143
|
created_at: string;
|
|
@@ -76409,6 +78431,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
76409
78431
|
orders: {
|
|
76410
78432
|
Row: {
|
|
76411
78433
|
buffer_id: string | null;
|
|
78434
|
+
cancel_reason: string | null;
|
|
78435
|
+
cancelled_at: string | null;
|
|
76412
78436
|
created_at: string;
|
|
76413
78437
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
76414
78438
|
customer_id: string | null;
|
|
@@ -76431,6 +78455,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
76431
78455
|
};
|
|
76432
78456
|
Insert: {
|
|
76433
78457
|
buffer_id?: string | null;
|
|
78458
|
+
cancel_reason?: string | null;
|
|
78459
|
+
cancelled_at?: string | null;
|
|
76434
78460
|
created_at?: string;
|
|
76435
78461
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
76436
78462
|
customer_id?: string | null;
|
|
@@ -76453,6 +78479,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
76453
78479
|
};
|
|
76454
78480
|
Update: {
|
|
76455
78481
|
buffer_id?: string | null;
|
|
78482
|
+
cancel_reason?: string | null;
|
|
78483
|
+
cancelled_at?: string | null;
|
|
76456
78484
|
created_at?: string;
|
|
76457
78485
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
76458
78486
|
customer_id?: string | null;
|
|
@@ -78515,6 +80543,66 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
78515
80543
|
};
|
|
78516
80544
|
Relationships: [];
|
|
78517
80545
|
};
|
|
80546
|
+
profile_modules: {
|
|
80547
|
+
Row: {
|
|
80548
|
+
created_at: string;
|
|
80549
|
+
id: string;
|
|
80550
|
+
module_id: string;
|
|
80551
|
+
profile_id: string;
|
|
80552
|
+
};
|
|
80553
|
+
Insert: {
|
|
80554
|
+
created_at?: string;
|
|
80555
|
+
id?: string;
|
|
80556
|
+
module_id: string;
|
|
80557
|
+
profile_id: string;
|
|
80558
|
+
};
|
|
80559
|
+
Update: {
|
|
80560
|
+
created_at?: string;
|
|
80561
|
+
id?: string;
|
|
80562
|
+
module_id?: string;
|
|
80563
|
+
profile_id?: string;
|
|
80564
|
+
};
|
|
80565
|
+
Relationships: [{
|
|
80566
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
80567
|
+
columns: ["profile_id"];
|
|
80568
|
+
isOneToOne: false;
|
|
80569
|
+
referencedRelation: "profiles_org";
|
|
80570
|
+
referencedColumns: ["id"];
|
|
80571
|
+
}];
|
|
80572
|
+
};
|
|
80573
|
+
profile_roles: {
|
|
80574
|
+
Row: {
|
|
80575
|
+
created_at: string;
|
|
80576
|
+
id: string;
|
|
80577
|
+
profile_id: string;
|
|
80578
|
+
role_id: string;
|
|
80579
|
+
};
|
|
80580
|
+
Insert: {
|
|
80581
|
+
created_at?: string;
|
|
80582
|
+
id?: string;
|
|
80583
|
+
profile_id: string;
|
|
80584
|
+
role_id: string;
|
|
80585
|
+
};
|
|
80586
|
+
Update: {
|
|
80587
|
+
created_at?: string;
|
|
80588
|
+
id?: string;
|
|
80589
|
+
profile_id?: string;
|
|
80590
|
+
role_id?: string;
|
|
80591
|
+
};
|
|
80592
|
+
Relationships: [{
|
|
80593
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
80594
|
+
columns: ["profile_id"];
|
|
80595
|
+
isOneToOne: false;
|
|
80596
|
+
referencedRelation: "profiles_org";
|
|
80597
|
+
referencedColumns: ["id"];
|
|
80598
|
+
}, {
|
|
80599
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
80600
|
+
columns: ["role_id"];
|
|
80601
|
+
isOneToOne: false;
|
|
80602
|
+
referencedRelation: "roles";
|
|
80603
|
+
referencedColumns: ["id"];
|
|
80604
|
+
}];
|
|
80605
|
+
};
|
|
78518
80606
|
profiles: {
|
|
78519
80607
|
Row: {
|
|
78520
80608
|
address: string | null;
|
|
@@ -78560,6 +80648,39 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
78560
80648
|
referencedColumns: ["id"];
|
|
78561
80649
|
}];
|
|
78562
80650
|
};
|
|
80651
|
+
profiles_org: {
|
|
80652
|
+
Row: {
|
|
80653
|
+
created_at: string;
|
|
80654
|
+
id: string;
|
|
80655
|
+
is_default: boolean;
|
|
80656
|
+
name: string;
|
|
80657
|
+
tenant_id: string | null;
|
|
80658
|
+
updated_at: string;
|
|
80659
|
+
};
|
|
80660
|
+
Insert: {
|
|
80661
|
+
created_at?: string;
|
|
80662
|
+
id?: string;
|
|
80663
|
+
is_default?: boolean;
|
|
80664
|
+
name: string;
|
|
80665
|
+
tenant_id?: string | null;
|
|
80666
|
+
updated_at?: string;
|
|
80667
|
+
};
|
|
80668
|
+
Update: {
|
|
80669
|
+
created_at?: string;
|
|
80670
|
+
id?: string;
|
|
80671
|
+
is_default?: boolean;
|
|
80672
|
+
name?: string;
|
|
80673
|
+
tenant_id?: string | null;
|
|
80674
|
+
updated_at?: string;
|
|
80675
|
+
};
|
|
80676
|
+
Relationships: [{
|
|
80677
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
80678
|
+
columns: ["tenant_id"];
|
|
80679
|
+
isOneToOne: false;
|
|
80680
|
+
referencedRelation: "tenants";
|
|
80681
|
+
referencedColumns: ["id"];
|
|
80682
|
+
}];
|
|
80683
|
+
};
|
|
78563
80684
|
projects: {
|
|
78564
80685
|
Row: {
|
|
78565
80686
|
contact_name: string | null;
|
|
@@ -79734,6 +81855,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
79734
81855
|
type: string;
|
|
79735
81856
|
updated_at: string;
|
|
79736
81857
|
vereist_medewerker: boolean;
|
|
81858
|
+
werkplek: string | null;
|
|
79737
81859
|
};
|
|
79738
81860
|
Insert: {
|
|
79739
81861
|
actief?: boolean;
|
|
@@ -79747,6 +81869,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
79747
81869
|
type?: string;
|
|
79748
81870
|
updated_at?: string;
|
|
79749
81871
|
vereist_medewerker?: boolean;
|
|
81872
|
+
werkplek?: string | null;
|
|
79750
81873
|
};
|
|
79751
81874
|
Update: {
|
|
79752
81875
|
actief?: boolean;
|
|
@@ -79760,9 +81883,46 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
79760
81883
|
type?: string;
|
|
79761
81884
|
updated_at?: string;
|
|
79762
81885
|
vereist_medewerker?: boolean;
|
|
81886
|
+
werkplek?: string | null;
|
|
79763
81887
|
};
|
|
79764
81888
|
Relationships: [];
|
|
79765
81889
|
};
|
|
81890
|
+
sick_periods: {
|
|
81891
|
+
Row: {
|
|
81892
|
+
created_at: string;
|
|
81893
|
+
employee_id: string;
|
|
81894
|
+
end_date: string | null;
|
|
81895
|
+
id: string;
|
|
81896
|
+
notes: string | null;
|
|
81897
|
+
start_date: string;
|
|
81898
|
+
updated_at: string;
|
|
81899
|
+
};
|
|
81900
|
+
Insert: {
|
|
81901
|
+
created_at?: string;
|
|
81902
|
+
employee_id: string;
|
|
81903
|
+
end_date?: string | null;
|
|
81904
|
+
id?: string;
|
|
81905
|
+
notes?: string | null;
|
|
81906
|
+
start_date: string;
|
|
81907
|
+
updated_at?: string;
|
|
81908
|
+
};
|
|
81909
|
+
Update: {
|
|
81910
|
+
created_at?: string;
|
|
81911
|
+
employee_id?: string;
|
|
81912
|
+
end_date?: string | null;
|
|
81913
|
+
id?: string;
|
|
81914
|
+
notes?: string | null;
|
|
81915
|
+
start_date?: string;
|
|
81916
|
+
updated_at?: string;
|
|
81917
|
+
};
|
|
81918
|
+
Relationships: [{
|
|
81919
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
81920
|
+
columns: ["employee_id"];
|
|
81921
|
+
isOneToOne: false;
|
|
81922
|
+
referencedRelation: "profiles";
|
|
81923
|
+
referencedColumns: ["id"];
|
|
81924
|
+
}];
|
|
81925
|
+
};
|
|
79766
81926
|
sidebar_config: {
|
|
79767
81927
|
Row: {
|
|
79768
81928
|
id: string;
|
|
@@ -84447,6 +86607,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
84447
86607
|
};
|
|
84448
86608
|
Returns: string;
|
|
84449
86609
|
};
|
|
86610
|
+
employee_day_hours: {
|
|
86611
|
+
Args: {
|
|
86612
|
+
_day: string;
|
|
86613
|
+
_employee_id: string;
|
|
86614
|
+
};
|
|
86615
|
+
Returns: number;
|
|
86616
|
+
};
|
|
84450
86617
|
enqueue_cart_replan_if_unlocked: {
|
|
84451
86618
|
Args: {
|
|
84452
86619
|
p_order_id: string;
|
|
@@ -84800,6 +86967,19 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
84800
86967
|
Args: never;
|
|
84801
86968
|
Returns: boolean;
|
|
84802
86969
|
};
|
|
86970
|
+
itk_offerte_naar_werkbon: {
|
|
86971
|
+
Args: {
|
|
86972
|
+
_offerte_id: string;
|
|
86973
|
+
};
|
|
86974
|
+
Returns: string;
|
|
86975
|
+
};
|
|
86976
|
+
itk_offerte_restant_mandaat: {
|
|
86977
|
+
Args: {
|
|
86978
|
+
_exclude_offerte_id?: string;
|
|
86979
|
+
_werkbon_id: string;
|
|
86980
|
+
};
|
|
86981
|
+
Returns: number;
|
|
86982
|
+
};
|
|
84803
86983
|
jwt_has_role: {
|
|
84804
86984
|
Args: {
|
|
84805
86985
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -84810,9 +86990,19 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
84810
86990
|
Args: never;
|
|
84811
86991
|
Returns: {
|
|
84812
86992
|
avatar_url: string;
|
|
86993
|
+
color: string;
|
|
84813
86994
|
display_name: string;
|
|
84814
86995
|
email: string;
|
|
86996
|
+
hours_fri: number;
|
|
86997
|
+
hours_mon: number;
|
|
86998
|
+
hours_thu: number;
|
|
86999
|
+
hours_tue: number;
|
|
87000
|
+
hours_wed: number;
|
|
84815
87001
|
id: string;
|
|
87002
|
+
is_active: boolean;
|
|
87003
|
+
leave_balance_hours: number;
|
|
87004
|
+
persnr: string;
|
|
87005
|
+
phone: string;
|
|
84816
87006
|
roles: string[];
|
|
84817
87007
|
}[];
|
|
84818
87008
|
};
|
|
@@ -85139,17 +87329,6 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
85139
87329
|
Returns: string;
|
|
85140
87330
|
};
|
|
85141
87331
|
logistics_emit_event: {
|
|
85142
|
-
Args: {
|
|
85143
|
-
p_event_type: string;
|
|
85144
|
-
p_idempotency_key?: string;
|
|
85145
|
-
p_order_ref: string;
|
|
85146
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
85147
|
-
p_shadow?: boolean;
|
|
85148
|
-
p_source_module: string;
|
|
85149
|
-
p_strategy_id?: string;
|
|
85150
|
-
};
|
|
85151
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
85152
|
-
} | {
|
|
85153
87332
|
Args: {
|
|
85154
87333
|
p_event_type: string;
|
|
85155
87334
|
p_idempotency_key?: string;
|
|
@@ -85994,6 +88173,37 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
85994
88173
|
};
|
|
85995
88174
|
Returns: undefined;
|
|
85996
88175
|
};
|
|
88176
|
+
quote_create_from_source: {
|
|
88177
|
+
Args: {
|
|
88178
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
88179
|
+
_source_id: string;
|
|
88180
|
+
_source_type: string;
|
|
88181
|
+
};
|
|
88182
|
+
Returns: string;
|
|
88183
|
+
};
|
|
88184
|
+
quote_get_billable_lines: {
|
|
88185
|
+
Args: {
|
|
88186
|
+
_quotation_id: string;
|
|
88187
|
+
};
|
|
88188
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88189
|
+
};
|
|
88190
|
+
quote_get_summary: {
|
|
88191
|
+
Args: {
|
|
88192
|
+
_quotation_id: string;
|
|
88193
|
+
};
|
|
88194
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88195
|
+
};
|
|
88196
|
+
quote_list_packages: {
|
|
88197
|
+
Args: never;
|
|
88198
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88199
|
+
};
|
|
88200
|
+
quote_list_sources: {
|
|
88201
|
+
Args: {
|
|
88202
|
+
_limit?: number;
|
|
88203
|
+
_source_type?: string;
|
|
88204
|
+
};
|
|
88205
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88206
|
+
};
|
|
85997
88207
|
recompute_all_reserved_stock: {
|
|
85998
88208
|
Args: never;
|
|
85999
88209
|
Returns: undefined;
|
|
@@ -86529,6 +88739,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
86529
88739
|
};
|
|
86530
88740
|
Returns: undefined;
|
|
86531
88741
|
};
|
|
88742
|
+
sync_sick_time_off: {
|
|
88743
|
+
Args: {
|
|
88744
|
+
_period_id: string;
|
|
88745
|
+
};
|
|
88746
|
+
Returns: number;
|
|
88747
|
+
};
|
|
86532
88748
|
trade_item_stock_duplicates: {
|
|
86533
88749
|
Args: never;
|
|
86534
88750
|
Returns: {
|
|
@@ -86602,11 +88818,31 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
86602
88818
|
Args: never;
|
|
86603
88819
|
Returns: string;
|
|
86604
88820
|
};
|
|
88821
|
+
wo_create_from_source: {
|
|
88822
|
+
Args: {
|
|
88823
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
88824
|
+
_source_id: string;
|
|
88825
|
+
_source_type: string;
|
|
88826
|
+
};
|
|
88827
|
+
Returns: string;
|
|
88828
|
+
};
|
|
88829
|
+
wo_get_billable_lines: {
|
|
88830
|
+
Args: {
|
|
88831
|
+
_work_order_id: string;
|
|
88832
|
+
};
|
|
88833
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88834
|
+
};
|
|
88835
|
+
wo_get_summary: {
|
|
88836
|
+
Args: {
|
|
88837
|
+
_work_order_id: string;
|
|
88838
|
+
};
|
|
88839
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88840
|
+
};
|
|
86605
88841
|
};
|
|
86606
88842
|
Enums: {
|
|
86607
88843
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
86608
88844
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
86609
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
88845
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
86610
88846
|
doc_orientation: "portrait" | "landscape";
|
|
86611
88847
|
exact_env: "staging" | "live";
|
|
86612
88848
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -91675,6 +93911,42 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
91675
93911
|
};
|
|
91676
93912
|
Relationships: [];
|
|
91677
93913
|
};
|
|
93914
|
+
facturen: {
|
|
93915
|
+
Row: {
|
|
93916
|
+
bedrag_incl_btw: number;
|
|
93917
|
+
created_at: string;
|
|
93918
|
+
datum: string;
|
|
93919
|
+
factuurnummer: string;
|
|
93920
|
+
id: string;
|
|
93921
|
+
klantnaam: string;
|
|
93922
|
+
status: string;
|
|
93923
|
+
updated_at: string;
|
|
93924
|
+
user_id: string;
|
|
93925
|
+
};
|
|
93926
|
+
Insert: {
|
|
93927
|
+
bedrag_incl_btw: number;
|
|
93928
|
+
created_at?: string;
|
|
93929
|
+
datum?: string;
|
|
93930
|
+
factuurnummer: string;
|
|
93931
|
+
id?: string;
|
|
93932
|
+
klantnaam: string;
|
|
93933
|
+
status?: string;
|
|
93934
|
+
updated_at?: string;
|
|
93935
|
+
user_id?: string;
|
|
93936
|
+
};
|
|
93937
|
+
Update: {
|
|
93938
|
+
bedrag_incl_btw?: number;
|
|
93939
|
+
created_at?: string;
|
|
93940
|
+
datum?: string;
|
|
93941
|
+
factuurnummer?: string;
|
|
93942
|
+
id?: string;
|
|
93943
|
+
klantnaam?: string;
|
|
93944
|
+
status?: string;
|
|
93945
|
+
updated_at?: string;
|
|
93946
|
+
user_id?: string;
|
|
93947
|
+
};
|
|
93948
|
+
Relationships: [];
|
|
93949
|
+
};
|
|
91678
93950
|
floricode_connection_settings: {
|
|
91679
93951
|
Row: {
|
|
91680
93952
|
catalog_key: string | null;
|
|
@@ -94399,6 +96671,258 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
94399
96671
|
};
|
|
94400
96672
|
Relationships: [];
|
|
94401
96673
|
};
|
|
96674
|
+
itk_offerte_events: {
|
|
96675
|
+
Row: {
|
|
96676
|
+
created_at: string;
|
|
96677
|
+
event_type: string;
|
|
96678
|
+
id: string;
|
|
96679
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
96680
|
+
offerte_id: string;
|
|
96681
|
+
omschrijving: string | null;
|
|
96682
|
+
user_id: string | null;
|
|
96683
|
+
};
|
|
96684
|
+
Insert: {
|
|
96685
|
+
created_at?: string;
|
|
96686
|
+
event_type: string;
|
|
96687
|
+
id?: string;
|
|
96688
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
96689
|
+
offerte_id: string;
|
|
96690
|
+
omschrijving?: string | null;
|
|
96691
|
+
user_id?: string | null;
|
|
96692
|
+
};
|
|
96693
|
+
Update: {
|
|
96694
|
+
created_at?: string;
|
|
96695
|
+
event_type?: string;
|
|
96696
|
+
id?: string;
|
|
96697
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
96698
|
+
offerte_id?: string;
|
|
96699
|
+
omschrijving?: string | null;
|
|
96700
|
+
user_id?: string | null;
|
|
96701
|
+
};
|
|
96702
|
+
Relationships: [{
|
|
96703
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
96704
|
+
columns: ["offerte_id"];
|
|
96705
|
+
isOneToOne: false;
|
|
96706
|
+
referencedRelation: "itk_offertes";
|
|
96707
|
+
referencedColumns: ["id"];
|
|
96708
|
+
}];
|
|
96709
|
+
};
|
|
96710
|
+
itk_offerte_regels: {
|
|
96711
|
+
Row: {
|
|
96712
|
+
created_at: string;
|
|
96713
|
+
id: string;
|
|
96714
|
+
line_total_cents: number;
|
|
96715
|
+
offerte_id: string;
|
|
96716
|
+
omschrijving: string;
|
|
96717
|
+
package_id: string | null;
|
|
96718
|
+
quantity: number;
|
|
96719
|
+
sort_order: number;
|
|
96720
|
+
source: string;
|
|
96721
|
+
unit_price_cents: number;
|
|
96722
|
+
updated_at: string;
|
|
96723
|
+
};
|
|
96724
|
+
Insert: {
|
|
96725
|
+
created_at?: string;
|
|
96726
|
+
id?: string;
|
|
96727
|
+
line_total_cents?: number;
|
|
96728
|
+
offerte_id: string;
|
|
96729
|
+
omschrijving?: string;
|
|
96730
|
+
package_id?: string | null;
|
|
96731
|
+
quantity?: number;
|
|
96732
|
+
sort_order?: number;
|
|
96733
|
+
source?: string;
|
|
96734
|
+
unit_price_cents?: number;
|
|
96735
|
+
updated_at?: string;
|
|
96736
|
+
};
|
|
96737
|
+
Update: {
|
|
96738
|
+
created_at?: string;
|
|
96739
|
+
id?: string;
|
|
96740
|
+
line_total_cents?: number;
|
|
96741
|
+
offerte_id?: string;
|
|
96742
|
+
omschrijving?: string;
|
|
96743
|
+
package_id?: string | null;
|
|
96744
|
+
quantity?: number;
|
|
96745
|
+
sort_order?: number;
|
|
96746
|
+
source?: string;
|
|
96747
|
+
unit_price_cents?: number;
|
|
96748
|
+
updated_at?: string;
|
|
96749
|
+
};
|
|
96750
|
+
Relationships: [{
|
|
96751
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
96752
|
+
columns: ["offerte_id"];
|
|
96753
|
+
isOneToOne: false;
|
|
96754
|
+
referencedRelation: "itk_offertes";
|
|
96755
|
+
referencedColumns: ["id"];
|
|
96756
|
+
}, {
|
|
96757
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
96758
|
+
columns: ["package_id"];
|
|
96759
|
+
isOneToOne: false;
|
|
96760
|
+
referencedRelation: "werkbon_packages";
|
|
96761
|
+
referencedColumns: ["id"];
|
|
96762
|
+
}];
|
|
96763
|
+
};
|
|
96764
|
+
itk_offerte_settings: {
|
|
96765
|
+
Row: {
|
|
96766
|
+
auto_convert_binnen_mandaat: boolean;
|
|
96767
|
+
created_at: string;
|
|
96768
|
+
default_geldigheid_dagen: number;
|
|
96769
|
+
default_vat_rate: number;
|
|
96770
|
+
id: string;
|
|
96771
|
+
singleton: boolean;
|
|
96772
|
+
updated_at: string;
|
|
96773
|
+
};
|
|
96774
|
+
Insert: {
|
|
96775
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
96776
|
+
created_at?: string;
|
|
96777
|
+
default_geldigheid_dagen?: number;
|
|
96778
|
+
default_vat_rate?: number;
|
|
96779
|
+
id?: string;
|
|
96780
|
+
singleton?: boolean;
|
|
96781
|
+
updated_at?: string;
|
|
96782
|
+
};
|
|
96783
|
+
Update: {
|
|
96784
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
96785
|
+
created_at?: string;
|
|
96786
|
+
default_geldigheid_dagen?: number;
|
|
96787
|
+
default_vat_rate?: number;
|
|
96788
|
+
id?: string;
|
|
96789
|
+
singleton?: boolean;
|
|
96790
|
+
updated_at?: string;
|
|
96791
|
+
};
|
|
96792
|
+
Relationships: [];
|
|
96793
|
+
};
|
|
96794
|
+
itk_offertes: {
|
|
96795
|
+
Row: {
|
|
96796
|
+
ai_generated: boolean;
|
|
96797
|
+
approved_at: string | null;
|
|
96798
|
+
binnen_mandaat: boolean;
|
|
96799
|
+
contact_id: string | null;
|
|
96800
|
+
converted_at: string | null;
|
|
96801
|
+
created_at: string;
|
|
96802
|
+
created_by: string | null;
|
|
96803
|
+
customer_id: string | null;
|
|
96804
|
+
follow_up_werkbon_id: string | null;
|
|
96805
|
+
id: string;
|
|
96806
|
+
jaar: number;
|
|
96807
|
+
mandaat_restant_cents: number;
|
|
96808
|
+
notities: string | null;
|
|
96809
|
+
offerte_number: string | null;
|
|
96810
|
+
omschrijving: string;
|
|
96811
|
+
rejected_at: string | null;
|
|
96812
|
+
sent_at: string | null;
|
|
96813
|
+
source_number: string | null;
|
|
96814
|
+
source_ref: string | null;
|
|
96815
|
+
source_type: string;
|
|
96816
|
+
status: string;
|
|
96817
|
+
subtotal_cents: number;
|
|
96818
|
+
total_cents: number;
|
|
96819
|
+
updated_at: string;
|
|
96820
|
+
valid_until: string | null;
|
|
96821
|
+
vat_cents: number;
|
|
96822
|
+
vat_rate: number;
|
|
96823
|
+
viewed_at: string | null;
|
|
96824
|
+
volgnummer: number | null;
|
|
96825
|
+
werkbon_id: string | null;
|
|
96826
|
+
work_location_id: string | null;
|
|
96827
|
+
};
|
|
96828
|
+
Insert: {
|
|
96829
|
+
ai_generated?: boolean;
|
|
96830
|
+
approved_at?: string | null;
|
|
96831
|
+
binnen_mandaat?: boolean;
|
|
96832
|
+
contact_id?: string | null;
|
|
96833
|
+
converted_at?: string | null;
|
|
96834
|
+
created_at?: string;
|
|
96835
|
+
created_by?: string | null;
|
|
96836
|
+
customer_id?: string | null;
|
|
96837
|
+
follow_up_werkbon_id?: string | null;
|
|
96838
|
+
id?: string;
|
|
96839
|
+
jaar?: number;
|
|
96840
|
+
mandaat_restant_cents?: number;
|
|
96841
|
+
notities?: string | null;
|
|
96842
|
+
offerte_number?: string | null;
|
|
96843
|
+
omschrijving?: string;
|
|
96844
|
+
rejected_at?: string | null;
|
|
96845
|
+
sent_at?: string | null;
|
|
96846
|
+
source_number?: string | null;
|
|
96847
|
+
source_ref?: string | null;
|
|
96848
|
+
source_type?: string;
|
|
96849
|
+
status?: string;
|
|
96850
|
+
subtotal_cents?: number;
|
|
96851
|
+
total_cents?: number;
|
|
96852
|
+
updated_at?: string;
|
|
96853
|
+
valid_until?: string | null;
|
|
96854
|
+
vat_cents?: number;
|
|
96855
|
+
vat_rate?: number;
|
|
96856
|
+
viewed_at?: string | null;
|
|
96857
|
+
volgnummer?: number | null;
|
|
96858
|
+
werkbon_id?: string | null;
|
|
96859
|
+
work_location_id?: string | null;
|
|
96860
|
+
};
|
|
96861
|
+
Update: {
|
|
96862
|
+
ai_generated?: boolean;
|
|
96863
|
+
approved_at?: string | null;
|
|
96864
|
+
binnen_mandaat?: boolean;
|
|
96865
|
+
contact_id?: string | null;
|
|
96866
|
+
converted_at?: string | null;
|
|
96867
|
+
created_at?: string;
|
|
96868
|
+
created_by?: string | null;
|
|
96869
|
+
customer_id?: string | null;
|
|
96870
|
+
follow_up_werkbon_id?: string | null;
|
|
96871
|
+
id?: string;
|
|
96872
|
+
jaar?: number;
|
|
96873
|
+
mandaat_restant_cents?: number;
|
|
96874
|
+
notities?: string | null;
|
|
96875
|
+
offerte_number?: string | null;
|
|
96876
|
+
omschrijving?: string;
|
|
96877
|
+
rejected_at?: string | null;
|
|
96878
|
+
sent_at?: string | null;
|
|
96879
|
+
source_number?: string | null;
|
|
96880
|
+
source_ref?: string | null;
|
|
96881
|
+
source_type?: string;
|
|
96882
|
+
status?: string;
|
|
96883
|
+
subtotal_cents?: number;
|
|
96884
|
+
total_cents?: number;
|
|
96885
|
+
updated_at?: string;
|
|
96886
|
+
valid_until?: string | null;
|
|
96887
|
+
vat_cents?: number;
|
|
96888
|
+
vat_rate?: number;
|
|
96889
|
+
viewed_at?: string | null;
|
|
96890
|
+
volgnummer?: number | null;
|
|
96891
|
+
werkbon_id?: string | null;
|
|
96892
|
+
work_location_id?: string | null;
|
|
96893
|
+
};
|
|
96894
|
+
Relationships: [{
|
|
96895
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
96896
|
+
columns: ["contact_id"];
|
|
96897
|
+
isOneToOne: false;
|
|
96898
|
+
referencedRelation: "itk_contact_persons";
|
|
96899
|
+
referencedColumns: ["id"];
|
|
96900
|
+
}, {
|
|
96901
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
96902
|
+
columns: ["customer_id"];
|
|
96903
|
+
isOneToOne: false;
|
|
96904
|
+
referencedRelation: "itk_customers";
|
|
96905
|
+
referencedColumns: ["id"];
|
|
96906
|
+
}, {
|
|
96907
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
96908
|
+
columns: ["follow_up_werkbon_id"];
|
|
96909
|
+
isOneToOne: false;
|
|
96910
|
+
referencedRelation: "werkbonnen";
|
|
96911
|
+
referencedColumns: ["id"];
|
|
96912
|
+
}, {
|
|
96913
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
96914
|
+
columns: ["werkbon_id"];
|
|
96915
|
+
isOneToOne: false;
|
|
96916
|
+
referencedRelation: "werkbonnen";
|
|
96917
|
+
referencedColumns: ["id"];
|
|
96918
|
+
}, {
|
|
96919
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
96920
|
+
columns: ["work_location_id"];
|
|
96921
|
+
isOneToOne: false;
|
|
96922
|
+
referencedRelation: "itk_work_locations";
|
|
96923
|
+
referencedColumns: ["id"];
|
|
96924
|
+
}];
|
|
96925
|
+
};
|
|
94402
96926
|
itk_work_locations: {
|
|
94403
96927
|
Row: {
|
|
94404
96928
|
city: string | null;
|
|
@@ -96772,6 +99296,63 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
96772
99296
|
referencedColumns: ["id"];
|
|
96773
99297
|
}];
|
|
96774
99298
|
};
|
|
99299
|
+
medewerker_details: {
|
|
99300
|
+
Row: {
|
|
99301
|
+
color: string | null;
|
|
99302
|
+
created_at: string;
|
|
99303
|
+
hours_fri: number | null;
|
|
99304
|
+
hours_mon: number | null;
|
|
99305
|
+
hours_thu: number | null;
|
|
99306
|
+
hours_tue: number | null;
|
|
99307
|
+
hours_wed: number | null;
|
|
99308
|
+
id: string;
|
|
99309
|
+
is_active: boolean;
|
|
99310
|
+
leave_balance_hours: number;
|
|
99311
|
+
persnr: string | null;
|
|
99312
|
+
phone: string | null;
|
|
99313
|
+
profile_id: string;
|
|
99314
|
+
updated_at: string;
|
|
99315
|
+
};
|
|
99316
|
+
Insert: {
|
|
99317
|
+
color?: string | null;
|
|
99318
|
+
created_at?: string;
|
|
99319
|
+
hours_fri?: number | null;
|
|
99320
|
+
hours_mon?: number | null;
|
|
99321
|
+
hours_thu?: number | null;
|
|
99322
|
+
hours_tue?: number | null;
|
|
99323
|
+
hours_wed?: number | null;
|
|
99324
|
+
id?: string;
|
|
99325
|
+
is_active?: boolean;
|
|
99326
|
+
leave_balance_hours?: number;
|
|
99327
|
+
persnr?: string | null;
|
|
99328
|
+
phone?: string | null;
|
|
99329
|
+
profile_id: string;
|
|
99330
|
+
updated_at?: string;
|
|
99331
|
+
};
|
|
99332
|
+
Update: {
|
|
99333
|
+
color?: string | null;
|
|
99334
|
+
created_at?: string;
|
|
99335
|
+
hours_fri?: number | null;
|
|
99336
|
+
hours_mon?: number | null;
|
|
99337
|
+
hours_thu?: number | null;
|
|
99338
|
+
hours_tue?: number | null;
|
|
99339
|
+
hours_wed?: number | null;
|
|
99340
|
+
id?: string;
|
|
99341
|
+
is_active?: boolean;
|
|
99342
|
+
leave_balance_hours?: number;
|
|
99343
|
+
persnr?: string | null;
|
|
99344
|
+
phone?: string | null;
|
|
99345
|
+
profile_id?: string;
|
|
99346
|
+
updated_at?: string;
|
|
99347
|
+
};
|
|
99348
|
+
Relationships: [{
|
|
99349
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
99350
|
+
columns: ["profile_id"];
|
|
99351
|
+
isOneToOne: true;
|
|
99352
|
+
referencedRelation: "profiles";
|
|
99353
|
+
referencedColumns: ["id"];
|
|
99354
|
+
}];
|
|
99355
|
+
};
|
|
96775
99356
|
module_features: {
|
|
96776
99357
|
Row: {
|
|
96777
99358
|
created_at: string;
|
|
@@ -98065,6 +100646,8 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
98065
100646
|
orders: {
|
|
98066
100647
|
Row: {
|
|
98067
100648
|
buffer_id: string | null;
|
|
100649
|
+
cancel_reason: string | null;
|
|
100650
|
+
cancelled_at: string | null;
|
|
98068
100651
|
created_at: string;
|
|
98069
100652
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
98070
100653
|
customer_id: string | null;
|
|
@@ -98087,6 +100670,8 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
98087
100670
|
};
|
|
98088
100671
|
Insert: {
|
|
98089
100672
|
buffer_id?: string | null;
|
|
100673
|
+
cancel_reason?: string | null;
|
|
100674
|
+
cancelled_at?: string | null;
|
|
98090
100675
|
created_at?: string;
|
|
98091
100676
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
98092
100677
|
customer_id?: string | null;
|
|
@@ -98109,6 +100694,8 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
98109
100694
|
};
|
|
98110
100695
|
Update: {
|
|
98111
100696
|
buffer_id?: string | null;
|
|
100697
|
+
cancel_reason?: string | null;
|
|
100698
|
+
cancelled_at?: string | null;
|
|
98112
100699
|
created_at?: string;
|
|
98113
100700
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
98114
100701
|
customer_id?: string | null;
|
|
@@ -100171,6 +102758,66 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
100171
102758
|
};
|
|
100172
102759
|
Relationships: [];
|
|
100173
102760
|
};
|
|
102761
|
+
profile_modules: {
|
|
102762
|
+
Row: {
|
|
102763
|
+
created_at: string;
|
|
102764
|
+
id: string;
|
|
102765
|
+
module_id: string;
|
|
102766
|
+
profile_id: string;
|
|
102767
|
+
};
|
|
102768
|
+
Insert: {
|
|
102769
|
+
created_at?: string;
|
|
102770
|
+
id?: string;
|
|
102771
|
+
module_id: string;
|
|
102772
|
+
profile_id: string;
|
|
102773
|
+
};
|
|
102774
|
+
Update: {
|
|
102775
|
+
created_at?: string;
|
|
102776
|
+
id?: string;
|
|
102777
|
+
module_id?: string;
|
|
102778
|
+
profile_id?: string;
|
|
102779
|
+
};
|
|
102780
|
+
Relationships: [{
|
|
102781
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
102782
|
+
columns: ["profile_id"];
|
|
102783
|
+
isOneToOne: false;
|
|
102784
|
+
referencedRelation: "profiles_org";
|
|
102785
|
+
referencedColumns: ["id"];
|
|
102786
|
+
}];
|
|
102787
|
+
};
|
|
102788
|
+
profile_roles: {
|
|
102789
|
+
Row: {
|
|
102790
|
+
created_at: string;
|
|
102791
|
+
id: string;
|
|
102792
|
+
profile_id: string;
|
|
102793
|
+
role_id: string;
|
|
102794
|
+
};
|
|
102795
|
+
Insert: {
|
|
102796
|
+
created_at?: string;
|
|
102797
|
+
id?: string;
|
|
102798
|
+
profile_id: string;
|
|
102799
|
+
role_id: string;
|
|
102800
|
+
};
|
|
102801
|
+
Update: {
|
|
102802
|
+
created_at?: string;
|
|
102803
|
+
id?: string;
|
|
102804
|
+
profile_id?: string;
|
|
102805
|
+
role_id?: string;
|
|
102806
|
+
};
|
|
102807
|
+
Relationships: [{
|
|
102808
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
102809
|
+
columns: ["profile_id"];
|
|
102810
|
+
isOneToOne: false;
|
|
102811
|
+
referencedRelation: "profiles_org";
|
|
102812
|
+
referencedColumns: ["id"];
|
|
102813
|
+
}, {
|
|
102814
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
102815
|
+
columns: ["role_id"];
|
|
102816
|
+
isOneToOne: false;
|
|
102817
|
+
referencedRelation: "roles";
|
|
102818
|
+
referencedColumns: ["id"];
|
|
102819
|
+
}];
|
|
102820
|
+
};
|
|
100174
102821
|
profiles: {
|
|
100175
102822
|
Row: {
|
|
100176
102823
|
address: string | null;
|
|
@@ -100216,6 +102863,39 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
100216
102863
|
referencedColumns: ["id"];
|
|
100217
102864
|
}];
|
|
100218
102865
|
};
|
|
102866
|
+
profiles_org: {
|
|
102867
|
+
Row: {
|
|
102868
|
+
created_at: string;
|
|
102869
|
+
id: string;
|
|
102870
|
+
is_default: boolean;
|
|
102871
|
+
name: string;
|
|
102872
|
+
tenant_id: string | null;
|
|
102873
|
+
updated_at: string;
|
|
102874
|
+
};
|
|
102875
|
+
Insert: {
|
|
102876
|
+
created_at?: string;
|
|
102877
|
+
id?: string;
|
|
102878
|
+
is_default?: boolean;
|
|
102879
|
+
name: string;
|
|
102880
|
+
tenant_id?: string | null;
|
|
102881
|
+
updated_at?: string;
|
|
102882
|
+
};
|
|
102883
|
+
Update: {
|
|
102884
|
+
created_at?: string;
|
|
102885
|
+
id?: string;
|
|
102886
|
+
is_default?: boolean;
|
|
102887
|
+
name?: string;
|
|
102888
|
+
tenant_id?: string | null;
|
|
102889
|
+
updated_at?: string;
|
|
102890
|
+
};
|
|
102891
|
+
Relationships: [{
|
|
102892
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
102893
|
+
columns: ["tenant_id"];
|
|
102894
|
+
isOneToOne: false;
|
|
102895
|
+
referencedRelation: "tenants";
|
|
102896
|
+
referencedColumns: ["id"];
|
|
102897
|
+
}];
|
|
102898
|
+
};
|
|
100219
102899
|
projects: {
|
|
100220
102900
|
Row: {
|
|
100221
102901
|
contact_name: string | null;
|
|
@@ -101390,6 +104070,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
101390
104070
|
type: string;
|
|
101391
104071
|
updated_at: string;
|
|
101392
104072
|
vereist_medewerker: boolean;
|
|
104073
|
+
werkplek: string | null;
|
|
101393
104074
|
};
|
|
101394
104075
|
Insert: {
|
|
101395
104076
|
actief?: boolean;
|
|
@@ -101403,6 +104084,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
101403
104084
|
type?: string;
|
|
101404
104085
|
updated_at?: string;
|
|
101405
104086
|
vereist_medewerker?: boolean;
|
|
104087
|
+
werkplek?: string | null;
|
|
101406
104088
|
};
|
|
101407
104089
|
Update: {
|
|
101408
104090
|
actief?: boolean;
|
|
@@ -101416,9 +104098,46 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
101416
104098
|
type?: string;
|
|
101417
104099
|
updated_at?: string;
|
|
101418
104100
|
vereist_medewerker?: boolean;
|
|
104101
|
+
werkplek?: string | null;
|
|
101419
104102
|
};
|
|
101420
104103
|
Relationships: [];
|
|
101421
104104
|
};
|
|
104105
|
+
sick_periods: {
|
|
104106
|
+
Row: {
|
|
104107
|
+
created_at: string;
|
|
104108
|
+
employee_id: string;
|
|
104109
|
+
end_date: string | null;
|
|
104110
|
+
id: string;
|
|
104111
|
+
notes: string | null;
|
|
104112
|
+
start_date: string;
|
|
104113
|
+
updated_at: string;
|
|
104114
|
+
};
|
|
104115
|
+
Insert: {
|
|
104116
|
+
created_at?: string;
|
|
104117
|
+
employee_id: string;
|
|
104118
|
+
end_date?: string | null;
|
|
104119
|
+
id?: string;
|
|
104120
|
+
notes?: string | null;
|
|
104121
|
+
start_date: string;
|
|
104122
|
+
updated_at?: string;
|
|
104123
|
+
};
|
|
104124
|
+
Update: {
|
|
104125
|
+
created_at?: string;
|
|
104126
|
+
employee_id?: string;
|
|
104127
|
+
end_date?: string | null;
|
|
104128
|
+
id?: string;
|
|
104129
|
+
notes?: string | null;
|
|
104130
|
+
start_date?: string;
|
|
104131
|
+
updated_at?: string;
|
|
104132
|
+
};
|
|
104133
|
+
Relationships: [{
|
|
104134
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
104135
|
+
columns: ["employee_id"];
|
|
104136
|
+
isOneToOne: false;
|
|
104137
|
+
referencedRelation: "profiles";
|
|
104138
|
+
referencedColumns: ["id"];
|
|
104139
|
+
}];
|
|
104140
|
+
};
|
|
101422
104141
|
sidebar_config: {
|
|
101423
104142
|
Row: {
|
|
101424
104143
|
id: string;
|
|
@@ -106103,6 +108822,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
106103
108822
|
};
|
|
106104
108823
|
Returns: string;
|
|
106105
108824
|
};
|
|
108825
|
+
employee_day_hours: {
|
|
108826
|
+
Args: {
|
|
108827
|
+
_day: string;
|
|
108828
|
+
_employee_id: string;
|
|
108829
|
+
};
|
|
108830
|
+
Returns: number;
|
|
108831
|
+
};
|
|
106106
108832
|
enqueue_cart_replan_if_unlocked: {
|
|
106107
108833
|
Args: {
|
|
106108
108834
|
p_order_id: string;
|
|
@@ -106456,6 +109182,19 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
106456
109182
|
Args: never;
|
|
106457
109183
|
Returns: boolean;
|
|
106458
109184
|
};
|
|
109185
|
+
itk_offerte_naar_werkbon: {
|
|
109186
|
+
Args: {
|
|
109187
|
+
_offerte_id: string;
|
|
109188
|
+
};
|
|
109189
|
+
Returns: string;
|
|
109190
|
+
};
|
|
109191
|
+
itk_offerte_restant_mandaat: {
|
|
109192
|
+
Args: {
|
|
109193
|
+
_exclude_offerte_id?: string;
|
|
109194
|
+
_werkbon_id: string;
|
|
109195
|
+
};
|
|
109196
|
+
Returns: number;
|
|
109197
|
+
};
|
|
106459
109198
|
jwt_has_role: {
|
|
106460
109199
|
Args: {
|
|
106461
109200
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -106466,9 +109205,19 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
106466
109205
|
Args: never;
|
|
106467
109206
|
Returns: {
|
|
106468
109207
|
avatar_url: string;
|
|
109208
|
+
color: string;
|
|
106469
109209
|
display_name: string;
|
|
106470
109210
|
email: string;
|
|
109211
|
+
hours_fri: number;
|
|
109212
|
+
hours_mon: number;
|
|
109213
|
+
hours_thu: number;
|
|
109214
|
+
hours_tue: number;
|
|
109215
|
+
hours_wed: number;
|
|
106471
109216
|
id: string;
|
|
109217
|
+
is_active: boolean;
|
|
109218
|
+
leave_balance_hours: number;
|
|
109219
|
+
persnr: string;
|
|
109220
|
+
phone: string;
|
|
106472
109221
|
roles: string[];
|
|
106473
109222
|
}[];
|
|
106474
109223
|
};
|
|
@@ -106795,17 +109544,6 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
106795
109544
|
Returns: string;
|
|
106796
109545
|
};
|
|
106797
109546
|
logistics_emit_event: {
|
|
106798
|
-
Args: {
|
|
106799
|
-
p_event_type: string;
|
|
106800
|
-
p_idempotency_key?: string;
|
|
106801
|
-
p_order_ref: string;
|
|
106802
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
106803
|
-
p_shadow?: boolean;
|
|
106804
|
-
p_source_module: string;
|
|
106805
|
-
p_strategy_id?: string;
|
|
106806
|
-
};
|
|
106807
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
106808
|
-
} | {
|
|
106809
109547
|
Args: {
|
|
106810
109548
|
p_event_type: string;
|
|
106811
109549
|
p_idempotency_key?: string;
|
|
@@ -107650,6 +110388,37 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
107650
110388
|
};
|
|
107651
110389
|
Returns: undefined;
|
|
107652
110390
|
};
|
|
110391
|
+
quote_create_from_source: {
|
|
110392
|
+
Args: {
|
|
110393
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
110394
|
+
_source_id: string;
|
|
110395
|
+
_source_type: string;
|
|
110396
|
+
};
|
|
110397
|
+
Returns: string;
|
|
110398
|
+
};
|
|
110399
|
+
quote_get_billable_lines: {
|
|
110400
|
+
Args: {
|
|
110401
|
+
_quotation_id: string;
|
|
110402
|
+
};
|
|
110403
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
110404
|
+
};
|
|
110405
|
+
quote_get_summary: {
|
|
110406
|
+
Args: {
|
|
110407
|
+
_quotation_id: string;
|
|
110408
|
+
};
|
|
110409
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
110410
|
+
};
|
|
110411
|
+
quote_list_packages: {
|
|
110412
|
+
Args: never;
|
|
110413
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
110414
|
+
};
|
|
110415
|
+
quote_list_sources: {
|
|
110416
|
+
Args: {
|
|
110417
|
+
_limit?: number;
|
|
110418
|
+
_source_type?: string;
|
|
110419
|
+
};
|
|
110420
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
110421
|
+
};
|
|
107653
110422
|
recompute_all_reserved_stock: {
|
|
107654
110423
|
Args: never;
|
|
107655
110424
|
Returns: undefined;
|
|
@@ -108185,6 +110954,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
108185
110954
|
};
|
|
108186
110955
|
Returns: undefined;
|
|
108187
110956
|
};
|
|
110957
|
+
sync_sick_time_off: {
|
|
110958
|
+
Args: {
|
|
110959
|
+
_period_id: string;
|
|
110960
|
+
};
|
|
110961
|
+
Returns: number;
|
|
110962
|
+
};
|
|
108188
110963
|
trade_item_stock_duplicates: {
|
|
108189
110964
|
Args: never;
|
|
108190
110965
|
Returns: {
|
|
@@ -108258,11 +111033,31 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
108258
111033
|
Args: never;
|
|
108259
111034
|
Returns: string;
|
|
108260
111035
|
};
|
|
111036
|
+
wo_create_from_source: {
|
|
111037
|
+
Args: {
|
|
111038
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
111039
|
+
_source_id: string;
|
|
111040
|
+
_source_type: string;
|
|
111041
|
+
};
|
|
111042
|
+
Returns: string;
|
|
111043
|
+
};
|
|
111044
|
+
wo_get_billable_lines: {
|
|
111045
|
+
Args: {
|
|
111046
|
+
_work_order_id: string;
|
|
111047
|
+
};
|
|
111048
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
111049
|
+
};
|
|
111050
|
+
wo_get_summary: {
|
|
111051
|
+
Args: {
|
|
111052
|
+
_work_order_id: string;
|
|
111053
|
+
};
|
|
111054
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
111055
|
+
};
|
|
108261
111056
|
};
|
|
108262
111057
|
Enums: {
|
|
108263
111058
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
108264
111059
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
108265
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
111060
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
108266
111061
|
doc_orientation: "portrait" | "landscape";
|
|
108267
111062
|
exact_env: "staging" | "live";
|
|
108268
111063
|
exact_push_status: "pending" | "sent" | "error";
|