@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
|
@@ -5050,6 +5050,42 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5050
5050
|
};
|
|
5051
5051
|
Relationships: [];
|
|
5052
5052
|
};
|
|
5053
|
+
facturen: {
|
|
5054
|
+
Row: {
|
|
5055
|
+
bedrag_incl_btw: number;
|
|
5056
|
+
created_at: string;
|
|
5057
|
+
datum: string;
|
|
5058
|
+
factuurnummer: string;
|
|
5059
|
+
id: string;
|
|
5060
|
+
klantnaam: string;
|
|
5061
|
+
status: string;
|
|
5062
|
+
updated_at: string;
|
|
5063
|
+
user_id: string;
|
|
5064
|
+
};
|
|
5065
|
+
Insert: {
|
|
5066
|
+
bedrag_incl_btw: number;
|
|
5067
|
+
created_at?: string;
|
|
5068
|
+
datum?: string;
|
|
5069
|
+
factuurnummer: string;
|
|
5070
|
+
id?: string;
|
|
5071
|
+
klantnaam: string;
|
|
5072
|
+
status?: string;
|
|
5073
|
+
updated_at?: string;
|
|
5074
|
+
user_id?: string;
|
|
5075
|
+
};
|
|
5076
|
+
Update: {
|
|
5077
|
+
bedrag_incl_btw?: number;
|
|
5078
|
+
created_at?: string;
|
|
5079
|
+
datum?: string;
|
|
5080
|
+
factuurnummer?: string;
|
|
5081
|
+
id?: string;
|
|
5082
|
+
klantnaam?: string;
|
|
5083
|
+
status?: string;
|
|
5084
|
+
updated_at?: string;
|
|
5085
|
+
user_id?: string;
|
|
5086
|
+
};
|
|
5087
|
+
Relationships: [];
|
|
5088
|
+
};
|
|
5053
5089
|
floricode_connection_settings: {
|
|
5054
5090
|
Row: {
|
|
5055
5091
|
catalog_key: string | null;
|
|
@@ -7774,6 +7810,258 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7774
7810
|
};
|
|
7775
7811
|
Relationships: [];
|
|
7776
7812
|
};
|
|
7813
|
+
itk_offerte_events: {
|
|
7814
|
+
Row: {
|
|
7815
|
+
created_at: string;
|
|
7816
|
+
event_type: string;
|
|
7817
|
+
id: string;
|
|
7818
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
7819
|
+
offerte_id: string;
|
|
7820
|
+
omschrijving: string | null;
|
|
7821
|
+
user_id: string | null;
|
|
7822
|
+
};
|
|
7823
|
+
Insert: {
|
|
7824
|
+
created_at?: string;
|
|
7825
|
+
event_type: string;
|
|
7826
|
+
id?: string;
|
|
7827
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7828
|
+
offerte_id: string;
|
|
7829
|
+
omschrijving?: string | null;
|
|
7830
|
+
user_id?: string | null;
|
|
7831
|
+
};
|
|
7832
|
+
Update: {
|
|
7833
|
+
created_at?: string;
|
|
7834
|
+
event_type?: string;
|
|
7835
|
+
id?: string;
|
|
7836
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7837
|
+
offerte_id?: string;
|
|
7838
|
+
omschrijving?: string | null;
|
|
7839
|
+
user_id?: string | null;
|
|
7840
|
+
};
|
|
7841
|
+
Relationships: [{
|
|
7842
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
7843
|
+
columns: ["offerte_id"];
|
|
7844
|
+
isOneToOne: false;
|
|
7845
|
+
referencedRelation: "itk_offertes";
|
|
7846
|
+
referencedColumns: ["id"];
|
|
7847
|
+
}];
|
|
7848
|
+
};
|
|
7849
|
+
itk_offerte_regels: {
|
|
7850
|
+
Row: {
|
|
7851
|
+
created_at: string;
|
|
7852
|
+
id: string;
|
|
7853
|
+
line_total_cents: number;
|
|
7854
|
+
offerte_id: string;
|
|
7855
|
+
omschrijving: string;
|
|
7856
|
+
package_id: string | null;
|
|
7857
|
+
quantity: number;
|
|
7858
|
+
sort_order: number;
|
|
7859
|
+
source: string;
|
|
7860
|
+
unit_price_cents: number;
|
|
7861
|
+
updated_at: string;
|
|
7862
|
+
};
|
|
7863
|
+
Insert: {
|
|
7864
|
+
created_at?: string;
|
|
7865
|
+
id?: string;
|
|
7866
|
+
line_total_cents?: number;
|
|
7867
|
+
offerte_id: string;
|
|
7868
|
+
omschrijving?: string;
|
|
7869
|
+
package_id?: string | null;
|
|
7870
|
+
quantity?: number;
|
|
7871
|
+
sort_order?: number;
|
|
7872
|
+
source?: string;
|
|
7873
|
+
unit_price_cents?: number;
|
|
7874
|
+
updated_at?: string;
|
|
7875
|
+
};
|
|
7876
|
+
Update: {
|
|
7877
|
+
created_at?: string;
|
|
7878
|
+
id?: string;
|
|
7879
|
+
line_total_cents?: number;
|
|
7880
|
+
offerte_id?: string;
|
|
7881
|
+
omschrijving?: string;
|
|
7882
|
+
package_id?: string | null;
|
|
7883
|
+
quantity?: number;
|
|
7884
|
+
sort_order?: number;
|
|
7885
|
+
source?: string;
|
|
7886
|
+
unit_price_cents?: number;
|
|
7887
|
+
updated_at?: string;
|
|
7888
|
+
};
|
|
7889
|
+
Relationships: [{
|
|
7890
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
7891
|
+
columns: ["offerte_id"];
|
|
7892
|
+
isOneToOne: false;
|
|
7893
|
+
referencedRelation: "itk_offertes";
|
|
7894
|
+
referencedColumns: ["id"];
|
|
7895
|
+
}, {
|
|
7896
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
7897
|
+
columns: ["package_id"];
|
|
7898
|
+
isOneToOne: false;
|
|
7899
|
+
referencedRelation: "werkbon_packages";
|
|
7900
|
+
referencedColumns: ["id"];
|
|
7901
|
+
}];
|
|
7902
|
+
};
|
|
7903
|
+
itk_offerte_settings: {
|
|
7904
|
+
Row: {
|
|
7905
|
+
auto_convert_binnen_mandaat: boolean;
|
|
7906
|
+
created_at: string;
|
|
7907
|
+
default_geldigheid_dagen: number;
|
|
7908
|
+
default_vat_rate: number;
|
|
7909
|
+
id: string;
|
|
7910
|
+
singleton: boolean;
|
|
7911
|
+
updated_at: string;
|
|
7912
|
+
};
|
|
7913
|
+
Insert: {
|
|
7914
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7915
|
+
created_at?: string;
|
|
7916
|
+
default_geldigheid_dagen?: number;
|
|
7917
|
+
default_vat_rate?: number;
|
|
7918
|
+
id?: string;
|
|
7919
|
+
singleton?: boolean;
|
|
7920
|
+
updated_at?: string;
|
|
7921
|
+
};
|
|
7922
|
+
Update: {
|
|
7923
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7924
|
+
created_at?: string;
|
|
7925
|
+
default_geldigheid_dagen?: number;
|
|
7926
|
+
default_vat_rate?: number;
|
|
7927
|
+
id?: string;
|
|
7928
|
+
singleton?: boolean;
|
|
7929
|
+
updated_at?: string;
|
|
7930
|
+
};
|
|
7931
|
+
Relationships: [];
|
|
7932
|
+
};
|
|
7933
|
+
itk_offertes: {
|
|
7934
|
+
Row: {
|
|
7935
|
+
ai_generated: boolean;
|
|
7936
|
+
approved_at: string | null;
|
|
7937
|
+
binnen_mandaat: boolean;
|
|
7938
|
+
contact_id: string | null;
|
|
7939
|
+
converted_at: string | null;
|
|
7940
|
+
created_at: string;
|
|
7941
|
+
created_by: string | null;
|
|
7942
|
+
customer_id: string | null;
|
|
7943
|
+
follow_up_werkbon_id: string | null;
|
|
7944
|
+
id: string;
|
|
7945
|
+
jaar: number;
|
|
7946
|
+
mandaat_restant_cents: number;
|
|
7947
|
+
notities: string | null;
|
|
7948
|
+
offerte_number: string | null;
|
|
7949
|
+
omschrijving: string;
|
|
7950
|
+
rejected_at: string | null;
|
|
7951
|
+
sent_at: string | null;
|
|
7952
|
+
source_number: string | null;
|
|
7953
|
+
source_ref: string | null;
|
|
7954
|
+
source_type: string;
|
|
7955
|
+
status: string;
|
|
7956
|
+
subtotal_cents: number;
|
|
7957
|
+
total_cents: number;
|
|
7958
|
+
updated_at: string;
|
|
7959
|
+
valid_until: string | null;
|
|
7960
|
+
vat_cents: number;
|
|
7961
|
+
vat_rate: number;
|
|
7962
|
+
viewed_at: string | null;
|
|
7963
|
+
volgnummer: number | null;
|
|
7964
|
+
werkbon_id: string | null;
|
|
7965
|
+
work_location_id: string | null;
|
|
7966
|
+
};
|
|
7967
|
+
Insert: {
|
|
7968
|
+
ai_generated?: boolean;
|
|
7969
|
+
approved_at?: string | null;
|
|
7970
|
+
binnen_mandaat?: boolean;
|
|
7971
|
+
contact_id?: string | null;
|
|
7972
|
+
converted_at?: string | null;
|
|
7973
|
+
created_at?: string;
|
|
7974
|
+
created_by?: string | null;
|
|
7975
|
+
customer_id?: string | null;
|
|
7976
|
+
follow_up_werkbon_id?: string | null;
|
|
7977
|
+
id?: string;
|
|
7978
|
+
jaar?: number;
|
|
7979
|
+
mandaat_restant_cents?: number;
|
|
7980
|
+
notities?: string | null;
|
|
7981
|
+
offerte_number?: string | null;
|
|
7982
|
+
omschrijving?: string;
|
|
7983
|
+
rejected_at?: string | null;
|
|
7984
|
+
sent_at?: string | null;
|
|
7985
|
+
source_number?: string | null;
|
|
7986
|
+
source_ref?: string | null;
|
|
7987
|
+
source_type?: string;
|
|
7988
|
+
status?: string;
|
|
7989
|
+
subtotal_cents?: number;
|
|
7990
|
+
total_cents?: number;
|
|
7991
|
+
updated_at?: string;
|
|
7992
|
+
valid_until?: string | null;
|
|
7993
|
+
vat_cents?: number;
|
|
7994
|
+
vat_rate?: number;
|
|
7995
|
+
viewed_at?: string | null;
|
|
7996
|
+
volgnummer?: number | null;
|
|
7997
|
+
werkbon_id?: string | null;
|
|
7998
|
+
work_location_id?: string | null;
|
|
7999
|
+
};
|
|
8000
|
+
Update: {
|
|
8001
|
+
ai_generated?: boolean;
|
|
8002
|
+
approved_at?: string | null;
|
|
8003
|
+
binnen_mandaat?: boolean;
|
|
8004
|
+
contact_id?: string | null;
|
|
8005
|
+
converted_at?: string | null;
|
|
8006
|
+
created_at?: string;
|
|
8007
|
+
created_by?: string | null;
|
|
8008
|
+
customer_id?: string | null;
|
|
8009
|
+
follow_up_werkbon_id?: string | null;
|
|
8010
|
+
id?: string;
|
|
8011
|
+
jaar?: number;
|
|
8012
|
+
mandaat_restant_cents?: number;
|
|
8013
|
+
notities?: string | null;
|
|
8014
|
+
offerte_number?: string | null;
|
|
8015
|
+
omschrijving?: string;
|
|
8016
|
+
rejected_at?: string | null;
|
|
8017
|
+
sent_at?: string | null;
|
|
8018
|
+
source_number?: string | null;
|
|
8019
|
+
source_ref?: string | null;
|
|
8020
|
+
source_type?: string;
|
|
8021
|
+
status?: string;
|
|
8022
|
+
subtotal_cents?: number;
|
|
8023
|
+
total_cents?: number;
|
|
8024
|
+
updated_at?: string;
|
|
8025
|
+
valid_until?: string | null;
|
|
8026
|
+
vat_cents?: number;
|
|
8027
|
+
vat_rate?: number;
|
|
8028
|
+
viewed_at?: string | null;
|
|
8029
|
+
volgnummer?: number | null;
|
|
8030
|
+
werkbon_id?: string | null;
|
|
8031
|
+
work_location_id?: string | null;
|
|
8032
|
+
};
|
|
8033
|
+
Relationships: [{
|
|
8034
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8035
|
+
columns: ["contact_id"];
|
|
8036
|
+
isOneToOne: false;
|
|
8037
|
+
referencedRelation: "itk_contact_persons";
|
|
8038
|
+
referencedColumns: ["id"];
|
|
8039
|
+
}, {
|
|
8040
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8041
|
+
columns: ["customer_id"];
|
|
8042
|
+
isOneToOne: false;
|
|
8043
|
+
referencedRelation: "itk_customers";
|
|
8044
|
+
referencedColumns: ["id"];
|
|
8045
|
+
}, {
|
|
8046
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8047
|
+
columns: ["follow_up_werkbon_id"];
|
|
8048
|
+
isOneToOne: false;
|
|
8049
|
+
referencedRelation: "werkbonnen";
|
|
8050
|
+
referencedColumns: ["id"];
|
|
8051
|
+
}, {
|
|
8052
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8053
|
+
columns: ["werkbon_id"];
|
|
8054
|
+
isOneToOne: false;
|
|
8055
|
+
referencedRelation: "werkbonnen";
|
|
8056
|
+
referencedColumns: ["id"];
|
|
8057
|
+
}, {
|
|
8058
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8059
|
+
columns: ["work_location_id"];
|
|
8060
|
+
isOneToOne: false;
|
|
8061
|
+
referencedRelation: "itk_work_locations";
|
|
8062
|
+
referencedColumns: ["id"];
|
|
8063
|
+
}];
|
|
8064
|
+
};
|
|
7777
8065
|
itk_work_locations: {
|
|
7778
8066
|
Row: {
|
|
7779
8067
|
city: string | null;
|
|
@@ -10147,6 +10435,63 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10147
10435
|
referencedColumns: ["id"];
|
|
10148
10436
|
}];
|
|
10149
10437
|
};
|
|
10438
|
+
medewerker_details: {
|
|
10439
|
+
Row: {
|
|
10440
|
+
color: string | null;
|
|
10441
|
+
created_at: string;
|
|
10442
|
+
hours_fri: number | null;
|
|
10443
|
+
hours_mon: number | null;
|
|
10444
|
+
hours_thu: number | null;
|
|
10445
|
+
hours_tue: number | null;
|
|
10446
|
+
hours_wed: number | null;
|
|
10447
|
+
id: string;
|
|
10448
|
+
is_active: boolean;
|
|
10449
|
+
leave_balance_hours: number;
|
|
10450
|
+
persnr: string | null;
|
|
10451
|
+
phone: string | null;
|
|
10452
|
+
profile_id: string;
|
|
10453
|
+
updated_at: string;
|
|
10454
|
+
};
|
|
10455
|
+
Insert: {
|
|
10456
|
+
color?: string | null;
|
|
10457
|
+
created_at?: string;
|
|
10458
|
+
hours_fri?: number | null;
|
|
10459
|
+
hours_mon?: number | null;
|
|
10460
|
+
hours_thu?: number | null;
|
|
10461
|
+
hours_tue?: number | null;
|
|
10462
|
+
hours_wed?: number | null;
|
|
10463
|
+
id?: string;
|
|
10464
|
+
is_active?: boolean;
|
|
10465
|
+
leave_balance_hours?: number;
|
|
10466
|
+
persnr?: string | null;
|
|
10467
|
+
phone?: string | null;
|
|
10468
|
+
profile_id: string;
|
|
10469
|
+
updated_at?: string;
|
|
10470
|
+
};
|
|
10471
|
+
Update: {
|
|
10472
|
+
color?: string | null;
|
|
10473
|
+
created_at?: string;
|
|
10474
|
+
hours_fri?: number | null;
|
|
10475
|
+
hours_mon?: number | null;
|
|
10476
|
+
hours_thu?: number | null;
|
|
10477
|
+
hours_tue?: number | null;
|
|
10478
|
+
hours_wed?: number | null;
|
|
10479
|
+
id?: string;
|
|
10480
|
+
is_active?: boolean;
|
|
10481
|
+
leave_balance_hours?: number;
|
|
10482
|
+
persnr?: string | null;
|
|
10483
|
+
phone?: string | null;
|
|
10484
|
+
profile_id?: string;
|
|
10485
|
+
updated_at?: string;
|
|
10486
|
+
};
|
|
10487
|
+
Relationships: [{
|
|
10488
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10489
|
+
columns: ["profile_id"];
|
|
10490
|
+
isOneToOne: true;
|
|
10491
|
+
referencedRelation: "profiles";
|
|
10492
|
+
referencedColumns: ["id"];
|
|
10493
|
+
}];
|
|
10494
|
+
};
|
|
10150
10495
|
module_features: {
|
|
10151
10496
|
Row: {
|
|
10152
10497
|
created_at: string;
|
|
@@ -11440,6 +11785,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
11440
11785
|
orders: {
|
|
11441
11786
|
Row: {
|
|
11442
11787
|
buffer_id: string | null;
|
|
11788
|
+
cancel_reason: string | null;
|
|
11789
|
+
cancelled_at: string | null;
|
|
11443
11790
|
created_at: string;
|
|
11444
11791
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
11445
11792
|
customer_id: string | null;
|
|
@@ -11462,6 +11809,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
11462
11809
|
};
|
|
11463
11810
|
Insert: {
|
|
11464
11811
|
buffer_id?: string | null;
|
|
11812
|
+
cancel_reason?: string | null;
|
|
11813
|
+
cancelled_at?: string | null;
|
|
11465
11814
|
created_at?: string;
|
|
11466
11815
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11467
11816
|
customer_id?: string | null;
|
|
@@ -11484,6 +11833,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
11484
11833
|
};
|
|
11485
11834
|
Update: {
|
|
11486
11835
|
buffer_id?: string | null;
|
|
11836
|
+
cancel_reason?: string | null;
|
|
11837
|
+
cancelled_at?: string | null;
|
|
11487
11838
|
created_at?: string;
|
|
11488
11839
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11489
11840
|
customer_id?: string | null;
|
|
@@ -13546,6 +13897,66 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
13546
13897
|
};
|
|
13547
13898
|
Relationships: [];
|
|
13548
13899
|
};
|
|
13900
|
+
profile_modules: {
|
|
13901
|
+
Row: {
|
|
13902
|
+
created_at: string;
|
|
13903
|
+
id: string;
|
|
13904
|
+
module_id: string;
|
|
13905
|
+
profile_id: string;
|
|
13906
|
+
};
|
|
13907
|
+
Insert: {
|
|
13908
|
+
created_at?: string;
|
|
13909
|
+
id?: string;
|
|
13910
|
+
module_id: string;
|
|
13911
|
+
profile_id: string;
|
|
13912
|
+
};
|
|
13913
|
+
Update: {
|
|
13914
|
+
created_at?: string;
|
|
13915
|
+
id?: string;
|
|
13916
|
+
module_id?: string;
|
|
13917
|
+
profile_id?: string;
|
|
13918
|
+
};
|
|
13919
|
+
Relationships: [{
|
|
13920
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
13921
|
+
columns: ["profile_id"];
|
|
13922
|
+
isOneToOne: false;
|
|
13923
|
+
referencedRelation: "profiles_org";
|
|
13924
|
+
referencedColumns: ["id"];
|
|
13925
|
+
}];
|
|
13926
|
+
};
|
|
13927
|
+
profile_roles: {
|
|
13928
|
+
Row: {
|
|
13929
|
+
created_at: string;
|
|
13930
|
+
id: string;
|
|
13931
|
+
profile_id: string;
|
|
13932
|
+
role_id: string;
|
|
13933
|
+
};
|
|
13934
|
+
Insert: {
|
|
13935
|
+
created_at?: string;
|
|
13936
|
+
id?: string;
|
|
13937
|
+
profile_id: string;
|
|
13938
|
+
role_id: string;
|
|
13939
|
+
};
|
|
13940
|
+
Update: {
|
|
13941
|
+
created_at?: string;
|
|
13942
|
+
id?: string;
|
|
13943
|
+
profile_id?: string;
|
|
13944
|
+
role_id?: string;
|
|
13945
|
+
};
|
|
13946
|
+
Relationships: [{
|
|
13947
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
13948
|
+
columns: ["profile_id"];
|
|
13949
|
+
isOneToOne: false;
|
|
13950
|
+
referencedRelation: "profiles_org";
|
|
13951
|
+
referencedColumns: ["id"];
|
|
13952
|
+
}, {
|
|
13953
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
13954
|
+
columns: ["role_id"];
|
|
13955
|
+
isOneToOne: false;
|
|
13956
|
+
referencedRelation: "roles";
|
|
13957
|
+
referencedColumns: ["id"];
|
|
13958
|
+
}];
|
|
13959
|
+
};
|
|
13549
13960
|
profiles: {
|
|
13550
13961
|
Row: {
|
|
13551
13962
|
address: string | null;
|
|
@@ -13591,6 +14002,39 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
13591
14002
|
referencedColumns: ["id"];
|
|
13592
14003
|
}];
|
|
13593
14004
|
};
|
|
14005
|
+
profiles_org: {
|
|
14006
|
+
Row: {
|
|
14007
|
+
created_at: string;
|
|
14008
|
+
id: string;
|
|
14009
|
+
is_default: boolean;
|
|
14010
|
+
name: string;
|
|
14011
|
+
tenant_id: string | null;
|
|
14012
|
+
updated_at: string;
|
|
14013
|
+
};
|
|
14014
|
+
Insert: {
|
|
14015
|
+
created_at?: string;
|
|
14016
|
+
id?: string;
|
|
14017
|
+
is_default?: boolean;
|
|
14018
|
+
name: string;
|
|
14019
|
+
tenant_id?: string | null;
|
|
14020
|
+
updated_at?: string;
|
|
14021
|
+
};
|
|
14022
|
+
Update: {
|
|
14023
|
+
created_at?: string;
|
|
14024
|
+
id?: string;
|
|
14025
|
+
is_default?: boolean;
|
|
14026
|
+
name?: string;
|
|
14027
|
+
tenant_id?: string | null;
|
|
14028
|
+
updated_at?: string;
|
|
14029
|
+
};
|
|
14030
|
+
Relationships: [{
|
|
14031
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14032
|
+
columns: ["tenant_id"];
|
|
14033
|
+
isOneToOne: false;
|
|
14034
|
+
referencedRelation: "tenants";
|
|
14035
|
+
referencedColumns: ["id"];
|
|
14036
|
+
}];
|
|
14037
|
+
};
|
|
13594
14038
|
projects: {
|
|
13595
14039
|
Row: {
|
|
13596
14040
|
contact_name: string | null;
|
|
@@ -14765,6 +15209,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
14765
15209
|
type: string;
|
|
14766
15210
|
updated_at: string;
|
|
14767
15211
|
vereist_medewerker: boolean;
|
|
15212
|
+
werkplek: string | null;
|
|
14768
15213
|
};
|
|
14769
15214
|
Insert: {
|
|
14770
15215
|
actief?: boolean;
|
|
@@ -14778,6 +15223,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
14778
15223
|
type?: string;
|
|
14779
15224
|
updated_at?: string;
|
|
14780
15225
|
vereist_medewerker?: boolean;
|
|
15226
|
+
werkplek?: string | null;
|
|
14781
15227
|
};
|
|
14782
15228
|
Update: {
|
|
14783
15229
|
actief?: boolean;
|
|
@@ -14791,9 +15237,46 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
14791
15237
|
type?: string;
|
|
14792
15238
|
updated_at?: string;
|
|
14793
15239
|
vereist_medewerker?: boolean;
|
|
15240
|
+
werkplek?: string | null;
|
|
14794
15241
|
};
|
|
14795
15242
|
Relationships: [];
|
|
14796
15243
|
};
|
|
15244
|
+
sick_periods: {
|
|
15245
|
+
Row: {
|
|
15246
|
+
created_at: string;
|
|
15247
|
+
employee_id: string;
|
|
15248
|
+
end_date: string | null;
|
|
15249
|
+
id: string;
|
|
15250
|
+
notes: string | null;
|
|
15251
|
+
start_date: string;
|
|
15252
|
+
updated_at: string;
|
|
15253
|
+
};
|
|
15254
|
+
Insert: {
|
|
15255
|
+
created_at?: string;
|
|
15256
|
+
employee_id: string;
|
|
15257
|
+
end_date?: string | null;
|
|
15258
|
+
id?: string;
|
|
15259
|
+
notes?: string | null;
|
|
15260
|
+
start_date: string;
|
|
15261
|
+
updated_at?: string;
|
|
15262
|
+
};
|
|
15263
|
+
Update: {
|
|
15264
|
+
created_at?: string;
|
|
15265
|
+
employee_id?: string;
|
|
15266
|
+
end_date?: string | null;
|
|
15267
|
+
id?: string;
|
|
15268
|
+
notes?: string | null;
|
|
15269
|
+
start_date?: string;
|
|
15270
|
+
updated_at?: string;
|
|
15271
|
+
};
|
|
15272
|
+
Relationships: [{
|
|
15273
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15274
|
+
columns: ["employee_id"];
|
|
15275
|
+
isOneToOne: false;
|
|
15276
|
+
referencedRelation: "profiles";
|
|
15277
|
+
referencedColumns: ["id"];
|
|
15278
|
+
}];
|
|
15279
|
+
};
|
|
14797
15280
|
sidebar_config: {
|
|
14798
15281
|
Row: {
|
|
14799
15282
|
id: string;
|
|
@@ -19478,6 +19961,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
19478
19961
|
};
|
|
19479
19962
|
Returns: string;
|
|
19480
19963
|
};
|
|
19964
|
+
employee_day_hours: {
|
|
19965
|
+
Args: {
|
|
19966
|
+
_day: string;
|
|
19967
|
+
_employee_id: string;
|
|
19968
|
+
};
|
|
19969
|
+
Returns: number;
|
|
19970
|
+
};
|
|
19481
19971
|
enqueue_cart_replan_if_unlocked: {
|
|
19482
19972
|
Args: {
|
|
19483
19973
|
p_order_id: string;
|
|
@@ -19831,6 +20321,19 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
19831
20321
|
Args: never;
|
|
19832
20322
|
Returns: boolean;
|
|
19833
20323
|
};
|
|
20324
|
+
itk_offerte_naar_werkbon: {
|
|
20325
|
+
Args: {
|
|
20326
|
+
_offerte_id: string;
|
|
20327
|
+
};
|
|
20328
|
+
Returns: string;
|
|
20329
|
+
};
|
|
20330
|
+
itk_offerte_restant_mandaat: {
|
|
20331
|
+
Args: {
|
|
20332
|
+
_exclude_offerte_id?: string;
|
|
20333
|
+
_werkbon_id: string;
|
|
20334
|
+
};
|
|
20335
|
+
Returns: number;
|
|
20336
|
+
};
|
|
19834
20337
|
jwt_has_role: {
|
|
19835
20338
|
Args: {
|
|
19836
20339
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -19841,9 +20344,19 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
19841
20344
|
Args: never;
|
|
19842
20345
|
Returns: {
|
|
19843
20346
|
avatar_url: string;
|
|
20347
|
+
color: string;
|
|
19844
20348
|
display_name: string;
|
|
19845
20349
|
email: string;
|
|
20350
|
+
hours_fri: number;
|
|
20351
|
+
hours_mon: number;
|
|
20352
|
+
hours_thu: number;
|
|
20353
|
+
hours_tue: number;
|
|
20354
|
+
hours_wed: number;
|
|
19846
20355
|
id: string;
|
|
20356
|
+
is_active: boolean;
|
|
20357
|
+
leave_balance_hours: number;
|
|
20358
|
+
persnr: string;
|
|
20359
|
+
phone: string;
|
|
19847
20360
|
roles: string[];
|
|
19848
20361
|
}[];
|
|
19849
20362
|
};
|
|
@@ -20170,17 +20683,6 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
20170
20683
|
Returns: string;
|
|
20171
20684
|
};
|
|
20172
20685
|
logistics_emit_event: {
|
|
20173
|
-
Args: {
|
|
20174
|
-
p_event_type: string;
|
|
20175
|
-
p_idempotency_key?: string;
|
|
20176
|
-
p_order_ref: string;
|
|
20177
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
20178
|
-
p_shadow?: boolean;
|
|
20179
|
-
p_source_module: string;
|
|
20180
|
-
p_strategy_id?: string;
|
|
20181
|
-
};
|
|
20182
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
20183
|
-
} | {
|
|
20184
20686
|
Args: {
|
|
20185
20687
|
p_event_type: string;
|
|
20186
20688
|
p_idempotency_key?: string;
|
|
@@ -21025,6 +21527,37 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
21025
21527
|
};
|
|
21026
21528
|
Returns: undefined;
|
|
21027
21529
|
};
|
|
21530
|
+
quote_create_from_source: {
|
|
21531
|
+
Args: {
|
|
21532
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
21533
|
+
_source_id: string;
|
|
21534
|
+
_source_type: string;
|
|
21535
|
+
};
|
|
21536
|
+
Returns: string;
|
|
21537
|
+
};
|
|
21538
|
+
quote_get_billable_lines: {
|
|
21539
|
+
Args: {
|
|
21540
|
+
_quotation_id: string;
|
|
21541
|
+
};
|
|
21542
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21543
|
+
};
|
|
21544
|
+
quote_get_summary: {
|
|
21545
|
+
Args: {
|
|
21546
|
+
_quotation_id: string;
|
|
21547
|
+
};
|
|
21548
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21549
|
+
};
|
|
21550
|
+
quote_list_packages: {
|
|
21551
|
+
Args: never;
|
|
21552
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21553
|
+
};
|
|
21554
|
+
quote_list_sources: {
|
|
21555
|
+
Args: {
|
|
21556
|
+
_limit?: number;
|
|
21557
|
+
_source_type?: string;
|
|
21558
|
+
};
|
|
21559
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21560
|
+
};
|
|
21028
21561
|
recompute_all_reserved_stock: {
|
|
21029
21562
|
Args: never;
|
|
21030
21563
|
Returns: undefined;
|
|
@@ -21560,6 +22093,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
21560
22093
|
};
|
|
21561
22094
|
Returns: undefined;
|
|
21562
22095
|
};
|
|
22096
|
+
sync_sick_time_off: {
|
|
22097
|
+
Args: {
|
|
22098
|
+
_period_id: string;
|
|
22099
|
+
};
|
|
22100
|
+
Returns: number;
|
|
22101
|
+
};
|
|
21563
22102
|
trade_item_stock_duplicates: {
|
|
21564
22103
|
Args: never;
|
|
21565
22104
|
Returns: {
|
|
@@ -21633,11 +22172,31 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
21633
22172
|
Args: never;
|
|
21634
22173
|
Returns: string;
|
|
21635
22174
|
};
|
|
22175
|
+
wo_create_from_source: {
|
|
22176
|
+
Args: {
|
|
22177
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
22178
|
+
_source_id: string;
|
|
22179
|
+
_source_type: string;
|
|
22180
|
+
};
|
|
22181
|
+
Returns: string;
|
|
22182
|
+
};
|
|
22183
|
+
wo_get_billable_lines: {
|
|
22184
|
+
Args: {
|
|
22185
|
+
_work_order_id: string;
|
|
22186
|
+
};
|
|
22187
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22188
|
+
};
|
|
22189
|
+
wo_get_summary: {
|
|
22190
|
+
Args: {
|
|
22191
|
+
_work_order_id: string;
|
|
22192
|
+
};
|
|
22193
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22194
|
+
};
|
|
21636
22195
|
};
|
|
21637
22196
|
Enums: {
|
|
21638
22197
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21639
22198
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21640
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
22199
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21641
22200
|
doc_orientation: "portrait" | "landscape";
|
|
21642
22201
|
exact_env: "staging" | "live";
|
|
21643
22202
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -26705,6 +27264,42 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
26705
27264
|
};
|
|
26706
27265
|
Relationships: [];
|
|
26707
27266
|
};
|
|
27267
|
+
facturen: {
|
|
27268
|
+
Row: {
|
|
27269
|
+
bedrag_incl_btw: number;
|
|
27270
|
+
created_at: string;
|
|
27271
|
+
datum: string;
|
|
27272
|
+
factuurnummer: string;
|
|
27273
|
+
id: string;
|
|
27274
|
+
klantnaam: string;
|
|
27275
|
+
status: string;
|
|
27276
|
+
updated_at: string;
|
|
27277
|
+
user_id: string;
|
|
27278
|
+
};
|
|
27279
|
+
Insert: {
|
|
27280
|
+
bedrag_incl_btw: number;
|
|
27281
|
+
created_at?: string;
|
|
27282
|
+
datum?: string;
|
|
27283
|
+
factuurnummer: string;
|
|
27284
|
+
id?: string;
|
|
27285
|
+
klantnaam: string;
|
|
27286
|
+
status?: string;
|
|
27287
|
+
updated_at?: string;
|
|
27288
|
+
user_id?: string;
|
|
27289
|
+
};
|
|
27290
|
+
Update: {
|
|
27291
|
+
bedrag_incl_btw?: number;
|
|
27292
|
+
created_at?: string;
|
|
27293
|
+
datum?: string;
|
|
27294
|
+
factuurnummer?: string;
|
|
27295
|
+
id?: string;
|
|
27296
|
+
klantnaam?: string;
|
|
27297
|
+
status?: string;
|
|
27298
|
+
updated_at?: string;
|
|
27299
|
+
user_id?: string;
|
|
27300
|
+
};
|
|
27301
|
+
Relationships: [];
|
|
27302
|
+
};
|
|
26708
27303
|
floricode_connection_settings: {
|
|
26709
27304
|
Row: {
|
|
26710
27305
|
catalog_key: string | null;
|
|
@@ -29429,6 +30024,258 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
29429
30024
|
};
|
|
29430
30025
|
Relationships: [];
|
|
29431
30026
|
};
|
|
30027
|
+
itk_offerte_events: {
|
|
30028
|
+
Row: {
|
|
30029
|
+
created_at: string;
|
|
30030
|
+
event_type: string;
|
|
30031
|
+
id: string;
|
|
30032
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
30033
|
+
offerte_id: string;
|
|
30034
|
+
omschrijving: string | null;
|
|
30035
|
+
user_id: string | null;
|
|
30036
|
+
};
|
|
30037
|
+
Insert: {
|
|
30038
|
+
created_at?: string;
|
|
30039
|
+
event_type: string;
|
|
30040
|
+
id?: string;
|
|
30041
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30042
|
+
offerte_id: string;
|
|
30043
|
+
omschrijving?: string | null;
|
|
30044
|
+
user_id?: string | null;
|
|
30045
|
+
};
|
|
30046
|
+
Update: {
|
|
30047
|
+
created_at?: string;
|
|
30048
|
+
event_type?: string;
|
|
30049
|
+
id?: string;
|
|
30050
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30051
|
+
offerte_id?: string;
|
|
30052
|
+
omschrijving?: string | null;
|
|
30053
|
+
user_id?: string | null;
|
|
30054
|
+
};
|
|
30055
|
+
Relationships: [{
|
|
30056
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
30057
|
+
columns: ["offerte_id"];
|
|
30058
|
+
isOneToOne: false;
|
|
30059
|
+
referencedRelation: "itk_offertes";
|
|
30060
|
+
referencedColumns: ["id"];
|
|
30061
|
+
}];
|
|
30062
|
+
};
|
|
30063
|
+
itk_offerte_regels: {
|
|
30064
|
+
Row: {
|
|
30065
|
+
created_at: string;
|
|
30066
|
+
id: string;
|
|
30067
|
+
line_total_cents: number;
|
|
30068
|
+
offerte_id: string;
|
|
30069
|
+
omschrijving: string;
|
|
30070
|
+
package_id: string | null;
|
|
30071
|
+
quantity: number;
|
|
30072
|
+
sort_order: number;
|
|
30073
|
+
source: string;
|
|
30074
|
+
unit_price_cents: number;
|
|
30075
|
+
updated_at: string;
|
|
30076
|
+
};
|
|
30077
|
+
Insert: {
|
|
30078
|
+
created_at?: string;
|
|
30079
|
+
id?: string;
|
|
30080
|
+
line_total_cents?: number;
|
|
30081
|
+
offerte_id: string;
|
|
30082
|
+
omschrijving?: string;
|
|
30083
|
+
package_id?: string | null;
|
|
30084
|
+
quantity?: number;
|
|
30085
|
+
sort_order?: number;
|
|
30086
|
+
source?: string;
|
|
30087
|
+
unit_price_cents?: number;
|
|
30088
|
+
updated_at?: string;
|
|
30089
|
+
};
|
|
30090
|
+
Update: {
|
|
30091
|
+
created_at?: string;
|
|
30092
|
+
id?: string;
|
|
30093
|
+
line_total_cents?: number;
|
|
30094
|
+
offerte_id?: string;
|
|
30095
|
+
omschrijving?: string;
|
|
30096
|
+
package_id?: string | null;
|
|
30097
|
+
quantity?: number;
|
|
30098
|
+
sort_order?: number;
|
|
30099
|
+
source?: string;
|
|
30100
|
+
unit_price_cents?: number;
|
|
30101
|
+
updated_at?: string;
|
|
30102
|
+
};
|
|
30103
|
+
Relationships: [{
|
|
30104
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
30105
|
+
columns: ["offerte_id"];
|
|
30106
|
+
isOneToOne: false;
|
|
30107
|
+
referencedRelation: "itk_offertes";
|
|
30108
|
+
referencedColumns: ["id"];
|
|
30109
|
+
}, {
|
|
30110
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
30111
|
+
columns: ["package_id"];
|
|
30112
|
+
isOneToOne: false;
|
|
30113
|
+
referencedRelation: "werkbon_packages";
|
|
30114
|
+
referencedColumns: ["id"];
|
|
30115
|
+
}];
|
|
30116
|
+
};
|
|
30117
|
+
itk_offerte_settings: {
|
|
30118
|
+
Row: {
|
|
30119
|
+
auto_convert_binnen_mandaat: boolean;
|
|
30120
|
+
created_at: string;
|
|
30121
|
+
default_geldigheid_dagen: number;
|
|
30122
|
+
default_vat_rate: number;
|
|
30123
|
+
id: string;
|
|
30124
|
+
singleton: boolean;
|
|
30125
|
+
updated_at: string;
|
|
30126
|
+
};
|
|
30127
|
+
Insert: {
|
|
30128
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30129
|
+
created_at?: string;
|
|
30130
|
+
default_geldigheid_dagen?: number;
|
|
30131
|
+
default_vat_rate?: number;
|
|
30132
|
+
id?: string;
|
|
30133
|
+
singleton?: boolean;
|
|
30134
|
+
updated_at?: string;
|
|
30135
|
+
};
|
|
30136
|
+
Update: {
|
|
30137
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30138
|
+
created_at?: string;
|
|
30139
|
+
default_geldigheid_dagen?: number;
|
|
30140
|
+
default_vat_rate?: number;
|
|
30141
|
+
id?: string;
|
|
30142
|
+
singleton?: boolean;
|
|
30143
|
+
updated_at?: string;
|
|
30144
|
+
};
|
|
30145
|
+
Relationships: [];
|
|
30146
|
+
};
|
|
30147
|
+
itk_offertes: {
|
|
30148
|
+
Row: {
|
|
30149
|
+
ai_generated: boolean;
|
|
30150
|
+
approved_at: string | null;
|
|
30151
|
+
binnen_mandaat: boolean;
|
|
30152
|
+
contact_id: string | null;
|
|
30153
|
+
converted_at: string | null;
|
|
30154
|
+
created_at: string;
|
|
30155
|
+
created_by: string | null;
|
|
30156
|
+
customer_id: string | null;
|
|
30157
|
+
follow_up_werkbon_id: string | null;
|
|
30158
|
+
id: string;
|
|
30159
|
+
jaar: number;
|
|
30160
|
+
mandaat_restant_cents: number;
|
|
30161
|
+
notities: string | null;
|
|
30162
|
+
offerte_number: string | null;
|
|
30163
|
+
omschrijving: string;
|
|
30164
|
+
rejected_at: string | null;
|
|
30165
|
+
sent_at: string | null;
|
|
30166
|
+
source_number: string | null;
|
|
30167
|
+
source_ref: string | null;
|
|
30168
|
+
source_type: string;
|
|
30169
|
+
status: string;
|
|
30170
|
+
subtotal_cents: number;
|
|
30171
|
+
total_cents: number;
|
|
30172
|
+
updated_at: string;
|
|
30173
|
+
valid_until: string | null;
|
|
30174
|
+
vat_cents: number;
|
|
30175
|
+
vat_rate: number;
|
|
30176
|
+
viewed_at: string | null;
|
|
30177
|
+
volgnummer: number | null;
|
|
30178
|
+
werkbon_id: string | null;
|
|
30179
|
+
work_location_id: string | null;
|
|
30180
|
+
};
|
|
30181
|
+
Insert: {
|
|
30182
|
+
ai_generated?: boolean;
|
|
30183
|
+
approved_at?: string | null;
|
|
30184
|
+
binnen_mandaat?: boolean;
|
|
30185
|
+
contact_id?: string | null;
|
|
30186
|
+
converted_at?: string | null;
|
|
30187
|
+
created_at?: string;
|
|
30188
|
+
created_by?: string | null;
|
|
30189
|
+
customer_id?: string | null;
|
|
30190
|
+
follow_up_werkbon_id?: string | null;
|
|
30191
|
+
id?: string;
|
|
30192
|
+
jaar?: number;
|
|
30193
|
+
mandaat_restant_cents?: number;
|
|
30194
|
+
notities?: string | null;
|
|
30195
|
+
offerte_number?: string | null;
|
|
30196
|
+
omschrijving?: string;
|
|
30197
|
+
rejected_at?: string | null;
|
|
30198
|
+
sent_at?: string | null;
|
|
30199
|
+
source_number?: string | null;
|
|
30200
|
+
source_ref?: string | null;
|
|
30201
|
+
source_type?: string;
|
|
30202
|
+
status?: string;
|
|
30203
|
+
subtotal_cents?: number;
|
|
30204
|
+
total_cents?: number;
|
|
30205
|
+
updated_at?: string;
|
|
30206
|
+
valid_until?: string | null;
|
|
30207
|
+
vat_cents?: number;
|
|
30208
|
+
vat_rate?: number;
|
|
30209
|
+
viewed_at?: string | null;
|
|
30210
|
+
volgnummer?: number | null;
|
|
30211
|
+
werkbon_id?: string | null;
|
|
30212
|
+
work_location_id?: string | null;
|
|
30213
|
+
};
|
|
30214
|
+
Update: {
|
|
30215
|
+
ai_generated?: boolean;
|
|
30216
|
+
approved_at?: string | null;
|
|
30217
|
+
binnen_mandaat?: boolean;
|
|
30218
|
+
contact_id?: string | null;
|
|
30219
|
+
converted_at?: string | null;
|
|
30220
|
+
created_at?: string;
|
|
30221
|
+
created_by?: string | null;
|
|
30222
|
+
customer_id?: string | null;
|
|
30223
|
+
follow_up_werkbon_id?: string | null;
|
|
30224
|
+
id?: string;
|
|
30225
|
+
jaar?: number;
|
|
30226
|
+
mandaat_restant_cents?: number;
|
|
30227
|
+
notities?: string | null;
|
|
30228
|
+
offerte_number?: string | null;
|
|
30229
|
+
omschrijving?: string;
|
|
30230
|
+
rejected_at?: string | null;
|
|
30231
|
+
sent_at?: string | null;
|
|
30232
|
+
source_number?: string | null;
|
|
30233
|
+
source_ref?: string | null;
|
|
30234
|
+
source_type?: string;
|
|
30235
|
+
status?: string;
|
|
30236
|
+
subtotal_cents?: number;
|
|
30237
|
+
total_cents?: number;
|
|
30238
|
+
updated_at?: string;
|
|
30239
|
+
valid_until?: string | null;
|
|
30240
|
+
vat_cents?: number;
|
|
30241
|
+
vat_rate?: number;
|
|
30242
|
+
viewed_at?: string | null;
|
|
30243
|
+
volgnummer?: number | null;
|
|
30244
|
+
werkbon_id?: string | null;
|
|
30245
|
+
work_location_id?: string | null;
|
|
30246
|
+
};
|
|
30247
|
+
Relationships: [{
|
|
30248
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
30249
|
+
columns: ["contact_id"];
|
|
30250
|
+
isOneToOne: false;
|
|
30251
|
+
referencedRelation: "itk_contact_persons";
|
|
30252
|
+
referencedColumns: ["id"];
|
|
30253
|
+
}, {
|
|
30254
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
30255
|
+
columns: ["customer_id"];
|
|
30256
|
+
isOneToOne: false;
|
|
30257
|
+
referencedRelation: "itk_customers";
|
|
30258
|
+
referencedColumns: ["id"];
|
|
30259
|
+
}, {
|
|
30260
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
30261
|
+
columns: ["follow_up_werkbon_id"];
|
|
30262
|
+
isOneToOne: false;
|
|
30263
|
+
referencedRelation: "werkbonnen";
|
|
30264
|
+
referencedColumns: ["id"];
|
|
30265
|
+
}, {
|
|
30266
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
30267
|
+
columns: ["werkbon_id"];
|
|
30268
|
+
isOneToOne: false;
|
|
30269
|
+
referencedRelation: "werkbonnen";
|
|
30270
|
+
referencedColumns: ["id"];
|
|
30271
|
+
}, {
|
|
30272
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
30273
|
+
columns: ["work_location_id"];
|
|
30274
|
+
isOneToOne: false;
|
|
30275
|
+
referencedRelation: "itk_work_locations";
|
|
30276
|
+
referencedColumns: ["id"];
|
|
30277
|
+
}];
|
|
30278
|
+
};
|
|
29432
30279
|
itk_work_locations: {
|
|
29433
30280
|
Row: {
|
|
29434
30281
|
city: string | null;
|
|
@@ -31802,6 +32649,63 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
31802
32649
|
referencedColumns: ["id"];
|
|
31803
32650
|
}];
|
|
31804
32651
|
};
|
|
32652
|
+
medewerker_details: {
|
|
32653
|
+
Row: {
|
|
32654
|
+
color: string | null;
|
|
32655
|
+
created_at: string;
|
|
32656
|
+
hours_fri: number | null;
|
|
32657
|
+
hours_mon: number | null;
|
|
32658
|
+
hours_thu: number | null;
|
|
32659
|
+
hours_tue: number | null;
|
|
32660
|
+
hours_wed: number | null;
|
|
32661
|
+
id: string;
|
|
32662
|
+
is_active: boolean;
|
|
32663
|
+
leave_balance_hours: number;
|
|
32664
|
+
persnr: string | null;
|
|
32665
|
+
phone: string | null;
|
|
32666
|
+
profile_id: string;
|
|
32667
|
+
updated_at: string;
|
|
32668
|
+
};
|
|
32669
|
+
Insert: {
|
|
32670
|
+
color?: string | null;
|
|
32671
|
+
created_at?: string;
|
|
32672
|
+
hours_fri?: number | null;
|
|
32673
|
+
hours_mon?: number | null;
|
|
32674
|
+
hours_thu?: number | null;
|
|
32675
|
+
hours_tue?: number | null;
|
|
32676
|
+
hours_wed?: number | null;
|
|
32677
|
+
id?: string;
|
|
32678
|
+
is_active?: boolean;
|
|
32679
|
+
leave_balance_hours?: number;
|
|
32680
|
+
persnr?: string | null;
|
|
32681
|
+
phone?: string | null;
|
|
32682
|
+
profile_id: string;
|
|
32683
|
+
updated_at?: string;
|
|
32684
|
+
};
|
|
32685
|
+
Update: {
|
|
32686
|
+
color?: string | null;
|
|
32687
|
+
created_at?: string;
|
|
32688
|
+
hours_fri?: number | null;
|
|
32689
|
+
hours_mon?: number | null;
|
|
32690
|
+
hours_thu?: number | null;
|
|
32691
|
+
hours_tue?: number | null;
|
|
32692
|
+
hours_wed?: number | null;
|
|
32693
|
+
id?: string;
|
|
32694
|
+
is_active?: boolean;
|
|
32695
|
+
leave_balance_hours?: number;
|
|
32696
|
+
persnr?: string | null;
|
|
32697
|
+
phone?: string | null;
|
|
32698
|
+
profile_id?: string;
|
|
32699
|
+
updated_at?: string;
|
|
32700
|
+
};
|
|
32701
|
+
Relationships: [{
|
|
32702
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
32703
|
+
columns: ["profile_id"];
|
|
32704
|
+
isOneToOne: true;
|
|
32705
|
+
referencedRelation: "profiles";
|
|
32706
|
+
referencedColumns: ["id"];
|
|
32707
|
+
}];
|
|
32708
|
+
};
|
|
31805
32709
|
module_features: {
|
|
31806
32710
|
Row: {
|
|
31807
32711
|
created_at: string;
|
|
@@ -33095,6 +33999,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
33095
33999
|
orders: {
|
|
33096
34000
|
Row: {
|
|
33097
34001
|
buffer_id: string | null;
|
|
34002
|
+
cancel_reason: string | null;
|
|
34003
|
+
cancelled_at: string | null;
|
|
33098
34004
|
created_at: string;
|
|
33099
34005
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
33100
34006
|
customer_id: string | null;
|
|
@@ -33117,6 +34023,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
33117
34023
|
};
|
|
33118
34024
|
Insert: {
|
|
33119
34025
|
buffer_id?: string | null;
|
|
34026
|
+
cancel_reason?: string | null;
|
|
34027
|
+
cancelled_at?: string | null;
|
|
33120
34028
|
created_at?: string;
|
|
33121
34029
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33122
34030
|
customer_id?: string | null;
|
|
@@ -33139,6 +34047,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
33139
34047
|
};
|
|
33140
34048
|
Update: {
|
|
33141
34049
|
buffer_id?: string | null;
|
|
34050
|
+
cancel_reason?: string | null;
|
|
34051
|
+
cancelled_at?: string | null;
|
|
33142
34052
|
created_at?: string;
|
|
33143
34053
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33144
34054
|
customer_id?: string | null;
|
|
@@ -35201,6 +36111,66 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
35201
36111
|
};
|
|
35202
36112
|
Relationships: [];
|
|
35203
36113
|
};
|
|
36114
|
+
profile_modules: {
|
|
36115
|
+
Row: {
|
|
36116
|
+
created_at: string;
|
|
36117
|
+
id: string;
|
|
36118
|
+
module_id: string;
|
|
36119
|
+
profile_id: string;
|
|
36120
|
+
};
|
|
36121
|
+
Insert: {
|
|
36122
|
+
created_at?: string;
|
|
36123
|
+
id?: string;
|
|
36124
|
+
module_id: string;
|
|
36125
|
+
profile_id: string;
|
|
36126
|
+
};
|
|
36127
|
+
Update: {
|
|
36128
|
+
created_at?: string;
|
|
36129
|
+
id?: string;
|
|
36130
|
+
module_id?: string;
|
|
36131
|
+
profile_id?: string;
|
|
36132
|
+
};
|
|
36133
|
+
Relationships: [{
|
|
36134
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
36135
|
+
columns: ["profile_id"];
|
|
36136
|
+
isOneToOne: false;
|
|
36137
|
+
referencedRelation: "profiles_org";
|
|
36138
|
+
referencedColumns: ["id"];
|
|
36139
|
+
}];
|
|
36140
|
+
};
|
|
36141
|
+
profile_roles: {
|
|
36142
|
+
Row: {
|
|
36143
|
+
created_at: string;
|
|
36144
|
+
id: string;
|
|
36145
|
+
profile_id: string;
|
|
36146
|
+
role_id: string;
|
|
36147
|
+
};
|
|
36148
|
+
Insert: {
|
|
36149
|
+
created_at?: string;
|
|
36150
|
+
id?: string;
|
|
36151
|
+
profile_id: string;
|
|
36152
|
+
role_id: string;
|
|
36153
|
+
};
|
|
36154
|
+
Update: {
|
|
36155
|
+
created_at?: string;
|
|
36156
|
+
id?: string;
|
|
36157
|
+
profile_id?: string;
|
|
36158
|
+
role_id?: string;
|
|
36159
|
+
};
|
|
36160
|
+
Relationships: [{
|
|
36161
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
36162
|
+
columns: ["profile_id"];
|
|
36163
|
+
isOneToOne: false;
|
|
36164
|
+
referencedRelation: "profiles_org";
|
|
36165
|
+
referencedColumns: ["id"];
|
|
36166
|
+
}, {
|
|
36167
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
36168
|
+
columns: ["role_id"];
|
|
36169
|
+
isOneToOne: false;
|
|
36170
|
+
referencedRelation: "roles";
|
|
36171
|
+
referencedColumns: ["id"];
|
|
36172
|
+
}];
|
|
36173
|
+
};
|
|
35204
36174
|
profiles: {
|
|
35205
36175
|
Row: {
|
|
35206
36176
|
address: string | null;
|
|
@@ -35246,6 +36216,39 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
35246
36216
|
referencedColumns: ["id"];
|
|
35247
36217
|
}];
|
|
35248
36218
|
};
|
|
36219
|
+
profiles_org: {
|
|
36220
|
+
Row: {
|
|
36221
|
+
created_at: string;
|
|
36222
|
+
id: string;
|
|
36223
|
+
is_default: boolean;
|
|
36224
|
+
name: string;
|
|
36225
|
+
tenant_id: string | null;
|
|
36226
|
+
updated_at: string;
|
|
36227
|
+
};
|
|
36228
|
+
Insert: {
|
|
36229
|
+
created_at?: string;
|
|
36230
|
+
id?: string;
|
|
36231
|
+
is_default?: boolean;
|
|
36232
|
+
name: string;
|
|
36233
|
+
tenant_id?: string | null;
|
|
36234
|
+
updated_at?: string;
|
|
36235
|
+
};
|
|
36236
|
+
Update: {
|
|
36237
|
+
created_at?: string;
|
|
36238
|
+
id?: string;
|
|
36239
|
+
is_default?: boolean;
|
|
36240
|
+
name?: string;
|
|
36241
|
+
tenant_id?: string | null;
|
|
36242
|
+
updated_at?: string;
|
|
36243
|
+
};
|
|
36244
|
+
Relationships: [{
|
|
36245
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
36246
|
+
columns: ["tenant_id"];
|
|
36247
|
+
isOneToOne: false;
|
|
36248
|
+
referencedRelation: "tenants";
|
|
36249
|
+
referencedColumns: ["id"];
|
|
36250
|
+
}];
|
|
36251
|
+
};
|
|
35249
36252
|
projects: {
|
|
35250
36253
|
Row: {
|
|
35251
36254
|
contact_name: string | null;
|
|
@@ -36420,6 +37423,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
36420
37423
|
type: string;
|
|
36421
37424
|
updated_at: string;
|
|
36422
37425
|
vereist_medewerker: boolean;
|
|
37426
|
+
werkplek: string | null;
|
|
36423
37427
|
};
|
|
36424
37428
|
Insert: {
|
|
36425
37429
|
actief?: boolean;
|
|
@@ -36433,6 +37437,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
36433
37437
|
type?: string;
|
|
36434
37438
|
updated_at?: string;
|
|
36435
37439
|
vereist_medewerker?: boolean;
|
|
37440
|
+
werkplek?: string | null;
|
|
36436
37441
|
};
|
|
36437
37442
|
Update: {
|
|
36438
37443
|
actief?: boolean;
|
|
@@ -36446,9 +37451,46 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
36446
37451
|
type?: string;
|
|
36447
37452
|
updated_at?: string;
|
|
36448
37453
|
vereist_medewerker?: boolean;
|
|
37454
|
+
werkplek?: string | null;
|
|
36449
37455
|
};
|
|
36450
37456
|
Relationships: [];
|
|
36451
37457
|
};
|
|
37458
|
+
sick_periods: {
|
|
37459
|
+
Row: {
|
|
37460
|
+
created_at: string;
|
|
37461
|
+
employee_id: string;
|
|
37462
|
+
end_date: string | null;
|
|
37463
|
+
id: string;
|
|
37464
|
+
notes: string | null;
|
|
37465
|
+
start_date: string;
|
|
37466
|
+
updated_at: string;
|
|
37467
|
+
};
|
|
37468
|
+
Insert: {
|
|
37469
|
+
created_at?: string;
|
|
37470
|
+
employee_id: string;
|
|
37471
|
+
end_date?: string | null;
|
|
37472
|
+
id?: string;
|
|
37473
|
+
notes?: string | null;
|
|
37474
|
+
start_date: string;
|
|
37475
|
+
updated_at?: string;
|
|
37476
|
+
};
|
|
37477
|
+
Update: {
|
|
37478
|
+
created_at?: string;
|
|
37479
|
+
employee_id?: string;
|
|
37480
|
+
end_date?: string | null;
|
|
37481
|
+
id?: string;
|
|
37482
|
+
notes?: string | null;
|
|
37483
|
+
start_date?: string;
|
|
37484
|
+
updated_at?: string;
|
|
37485
|
+
};
|
|
37486
|
+
Relationships: [{
|
|
37487
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
37488
|
+
columns: ["employee_id"];
|
|
37489
|
+
isOneToOne: false;
|
|
37490
|
+
referencedRelation: "profiles";
|
|
37491
|
+
referencedColumns: ["id"];
|
|
37492
|
+
}];
|
|
37493
|
+
};
|
|
36452
37494
|
sidebar_config: {
|
|
36453
37495
|
Row: {
|
|
36454
37496
|
id: string;
|
|
@@ -41133,6 +42175,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
41133
42175
|
};
|
|
41134
42176
|
Returns: string;
|
|
41135
42177
|
};
|
|
42178
|
+
employee_day_hours: {
|
|
42179
|
+
Args: {
|
|
42180
|
+
_day: string;
|
|
42181
|
+
_employee_id: string;
|
|
42182
|
+
};
|
|
42183
|
+
Returns: number;
|
|
42184
|
+
};
|
|
41136
42185
|
enqueue_cart_replan_if_unlocked: {
|
|
41137
42186
|
Args: {
|
|
41138
42187
|
p_order_id: string;
|
|
@@ -41486,6 +42535,19 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
41486
42535
|
Args: never;
|
|
41487
42536
|
Returns: boolean;
|
|
41488
42537
|
};
|
|
42538
|
+
itk_offerte_naar_werkbon: {
|
|
42539
|
+
Args: {
|
|
42540
|
+
_offerte_id: string;
|
|
42541
|
+
};
|
|
42542
|
+
Returns: string;
|
|
42543
|
+
};
|
|
42544
|
+
itk_offerte_restant_mandaat: {
|
|
42545
|
+
Args: {
|
|
42546
|
+
_exclude_offerte_id?: string;
|
|
42547
|
+
_werkbon_id: string;
|
|
42548
|
+
};
|
|
42549
|
+
Returns: number;
|
|
42550
|
+
};
|
|
41489
42551
|
jwt_has_role: {
|
|
41490
42552
|
Args: {
|
|
41491
42553
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -41496,9 +42558,19 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
41496
42558
|
Args: never;
|
|
41497
42559
|
Returns: {
|
|
41498
42560
|
avatar_url: string;
|
|
42561
|
+
color: string;
|
|
41499
42562
|
display_name: string;
|
|
41500
42563
|
email: string;
|
|
42564
|
+
hours_fri: number;
|
|
42565
|
+
hours_mon: number;
|
|
42566
|
+
hours_thu: number;
|
|
42567
|
+
hours_tue: number;
|
|
42568
|
+
hours_wed: number;
|
|
41501
42569
|
id: string;
|
|
42570
|
+
is_active: boolean;
|
|
42571
|
+
leave_balance_hours: number;
|
|
42572
|
+
persnr: string;
|
|
42573
|
+
phone: string;
|
|
41502
42574
|
roles: string[];
|
|
41503
42575
|
}[];
|
|
41504
42576
|
};
|
|
@@ -41825,17 +42897,6 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
41825
42897
|
Returns: string;
|
|
41826
42898
|
};
|
|
41827
42899
|
logistics_emit_event: {
|
|
41828
|
-
Args: {
|
|
41829
|
-
p_event_type: string;
|
|
41830
|
-
p_idempotency_key?: string;
|
|
41831
|
-
p_order_ref: string;
|
|
41832
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
41833
|
-
p_shadow?: boolean;
|
|
41834
|
-
p_source_module: string;
|
|
41835
|
-
p_strategy_id?: string;
|
|
41836
|
-
};
|
|
41837
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
41838
|
-
} | {
|
|
41839
42900
|
Args: {
|
|
41840
42901
|
p_event_type: string;
|
|
41841
42902
|
p_idempotency_key?: string;
|
|
@@ -42680,6 +43741,37 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
42680
43741
|
};
|
|
42681
43742
|
Returns: undefined;
|
|
42682
43743
|
};
|
|
43744
|
+
quote_create_from_source: {
|
|
43745
|
+
Args: {
|
|
43746
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
43747
|
+
_source_id: string;
|
|
43748
|
+
_source_type: string;
|
|
43749
|
+
};
|
|
43750
|
+
Returns: string;
|
|
43751
|
+
};
|
|
43752
|
+
quote_get_billable_lines: {
|
|
43753
|
+
Args: {
|
|
43754
|
+
_quotation_id: string;
|
|
43755
|
+
};
|
|
43756
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43757
|
+
};
|
|
43758
|
+
quote_get_summary: {
|
|
43759
|
+
Args: {
|
|
43760
|
+
_quotation_id: string;
|
|
43761
|
+
};
|
|
43762
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43763
|
+
};
|
|
43764
|
+
quote_list_packages: {
|
|
43765
|
+
Args: never;
|
|
43766
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43767
|
+
};
|
|
43768
|
+
quote_list_sources: {
|
|
43769
|
+
Args: {
|
|
43770
|
+
_limit?: number;
|
|
43771
|
+
_source_type?: string;
|
|
43772
|
+
};
|
|
43773
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43774
|
+
};
|
|
42683
43775
|
recompute_all_reserved_stock: {
|
|
42684
43776
|
Args: never;
|
|
42685
43777
|
Returns: undefined;
|
|
@@ -43215,6 +44307,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
43215
44307
|
};
|
|
43216
44308
|
Returns: undefined;
|
|
43217
44309
|
};
|
|
44310
|
+
sync_sick_time_off: {
|
|
44311
|
+
Args: {
|
|
44312
|
+
_period_id: string;
|
|
44313
|
+
};
|
|
44314
|
+
Returns: number;
|
|
44315
|
+
};
|
|
43218
44316
|
trade_item_stock_duplicates: {
|
|
43219
44317
|
Args: never;
|
|
43220
44318
|
Returns: {
|
|
@@ -43288,11 +44386,31 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
43288
44386
|
Args: never;
|
|
43289
44387
|
Returns: string;
|
|
43290
44388
|
};
|
|
44389
|
+
wo_create_from_source: {
|
|
44390
|
+
Args: {
|
|
44391
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
44392
|
+
_source_id: string;
|
|
44393
|
+
_source_type: string;
|
|
44394
|
+
};
|
|
44395
|
+
Returns: string;
|
|
44396
|
+
};
|
|
44397
|
+
wo_get_billable_lines: {
|
|
44398
|
+
Args: {
|
|
44399
|
+
_work_order_id: string;
|
|
44400
|
+
};
|
|
44401
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44402
|
+
};
|
|
44403
|
+
wo_get_summary: {
|
|
44404
|
+
Args: {
|
|
44405
|
+
_work_order_id: string;
|
|
44406
|
+
};
|
|
44407
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44408
|
+
};
|
|
43291
44409
|
};
|
|
43292
44410
|
Enums: {
|
|
43293
44411
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
43294
44412
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
43295
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
44413
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
43296
44414
|
doc_orientation: "portrait" | "landscape";
|
|
43297
44415
|
exact_env: "staging" | "live";
|
|
43298
44416
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -48370,6 +49488,42 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
48370
49488
|
};
|
|
48371
49489
|
Relationships: [];
|
|
48372
49490
|
};
|
|
49491
|
+
facturen: {
|
|
49492
|
+
Row: {
|
|
49493
|
+
bedrag_incl_btw: number;
|
|
49494
|
+
created_at: string;
|
|
49495
|
+
datum: string;
|
|
49496
|
+
factuurnummer: string;
|
|
49497
|
+
id: string;
|
|
49498
|
+
klantnaam: string;
|
|
49499
|
+
status: string;
|
|
49500
|
+
updated_at: string;
|
|
49501
|
+
user_id: string;
|
|
49502
|
+
};
|
|
49503
|
+
Insert: {
|
|
49504
|
+
bedrag_incl_btw: number;
|
|
49505
|
+
created_at?: string;
|
|
49506
|
+
datum?: string;
|
|
49507
|
+
factuurnummer: string;
|
|
49508
|
+
id?: string;
|
|
49509
|
+
klantnaam: string;
|
|
49510
|
+
status?: string;
|
|
49511
|
+
updated_at?: string;
|
|
49512
|
+
user_id?: string;
|
|
49513
|
+
};
|
|
49514
|
+
Update: {
|
|
49515
|
+
bedrag_incl_btw?: number;
|
|
49516
|
+
created_at?: string;
|
|
49517
|
+
datum?: string;
|
|
49518
|
+
factuurnummer?: string;
|
|
49519
|
+
id?: string;
|
|
49520
|
+
klantnaam?: string;
|
|
49521
|
+
status?: string;
|
|
49522
|
+
updated_at?: string;
|
|
49523
|
+
user_id?: string;
|
|
49524
|
+
};
|
|
49525
|
+
Relationships: [];
|
|
49526
|
+
};
|
|
48373
49527
|
floricode_connection_settings: {
|
|
48374
49528
|
Row: {
|
|
48375
49529
|
catalog_key: string | null;
|
|
@@ -51094,6 +52248,258 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
51094
52248
|
};
|
|
51095
52249
|
Relationships: [];
|
|
51096
52250
|
};
|
|
52251
|
+
itk_offerte_events: {
|
|
52252
|
+
Row: {
|
|
52253
|
+
created_at: string;
|
|
52254
|
+
event_type: string;
|
|
52255
|
+
id: string;
|
|
52256
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
52257
|
+
offerte_id: string;
|
|
52258
|
+
omschrijving: string | null;
|
|
52259
|
+
user_id: string | null;
|
|
52260
|
+
};
|
|
52261
|
+
Insert: {
|
|
52262
|
+
created_at?: string;
|
|
52263
|
+
event_type: string;
|
|
52264
|
+
id?: string;
|
|
52265
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52266
|
+
offerte_id: string;
|
|
52267
|
+
omschrijving?: string | null;
|
|
52268
|
+
user_id?: string | null;
|
|
52269
|
+
};
|
|
52270
|
+
Update: {
|
|
52271
|
+
created_at?: string;
|
|
52272
|
+
event_type?: string;
|
|
52273
|
+
id?: string;
|
|
52274
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52275
|
+
offerte_id?: string;
|
|
52276
|
+
omschrijving?: string | null;
|
|
52277
|
+
user_id?: string | null;
|
|
52278
|
+
};
|
|
52279
|
+
Relationships: [{
|
|
52280
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
52281
|
+
columns: ["offerte_id"];
|
|
52282
|
+
isOneToOne: false;
|
|
52283
|
+
referencedRelation: "itk_offertes";
|
|
52284
|
+
referencedColumns: ["id"];
|
|
52285
|
+
}];
|
|
52286
|
+
};
|
|
52287
|
+
itk_offerte_regels: {
|
|
52288
|
+
Row: {
|
|
52289
|
+
created_at: string;
|
|
52290
|
+
id: string;
|
|
52291
|
+
line_total_cents: number;
|
|
52292
|
+
offerte_id: string;
|
|
52293
|
+
omschrijving: string;
|
|
52294
|
+
package_id: string | null;
|
|
52295
|
+
quantity: number;
|
|
52296
|
+
sort_order: number;
|
|
52297
|
+
source: string;
|
|
52298
|
+
unit_price_cents: number;
|
|
52299
|
+
updated_at: string;
|
|
52300
|
+
};
|
|
52301
|
+
Insert: {
|
|
52302
|
+
created_at?: string;
|
|
52303
|
+
id?: string;
|
|
52304
|
+
line_total_cents?: number;
|
|
52305
|
+
offerte_id: string;
|
|
52306
|
+
omschrijving?: string;
|
|
52307
|
+
package_id?: string | null;
|
|
52308
|
+
quantity?: number;
|
|
52309
|
+
sort_order?: number;
|
|
52310
|
+
source?: string;
|
|
52311
|
+
unit_price_cents?: number;
|
|
52312
|
+
updated_at?: string;
|
|
52313
|
+
};
|
|
52314
|
+
Update: {
|
|
52315
|
+
created_at?: string;
|
|
52316
|
+
id?: string;
|
|
52317
|
+
line_total_cents?: number;
|
|
52318
|
+
offerte_id?: string;
|
|
52319
|
+
omschrijving?: string;
|
|
52320
|
+
package_id?: string | null;
|
|
52321
|
+
quantity?: number;
|
|
52322
|
+
sort_order?: number;
|
|
52323
|
+
source?: string;
|
|
52324
|
+
unit_price_cents?: number;
|
|
52325
|
+
updated_at?: string;
|
|
52326
|
+
};
|
|
52327
|
+
Relationships: [{
|
|
52328
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
52329
|
+
columns: ["offerte_id"];
|
|
52330
|
+
isOneToOne: false;
|
|
52331
|
+
referencedRelation: "itk_offertes";
|
|
52332
|
+
referencedColumns: ["id"];
|
|
52333
|
+
}, {
|
|
52334
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
52335
|
+
columns: ["package_id"];
|
|
52336
|
+
isOneToOne: false;
|
|
52337
|
+
referencedRelation: "werkbon_packages";
|
|
52338
|
+
referencedColumns: ["id"];
|
|
52339
|
+
}];
|
|
52340
|
+
};
|
|
52341
|
+
itk_offerte_settings: {
|
|
52342
|
+
Row: {
|
|
52343
|
+
auto_convert_binnen_mandaat: boolean;
|
|
52344
|
+
created_at: string;
|
|
52345
|
+
default_geldigheid_dagen: number;
|
|
52346
|
+
default_vat_rate: number;
|
|
52347
|
+
id: string;
|
|
52348
|
+
singleton: boolean;
|
|
52349
|
+
updated_at: string;
|
|
52350
|
+
};
|
|
52351
|
+
Insert: {
|
|
52352
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52353
|
+
created_at?: string;
|
|
52354
|
+
default_geldigheid_dagen?: number;
|
|
52355
|
+
default_vat_rate?: number;
|
|
52356
|
+
id?: string;
|
|
52357
|
+
singleton?: boolean;
|
|
52358
|
+
updated_at?: string;
|
|
52359
|
+
};
|
|
52360
|
+
Update: {
|
|
52361
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52362
|
+
created_at?: string;
|
|
52363
|
+
default_geldigheid_dagen?: number;
|
|
52364
|
+
default_vat_rate?: number;
|
|
52365
|
+
id?: string;
|
|
52366
|
+
singleton?: boolean;
|
|
52367
|
+
updated_at?: string;
|
|
52368
|
+
};
|
|
52369
|
+
Relationships: [];
|
|
52370
|
+
};
|
|
52371
|
+
itk_offertes: {
|
|
52372
|
+
Row: {
|
|
52373
|
+
ai_generated: boolean;
|
|
52374
|
+
approved_at: string | null;
|
|
52375
|
+
binnen_mandaat: boolean;
|
|
52376
|
+
contact_id: string | null;
|
|
52377
|
+
converted_at: string | null;
|
|
52378
|
+
created_at: string;
|
|
52379
|
+
created_by: string | null;
|
|
52380
|
+
customer_id: string | null;
|
|
52381
|
+
follow_up_werkbon_id: string | null;
|
|
52382
|
+
id: string;
|
|
52383
|
+
jaar: number;
|
|
52384
|
+
mandaat_restant_cents: number;
|
|
52385
|
+
notities: string | null;
|
|
52386
|
+
offerte_number: string | null;
|
|
52387
|
+
omschrijving: string;
|
|
52388
|
+
rejected_at: string | null;
|
|
52389
|
+
sent_at: string | null;
|
|
52390
|
+
source_number: string | null;
|
|
52391
|
+
source_ref: string | null;
|
|
52392
|
+
source_type: string;
|
|
52393
|
+
status: string;
|
|
52394
|
+
subtotal_cents: number;
|
|
52395
|
+
total_cents: number;
|
|
52396
|
+
updated_at: string;
|
|
52397
|
+
valid_until: string | null;
|
|
52398
|
+
vat_cents: number;
|
|
52399
|
+
vat_rate: number;
|
|
52400
|
+
viewed_at: string | null;
|
|
52401
|
+
volgnummer: number | null;
|
|
52402
|
+
werkbon_id: string | null;
|
|
52403
|
+
work_location_id: string | null;
|
|
52404
|
+
};
|
|
52405
|
+
Insert: {
|
|
52406
|
+
ai_generated?: boolean;
|
|
52407
|
+
approved_at?: string | null;
|
|
52408
|
+
binnen_mandaat?: boolean;
|
|
52409
|
+
contact_id?: string | null;
|
|
52410
|
+
converted_at?: string | null;
|
|
52411
|
+
created_at?: string;
|
|
52412
|
+
created_by?: string | null;
|
|
52413
|
+
customer_id?: string | null;
|
|
52414
|
+
follow_up_werkbon_id?: string | null;
|
|
52415
|
+
id?: string;
|
|
52416
|
+
jaar?: number;
|
|
52417
|
+
mandaat_restant_cents?: number;
|
|
52418
|
+
notities?: string | null;
|
|
52419
|
+
offerte_number?: string | null;
|
|
52420
|
+
omschrijving?: string;
|
|
52421
|
+
rejected_at?: string | null;
|
|
52422
|
+
sent_at?: string | null;
|
|
52423
|
+
source_number?: string | null;
|
|
52424
|
+
source_ref?: string | null;
|
|
52425
|
+
source_type?: string;
|
|
52426
|
+
status?: string;
|
|
52427
|
+
subtotal_cents?: number;
|
|
52428
|
+
total_cents?: number;
|
|
52429
|
+
updated_at?: string;
|
|
52430
|
+
valid_until?: string | null;
|
|
52431
|
+
vat_cents?: number;
|
|
52432
|
+
vat_rate?: number;
|
|
52433
|
+
viewed_at?: string | null;
|
|
52434
|
+
volgnummer?: number | null;
|
|
52435
|
+
werkbon_id?: string | null;
|
|
52436
|
+
work_location_id?: string | null;
|
|
52437
|
+
};
|
|
52438
|
+
Update: {
|
|
52439
|
+
ai_generated?: boolean;
|
|
52440
|
+
approved_at?: string | null;
|
|
52441
|
+
binnen_mandaat?: boolean;
|
|
52442
|
+
contact_id?: string | null;
|
|
52443
|
+
converted_at?: string | null;
|
|
52444
|
+
created_at?: string;
|
|
52445
|
+
created_by?: string | null;
|
|
52446
|
+
customer_id?: string | null;
|
|
52447
|
+
follow_up_werkbon_id?: string | null;
|
|
52448
|
+
id?: string;
|
|
52449
|
+
jaar?: number;
|
|
52450
|
+
mandaat_restant_cents?: number;
|
|
52451
|
+
notities?: string | null;
|
|
52452
|
+
offerte_number?: string | null;
|
|
52453
|
+
omschrijving?: string;
|
|
52454
|
+
rejected_at?: string | null;
|
|
52455
|
+
sent_at?: string | null;
|
|
52456
|
+
source_number?: string | null;
|
|
52457
|
+
source_ref?: string | null;
|
|
52458
|
+
source_type?: string;
|
|
52459
|
+
status?: string;
|
|
52460
|
+
subtotal_cents?: number;
|
|
52461
|
+
total_cents?: number;
|
|
52462
|
+
updated_at?: string;
|
|
52463
|
+
valid_until?: string | null;
|
|
52464
|
+
vat_cents?: number;
|
|
52465
|
+
vat_rate?: number;
|
|
52466
|
+
viewed_at?: string | null;
|
|
52467
|
+
volgnummer?: number | null;
|
|
52468
|
+
werkbon_id?: string | null;
|
|
52469
|
+
work_location_id?: string | null;
|
|
52470
|
+
};
|
|
52471
|
+
Relationships: [{
|
|
52472
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
52473
|
+
columns: ["contact_id"];
|
|
52474
|
+
isOneToOne: false;
|
|
52475
|
+
referencedRelation: "itk_contact_persons";
|
|
52476
|
+
referencedColumns: ["id"];
|
|
52477
|
+
}, {
|
|
52478
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
52479
|
+
columns: ["customer_id"];
|
|
52480
|
+
isOneToOne: false;
|
|
52481
|
+
referencedRelation: "itk_customers";
|
|
52482
|
+
referencedColumns: ["id"];
|
|
52483
|
+
}, {
|
|
52484
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
52485
|
+
columns: ["follow_up_werkbon_id"];
|
|
52486
|
+
isOneToOne: false;
|
|
52487
|
+
referencedRelation: "werkbonnen";
|
|
52488
|
+
referencedColumns: ["id"];
|
|
52489
|
+
}, {
|
|
52490
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
52491
|
+
columns: ["werkbon_id"];
|
|
52492
|
+
isOneToOne: false;
|
|
52493
|
+
referencedRelation: "werkbonnen";
|
|
52494
|
+
referencedColumns: ["id"];
|
|
52495
|
+
}, {
|
|
52496
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
52497
|
+
columns: ["work_location_id"];
|
|
52498
|
+
isOneToOne: false;
|
|
52499
|
+
referencedRelation: "itk_work_locations";
|
|
52500
|
+
referencedColumns: ["id"];
|
|
52501
|
+
}];
|
|
52502
|
+
};
|
|
51097
52503
|
itk_work_locations: {
|
|
51098
52504
|
Row: {
|
|
51099
52505
|
city: string | null;
|
|
@@ -53467,6 +54873,63 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
53467
54873
|
referencedColumns: ["id"];
|
|
53468
54874
|
}];
|
|
53469
54875
|
};
|
|
54876
|
+
medewerker_details: {
|
|
54877
|
+
Row: {
|
|
54878
|
+
color: string | null;
|
|
54879
|
+
created_at: string;
|
|
54880
|
+
hours_fri: number | null;
|
|
54881
|
+
hours_mon: number | null;
|
|
54882
|
+
hours_thu: number | null;
|
|
54883
|
+
hours_tue: number | null;
|
|
54884
|
+
hours_wed: number | null;
|
|
54885
|
+
id: string;
|
|
54886
|
+
is_active: boolean;
|
|
54887
|
+
leave_balance_hours: number;
|
|
54888
|
+
persnr: string | null;
|
|
54889
|
+
phone: string | null;
|
|
54890
|
+
profile_id: string;
|
|
54891
|
+
updated_at: string;
|
|
54892
|
+
};
|
|
54893
|
+
Insert: {
|
|
54894
|
+
color?: string | null;
|
|
54895
|
+
created_at?: string;
|
|
54896
|
+
hours_fri?: number | null;
|
|
54897
|
+
hours_mon?: number | null;
|
|
54898
|
+
hours_thu?: number | null;
|
|
54899
|
+
hours_tue?: number | null;
|
|
54900
|
+
hours_wed?: number | null;
|
|
54901
|
+
id?: string;
|
|
54902
|
+
is_active?: boolean;
|
|
54903
|
+
leave_balance_hours?: number;
|
|
54904
|
+
persnr?: string | null;
|
|
54905
|
+
phone?: string | null;
|
|
54906
|
+
profile_id: string;
|
|
54907
|
+
updated_at?: string;
|
|
54908
|
+
};
|
|
54909
|
+
Update: {
|
|
54910
|
+
color?: string | null;
|
|
54911
|
+
created_at?: string;
|
|
54912
|
+
hours_fri?: number | null;
|
|
54913
|
+
hours_mon?: number | null;
|
|
54914
|
+
hours_thu?: number | null;
|
|
54915
|
+
hours_tue?: number | null;
|
|
54916
|
+
hours_wed?: number | null;
|
|
54917
|
+
id?: string;
|
|
54918
|
+
is_active?: boolean;
|
|
54919
|
+
leave_balance_hours?: number;
|
|
54920
|
+
persnr?: string | null;
|
|
54921
|
+
phone?: string | null;
|
|
54922
|
+
profile_id?: string;
|
|
54923
|
+
updated_at?: string;
|
|
54924
|
+
};
|
|
54925
|
+
Relationships: [{
|
|
54926
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
54927
|
+
columns: ["profile_id"];
|
|
54928
|
+
isOneToOne: true;
|
|
54929
|
+
referencedRelation: "profiles";
|
|
54930
|
+
referencedColumns: ["id"];
|
|
54931
|
+
}];
|
|
54932
|
+
};
|
|
53470
54933
|
module_features: {
|
|
53471
54934
|
Row: {
|
|
53472
54935
|
created_at: string;
|
|
@@ -54760,6 +56223,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
54760
56223
|
orders: {
|
|
54761
56224
|
Row: {
|
|
54762
56225
|
buffer_id: string | null;
|
|
56226
|
+
cancel_reason: string | null;
|
|
56227
|
+
cancelled_at: string | null;
|
|
54763
56228
|
created_at: string;
|
|
54764
56229
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
54765
56230
|
customer_id: string | null;
|
|
@@ -54782,6 +56247,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
54782
56247
|
};
|
|
54783
56248
|
Insert: {
|
|
54784
56249
|
buffer_id?: string | null;
|
|
56250
|
+
cancel_reason?: string | null;
|
|
56251
|
+
cancelled_at?: string | null;
|
|
54785
56252
|
created_at?: string;
|
|
54786
56253
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54787
56254
|
customer_id?: string | null;
|
|
@@ -54804,6 +56271,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
54804
56271
|
};
|
|
54805
56272
|
Update: {
|
|
54806
56273
|
buffer_id?: string | null;
|
|
56274
|
+
cancel_reason?: string | null;
|
|
56275
|
+
cancelled_at?: string | null;
|
|
54807
56276
|
created_at?: string;
|
|
54808
56277
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54809
56278
|
customer_id?: string | null;
|
|
@@ -56866,6 +58335,66 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
56866
58335
|
};
|
|
56867
58336
|
Relationships: [];
|
|
56868
58337
|
};
|
|
58338
|
+
profile_modules: {
|
|
58339
|
+
Row: {
|
|
58340
|
+
created_at: string;
|
|
58341
|
+
id: string;
|
|
58342
|
+
module_id: string;
|
|
58343
|
+
profile_id: string;
|
|
58344
|
+
};
|
|
58345
|
+
Insert: {
|
|
58346
|
+
created_at?: string;
|
|
58347
|
+
id?: string;
|
|
58348
|
+
module_id: string;
|
|
58349
|
+
profile_id: string;
|
|
58350
|
+
};
|
|
58351
|
+
Update: {
|
|
58352
|
+
created_at?: string;
|
|
58353
|
+
id?: string;
|
|
58354
|
+
module_id?: string;
|
|
58355
|
+
profile_id?: string;
|
|
58356
|
+
};
|
|
58357
|
+
Relationships: [{
|
|
58358
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
58359
|
+
columns: ["profile_id"];
|
|
58360
|
+
isOneToOne: false;
|
|
58361
|
+
referencedRelation: "profiles_org";
|
|
58362
|
+
referencedColumns: ["id"];
|
|
58363
|
+
}];
|
|
58364
|
+
};
|
|
58365
|
+
profile_roles: {
|
|
58366
|
+
Row: {
|
|
58367
|
+
created_at: string;
|
|
58368
|
+
id: string;
|
|
58369
|
+
profile_id: string;
|
|
58370
|
+
role_id: string;
|
|
58371
|
+
};
|
|
58372
|
+
Insert: {
|
|
58373
|
+
created_at?: string;
|
|
58374
|
+
id?: string;
|
|
58375
|
+
profile_id: string;
|
|
58376
|
+
role_id: string;
|
|
58377
|
+
};
|
|
58378
|
+
Update: {
|
|
58379
|
+
created_at?: string;
|
|
58380
|
+
id?: string;
|
|
58381
|
+
profile_id?: string;
|
|
58382
|
+
role_id?: string;
|
|
58383
|
+
};
|
|
58384
|
+
Relationships: [{
|
|
58385
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
58386
|
+
columns: ["profile_id"];
|
|
58387
|
+
isOneToOne: false;
|
|
58388
|
+
referencedRelation: "profiles_org";
|
|
58389
|
+
referencedColumns: ["id"];
|
|
58390
|
+
}, {
|
|
58391
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
58392
|
+
columns: ["role_id"];
|
|
58393
|
+
isOneToOne: false;
|
|
58394
|
+
referencedRelation: "roles";
|
|
58395
|
+
referencedColumns: ["id"];
|
|
58396
|
+
}];
|
|
58397
|
+
};
|
|
56869
58398
|
profiles: {
|
|
56870
58399
|
Row: {
|
|
56871
58400
|
address: string | null;
|
|
@@ -56911,6 +58440,39 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
56911
58440
|
referencedColumns: ["id"];
|
|
56912
58441
|
}];
|
|
56913
58442
|
};
|
|
58443
|
+
profiles_org: {
|
|
58444
|
+
Row: {
|
|
58445
|
+
created_at: string;
|
|
58446
|
+
id: string;
|
|
58447
|
+
is_default: boolean;
|
|
58448
|
+
name: string;
|
|
58449
|
+
tenant_id: string | null;
|
|
58450
|
+
updated_at: string;
|
|
58451
|
+
};
|
|
58452
|
+
Insert: {
|
|
58453
|
+
created_at?: string;
|
|
58454
|
+
id?: string;
|
|
58455
|
+
is_default?: boolean;
|
|
58456
|
+
name: string;
|
|
58457
|
+
tenant_id?: string | null;
|
|
58458
|
+
updated_at?: string;
|
|
58459
|
+
};
|
|
58460
|
+
Update: {
|
|
58461
|
+
created_at?: string;
|
|
58462
|
+
id?: string;
|
|
58463
|
+
is_default?: boolean;
|
|
58464
|
+
name?: string;
|
|
58465
|
+
tenant_id?: string | null;
|
|
58466
|
+
updated_at?: string;
|
|
58467
|
+
};
|
|
58468
|
+
Relationships: [{
|
|
58469
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
58470
|
+
columns: ["tenant_id"];
|
|
58471
|
+
isOneToOne: false;
|
|
58472
|
+
referencedRelation: "tenants";
|
|
58473
|
+
referencedColumns: ["id"];
|
|
58474
|
+
}];
|
|
58475
|
+
};
|
|
56914
58476
|
projects: {
|
|
56915
58477
|
Row: {
|
|
56916
58478
|
contact_name: string | null;
|
|
@@ -58085,6 +59647,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
58085
59647
|
type: string;
|
|
58086
59648
|
updated_at: string;
|
|
58087
59649
|
vereist_medewerker: boolean;
|
|
59650
|
+
werkplek: string | null;
|
|
58088
59651
|
};
|
|
58089
59652
|
Insert: {
|
|
58090
59653
|
actief?: boolean;
|
|
@@ -58098,6 +59661,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
58098
59661
|
type?: string;
|
|
58099
59662
|
updated_at?: string;
|
|
58100
59663
|
vereist_medewerker?: boolean;
|
|
59664
|
+
werkplek?: string | null;
|
|
58101
59665
|
};
|
|
58102
59666
|
Update: {
|
|
58103
59667
|
actief?: boolean;
|
|
@@ -58111,9 +59675,46 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
58111
59675
|
type?: string;
|
|
58112
59676
|
updated_at?: string;
|
|
58113
59677
|
vereist_medewerker?: boolean;
|
|
59678
|
+
werkplek?: string | null;
|
|
58114
59679
|
};
|
|
58115
59680
|
Relationships: [];
|
|
58116
59681
|
};
|
|
59682
|
+
sick_periods: {
|
|
59683
|
+
Row: {
|
|
59684
|
+
created_at: string;
|
|
59685
|
+
employee_id: string;
|
|
59686
|
+
end_date: string | null;
|
|
59687
|
+
id: string;
|
|
59688
|
+
notes: string | null;
|
|
59689
|
+
start_date: string;
|
|
59690
|
+
updated_at: string;
|
|
59691
|
+
};
|
|
59692
|
+
Insert: {
|
|
59693
|
+
created_at?: string;
|
|
59694
|
+
employee_id: string;
|
|
59695
|
+
end_date?: string | null;
|
|
59696
|
+
id?: string;
|
|
59697
|
+
notes?: string | null;
|
|
59698
|
+
start_date: string;
|
|
59699
|
+
updated_at?: string;
|
|
59700
|
+
};
|
|
59701
|
+
Update: {
|
|
59702
|
+
created_at?: string;
|
|
59703
|
+
employee_id?: string;
|
|
59704
|
+
end_date?: string | null;
|
|
59705
|
+
id?: string;
|
|
59706
|
+
notes?: string | null;
|
|
59707
|
+
start_date?: string;
|
|
59708
|
+
updated_at?: string;
|
|
59709
|
+
};
|
|
59710
|
+
Relationships: [{
|
|
59711
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
59712
|
+
columns: ["employee_id"];
|
|
59713
|
+
isOneToOne: false;
|
|
59714
|
+
referencedRelation: "profiles";
|
|
59715
|
+
referencedColumns: ["id"];
|
|
59716
|
+
}];
|
|
59717
|
+
};
|
|
58117
59718
|
sidebar_config: {
|
|
58118
59719
|
Row: {
|
|
58119
59720
|
id: string;
|
|
@@ -62798,6 +64399,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
62798
64399
|
};
|
|
62799
64400
|
Returns: string;
|
|
62800
64401
|
};
|
|
64402
|
+
employee_day_hours: {
|
|
64403
|
+
Args: {
|
|
64404
|
+
_day: string;
|
|
64405
|
+
_employee_id: string;
|
|
64406
|
+
};
|
|
64407
|
+
Returns: number;
|
|
64408
|
+
};
|
|
62801
64409
|
enqueue_cart_replan_if_unlocked: {
|
|
62802
64410
|
Args: {
|
|
62803
64411
|
p_order_id: string;
|
|
@@ -63151,6 +64759,19 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
63151
64759
|
Args: never;
|
|
63152
64760
|
Returns: boolean;
|
|
63153
64761
|
};
|
|
64762
|
+
itk_offerte_naar_werkbon: {
|
|
64763
|
+
Args: {
|
|
64764
|
+
_offerte_id: string;
|
|
64765
|
+
};
|
|
64766
|
+
Returns: string;
|
|
64767
|
+
};
|
|
64768
|
+
itk_offerte_restant_mandaat: {
|
|
64769
|
+
Args: {
|
|
64770
|
+
_exclude_offerte_id?: string;
|
|
64771
|
+
_werkbon_id: string;
|
|
64772
|
+
};
|
|
64773
|
+
Returns: number;
|
|
64774
|
+
};
|
|
63154
64775
|
jwt_has_role: {
|
|
63155
64776
|
Args: {
|
|
63156
64777
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -63161,9 +64782,19 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
63161
64782
|
Args: never;
|
|
63162
64783
|
Returns: {
|
|
63163
64784
|
avatar_url: string;
|
|
64785
|
+
color: string;
|
|
63164
64786
|
display_name: string;
|
|
63165
64787
|
email: string;
|
|
64788
|
+
hours_fri: number;
|
|
64789
|
+
hours_mon: number;
|
|
64790
|
+
hours_thu: number;
|
|
64791
|
+
hours_tue: number;
|
|
64792
|
+
hours_wed: number;
|
|
63166
64793
|
id: string;
|
|
64794
|
+
is_active: boolean;
|
|
64795
|
+
leave_balance_hours: number;
|
|
64796
|
+
persnr: string;
|
|
64797
|
+
phone: string;
|
|
63167
64798
|
roles: string[];
|
|
63168
64799
|
}[];
|
|
63169
64800
|
};
|
|
@@ -63490,17 +65121,6 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
63490
65121
|
Returns: string;
|
|
63491
65122
|
};
|
|
63492
65123
|
logistics_emit_event: {
|
|
63493
|
-
Args: {
|
|
63494
|
-
p_event_type: string;
|
|
63495
|
-
p_idempotency_key?: string;
|
|
63496
|
-
p_order_ref: string;
|
|
63497
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
63498
|
-
p_shadow?: boolean;
|
|
63499
|
-
p_source_module: string;
|
|
63500
|
-
p_strategy_id?: string;
|
|
63501
|
-
};
|
|
63502
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
63503
|
-
} | {
|
|
63504
65124
|
Args: {
|
|
63505
65125
|
p_event_type: string;
|
|
63506
65126
|
p_idempotency_key?: string;
|
|
@@ -64345,6 +65965,37 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
64345
65965
|
};
|
|
64346
65966
|
Returns: undefined;
|
|
64347
65967
|
};
|
|
65968
|
+
quote_create_from_source: {
|
|
65969
|
+
Args: {
|
|
65970
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
65971
|
+
_source_id: string;
|
|
65972
|
+
_source_type: string;
|
|
65973
|
+
};
|
|
65974
|
+
Returns: string;
|
|
65975
|
+
};
|
|
65976
|
+
quote_get_billable_lines: {
|
|
65977
|
+
Args: {
|
|
65978
|
+
_quotation_id: string;
|
|
65979
|
+
};
|
|
65980
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65981
|
+
};
|
|
65982
|
+
quote_get_summary: {
|
|
65983
|
+
Args: {
|
|
65984
|
+
_quotation_id: string;
|
|
65985
|
+
};
|
|
65986
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65987
|
+
};
|
|
65988
|
+
quote_list_packages: {
|
|
65989
|
+
Args: never;
|
|
65990
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65991
|
+
};
|
|
65992
|
+
quote_list_sources: {
|
|
65993
|
+
Args: {
|
|
65994
|
+
_limit?: number;
|
|
65995
|
+
_source_type?: string;
|
|
65996
|
+
};
|
|
65997
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65998
|
+
};
|
|
64348
65999
|
recompute_all_reserved_stock: {
|
|
64349
66000
|
Args: never;
|
|
64350
66001
|
Returns: undefined;
|
|
@@ -64880,6 +66531,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
64880
66531
|
};
|
|
64881
66532
|
Returns: undefined;
|
|
64882
66533
|
};
|
|
66534
|
+
sync_sick_time_off: {
|
|
66535
|
+
Args: {
|
|
66536
|
+
_period_id: string;
|
|
66537
|
+
};
|
|
66538
|
+
Returns: number;
|
|
66539
|
+
};
|
|
64883
66540
|
trade_item_stock_duplicates: {
|
|
64884
66541
|
Args: never;
|
|
64885
66542
|
Returns: {
|
|
@@ -64953,11 +66610,31 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
64953
66610
|
Args: never;
|
|
64954
66611
|
Returns: string;
|
|
64955
66612
|
};
|
|
66613
|
+
wo_create_from_source: {
|
|
66614
|
+
Args: {
|
|
66615
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
66616
|
+
_source_id: string;
|
|
66617
|
+
_source_type: string;
|
|
66618
|
+
};
|
|
66619
|
+
Returns: string;
|
|
66620
|
+
};
|
|
66621
|
+
wo_get_billable_lines: {
|
|
66622
|
+
Args: {
|
|
66623
|
+
_work_order_id: string;
|
|
66624
|
+
};
|
|
66625
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66626
|
+
};
|
|
66627
|
+
wo_get_summary: {
|
|
66628
|
+
Args: {
|
|
66629
|
+
_work_order_id: string;
|
|
66630
|
+
};
|
|
66631
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66632
|
+
};
|
|
64956
66633
|
};
|
|
64957
66634
|
Enums: {
|
|
64958
66635
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
64959
66636
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
64960
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
66637
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
64961
66638
|
doc_orientation: "portrait" | "landscape";
|
|
64962
66639
|
exact_env: "staging" | "live";
|
|
64963
66640
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -70053,6 +71730,42 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
70053
71730
|
};
|
|
70054
71731
|
Relationships: [];
|
|
70055
71732
|
};
|
|
71733
|
+
facturen: {
|
|
71734
|
+
Row: {
|
|
71735
|
+
bedrag_incl_btw: number;
|
|
71736
|
+
created_at: string;
|
|
71737
|
+
datum: string;
|
|
71738
|
+
factuurnummer: string;
|
|
71739
|
+
id: string;
|
|
71740
|
+
klantnaam: string;
|
|
71741
|
+
status: string;
|
|
71742
|
+
updated_at: string;
|
|
71743
|
+
user_id: string;
|
|
71744
|
+
};
|
|
71745
|
+
Insert: {
|
|
71746
|
+
bedrag_incl_btw: number;
|
|
71747
|
+
created_at?: string;
|
|
71748
|
+
datum?: string;
|
|
71749
|
+
factuurnummer: string;
|
|
71750
|
+
id?: string;
|
|
71751
|
+
klantnaam: string;
|
|
71752
|
+
status?: string;
|
|
71753
|
+
updated_at?: string;
|
|
71754
|
+
user_id?: string;
|
|
71755
|
+
};
|
|
71756
|
+
Update: {
|
|
71757
|
+
bedrag_incl_btw?: number;
|
|
71758
|
+
created_at?: string;
|
|
71759
|
+
datum?: string;
|
|
71760
|
+
factuurnummer?: string;
|
|
71761
|
+
id?: string;
|
|
71762
|
+
klantnaam?: string;
|
|
71763
|
+
status?: string;
|
|
71764
|
+
updated_at?: string;
|
|
71765
|
+
user_id?: string;
|
|
71766
|
+
};
|
|
71767
|
+
Relationships: [];
|
|
71768
|
+
};
|
|
70056
71769
|
floricode_connection_settings: {
|
|
70057
71770
|
Row: {
|
|
70058
71771
|
catalog_key: string | null;
|
|
@@ -72777,6 +74490,258 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
72777
74490
|
};
|
|
72778
74491
|
Relationships: [];
|
|
72779
74492
|
};
|
|
74493
|
+
itk_offerte_events: {
|
|
74494
|
+
Row: {
|
|
74495
|
+
created_at: string;
|
|
74496
|
+
event_type: string;
|
|
74497
|
+
id: string;
|
|
74498
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
74499
|
+
offerte_id: string;
|
|
74500
|
+
omschrijving: string | null;
|
|
74501
|
+
user_id: string | null;
|
|
74502
|
+
};
|
|
74503
|
+
Insert: {
|
|
74504
|
+
created_at?: string;
|
|
74505
|
+
event_type: string;
|
|
74506
|
+
id?: string;
|
|
74507
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
74508
|
+
offerte_id: string;
|
|
74509
|
+
omschrijving?: string | null;
|
|
74510
|
+
user_id?: string | null;
|
|
74511
|
+
};
|
|
74512
|
+
Update: {
|
|
74513
|
+
created_at?: string;
|
|
74514
|
+
event_type?: string;
|
|
74515
|
+
id?: string;
|
|
74516
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
74517
|
+
offerte_id?: string;
|
|
74518
|
+
omschrijving?: string | null;
|
|
74519
|
+
user_id?: string | null;
|
|
74520
|
+
};
|
|
74521
|
+
Relationships: [{
|
|
74522
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
74523
|
+
columns: ["offerte_id"];
|
|
74524
|
+
isOneToOne: false;
|
|
74525
|
+
referencedRelation: "itk_offertes";
|
|
74526
|
+
referencedColumns: ["id"];
|
|
74527
|
+
}];
|
|
74528
|
+
};
|
|
74529
|
+
itk_offerte_regels: {
|
|
74530
|
+
Row: {
|
|
74531
|
+
created_at: string;
|
|
74532
|
+
id: string;
|
|
74533
|
+
line_total_cents: number;
|
|
74534
|
+
offerte_id: string;
|
|
74535
|
+
omschrijving: string;
|
|
74536
|
+
package_id: string | null;
|
|
74537
|
+
quantity: number;
|
|
74538
|
+
sort_order: number;
|
|
74539
|
+
source: string;
|
|
74540
|
+
unit_price_cents: number;
|
|
74541
|
+
updated_at: string;
|
|
74542
|
+
};
|
|
74543
|
+
Insert: {
|
|
74544
|
+
created_at?: string;
|
|
74545
|
+
id?: string;
|
|
74546
|
+
line_total_cents?: number;
|
|
74547
|
+
offerte_id: string;
|
|
74548
|
+
omschrijving?: string;
|
|
74549
|
+
package_id?: string | null;
|
|
74550
|
+
quantity?: number;
|
|
74551
|
+
sort_order?: number;
|
|
74552
|
+
source?: string;
|
|
74553
|
+
unit_price_cents?: number;
|
|
74554
|
+
updated_at?: string;
|
|
74555
|
+
};
|
|
74556
|
+
Update: {
|
|
74557
|
+
created_at?: string;
|
|
74558
|
+
id?: string;
|
|
74559
|
+
line_total_cents?: number;
|
|
74560
|
+
offerte_id?: string;
|
|
74561
|
+
omschrijving?: string;
|
|
74562
|
+
package_id?: string | null;
|
|
74563
|
+
quantity?: number;
|
|
74564
|
+
sort_order?: number;
|
|
74565
|
+
source?: string;
|
|
74566
|
+
unit_price_cents?: number;
|
|
74567
|
+
updated_at?: string;
|
|
74568
|
+
};
|
|
74569
|
+
Relationships: [{
|
|
74570
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
74571
|
+
columns: ["offerte_id"];
|
|
74572
|
+
isOneToOne: false;
|
|
74573
|
+
referencedRelation: "itk_offertes";
|
|
74574
|
+
referencedColumns: ["id"];
|
|
74575
|
+
}, {
|
|
74576
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
74577
|
+
columns: ["package_id"];
|
|
74578
|
+
isOneToOne: false;
|
|
74579
|
+
referencedRelation: "werkbon_packages";
|
|
74580
|
+
referencedColumns: ["id"];
|
|
74581
|
+
}];
|
|
74582
|
+
};
|
|
74583
|
+
itk_offerte_settings: {
|
|
74584
|
+
Row: {
|
|
74585
|
+
auto_convert_binnen_mandaat: boolean;
|
|
74586
|
+
created_at: string;
|
|
74587
|
+
default_geldigheid_dagen: number;
|
|
74588
|
+
default_vat_rate: number;
|
|
74589
|
+
id: string;
|
|
74590
|
+
singleton: boolean;
|
|
74591
|
+
updated_at: string;
|
|
74592
|
+
};
|
|
74593
|
+
Insert: {
|
|
74594
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
74595
|
+
created_at?: string;
|
|
74596
|
+
default_geldigheid_dagen?: number;
|
|
74597
|
+
default_vat_rate?: number;
|
|
74598
|
+
id?: string;
|
|
74599
|
+
singleton?: boolean;
|
|
74600
|
+
updated_at?: string;
|
|
74601
|
+
};
|
|
74602
|
+
Update: {
|
|
74603
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
74604
|
+
created_at?: string;
|
|
74605
|
+
default_geldigheid_dagen?: number;
|
|
74606
|
+
default_vat_rate?: number;
|
|
74607
|
+
id?: string;
|
|
74608
|
+
singleton?: boolean;
|
|
74609
|
+
updated_at?: string;
|
|
74610
|
+
};
|
|
74611
|
+
Relationships: [];
|
|
74612
|
+
};
|
|
74613
|
+
itk_offertes: {
|
|
74614
|
+
Row: {
|
|
74615
|
+
ai_generated: boolean;
|
|
74616
|
+
approved_at: string | null;
|
|
74617
|
+
binnen_mandaat: boolean;
|
|
74618
|
+
contact_id: string | null;
|
|
74619
|
+
converted_at: string | null;
|
|
74620
|
+
created_at: string;
|
|
74621
|
+
created_by: string | null;
|
|
74622
|
+
customer_id: string | null;
|
|
74623
|
+
follow_up_werkbon_id: string | null;
|
|
74624
|
+
id: string;
|
|
74625
|
+
jaar: number;
|
|
74626
|
+
mandaat_restant_cents: number;
|
|
74627
|
+
notities: string | null;
|
|
74628
|
+
offerte_number: string | null;
|
|
74629
|
+
omschrijving: string;
|
|
74630
|
+
rejected_at: string | null;
|
|
74631
|
+
sent_at: string | null;
|
|
74632
|
+
source_number: string | null;
|
|
74633
|
+
source_ref: string | null;
|
|
74634
|
+
source_type: string;
|
|
74635
|
+
status: string;
|
|
74636
|
+
subtotal_cents: number;
|
|
74637
|
+
total_cents: number;
|
|
74638
|
+
updated_at: string;
|
|
74639
|
+
valid_until: string | null;
|
|
74640
|
+
vat_cents: number;
|
|
74641
|
+
vat_rate: number;
|
|
74642
|
+
viewed_at: string | null;
|
|
74643
|
+
volgnummer: number | null;
|
|
74644
|
+
werkbon_id: string | null;
|
|
74645
|
+
work_location_id: string | null;
|
|
74646
|
+
};
|
|
74647
|
+
Insert: {
|
|
74648
|
+
ai_generated?: boolean;
|
|
74649
|
+
approved_at?: string | null;
|
|
74650
|
+
binnen_mandaat?: boolean;
|
|
74651
|
+
contact_id?: string | null;
|
|
74652
|
+
converted_at?: string | null;
|
|
74653
|
+
created_at?: string;
|
|
74654
|
+
created_by?: string | null;
|
|
74655
|
+
customer_id?: string | null;
|
|
74656
|
+
follow_up_werkbon_id?: string | null;
|
|
74657
|
+
id?: string;
|
|
74658
|
+
jaar?: number;
|
|
74659
|
+
mandaat_restant_cents?: number;
|
|
74660
|
+
notities?: string | null;
|
|
74661
|
+
offerte_number?: string | null;
|
|
74662
|
+
omschrijving?: string;
|
|
74663
|
+
rejected_at?: string | null;
|
|
74664
|
+
sent_at?: string | null;
|
|
74665
|
+
source_number?: string | null;
|
|
74666
|
+
source_ref?: string | null;
|
|
74667
|
+
source_type?: string;
|
|
74668
|
+
status?: string;
|
|
74669
|
+
subtotal_cents?: number;
|
|
74670
|
+
total_cents?: number;
|
|
74671
|
+
updated_at?: string;
|
|
74672
|
+
valid_until?: string | null;
|
|
74673
|
+
vat_cents?: number;
|
|
74674
|
+
vat_rate?: number;
|
|
74675
|
+
viewed_at?: string | null;
|
|
74676
|
+
volgnummer?: number | null;
|
|
74677
|
+
werkbon_id?: string | null;
|
|
74678
|
+
work_location_id?: string | null;
|
|
74679
|
+
};
|
|
74680
|
+
Update: {
|
|
74681
|
+
ai_generated?: boolean;
|
|
74682
|
+
approved_at?: string | null;
|
|
74683
|
+
binnen_mandaat?: boolean;
|
|
74684
|
+
contact_id?: string | null;
|
|
74685
|
+
converted_at?: string | null;
|
|
74686
|
+
created_at?: string;
|
|
74687
|
+
created_by?: string | null;
|
|
74688
|
+
customer_id?: string | null;
|
|
74689
|
+
follow_up_werkbon_id?: string | null;
|
|
74690
|
+
id?: string;
|
|
74691
|
+
jaar?: number;
|
|
74692
|
+
mandaat_restant_cents?: number;
|
|
74693
|
+
notities?: string | null;
|
|
74694
|
+
offerte_number?: string | null;
|
|
74695
|
+
omschrijving?: string;
|
|
74696
|
+
rejected_at?: string | null;
|
|
74697
|
+
sent_at?: string | null;
|
|
74698
|
+
source_number?: string | null;
|
|
74699
|
+
source_ref?: string | null;
|
|
74700
|
+
source_type?: string;
|
|
74701
|
+
status?: string;
|
|
74702
|
+
subtotal_cents?: number;
|
|
74703
|
+
total_cents?: number;
|
|
74704
|
+
updated_at?: string;
|
|
74705
|
+
valid_until?: string | null;
|
|
74706
|
+
vat_cents?: number;
|
|
74707
|
+
vat_rate?: number;
|
|
74708
|
+
viewed_at?: string | null;
|
|
74709
|
+
volgnummer?: number | null;
|
|
74710
|
+
werkbon_id?: string | null;
|
|
74711
|
+
work_location_id?: string | null;
|
|
74712
|
+
};
|
|
74713
|
+
Relationships: [{
|
|
74714
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
74715
|
+
columns: ["contact_id"];
|
|
74716
|
+
isOneToOne: false;
|
|
74717
|
+
referencedRelation: "itk_contact_persons";
|
|
74718
|
+
referencedColumns: ["id"];
|
|
74719
|
+
}, {
|
|
74720
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
74721
|
+
columns: ["customer_id"];
|
|
74722
|
+
isOneToOne: false;
|
|
74723
|
+
referencedRelation: "itk_customers";
|
|
74724
|
+
referencedColumns: ["id"];
|
|
74725
|
+
}, {
|
|
74726
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
74727
|
+
columns: ["follow_up_werkbon_id"];
|
|
74728
|
+
isOneToOne: false;
|
|
74729
|
+
referencedRelation: "werkbonnen";
|
|
74730
|
+
referencedColumns: ["id"];
|
|
74731
|
+
}, {
|
|
74732
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
74733
|
+
columns: ["werkbon_id"];
|
|
74734
|
+
isOneToOne: false;
|
|
74735
|
+
referencedRelation: "werkbonnen";
|
|
74736
|
+
referencedColumns: ["id"];
|
|
74737
|
+
}, {
|
|
74738
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
74739
|
+
columns: ["work_location_id"];
|
|
74740
|
+
isOneToOne: false;
|
|
74741
|
+
referencedRelation: "itk_work_locations";
|
|
74742
|
+
referencedColumns: ["id"];
|
|
74743
|
+
}];
|
|
74744
|
+
};
|
|
72780
74745
|
itk_work_locations: {
|
|
72781
74746
|
Row: {
|
|
72782
74747
|
city: string | null;
|
|
@@ -75150,6 +77115,63 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
75150
77115
|
referencedColumns: ["id"];
|
|
75151
77116
|
}];
|
|
75152
77117
|
};
|
|
77118
|
+
medewerker_details: {
|
|
77119
|
+
Row: {
|
|
77120
|
+
color: string | null;
|
|
77121
|
+
created_at: string;
|
|
77122
|
+
hours_fri: number | null;
|
|
77123
|
+
hours_mon: number | null;
|
|
77124
|
+
hours_thu: number | null;
|
|
77125
|
+
hours_tue: number | null;
|
|
77126
|
+
hours_wed: number | null;
|
|
77127
|
+
id: string;
|
|
77128
|
+
is_active: boolean;
|
|
77129
|
+
leave_balance_hours: number;
|
|
77130
|
+
persnr: string | null;
|
|
77131
|
+
phone: string | null;
|
|
77132
|
+
profile_id: string;
|
|
77133
|
+
updated_at: string;
|
|
77134
|
+
};
|
|
77135
|
+
Insert: {
|
|
77136
|
+
color?: string | null;
|
|
77137
|
+
created_at?: string;
|
|
77138
|
+
hours_fri?: number | null;
|
|
77139
|
+
hours_mon?: number | null;
|
|
77140
|
+
hours_thu?: number | null;
|
|
77141
|
+
hours_tue?: number | null;
|
|
77142
|
+
hours_wed?: number | null;
|
|
77143
|
+
id?: string;
|
|
77144
|
+
is_active?: boolean;
|
|
77145
|
+
leave_balance_hours?: number;
|
|
77146
|
+
persnr?: string | null;
|
|
77147
|
+
phone?: string | null;
|
|
77148
|
+
profile_id: string;
|
|
77149
|
+
updated_at?: string;
|
|
77150
|
+
};
|
|
77151
|
+
Update: {
|
|
77152
|
+
color?: string | null;
|
|
77153
|
+
created_at?: string;
|
|
77154
|
+
hours_fri?: number | null;
|
|
77155
|
+
hours_mon?: number | null;
|
|
77156
|
+
hours_thu?: number | null;
|
|
77157
|
+
hours_tue?: number | null;
|
|
77158
|
+
hours_wed?: number | null;
|
|
77159
|
+
id?: string;
|
|
77160
|
+
is_active?: boolean;
|
|
77161
|
+
leave_balance_hours?: number;
|
|
77162
|
+
persnr?: string | null;
|
|
77163
|
+
phone?: string | null;
|
|
77164
|
+
profile_id?: string;
|
|
77165
|
+
updated_at?: string;
|
|
77166
|
+
};
|
|
77167
|
+
Relationships: [{
|
|
77168
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
77169
|
+
columns: ["profile_id"];
|
|
77170
|
+
isOneToOne: true;
|
|
77171
|
+
referencedRelation: "profiles";
|
|
77172
|
+
referencedColumns: ["id"];
|
|
77173
|
+
}];
|
|
77174
|
+
};
|
|
75153
77175
|
module_features: {
|
|
75154
77176
|
Row: {
|
|
75155
77177
|
created_at: string;
|
|
@@ -76443,6 +78465,8 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
76443
78465
|
orders: {
|
|
76444
78466
|
Row: {
|
|
76445
78467
|
buffer_id: string | null;
|
|
78468
|
+
cancel_reason: string | null;
|
|
78469
|
+
cancelled_at: string | null;
|
|
76446
78470
|
created_at: string;
|
|
76447
78471
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
76448
78472
|
customer_id: string | null;
|
|
@@ -76465,6 +78489,8 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
76465
78489
|
};
|
|
76466
78490
|
Insert: {
|
|
76467
78491
|
buffer_id?: string | null;
|
|
78492
|
+
cancel_reason?: string | null;
|
|
78493
|
+
cancelled_at?: string | null;
|
|
76468
78494
|
created_at?: string;
|
|
76469
78495
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
76470
78496
|
customer_id?: string | null;
|
|
@@ -76487,6 +78513,8 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
76487
78513
|
};
|
|
76488
78514
|
Update: {
|
|
76489
78515
|
buffer_id?: string | null;
|
|
78516
|
+
cancel_reason?: string | null;
|
|
78517
|
+
cancelled_at?: string | null;
|
|
76490
78518
|
created_at?: string;
|
|
76491
78519
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
76492
78520
|
customer_id?: string | null;
|
|
@@ -78549,6 +80577,66 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
78549
80577
|
};
|
|
78550
80578
|
Relationships: [];
|
|
78551
80579
|
};
|
|
80580
|
+
profile_modules: {
|
|
80581
|
+
Row: {
|
|
80582
|
+
created_at: string;
|
|
80583
|
+
id: string;
|
|
80584
|
+
module_id: string;
|
|
80585
|
+
profile_id: string;
|
|
80586
|
+
};
|
|
80587
|
+
Insert: {
|
|
80588
|
+
created_at?: string;
|
|
80589
|
+
id?: string;
|
|
80590
|
+
module_id: string;
|
|
80591
|
+
profile_id: string;
|
|
80592
|
+
};
|
|
80593
|
+
Update: {
|
|
80594
|
+
created_at?: string;
|
|
80595
|
+
id?: string;
|
|
80596
|
+
module_id?: string;
|
|
80597
|
+
profile_id?: string;
|
|
80598
|
+
};
|
|
80599
|
+
Relationships: [{
|
|
80600
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
80601
|
+
columns: ["profile_id"];
|
|
80602
|
+
isOneToOne: false;
|
|
80603
|
+
referencedRelation: "profiles_org";
|
|
80604
|
+
referencedColumns: ["id"];
|
|
80605
|
+
}];
|
|
80606
|
+
};
|
|
80607
|
+
profile_roles: {
|
|
80608
|
+
Row: {
|
|
80609
|
+
created_at: string;
|
|
80610
|
+
id: string;
|
|
80611
|
+
profile_id: string;
|
|
80612
|
+
role_id: string;
|
|
80613
|
+
};
|
|
80614
|
+
Insert: {
|
|
80615
|
+
created_at?: string;
|
|
80616
|
+
id?: string;
|
|
80617
|
+
profile_id: string;
|
|
80618
|
+
role_id: string;
|
|
80619
|
+
};
|
|
80620
|
+
Update: {
|
|
80621
|
+
created_at?: string;
|
|
80622
|
+
id?: string;
|
|
80623
|
+
profile_id?: string;
|
|
80624
|
+
role_id?: string;
|
|
80625
|
+
};
|
|
80626
|
+
Relationships: [{
|
|
80627
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
80628
|
+
columns: ["profile_id"];
|
|
80629
|
+
isOneToOne: false;
|
|
80630
|
+
referencedRelation: "profiles_org";
|
|
80631
|
+
referencedColumns: ["id"];
|
|
80632
|
+
}, {
|
|
80633
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
80634
|
+
columns: ["role_id"];
|
|
80635
|
+
isOneToOne: false;
|
|
80636
|
+
referencedRelation: "roles";
|
|
80637
|
+
referencedColumns: ["id"];
|
|
80638
|
+
}];
|
|
80639
|
+
};
|
|
78552
80640
|
profiles: {
|
|
78553
80641
|
Row: {
|
|
78554
80642
|
address: string | null;
|
|
@@ -78594,6 +80682,39 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
78594
80682
|
referencedColumns: ["id"];
|
|
78595
80683
|
}];
|
|
78596
80684
|
};
|
|
80685
|
+
profiles_org: {
|
|
80686
|
+
Row: {
|
|
80687
|
+
created_at: string;
|
|
80688
|
+
id: string;
|
|
80689
|
+
is_default: boolean;
|
|
80690
|
+
name: string;
|
|
80691
|
+
tenant_id: string | null;
|
|
80692
|
+
updated_at: string;
|
|
80693
|
+
};
|
|
80694
|
+
Insert: {
|
|
80695
|
+
created_at?: string;
|
|
80696
|
+
id?: string;
|
|
80697
|
+
is_default?: boolean;
|
|
80698
|
+
name: string;
|
|
80699
|
+
tenant_id?: string | null;
|
|
80700
|
+
updated_at?: string;
|
|
80701
|
+
};
|
|
80702
|
+
Update: {
|
|
80703
|
+
created_at?: string;
|
|
80704
|
+
id?: string;
|
|
80705
|
+
is_default?: boolean;
|
|
80706
|
+
name?: string;
|
|
80707
|
+
tenant_id?: string | null;
|
|
80708
|
+
updated_at?: string;
|
|
80709
|
+
};
|
|
80710
|
+
Relationships: [{
|
|
80711
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
80712
|
+
columns: ["tenant_id"];
|
|
80713
|
+
isOneToOne: false;
|
|
80714
|
+
referencedRelation: "tenants";
|
|
80715
|
+
referencedColumns: ["id"];
|
|
80716
|
+
}];
|
|
80717
|
+
};
|
|
78597
80718
|
projects: {
|
|
78598
80719
|
Row: {
|
|
78599
80720
|
contact_name: string | null;
|
|
@@ -79768,6 +81889,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
79768
81889
|
type: string;
|
|
79769
81890
|
updated_at: string;
|
|
79770
81891
|
vereist_medewerker: boolean;
|
|
81892
|
+
werkplek: string | null;
|
|
79771
81893
|
};
|
|
79772
81894
|
Insert: {
|
|
79773
81895
|
actief?: boolean;
|
|
@@ -79781,6 +81903,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
79781
81903
|
type?: string;
|
|
79782
81904
|
updated_at?: string;
|
|
79783
81905
|
vereist_medewerker?: boolean;
|
|
81906
|
+
werkplek?: string | null;
|
|
79784
81907
|
};
|
|
79785
81908
|
Update: {
|
|
79786
81909
|
actief?: boolean;
|
|
@@ -79794,9 +81917,46 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
79794
81917
|
type?: string;
|
|
79795
81918
|
updated_at?: string;
|
|
79796
81919
|
vereist_medewerker?: boolean;
|
|
81920
|
+
werkplek?: string | null;
|
|
79797
81921
|
};
|
|
79798
81922
|
Relationships: [];
|
|
79799
81923
|
};
|
|
81924
|
+
sick_periods: {
|
|
81925
|
+
Row: {
|
|
81926
|
+
created_at: string;
|
|
81927
|
+
employee_id: string;
|
|
81928
|
+
end_date: string | null;
|
|
81929
|
+
id: string;
|
|
81930
|
+
notes: string | null;
|
|
81931
|
+
start_date: string;
|
|
81932
|
+
updated_at: string;
|
|
81933
|
+
};
|
|
81934
|
+
Insert: {
|
|
81935
|
+
created_at?: string;
|
|
81936
|
+
employee_id: string;
|
|
81937
|
+
end_date?: string | null;
|
|
81938
|
+
id?: string;
|
|
81939
|
+
notes?: string | null;
|
|
81940
|
+
start_date: string;
|
|
81941
|
+
updated_at?: string;
|
|
81942
|
+
};
|
|
81943
|
+
Update: {
|
|
81944
|
+
created_at?: string;
|
|
81945
|
+
employee_id?: string;
|
|
81946
|
+
end_date?: string | null;
|
|
81947
|
+
id?: string;
|
|
81948
|
+
notes?: string | null;
|
|
81949
|
+
start_date?: string;
|
|
81950
|
+
updated_at?: string;
|
|
81951
|
+
};
|
|
81952
|
+
Relationships: [{
|
|
81953
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
81954
|
+
columns: ["employee_id"];
|
|
81955
|
+
isOneToOne: false;
|
|
81956
|
+
referencedRelation: "profiles";
|
|
81957
|
+
referencedColumns: ["id"];
|
|
81958
|
+
}];
|
|
81959
|
+
};
|
|
79800
81960
|
sidebar_config: {
|
|
79801
81961
|
Row: {
|
|
79802
81962
|
id: string;
|
|
@@ -84481,6 +86641,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
84481
86641
|
};
|
|
84482
86642
|
Returns: string;
|
|
84483
86643
|
};
|
|
86644
|
+
employee_day_hours: {
|
|
86645
|
+
Args: {
|
|
86646
|
+
_day: string;
|
|
86647
|
+
_employee_id: string;
|
|
86648
|
+
};
|
|
86649
|
+
Returns: number;
|
|
86650
|
+
};
|
|
84484
86651
|
enqueue_cart_replan_if_unlocked: {
|
|
84485
86652
|
Args: {
|
|
84486
86653
|
p_order_id: string;
|
|
@@ -84834,6 +87001,19 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
84834
87001
|
Args: never;
|
|
84835
87002
|
Returns: boolean;
|
|
84836
87003
|
};
|
|
87004
|
+
itk_offerte_naar_werkbon: {
|
|
87005
|
+
Args: {
|
|
87006
|
+
_offerte_id: string;
|
|
87007
|
+
};
|
|
87008
|
+
Returns: string;
|
|
87009
|
+
};
|
|
87010
|
+
itk_offerte_restant_mandaat: {
|
|
87011
|
+
Args: {
|
|
87012
|
+
_exclude_offerte_id?: string;
|
|
87013
|
+
_werkbon_id: string;
|
|
87014
|
+
};
|
|
87015
|
+
Returns: number;
|
|
87016
|
+
};
|
|
84837
87017
|
jwt_has_role: {
|
|
84838
87018
|
Args: {
|
|
84839
87019
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -84844,9 +87024,19 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
84844
87024
|
Args: never;
|
|
84845
87025
|
Returns: {
|
|
84846
87026
|
avatar_url: string;
|
|
87027
|
+
color: string;
|
|
84847
87028
|
display_name: string;
|
|
84848
87029
|
email: string;
|
|
87030
|
+
hours_fri: number;
|
|
87031
|
+
hours_mon: number;
|
|
87032
|
+
hours_thu: number;
|
|
87033
|
+
hours_tue: number;
|
|
87034
|
+
hours_wed: number;
|
|
84849
87035
|
id: string;
|
|
87036
|
+
is_active: boolean;
|
|
87037
|
+
leave_balance_hours: number;
|
|
87038
|
+
persnr: string;
|
|
87039
|
+
phone: string;
|
|
84850
87040
|
roles: string[];
|
|
84851
87041
|
}[];
|
|
84852
87042
|
};
|
|
@@ -85173,17 +87363,6 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
85173
87363
|
Returns: string;
|
|
85174
87364
|
};
|
|
85175
87365
|
logistics_emit_event: {
|
|
85176
|
-
Args: {
|
|
85177
|
-
p_event_type: string;
|
|
85178
|
-
p_idempotency_key?: string;
|
|
85179
|
-
p_order_ref: string;
|
|
85180
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
85181
|
-
p_shadow?: boolean;
|
|
85182
|
-
p_source_module: string;
|
|
85183
|
-
p_strategy_id?: string;
|
|
85184
|
-
};
|
|
85185
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
85186
|
-
} | {
|
|
85187
87366
|
Args: {
|
|
85188
87367
|
p_event_type: string;
|
|
85189
87368
|
p_idempotency_key?: string;
|
|
@@ -86028,6 +88207,37 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
86028
88207
|
};
|
|
86029
88208
|
Returns: undefined;
|
|
86030
88209
|
};
|
|
88210
|
+
quote_create_from_source: {
|
|
88211
|
+
Args: {
|
|
88212
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
88213
|
+
_source_id: string;
|
|
88214
|
+
_source_type: string;
|
|
88215
|
+
};
|
|
88216
|
+
Returns: string;
|
|
88217
|
+
};
|
|
88218
|
+
quote_get_billable_lines: {
|
|
88219
|
+
Args: {
|
|
88220
|
+
_quotation_id: string;
|
|
88221
|
+
};
|
|
88222
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88223
|
+
};
|
|
88224
|
+
quote_get_summary: {
|
|
88225
|
+
Args: {
|
|
88226
|
+
_quotation_id: string;
|
|
88227
|
+
};
|
|
88228
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88229
|
+
};
|
|
88230
|
+
quote_list_packages: {
|
|
88231
|
+
Args: never;
|
|
88232
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88233
|
+
};
|
|
88234
|
+
quote_list_sources: {
|
|
88235
|
+
Args: {
|
|
88236
|
+
_limit?: number;
|
|
88237
|
+
_source_type?: string;
|
|
88238
|
+
};
|
|
88239
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88240
|
+
};
|
|
86031
88241
|
recompute_all_reserved_stock: {
|
|
86032
88242
|
Args: never;
|
|
86033
88243
|
Returns: undefined;
|
|
@@ -86563,6 +88773,12 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
86563
88773
|
};
|
|
86564
88774
|
Returns: undefined;
|
|
86565
88775
|
};
|
|
88776
|
+
sync_sick_time_off: {
|
|
88777
|
+
Args: {
|
|
88778
|
+
_period_id: string;
|
|
88779
|
+
};
|
|
88780
|
+
Returns: number;
|
|
88781
|
+
};
|
|
86566
88782
|
trade_item_stock_duplicates: {
|
|
86567
88783
|
Args: never;
|
|
86568
88784
|
Returns: {
|
|
@@ -86636,11 +88852,31 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
86636
88852
|
Args: never;
|
|
86637
88853
|
Returns: string;
|
|
86638
88854
|
};
|
|
88855
|
+
wo_create_from_source: {
|
|
88856
|
+
Args: {
|
|
88857
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
88858
|
+
_source_id: string;
|
|
88859
|
+
_source_type: string;
|
|
88860
|
+
};
|
|
88861
|
+
Returns: string;
|
|
88862
|
+
};
|
|
88863
|
+
wo_get_billable_lines: {
|
|
88864
|
+
Args: {
|
|
88865
|
+
_work_order_id: string;
|
|
88866
|
+
};
|
|
88867
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88868
|
+
};
|
|
88869
|
+
wo_get_summary: {
|
|
88870
|
+
Args: {
|
|
88871
|
+
_work_order_id: string;
|
|
88872
|
+
};
|
|
88873
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88874
|
+
};
|
|
86639
88875
|
};
|
|
86640
88876
|
Enums: {
|
|
86641
88877
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
86642
88878
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
86643
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
88879
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
86644
88880
|
doc_orientation: "portrait" | "landscape";
|
|
86645
88881
|
exact_env: "staging" | "live";
|
|
86646
88882
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -91707,6 +93943,42 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
91707
93943
|
};
|
|
91708
93944
|
Relationships: [];
|
|
91709
93945
|
};
|
|
93946
|
+
facturen: {
|
|
93947
|
+
Row: {
|
|
93948
|
+
bedrag_incl_btw: number;
|
|
93949
|
+
created_at: string;
|
|
93950
|
+
datum: string;
|
|
93951
|
+
factuurnummer: string;
|
|
93952
|
+
id: string;
|
|
93953
|
+
klantnaam: string;
|
|
93954
|
+
status: string;
|
|
93955
|
+
updated_at: string;
|
|
93956
|
+
user_id: string;
|
|
93957
|
+
};
|
|
93958
|
+
Insert: {
|
|
93959
|
+
bedrag_incl_btw: number;
|
|
93960
|
+
created_at?: string;
|
|
93961
|
+
datum?: string;
|
|
93962
|
+
factuurnummer: string;
|
|
93963
|
+
id?: string;
|
|
93964
|
+
klantnaam: string;
|
|
93965
|
+
status?: string;
|
|
93966
|
+
updated_at?: string;
|
|
93967
|
+
user_id?: string;
|
|
93968
|
+
};
|
|
93969
|
+
Update: {
|
|
93970
|
+
bedrag_incl_btw?: number;
|
|
93971
|
+
created_at?: string;
|
|
93972
|
+
datum?: string;
|
|
93973
|
+
factuurnummer?: string;
|
|
93974
|
+
id?: string;
|
|
93975
|
+
klantnaam?: string;
|
|
93976
|
+
status?: string;
|
|
93977
|
+
updated_at?: string;
|
|
93978
|
+
user_id?: string;
|
|
93979
|
+
};
|
|
93980
|
+
Relationships: [];
|
|
93981
|
+
};
|
|
91710
93982
|
floricode_connection_settings: {
|
|
91711
93983
|
Row: {
|
|
91712
93984
|
catalog_key: string | null;
|
|
@@ -94431,6 +96703,258 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
94431
96703
|
};
|
|
94432
96704
|
Relationships: [];
|
|
94433
96705
|
};
|
|
96706
|
+
itk_offerte_events: {
|
|
96707
|
+
Row: {
|
|
96708
|
+
created_at: string;
|
|
96709
|
+
event_type: string;
|
|
96710
|
+
id: string;
|
|
96711
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
96712
|
+
offerte_id: string;
|
|
96713
|
+
omschrijving: string | null;
|
|
96714
|
+
user_id: string | null;
|
|
96715
|
+
};
|
|
96716
|
+
Insert: {
|
|
96717
|
+
created_at?: string;
|
|
96718
|
+
event_type: string;
|
|
96719
|
+
id?: string;
|
|
96720
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
96721
|
+
offerte_id: string;
|
|
96722
|
+
omschrijving?: string | null;
|
|
96723
|
+
user_id?: string | null;
|
|
96724
|
+
};
|
|
96725
|
+
Update: {
|
|
96726
|
+
created_at?: string;
|
|
96727
|
+
event_type?: string;
|
|
96728
|
+
id?: string;
|
|
96729
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
96730
|
+
offerte_id?: string;
|
|
96731
|
+
omschrijving?: string | null;
|
|
96732
|
+
user_id?: string | null;
|
|
96733
|
+
};
|
|
96734
|
+
Relationships: [{
|
|
96735
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
96736
|
+
columns: ["offerte_id"];
|
|
96737
|
+
isOneToOne: false;
|
|
96738
|
+
referencedRelation: "itk_offertes";
|
|
96739
|
+
referencedColumns: ["id"];
|
|
96740
|
+
}];
|
|
96741
|
+
};
|
|
96742
|
+
itk_offerte_regels: {
|
|
96743
|
+
Row: {
|
|
96744
|
+
created_at: string;
|
|
96745
|
+
id: string;
|
|
96746
|
+
line_total_cents: number;
|
|
96747
|
+
offerte_id: string;
|
|
96748
|
+
omschrijving: string;
|
|
96749
|
+
package_id: string | null;
|
|
96750
|
+
quantity: number;
|
|
96751
|
+
sort_order: number;
|
|
96752
|
+
source: string;
|
|
96753
|
+
unit_price_cents: number;
|
|
96754
|
+
updated_at: string;
|
|
96755
|
+
};
|
|
96756
|
+
Insert: {
|
|
96757
|
+
created_at?: string;
|
|
96758
|
+
id?: string;
|
|
96759
|
+
line_total_cents?: number;
|
|
96760
|
+
offerte_id: string;
|
|
96761
|
+
omschrijving?: string;
|
|
96762
|
+
package_id?: string | null;
|
|
96763
|
+
quantity?: number;
|
|
96764
|
+
sort_order?: number;
|
|
96765
|
+
source?: string;
|
|
96766
|
+
unit_price_cents?: number;
|
|
96767
|
+
updated_at?: string;
|
|
96768
|
+
};
|
|
96769
|
+
Update: {
|
|
96770
|
+
created_at?: string;
|
|
96771
|
+
id?: string;
|
|
96772
|
+
line_total_cents?: number;
|
|
96773
|
+
offerte_id?: string;
|
|
96774
|
+
omschrijving?: string;
|
|
96775
|
+
package_id?: string | null;
|
|
96776
|
+
quantity?: number;
|
|
96777
|
+
sort_order?: number;
|
|
96778
|
+
source?: string;
|
|
96779
|
+
unit_price_cents?: number;
|
|
96780
|
+
updated_at?: string;
|
|
96781
|
+
};
|
|
96782
|
+
Relationships: [{
|
|
96783
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
96784
|
+
columns: ["offerte_id"];
|
|
96785
|
+
isOneToOne: false;
|
|
96786
|
+
referencedRelation: "itk_offertes";
|
|
96787
|
+
referencedColumns: ["id"];
|
|
96788
|
+
}, {
|
|
96789
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
96790
|
+
columns: ["package_id"];
|
|
96791
|
+
isOneToOne: false;
|
|
96792
|
+
referencedRelation: "werkbon_packages";
|
|
96793
|
+
referencedColumns: ["id"];
|
|
96794
|
+
}];
|
|
96795
|
+
};
|
|
96796
|
+
itk_offerte_settings: {
|
|
96797
|
+
Row: {
|
|
96798
|
+
auto_convert_binnen_mandaat: boolean;
|
|
96799
|
+
created_at: string;
|
|
96800
|
+
default_geldigheid_dagen: number;
|
|
96801
|
+
default_vat_rate: number;
|
|
96802
|
+
id: string;
|
|
96803
|
+
singleton: boolean;
|
|
96804
|
+
updated_at: string;
|
|
96805
|
+
};
|
|
96806
|
+
Insert: {
|
|
96807
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
96808
|
+
created_at?: string;
|
|
96809
|
+
default_geldigheid_dagen?: number;
|
|
96810
|
+
default_vat_rate?: number;
|
|
96811
|
+
id?: string;
|
|
96812
|
+
singleton?: boolean;
|
|
96813
|
+
updated_at?: string;
|
|
96814
|
+
};
|
|
96815
|
+
Update: {
|
|
96816
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
96817
|
+
created_at?: string;
|
|
96818
|
+
default_geldigheid_dagen?: number;
|
|
96819
|
+
default_vat_rate?: number;
|
|
96820
|
+
id?: string;
|
|
96821
|
+
singleton?: boolean;
|
|
96822
|
+
updated_at?: string;
|
|
96823
|
+
};
|
|
96824
|
+
Relationships: [];
|
|
96825
|
+
};
|
|
96826
|
+
itk_offertes: {
|
|
96827
|
+
Row: {
|
|
96828
|
+
ai_generated: boolean;
|
|
96829
|
+
approved_at: string | null;
|
|
96830
|
+
binnen_mandaat: boolean;
|
|
96831
|
+
contact_id: string | null;
|
|
96832
|
+
converted_at: string | null;
|
|
96833
|
+
created_at: string;
|
|
96834
|
+
created_by: string | null;
|
|
96835
|
+
customer_id: string | null;
|
|
96836
|
+
follow_up_werkbon_id: string | null;
|
|
96837
|
+
id: string;
|
|
96838
|
+
jaar: number;
|
|
96839
|
+
mandaat_restant_cents: number;
|
|
96840
|
+
notities: string | null;
|
|
96841
|
+
offerte_number: string | null;
|
|
96842
|
+
omschrijving: string;
|
|
96843
|
+
rejected_at: string | null;
|
|
96844
|
+
sent_at: string | null;
|
|
96845
|
+
source_number: string | null;
|
|
96846
|
+
source_ref: string | null;
|
|
96847
|
+
source_type: string;
|
|
96848
|
+
status: string;
|
|
96849
|
+
subtotal_cents: number;
|
|
96850
|
+
total_cents: number;
|
|
96851
|
+
updated_at: string;
|
|
96852
|
+
valid_until: string | null;
|
|
96853
|
+
vat_cents: number;
|
|
96854
|
+
vat_rate: number;
|
|
96855
|
+
viewed_at: string | null;
|
|
96856
|
+
volgnummer: number | null;
|
|
96857
|
+
werkbon_id: string | null;
|
|
96858
|
+
work_location_id: string | null;
|
|
96859
|
+
};
|
|
96860
|
+
Insert: {
|
|
96861
|
+
ai_generated?: boolean;
|
|
96862
|
+
approved_at?: string | null;
|
|
96863
|
+
binnen_mandaat?: boolean;
|
|
96864
|
+
contact_id?: string | null;
|
|
96865
|
+
converted_at?: string | null;
|
|
96866
|
+
created_at?: string;
|
|
96867
|
+
created_by?: string | null;
|
|
96868
|
+
customer_id?: string | null;
|
|
96869
|
+
follow_up_werkbon_id?: string | null;
|
|
96870
|
+
id?: string;
|
|
96871
|
+
jaar?: number;
|
|
96872
|
+
mandaat_restant_cents?: number;
|
|
96873
|
+
notities?: string | null;
|
|
96874
|
+
offerte_number?: string | null;
|
|
96875
|
+
omschrijving?: string;
|
|
96876
|
+
rejected_at?: string | null;
|
|
96877
|
+
sent_at?: string | null;
|
|
96878
|
+
source_number?: string | null;
|
|
96879
|
+
source_ref?: string | null;
|
|
96880
|
+
source_type?: string;
|
|
96881
|
+
status?: string;
|
|
96882
|
+
subtotal_cents?: number;
|
|
96883
|
+
total_cents?: number;
|
|
96884
|
+
updated_at?: string;
|
|
96885
|
+
valid_until?: string | null;
|
|
96886
|
+
vat_cents?: number;
|
|
96887
|
+
vat_rate?: number;
|
|
96888
|
+
viewed_at?: string | null;
|
|
96889
|
+
volgnummer?: number | null;
|
|
96890
|
+
werkbon_id?: string | null;
|
|
96891
|
+
work_location_id?: string | null;
|
|
96892
|
+
};
|
|
96893
|
+
Update: {
|
|
96894
|
+
ai_generated?: boolean;
|
|
96895
|
+
approved_at?: string | null;
|
|
96896
|
+
binnen_mandaat?: boolean;
|
|
96897
|
+
contact_id?: string | null;
|
|
96898
|
+
converted_at?: string | null;
|
|
96899
|
+
created_at?: string;
|
|
96900
|
+
created_by?: string | null;
|
|
96901
|
+
customer_id?: string | null;
|
|
96902
|
+
follow_up_werkbon_id?: string | null;
|
|
96903
|
+
id?: string;
|
|
96904
|
+
jaar?: number;
|
|
96905
|
+
mandaat_restant_cents?: number;
|
|
96906
|
+
notities?: string | null;
|
|
96907
|
+
offerte_number?: string | null;
|
|
96908
|
+
omschrijving?: string;
|
|
96909
|
+
rejected_at?: string | null;
|
|
96910
|
+
sent_at?: string | null;
|
|
96911
|
+
source_number?: string | null;
|
|
96912
|
+
source_ref?: string | null;
|
|
96913
|
+
source_type?: string;
|
|
96914
|
+
status?: string;
|
|
96915
|
+
subtotal_cents?: number;
|
|
96916
|
+
total_cents?: number;
|
|
96917
|
+
updated_at?: string;
|
|
96918
|
+
valid_until?: string | null;
|
|
96919
|
+
vat_cents?: number;
|
|
96920
|
+
vat_rate?: number;
|
|
96921
|
+
viewed_at?: string | null;
|
|
96922
|
+
volgnummer?: number | null;
|
|
96923
|
+
werkbon_id?: string | null;
|
|
96924
|
+
work_location_id?: string | null;
|
|
96925
|
+
};
|
|
96926
|
+
Relationships: [{
|
|
96927
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
96928
|
+
columns: ["contact_id"];
|
|
96929
|
+
isOneToOne: false;
|
|
96930
|
+
referencedRelation: "itk_contact_persons";
|
|
96931
|
+
referencedColumns: ["id"];
|
|
96932
|
+
}, {
|
|
96933
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
96934
|
+
columns: ["customer_id"];
|
|
96935
|
+
isOneToOne: false;
|
|
96936
|
+
referencedRelation: "itk_customers";
|
|
96937
|
+
referencedColumns: ["id"];
|
|
96938
|
+
}, {
|
|
96939
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
96940
|
+
columns: ["follow_up_werkbon_id"];
|
|
96941
|
+
isOneToOne: false;
|
|
96942
|
+
referencedRelation: "werkbonnen";
|
|
96943
|
+
referencedColumns: ["id"];
|
|
96944
|
+
}, {
|
|
96945
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
96946
|
+
columns: ["werkbon_id"];
|
|
96947
|
+
isOneToOne: false;
|
|
96948
|
+
referencedRelation: "werkbonnen";
|
|
96949
|
+
referencedColumns: ["id"];
|
|
96950
|
+
}, {
|
|
96951
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
96952
|
+
columns: ["work_location_id"];
|
|
96953
|
+
isOneToOne: false;
|
|
96954
|
+
referencedRelation: "itk_work_locations";
|
|
96955
|
+
referencedColumns: ["id"];
|
|
96956
|
+
}];
|
|
96957
|
+
};
|
|
94434
96958
|
itk_work_locations: {
|
|
94435
96959
|
Row: {
|
|
94436
96960
|
city: string | null;
|
|
@@ -96804,6 +99328,63 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
96804
99328
|
referencedColumns: ["id"];
|
|
96805
99329
|
}];
|
|
96806
99330
|
};
|
|
99331
|
+
medewerker_details: {
|
|
99332
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
99349
|
+
color?: string | null;
|
|
99350
|
+
created_at?: string;
|
|
99351
|
+
hours_fri?: number | null;
|
|
99352
|
+
hours_mon?: number | null;
|
|
99353
|
+
hours_thu?: number | null;
|
|
99354
|
+
hours_tue?: number | null;
|
|
99355
|
+
hours_wed?: number | null;
|
|
99356
|
+
id?: string;
|
|
99357
|
+
is_active?: boolean;
|
|
99358
|
+
leave_balance_hours?: number;
|
|
99359
|
+
persnr?: string | null;
|
|
99360
|
+
phone?: string | null;
|
|
99361
|
+
profile_id: string;
|
|
99362
|
+
updated_at?: string;
|
|
99363
|
+
};
|
|
99364
|
+
Update: {
|
|
99365
|
+
color?: string | null;
|
|
99366
|
+
created_at?: string;
|
|
99367
|
+
hours_fri?: number | null;
|
|
99368
|
+
hours_mon?: number | null;
|
|
99369
|
+
hours_thu?: number | null;
|
|
99370
|
+
hours_tue?: number | null;
|
|
99371
|
+
hours_wed?: number | null;
|
|
99372
|
+
id?: string;
|
|
99373
|
+
is_active?: boolean;
|
|
99374
|
+
leave_balance_hours?: number;
|
|
99375
|
+
persnr?: string | null;
|
|
99376
|
+
phone?: string | null;
|
|
99377
|
+
profile_id?: string;
|
|
99378
|
+
updated_at?: string;
|
|
99379
|
+
};
|
|
99380
|
+
Relationships: [{
|
|
99381
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
99382
|
+
columns: ["profile_id"];
|
|
99383
|
+
isOneToOne: true;
|
|
99384
|
+
referencedRelation: "profiles";
|
|
99385
|
+
referencedColumns: ["id"];
|
|
99386
|
+
}];
|
|
99387
|
+
};
|
|
96807
99388
|
module_features: {
|
|
96808
99389
|
Row: {
|
|
96809
99390
|
created_at: string;
|
|
@@ -98097,6 +100678,8 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
98097
100678
|
orders: {
|
|
98098
100679
|
Row: {
|
|
98099
100680
|
buffer_id: string | null;
|
|
100681
|
+
cancel_reason: string | null;
|
|
100682
|
+
cancelled_at: string | null;
|
|
98100
100683
|
created_at: string;
|
|
98101
100684
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
98102
100685
|
customer_id: string | null;
|
|
@@ -98119,6 +100702,8 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
98119
100702
|
};
|
|
98120
100703
|
Insert: {
|
|
98121
100704
|
buffer_id?: string | null;
|
|
100705
|
+
cancel_reason?: string | null;
|
|
100706
|
+
cancelled_at?: string | null;
|
|
98122
100707
|
created_at?: string;
|
|
98123
100708
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
98124
100709
|
customer_id?: string | null;
|
|
@@ -98141,6 +100726,8 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
98141
100726
|
};
|
|
98142
100727
|
Update: {
|
|
98143
100728
|
buffer_id?: string | null;
|
|
100729
|
+
cancel_reason?: string | null;
|
|
100730
|
+
cancelled_at?: string | null;
|
|
98144
100731
|
created_at?: string;
|
|
98145
100732
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
98146
100733
|
customer_id?: string | null;
|
|
@@ -100203,6 +102790,66 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
100203
102790
|
};
|
|
100204
102791
|
Relationships: [];
|
|
100205
102792
|
};
|
|
102793
|
+
profile_modules: {
|
|
102794
|
+
Row: {
|
|
102795
|
+
created_at: string;
|
|
102796
|
+
id: string;
|
|
102797
|
+
module_id: string;
|
|
102798
|
+
profile_id: string;
|
|
102799
|
+
};
|
|
102800
|
+
Insert: {
|
|
102801
|
+
created_at?: string;
|
|
102802
|
+
id?: string;
|
|
102803
|
+
module_id: string;
|
|
102804
|
+
profile_id: string;
|
|
102805
|
+
};
|
|
102806
|
+
Update: {
|
|
102807
|
+
created_at?: string;
|
|
102808
|
+
id?: string;
|
|
102809
|
+
module_id?: string;
|
|
102810
|
+
profile_id?: string;
|
|
102811
|
+
};
|
|
102812
|
+
Relationships: [{
|
|
102813
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
102814
|
+
columns: ["profile_id"];
|
|
102815
|
+
isOneToOne: false;
|
|
102816
|
+
referencedRelation: "profiles_org";
|
|
102817
|
+
referencedColumns: ["id"];
|
|
102818
|
+
}];
|
|
102819
|
+
};
|
|
102820
|
+
profile_roles: {
|
|
102821
|
+
Row: {
|
|
102822
|
+
created_at: string;
|
|
102823
|
+
id: string;
|
|
102824
|
+
profile_id: string;
|
|
102825
|
+
role_id: string;
|
|
102826
|
+
};
|
|
102827
|
+
Insert: {
|
|
102828
|
+
created_at?: string;
|
|
102829
|
+
id?: string;
|
|
102830
|
+
profile_id: string;
|
|
102831
|
+
role_id: string;
|
|
102832
|
+
};
|
|
102833
|
+
Update: {
|
|
102834
|
+
created_at?: string;
|
|
102835
|
+
id?: string;
|
|
102836
|
+
profile_id?: string;
|
|
102837
|
+
role_id?: string;
|
|
102838
|
+
};
|
|
102839
|
+
Relationships: [{
|
|
102840
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
102841
|
+
columns: ["profile_id"];
|
|
102842
|
+
isOneToOne: false;
|
|
102843
|
+
referencedRelation: "profiles_org";
|
|
102844
|
+
referencedColumns: ["id"];
|
|
102845
|
+
}, {
|
|
102846
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
102847
|
+
columns: ["role_id"];
|
|
102848
|
+
isOneToOne: false;
|
|
102849
|
+
referencedRelation: "roles";
|
|
102850
|
+
referencedColumns: ["id"];
|
|
102851
|
+
}];
|
|
102852
|
+
};
|
|
100206
102853
|
profiles: {
|
|
100207
102854
|
Row: {
|
|
100208
102855
|
address: string | null;
|
|
@@ -100248,6 +102895,39 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
100248
102895
|
referencedColumns: ["id"];
|
|
100249
102896
|
}];
|
|
100250
102897
|
};
|
|
102898
|
+
profiles_org: {
|
|
102899
|
+
Row: {
|
|
102900
|
+
created_at: string;
|
|
102901
|
+
id: string;
|
|
102902
|
+
is_default: boolean;
|
|
102903
|
+
name: string;
|
|
102904
|
+
tenant_id: string | null;
|
|
102905
|
+
updated_at: string;
|
|
102906
|
+
};
|
|
102907
|
+
Insert: {
|
|
102908
|
+
created_at?: string;
|
|
102909
|
+
id?: string;
|
|
102910
|
+
is_default?: boolean;
|
|
102911
|
+
name: string;
|
|
102912
|
+
tenant_id?: string | null;
|
|
102913
|
+
updated_at?: string;
|
|
102914
|
+
};
|
|
102915
|
+
Update: {
|
|
102916
|
+
created_at?: string;
|
|
102917
|
+
id?: string;
|
|
102918
|
+
is_default?: boolean;
|
|
102919
|
+
name?: string;
|
|
102920
|
+
tenant_id?: string | null;
|
|
102921
|
+
updated_at?: string;
|
|
102922
|
+
};
|
|
102923
|
+
Relationships: [{
|
|
102924
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
102925
|
+
columns: ["tenant_id"];
|
|
102926
|
+
isOneToOne: false;
|
|
102927
|
+
referencedRelation: "tenants";
|
|
102928
|
+
referencedColumns: ["id"];
|
|
102929
|
+
}];
|
|
102930
|
+
};
|
|
100251
102931
|
projects: {
|
|
100252
102932
|
Row: {
|
|
100253
102933
|
contact_name: string | null;
|
|
@@ -101422,6 +104102,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
101422
104102
|
type: string;
|
|
101423
104103
|
updated_at: string;
|
|
101424
104104
|
vereist_medewerker: boolean;
|
|
104105
|
+
werkplek: string | null;
|
|
101425
104106
|
};
|
|
101426
104107
|
Insert: {
|
|
101427
104108
|
actief?: boolean;
|
|
@@ -101435,6 +104116,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
101435
104116
|
type?: string;
|
|
101436
104117
|
updated_at?: string;
|
|
101437
104118
|
vereist_medewerker?: boolean;
|
|
104119
|
+
werkplek?: string | null;
|
|
101438
104120
|
};
|
|
101439
104121
|
Update: {
|
|
101440
104122
|
actief?: boolean;
|
|
@@ -101448,9 +104130,46 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
101448
104130
|
type?: string;
|
|
101449
104131
|
updated_at?: string;
|
|
101450
104132
|
vereist_medewerker?: boolean;
|
|
104133
|
+
werkplek?: string | null;
|
|
101451
104134
|
};
|
|
101452
104135
|
Relationships: [];
|
|
101453
104136
|
};
|
|
104137
|
+
sick_periods: {
|
|
104138
|
+
Row: {
|
|
104139
|
+
created_at: string;
|
|
104140
|
+
employee_id: string;
|
|
104141
|
+
end_date: string | null;
|
|
104142
|
+
id: string;
|
|
104143
|
+
notes: string | null;
|
|
104144
|
+
start_date: string;
|
|
104145
|
+
updated_at: string;
|
|
104146
|
+
};
|
|
104147
|
+
Insert: {
|
|
104148
|
+
created_at?: string;
|
|
104149
|
+
employee_id: string;
|
|
104150
|
+
end_date?: string | null;
|
|
104151
|
+
id?: string;
|
|
104152
|
+
notes?: string | null;
|
|
104153
|
+
start_date: string;
|
|
104154
|
+
updated_at?: string;
|
|
104155
|
+
};
|
|
104156
|
+
Update: {
|
|
104157
|
+
created_at?: string;
|
|
104158
|
+
employee_id?: string;
|
|
104159
|
+
end_date?: string | null;
|
|
104160
|
+
id?: string;
|
|
104161
|
+
notes?: string | null;
|
|
104162
|
+
start_date?: string;
|
|
104163
|
+
updated_at?: string;
|
|
104164
|
+
};
|
|
104165
|
+
Relationships: [{
|
|
104166
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
104167
|
+
columns: ["employee_id"];
|
|
104168
|
+
isOneToOne: false;
|
|
104169
|
+
referencedRelation: "profiles";
|
|
104170
|
+
referencedColumns: ["id"];
|
|
104171
|
+
}];
|
|
104172
|
+
};
|
|
101454
104173
|
sidebar_config: {
|
|
101455
104174
|
Row: {
|
|
101456
104175
|
id: string;
|
|
@@ -106135,6 +108854,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
106135
108854
|
};
|
|
106136
108855
|
Returns: string;
|
|
106137
108856
|
};
|
|
108857
|
+
employee_day_hours: {
|
|
108858
|
+
Args: {
|
|
108859
|
+
_day: string;
|
|
108860
|
+
_employee_id: string;
|
|
108861
|
+
};
|
|
108862
|
+
Returns: number;
|
|
108863
|
+
};
|
|
106138
108864
|
enqueue_cart_replan_if_unlocked: {
|
|
106139
108865
|
Args: {
|
|
106140
108866
|
p_order_id: string;
|
|
@@ -106488,6 +109214,19 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
106488
109214
|
Args: never;
|
|
106489
109215
|
Returns: boolean;
|
|
106490
109216
|
};
|
|
109217
|
+
itk_offerte_naar_werkbon: {
|
|
109218
|
+
Args: {
|
|
109219
|
+
_offerte_id: string;
|
|
109220
|
+
};
|
|
109221
|
+
Returns: string;
|
|
109222
|
+
};
|
|
109223
|
+
itk_offerte_restant_mandaat: {
|
|
109224
|
+
Args: {
|
|
109225
|
+
_exclude_offerte_id?: string;
|
|
109226
|
+
_werkbon_id: string;
|
|
109227
|
+
};
|
|
109228
|
+
Returns: number;
|
|
109229
|
+
};
|
|
106491
109230
|
jwt_has_role: {
|
|
106492
109231
|
Args: {
|
|
106493
109232
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -106498,9 +109237,19 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
106498
109237
|
Args: never;
|
|
106499
109238
|
Returns: {
|
|
106500
109239
|
avatar_url: string;
|
|
109240
|
+
color: string;
|
|
106501
109241
|
display_name: string;
|
|
106502
109242
|
email: string;
|
|
109243
|
+
hours_fri: number;
|
|
109244
|
+
hours_mon: number;
|
|
109245
|
+
hours_thu: number;
|
|
109246
|
+
hours_tue: number;
|
|
109247
|
+
hours_wed: number;
|
|
106503
109248
|
id: string;
|
|
109249
|
+
is_active: boolean;
|
|
109250
|
+
leave_balance_hours: number;
|
|
109251
|
+
persnr: string;
|
|
109252
|
+
phone: string;
|
|
106504
109253
|
roles: string[];
|
|
106505
109254
|
}[];
|
|
106506
109255
|
};
|
|
@@ -106827,17 +109576,6 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
106827
109576
|
Returns: string;
|
|
106828
109577
|
};
|
|
106829
109578
|
logistics_emit_event: {
|
|
106830
|
-
Args: {
|
|
106831
|
-
p_event_type: string;
|
|
106832
|
-
p_idempotency_key?: string;
|
|
106833
|
-
p_order_ref: string;
|
|
106834
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
106835
|
-
p_shadow?: boolean;
|
|
106836
|
-
p_source_module: string;
|
|
106837
|
-
p_strategy_id?: string;
|
|
106838
|
-
};
|
|
106839
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
106840
|
-
} | {
|
|
106841
109579
|
Args: {
|
|
106842
109580
|
p_event_type: string;
|
|
106843
109581
|
p_idempotency_key?: string;
|
|
@@ -107682,6 +110420,37 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
107682
110420
|
};
|
|
107683
110421
|
Returns: undefined;
|
|
107684
110422
|
};
|
|
110423
|
+
quote_create_from_source: {
|
|
110424
|
+
Args: {
|
|
110425
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
110426
|
+
_source_id: string;
|
|
110427
|
+
_source_type: string;
|
|
110428
|
+
};
|
|
110429
|
+
Returns: string;
|
|
110430
|
+
};
|
|
110431
|
+
quote_get_billable_lines: {
|
|
110432
|
+
Args: {
|
|
110433
|
+
_quotation_id: string;
|
|
110434
|
+
};
|
|
110435
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
110436
|
+
};
|
|
110437
|
+
quote_get_summary: {
|
|
110438
|
+
Args: {
|
|
110439
|
+
_quotation_id: string;
|
|
110440
|
+
};
|
|
110441
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
110442
|
+
};
|
|
110443
|
+
quote_list_packages: {
|
|
110444
|
+
Args: never;
|
|
110445
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
110446
|
+
};
|
|
110447
|
+
quote_list_sources: {
|
|
110448
|
+
Args: {
|
|
110449
|
+
_limit?: number;
|
|
110450
|
+
_source_type?: string;
|
|
110451
|
+
};
|
|
110452
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
110453
|
+
};
|
|
107685
110454
|
recompute_all_reserved_stock: {
|
|
107686
110455
|
Args: never;
|
|
107687
110456
|
Returns: undefined;
|
|
@@ -108217,6 +110986,12 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
108217
110986
|
};
|
|
108218
110987
|
Returns: undefined;
|
|
108219
110988
|
};
|
|
110989
|
+
sync_sick_time_off: {
|
|
110990
|
+
Args: {
|
|
110991
|
+
_period_id: string;
|
|
110992
|
+
};
|
|
110993
|
+
Returns: number;
|
|
110994
|
+
};
|
|
108220
110995
|
trade_item_stock_duplicates: {
|
|
108221
110996
|
Args: never;
|
|
108222
110997
|
Returns: {
|
|
@@ -108290,11 +111065,31 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
108290
111065
|
Args: never;
|
|
108291
111066
|
Returns: string;
|
|
108292
111067
|
};
|
|
111068
|
+
wo_create_from_source: {
|
|
111069
|
+
Args: {
|
|
111070
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
111071
|
+
_source_id: string;
|
|
111072
|
+
_source_type: string;
|
|
111073
|
+
};
|
|
111074
|
+
Returns: string;
|
|
111075
|
+
};
|
|
111076
|
+
wo_get_billable_lines: {
|
|
111077
|
+
Args: {
|
|
111078
|
+
_work_order_id: string;
|
|
111079
|
+
};
|
|
111080
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
111081
|
+
};
|
|
111082
|
+
wo_get_summary: {
|
|
111083
|
+
Args: {
|
|
111084
|
+
_work_order_id: string;
|
|
111085
|
+
};
|
|
111086
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
111087
|
+
};
|
|
108293
111088
|
};
|
|
108294
111089
|
Enums: {
|
|
108295
111090
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
108296
111091
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
108297
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
111092
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
108298
111093
|
doc_orientation: "portrait" | "landscape";
|
|
108299
111094
|
exact_env: "staging" | "live";
|
|
108300
111095
|
exact_push_status: "pending" | "sent" | "error";
|