@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
|
@@ -5044,6 +5044,42 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
5044
5044
|
};
|
|
5045
5045
|
Relationships: [];
|
|
5046
5046
|
};
|
|
5047
|
+
facturen: {
|
|
5048
|
+
Row: {
|
|
5049
|
+
bedrag_incl_btw: number;
|
|
5050
|
+
created_at: string;
|
|
5051
|
+
datum: string;
|
|
5052
|
+
factuurnummer: string;
|
|
5053
|
+
id: string;
|
|
5054
|
+
klantnaam: string;
|
|
5055
|
+
status: string;
|
|
5056
|
+
updated_at: string;
|
|
5057
|
+
user_id: string;
|
|
5058
|
+
};
|
|
5059
|
+
Insert: {
|
|
5060
|
+
bedrag_incl_btw: number;
|
|
5061
|
+
created_at?: string;
|
|
5062
|
+
datum?: string;
|
|
5063
|
+
factuurnummer: string;
|
|
5064
|
+
id?: string;
|
|
5065
|
+
klantnaam: string;
|
|
5066
|
+
status?: string;
|
|
5067
|
+
updated_at?: string;
|
|
5068
|
+
user_id?: string;
|
|
5069
|
+
};
|
|
5070
|
+
Update: {
|
|
5071
|
+
bedrag_incl_btw?: number;
|
|
5072
|
+
created_at?: string;
|
|
5073
|
+
datum?: string;
|
|
5074
|
+
factuurnummer?: string;
|
|
5075
|
+
id?: string;
|
|
5076
|
+
klantnaam?: string;
|
|
5077
|
+
status?: string;
|
|
5078
|
+
updated_at?: string;
|
|
5079
|
+
user_id?: string;
|
|
5080
|
+
};
|
|
5081
|
+
Relationships: [];
|
|
5082
|
+
};
|
|
5047
5083
|
floricode_connection_settings: {
|
|
5048
5084
|
Row: {
|
|
5049
5085
|
catalog_key: string | null;
|
|
@@ -7768,6 +7804,258 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
7768
7804
|
};
|
|
7769
7805
|
Relationships: [];
|
|
7770
7806
|
};
|
|
7807
|
+
itk_offerte_events: {
|
|
7808
|
+
Row: {
|
|
7809
|
+
created_at: string;
|
|
7810
|
+
event_type: string;
|
|
7811
|
+
id: string;
|
|
7812
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
7813
|
+
offerte_id: string;
|
|
7814
|
+
omschrijving: string | null;
|
|
7815
|
+
user_id: string | null;
|
|
7816
|
+
};
|
|
7817
|
+
Insert: {
|
|
7818
|
+
created_at?: string;
|
|
7819
|
+
event_type: string;
|
|
7820
|
+
id?: string;
|
|
7821
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7822
|
+
offerte_id: string;
|
|
7823
|
+
omschrijving?: string | null;
|
|
7824
|
+
user_id?: string | null;
|
|
7825
|
+
};
|
|
7826
|
+
Update: {
|
|
7827
|
+
created_at?: string;
|
|
7828
|
+
event_type?: string;
|
|
7829
|
+
id?: string;
|
|
7830
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7831
|
+
offerte_id?: string;
|
|
7832
|
+
omschrijving?: string | null;
|
|
7833
|
+
user_id?: string | null;
|
|
7834
|
+
};
|
|
7835
|
+
Relationships: [{
|
|
7836
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
7837
|
+
columns: ["offerte_id"];
|
|
7838
|
+
isOneToOne: false;
|
|
7839
|
+
referencedRelation: "itk_offertes";
|
|
7840
|
+
referencedColumns: ["id"];
|
|
7841
|
+
}];
|
|
7842
|
+
};
|
|
7843
|
+
itk_offerte_regels: {
|
|
7844
|
+
Row: {
|
|
7845
|
+
created_at: string;
|
|
7846
|
+
id: string;
|
|
7847
|
+
line_total_cents: number;
|
|
7848
|
+
offerte_id: string;
|
|
7849
|
+
omschrijving: string;
|
|
7850
|
+
package_id: string | null;
|
|
7851
|
+
quantity: number;
|
|
7852
|
+
sort_order: number;
|
|
7853
|
+
source: string;
|
|
7854
|
+
unit_price_cents: number;
|
|
7855
|
+
updated_at: string;
|
|
7856
|
+
};
|
|
7857
|
+
Insert: {
|
|
7858
|
+
created_at?: string;
|
|
7859
|
+
id?: string;
|
|
7860
|
+
line_total_cents?: number;
|
|
7861
|
+
offerte_id: string;
|
|
7862
|
+
omschrijving?: string;
|
|
7863
|
+
package_id?: string | null;
|
|
7864
|
+
quantity?: number;
|
|
7865
|
+
sort_order?: number;
|
|
7866
|
+
source?: string;
|
|
7867
|
+
unit_price_cents?: number;
|
|
7868
|
+
updated_at?: string;
|
|
7869
|
+
};
|
|
7870
|
+
Update: {
|
|
7871
|
+
created_at?: string;
|
|
7872
|
+
id?: string;
|
|
7873
|
+
line_total_cents?: number;
|
|
7874
|
+
offerte_id?: string;
|
|
7875
|
+
omschrijving?: string;
|
|
7876
|
+
package_id?: string | null;
|
|
7877
|
+
quantity?: number;
|
|
7878
|
+
sort_order?: number;
|
|
7879
|
+
source?: string;
|
|
7880
|
+
unit_price_cents?: number;
|
|
7881
|
+
updated_at?: string;
|
|
7882
|
+
};
|
|
7883
|
+
Relationships: [{
|
|
7884
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
7885
|
+
columns: ["offerte_id"];
|
|
7886
|
+
isOneToOne: false;
|
|
7887
|
+
referencedRelation: "itk_offertes";
|
|
7888
|
+
referencedColumns: ["id"];
|
|
7889
|
+
}, {
|
|
7890
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
7891
|
+
columns: ["package_id"];
|
|
7892
|
+
isOneToOne: false;
|
|
7893
|
+
referencedRelation: "werkbon_packages";
|
|
7894
|
+
referencedColumns: ["id"];
|
|
7895
|
+
}];
|
|
7896
|
+
};
|
|
7897
|
+
itk_offerte_settings: {
|
|
7898
|
+
Row: {
|
|
7899
|
+
auto_convert_binnen_mandaat: boolean;
|
|
7900
|
+
created_at: string;
|
|
7901
|
+
default_geldigheid_dagen: number;
|
|
7902
|
+
default_vat_rate: number;
|
|
7903
|
+
id: string;
|
|
7904
|
+
singleton: boolean;
|
|
7905
|
+
updated_at: string;
|
|
7906
|
+
};
|
|
7907
|
+
Insert: {
|
|
7908
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7909
|
+
created_at?: string;
|
|
7910
|
+
default_geldigheid_dagen?: number;
|
|
7911
|
+
default_vat_rate?: number;
|
|
7912
|
+
id?: string;
|
|
7913
|
+
singleton?: boolean;
|
|
7914
|
+
updated_at?: string;
|
|
7915
|
+
};
|
|
7916
|
+
Update: {
|
|
7917
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7918
|
+
created_at?: string;
|
|
7919
|
+
default_geldigheid_dagen?: number;
|
|
7920
|
+
default_vat_rate?: number;
|
|
7921
|
+
id?: string;
|
|
7922
|
+
singleton?: boolean;
|
|
7923
|
+
updated_at?: string;
|
|
7924
|
+
};
|
|
7925
|
+
Relationships: [];
|
|
7926
|
+
};
|
|
7927
|
+
itk_offertes: {
|
|
7928
|
+
Row: {
|
|
7929
|
+
ai_generated: boolean;
|
|
7930
|
+
approved_at: string | null;
|
|
7931
|
+
binnen_mandaat: boolean;
|
|
7932
|
+
contact_id: string | null;
|
|
7933
|
+
converted_at: string | null;
|
|
7934
|
+
created_at: string;
|
|
7935
|
+
created_by: string | null;
|
|
7936
|
+
customer_id: string | null;
|
|
7937
|
+
follow_up_werkbon_id: string | null;
|
|
7938
|
+
id: string;
|
|
7939
|
+
jaar: number;
|
|
7940
|
+
mandaat_restant_cents: number;
|
|
7941
|
+
notities: string | null;
|
|
7942
|
+
offerte_number: string | null;
|
|
7943
|
+
omschrijving: string;
|
|
7944
|
+
rejected_at: string | null;
|
|
7945
|
+
sent_at: string | null;
|
|
7946
|
+
source_number: string | null;
|
|
7947
|
+
source_ref: string | null;
|
|
7948
|
+
source_type: string;
|
|
7949
|
+
status: string;
|
|
7950
|
+
subtotal_cents: number;
|
|
7951
|
+
total_cents: number;
|
|
7952
|
+
updated_at: string;
|
|
7953
|
+
valid_until: string | null;
|
|
7954
|
+
vat_cents: number;
|
|
7955
|
+
vat_rate: number;
|
|
7956
|
+
viewed_at: string | null;
|
|
7957
|
+
volgnummer: number | null;
|
|
7958
|
+
werkbon_id: string | null;
|
|
7959
|
+
work_location_id: string | null;
|
|
7960
|
+
};
|
|
7961
|
+
Insert: {
|
|
7962
|
+
ai_generated?: boolean;
|
|
7963
|
+
approved_at?: string | null;
|
|
7964
|
+
binnen_mandaat?: boolean;
|
|
7965
|
+
contact_id?: string | null;
|
|
7966
|
+
converted_at?: string | null;
|
|
7967
|
+
created_at?: string;
|
|
7968
|
+
created_by?: string | null;
|
|
7969
|
+
customer_id?: string | null;
|
|
7970
|
+
follow_up_werkbon_id?: string | null;
|
|
7971
|
+
id?: string;
|
|
7972
|
+
jaar?: number;
|
|
7973
|
+
mandaat_restant_cents?: number;
|
|
7974
|
+
notities?: string | null;
|
|
7975
|
+
offerte_number?: string | null;
|
|
7976
|
+
omschrijving?: string;
|
|
7977
|
+
rejected_at?: string | null;
|
|
7978
|
+
sent_at?: string | null;
|
|
7979
|
+
source_number?: string | null;
|
|
7980
|
+
source_ref?: string | null;
|
|
7981
|
+
source_type?: string;
|
|
7982
|
+
status?: string;
|
|
7983
|
+
subtotal_cents?: number;
|
|
7984
|
+
total_cents?: number;
|
|
7985
|
+
updated_at?: string;
|
|
7986
|
+
valid_until?: string | null;
|
|
7987
|
+
vat_cents?: number;
|
|
7988
|
+
vat_rate?: number;
|
|
7989
|
+
viewed_at?: string | null;
|
|
7990
|
+
volgnummer?: number | null;
|
|
7991
|
+
werkbon_id?: string | null;
|
|
7992
|
+
work_location_id?: string | null;
|
|
7993
|
+
};
|
|
7994
|
+
Update: {
|
|
7995
|
+
ai_generated?: boolean;
|
|
7996
|
+
approved_at?: string | null;
|
|
7997
|
+
binnen_mandaat?: boolean;
|
|
7998
|
+
contact_id?: string | null;
|
|
7999
|
+
converted_at?: string | null;
|
|
8000
|
+
created_at?: string;
|
|
8001
|
+
created_by?: string | null;
|
|
8002
|
+
customer_id?: string | null;
|
|
8003
|
+
follow_up_werkbon_id?: string | null;
|
|
8004
|
+
id?: string;
|
|
8005
|
+
jaar?: number;
|
|
8006
|
+
mandaat_restant_cents?: number;
|
|
8007
|
+
notities?: string | null;
|
|
8008
|
+
offerte_number?: string | null;
|
|
8009
|
+
omschrijving?: string;
|
|
8010
|
+
rejected_at?: string | null;
|
|
8011
|
+
sent_at?: string | null;
|
|
8012
|
+
source_number?: string | null;
|
|
8013
|
+
source_ref?: string | null;
|
|
8014
|
+
source_type?: string;
|
|
8015
|
+
status?: string;
|
|
8016
|
+
subtotal_cents?: number;
|
|
8017
|
+
total_cents?: number;
|
|
8018
|
+
updated_at?: string;
|
|
8019
|
+
valid_until?: string | null;
|
|
8020
|
+
vat_cents?: number;
|
|
8021
|
+
vat_rate?: number;
|
|
8022
|
+
viewed_at?: string | null;
|
|
8023
|
+
volgnummer?: number | null;
|
|
8024
|
+
werkbon_id?: string | null;
|
|
8025
|
+
work_location_id?: string | null;
|
|
8026
|
+
};
|
|
8027
|
+
Relationships: [{
|
|
8028
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8029
|
+
columns: ["contact_id"];
|
|
8030
|
+
isOneToOne: false;
|
|
8031
|
+
referencedRelation: "itk_contact_persons";
|
|
8032
|
+
referencedColumns: ["id"];
|
|
8033
|
+
}, {
|
|
8034
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8035
|
+
columns: ["customer_id"];
|
|
8036
|
+
isOneToOne: false;
|
|
8037
|
+
referencedRelation: "itk_customers";
|
|
8038
|
+
referencedColumns: ["id"];
|
|
8039
|
+
}, {
|
|
8040
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8041
|
+
columns: ["follow_up_werkbon_id"];
|
|
8042
|
+
isOneToOne: false;
|
|
8043
|
+
referencedRelation: "werkbonnen";
|
|
8044
|
+
referencedColumns: ["id"];
|
|
8045
|
+
}, {
|
|
8046
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8047
|
+
columns: ["werkbon_id"];
|
|
8048
|
+
isOneToOne: false;
|
|
8049
|
+
referencedRelation: "werkbonnen";
|
|
8050
|
+
referencedColumns: ["id"];
|
|
8051
|
+
}, {
|
|
8052
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8053
|
+
columns: ["work_location_id"];
|
|
8054
|
+
isOneToOne: false;
|
|
8055
|
+
referencedRelation: "itk_work_locations";
|
|
8056
|
+
referencedColumns: ["id"];
|
|
8057
|
+
}];
|
|
8058
|
+
};
|
|
7771
8059
|
itk_work_locations: {
|
|
7772
8060
|
Row: {
|
|
7773
8061
|
city: string | null;
|
|
@@ -10141,6 +10429,63 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
10141
10429
|
referencedColumns: ["id"];
|
|
10142
10430
|
}];
|
|
10143
10431
|
};
|
|
10432
|
+
medewerker_details: {
|
|
10433
|
+
Row: {
|
|
10434
|
+
color: string | null;
|
|
10435
|
+
created_at: string;
|
|
10436
|
+
hours_fri: number | null;
|
|
10437
|
+
hours_mon: number | null;
|
|
10438
|
+
hours_thu: number | null;
|
|
10439
|
+
hours_tue: number | null;
|
|
10440
|
+
hours_wed: number | null;
|
|
10441
|
+
id: string;
|
|
10442
|
+
is_active: boolean;
|
|
10443
|
+
leave_balance_hours: number;
|
|
10444
|
+
persnr: string | null;
|
|
10445
|
+
phone: string | null;
|
|
10446
|
+
profile_id: string;
|
|
10447
|
+
updated_at: string;
|
|
10448
|
+
};
|
|
10449
|
+
Insert: {
|
|
10450
|
+
color?: string | null;
|
|
10451
|
+
created_at?: string;
|
|
10452
|
+
hours_fri?: number | null;
|
|
10453
|
+
hours_mon?: number | null;
|
|
10454
|
+
hours_thu?: number | null;
|
|
10455
|
+
hours_tue?: number | null;
|
|
10456
|
+
hours_wed?: number | null;
|
|
10457
|
+
id?: string;
|
|
10458
|
+
is_active?: boolean;
|
|
10459
|
+
leave_balance_hours?: number;
|
|
10460
|
+
persnr?: string | null;
|
|
10461
|
+
phone?: string | null;
|
|
10462
|
+
profile_id: string;
|
|
10463
|
+
updated_at?: string;
|
|
10464
|
+
};
|
|
10465
|
+
Update: {
|
|
10466
|
+
color?: string | null;
|
|
10467
|
+
created_at?: string;
|
|
10468
|
+
hours_fri?: number | null;
|
|
10469
|
+
hours_mon?: number | null;
|
|
10470
|
+
hours_thu?: number | null;
|
|
10471
|
+
hours_tue?: number | null;
|
|
10472
|
+
hours_wed?: number | null;
|
|
10473
|
+
id?: string;
|
|
10474
|
+
is_active?: boolean;
|
|
10475
|
+
leave_balance_hours?: number;
|
|
10476
|
+
persnr?: string | null;
|
|
10477
|
+
phone?: string | null;
|
|
10478
|
+
profile_id?: string;
|
|
10479
|
+
updated_at?: string;
|
|
10480
|
+
};
|
|
10481
|
+
Relationships: [{
|
|
10482
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10483
|
+
columns: ["profile_id"];
|
|
10484
|
+
isOneToOne: true;
|
|
10485
|
+
referencedRelation: "profiles";
|
|
10486
|
+
referencedColumns: ["id"];
|
|
10487
|
+
}];
|
|
10488
|
+
};
|
|
10144
10489
|
module_features: {
|
|
10145
10490
|
Row: {
|
|
10146
10491
|
created_at: string;
|
|
@@ -11434,6 +11779,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
11434
11779
|
orders: {
|
|
11435
11780
|
Row: {
|
|
11436
11781
|
buffer_id: string | null;
|
|
11782
|
+
cancel_reason: string | null;
|
|
11783
|
+
cancelled_at: string | null;
|
|
11437
11784
|
created_at: string;
|
|
11438
11785
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
11439
11786
|
customer_id: string | null;
|
|
@@ -11456,6 +11803,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
11456
11803
|
};
|
|
11457
11804
|
Insert: {
|
|
11458
11805
|
buffer_id?: string | null;
|
|
11806
|
+
cancel_reason?: string | null;
|
|
11807
|
+
cancelled_at?: string | null;
|
|
11459
11808
|
created_at?: string;
|
|
11460
11809
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11461
11810
|
customer_id?: string | null;
|
|
@@ -11478,6 +11827,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
11478
11827
|
};
|
|
11479
11828
|
Update: {
|
|
11480
11829
|
buffer_id?: string | null;
|
|
11830
|
+
cancel_reason?: string | null;
|
|
11831
|
+
cancelled_at?: string | null;
|
|
11481
11832
|
created_at?: string;
|
|
11482
11833
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11483
11834
|
customer_id?: string | null;
|
|
@@ -13540,6 +13891,66 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
13540
13891
|
};
|
|
13541
13892
|
Relationships: [];
|
|
13542
13893
|
};
|
|
13894
|
+
profile_modules: {
|
|
13895
|
+
Row: {
|
|
13896
|
+
created_at: string;
|
|
13897
|
+
id: string;
|
|
13898
|
+
module_id: string;
|
|
13899
|
+
profile_id: string;
|
|
13900
|
+
};
|
|
13901
|
+
Insert: {
|
|
13902
|
+
created_at?: string;
|
|
13903
|
+
id?: string;
|
|
13904
|
+
module_id: string;
|
|
13905
|
+
profile_id: string;
|
|
13906
|
+
};
|
|
13907
|
+
Update: {
|
|
13908
|
+
created_at?: string;
|
|
13909
|
+
id?: string;
|
|
13910
|
+
module_id?: string;
|
|
13911
|
+
profile_id?: string;
|
|
13912
|
+
};
|
|
13913
|
+
Relationships: [{
|
|
13914
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
13915
|
+
columns: ["profile_id"];
|
|
13916
|
+
isOneToOne: false;
|
|
13917
|
+
referencedRelation: "profiles_org";
|
|
13918
|
+
referencedColumns: ["id"];
|
|
13919
|
+
}];
|
|
13920
|
+
};
|
|
13921
|
+
profile_roles: {
|
|
13922
|
+
Row: {
|
|
13923
|
+
created_at: string;
|
|
13924
|
+
id: string;
|
|
13925
|
+
profile_id: string;
|
|
13926
|
+
role_id: string;
|
|
13927
|
+
};
|
|
13928
|
+
Insert: {
|
|
13929
|
+
created_at?: string;
|
|
13930
|
+
id?: string;
|
|
13931
|
+
profile_id: string;
|
|
13932
|
+
role_id: string;
|
|
13933
|
+
};
|
|
13934
|
+
Update: {
|
|
13935
|
+
created_at?: string;
|
|
13936
|
+
id?: string;
|
|
13937
|
+
profile_id?: string;
|
|
13938
|
+
role_id?: string;
|
|
13939
|
+
};
|
|
13940
|
+
Relationships: [{
|
|
13941
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
13942
|
+
columns: ["profile_id"];
|
|
13943
|
+
isOneToOne: false;
|
|
13944
|
+
referencedRelation: "profiles_org";
|
|
13945
|
+
referencedColumns: ["id"];
|
|
13946
|
+
}, {
|
|
13947
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
13948
|
+
columns: ["role_id"];
|
|
13949
|
+
isOneToOne: false;
|
|
13950
|
+
referencedRelation: "roles";
|
|
13951
|
+
referencedColumns: ["id"];
|
|
13952
|
+
}];
|
|
13953
|
+
};
|
|
13543
13954
|
profiles: {
|
|
13544
13955
|
Row: {
|
|
13545
13956
|
address: string | null;
|
|
@@ -13585,6 +13996,39 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
13585
13996
|
referencedColumns: ["id"];
|
|
13586
13997
|
}];
|
|
13587
13998
|
};
|
|
13999
|
+
profiles_org: {
|
|
14000
|
+
Row: {
|
|
14001
|
+
created_at: string;
|
|
14002
|
+
id: string;
|
|
14003
|
+
is_default: boolean;
|
|
14004
|
+
name: string;
|
|
14005
|
+
tenant_id: string | null;
|
|
14006
|
+
updated_at: string;
|
|
14007
|
+
};
|
|
14008
|
+
Insert: {
|
|
14009
|
+
created_at?: string;
|
|
14010
|
+
id?: string;
|
|
14011
|
+
is_default?: boolean;
|
|
14012
|
+
name: string;
|
|
14013
|
+
tenant_id?: string | null;
|
|
14014
|
+
updated_at?: string;
|
|
14015
|
+
};
|
|
14016
|
+
Update: {
|
|
14017
|
+
created_at?: string;
|
|
14018
|
+
id?: string;
|
|
14019
|
+
is_default?: boolean;
|
|
14020
|
+
name?: string;
|
|
14021
|
+
tenant_id?: string | null;
|
|
14022
|
+
updated_at?: string;
|
|
14023
|
+
};
|
|
14024
|
+
Relationships: [{
|
|
14025
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14026
|
+
columns: ["tenant_id"];
|
|
14027
|
+
isOneToOne: false;
|
|
14028
|
+
referencedRelation: "tenants";
|
|
14029
|
+
referencedColumns: ["id"];
|
|
14030
|
+
}];
|
|
14031
|
+
};
|
|
13588
14032
|
projects: {
|
|
13589
14033
|
Row: {
|
|
13590
14034
|
contact_name: string | null;
|
|
@@ -14759,6 +15203,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
14759
15203
|
type: string;
|
|
14760
15204
|
updated_at: string;
|
|
14761
15205
|
vereist_medewerker: boolean;
|
|
15206
|
+
werkplek: string | null;
|
|
14762
15207
|
};
|
|
14763
15208
|
Insert: {
|
|
14764
15209
|
actief?: boolean;
|
|
@@ -14772,6 +15217,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
14772
15217
|
type?: string;
|
|
14773
15218
|
updated_at?: string;
|
|
14774
15219
|
vereist_medewerker?: boolean;
|
|
15220
|
+
werkplek?: string | null;
|
|
14775
15221
|
};
|
|
14776
15222
|
Update: {
|
|
14777
15223
|
actief?: boolean;
|
|
@@ -14785,9 +15231,46 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
14785
15231
|
type?: string;
|
|
14786
15232
|
updated_at?: string;
|
|
14787
15233
|
vereist_medewerker?: boolean;
|
|
15234
|
+
werkplek?: string | null;
|
|
14788
15235
|
};
|
|
14789
15236
|
Relationships: [];
|
|
14790
15237
|
};
|
|
15238
|
+
sick_periods: {
|
|
15239
|
+
Row: {
|
|
15240
|
+
created_at: string;
|
|
15241
|
+
employee_id: string;
|
|
15242
|
+
end_date: string | null;
|
|
15243
|
+
id: string;
|
|
15244
|
+
notes: string | null;
|
|
15245
|
+
start_date: string;
|
|
15246
|
+
updated_at: string;
|
|
15247
|
+
};
|
|
15248
|
+
Insert: {
|
|
15249
|
+
created_at?: string;
|
|
15250
|
+
employee_id: string;
|
|
15251
|
+
end_date?: string | null;
|
|
15252
|
+
id?: string;
|
|
15253
|
+
notes?: string | null;
|
|
15254
|
+
start_date: string;
|
|
15255
|
+
updated_at?: string;
|
|
15256
|
+
};
|
|
15257
|
+
Update: {
|
|
15258
|
+
created_at?: string;
|
|
15259
|
+
employee_id?: string;
|
|
15260
|
+
end_date?: string | null;
|
|
15261
|
+
id?: string;
|
|
15262
|
+
notes?: string | null;
|
|
15263
|
+
start_date?: string;
|
|
15264
|
+
updated_at?: string;
|
|
15265
|
+
};
|
|
15266
|
+
Relationships: [{
|
|
15267
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15268
|
+
columns: ["employee_id"];
|
|
15269
|
+
isOneToOne: false;
|
|
15270
|
+
referencedRelation: "profiles";
|
|
15271
|
+
referencedColumns: ["id"];
|
|
15272
|
+
}];
|
|
15273
|
+
};
|
|
14791
15274
|
sidebar_config: {
|
|
14792
15275
|
Row: {
|
|
14793
15276
|
id: string;
|
|
@@ -19472,6 +19955,13 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
19472
19955
|
};
|
|
19473
19956
|
Returns: string;
|
|
19474
19957
|
};
|
|
19958
|
+
employee_day_hours: {
|
|
19959
|
+
Args: {
|
|
19960
|
+
_day: string;
|
|
19961
|
+
_employee_id: string;
|
|
19962
|
+
};
|
|
19963
|
+
Returns: number;
|
|
19964
|
+
};
|
|
19475
19965
|
enqueue_cart_replan_if_unlocked: {
|
|
19476
19966
|
Args: {
|
|
19477
19967
|
p_order_id: string;
|
|
@@ -19825,6 +20315,19 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
19825
20315
|
Args: never;
|
|
19826
20316
|
Returns: boolean;
|
|
19827
20317
|
};
|
|
20318
|
+
itk_offerte_naar_werkbon: {
|
|
20319
|
+
Args: {
|
|
20320
|
+
_offerte_id: string;
|
|
20321
|
+
};
|
|
20322
|
+
Returns: string;
|
|
20323
|
+
};
|
|
20324
|
+
itk_offerte_restant_mandaat: {
|
|
20325
|
+
Args: {
|
|
20326
|
+
_exclude_offerte_id?: string;
|
|
20327
|
+
_werkbon_id: string;
|
|
20328
|
+
};
|
|
20329
|
+
Returns: number;
|
|
20330
|
+
};
|
|
19828
20331
|
jwt_has_role: {
|
|
19829
20332
|
Args: {
|
|
19830
20333
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -19835,9 +20338,19 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
19835
20338
|
Args: never;
|
|
19836
20339
|
Returns: {
|
|
19837
20340
|
avatar_url: string;
|
|
20341
|
+
color: string;
|
|
19838
20342
|
display_name: string;
|
|
19839
20343
|
email: string;
|
|
20344
|
+
hours_fri: number;
|
|
20345
|
+
hours_mon: number;
|
|
20346
|
+
hours_thu: number;
|
|
20347
|
+
hours_tue: number;
|
|
20348
|
+
hours_wed: number;
|
|
19840
20349
|
id: string;
|
|
20350
|
+
is_active: boolean;
|
|
20351
|
+
leave_balance_hours: number;
|
|
20352
|
+
persnr: string;
|
|
20353
|
+
phone: string;
|
|
19841
20354
|
roles: string[];
|
|
19842
20355
|
}[];
|
|
19843
20356
|
};
|
|
@@ -20164,17 +20677,6 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
20164
20677
|
Returns: string;
|
|
20165
20678
|
};
|
|
20166
20679
|
logistics_emit_event: {
|
|
20167
|
-
Args: {
|
|
20168
|
-
p_event_type: string;
|
|
20169
|
-
p_idempotency_key?: string;
|
|
20170
|
-
p_order_ref: string;
|
|
20171
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
20172
|
-
p_shadow?: boolean;
|
|
20173
|
-
p_source_module: string;
|
|
20174
|
-
p_strategy_id?: string;
|
|
20175
|
-
};
|
|
20176
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
20177
|
-
} | {
|
|
20178
20680
|
Args: {
|
|
20179
20681
|
p_event_type: string;
|
|
20180
20682
|
p_idempotency_key?: string;
|
|
@@ -21019,6 +21521,37 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
21019
21521
|
};
|
|
21020
21522
|
Returns: undefined;
|
|
21021
21523
|
};
|
|
21524
|
+
quote_create_from_source: {
|
|
21525
|
+
Args: {
|
|
21526
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
21527
|
+
_source_id: string;
|
|
21528
|
+
_source_type: string;
|
|
21529
|
+
};
|
|
21530
|
+
Returns: string;
|
|
21531
|
+
};
|
|
21532
|
+
quote_get_billable_lines: {
|
|
21533
|
+
Args: {
|
|
21534
|
+
_quotation_id: string;
|
|
21535
|
+
};
|
|
21536
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21537
|
+
};
|
|
21538
|
+
quote_get_summary: {
|
|
21539
|
+
Args: {
|
|
21540
|
+
_quotation_id: string;
|
|
21541
|
+
};
|
|
21542
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21543
|
+
};
|
|
21544
|
+
quote_list_packages: {
|
|
21545
|
+
Args: never;
|
|
21546
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21547
|
+
};
|
|
21548
|
+
quote_list_sources: {
|
|
21549
|
+
Args: {
|
|
21550
|
+
_limit?: number;
|
|
21551
|
+
_source_type?: string;
|
|
21552
|
+
};
|
|
21553
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21554
|
+
};
|
|
21022
21555
|
recompute_all_reserved_stock: {
|
|
21023
21556
|
Args: never;
|
|
21024
21557
|
Returns: undefined;
|
|
@@ -21554,6 +22087,12 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
21554
22087
|
};
|
|
21555
22088
|
Returns: undefined;
|
|
21556
22089
|
};
|
|
22090
|
+
sync_sick_time_off: {
|
|
22091
|
+
Args: {
|
|
22092
|
+
_period_id: string;
|
|
22093
|
+
};
|
|
22094
|
+
Returns: number;
|
|
22095
|
+
};
|
|
21557
22096
|
trade_item_stock_duplicates: {
|
|
21558
22097
|
Args: never;
|
|
21559
22098
|
Returns: {
|
|
@@ -21627,11 +22166,31 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
21627
22166
|
Args: never;
|
|
21628
22167
|
Returns: string;
|
|
21629
22168
|
};
|
|
22169
|
+
wo_create_from_source: {
|
|
22170
|
+
Args: {
|
|
22171
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
22172
|
+
_source_id: string;
|
|
22173
|
+
_source_type: string;
|
|
22174
|
+
};
|
|
22175
|
+
Returns: string;
|
|
22176
|
+
};
|
|
22177
|
+
wo_get_billable_lines: {
|
|
22178
|
+
Args: {
|
|
22179
|
+
_work_order_id: string;
|
|
22180
|
+
};
|
|
22181
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22182
|
+
};
|
|
22183
|
+
wo_get_summary: {
|
|
22184
|
+
Args: {
|
|
22185
|
+
_work_order_id: string;
|
|
22186
|
+
};
|
|
22187
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22188
|
+
};
|
|
21630
22189
|
};
|
|
21631
22190
|
Enums: {
|
|
21632
22191
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21633
22192
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21634
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
22193
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21635
22194
|
doc_orientation: "portrait" | "landscape";
|
|
21636
22195
|
exact_env: "staging" | "live";
|
|
21637
22196
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -26730,6 +27289,42 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
26730
27289
|
};
|
|
26731
27290
|
Relationships: [];
|
|
26732
27291
|
};
|
|
27292
|
+
facturen: {
|
|
27293
|
+
Row: {
|
|
27294
|
+
bedrag_incl_btw: number;
|
|
27295
|
+
created_at: string;
|
|
27296
|
+
datum: string;
|
|
27297
|
+
factuurnummer: string;
|
|
27298
|
+
id: string;
|
|
27299
|
+
klantnaam: string;
|
|
27300
|
+
status: string;
|
|
27301
|
+
updated_at: string;
|
|
27302
|
+
user_id: string;
|
|
27303
|
+
};
|
|
27304
|
+
Insert: {
|
|
27305
|
+
bedrag_incl_btw: number;
|
|
27306
|
+
created_at?: string;
|
|
27307
|
+
datum?: string;
|
|
27308
|
+
factuurnummer: string;
|
|
27309
|
+
id?: string;
|
|
27310
|
+
klantnaam: string;
|
|
27311
|
+
status?: string;
|
|
27312
|
+
updated_at?: string;
|
|
27313
|
+
user_id?: string;
|
|
27314
|
+
};
|
|
27315
|
+
Update: {
|
|
27316
|
+
bedrag_incl_btw?: number;
|
|
27317
|
+
created_at?: string;
|
|
27318
|
+
datum?: string;
|
|
27319
|
+
factuurnummer?: string;
|
|
27320
|
+
id?: string;
|
|
27321
|
+
klantnaam?: string;
|
|
27322
|
+
status?: string;
|
|
27323
|
+
updated_at?: string;
|
|
27324
|
+
user_id?: string;
|
|
27325
|
+
};
|
|
27326
|
+
Relationships: [];
|
|
27327
|
+
};
|
|
26733
27328
|
floricode_connection_settings: {
|
|
26734
27329
|
Row: {
|
|
26735
27330
|
catalog_key: string | null;
|
|
@@ -29454,6 +30049,258 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
29454
30049
|
};
|
|
29455
30050
|
Relationships: [];
|
|
29456
30051
|
};
|
|
30052
|
+
itk_offerte_events: {
|
|
30053
|
+
Row: {
|
|
30054
|
+
created_at: string;
|
|
30055
|
+
event_type: string;
|
|
30056
|
+
id: string;
|
|
30057
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
30058
|
+
offerte_id: string;
|
|
30059
|
+
omschrijving: string | null;
|
|
30060
|
+
user_id: string | null;
|
|
30061
|
+
};
|
|
30062
|
+
Insert: {
|
|
30063
|
+
created_at?: string;
|
|
30064
|
+
event_type: string;
|
|
30065
|
+
id?: string;
|
|
30066
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30067
|
+
offerte_id: string;
|
|
30068
|
+
omschrijving?: string | null;
|
|
30069
|
+
user_id?: string | null;
|
|
30070
|
+
};
|
|
30071
|
+
Update: {
|
|
30072
|
+
created_at?: string;
|
|
30073
|
+
event_type?: string;
|
|
30074
|
+
id?: string;
|
|
30075
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30076
|
+
offerte_id?: string;
|
|
30077
|
+
omschrijving?: string | null;
|
|
30078
|
+
user_id?: string | null;
|
|
30079
|
+
};
|
|
30080
|
+
Relationships: [{
|
|
30081
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
30082
|
+
columns: ["offerte_id"];
|
|
30083
|
+
isOneToOne: false;
|
|
30084
|
+
referencedRelation: "itk_offertes";
|
|
30085
|
+
referencedColumns: ["id"];
|
|
30086
|
+
}];
|
|
30087
|
+
};
|
|
30088
|
+
itk_offerte_regels: {
|
|
30089
|
+
Row: {
|
|
30090
|
+
created_at: string;
|
|
30091
|
+
id: string;
|
|
30092
|
+
line_total_cents: number;
|
|
30093
|
+
offerte_id: string;
|
|
30094
|
+
omschrijving: string;
|
|
30095
|
+
package_id: string | null;
|
|
30096
|
+
quantity: number;
|
|
30097
|
+
sort_order: number;
|
|
30098
|
+
source: string;
|
|
30099
|
+
unit_price_cents: number;
|
|
30100
|
+
updated_at: string;
|
|
30101
|
+
};
|
|
30102
|
+
Insert: {
|
|
30103
|
+
created_at?: string;
|
|
30104
|
+
id?: string;
|
|
30105
|
+
line_total_cents?: number;
|
|
30106
|
+
offerte_id: string;
|
|
30107
|
+
omschrijving?: string;
|
|
30108
|
+
package_id?: string | null;
|
|
30109
|
+
quantity?: number;
|
|
30110
|
+
sort_order?: number;
|
|
30111
|
+
source?: string;
|
|
30112
|
+
unit_price_cents?: number;
|
|
30113
|
+
updated_at?: string;
|
|
30114
|
+
};
|
|
30115
|
+
Update: {
|
|
30116
|
+
created_at?: string;
|
|
30117
|
+
id?: string;
|
|
30118
|
+
line_total_cents?: number;
|
|
30119
|
+
offerte_id?: string;
|
|
30120
|
+
omschrijving?: string;
|
|
30121
|
+
package_id?: string | null;
|
|
30122
|
+
quantity?: number;
|
|
30123
|
+
sort_order?: number;
|
|
30124
|
+
source?: string;
|
|
30125
|
+
unit_price_cents?: number;
|
|
30126
|
+
updated_at?: string;
|
|
30127
|
+
};
|
|
30128
|
+
Relationships: [{
|
|
30129
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
30130
|
+
columns: ["offerte_id"];
|
|
30131
|
+
isOneToOne: false;
|
|
30132
|
+
referencedRelation: "itk_offertes";
|
|
30133
|
+
referencedColumns: ["id"];
|
|
30134
|
+
}, {
|
|
30135
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
30136
|
+
columns: ["package_id"];
|
|
30137
|
+
isOneToOne: false;
|
|
30138
|
+
referencedRelation: "werkbon_packages";
|
|
30139
|
+
referencedColumns: ["id"];
|
|
30140
|
+
}];
|
|
30141
|
+
};
|
|
30142
|
+
itk_offerte_settings: {
|
|
30143
|
+
Row: {
|
|
30144
|
+
auto_convert_binnen_mandaat: boolean;
|
|
30145
|
+
created_at: string;
|
|
30146
|
+
default_geldigheid_dagen: number;
|
|
30147
|
+
default_vat_rate: number;
|
|
30148
|
+
id: string;
|
|
30149
|
+
singleton: boolean;
|
|
30150
|
+
updated_at: string;
|
|
30151
|
+
};
|
|
30152
|
+
Insert: {
|
|
30153
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30154
|
+
created_at?: string;
|
|
30155
|
+
default_geldigheid_dagen?: number;
|
|
30156
|
+
default_vat_rate?: number;
|
|
30157
|
+
id?: string;
|
|
30158
|
+
singleton?: boolean;
|
|
30159
|
+
updated_at?: string;
|
|
30160
|
+
};
|
|
30161
|
+
Update: {
|
|
30162
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30163
|
+
created_at?: string;
|
|
30164
|
+
default_geldigheid_dagen?: number;
|
|
30165
|
+
default_vat_rate?: number;
|
|
30166
|
+
id?: string;
|
|
30167
|
+
singleton?: boolean;
|
|
30168
|
+
updated_at?: string;
|
|
30169
|
+
};
|
|
30170
|
+
Relationships: [];
|
|
30171
|
+
};
|
|
30172
|
+
itk_offertes: {
|
|
30173
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
30240
|
+
ai_generated?: boolean;
|
|
30241
|
+
approved_at?: string | null;
|
|
30242
|
+
binnen_mandaat?: boolean;
|
|
30243
|
+
contact_id?: string | null;
|
|
30244
|
+
converted_at?: string | null;
|
|
30245
|
+
created_at?: string;
|
|
30246
|
+
created_by?: string | null;
|
|
30247
|
+
customer_id?: string | null;
|
|
30248
|
+
follow_up_werkbon_id?: string | null;
|
|
30249
|
+
id?: string;
|
|
30250
|
+
jaar?: number;
|
|
30251
|
+
mandaat_restant_cents?: number;
|
|
30252
|
+
notities?: string | null;
|
|
30253
|
+
offerte_number?: string | null;
|
|
30254
|
+
omschrijving?: string;
|
|
30255
|
+
rejected_at?: string | null;
|
|
30256
|
+
sent_at?: string | null;
|
|
30257
|
+
source_number?: string | null;
|
|
30258
|
+
source_ref?: string | null;
|
|
30259
|
+
source_type?: string;
|
|
30260
|
+
status?: string;
|
|
30261
|
+
subtotal_cents?: number;
|
|
30262
|
+
total_cents?: number;
|
|
30263
|
+
updated_at?: string;
|
|
30264
|
+
valid_until?: string | null;
|
|
30265
|
+
vat_cents?: number;
|
|
30266
|
+
vat_rate?: number;
|
|
30267
|
+
viewed_at?: string | null;
|
|
30268
|
+
volgnummer?: number | null;
|
|
30269
|
+
werkbon_id?: string | null;
|
|
30270
|
+
work_location_id?: string | null;
|
|
30271
|
+
};
|
|
30272
|
+
Relationships: [{
|
|
30273
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
30274
|
+
columns: ["contact_id"];
|
|
30275
|
+
isOneToOne: false;
|
|
30276
|
+
referencedRelation: "itk_contact_persons";
|
|
30277
|
+
referencedColumns: ["id"];
|
|
30278
|
+
}, {
|
|
30279
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
30280
|
+
columns: ["customer_id"];
|
|
30281
|
+
isOneToOne: false;
|
|
30282
|
+
referencedRelation: "itk_customers";
|
|
30283
|
+
referencedColumns: ["id"];
|
|
30284
|
+
}, {
|
|
30285
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
30286
|
+
columns: ["follow_up_werkbon_id"];
|
|
30287
|
+
isOneToOne: false;
|
|
30288
|
+
referencedRelation: "werkbonnen";
|
|
30289
|
+
referencedColumns: ["id"];
|
|
30290
|
+
}, {
|
|
30291
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
30292
|
+
columns: ["werkbon_id"];
|
|
30293
|
+
isOneToOne: false;
|
|
30294
|
+
referencedRelation: "werkbonnen";
|
|
30295
|
+
referencedColumns: ["id"];
|
|
30296
|
+
}, {
|
|
30297
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
30298
|
+
columns: ["work_location_id"];
|
|
30299
|
+
isOneToOne: false;
|
|
30300
|
+
referencedRelation: "itk_work_locations";
|
|
30301
|
+
referencedColumns: ["id"];
|
|
30302
|
+
}];
|
|
30303
|
+
};
|
|
29457
30304
|
itk_work_locations: {
|
|
29458
30305
|
Row: {
|
|
29459
30306
|
city: string | null;
|
|
@@ -31827,6 +32674,63 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
31827
32674
|
referencedColumns: ["id"];
|
|
31828
32675
|
}];
|
|
31829
32676
|
};
|
|
32677
|
+
medewerker_details: {
|
|
32678
|
+
Row: {
|
|
32679
|
+
color: string | null;
|
|
32680
|
+
created_at: string;
|
|
32681
|
+
hours_fri: number | null;
|
|
32682
|
+
hours_mon: number | null;
|
|
32683
|
+
hours_thu: number | null;
|
|
32684
|
+
hours_tue: number | null;
|
|
32685
|
+
hours_wed: number | null;
|
|
32686
|
+
id: string;
|
|
32687
|
+
is_active: boolean;
|
|
32688
|
+
leave_balance_hours: number;
|
|
32689
|
+
persnr: string | null;
|
|
32690
|
+
phone: string | null;
|
|
32691
|
+
profile_id: string;
|
|
32692
|
+
updated_at: string;
|
|
32693
|
+
};
|
|
32694
|
+
Insert: {
|
|
32695
|
+
color?: string | null;
|
|
32696
|
+
created_at?: string;
|
|
32697
|
+
hours_fri?: number | null;
|
|
32698
|
+
hours_mon?: number | null;
|
|
32699
|
+
hours_thu?: number | null;
|
|
32700
|
+
hours_tue?: number | null;
|
|
32701
|
+
hours_wed?: number | null;
|
|
32702
|
+
id?: string;
|
|
32703
|
+
is_active?: boolean;
|
|
32704
|
+
leave_balance_hours?: number;
|
|
32705
|
+
persnr?: string | null;
|
|
32706
|
+
phone?: string | null;
|
|
32707
|
+
profile_id: string;
|
|
32708
|
+
updated_at?: string;
|
|
32709
|
+
};
|
|
32710
|
+
Update: {
|
|
32711
|
+
color?: string | null;
|
|
32712
|
+
created_at?: string;
|
|
32713
|
+
hours_fri?: number | null;
|
|
32714
|
+
hours_mon?: number | null;
|
|
32715
|
+
hours_thu?: number | null;
|
|
32716
|
+
hours_tue?: number | null;
|
|
32717
|
+
hours_wed?: number | null;
|
|
32718
|
+
id?: string;
|
|
32719
|
+
is_active?: boolean;
|
|
32720
|
+
leave_balance_hours?: number;
|
|
32721
|
+
persnr?: string | null;
|
|
32722
|
+
phone?: string | null;
|
|
32723
|
+
profile_id?: string;
|
|
32724
|
+
updated_at?: string;
|
|
32725
|
+
};
|
|
32726
|
+
Relationships: [{
|
|
32727
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
32728
|
+
columns: ["profile_id"];
|
|
32729
|
+
isOneToOne: true;
|
|
32730
|
+
referencedRelation: "profiles";
|
|
32731
|
+
referencedColumns: ["id"];
|
|
32732
|
+
}];
|
|
32733
|
+
};
|
|
31830
32734
|
module_features: {
|
|
31831
32735
|
Row: {
|
|
31832
32736
|
created_at: string;
|
|
@@ -33120,6 +34024,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
33120
34024
|
orders: {
|
|
33121
34025
|
Row: {
|
|
33122
34026
|
buffer_id: string | null;
|
|
34027
|
+
cancel_reason: string | null;
|
|
34028
|
+
cancelled_at: string | null;
|
|
33123
34029
|
created_at: string;
|
|
33124
34030
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
33125
34031
|
customer_id: string | null;
|
|
@@ -33142,6 +34048,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
33142
34048
|
};
|
|
33143
34049
|
Insert: {
|
|
33144
34050
|
buffer_id?: string | null;
|
|
34051
|
+
cancel_reason?: string | null;
|
|
34052
|
+
cancelled_at?: string | null;
|
|
33145
34053
|
created_at?: string;
|
|
33146
34054
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33147
34055
|
customer_id?: string | null;
|
|
@@ -33164,6 +34072,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
33164
34072
|
};
|
|
33165
34073
|
Update: {
|
|
33166
34074
|
buffer_id?: string | null;
|
|
34075
|
+
cancel_reason?: string | null;
|
|
34076
|
+
cancelled_at?: string | null;
|
|
33167
34077
|
created_at?: string;
|
|
33168
34078
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33169
34079
|
customer_id?: string | null;
|
|
@@ -35226,6 +36136,66 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
35226
36136
|
};
|
|
35227
36137
|
Relationships: [];
|
|
35228
36138
|
};
|
|
36139
|
+
profile_modules: {
|
|
36140
|
+
Row: {
|
|
36141
|
+
created_at: string;
|
|
36142
|
+
id: string;
|
|
36143
|
+
module_id: string;
|
|
36144
|
+
profile_id: string;
|
|
36145
|
+
};
|
|
36146
|
+
Insert: {
|
|
36147
|
+
created_at?: string;
|
|
36148
|
+
id?: string;
|
|
36149
|
+
module_id: string;
|
|
36150
|
+
profile_id: string;
|
|
36151
|
+
};
|
|
36152
|
+
Update: {
|
|
36153
|
+
created_at?: string;
|
|
36154
|
+
id?: string;
|
|
36155
|
+
module_id?: string;
|
|
36156
|
+
profile_id?: string;
|
|
36157
|
+
};
|
|
36158
|
+
Relationships: [{
|
|
36159
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
36160
|
+
columns: ["profile_id"];
|
|
36161
|
+
isOneToOne: false;
|
|
36162
|
+
referencedRelation: "profiles_org";
|
|
36163
|
+
referencedColumns: ["id"];
|
|
36164
|
+
}];
|
|
36165
|
+
};
|
|
36166
|
+
profile_roles: {
|
|
36167
|
+
Row: {
|
|
36168
|
+
created_at: string;
|
|
36169
|
+
id: string;
|
|
36170
|
+
profile_id: string;
|
|
36171
|
+
role_id: string;
|
|
36172
|
+
};
|
|
36173
|
+
Insert: {
|
|
36174
|
+
created_at?: string;
|
|
36175
|
+
id?: string;
|
|
36176
|
+
profile_id: string;
|
|
36177
|
+
role_id: string;
|
|
36178
|
+
};
|
|
36179
|
+
Update: {
|
|
36180
|
+
created_at?: string;
|
|
36181
|
+
id?: string;
|
|
36182
|
+
profile_id?: string;
|
|
36183
|
+
role_id?: string;
|
|
36184
|
+
};
|
|
36185
|
+
Relationships: [{
|
|
36186
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
36187
|
+
columns: ["profile_id"];
|
|
36188
|
+
isOneToOne: false;
|
|
36189
|
+
referencedRelation: "profiles_org";
|
|
36190
|
+
referencedColumns: ["id"];
|
|
36191
|
+
}, {
|
|
36192
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
36193
|
+
columns: ["role_id"];
|
|
36194
|
+
isOneToOne: false;
|
|
36195
|
+
referencedRelation: "roles";
|
|
36196
|
+
referencedColumns: ["id"];
|
|
36197
|
+
}];
|
|
36198
|
+
};
|
|
35229
36199
|
profiles: {
|
|
35230
36200
|
Row: {
|
|
35231
36201
|
address: string | null;
|
|
@@ -35271,6 +36241,39 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
35271
36241
|
referencedColumns: ["id"];
|
|
35272
36242
|
}];
|
|
35273
36243
|
};
|
|
36244
|
+
profiles_org: {
|
|
36245
|
+
Row: {
|
|
36246
|
+
created_at: string;
|
|
36247
|
+
id: string;
|
|
36248
|
+
is_default: boolean;
|
|
36249
|
+
name: string;
|
|
36250
|
+
tenant_id: string | null;
|
|
36251
|
+
updated_at: string;
|
|
36252
|
+
};
|
|
36253
|
+
Insert: {
|
|
36254
|
+
created_at?: string;
|
|
36255
|
+
id?: string;
|
|
36256
|
+
is_default?: boolean;
|
|
36257
|
+
name: string;
|
|
36258
|
+
tenant_id?: string | null;
|
|
36259
|
+
updated_at?: string;
|
|
36260
|
+
};
|
|
36261
|
+
Update: {
|
|
36262
|
+
created_at?: string;
|
|
36263
|
+
id?: string;
|
|
36264
|
+
is_default?: boolean;
|
|
36265
|
+
name?: string;
|
|
36266
|
+
tenant_id?: string | null;
|
|
36267
|
+
updated_at?: string;
|
|
36268
|
+
};
|
|
36269
|
+
Relationships: [{
|
|
36270
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
36271
|
+
columns: ["tenant_id"];
|
|
36272
|
+
isOneToOne: false;
|
|
36273
|
+
referencedRelation: "tenants";
|
|
36274
|
+
referencedColumns: ["id"];
|
|
36275
|
+
}];
|
|
36276
|
+
};
|
|
35274
36277
|
projects: {
|
|
35275
36278
|
Row: {
|
|
35276
36279
|
contact_name: string | null;
|
|
@@ -36445,6 +37448,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
36445
37448
|
type: string;
|
|
36446
37449
|
updated_at: string;
|
|
36447
37450
|
vereist_medewerker: boolean;
|
|
37451
|
+
werkplek: string | null;
|
|
36448
37452
|
};
|
|
36449
37453
|
Insert: {
|
|
36450
37454
|
actief?: boolean;
|
|
@@ -36458,6 +37462,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
36458
37462
|
type?: string;
|
|
36459
37463
|
updated_at?: string;
|
|
36460
37464
|
vereist_medewerker?: boolean;
|
|
37465
|
+
werkplek?: string | null;
|
|
36461
37466
|
};
|
|
36462
37467
|
Update: {
|
|
36463
37468
|
actief?: boolean;
|
|
@@ -36471,9 +37476,46 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
36471
37476
|
type?: string;
|
|
36472
37477
|
updated_at?: string;
|
|
36473
37478
|
vereist_medewerker?: boolean;
|
|
37479
|
+
werkplek?: string | null;
|
|
36474
37480
|
};
|
|
36475
37481
|
Relationships: [];
|
|
36476
37482
|
};
|
|
37483
|
+
sick_periods: {
|
|
37484
|
+
Row: {
|
|
37485
|
+
created_at: string;
|
|
37486
|
+
employee_id: string;
|
|
37487
|
+
end_date: string | null;
|
|
37488
|
+
id: string;
|
|
37489
|
+
notes: string | null;
|
|
37490
|
+
start_date: string;
|
|
37491
|
+
updated_at: string;
|
|
37492
|
+
};
|
|
37493
|
+
Insert: {
|
|
37494
|
+
created_at?: string;
|
|
37495
|
+
employee_id: string;
|
|
37496
|
+
end_date?: string | null;
|
|
37497
|
+
id?: string;
|
|
37498
|
+
notes?: string | null;
|
|
37499
|
+
start_date: string;
|
|
37500
|
+
updated_at?: string;
|
|
37501
|
+
};
|
|
37502
|
+
Update: {
|
|
37503
|
+
created_at?: string;
|
|
37504
|
+
employee_id?: string;
|
|
37505
|
+
end_date?: string | null;
|
|
37506
|
+
id?: string;
|
|
37507
|
+
notes?: string | null;
|
|
37508
|
+
start_date?: string;
|
|
37509
|
+
updated_at?: string;
|
|
37510
|
+
};
|
|
37511
|
+
Relationships: [{
|
|
37512
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
37513
|
+
columns: ["employee_id"];
|
|
37514
|
+
isOneToOne: false;
|
|
37515
|
+
referencedRelation: "profiles";
|
|
37516
|
+
referencedColumns: ["id"];
|
|
37517
|
+
}];
|
|
37518
|
+
};
|
|
36477
37519
|
sidebar_config: {
|
|
36478
37520
|
Row: {
|
|
36479
37521
|
id: string;
|
|
@@ -41158,6 +42200,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
41158
42200
|
};
|
|
41159
42201
|
Returns: string;
|
|
41160
42202
|
};
|
|
42203
|
+
employee_day_hours: {
|
|
42204
|
+
Args: {
|
|
42205
|
+
_day: string;
|
|
42206
|
+
_employee_id: string;
|
|
42207
|
+
};
|
|
42208
|
+
Returns: number;
|
|
42209
|
+
};
|
|
41161
42210
|
enqueue_cart_replan_if_unlocked: {
|
|
41162
42211
|
Args: {
|
|
41163
42212
|
p_order_id: string;
|
|
@@ -41511,6 +42560,19 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
41511
42560
|
Args: never;
|
|
41512
42561
|
Returns: boolean;
|
|
41513
42562
|
};
|
|
42563
|
+
itk_offerte_naar_werkbon: {
|
|
42564
|
+
Args: {
|
|
42565
|
+
_offerte_id: string;
|
|
42566
|
+
};
|
|
42567
|
+
Returns: string;
|
|
42568
|
+
};
|
|
42569
|
+
itk_offerte_restant_mandaat: {
|
|
42570
|
+
Args: {
|
|
42571
|
+
_exclude_offerte_id?: string;
|
|
42572
|
+
_werkbon_id: string;
|
|
42573
|
+
};
|
|
42574
|
+
Returns: number;
|
|
42575
|
+
};
|
|
41514
42576
|
jwt_has_role: {
|
|
41515
42577
|
Args: {
|
|
41516
42578
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -41521,9 +42583,19 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
41521
42583
|
Args: never;
|
|
41522
42584
|
Returns: {
|
|
41523
42585
|
avatar_url: string;
|
|
42586
|
+
color: string;
|
|
41524
42587
|
display_name: string;
|
|
41525
42588
|
email: string;
|
|
42589
|
+
hours_fri: number;
|
|
42590
|
+
hours_mon: number;
|
|
42591
|
+
hours_thu: number;
|
|
42592
|
+
hours_tue: number;
|
|
42593
|
+
hours_wed: number;
|
|
41526
42594
|
id: string;
|
|
42595
|
+
is_active: boolean;
|
|
42596
|
+
leave_balance_hours: number;
|
|
42597
|
+
persnr: string;
|
|
42598
|
+
phone: string;
|
|
41527
42599
|
roles: string[];
|
|
41528
42600
|
}[];
|
|
41529
42601
|
};
|
|
@@ -41850,17 +42922,6 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
41850
42922
|
Returns: string;
|
|
41851
42923
|
};
|
|
41852
42924
|
logistics_emit_event: {
|
|
41853
|
-
Args: {
|
|
41854
|
-
p_event_type: string;
|
|
41855
|
-
p_idempotency_key?: string;
|
|
41856
|
-
p_order_ref: string;
|
|
41857
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
41858
|
-
p_shadow?: boolean;
|
|
41859
|
-
p_source_module: string;
|
|
41860
|
-
p_strategy_id?: string;
|
|
41861
|
-
};
|
|
41862
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
41863
|
-
} | {
|
|
41864
42925
|
Args: {
|
|
41865
42926
|
p_event_type: string;
|
|
41866
42927
|
p_idempotency_key?: string;
|
|
@@ -42705,6 +43766,37 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
42705
43766
|
};
|
|
42706
43767
|
Returns: undefined;
|
|
42707
43768
|
};
|
|
43769
|
+
quote_create_from_source: {
|
|
43770
|
+
Args: {
|
|
43771
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
43772
|
+
_source_id: string;
|
|
43773
|
+
_source_type: string;
|
|
43774
|
+
};
|
|
43775
|
+
Returns: string;
|
|
43776
|
+
};
|
|
43777
|
+
quote_get_billable_lines: {
|
|
43778
|
+
Args: {
|
|
43779
|
+
_quotation_id: string;
|
|
43780
|
+
};
|
|
43781
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43782
|
+
};
|
|
43783
|
+
quote_get_summary: {
|
|
43784
|
+
Args: {
|
|
43785
|
+
_quotation_id: string;
|
|
43786
|
+
};
|
|
43787
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43788
|
+
};
|
|
43789
|
+
quote_list_packages: {
|
|
43790
|
+
Args: never;
|
|
43791
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43792
|
+
};
|
|
43793
|
+
quote_list_sources: {
|
|
43794
|
+
Args: {
|
|
43795
|
+
_limit?: number;
|
|
43796
|
+
_source_type?: string;
|
|
43797
|
+
};
|
|
43798
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43799
|
+
};
|
|
42708
43800
|
recompute_all_reserved_stock: {
|
|
42709
43801
|
Args: never;
|
|
42710
43802
|
Returns: undefined;
|
|
@@ -43240,6 +44332,12 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
43240
44332
|
};
|
|
43241
44333
|
Returns: undefined;
|
|
43242
44334
|
};
|
|
44335
|
+
sync_sick_time_off: {
|
|
44336
|
+
Args: {
|
|
44337
|
+
_period_id: string;
|
|
44338
|
+
};
|
|
44339
|
+
Returns: number;
|
|
44340
|
+
};
|
|
43243
44341
|
trade_item_stock_duplicates: {
|
|
43244
44342
|
Args: never;
|
|
43245
44343
|
Returns: {
|
|
@@ -43313,11 +44411,31 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
43313
44411
|
Args: never;
|
|
43314
44412
|
Returns: string;
|
|
43315
44413
|
};
|
|
44414
|
+
wo_create_from_source: {
|
|
44415
|
+
Args: {
|
|
44416
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
44417
|
+
_source_id: string;
|
|
44418
|
+
_source_type: string;
|
|
44419
|
+
};
|
|
44420
|
+
Returns: string;
|
|
44421
|
+
};
|
|
44422
|
+
wo_get_billable_lines: {
|
|
44423
|
+
Args: {
|
|
44424
|
+
_work_order_id: string;
|
|
44425
|
+
};
|
|
44426
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44427
|
+
};
|
|
44428
|
+
wo_get_summary: {
|
|
44429
|
+
Args: {
|
|
44430
|
+
_work_order_id: string;
|
|
44431
|
+
};
|
|
44432
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44433
|
+
};
|
|
43316
44434
|
};
|
|
43317
44435
|
Enums: {
|
|
43318
44436
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
43319
44437
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
43320
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
44438
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
43321
44439
|
doc_orientation: "portrait" | "landscape";
|
|
43322
44440
|
exact_env: "staging" | "live";
|
|
43323
44441
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -48397,6 +49515,42 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
48397
49515
|
};
|
|
48398
49516
|
Relationships: [];
|
|
48399
49517
|
};
|
|
49518
|
+
facturen: {
|
|
49519
|
+
Row: {
|
|
49520
|
+
bedrag_incl_btw: number;
|
|
49521
|
+
created_at: string;
|
|
49522
|
+
datum: string;
|
|
49523
|
+
factuurnummer: string;
|
|
49524
|
+
id: string;
|
|
49525
|
+
klantnaam: string;
|
|
49526
|
+
status: string;
|
|
49527
|
+
updated_at: string;
|
|
49528
|
+
user_id: string;
|
|
49529
|
+
};
|
|
49530
|
+
Insert: {
|
|
49531
|
+
bedrag_incl_btw: number;
|
|
49532
|
+
created_at?: string;
|
|
49533
|
+
datum?: string;
|
|
49534
|
+
factuurnummer: string;
|
|
49535
|
+
id?: string;
|
|
49536
|
+
klantnaam: string;
|
|
49537
|
+
status?: string;
|
|
49538
|
+
updated_at?: string;
|
|
49539
|
+
user_id?: string;
|
|
49540
|
+
};
|
|
49541
|
+
Update: {
|
|
49542
|
+
bedrag_incl_btw?: number;
|
|
49543
|
+
created_at?: string;
|
|
49544
|
+
datum?: string;
|
|
49545
|
+
factuurnummer?: string;
|
|
49546
|
+
id?: string;
|
|
49547
|
+
klantnaam?: string;
|
|
49548
|
+
status?: string;
|
|
49549
|
+
updated_at?: string;
|
|
49550
|
+
user_id?: string;
|
|
49551
|
+
};
|
|
49552
|
+
Relationships: [];
|
|
49553
|
+
};
|
|
48400
49554
|
floricode_connection_settings: {
|
|
48401
49555
|
Row: {
|
|
48402
49556
|
catalog_key: string | null;
|
|
@@ -51121,6 +52275,258 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
51121
52275
|
};
|
|
51122
52276
|
Relationships: [];
|
|
51123
52277
|
};
|
|
52278
|
+
itk_offerte_events: {
|
|
52279
|
+
Row: {
|
|
52280
|
+
created_at: string;
|
|
52281
|
+
event_type: string;
|
|
52282
|
+
id: string;
|
|
52283
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
52284
|
+
offerte_id: string;
|
|
52285
|
+
omschrijving: string | null;
|
|
52286
|
+
user_id: string | null;
|
|
52287
|
+
};
|
|
52288
|
+
Insert: {
|
|
52289
|
+
created_at?: string;
|
|
52290
|
+
event_type: string;
|
|
52291
|
+
id?: string;
|
|
52292
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52293
|
+
offerte_id: string;
|
|
52294
|
+
omschrijving?: string | null;
|
|
52295
|
+
user_id?: string | null;
|
|
52296
|
+
};
|
|
52297
|
+
Update: {
|
|
52298
|
+
created_at?: string;
|
|
52299
|
+
event_type?: string;
|
|
52300
|
+
id?: string;
|
|
52301
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52302
|
+
offerte_id?: string;
|
|
52303
|
+
omschrijving?: string | null;
|
|
52304
|
+
user_id?: string | null;
|
|
52305
|
+
};
|
|
52306
|
+
Relationships: [{
|
|
52307
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
52308
|
+
columns: ["offerte_id"];
|
|
52309
|
+
isOneToOne: false;
|
|
52310
|
+
referencedRelation: "itk_offertes";
|
|
52311
|
+
referencedColumns: ["id"];
|
|
52312
|
+
}];
|
|
52313
|
+
};
|
|
52314
|
+
itk_offerte_regels: {
|
|
52315
|
+
Row: {
|
|
52316
|
+
created_at: string;
|
|
52317
|
+
id: string;
|
|
52318
|
+
line_total_cents: number;
|
|
52319
|
+
offerte_id: string;
|
|
52320
|
+
omschrijving: string;
|
|
52321
|
+
package_id: string | null;
|
|
52322
|
+
quantity: number;
|
|
52323
|
+
sort_order: number;
|
|
52324
|
+
source: string;
|
|
52325
|
+
unit_price_cents: number;
|
|
52326
|
+
updated_at: string;
|
|
52327
|
+
};
|
|
52328
|
+
Insert: {
|
|
52329
|
+
created_at?: string;
|
|
52330
|
+
id?: string;
|
|
52331
|
+
line_total_cents?: number;
|
|
52332
|
+
offerte_id: string;
|
|
52333
|
+
omschrijving?: string;
|
|
52334
|
+
package_id?: string | null;
|
|
52335
|
+
quantity?: number;
|
|
52336
|
+
sort_order?: number;
|
|
52337
|
+
source?: string;
|
|
52338
|
+
unit_price_cents?: number;
|
|
52339
|
+
updated_at?: string;
|
|
52340
|
+
};
|
|
52341
|
+
Update: {
|
|
52342
|
+
created_at?: string;
|
|
52343
|
+
id?: string;
|
|
52344
|
+
line_total_cents?: number;
|
|
52345
|
+
offerte_id?: string;
|
|
52346
|
+
omschrijving?: string;
|
|
52347
|
+
package_id?: string | null;
|
|
52348
|
+
quantity?: number;
|
|
52349
|
+
sort_order?: number;
|
|
52350
|
+
source?: string;
|
|
52351
|
+
unit_price_cents?: number;
|
|
52352
|
+
updated_at?: string;
|
|
52353
|
+
};
|
|
52354
|
+
Relationships: [{
|
|
52355
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
52356
|
+
columns: ["offerte_id"];
|
|
52357
|
+
isOneToOne: false;
|
|
52358
|
+
referencedRelation: "itk_offertes";
|
|
52359
|
+
referencedColumns: ["id"];
|
|
52360
|
+
}, {
|
|
52361
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
52362
|
+
columns: ["package_id"];
|
|
52363
|
+
isOneToOne: false;
|
|
52364
|
+
referencedRelation: "werkbon_packages";
|
|
52365
|
+
referencedColumns: ["id"];
|
|
52366
|
+
}];
|
|
52367
|
+
};
|
|
52368
|
+
itk_offerte_settings: {
|
|
52369
|
+
Row: {
|
|
52370
|
+
auto_convert_binnen_mandaat: boolean;
|
|
52371
|
+
created_at: string;
|
|
52372
|
+
default_geldigheid_dagen: number;
|
|
52373
|
+
default_vat_rate: number;
|
|
52374
|
+
id: string;
|
|
52375
|
+
singleton: boolean;
|
|
52376
|
+
updated_at: string;
|
|
52377
|
+
};
|
|
52378
|
+
Insert: {
|
|
52379
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52380
|
+
created_at?: string;
|
|
52381
|
+
default_geldigheid_dagen?: number;
|
|
52382
|
+
default_vat_rate?: number;
|
|
52383
|
+
id?: string;
|
|
52384
|
+
singleton?: boolean;
|
|
52385
|
+
updated_at?: string;
|
|
52386
|
+
};
|
|
52387
|
+
Update: {
|
|
52388
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52389
|
+
created_at?: string;
|
|
52390
|
+
default_geldigheid_dagen?: number;
|
|
52391
|
+
default_vat_rate?: number;
|
|
52392
|
+
id?: string;
|
|
52393
|
+
singleton?: boolean;
|
|
52394
|
+
updated_at?: string;
|
|
52395
|
+
};
|
|
52396
|
+
Relationships: [];
|
|
52397
|
+
};
|
|
52398
|
+
itk_offertes: {
|
|
52399
|
+
Row: {
|
|
52400
|
+
ai_generated: boolean;
|
|
52401
|
+
approved_at: string | null;
|
|
52402
|
+
binnen_mandaat: boolean;
|
|
52403
|
+
contact_id: string | null;
|
|
52404
|
+
converted_at: string | null;
|
|
52405
|
+
created_at: string;
|
|
52406
|
+
created_by: string | null;
|
|
52407
|
+
customer_id: string | null;
|
|
52408
|
+
follow_up_werkbon_id: string | null;
|
|
52409
|
+
id: string;
|
|
52410
|
+
jaar: number;
|
|
52411
|
+
mandaat_restant_cents: number;
|
|
52412
|
+
notities: string | null;
|
|
52413
|
+
offerte_number: string | null;
|
|
52414
|
+
omschrijving: string;
|
|
52415
|
+
rejected_at: string | null;
|
|
52416
|
+
sent_at: string | null;
|
|
52417
|
+
source_number: string | null;
|
|
52418
|
+
source_ref: string | null;
|
|
52419
|
+
source_type: string;
|
|
52420
|
+
status: string;
|
|
52421
|
+
subtotal_cents: number;
|
|
52422
|
+
total_cents: number;
|
|
52423
|
+
updated_at: string;
|
|
52424
|
+
valid_until: string | null;
|
|
52425
|
+
vat_cents: number;
|
|
52426
|
+
vat_rate: number;
|
|
52427
|
+
viewed_at: string | null;
|
|
52428
|
+
volgnummer: number | null;
|
|
52429
|
+
werkbon_id: string | null;
|
|
52430
|
+
work_location_id: string | null;
|
|
52431
|
+
};
|
|
52432
|
+
Insert: {
|
|
52433
|
+
ai_generated?: boolean;
|
|
52434
|
+
approved_at?: string | null;
|
|
52435
|
+
binnen_mandaat?: boolean;
|
|
52436
|
+
contact_id?: string | null;
|
|
52437
|
+
converted_at?: string | null;
|
|
52438
|
+
created_at?: string;
|
|
52439
|
+
created_by?: string | null;
|
|
52440
|
+
customer_id?: string | null;
|
|
52441
|
+
follow_up_werkbon_id?: string | null;
|
|
52442
|
+
id?: string;
|
|
52443
|
+
jaar?: number;
|
|
52444
|
+
mandaat_restant_cents?: number;
|
|
52445
|
+
notities?: string | null;
|
|
52446
|
+
offerte_number?: string | null;
|
|
52447
|
+
omschrijving?: string;
|
|
52448
|
+
rejected_at?: string | null;
|
|
52449
|
+
sent_at?: string | null;
|
|
52450
|
+
source_number?: string | null;
|
|
52451
|
+
source_ref?: string | null;
|
|
52452
|
+
source_type?: string;
|
|
52453
|
+
status?: string;
|
|
52454
|
+
subtotal_cents?: number;
|
|
52455
|
+
total_cents?: number;
|
|
52456
|
+
updated_at?: string;
|
|
52457
|
+
valid_until?: string | null;
|
|
52458
|
+
vat_cents?: number;
|
|
52459
|
+
vat_rate?: number;
|
|
52460
|
+
viewed_at?: string | null;
|
|
52461
|
+
volgnummer?: number | null;
|
|
52462
|
+
werkbon_id?: string | null;
|
|
52463
|
+
work_location_id?: string | null;
|
|
52464
|
+
};
|
|
52465
|
+
Update: {
|
|
52466
|
+
ai_generated?: boolean;
|
|
52467
|
+
approved_at?: string | null;
|
|
52468
|
+
binnen_mandaat?: boolean;
|
|
52469
|
+
contact_id?: string | null;
|
|
52470
|
+
converted_at?: string | null;
|
|
52471
|
+
created_at?: string;
|
|
52472
|
+
created_by?: string | null;
|
|
52473
|
+
customer_id?: string | null;
|
|
52474
|
+
follow_up_werkbon_id?: string | null;
|
|
52475
|
+
id?: string;
|
|
52476
|
+
jaar?: number;
|
|
52477
|
+
mandaat_restant_cents?: number;
|
|
52478
|
+
notities?: string | null;
|
|
52479
|
+
offerte_number?: string | null;
|
|
52480
|
+
omschrijving?: string;
|
|
52481
|
+
rejected_at?: string | null;
|
|
52482
|
+
sent_at?: string | null;
|
|
52483
|
+
source_number?: string | null;
|
|
52484
|
+
source_ref?: string | null;
|
|
52485
|
+
source_type?: string;
|
|
52486
|
+
status?: string;
|
|
52487
|
+
subtotal_cents?: number;
|
|
52488
|
+
total_cents?: number;
|
|
52489
|
+
updated_at?: string;
|
|
52490
|
+
valid_until?: string | null;
|
|
52491
|
+
vat_cents?: number;
|
|
52492
|
+
vat_rate?: number;
|
|
52493
|
+
viewed_at?: string | null;
|
|
52494
|
+
volgnummer?: number | null;
|
|
52495
|
+
werkbon_id?: string | null;
|
|
52496
|
+
work_location_id?: string | null;
|
|
52497
|
+
};
|
|
52498
|
+
Relationships: [{
|
|
52499
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
52500
|
+
columns: ["contact_id"];
|
|
52501
|
+
isOneToOne: false;
|
|
52502
|
+
referencedRelation: "itk_contact_persons";
|
|
52503
|
+
referencedColumns: ["id"];
|
|
52504
|
+
}, {
|
|
52505
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
52506
|
+
columns: ["customer_id"];
|
|
52507
|
+
isOneToOne: false;
|
|
52508
|
+
referencedRelation: "itk_customers";
|
|
52509
|
+
referencedColumns: ["id"];
|
|
52510
|
+
}, {
|
|
52511
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
52512
|
+
columns: ["follow_up_werkbon_id"];
|
|
52513
|
+
isOneToOne: false;
|
|
52514
|
+
referencedRelation: "werkbonnen";
|
|
52515
|
+
referencedColumns: ["id"];
|
|
52516
|
+
}, {
|
|
52517
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
52518
|
+
columns: ["werkbon_id"];
|
|
52519
|
+
isOneToOne: false;
|
|
52520
|
+
referencedRelation: "werkbonnen";
|
|
52521
|
+
referencedColumns: ["id"];
|
|
52522
|
+
}, {
|
|
52523
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
52524
|
+
columns: ["work_location_id"];
|
|
52525
|
+
isOneToOne: false;
|
|
52526
|
+
referencedRelation: "itk_work_locations";
|
|
52527
|
+
referencedColumns: ["id"];
|
|
52528
|
+
}];
|
|
52529
|
+
};
|
|
51124
52530
|
itk_work_locations: {
|
|
51125
52531
|
Row: {
|
|
51126
52532
|
city: string | null;
|
|
@@ -53494,6 +54900,63 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
53494
54900
|
referencedColumns: ["id"];
|
|
53495
54901
|
}];
|
|
53496
54902
|
};
|
|
54903
|
+
medewerker_details: {
|
|
54904
|
+
Row: {
|
|
54905
|
+
color: string | null;
|
|
54906
|
+
created_at: string;
|
|
54907
|
+
hours_fri: number | null;
|
|
54908
|
+
hours_mon: number | null;
|
|
54909
|
+
hours_thu: number | null;
|
|
54910
|
+
hours_tue: number | null;
|
|
54911
|
+
hours_wed: number | null;
|
|
54912
|
+
id: string;
|
|
54913
|
+
is_active: boolean;
|
|
54914
|
+
leave_balance_hours: number;
|
|
54915
|
+
persnr: string | null;
|
|
54916
|
+
phone: string | null;
|
|
54917
|
+
profile_id: string;
|
|
54918
|
+
updated_at: string;
|
|
54919
|
+
};
|
|
54920
|
+
Insert: {
|
|
54921
|
+
color?: string | null;
|
|
54922
|
+
created_at?: string;
|
|
54923
|
+
hours_fri?: number | null;
|
|
54924
|
+
hours_mon?: number | null;
|
|
54925
|
+
hours_thu?: number | null;
|
|
54926
|
+
hours_tue?: number | null;
|
|
54927
|
+
hours_wed?: number | null;
|
|
54928
|
+
id?: string;
|
|
54929
|
+
is_active?: boolean;
|
|
54930
|
+
leave_balance_hours?: number;
|
|
54931
|
+
persnr?: string | null;
|
|
54932
|
+
phone?: string | null;
|
|
54933
|
+
profile_id: string;
|
|
54934
|
+
updated_at?: string;
|
|
54935
|
+
};
|
|
54936
|
+
Update: {
|
|
54937
|
+
color?: string | null;
|
|
54938
|
+
created_at?: string;
|
|
54939
|
+
hours_fri?: number | null;
|
|
54940
|
+
hours_mon?: number | null;
|
|
54941
|
+
hours_thu?: number | null;
|
|
54942
|
+
hours_tue?: number | null;
|
|
54943
|
+
hours_wed?: number | null;
|
|
54944
|
+
id?: string;
|
|
54945
|
+
is_active?: boolean;
|
|
54946
|
+
leave_balance_hours?: number;
|
|
54947
|
+
persnr?: string | null;
|
|
54948
|
+
phone?: string | null;
|
|
54949
|
+
profile_id?: string;
|
|
54950
|
+
updated_at?: string;
|
|
54951
|
+
};
|
|
54952
|
+
Relationships: [{
|
|
54953
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
54954
|
+
columns: ["profile_id"];
|
|
54955
|
+
isOneToOne: true;
|
|
54956
|
+
referencedRelation: "profiles";
|
|
54957
|
+
referencedColumns: ["id"];
|
|
54958
|
+
}];
|
|
54959
|
+
};
|
|
53497
54960
|
module_features: {
|
|
53498
54961
|
Row: {
|
|
53499
54962
|
created_at: string;
|
|
@@ -54787,6 +56250,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
54787
56250
|
orders: {
|
|
54788
56251
|
Row: {
|
|
54789
56252
|
buffer_id: string | null;
|
|
56253
|
+
cancel_reason: string | null;
|
|
56254
|
+
cancelled_at: string | null;
|
|
54790
56255
|
created_at: string;
|
|
54791
56256
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
54792
56257
|
customer_id: string | null;
|
|
@@ -54809,6 +56274,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
54809
56274
|
};
|
|
54810
56275
|
Insert: {
|
|
54811
56276
|
buffer_id?: string | null;
|
|
56277
|
+
cancel_reason?: string | null;
|
|
56278
|
+
cancelled_at?: string | null;
|
|
54812
56279
|
created_at?: string;
|
|
54813
56280
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54814
56281
|
customer_id?: string | null;
|
|
@@ -54831,6 +56298,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
54831
56298
|
};
|
|
54832
56299
|
Update: {
|
|
54833
56300
|
buffer_id?: string | null;
|
|
56301
|
+
cancel_reason?: string | null;
|
|
56302
|
+
cancelled_at?: string | null;
|
|
54834
56303
|
created_at?: string;
|
|
54835
56304
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54836
56305
|
customer_id?: string | null;
|
|
@@ -56893,6 +58362,66 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
56893
58362
|
};
|
|
56894
58363
|
Relationships: [];
|
|
56895
58364
|
};
|
|
58365
|
+
profile_modules: {
|
|
58366
|
+
Row: {
|
|
58367
|
+
created_at: string;
|
|
58368
|
+
id: string;
|
|
58369
|
+
module_id: string;
|
|
58370
|
+
profile_id: string;
|
|
58371
|
+
};
|
|
58372
|
+
Insert: {
|
|
58373
|
+
created_at?: string;
|
|
58374
|
+
id?: string;
|
|
58375
|
+
module_id: string;
|
|
58376
|
+
profile_id: string;
|
|
58377
|
+
};
|
|
58378
|
+
Update: {
|
|
58379
|
+
created_at?: string;
|
|
58380
|
+
id?: string;
|
|
58381
|
+
module_id?: string;
|
|
58382
|
+
profile_id?: string;
|
|
58383
|
+
};
|
|
58384
|
+
Relationships: [{
|
|
58385
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
58386
|
+
columns: ["profile_id"];
|
|
58387
|
+
isOneToOne: false;
|
|
58388
|
+
referencedRelation: "profiles_org";
|
|
58389
|
+
referencedColumns: ["id"];
|
|
58390
|
+
}];
|
|
58391
|
+
};
|
|
58392
|
+
profile_roles: {
|
|
58393
|
+
Row: {
|
|
58394
|
+
created_at: string;
|
|
58395
|
+
id: string;
|
|
58396
|
+
profile_id: string;
|
|
58397
|
+
role_id: string;
|
|
58398
|
+
};
|
|
58399
|
+
Insert: {
|
|
58400
|
+
created_at?: string;
|
|
58401
|
+
id?: string;
|
|
58402
|
+
profile_id: string;
|
|
58403
|
+
role_id: string;
|
|
58404
|
+
};
|
|
58405
|
+
Update: {
|
|
58406
|
+
created_at?: string;
|
|
58407
|
+
id?: string;
|
|
58408
|
+
profile_id?: string;
|
|
58409
|
+
role_id?: string;
|
|
58410
|
+
};
|
|
58411
|
+
Relationships: [{
|
|
58412
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
58413
|
+
columns: ["profile_id"];
|
|
58414
|
+
isOneToOne: false;
|
|
58415
|
+
referencedRelation: "profiles_org";
|
|
58416
|
+
referencedColumns: ["id"];
|
|
58417
|
+
}, {
|
|
58418
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
58419
|
+
columns: ["role_id"];
|
|
58420
|
+
isOneToOne: false;
|
|
58421
|
+
referencedRelation: "roles";
|
|
58422
|
+
referencedColumns: ["id"];
|
|
58423
|
+
}];
|
|
58424
|
+
};
|
|
56896
58425
|
profiles: {
|
|
56897
58426
|
Row: {
|
|
56898
58427
|
address: string | null;
|
|
@@ -56938,6 +58467,39 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
56938
58467
|
referencedColumns: ["id"];
|
|
56939
58468
|
}];
|
|
56940
58469
|
};
|
|
58470
|
+
profiles_org: {
|
|
58471
|
+
Row: {
|
|
58472
|
+
created_at: string;
|
|
58473
|
+
id: string;
|
|
58474
|
+
is_default: boolean;
|
|
58475
|
+
name: string;
|
|
58476
|
+
tenant_id: string | null;
|
|
58477
|
+
updated_at: string;
|
|
58478
|
+
};
|
|
58479
|
+
Insert: {
|
|
58480
|
+
created_at?: string;
|
|
58481
|
+
id?: string;
|
|
58482
|
+
is_default?: boolean;
|
|
58483
|
+
name: string;
|
|
58484
|
+
tenant_id?: string | null;
|
|
58485
|
+
updated_at?: string;
|
|
58486
|
+
};
|
|
58487
|
+
Update: {
|
|
58488
|
+
created_at?: string;
|
|
58489
|
+
id?: string;
|
|
58490
|
+
is_default?: boolean;
|
|
58491
|
+
name?: string;
|
|
58492
|
+
tenant_id?: string | null;
|
|
58493
|
+
updated_at?: string;
|
|
58494
|
+
};
|
|
58495
|
+
Relationships: [{
|
|
58496
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
58497
|
+
columns: ["tenant_id"];
|
|
58498
|
+
isOneToOne: false;
|
|
58499
|
+
referencedRelation: "tenants";
|
|
58500
|
+
referencedColumns: ["id"];
|
|
58501
|
+
}];
|
|
58502
|
+
};
|
|
56941
58503
|
projects: {
|
|
56942
58504
|
Row: {
|
|
56943
58505
|
contact_name: string | null;
|
|
@@ -58112,6 +59674,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
58112
59674
|
type: string;
|
|
58113
59675
|
updated_at: string;
|
|
58114
59676
|
vereist_medewerker: boolean;
|
|
59677
|
+
werkplek: string | null;
|
|
58115
59678
|
};
|
|
58116
59679
|
Insert: {
|
|
58117
59680
|
actief?: boolean;
|
|
@@ -58125,6 +59688,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
58125
59688
|
type?: string;
|
|
58126
59689
|
updated_at?: string;
|
|
58127
59690
|
vereist_medewerker?: boolean;
|
|
59691
|
+
werkplek?: string | null;
|
|
58128
59692
|
};
|
|
58129
59693
|
Update: {
|
|
58130
59694
|
actief?: boolean;
|
|
@@ -58138,9 +59702,46 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
58138
59702
|
type?: string;
|
|
58139
59703
|
updated_at?: string;
|
|
58140
59704
|
vereist_medewerker?: boolean;
|
|
59705
|
+
werkplek?: string | null;
|
|
58141
59706
|
};
|
|
58142
59707
|
Relationships: [];
|
|
58143
59708
|
};
|
|
59709
|
+
sick_periods: {
|
|
59710
|
+
Row: {
|
|
59711
|
+
created_at: string;
|
|
59712
|
+
employee_id: string;
|
|
59713
|
+
end_date: string | null;
|
|
59714
|
+
id: string;
|
|
59715
|
+
notes: string | null;
|
|
59716
|
+
start_date: string;
|
|
59717
|
+
updated_at: string;
|
|
59718
|
+
};
|
|
59719
|
+
Insert: {
|
|
59720
|
+
created_at?: string;
|
|
59721
|
+
employee_id: string;
|
|
59722
|
+
end_date?: string | null;
|
|
59723
|
+
id?: string;
|
|
59724
|
+
notes?: string | null;
|
|
59725
|
+
start_date: string;
|
|
59726
|
+
updated_at?: string;
|
|
59727
|
+
};
|
|
59728
|
+
Update: {
|
|
59729
|
+
created_at?: string;
|
|
59730
|
+
employee_id?: string;
|
|
59731
|
+
end_date?: string | null;
|
|
59732
|
+
id?: string;
|
|
59733
|
+
notes?: string | null;
|
|
59734
|
+
start_date?: string;
|
|
59735
|
+
updated_at?: string;
|
|
59736
|
+
};
|
|
59737
|
+
Relationships: [{
|
|
59738
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
59739
|
+
columns: ["employee_id"];
|
|
59740
|
+
isOneToOne: false;
|
|
59741
|
+
referencedRelation: "profiles";
|
|
59742
|
+
referencedColumns: ["id"];
|
|
59743
|
+
}];
|
|
59744
|
+
};
|
|
58144
59745
|
sidebar_config: {
|
|
58145
59746
|
Row: {
|
|
58146
59747
|
id: string;
|
|
@@ -62825,6 +64426,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
62825
64426
|
};
|
|
62826
64427
|
Returns: string;
|
|
62827
64428
|
};
|
|
64429
|
+
employee_day_hours: {
|
|
64430
|
+
Args: {
|
|
64431
|
+
_day: string;
|
|
64432
|
+
_employee_id: string;
|
|
64433
|
+
};
|
|
64434
|
+
Returns: number;
|
|
64435
|
+
};
|
|
62828
64436
|
enqueue_cart_replan_if_unlocked: {
|
|
62829
64437
|
Args: {
|
|
62830
64438
|
p_order_id: string;
|
|
@@ -63178,6 +64786,19 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
63178
64786
|
Args: never;
|
|
63179
64787
|
Returns: boolean;
|
|
63180
64788
|
};
|
|
64789
|
+
itk_offerte_naar_werkbon: {
|
|
64790
|
+
Args: {
|
|
64791
|
+
_offerte_id: string;
|
|
64792
|
+
};
|
|
64793
|
+
Returns: string;
|
|
64794
|
+
};
|
|
64795
|
+
itk_offerte_restant_mandaat: {
|
|
64796
|
+
Args: {
|
|
64797
|
+
_exclude_offerte_id?: string;
|
|
64798
|
+
_werkbon_id: string;
|
|
64799
|
+
};
|
|
64800
|
+
Returns: number;
|
|
64801
|
+
};
|
|
63181
64802
|
jwt_has_role: {
|
|
63182
64803
|
Args: {
|
|
63183
64804
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -63188,9 +64809,19 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
63188
64809
|
Args: never;
|
|
63189
64810
|
Returns: {
|
|
63190
64811
|
avatar_url: string;
|
|
64812
|
+
color: string;
|
|
63191
64813
|
display_name: string;
|
|
63192
64814
|
email: string;
|
|
64815
|
+
hours_fri: number;
|
|
64816
|
+
hours_mon: number;
|
|
64817
|
+
hours_thu: number;
|
|
64818
|
+
hours_tue: number;
|
|
64819
|
+
hours_wed: number;
|
|
63193
64820
|
id: string;
|
|
64821
|
+
is_active: boolean;
|
|
64822
|
+
leave_balance_hours: number;
|
|
64823
|
+
persnr: string;
|
|
64824
|
+
phone: string;
|
|
63194
64825
|
roles: string[];
|
|
63195
64826
|
}[];
|
|
63196
64827
|
};
|
|
@@ -63517,17 +65148,6 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
63517
65148
|
Returns: string;
|
|
63518
65149
|
};
|
|
63519
65150
|
logistics_emit_event: {
|
|
63520
|
-
Args: {
|
|
63521
|
-
p_event_type: string;
|
|
63522
|
-
p_idempotency_key?: string;
|
|
63523
|
-
p_order_ref: string;
|
|
63524
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
63525
|
-
p_shadow?: boolean;
|
|
63526
|
-
p_source_module: string;
|
|
63527
|
-
p_strategy_id?: string;
|
|
63528
|
-
};
|
|
63529
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
63530
|
-
} | {
|
|
63531
65151
|
Args: {
|
|
63532
65152
|
p_event_type: string;
|
|
63533
65153
|
p_idempotency_key?: string;
|
|
@@ -64372,6 +65992,37 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
64372
65992
|
};
|
|
64373
65993
|
Returns: undefined;
|
|
64374
65994
|
};
|
|
65995
|
+
quote_create_from_source: {
|
|
65996
|
+
Args: {
|
|
65997
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
65998
|
+
_source_id: string;
|
|
65999
|
+
_source_type: string;
|
|
66000
|
+
};
|
|
66001
|
+
Returns: string;
|
|
66002
|
+
};
|
|
66003
|
+
quote_get_billable_lines: {
|
|
66004
|
+
Args: {
|
|
66005
|
+
_quotation_id: string;
|
|
66006
|
+
};
|
|
66007
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66008
|
+
};
|
|
66009
|
+
quote_get_summary: {
|
|
66010
|
+
Args: {
|
|
66011
|
+
_quotation_id: string;
|
|
66012
|
+
};
|
|
66013
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66014
|
+
};
|
|
66015
|
+
quote_list_packages: {
|
|
66016
|
+
Args: never;
|
|
66017
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66018
|
+
};
|
|
66019
|
+
quote_list_sources: {
|
|
66020
|
+
Args: {
|
|
66021
|
+
_limit?: number;
|
|
66022
|
+
_source_type?: string;
|
|
66023
|
+
};
|
|
66024
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66025
|
+
};
|
|
64375
66026
|
recompute_all_reserved_stock: {
|
|
64376
66027
|
Args: never;
|
|
64377
66028
|
Returns: undefined;
|
|
@@ -64907,6 +66558,12 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
64907
66558
|
};
|
|
64908
66559
|
Returns: undefined;
|
|
64909
66560
|
};
|
|
66561
|
+
sync_sick_time_off: {
|
|
66562
|
+
Args: {
|
|
66563
|
+
_period_id: string;
|
|
66564
|
+
};
|
|
66565
|
+
Returns: number;
|
|
66566
|
+
};
|
|
64910
66567
|
trade_item_stock_duplicates: {
|
|
64911
66568
|
Args: never;
|
|
64912
66569
|
Returns: {
|
|
@@ -64980,11 +66637,31 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
64980
66637
|
Args: never;
|
|
64981
66638
|
Returns: string;
|
|
64982
66639
|
};
|
|
66640
|
+
wo_create_from_source: {
|
|
66641
|
+
Args: {
|
|
66642
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
66643
|
+
_source_id: string;
|
|
66644
|
+
_source_type: string;
|
|
66645
|
+
};
|
|
66646
|
+
Returns: string;
|
|
66647
|
+
};
|
|
66648
|
+
wo_get_billable_lines: {
|
|
66649
|
+
Args: {
|
|
66650
|
+
_work_order_id: string;
|
|
66651
|
+
};
|
|
66652
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66653
|
+
};
|
|
66654
|
+
wo_get_summary: {
|
|
66655
|
+
Args: {
|
|
66656
|
+
_work_order_id: string;
|
|
66657
|
+
};
|
|
66658
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66659
|
+
};
|
|
64983
66660
|
};
|
|
64984
66661
|
Enums: {
|
|
64985
66662
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
64986
66663
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
64987
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
66664
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
64988
66665
|
doc_orientation: "portrait" | "landscape";
|
|
64989
66666
|
exact_env: "staging" | "live";
|
|
64990
66667
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -70053,6 +71730,42 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
70053
71730
|
};
|
|
70054
71731
|
Relationships: [];
|
|
70055
71732
|
};
|
|
71733
|
+
facturen: {
|
|
71734
|
+
Row: {
|
|
71735
|
+
bedrag_incl_btw: number;
|
|
71736
|
+
created_at: string;
|
|
71737
|
+
datum: string;
|
|
71738
|
+
factuurnummer: string;
|
|
71739
|
+
id: string;
|
|
71740
|
+
klantnaam: string;
|
|
71741
|
+
status: string;
|
|
71742
|
+
updated_at: string;
|
|
71743
|
+
user_id: string;
|
|
71744
|
+
};
|
|
71745
|
+
Insert: {
|
|
71746
|
+
bedrag_incl_btw: number;
|
|
71747
|
+
created_at?: string;
|
|
71748
|
+
datum?: string;
|
|
71749
|
+
factuurnummer: string;
|
|
71750
|
+
id?: string;
|
|
71751
|
+
klantnaam: string;
|
|
71752
|
+
status?: string;
|
|
71753
|
+
updated_at?: string;
|
|
71754
|
+
user_id?: string;
|
|
71755
|
+
};
|
|
71756
|
+
Update: {
|
|
71757
|
+
bedrag_incl_btw?: number;
|
|
71758
|
+
created_at?: string;
|
|
71759
|
+
datum?: string;
|
|
71760
|
+
factuurnummer?: string;
|
|
71761
|
+
id?: string;
|
|
71762
|
+
klantnaam?: string;
|
|
71763
|
+
status?: string;
|
|
71764
|
+
updated_at?: string;
|
|
71765
|
+
user_id?: string;
|
|
71766
|
+
};
|
|
71767
|
+
Relationships: [];
|
|
71768
|
+
};
|
|
70056
71769
|
floricode_connection_settings: {
|
|
70057
71770
|
Row: {
|
|
70058
71771
|
catalog_key: string | null;
|
|
@@ -72777,6 +74490,258 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
72777
74490
|
};
|
|
72778
74491
|
Relationships: [];
|
|
72779
74492
|
};
|
|
74493
|
+
itk_offerte_events: {
|
|
74494
|
+
Row: {
|
|
74495
|
+
created_at: string;
|
|
74496
|
+
event_type: string;
|
|
74497
|
+
id: string;
|
|
74498
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
74499
|
+
offerte_id: string;
|
|
74500
|
+
omschrijving: string | null;
|
|
74501
|
+
user_id: string | null;
|
|
74502
|
+
};
|
|
74503
|
+
Insert: {
|
|
74504
|
+
created_at?: string;
|
|
74505
|
+
event_type: string;
|
|
74506
|
+
id?: string;
|
|
74507
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
74508
|
+
offerte_id: string;
|
|
74509
|
+
omschrijving?: string | null;
|
|
74510
|
+
user_id?: string | null;
|
|
74511
|
+
};
|
|
74512
|
+
Update: {
|
|
74513
|
+
created_at?: string;
|
|
74514
|
+
event_type?: string;
|
|
74515
|
+
id?: string;
|
|
74516
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
74517
|
+
offerte_id?: string;
|
|
74518
|
+
omschrijving?: string | null;
|
|
74519
|
+
user_id?: string | null;
|
|
74520
|
+
};
|
|
74521
|
+
Relationships: [{
|
|
74522
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
74523
|
+
columns: ["offerte_id"];
|
|
74524
|
+
isOneToOne: false;
|
|
74525
|
+
referencedRelation: "itk_offertes";
|
|
74526
|
+
referencedColumns: ["id"];
|
|
74527
|
+
}];
|
|
74528
|
+
};
|
|
74529
|
+
itk_offerte_regels: {
|
|
74530
|
+
Row: {
|
|
74531
|
+
created_at: string;
|
|
74532
|
+
id: string;
|
|
74533
|
+
line_total_cents: number;
|
|
74534
|
+
offerte_id: string;
|
|
74535
|
+
omschrijving: string;
|
|
74536
|
+
package_id: string | null;
|
|
74537
|
+
quantity: number;
|
|
74538
|
+
sort_order: number;
|
|
74539
|
+
source: string;
|
|
74540
|
+
unit_price_cents: number;
|
|
74541
|
+
updated_at: string;
|
|
74542
|
+
};
|
|
74543
|
+
Insert: {
|
|
74544
|
+
created_at?: string;
|
|
74545
|
+
id?: string;
|
|
74546
|
+
line_total_cents?: number;
|
|
74547
|
+
offerte_id: string;
|
|
74548
|
+
omschrijving?: string;
|
|
74549
|
+
package_id?: string | null;
|
|
74550
|
+
quantity?: number;
|
|
74551
|
+
sort_order?: number;
|
|
74552
|
+
source?: string;
|
|
74553
|
+
unit_price_cents?: number;
|
|
74554
|
+
updated_at?: string;
|
|
74555
|
+
};
|
|
74556
|
+
Update: {
|
|
74557
|
+
created_at?: string;
|
|
74558
|
+
id?: string;
|
|
74559
|
+
line_total_cents?: number;
|
|
74560
|
+
offerte_id?: string;
|
|
74561
|
+
omschrijving?: string;
|
|
74562
|
+
package_id?: string | null;
|
|
74563
|
+
quantity?: number;
|
|
74564
|
+
sort_order?: number;
|
|
74565
|
+
source?: string;
|
|
74566
|
+
unit_price_cents?: number;
|
|
74567
|
+
updated_at?: string;
|
|
74568
|
+
};
|
|
74569
|
+
Relationships: [{
|
|
74570
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
74571
|
+
columns: ["offerte_id"];
|
|
74572
|
+
isOneToOne: false;
|
|
74573
|
+
referencedRelation: "itk_offertes";
|
|
74574
|
+
referencedColumns: ["id"];
|
|
74575
|
+
}, {
|
|
74576
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
74577
|
+
columns: ["package_id"];
|
|
74578
|
+
isOneToOne: false;
|
|
74579
|
+
referencedRelation: "werkbon_packages";
|
|
74580
|
+
referencedColumns: ["id"];
|
|
74581
|
+
}];
|
|
74582
|
+
};
|
|
74583
|
+
itk_offerte_settings: {
|
|
74584
|
+
Row: {
|
|
74585
|
+
auto_convert_binnen_mandaat: boolean;
|
|
74586
|
+
created_at: string;
|
|
74587
|
+
default_geldigheid_dagen: number;
|
|
74588
|
+
default_vat_rate: number;
|
|
74589
|
+
id: string;
|
|
74590
|
+
singleton: boolean;
|
|
74591
|
+
updated_at: string;
|
|
74592
|
+
};
|
|
74593
|
+
Insert: {
|
|
74594
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
74595
|
+
created_at?: string;
|
|
74596
|
+
default_geldigheid_dagen?: number;
|
|
74597
|
+
default_vat_rate?: number;
|
|
74598
|
+
id?: string;
|
|
74599
|
+
singleton?: boolean;
|
|
74600
|
+
updated_at?: string;
|
|
74601
|
+
};
|
|
74602
|
+
Update: {
|
|
74603
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
74604
|
+
created_at?: string;
|
|
74605
|
+
default_geldigheid_dagen?: number;
|
|
74606
|
+
default_vat_rate?: number;
|
|
74607
|
+
id?: string;
|
|
74608
|
+
singleton?: boolean;
|
|
74609
|
+
updated_at?: string;
|
|
74610
|
+
};
|
|
74611
|
+
Relationships: [];
|
|
74612
|
+
};
|
|
74613
|
+
itk_offertes: {
|
|
74614
|
+
Row: {
|
|
74615
|
+
ai_generated: boolean;
|
|
74616
|
+
approved_at: string | null;
|
|
74617
|
+
binnen_mandaat: boolean;
|
|
74618
|
+
contact_id: string | null;
|
|
74619
|
+
converted_at: string | null;
|
|
74620
|
+
created_at: string;
|
|
74621
|
+
created_by: string | null;
|
|
74622
|
+
customer_id: string | null;
|
|
74623
|
+
follow_up_werkbon_id: string | null;
|
|
74624
|
+
id: string;
|
|
74625
|
+
jaar: number;
|
|
74626
|
+
mandaat_restant_cents: number;
|
|
74627
|
+
notities: string | null;
|
|
74628
|
+
offerte_number: string | null;
|
|
74629
|
+
omschrijving: string;
|
|
74630
|
+
rejected_at: string | null;
|
|
74631
|
+
sent_at: string | null;
|
|
74632
|
+
source_number: string | null;
|
|
74633
|
+
source_ref: string | null;
|
|
74634
|
+
source_type: string;
|
|
74635
|
+
status: string;
|
|
74636
|
+
subtotal_cents: number;
|
|
74637
|
+
total_cents: number;
|
|
74638
|
+
updated_at: string;
|
|
74639
|
+
valid_until: string | null;
|
|
74640
|
+
vat_cents: number;
|
|
74641
|
+
vat_rate: number;
|
|
74642
|
+
viewed_at: string | null;
|
|
74643
|
+
volgnummer: number | null;
|
|
74644
|
+
werkbon_id: string | null;
|
|
74645
|
+
work_location_id: string | null;
|
|
74646
|
+
};
|
|
74647
|
+
Insert: {
|
|
74648
|
+
ai_generated?: boolean;
|
|
74649
|
+
approved_at?: string | null;
|
|
74650
|
+
binnen_mandaat?: boolean;
|
|
74651
|
+
contact_id?: string | null;
|
|
74652
|
+
converted_at?: string | null;
|
|
74653
|
+
created_at?: string;
|
|
74654
|
+
created_by?: string | null;
|
|
74655
|
+
customer_id?: string | null;
|
|
74656
|
+
follow_up_werkbon_id?: string | null;
|
|
74657
|
+
id?: string;
|
|
74658
|
+
jaar?: number;
|
|
74659
|
+
mandaat_restant_cents?: number;
|
|
74660
|
+
notities?: string | null;
|
|
74661
|
+
offerte_number?: string | null;
|
|
74662
|
+
omschrijving?: string;
|
|
74663
|
+
rejected_at?: string | null;
|
|
74664
|
+
sent_at?: string | null;
|
|
74665
|
+
source_number?: string | null;
|
|
74666
|
+
source_ref?: string | null;
|
|
74667
|
+
source_type?: string;
|
|
74668
|
+
status?: string;
|
|
74669
|
+
subtotal_cents?: number;
|
|
74670
|
+
total_cents?: number;
|
|
74671
|
+
updated_at?: string;
|
|
74672
|
+
valid_until?: string | null;
|
|
74673
|
+
vat_cents?: number;
|
|
74674
|
+
vat_rate?: number;
|
|
74675
|
+
viewed_at?: string | null;
|
|
74676
|
+
volgnummer?: number | null;
|
|
74677
|
+
werkbon_id?: string | null;
|
|
74678
|
+
work_location_id?: string | null;
|
|
74679
|
+
};
|
|
74680
|
+
Update: {
|
|
74681
|
+
ai_generated?: boolean;
|
|
74682
|
+
approved_at?: string | null;
|
|
74683
|
+
binnen_mandaat?: boolean;
|
|
74684
|
+
contact_id?: string | null;
|
|
74685
|
+
converted_at?: string | null;
|
|
74686
|
+
created_at?: string;
|
|
74687
|
+
created_by?: string | null;
|
|
74688
|
+
customer_id?: string | null;
|
|
74689
|
+
follow_up_werkbon_id?: string | null;
|
|
74690
|
+
id?: string;
|
|
74691
|
+
jaar?: number;
|
|
74692
|
+
mandaat_restant_cents?: number;
|
|
74693
|
+
notities?: string | null;
|
|
74694
|
+
offerte_number?: string | null;
|
|
74695
|
+
omschrijving?: string;
|
|
74696
|
+
rejected_at?: string | null;
|
|
74697
|
+
sent_at?: string | null;
|
|
74698
|
+
source_number?: string | null;
|
|
74699
|
+
source_ref?: string | null;
|
|
74700
|
+
source_type?: string;
|
|
74701
|
+
status?: string;
|
|
74702
|
+
subtotal_cents?: number;
|
|
74703
|
+
total_cents?: number;
|
|
74704
|
+
updated_at?: string;
|
|
74705
|
+
valid_until?: string | null;
|
|
74706
|
+
vat_cents?: number;
|
|
74707
|
+
vat_rate?: number;
|
|
74708
|
+
viewed_at?: string | null;
|
|
74709
|
+
volgnummer?: number | null;
|
|
74710
|
+
werkbon_id?: string | null;
|
|
74711
|
+
work_location_id?: string | null;
|
|
74712
|
+
};
|
|
74713
|
+
Relationships: [{
|
|
74714
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
74715
|
+
columns: ["contact_id"];
|
|
74716
|
+
isOneToOne: false;
|
|
74717
|
+
referencedRelation: "itk_contact_persons";
|
|
74718
|
+
referencedColumns: ["id"];
|
|
74719
|
+
}, {
|
|
74720
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
74721
|
+
columns: ["customer_id"];
|
|
74722
|
+
isOneToOne: false;
|
|
74723
|
+
referencedRelation: "itk_customers";
|
|
74724
|
+
referencedColumns: ["id"];
|
|
74725
|
+
}, {
|
|
74726
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
74727
|
+
columns: ["follow_up_werkbon_id"];
|
|
74728
|
+
isOneToOne: false;
|
|
74729
|
+
referencedRelation: "werkbonnen";
|
|
74730
|
+
referencedColumns: ["id"];
|
|
74731
|
+
}, {
|
|
74732
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
74733
|
+
columns: ["werkbon_id"];
|
|
74734
|
+
isOneToOne: false;
|
|
74735
|
+
referencedRelation: "werkbonnen";
|
|
74736
|
+
referencedColumns: ["id"];
|
|
74737
|
+
}, {
|
|
74738
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
74739
|
+
columns: ["work_location_id"];
|
|
74740
|
+
isOneToOne: false;
|
|
74741
|
+
referencedRelation: "itk_work_locations";
|
|
74742
|
+
referencedColumns: ["id"];
|
|
74743
|
+
}];
|
|
74744
|
+
};
|
|
72780
74745
|
itk_work_locations: {
|
|
72781
74746
|
Row: {
|
|
72782
74747
|
city: string | null;
|
|
@@ -75150,6 +77115,63 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
75150
77115
|
referencedColumns: ["id"];
|
|
75151
77116
|
}];
|
|
75152
77117
|
};
|
|
77118
|
+
medewerker_details: {
|
|
77119
|
+
Row: {
|
|
77120
|
+
color: string | null;
|
|
77121
|
+
created_at: string;
|
|
77122
|
+
hours_fri: number | null;
|
|
77123
|
+
hours_mon: number | null;
|
|
77124
|
+
hours_thu: number | null;
|
|
77125
|
+
hours_tue: number | null;
|
|
77126
|
+
hours_wed: number | null;
|
|
77127
|
+
id: string;
|
|
77128
|
+
is_active: boolean;
|
|
77129
|
+
leave_balance_hours: number;
|
|
77130
|
+
persnr: string | null;
|
|
77131
|
+
phone: string | null;
|
|
77132
|
+
profile_id: string;
|
|
77133
|
+
updated_at: string;
|
|
77134
|
+
};
|
|
77135
|
+
Insert: {
|
|
77136
|
+
color?: string | null;
|
|
77137
|
+
created_at?: string;
|
|
77138
|
+
hours_fri?: number | null;
|
|
77139
|
+
hours_mon?: number | null;
|
|
77140
|
+
hours_thu?: number | null;
|
|
77141
|
+
hours_tue?: number | null;
|
|
77142
|
+
hours_wed?: number | null;
|
|
77143
|
+
id?: string;
|
|
77144
|
+
is_active?: boolean;
|
|
77145
|
+
leave_balance_hours?: number;
|
|
77146
|
+
persnr?: string | null;
|
|
77147
|
+
phone?: string | null;
|
|
77148
|
+
profile_id: string;
|
|
77149
|
+
updated_at?: string;
|
|
77150
|
+
};
|
|
77151
|
+
Update: {
|
|
77152
|
+
color?: string | null;
|
|
77153
|
+
created_at?: string;
|
|
77154
|
+
hours_fri?: number | null;
|
|
77155
|
+
hours_mon?: number | null;
|
|
77156
|
+
hours_thu?: number | null;
|
|
77157
|
+
hours_tue?: number | null;
|
|
77158
|
+
hours_wed?: number | null;
|
|
77159
|
+
id?: string;
|
|
77160
|
+
is_active?: boolean;
|
|
77161
|
+
leave_balance_hours?: number;
|
|
77162
|
+
persnr?: string | null;
|
|
77163
|
+
phone?: string | null;
|
|
77164
|
+
profile_id?: string;
|
|
77165
|
+
updated_at?: string;
|
|
77166
|
+
};
|
|
77167
|
+
Relationships: [{
|
|
77168
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
77169
|
+
columns: ["profile_id"];
|
|
77170
|
+
isOneToOne: true;
|
|
77171
|
+
referencedRelation: "profiles";
|
|
77172
|
+
referencedColumns: ["id"];
|
|
77173
|
+
}];
|
|
77174
|
+
};
|
|
75153
77175
|
module_features: {
|
|
75154
77176
|
Row: {
|
|
75155
77177
|
created_at: string;
|
|
@@ -76443,6 +78465,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
76443
78465
|
orders: {
|
|
76444
78466
|
Row: {
|
|
76445
78467
|
buffer_id: string | null;
|
|
78468
|
+
cancel_reason: string | null;
|
|
78469
|
+
cancelled_at: string | null;
|
|
76446
78470
|
created_at: string;
|
|
76447
78471
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
76448
78472
|
customer_id: string | null;
|
|
@@ -76465,6 +78489,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
76465
78489
|
};
|
|
76466
78490
|
Insert: {
|
|
76467
78491
|
buffer_id?: string | null;
|
|
78492
|
+
cancel_reason?: string | null;
|
|
78493
|
+
cancelled_at?: string | null;
|
|
76468
78494
|
created_at?: string;
|
|
76469
78495
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
76470
78496
|
customer_id?: string | null;
|
|
@@ -76487,6 +78513,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
76487
78513
|
};
|
|
76488
78514
|
Update: {
|
|
76489
78515
|
buffer_id?: string | null;
|
|
78516
|
+
cancel_reason?: string | null;
|
|
78517
|
+
cancelled_at?: string | null;
|
|
76490
78518
|
created_at?: string;
|
|
76491
78519
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
76492
78520
|
customer_id?: string | null;
|
|
@@ -78549,6 +80577,66 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
78549
80577
|
};
|
|
78550
80578
|
Relationships: [];
|
|
78551
80579
|
};
|
|
80580
|
+
profile_modules: {
|
|
80581
|
+
Row: {
|
|
80582
|
+
created_at: string;
|
|
80583
|
+
id: string;
|
|
80584
|
+
module_id: string;
|
|
80585
|
+
profile_id: string;
|
|
80586
|
+
};
|
|
80587
|
+
Insert: {
|
|
80588
|
+
created_at?: string;
|
|
80589
|
+
id?: string;
|
|
80590
|
+
module_id: string;
|
|
80591
|
+
profile_id: string;
|
|
80592
|
+
};
|
|
80593
|
+
Update: {
|
|
80594
|
+
created_at?: string;
|
|
80595
|
+
id?: string;
|
|
80596
|
+
module_id?: string;
|
|
80597
|
+
profile_id?: string;
|
|
80598
|
+
};
|
|
80599
|
+
Relationships: [{
|
|
80600
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
80601
|
+
columns: ["profile_id"];
|
|
80602
|
+
isOneToOne: false;
|
|
80603
|
+
referencedRelation: "profiles_org";
|
|
80604
|
+
referencedColumns: ["id"];
|
|
80605
|
+
}];
|
|
80606
|
+
};
|
|
80607
|
+
profile_roles: {
|
|
80608
|
+
Row: {
|
|
80609
|
+
created_at: string;
|
|
80610
|
+
id: string;
|
|
80611
|
+
profile_id: string;
|
|
80612
|
+
role_id: string;
|
|
80613
|
+
};
|
|
80614
|
+
Insert: {
|
|
80615
|
+
created_at?: string;
|
|
80616
|
+
id?: string;
|
|
80617
|
+
profile_id: string;
|
|
80618
|
+
role_id: string;
|
|
80619
|
+
};
|
|
80620
|
+
Update: {
|
|
80621
|
+
created_at?: string;
|
|
80622
|
+
id?: string;
|
|
80623
|
+
profile_id?: string;
|
|
80624
|
+
role_id?: string;
|
|
80625
|
+
};
|
|
80626
|
+
Relationships: [{
|
|
80627
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
80628
|
+
columns: ["profile_id"];
|
|
80629
|
+
isOneToOne: false;
|
|
80630
|
+
referencedRelation: "profiles_org";
|
|
80631
|
+
referencedColumns: ["id"];
|
|
80632
|
+
}, {
|
|
80633
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
80634
|
+
columns: ["role_id"];
|
|
80635
|
+
isOneToOne: false;
|
|
80636
|
+
referencedRelation: "roles";
|
|
80637
|
+
referencedColumns: ["id"];
|
|
80638
|
+
}];
|
|
80639
|
+
};
|
|
78552
80640
|
profiles: {
|
|
78553
80641
|
Row: {
|
|
78554
80642
|
address: string | null;
|
|
@@ -78594,6 +80682,39 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
78594
80682
|
referencedColumns: ["id"];
|
|
78595
80683
|
}];
|
|
78596
80684
|
};
|
|
80685
|
+
profiles_org: {
|
|
80686
|
+
Row: {
|
|
80687
|
+
created_at: string;
|
|
80688
|
+
id: string;
|
|
80689
|
+
is_default: boolean;
|
|
80690
|
+
name: string;
|
|
80691
|
+
tenant_id: string | null;
|
|
80692
|
+
updated_at: string;
|
|
80693
|
+
};
|
|
80694
|
+
Insert: {
|
|
80695
|
+
created_at?: string;
|
|
80696
|
+
id?: string;
|
|
80697
|
+
is_default?: boolean;
|
|
80698
|
+
name: string;
|
|
80699
|
+
tenant_id?: string | null;
|
|
80700
|
+
updated_at?: string;
|
|
80701
|
+
};
|
|
80702
|
+
Update: {
|
|
80703
|
+
created_at?: string;
|
|
80704
|
+
id?: string;
|
|
80705
|
+
is_default?: boolean;
|
|
80706
|
+
name?: string;
|
|
80707
|
+
tenant_id?: string | null;
|
|
80708
|
+
updated_at?: string;
|
|
80709
|
+
};
|
|
80710
|
+
Relationships: [{
|
|
80711
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
80712
|
+
columns: ["tenant_id"];
|
|
80713
|
+
isOneToOne: false;
|
|
80714
|
+
referencedRelation: "tenants";
|
|
80715
|
+
referencedColumns: ["id"];
|
|
80716
|
+
}];
|
|
80717
|
+
};
|
|
78597
80718
|
projects: {
|
|
78598
80719
|
Row: {
|
|
78599
80720
|
contact_name: string | null;
|
|
@@ -79768,6 +81889,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
79768
81889
|
type: string;
|
|
79769
81890
|
updated_at: string;
|
|
79770
81891
|
vereist_medewerker: boolean;
|
|
81892
|
+
werkplek: string | null;
|
|
79771
81893
|
};
|
|
79772
81894
|
Insert: {
|
|
79773
81895
|
actief?: boolean;
|
|
@@ -79781,6 +81903,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
79781
81903
|
type?: string;
|
|
79782
81904
|
updated_at?: string;
|
|
79783
81905
|
vereist_medewerker?: boolean;
|
|
81906
|
+
werkplek?: string | null;
|
|
79784
81907
|
};
|
|
79785
81908
|
Update: {
|
|
79786
81909
|
actief?: boolean;
|
|
@@ -79794,9 +81917,46 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
79794
81917
|
type?: string;
|
|
79795
81918
|
updated_at?: string;
|
|
79796
81919
|
vereist_medewerker?: boolean;
|
|
81920
|
+
werkplek?: string | null;
|
|
79797
81921
|
};
|
|
79798
81922
|
Relationships: [];
|
|
79799
81923
|
};
|
|
81924
|
+
sick_periods: {
|
|
81925
|
+
Row: {
|
|
81926
|
+
created_at: string;
|
|
81927
|
+
employee_id: string;
|
|
81928
|
+
end_date: string | null;
|
|
81929
|
+
id: string;
|
|
81930
|
+
notes: string | null;
|
|
81931
|
+
start_date: string;
|
|
81932
|
+
updated_at: string;
|
|
81933
|
+
};
|
|
81934
|
+
Insert: {
|
|
81935
|
+
created_at?: string;
|
|
81936
|
+
employee_id: string;
|
|
81937
|
+
end_date?: string | null;
|
|
81938
|
+
id?: string;
|
|
81939
|
+
notes?: string | null;
|
|
81940
|
+
start_date: string;
|
|
81941
|
+
updated_at?: string;
|
|
81942
|
+
};
|
|
81943
|
+
Update: {
|
|
81944
|
+
created_at?: string;
|
|
81945
|
+
employee_id?: string;
|
|
81946
|
+
end_date?: string | null;
|
|
81947
|
+
id?: string;
|
|
81948
|
+
notes?: string | null;
|
|
81949
|
+
start_date?: string;
|
|
81950
|
+
updated_at?: string;
|
|
81951
|
+
};
|
|
81952
|
+
Relationships: [{
|
|
81953
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
81954
|
+
columns: ["employee_id"];
|
|
81955
|
+
isOneToOne: false;
|
|
81956
|
+
referencedRelation: "profiles";
|
|
81957
|
+
referencedColumns: ["id"];
|
|
81958
|
+
}];
|
|
81959
|
+
};
|
|
79800
81960
|
sidebar_config: {
|
|
79801
81961
|
Row: {
|
|
79802
81962
|
id: string;
|
|
@@ -84481,6 +86641,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
84481
86641
|
};
|
|
84482
86642
|
Returns: string;
|
|
84483
86643
|
};
|
|
86644
|
+
employee_day_hours: {
|
|
86645
|
+
Args: {
|
|
86646
|
+
_day: string;
|
|
86647
|
+
_employee_id: string;
|
|
86648
|
+
};
|
|
86649
|
+
Returns: number;
|
|
86650
|
+
};
|
|
84484
86651
|
enqueue_cart_replan_if_unlocked: {
|
|
84485
86652
|
Args: {
|
|
84486
86653
|
p_order_id: string;
|
|
@@ -84834,6 +87001,19 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
84834
87001
|
Args: never;
|
|
84835
87002
|
Returns: boolean;
|
|
84836
87003
|
};
|
|
87004
|
+
itk_offerte_naar_werkbon: {
|
|
87005
|
+
Args: {
|
|
87006
|
+
_offerte_id: string;
|
|
87007
|
+
};
|
|
87008
|
+
Returns: string;
|
|
87009
|
+
};
|
|
87010
|
+
itk_offerte_restant_mandaat: {
|
|
87011
|
+
Args: {
|
|
87012
|
+
_exclude_offerte_id?: string;
|
|
87013
|
+
_werkbon_id: string;
|
|
87014
|
+
};
|
|
87015
|
+
Returns: number;
|
|
87016
|
+
};
|
|
84837
87017
|
jwt_has_role: {
|
|
84838
87018
|
Args: {
|
|
84839
87019
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -84844,9 +87024,19 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
84844
87024
|
Args: never;
|
|
84845
87025
|
Returns: {
|
|
84846
87026
|
avatar_url: string;
|
|
87027
|
+
color: string;
|
|
84847
87028
|
display_name: string;
|
|
84848
87029
|
email: string;
|
|
87030
|
+
hours_fri: number;
|
|
87031
|
+
hours_mon: number;
|
|
87032
|
+
hours_thu: number;
|
|
87033
|
+
hours_tue: number;
|
|
87034
|
+
hours_wed: number;
|
|
84849
87035
|
id: string;
|
|
87036
|
+
is_active: boolean;
|
|
87037
|
+
leave_balance_hours: number;
|
|
87038
|
+
persnr: string;
|
|
87039
|
+
phone: string;
|
|
84850
87040
|
roles: string[];
|
|
84851
87041
|
}[];
|
|
84852
87042
|
};
|
|
@@ -85173,17 +87363,6 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
85173
87363
|
Returns: string;
|
|
85174
87364
|
};
|
|
85175
87365
|
logistics_emit_event: {
|
|
85176
|
-
Args: {
|
|
85177
|
-
p_event_type: string;
|
|
85178
|
-
p_idempotency_key?: string;
|
|
85179
|
-
p_order_ref: string;
|
|
85180
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
85181
|
-
p_shadow?: boolean;
|
|
85182
|
-
p_source_module: string;
|
|
85183
|
-
p_strategy_id?: string;
|
|
85184
|
-
};
|
|
85185
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
85186
|
-
} | {
|
|
85187
87366
|
Args: {
|
|
85188
87367
|
p_event_type: string;
|
|
85189
87368
|
p_idempotency_key?: string;
|
|
@@ -86028,6 +88207,37 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
86028
88207
|
};
|
|
86029
88208
|
Returns: undefined;
|
|
86030
88209
|
};
|
|
88210
|
+
quote_create_from_source: {
|
|
88211
|
+
Args: {
|
|
88212
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
88213
|
+
_source_id: string;
|
|
88214
|
+
_source_type: string;
|
|
88215
|
+
};
|
|
88216
|
+
Returns: string;
|
|
88217
|
+
};
|
|
88218
|
+
quote_get_billable_lines: {
|
|
88219
|
+
Args: {
|
|
88220
|
+
_quotation_id: string;
|
|
88221
|
+
};
|
|
88222
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88223
|
+
};
|
|
88224
|
+
quote_get_summary: {
|
|
88225
|
+
Args: {
|
|
88226
|
+
_quotation_id: string;
|
|
88227
|
+
};
|
|
88228
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88229
|
+
};
|
|
88230
|
+
quote_list_packages: {
|
|
88231
|
+
Args: never;
|
|
88232
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88233
|
+
};
|
|
88234
|
+
quote_list_sources: {
|
|
88235
|
+
Args: {
|
|
88236
|
+
_limit?: number;
|
|
88237
|
+
_source_type?: string;
|
|
88238
|
+
};
|
|
88239
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88240
|
+
};
|
|
86031
88241
|
recompute_all_reserved_stock: {
|
|
86032
88242
|
Args: never;
|
|
86033
88243
|
Returns: undefined;
|
|
@@ -86563,6 +88773,12 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
86563
88773
|
};
|
|
86564
88774
|
Returns: undefined;
|
|
86565
88775
|
};
|
|
88776
|
+
sync_sick_time_off: {
|
|
88777
|
+
Args: {
|
|
88778
|
+
_period_id: string;
|
|
88779
|
+
};
|
|
88780
|
+
Returns: number;
|
|
88781
|
+
};
|
|
86566
88782
|
trade_item_stock_duplicates: {
|
|
86567
88783
|
Args: never;
|
|
86568
88784
|
Returns: {
|
|
@@ -86636,11 +88852,31 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
86636
88852
|
Args: never;
|
|
86637
88853
|
Returns: string;
|
|
86638
88854
|
};
|
|
88855
|
+
wo_create_from_source: {
|
|
88856
|
+
Args: {
|
|
88857
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
88858
|
+
_source_id: string;
|
|
88859
|
+
_source_type: string;
|
|
88860
|
+
};
|
|
88861
|
+
Returns: string;
|
|
88862
|
+
};
|
|
88863
|
+
wo_get_billable_lines: {
|
|
88864
|
+
Args: {
|
|
88865
|
+
_work_order_id: string;
|
|
88866
|
+
};
|
|
88867
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88868
|
+
};
|
|
88869
|
+
wo_get_summary: {
|
|
88870
|
+
Args: {
|
|
88871
|
+
_work_order_id: string;
|
|
88872
|
+
};
|
|
88873
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
88874
|
+
};
|
|
86639
88875
|
};
|
|
86640
88876
|
Enums: {
|
|
86641
88877
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
86642
88878
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
86643
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
88879
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
86644
88880
|
doc_orientation: "portrait" | "landscape";
|
|
86645
88881
|
exact_env: "staging" | "live";
|
|
86646
88882
|
exact_push_status: "pending" | "sent" | "error";
|