@flowselections/floriday-verkoop-module 1.0.42 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +5 -2
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +27 -13
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.js +114 -35
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +571 -12
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +571 -12
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +571 -12
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +594 -13
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -0
- package/dist-lib/lib/cart-lock.functions.d.ts +571 -12
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +6281 -132
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +1713 -36
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.d.ts +31355 -193
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +18 -1
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1713 -36
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +571 -12
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts +571 -12
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.js +6 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +3997 -84
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +2855 -60
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.functions.d.ts +2284 -48
- package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.server.js +1 -0
- package/dist-lib/lib/load-carriers.functions.d.ts +571 -12
- package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-engine.functions.d.ts +2855 -60
- package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-stock.functions.d.ts +1142 -24
- package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-addresses.functions.d.ts +571 -12
- package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-buffers.functions.d.ts +1713 -36
- package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-cancel.server.d.ts +24 -0
- package/dist-lib/lib/order-cancel.server.d.ts.map +1 -0
- package/dist-lib/lib/order-cancel.server.js +130 -0
- package/dist-lib/lib/order-carrier.functions.d.ts +1142 -24
- package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-pickup.functions.d.ts +1142 -24
- package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +2284 -48
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.functions.d.ts +571 -12
- package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.js +4 -60
- package/dist-lib/lib/salesorders.functions.d.ts +2855 -60
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +571 -12
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5045,6 +5045,42 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
5045
5045
|
};
|
|
5046
5046
|
Relationships: [];
|
|
5047
5047
|
};
|
|
5048
|
+
facturen: {
|
|
5049
|
+
Row: {
|
|
5050
|
+
bedrag_incl_btw: number;
|
|
5051
|
+
created_at: string;
|
|
5052
|
+
datum: string;
|
|
5053
|
+
factuurnummer: string;
|
|
5054
|
+
id: string;
|
|
5055
|
+
klantnaam: string;
|
|
5056
|
+
status: string;
|
|
5057
|
+
updated_at: string;
|
|
5058
|
+
user_id: string;
|
|
5059
|
+
};
|
|
5060
|
+
Insert: {
|
|
5061
|
+
bedrag_incl_btw: number;
|
|
5062
|
+
created_at?: string;
|
|
5063
|
+
datum?: string;
|
|
5064
|
+
factuurnummer: string;
|
|
5065
|
+
id?: string;
|
|
5066
|
+
klantnaam: string;
|
|
5067
|
+
status?: string;
|
|
5068
|
+
updated_at?: string;
|
|
5069
|
+
user_id?: string;
|
|
5070
|
+
};
|
|
5071
|
+
Update: {
|
|
5072
|
+
bedrag_incl_btw?: number;
|
|
5073
|
+
created_at?: string;
|
|
5074
|
+
datum?: string;
|
|
5075
|
+
factuurnummer?: string;
|
|
5076
|
+
id?: string;
|
|
5077
|
+
klantnaam?: string;
|
|
5078
|
+
status?: string;
|
|
5079
|
+
updated_at?: string;
|
|
5080
|
+
user_id?: string;
|
|
5081
|
+
};
|
|
5082
|
+
Relationships: [];
|
|
5083
|
+
};
|
|
5048
5084
|
floricode_connection_settings: {
|
|
5049
5085
|
Row: {
|
|
5050
5086
|
catalog_key: string | null;
|
|
@@ -7769,6 +7805,258 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
7769
7805
|
};
|
|
7770
7806
|
Relationships: [];
|
|
7771
7807
|
};
|
|
7808
|
+
itk_offerte_events: {
|
|
7809
|
+
Row: {
|
|
7810
|
+
created_at: string;
|
|
7811
|
+
event_type: string;
|
|
7812
|
+
id: string;
|
|
7813
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
7814
|
+
offerte_id: string;
|
|
7815
|
+
omschrijving: string | null;
|
|
7816
|
+
user_id: string | null;
|
|
7817
|
+
};
|
|
7818
|
+
Insert: {
|
|
7819
|
+
created_at?: string;
|
|
7820
|
+
event_type: string;
|
|
7821
|
+
id?: string;
|
|
7822
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7823
|
+
offerte_id: string;
|
|
7824
|
+
omschrijving?: string | null;
|
|
7825
|
+
user_id?: string | null;
|
|
7826
|
+
};
|
|
7827
|
+
Update: {
|
|
7828
|
+
created_at?: string;
|
|
7829
|
+
event_type?: string;
|
|
7830
|
+
id?: string;
|
|
7831
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7832
|
+
offerte_id?: string;
|
|
7833
|
+
omschrijving?: string | null;
|
|
7834
|
+
user_id?: string | null;
|
|
7835
|
+
};
|
|
7836
|
+
Relationships: [{
|
|
7837
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
7838
|
+
columns: ["offerte_id"];
|
|
7839
|
+
isOneToOne: false;
|
|
7840
|
+
referencedRelation: "itk_offertes";
|
|
7841
|
+
referencedColumns: ["id"];
|
|
7842
|
+
}];
|
|
7843
|
+
};
|
|
7844
|
+
itk_offerte_regels: {
|
|
7845
|
+
Row: {
|
|
7846
|
+
created_at: string;
|
|
7847
|
+
id: string;
|
|
7848
|
+
line_total_cents: number;
|
|
7849
|
+
offerte_id: string;
|
|
7850
|
+
omschrijving: string;
|
|
7851
|
+
package_id: string | null;
|
|
7852
|
+
quantity: number;
|
|
7853
|
+
sort_order: number;
|
|
7854
|
+
source: string;
|
|
7855
|
+
unit_price_cents: number;
|
|
7856
|
+
updated_at: string;
|
|
7857
|
+
};
|
|
7858
|
+
Insert: {
|
|
7859
|
+
created_at?: string;
|
|
7860
|
+
id?: string;
|
|
7861
|
+
line_total_cents?: number;
|
|
7862
|
+
offerte_id: string;
|
|
7863
|
+
omschrijving?: string;
|
|
7864
|
+
package_id?: string | null;
|
|
7865
|
+
quantity?: number;
|
|
7866
|
+
sort_order?: number;
|
|
7867
|
+
source?: string;
|
|
7868
|
+
unit_price_cents?: number;
|
|
7869
|
+
updated_at?: string;
|
|
7870
|
+
};
|
|
7871
|
+
Update: {
|
|
7872
|
+
created_at?: string;
|
|
7873
|
+
id?: string;
|
|
7874
|
+
line_total_cents?: number;
|
|
7875
|
+
offerte_id?: string;
|
|
7876
|
+
omschrijving?: string;
|
|
7877
|
+
package_id?: string | null;
|
|
7878
|
+
quantity?: number;
|
|
7879
|
+
sort_order?: number;
|
|
7880
|
+
source?: string;
|
|
7881
|
+
unit_price_cents?: number;
|
|
7882
|
+
updated_at?: string;
|
|
7883
|
+
};
|
|
7884
|
+
Relationships: [{
|
|
7885
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
7886
|
+
columns: ["offerte_id"];
|
|
7887
|
+
isOneToOne: false;
|
|
7888
|
+
referencedRelation: "itk_offertes";
|
|
7889
|
+
referencedColumns: ["id"];
|
|
7890
|
+
}, {
|
|
7891
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
7892
|
+
columns: ["package_id"];
|
|
7893
|
+
isOneToOne: false;
|
|
7894
|
+
referencedRelation: "werkbon_packages";
|
|
7895
|
+
referencedColumns: ["id"];
|
|
7896
|
+
}];
|
|
7897
|
+
};
|
|
7898
|
+
itk_offerte_settings: {
|
|
7899
|
+
Row: {
|
|
7900
|
+
auto_convert_binnen_mandaat: boolean;
|
|
7901
|
+
created_at: string;
|
|
7902
|
+
default_geldigheid_dagen: number;
|
|
7903
|
+
default_vat_rate: number;
|
|
7904
|
+
id: string;
|
|
7905
|
+
singleton: boolean;
|
|
7906
|
+
updated_at: string;
|
|
7907
|
+
};
|
|
7908
|
+
Insert: {
|
|
7909
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7910
|
+
created_at?: string;
|
|
7911
|
+
default_geldigheid_dagen?: number;
|
|
7912
|
+
default_vat_rate?: number;
|
|
7913
|
+
id?: string;
|
|
7914
|
+
singleton?: boolean;
|
|
7915
|
+
updated_at?: string;
|
|
7916
|
+
};
|
|
7917
|
+
Update: {
|
|
7918
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7919
|
+
created_at?: string;
|
|
7920
|
+
default_geldigheid_dagen?: number;
|
|
7921
|
+
default_vat_rate?: number;
|
|
7922
|
+
id?: string;
|
|
7923
|
+
singleton?: boolean;
|
|
7924
|
+
updated_at?: string;
|
|
7925
|
+
};
|
|
7926
|
+
Relationships: [];
|
|
7927
|
+
};
|
|
7928
|
+
itk_offertes: {
|
|
7929
|
+
Row: {
|
|
7930
|
+
ai_generated: boolean;
|
|
7931
|
+
approved_at: string | null;
|
|
7932
|
+
binnen_mandaat: boolean;
|
|
7933
|
+
contact_id: string | null;
|
|
7934
|
+
converted_at: string | null;
|
|
7935
|
+
created_at: string;
|
|
7936
|
+
created_by: string | null;
|
|
7937
|
+
customer_id: string | null;
|
|
7938
|
+
follow_up_werkbon_id: string | null;
|
|
7939
|
+
id: string;
|
|
7940
|
+
jaar: number;
|
|
7941
|
+
mandaat_restant_cents: number;
|
|
7942
|
+
notities: string | null;
|
|
7943
|
+
offerte_number: string | null;
|
|
7944
|
+
omschrijving: string;
|
|
7945
|
+
rejected_at: string | null;
|
|
7946
|
+
sent_at: string | null;
|
|
7947
|
+
source_number: string | null;
|
|
7948
|
+
source_ref: string | null;
|
|
7949
|
+
source_type: string;
|
|
7950
|
+
status: string;
|
|
7951
|
+
subtotal_cents: number;
|
|
7952
|
+
total_cents: number;
|
|
7953
|
+
updated_at: string;
|
|
7954
|
+
valid_until: string | null;
|
|
7955
|
+
vat_cents: number;
|
|
7956
|
+
vat_rate: number;
|
|
7957
|
+
viewed_at: string | null;
|
|
7958
|
+
volgnummer: number | null;
|
|
7959
|
+
werkbon_id: string | null;
|
|
7960
|
+
work_location_id: string | null;
|
|
7961
|
+
};
|
|
7962
|
+
Insert: {
|
|
7963
|
+
ai_generated?: boolean;
|
|
7964
|
+
approved_at?: string | null;
|
|
7965
|
+
binnen_mandaat?: boolean;
|
|
7966
|
+
contact_id?: string | null;
|
|
7967
|
+
converted_at?: string | null;
|
|
7968
|
+
created_at?: string;
|
|
7969
|
+
created_by?: string | null;
|
|
7970
|
+
customer_id?: string | null;
|
|
7971
|
+
follow_up_werkbon_id?: string | null;
|
|
7972
|
+
id?: string;
|
|
7973
|
+
jaar?: number;
|
|
7974
|
+
mandaat_restant_cents?: number;
|
|
7975
|
+
notities?: string | null;
|
|
7976
|
+
offerte_number?: string | null;
|
|
7977
|
+
omschrijving?: string;
|
|
7978
|
+
rejected_at?: string | null;
|
|
7979
|
+
sent_at?: string | null;
|
|
7980
|
+
source_number?: string | null;
|
|
7981
|
+
source_ref?: string | null;
|
|
7982
|
+
source_type?: string;
|
|
7983
|
+
status?: string;
|
|
7984
|
+
subtotal_cents?: number;
|
|
7985
|
+
total_cents?: number;
|
|
7986
|
+
updated_at?: string;
|
|
7987
|
+
valid_until?: string | null;
|
|
7988
|
+
vat_cents?: number;
|
|
7989
|
+
vat_rate?: number;
|
|
7990
|
+
viewed_at?: string | null;
|
|
7991
|
+
volgnummer?: number | null;
|
|
7992
|
+
werkbon_id?: string | null;
|
|
7993
|
+
work_location_id?: string | null;
|
|
7994
|
+
};
|
|
7995
|
+
Update: {
|
|
7996
|
+
ai_generated?: boolean;
|
|
7997
|
+
approved_at?: string | null;
|
|
7998
|
+
binnen_mandaat?: boolean;
|
|
7999
|
+
contact_id?: string | null;
|
|
8000
|
+
converted_at?: string | null;
|
|
8001
|
+
created_at?: string;
|
|
8002
|
+
created_by?: string | null;
|
|
8003
|
+
customer_id?: string | null;
|
|
8004
|
+
follow_up_werkbon_id?: string | null;
|
|
8005
|
+
id?: string;
|
|
8006
|
+
jaar?: number;
|
|
8007
|
+
mandaat_restant_cents?: number;
|
|
8008
|
+
notities?: string | null;
|
|
8009
|
+
offerte_number?: string | null;
|
|
8010
|
+
omschrijving?: string;
|
|
8011
|
+
rejected_at?: string | null;
|
|
8012
|
+
sent_at?: string | null;
|
|
8013
|
+
source_number?: string | null;
|
|
8014
|
+
source_ref?: string | null;
|
|
8015
|
+
source_type?: string;
|
|
8016
|
+
status?: string;
|
|
8017
|
+
subtotal_cents?: number;
|
|
8018
|
+
total_cents?: number;
|
|
8019
|
+
updated_at?: string;
|
|
8020
|
+
valid_until?: string | null;
|
|
8021
|
+
vat_cents?: number;
|
|
8022
|
+
vat_rate?: number;
|
|
8023
|
+
viewed_at?: string | null;
|
|
8024
|
+
volgnummer?: number | null;
|
|
8025
|
+
werkbon_id?: string | null;
|
|
8026
|
+
work_location_id?: string | null;
|
|
8027
|
+
};
|
|
8028
|
+
Relationships: [{
|
|
8029
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8030
|
+
columns: ["contact_id"];
|
|
8031
|
+
isOneToOne: false;
|
|
8032
|
+
referencedRelation: "itk_contact_persons";
|
|
8033
|
+
referencedColumns: ["id"];
|
|
8034
|
+
}, {
|
|
8035
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8036
|
+
columns: ["customer_id"];
|
|
8037
|
+
isOneToOne: false;
|
|
8038
|
+
referencedRelation: "itk_customers";
|
|
8039
|
+
referencedColumns: ["id"];
|
|
8040
|
+
}, {
|
|
8041
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8042
|
+
columns: ["follow_up_werkbon_id"];
|
|
8043
|
+
isOneToOne: false;
|
|
8044
|
+
referencedRelation: "werkbonnen";
|
|
8045
|
+
referencedColumns: ["id"];
|
|
8046
|
+
}, {
|
|
8047
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8048
|
+
columns: ["werkbon_id"];
|
|
8049
|
+
isOneToOne: false;
|
|
8050
|
+
referencedRelation: "werkbonnen";
|
|
8051
|
+
referencedColumns: ["id"];
|
|
8052
|
+
}, {
|
|
8053
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8054
|
+
columns: ["work_location_id"];
|
|
8055
|
+
isOneToOne: false;
|
|
8056
|
+
referencedRelation: "itk_work_locations";
|
|
8057
|
+
referencedColumns: ["id"];
|
|
8058
|
+
}];
|
|
8059
|
+
};
|
|
7772
8060
|
itk_work_locations: {
|
|
7773
8061
|
Row: {
|
|
7774
8062
|
city: string | null;
|
|
@@ -10142,6 +10430,63 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
10142
10430
|
referencedColumns: ["id"];
|
|
10143
10431
|
}];
|
|
10144
10432
|
};
|
|
10433
|
+
medewerker_details: {
|
|
10434
|
+
Row: {
|
|
10435
|
+
color: string | null;
|
|
10436
|
+
created_at: string;
|
|
10437
|
+
hours_fri: number | null;
|
|
10438
|
+
hours_mon: number | null;
|
|
10439
|
+
hours_thu: number | null;
|
|
10440
|
+
hours_tue: number | null;
|
|
10441
|
+
hours_wed: number | null;
|
|
10442
|
+
id: string;
|
|
10443
|
+
is_active: boolean;
|
|
10444
|
+
leave_balance_hours: number;
|
|
10445
|
+
persnr: string | null;
|
|
10446
|
+
phone: string | null;
|
|
10447
|
+
profile_id: string;
|
|
10448
|
+
updated_at: string;
|
|
10449
|
+
};
|
|
10450
|
+
Insert: {
|
|
10451
|
+
color?: string | null;
|
|
10452
|
+
created_at?: string;
|
|
10453
|
+
hours_fri?: number | null;
|
|
10454
|
+
hours_mon?: number | null;
|
|
10455
|
+
hours_thu?: number | null;
|
|
10456
|
+
hours_tue?: number | null;
|
|
10457
|
+
hours_wed?: number | null;
|
|
10458
|
+
id?: string;
|
|
10459
|
+
is_active?: boolean;
|
|
10460
|
+
leave_balance_hours?: number;
|
|
10461
|
+
persnr?: string | null;
|
|
10462
|
+
phone?: string | null;
|
|
10463
|
+
profile_id: string;
|
|
10464
|
+
updated_at?: string;
|
|
10465
|
+
};
|
|
10466
|
+
Update: {
|
|
10467
|
+
color?: string | null;
|
|
10468
|
+
created_at?: string;
|
|
10469
|
+
hours_fri?: number | null;
|
|
10470
|
+
hours_mon?: number | null;
|
|
10471
|
+
hours_thu?: number | null;
|
|
10472
|
+
hours_tue?: number | null;
|
|
10473
|
+
hours_wed?: number | null;
|
|
10474
|
+
id?: string;
|
|
10475
|
+
is_active?: boolean;
|
|
10476
|
+
leave_balance_hours?: number;
|
|
10477
|
+
persnr?: string | null;
|
|
10478
|
+
phone?: string | null;
|
|
10479
|
+
profile_id?: string;
|
|
10480
|
+
updated_at?: string;
|
|
10481
|
+
};
|
|
10482
|
+
Relationships: [{
|
|
10483
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10484
|
+
columns: ["profile_id"];
|
|
10485
|
+
isOneToOne: true;
|
|
10486
|
+
referencedRelation: "profiles";
|
|
10487
|
+
referencedColumns: ["id"];
|
|
10488
|
+
}];
|
|
10489
|
+
};
|
|
10145
10490
|
module_features: {
|
|
10146
10491
|
Row: {
|
|
10147
10492
|
created_at: string;
|
|
@@ -11435,6 +11780,8 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
11435
11780
|
orders: {
|
|
11436
11781
|
Row: {
|
|
11437
11782
|
buffer_id: string | null;
|
|
11783
|
+
cancel_reason: string | null;
|
|
11784
|
+
cancelled_at: string | null;
|
|
11438
11785
|
created_at: string;
|
|
11439
11786
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
11440
11787
|
customer_id: string | null;
|
|
@@ -11457,6 +11804,8 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
11457
11804
|
};
|
|
11458
11805
|
Insert: {
|
|
11459
11806
|
buffer_id?: string | null;
|
|
11807
|
+
cancel_reason?: string | null;
|
|
11808
|
+
cancelled_at?: string | null;
|
|
11460
11809
|
created_at?: string;
|
|
11461
11810
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11462
11811
|
customer_id?: string | null;
|
|
@@ -11479,6 +11828,8 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
11479
11828
|
};
|
|
11480
11829
|
Update: {
|
|
11481
11830
|
buffer_id?: string | null;
|
|
11831
|
+
cancel_reason?: string | null;
|
|
11832
|
+
cancelled_at?: string | null;
|
|
11482
11833
|
created_at?: string;
|
|
11483
11834
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11484
11835
|
customer_id?: string | null;
|
|
@@ -13541,6 +13892,66 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
13541
13892
|
};
|
|
13542
13893
|
Relationships: [];
|
|
13543
13894
|
};
|
|
13895
|
+
profile_modules: {
|
|
13896
|
+
Row: {
|
|
13897
|
+
created_at: string;
|
|
13898
|
+
id: string;
|
|
13899
|
+
module_id: string;
|
|
13900
|
+
profile_id: string;
|
|
13901
|
+
};
|
|
13902
|
+
Insert: {
|
|
13903
|
+
created_at?: string;
|
|
13904
|
+
id?: string;
|
|
13905
|
+
module_id: string;
|
|
13906
|
+
profile_id: string;
|
|
13907
|
+
};
|
|
13908
|
+
Update: {
|
|
13909
|
+
created_at?: string;
|
|
13910
|
+
id?: string;
|
|
13911
|
+
module_id?: string;
|
|
13912
|
+
profile_id?: string;
|
|
13913
|
+
};
|
|
13914
|
+
Relationships: [{
|
|
13915
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
13916
|
+
columns: ["profile_id"];
|
|
13917
|
+
isOneToOne: false;
|
|
13918
|
+
referencedRelation: "profiles_org";
|
|
13919
|
+
referencedColumns: ["id"];
|
|
13920
|
+
}];
|
|
13921
|
+
};
|
|
13922
|
+
profile_roles: {
|
|
13923
|
+
Row: {
|
|
13924
|
+
created_at: string;
|
|
13925
|
+
id: string;
|
|
13926
|
+
profile_id: string;
|
|
13927
|
+
role_id: string;
|
|
13928
|
+
};
|
|
13929
|
+
Insert: {
|
|
13930
|
+
created_at?: string;
|
|
13931
|
+
id?: string;
|
|
13932
|
+
profile_id: string;
|
|
13933
|
+
role_id: string;
|
|
13934
|
+
};
|
|
13935
|
+
Update: {
|
|
13936
|
+
created_at?: string;
|
|
13937
|
+
id?: string;
|
|
13938
|
+
profile_id?: string;
|
|
13939
|
+
role_id?: string;
|
|
13940
|
+
};
|
|
13941
|
+
Relationships: [{
|
|
13942
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
13943
|
+
columns: ["profile_id"];
|
|
13944
|
+
isOneToOne: false;
|
|
13945
|
+
referencedRelation: "profiles_org";
|
|
13946
|
+
referencedColumns: ["id"];
|
|
13947
|
+
}, {
|
|
13948
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
13949
|
+
columns: ["role_id"];
|
|
13950
|
+
isOneToOne: false;
|
|
13951
|
+
referencedRelation: "roles";
|
|
13952
|
+
referencedColumns: ["id"];
|
|
13953
|
+
}];
|
|
13954
|
+
};
|
|
13544
13955
|
profiles: {
|
|
13545
13956
|
Row: {
|
|
13546
13957
|
address: string | null;
|
|
@@ -13586,6 +13997,39 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
13586
13997
|
referencedColumns: ["id"];
|
|
13587
13998
|
}];
|
|
13588
13999
|
};
|
|
14000
|
+
profiles_org: {
|
|
14001
|
+
Row: {
|
|
14002
|
+
created_at: string;
|
|
14003
|
+
id: string;
|
|
14004
|
+
is_default: boolean;
|
|
14005
|
+
name: string;
|
|
14006
|
+
tenant_id: string | null;
|
|
14007
|
+
updated_at: string;
|
|
14008
|
+
};
|
|
14009
|
+
Insert: {
|
|
14010
|
+
created_at?: string;
|
|
14011
|
+
id?: string;
|
|
14012
|
+
is_default?: boolean;
|
|
14013
|
+
name: string;
|
|
14014
|
+
tenant_id?: string | null;
|
|
14015
|
+
updated_at?: string;
|
|
14016
|
+
};
|
|
14017
|
+
Update: {
|
|
14018
|
+
created_at?: string;
|
|
14019
|
+
id?: string;
|
|
14020
|
+
is_default?: boolean;
|
|
14021
|
+
name?: string;
|
|
14022
|
+
tenant_id?: string | null;
|
|
14023
|
+
updated_at?: string;
|
|
14024
|
+
};
|
|
14025
|
+
Relationships: [{
|
|
14026
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14027
|
+
columns: ["tenant_id"];
|
|
14028
|
+
isOneToOne: false;
|
|
14029
|
+
referencedRelation: "tenants";
|
|
14030
|
+
referencedColumns: ["id"];
|
|
14031
|
+
}];
|
|
14032
|
+
};
|
|
13589
14033
|
projects: {
|
|
13590
14034
|
Row: {
|
|
13591
14035
|
contact_name: string | null;
|
|
@@ -14760,6 +15204,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
14760
15204
|
type: string;
|
|
14761
15205
|
updated_at: string;
|
|
14762
15206
|
vereist_medewerker: boolean;
|
|
15207
|
+
werkplek: string | null;
|
|
14763
15208
|
};
|
|
14764
15209
|
Insert: {
|
|
14765
15210
|
actief?: boolean;
|
|
@@ -14773,6 +15218,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
14773
15218
|
type?: string;
|
|
14774
15219
|
updated_at?: string;
|
|
14775
15220
|
vereist_medewerker?: boolean;
|
|
15221
|
+
werkplek?: string | null;
|
|
14776
15222
|
};
|
|
14777
15223
|
Update: {
|
|
14778
15224
|
actief?: boolean;
|
|
@@ -14786,9 +15232,46 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
14786
15232
|
type?: string;
|
|
14787
15233
|
updated_at?: string;
|
|
14788
15234
|
vereist_medewerker?: boolean;
|
|
15235
|
+
werkplek?: string | null;
|
|
14789
15236
|
};
|
|
14790
15237
|
Relationships: [];
|
|
14791
15238
|
};
|
|
15239
|
+
sick_periods: {
|
|
15240
|
+
Row: {
|
|
15241
|
+
created_at: string;
|
|
15242
|
+
employee_id: string;
|
|
15243
|
+
end_date: string | null;
|
|
15244
|
+
id: string;
|
|
15245
|
+
notes: string | null;
|
|
15246
|
+
start_date: string;
|
|
15247
|
+
updated_at: string;
|
|
15248
|
+
};
|
|
15249
|
+
Insert: {
|
|
15250
|
+
created_at?: string;
|
|
15251
|
+
employee_id: string;
|
|
15252
|
+
end_date?: string | null;
|
|
15253
|
+
id?: string;
|
|
15254
|
+
notes?: string | null;
|
|
15255
|
+
start_date: string;
|
|
15256
|
+
updated_at?: string;
|
|
15257
|
+
};
|
|
15258
|
+
Update: {
|
|
15259
|
+
created_at?: string;
|
|
15260
|
+
employee_id?: string;
|
|
15261
|
+
end_date?: string | null;
|
|
15262
|
+
id?: string;
|
|
15263
|
+
notes?: string | null;
|
|
15264
|
+
start_date?: string;
|
|
15265
|
+
updated_at?: string;
|
|
15266
|
+
};
|
|
15267
|
+
Relationships: [{
|
|
15268
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15269
|
+
columns: ["employee_id"];
|
|
15270
|
+
isOneToOne: false;
|
|
15271
|
+
referencedRelation: "profiles";
|
|
15272
|
+
referencedColumns: ["id"];
|
|
15273
|
+
}];
|
|
15274
|
+
};
|
|
14792
15275
|
sidebar_config: {
|
|
14793
15276
|
Row: {
|
|
14794
15277
|
id: string;
|
|
@@ -19473,6 +19956,13 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
19473
19956
|
};
|
|
19474
19957
|
Returns: string;
|
|
19475
19958
|
};
|
|
19959
|
+
employee_day_hours: {
|
|
19960
|
+
Args: {
|
|
19961
|
+
_day: string;
|
|
19962
|
+
_employee_id: string;
|
|
19963
|
+
};
|
|
19964
|
+
Returns: number;
|
|
19965
|
+
};
|
|
19476
19966
|
enqueue_cart_replan_if_unlocked: {
|
|
19477
19967
|
Args: {
|
|
19478
19968
|
p_order_id: string;
|
|
@@ -19826,6 +20316,19 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
19826
20316
|
Args: never;
|
|
19827
20317
|
Returns: boolean;
|
|
19828
20318
|
};
|
|
20319
|
+
itk_offerte_naar_werkbon: {
|
|
20320
|
+
Args: {
|
|
20321
|
+
_offerte_id: string;
|
|
20322
|
+
};
|
|
20323
|
+
Returns: string;
|
|
20324
|
+
};
|
|
20325
|
+
itk_offerte_restant_mandaat: {
|
|
20326
|
+
Args: {
|
|
20327
|
+
_exclude_offerte_id?: string;
|
|
20328
|
+
_werkbon_id: string;
|
|
20329
|
+
};
|
|
20330
|
+
Returns: number;
|
|
20331
|
+
};
|
|
19829
20332
|
jwt_has_role: {
|
|
19830
20333
|
Args: {
|
|
19831
20334
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -19836,9 +20339,19 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
19836
20339
|
Args: never;
|
|
19837
20340
|
Returns: {
|
|
19838
20341
|
avatar_url: string;
|
|
20342
|
+
color: string;
|
|
19839
20343
|
display_name: string;
|
|
19840
20344
|
email: string;
|
|
20345
|
+
hours_fri: number;
|
|
20346
|
+
hours_mon: number;
|
|
20347
|
+
hours_thu: number;
|
|
20348
|
+
hours_tue: number;
|
|
20349
|
+
hours_wed: number;
|
|
19841
20350
|
id: string;
|
|
20351
|
+
is_active: boolean;
|
|
20352
|
+
leave_balance_hours: number;
|
|
20353
|
+
persnr: string;
|
|
20354
|
+
phone: string;
|
|
19842
20355
|
roles: string[];
|
|
19843
20356
|
}[];
|
|
19844
20357
|
};
|
|
@@ -20165,17 +20678,6 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
20165
20678
|
Returns: string;
|
|
20166
20679
|
};
|
|
20167
20680
|
logistics_emit_event: {
|
|
20168
|
-
Args: {
|
|
20169
|
-
p_event_type: string;
|
|
20170
|
-
p_idempotency_key?: string;
|
|
20171
|
-
p_order_ref: string;
|
|
20172
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
20173
|
-
p_shadow?: boolean;
|
|
20174
|
-
p_source_module: string;
|
|
20175
|
-
p_strategy_id?: string;
|
|
20176
|
-
};
|
|
20177
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
20178
|
-
} | {
|
|
20179
20681
|
Args: {
|
|
20180
20682
|
p_event_type: string;
|
|
20181
20683
|
p_idempotency_key?: string;
|
|
@@ -21020,6 +21522,37 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
21020
21522
|
};
|
|
21021
21523
|
Returns: undefined;
|
|
21022
21524
|
};
|
|
21525
|
+
quote_create_from_source: {
|
|
21526
|
+
Args: {
|
|
21527
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
21528
|
+
_source_id: string;
|
|
21529
|
+
_source_type: string;
|
|
21530
|
+
};
|
|
21531
|
+
Returns: string;
|
|
21532
|
+
};
|
|
21533
|
+
quote_get_billable_lines: {
|
|
21534
|
+
Args: {
|
|
21535
|
+
_quotation_id: string;
|
|
21536
|
+
};
|
|
21537
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21538
|
+
};
|
|
21539
|
+
quote_get_summary: {
|
|
21540
|
+
Args: {
|
|
21541
|
+
_quotation_id: string;
|
|
21542
|
+
};
|
|
21543
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21544
|
+
};
|
|
21545
|
+
quote_list_packages: {
|
|
21546
|
+
Args: never;
|
|
21547
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21548
|
+
};
|
|
21549
|
+
quote_list_sources: {
|
|
21550
|
+
Args: {
|
|
21551
|
+
_limit?: number;
|
|
21552
|
+
_source_type?: string;
|
|
21553
|
+
};
|
|
21554
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21555
|
+
};
|
|
21023
21556
|
recompute_all_reserved_stock: {
|
|
21024
21557
|
Args: never;
|
|
21025
21558
|
Returns: undefined;
|
|
@@ -21555,6 +22088,12 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
21555
22088
|
};
|
|
21556
22089
|
Returns: undefined;
|
|
21557
22090
|
};
|
|
22091
|
+
sync_sick_time_off: {
|
|
22092
|
+
Args: {
|
|
22093
|
+
_period_id: string;
|
|
22094
|
+
};
|
|
22095
|
+
Returns: number;
|
|
22096
|
+
};
|
|
21558
22097
|
trade_item_stock_duplicates: {
|
|
21559
22098
|
Args: never;
|
|
21560
22099
|
Returns: {
|
|
@@ -21628,11 +22167,31 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
|
|
|
21628
22167
|
Args: never;
|
|
21629
22168
|
Returns: string;
|
|
21630
22169
|
};
|
|
22170
|
+
wo_create_from_source: {
|
|
22171
|
+
Args: {
|
|
22172
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
22173
|
+
_source_id: string;
|
|
22174
|
+
_source_type: string;
|
|
22175
|
+
};
|
|
22176
|
+
Returns: string;
|
|
22177
|
+
};
|
|
22178
|
+
wo_get_billable_lines: {
|
|
22179
|
+
Args: {
|
|
22180
|
+
_work_order_id: string;
|
|
22181
|
+
};
|
|
22182
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22183
|
+
};
|
|
22184
|
+
wo_get_summary: {
|
|
22185
|
+
Args: {
|
|
22186
|
+
_work_order_id: string;
|
|
22187
|
+
};
|
|
22188
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22189
|
+
};
|
|
21631
22190
|
};
|
|
21632
22191
|
Enums: {
|
|
21633
22192
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21634
22193
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21635
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
22194
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21636
22195
|
doc_orientation: "portrait" | "landscape";
|
|
21637
22196
|
exact_env: "staging" | "live";
|
|
21638
22197
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -26697,6 +27256,42 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
26697
27256
|
};
|
|
26698
27257
|
Relationships: [];
|
|
26699
27258
|
};
|
|
27259
|
+
facturen: {
|
|
27260
|
+
Row: {
|
|
27261
|
+
bedrag_incl_btw: number;
|
|
27262
|
+
created_at: string;
|
|
27263
|
+
datum: string;
|
|
27264
|
+
factuurnummer: string;
|
|
27265
|
+
id: string;
|
|
27266
|
+
klantnaam: string;
|
|
27267
|
+
status: string;
|
|
27268
|
+
updated_at: string;
|
|
27269
|
+
user_id: string;
|
|
27270
|
+
};
|
|
27271
|
+
Insert: {
|
|
27272
|
+
bedrag_incl_btw: number;
|
|
27273
|
+
created_at?: string;
|
|
27274
|
+
datum?: string;
|
|
27275
|
+
factuurnummer: string;
|
|
27276
|
+
id?: string;
|
|
27277
|
+
klantnaam: string;
|
|
27278
|
+
status?: string;
|
|
27279
|
+
updated_at?: string;
|
|
27280
|
+
user_id?: string;
|
|
27281
|
+
};
|
|
27282
|
+
Update: {
|
|
27283
|
+
bedrag_incl_btw?: number;
|
|
27284
|
+
created_at?: string;
|
|
27285
|
+
datum?: string;
|
|
27286
|
+
factuurnummer?: string;
|
|
27287
|
+
id?: string;
|
|
27288
|
+
klantnaam?: string;
|
|
27289
|
+
status?: string;
|
|
27290
|
+
updated_at?: string;
|
|
27291
|
+
user_id?: string;
|
|
27292
|
+
};
|
|
27293
|
+
Relationships: [];
|
|
27294
|
+
};
|
|
26700
27295
|
floricode_connection_settings: {
|
|
26701
27296
|
Row: {
|
|
26702
27297
|
catalog_key: string | null;
|
|
@@ -29421,6 +30016,258 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
29421
30016
|
};
|
|
29422
30017
|
Relationships: [];
|
|
29423
30018
|
};
|
|
30019
|
+
itk_offerte_events: {
|
|
30020
|
+
Row: {
|
|
30021
|
+
created_at: string;
|
|
30022
|
+
event_type: string;
|
|
30023
|
+
id: string;
|
|
30024
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
30025
|
+
offerte_id: string;
|
|
30026
|
+
omschrijving: string | null;
|
|
30027
|
+
user_id: string | null;
|
|
30028
|
+
};
|
|
30029
|
+
Insert: {
|
|
30030
|
+
created_at?: string;
|
|
30031
|
+
event_type: string;
|
|
30032
|
+
id?: string;
|
|
30033
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30034
|
+
offerte_id: string;
|
|
30035
|
+
omschrijving?: string | null;
|
|
30036
|
+
user_id?: string | null;
|
|
30037
|
+
};
|
|
30038
|
+
Update: {
|
|
30039
|
+
created_at?: string;
|
|
30040
|
+
event_type?: string;
|
|
30041
|
+
id?: string;
|
|
30042
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30043
|
+
offerte_id?: string;
|
|
30044
|
+
omschrijving?: string | null;
|
|
30045
|
+
user_id?: string | null;
|
|
30046
|
+
};
|
|
30047
|
+
Relationships: [{
|
|
30048
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
30049
|
+
columns: ["offerte_id"];
|
|
30050
|
+
isOneToOne: false;
|
|
30051
|
+
referencedRelation: "itk_offertes";
|
|
30052
|
+
referencedColumns: ["id"];
|
|
30053
|
+
}];
|
|
30054
|
+
};
|
|
30055
|
+
itk_offerte_regels: {
|
|
30056
|
+
Row: {
|
|
30057
|
+
created_at: string;
|
|
30058
|
+
id: string;
|
|
30059
|
+
line_total_cents: number;
|
|
30060
|
+
offerte_id: string;
|
|
30061
|
+
omschrijving: string;
|
|
30062
|
+
package_id: string | null;
|
|
30063
|
+
quantity: number;
|
|
30064
|
+
sort_order: number;
|
|
30065
|
+
source: string;
|
|
30066
|
+
unit_price_cents: number;
|
|
30067
|
+
updated_at: string;
|
|
30068
|
+
};
|
|
30069
|
+
Insert: {
|
|
30070
|
+
created_at?: string;
|
|
30071
|
+
id?: string;
|
|
30072
|
+
line_total_cents?: number;
|
|
30073
|
+
offerte_id: string;
|
|
30074
|
+
omschrijving?: string;
|
|
30075
|
+
package_id?: string | null;
|
|
30076
|
+
quantity?: number;
|
|
30077
|
+
sort_order?: number;
|
|
30078
|
+
source?: string;
|
|
30079
|
+
unit_price_cents?: number;
|
|
30080
|
+
updated_at?: string;
|
|
30081
|
+
};
|
|
30082
|
+
Update: {
|
|
30083
|
+
created_at?: string;
|
|
30084
|
+
id?: string;
|
|
30085
|
+
line_total_cents?: number;
|
|
30086
|
+
offerte_id?: string;
|
|
30087
|
+
omschrijving?: string;
|
|
30088
|
+
package_id?: string | null;
|
|
30089
|
+
quantity?: number;
|
|
30090
|
+
sort_order?: number;
|
|
30091
|
+
source?: string;
|
|
30092
|
+
unit_price_cents?: number;
|
|
30093
|
+
updated_at?: string;
|
|
30094
|
+
};
|
|
30095
|
+
Relationships: [{
|
|
30096
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
30097
|
+
columns: ["offerte_id"];
|
|
30098
|
+
isOneToOne: false;
|
|
30099
|
+
referencedRelation: "itk_offertes";
|
|
30100
|
+
referencedColumns: ["id"];
|
|
30101
|
+
}, {
|
|
30102
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
30103
|
+
columns: ["package_id"];
|
|
30104
|
+
isOneToOne: false;
|
|
30105
|
+
referencedRelation: "werkbon_packages";
|
|
30106
|
+
referencedColumns: ["id"];
|
|
30107
|
+
}];
|
|
30108
|
+
};
|
|
30109
|
+
itk_offerte_settings: {
|
|
30110
|
+
Row: {
|
|
30111
|
+
auto_convert_binnen_mandaat: boolean;
|
|
30112
|
+
created_at: string;
|
|
30113
|
+
default_geldigheid_dagen: number;
|
|
30114
|
+
default_vat_rate: number;
|
|
30115
|
+
id: string;
|
|
30116
|
+
singleton: boolean;
|
|
30117
|
+
updated_at: string;
|
|
30118
|
+
};
|
|
30119
|
+
Insert: {
|
|
30120
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30121
|
+
created_at?: string;
|
|
30122
|
+
default_geldigheid_dagen?: number;
|
|
30123
|
+
default_vat_rate?: number;
|
|
30124
|
+
id?: string;
|
|
30125
|
+
singleton?: boolean;
|
|
30126
|
+
updated_at?: string;
|
|
30127
|
+
};
|
|
30128
|
+
Update: {
|
|
30129
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30130
|
+
created_at?: string;
|
|
30131
|
+
default_geldigheid_dagen?: number;
|
|
30132
|
+
default_vat_rate?: number;
|
|
30133
|
+
id?: string;
|
|
30134
|
+
singleton?: boolean;
|
|
30135
|
+
updated_at?: string;
|
|
30136
|
+
};
|
|
30137
|
+
Relationships: [];
|
|
30138
|
+
};
|
|
30139
|
+
itk_offertes: {
|
|
30140
|
+
Row: {
|
|
30141
|
+
ai_generated: boolean;
|
|
30142
|
+
approved_at: string | null;
|
|
30143
|
+
binnen_mandaat: boolean;
|
|
30144
|
+
contact_id: string | null;
|
|
30145
|
+
converted_at: string | null;
|
|
30146
|
+
created_at: string;
|
|
30147
|
+
created_by: string | null;
|
|
30148
|
+
customer_id: string | null;
|
|
30149
|
+
follow_up_werkbon_id: string | null;
|
|
30150
|
+
id: string;
|
|
30151
|
+
jaar: number;
|
|
30152
|
+
mandaat_restant_cents: number;
|
|
30153
|
+
notities: string | null;
|
|
30154
|
+
offerte_number: string | null;
|
|
30155
|
+
omschrijving: string;
|
|
30156
|
+
rejected_at: string | null;
|
|
30157
|
+
sent_at: string | null;
|
|
30158
|
+
source_number: string | null;
|
|
30159
|
+
source_ref: string | null;
|
|
30160
|
+
source_type: string;
|
|
30161
|
+
status: string;
|
|
30162
|
+
subtotal_cents: number;
|
|
30163
|
+
total_cents: number;
|
|
30164
|
+
updated_at: string;
|
|
30165
|
+
valid_until: string | null;
|
|
30166
|
+
vat_cents: number;
|
|
30167
|
+
vat_rate: number;
|
|
30168
|
+
viewed_at: string | null;
|
|
30169
|
+
volgnummer: number | null;
|
|
30170
|
+
werkbon_id: string | null;
|
|
30171
|
+
work_location_id: string | null;
|
|
30172
|
+
};
|
|
30173
|
+
Insert: {
|
|
30174
|
+
ai_generated?: boolean;
|
|
30175
|
+
approved_at?: string | null;
|
|
30176
|
+
binnen_mandaat?: boolean;
|
|
30177
|
+
contact_id?: string | null;
|
|
30178
|
+
converted_at?: string | null;
|
|
30179
|
+
created_at?: string;
|
|
30180
|
+
created_by?: string | null;
|
|
30181
|
+
customer_id?: string | null;
|
|
30182
|
+
follow_up_werkbon_id?: string | null;
|
|
30183
|
+
id?: string;
|
|
30184
|
+
jaar?: number;
|
|
30185
|
+
mandaat_restant_cents?: number;
|
|
30186
|
+
notities?: string | null;
|
|
30187
|
+
offerte_number?: string | null;
|
|
30188
|
+
omschrijving?: string;
|
|
30189
|
+
rejected_at?: string | null;
|
|
30190
|
+
sent_at?: string | null;
|
|
30191
|
+
source_number?: string | null;
|
|
30192
|
+
source_ref?: string | null;
|
|
30193
|
+
source_type?: string;
|
|
30194
|
+
status?: string;
|
|
30195
|
+
subtotal_cents?: number;
|
|
30196
|
+
total_cents?: number;
|
|
30197
|
+
updated_at?: string;
|
|
30198
|
+
valid_until?: string | null;
|
|
30199
|
+
vat_cents?: number;
|
|
30200
|
+
vat_rate?: number;
|
|
30201
|
+
viewed_at?: string | null;
|
|
30202
|
+
volgnummer?: number | null;
|
|
30203
|
+
werkbon_id?: string | null;
|
|
30204
|
+
work_location_id?: string | null;
|
|
30205
|
+
};
|
|
30206
|
+
Update: {
|
|
30207
|
+
ai_generated?: boolean;
|
|
30208
|
+
approved_at?: string | null;
|
|
30209
|
+
binnen_mandaat?: boolean;
|
|
30210
|
+
contact_id?: string | null;
|
|
30211
|
+
converted_at?: string | null;
|
|
30212
|
+
created_at?: string;
|
|
30213
|
+
created_by?: string | null;
|
|
30214
|
+
customer_id?: string | null;
|
|
30215
|
+
follow_up_werkbon_id?: string | null;
|
|
30216
|
+
id?: string;
|
|
30217
|
+
jaar?: number;
|
|
30218
|
+
mandaat_restant_cents?: number;
|
|
30219
|
+
notities?: string | null;
|
|
30220
|
+
offerte_number?: string | null;
|
|
30221
|
+
omschrijving?: string;
|
|
30222
|
+
rejected_at?: string | null;
|
|
30223
|
+
sent_at?: string | null;
|
|
30224
|
+
source_number?: string | null;
|
|
30225
|
+
source_ref?: string | null;
|
|
30226
|
+
source_type?: string;
|
|
30227
|
+
status?: string;
|
|
30228
|
+
subtotal_cents?: number;
|
|
30229
|
+
total_cents?: number;
|
|
30230
|
+
updated_at?: string;
|
|
30231
|
+
valid_until?: string | null;
|
|
30232
|
+
vat_cents?: number;
|
|
30233
|
+
vat_rate?: number;
|
|
30234
|
+
viewed_at?: string | null;
|
|
30235
|
+
volgnummer?: number | null;
|
|
30236
|
+
werkbon_id?: string | null;
|
|
30237
|
+
work_location_id?: string | null;
|
|
30238
|
+
};
|
|
30239
|
+
Relationships: [{
|
|
30240
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
30241
|
+
columns: ["contact_id"];
|
|
30242
|
+
isOneToOne: false;
|
|
30243
|
+
referencedRelation: "itk_contact_persons";
|
|
30244
|
+
referencedColumns: ["id"];
|
|
30245
|
+
}, {
|
|
30246
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
30247
|
+
columns: ["customer_id"];
|
|
30248
|
+
isOneToOne: false;
|
|
30249
|
+
referencedRelation: "itk_customers";
|
|
30250
|
+
referencedColumns: ["id"];
|
|
30251
|
+
}, {
|
|
30252
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
30253
|
+
columns: ["follow_up_werkbon_id"];
|
|
30254
|
+
isOneToOne: false;
|
|
30255
|
+
referencedRelation: "werkbonnen";
|
|
30256
|
+
referencedColumns: ["id"];
|
|
30257
|
+
}, {
|
|
30258
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
30259
|
+
columns: ["werkbon_id"];
|
|
30260
|
+
isOneToOne: false;
|
|
30261
|
+
referencedRelation: "werkbonnen";
|
|
30262
|
+
referencedColumns: ["id"];
|
|
30263
|
+
}, {
|
|
30264
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
30265
|
+
columns: ["work_location_id"];
|
|
30266
|
+
isOneToOne: false;
|
|
30267
|
+
referencedRelation: "itk_work_locations";
|
|
30268
|
+
referencedColumns: ["id"];
|
|
30269
|
+
}];
|
|
30270
|
+
};
|
|
29424
30271
|
itk_work_locations: {
|
|
29425
30272
|
Row: {
|
|
29426
30273
|
city: string | null;
|
|
@@ -31794,6 +32641,63 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
31794
32641
|
referencedColumns: ["id"];
|
|
31795
32642
|
}];
|
|
31796
32643
|
};
|
|
32644
|
+
medewerker_details: {
|
|
32645
|
+
Row: {
|
|
32646
|
+
color: string | null;
|
|
32647
|
+
created_at: string;
|
|
32648
|
+
hours_fri: number | null;
|
|
32649
|
+
hours_mon: number | null;
|
|
32650
|
+
hours_thu: number | null;
|
|
32651
|
+
hours_tue: number | null;
|
|
32652
|
+
hours_wed: number | null;
|
|
32653
|
+
id: string;
|
|
32654
|
+
is_active: boolean;
|
|
32655
|
+
leave_balance_hours: number;
|
|
32656
|
+
persnr: string | null;
|
|
32657
|
+
phone: string | null;
|
|
32658
|
+
profile_id: string;
|
|
32659
|
+
updated_at: string;
|
|
32660
|
+
};
|
|
32661
|
+
Insert: {
|
|
32662
|
+
color?: string | null;
|
|
32663
|
+
created_at?: string;
|
|
32664
|
+
hours_fri?: number | null;
|
|
32665
|
+
hours_mon?: number | null;
|
|
32666
|
+
hours_thu?: number | null;
|
|
32667
|
+
hours_tue?: number | null;
|
|
32668
|
+
hours_wed?: number | null;
|
|
32669
|
+
id?: string;
|
|
32670
|
+
is_active?: boolean;
|
|
32671
|
+
leave_balance_hours?: number;
|
|
32672
|
+
persnr?: string | null;
|
|
32673
|
+
phone?: string | null;
|
|
32674
|
+
profile_id: string;
|
|
32675
|
+
updated_at?: string;
|
|
32676
|
+
};
|
|
32677
|
+
Update: {
|
|
32678
|
+
color?: string | null;
|
|
32679
|
+
created_at?: string;
|
|
32680
|
+
hours_fri?: number | null;
|
|
32681
|
+
hours_mon?: number | null;
|
|
32682
|
+
hours_thu?: number | null;
|
|
32683
|
+
hours_tue?: number | null;
|
|
32684
|
+
hours_wed?: number | null;
|
|
32685
|
+
id?: string;
|
|
32686
|
+
is_active?: boolean;
|
|
32687
|
+
leave_balance_hours?: number;
|
|
32688
|
+
persnr?: string | null;
|
|
32689
|
+
phone?: string | null;
|
|
32690
|
+
profile_id?: string;
|
|
32691
|
+
updated_at?: string;
|
|
32692
|
+
};
|
|
32693
|
+
Relationships: [{
|
|
32694
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
32695
|
+
columns: ["profile_id"];
|
|
32696
|
+
isOneToOne: true;
|
|
32697
|
+
referencedRelation: "profiles";
|
|
32698
|
+
referencedColumns: ["id"];
|
|
32699
|
+
}];
|
|
32700
|
+
};
|
|
31797
32701
|
module_features: {
|
|
31798
32702
|
Row: {
|
|
31799
32703
|
created_at: string;
|
|
@@ -33087,6 +33991,8 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
33087
33991
|
orders: {
|
|
33088
33992
|
Row: {
|
|
33089
33993
|
buffer_id: string | null;
|
|
33994
|
+
cancel_reason: string | null;
|
|
33995
|
+
cancelled_at: string | null;
|
|
33090
33996
|
created_at: string;
|
|
33091
33997
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
33092
33998
|
customer_id: string | null;
|
|
@@ -33109,6 +34015,8 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
33109
34015
|
};
|
|
33110
34016
|
Insert: {
|
|
33111
34017
|
buffer_id?: string | null;
|
|
34018
|
+
cancel_reason?: string | null;
|
|
34019
|
+
cancelled_at?: string | null;
|
|
33112
34020
|
created_at?: string;
|
|
33113
34021
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33114
34022
|
customer_id?: string | null;
|
|
@@ -33131,6 +34039,8 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
33131
34039
|
};
|
|
33132
34040
|
Update: {
|
|
33133
34041
|
buffer_id?: string | null;
|
|
34042
|
+
cancel_reason?: string | null;
|
|
34043
|
+
cancelled_at?: string | null;
|
|
33134
34044
|
created_at?: string;
|
|
33135
34045
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33136
34046
|
customer_id?: string | null;
|
|
@@ -35193,6 +36103,66 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
35193
36103
|
};
|
|
35194
36104
|
Relationships: [];
|
|
35195
36105
|
};
|
|
36106
|
+
profile_modules: {
|
|
36107
|
+
Row: {
|
|
36108
|
+
created_at: string;
|
|
36109
|
+
id: string;
|
|
36110
|
+
module_id: string;
|
|
36111
|
+
profile_id: string;
|
|
36112
|
+
};
|
|
36113
|
+
Insert: {
|
|
36114
|
+
created_at?: string;
|
|
36115
|
+
id?: string;
|
|
36116
|
+
module_id: string;
|
|
36117
|
+
profile_id: string;
|
|
36118
|
+
};
|
|
36119
|
+
Update: {
|
|
36120
|
+
created_at?: string;
|
|
36121
|
+
id?: string;
|
|
36122
|
+
module_id?: string;
|
|
36123
|
+
profile_id?: string;
|
|
36124
|
+
};
|
|
36125
|
+
Relationships: [{
|
|
36126
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
36127
|
+
columns: ["profile_id"];
|
|
36128
|
+
isOneToOne: false;
|
|
36129
|
+
referencedRelation: "profiles_org";
|
|
36130
|
+
referencedColumns: ["id"];
|
|
36131
|
+
}];
|
|
36132
|
+
};
|
|
36133
|
+
profile_roles: {
|
|
36134
|
+
Row: {
|
|
36135
|
+
created_at: string;
|
|
36136
|
+
id: string;
|
|
36137
|
+
profile_id: string;
|
|
36138
|
+
role_id: string;
|
|
36139
|
+
};
|
|
36140
|
+
Insert: {
|
|
36141
|
+
created_at?: string;
|
|
36142
|
+
id?: string;
|
|
36143
|
+
profile_id: string;
|
|
36144
|
+
role_id: string;
|
|
36145
|
+
};
|
|
36146
|
+
Update: {
|
|
36147
|
+
created_at?: string;
|
|
36148
|
+
id?: string;
|
|
36149
|
+
profile_id?: string;
|
|
36150
|
+
role_id?: string;
|
|
36151
|
+
};
|
|
36152
|
+
Relationships: [{
|
|
36153
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
36154
|
+
columns: ["profile_id"];
|
|
36155
|
+
isOneToOne: false;
|
|
36156
|
+
referencedRelation: "profiles_org";
|
|
36157
|
+
referencedColumns: ["id"];
|
|
36158
|
+
}, {
|
|
36159
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
36160
|
+
columns: ["role_id"];
|
|
36161
|
+
isOneToOne: false;
|
|
36162
|
+
referencedRelation: "roles";
|
|
36163
|
+
referencedColumns: ["id"];
|
|
36164
|
+
}];
|
|
36165
|
+
};
|
|
35196
36166
|
profiles: {
|
|
35197
36167
|
Row: {
|
|
35198
36168
|
address: string | null;
|
|
@@ -35238,6 +36208,39 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
35238
36208
|
referencedColumns: ["id"];
|
|
35239
36209
|
}];
|
|
35240
36210
|
};
|
|
36211
|
+
profiles_org: {
|
|
36212
|
+
Row: {
|
|
36213
|
+
created_at: string;
|
|
36214
|
+
id: string;
|
|
36215
|
+
is_default: boolean;
|
|
36216
|
+
name: string;
|
|
36217
|
+
tenant_id: string | null;
|
|
36218
|
+
updated_at: string;
|
|
36219
|
+
};
|
|
36220
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
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
|
+
Relationships: [{
|
|
36237
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
36238
|
+
columns: ["tenant_id"];
|
|
36239
|
+
isOneToOne: false;
|
|
36240
|
+
referencedRelation: "tenants";
|
|
36241
|
+
referencedColumns: ["id"];
|
|
36242
|
+
}];
|
|
36243
|
+
};
|
|
35241
36244
|
projects: {
|
|
35242
36245
|
Row: {
|
|
35243
36246
|
contact_name: string | null;
|
|
@@ -36412,6 +37415,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
36412
37415
|
type: string;
|
|
36413
37416
|
updated_at: string;
|
|
36414
37417
|
vereist_medewerker: boolean;
|
|
37418
|
+
werkplek: string | null;
|
|
36415
37419
|
};
|
|
36416
37420
|
Insert: {
|
|
36417
37421
|
actief?: boolean;
|
|
@@ -36425,6 +37429,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
36425
37429
|
type?: string;
|
|
36426
37430
|
updated_at?: string;
|
|
36427
37431
|
vereist_medewerker?: boolean;
|
|
37432
|
+
werkplek?: string | null;
|
|
36428
37433
|
};
|
|
36429
37434
|
Update: {
|
|
36430
37435
|
actief?: boolean;
|
|
@@ -36438,9 +37443,46 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
36438
37443
|
type?: string;
|
|
36439
37444
|
updated_at?: string;
|
|
36440
37445
|
vereist_medewerker?: boolean;
|
|
37446
|
+
werkplek?: string | null;
|
|
36441
37447
|
};
|
|
36442
37448
|
Relationships: [];
|
|
36443
37449
|
};
|
|
37450
|
+
sick_periods: {
|
|
37451
|
+
Row: {
|
|
37452
|
+
created_at: string;
|
|
37453
|
+
employee_id: string;
|
|
37454
|
+
end_date: string | null;
|
|
37455
|
+
id: string;
|
|
37456
|
+
notes: string | null;
|
|
37457
|
+
start_date: string;
|
|
37458
|
+
updated_at: string;
|
|
37459
|
+
};
|
|
37460
|
+
Insert: {
|
|
37461
|
+
created_at?: string;
|
|
37462
|
+
employee_id: string;
|
|
37463
|
+
end_date?: string | null;
|
|
37464
|
+
id?: string;
|
|
37465
|
+
notes?: string | null;
|
|
37466
|
+
start_date: string;
|
|
37467
|
+
updated_at?: string;
|
|
37468
|
+
};
|
|
37469
|
+
Update: {
|
|
37470
|
+
created_at?: string;
|
|
37471
|
+
employee_id?: string;
|
|
37472
|
+
end_date?: string | null;
|
|
37473
|
+
id?: string;
|
|
37474
|
+
notes?: string | null;
|
|
37475
|
+
start_date?: string;
|
|
37476
|
+
updated_at?: string;
|
|
37477
|
+
};
|
|
37478
|
+
Relationships: [{
|
|
37479
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
37480
|
+
columns: ["employee_id"];
|
|
37481
|
+
isOneToOne: false;
|
|
37482
|
+
referencedRelation: "profiles";
|
|
37483
|
+
referencedColumns: ["id"];
|
|
37484
|
+
}];
|
|
37485
|
+
};
|
|
36444
37486
|
sidebar_config: {
|
|
36445
37487
|
Row: {
|
|
36446
37488
|
id: string;
|
|
@@ -41125,6 +42167,13 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
41125
42167
|
};
|
|
41126
42168
|
Returns: string;
|
|
41127
42169
|
};
|
|
42170
|
+
employee_day_hours: {
|
|
42171
|
+
Args: {
|
|
42172
|
+
_day: string;
|
|
42173
|
+
_employee_id: string;
|
|
42174
|
+
};
|
|
42175
|
+
Returns: number;
|
|
42176
|
+
};
|
|
41128
42177
|
enqueue_cart_replan_if_unlocked: {
|
|
41129
42178
|
Args: {
|
|
41130
42179
|
p_order_id: string;
|
|
@@ -41478,6 +42527,19 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
41478
42527
|
Args: never;
|
|
41479
42528
|
Returns: boolean;
|
|
41480
42529
|
};
|
|
42530
|
+
itk_offerte_naar_werkbon: {
|
|
42531
|
+
Args: {
|
|
42532
|
+
_offerte_id: string;
|
|
42533
|
+
};
|
|
42534
|
+
Returns: string;
|
|
42535
|
+
};
|
|
42536
|
+
itk_offerte_restant_mandaat: {
|
|
42537
|
+
Args: {
|
|
42538
|
+
_exclude_offerte_id?: string;
|
|
42539
|
+
_werkbon_id: string;
|
|
42540
|
+
};
|
|
42541
|
+
Returns: number;
|
|
42542
|
+
};
|
|
41481
42543
|
jwt_has_role: {
|
|
41482
42544
|
Args: {
|
|
41483
42545
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -41488,9 +42550,19 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
41488
42550
|
Args: never;
|
|
41489
42551
|
Returns: {
|
|
41490
42552
|
avatar_url: string;
|
|
42553
|
+
color: string;
|
|
41491
42554
|
display_name: string;
|
|
41492
42555
|
email: string;
|
|
42556
|
+
hours_fri: number;
|
|
42557
|
+
hours_mon: number;
|
|
42558
|
+
hours_thu: number;
|
|
42559
|
+
hours_tue: number;
|
|
42560
|
+
hours_wed: number;
|
|
41493
42561
|
id: string;
|
|
42562
|
+
is_active: boolean;
|
|
42563
|
+
leave_balance_hours: number;
|
|
42564
|
+
persnr: string;
|
|
42565
|
+
phone: string;
|
|
41494
42566
|
roles: string[];
|
|
41495
42567
|
}[];
|
|
41496
42568
|
};
|
|
@@ -41817,17 +42889,6 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
41817
42889
|
Returns: string;
|
|
41818
42890
|
};
|
|
41819
42891
|
logistics_emit_event: {
|
|
41820
|
-
Args: {
|
|
41821
|
-
p_event_type: string;
|
|
41822
|
-
p_idempotency_key?: string;
|
|
41823
|
-
p_order_ref: string;
|
|
41824
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
41825
|
-
p_shadow?: boolean;
|
|
41826
|
-
p_source_module: string;
|
|
41827
|
-
p_strategy_id?: string;
|
|
41828
|
-
};
|
|
41829
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
41830
|
-
} | {
|
|
41831
42892
|
Args: {
|
|
41832
42893
|
p_event_type: string;
|
|
41833
42894
|
p_idempotency_key?: string;
|
|
@@ -42672,6 +43733,37 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
42672
43733
|
};
|
|
42673
43734
|
Returns: undefined;
|
|
42674
43735
|
};
|
|
43736
|
+
quote_create_from_source: {
|
|
43737
|
+
Args: {
|
|
43738
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
43739
|
+
_source_id: string;
|
|
43740
|
+
_source_type: string;
|
|
43741
|
+
};
|
|
43742
|
+
Returns: string;
|
|
43743
|
+
};
|
|
43744
|
+
quote_get_billable_lines: {
|
|
43745
|
+
Args: {
|
|
43746
|
+
_quotation_id: string;
|
|
43747
|
+
};
|
|
43748
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43749
|
+
};
|
|
43750
|
+
quote_get_summary: {
|
|
43751
|
+
Args: {
|
|
43752
|
+
_quotation_id: string;
|
|
43753
|
+
};
|
|
43754
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43755
|
+
};
|
|
43756
|
+
quote_list_packages: {
|
|
43757
|
+
Args: never;
|
|
43758
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43759
|
+
};
|
|
43760
|
+
quote_list_sources: {
|
|
43761
|
+
Args: {
|
|
43762
|
+
_limit?: number;
|
|
43763
|
+
_source_type?: string;
|
|
43764
|
+
};
|
|
43765
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43766
|
+
};
|
|
42675
43767
|
recompute_all_reserved_stock: {
|
|
42676
43768
|
Args: never;
|
|
42677
43769
|
Returns: undefined;
|
|
@@ -43207,6 +44299,12 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
43207
44299
|
};
|
|
43208
44300
|
Returns: undefined;
|
|
43209
44301
|
};
|
|
44302
|
+
sync_sick_time_off: {
|
|
44303
|
+
Args: {
|
|
44304
|
+
_period_id: string;
|
|
44305
|
+
};
|
|
44306
|
+
Returns: number;
|
|
44307
|
+
};
|
|
43210
44308
|
trade_item_stock_duplicates: {
|
|
43211
44309
|
Args: never;
|
|
43212
44310
|
Returns: {
|
|
@@ -43280,11 +44378,31 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
|
|
|
43280
44378
|
Args: never;
|
|
43281
44379
|
Returns: string;
|
|
43282
44380
|
};
|
|
44381
|
+
wo_create_from_source: {
|
|
44382
|
+
Args: {
|
|
44383
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
44384
|
+
_source_id: string;
|
|
44385
|
+
_source_type: string;
|
|
44386
|
+
};
|
|
44387
|
+
Returns: string;
|
|
44388
|
+
};
|
|
44389
|
+
wo_get_billable_lines: {
|
|
44390
|
+
Args: {
|
|
44391
|
+
_work_order_id: string;
|
|
44392
|
+
};
|
|
44393
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44394
|
+
};
|
|
44395
|
+
wo_get_summary: {
|
|
44396
|
+
Args: {
|
|
44397
|
+
_work_order_id: string;
|
|
44398
|
+
};
|
|
44399
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44400
|
+
};
|
|
43283
44401
|
};
|
|
43284
44402
|
Enums: {
|
|
43285
44403
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
43286
44404
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
43287
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
44405
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
43288
44406
|
doc_orientation: "portrait" | "landscape";
|
|
43289
44407
|
exact_env: "staging" | "live";
|
|
43290
44408
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -48362,6 +49480,42 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
48362
49480
|
};
|
|
48363
49481
|
Relationships: [];
|
|
48364
49482
|
};
|
|
49483
|
+
facturen: {
|
|
49484
|
+
Row: {
|
|
49485
|
+
bedrag_incl_btw: number;
|
|
49486
|
+
created_at: string;
|
|
49487
|
+
datum: string;
|
|
49488
|
+
factuurnummer: string;
|
|
49489
|
+
id: string;
|
|
49490
|
+
klantnaam: string;
|
|
49491
|
+
status: string;
|
|
49492
|
+
updated_at: string;
|
|
49493
|
+
user_id: string;
|
|
49494
|
+
};
|
|
49495
|
+
Insert: {
|
|
49496
|
+
bedrag_incl_btw: number;
|
|
49497
|
+
created_at?: string;
|
|
49498
|
+
datum?: string;
|
|
49499
|
+
factuurnummer: string;
|
|
49500
|
+
id?: string;
|
|
49501
|
+
klantnaam: string;
|
|
49502
|
+
status?: string;
|
|
49503
|
+
updated_at?: string;
|
|
49504
|
+
user_id?: string;
|
|
49505
|
+
};
|
|
49506
|
+
Update: {
|
|
49507
|
+
bedrag_incl_btw?: number;
|
|
49508
|
+
created_at?: string;
|
|
49509
|
+
datum?: string;
|
|
49510
|
+
factuurnummer?: string;
|
|
49511
|
+
id?: string;
|
|
49512
|
+
klantnaam?: string;
|
|
49513
|
+
status?: string;
|
|
49514
|
+
updated_at?: string;
|
|
49515
|
+
user_id?: string;
|
|
49516
|
+
};
|
|
49517
|
+
Relationships: [];
|
|
49518
|
+
};
|
|
48365
49519
|
floricode_connection_settings: {
|
|
48366
49520
|
Row: {
|
|
48367
49521
|
catalog_key: string | null;
|
|
@@ -51086,6 +52240,258 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
51086
52240
|
};
|
|
51087
52241
|
Relationships: [];
|
|
51088
52242
|
};
|
|
52243
|
+
itk_offerte_events: {
|
|
52244
|
+
Row: {
|
|
52245
|
+
created_at: string;
|
|
52246
|
+
event_type: string;
|
|
52247
|
+
id: string;
|
|
52248
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
52249
|
+
offerte_id: string;
|
|
52250
|
+
omschrijving: string | null;
|
|
52251
|
+
user_id: string | null;
|
|
52252
|
+
};
|
|
52253
|
+
Insert: {
|
|
52254
|
+
created_at?: string;
|
|
52255
|
+
event_type: string;
|
|
52256
|
+
id?: string;
|
|
52257
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52258
|
+
offerte_id: string;
|
|
52259
|
+
omschrijving?: string | null;
|
|
52260
|
+
user_id?: string | null;
|
|
52261
|
+
};
|
|
52262
|
+
Update: {
|
|
52263
|
+
created_at?: string;
|
|
52264
|
+
event_type?: string;
|
|
52265
|
+
id?: string;
|
|
52266
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52267
|
+
offerte_id?: string;
|
|
52268
|
+
omschrijving?: string | null;
|
|
52269
|
+
user_id?: string | null;
|
|
52270
|
+
};
|
|
52271
|
+
Relationships: [{
|
|
52272
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
52273
|
+
columns: ["offerte_id"];
|
|
52274
|
+
isOneToOne: false;
|
|
52275
|
+
referencedRelation: "itk_offertes";
|
|
52276
|
+
referencedColumns: ["id"];
|
|
52277
|
+
}];
|
|
52278
|
+
};
|
|
52279
|
+
itk_offerte_regels: {
|
|
52280
|
+
Row: {
|
|
52281
|
+
created_at: string;
|
|
52282
|
+
id: string;
|
|
52283
|
+
line_total_cents: number;
|
|
52284
|
+
offerte_id: string;
|
|
52285
|
+
omschrijving: string;
|
|
52286
|
+
package_id: string | null;
|
|
52287
|
+
quantity: number;
|
|
52288
|
+
sort_order: number;
|
|
52289
|
+
source: string;
|
|
52290
|
+
unit_price_cents: number;
|
|
52291
|
+
updated_at: string;
|
|
52292
|
+
};
|
|
52293
|
+
Insert: {
|
|
52294
|
+
created_at?: string;
|
|
52295
|
+
id?: string;
|
|
52296
|
+
line_total_cents?: number;
|
|
52297
|
+
offerte_id: string;
|
|
52298
|
+
omschrijving?: string;
|
|
52299
|
+
package_id?: string | null;
|
|
52300
|
+
quantity?: number;
|
|
52301
|
+
sort_order?: number;
|
|
52302
|
+
source?: string;
|
|
52303
|
+
unit_price_cents?: number;
|
|
52304
|
+
updated_at?: string;
|
|
52305
|
+
};
|
|
52306
|
+
Update: {
|
|
52307
|
+
created_at?: string;
|
|
52308
|
+
id?: string;
|
|
52309
|
+
line_total_cents?: number;
|
|
52310
|
+
offerte_id?: string;
|
|
52311
|
+
omschrijving?: string;
|
|
52312
|
+
package_id?: string | null;
|
|
52313
|
+
quantity?: number;
|
|
52314
|
+
sort_order?: number;
|
|
52315
|
+
source?: string;
|
|
52316
|
+
unit_price_cents?: number;
|
|
52317
|
+
updated_at?: string;
|
|
52318
|
+
};
|
|
52319
|
+
Relationships: [{
|
|
52320
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
52321
|
+
columns: ["offerte_id"];
|
|
52322
|
+
isOneToOne: false;
|
|
52323
|
+
referencedRelation: "itk_offertes";
|
|
52324
|
+
referencedColumns: ["id"];
|
|
52325
|
+
}, {
|
|
52326
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
52327
|
+
columns: ["package_id"];
|
|
52328
|
+
isOneToOne: false;
|
|
52329
|
+
referencedRelation: "werkbon_packages";
|
|
52330
|
+
referencedColumns: ["id"];
|
|
52331
|
+
}];
|
|
52332
|
+
};
|
|
52333
|
+
itk_offerte_settings: {
|
|
52334
|
+
Row: {
|
|
52335
|
+
auto_convert_binnen_mandaat: boolean;
|
|
52336
|
+
created_at: string;
|
|
52337
|
+
default_geldigheid_dagen: number;
|
|
52338
|
+
default_vat_rate: number;
|
|
52339
|
+
id: string;
|
|
52340
|
+
singleton: boolean;
|
|
52341
|
+
updated_at: string;
|
|
52342
|
+
};
|
|
52343
|
+
Insert: {
|
|
52344
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52345
|
+
created_at?: string;
|
|
52346
|
+
default_geldigheid_dagen?: number;
|
|
52347
|
+
default_vat_rate?: number;
|
|
52348
|
+
id?: string;
|
|
52349
|
+
singleton?: boolean;
|
|
52350
|
+
updated_at?: string;
|
|
52351
|
+
};
|
|
52352
|
+
Update: {
|
|
52353
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52354
|
+
created_at?: string;
|
|
52355
|
+
default_geldigheid_dagen?: number;
|
|
52356
|
+
default_vat_rate?: number;
|
|
52357
|
+
id?: string;
|
|
52358
|
+
singleton?: boolean;
|
|
52359
|
+
updated_at?: string;
|
|
52360
|
+
};
|
|
52361
|
+
Relationships: [];
|
|
52362
|
+
};
|
|
52363
|
+
itk_offertes: {
|
|
52364
|
+
Row: {
|
|
52365
|
+
ai_generated: boolean;
|
|
52366
|
+
approved_at: string | null;
|
|
52367
|
+
binnen_mandaat: boolean;
|
|
52368
|
+
contact_id: string | null;
|
|
52369
|
+
converted_at: string | null;
|
|
52370
|
+
created_at: string;
|
|
52371
|
+
created_by: string | null;
|
|
52372
|
+
customer_id: string | null;
|
|
52373
|
+
follow_up_werkbon_id: string | null;
|
|
52374
|
+
id: string;
|
|
52375
|
+
jaar: number;
|
|
52376
|
+
mandaat_restant_cents: number;
|
|
52377
|
+
notities: string | null;
|
|
52378
|
+
offerte_number: string | null;
|
|
52379
|
+
omschrijving: string;
|
|
52380
|
+
rejected_at: string | null;
|
|
52381
|
+
sent_at: string | null;
|
|
52382
|
+
source_number: string | null;
|
|
52383
|
+
source_ref: string | null;
|
|
52384
|
+
source_type: string;
|
|
52385
|
+
status: string;
|
|
52386
|
+
subtotal_cents: number;
|
|
52387
|
+
total_cents: number;
|
|
52388
|
+
updated_at: string;
|
|
52389
|
+
valid_until: string | null;
|
|
52390
|
+
vat_cents: number;
|
|
52391
|
+
vat_rate: number;
|
|
52392
|
+
viewed_at: string | null;
|
|
52393
|
+
volgnummer: number | null;
|
|
52394
|
+
werkbon_id: string | null;
|
|
52395
|
+
work_location_id: string | null;
|
|
52396
|
+
};
|
|
52397
|
+
Insert: {
|
|
52398
|
+
ai_generated?: boolean;
|
|
52399
|
+
approved_at?: string | null;
|
|
52400
|
+
binnen_mandaat?: boolean;
|
|
52401
|
+
contact_id?: string | null;
|
|
52402
|
+
converted_at?: string | null;
|
|
52403
|
+
created_at?: string;
|
|
52404
|
+
created_by?: string | null;
|
|
52405
|
+
customer_id?: string | null;
|
|
52406
|
+
follow_up_werkbon_id?: string | null;
|
|
52407
|
+
id?: string;
|
|
52408
|
+
jaar?: number;
|
|
52409
|
+
mandaat_restant_cents?: number;
|
|
52410
|
+
notities?: string | null;
|
|
52411
|
+
offerte_number?: string | null;
|
|
52412
|
+
omschrijving?: string;
|
|
52413
|
+
rejected_at?: string | null;
|
|
52414
|
+
sent_at?: string | null;
|
|
52415
|
+
source_number?: string | null;
|
|
52416
|
+
source_ref?: string | null;
|
|
52417
|
+
source_type?: string;
|
|
52418
|
+
status?: string;
|
|
52419
|
+
subtotal_cents?: number;
|
|
52420
|
+
total_cents?: number;
|
|
52421
|
+
updated_at?: string;
|
|
52422
|
+
valid_until?: string | null;
|
|
52423
|
+
vat_cents?: number;
|
|
52424
|
+
vat_rate?: number;
|
|
52425
|
+
viewed_at?: string | null;
|
|
52426
|
+
volgnummer?: number | null;
|
|
52427
|
+
werkbon_id?: string | null;
|
|
52428
|
+
work_location_id?: string | null;
|
|
52429
|
+
};
|
|
52430
|
+
Update: {
|
|
52431
|
+
ai_generated?: boolean;
|
|
52432
|
+
approved_at?: string | null;
|
|
52433
|
+
binnen_mandaat?: boolean;
|
|
52434
|
+
contact_id?: string | null;
|
|
52435
|
+
converted_at?: string | null;
|
|
52436
|
+
created_at?: string;
|
|
52437
|
+
created_by?: string | null;
|
|
52438
|
+
customer_id?: string | null;
|
|
52439
|
+
follow_up_werkbon_id?: string | null;
|
|
52440
|
+
id?: string;
|
|
52441
|
+
jaar?: number;
|
|
52442
|
+
mandaat_restant_cents?: number;
|
|
52443
|
+
notities?: string | null;
|
|
52444
|
+
offerte_number?: string | null;
|
|
52445
|
+
omschrijving?: string;
|
|
52446
|
+
rejected_at?: string | null;
|
|
52447
|
+
sent_at?: string | null;
|
|
52448
|
+
source_number?: string | null;
|
|
52449
|
+
source_ref?: string | null;
|
|
52450
|
+
source_type?: string;
|
|
52451
|
+
status?: string;
|
|
52452
|
+
subtotal_cents?: number;
|
|
52453
|
+
total_cents?: number;
|
|
52454
|
+
updated_at?: string;
|
|
52455
|
+
valid_until?: string | null;
|
|
52456
|
+
vat_cents?: number;
|
|
52457
|
+
vat_rate?: number;
|
|
52458
|
+
viewed_at?: string | null;
|
|
52459
|
+
volgnummer?: number | null;
|
|
52460
|
+
werkbon_id?: string | null;
|
|
52461
|
+
work_location_id?: string | null;
|
|
52462
|
+
};
|
|
52463
|
+
Relationships: [{
|
|
52464
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
52465
|
+
columns: ["contact_id"];
|
|
52466
|
+
isOneToOne: false;
|
|
52467
|
+
referencedRelation: "itk_contact_persons";
|
|
52468
|
+
referencedColumns: ["id"];
|
|
52469
|
+
}, {
|
|
52470
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
52471
|
+
columns: ["customer_id"];
|
|
52472
|
+
isOneToOne: false;
|
|
52473
|
+
referencedRelation: "itk_customers";
|
|
52474
|
+
referencedColumns: ["id"];
|
|
52475
|
+
}, {
|
|
52476
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
52477
|
+
columns: ["follow_up_werkbon_id"];
|
|
52478
|
+
isOneToOne: false;
|
|
52479
|
+
referencedRelation: "werkbonnen";
|
|
52480
|
+
referencedColumns: ["id"];
|
|
52481
|
+
}, {
|
|
52482
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
52483
|
+
columns: ["werkbon_id"];
|
|
52484
|
+
isOneToOne: false;
|
|
52485
|
+
referencedRelation: "werkbonnen";
|
|
52486
|
+
referencedColumns: ["id"];
|
|
52487
|
+
}, {
|
|
52488
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
52489
|
+
columns: ["work_location_id"];
|
|
52490
|
+
isOneToOne: false;
|
|
52491
|
+
referencedRelation: "itk_work_locations";
|
|
52492
|
+
referencedColumns: ["id"];
|
|
52493
|
+
}];
|
|
52494
|
+
};
|
|
51089
52495
|
itk_work_locations: {
|
|
51090
52496
|
Row: {
|
|
51091
52497
|
city: string | null;
|
|
@@ -53459,6 +54865,63 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
53459
54865
|
referencedColumns: ["id"];
|
|
53460
54866
|
}];
|
|
53461
54867
|
};
|
|
54868
|
+
medewerker_details: {
|
|
54869
|
+
Row: {
|
|
54870
|
+
color: string | null;
|
|
54871
|
+
created_at: string;
|
|
54872
|
+
hours_fri: number | null;
|
|
54873
|
+
hours_mon: number | null;
|
|
54874
|
+
hours_thu: number | null;
|
|
54875
|
+
hours_tue: number | null;
|
|
54876
|
+
hours_wed: number | null;
|
|
54877
|
+
id: string;
|
|
54878
|
+
is_active: boolean;
|
|
54879
|
+
leave_balance_hours: number;
|
|
54880
|
+
persnr: string | null;
|
|
54881
|
+
phone: string | null;
|
|
54882
|
+
profile_id: string;
|
|
54883
|
+
updated_at: string;
|
|
54884
|
+
};
|
|
54885
|
+
Insert: {
|
|
54886
|
+
color?: string | null;
|
|
54887
|
+
created_at?: string;
|
|
54888
|
+
hours_fri?: number | null;
|
|
54889
|
+
hours_mon?: number | null;
|
|
54890
|
+
hours_thu?: number | null;
|
|
54891
|
+
hours_tue?: number | null;
|
|
54892
|
+
hours_wed?: number | null;
|
|
54893
|
+
id?: string;
|
|
54894
|
+
is_active?: boolean;
|
|
54895
|
+
leave_balance_hours?: number;
|
|
54896
|
+
persnr?: string | null;
|
|
54897
|
+
phone?: string | null;
|
|
54898
|
+
profile_id: string;
|
|
54899
|
+
updated_at?: string;
|
|
54900
|
+
};
|
|
54901
|
+
Update: {
|
|
54902
|
+
color?: string | null;
|
|
54903
|
+
created_at?: string;
|
|
54904
|
+
hours_fri?: number | null;
|
|
54905
|
+
hours_mon?: number | null;
|
|
54906
|
+
hours_thu?: number | null;
|
|
54907
|
+
hours_tue?: number | null;
|
|
54908
|
+
hours_wed?: number | null;
|
|
54909
|
+
id?: string;
|
|
54910
|
+
is_active?: boolean;
|
|
54911
|
+
leave_balance_hours?: number;
|
|
54912
|
+
persnr?: string | null;
|
|
54913
|
+
phone?: string | null;
|
|
54914
|
+
profile_id?: string;
|
|
54915
|
+
updated_at?: string;
|
|
54916
|
+
};
|
|
54917
|
+
Relationships: [{
|
|
54918
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
54919
|
+
columns: ["profile_id"];
|
|
54920
|
+
isOneToOne: true;
|
|
54921
|
+
referencedRelation: "profiles";
|
|
54922
|
+
referencedColumns: ["id"];
|
|
54923
|
+
}];
|
|
54924
|
+
};
|
|
53462
54925
|
module_features: {
|
|
53463
54926
|
Row: {
|
|
53464
54927
|
created_at: string;
|
|
@@ -54752,6 +56215,8 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
54752
56215
|
orders: {
|
|
54753
56216
|
Row: {
|
|
54754
56217
|
buffer_id: string | null;
|
|
56218
|
+
cancel_reason: string | null;
|
|
56219
|
+
cancelled_at: string | null;
|
|
54755
56220
|
created_at: string;
|
|
54756
56221
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
54757
56222
|
customer_id: string | null;
|
|
@@ -54774,6 +56239,8 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
54774
56239
|
};
|
|
54775
56240
|
Insert: {
|
|
54776
56241
|
buffer_id?: string | null;
|
|
56242
|
+
cancel_reason?: string | null;
|
|
56243
|
+
cancelled_at?: string | null;
|
|
54777
56244
|
created_at?: string;
|
|
54778
56245
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54779
56246
|
customer_id?: string | null;
|
|
@@ -54796,6 +56263,8 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
54796
56263
|
};
|
|
54797
56264
|
Update: {
|
|
54798
56265
|
buffer_id?: string | null;
|
|
56266
|
+
cancel_reason?: string | null;
|
|
56267
|
+
cancelled_at?: string | null;
|
|
54799
56268
|
created_at?: string;
|
|
54800
56269
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54801
56270
|
customer_id?: string | null;
|
|
@@ -56858,6 +58327,66 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
56858
58327
|
};
|
|
56859
58328
|
Relationships: [];
|
|
56860
58329
|
};
|
|
58330
|
+
profile_modules: {
|
|
58331
|
+
Row: {
|
|
58332
|
+
created_at: string;
|
|
58333
|
+
id: string;
|
|
58334
|
+
module_id: string;
|
|
58335
|
+
profile_id: string;
|
|
58336
|
+
};
|
|
58337
|
+
Insert: {
|
|
58338
|
+
created_at?: string;
|
|
58339
|
+
id?: string;
|
|
58340
|
+
module_id: string;
|
|
58341
|
+
profile_id: string;
|
|
58342
|
+
};
|
|
58343
|
+
Update: {
|
|
58344
|
+
created_at?: string;
|
|
58345
|
+
id?: string;
|
|
58346
|
+
module_id?: string;
|
|
58347
|
+
profile_id?: string;
|
|
58348
|
+
};
|
|
58349
|
+
Relationships: [{
|
|
58350
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
58351
|
+
columns: ["profile_id"];
|
|
58352
|
+
isOneToOne: false;
|
|
58353
|
+
referencedRelation: "profiles_org";
|
|
58354
|
+
referencedColumns: ["id"];
|
|
58355
|
+
}];
|
|
58356
|
+
};
|
|
58357
|
+
profile_roles: {
|
|
58358
|
+
Row: {
|
|
58359
|
+
created_at: string;
|
|
58360
|
+
id: string;
|
|
58361
|
+
profile_id: string;
|
|
58362
|
+
role_id: string;
|
|
58363
|
+
};
|
|
58364
|
+
Insert: {
|
|
58365
|
+
created_at?: string;
|
|
58366
|
+
id?: string;
|
|
58367
|
+
profile_id: string;
|
|
58368
|
+
role_id: string;
|
|
58369
|
+
};
|
|
58370
|
+
Update: {
|
|
58371
|
+
created_at?: string;
|
|
58372
|
+
id?: string;
|
|
58373
|
+
profile_id?: string;
|
|
58374
|
+
role_id?: string;
|
|
58375
|
+
};
|
|
58376
|
+
Relationships: [{
|
|
58377
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
58378
|
+
columns: ["profile_id"];
|
|
58379
|
+
isOneToOne: false;
|
|
58380
|
+
referencedRelation: "profiles_org";
|
|
58381
|
+
referencedColumns: ["id"];
|
|
58382
|
+
}, {
|
|
58383
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
58384
|
+
columns: ["role_id"];
|
|
58385
|
+
isOneToOne: false;
|
|
58386
|
+
referencedRelation: "roles";
|
|
58387
|
+
referencedColumns: ["id"];
|
|
58388
|
+
}];
|
|
58389
|
+
};
|
|
56861
58390
|
profiles: {
|
|
56862
58391
|
Row: {
|
|
56863
58392
|
address: string | null;
|
|
@@ -56903,6 +58432,39 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
56903
58432
|
referencedColumns: ["id"];
|
|
56904
58433
|
}];
|
|
56905
58434
|
};
|
|
58435
|
+
profiles_org: {
|
|
58436
|
+
Row: {
|
|
58437
|
+
created_at: string;
|
|
58438
|
+
id: string;
|
|
58439
|
+
is_default: boolean;
|
|
58440
|
+
name: string;
|
|
58441
|
+
tenant_id: string | null;
|
|
58442
|
+
updated_at: string;
|
|
58443
|
+
};
|
|
58444
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
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
|
+
Relationships: [{
|
|
58461
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
58462
|
+
columns: ["tenant_id"];
|
|
58463
|
+
isOneToOne: false;
|
|
58464
|
+
referencedRelation: "tenants";
|
|
58465
|
+
referencedColumns: ["id"];
|
|
58466
|
+
}];
|
|
58467
|
+
};
|
|
56906
58468
|
projects: {
|
|
56907
58469
|
Row: {
|
|
56908
58470
|
contact_name: string | null;
|
|
@@ -58077,6 +59639,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
58077
59639
|
type: string;
|
|
58078
59640
|
updated_at: string;
|
|
58079
59641
|
vereist_medewerker: boolean;
|
|
59642
|
+
werkplek: string | null;
|
|
58080
59643
|
};
|
|
58081
59644
|
Insert: {
|
|
58082
59645
|
actief?: boolean;
|
|
@@ -58090,6 +59653,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
58090
59653
|
type?: string;
|
|
58091
59654
|
updated_at?: string;
|
|
58092
59655
|
vereist_medewerker?: boolean;
|
|
59656
|
+
werkplek?: string | null;
|
|
58093
59657
|
};
|
|
58094
59658
|
Update: {
|
|
58095
59659
|
actief?: boolean;
|
|
@@ -58103,9 +59667,46 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
58103
59667
|
type?: string;
|
|
58104
59668
|
updated_at?: string;
|
|
58105
59669
|
vereist_medewerker?: boolean;
|
|
59670
|
+
werkplek?: string | null;
|
|
58106
59671
|
};
|
|
58107
59672
|
Relationships: [];
|
|
58108
59673
|
};
|
|
59674
|
+
sick_periods: {
|
|
59675
|
+
Row: {
|
|
59676
|
+
created_at: string;
|
|
59677
|
+
employee_id: string;
|
|
59678
|
+
end_date: string | null;
|
|
59679
|
+
id: string;
|
|
59680
|
+
notes: string | null;
|
|
59681
|
+
start_date: string;
|
|
59682
|
+
updated_at: string;
|
|
59683
|
+
};
|
|
59684
|
+
Insert: {
|
|
59685
|
+
created_at?: string;
|
|
59686
|
+
employee_id: string;
|
|
59687
|
+
end_date?: string | null;
|
|
59688
|
+
id?: string;
|
|
59689
|
+
notes?: string | null;
|
|
59690
|
+
start_date: string;
|
|
59691
|
+
updated_at?: string;
|
|
59692
|
+
};
|
|
59693
|
+
Update: {
|
|
59694
|
+
created_at?: string;
|
|
59695
|
+
employee_id?: string;
|
|
59696
|
+
end_date?: string | null;
|
|
59697
|
+
id?: string;
|
|
59698
|
+
notes?: string | null;
|
|
59699
|
+
start_date?: string;
|
|
59700
|
+
updated_at?: string;
|
|
59701
|
+
};
|
|
59702
|
+
Relationships: [{
|
|
59703
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
59704
|
+
columns: ["employee_id"];
|
|
59705
|
+
isOneToOne: false;
|
|
59706
|
+
referencedRelation: "profiles";
|
|
59707
|
+
referencedColumns: ["id"];
|
|
59708
|
+
}];
|
|
59709
|
+
};
|
|
58109
59710
|
sidebar_config: {
|
|
58110
59711
|
Row: {
|
|
58111
59712
|
id: string;
|
|
@@ -62790,6 +64391,13 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
62790
64391
|
};
|
|
62791
64392
|
Returns: string;
|
|
62792
64393
|
};
|
|
64394
|
+
employee_day_hours: {
|
|
64395
|
+
Args: {
|
|
64396
|
+
_day: string;
|
|
64397
|
+
_employee_id: string;
|
|
64398
|
+
};
|
|
64399
|
+
Returns: number;
|
|
64400
|
+
};
|
|
62793
64401
|
enqueue_cart_replan_if_unlocked: {
|
|
62794
64402
|
Args: {
|
|
62795
64403
|
p_order_id: string;
|
|
@@ -63143,6 +64751,19 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
63143
64751
|
Args: never;
|
|
63144
64752
|
Returns: boolean;
|
|
63145
64753
|
};
|
|
64754
|
+
itk_offerte_naar_werkbon: {
|
|
64755
|
+
Args: {
|
|
64756
|
+
_offerte_id: string;
|
|
64757
|
+
};
|
|
64758
|
+
Returns: string;
|
|
64759
|
+
};
|
|
64760
|
+
itk_offerte_restant_mandaat: {
|
|
64761
|
+
Args: {
|
|
64762
|
+
_exclude_offerte_id?: string;
|
|
64763
|
+
_werkbon_id: string;
|
|
64764
|
+
};
|
|
64765
|
+
Returns: number;
|
|
64766
|
+
};
|
|
63146
64767
|
jwt_has_role: {
|
|
63147
64768
|
Args: {
|
|
63148
64769
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -63153,9 +64774,19 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
63153
64774
|
Args: never;
|
|
63154
64775
|
Returns: {
|
|
63155
64776
|
avatar_url: string;
|
|
64777
|
+
color: string;
|
|
63156
64778
|
display_name: string;
|
|
63157
64779
|
email: string;
|
|
64780
|
+
hours_fri: number;
|
|
64781
|
+
hours_mon: number;
|
|
64782
|
+
hours_thu: number;
|
|
64783
|
+
hours_tue: number;
|
|
64784
|
+
hours_wed: number;
|
|
63158
64785
|
id: string;
|
|
64786
|
+
is_active: boolean;
|
|
64787
|
+
leave_balance_hours: number;
|
|
64788
|
+
persnr: string;
|
|
64789
|
+
phone: string;
|
|
63159
64790
|
roles: string[];
|
|
63160
64791
|
}[];
|
|
63161
64792
|
};
|
|
@@ -63482,17 +65113,6 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
63482
65113
|
Returns: string;
|
|
63483
65114
|
};
|
|
63484
65115
|
logistics_emit_event: {
|
|
63485
|
-
Args: {
|
|
63486
|
-
p_event_type: string;
|
|
63487
|
-
p_idempotency_key?: string;
|
|
63488
|
-
p_order_ref: string;
|
|
63489
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
63490
|
-
p_shadow?: boolean;
|
|
63491
|
-
p_source_module: string;
|
|
63492
|
-
p_strategy_id?: string;
|
|
63493
|
-
};
|
|
63494
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
63495
|
-
} | {
|
|
63496
65116
|
Args: {
|
|
63497
65117
|
p_event_type: string;
|
|
63498
65118
|
p_idempotency_key?: string;
|
|
@@ -64337,6 +65957,37 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
64337
65957
|
};
|
|
64338
65958
|
Returns: undefined;
|
|
64339
65959
|
};
|
|
65960
|
+
quote_create_from_source: {
|
|
65961
|
+
Args: {
|
|
65962
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
65963
|
+
_source_id: string;
|
|
65964
|
+
_source_type: string;
|
|
65965
|
+
};
|
|
65966
|
+
Returns: string;
|
|
65967
|
+
};
|
|
65968
|
+
quote_get_billable_lines: {
|
|
65969
|
+
Args: {
|
|
65970
|
+
_quotation_id: string;
|
|
65971
|
+
};
|
|
65972
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65973
|
+
};
|
|
65974
|
+
quote_get_summary: {
|
|
65975
|
+
Args: {
|
|
65976
|
+
_quotation_id: string;
|
|
65977
|
+
};
|
|
65978
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65979
|
+
};
|
|
65980
|
+
quote_list_packages: {
|
|
65981
|
+
Args: never;
|
|
65982
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65983
|
+
};
|
|
65984
|
+
quote_list_sources: {
|
|
65985
|
+
Args: {
|
|
65986
|
+
_limit?: number;
|
|
65987
|
+
_source_type?: string;
|
|
65988
|
+
};
|
|
65989
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65990
|
+
};
|
|
64340
65991
|
recompute_all_reserved_stock: {
|
|
64341
65992
|
Args: never;
|
|
64342
65993
|
Returns: undefined;
|
|
@@ -64872,6 +66523,12 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
64872
66523
|
};
|
|
64873
66524
|
Returns: undefined;
|
|
64874
66525
|
};
|
|
66526
|
+
sync_sick_time_off: {
|
|
66527
|
+
Args: {
|
|
66528
|
+
_period_id: string;
|
|
66529
|
+
};
|
|
66530
|
+
Returns: number;
|
|
66531
|
+
};
|
|
64875
66532
|
trade_item_stock_duplicates: {
|
|
64876
66533
|
Args: never;
|
|
64877
66534
|
Returns: {
|
|
@@ -64945,11 +66602,31 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
|
|
|
64945
66602
|
Args: never;
|
|
64946
66603
|
Returns: string;
|
|
64947
66604
|
};
|
|
66605
|
+
wo_create_from_source: {
|
|
66606
|
+
Args: {
|
|
66607
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
66608
|
+
_source_id: string;
|
|
66609
|
+
_source_type: string;
|
|
66610
|
+
};
|
|
66611
|
+
Returns: string;
|
|
66612
|
+
};
|
|
66613
|
+
wo_get_billable_lines: {
|
|
66614
|
+
Args: {
|
|
66615
|
+
_work_order_id: string;
|
|
66616
|
+
};
|
|
66617
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66618
|
+
};
|
|
66619
|
+
wo_get_summary: {
|
|
66620
|
+
Args: {
|
|
66621
|
+
_work_order_id: string;
|
|
66622
|
+
};
|
|
66623
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66624
|
+
};
|
|
64948
66625
|
};
|
|
64949
66626
|
Enums: {
|
|
64950
66627
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
64951
66628
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
64952
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
66629
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
64953
66630
|
doc_orientation: "portrait" | "landscape";
|
|
64954
66631
|
exact_env: "staging" | "live";
|
|
64955
66632
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -70018,6 +71695,42 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
70018
71695
|
};
|
|
70019
71696
|
Relationships: [];
|
|
70020
71697
|
};
|
|
71698
|
+
facturen: {
|
|
71699
|
+
Row: {
|
|
71700
|
+
bedrag_incl_btw: number;
|
|
71701
|
+
created_at: string;
|
|
71702
|
+
datum: string;
|
|
71703
|
+
factuurnummer: string;
|
|
71704
|
+
id: string;
|
|
71705
|
+
klantnaam: string;
|
|
71706
|
+
status: string;
|
|
71707
|
+
updated_at: string;
|
|
71708
|
+
user_id: string;
|
|
71709
|
+
};
|
|
71710
|
+
Insert: {
|
|
71711
|
+
bedrag_incl_btw: number;
|
|
71712
|
+
created_at?: string;
|
|
71713
|
+
datum?: string;
|
|
71714
|
+
factuurnummer: string;
|
|
71715
|
+
id?: string;
|
|
71716
|
+
klantnaam: string;
|
|
71717
|
+
status?: string;
|
|
71718
|
+
updated_at?: string;
|
|
71719
|
+
user_id?: string;
|
|
71720
|
+
};
|
|
71721
|
+
Update: {
|
|
71722
|
+
bedrag_incl_btw?: number;
|
|
71723
|
+
created_at?: string;
|
|
71724
|
+
datum?: string;
|
|
71725
|
+
factuurnummer?: string;
|
|
71726
|
+
id?: string;
|
|
71727
|
+
klantnaam?: string;
|
|
71728
|
+
status?: string;
|
|
71729
|
+
updated_at?: string;
|
|
71730
|
+
user_id?: string;
|
|
71731
|
+
};
|
|
71732
|
+
Relationships: [];
|
|
71733
|
+
};
|
|
70021
71734
|
floricode_connection_settings: {
|
|
70022
71735
|
Row: {
|
|
70023
71736
|
catalog_key: string | null;
|
|
@@ -72742,6 +74455,258 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
72742
74455
|
};
|
|
72743
74456
|
Relationships: [];
|
|
72744
74457
|
};
|
|
74458
|
+
itk_offerte_events: {
|
|
74459
|
+
Row: {
|
|
74460
|
+
created_at: string;
|
|
74461
|
+
event_type: string;
|
|
74462
|
+
id: string;
|
|
74463
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
74464
|
+
offerte_id: string;
|
|
74465
|
+
omschrijving: string | null;
|
|
74466
|
+
user_id: string | null;
|
|
74467
|
+
};
|
|
74468
|
+
Insert: {
|
|
74469
|
+
created_at?: string;
|
|
74470
|
+
event_type: string;
|
|
74471
|
+
id?: string;
|
|
74472
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
74473
|
+
offerte_id: string;
|
|
74474
|
+
omschrijving?: string | null;
|
|
74475
|
+
user_id?: string | null;
|
|
74476
|
+
};
|
|
74477
|
+
Update: {
|
|
74478
|
+
created_at?: string;
|
|
74479
|
+
event_type?: string;
|
|
74480
|
+
id?: string;
|
|
74481
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
74482
|
+
offerte_id?: string;
|
|
74483
|
+
omschrijving?: string | null;
|
|
74484
|
+
user_id?: string | null;
|
|
74485
|
+
};
|
|
74486
|
+
Relationships: [{
|
|
74487
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
74488
|
+
columns: ["offerte_id"];
|
|
74489
|
+
isOneToOne: false;
|
|
74490
|
+
referencedRelation: "itk_offertes";
|
|
74491
|
+
referencedColumns: ["id"];
|
|
74492
|
+
}];
|
|
74493
|
+
};
|
|
74494
|
+
itk_offerte_regels: {
|
|
74495
|
+
Row: {
|
|
74496
|
+
created_at: string;
|
|
74497
|
+
id: string;
|
|
74498
|
+
line_total_cents: number;
|
|
74499
|
+
offerte_id: string;
|
|
74500
|
+
omschrijving: string;
|
|
74501
|
+
package_id: string | null;
|
|
74502
|
+
quantity: number;
|
|
74503
|
+
sort_order: number;
|
|
74504
|
+
source: string;
|
|
74505
|
+
unit_price_cents: number;
|
|
74506
|
+
updated_at: string;
|
|
74507
|
+
};
|
|
74508
|
+
Insert: {
|
|
74509
|
+
created_at?: string;
|
|
74510
|
+
id?: string;
|
|
74511
|
+
line_total_cents?: number;
|
|
74512
|
+
offerte_id: string;
|
|
74513
|
+
omschrijving?: string;
|
|
74514
|
+
package_id?: string | null;
|
|
74515
|
+
quantity?: number;
|
|
74516
|
+
sort_order?: number;
|
|
74517
|
+
source?: string;
|
|
74518
|
+
unit_price_cents?: number;
|
|
74519
|
+
updated_at?: string;
|
|
74520
|
+
};
|
|
74521
|
+
Update: {
|
|
74522
|
+
created_at?: string;
|
|
74523
|
+
id?: string;
|
|
74524
|
+
line_total_cents?: number;
|
|
74525
|
+
offerte_id?: string;
|
|
74526
|
+
omschrijving?: string;
|
|
74527
|
+
package_id?: string | null;
|
|
74528
|
+
quantity?: number;
|
|
74529
|
+
sort_order?: number;
|
|
74530
|
+
source?: string;
|
|
74531
|
+
unit_price_cents?: number;
|
|
74532
|
+
updated_at?: string;
|
|
74533
|
+
};
|
|
74534
|
+
Relationships: [{
|
|
74535
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
74536
|
+
columns: ["offerte_id"];
|
|
74537
|
+
isOneToOne: false;
|
|
74538
|
+
referencedRelation: "itk_offertes";
|
|
74539
|
+
referencedColumns: ["id"];
|
|
74540
|
+
}, {
|
|
74541
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
74542
|
+
columns: ["package_id"];
|
|
74543
|
+
isOneToOne: false;
|
|
74544
|
+
referencedRelation: "werkbon_packages";
|
|
74545
|
+
referencedColumns: ["id"];
|
|
74546
|
+
}];
|
|
74547
|
+
};
|
|
74548
|
+
itk_offerte_settings: {
|
|
74549
|
+
Row: {
|
|
74550
|
+
auto_convert_binnen_mandaat: boolean;
|
|
74551
|
+
created_at: string;
|
|
74552
|
+
default_geldigheid_dagen: number;
|
|
74553
|
+
default_vat_rate: number;
|
|
74554
|
+
id: string;
|
|
74555
|
+
singleton: boolean;
|
|
74556
|
+
updated_at: string;
|
|
74557
|
+
};
|
|
74558
|
+
Insert: {
|
|
74559
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
74560
|
+
created_at?: string;
|
|
74561
|
+
default_geldigheid_dagen?: number;
|
|
74562
|
+
default_vat_rate?: number;
|
|
74563
|
+
id?: string;
|
|
74564
|
+
singleton?: boolean;
|
|
74565
|
+
updated_at?: string;
|
|
74566
|
+
};
|
|
74567
|
+
Update: {
|
|
74568
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
74569
|
+
created_at?: string;
|
|
74570
|
+
default_geldigheid_dagen?: number;
|
|
74571
|
+
default_vat_rate?: number;
|
|
74572
|
+
id?: string;
|
|
74573
|
+
singleton?: boolean;
|
|
74574
|
+
updated_at?: string;
|
|
74575
|
+
};
|
|
74576
|
+
Relationships: [];
|
|
74577
|
+
};
|
|
74578
|
+
itk_offertes: {
|
|
74579
|
+
Row: {
|
|
74580
|
+
ai_generated: boolean;
|
|
74581
|
+
approved_at: string | null;
|
|
74582
|
+
binnen_mandaat: boolean;
|
|
74583
|
+
contact_id: string | null;
|
|
74584
|
+
converted_at: string | null;
|
|
74585
|
+
created_at: string;
|
|
74586
|
+
created_by: string | null;
|
|
74587
|
+
customer_id: string | null;
|
|
74588
|
+
follow_up_werkbon_id: string | null;
|
|
74589
|
+
id: string;
|
|
74590
|
+
jaar: number;
|
|
74591
|
+
mandaat_restant_cents: number;
|
|
74592
|
+
notities: string | null;
|
|
74593
|
+
offerte_number: string | null;
|
|
74594
|
+
omschrijving: string;
|
|
74595
|
+
rejected_at: string | null;
|
|
74596
|
+
sent_at: string | null;
|
|
74597
|
+
source_number: string | null;
|
|
74598
|
+
source_ref: string | null;
|
|
74599
|
+
source_type: string;
|
|
74600
|
+
status: string;
|
|
74601
|
+
subtotal_cents: number;
|
|
74602
|
+
total_cents: number;
|
|
74603
|
+
updated_at: string;
|
|
74604
|
+
valid_until: string | null;
|
|
74605
|
+
vat_cents: number;
|
|
74606
|
+
vat_rate: number;
|
|
74607
|
+
viewed_at: string | null;
|
|
74608
|
+
volgnummer: number | null;
|
|
74609
|
+
werkbon_id: string | null;
|
|
74610
|
+
work_location_id: string | null;
|
|
74611
|
+
};
|
|
74612
|
+
Insert: {
|
|
74613
|
+
ai_generated?: boolean;
|
|
74614
|
+
approved_at?: string | null;
|
|
74615
|
+
binnen_mandaat?: boolean;
|
|
74616
|
+
contact_id?: string | null;
|
|
74617
|
+
converted_at?: string | null;
|
|
74618
|
+
created_at?: string;
|
|
74619
|
+
created_by?: string | null;
|
|
74620
|
+
customer_id?: string | null;
|
|
74621
|
+
follow_up_werkbon_id?: string | null;
|
|
74622
|
+
id?: string;
|
|
74623
|
+
jaar?: number;
|
|
74624
|
+
mandaat_restant_cents?: number;
|
|
74625
|
+
notities?: string | null;
|
|
74626
|
+
offerte_number?: string | null;
|
|
74627
|
+
omschrijving?: string;
|
|
74628
|
+
rejected_at?: string | null;
|
|
74629
|
+
sent_at?: string | null;
|
|
74630
|
+
source_number?: string | null;
|
|
74631
|
+
source_ref?: string | null;
|
|
74632
|
+
source_type?: string;
|
|
74633
|
+
status?: string;
|
|
74634
|
+
subtotal_cents?: number;
|
|
74635
|
+
total_cents?: number;
|
|
74636
|
+
updated_at?: string;
|
|
74637
|
+
valid_until?: string | null;
|
|
74638
|
+
vat_cents?: number;
|
|
74639
|
+
vat_rate?: number;
|
|
74640
|
+
viewed_at?: string | null;
|
|
74641
|
+
volgnummer?: number | null;
|
|
74642
|
+
werkbon_id?: string | null;
|
|
74643
|
+
work_location_id?: string | null;
|
|
74644
|
+
};
|
|
74645
|
+
Update: {
|
|
74646
|
+
ai_generated?: boolean;
|
|
74647
|
+
approved_at?: string | null;
|
|
74648
|
+
binnen_mandaat?: boolean;
|
|
74649
|
+
contact_id?: string | null;
|
|
74650
|
+
converted_at?: string | null;
|
|
74651
|
+
created_at?: string;
|
|
74652
|
+
created_by?: string | null;
|
|
74653
|
+
customer_id?: string | null;
|
|
74654
|
+
follow_up_werkbon_id?: string | null;
|
|
74655
|
+
id?: string;
|
|
74656
|
+
jaar?: number;
|
|
74657
|
+
mandaat_restant_cents?: number;
|
|
74658
|
+
notities?: string | null;
|
|
74659
|
+
offerte_number?: string | null;
|
|
74660
|
+
omschrijving?: string;
|
|
74661
|
+
rejected_at?: string | null;
|
|
74662
|
+
sent_at?: string | null;
|
|
74663
|
+
source_number?: string | null;
|
|
74664
|
+
source_ref?: string | null;
|
|
74665
|
+
source_type?: string;
|
|
74666
|
+
status?: string;
|
|
74667
|
+
subtotal_cents?: number;
|
|
74668
|
+
total_cents?: number;
|
|
74669
|
+
updated_at?: string;
|
|
74670
|
+
valid_until?: string | null;
|
|
74671
|
+
vat_cents?: number;
|
|
74672
|
+
vat_rate?: number;
|
|
74673
|
+
viewed_at?: string | null;
|
|
74674
|
+
volgnummer?: number | null;
|
|
74675
|
+
werkbon_id?: string | null;
|
|
74676
|
+
work_location_id?: string | null;
|
|
74677
|
+
};
|
|
74678
|
+
Relationships: [{
|
|
74679
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
74680
|
+
columns: ["contact_id"];
|
|
74681
|
+
isOneToOne: false;
|
|
74682
|
+
referencedRelation: "itk_contact_persons";
|
|
74683
|
+
referencedColumns: ["id"];
|
|
74684
|
+
}, {
|
|
74685
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
74686
|
+
columns: ["customer_id"];
|
|
74687
|
+
isOneToOne: false;
|
|
74688
|
+
referencedRelation: "itk_customers";
|
|
74689
|
+
referencedColumns: ["id"];
|
|
74690
|
+
}, {
|
|
74691
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
74692
|
+
columns: ["follow_up_werkbon_id"];
|
|
74693
|
+
isOneToOne: false;
|
|
74694
|
+
referencedRelation: "werkbonnen";
|
|
74695
|
+
referencedColumns: ["id"];
|
|
74696
|
+
}, {
|
|
74697
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
74698
|
+
columns: ["werkbon_id"];
|
|
74699
|
+
isOneToOne: false;
|
|
74700
|
+
referencedRelation: "werkbonnen";
|
|
74701
|
+
referencedColumns: ["id"];
|
|
74702
|
+
}, {
|
|
74703
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
74704
|
+
columns: ["work_location_id"];
|
|
74705
|
+
isOneToOne: false;
|
|
74706
|
+
referencedRelation: "itk_work_locations";
|
|
74707
|
+
referencedColumns: ["id"];
|
|
74708
|
+
}];
|
|
74709
|
+
};
|
|
72745
74710
|
itk_work_locations: {
|
|
72746
74711
|
Row: {
|
|
72747
74712
|
city: string | null;
|
|
@@ -75115,6 +77080,63 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
75115
77080
|
referencedColumns: ["id"];
|
|
75116
77081
|
}];
|
|
75117
77082
|
};
|
|
77083
|
+
medewerker_details: {
|
|
77084
|
+
Row: {
|
|
77085
|
+
color: string | null;
|
|
77086
|
+
created_at: string;
|
|
77087
|
+
hours_fri: number | null;
|
|
77088
|
+
hours_mon: number | null;
|
|
77089
|
+
hours_thu: number | null;
|
|
77090
|
+
hours_tue: number | null;
|
|
77091
|
+
hours_wed: number | null;
|
|
77092
|
+
id: string;
|
|
77093
|
+
is_active: boolean;
|
|
77094
|
+
leave_balance_hours: number;
|
|
77095
|
+
persnr: string | null;
|
|
77096
|
+
phone: string | null;
|
|
77097
|
+
profile_id: string;
|
|
77098
|
+
updated_at: string;
|
|
77099
|
+
};
|
|
77100
|
+
Insert: {
|
|
77101
|
+
color?: string | null;
|
|
77102
|
+
created_at?: string;
|
|
77103
|
+
hours_fri?: number | null;
|
|
77104
|
+
hours_mon?: number | null;
|
|
77105
|
+
hours_thu?: number | null;
|
|
77106
|
+
hours_tue?: number | null;
|
|
77107
|
+
hours_wed?: number | null;
|
|
77108
|
+
id?: string;
|
|
77109
|
+
is_active?: boolean;
|
|
77110
|
+
leave_balance_hours?: number;
|
|
77111
|
+
persnr?: string | null;
|
|
77112
|
+
phone?: string | null;
|
|
77113
|
+
profile_id: string;
|
|
77114
|
+
updated_at?: string;
|
|
77115
|
+
};
|
|
77116
|
+
Update: {
|
|
77117
|
+
color?: string | null;
|
|
77118
|
+
created_at?: string;
|
|
77119
|
+
hours_fri?: number | null;
|
|
77120
|
+
hours_mon?: number | null;
|
|
77121
|
+
hours_thu?: number | null;
|
|
77122
|
+
hours_tue?: number | null;
|
|
77123
|
+
hours_wed?: number | null;
|
|
77124
|
+
id?: string;
|
|
77125
|
+
is_active?: boolean;
|
|
77126
|
+
leave_balance_hours?: number;
|
|
77127
|
+
persnr?: string | null;
|
|
77128
|
+
phone?: string | null;
|
|
77129
|
+
profile_id?: string;
|
|
77130
|
+
updated_at?: string;
|
|
77131
|
+
};
|
|
77132
|
+
Relationships: [{
|
|
77133
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
77134
|
+
columns: ["profile_id"];
|
|
77135
|
+
isOneToOne: true;
|
|
77136
|
+
referencedRelation: "profiles";
|
|
77137
|
+
referencedColumns: ["id"];
|
|
77138
|
+
}];
|
|
77139
|
+
};
|
|
75118
77140
|
module_features: {
|
|
75119
77141
|
Row: {
|
|
75120
77142
|
created_at: string;
|
|
@@ -76408,6 +78430,8 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
76408
78430
|
orders: {
|
|
76409
78431
|
Row: {
|
|
76410
78432
|
buffer_id: string | null;
|
|
78433
|
+
cancel_reason: string | null;
|
|
78434
|
+
cancelled_at: string | null;
|
|
76411
78435
|
created_at: string;
|
|
76412
78436
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
76413
78437
|
customer_id: string | null;
|
|
@@ -76430,6 +78454,8 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
76430
78454
|
};
|
|
76431
78455
|
Insert: {
|
|
76432
78456
|
buffer_id?: string | null;
|
|
78457
|
+
cancel_reason?: string | null;
|
|
78458
|
+
cancelled_at?: string | null;
|
|
76433
78459
|
created_at?: string;
|
|
76434
78460
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
76435
78461
|
customer_id?: string | null;
|
|
@@ -76452,6 +78478,8 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
76452
78478
|
};
|
|
76453
78479
|
Update: {
|
|
76454
78480
|
buffer_id?: string | null;
|
|
78481
|
+
cancel_reason?: string | null;
|
|
78482
|
+
cancelled_at?: string | null;
|
|
76455
78483
|
created_at?: string;
|
|
76456
78484
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
76457
78485
|
customer_id?: string | null;
|
|
@@ -78514,6 +80542,66 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
78514
80542
|
};
|
|
78515
80543
|
Relationships: [];
|
|
78516
80544
|
};
|
|
80545
|
+
profile_modules: {
|
|
80546
|
+
Row: {
|
|
80547
|
+
created_at: string;
|
|
80548
|
+
id: string;
|
|
80549
|
+
module_id: string;
|
|
80550
|
+
profile_id: string;
|
|
80551
|
+
};
|
|
80552
|
+
Insert: {
|
|
80553
|
+
created_at?: string;
|
|
80554
|
+
id?: string;
|
|
80555
|
+
module_id: string;
|
|
80556
|
+
profile_id: string;
|
|
80557
|
+
};
|
|
80558
|
+
Update: {
|
|
80559
|
+
created_at?: string;
|
|
80560
|
+
id?: string;
|
|
80561
|
+
module_id?: string;
|
|
80562
|
+
profile_id?: string;
|
|
80563
|
+
};
|
|
80564
|
+
Relationships: [{
|
|
80565
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
80566
|
+
columns: ["profile_id"];
|
|
80567
|
+
isOneToOne: false;
|
|
80568
|
+
referencedRelation: "profiles_org";
|
|
80569
|
+
referencedColumns: ["id"];
|
|
80570
|
+
}];
|
|
80571
|
+
};
|
|
80572
|
+
profile_roles: {
|
|
80573
|
+
Row: {
|
|
80574
|
+
created_at: string;
|
|
80575
|
+
id: string;
|
|
80576
|
+
profile_id: string;
|
|
80577
|
+
role_id: string;
|
|
80578
|
+
};
|
|
80579
|
+
Insert: {
|
|
80580
|
+
created_at?: string;
|
|
80581
|
+
id?: string;
|
|
80582
|
+
profile_id: string;
|
|
80583
|
+
role_id: string;
|
|
80584
|
+
};
|
|
80585
|
+
Update: {
|
|
80586
|
+
created_at?: string;
|
|
80587
|
+
id?: string;
|
|
80588
|
+
profile_id?: string;
|
|
80589
|
+
role_id?: string;
|
|
80590
|
+
};
|
|
80591
|
+
Relationships: [{
|
|
80592
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
80593
|
+
columns: ["profile_id"];
|
|
80594
|
+
isOneToOne: false;
|
|
80595
|
+
referencedRelation: "profiles_org";
|
|
80596
|
+
referencedColumns: ["id"];
|
|
80597
|
+
}, {
|
|
80598
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
80599
|
+
columns: ["role_id"];
|
|
80600
|
+
isOneToOne: false;
|
|
80601
|
+
referencedRelation: "roles";
|
|
80602
|
+
referencedColumns: ["id"];
|
|
80603
|
+
}];
|
|
80604
|
+
};
|
|
78517
80605
|
profiles: {
|
|
78518
80606
|
Row: {
|
|
78519
80607
|
address: string | null;
|
|
@@ -78559,6 +80647,39 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
78559
80647
|
referencedColumns: ["id"];
|
|
78560
80648
|
}];
|
|
78561
80649
|
};
|
|
80650
|
+
profiles_org: {
|
|
80651
|
+
Row: {
|
|
80652
|
+
created_at: string;
|
|
80653
|
+
id: string;
|
|
80654
|
+
is_default: boolean;
|
|
80655
|
+
name: string;
|
|
80656
|
+
tenant_id: string | null;
|
|
80657
|
+
updated_at: string;
|
|
80658
|
+
};
|
|
80659
|
+
Insert: {
|
|
80660
|
+
created_at?: string;
|
|
80661
|
+
id?: string;
|
|
80662
|
+
is_default?: boolean;
|
|
80663
|
+
name: string;
|
|
80664
|
+
tenant_id?: string | null;
|
|
80665
|
+
updated_at?: string;
|
|
80666
|
+
};
|
|
80667
|
+
Update: {
|
|
80668
|
+
created_at?: string;
|
|
80669
|
+
id?: string;
|
|
80670
|
+
is_default?: boolean;
|
|
80671
|
+
name?: string;
|
|
80672
|
+
tenant_id?: string | null;
|
|
80673
|
+
updated_at?: string;
|
|
80674
|
+
};
|
|
80675
|
+
Relationships: [{
|
|
80676
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
80677
|
+
columns: ["tenant_id"];
|
|
80678
|
+
isOneToOne: false;
|
|
80679
|
+
referencedRelation: "tenants";
|
|
80680
|
+
referencedColumns: ["id"];
|
|
80681
|
+
}];
|
|
80682
|
+
};
|
|
78562
80683
|
projects: {
|
|
78563
80684
|
Row: {
|
|
78564
80685
|
contact_name: string | null;
|
|
@@ -79733,6 +81854,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
79733
81854
|
type: string;
|
|
79734
81855
|
updated_at: string;
|
|
79735
81856
|
vereist_medewerker: boolean;
|
|
81857
|
+
werkplek: string | null;
|
|
79736
81858
|
};
|
|
79737
81859
|
Insert: {
|
|
79738
81860
|
actief?: boolean;
|
|
@@ -79746,6 +81868,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
79746
81868
|
type?: string;
|
|
79747
81869
|
updated_at?: string;
|
|
79748
81870
|
vereist_medewerker?: boolean;
|
|
81871
|
+
werkplek?: string | null;
|
|
79749
81872
|
};
|
|
79750
81873
|
Update: {
|
|
79751
81874
|
actief?: boolean;
|
|
@@ -79759,9 +81882,46 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
79759
81882
|
type?: string;
|
|
79760
81883
|
updated_at?: string;
|
|
79761
81884
|
vereist_medewerker?: boolean;
|
|
81885
|
+
werkplek?: string | null;
|
|
79762
81886
|
};
|
|
79763
81887
|
Relationships: [];
|
|
79764
81888
|
};
|
|
81889
|
+
sick_periods: {
|
|
81890
|
+
Row: {
|
|
81891
|
+
created_at: string;
|
|
81892
|
+
employee_id: string;
|
|
81893
|
+
end_date: string | null;
|
|
81894
|
+
id: string;
|
|
81895
|
+
notes: string | null;
|
|
81896
|
+
start_date: string;
|
|
81897
|
+
updated_at: string;
|
|
81898
|
+
};
|
|
81899
|
+
Insert: {
|
|
81900
|
+
created_at?: string;
|
|
81901
|
+
employee_id: string;
|
|
81902
|
+
end_date?: string | null;
|
|
81903
|
+
id?: string;
|
|
81904
|
+
notes?: string | null;
|
|
81905
|
+
start_date: string;
|
|
81906
|
+
updated_at?: string;
|
|
81907
|
+
};
|
|
81908
|
+
Update: {
|
|
81909
|
+
created_at?: string;
|
|
81910
|
+
employee_id?: string;
|
|
81911
|
+
end_date?: string | null;
|
|
81912
|
+
id?: string;
|
|
81913
|
+
notes?: string | null;
|
|
81914
|
+
start_date?: string;
|
|
81915
|
+
updated_at?: string;
|
|
81916
|
+
};
|
|
81917
|
+
Relationships: [{
|
|
81918
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
81919
|
+
columns: ["employee_id"];
|
|
81920
|
+
isOneToOne: false;
|
|
81921
|
+
referencedRelation: "profiles";
|
|
81922
|
+
referencedColumns: ["id"];
|
|
81923
|
+
}];
|
|
81924
|
+
};
|
|
79765
81925
|
sidebar_config: {
|
|
79766
81926
|
Row: {
|
|
79767
81927
|
id: string;
|
|
@@ -84446,6 +86606,13 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
84446
86606
|
};
|
|
84447
86607
|
Returns: string;
|
|
84448
86608
|
};
|
|
86609
|
+
employee_day_hours: {
|
|
86610
|
+
Args: {
|
|
86611
|
+
_day: string;
|
|
86612
|
+
_employee_id: string;
|
|
86613
|
+
};
|
|
86614
|
+
Returns: number;
|
|
86615
|
+
};
|
|
84449
86616
|
enqueue_cart_replan_if_unlocked: {
|
|
84450
86617
|
Args: {
|
|
84451
86618
|
p_order_id: string;
|
|
@@ -84799,6 +86966,19 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
84799
86966
|
Args: never;
|
|
84800
86967
|
Returns: boolean;
|
|
84801
86968
|
};
|
|
86969
|
+
itk_offerte_naar_werkbon: {
|
|
86970
|
+
Args: {
|
|
86971
|
+
_offerte_id: string;
|
|
86972
|
+
};
|
|
86973
|
+
Returns: string;
|
|
86974
|
+
};
|
|
86975
|
+
itk_offerte_restant_mandaat: {
|
|
86976
|
+
Args: {
|
|
86977
|
+
_exclude_offerte_id?: string;
|
|
86978
|
+
_werkbon_id: string;
|
|
86979
|
+
};
|
|
86980
|
+
Returns: number;
|
|
86981
|
+
};
|
|
84802
86982
|
jwt_has_role: {
|
|
84803
86983
|
Args: {
|
|
84804
86984
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -84809,9 +86989,19 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
84809
86989
|
Args: never;
|
|
84810
86990
|
Returns: {
|
|
84811
86991
|
avatar_url: string;
|
|
86992
|
+
color: string;
|
|
84812
86993
|
display_name: string;
|
|
84813
86994
|
email: string;
|
|
86995
|
+
hours_fri: number;
|
|
86996
|
+
hours_mon: number;
|
|
86997
|
+
hours_thu: number;
|
|
86998
|
+
hours_tue: number;
|
|
86999
|
+
hours_wed: number;
|
|
84814
87000
|
id: string;
|
|
87001
|
+
is_active: boolean;
|
|
87002
|
+
leave_balance_hours: number;
|
|
87003
|
+
persnr: string;
|
|
87004
|
+
phone: string;
|
|
84815
87005
|
roles: string[];
|
|
84816
87006
|
}[];
|
|
84817
87007
|
};
|
|
@@ -85138,17 +87328,6 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
85138
87328
|
Returns: string;
|
|
85139
87329
|
};
|
|
85140
87330
|
logistics_emit_event: {
|
|
85141
|
-
Args: {
|
|
85142
|
-
p_event_type: string;
|
|
85143
|
-
p_idempotency_key?: string;
|
|
85144
|
-
p_order_ref: string;
|
|
85145
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
85146
|
-
p_shadow?: boolean;
|
|
85147
|
-
p_source_module: string;
|
|
85148
|
-
p_strategy_id?: string;
|
|
85149
|
-
};
|
|
85150
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
85151
|
-
} | {
|
|
85152
87331
|
Args: {
|
|
85153
87332
|
p_event_type: string;
|
|
85154
87333
|
p_idempotency_key?: string;
|
|
@@ -85993,6 +88172,37 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
85993
88172
|
};
|
|
85994
88173
|
Returns: undefined;
|
|
85995
88174
|
};
|
|
88175
|
+
quote_create_from_source: {
|
|
88176
|
+
Args: {
|
|
88177
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
88178
|
+
_source_id: string;
|
|
88179
|
+
_source_type: string;
|
|
88180
|
+
};
|
|
88181
|
+
Returns: string;
|
|
88182
|
+
};
|
|
88183
|
+
quote_get_billable_lines: {
|
|
88184
|
+
Args: {
|
|
88185
|
+
_quotation_id: string;
|
|
88186
|
+
};
|
|
88187
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88188
|
+
};
|
|
88189
|
+
quote_get_summary: {
|
|
88190
|
+
Args: {
|
|
88191
|
+
_quotation_id: string;
|
|
88192
|
+
};
|
|
88193
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88194
|
+
};
|
|
88195
|
+
quote_list_packages: {
|
|
88196
|
+
Args: never;
|
|
88197
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88198
|
+
};
|
|
88199
|
+
quote_list_sources: {
|
|
88200
|
+
Args: {
|
|
88201
|
+
_limit?: number;
|
|
88202
|
+
_source_type?: string;
|
|
88203
|
+
};
|
|
88204
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88205
|
+
};
|
|
85996
88206
|
recompute_all_reserved_stock: {
|
|
85997
88207
|
Args: never;
|
|
85998
88208
|
Returns: undefined;
|
|
@@ -86528,6 +88738,12 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
86528
88738
|
};
|
|
86529
88739
|
Returns: undefined;
|
|
86530
88740
|
};
|
|
88741
|
+
sync_sick_time_off: {
|
|
88742
|
+
Args: {
|
|
88743
|
+
_period_id: string;
|
|
88744
|
+
};
|
|
88745
|
+
Returns: number;
|
|
88746
|
+
};
|
|
86531
88747
|
trade_item_stock_duplicates: {
|
|
86532
88748
|
Args: never;
|
|
86533
88749
|
Returns: {
|
|
@@ -86601,11 +88817,31 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
|
|
|
86601
88817
|
Args: never;
|
|
86602
88818
|
Returns: string;
|
|
86603
88819
|
};
|
|
88820
|
+
wo_create_from_source: {
|
|
88821
|
+
Args: {
|
|
88822
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
88823
|
+
_source_id: string;
|
|
88824
|
+
_source_type: string;
|
|
88825
|
+
};
|
|
88826
|
+
Returns: string;
|
|
88827
|
+
};
|
|
88828
|
+
wo_get_billable_lines: {
|
|
88829
|
+
Args: {
|
|
88830
|
+
_work_order_id: string;
|
|
88831
|
+
};
|
|
88832
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88833
|
+
};
|
|
88834
|
+
wo_get_summary: {
|
|
88835
|
+
Args: {
|
|
88836
|
+
_work_order_id: string;
|
|
88837
|
+
};
|
|
88838
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88839
|
+
};
|
|
86604
88840
|
};
|
|
86605
88841
|
Enums: {
|
|
86606
88842
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
86607
88843
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
86608
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
88844
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
86609
88845
|
doc_orientation: "portrait" | "landscape";
|
|
86610
88846
|
exact_env: "staging" | "live";
|
|
86611
88847
|
exact_push_status: "pending" | "sent" | "error";
|