@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
|
@@ -5059,6 +5059,42 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
5059
5059
|
};
|
|
5060
5060
|
Relationships: [];
|
|
5061
5061
|
};
|
|
5062
|
+
facturen: {
|
|
5063
|
+
Row: {
|
|
5064
|
+
bedrag_incl_btw: number;
|
|
5065
|
+
created_at: string;
|
|
5066
|
+
datum: string;
|
|
5067
|
+
factuurnummer: string;
|
|
5068
|
+
id: string;
|
|
5069
|
+
klantnaam: string;
|
|
5070
|
+
status: string;
|
|
5071
|
+
updated_at: string;
|
|
5072
|
+
user_id: string;
|
|
5073
|
+
};
|
|
5074
|
+
Insert: {
|
|
5075
|
+
bedrag_incl_btw: number;
|
|
5076
|
+
created_at?: string;
|
|
5077
|
+
datum?: string;
|
|
5078
|
+
factuurnummer: string;
|
|
5079
|
+
id?: string;
|
|
5080
|
+
klantnaam: string;
|
|
5081
|
+
status?: string;
|
|
5082
|
+
updated_at?: string;
|
|
5083
|
+
user_id?: string;
|
|
5084
|
+
};
|
|
5085
|
+
Update: {
|
|
5086
|
+
bedrag_incl_btw?: number;
|
|
5087
|
+
created_at?: string;
|
|
5088
|
+
datum?: string;
|
|
5089
|
+
factuurnummer?: string;
|
|
5090
|
+
id?: string;
|
|
5091
|
+
klantnaam?: string;
|
|
5092
|
+
status?: string;
|
|
5093
|
+
updated_at?: string;
|
|
5094
|
+
user_id?: string;
|
|
5095
|
+
};
|
|
5096
|
+
Relationships: [];
|
|
5097
|
+
};
|
|
5062
5098
|
floricode_connection_settings: {
|
|
5063
5099
|
Row: {
|
|
5064
5100
|
catalog_key: string | null;
|
|
@@ -7783,6 +7819,258 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
7783
7819
|
};
|
|
7784
7820
|
Relationships: [];
|
|
7785
7821
|
};
|
|
7822
|
+
itk_offerte_events: {
|
|
7823
|
+
Row: {
|
|
7824
|
+
created_at: string;
|
|
7825
|
+
event_type: string;
|
|
7826
|
+
id: string;
|
|
7827
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
7828
|
+
offerte_id: string;
|
|
7829
|
+
omschrijving: string | null;
|
|
7830
|
+
user_id: string | null;
|
|
7831
|
+
};
|
|
7832
|
+
Insert: {
|
|
7833
|
+
created_at?: string;
|
|
7834
|
+
event_type: string;
|
|
7835
|
+
id?: string;
|
|
7836
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7837
|
+
offerte_id: string;
|
|
7838
|
+
omschrijving?: string | null;
|
|
7839
|
+
user_id?: string | null;
|
|
7840
|
+
};
|
|
7841
|
+
Update: {
|
|
7842
|
+
created_at?: string;
|
|
7843
|
+
event_type?: string;
|
|
7844
|
+
id?: string;
|
|
7845
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7846
|
+
offerte_id?: string;
|
|
7847
|
+
omschrijving?: string | null;
|
|
7848
|
+
user_id?: string | null;
|
|
7849
|
+
};
|
|
7850
|
+
Relationships: [{
|
|
7851
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
7852
|
+
columns: ["offerte_id"];
|
|
7853
|
+
isOneToOne: false;
|
|
7854
|
+
referencedRelation: "itk_offertes";
|
|
7855
|
+
referencedColumns: ["id"];
|
|
7856
|
+
}];
|
|
7857
|
+
};
|
|
7858
|
+
itk_offerte_regels: {
|
|
7859
|
+
Row: {
|
|
7860
|
+
created_at: string;
|
|
7861
|
+
id: string;
|
|
7862
|
+
line_total_cents: number;
|
|
7863
|
+
offerte_id: string;
|
|
7864
|
+
omschrijving: string;
|
|
7865
|
+
package_id: string | null;
|
|
7866
|
+
quantity: number;
|
|
7867
|
+
sort_order: number;
|
|
7868
|
+
source: string;
|
|
7869
|
+
unit_price_cents: number;
|
|
7870
|
+
updated_at: string;
|
|
7871
|
+
};
|
|
7872
|
+
Insert: {
|
|
7873
|
+
created_at?: string;
|
|
7874
|
+
id?: string;
|
|
7875
|
+
line_total_cents?: number;
|
|
7876
|
+
offerte_id: string;
|
|
7877
|
+
omschrijving?: string;
|
|
7878
|
+
package_id?: string | null;
|
|
7879
|
+
quantity?: number;
|
|
7880
|
+
sort_order?: number;
|
|
7881
|
+
source?: string;
|
|
7882
|
+
unit_price_cents?: number;
|
|
7883
|
+
updated_at?: string;
|
|
7884
|
+
};
|
|
7885
|
+
Update: {
|
|
7886
|
+
created_at?: string;
|
|
7887
|
+
id?: string;
|
|
7888
|
+
line_total_cents?: number;
|
|
7889
|
+
offerte_id?: string;
|
|
7890
|
+
omschrijving?: string;
|
|
7891
|
+
package_id?: string | null;
|
|
7892
|
+
quantity?: number;
|
|
7893
|
+
sort_order?: number;
|
|
7894
|
+
source?: string;
|
|
7895
|
+
unit_price_cents?: number;
|
|
7896
|
+
updated_at?: string;
|
|
7897
|
+
};
|
|
7898
|
+
Relationships: [{
|
|
7899
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
7900
|
+
columns: ["offerte_id"];
|
|
7901
|
+
isOneToOne: false;
|
|
7902
|
+
referencedRelation: "itk_offertes";
|
|
7903
|
+
referencedColumns: ["id"];
|
|
7904
|
+
}, {
|
|
7905
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
7906
|
+
columns: ["package_id"];
|
|
7907
|
+
isOneToOne: false;
|
|
7908
|
+
referencedRelation: "werkbon_packages";
|
|
7909
|
+
referencedColumns: ["id"];
|
|
7910
|
+
}];
|
|
7911
|
+
};
|
|
7912
|
+
itk_offerte_settings: {
|
|
7913
|
+
Row: {
|
|
7914
|
+
auto_convert_binnen_mandaat: boolean;
|
|
7915
|
+
created_at: string;
|
|
7916
|
+
default_geldigheid_dagen: number;
|
|
7917
|
+
default_vat_rate: number;
|
|
7918
|
+
id: string;
|
|
7919
|
+
singleton: boolean;
|
|
7920
|
+
updated_at: string;
|
|
7921
|
+
};
|
|
7922
|
+
Insert: {
|
|
7923
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7924
|
+
created_at?: string;
|
|
7925
|
+
default_geldigheid_dagen?: number;
|
|
7926
|
+
default_vat_rate?: number;
|
|
7927
|
+
id?: string;
|
|
7928
|
+
singleton?: boolean;
|
|
7929
|
+
updated_at?: string;
|
|
7930
|
+
};
|
|
7931
|
+
Update: {
|
|
7932
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7933
|
+
created_at?: string;
|
|
7934
|
+
default_geldigheid_dagen?: number;
|
|
7935
|
+
default_vat_rate?: number;
|
|
7936
|
+
id?: string;
|
|
7937
|
+
singleton?: boolean;
|
|
7938
|
+
updated_at?: string;
|
|
7939
|
+
};
|
|
7940
|
+
Relationships: [];
|
|
7941
|
+
};
|
|
7942
|
+
itk_offertes: {
|
|
7943
|
+
Row: {
|
|
7944
|
+
ai_generated: boolean;
|
|
7945
|
+
approved_at: string | null;
|
|
7946
|
+
binnen_mandaat: boolean;
|
|
7947
|
+
contact_id: string | null;
|
|
7948
|
+
converted_at: string | null;
|
|
7949
|
+
created_at: string;
|
|
7950
|
+
created_by: string | null;
|
|
7951
|
+
customer_id: string | null;
|
|
7952
|
+
follow_up_werkbon_id: string | null;
|
|
7953
|
+
id: string;
|
|
7954
|
+
jaar: number;
|
|
7955
|
+
mandaat_restant_cents: number;
|
|
7956
|
+
notities: string | null;
|
|
7957
|
+
offerte_number: string | null;
|
|
7958
|
+
omschrijving: string;
|
|
7959
|
+
rejected_at: string | null;
|
|
7960
|
+
sent_at: string | null;
|
|
7961
|
+
source_number: string | null;
|
|
7962
|
+
source_ref: string | null;
|
|
7963
|
+
source_type: string;
|
|
7964
|
+
status: string;
|
|
7965
|
+
subtotal_cents: number;
|
|
7966
|
+
total_cents: number;
|
|
7967
|
+
updated_at: string;
|
|
7968
|
+
valid_until: string | null;
|
|
7969
|
+
vat_cents: number;
|
|
7970
|
+
vat_rate: number;
|
|
7971
|
+
viewed_at: string | null;
|
|
7972
|
+
volgnummer: number | null;
|
|
7973
|
+
werkbon_id: string | null;
|
|
7974
|
+
work_location_id: string | null;
|
|
7975
|
+
};
|
|
7976
|
+
Insert: {
|
|
7977
|
+
ai_generated?: boolean;
|
|
7978
|
+
approved_at?: string | null;
|
|
7979
|
+
binnen_mandaat?: boolean;
|
|
7980
|
+
contact_id?: string | null;
|
|
7981
|
+
converted_at?: string | null;
|
|
7982
|
+
created_at?: string;
|
|
7983
|
+
created_by?: string | null;
|
|
7984
|
+
customer_id?: string | null;
|
|
7985
|
+
follow_up_werkbon_id?: string | null;
|
|
7986
|
+
id?: string;
|
|
7987
|
+
jaar?: number;
|
|
7988
|
+
mandaat_restant_cents?: number;
|
|
7989
|
+
notities?: string | null;
|
|
7990
|
+
offerte_number?: string | null;
|
|
7991
|
+
omschrijving?: string;
|
|
7992
|
+
rejected_at?: string | null;
|
|
7993
|
+
sent_at?: string | null;
|
|
7994
|
+
source_number?: string | null;
|
|
7995
|
+
source_ref?: string | null;
|
|
7996
|
+
source_type?: string;
|
|
7997
|
+
status?: string;
|
|
7998
|
+
subtotal_cents?: number;
|
|
7999
|
+
total_cents?: number;
|
|
8000
|
+
updated_at?: string;
|
|
8001
|
+
valid_until?: string | null;
|
|
8002
|
+
vat_cents?: number;
|
|
8003
|
+
vat_rate?: number;
|
|
8004
|
+
viewed_at?: string | null;
|
|
8005
|
+
volgnummer?: number | null;
|
|
8006
|
+
werkbon_id?: string | null;
|
|
8007
|
+
work_location_id?: string | null;
|
|
8008
|
+
};
|
|
8009
|
+
Update: {
|
|
8010
|
+
ai_generated?: boolean;
|
|
8011
|
+
approved_at?: string | null;
|
|
8012
|
+
binnen_mandaat?: boolean;
|
|
8013
|
+
contact_id?: string | null;
|
|
8014
|
+
converted_at?: string | null;
|
|
8015
|
+
created_at?: string;
|
|
8016
|
+
created_by?: string | null;
|
|
8017
|
+
customer_id?: string | null;
|
|
8018
|
+
follow_up_werkbon_id?: string | null;
|
|
8019
|
+
id?: string;
|
|
8020
|
+
jaar?: number;
|
|
8021
|
+
mandaat_restant_cents?: number;
|
|
8022
|
+
notities?: string | null;
|
|
8023
|
+
offerte_number?: string | null;
|
|
8024
|
+
omschrijving?: string;
|
|
8025
|
+
rejected_at?: string | null;
|
|
8026
|
+
sent_at?: string | null;
|
|
8027
|
+
source_number?: string | null;
|
|
8028
|
+
source_ref?: string | null;
|
|
8029
|
+
source_type?: string;
|
|
8030
|
+
status?: string;
|
|
8031
|
+
subtotal_cents?: number;
|
|
8032
|
+
total_cents?: number;
|
|
8033
|
+
updated_at?: string;
|
|
8034
|
+
valid_until?: string | null;
|
|
8035
|
+
vat_cents?: number;
|
|
8036
|
+
vat_rate?: number;
|
|
8037
|
+
viewed_at?: string | null;
|
|
8038
|
+
volgnummer?: number | null;
|
|
8039
|
+
werkbon_id?: string | null;
|
|
8040
|
+
work_location_id?: string | null;
|
|
8041
|
+
};
|
|
8042
|
+
Relationships: [{
|
|
8043
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8044
|
+
columns: ["contact_id"];
|
|
8045
|
+
isOneToOne: false;
|
|
8046
|
+
referencedRelation: "itk_contact_persons";
|
|
8047
|
+
referencedColumns: ["id"];
|
|
8048
|
+
}, {
|
|
8049
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8050
|
+
columns: ["customer_id"];
|
|
8051
|
+
isOneToOne: false;
|
|
8052
|
+
referencedRelation: "itk_customers";
|
|
8053
|
+
referencedColumns: ["id"];
|
|
8054
|
+
}, {
|
|
8055
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8056
|
+
columns: ["follow_up_werkbon_id"];
|
|
8057
|
+
isOneToOne: false;
|
|
8058
|
+
referencedRelation: "werkbonnen";
|
|
8059
|
+
referencedColumns: ["id"];
|
|
8060
|
+
}, {
|
|
8061
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8062
|
+
columns: ["werkbon_id"];
|
|
8063
|
+
isOneToOne: false;
|
|
8064
|
+
referencedRelation: "werkbonnen";
|
|
8065
|
+
referencedColumns: ["id"];
|
|
8066
|
+
}, {
|
|
8067
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8068
|
+
columns: ["work_location_id"];
|
|
8069
|
+
isOneToOne: false;
|
|
8070
|
+
referencedRelation: "itk_work_locations";
|
|
8071
|
+
referencedColumns: ["id"];
|
|
8072
|
+
}];
|
|
8073
|
+
};
|
|
7786
8074
|
itk_work_locations: {
|
|
7787
8075
|
Row: {
|
|
7788
8076
|
city: string | null;
|
|
@@ -10156,6 +10444,63 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
10156
10444
|
referencedColumns: ["id"];
|
|
10157
10445
|
}];
|
|
10158
10446
|
};
|
|
10447
|
+
medewerker_details: {
|
|
10448
|
+
Row: {
|
|
10449
|
+
color: string | null;
|
|
10450
|
+
created_at: string;
|
|
10451
|
+
hours_fri: number | null;
|
|
10452
|
+
hours_mon: number | null;
|
|
10453
|
+
hours_thu: number | null;
|
|
10454
|
+
hours_tue: number | null;
|
|
10455
|
+
hours_wed: number | null;
|
|
10456
|
+
id: string;
|
|
10457
|
+
is_active: boolean;
|
|
10458
|
+
leave_balance_hours: number;
|
|
10459
|
+
persnr: string | null;
|
|
10460
|
+
phone: string | null;
|
|
10461
|
+
profile_id: string;
|
|
10462
|
+
updated_at: string;
|
|
10463
|
+
};
|
|
10464
|
+
Insert: {
|
|
10465
|
+
color?: string | null;
|
|
10466
|
+
created_at?: string;
|
|
10467
|
+
hours_fri?: number | null;
|
|
10468
|
+
hours_mon?: number | null;
|
|
10469
|
+
hours_thu?: number | null;
|
|
10470
|
+
hours_tue?: number | null;
|
|
10471
|
+
hours_wed?: number | null;
|
|
10472
|
+
id?: string;
|
|
10473
|
+
is_active?: boolean;
|
|
10474
|
+
leave_balance_hours?: number;
|
|
10475
|
+
persnr?: string | null;
|
|
10476
|
+
phone?: string | null;
|
|
10477
|
+
profile_id: string;
|
|
10478
|
+
updated_at?: string;
|
|
10479
|
+
};
|
|
10480
|
+
Update: {
|
|
10481
|
+
color?: string | null;
|
|
10482
|
+
created_at?: string;
|
|
10483
|
+
hours_fri?: number | null;
|
|
10484
|
+
hours_mon?: number | null;
|
|
10485
|
+
hours_thu?: number | null;
|
|
10486
|
+
hours_tue?: number | null;
|
|
10487
|
+
hours_wed?: number | null;
|
|
10488
|
+
id?: string;
|
|
10489
|
+
is_active?: boolean;
|
|
10490
|
+
leave_balance_hours?: number;
|
|
10491
|
+
persnr?: string | null;
|
|
10492
|
+
phone?: string | null;
|
|
10493
|
+
profile_id?: string;
|
|
10494
|
+
updated_at?: string;
|
|
10495
|
+
};
|
|
10496
|
+
Relationships: [{
|
|
10497
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10498
|
+
columns: ["profile_id"];
|
|
10499
|
+
isOneToOne: true;
|
|
10500
|
+
referencedRelation: "profiles";
|
|
10501
|
+
referencedColumns: ["id"];
|
|
10502
|
+
}];
|
|
10503
|
+
};
|
|
10159
10504
|
module_features: {
|
|
10160
10505
|
Row: {
|
|
10161
10506
|
created_at: string;
|
|
@@ -11449,6 +11794,8 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
11449
11794
|
orders: {
|
|
11450
11795
|
Row: {
|
|
11451
11796
|
buffer_id: string | null;
|
|
11797
|
+
cancel_reason: string | null;
|
|
11798
|
+
cancelled_at: string | null;
|
|
11452
11799
|
created_at: string;
|
|
11453
11800
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
11454
11801
|
customer_id: string | null;
|
|
@@ -11471,6 +11818,8 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
11471
11818
|
};
|
|
11472
11819
|
Insert: {
|
|
11473
11820
|
buffer_id?: string | null;
|
|
11821
|
+
cancel_reason?: string | null;
|
|
11822
|
+
cancelled_at?: string | null;
|
|
11474
11823
|
created_at?: string;
|
|
11475
11824
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11476
11825
|
customer_id?: string | null;
|
|
@@ -11493,6 +11842,8 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
11493
11842
|
};
|
|
11494
11843
|
Update: {
|
|
11495
11844
|
buffer_id?: string | null;
|
|
11845
|
+
cancel_reason?: string | null;
|
|
11846
|
+
cancelled_at?: string | null;
|
|
11496
11847
|
created_at?: string;
|
|
11497
11848
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11498
11849
|
customer_id?: string | null;
|
|
@@ -13555,6 +13906,66 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
13555
13906
|
};
|
|
13556
13907
|
Relationships: [];
|
|
13557
13908
|
};
|
|
13909
|
+
profile_modules: {
|
|
13910
|
+
Row: {
|
|
13911
|
+
created_at: string;
|
|
13912
|
+
id: string;
|
|
13913
|
+
module_id: string;
|
|
13914
|
+
profile_id: string;
|
|
13915
|
+
};
|
|
13916
|
+
Insert: {
|
|
13917
|
+
created_at?: string;
|
|
13918
|
+
id?: string;
|
|
13919
|
+
module_id: string;
|
|
13920
|
+
profile_id: string;
|
|
13921
|
+
};
|
|
13922
|
+
Update: {
|
|
13923
|
+
created_at?: string;
|
|
13924
|
+
id?: string;
|
|
13925
|
+
module_id?: string;
|
|
13926
|
+
profile_id?: string;
|
|
13927
|
+
};
|
|
13928
|
+
Relationships: [{
|
|
13929
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
13930
|
+
columns: ["profile_id"];
|
|
13931
|
+
isOneToOne: false;
|
|
13932
|
+
referencedRelation: "profiles_org";
|
|
13933
|
+
referencedColumns: ["id"];
|
|
13934
|
+
}];
|
|
13935
|
+
};
|
|
13936
|
+
profile_roles: {
|
|
13937
|
+
Row: {
|
|
13938
|
+
created_at: string;
|
|
13939
|
+
id: string;
|
|
13940
|
+
profile_id: string;
|
|
13941
|
+
role_id: string;
|
|
13942
|
+
};
|
|
13943
|
+
Insert: {
|
|
13944
|
+
created_at?: string;
|
|
13945
|
+
id?: string;
|
|
13946
|
+
profile_id: string;
|
|
13947
|
+
role_id: string;
|
|
13948
|
+
};
|
|
13949
|
+
Update: {
|
|
13950
|
+
created_at?: string;
|
|
13951
|
+
id?: string;
|
|
13952
|
+
profile_id?: string;
|
|
13953
|
+
role_id?: string;
|
|
13954
|
+
};
|
|
13955
|
+
Relationships: [{
|
|
13956
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
13957
|
+
columns: ["profile_id"];
|
|
13958
|
+
isOneToOne: false;
|
|
13959
|
+
referencedRelation: "profiles_org";
|
|
13960
|
+
referencedColumns: ["id"];
|
|
13961
|
+
}, {
|
|
13962
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
13963
|
+
columns: ["role_id"];
|
|
13964
|
+
isOneToOne: false;
|
|
13965
|
+
referencedRelation: "roles";
|
|
13966
|
+
referencedColumns: ["id"];
|
|
13967
|
+
}];
|
|
13968
|
+
};
|
|
13558
13969
|
profiles: {
|
|
13559
13970
|
Row: {
|
|
13560
13971
|
address: string | null;
|
|
@@ -13600,6 +14011,39 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
13600
14011
|
referencedColumns: ["id"];
|
|
13601
14012
|
}];
|
|
13602
14013
|
};
|
|
14014
|
+
profiles_org: {
|
|
14015
|
+
Row: {
|
|
14016
|
+
created_at: string;
|
|
14017
|
+
id: string;
|
|
14018
|
+
is_default: boolean;
|
|
14019
|
+
name: string;
|
|
14020
|
+
tenant_id: string | null;
|
|
14021
|
+
updated_at: string;
|
|
14022
|
+
};
|
|
14023
|
+
Insert: {
|
|
14024
|
+
created_at?: string;
|
|
14025
|
+
id?: string;
|
|
14026
|
+
is_default?: boolean;
|
|
14027
|
+
name: string;
|
|
14028
|
+
tenant_id?: string | null;
|
|
14029
|
+
updated_at?: string;
|
|
14030
|
+
};
|
|
14031
|
+
Update: {
|
|
14032
|
+
created_at?: string;
|
|
14033
|
+
id?: string;
|
|
14034
|
+
is_default?: boolean;
|
|
14035
|
+
name?: string;
|
|
14036
|
+
tenant_id?: string | null;
|
|
14037
|
+
updated_at?: string;
|
|
14038
|
+
};
|
|
14039
|
+
Relationships: [{
|
|
14040
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14041
|
+
columns: ["tenant_id"];
|
|
14042
|
+
isOneToOne: false;
|
|
14043
|
+
referencedRelation: "tenants";
|
|
14044
|
+
referencedColumns: ["id"];
|
|
14045
|
+
}];
|
|
14046
|
+
};
|
|
13603
14047
|
projects: {
|
|
13604
14048
|
Row: {
|
|
13605
14049
|
contact_name: string | null;
|
|
@@ -14774,6 +15218,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
14774
15218
|
type: string;
|
|
14775
15219
|
updated_at: string;
|
|
14776
15220
|
vereist_medewerker: boolean;
|
|
15221
|
+
werkplek: string | null;
|
|
14777
15222
|
};
|
|
14778
15223
|
Insert: {
|
|
14779
15224
|
actief?: boolean;
|
|
@@ -14787,6 +15232,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
14787
15232
|
type?: string;
|
|
14788
15233
|
updated_at?: string;
|
|
14789
15234
|
vereist_medewerker?: boolean;
|
|
15235
|
+
werkplek?: string | null;
|
|
14790
15236
|
};
|
|
14791
15237
|
Update: {
|
|
14792
15238
|
actief?: boolean;
|
|
@@ -14800,9 +15246,46 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
14800
15246
|
type?: string;
|
|
14801
15247
|
updated_at?: string;
|
|
14802
15248
|
vereist_medewerker?: boolean;
|
|
15249
|
+
werkplek?: string | null;
|
|
14803
15250
|
};
|
|
14804
15251
|
Relationships: [];
|
|
14805
15252
|
};
|
|
15253
|
+
sick_periods: {
|
|
15254
|
+
Row: {
|
|
15255
|
+
created_at: string;
|
|
15256
|
+
employee_id: string;
|
|
15257
|
+
end_date: string | null;
|
|
15258
|
+
id: string;
|
|
15259
|
+
notes: string | null;
|
|
15260
|
+
start_date: string;
|
|
15261
|
+
updated_at: string;
|
|
15262
|
+
};
|
|
15263
|
+
Insert: {
|
|
15264
|
+
created_at?: string;
|
|
15265
|
+
employee_id: string;
|
|
15266
|
+
end_date?: string | null;
|
|
15267
|
+
id?: string;
|
|
15268
|
+
notes?: string | null;
|
|
15269
|
+
start_date: string;
|
|
15270
|
+
updated_at?: string;
|
|
15271
|
+
};
|
|
15272
|
+
Update: {
|
|
15273
|
+
created_at?: string;
|
|
15274
|
+
employee_id?: string;
|
|
15275
|
+
end_date?: string | null;
|
|
15276
|
+
id?: string;
|
|
15277
|
+
notes?: string | null;
|
|
15278
|
+
start_date?: string;
|
|
15279
|
+
updated_at?: string;
|
|
15280
|
+
};
|
|
15281
|
+
Relationships: [{
|
|
15282
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15283
|
+
columns: ["employee_id"];
|
|
15284
|
+
isOneToOne: false;
|
|
15285
|
+
referencedRelation: "profiles";
|
|
15286
|
+
referencedColumns: ["id"];
|
|
15287
|
+
}];
|
|
15288
|
+
};
|
|
14806
15289
|
sidebar_config: {
|
|
14807
15290
|
Row: {
|
|
14808
15291
|
id: string;
|
|
@@ -19487,6 +19970,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
19487
19970
|
};
|
|
19488
19971
|
Returns: string;
|
|
19489
19972
|
};
|
|
19973
|
+
employee_day_hours: {
|
|
19974
|
+
Args: {
|
|
19975
|
+
_day: string;
|
|
19976
|
+
_employee_id: string;
|
|
19977
|
+
};
|
|
19978
|
+
Returns: number;
|
|
19979
|
+
};
|
|
19490
19980
|
enqueue_cart_replan_if_unlocked: {
|
|
19491
19981
|
Args: {
|
|
19492
19982
|
p_order_id: string;
|
|
@@ -19840,6 +20330,19 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
19840
20330
|
Args: never;
|
|
19841
20331
|
Returns: boolean;
|
|
19842
20332
|
};
|
|
20333
|
+
itk_offerte_naar_werkbon: {
|
|
20334
|
+
Args: {
|
|
20335
|
+
_offerte_id: string;
|
|
20336
|
+
};
|
|
20337
|
+
Returns: string;
|
|
20338
|
+
};
|
|
20339
|
+
itk_offerte_restant_mandaat: {
|
|
20340
|
+
Args: {
|
|
20341
|
+
_exclude_offerte_id?: string;
|
|
20342
|
+
_werkbon_id: string;
|
|
20343
|
+
};
|
|
20344
|
+
Returns: number;
|
|
20345
|
+
};
|
|
19843
20346
|
jwt_has_role: {
|
|
19844
20347
|
Args: {
|
|
19845
20348
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -19850,9 +20353,19 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
19850
20353
|
Args: never;
|
|
19851
20354
|
Returns: {
|
|
19852
20355
|
avatar_url: string;
|
|
20356
|
+
color: string;
|
|
19853
20357
|
display_name: string;
|
|
19854
20358
|
email: string;
|
|
20359
|
+
hours_fri: number;
|
|
20360
|
+
hours_mon: number;
|
|
20361
|
+
hours_thu: number;
|
|
20362
|
+
hours_tue: number;
|
|
20363
|
+
hours_wed: number;
|
|
19855
20364
|
id: string;
|
|
20365
|
+
is_active: boolean;
|
|
20366
|
+
leave_balance_hours: number;
|
|
20367
|
+
persnr: string;
|
|
20368
|
+
phone: string;
|
|
19856
20369
|
roles: string[];
|
|
19857
20370
|
}[];
|
|
19858
20371
|
};
|
|
@@ -20179,17 +20692,6 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
20179
20692
|
Returns: string;
|
|
20180
20693
|
};
|
|
20181
20694
|
logistics_emit_event: {
|
|
20182
|
-
Args: {
|
|
20183
|
-
p_event_type: string;
|
|
20184
|
-
p_idempotency_key?: string;
|
|
20185
|
-
p_order_ref: string;
|
|
20186
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
20187
|
-
p_shadow?: boolean;
|
|
20188
|
-
p_source_module: string;
|
|
20189
|
-
p_strategy_id?: string;
|
|
20190
|
-
};
|
|
20191
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
20192
|
-
} | {
|
|
20193
20695
|
Args: {
|
|
20194
20696
|
p_event_type: string;
|
|
20195
20697
|
p_idempotency_key?: string;
|
|
@@ -21034,6 +21536,37 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
21034
21536
|
};
|
|
21035
21537
|
Returns: undefined;
|
|
21036
21538
|
};
|
|
21539
|
+
quote_create_from_source: {
|
|
21540
|
+
Args: {
|
|
21541
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
21542
|
+
_source_id: string;
|
|
21543
|
+
_source_type: string;
|
|
21544
|
+
};
|
|
21545
|
+
Returns: string;
|
|
21546
|
+
};
|
|
21547
|
+
quote_get_billable_lines: {
|
|
21548
|
+
Args: {
|
|
21549
|
+
_quotation_id: string;
|
|
21550
|
+
};
|
|
21551
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21552
|
+
};
|
|
21553
|
+
quote_get_summary: {
|
|
21554
|
+
Args: {
|
|
21555
|
+
_quotation_id: string;
|
|
21556
|
+
};
|
|
21557
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21558
|
+
};
|
|
21559
|
+
quote_list_packages: {
|
|
21560
|
+
Args: never;
|
|
21561
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21562
|
+
};
|
|
21563
|
+
quote_list_sources: {
|
|
21564
|
+
Args: {
|
|
21565
|
+
_limit?: number;
|
|
21566
|
+
_source_type?: string;
|
|
21567
|
+
};
|
|
21568
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21569
|
+
};
|
|
21037
21570
|
recompute_all_reserved_stock: {
|
|
21038
21571
|
Args: never;
|
|
21039
21572
|
Returns: undefined;
|
|
@@ -21569,6 +22102,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
21569
22102
|
};
|
|
21570
22103
|
Returns: undefined;
|
|
21571
22104
|
};
|
|
22105
|
+
sync_sick_time_off: {
|
|
22106
|
+
Args: {
|
|
22107
|
+
_period_id: string;
|
|
22108
|
+
};
|
|
22109
|
+
Returns: number;
|
|
22110
|
+
};
|
|
21572
22111
|
trade_item_stock_duplicates: {
|
|
21573
22112
|
Args: never;
|
|
21574
22113
|
Returns: {
|
|
@@ -21642,11 +22181,31 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
|
|
|
21642
22181
|
Args: never;
|
|
21643
22182
|
Returns: string;
|
|
21644
22183
|
};
|
|
22184
|
+
wo_create_from_source: {
|
|
22185
|
+
Args: {
|
|
22186
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
22187
|
+
_source_id: string;
|
|
22188
|
+
_source_type: string;
|
|
22189
|
+
};
|
|
22190
|
+
Returns: string;
|
|
22191
|
+
};
|
|
22192
|
+
wo_get_billable_lines: {
|
|
22193
|
+
Args: {
|
|
22194
|
+
_work_order_id: string;
|
|
22195
|
+
};
|
|
22196
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22197
|
+
};
|
|
22198
|
+
wo_get_summary: {
|
|
22199
|
+
Args: {
|
|
22200
|
+
_work_order_id: string;
|
|
22201
|
+
};
|
|
22202
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22203
|
+
};
|
|
21645
22204
|
};
|
|
21646
22205
|
Enums: {
|
|
21647
22206
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21648
22207
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21649
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
22208
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21650
22209
|
doc_orientation: "portrait" | "landscape";
|
|
21651
22210
|
exact_env: "staging" | "live";
|
|
21652
22211
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -26715,6 +27274,42 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
26715
27274
|
};
|
|
26716
27275
|
Relationships: [];
|
|
26717
27276
|
};
|
|
27277
|
+
facturen: {
|
|
27278
|
+
Row: {
|
|
27279
|
+
bedrag_incl_btw: number;
|
|
27280
|
+
created_at: string;
|
|
27281
|
+
datum: string;
|
|
27282
|
+
factuurnummer: string;
|
|
27283
|
+
id: string;
|
|
27284
|
+
klantnaam: string;
|
|
27285
|
+
status: string;
|
|
27286
|
+
updated_at: string;
|
|
27287
|
+
user_id: string;
|
|
27288
|
+
};
|
|
27289
|
+
Insert: {
|
|
27290
|
+
bedrag_incl_btw: number;
|
|
27291
|
+
created_at?: string;
|
|
27292
|
+
datum?: string;
|
|
27293
|
+
factuurnummer: string;
|
|
27294
|
+
id?: string;
|
|
27295
|
+
klantnaam: string;
|
|
27296
|
+
status?: string;
|
|
27297
|
+
updated_at?: string;
|
|
27298
|
+
user_id?: string;
|
|
27299
|
+
};
|
|
27300
|
+
Update: {
|
|
27301
|
+
bedrag_incl_btw?: number;
|
|
27302
|
+
created_at?: string;
|
|
27303
|
+
datum?: string;
|
|
27304
|
+
factuurnummer?: string;
|
|
27305
|
+
id?: string;
|
|
27306
|
+
klantnaam?: string;
|
|
27307
|
+
status?: string;
|
|
27308
|
+
updated_at?: string;
|
|
27309
|
+
user_id?: string;
|
|
27310
|
+
};
|
|
27311
|
+
Relationships: [];
|
|
27312
|
+
};
|
|
26718
27313
|
floricode_connection_settings: {
|
|
26719
27314
|
Row: {
|
|
26720
27315
|
catalog_key: string | null;
|
|
@@ -29439,6 +30034,258 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
29439
30034
|
};
|
|
29440
30035
|
Relationships: [];
|
|
29441
30036
|
};
|
|
30037
|
+
itk_offerte_events: {
|
|
30038
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
30048
|
+
created_at?: string;
|
|
30049
|
+
event_type: string;
|
|
30050
|
+
id?: string;
|
|
30051
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30052
|
+
offerte_id: string;
|
|
30053
|
+
omschrijving?: string | null;
|
|
30054
|
+
user_id?: string | null;
|
|
30055
|
+
};
|
|
30056
|
+
Update: {
|
|
30057
|
+
created_at?: string;
|
|
30058
|
+
event_type?: string;
|
|
30059
|
+
id?: string;
|
|
30060
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30061
|
+
offerte_id?: string;
|
|
30062
|
+
omschrijving?: string | null;
|
|
30063
|
+
user_id?: string | null;
|
|
30064
|
+
};
|
|
30065
|
+
Relationships: [{
|
|
30066
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
30067
|
+
columns: ["offerte_id"];
|
|
30068
|
+
isOneToOne: false;
|
|
30069
|
+
referencedRelation: "itk_offertes";
|
|
30070
|
+
referencedColumns: ["id"];
|
|
30071
|
+
}];
|
|
30072
|
+
};
|
|
30073
|
+
itk_offerte_regels: {
|
|
30074
|
+
Row: {
|
|
30075
|
+
created_at: string;
|
|
30076
|
+
id: string;
|
|
30077
|
+
line_total_cents: number;
|
|
30078
|
+
offerte_id: string;
|
|
30079
|
+
omschrijving: string;
|
|
30080
|
+
package_id: string | null;
|
|
30081
|
+
quantity: number;
|
|
30082
|
+
sort_order: number;
|
|
30083
|
+
source: string;
|
|
30084
|
+
unit_price_cents: number;
|
|
30085
|
+
updated_at: string;
|
|
30086
|
+
};
|
|
30087
|
+
Insert: {
|
|
30088
|
+
created_at?: string;
|
|
30089
|
+
id?: string;
|
|
30090
|
+
line_total_cents?: number;
|
|
30091
|
+
offerte_id: string;
|
|
30092
|
+
omschrijving?: string;
|
|
30093
|
+
package_id?: string | null;
|
|
30094
|
+
quantity?: number;
|
|
30095
|
+
sort_order?: number;
|
|
30096
|
+
source?: string;
|
|
30097
|
+
unit_price_cents?: number;
|
|
30098
|
+
updated_at?: string;
|
|
30099
|
+
};
|
|
30100
|
+
Update: {
|
|
30101
|
+
created_at?: string;
|
|
30102
|
+
id?: string;
|
|
30103
|
+
line_total_cents?: number;
|
|
30104
|
+
offerte_id?: string;
|
|
30105
|
+
omschrijving?: string;
|
|
30106
|
+
package_id?: string | null;
|
|
30107
|
+
quantity?: number;
|
|
30108
|
+
sort_order?: number;
|
|
30109
|
+
source?: string;
|
|
30110
|
+
unit_price_cents?: number;
|
|
30111
|
+
updated_at?: string;
|
|
30112
|
+
};
|
|
30113
|
+
Relationships: [{
|
|
30114
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
30115
|
+
columns: ["offerte_id"];
|
|
30116
|
+
isOneToOne: false;
|
|
30117
|
+
referencedRelation: "itk_offertes";
|
|
30118
|
+
referencedColumns: ["id"];
|
|
30119
|
+
}, {
|
|
30120
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
30121
|
+
columns: ["package_id"];
|
|
30122
|
+
isOneToOne: false;
|
|
30123
|
+
referencedRelation: "werkbon_packages";
|
|
30124
|
+
referencedColumns: ["id"];
|
|
30125
|
+
}];
|
|
30126
|
+
};
|
|
30127
|
+
itk_offerte_settings: {
|
|
30128
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
30138
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30139
|
+
created_at?: string;
|
|
30140
|
+
default_geldigheid_dagen?: number;
|
|
30141
|
+
default_vat_rate?: number;
|
|
30142
|
+
id?: string;
|
|
30143
|
+
singleton?: boolean;
|
|
30144
|
+
updated_at?: string;
|
|
30145
|
+
};
|
|
30146
|
+
Update: {
|
|
30147
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30148
|
+
created_at?: string;
|
|
30149
|
+
default_geldigheid_dagen?: number;
|
|
30150
|
+
default_vat_rate?: number;
|
|
30151
|
+
id?: string;
|
|
30152
|
+
singleton?: boolean;
|
|
30153
|
+
updated_at?: string;
|
|
30154
|
+
};
|
|
30155
|
+
Relationships: [];
|
|
30156
|
+
};
|
|
30157
|
+
itk_offertes: {
|
|
30158
|
+
Row: {
|
|
30159
|
+
ai_generated: boolean;
|
|
30160
|
+
approved_at: string | null;
|
|
30161
|
+
binnen_mandaat: boolean;
|
|
30162
|
+
contact_id: string | null;
|
|
30163
|
+
converted_at: string | null;
|
|
30164
|
+
created_at: string;
|
|
30165
|
+
created_by: string | null;
|
|
30166
|
+
customer_id: string | null;
|
|
30167
|
+
follow_up_werkbon_id: string | null;
|
|
30168
|
+
id: string;
|
|
30169
|
+
jaar: number;
|
|
30170
|
+
mandaat_restant_cents: number;
|
|
30171
|
+
notities: string | null;
|
|
30172
|
+
offerte_number: string | null;
|
|
30173
|
+
omschrijving: string;
|
|
30174
|
+
rejected_at: string | null;
|
|
30175
|
+
sent_at: string | null;
|
|
30176
|
+
source_number: string | null;
|
|
30177
|
+
source_ref: string | null;
|
|
30178
|
+
source_type: string;
|
|
30179
|
+
status: string;
|
|
30180
|
+
subtotal_cents: number;
|
|
30181
|
+
total_cents: number;
|
|
30182
|
+
updated_at: string;
|
|
30183
|
+
valid_until: string | null;
|
|
30184
|
+
vat_cents: number;
|
|
30185
|
+
vat_rate: number;
|
|
30186
|
+
viewed_at: string | null;
|
|
30187
|
+
volgnummer: number | null;
|
|
30188
|
+
werkbon_id: string | null;
|
|
30189
|
+
work_location_id: string | null;
|
|
30190
|
+
};
|
|
30191
|
+
Insert: {
|
|
30192
|
+
ai_generated?: boolean;
|
|
30193
|
+
approved_at?: string | null;
|
|
30194
|
+
binnen_mandaat?: boolean;
|
|
30195
|
+
contact_id?: string | null;
|
|
30196
|
+
converted_at?: string | null;
|
|
30197
|
+
created_at?: string;
|
|
30198
|
+
created_by?: string | null;
|
|
30199
|
+
customer_id?: string | null;
|
|
30200
|
+
follow_up_werkbon_id?: string | null;
|
|
30201
|
+
id?: string;
|
|
30202
|
+
jaar?: number;
|
|
30203
|
+
mandaat_restant_cents?: number;
|
|
30204
|
+
notities?: string | null;
|
|
30205
|
+
offerte_number?: string | null;
|
|
30206
|
+
omschrijving?: string;
|
|
30207
|
+
rejected_at?: string | null;
|
|
30208
|
+
sent_at?: string | null;
|
|
30209
|
+
source_number?: string | null;
|
|
30210
|
+
source_ref?: string | null;
|
|
30211
|
+
source_type?: string;
|
|
30212
|
+
status?: string;
|
|
30213
|
+
subtotal_cents?: number;
|
|
30214
|
+
total_cents?: number;
|
|
30215
|
+
updated_at?: string;
|
|
30216
|
+
valid_until?: string | null;
|
|
30217
|
+
vat_cents?: number;
|
|
30218
|
+
vat_rate?: number;
|
|
30219
|
+
viewed_at?: string | null;
|
|
30220
|
+
volgnummer?: number | null;
|
|
30221
|
+
werkbon_id?: string | null;
|
|
30222
|
+
work_location_id?: string | null;
|
|
30223
|
+
};
|
|
30224
|
+
Update: {
|
|
30225
|
+
ai_generated?: boolean;
|
|
30226
|
+
approved_at?: string | null;
|
|
30227
|
+
binnen_mandaat?: boolean;
|
|
30228
|
+
contact_id?: string | null;
|
|
30229
|
+
converted_at?: string | null;
|
|
30230
|
+
created_at?: string;
|
|
30231
|
+
created_by?: string | null;
|
|
30232
|
+
customer_id?: string | null;
|
|
30233
|
+
follow_up_werkbon_id?: string | null;
|
|
30234
|
+
id?: string;
|
|
30235
|
+
jaar?: number;
|
|
30236
|
+
mandaat_restant_cents?: number;
|
|
30237
|
+
notities?: string | null;
|
|
30238
|
+
offerte_number?: string | null;
|
|
30239
|
+
omschrijving?: string;
|
|
30240
|
+
rejected_at?: string | null;
|
|
30241
|
+
sent_at?: string | null;
|
|
30242
|
+
source_number?: string | null;
|
|
30243
|
+
source_ref?: string | null;
|
|
30244
|
+
source_type?: string;
|
|
30245
|
+
status?: string;
|
|
30246
|
+
subtotal_cents?: number;
|
|
30247
|
+
total_cents?: number;
|
|
30248
|
+
updated_at?: string;
|
|
30249
|
+
valid_until?: string | null;
|
|
30250
|
+
vat_cents?: number;
|
|
30251
|
+
vat_rate?: number;
|
|
30252
|
+
viewed_at?: string | null;
|
|
30253
|
+
volgnummer?: number | null;
|
|
30254
|
+
werkbon_id?: string | null;
|
|
30255
|
+
work_location_id?: string | null;
|
|
30256
|
+
};
|
|
30257
|
+
Relationships: [{
|
|
30258
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
30259
|
+
columns: ["contact_id"];
|
|
30260
|
+
isOneToOne: false;
|
|
30261
|
+
referencedRelation: "itk_contact_persons";
|
|
30262
|
+
referencedColumns: ["id"];
|
|
30263
|
+
}, {
|
|
30264
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
30265
|
+
columns: ["customer_id"];
|
|
30266
|
+
isOneToOne: false;
|
|
30267
|
+
referencedRelation: "itk_customers";
|
|
30268
|
+
referencedColumns: ["id"];
|
|
30269
|
+
}, {
|
|
30270
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
30271
|
+
columns: ["follow_up_werkbon_id"];
|
|
30272
|
+
isOneToOne: false;
|
|
30273
|
+
referencedRelation: "werkbonnen";
|
|
30274
|
+
referencedColumns: ["id"];
|
|
30275
|
+
}, {
|
|
30276
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
30277
|
+
columns: ["werkbon_id"];
|
|
30278
|
+
isOneToOne: false;
|
|
30279
|
+
referencedRelation: "werkbonnen";
|
|
30280
|
+
referencedColumns: ["id"];
|
|
30281
|
+
}, {
|
|
30282
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
30283
|
+
columns: ["work_location_id"];
|
|
30284
|
+
isOneToOne: false;
|
|
30285
|
+
referencedRelation: "itk_work_locations";
|
|
30286
|
+
referencedColumns: ["id"];
|
|
30287
|
+
}];
|
|
30288
|
+
};
|
|
29442
30289
|
itk_work_locations: {
|
|
29443
30290
|
Row: {
|
|
29444
30291
|
city: string | null;
|
|
@@ -31812,6 +32659,63 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
31812
32659
|
referencedColumns: ["id"];
|
|
31813
32660
|
}];
|
|
31814
32661
|
};
|
|
32662
|
+
medewerker_details: {
|
|
32663
|
+
Row: {
|
|
32664
|
+
color: string | null;
|
|
32665
|
+
created_at: string;
|
|
32666
|
+
hours_fri: number | null;
|
|
32667
|
+
hours_mon: number | null;
|
|
32668
|
+
hours_thu: number | null;
|
|
32669
|
+
hours_tue: number | null;
|
|
32670
|
+
hours_wed: number | null;
|
|
32671
|
+
id: string;
|
|
32672
|
+
is_active: boolean;
|
|
32673
|
+
leave_balance_hours: number;
|
|
32674
|
+
persnr: string | null;
|
|
32675
|
+
phone: string | null;
|
|
32676
|
+
profile_id: string;
|
|
32677
|
+
updated_at: string;
|
|
32678
|
+
};
|
|
32679
|
+
Insert: {
|
|
32680
|
+
color?: string | null;
|
|
32681
|
+
created_at?: string;
|
|
32682
|
+
hours_fri?: number | null;
|
|
32683
|
+
hours_mon?: number | null;
|
|
32684
|
+
hours_thu?: number | null;
|
|
32685
|
+
hours_tue?: number | null;
|
|
32686
|
+
hours_wed?: number | null;
|
|
32687
|
+
id?: string;
|
|
32688
|
+
is_active?: boolean;
|
|
32689
|
+
leave_balance_hours?: number;
|
|
32690
|
+
persnr?: string | null;
|
|
32691
|
+
phone?: string | null;
|
|
32692
|
+
profile_id: string;
|
|
32693
|
+
updated_at?: string;
|
|
32694
|
+
};
|
|
32695
|
+
Update: {
|
|
32696
|
+
color?: string | null;
|
|
32697
|
+
created_at?: string;
|
|
32698
|
+
hours_fri?: number | null;
|
|
32699
|
+
hours_mon?: number | null;
|
|
32700
|
+
hours_thu?: number | null;
|
|
32701
|
+
hours_tue?: number | null;
|
|
32702
|
+
hours_wed?: number | null;
|
|
32703
|
+
id?: string;
|
|
32704
|
+
is_active?: boolean;
|
|
32705
|
+
leave_balance_hours?: number;
|
|
32706
|
+
persnr?: string | null;
|
|
32707
|
+
phone?: string | null;
|
|
32708
|
+
profile_id?: string;
|
|
32709
|
+
updated_at?: string;
|
|
32710
|
+
};
|
|
32711
|
+
Relationships: [{
|
|
32712
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
32713
|
+
columns: ["profile_id"];
|
|
32714
|
+
isOneToOne: true;
|
|
32715
|
+
referencedRelation: "profiles";
|
|
32716
|
+
referencedColumns: ["id"];
|
|
32717
|
+
}];
|
|
32718
|
+
};
|
|
31815
32719
|
module_features: {
|
|
31816
32720
|
Row: {
|
|
31817
32721
|
created_at: string;
|
|
@@ -33105,6 +34009,8 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
33105
34009
|
orders: {
|
|
33106
34010
|
Row: {
|
|
33107
34011
|
buffer_id: string | null;
|
|
34012
|
+
cancel_reason: string | null;
|
|
34013
|
+
cancelled_at: string | null;
|
|
33108
34014
|
created_at: string;
|
|
33109
34015
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
33110
34016
|
customer_id: string | null;
|
|
@@ -33127,6 +34033,8 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
33127
34033
|
};
|
|
33128
34034
|
Insert: {
|
|
33129
34035
|
buffer_id?: string | null;
|
|
34036
|
+
cancel_reason?: string | null;
|
|
34037
|
+
cancelled_at?: string | null;
|
|
33130
34038
|
created_at?: string;
|
|
33131
34039
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33132
34040
|
customer_id?: string | null;
|
|
@@ -33149,6 +34057,8 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
33149
34057
|
};
|
|
33150
34058
|
Update: {
|
|
33151
34059
|
buffer_id?: string | null;
|
|
34060
|
+
cancel_reason?: string | null;
|
|
34061
|
+
cancelled_at?: string | null;
|
|
33152
34062
|
created_at?: string;
|
|
33153
34063
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33154
34064
|
customer_id?: string | null;
|
|
@@ -35211,6 +36121,66 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
35211
36121
|
};
|
|
35212
36122
|
Relationships: [];
|
|
35213
36123
|
};
|
|
36124
|
+
profile_modules: {
|
|
36125
|
+
Row: {
|
|
36126
|
+
created_at: string;
|
|
36127
|
+
id: string;
|
|
36128
|
+
module_id: string;
|
|
36129
|
+
profile_id: string;
|
|
36130
|
+
};
|
|
36131
|
+
Insert: {
|
|
36132
|
+
created_at?: string;
|
|
36133
|
+
id?: string;
|
|
36134
|
+
module_id: string;
|
|
36135
|
+
profile_id: string;
|
|
36136
|
+
};
|
|
36137
|
+
Update: {
|
|
36138
|
+
created_at?: string;
|
|
36139
|
+
id?: string;
|
|
36140
|
+
module_id?: string;
|
|
36141
|
+
profile_id?: string;
|
|
36142
|
+
};
|
|
36143
|
+
Relationships: [{
|
|
36144
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
36145
|
+
columns: ["profile_id"];
|
|
36146
|
+
isOneToOne: false;
|
|
36147
|
+
referencedRelation: "profiles_org";
|
|
36148
|
+
referencedColumns: ["id"];
|
|
36149
|
+
}];
|
|
36150
|
+
};
|
|
36151
|
+
profile_roles: {
|
|
36152
|
+
Row: {
|
|
36153
|
+
created_at: string;
|
|
36154
|
+
id: string;
|
|
36155
|
+
profile_id: string;
|
|
36156
|
+
role_id: string;
|
|
36157
|
+
};
|
|
36158
|
+
Insert: {
|
|
36159
|
+
created_at?: string;
|
|
36160
|
+
id?: string;
|
|
36161
|
+
profile_id: string;
|
|
36162
|
+
role_id: string;
|
|
36163
|
+
};
|
|
36164
|
+
Update: {
|
|
36165
|
+
created_at?: string;
|
|
36166
|
+
id?: string;
|
|
36167
|
+
profile_id?: string;
|
|
36168
|
+
role_id?: string;
|
|
36169
|
+
};
|
|
36170
|
+
Relationships: [{
|
|
36171
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
36172
|
+
columns: ["profile_id"];
|
|
36173
|
+
isOneToOne: false;
|
|
36174
|
+
referencedRelation: "profiles_org";
|
|
36175
|
+
referencedColumns: ["id"];
|
|
36176
|
+
}, {
|
|
36177
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
36178
|
+
columns: ["role_id"];
|
|
36179
|
+
isOneToOne: false;
|
|
36180
|
+
referencedRelation: "roles";
|
|
36181
|
+
referencedColumns: ["id"];
|
|
36182
|
+
}];
|
|
36183
|
+
};
|
|
35214
36184
|
profiles: {
|
|
35215
36185
|
Row: {
|
|
35216
36186
|
address: string | null;
|
|
@@ -35256,6 +36226,39 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
35256
36226
|
referencedColumns: ["id"];
|
|
35257
36227
|
}];
|
|
35258
36228
|
};
|
|
36229
|
+
profiles_org: {
|
|
36230
|
+
Row: {
|
|
36231
|
+
created_at: string;
|
|
36232
|
+
id: string;
|
|
36233
|
+
is_default: boolean;
|
|
36234
|
+
name: string;
|
|
36235
|
+
tenant_id: string | null;
|
|
36236
|
+
updated_at: string;
|
|
36237
|
+
};
|
|
36238
|
+
Insert: {
|
|
36239
|
+
created_at?: string;
|
|
36240
|
+
id?: string;
|
|
36241
|
+
is_default?: boolean;
|
|
36242
|
+
name: string;
|
|
36243
|
+
tenant_id?: string | null;
|
|
36244
|
+
updated_at?: string;
|
|
36245
|
+
};
|
|
36246
|
+
Update: {
|
|
36247
|
+
created_at?: string;
|
|
36248
|
+
id?: string;
|
|
36249
|
+
is_default?: boolean;
|
|
36250
|
+
name?: string;
|
|
36251
|
+
tenant_id?: string | null;
|
|
36252
|
+
updated_at?: string;
|
|
36253
|
+
};
|
|
36254
|
+
Relationships: [{
|
|
36255
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
36256
|
+
columns: ["tenant_id"];
|
|
36257
|
+
isOneToOne: false;
|
|
36258
|
+
referencedRelation: "tenants";
|
|
36259
|
+
referencedColumns: ["id"];
|
|
36260
|
+
}];
|
|
36261
|
+
};
|
|
35259
36262
|
projects: {
|
|
35260
36263
|
Row: {
|
|
35261
36264
|
contact_name: string | null;
|
|
@@ -36430,6 +37433,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
36430
37433
|
type: string;
|
|
36431
37434
|
updated_at: string;
|
|
36432
37435
|
vereist_medewerker: boolean;
|
|
37436
|
+
werkplek: string | null;
|
|
36433
37437
|
};
|
|
36434
37438
|
Insert: {
|
|
36435
37439
|
actief?: boolean;
|
|
@@ -36443,6 +37447,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
36443
37447
|
type?: string;
|
|
36444
37448
|
updated_at?: string;
|
|
36445
37449
|
vereist_medewerker?: boolean;
|
|
37450
|
+
werkplek?: string | null;
|
|
36446
37451
|
};
|
|
36447
37452
|
Update: {
|
|
36448
37453
|
actief?: boolean;
|
|
@@ -36456,9 +37461,46 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
36456
37461
|
type?: string;
|
|
36457
37462
|
updated_at?: string;
|
|
36458
37463
|
vereist_medewerker?: boolean;
|
|
37464
|
+
werkplek?: string | null;
|
|
36459
37465
|
};
|
|
36460
37466
|
Relationships: [];
|
|
36461
37467
|
};
|
|
37468
|
+
sick_periods: {
|
|
37469
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
37479
|
+
created_at?: string;
|
|
37480
|
+
employee_id: string;
|
|
37481
|
+
end_date?: string | null;
|
|
37482
|
+
id?: string;
|
|
37483
|
+
notes?: string | null;
|
|
37484
|
+
start_date: string;
|
|
37485
|
+
updated_at?: string;
|
|
37486
|
+
};
|
|
37487
|
+
Update: {
|
|
37488
|
+
created_at?: string;
|
|
37489
|
+
employee_id?: string;
|
|
37490
|
+
end_date?: string | null;
|
|
37491
|
+
id?: string;
|
|
37492
|
+
notes?: string | null;
|
|
37493
|
+
start_date?: string;
|
|
37494
|
+
updated_at?: string;
|
|
37495
|
+
};
|
|
37496
|
+
Relationships: [{
|
|
37497
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
37498
|
+
columns: ["employee_id"];
|
|
37499
|
+
isOneToOne: false;
|
|
37500
|
+
referencedRelation: "profiles";
|
|
37501
|
+
referencedColumns: ["id"];
|
|
37502
|
+
}];
|
|
37503
|
+
};
|
|
36462
37504
|
sidebar_config: {
|
|
36463
37505
|
Row: {
|
|
36464
37506
|
id: string;
|
|
@@ -41143,6 +42185,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
41143
42185
|
};
|
|
41144
42186
|
Returns: string;
|
|
41145
42187
|
};
|
|
42188
|
+
employee_day_hours: {
|
|
42189
|
+
Args: {
|
|
42190
|
+
_day: string;
|
|
42191
|
+
_employee_id: string;
|
|
42192
|
+
};
|
|
42193
|
+
Returns: number;
|
|
42194
|
+
};
|
|
41146
42195
|
enqueue_cart_replan_if_unlocked: {
|
|
41147
42196
|
Args: {
|
|
41148
42197
|
p_order_id: string;
|
|
@@ -41496,6 +42545,19 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
41496
42545
|
Args: never;
|
|
41497
42546
|
Returns: boolean;
|
|
41498
42547
|
};
|
|
42548
|
+
itk_offerte_naar_werkbon: {
|
|
42549
|
+
Args: {
|
|
42550
|
+
_offerte_id: string;
|
|
42551
|
+
};
|
|
42552
|
+
Returns: string;
|
|
42553
|
+
};
|
|
42554
|
+
itk_offerte_restant_mandaat: {
|
|
42555
|
+
Args: {
|
|
42556
|
+
_exclude_offerte_id?: string;
|
|
42557
|
+
_werkbon_id: string;
|
|
42558
|
+
};
|
|
42559
|
+
Returns: number;
|
|
42560
|
+
};
|
|
41499
42561
|
jwt_has_role: {
|
|
41500
42562
|
Args: {
|
|
41501
42563
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -41506,9 +42568,19 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
41506
42568
|
Args: never;
|
|
41507
42569
|
Returns: {
|
|
41508
42570
|
avatar_url: string;
|
|
42571
|
+
color: string;
|
|
41509
42572
|
display_name: string;
|
|
41510
42573
|
email: string;
|
|
42574
|
+
hours_fri: number;
|
|
42575
|
+
hours_mon: number;
|
|
42576
|
+
hours_thu: number;
|
|
42577
|
+
hours_tue: number;
|
|
42578
|
+
hours_wed: number;
|
|
41511
42579
|
id: string;
|
|
42580
|
+
is_active: boolean;
|
|
42581
|
+
leave_balance_hours: number;
|
|
42582
|
+
persnr: string;
|
|
42583
|
+
phone: string;
|
|
41512
42584
|
roles: string[];
|
|
41513
42585
|
}[];
|
|
41514
42586
|
};
|
|
@@ -41835,17 +42907,6 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
41835
42907
|
Returns: string;
|
|
41836
42908
|
};
|
|
41837
42909
|
logistics_emit_event: {
|
|
41838
|
-
Args: {
|
|
41839
|
-
p_event_type: string;
|
|
41840
|
-
p_idempotency_key?: string;
|
|
41841
|
-
p_order_ref: string;
|
|
41842
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
41843
|
-
p_shadow?: boolean;
|
|
41844
|
-
p_source_module: string;
|
|
41845
|
-
p_strategy_id?: string;
|
|
41846
|
-
};
|
|
41847
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
41848
|
-
} | {
|
|
41849
42910
|
Args: {
|
|
41850
42911
|
p_event_type: string;
|
|
41851
42912
|
p_idempotency_key?: string;
|
|
@@ -42690,6 +43751,37 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
42690
43751
|
};
|
|
42691
43752
|
Returns: undefined;
|
|
42692
43753
|
};
|
|
43754
|
+
quote_create_from_source: {
|
|
43755
|
+
Args: {
|
|
43756
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
43757
|
+
_source_id: string;
|
|
43758
|
+
_source_type: string;
|
|
43759
|
+
};
|
|
43760
|
+
Returns: string;
|
|
43761
|
+
};
|
|
43762
|
+
quote_get_billable_lines: {
|
|
43763
|
+
Args: {
|
|
43764
|
+
_quotation_id: string;
|
|
43765
|
+
};
|
|
43766
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43767
|
+
};
|
|
43768
|
+
quote_get_summary: {
|
|
43769
|
+
Args: {
|
|
43770
|
+
_quotation_id: string;
|
|
43771
|
+
};
|
|
43772
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43773
|
+
};
|
|
43774
|
+
quote_list_packages: {
|
|
43775
|
+
Args: never;
|
|
43776
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43777
|
+
};
|
|
43778
|
+
quote_list_sources: {
|
|
43779
|
+
Args: {
|
|
43780
|
+
_limit?: number;
|
|
43781
|
+
_source_type?: string;
|
|
43782
|
+
};
|
|
43783
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43784
|
+
};
|
|
42693
43785
|
recompute_all_reserved_stock: {
|
|
42694
43786
|
Args: never;
|
|
42695
43787
|
Returns: undefined;
|
|
@@ -43225,6 +44317,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
43225
44317
|
};
|
|
43226
44318
|
Returns: undefined;
|
|
43227
44319
|
};
|
|
44320
|
+
sync_sick_time_off: {
|
|
44321
|
+
Args: {
|
|
44322
|
+
_period_id: string;
|
|
44323
|
+
};
|
|
44324
|
+
Returns: number;
|
|
44325
|
+
};
|
|
43228
44326
|
trade_item_stock_duplicates: {
|
|
43229
44327
|
Args: never;
|
|
43230
44328
|
Returns: {
|
|
@@ -43298,11 +44396,31 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
|
|
|
43298
44396
|
Args: never;
|
|
43299
44397
|
Returns: string;
|
|
43300
44398
|
};
|
|
44399
|
+
wo_create_from_source: {
|
|
44400
|
+
Args: {
|
|
44401
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
44402
|
+
_source_id: string;
|
|
44403
|
+
_source_type: string;
|
|
44404
|
+
};
|
|
44405
|
+
Returns: string;
|
|
44406
|
+
};
|
|
44407
|
+
wo_get_billable_lines: {
|
|
44408
|
+
Args: {
|
|
44409
|
+
_work_order_id: string;
|
|
44410
|
+
};
|
|
44411
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44412
|
+
};
|
|
44413
|
+
wo_get_summary: {
|
|
44414
|
+
Args: {
|
|
44415
|
+
_work_order_id: string;
|
|
44416
|
+
};
|
|
44417
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44418
|
+
};
|
|
43301
44419
|
};
|
|
43302
44420
|
Enums: {
|
|
43303
44421
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
43304
44422
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
43305
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
44423
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
43306
44424
|
doc_orientation: "portrait" | "landscape";
|
|
43307
44425
|
exact_env: "staging" | "live";
|
|
43308
44426
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -48372,6 +49490,42 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
48372
49490
|
};
|
|
48373
49491
|
Relationships: [];
|
|
48374
49492
|
};
|
|
49493
|
+
facturen: {
|
|
49494
|
+
Row: {
|
|
49495
|
+
bedrag_incl_btw: number;
|
|
49496
|
+
created_at: string;
|
|
49497
|
+
datum: string;
|
|
49498
|
+
factuurnummer: string;
|
|
49499
|
+
id: string;
|
|
49500
|
+
klantnaam: string;
|
|
49501
|
+
status: string;
|
|
49502
|
+
updated_at: string;
|
|
49503
|
+
user_id: string;
|
|
49504
|
+
};
|
|
49505
|
+
Insert: {
|
|
49506
|
+
bedrag_incl_btw: number;
|
|
49507
|
+
created_at?: string;
|
|
49508
|
+
datum?: string;
|
|
49509
|
+
factuurnummer: string;
|
|
49510
|
+
id?: string;
|
|
49511
|
+
klantnaam: string;
|
|
49512
|
+
status?: string;
|
|
49513
|
+
updated_at?: string;
|
|
49514
|
+
user_id?: string;
|
|
49515
|
+
};
|
|
49516
|
+
Update: {
|
|
49517
|
+
bedrag_incl_btw?: number;
|
|
49518
|
+
created_at?: string;
|
|
49519
|
+
datum?: string;
|
|
49520
|
+
factuurnummer?: string;
|
|
49521
|
+
id?: string;
|
|
49522
|
+
klantnaam?: string;
|
|
49523
|
+
status?: string;
|
|
49524
|
+
updated_at?: string;
|
|
49525
|
+
user_id?: string;
|
|
49526
|
+
};
|
|
49527
|
+
Relationships: [];
|
|
49528
|
+
};
|
|
48375
49529
|
floricode_connection_settings: {
|
|
48376
49530
|
Row: {
|
|
48377
49531
|
catalog_key: string | null;
|
|
@@ -51096,6 +52250,258 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
51096
52250
|
};
|
|
51097
52251
|
Relationships: [];
|
|
51098
52252
|
};
|
|
52253
|
+
itk_offerte_events: {
|
|
52254
|
+
Row: {
|
|
52255
|
+
created_at: string;
|
|
52256
|
+
event_type: string;
|
|
52257
|
+
id: string;
|
|
52258
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
52259
|
+
offerte_id: string;
|
|
52260
|
+
omschrijving: string | null;
|
|
52261
|
+
user_id: string | null;
|
|
52262
|
+
};
|
|
52263
|
+
Insert: {
|
|
52264
|
+
created_at?: string;
|
|
52265
|
+
event_type: string;
|
|
52266
|
+
id?: string;
|
|
52267
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52268
|
+
offerte_id: string;
|
|
52269
|
+
omschrijving?: string | null;
|
|
52270
|
+
user_id?: string | null;
|
|
52271
|
+
};
|
|
52272
|
+
Update: {
|
|
52273
|
+
created_at?: string;
|
|
52274
|
+
event_type?: string;
|
|
52275
|
+
id?: string;
|
|
52276
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52277
|
+
offerte_id?: string;
|
|
52278
|
+
omschrijving?: string | null;
|
|
52279
|
+
user_id?: string | null;
|
|
52280
|
+
};
|
|
52281
|
+
Relationships: [{
|
|
52282
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
52283
|
+
columns: ["offerte_id"];
|
|
52284
|
+
isOneToOne: false;
|
|
52285
|
+
referencedRelation: "itk_offertes";
|
|
52286
|
+
referencedColumns: ["id"];
|
|
52287
|
+
}];
|
|
52288
|
+
};
|
|
52289
|
+
itk_offerte_regels: {
|
|
52290
|
+
Row: {
|
|
52291
|
+
created_at: string;
|
|
52292
|
+
id: string;
|
|
52293
|
+
line_total_cents: number;
|
|
52294
|
+
offerte_id: string;
|
|
52295
|
+
omschrijving: string;
|
|
52296
|
+
package_id: string | null;
|
|
52297
|
+
quantity: number;
|
|
52298
|
+
sort_order: number;
|
|
52299
|
+
source: string;
|
|
52300
|
+
unit_price_cents: number;
|
|
52301
|
+
updated_at: string;
|
|
52302
|
+
};
|
|
52303
|
+
Insert: {
|
|
52304
|
+
created_at?: string;
|
|
52305
|
+
id?: string;
|
|
52306
|
+
line_total_cents?: number;
|
|
52307
|
+
offerte_id: string;
|
|
52308
|
+
omschrijving?: string;
|
|
52309
|
+
package_id?: string | null;
|
|
52310
|
+
quantity?: number;
|
|
52311
|
+
sort_order?: number;
|
|
52312
|
+
source?: string;
|
|
52313
|
+
unit_price_cents?: number;
|
|
52314
|
+
updated_at?: string;
|
|
52315
|
+
};
|
|
52316
|
+
Update: {
|
|
52317
|
+
created_at?: string;
|
|
52318
|
+
id?: string;
|
|
52319
|
+
line_total_cents?: number;
|
|
52320
|
+
offerte_id?: string;
|
|
52321
|
+
omschrijving?: string;
|
|
52322
|
+
package_id?: string | null;
|
|
52323
|
+
quantity?: number;
|
|
52324
|
+
sort_order?: number;
|
|
52325
|
+
source?: string;
|
|
52326
|
+
unit_price_cents?: number;
|
|
52327
|
+
updated_at?: string;
|
|
52328
|
+
};
|
|
52329
|
+
Relationships: [{
|
|
52330
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
52331
|
+
columns: ["offerte_id"];
|
|
52332
|
+
isOneToOne: false;
|
|
52333
|
+
referencedRelation: "itk_offertes";
|
|
52334
|
+
referencedColumns: ["id"];
|
|
52335
|
+
}, {
|
|
52336
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
52337
|
+
columns: ["package_id"];
|
|
52338
|
+
isOneToOne: false;
|
|
52339
|
+
referencedRelation: "werkbon_packages";
|
|
52340
|
+
referencedColumns: ["id"];
|
|
52341
|
+
}];
|
|
52342
|
+
};
|
|
52343
|
+
itk_offerte_settings: {
|
|
52344
|
+
Row: {
|
|
52345
|
+
auto_convert_binnen_mandaat: boolean;
|
|
52346
|
+
created_at: string;
|
|
52347
|
+
default_geldigheid_dagen: number;
|
|
52348
|
+
default_vat_rate: number;
|
|
52349
|
+
id: string;
|
|
52350
|
+
singleton: boolean;
|
|
52351
|
+
updated_at: string;
|
|
52352
|
+
};
|
|
52353
|
+
Insert: {
|
|
52354
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52355
|
+
created_at?: string;
|
|
52356
|
+
default_geldigheid_dagen?: number;
|
|
52357
|
+
default_vat_rate?: number;
|
|
52358
|
+
id?: string;
|
|
52359
|
+
singleton?: boolean;
|
|
52360
|
+
updated_at?: string;
|
|
52361
|
+
};
|
|
52362
|
+
Update: {
|
|
52363
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52364
|
+
created_at?: string;
|
|
52365
|
+
default_geldigheid_dagen?: number;
|
|
52366
|
+
default_vat_rate?: number;
|
|
52367
|
+
id?: string;
|
|
52368
|
+
singleton?: boolean;
|
|
52369
|
+
updated_at?: string;
|
|
52370
|
+
};
|
|
52371
|
+
Relationships: [];
|
|
52372
|
+
};
|
|
52373
|
+
itk_offertes: {
|
|
52374
|
+
Row: {
|
|
52375
|
+
ai_generated: boolean;
|
|
52376
|
+
approved_at: string | null;
|
|
52377
|
+
binnen_mandaat: boolean;
|
|
52378
|
+
contact_id: string | null;
|
|
52379
|
+
converted_at: string | null;
|
|
52380
|
+
created_at: string;
|
|
52381
|
+
created_by: string | null;
|
|
52382
|
+
customer_id: string | null;
|
|
52383
|
+
follow_up_werkbon_id: string | null;
|
|
52384
|
+
id: string;
|
|
52385
|
+
jaar: number;
|
|
52386
|
+
mandaat_restant_cents: number;
|
|
52387
|
+
notities: string | null;
|
|
52388
|
+
offerte_number: string | null;
|
|
52389
|
+
omschrijving: string;
|
|
52390
|
+
rejected_at: string | null;
|
|
52391
|
+
sent_at: string | null;
|
|
52392
|
+
source_number: string | null;
|
|
52393
|
+
source_ref: string | null;
|
|
52394
|
+
source_type: string;
|
|
52395
|
+
status: string;
|
|
52396
|
+
subtotal_cents: number;
|
|
52397
|
+
total_cents: number;
|
|
52398
|
+
updated_at: string;
|
|
52399
|
+
valid_until: string | null;
|
|
52400
|
+
vat_cents: number;
|
|
52401
|
+
vat_rate: number;
|
|
52402
|
+
viewed_at: string | null;
|
|
52403
|
+
volgnummer: number | null;
|
|
52404
|
+
werkbon_id: string | null;
|
|
52405
|
+
work_location_id: string | null;
|
|
52406
|
+
};
|
|
52407
|
+
Insert: {
|
|
52408
|
+
ai_generated?: boolean;
|
|
52409
|
+
approved_at?: string | null;
|
|
52410
|
+
binnen_mandaat?: boolean;
|
|
52411
|
+
contact_id?: string | null;
|
|
52412
|
+
converted_at?: string | null;
|
|
52413
|
+
created_at?: string;
|
|
52414
|
+
created_by?: string | null;
|
|
52415
|
+
customer_id?: string | null;
|
|
52416
|
+
follow_up_werkbon_id?: string | null;
|
|
52417
|
+
id?: string;
|
|
52418
|
+
jaar?: number;
|
|
52419
|
+
mandaat_restant_cents?: number;
|
|
52420
|
+
notities?: string | null;
|
|
52421
|
+
offerte_number?: string | null;
|
|
52422
|
+
omschrijving?: string;
|
|
52423
|
+
rejected_at?: string | null;
|
|
52424
|
+
sent_at?: string | null;
|
|
52425
|
+
source_number?: string | null;
|
|
52426
|
+
source_ref?: string | null;
|
|
52427
|
+
source_type?: string;
|
|
52428
|
+
status?: string;
|
|
52429
|
+
subtotal_cents?: number;
|
|
52430
|
+
total_cents?: number;
|
|
52431
|
+
updated_at?: string;
|
|
52432
|
+
valid_until?: string | null;
|
|
52433
|
+
vat_cents?: number;
|
|
52434
|
+
vat_rate?: number;
|
|
52435
|
+
viewed_at?: string | null;
|
|
52436
|
+
volgnummer?: number | null;
|
|
52437
|
+
werkbon_id?: string | null;
|
|
52438
|
+
work_location_id?: string | null;
|
|
52439
|
+
};
|
|
52440
|
+
Update: {
|
|
52441
|
+
ai_generated?: boolean;
|
|
52442
|
+
approved_at?: string | null;
|
|
52443
|
+
binnen_mandaat?: boolean;
|
|
52444
|
+
contact_id?: string | null;
|
|
52445
|
+
converted_at?: string | null;
|
|
52446
|
+
created_at?: string;
|
|
52447
|
+
created_by?: string | null;
|
|
52448
|
+
customer_id?: string | null;
|
|
52449
|
+
follow_up_werkbon_id?: string | null;
|
|
52450
|
+
id?: string;
|
|
52451
|
+
jaar?: number;
|
|
52452
|
+
mandaat_restant_cents?: number;
|
|
52453
|
+
notities?: string | null;
|
|
52454
|
+
offerte_number?: string | null;
|
|
52455
|
+
omschrijving?: string;
|
|
52456
|
+
rejected_at?: string | null;
|
|
52457
|
+
sent_at?: string | null;
|
|
52458
|
+
source_number?: string | null;
|
|
52459
|
+
source_ref?: string | null;
|
|
52460
|
+
source_type?: string;
|
|
52461
|
+
status?: string;
|
|
52462
|
+
subtotal_cents?: number;
|
|
52463
|
+
total_cents?: number;
|
|
52464
|
+
updated_at?: string;
|
|
52465
|
+
valid_until?: string | null;
|
|
52466
|
+
vat_cents?: number;
|
|
52467
|
+
vat_rate?: number;
|
|
52468
|
+
viewed_at?: string | null;
|
|
52469
|
+
volgnummer?: number | null;
|
|
52470
|
+
werkbon_id?: string | null;
|
|
52471
|
+
work_location_id?: string | null;
|
|
52472
|
+
};
|
|
52473
|
+
Relationships: [{
|
|
52474
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
52475
|
+
columns: ["contact_id"];
|
|
52476
|
+
isOneToOne: false;
|
|
52477
|
+
referencedRelation: "itk_contact_persons";
|
|
52478
|
+
referencedColumns: ["id"];
|
|
52479
|
+
}, {
|
|
52480
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
52481
|
+
columns: ["customer_id"];
|
|
52482
|
+
isOneToOne: false;
|
|
52483
|
+
referencedRelation: "itk_customers";
|
|
52484
|
+
referencedColumns: ["id"];
|
|
52485
|
+
}, {
|
|
52486
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
52487
|
+
columns: ["follow_up_werkbon_id"];
|
|
52488
|
+
isOneToOne: false;
|
|
52489
|
+
referencedRelation: "werkbonnen";
|
|
52490
|
+
referencedColumns: ["id"];
|
|
52491
|
+
}, {
|
|
52492
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
52493
|
+
columns: ["werkbon_id"];
|
|
52494
|
+
isOneToOne: false;
|
|
52495
|
+
referencedRelation: "werkbonnen";
|
|
52496
|
+
referencedColumns: ["id"];
|
|
52497
|
+
}, {
|
|
52498
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
52499
|
+
columns: ["work_location_id"];
|
|
52500
|
+
isOneToOne: false;
|
|
52501
|
+
referencedRelation: "itk_work_locations";
|
|
52502
|
+
referencedColumns: ["id"];
|
|
52503
|
+
}];
|
|
52504
|
+
};
|
|
51099
52505
|
itk_work_locations: {
|
|
51100
52506
|
Row: {
|
|
51101
52507
|
city: string | null;
|
|
@@ -53469,6 +54875,63 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
53469
54875
|
referencedColumns: ["id"];
|
|
53470
54876
|
}];
|
|
53471
54877
|
};
|
|
54878
|
+
medewerker_details: {
|
|
54879
|
+
Row: {
|
|
54880
|
+
color: string | null;
|
|
54881
|
+
created_at: string;
|
|
54882
|
+
hours_fri: number | null;
|
|
54883
|
+
hours_mon: number | null;
|
|
54884
|
+
hours_thu: number | null;
|
|
54885
|
+
hours_tue: number | null;
|
|
54886
|
+
hours_wed: number | null;
|
|
54887
|
+
id: string;
|
|
54888
|
+
is_active: boolean;
|
|
54889
|
+
leave_balance_hours: number;
|
|
54890
|
+
persnr: string | null;
|
|
54891
|
+
phone: string | null;
|
|
54892
|
+
profile_id: string;
|
|
54893
|
+
updated_at: string;
|
|
54894
|
+
};
|
|
54895
|
+
Insert: {
|
|
54896
|
+
color?: string | null;
|
|
54897
|
+
created_at?: string;
|
|
54898
|
+
hours_fri?: number | null;
|
|
54899
|
+
hours_mon?: number | null;
|
|
54900
|
+
hours_thu?: number | null;
|
|
54901
|
+
hours_tue?: number | null;
|
|
54902
|
+
hours_wed?: number | null;
|
|
54903
|
+
id?: string;
|
|
54904
|
+
is_active?: boolean;
|
|
54905
|
+
leave_balance_hours?: number;
|
|
54906
|
+
persnr?: string | null;
|
|
54907
|
+
phone?: string | null;
|
|
54908
|
+
profile_id: string;
|
|
54909
|
+
updated_at?: string;
|
|
54910
|
+
};
|
|
54911
|
+
Update: {
|
|
54912
|
+
color?: string | null;
|
|
54913
|
+
created_at?: string;
|
|
54914
|
+
hours_fri?: number | null;
|
|
54915
|
+
hours_mon?: number | null;
|
|
54916
|
+
hours_thu?: number | null;
|
|
54917
|
+
hours_tue?: number | null;
|
|
54918
|
+
hours_wed?: number | null;
|
|
54919
|
+
id?: string;
|
|
54920
|
+
is_active?: boolean;
|
|
54921
|
+
leave_balance_hours?: number;
|
|
54922
|
+
persnr?: string | null;
|
|
54923
|
+
phone?: string | null;
|
|
54924
|
+
profile_id?: string;
|
|
54925
|
+
updated_at?: string;
|
|
54926
|
+
};
|
|
54927
|
+
Relationships: [{
|
|
54928
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
54929
|
+
columns: ["profile_id"];
|
|
54930
|
+
isOneToOne: true;
|
|
54931
|
+
referencedRelation: "profiles";
|
|
54932
|
+
referencedColumns: ["id"];
|
|
54933
|
+
}];
|
|
54934
|
+
};
|
|
53472
54935
|
module_features: {
|
|
53473
54936
|
Row: {
|
|
53474
54937
|
created_at: string;
|
|
@@ -54762,6 +56225,8 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
54762
56225
|
orders: {
|
|
54763
56226
|
Row: {
|
|
54764
56227
|
buffer_id: string | null;
|
|
56228
|
+
cancel_reason: string | null;
|
|
56229
|
+
cancelled_at: string | null;
|
|
54765
56230
|
created_at: string;
|
|
54766
56231
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
54767
56232
|
customer_id: string | null;
|
|
@@ -54784,6 +56249,8 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
54784
56249
|
};
|
|
54785
56250
|
Insert: {
|
|
54786
56251
|
buffer_id?: string | null;
|
|
56252
|
+
cancel_reason?: string | null;
|
|
56253
|
+
cancelled_at?: string | null;
|
|
54787
56254
|
created_at?: string;
|
|
54788
56255
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54789
56256
|
customer_id?: string | null;
|
|
@@ -54806,6 +56273,8 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
54806
56273
|
};
|
|
54807
56274
|
Update: {
|
|
54808
56275
|
buffer_id?: string | null;
|
|
56276
|
+
cancel_reason?: string | null;
|
|
56277
|
+
cancelled_at?: string | null;
|
|
54809
56278
|
created_at?: string;
|
|
54810
56279
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54811
56280
|
customer_id?: string | null;
|
|
@@ -56868,6 +58337,66 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
56868
58337
|
};
|
|
56869
58338
|
Relationships: [];
|
|
56870
58339
|
};
|
|
58340
|
+
profile_modules: {
|
|
58341
|
+
Row: {
|
|
58342
|
+
created_at: string;
|
|
58343
|
+
id: string;
|
|
58344
|
+
module_id: string;
|
|
58345
|
+
profile_id: string;
|
|
58346
|
+
};
|
|
58347
|
+
Insert: {
|
|
58348
|
+
created_at?: string;
|
|
58349
|
+
id?: string;
|
|
58350
|
+
module_id: string;
|
|
58351
|
+
profile_id: string;
|
|
58352
|
+
};
|
|
58353
|
+
Update: {
|
|
58354
|
+
created_at?: string;
|
|
58355
|
+
id?: string;
|
|
58356
|
+
module_id?: string;
|
|
58357
|
+
profile_id?: string;
|
|
58358
|
+
};
|
|
58359
|
+
Relationships: [{
|
|
58360
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
58361
|
+
columns: ["profile_id"];
|
|
58362
|
+
isOneToOne: false;
|
|
58363
|
+
referencedRelation: "profiles_org";
|
|
58364
|
+
referencedColumns: ["id"];
|
|
58365
|
+
}];
|
|
58366
|
+
};
|
|
58367
|
+
profile_roles: {
|
|
58368
|
+
Row: {
|
|
58369
|
+
created_at: string;
|
|
58370
|
+
id: string;
|
|
58371
|
+
profile_id: string;
|
|
58372
|
+
role_id: string;
|
|
58373
|
+
};
|
|
58374
|
+
Insert: {
|
|
58375
|
+
created_at?: string;
|
|
58376
|
+
id?: string;
|
|
58377
|
+
profile_id: string;
|
|
58378
|
+
role_id: string;
|
|
58379
|
+
};
|
|
58380
|
+
Update: {
|
|
58381
|
+
created_at?: string;
|
|
58382
|
+
id?: string;
|
|
58383
|
+
profile_id?: string;
|
|
58384
|
+
role_id?: string;
|
|
58385
|
+
};
|
|
58386
|
+
Relationships: [{
|
|
58387
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
58388
|
+
columns: ["profile_id"];
|
|
58389
|
+
isOneToOne: false;
|
|
58390
|
+
referencedRelation: "profiles_org";
|
|
58391
|
+
referencedColumns: ["id"];
|
|
58392
|
+
}, {
|
|
58393
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
58394
|
+
columns: ["role_id"];
|
|
58395
|
+
isOneToOne: false;
|
|
58396
|
+
referencedRelation: "roles";
|
|
58397
|
+
referencedColumns: ["id"];
|
|
58398
|
+
}];
|
|
58399
|
+
};
|
|
56871
58400
|
profiles: {
|
|
56872
58401
|
Row: {
|
|
56873
58402
|
address: string | null;
|
|
@@ -56913,6 +58442,39 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
56913
58442
|
referencedColumns: ["id"];
|
|
56914
58443
|
}];
|
|
56915
58444
|
};
|
|
58445
|
+
profiles_org: {
|
|
58446
|
+
Row: {
|
|
58447
|
+
created_at: string;
|
|
58448
|
+
id: string;
|
|
58449
|
+
is_default: boolean;
|
|
58450
|
+
name: string;
|
|
58451
|
+
tenant_id: string | null;
|
|
58452
|
+
updated_at: string;
|
|
58453
|
+
};
|
|
58454
|
+
Insert: {
|
|
58455
|
+
created_at?: string;
|
|
58456
|
+
id?: string;
|
|
58457
|
+
is_default?: boolean;
|
|
58458
|
+
name: string;
|
|
58459
|
+
tenant_id?: string | null;
|
|
58460
|
+
updated_at?: string;
|
|
58461
|
+
};
|
|
58462
|
+
Update: {
|
|
58463
|
+
created_at?: string;
|
|
58464
|
+
id?: string;
|
|
58465
|
+
is_default?: boolean;
|
|
58466
|
+
name?: string;
|
|
58467
|
+
tenant_id?: string | null;
|
|
58468
|
+
updated_at?: string;
|
|
58469
|
+
};
|
|
58470
|
+
Relationships: [{
|
|
58471
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
58472
|
+
columns: ["tenant_id"];
|
|
58473
|
+
isOneToOne: false;
|
|
58474
|
+
referencedRelation: "tenants";
|
|
58475
|
+
referencedColumns: ["id"];
|
|
58476
|
+
}];
|
|
58477
|
+
};
|
|
56916
58478
|
projects: {
|
|
56917
58479
|
Row: {
|
|
56918
58480
|
contact_name: string | null;
|
|
@@ -58087,6 +59649,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
58087
59649
|
type: string;
|
|
58088
59650
|
updated_at: string;
|
|
58089
59651
|
vereist_medewerker: boolean;
|
|
59652
|
+
werkplek: string | null;
|
|
58090
59653
|
};
|
|
58091
59654
|
Insert: {
|
|
58092
59655
|
actief?: boolean;
|
|
@@ -58100,6 +59663,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
58100
59663
|
type?: string;
|
|
58101
59664
|
updated_at?: string;
|
|
58102
59665
|
vereist_medewerker?: boolean;
|
|
59666
|
+
werkplek?: string | null;
|
|
58103
59667
|
};
|
|
58104
59668
|
Update: {
|
|
58105
59669
|
actief?: boolean;
|
|
@@ -58113,9 +59677,46 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
58113
59677
|
type?: string;
|
|
58114
59678
|
updated_at?: string;
|
|
58115
59679
|
vereist_medewerker?: boolean;
|
|
59680
|
+
werkplek?: string | null;
|
|
58116
59681
|
};
|
|
58117
59682
|
Relationships: [];
|
|
58118
59683
|
};
|
|
59684
|
+
sick_periods: {
|
|
59685
|
+
Row: {
|
|
59686
|
+
created_at: string;
|
|
59687
|
+
employee_id: string;
|
|
59688
|
+
end_date: string | null;
|
|
59689
|
+
id: string;
|
|
59690
|
+
notes: string | null;
|
|
59691
|
+
start_date: string;
|
|
59692
|
+
updated_at: string;
|
|
59693
|
+
};
|
|
59694
|
+
Insert: {
|
|
59695
|
+
created_at?: string;
|
|
59696
|
+
employee_id: string;
|
|
59697
|
+
end_date?: string | null;
|
|
59698
|
+
id?: string;
|
|
59699
|
+
notes?: string | null;
|
|
59700
|
+
start_date: string;
|
|
59701
|
+
updated_at?: string;
|
|
59702
|
+
};
|
|
59703
|
+
Update: {
|
|
59704
|
+
created_at?: string;
|
|
59705
|
+
employee_id?: string;
|
|
59706
|
+
end_date?: string | null;
|
|
59707
|
+
id?: string;
|
|
59708
|
+
notes?: string | null;
|
|
59709
|
+
start_date?: string;
|
|
59710
|
+
updated_at?: string;
|
|
59711
|
+
};
|
|
59712
|
+
Relationships: [{
|
|
59713
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
59714
|
+
columns: ["employee_id"];
|
|
59715
|
+
isOneToOne: false;
|
|
59716
|
+
referencedRelation: "profiles";
|
|
59717
|
+
referencedColumns: ["id"];
|
|
59718
|
+
}];
|
|
59719
|
+
};
|
|
58119
59720
|
sidebar_config: {
|
|
58120
59721
|
Row: {
|
|
58121
59722
|
id: string;
|
|
@@ -62800,6 +64401,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
62800
64401
|
};
|
|
62801
64402
|
Returns: string;
|
|
62802
64403
|
};
|
|
64404
|
+
employee_day_hours: {
|
|
64405
|
+
Args: {
|
|
64406
|
+
_day: string;
|
|
64407
|
+
_employee_id: string;
|
|
64408
|
+
};
|
|
64409
|
+
Returns: number;
|
|
64410
|
+
};
|
|
62803
64411
|
enqueue_cart_replan_if_unlocked: {
|
|
62804
64412
|
Args: {
|
|
62805
64413
|
p_order_id: string;
|
|
@@ -63153,6 +64761,19 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
63153
64761
|
Args: never;
|
|
63154
64762
|
Returns: boolean;
|
|
63155
64763
|
};
|
|
64764
|
+
itk_offerte_naar_werkbon: {
|
|
64765
|
+
Args: {
|
|
64766
|
+
_offerte_id: string;
|
|
64767
|
+
};
|
|
64768
|
+
Returns: string;
|
|
64769
|
+
};
|
|
64770
|
+
itk_offerte_restant_mandaat: {
|
|
64771
|
+
Args: {
|
|
64772
|
+
_exclude_offerte_id?: string;
|
|
64773
|
+
_werkbon_id: string;
|
|
64774
|
+
};
|
|
64775
|
+
Returns: number;
|
|
64776
|
+
};
|
|
63156
64777
|
jwt_has_role: {
|
|
63157
64778
|
Args: {
|
|
63158
64779
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -63163,9 +64784,19 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
63163
64784
|
Args: never;
|
|
63164
64785
|
Returns: {
|
|
63165
64786
|
avatar_url: string;
|
|
64787
|
+
color: string;
|
|
63166
64788
|
display_name: string;
|
|
63167
64789
|
email: string;
|
|
64790
|
+
hours_fri: number;
|
|
64791
|
+
hours_mon: number;
|
|
64792
|
+
hours_thu: number;
|
|
64793
|
+
hours_tue: number;
|
|
64794
|
+
hours_wed: number;
|
|
63168
64795
|
id: string;
|
|
64796
|
+
is_active: boolean;
|
|
64797
|
+
leave_balance_hours: number;
|
|
64798
|
+
persnr: string;
|
|
64799
|
+
phone: string;
|
|
63169
64800
|
roles: string[];
|
|
63170
64801
|
}[];
|
|
63171
64802
|
};
|
|
@@ -63492,17 +65123,6 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
63492
65123
|
Returns: string;
|
|
63493
65124
|
};
|
|
63494
65125
|
logistics_emit_event: {
|
|
63495
|
-
Args: {
|
|
63496
|
-
p_event_type: string;
|
|
63497
|
-
p_idempotency_key?: string;
|
|
63498
|
-
p_order_ref: string;
|
|
63499
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
63500
|
-
p_shadow?: boolean;
|
|
63501
|
-
p_source_module: string;
|
|
63502
|
-
p_strategy_id?: string;
|
|
63503
|
-
};
|
|
63504
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
63505
|
-
} | {
|
|
63506
65126
|
Args: {
|
|
63507
65127
|
p_event_type: string;
|
|
63508
65128
|
p_idempotency_key?: string;
|
|
@@ -64347,6 +65967,37 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
64347
65967
|
};
|
|
64348
65968
|
Returns: undefined;
|
|
64349
65969
|
};
|
|
65970
|
+
quote_create_from_source: {
|
|
65971
|
+
Args: {
|
|
65972
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
65973
|
+
_source_id: string;
|
|
65974
|
+
_source_type: string;
|
|
65975
|
+
};
|
|
65976
|
+
Returns: string;
|
|
65977
|
+
};
|
|
65978
|
+
quote_get_billable_lines: {
|
|
65979
|
+
Args: {
|
|
65980
|
+
_quotation_id: string;
|
|
65981
|
+
};
|
|
65982
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65983
|
+
};
|
|
65984
|
+
quote_get_summary: {
|
|
65985
|
+
Args: {
|
|
65986
|
+
_quotation_id: string;
|
|
65987
|
+
};
|
|
65988
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65989
|
+
};
|
|
65990
|
+
quote_list_packages: {
|
|
65991
|
+
Args: never;
|
|
65992
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65993
|
+
};
|
|
65994
|
+
quote_list_sources: {
|
|
65995
|
+
Args: {
|
|
65996
|
+
_limit?: number;
|
|
65997
|
+
_source_type?: string;
|
|
65998
|
+
};
|
|
65999
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66000
|
+
};
|
|
64350
66001
|
recompute_all_reserved_stock: {
|
|
64351
66002
|
Args: never;
|
|
64352
66003
|
Returns: undefined;
|
|
@@ -64882,6 +66533,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
64882
66533
|
};
|
|
64883
66534
|
Returns: undefined;
|
|
64884
66535
|
};
|
|
66536
|
+
sync_sick_time_off: {
|
|
66537
|
+
Args: {
|
|
66538
|
+
_period_id: string;
|
|
66539
|
+
};
|
|
66540
|
+
Returns: number;
|
|
66541
|
+
};
|
|
64885
66542
|
trade_item_stock_duplicates: {
|
|
64886
66543
|
Args: never;
|
|
64887
66544
|
Returns: {
|
|
@@ -64955,11 +66612,31 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
|
|
|
64955
66612
|
Args: never;
|
|
64956
66613
|
Returns: string;
|
|
64957
66614
|
};
|
|
66615
|
+
wo_create_from_source: {
|
|
66616
|
+
Args: {
|
|
66617
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
66618
|
+
_source_id: string;
|
|
66619
|
+
_source_type: string;
|
|
66620
|
+
};
|
|
66621
|
+
Returns: string;
|
|
66622
|
+
};
|
|
66623
|
+
wo_get_billable_lines: {
|
|
66624
|
+
Args: {
|
|
66625
|
+
_work_order_id: string;
|
|
66626
|
+
};
|
|
66627
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66628
|
+
};
|
|
66629
|
+
wo_get_summary: {
|
|
66630
|
+
Args: {
|
|
66631
|
+
_work_order_id: string;
|
|
66632
|
+
};
|
|
66633
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66634
|
+
};
|
|
64958
66635
|
};
|
|
64959
66636
|
Enums: {
|
|
64960
66637
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
64961
66638
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
64962
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
66639
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
64963
66640
|
doc_orientation: "portrait" | "landscape";
|
|
64964
66641
|
exact_env: "staging" | "live";
|
|
64965
66642
|
exact_push_status: "pending" | "sent" | "error";
|