@flowselections/floriday-afhandeling-module 1.0.12 → 1.0.14
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/afhandeling/AutoProcessStatus.d.ts +12 -0
- package/dist-lib/components/afhandeling/AutoProcessStatus.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/AutoProcessStatus.js +103 -0
- package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts +3 -1
- package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControleLijstPrint.js +56 -17
- package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/DagDetailDialog.js +96 -4
- package/dist-lib/components/afhandeling/LeveringenPage.js +1 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.js +2 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +3 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.js +58 -17
- package/dist-lib/components/pickstation/KioskControle.d.ts +2 -0
- package/dist-lib/components/pickstation/KioskControle.d.ts.map +1 -0
- package/dist-lib/components/pickstation/KioskControle.js +7 -0
- package/dist-lib/components/pickstation/PakbonTemplate.d.ts +2 -1
- package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -1
- package/dist-lib/components/pickstation/PakbonTemplate.js +20 -17
- package/dist-lib/components/pickstation/PickstationPage.d.ts +2 -0
- package/dist-lib/components/pickstation/PickstationPage.d.ts.map +1 -0
- package/dist-lib/components/pickstation/PickstationPage.js +266 -0
- package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
- package/dist-lib/components/settings/AfhandelingSettingsCard.js +14 -2
- package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
- package/dist-lib/hooks/useOrderPlanning.js +28 -11
- package/dist-lib/index.d.ts +4 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +4 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1243 -63
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1243 -63
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1243 -63
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1264 -56
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +2483 -111
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.js +28 -1
- package/dist-lib/lib/carrierPlanning.d.ts +25 -0
- package/dist-lib/lib/carrierPlanning.d.ts.map +1 -0
- package/dist-lib/lib/carrierPlanning.js +65 -0
- package/dist-lib/lib/carrierSignupMail.server.d.ts +0 -2
- package/dist-lib/lib/carrierSignupMail.server.d.ts.map +1 -1
- package/dist-lib/lib/carrierSignupMail.server.js +53 -216
- package/dist-lib/lib/carriers.functions.d.ts +5920 -20
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/carriers.functions.js +5 -0
- package/dist-lib/lib/cartAssignments.functions.d.ts +5920 -20
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +11843 -40
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.js +4 -1
- package/dist-lib/lib/cartRescheduling.d.ts.map +1 -1
- package/dist-lib/lib/cartRescheduling.js +8 -6
- package/dist-lib/lib/countries.d.ts +2 -0
- package/dist-lib/lib/countries.d.ts.map +1 -1
- package/dist-lib/lib/countries.js +51 -0
- package/dist-lib/lib/deliveryNotePrint.d.ts +26 -0
- package/dist-lib/lib/deliveryNotePrint.d.ts.map +1 -0
- package/dist-lib/lib/deliveryNotePrint.js +172 -0
- package/dist-lib/lib/floriday.functions.d.ts +1251 -63
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +126 -8
- package/dist-lib/lib/floridayAutoProcess.d.ts +30 -0
- package/dist-lib/lib/floridayAutoProcess.d.ts.map +1 -0
- package/dist-lib/lib/floridayAutoProcess.js +70 -0
- package/dist-lib/lib/pickstationI18n.d.ts +46 -0
- package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
- package/dist-lib/lib/pickstationI18n.js +251 -0
- package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
- package/dist-lib/lib/pickstationOrders.server.js +56 -19
- package/dist-lib/lib/pickstationTypes.d.ts +2 -0
- package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
- package/dist-lib/lib/planning.d.ts +34 -0
- package/dist-lib/lib/planning.d.ts.map +1 -1
- package/dist-lib/lib/planning.js +84 -0
- package/package.json +15 -1
|
@@ -9,13 +9,22 @@ export interface AfhandelingSettings {
|
|
|
9
9
|
signupMailPurpose: string;
|
|
10
10
|
/** ISO-dagnummers (1=ma … 7=zo) waarop gepickt mag worden. */
|
|
11
11
|
pickWeekdays: number[];
|
|
12
|
+
/** Extra werkdagen pickduur wanneer een order stickers bevat. */
|
|
13
|
+
extraPickDaysWithStickers: number;
|
|
14
|
+
/** Pauzeert de automatische Floriday-verwerking (acknowledge → delivery order → fulfillment). */
|
|
15
|
+
autoProcessPaused: boolean;
|
|
16
|
+
/** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */
|
|
17
|
+
autoPrintDeliveryNote: boolean;
|
|
12
18
|
}
|
|
13
19
|
export declare const getAfhandelingSettings: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|
|
14
20
|
supabase: SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
|
|
15
21
|
Tables: {
|
|
16
22
|
afhandeling_settings: {
|
|
17
23
|
Row: {
|
|
24
|
+
auto_print_delivery_note: boolean;
|
|
25
|
+
auto_process_paused: boolean;
|
|
18
26
|
created_at: string;
|
|
27
|
+
extra_pick_days_with_stickers: number;
|
|
19
28
|
id: string;
|
|
20
29
|
max_workdays_earlier_pick: number;
|
|
21
30
|
pick_days_before_transport: number;
|
|
@@ -29,7 +38,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
29
38
|
user_id: string;
|
|
30
39
|
};
|
|
31
40
|
Insert: {
|
|
41
|
+
auto_print_delivery_note?: boolean;
|
|
42
|
+
auto_process_paused?: boolean;
|
|
32
43
|
created_at?: string;
|
|
44
|
+
extra_pick_days_with_stickers?: number;
|
|
33
45
|
id?: string;
|
|
34
46
|
max_workdays_earlier_pick?: number;
|
|
35
47
|
pick_days_before_transport?: number;
|
|
@@ -43,7 +55,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
43
55
|
user_id: string;
|
|
44
56
|
};
|
|
45
57
|
Update: {
|
|
58
|
+
auto_print_delivery_note?: boolean;
|
|
59
|
+
auto_process_paused?: boolean;
|
|
46
60
|
created_at?: string;
|
|
61
|
+
extra_pick_days_with_stickers?: number;
|
|
47
62
|
id?: string;
|
|
48
63
|
max_workdays_earlier_pick?: number;
|
|
49
64
|
pick_days_before_transport?: number;
|
|
@@ -835,6 +850,36 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
835
850
|
};
|
|
836
851
|
Relationships: [];
|
|
837
852
|
};
|
|
853
|
+
cart_replan_queue: {
|
|
854
|
+
Row: {
|
|
855
|
+
attempts: number;
|
|
856
|
+
last_error: string | null;
|
|
857
|
+
order_id: string;
|
|
858
|
+
processed_at: string | null;
|
|
859
|
+
requested_at: string;
|
|
860
|
+
};
|
|
861
|
+
Insert: {
|
|
862
|
+
attempts?: number;
|
|
863
|
+
last_error?: string | null;
|
|
864
|
+
order_id: string;
|
|
865
|
+
processed_at?: string | null;
|
|
866
|
+
requested_at?: string;
|
|
867
|
+
};
|
|
868
|
+
Update: {
|
|
869
|
+
attempts?: number;
|
|
870
|
+
last_error?: string | null;
|
|
871
|
+
order_id?: string;
|
|
872
|
+
processed_at?: string | null;
|
|
873
|
+
requested_at?: string;
|
|
874
|
+
};
|
|
875
|
+
Relationships: [{
|
|
876
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
877
|
+
columns: ["order_id"];
|
|
878
|
+
isOneToOne: true;
|
|
879
|
+
referencedRelation: "orders";
|
|
880
|
+
referencedColumns: ["id"];
|
|
881
|
+
}];
|
|
882
|
+
};
|
|
838
883
|
collections: {
|
|
839
884
|
Row: {
|
|
840
885
|
created_at: string;
|
|
@@ -2960,34 +3005,52 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
2960
3005
|
Row: {
|
|
2961
3006
|
catalog_key: string | null;
|
|
2962
3007
|
catalog_url: string;
|
|
3008
|
+
client_id: string | null;
|
|
3009
|
+
client_secret_ciphertext: string | null;
|
|
3010
|
+
client_secret_last4: string | null;
|
|
2963
3011
|
created_at: string;
|
|
2964
3012
|
id: number;
|
|
2965
3013
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
2966
3014
|
last_test_at: string | null;
|
|
2967
3015
|
last_test_error: string | null;
|
|
2968
3016
|
last_test_ok: boolean | null;
|
|
3017
|
+
last_token_test_at: string | null;
|
|
3018
|
+
last_token_test_error: string | null;
|
|
3019
|
+
last_token_test_ok: boolean | null;
|
|
2969
3020
|
updated_at: string;
|
|
2970
3021
|
};
|
|
2971
3022
|
Insert: {
|
|
2972
3023
|
catalog_key?: string | null;
|
|
2973
3024
|
catalog_url?: string;
|
|
3025
|
+
client_id?: string | null;
|
|
3026
|
+
client_secret_ciphertext?: string | null;
|
|
3027
|
+
client_secret_last4?: string | null;
|
|
2974
3028
|
created_at?: string;
|
|
2975
3029
|
id?: number;
|
|
2976
3030
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2977
3031
|
last_test_at?: string | null;
|
|
2978
3032
|
last_test_error?: string | null;
|
|
2979
3033
|
last_test_ok?: boolean | null;
|
|
3034
|
+
last_token_test_at?: string | null;
|
|
3035
|
+
last_token_test_error?: string | null;
|
|
3036
|
+
last_token_test_ok?: boolean | null;
|
|
2980
3037
|
updated_at?: string;
|
|
2981
3038
|
};
|
|
2982
3039
|
Update: {
|
|
2983
3040
|
catalog_key?: string | null;
|
|
2984
3041
|
catalog_url?: string;
|
|
3042
|
+
client_id?: string | null;
|
|
3043
|
+
client_secret_ciphertext?: string | null;
|
|
3044
|
+
client_secret_last4?: string | null;
|
|
2985
3045
|
created_at?: string;
|
|
2986
3046
|
id?: number;
|
|
2987
3047
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2988
3048
|
last_test_at?: string | null;
|
|
2989
3049
|
last_test_error?: string | null;
|
|
2990
3050
|
last_test_ok?: boolean | null;
|
|
3051
|
+
last_token_test_at?: string | null;
|
|
3052
|
+
last_token_test_error?: string | null;
|
|
3053
|
+
last_token_test_ok?: boolean | null;
|
|
2991
3054
|
updated_at?: string;
|
|
2992
3055
|
};
|
|
2993
3056
|
Relationships: [];
|
|
@@ -3220,6 +3283,54 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
3220
3283
|
referencedColumns: ["id"];
|
|
3221
3284
|
}];
|
|
3222
3285
|
};
|
|
3286
|
+
floriday_auto_fulfillment_log: {
|
|
3287
|
+
Row: {
|
|
3288
|
+
attempts: number;
|
|
3289
|
+
connection_id: string;
|
|
3290
|
+
created_at: string;
|
|
3291
|
+
error: string | null;
|
|
3292
|
+
fulfillment_order_id: string | null;
|
|
3293
|
+
id: string;
|
|
3294
|
+
last_attempt_at: string | null;
|
|
3295
|
+
reason: string | null;
|
|
3296
|
+
sales_order_id: string;
|
|
3297
|
+
status: string;
|
|
3298
|
+
updated_at: string;
|
|
3299
|
+
};
|
|
3300
|
+
Insert: {
|
|
3301
|
+
attempts?: number;
|
|
3302
|
+
connection_id: string;
|
|
3303
|
+
created_at?: string;
|
|
3304
|
+
error?: string | null;
|
|
3305
|
+
fulfillment_order_id?: string | null;
|
|
3306
|
+
id?: string;
|
|
3307
|
+
last_attempt_at?: string | null;
|
|
3308
|
+
reason?: string | null;
|
|
3309
|
+
sales_order_id: string;
|
|
3310
|
+
status?: string;
|
|
3311
|
+
updated_at?: string;
|
|
3312
|
+
};
|
|
3313
|
+
Update: {
|
|
3314
|
+
attempts?: number;
|
|
3315
|
+
connection_id?: string;
|
|
3316
|
+
created_at?: string;
|
|
3317
|
+
error?: string | null;
|
|
3318
|
+
fulfillment_order_id?: string | null;
|
|
3319
|
+
id?: string;
|
|
3320
|
+
last_attempt_at?: string | null;
|
|
3321
|
+
reason?: string | null;
|
|
3322
|
+
sales_order_id?: string;
|
|
3323
|
+
status?: string;
|
|
3324
|
+
updated_at?: string;
|
|
3325
|
+
};
|
|
3326
|
+
Relationships: [{
|
|
3327
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3328
|
+
columns: ["connection_id"];
|
|
3329
|
+
isOneToOne: false;
|
|
3330
|
+
referencedRelation: "floriday_connections";
|
|
3331
|
+
referencedColumns: ["id"];
|
|
3332
|
+
}];
|
|
3333
|
+
};
|
|
3223
3334
|
floriday_base_items_cache: {
|
|
3224
3335
|
Row: {
|
|
3225
3336
|
connection_id: string;
|
|
@@ -3634,6 +3745,51 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
3634
3745
|
referencedColumns: ["id"];
|
|
3635
3746
|
}];
|
|
3636
3747
|
};
|
|
3748
|
+
floriday_continuous_stock_queue: {
|
|
3749
|
+
Row: {
|
|
3750
|
+
attempts: number;
|
|
3751
|
+
connection_id: string;
|
|
3752
|
+
created_at: string;
|
|
3753
|
+
gateway_attempt_id: string | null;
|
|
3754
|
+
id: string;
|
|
3755
|
+
last_error: string | null;
|
|
3756
|
+
number_of_pieces: number;
|
|
3757
|
+
sent_at: string | null;
|
|
3758
|
+
status: string;
|
|
3759
|
+
trade_item_id: string;
|
|
3760
|
+
updated_at: string;
|
|
3761
|
+
user_id: string;
|
|
3762
|
+
};
|
|
3763
|
+
Insert: {
|
|
3764
|
+
attempts?: number;
|
|
3765
|
+
connection_id: string;
|
|
3766
|
+
created_at?: string;
|
|
3767
|
+
gateway_attempt_id?: string | null;
|
|
3768
|
+
id?: string;
|
|
3769
|
+
last_error?: string | null;
|
|
3770
|
+
number_of_pieces?: number;
|
|
3771
|
+
sent_at?: string | null;
|
|
3772
|
+
status?: string;
|
|
3773
|
+
trade_item_id: string;
|
|
3774
|
+
updated_at?: string;
|
|
3775
|
+
user_id: string;
|
|
3776
|
+
};
|
|
3777
|
+
Update: {
|
|
3778
|
+
attempts?: number;
|
|
3779
|
+
connection_id?: string;
|
|
3780
|
+
created_at?: string;
|
|
3781
|
+
gateway_attempt_id?: string | null;
|
|
3782
|
+
id?: string;
|
|
3783
|
+
last_error?: string | null;
|
|
3784
|
+
number_of_pieces?: number;
|
|
3785
|
+
sent_at?: string | null;
|
|
3786
|
+
status?: string;
|
|
3787
|
+
trade_item_id?: string;
|
|
3788
|
+
updated_at?: string;
|
|
3789
|
+
user_id?: string;
|
|
3790
|
+
};
|
|
3791
|
+
Relationships: [];
|
|
3792
|
+
};
|
|
3637
3793
|
floriday_contract_trade_item_groups_cache: {
|
|
3638
3794
|
Row: {
|
|
3639
3795
|
connection_id: string;
|
|
@@ -4279,6 +4435,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
4279
4435
|
referencedColumns: ["id"];
|
|
4280
4436
|
}];
|
|
4281
4437
|
};
|
|
4438
|
+
floriday_rate_limit_state: {
|
|
4439
|
+
Row: {
|
|
4440
|
+
bucket: string;
|
|
4441
|
+
last_refill_at: string;
|
|
4442
|
+
tokens: number;
|
|
4443
|
+
};
|
|
4444
|
+
Insert: {
|
|
4445
|
+
bucket: string;
|
|
4446
|
+
last_refill_at?: string;
|
|
4447
|
+
tokens: number;
|
|
4448
|
+
};
|
|
4449
|
+
Update: {
|
|
4450
|
+
bucket?: string;
|
|
4451
|
+
last_refill_at?: string;
|
|
4452
|
+
tokens?: number;
|
|
4453
|
+
};
|
|
4454
|
+
Relationships: [];
|
|
4455
|
+
};
|
|
4282
4456
|
floriday_resource_schemas: {
|
|
4283
4457
|
Row: {
|
|
4284
4458
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -4702,6 +4876,60 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
4702
4876
|
referencedColumns: ["id"];
|
|
4703
4877
|
}];
|
|
4704
4878
|
};
|
|
4879
|
+
flow_role_assignments: {
|
|
4880
|
+
Row: {
|
|
4881
|
+
created_at: string;
|
|
4882
|
+
id: string;
|
|
4883
|
+
role_id: string;
|
|
4884
|
+
user_id: string;
|
|
4885
|
+
};
|
|
4886
|
+
Insert: {
|
|
4887
|
+
created_at?: string;
|
|
4888
|
+
id?: string;
|
|
4889
|
+
role_id: string;
|
|
4890
|
+
user_id: string;
|
|
4891
|
+
};
|
|
4892
|
+
Update: {
|
|
4893
|
+
created_at?: string;
|
|
4894
|
+
id?: string;
|
|
4895
|
+
role_id?: string;
|
|
4896
|
+
user_id?: string;
|
|
4897
|
+
};
|
|
4898
|
+
Relationships: [{
|
|
4899
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
4900
|
+
columns: ["role_id"];
|
|
4901
|
+
isOneToOne: false;
|
|
4902
|
+
referencedRelation: "flow_roles";
|
|
4903
|
+
referencedColumns: ["id"];
|
|
4904
|
+
}];
|
|
4905
|
+
};
|
|
4906
|
+
flow_roles: {
|
|
4907
|
+
Row: {
|
|
4908
|
+
created_at: string;
|
|
4909
|
+
description: string | null;
|
|
4910
|
+
id: string;
|
|
4911
|
+
module_access: string[];
|
|
4912
|
+
name: string;
|
|
4913
|
+
updated_at: string;
|
|
4914
|
+
};
|
|
4915
|
+
Insert: {
|
|
4916
|
+
created_at?: string;
|
|
4917
|
+
description?: string | null;
|
|
4918
|
+
id?: string;
|
|
4919
|
+
module_access?: string[];
|
|
4920
|
+
name: string;
|
|
4921
|
+
updated_at?: string;
|
|
4922
|
+
};
|
|
4923
|
+
Update: {
|
|
4924
|
+
created_at?: string;
|
|
4925
|
+
description?: string | null;
|
|
4926
|
+
id?: string;
|
|
4927
|
+
module_access?: string[];
|
|
4928
|
+
name?: string;
|
|
4929
|
+
updated_at?: string;
|
|
4930
|
+
};
|
|
4931
|
+
Relationships: [];
|
|
4932
|
+
};
|
|
4705
4933
|
imap_accounts: {
|
|
4706
4934
|
Row: {
|
|
4707
4935
|
created_at: string;
|
|
@@ -5023,88 +5251,286 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5023
5251
|
};
|
|
5024
5252
|
Relationships: [];
|
|
5025
5253
|
};
|
|
5026
|
-
|
|
5254
|
+
local_customer_agreements: {
|
|
5027
5255
|
Row: {
|
|
5256
|
+
base_price: number | null;
|
|
5028
5257
|
created_at: string;
|
|
5258
|
+
currency: string;
|
|
5259
|
+
customer_id: string;
|
|
5029
5260
|
id: string;
|
|
5030
|
-
|
|
5031
|
-
|
|
5261
|
+
min_quantity: number;
|
|
5262
|
+
net_price: number;
|
|
5263
|
+
notes: string | null;
|
|
5264
|
+
product_category_id: string | null;
|
|
5265
|
+
product_id: string | null;
|
|
5032
5266
|
updated_at: string;
|
|
5267
|
+
valid_from: string | null;
|
|
5268
|
+
valid_until: string | null;
|
|
5033
5269
|
};
|
|
5034
5270
|
Insert: {
|
|
5271
|
+
base_price?: number | null;
|
|
5035
5272
|
created_at?: string;
|
|
5273
|
+
currency?: string;
|
|
5274
|
+
customer_id: string;
|
|
5036
5275
|
id?: string;
|
|
5037
|
-
|
|
5038
|
-
|
|
5276
|
+
min_quantity?: number;
|
|
5277
|
+
net_price: number;
|
|
5278
|
+
notes?: string | null;
|
|
5279
|
+
product_category_id?: string | null;
|
|
5280
|
+
product_id?: string | null;
|
|
5039
5281
|
updated_at?: string;
|
|
5282
|
+
valid_from?: string | null;
|
|
5283
|
+
valid_until?: string | null;
|
|
5040
5284
|
};
|
|
5041
5285
|
Update: {
|
|
5286
|
+
base_price?: number | null;
|
|
5042
5287
|
created_at?: string;
|
|
5288
|
+
currency?: string;
|
|
5289
|
+
customer_id?: string;
|
|
5043
5290
|
id?: string;
|
|
5044
|
-
|
|
5045
|
-
|
|
5291
|
+
min_quantity?: number;
|
|
5292
|
+
net_price?: number;
|
|
5293
|
+
notes?: string | null;
|
|
5294
|
+
product_category_id?: string | null;
|
|
5295
|
+
product_id?: string | null;
|
|
5046
5296
|
updated_at?: string;
|
|
5297
|
+
valid_from?: string | null;
|
|
5298
|
+
valid_until?: string | null;
|
|
5047
5299
|
};
|
|
5048
|
-
Relationships: [
|
|
5300
|
+
Relationships: [{
|
|
5301
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
5302
|
+
columns: ["customer_id"];
|
|
5303
|
+
isOneToOne: false;
|
|
5304
|
+
referencedRelation: "customers";
|
|
5305
|
+
referencedColumns: ["id"];
|
|
5306
|
+
}, {
|
|
5307
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
5308
|
+
columns: ["product_category_id"];
|
|
5309
|
+
isOneToOne: false;
|
|
5310
|
+
referencedRelation: "product_categories";
|
|
5311
|
+
referencedColumns: ["id"];
|
|
5312
|
+
}, {
|
|
5313
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
5314
|
+
columns: ["product_id"];
|
|
5315
|
+
isOneToOne: false;
|
|
5316
|
+
referencedRelation: "products";
|
|
5317
|
+
referencedColumns: ["id"];
|
|
5318
|
+
}];
|
|
5049
5319
|
};
|
|
5050
|
-
|
|
5320
|
+
local_customer_price_groups: {
|
|
5051
5321
|
Row: {
|
|
5052
|
-
body_html: string | null;
|
|
5053
|
-
body_text: string | null;
|
|
5054
|
-
connection_id: string | null;
|
|
5055
5322
|
created_at: string;
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5323
|
+
currency: string;
|
|
5324
|
+
customer_id: string;
|
|
5325
|
+
discount_type: string;
|
|
5326
|
+
discount_value: number;
|
|
5060
5327
|
id: string;
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
status: string;
|
|
5066
|
-
subject: string | null;
|
|
5067
|
-
uid: number | null;
|
|
5328
|
+
min_quantity: number;
|
|
5329
|
+
notes: string | null;
|
|
5330
|
+
product_category_id: string | null;
|
|
5331
|
+
product_id: string | null;
|
|
5068
5332
|
updated_at: string;
|
|
5333
|
+
valid_from: string | null;
|
|
5334
|
+
valid_until: string | null;
|
|
5069
5335
|
};
|
|
5070
5336
|
Insert: {
|
|
5071
|
-
body_html?: string | null;
|
|
5072
|
-
body_text?: string | null;
|
|
5073
|
-
connection_id?: string | null;
|
|
5074
5337
|
created_at?: string;
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5338
|
+
currency?: string;
|
|
5339
|
+
customer_id: string;
|
|
5340
|
+
discount_type: string;
|
|
5341
|
+
discount_value: number;
|
|
5079
5342
|
id?: string;
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
status?: string;
|
|
5085
|
-
subject?: string | null;
|
|
5086
|
-
uid?: number | null;
|
|
5343
|
+
min_quantity?: number;
|
|
5344
|
+
notes?: string | null;
|
|
5345
|
+
product_category_id?: string | null;
|
|
5346
|
+
product_id?: string | null;
|
|
5087
5347
|
updated_at?: string;
|
|
5348
|
+
valid_from?: string | null;
|
|
5349
|
+
valid_until?: string | null;
|
|
5088
5350
|
};
|
|
5089
5351
|
Update: {
|
|
5090
|
-
body_html?: string | null;
|
|
5091
|
-
body_text?: string | null;
|
|
5092
|
-
connection_id?: string | null;
|
|
5093
5352
|
created_at?: string;
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5353
|
+
currency?: string;
|
|
5354
|
+
customer_id?: string;
|
|
5355
|
+
discount_type?: string;
|
|
5356
|
+
discount_value?: number;
|
|
5098
5357
|
id?: string;
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
status?: string;
|
|
5104
|
-
subject?: string | null;
|
|
5105
|
-
uid?: number | null;
|
|
5358
|
+
min_quantity?: number;
|
|
5359
|
+
notes?: string | null;
|
|
5360
|
+
product_category_id?: string | null;
|
|
5361
|
+
product_id?: string | null;
|
|
5106
5362
|
updated_at?: string;
|
|
5107
|
-
|
|
5363
|
+
valid_from?: string | null;
|
|
5364
|
+
valid_until?: string | null;
|
|
5365
|
+
};
|
|
5366
|
+
Relationships: [{
|
|
5367
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
5368
|
+
columns: ["customer_id"];
|
|
5369
|
+
isOneToOne: false;
|
|
5370
|
+
referencedRelation: "customers";
|
|
5371
|
+
referencedColumns: ["id"];
|
|
5372
|
+
}, {
|
|
5373
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
5374
|
+
columns: ["product_category_id"];
|
|
5375
|
+
isOneToOne: false;
|
|
5376
|
+
referencedRelation: "product_categories";
|
|
5377
|
+
referencedColumns: ["id"];
|
|
5378
|
+
}, {
|
|
5379
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
5380
|
+
columns: ["product_id"];
|
|
5381
|
+
isOneToOne: false;
|
|
5382
|
+
referencedRelation: "products";
|
|
5383
|
+
referencedColumns: ["id"];
|
|
5384
|
+
}];
|
|
5385
|
+
};
|
|
5386
|
+
local_customer_sales_strategies: {
|
|
5387
|
+
Row: {
|
|
5388
|
+
created_at: string;
|
|
5389
|
+
currency: string;
|
|
5390
|
+
customer_id: string;
|
|
5391
|
+
discount_type: string;
|
|
5392
|
+
discount_value: number;
|
|
5393
|
+
id: string;
|
|
5394
|
+
min_quantity: number;
|
|
5395
|
+
notes: string | null;
|
|
5396
|
+
product_category_id: string | null;
|
|
5397
|
+
product_id: string | null;
|
|
5398
|
+
updated_at: string;
|
|
5399
|
+
valid_from: string | null;
|
|
5400
|
+
valid_until: string | null;
|
|
5401
|
+
};
|
|
5402
|
+
Insert: {
|
|
5403
|
+
created_at?: string;
|
|
5404
|
+
currency?: string;
|
|
5405
|
+
customer_id: string;
|
|
5406
|
+
discount_type: string;
|
|
5407
|
+
discount_value: number;
|
|
5408
|
+
id?: string;
|
|
5409
|
+
min_quantity?: number;
|
|
5410
|
+
notes?: string | null;
|
|
5411
|
+
product_category_id?: string | null;
|
|
5412
|
+
product_id?: string | null;
|
|
5413
|
+
updated_at?: string;
|
|
5414
|
+
valid_from?: string | null;
|
|
5415
|
+
valid_until?: string | null;
|
|
5416
|
+
};
|
|
5417
|
+
Update: {
|
|
5418
|
+
created_at?: string;
|
|
5419
|
+
currency?: string;
|
|
5420
|
+
customer_id?: string;
|
|
5421
|
+
discount_type?: string;
|
|
5422
|
+
discount_value?: number;
|
|
5423
|
+
id?: string;
|
|
5424
|
+
min_quantity?: number;
|
|
5425
|
+
notes?: string | null;
|
|
5426
|
+
product_category_id?: string | null;
|
|
5427
|
+
product_id?: string | null;
|
|
5428
|
+
updated_at?: string;
|
|
5429
|
+
valid_from?: string | null;
|
|
5430
|
+
valid_until?: string | null;
|
|
5431
|
+
};
|
|
5432
|
+
Relationships: [{
|
|
5433
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
5434
|
+
columns: ["customer_id"];
|
|
5435
|
+
isOneToOne: false;
|
|
5436
|
+
referencedRelation: "customers";
|
|
5437
|
+
referencedColumns: ["id"];
|
|
5438
|
+
}, {
|
|
5439
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
5440
|
+
columns: ["product_category_id"];
|
|
5441
|
+
isOneToOne: false;
|
|
5442
|
+
referencedRelation: "product_categories";
|
|
5443
|
+
referencedColumns: ["id"];
|
|
5444
|
+
}, {
|
|
5445
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
5446
|
+
columns: ["product_id"];
|
|
5447
|
+
isOneToOne: false;
|
|
5448
|
+
referencedRelation: "products";
|
|
5449
|
+
referencedColumns: ["id"];
|
|
5450
|
+
}];
|
|
5451
|
+
};
|
|
5452
|
+
locations: {
|
|
5453
|
+
Row: {
|
|
5454
|
+
created_at: string;
|
|
5455
|
+
id: string;
|
|
5456
|
+
name: string;
|
|
5457
|
+
sort_order: number;
|
|
5458
|
+
updated_at: string;
|
|
5459
|
+
};
|
|
5460
|
+
Insert: {
|
|
5461
|
+
created_at?: string;
|
|
5462
|
+
id?: string;
|
|
5463
|
+
name: string;
|
|
5464
|
+
sort_order?: number;
|
|
5465
|
+
updated_at?: string;
|
|
5466
|
+
};
|
|
5467
|
+
Update: {
|
|
5468
|
+
created_at?: string;
|
|
5469
|
+
id?: string;
|
|
5470
|
+
name?: string;
|
|
5471
|
+
sort_order?: number;
|
|
5472
|
+
updated_at?: string;
|
|
5473
|
+
};
|
|
5474
|
+
Relationships: [];
|
|
5475
|
+
};
|
|
5476
|
+
mailbox_messages: {
|
|
5477
|
+
Row: {
|
|
5478
|
+
body_html: string | null;
|
|
5479
|
+
body_text: string | null;
|
|
5480
|
+
connection_id: string | null;
|
|
5481
|
+
created_at: string;
|
|
5482
|
+
error_message: string | null;
|
|
5483
|
+
external_id: string | null;
|
|
5484
|
+
from_email: string | null;
|
|
5485
|
+
from_name: string | null;
|
|
5486
|
+
id: string;
|
|
5487
|
+
message_id: string | null;
|
|
5488
|
+
profile_id: string | null;
|
|
5489
|
+
raw_size: number | null;
|
|
5490
|
+
received_at: string | null;
|
|
5491
|
+
status: string;
|
|
5492
|
+
subject: string | null;
|
|
5493
|
+
uid: number | null;
|
|
5494
|
+
updated_at: string;
|
|
5495
|
+
};
|
|
5496
|
+
Insert: {
|
|
5497
|
+
body_html?: string | null;
|
|
5498
|
+
body_text?: string | null;
|
|
5499
|
+
connection_id?: string | null;
|
|
5500
|
+
created_at?: string;
|
|
5501
|
+
error_message?: string | null;
|
|
5502
|
+
external_id?: string | null;
|
|
5503
|
+
from_email?: string | null;
|
|
5504
|
+
from_name?: string | null;
|
|
5505
|
+
id?: string;
|
|
5506
|
+
message_id?: string | null;
|
|
5507
|
+
profile_id?: string | null;
|
|
5508
|
+
raw_size?: number | null;
|
|
5509
|
+
received_at?: string | null;
|
|
5510
|
+
status?: string;
|
|
5511
|
+
subject?: string | null;
|
|
5512
|
+
uid?: number | null;
|
|
5513
|
+
updated_at?: string;
|
|
5514
|
+
};
|
|
5515
|
+
Update: {
|
|
5516
|
+
body_html?: string | null;
|
|
5517
|
+
body_text?: string | null;
|
|
5518
|
+
connection_id?: string | null;
|
|
5519
|
+
created_at?: string;
|
|
5520
|
+
error_message?: string | null;
|
|
5521
|
+
external_id?: string | null;
|
|
5522
|
+
from_email?: string | null;
|
|
5523
|
+
from_name?: string | null;
|
|
5524
|
+
id?: string;
|
|
5525
|
+
message_id?: string | null;
|
|
5526
|
+
profile_id?: string | null;
|
|
5527
|
+
raw_size?: number | null;
|
|
5528
|
+
received_at?: string | null;
|
|
5529
|
+
status?: string;
|
|
5530
|
+
subject?: string | null;
|
|
5531
|
+
uid?: number | null;
|
|
5532
|
+
updated_at?: string;
|
|
5533
|
+
};
|
|
5108
5534
|
Relationships: [{
|
|
5109
5535
|
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
5110
5536
|
columns: ["connection_id"];
|
|
@@ -5135,6 +5561,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5135
5561
|
matched_customer_id: string | null;
|
|
5136
5562
|
message_id: string;
|
|
5137
5563
|
notes: string | null;
|
|
5564
|
+
order_number: string | null;
|
|
5138
5565
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
5139
5566
|
reviewed_at: string | null;
|
|
5140
5567
|
reviewed_by: string | null;
|
|
@@ -5150,6 +5577,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5150
5577
|
matched_customer_id?: string | null;
|
|
5151
5578
|
message_id: string;
|
|
5152
5579
|
notes?: string | null;
|
|
5580
|
+
order_number?: string | null;
|
|
5153
5581
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5154
5582
|
reviewed_at?: string | null;
|
|
5155
5583
|
reviewed_by?: string | null;
|
|
@@ -5165,6 +5593,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5165
5593
|
matched_customer_id?: string | null;
|
|
5166
5594
|
message_id?: string;
|
|
5167
5595
|
notes?: string | null;
|
|
5596
|
+
order_number?: string | null;
|
|
5168
5597
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5169
5598
|
reviewed_at?: string | null;
|
|
5170
5599
|
reviewed_by?: string | null;
|
|
@@ -5530,6 +5959,273 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5530
5959
|
referencedColumns: ["id"];
|
|
5531
5960
|
}];
|
|
5532
5961
|
};
|
|
5962
|
+
nmbrs_component_mapping: {
|
|
5963
|
+
Row: {
|
|
5964
|
+
created_at: string;
|
|
5965
|
+
id: string;
|
|
5966
|
+
source_kind: string;
|
|
5967
|
+
source_value: string | null;
|
|
5968
|
+
updated_at: string;
|
|
5969
|
+
wage_code: string;
|
|
5970
|
+
};
|
|
5971
|
+
Insert: {
|
|
5972
|
+
created_at?: string;
|
|
5973
|
+
id?: string;
|
|
5974
|
+
source_kind: string;
|
|
5975
|
+
source_value?: string | null;
|
|
5976
|
+
updated_at?: string;
|
|
5977
|
+
wage_code: string;
|
|
5978
|
+
};
|
|
5979
|
+
Update: {
|
|
5980
|
+
created_at?: string;
|
|
5981
|
+
id?: string;
|
|
5982
|
+
source_kind?: string;
|
|
5983
|
+
source_value?: string | null;
|
|
5984
|
+
updated_at?: string;
|
|
5985
|
+
wage_code?: string;
|
|
5986
|
+
};
|
|
5987
|
+
Relationships: [{
|
|
5988
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
5989
|
+
columns: ["wage_code"];
|
|
5990
|
+
isOneToOne: false;
|
|
5991
|
+
referencedRelation: "nmbrs_wage_components";
|
|
5992
|
+
referencedColumns: ["code"];
|
|
5993
|
+
}];
|
|
5994
|
+
};
|
|
5995
|
+
nmbrs_employee_mapping: {
|
|
5996
|
+
Row: {
|
|
5997
|
+
active_from: string | null;
|
|
5998
|
+
active_to: string | null;
|
|
5999
|
+
contract_hours_per_week: number | null;
|
|
6000
|
+
created_at: string;
|
|
6001
|
+
hourly_wage: number | null;
|
|
6002
|
+
id: string;
|
|
6003
|
+
monteur_id: string;
|
|
6004
|
+
nmbrs_company_code: string | null;
|
|
6005
|
+
nmbrs_employee_number: string;
|
|
6006
|
+
updated_at: string;
|
|
6007
|
+
};
|
|
6008
|
+
Insert: {
|
|
6009
|
+
active_from?: string | null;
|
|
6010
|
+
active_to?: string | null;
|
|
6011
|
+
contract_hours_per_week?: number | null;
|
|
6012
|
+
created_at?: string;
|
|
6013
|
+
hourly_wage?: number | null;
|
|
6014
|
+
id?: string;
|
|
6015
|
+
monteur_id: string;
|
|
6016
|
+
nmbrs_company_code?: string | null;
|
|
6017
|
+
nmbrs_employee_number: string;
|
|
6018
|
+
updated_at?: string;
|
|
6019
|
+
};
|
|
6020
|
+
Update: {
|
|
6021
|
+
active_from?: string | null;
|
|
6022
|
+
active_to?: string | null;
|
|
6023
|
+
contract_hours_per_week?: number | null;
|
|
6024
|
+
created_at?: string;
|
|
6025
|
+
hourly_wage?: number | null;
|
|
6026
|
+
id?: string;
|
|
6027
|
+
monteur_id?: string;
|
|
6028
|
+
nmbrs_company_code?: string | null;
|
|
6029
|
+
nmbrs_employee_number?: string;
|
|
6030
|
+
updated_at?: string;
|
|
6031
|
+
};
|
|
6032
|
+
Relationships: [{
|
|
6033
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
6034
|
+
columns: ["monteur_id"];
|
|
6035
|
+
isOneToOne: true;
|
|
6036
|
+
referencedRelation: "monteurs";
|
|
6037
|
+
referencedColumns: ["id"];
|
|
6038
|
+
}];
|
|
6039
|
+
};
|
|
6040
|
+
nmbrs_export_lines: {
|
|
6041
|
+
Row: {
|
|
6042
|
+
amount: number;
|
|
6043
|
+
created_at: string;
|
|
6044
|
+
entry_date: string;
|
|
6045
|
+
hours: number;
|
|
6046
|
+
id: string;
|
|
6047
|
+
monteur_id: string;
|
|
6048
|
+
nmbrs_employee_number: string | null;
|
|
6049
|
+
notes: string | null;
|
|
6050
|
+
run_id: string;
|
|
6051
|
+
source_kind: string | null;
|
|
6052
|
+
source_ref_id: string | null;
|
|
6053
|
+
updated_at: string;
|
|
6054
|
+
wage_code: string;
|
|
6055
|
+
};
|
|
6056
|
+
Insert: {
|
|
6057
|
+
amount?: number;
|
|
6058
|
+
created_at?: string;
|
|
6059
|
+
entry_date: string;
|
|
6060
|
+
hours?: number;
|
|
6061
|
+
id?: string;
|
|
6062
|
+
monteur_id: string;
|
|
6063
|
+
nmbrs_employee_number?: string | null;
|
|
6064
|
+
notes?: string | null;
|
|
6065
|
+
run_id: string;
|
|
6066
|
+
source_kind?: string | null;
|
|
6067
|
+
source_ref_id?: string | null;
|
|
6068
|
+
updated_at?: string;
|
|
6069
|
+
wage_code: string;
|
|
6070
|
+
};
|
|
6071
|
+
Update: {
|
|
6072
|
+
amount?: number;
|
|
6073
|
+
created_at?: string;
|
|
6074
|
+
entry_date?: string;
|
|
6075
|
+
hours?: number;
|
|
6076
|
+
id?: string;
|
|
6077
|
+
monteur_id?: string;
|
|
6078
|
+
nmbrs_employee_number?: string | null;
|
|
6079
|
+
notes?: string | null;
|
|
6080
|
+
run_id?: string;
|
|
6081
|
+
source_kind?: string | null;
|
|
6082
|
+
source_ref_id?: string | null;
|
|
6083
|
+
updated_at?: string;
|
|
6084
|
+
wage_code?: string;
|
|
6085
|
+
};
|
|
6086
|
+
Relationships: [{
|
|
6087
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
6088
|
+
columns: ["monteur_id"];
|
|
6089
|
+
isOneToOne: false;
|
|
6090
|
+
referencedRelation: "monteurs";
|
|
6091
|
+
referencedColumns: ["id"];
|
|
6092
|
+
}, {
|
|
6093
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
6094
|
+
columns: ["run_id"];
|
|
6095
|
+
isOneToOne: false;
|
|
6096
|
+
referencedRelation: "nmbrs_export_runs";
|
|
6097
|
+
referencedColumns: ["id"];
|
|
6098
|
+
}, {
|
|
6099
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
6100
|
+
columns: ["wage_code"];
|
|
6101
|
+
isOneToOne: false;
|
|
6102
|
+
referencedRelation: "nmbrs_wage_components";
|
|
6103
|
+
referencedColumns: ["code"];
|
|
6104
|
+
}];
|
|
6105
|
+
};
|
|
6106
|
+
nmbrs_export_runs: {
|
|
6107
|
+
Row: {
|
|
6108
|
+
created_at: string;
|
|
6109
|
+
file_name: string | null;
|
|
6110
|
+
generated_at: string;
|
|
6111
|
+
generated_by: string | null;
|
|
6112
|
+
id: string;
|
|
6113
|
+
notes: string | null;
|
|
6114
|
+
period_end: string;
|
|
6115
|
+
period_label: string;
|
|
6116
|
+
period_start: string;
|
|
6117
|
+
status: string;
|
|
6118
|
+
total_hours: number;
|
|
6119
|
+
total_lines: number;
|
|
6120
|
+
updated_at: string;
|
|
6121
|
+
};
|
|
6122
|
+
Insert: {
|
|
6123
|
+
created_at?: string;
|
|
6124
|
+
file_name?: string | null;
|
|
6125
|
+
generated_at?: string;
|
|
6126
|
+
generated_by?: string | null;
|
|
6127
|
+
id?: string;
|
|
6128
|
+
notes?: string | null;
|
|
6129
|
+
period_end: string;
|
|
6130
|
+
period_label: string;
|
|
6131
|
+
period_start: string;
|
|
6132
|
+
status?: string;
|
|
6133
|
+
total_hours?: number;
|
|
6134
|
+
total_lines?: number;
|
|
6135
|
+
updated_at?: string;
|
|
6136
|
+
};
|
|
6137
|
+
Update: {
|
|
6138
|
+
created_at?: string;
|
|
6139
|
+
file_name?: string | null;
|
|
6140
|
+
generated_at?: string;
|
|
6141
|
+
generated_by?: string | null;
|
|
6142
|
+
id?: string;
|
|
6143
|
+
notes?: string | null;
|
|
6144
|
+
period_end?: string;
|
|
6145
|
+
period_label?: string;
|
|
6146
|
+
period_start?: string;
|
|
6147
|
+
status?: string;
|
|
6148
|
+
total_hours?: number;
|
|
6149
|
+
total_lines?: number;
|
|
6150
|
+
updated_at?: string;
|
|
6151
|
+
};
|
|
6152
|
+
Relationships: [];
|
|
6153
|
+
};
|
|
6154
|
+
nmbrs_settings: {
|
|
6155
|
+
Row: {
|
|
6156
|
+
created_at: string;
|
|
6157
|
+
default_company_code: string | null;
|
|
6158
|
+
id: boolean;
|
|
6159
|
+
include_travel: boolean;
|
|
6160
|
+
overtime_threshold_daily: number;
|
|
6161
|
+
overtime_threshold_weekly: number;
|
|
6162
|
+
period_type: string;
|
|
6163
|
+
updated_at: string;
|
|
6164
|
+
updated_by: string | null;
|
|
6165
|
+
week_start_day: number;
|
|
6166
|
+
};
|
|
6167
|
+
Insert: {
|
|
6168
|
+
created_at?: string;
|
|
6169
|
+
default_company_code?: string | null;
|
|
6170
|
+
id?: boolean;
|
|
6171
|
+
include_travel?: boolean;
|
|
6172
|
+
overtime_threshold_daily?: number;
|
|
6173
|
+
overtime_threshold_weekly?: number;
|
|
6174
|
+
period_type?: string;
|
|
6175
|
+
updated_at?: string;
|
|
6176
|
+
updated_by?: string | null;
|
|
6177
|
+
week_start_day?: number;
|
|
6178
|
+
};
|
|
6179
|
+
Update: {
|
|
6180
|
+
created_at?: string;
|
|
6181
|
+
default_company_code?: string | null;
|
|
6182
|
+
id?: boolean;
|
|
6183
|
+
include_travel?: boolean;
|
|
6184
|
+
overtime_threshold_daily?: number;
|
|
6185
|
+
overtime_threshold_weekly?: number;
|
|
6186
|
+
period_type?: string;
|
|
6187
|
+
updated_at?: string;
|
|
6188
|
+
updated_by?: string | null;
|
|
6189
|
+
week_start_day?: number;
|
|
6190
|
+
};
|
|
6191
|
+
Relationships: [];
|
|
6192
|
+
};
|
|
6193
|
+
nmbrs_wage_components: {
|
|
6194
|
+
Row: {
|
|
6195
|
+
category: string;
|
|
6196
|
+
code: string;
|
|
6197
|
+
created_at: string;
|
|
6198
|
+
id: string;
|
|
6199
|
+
is_active: boolean;
|
|
6200
|
+
label: string;
|
|
6201
|
+
sort_order: number;
|
|
6202
|
+
unit: string;
|
|
6203
|
+
updated_at: string;
|
|
6204
|
+
};
|
|
6205
|
+
Insert: {
|
|
6206
|
+
category: string;
|
|
6207
|
+
code: string;
|
|
6208
|
+
created_at?: string;
|
|
6209
|
+
id?: string;
|
|
6210
|
+
is_active?: boolean;
|
|
6211
|
+
label: string;
|
|
6212
|
+
sort_order?: number;
|
|
6213
|
+
unit: string;
|
|
6214
|
+
updated_at?: string;
|
|
6215
|
+
};
|
|
6216
|
+
Update: {
|
|
6217
|
+
category?: string;
|
|
6218
|
+
code?: string;
|
|
6219
|
+
created_at?: string;
|
|
6220
|
+
id?: string;
|
|
6221
|
+
is_active?: boolean;
|
|
6222
|
+
label?: string;
|
|
6223
|
+
sort_order?: number;
|
|
6224
|
+
unit?: string;
|
|
6225
|
+
updated_at?: string;
|
|
6226
|
+
};
|
|
6227
|
+
Relationships: [];
|
|
6228
|
+
};
|
|
5533
6229
|
notifications: {
|
|
5534
6230
|
Row: {
|
|
5535
6231
|
created_at: string;
|
|
@@ -5754,6 +6450,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5754
6450
|
id: string;
|
|
5755
6451
|
items: import("../integrations/supabase/types").Json;
|
|
5756
6452
|
notes: string | null;
|
|
6453
|
+
order_number: string | null;
|
|
5757
6454
|
recipient_id: string;
|
|
5758
6455
|
total_amount: number;
|
|
5759
6456
|
};
|
|
@@ -5767,6 +6464,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5767
6464
|
id?: string;
|
|
5768
6465
|
items?: import("../integrations/supabase/types").Json;
|
|
5769
6466
|
notes?: string | null;
|
|
6467
|
+
order_number?: string | null;
|
|
5770
6468
|
recipient_id: string;
|
|
5771
6469
|
total_amount?: number;
|
|
5772
6470
|
};
|
|
@@ -5780,6 +6478,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5780
6478
|
id?: string;
|
|
5781
6479
|
items?: import("../integrations/supabase/types").Json;
|
|
5782
6480
|
notes?: string | null;
|
|
6481
|
+
order_number?: string | null;
|
|
5783
6482
|
recipient_id?: string;
|
|
5784
6483
|
total_amount?: number;
|
|
5785
6484
|
};
|
|
@@ -5939,6 +6638,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5939
6638
|
crates_per_layer: number;
|
|
5940
6639
|
created_at: string;
|
|
5941
6640
|
id: string;
|
|
6641
|
+
layer_fraction: number;
|
|
6642
|
+
layer_share_pct: number;
|
|
6643
|
+
layers_per_cart: number;
|
|
5942
6644
|
order_item_id: string | null;
|
|
5943
6645
|
plants_per_crate: number;
|
|
5944
6646
|
product_id: string | null;
|
|
@@ -5950,6 +6652,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5950
6652
|
crates_per_layer?: number;
|
|
5951
6653
|
created_at?: string;
|
|
5952
6654
|
id?: string;
|
|
6655
|
+
layer_fraction?: number;
|
|
6656
|
+
layer_share_pct?: number;
|
|
6657
|
+
layers_per_cart?: number;
|
|
5953
6658
|
order_item_id?: string | null;
|
|
5954
6659
|
plants_per_crate?: number;
|
|
5955
6660
|
product_id?: string | null;
|
|
@@ -5961,6 +6666,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5961
6666
|
crates_per_layer?: number;
|
|
5962
6667
|
created_at?: string;
|
|
5963
6668
|
id?: string;
|
|
6669
|
+
layer_fraction?: number;
|
|
6670
|
+
layer_share_pct?: number;
|
|
6671
|
+
layers_per_cart?: number;
|
|
5964
6672
|
order_item_id?: string | null;
|
|
5965
6673
|
plants_per_crate?: number;
|
|
5966
6674
|
product_id?: string | null;
|
|
@@ -5988,33 +6696,45 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5988
6696
|
};
|
|
5989
6697
|
order_carts: {
|
|
5990
6698
|
Row: {
|
|
6699
|
+
algorithm_version: number;
|
|
5991
6700
|
cart_number: number;
|
|
5992
6701
|
created_at: string;
|
|
5993
6702
|
id: string;
|
|
5994
6703
|
is_auto: boolean;
|
|
5995
6704
|
is_complete: boolean;
|
|
5996
6705
|
notes: string | null;
|
|
6706
|
+
occupancy_pct: number;
|
|
5997
6707
|
order_id: string;
|
|
6708
|
+
source: string;
|
|
6709
|
+
total_layers_used: number;
|
|
5998
6710
|
updated_at: string;
|
|
5999
6711
|
};
|
|
6000
6712
|
Insert: {
|
|
6713
|
+
algorithm_version?: number;
|
|
6001
6714
|
cart_number: number;
|
|
6002
6715
|
created_at?: string;
|
|
6003
6716
|
id?: string;
|
|
6004
6717
|
is_auto?: boolean;
|
|
6005
6718
|
is_complete?: boolean;
|
|
6006
6719
|
notes?: string | null;
|
|
6720
|
+
occupancy_pct?: number;
|
|
6007
6721
|
order_id: string;
|
|
6722
|
+
source?: string;
|
|
6723
|
+
total_layers_used?: number;
|
|
6008
6724
|
updated_at?: string;
|
|
6009
6725
|
};
|
|
6010
6726
|
Update: {
|
|
6727
|
+
algorithm_version?: number;
|
|
6011
6728
|
cart_number?: number;
|
|
6012
6729
|
created_at?: string;
|
|
6013
6730
|
id?: string;
|
|
6014
6731
|
is_auto?: boolean;
|
|
6015
6732
|
is_complete?: boolean;
|
|
6016
6733
|
notes?: string | null;
|
|
6734
|
+
occupancy_pct?: number;
|
|
6017
6735
|
order_id?: string;
|
|
6736
|
+
source?: string;
|
|
6737
|
+
total_layers_used?: number;
|
|
6018
6738
|
updated_at?: string;
|
|
6019
6739
|
};
|
|
6020
6740
|
Relationships: [{
|
|
@@ -6167,6 +6887,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6167
6887
|
order_date: string;
|
|
6168
6888
|
order_number: string;
|
|
6169
6889
|
order_source: string;
|
|
6890
|
+
plan_locked_at: string | null;
|
|
6891
|
+
plan_locked_ref: string | null;
|
|
6170
6892
|
status: string;
|
|
6171
6893
|
total: string;
|
|
6172
6894
|
updated_at: string;
|
|
@@ -6183,6 +6905,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6183
6905
|
order_date?: string;
|
|
6184
6906
|
order_number: string;
|
|
6185
6907
|
order_source?: string;
|
|
6908
|
+
plan_locked_at?: string | null;
|
|
6909
|
+
plan_locked_ref?: string | null;
|
|
6186
6910
|
status?: string;
|
|
6187
6911
|
total?: string;
|
|
6188
6912
|
updated_at?: string;
|
|
@@ -6199,6 +6923,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6199
6923
|
order_date?: string;
|
|
6200
6924
|
order_number?: string;
|
|
6201
6925
|
order_source?: string;
|
|
6926
|
+
plan_locked_at?: string | null;
|
|
6927
|
+
plan_locked_ref?: string | null;
|
|
6202
6928
|
status?: string;
|
|
6203
6929
|
total?: string;
|
|
6204
6930
|
updated_at?: string;
|
|
@@ -6571,6 +7297,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6571
7297
|
display_name: string | null;
|
|
6572
7298
|
email: string | null;
|
|
6573
7299
|
id: string;
|
|
7300
|
+
is_superadmin: boolean;
|
|
6574
7301
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
6575
7302
|
tenant_id: string | null;
|
|
6576
7303
|
updated_at: string;
|
|
@@ -6580,6 +7307,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6580
7307
|
display_name?: string | null;
|
|
6581
7308
|
email?: string | null;
|
|
6582
7309
|
id: string;
|
|
7310
|
+
is_superadmin?: boolean;
|
|
6583
7311
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
6584
7312
|
tenant_id?: string | null;
|
|
6585
7313
|
updated_at?: string;
|
|
@@ -6589,6 +7317,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6589
7317
|
display_name?: string | null;
|
|
6590
7318
|
email?: string | null;
|
|
6591
7319
|
id?: string;
|
|
7320
|
+
is_superadmin?: boolean;
|
|
6592
7321
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
6593
7322
|
tenant_id?: string | null;
|
|
6594
7323
|
updated_at?: string;
|
|
@@ -7378,6 +8107,66 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7378
8107
|
};
|
|
7379
8108
|
Relationships: [];
|
|
7380
8109
|
};
|
|
8110
|
+
sidebar_config: {
|
|
8111
|
+
Row: {
|
|
8112
|
+
id: string;
|
|
8113
|
+
module_order: string[];
|
|
8114
|
+
updated_at: string;
|
|
8115
|
+
};
|
|
8116
|
+
Insert: {
|
|
8117
|
+
id?: string;
|
|
8118
|
+
module_order?: string[];
|
|
8119
|
+
updated_at?: string;
|
|
8120
|
+
};
|
|
8121
|
+
Update: {
|
|
8122
|
+
id?: string;
|
|
8123
|
+
module_order?: string[];
|
|
8124
|
+
updated_at?: string;
|
|
8125
|
+
};
|
|
8126
|
+
Relationships: [];
|
|
8127
|
+
};
|
|
8128
|
+
stock_import_runs: {
|
|
8129
|
+
Row: {
|
|
8130
|
+
connection_id: string | null;
|
|
8131
|
+
created_at: string;
|
|
8132
|
+
created_rows: number;
|
|
8133
|
+
errors: import("../integrations/supabase/types").Json;
|
|
8134
|
+
filename: string | null;
|
|
8135
|
+
id: string;
|
|
8136
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
8137
|
+
skipped_rows: number;
|
|
8138
|
+
total_rows: number;
|
|
8139
|
+
updated_rows: number;
|
|
8140
|
+
user_id: string;
|
|
8141
|
+
};
|
|
8142
|
+
Insert: {
|
|
8143
|
+
connection_id?: string | null;
|
|
8144
|
+
created_at?: string;
|
|
8145
|
+
created_rows?: number;
|
|
8146
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
8147
|
+
filename?: string | null;
|
|
8148
|
+
id?: string;
|
|
8149
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
8150
|
+
skipped_rows?: number;
|
|
8151
|
+
total_rows?: number;
|
|
8152
|
+
updated_rows?: number;
|
|
8153
|
+
user_id: string;
|
|
8154
|
+
};
|
|
8155
|
+
Update: {
|
|
8156
|
+
connection_id?: string | null;
|
|
8157
|
+
created_at?: string;
|
|
8158
|
+
created_rows?: number;
|
|
8159
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
8160
|
+
filename?: string | null;
|
|
8161
|
+
id?: string;
|
|
8162
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
8163
|
+
skipped_rows?: number;
|
|
8164
|
+
total_rows?: number;
|
|
8165
|
+
updated_rows?: number;
|
|
8166
|
+
user_id?: string;
|
|
8167
|
+
};
|
|
8168
|
+
Relationships: [];
|
|
8169
|
+
};
|
|
7381
8170
|
stock_mutation_log: {
|
|
7382
8171
|
Row: {
|
|
7383
8172
|
connection_id: string | null;
|
|
@@ -7394,7 +8183,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7394
8183
|
reason: string | null;
|
|
7395
8184
|
reserved_after: number | null;
|
|
7396
8185
|
reserved_before: number | null;
|
|
7397
|
-
trade_item_key: string;
|
|
8186
|
+
trade_item_key: string | null;
|
|
7398
8187
|
};
|
|
7399
8188
|
Insert: {
|
|
7400
8189
|
connection_id?: string | null;
|
|
@@ -7411,7 +8200,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7411
8200
|
reason?: string | null;
|
|
7412
8201
|
reserved_after?: number | null;
|
|
7413
8202
|
reserved_before?: number | null;
|
|
7414
|
-
trade_item_key
|
|
8203
|
+
trade_item_key?: string | null;
|
|
7415
8204
|
};
|
|
7416
8205
|
Update: {
|
|
7417
8206
|
connection_id?: string | null;
|
|
@@ -7428,7 +8217,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7428
8217
|
reason?: string | null;
|
|
7429
8218
|
reserved_after?: number | null;
|
|
7430
8219
|
reserved_before?: number | null;
|
|
7431
|
-
trade_item_key?: string;
|
|
8220
|
+
trade_item_key?: string | null;
|
|
7432
8221
|
};
|
|
7433
8222
|
Relationships: [];
|
|
7434
8223
|
};
|
|
@@ -7747,29 +8536,137 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7747
8536
|
connection_id: string;
|
|
7748
8537
|
created_at?: string;
|
|
7749
8538
|
id?: string;
|
|
7750
|
-
incoming_stock?: number;
|
|
7751
|
-
minimum_stock?: number;
|
|
7752
|
-
notes?: string | null;
|
|
7753
|
-
physical_stock?: number;
|
|
7754
|
-
reserved_stock?: number;
|
|
7755
|
-
trade_item_key: string;
|
|
8539
|
+
incoming_stock?: number;
|
|
8540
|
+
minimum_stock?: number;
|
|
8541
|
+
notes?: string | null;
|
|
8542
|
+
physical_stock?: number;
|
|
8543
|
+
reserved_stock?: number;
|
|
8544
|
+
trade_item_key: string;
|
|
8545
|
+
updated_at?: string;
|
|
8546
|
+
user_id: string;
|
|
8547
|
+
};
|
|
8548
|
+
Update: {
|
|
8549
|
+
connection_id?: string;
|
|
8550
|
+
created_at?: string;
|
|
8551
|
+
id?: string;
|
|
8552
|
+
incoming_stock?: number;
|
|
8553
|
+
minimum_stock?: number;
|
|
8554
|
+
notes?: string | null;
|
|
8555
|
+
physical_stock?: number;
|
|
8556
|
+
reserved_stock?: number;
|
|
8557
|
+
trade_item_key?: string;
|
|
8558
|
+
updated_at?: string;
|
|
8559
|
+
user_id?: string;
|
|
8560
|
+
};
|
|
8561
|
+
Relationships: [];
|
|
8562
|
+
};
|
|
8563
|
+
trade_item_supply_lines: {
|
|
8564
|
+
Row: {
|
|
8565
|
+
available_quantity: number | null;
|
|
8566
|
+
connection_id: string;
|
|
8567
|
+
created_at: string;
|
|
8568
|
+
currency: string | null;
|
|
8569
|
+
endpoint_family: string | null;
|
|
8570
|
+
environment: string | null;
|
|
8571
|
+
id: string;
|
|
8572
|
+
last_error: string | null;
|
|
8573
|
+
last_status: number | null;
|
|
8574
|
+
packing_configuration_id: string | null;
|
|
8575
|
+
period_end: string | null;
|
|
8576
|
+
period_start: string | null;
|
|
8577
|
+
price_per_piece: number | null;
|
|
8578
|
+
sales_unit: string | null;
|
|
8579
|
+
supply_line_id: string | null;
|
|
8580
|
+
supply_type: string;
|
|
8581
|
+
trade_item_id: string;
|
|
8582
|
+
updated_at: string;
|
|
8583
|
+
user_id: string;
|
|
8584
|
+
week: number | null;
|
|
8585
|
+
year: number | null;
|
|
8586
|
+
};
|
|
8587
|
+
Insert: {
|
|
8588
|
+
available_quantity?: number | null;
|
|
8589
|
+
connection_id: string;
|
|
8590
|
+
created_at?: string;
|
|
8591
|
+
currency?: string | null;
|
|
8592
|
+
endpoint_family?: string | null;
|
|
8593
|
+
environment?: string | null;
|
|
8594
|
+
id?: string;
|
|
8595
|
+
last_error?: string | null;
|
|
8596
|
+
last_status?: number | null;
|
|
8597
|
+
packing_configuration_id?: string | null;
|
|
8598
|
+
period_end?: string | null;
|
|
8599
|
+
period_start?: string | null;
|
|
8600
|
+
price_per_piece?: number | null;
|
|
8601
|
+
sales_unit?: string | null;
|
|
8602
|
+
supply_line_id?: string | null;
|
|
8603
|
+
supply_type?: string;
|
|
8604
|
+
trade_item_id: string;
|
|
8605
|
+
updated_at?: string;
|
|
8606
|
+
user_id: string;
|
|
8607
|
+
week?: number | null;
|
|
8608
|
+
year?: number | null;
|
|
8609
|
+
};
|
|
8610
|
+
Update: {
|
|
8611
|
+
available_quantity?: number | null;
|
|
8612
|
+
connection_id?: string;
|
|
8613
|
+
created_at?: string;
|
|
8614
|
+
currency?: string | null;
|
|
8615
|
+
endpoint_family?: string | null;
|
|
8616
|
+
environment?: string | null;
|
|
8617
|
+
id?: string;
|
|
8618
|
+
last_error?: string | null;
|
|
8619
|
+
last_status?: number | null;
|
|
8620
|
+
packing_configuration_id?: string | null;
|
|
8621
|
+
period_end?: string | null;
|
|
8622
|
+
period_start?: string | null;
|
|
8623
|
+
price_per_piece?: number | null;
|
|
8624
|
+
sales_unit?: string | null;
|
|
8625
|
+
supply_line_id?: string | null;
|
|
8626
|
+
supply_type?: string;
|
|
8627
|
+
trade_item_id?: string;
|
|
8628
|
+
updated_at?: string;
|
|
8629
|
+
user_id?: string;
|
|
8630
|
+
week?: number | null;
|
|
8631
|
+
year?: number | null;
|
|
8632
|
+
};
|
|
8633
|
+
Relationships: [];
|
|
8634
|
+
};
|
|
8635
|
+
trade_item_warehouse_preferences: {
|
|
8636
|
+
Row: {
|
|
8637
|
+
connection_id: string;
|
|
8638
|
+
created_at: string;
|
|
8639
|
+
id: string;
|
|
8640
|
+
trade_item_id: string;
|
|
8641
|
+
updated_at: string;
|
|
8642
|
+
warehouse_id: string;
|
|
8643
|
+
warehouse_name: string | null;
|
|
8644
|
+
};
|
|
8645
|
+
Insert: {
|
|
8646
|
+
connection_id: string;
|
|
8647
|
+
created_at?: string;
|
|
8648
|
+
id?: string;
|
|
8649
|
+
trade_item_id: string;
|
|
7756
8650
|
updated_at?: string;
|
|
7757
|
-
|
|
8651
|
+
warehouse_id: string;
|
|
8652
|
+
warehouse_name?: string | null;
|
|
7758
8653
|
};
|
|
7759
8654
|
Update: {
|
|
7760
8655
|
connection_id?: string;
|
|
7761
8656
|
created_at?: string;
|
|
7762
8657
|
id?: string;
|
|
7763
|
-
|
|
7764
|
-
minimum_stock?: number;
|
|
7765
|
-
notes?: string | null;
|
|
7766
|
-
physical_stock?: number;
|
|
7767
|
-
reserved_stock?: number;
|
|
7768
|
-
trade_item_key?: string;
|
|
8658
|
+
trade_item_id?: string;
|
|
7769
8659
|
updated_at?: string;
|
|
7770
|
-
|
|
8660
|
+
warehouse_id?: string;
|
|
8661
|
+
warehouse_name?: string | null;
|
|
7771
8662
|
};
|
|
7772
|
-
Relationships: [
|
|
8663
|
+
Relationships: [{
|
|
8664
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8665
|
+
columns: ["connection_id"];
|
|
8666
|
+
isOneToOne: false;
|
|
8667
|
+
referencedRelation: "floriday_connections";
|
|
8668
|
+
referencedColumns: ["id"];
|
|
8669
|
+
}];
|
|
7773
8670
|
};
|
|
7774
8671
|
twinfield_connections: {
|
|
7775
8672
|
Row: {
|
|
@@ -8090,6 +8987,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8090
8987
|
default_invoice_type: string;
|
|
8091
8988
|
default_payment_term_days: number;
|
|
8092
8989
|
default_vat_code: string;
|
|
8990
|
+
invoice_enabled_ao: boolean;
|
|
8991
|
+
invoice_enabled_fo: boolean;
|
|
8992
|
+
invoice_enabled_ho: boolean;
|
|
8993
|
+
invoice_enabled_mo: boolean;
|
|
8093
8994
|
updated_at: string;
|
|
8094
8995
|
user_id: string;
|
|
8095
8996
|
};
|
|
@@ -8099,6 +9000,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8099
9000
|
default_invoice_type?: string;
|
|
8100
9001
|
default_payment_term_days?: number;
|
|
8101
9002
|
default_vat_code?: string;
|
|
9003
|
+
invoice_enabled_ao?: boolean;
|
|
9004
|
+
invoice_enabled_fo?: boolean;
|
|
9005
|
+
invoice_enabled_ho?: boolean;
|
|
9006
|
+
invoice_enabled_mo?: boolean;
|
|
8102
9007
|
updated_at?: string;
|
|
8103
9008
|
user_id: string;
|
|
8104
9009
|
};
|
|
@@ -8108,6 +9013,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8108
9013
|
default_invoice_type?: string;
|
|
8109
9014
|
default_payment_term_days?: number;
|
|
8110
9015
|
default_vat_code?: string;
|
|
9016
|
+
invoice_enabled_ao?: boolean;
|
|
9017
|
+
invoice_enabled_fo?: boolean;
|
|
9018
|
+
invoice_enabled_ho?: boolean;
|
|
9019
|
+
invoice_enabled_mo?: boolean;
|
|
8111
9020
|
updated_at?: string;
|
|
8112
9021
|
user_id?: string;
|
|
8113
9022
|
};
|
|
@@ -9009,6 +9918,44 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9009
9918
|
};
|
|
9010
9919
|
Relationships: [];
|
|
9011
9920
|
};
|
|
9921
|
+
floriday_customer_discounts: {
|
|
9922
|
+
Row: {
|
|
9923
|
+
base_price: number | null;
|
|
9924
|
+
buyer_organization_id: string | null;
|
|
9925
|
+
currency: string | null;
|
|
9926
|
+
discount_type: string | null;
|
|
9927
|
+
discount_value: number | null;
|
|
9928
|
+
min_quantity: number | null;
|
|
9929
|
+
net_price: number | null;
|
|
9930
|
+
product_group_id: string | null;
|
|
9931
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
9932
|
+
source: string | null;
|
|
9933
|
+
source_id: string | null;
|
|
9934
|
+
trade_item_id: string | null;
|
|
9935
|
+
valid_from: string | null;
|
|
9936
|
+
valid_until: string | null;
|
|
9937
|
+
};
|
|
9938
|
+
Relationships: [];
|
|
9939
|
+
};
|
|
9940
|
+
local_customer_discounts: {
|
|
9941
|
+
Row: {
|
|
9942
|
+
base_price: number | null;
|
|
9943
|
+
currency: string | null;
|
|
9944
|
+
customer_id: string | null;
|
|
9945
|
+
discount_type: string | null;
|
|
9946
|
+
discount_value: number | null;
|
|
9947
|
+
min_quantity: number | null;
|
|
9948
|
+
net_price: number | null;
|
|
9949
|
+
product_category_id: string | null;
|
|
9950
|
+
product_id: string | null;
|
|
9951
|
+
product_name: string | null;
|
|
9952
|
+
source: string | null;
|
|
9953
|
+
source_id: string | null;
|
|
9954
|
+
valid_from: string | null;
|
|
9955
|
+
valid_until: string | null;
|
|
9956
|
+
};
|
|
9957
|
+
Relationships: [];
|
|
9958
|
+
};
|
|
9012
9959
|
manufacture_product_possible_stock_view: {
|
|
9013
9960
|
Row: {
|
|
9014
9961
|
component_count: number | null;
|
|
@@ -9364,6 +10311,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9364
10311
|
order_number: string;
|
|
9365
10312
|
}[];
|
|
9366
10313
|
};
|
|
10314
|
+
autolink_product_to_floriday: {
|
|
10315
|
+
Args: {
|
|
10316
|
+
p_product_id: string;
|
|
10317
|
+
};
|
|
10318
|
+
Returns: string;
|
|
10319
|
+
};
|
|
9367
10320
|
backfill_open_order_reservations: {
|
|
9368
10321
|
Args: never;
|
|
9369
10322
|
Returns: {
|
|
@@ -9376,10 +10329,44 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9376
10329
|
};
|
|
9377
10330
|
Returns: number;
|
|
9378
10331
|
};
|
|
10332
|
+
check_offer_product_available_stock: {
|
|
10333
|
+
Args: {
|
|
10334
|
+
p_campaign_product_id: string;
|
|
10335
|
+
p_code: string;
|
|
10336
|
+
p_needed_qty?: number;
|
|
10337
|
+
p_product_name?: string;
|
|
10338
|
+
};
|
|
10339
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10340
|
+
};
|
|
10341
|
+
check_trade_item_available_stock: {
|
|
10342
|
+
Args: {
|
|
10343
|
+
p_connection_id?: string;
|
|
10344
|
+
p_context?: string;
|
|
10345
|
+
p_needed_qty?: number;
|
|
10346
|
+
p_order_id?: string;
|
|
10347
|
+
p_order_item_id?: string;
|
|
10348
|
+
p_owner_id?: string;
|
|
10349
|
+
p_product_name?: string;
|
|
10350
|
+
p_trade_item_key: string;
|
|
10351
|
+
};
|
|
10352
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10353
|
+
};
|
|
9379
10354
|
cleanup_old_bookings: {
|
|
9380
10355
|
Args: never;
|
|
9381
10356
|
Returns: number;
|
|
9382
10357
|
};
|
|
10358
|
+
consume_floriday_rate_limit: {
|
|
10359
|
+
Args: {
|
|
10360
|
+
p_bucket: string;
|
|
10361
|
+
p_capacity: number;
|
|
10362
|
+
p_cost?: number;
|
|
10363
|
+
p_refill_per_sec: number;
|
|
10364
|
+
};
|
|
10365
|
+
Returns: {
|
|
10366
|
+
granted: boolean;
|
|
10367
|
+
wait_ms: number;
|
|
10368
|
+
}[];
|
|
10369
|
+
};
|
|
9383
10370
|
control_get_todays_carts: {
|
|
9384
10371
|
Args: never;
|
|
9385
10372
|
Returns: {
|
|
@@ -9460,6 +10447,18 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9460
10447
|
status: string;
|
|
9461
10448
|
}[];
|
|
9462
10449
|
};
|
|
10450
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10451
|
+
Args: {
|
|
10452
|
+
p_order_id: string;
|
|
10453
|
+
};
|
|
10454
|
+
Returns: undefined;
|
|
10455
|
+
};
|
|
10456
|
+
ensure_trade_item_stock_row: {
|
|
10457
|
+
Args: {
|
|
10458
|
+
p_key: string;
|
|
10459
|
+
};
|
|
10460
|
+
Returns: undefined;
|
|
10461
|
+
};
|
|
9463
10462
|
ensure_user_tenant: {
|
|
9464
10463
|
Args: never;
|
|
9465
10464
|
Returns: string;
|
|
@@ -9497,12 +10496,31 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9497
10496
|
};
|
|
9498
10497
|
Returns: boolean;
|
|
9499
10498
|
};
|
|
9500
|
-
|
|
10499
|
+
find_trade_item_key: {
|
|
9501
10500
|
Args: {
|
|
10501
|
+
p_barcode: string;
|
|
9502
10502
|
p_name: string;
|
|
10503
|
+
p_product_id: string;
|
|
9503
10504
|
};
|
|
9504
10505
|
Returns: string;
|
|
9505
10506
|
};
|
|
10507
|
+
floriday_effective_price: {
|
|
10508
|
+
Args: {
|
|
10509
|
+
_buyer_id: string;
|
|
10510
|
+
_on_date?: string;
|
|
10511
|
+
_quantity?: number;
|
|
10512
|
+
_trade_item_id: string;
|
|
10513
|
+
};
|
|
10514
|
+
Returns: {
|
|
10515
|
+
base_price: number;
|
|
10516
|
+
currency: string;
|
|
10517
|
+
discount_type: string;
|
|
10518
|
+
discount_value: number;
|
|
10519
|
+
net_price: number;
|
|
10520
|
+
source: string;
|
|
10521
|
+
source_id: string;
|
|
10522
|
+
}[];
|
|
10523
|
+
};
|
|
9506
10524
|
format_cart_number: {
|
|
9507
10525
|
Args: {
|
|
9508
10526
|
p_pick_date: string;
|
|
@@ -9523,6 +10541,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9523
10541
|
preferred_warehouse_name: string;
|
|
9524
10542
|
}[];
|
|
9525
10543
|
};
|
|
10544
|
+
get_active_floriday_context: {
|
|
10545
|
+
Args: never;
|
|
10546
|
+
Returns: {
|
|
10547
|
+
connection_id: string;
|
|
10548
|
+
user_id: string;
|
|
10549
|
+
}[];
|
|
10550
|
+
};
|
|
9526
10551
|
get_active_twinfield_public: {
|
|
9527
10552
|
Args: never;
|
|
9528
10553
|
Returns: {
|
|
@@ -9534,6 +10559,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9534
10559
|
office_code: string;
|
|
9535
10560
|
}[];
|
|
9536
10561
|
};
|
|
10562
|
+
get_floricode_record_counts: {
|
|
10563
|
+
Args: never;
|
|
10564
|
+
Returns: {
|
|
10565
|
+
count: number;
|
|
10566
|
+
resource: string;
|
|
10567
|
+
}[];
|
|
10568
|
+
};
|
|
9537
10569
|
get_floriday_agreements_active: {
|
|
9538
10570
|
Args: {
|
|
9539
10571
|
p_on_date?: string;
|
|
@@ -9625,6 +10657,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9625
10657
|
};
|
|
9626
10658
|
Returns: import("../integrations/supabase/types").Json;
|
|
9627
10659
|
};
|
|
10660
|
+
get_offer_delivery_options: {
|
|
10661
|
+
Args: {
|
|
10662
|
+
p_code: string;
|
|
10663
|
+
};
|
|
10664
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10665
|
+
};
|
|
10666
|
+
get_offer_recipient_by_code: {
|
|
10667
|
+
Args: {
|
|
10668
|
+
p_code: string;
|
|
10669
|
+
};
|
|
10670
|
+
Returns: {
|
|
10671
|
+
campaign_id: string;
|
|
10672
|
+
clicked_at: string;
|
|
10673
|
+
customer_id: string;
|
|
10674
|
+
id: string;
|
|
10675
|
+
ordered_at: string;
|
|
10676
|
+
}[];
|
|
10677
|
+
};
|
|
9628
10678
|
get_or_assign_floriday_order_number: {
|
|
9629
10679
|
Args: {
|
|
9630
10680
|
p_floriday_id: string;
|
|
@@ -9677,12 +10727,53 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9677
10727
|
Args: never;
|
|
9678
10728
|
Returns: boolean;
|
|
9679
10729
|
};
|
|
10730
|
+
is_superadmin: {
|
|
10731
|
+
Args: {
|
|
10732
|
+
_user_id: string;
|
|
10733
|
+
};
|
|
10734
|
+
Returns: boolean;
|
|
10735
|
+
};
|
|
10736
|
+
local_effective_price: {
|
|
10737
|
+
Args: {
|
|
10738
|
+
_customer_id: string;
|
|
10739
|
+
_on_date?: string;
|
|
10740
|
+
_product_id: string;
|
|
10741
|
+
_quantity?: number;
|
|
10742
|
+
};
|
|
10743
|
+
Returns: {
|
|
10744
|
+
currency: string;
|
|
10745
|
+
discount_type: string;
|
|
10746
|
+
discount_value: number;
|
|
10747
|
+
net_price: number;
|
|
10748
|
+
source: string;
|
|
10749
|
+
source_id: string;
|
|
10750
|
+
}[];
|
|
10751
|
+
};
|
|
10752
|
+
mark_offer_clicked: {
|
|
10753
|
+
Args: {
|
|
10754
|
+
p_code: string;
|
|
10755
|
+
};
|
|
10756
|
+
Returns: undefined;
|
|
10757
|
+
};
|
|
10758
|
+
mark_offer_ordered: {
|
|
10759
|
+
Args: {
|
|
10760
|
+
p_code: string;
|
|
10761
|
+
};
|
|
10762
|
+
Returns: undefined;
|
|
10763
|
+
};
|
|
9680
10764
|
next_order_number: {
|
|
9681
10765
|
Args: {
|
|
9682
10766
|
p_prefix: string;
|
|
9683
10767
|
};
|
|
9684
10768
|
Returns: string;
|
|
9685
10769
|
};
|
|
10770
|
+
next_order_number_for_date: {
|
|
10771
|
+
Args: {
|
|
10772
|
+
p_created_at?: string;
|
|
10773
|
+
p_prefix: string;
|
|
10774
|
+
};
|
|
10775
|
+
Returns: string;
|
|
10776
|
+
};
|
|
9686
10777
|
next_work_order_number: {
|
|
9687
10778
|
Args: {
|
|
9688
10779
|
p_parent_work_order_id?: string;
|
|
@@ -9690,16 +10781,41 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9690
10781
|
};
|
|
9691
10782
|
Returns: string;
|
|
9692
10783
|
};
|
|
10784
|
+
normalize_order_source: {
|
|
10785
|
+
Args: {
|
|
10786
|
+
p_src: string;
|
|
10787
|
+
};
|
|
10788
|
+
Returns: string;
|
|
10789
|
+
};
|
|
9693
10790
|
normalize_vat: {
|
|
9694
10791
|
Args: {
|
|
9695
10792
|
v: string;
|
|
9696
10793
|
};
|
|
9697
10794
|
Returns: string;
|
|
9698
10795
|
};
|
|
10796
|
+
offer_recipient_matches: {
|
|
10797
|
+
Args: {
|
|
10798
|
+
_campaign_id: string;
|
|
10799
|
+
_customer_id: string;
|
|
10800
|
+
_recipient_id: string;
|
|
10801
|
+
};
|
|
10802
|
+
Returns: boolean;
|
|
10803
|
+
};
|
|
10804
|
+
order_number_prefix: {
|
|
10805
|
+
Args: {
|
|
10806
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
10807
|
+
p_order_source: string;
|
|
10808
|
+
};
|
|
10809
|
+
Returns: string;
|
|
10810
|
+
};
|
|
9699
10811
|
pickstation_get_orders_raw: {
|
|
9700
10812
|
Args: never;
|
|
9701
10813
|
Returns: import("../integrations/supabase/types").Json;
|
|
9702
10814
|
};
|
|
10815
|
+
pickstation_get_planning_context: {
|
|
10816
|
+
Args: never;
|
|
10817
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10818
|
+
};
|
|
9703
10819
|
pickstation_get_settings: {
|
|
9704
10820
|
Args: never;
|
|
9705
10821
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -9723,6 +10839,35 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9723
10839
|
};
|
|
9724
10840
|
Returns: undefined;
|
|
9725
10841
|
};
|
|
10842
|
+
promote_trade_item_key: {
|
|
10843
|
+
Args: {
|
|
10844
|
+
p_new: string;
|
|
10845
|
+
p_old: string;
|
|
10846
|
+
};
|
|
10847
|
+
Returns: undefined;
|
|
10848
|
+
};
|
|
10849
|
+
recompute_order_status: {
|
|
10850
|
+
Args: {
|
|
10851
|
+
p_order_id: string;
|
|
10852
|
+
};
|
|
10853
|
+
Returns: undefined;
|
|
10854
|
+
};
|
|
10855
|
+
recompute_reserved_for_order: {
|
|
10856
|
+
Args: {
|
|
10857
|
+
p_order_id: string;
|
|
10858
|
+
};
|
|
10859
|
+
Returns: undefined;
|
|
10860
|
+
};
|
|
10861
|
+
recompute_reserved_stock: {
|
|
10862
|
+
Args: {
|
|
10863
|
+
p_trade_item_key: string;
|
|
10864
|
+
};
|
|
10865
|
+
Returns: undefined;
|
|
10866
|
+
};
|
|
10867
|
+
refresh_external_customers_grouped: {
|
|
10868
|
+
Args: never;
|
|
10869
|
+
Returns: undefined;
|
|
10870
|
+
};
|
|
9726
10871
|
refresh_floricode_derived_code_lists: {
|
|
9727
10872
|
Args: never;
|
|
9728
10873
|
Returns: {
|
|
@@ -9737,6 +10882,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9737
10882
|
};
|
|
9738
10883
|
Returns: number;
|
|
9739
10884
|
};
|
|
10885
|
+
refresh_floricode_derived_for_products: {
|
|
10886
|
+
Args: {
|
|
10887
|
+
_product_ids: string[];
|
|
10888
|
+
};
|
|
10889
|
+
Returns: number;
|
|
10890
|
+
};
|
|
9740
10891
|
reset_floriday_sync_cursor: {
|
|
9741
10892
|
Args: {
|
|
9742
10893
|
p_connection_id: string;
|
|
@@ -9744,6 +10895,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9744
10895
|
};
|
|
9745
10896
|
Returns: undefined;
|
|
9746
10897
|
};
|
|
10898
|
+
resolve_product_id_for_item: {
|
|
10899
|
+
Args: {
|
|
10900
|
+
p_product_name: string;
|
|
10901
|
+
};
|
|
10902
|
+
Returns: string;
|
|
10903
|
+
};
|
|
9747
10904
|
schedule_floriday_additional_services_sync: {
|
|
9748
10905
|
Args: {
|
|
9749
10906
|
p_apikey: string;
|
|
@@ -10021,6 +11178,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10021
11178
|
};
|
|
10022
11179
|
Returns: string[];
|
|
10023
11180
|
};
|
|
11181
|
+
sync_cached_packing_from_product: {
|
|
11182
|
+
Args: {
|
|
11183
|
+
p_product_id: string;
|
|
11184
|
+
};
|
|
11185
|
+
Returns: undefined;
|
|
11186
|
+
};
|
|
11187
|
+
sync_order_cart_item_packing_from_product: {
|
|
11188
|
+
Args: {
|
|
11189
|
+
p_product_id: string;
|
|
11190
|
+
};
|
|
11191
|
+
Returns: undefined;
|
|
11192
|
+
};
|
|
11193
|
+
sync_product_packing_from_floriday_cache: {
|
|
11194
|
+
Args: {
|
|
11195
|
+
p_floriday_id: string;
|
|
11196
|
+
};
|
|
11197
|
+
Returns: undefined;
|
|
11198
|
+
};
|
|
10024
11199
|
twinfield_decrypt: {
|
|
10025
11200
|
Args: {
|
|
10026
11201
|
cipher: string;
|
|
@@ -10033,6 +11208,17 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10033
11208
|
};
|
|
10034
11209
|
Returns: string;
|
|
10035
11210
|
};
|
|
11211
|
+
upsert_auto_fulfillment_log: {
|
|
11212
|
+
Args: {
|
|
11213
|
+
p_connection_id: string;
|
|
11214
|
+
p_error?: string;
|
|
11215
|
+
p_fulfillment_order_id?: string;
|
|
11216
|
+
p_reason?: string;
|
|
11217
|
+
p_sales_order_id: string;
|
|
11218
|
+
p_status: string;
|
|
11219
|
+
};
|
|
11220
|
+
Returns: undefined;
|
|
11221
|
+
};
|
|
10036
11222
|
};
|
|
10037
11223
|
Enums: {
|
|
10038
11224
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|
|
@@ -10052,7 +11238,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
10052
11238
|
Tables: {
|
|
10053
11239
|
afhandeling_settings: {
|
|
10054
11240
|
Row: {
|
|
11241
|
+
auto_print_delivery_note: boolean;
|
|
11242
|
+
auto_process_paused: boolean;
|
|
10055
11243
|
created_at: string;
|
|
11244
|
+
extra_pick_days_with_stickers: number;
|
|
10056
11245
|
id: string;
|
|
10057
11246
|
max_workdays_earlier_pick: number;
|
|
10058
11247
|
pick_days_before_transport: number;
|
|
@@ -10066,7 +11255,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
10066
11255
|
user_id: string;
|
|
10067
11256
|
};
|
|
10068
11257
|
Insert: {
|
|
11258
|
+
auto_print_delivery_note?: boolean;
|
|
11259
|
+
auto_process_paused?: boolean;
|
|
10069
11260
|
created_at?: string;
|
|
11261
|
+
extra_pick_days_with_stickers?: number;
|
|
10070
11262
|
id?: string;
|
|
10071
11263
|
max_workdays_earlier_pick?: number;
|
|
10072
11264
|
pick_days_before_transport?: number;
|
|
@@ -10080,7 +11272,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
10080
11272
|
user_id: string;
|
|
10081
11273
|
};
|
|
10082
11274
|
Update: {
|
|
11275
|
+
auto_print_delivery_note?: boolean;
|
|
11276
|
+
auto_process_paused?: boolean;
|
|
10083
11277
|
created_at?: string;
|
|
11278
|
+
extra_pick_days_with_stickers?: number;
|
|
10084
11279
|
id?: string;
|
|
10085
11280
|
max_workdays_earlier_pick?: number;
|
|
10086
11281
|
pick_days_before_transport?: number;
|
|
@@ -10872,6 +12067,36 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
10872
12067
|
};
|
|
10873
12068
|
Relationships: [];
|
|
10874
12069
|
};
|
|
12070
|
+
cart_replan_queue: {
|
|
12071
|
+
Row: {
|
|
12072
|
+
attempts: number;
|
|
12073
|
+
last_error: string | null;
|
|
12074
|
+
order_id: string;
|
|
12075
|
+
processed_at: string | null;
|
|
12076
|
+
requested_at: string;
|
|
12077
|
+
};
|
|
12078
|
+
Insert: {
|
|
12079
|
+
attempts?: number;
|
|
12080
|
+
last_error?: string | null;
|
|
12081
|
+
order_id: string;
|
|
12082
|
+
processed_at?: string | null;
|
|
12083
|
+
requested_at?: string;
|
|
12084
|
+
};
|
|
12085
|
+
Update: {
|
|
12086
|
+
attempts?: number;
|
|
12087
|
+
last_error?: string | null;
|
|
12088
|
+
order_id?: string;
|
|
12089
|
+
processed_at?: string | null;
|
|
12090
|
+
requested_at?: string;
|
|
12091
|
+
};
|
|
12092
|
+
Relationships: [{
|
|
12093
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
12094
|
+
columns: ["order_id"];
|
|
12095
|
+
isOneToOne: true;
|
|
12096
|
+
referencedRelation: "orders";
|
|
12097
|
+
referencedColumns: ["id"];
|
|
12098
|
+
}];
|
|
12099
|
+
};
|
|
10875
12100
|
collections: {
|
|
10876
12101
|
Row: {
|
|
10877
12102
|
created_at: string;
|
|
@@ -12997,34 +14222,52 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
12997
14222
|
Row: {
|
|
12998
14223
|
catalog_key: string | null;
|
|
12999
14224
|
catalog_url: string;
|
|
14225
|
+
client_id: string | null;
|
|
14226
|
+
client_secret_ciphertext: string | null;
|
|
14227
|
+
client_secret_last4: string | null;
|
|
13000
14228
|
created_at: string;
|
|
13001
14229
|
id: number;
|
|
13002
14230
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
13003
14231
|
last_test_at: string | null;
|
|
13004
14232
|
last_test_error: string | null;
|
|
13005
14233
|
last_test_ok: boolean | null;
|
|
14234
|
+
last_token_test_at: string | null;
|
|
14235
|
+
last_token_test_error: string | null;
|
|
14236
|
+
last_token_test_ok: boolean | null;
|
|
13006
14237
|
updated_at: string;
|
|
13007
14238
|
};
|
|
13008
14239
|
Insert: {
|
|
13009
14240
|
catalog_key?: string | null;
|
|
13010
14241
|
catalog_url?: string;
|
|
14242
|
+
client_id?: string | null;
|
|
14243
|
+
client_secret_ciphertext?: string | null;
|
|
14244
|
+
client_secret_last4?: string | null;
|
|
13011
14245
|
created_at?: string;
|
|
13012
14246
|
id?: number;
|
|
13013
14247
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
13014
14248
|
last_test_at?: string | null;
|
|
13015
14249
|
last_test_error?: string | null;
|
|
13016
14250
|
last_test_ok?: boolean | null;
|
|
14251
|
+
last_token_test_at?: string | null;
|
|
14252
|
+
last_token_test_error?: string | null;
|
|
14253
|
+
last_token_test_ok?: boolean | null;
|
|
13017
14254
|
updated_at?: string;
|
|
13018
14255
|
};
|
|
13019
14256
|
Update: {
|
|
13020
14257
|
catalog_key?: string | null;
|
|
13021
14258
|
catalog_url?: string;
|
|
14259
|
+
client_id?: string | null;
|
|
14260
|
+
client_secret_ciphertext?: string | null;
|
|
14261
|
+
client_secret_last4?: string | null;
|
|
13022
14262
|
created_at?: string;
|
|
13023
14263
|
id?: number;
|
|
13024
14264
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
13025
14265
|
last_test_at?: string | null;
|
|
13026
14266
|
last_test_error?: string | null;
|
|
13027
14267
|
last_test_ok?: boolean | null;
|
|
14268
|
+
last_token_test_at?: string | null;
|
|
14269
|
+
last_token_test_error?: string | null;
|
|
14270
|
+
last_token_test_ok?: boolean | null;
|
|
13028
14271
|
updated_at?: string;
|
|
13029
14272
|
};
|
|
13030
14273
|
Relationships: [];
|
|
@@ -13226,31 +14469,79 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
13226
14469
|
auction_letter_code: string;
|
|
13227
14470
|
clock_supply_id: string;
|
|
13228
14471
|
connection_id: string;
|
|
13229
|
-
content_type: string;
|
|
13230
|
-
fetched_at: string;
|
|
14472
|
+
content_type: string;
|
|
14473
|
+
fetched_at: string;
|
|
14474
|
+
id: string;
|
|
14475
|
+
storage_path: string;
|
|
14476
|
+
};
|
|
14477
|
+
Insert: {
|
|
14478
|
+
auction_letter_code: string;
|
|
14479
|
+
clock_supply_id: string;
|
|
14480
|
+
connection_id: string;
|
|
14481
|
+
content_type?: string;
|
|
14482
|
+
fetched_at?: string;
|
|
14483
|
+
id?: string;
|
|
14484
|
+
storage_path: string;
|
|
14485
|
+
};
|
|
14486
|
+
Update: {
|
|
14487
|
+
auction_letter_code?: string;
|
|
14488
|
+
clock_supply_id?: string;
|
|
14489
|
+
connection_id?: string;
|
|
14490
|
+
content_type?: string;
|
|
14491
|
+
fetched_at?: string;
|
|
14492
|
+
id?: string;
|
|
14493
|
+
storage_path?: string;
|
|
14494
|
+
};
|
|
14495
|
+
Relationships: [{
|
|
14496
|
+
foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
|
|
14497
|
+
columns: ["connection_id"];
|
|
14498
|
+
isOneToOne: false;
|
|
14499
|
+
referencedRelation: "floriday_connections";
|
|
14500
|
+
referencedColumns: ["id"];
|
|
14501
|
+
}];
|
|
14502
|
+
};
|
|
14503
|
+
floriday_auto_fulfillment_log: {
|
|
14504
|
+
Row: {
|
|
14505
|
+
attempts: number;
|
|
14506
|
+
connection_id: string;
|
|
14507
|
+
created_at: string;
|
|
14508
|
+
error: string | null;
|
|
14509
|
+
fulfillment_order_id: string | null;
|
|
13231
14510
|
id: string;
|
|
13232
|
-
|
|
14511
|
+
last_attempt_at: string | null;
|
|
14512
|
+
reason: string | null;
|
|
14513
|
+
sales_order_id: string;
|
|
14514
|
+
status: string;
|
|
14515
|
+
updated_at: string;
|
|
13233
14516
|
};
|
|
13234
14517
|
Insert: {
|
|
13235
|
-
|
|
13236
|
-
clock_supply_id: string;
|
|
14518
|
+
attempts?: number;
|
|
13237
14519
|
connection_id: string;
|
|
13238
|
-
|
|
13239
|
-
|
|
14520
|
+
created_at?: string;
|
|
14521
|
+
error?: string | null;
|
|
14522
|
+
fulfillment_order_id?: string | null;
|
|
13240
14523
|
id?: string;
|
|
13241
|
-
|
|
14524
|
+
last_attempt_at?: string | null;
|
|
14525
|
+
reason?: string | null;
|
|
14526
|
+
sales_order_id: string;
|
|
14527
|
+
status?: string;
|
|
14528
|
+
updated_at?: string;
|
|
13242
14529
|
};
|
|
13243
14530
|
Update: {
|
|
13244
|
-
|
|
13245
|
-
clock_supply_id?: string;
|
|
14531
|
+
attempts?: number;
|
|
13246
14532
|
connection_id?: string;
|
|
13247
|
-
|
|
13248
|
-
|
|
14533
|
+
created_at?: string;
|
|
14534
|
+
error?: string | null;
|
|
14535
|
+
fulfillment_order_id?: string | null;
|
|
13249
14536
|
id?: string;
|
|
13250
|
-
|
|
14537
|
+
last_attempt_at?: string | null;
|
|
14538
|
+
reason?: string | null;
|
|
14539
|
+
sales_order_id?: string;
|
|
14540
|
+
status?: string;
|
|
14541
|
+
updated_at?: string;
|
|
13251
14542
|
};
|
|
13252
14543
|
Relationships: [{
|
|
13253
|
-
foreignKeyName: "
|
|
14544
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
13254
14545
|
columns: ["connection_id"];
|
|
13255
14546
|
isOneToOne: false;
|
|
13256
14547
|
referencedRelation: "floriday_connections";
|
|
@@ -13671,6 +14962,51 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
13671
14962
|
referencedColumns: ["id"];
|
|
13672
14963
|
}];
|
|
13673
14964
|
};
|
|
14965
|
+
floriday_continuous_stock_queue: {
|
|
14966
|
+
Row: {
|
|
14967
|
+
attempts: number;
|
|
14968
|
+
connection_id: string;
|
|
14969
|
+
created_at: string;
|
|
14970
|
+
gateway_attempt_id: string | null;
|
|
14971
|
+
id: string;
|
|
14972
|
+
last_error: string | null;
|
|
14973
|
+
number_of_pieces: number;
|
|
14974
|
+
sent_at: string | null;
|
|
14975
|
+
status: string;
|
|
14976
|
+
trade_item_id: string;
|
|
14977
|
+
updated_at: string;
|
|
14978
|
+
user_id: string;
|
|
14979
|
+
};
|
|
14980
|
+
Insert: {
|
|
14981
|
+
attempts?: number;
|
|
14982
|
+
connection_id: string;
|
|
14983
|
+
created_at?: string;
|
|
14984
|
+
gateway_attempt_id?: string | null;
|
|
14985
|
+
id?: string;
|
|
14986
|
+
last_error?: string | null;
|
|
14987
|
+
number_of_pieces?: number;
|
|
14988
|
+
sent_at?: string | null;
|
|
14989
|
+
status?: string;
|
|
14990
|
+
trade_item_id: string;
|
|
14991
|
+
updated_at?: string;
|
|
14992
|
+
user_id: string;
|
|
14993
|
+
};
|
|
14994
|
+
Update: {
|
|
14995
|
+
attempts?: number;
|
|
14996
|
+
connection_id?: string;
|
|
14997
|
+
created_at?: string;
|
|
14998
|
+
gateway_attempt_id?: string | null;
|
|
14999
|
+
id?: string;
|
|
15000
|
+
last_error?: string | null;
|
|
15001
|
+
number_of_pieces?: number;
|
|
15002
|
+
sent_at?: string | null;
|
|
15003
|
+
status?: string;
|
|
15004
|
+
trade_item_id?: string;
|
|
15005
|
+
updated_at?: string;
|
|
15006
|
+
user_id?: string;
|
|
15007
|
+
};
|
|
15008
|
+
Relationships: [];
|
|
15009
|
+
};
|
|
13674
15010
|
floriday_contract_trade_item_groups_cache: {
|
|
13675
15011
|
Row: {
|
|
13676
15012
|
connection_id: string;
|
|
@@ -14316,6 +15652,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
14316
15652
|
referencedColumns: ["id"];
|
|
14317
15653
|
}];
|
|
14318
15654
|
};
|
|
15655
|
+
floriday_rate_limit_state: {
|
|
15656
|
+
Row: {
|
|
15657
|
+
bucket: string;
|
|
15658
|
+
last_refill_at: string;
|
|
15659
|
+
tokens: number;
|
|
15660
|
+
};
|
|
15661
|
+
Insert: {
|
|
15662
|
+
bucket: string;
|
|
15663
|
+
last_refill_at?: string;
|
|
15664
|
+
tokens: number;
|
|
15665
|
+
};
|
|
15666
|
+
Update: {
|
|
15667
|
+
bucket?: string;
|
|
15668
|
+
last_refill_at?: string;
|
|
15669
|
+
tokens?: number;
|
|
15670
|
+
};
|
|
15671
|
+
Relationships: [];
|
|
15672
|
+
};
|
|
14319
15673
|
floriday_resource_schemas: {
|
|
14320
15674
|
Row: {
|
|
14321
15675
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -14739,6 +16093,60 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
14739
16093
|
referencedColumns: ["id"];
|
|
14740
16094
|
}];
|
|
14741
16095
|
};
|
|
16096
|
+
flow_role_assignments: {
|
|
16097
|
+
Row: {
|
|
16098
|
+
created_at: string;
|
|
16099
|
+
id: string;
|
|
16100
|
+
role_id: string;
|
|
16101
|
+
user_id: string;
|
|
16102
|
+
};
|
|
16103
|
+
Insert: {
|
|
16104
|
+
created_at?: string;
|
|
16105
|
+
id?: string;
|
|
16106
|
+
role_id: string;
|
|
16107
|
+
user_id: string;
|
|
16108
|
+
};
|
|
16109
|
+
Update: {
|
|
16110
|
+
created_at?: string;
|
|
16111
|
+
id?: string;
|
|
16112
|
+
role_id?: string;
|
|
16113
|
+
user_id?: string;
|
|
16114
|
+
};
|
|
16115
|
+
Relationships: [{
|
|
16116
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
16117
|
+
columns: ["role_id"];
|
|
16118
|
+
isOneToOne: false;
|
|
16119
|
+
referencedRelation: "flow_roles";
|
|
16120
|
+
referencedColumns: ["id"];
|
|
16121
|
+
}];
|
|
16122
|
+
};
|
|
16123
|
+
flow_roles: {
|
|
16124
|
+
Row: {
|
|
16125
|
+
created_at: string;
|
|
16126
|
+
description: string | null;
|
|
16127
|
+
id: string;
|
|
16128
|
+
module_access: string[];
|
|
16129
|
+
name: string;
|
|
16130
|
+
updated_at: string;
|
|
16131
|
+
};
|
|
16132
|
+
Insert: {
|
|
16133
|
+
created_at?: string;
|
|
16134
|
+
description?: string | null;
|
|
16135
|
+
id?: string;
|
|
16136
|
+
module_access?: string[];
|
|
16137
|
+
name: string;
|
|
16138
|
+
updated_at?: string;
|
|
16139
|
+
};
|
|
16140
|
+
Update: {
|
|
16141
|
+
created_at?: string;
|
|
16142
|
+
description?: string | null;
|
|
16143
|
+
id?: string;
|
|
16144
|
+
module_access?: string[];
|
|
16145
|
+
name?: string;
|
|
16146
|
+
updated_at?: string;
|
|
16147
|
+
};
|
|
16148
|
+
Relationships: [];
|
|
16149
|
+
};
|
|
14742
16150
|
imap_accounts: {
|
|
14743
16151
|
Row: {
|
|
14744
16152
|
created_at: string;
|
|
@@ -15038,27 +16446,225 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15038
16446
|
};
|
|
15039
16447
|
Insert: {
|
|
15040
16448
|
created_at?: string;
|
|
15041
|
-
created_by?: string | null;
|
|
16449
|
+
created_by?: string | null;
|
|
16450
|
+
id?: string;
|
|
16451
|
+
period_end: string;
|
|
16452
|
+
period_start: string;
|
|
16453
|
+
status?: string;
|
|
16454
|
+
total_excl_vat?: number | null;
|
|
16455
|
+
total_incl_vat?: number | null;
|
|
16456
|
+
vat_amount?: number | null;
|
|
16457
|
+
};
|
|
16458
|
+
Update: {
|
|
16459
|
+
created_at?: string;
|
|
16460
|
+
created_by?: string | null;
|
|
16461
|
+
id?: string;
|
|
16462
|
+
period_end?: string;
|
|
16463
|
+
period_start?: string;
|
|
16464
|
+
status?: string;
|
|
16465
|
+
total_excl_vat?: number | null;
|
|
16466
|
+
total_incl_vat?: number | null;
|
|
16467
|
+
vat_amount?: number | null;
|
|
16468
|
+
};
|
|
16469
|
+
Relationships: [];
|
|
16470
|
+
};
|
|
16471
|
+
local_customer_agreements: {
|
|
16472
|
+
Row: {
|
|
16473
|
+
base_price: number | null;
|
|
16474
|
+
created_at: string;
|
|
16475
|
+
currency: string;
|
|
16476
|
+
customer_id: string;
|
|
16477
|
+
id: string;
|
|
16478
|
+
min_quantity: number;
|
|
16479
|
+
net_price: number;
|
|
16480
|
+
notes: string | null;
|
|
16481
|
+
product_category_id: string | null;
|
|
16482
|
+
product_id: string | null;
|
|
16483
|
+
updated_at: string;
|
|
16484
|
+
valid_from: string | null;
|
|
16485
|
+
valid_until: string | null;
|
|
16486
|
+
};
|
|
16487
|
+
Insert: {
|
|
16488
|
+
base_price?: number | null;
|
|
16489
|
+
created_at?: string;
|
|
16490
|
+
currency?: string;
|
|
16491
|
+
customer_id: string;
|
|
16492
|
+
id?: string;
|
|
16493
|
+
min_quantity?: number;
|
|
16494
|
+
net_price: number;
|
|
16495
|
+
notes?: string | null;
|
|
16496
|
+
product_category_id?: string | null;
|
|
16497
|
+
product_id?: string | null;
|
|
16498
|
+
updated_at?: string;
|
|
16499
|
+
valid_from?: string | null;
|
|
16500
|
+
valid_until?: string | null;
|
|
16501
|
+
};
|
|
16502
|
+
Update: {
|
|
16503
|
+
base_price?: number | null;
|
|
16504
|
+
created_at?: string;
|
|
16505
|
+
currency?: string;
|
|
16506
|
+
customer_id?: string;
|
|
16507
|
+
id?: string;
|
|
16508
|
+
min_quantity?: number;
|
|
16509
|
+
net_price?: number;
|
|
16510
|
+
notes?: string | null;
|
|
16511
|
+
product_category_id?: string | null;
|
|
16512
|
+
product_id?: string | null;
|
|
16513
|
+
updated_at?: string;
|
|
16514
|
+
valid_from?: string | null;
|
|
16515
|
+
valid_until?: string | null;
|
|
16516
|
+
};
|
|
16517
|
+
Relationships: [{
|
|
16518
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
16519
|
+
columns: ["customer_id"];
|
|
16520
|
+
isOneToOne: false;
|
|
16521
|
+
referencedRelation: "customers";
|
|
16522
|
+
referencedColumns: ["id"];
|
|
16523
|
+
}, {
|
|
16524
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
16525
|
+
columns: ["product_category_id"];
|
|
16526
|
+
isOneToOne: false;
|
|
16527
|
+
referencedRelation: "product_categories";
|
|
16528
|
+
referencedColumns: ["id"];
|
|
16529
|
+
}, {
|
|
16530
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
16531
|
+
columns: ["product_id"];
|
|
16532
|
+
isOneToOne: false;
|
|
16533
|
+
referencedRelation: "products";
|
|
16534
|
+
referencedColumns: ["id"];
|
|
16535
|
+
}];
|
|
16536
|
+
};
|
|
16537
|
+
local_customer_price_groups: {
|
|
16538
|
+
Row: {
|
|
16539
|
+
created_at: string;
|
|
16540
|
+
currency: string;
|
|
16541
|
+
customer_id: string;
|
|
16542
|
+
discount_type: string;
|
|
16543
|
+
discount_value: number;
|
|
16544
|
+
id: string;
|
|
16545
|
+
min_quantity: number;
|
|
16546
|
+
notes: string | null;
|
|
16547
|
+
product_category_id: string | null;
|
|
16548
|
+
product_id: string | null;
|
|
16549
|
+
updated_at: string;
|
|
16550
|
+
valid_from: string | null;
|
|
16551
|
+
valid_until: string | null;
|
|
16552
|
+
};
|
|
16553
|
+
Insert: {
|
|
16554
|
+
created_at?: string;
|
|
16555
|
+
currency?: string;
|
|
16556
|
+
customer_id: string;
|
|
16557
|
+
discount_type: string;
|
|
16558
|
+
discount_value: number;
|
|
16559
|
+
id?: string;
|
|
16560
|
+
min_quantity?: number;
|
|
16561
|
+
notes?: string | null;
|
|
16562
|
+
product_category_id?: string | null;
|
|
16563
|
+
product_id?: string | null;
|
|
16564
|
+
updated_at?: string;
|
|
16565
|
+
valid_from?: string | null;
|
|
16566
|
+
valid_until?: string | null;
|
|
16567
|
+
};
|
|
16568
|
+
Update: {
|
|
16569
|
+
created_at?: string;
|
|
16570
|
+
currency?: string;
|
|
16571
|
+
customer_id?: string;
|
|
16572
|
+
discount_type?: string;
|
|
16573
|
+
discount_value?: number;
|
|
16574
|
+
id?: string;
|
|
16575
|
+
min_quantity?: number;
|
|
16576
|
+
notes?: string | null;
|
|
16577
|
+
product_category_id?: string | null;
|
|
16578
|
+
product_id?: string | null;
|
|
16579
|
+
updated_at?: string;
|
|
16580
|
+
valid_from?: string | null;
|
|
16581
|
+
valid_until?: string | null;
|
|
16582
|
+
};
|
|
16583
|
+
Relationships: [{
|
|
16584
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
16585
|
+
columns: ["customer_id"];
|
|
16586
|
+
isOneToOne: false;
|
|
16587
|
+
referencedRelation: "customers";
|
|
16588
|
+
referencedColumns: ["id"];
|
|
16589
|
+
}, {
|
|
16590
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
16591
|
+
columns: ["product_category_id"];
|
|
16592
|
+
isOneToOne: false;
|
|
16593
|
+
referencedRelation: "product_categories";
|
|
16594
|
+
referencedColumns: ["id"];
|
|
16595
|
+
}, {
|
|
16596
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
16597
|
+
columns: ["product_id"];
|
|
16598
|
+
isOneToOne: false;
|
|
16599
|
+
referencedRelation: "products";
|
|
16600
|
+
referencedColumns: ["id"];
|
|
16601
|
+
}];
|
|
16602
|
+
};
|
|
16603
|
+
local_customer_sales_strategies: {
|
|
16604
|
+
Row: {
|
|
16605
|
+
created_at: string;
|
|
16606
|
+
currency: string;
|
|
16607
|
+
customer_id: string;
|
|
16608
|
+
discount_type: string;
|
|
16609
|
+
discount_value: number;
|
|
16610
|
+
id: string;
|
|
16611
|
+
min_quantity: number;
|
|
16612
|
+
notes: string | null;
|
|
16613
|
+
product_category_id: string | null;
|
|
16614
|
+
product_id: string | null;
|
|
16615
|
+
updated_at: string;
|
|
16616
|
+
valid_from: string | null;
|
|
16617
|
+
valid_until: string | null;
|
|
16618
|
+
};
|
|
16619
|
+
Insert: {
|
|
16620
|
+
created_at?: string;
|
|
16621
|
+
currency?: string;
|
|
16622
|
+
customer_id: string;
|
|
16623
|
+
discount_type: string;
|
|
16624
|
+
discount_value: number;
|
|
15042
16625
|
id?: string;
|
|
15043
|
-
|
|
15044
|
-
|
|
15045
|
-
|
|
15046
|
-
|
|
15047
|
-
|
|
15048
|
-
|
|
16626
|
+
min_quantity?: number;
|
|
16627
|
+
notes?: string | null;
|
|
16628
|
+
product_category_id?: string | null;
|
|
16629
|
+
product_id?: string | null;
|
|
16630
|
+
updated_at?: string;
|
|
16631
|
+
valid_from?: string | null;
|
|
16632
|
+
valid_until?: string | null;
|
|
15049
16633
|
};
|
|
15050
16634
|
Update: {
|
|
15051
16635
|
created_at?: string;
|
|
15052
|
-
|
|
16636
|
+
currency?: string;
|
|
16637
|
+
customer_id?: string;
|
|
16638
|
+
discount_type?: string;
|
|
16639
|
+
discount_value?: number;
|
|
15053
16640
|
id?: string;
|
|
15054
|
-
|
|
15055
|
-
|
|
15056
|
-
|
|
15057
|
-
|
|
15058
|
-
|
|
15059
|
-
|
|
16641
|
+
min_quantity?: number;
|
|
16642
|
+
notes?: string | null;
|
|
16643
|
+
product_category_id?: string | null;
|
|
16644
|
+
product_id?: string | null;
|
|
16645
|
+
updated_at?: string;
|
|
16646
|
+
valid_from?: string | null;
|
|
16647
|
+
valid_until?: string | null;
|
|
15060
16648
|
};
|
|
15061
|
-
Relationships: [
|
|
16649
|
+
Relationships: [{
|
|
16650
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
16651
|
+
columns: ["customer_id"];
|
|
16652
|
+
isOneToOne: false;
|
|
16653
|
+
referencedRelation: "customers";
|
|
16654
|
+
referencedColumns: ["id"];
|
|
16655
|
+
}, {
|
|
16656
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
16657
|
+
columns: ["product_category_id"];
|
|
16658
|
+
isOneToOne: false;
|
|
16659
|
+
referencedRelation: "product_categories";
|
|
16660
|
+
referencedColumns: ["id"];
|
|
16661
|
+
}, {
|
|
16662
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
16663
|
+
columns: ["product_id"];
|
|
16664
|
+
isOneToOne: false;
|
|
16665
|
+
referencedRelation: "products";
|
|
16666
|
+
referencedColumns: ["id"];
|
|
16667
|
+
}];
|
|
15062
16668
|
};
|
|
15063
16669
|
locations: {
|
|
15064
16670
|
Row: {
|
|
@@ -15172,6 +16778,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15172
16778
|
matched_customer_id: string | null;
|
|
15173
16779
|
message_id: string;
|
|
15174
16780
|
notes: string | null;
|
|
16781
|
+
order_number: string | null;
|
|
15175
16782
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
15176
16783
|
reviewed_at: string | null;
|
|
15177
16784
|
reviewed_by: string | null;
|
|
@@ -15187,6 +16794,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15187
16794
|
matched_customer_id?: string | null;
|
|
15188
16795
|
message_id: string;
|
|
15189
16796
|
notes?: string | null;
|
|
16797
|
+
order_number?: string | null;
|
|
15190
16798
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
15191
16799
|
reviewed_at?: string | null;
|
|
15192
16800
|
reviewed_by?: string | null;
|
|
@@ -15202,6 +16810,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15202
16810
|
matched_customer_id?: string | null;
|
|
15203
16811
|
message_id?: string;
|
|
15204
16812
|
notes?: string | null;
|
|
16813
|
+
order_number?: string | null;
|
|
15205
16814
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
15206
16815
|
reviewed_at?: string | null;
|
|
15207
16816
|
reviewed_by?: string | null;
|
|
@@ -15567,6 +17176,273 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15567
17176
|
referencedColumns: ["id"];
|
|
15568
17177
|
}];
|
|
15569
17178
|
};
|
|
17179
|
+
nmbrs_component_mapping: {
|
|
17180
|
+
Row: {
|
|
17181
|
+
created_at: string;
|
|
17182
|
+
id: string;
|
|
17183
|
+
source_kind: string;
|
|
17184
|
+
source_value: string | null;
|
|
17185
|
+
updated_at: string;
|
|
17186
|
+
wage_code: string;
|
|
17187
|
+
};
|
|
17188
|
+
Insert: {
|
|
17189
|
+
created_at?: string;
|
|
17190
|
+
id?: string;
|
|
17191
|
+
source_kind: string;
|
|
17192
|
+
source_value?: string | null;
|
|
17193
|
+
updated_at?: string;
|
|
17194
|
+
wage_code: string;
|
|
17195
|
+
};
|
|
17196
|
+
Update: {
|
|
17197
|
+
created_at?: string;
|
|
17198
|
+
id?: string;
|
|
17199
|
+
source_kind?: string;
|
|
17200
|
+
source_value?: string | null;
|
|
17201
|
+
updated_at?: string;
|
|
17202
|
+
wage_code?: string;
|
|
17203
|
+
};
|
|
17204
|
+
Relationships: [{
|
|
17205
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
17206
|
+
columns: ["wage_code"];
|
|
17207
|
+
isOneToOne: false;
|
|
17208
|
+
referencedRelation: "nmbrs_wage_components";
|
|
17209
|
+
referencedColumns: ["code"];
|
|
17210
|
+
}];
|
|
17211
|
+
};
|
|
17212
|
+
nmbrs_employee_mapping: {
|
|
17213
|
+
Row: {
|
|
17214
|
+
active_from: string | null;
|
|
17215
|
+
active_to: string | null;
|
|
17216
|
+
contract_hours_per_week: number | null;
|
|
17217
|
+
created_at: string;
|
|
17218
|
+
hourly_wage: number | null;
|
|
17219
|
+
id: string;
|
|
17220
|
+
monteur_id: string;
|
|
17221
|
+
nmbrs_company_code: string | null;
|
|
17222
|
+
nmbrs_employee_number: string;
|
|
17223
|
+
updated_at: string;
|
|
17224
|
+
};
|
|
17225
|
+
Insert: {
|
|
17226
|
+
active_from?: string | null;
|
|
17227
|
+
active_to?: string | null;
|
|
17228
|
+
contract_hours_per_week?: number | null;
|
|
17229
|
+
created_at?: string;
|
|
17230
|
+
hourly_wage?: number | null;
|
|
17231
|
+
id?: string;
|
|
17232
|
+
monteur_id: string;
|
|
17233
|
+
nmbrs_company_code?: string | null;
|
|
17234
|
+
nmbrs_employee_number: string;
|
|
17235
|
+
updated_at?: string;
|
|
17236
|
+
};
|
|
17237
|
+
Update: {
|
|
17238
|
+
active_from?: string | null;
|
|
17239
|
+
active_to?: string | null;
|
|
17240
|
+
contract_hours_per_week?: number | null;
|
|
17241
|
+
created_at?: string;
|
|
17242
|
+
hourly_wage?: number | null;
|
|
17243
|
+
id?: string;
|
|
17244
|
+
monteur_id?: string;
|
|
17245
|
+
nmbrs_company_code?: string | null;
|
|
17246
|
+
nmbrs_employee_number?: string;
|
|
17247
|
+
updated_at?: string;
|
|
17248
|
+
};
|
|
17249
|
+
Relationships: [{
|
|
17250
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
17251
|
+
columns: ["monteur_id"];
|
|
17252
|
+
isOneToOne: true;
|
|
17253
|
+
referencedRelation: "monteurs";
|
|
17254
|
+
referencedColumns: ["id"];
|
|
17255
|
+
}];
|
|
17256
|
+
};
|
|
17257
|
+
nmbrs_export_lines: {
|
|
17258
|
+
Row: {
|
|
17259
|
+
amount: number;
|
|
17260
|
+
created_at: string;
|
|
17261
|
+
entry_date: string;
|
|
17262
|
+
hours: number;
|
|
17263
|
+
id: string;
|
|
17264
|
+
monteur_id: string;
|
|
17265
|
+
nmbrs_employee_number: string | null;
|
|
17266
|
+
notes: string | null;
|
|
17267
|
+
run_id: string;
|
|
17268
|
+
source_kind: string | null;
|
|
17269
|
+
source_ref_id: string | null;
|
|
17270
|
+
updated_at: string;
|
|
17271
|
+
wage_code: string;
|
|
17272
|
+
};
|
|
17273
|
+
Insert: {
|
|
17274
|
+
amount?: number;
|
|
17275
|
+
created_at?: string;
|
|
17276
|
+
entry_date: string;
|
|
17277
|
+
hours?: number;
|
|
17278
|
+
id?: string;
|
|
17279
|
+
monteur_id: string;
|
|
17280
|
+
nmbrs_employee_number?: string | null;
|
|
17281
|
+
notes?: string | null;
|
|
17282
|
+
run_id: string;
|
|
17283
|
+
source_kind?: string | null;
|
|
17284
|
+
source_ref_id?: string | null;
|
|
17285
|
+
updated_at?: string;
|
|
17286
|
+
wage_code: string;
|
|
17287
|
+
};
|
|
17288
|
+
Update: {
|
|
17289
|
+
amount?: number;
|
|
17290
|
+
created_at?: string;
|
|
17291
|
+
entry_date?: string;
|
|
17292
|
+
hours?: number;
|
|
17293
|
+
id?: string;
|
|
17294
|
+
monteur_id?: string;
|
|
17295
|
+
nmbrs_employee_number?: string | null;
|
|
17296
|
+
notes?: string | null;
|
|
17297
|
+
run_id?: string;
|
|
17298
|
+
source_kind?: string | null;
|
|
17299
|
+
source_ref_id?: string | null;
|
|
17300
|
+
updated_at?: string;
|
|
17301
|
+
wage_code?: string;
|
|
17302
|
+
};
|
|
17303
|
+
Relationships: [{
|
|
17304
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
17305
|
+
columns: ["monteur_id"];
|
|
17306
|
+
isOneToOne: false;
|
|
17307
|
+
referencedRelation: "monteurs";
|
|
17308
|
+
referencedColumns: ["id"];
|
|
17309
|
+
}, {
|
|
17310
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
17311
|
+
columns: ["run_id"];
|
|
17312
|
+
isOneToOne: false;
|
|
17313
|
+
referencedRelation: "nmbrs_export_runs";
|
|
17314
|
+
referencedColumns: ["id"];
|
|
17315
|
+
}, {
|
|
17316
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
17317
|
+
columns: ["wage_code"];
|
|
17318
|
+
isOneToOne: false;
|
|
17319
|
+
referencedRelation: "nmbrs_wage_components";
|
|
17320
|
+
referencedColumns: ["code"];
|
|
17321
|
+
}];
|
|
17322
|
+
};
|
|
17323
|
+
nmbrs_export_runs: {
|
|
17324
|
+
Row: {
|
|
17325
|
+
created_at: string;
|
|
17326
|
+
file_name: string | null;
|
|
17327
|
+
generated_at: string;
|
|
17328
|
+
generated_by: string | null;
|
|
17329
|
+
id: string;
|
|
17330
|
+
notes: string | null;
|
|
17331
|
+
period_end: string;
|
|
17332
|
+
period_label: string;
|
|
17333
|
+
period_start: string;
|
|
17334
|
+
status: string;
|
|
17335
|
+
total_hours: number;
|
|
17336
|
+
total_lines: number;
|
|
17337
|
+
updated_at: string;
|
|
17338
|
+
};
|
|
17339
|
+
Insert: {
|
|
17340
|
+
created_at?: string;
|
|
17341
|
+
file_name?: string | null;
|
|
17342
|
+
generated_at?: string;
|
|
17343
|
+
generated_by?: string | null;
|
|
17344
|
+
id?: string;
|
|
17345
|
+
notes?: string | null;
|
|
17346
|
+
period_end: string;
|
|
17347
|
+
period_label: string;
|
|
17348
|
+
period_start: string;
|
|
17349
|
+
status?: string;
|
|
17350
|
+
total_hours?: number;
|
|
17351
|
+
total_lines?: number;
|
|
17352
|
+
updated_at?: string;
|
|
17353
|
+
};
|
|
17354
|
+
Update: {
|
|
17355
|
+
created_at?: string;
|
|
17356
|
+
file_name?: string | null;
|
|
17357
|
+
generated_at?: string;
|
|
17358
|
+
generated_by?: string | null;
|
|
17359
|
+
id?: string;
|
|
17360
|
+
notes?: string | null;
|
|
17361
|
+
period_end?: string;
|
|
17362
|
+
period_label?: string;
|
|
17363
|
+
period_start?: string;
|
|
17364
|
+
status?: string;
|
|
17365
|
+
total_hours?: number;
|
|
17366
|
+
total_lines?: number;
|
|
17367
|
+
updated_at?: string;
|
|
17368
|
+
};
|
|
17369
|
+
Relationships: [];
|
|
17370
|
+
};
|
|
17371
|
+
nmbrs_settings: {
|
|
17372
|
+
Row: {
|
|
17373
|
+
created_at: string;
|
|
17374
|
+
default_company_code: string | null;
|
|
17375
|
+
id: boolean;
|
|
17376
|
+
include_travel: boolean;
|
|
17377
|
+
overtime_threshold_daily: number;
|
|
17378
|
+
overtime_threshold_weekly: number;
|
|
17379
|
+
period_type: string;
|
|
17380
|
+
updated_at: string;
|
|
17381
|
+
updated_by: string | null;
|
|
17382
|
+
week_start_day: number;
|
|
17383
|
+
};
|
|
17384
|
+
Insert: {
|
|
17385
|
+
created_at?: string;
|
|
17386
|
+
default_company_code?: string | null;
|
|
17387
|
+
id?: boolean;
|
|
17388
|
+
include_travel?: boolean;
|
|
17389
|
+
overtime_threshold_daily?: number;
|
|
17390
|
+
overtime_threshold_weekly?: number;
|
|
17391
|
+
period_type?: string;
|
|
17392
|
+
updated_at?: string;
|
|
17393
|
+
updated_by?: string | null;
|
|
17394
|
+
week_start_day?: number;
|
|
17395
|
+
};
|
|
17396
|
+
Update: {
|
|
17397
|
+
created_at?: string;
|
|
17398
|
+
default_company_code?: string | null;
|
|
17399
|
+
id?: boolean;
|
|
17400
|
+
include_travel?: boolean;
|
|
17401
|
+
overtime_threshold_daily?: number;
|
|
17402
|
+
overtime_threshold_weekly?: number;
|
|
17403
|
+
period_type?: string;
|
|
17404
|
+
updated_at?: string;
|
|
17405
|
+
updated_by?: string | null;
|
|
17406
|
+
week_start_day?: number;
|
|
17407
|
+
};
|
|
17408
|
+
Relationships: [];
|
|
17409
|
+
};
|
|
17410
|
+
nmbrs_wage_components: {
|
|
17411
|
+
Row: {
|
|
17412
|
+
category: string;
|
|
17413
|
+
code: string;
|
|
17414
|
+
created_at: string;
|
|
17415
|
+
id: string;
|
|
17416
|
+
is_active: boolean;
|
|
17417
|
+
label: string;
|
|
17418
|
+
sort_order: number;
|
|
17419
|
+
unit: string;
|
|
17420
|
+
updated_at: string;
|
|
17421
|
+
};
|
|
17422
|
+
Insert: {
|
|
17423
|
+
category: string;
|
|
17424
|
+
code: string;
|
|
17425
|
+
created_at?: string;
|
|
17426
|
+
id?: string;
|
|
17427
|
+
is_active?: boolean;
|
|
17428
|
+
label: string;
|
|
17429
|
+
sort_order?: number;
|
|
17430
|
+
unit: string;
|
|
17431
|
+
updated_at?: string;
|
|
17432
|
+
};
|
|
17433
|
+
Update: {
|
|
17434
|
+
category?: string;
|
|
17435
|
+
code?: string;
|
|
17436
|
+
created_at?: string;
|
|
17437
|
+
id?: string;
|
|
17438
|
+
is_active?: boolean;
|
|
17439
|
+
label?: string;
|
|
17440
|
+
sort_order?: number;
|
|
17441
|
+
unit?: string;
|
|
17442
|
+
updated_at?: string;
|
|
17443
|
+
};
|
|
17444
|
+
Relationships: [];
|
|
17445
|
+
};
|
|
15570
17446
|
notifications: {
|
|
15571
17447
|
Row: {
|
|
15572
17448
|
created_at: string;
|
|
@@ -15791,6 +17667,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15791
17667
|
id: string;
|
|
15792
17668
|
items: import("../integrations/supabase/types").Json;
|
|
15793
17669
|
notes: string | null;
|
|
17670
|
+
order_number: string | null;
|
|
15794
17671
|
recipient_id: string;
|
|
15795
17672
|
total_amount: number;
|
|
15796
17673
|
};
|
|
@@ -15804,6 +17681,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15804
17681
|
id?: string;
|
|
15805
17682
|
items?: import("../integrations/supabase/types").Json;
|
|
15806
17683
|
notes?: string | null;
|
|
17684
|
+
order_number?: string | null;
|
|
15807
17685
|
recipient_id: string;
|
|
15808
17686
|
total_amount?: number;
|
|
15809
17687
|
};
|
|
@@ -15817,6 +17695,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15817
17695
|
id?: string;
|
|
15818
17696
|
items?: import("../integrations/supabase/types").Json;
|
|
15819
17697
|
notes?: string | null;
|
|
17698
|
+
order_number?: string | null;
|
|
15820
17699
|
recipient_id?: string;
|
|
15821
17700
|
total_amount?: number;
|
|
15822
17701
|
};
|
|
@@ -15976,6 +17855,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15976
17855
|
crates_per_layer: number;
|
|
15977
17856
|
created_at: string;
|
|
15978
17857
|
id: string;
|
|
17858
|
+
layer_fraction: number;
|
|
17859
|
+
layer_share_pct: number;
|
|
17860
|
+
layers_per_cart: number;
|
|
15979
17861
|
order_item_id: string | null;
|
|
15980
17862
|
plants_per_crate: number;
|
|
15981
17863
|
product_id: string | null;
|
|
@@ -15987,6 +17869,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15987
17869
|
crates_per_layer?: number;
|
|
15988
17870
|
created_at?: string;
|
|
15989
17871
|
id?: string;
|
|
17872
|
+
layer_fraction?: number;
|
|
17873
|
+
layer_share_pct?: number;
|
|
17874
|
+
layers_per_cart?: number;
|
|
15990
17875
|
order_item_id?: string | null;
|
|
15991
17876
|
plants_per_crate?: number;
|
|
15992
17877
|
product_id?: string | null;
|
|
@@ -15998,6 +17883,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15998
17883
|
crates_per_layer?: number;
|
|
15999
17884
|
created_at?: string;
|
|
16000
17885
|
id?: string;
|
|
17886
|
+
layer_fraction?: number;
|
|
17887
|
+
layer_share_pct?: number;
|
|
17888
|
+
layers_per_cart?: number;
|
|
16001
17889
|
order_item_id?: string | null;
|
|
16002
17890
|
plants_per_crate?: number;
|
|
16003
17891
|
product_id?: string | null;
|
|
@@ -16025,33 +17913,45 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16025
17913
|
};
|
|
16026
17914
|
order_carts: {
|
|
16027
17915
|
Row: {
|
|
17916
|
+
algorithm_version: number;
|
|
16028
17917
|
cart_number: number;
|
|
16029
17918
|
created_at: string;
|
|
16030
17919
|
id: string;
|
|
16031
17920
|
is_auto: boolean;
|
|
16032
17921
|
is_complete: boolean;
|
|
16033
17922
|
notes: string | null;
|
|
17923
|
+
occupancy_pct: number;
|
|
16034
17924
|
order_id: string;
|
|
17925
|
+
source: string;
|
|
17926
|
+
total_layers_used: number;
|
|
16035
17927
|
updated_at: string;
|
|
16036
17928
|
};
|
|
16037
17929
|
Insert: {
|
|
17930
|
+
algorithm_version?: number;
|
|
16038
17931
|
cart_number: number;
|
|
16039
17932
|
created_at?: string;
|
|
16040
17933
|
id?: string;
|
|
16041
17934
|
is_auto?: boolean;
|
|
16042
17935
|
is_complete?: boolean;
|
|
16043
17936
|
notes?: string | null;
|
|
17937
|
+
occupancy_pct?: number;
|
|
16044
17938
|
order_id: string;
|
|
17939
|
+
source?: string;
|
|
17940
|
+
total_layers_used?: number;
|
|
16045
17941
|
updated_at?: string;
|
|
16046
17942
|
};
|
|
16047
17943
|
Update: {
|
|
17944
|
+
algorithm_version?: number;
|
|
16048
17945
|
cart_number?: number;
|
|
16049
17946
|
created_at?: string;
|
|
16050
17947
|
id?: string;
|
|
16051
17948
|
is_auto?: boolean;
|
|
16052
17949
|
is_complete?: boolean;
|
|
16053
17950
|
notes?: string | null;
|
|
17951
|
+
occupancy_pct?: number;
|
|
16054
17952
|
order_id?: string;
|
|
17953
|
+
source?: string;
|
|
17954
|
+
total_layers_used?: number;
|
|
16055
17955
|
updated_at?: string;
|
|
16056
17956
|
};
|
|
16057
17957
|
Relationships: [{
|
|
@@ -16204,6 +18104,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16204
18104
|
order_date: string;
|
|
16205
18105
|
order_number: string;
|
|
16206
18106
|
order_source: string;
|
|
18107
|
+
plan_locked_at: string | null;
|
|
18108
|
+
plan_locked_ref: string | null;
|
|
16207
18109
|
status: string;
|
|
16208
18110
|
total: string;
|
|
16209
18111
|
updated_at: string;
|
|
@@ -16220,6 +18122,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16220
18122
|
order_date?: string;
|
|
16221
18123
|
order_number: string;
|
|
16222
18124
|
order_source?: string;
|
|
18125
|
+
plan_locked_at?: string | null;
|
|
18126
|
+
plan_locked_ref?: string | null;
|
|
16223
18127
|
status?: string;
|
|
16224
18128
|
total?: string;
|
|
16225
18129
|
updated_at?: string;
|
|
@@ -16236,6 +18140,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16236
18140
|
order_date?: string;
|
|
16237
18141
|
order_number?: string;
|
|
16238
18142
|
order_source?: string;
|
|
18143
|
+
plan_locked_at?: string | null;
|
|
18144
|
+
plan_locked_ref?: string | null;
|
|
16239
18145
|
status?: string;
|
|
16240
18146
|
total?: string;
|
|
16241
18147
|
updated_at?: string;
|
|
@@ -16608,6 +18514,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16608
18514
|
display_name: string | null;
|
|
16609
18515
|
email: string | null;
|
|
16610
18516
|
id: string;
|
|
18517
|
+
is_superadmin: boolean;
|
|
16611
18518
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
16612
18519
|
tenant_id: string | null;
|
|
16613
18520
|
updated_at: string;
|
|
@@ -16617,6 +18524,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16617
18524
|
display_name?: string | null;
|
|
16618
18525
|
email?: string | null;
|
|
16619
18526
|
id: string;
|
|
18527
|
+
is_superadmin?: boolean;
|
|
16620
18528
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
16621
18529
|
tenant_id?: string | null;
|
|
16622
18530
|
updated_at?: string;
|
|
@@ -16626,6 +18534,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16626
18534
|
display_name?: string | null;
|
|
16627
18535
|
email?: string | null;
|
|
16628
18536
|
id?: string;
|
|
18537
|
+
is_superadmin?: boolean;
|
|
16629
18538
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
16630
18539
|
tenant_id?: string | null;
|
|
16631
18540
|
updated_at?: string;
|
|
@@ -17403,15 +19312,75 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
17403
19312
|
name: string;
|
|
17404
19313
|
};
|
|
17405
19314
|
Update: {
|
|
17406
|
-
capacity?: number;
|
|
17407
|
-
color_code?: string | null;
|
|
19315
|
+
capacity?: number;
|
|
19316
|
+
color_code?: string | null;
|
|
19317
|
+
created_at?: string;
|
|
19318
|
+
description?: string | null;
|
|
19319
|
+
hourly_rate?: number;
|
|
19320
|
+
id?: string;
|
|
19321
|
+
image_url?: string | null;
|
|
19322
|
+
is_active?: boolean;
|
|
19323
|
+
name?: string;
|
|
19324
|
+
};
|
|
19325
|
+
Relationships: [];
|
|
19326
|
+
};
|
|
19327
|
+
sidebar_config: {
|
|
19328
|
+
Row: {
|
|
19329
|
+
id: string;
|
|
19330
|
+
module_order: string[];
|
|
19331
|
+
updated_at: string;
|
|
19332
|
+
};
|
|
19333
|
+
Insert: {
|
|
19334
|
+
id?: string;
|
|
19335
|
+
module_order?: string[];
|
|
19336
|
+
updated_at?: string;
|
|
19337
|
+
};
|
|
19338
|
+
Update: {
|
|
19339
|
+
id?: string;
|
|
19340
|
+
module_order?: string[];
|
|
19341
|
+
updated_at?: string;
|
|
19342
|
+
};
|
|
19343
|
+
Relationships: [];
|
|
19344
|
+
};
|
|
19345
|
+
stock_import_runs: {
|
|
19346
|
+
Row: {
|
|
19347
|
+
connection_id: string | null;
|
|
19348
|
+
created_at: string;
|
|
19349
|
+
created_rows: number;
|
|
19350
|
+
errors: import("../integrations/supabase/types").Json;
|
|
19351
|
+
filename: string | null;
|
|
19352
|
+
id: string;
|
|
19353
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
19354
|
+
skipped_rows: number;
|
|
19355
|
+
total_rows: number;
|
|
19356
|
+
updated_rows: number;
|
|
19357
|
+
user_id: string;
|
|
19358
|
+
};
|
|
19359
|
+
Insert: {
|
|
19360
|
+
connection_id?: string | null;
|
|
19361
|
+
created_at?: string;
|
|
19362
|
+
created_rows?: number;
|
|
19363
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
19364
|
+
filename?: string | null;
|
|
19365
|
+
id?: string;
|
|
19366
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
19367
|
+
skipped_rows?: number;
|
|
19368
|
+
total_rows?: number;
|
|
19369
|
+
updated_rows?: number;
|
|
19370
|
+
user_id: string;
|
|
19371
|
+
};
|
|
19372
|
+
Update: {
|
|
19373
|
+
connection_id?: string | null;
|
|
17408
19374
|
created_at?: string;
|
|
17409
|
-
|
|
17410
|
-
|
|
19375
|
+
created_rows?: number;
|
|
19376
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
19377
|
+
filename?: string | null;
|
|
17411
19378
|
id?: string;
|
|
17412
|
-
|
|
17413
|
-
|
|
17414
|
-
|
|
19379
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
19380
|
+
skipped_rows?: number;
|
|
19381
|
+
total_rows?: number;
|
|
19382
|
+
updated_rows?: number;
|
|
19383
|
+
user_id?: string;
|
|
17415
19384
|
};
|
|
17416
19385
|
Relationships: [];
|
|
17417
19386
|
};
|
|
@@ -17431,7 +19400,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
17431
19400
|
reason: string | null;
|
|
17432
19401
|
reserved_after: number | null;
|
|
17433
19402
|
reserved_before: number | null;
|
|
17434
|
-
trade_item_key: string;
|
|
19403
|
+
trade_item_key: string | null;
|
|
17435
19404
|
};
|
|
17436
19405
|
Insert: {
|
|
17437
19406
|
connection_id?: string | null;
|
|
@@ -17448,7 +19417,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
17448
19417
|
reason?: string | null;
|
|
17449
19418
|
reserved_after?: number | null;
|
|
17450
19419
|
reserved_before?: number | null;
|
|
17451
|
-
trade_item_key
|
|
19420
|
+
trade_item_key?: string | null;
|
|
17452
19421
|
};
|
|
17453
19422
|
Update: {
|
|
17454
19423
|
connection_id?: string | null;
|
|
@@ -17465,7 +19434,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
17465
19434
|
reason?: string | null;
|
|
17466
19435
|
reserved_after?: number | null;
|
|
17467
19436
|
reserved_before?: number | null;
|
|
17468
|
-
trade_item_key?: string;
|
|
19437
|
+
trade_item_key?: string | null;
|
|
17469
19438
|
};
|
|
17470
19439
|
Relationships: [];
|
|
17471
19440
|
};
|
|
@@ -17808,6 +19777,114 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
17808
19777
|
};
|
|
17809
19778
|
Relationships: [];
|
|
17810
19779
|
};
|
|
19780
|
+
trade_item_supply_lines: {
|
|
19781
|
+
Row: {
|
|
19782
|
+
available_quantity: number | null;
|
|
19783
|
+
connection_id: string;
|
|
19784
|
+
created_at: string;
|
|
19785
|
+
currency: string | null;
|
|
19786
|
+
endpoint_family: string | null;
|
|
19787
|
+
environment: string | null;
|
|
19788
|
+
id: string;
|
|
19789
|
+
last_error: string | null;
|
|
19790
|
+
last_status: number | null;
|
|
19791
|
+
packing_configuration_id: string | null;
|
|
19792
|
+
period_end: string | null;
|
|
19793
|
+
period_start: string | null;
|
|
19794
|
+
price_per_piece: number | null;
|
|
19795
|
+
sales_unit: string | null;
|
|
19796
|
+
supply_line_id: string | null;
|
|
19797
|
+
supply_type: string;
|
|
19798
|
+
trade_item_id: string;
|
|
19799
|
+
updated_at: string;
|
|
19800
|
+
user_id: string;
|
|
19801
|
+
week: number | null;
|
|
19802
|
+
year: number | null;
|
|
19803
|
+
};
|
|
19804
|
+
Insert: {
|
|
19805
|
+
available_quantity?: number | null;
|
|
19806
|
+
connection_id: string;
|
|
19807
|
+
created_at?: string;
|
|
19808
|
+
currency?: string | null;
|
|
19809
|
+
endpoint_family?: string | null;
|
|
19810
|
+
environment?: string | null;
|
|
19811
|
+
id?: string;
|
|
19812
|
+
last_error?: string | null;
|
|
19813
|
+
last_status?: number | null;
|
|
19814
|
+
packing_configuration_id?: string | null;
|
|
19815
|
+
period_end?: string | null;
|
|
19816
|
+
period_start?: string | null;
|
|
19817
|
+
price_per_piece?: number | null;
|
|
19818
|
+
sales_unit?: string | null;
|
|
19819
|
+
supply_line_id?: string | null;
|
|
19820
|
+
supply_type?: string;
|
|
19821
|
+
trade_item_id: string;
|
|
19822
|
+
updated_at?: string;
|
|
19823
|
+
user_id: string;
|
|
19824
|
+
week?: number | null;
|
|
19825
|
+
year?: number | null;
|
|
19826
|
+
};
|
|
19827
|
+
Update: {
|
|
19828
|
+
available_quantity?: number | null;
|
|
19829
|
+
connection_id?: string;
|
|
19830
|
+
created_at?: string;
|
|
19831
|
+
currency?: string | null;
|
|
19832
|
+
endpoint_family?: string | null;
|
|
19833
|
+
environment?: string | null;
|
|
19834
|
+
id?: string;
|
|
19835
|
+
last_error?: string | null;
|
|
19836
|
+
last_status?: number | null;
|
|
19837
|
+
packing_configuration_id?: string | null;
|
|
19838
|
+
period_end?: string | null;
|
|
19839
|
+
period_start?: string | null;
|
|
19840
|
+
price_per_piece?: number | null;
|
|
19841
|
+
sales_unit?: string | null;
|
|
19842
|
+
supply_line_id?: string | null;
|
|
19843
|
+
supply_type?: string;
|
|
19844
|
+
trade_item_id?: string;
|
|
19845
|
+
updated_at?: string;
|
|
19846
|
+
user_id?: string;
|
|
19847
|
+
week?: number | null;
|
|
19848
|
+
year?: number | null;
|
|
19849
|
+
};
|
|
19850
|
+
Relationships: [];
|
|
19851
|
+
};
|
|
19852
|
+
trade_item_warehouse_preferences: {
|
|
19853
|
+
Row: {
|
|
19854
|
+
connection_id: string;
|
|
19855
|
+
created_at: string;
|
|
19856
|
+
id: string;
|
|
19857
|
+
trade_item_id: string;
|
|
19858
|
+
updated_at: string;
|
|
19859
|
+
warehouse_id: string;
|
|
19860
|
+
warehouse_name: string | null;
|
|
19861
|
+
};
|
|
19862
|
+
Insert: {
|
|
19863
|
+
connection_id: string;
|
|
19864
|
+
created_at?: string;
|
|
19865
|
+
id?: string;
|
|
19866
|
+
trade_item_id: string;
|
|
19867
|
+
updated_at?: string;
|
|
19868
|
+
warehouse_id: string;
|
|
19869
|
+
warehouse_name?: string | null;
|
|
19870
|
+
};
|
|
19871
|
+
Update: {
|
|
19872
|
+
connection_id?: string;
|
|
19873
|
+
created_at?: string;
|
|
19874
|
+
id?: string;
|
|
19875
|
+
trade_item_id?: string;
|
|
19876
|
+
updated_at?: string;
|
|
19877
|
+
warehouse_id?: string;
|
|
19878
|
+
warehouse_name?: string | null;
|
|
19879
|
+
};
|
|
19880
|
+
Relationships: [{
|
|
19881
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
19882
|
+
columns: ["connection_id"];
|
|
19883
|
+
isOneToOne: false;
|
|
19884
|
+
referencedRelation: "floriday_connections";
|
|
19885
|
+
referencedColumns: ["id"];
|
|
19886
|
+
}];
|
|
19887
|
+
};
|
|
17811
19888
|
twinfield_connections: {
|
|
17812
19889
|
Row: {
|
|
17813
19890
|
access_token: string | null;
|
|
@@ -18127,6 +20204,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18127
20204
|
default_invoice_type: string;
|
|
18128
20205
|
default_payment_term_days: number;
|
|
18129
20206
|
default_vat_code: string;
|
|
20207
|
+
invoice_enabled_ao: boolean;
|
|
20208
|
+
invoice_enabled_fo: boolean;
|
|
20209
|
+
invoice_enabled_ho: boolean;
|
|
20210
|
+
invoice_enabled_mo: boolean;
|
|
18130
20211
|
updated_at: string;
|
|
18131
20212
|
user_id: string;
|
|
18132
20213
|
};
|
|
@@ -18136,6 +20217,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18136
20217
|
default_invoice_type?: string;
|
|
18137
20218
|
default_payment_term_days?: number;
|
|
18138
20219
|
default_vat_code?: string;
|
|
20220
|
+
invoice_enabled_ao?: boolean;
|
|
20221
|
+
invoice_enabled_fo?: boolean;
|
|
20222
|
+
invoice_enabled_ho?: boolean;
|
|
20223
|
+
invoice_enabled_mo?: boolean;
|
|
18139
20224
|
updated_at?: string;
|
|
18140
20225
|
user_id: string;
|
|
18141
20226
|
};
|
|
@@ -18145,6 +20230,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18145
20230
|
default_invoice_type?: string;
|
|
18146
20231
|
default_payment_term_days?: number;
|
|
18147
20232
|
default_vat_code?: string;
|
|
20233
|
+
invoice_enabled_ao?: boolean;
|
|
20234
|
+
invoice_enabled_fo?: boolean;
|
|
20235
|
+
invoice_enabled_ho?: boolean;
|
|
20236
|
+
invoice_enabled_mo?: boolean;
|
|
18148
20237
|
updated_at?: string;
|
|
18149
20238
|
user_id?: string;
|
|
18150
20239
|
};
|
|
@@ -19046,6 +21135,44 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19046
21135
|
};
|
|
19047
21136
|
Relationships: [];
|
|
19048
21137
|
};
|
|
21138
|
+
floriday_customer_discounts: {
|
|
21139
|
+
Row: {
|
|
21140
|
+
base_price: number | null;
|
|
21141
|
+
buyer_organization_id: string | null;
|
|
21142
|
+
currency: string | null;
|
|
21143
|
+
discount_type: string | null;
|
|
21144
|
+
discount_value: number | null;
|
|
21145
|
+
min_quantity: number | null;
|
|
21146
|
+
net_price: number | null;
|
|
21147
|
+
product_group_id: string | null;
|
|
21148
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
21149
|
+
source: string | null;
|
|
21150
|
+
source_id: string | null;
|
|
21151
|
+
trade_item_id: string | null;
|
|
21152
|
+
valid_from: string | null;
|
|
21153
|
+
valid_until: string | null;
|
|
21154
|
+
};
|
|
21155
|
+
Relationships: [];
|
|
21156
|
+
};
|
|
21157
|
+
local_customer_discounts: {
|
|
21158
|
+
Row: {
|
|
21159
|
+
base_price: number | null;
|
|
21160
|
+
currency: string | null;
|
|
21161
|
+
customer_id: string | null;
|
|
21162
|
+
discount_type: string | null;
|
|
21163
|
+
discount_value: number | null;
|
|
21164
|
+
min_quantity: number | null;
|
|
21165
|
+
net_price: number | null;
|
|
21166
|
+
product_category_id: string | null;
|
|
21167
|
+
product_id: string | null;
|
|
21168
|
+
product_name: string | null;
|
|
21169
|
+
source: string | null;
|
|
21170
|
+
source_id: string | null;
|
|
21171
|
+
valid_from: string | null;
|
|
21172
|
+
valid_until: string | null;
|
|
21173
|
+
};
|
|
21174
|
+
Relationships: [];
|
|
21175
|
+
};
|
|
19049
21176
|
manufacture_product_possible_stock_view: {
|
|
19050
21177
|
Row: {
|
|
19051
21178
|
component_count: number | null;
|
|
@@ -19401,6 +21528,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19401
21528
|
order_number: string;
|
|
19402
21529
|
}[];
|
|
19403
21530
|
};
|
|
21531
|
+
autolink_product_to_floriday: {
|
|
21532
|
+
Args: {
|
|
21533
|
+
p_product_id: string;
|
|
21534
|
+
};
|
|
21535
|
+
Returns: string;
|
|
21536
|
+
};
|
|
19404
21537
|
backfill_open_order_reservations: {
|
|
19405
21538
|
Args: never;
|
|
19406
21539
|
Returns: {
|
|
@@ -19413,10 +21546,44 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19413
21546
|
};
|
|
19414
21547
|
Returns: number;
|
|
19415
21548
|
};
|
|
21549
|
+
check_offer_product_available_stock: {
|
|
21550
|
+
Args: {
|
|
21551
|
+
p_campaign_product_id: string;
|
|
21552
|
+
p_code: string;
|
|
21553
|
+
p_needed_qty?: number;
|
|
21554
|
+
p_product_name?: string;
|
|
21555
|
+
};
|
|
21556
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21557
|
+
};
|
|
21558
|
+
check_trade_item_available_stock: {
|
|
21559
|
+
Args: {
|
|
21560
|
+
p_connection_id?: string;
|
|
21561
|
+
p_context?: string;
|
|
21562
|
+
p_needed_qty?: number;
|
|
21563
|
+
p_order_id?: string;
|
|
21564
|
+
p_order_item_id?: string;
|
|
21565
|
+
p_owner_id?: string;
|
|
21566
|
+
p_product_name?: string;
|
|
21567
|
+
p_trade_item_key: string;
|
|
21568
|
+
};
|
|
21569
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21570
|
+
};
|
|
19416
21571
|
cleanup_old_bookings: {
|
|
19417
21572
|
Args: never;
|
|
19418
21573
|
Returns: number;
|
|
19419
21574
|
};
|
|
21575
|
+
consume_floriday_rate_limit: {
|
|
21576
|
+
Args: {
|
|
21577
|
+
p_bucket: string;
|
|
21578
|
+
p_capacity: number;
|
|
21579
|
+
p_cost?: number;
|
|
21580
|
+
p_refill_per_sec: number;
|
|
21581
|
+
};
|
|
21582
|
+
Returns: {
|
|
21583
|
+
granted: boolean;
|
|
21584
|
+
wait_ms: number;
|
|
21585
|
+
}[];
|
|
21586
|
+
};
|
|
19420
21587
|
control_get_todays_carts: {
|
|
19421
21588
|
Args: never;
|
|
19422
21589
|
Returns: {
|
|
@@ -19497,6 +21664,18 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19497
21664
|
status: string;
|
|
19498
21665
|
}[];
|
|
19499
21666
|
};
|
|
21667
|
+
enqueue_cart_replan_if_unlocked: {
|
|
21668
|
+
Args: {
|
|
21669
|
+
p_order_id: string;
|
|
21670
|
+
};
|
|
21671
|
+
Returns: undefined;
|
|
21672
|
+
};
|
|
21673
|
+
ensure_trade_item_stock_row: {
|
|
21674
|
+
Args: {
|
|
21675
|
+
p_key: string;
|
|
21676
|
+
};
|
|
21677
|
+
Returns: undefined;
|
|
21678
|
+
};
|
|
19500
21679
|
ensure_user_tenant: {
|
|
19501
21680
|
Args: never;
|
|
19502
21681
|
Returns: string;
|
|
@@ -19534,12 +21713,31 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19534
21713
|
};
|
|
19535
21714
|
Returns: boolean;
|
|
19536
21715
|
};
|
|
19537
|
-
|
|
21716
|
+
find_trade_item_key: {
|
|
19538
21717
|
Args: {
|
|
21718
|
+
p_barcode: string;
|
|
19539
21719
|
p_name: string;
|
|
21720
|
+
p_product_id: string;
|
|
19540
21721
|
};
|
|
19541
21722
|
Returns: string;
|
|
19542
21723
|
};
|
|
21724
|
+
floriday_effective_price: {
|
|
21725
|
+
Args: {
|
|
21726
|
+
_buyer_id: string;
|
|
21727
|
+
_on_date?: string;
|
|
21728
|
+
_quantity?: number;
|
|
21729
|
+
_trade_item_id: string;
|
|
21730
|
+
};
|
|
21731
|
+
Returns: {
|
|
21732
|
+
base_price: number;
|
|
21733
|
+
currency: string;
|
|
21734
|
+
discount_type: string;
|
|
21735
|
+
discount_value: number;
|
|
21736
|
+
net_price: number;
|
|
21737
|
+
source: string;
|
|
21738
|
+
source_id: string;
|
|
21739
|
+
}[];
|
|
21740
|
+
};
|
|
19543
21741
|
format_cart_number: {
|
|
19544
21742
|
Args: {
|
|
19545
21743
|
p_pick_date: string;
|
|
@@ -19560,6 +21758,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19560
21758
|
preferred_warehouse_name: string;
|
|
19561
21759
|
}[];
|
|
19562
21760
|
};
|
|
21761
|
+
get_active_floriday_context: {
|
|
21762
|
+
Args: never;
|
|
21763
|
+
Returns: {
|
|
21764
|
+
connection_id: string;
|
|
21765
|
+
user_id: string;
|
|
21766
|
+
}[];
|
|
21767
|
+
};
|
|
19563
21768
|
get_active_twinfield_public: {
|
|
19564
21769
|
Args: never;
|
|
19565
21770
|
Returns: {
|
|
@@ -19571,6 +21776,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19571
21776
|
office_code: string;
|
|
19572
21777
|
}[];
|
|
19573
21778
|
};
|
|
21779
|
+
get_floricode_record_counts: {
|
|
21780
|
+
Args: never;
|
|
21781
|
+
Returns: {
|
|
21782
|
+
count: number;
|
|
21783
|
+
resource: string;
|
|
21784
|
+
}[];
|
|
21785
|
+
};
|
|
19574
21786
|
get_floriday_agreements_active: {
|
|
19575
21787
|
Args: {
|
|
19576
21788
|
p_on_date?: string;
|
|
@@ -19662,6 +21874,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19662
21874
|
};
|
|
19663
21875
|
Returns: import("../integrations/supabase/types").Json;
|
|
19664
21876
|
};
|
|
21877
|
+
get_offer_delivery_options: {
|
|
21878
|
+
Args: {
|
|
21879
|
+
p_code: string;
|
|
21880
|
+
};
|
|
21881
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21882
|
+
};
|
|
21883
|
+
get_offer_recipient_by_code: {
|
|
21884
|
+
Args: {
|
|
21885
|
+
p_code: string;
|
|
21886
|
+
};
|
|
21887
|
+
Returns: {
|
|
21888
|
+
campaign_id: string;
|
|
21889
|
+
clicked_at: string;
|
|
21890
|
+
customer_id: string;
|
|
21891
|
+
id: string;
|
|
21892
|
+
ordered_at: string;
|
|
21893
|
+
}[];
|
|
21894
|
+
};
|
|
19665
21895
|
get_or_assign_floriday_order_number: {
|
|
19666
21896
|
Args: {
|
|
19667
21897
|
p_floriday_id: string;
|
|
@@ -19714,12 +21944,53 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19714
21944
|
Args: never;
|
|
19715
21945
|
Returns: boolean;
|
|
19716
21946
|
};
|
|
21947
|
+
is_superadmin: {
|
|
21948
|
+
Args: {
|
|
21949
|
+
_user_id: string;
|
|
21950
|
+
};
|
|
21951
|
+
Returns: boolean;
|
|
21952
|
+
};
|
|
21953
|
+
local_effective_price: {
|
|
21954
|
+
Args: {
|
|
21955
|
+
_customer_id: string;
|
|
21956
|
+
_on_date?: string;
|
|
21957
|
+
_product_id: string;
|
|
21958
|
+
_quantity?: number;
|
|
21959
|
+
};
|
|
21960
|
+
Returns: {
|
|
21961
|
+
currency: string;
|
|
21962
|
+
discount_type: string;
|
|
21963
|
+
discount_value: number;
|
|
21964
|
+
net_price: number;
|
|
21965
|
+
source: string;
|
|
21966
|
+
source_id: string;
|
|
21967
|
+
}[];
|
|
21968
|
+
};
|
|
21969
|
+
mark_offer_clicked: {
|
|
21970
|
+
Args: {
|
|
21971
|
+
p_code: string;
|
|
21972
|
+
};
|
|
21973
|
+
Returns: undefined;
|
|
21974
|
+
};
|
|
21975
|
+
mark_offer_ordered: {
|
|
21976
|
+
Args: {
|
|
21977
|
+
p_code: string;
|
|
21978
|
+
};
|
|
21979
|
+
Returns: undefined;
|
|
21980
|
+
};
|
|
19717
21981
|
next_order_number: {
|
|
19718
21982
|
Args: {
|
|
19719
21983
|
p_prefix: string;
|
|
19720
21984
|
};
|
|
19721
21985
|
Returns: string;
|
|
19722
21986
|
};
|
|
21987
|
+
next_order_number_for_date: {
|
|
21988
|
+
Args: {
|
|
21989
|
+
p_created_at?: string;
|
|
21990
|
+
p_prefix: string;
|
|
21991
|
+
};
|
|
21992
|
+
Returns: string;
|
|
21993
|
+
};
|
|
19723
21994
|
next_work_order_number: {
|
|
19724
21995
|
Args: {
|
|
19725
21996
|
p_parent_work_order_id?: string;
|
|
@@ -19727,16 +21998,41 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19727
21998
|
};
|
|
19728
21999
|
Returns: string;
|
|
19729
22000
|
};
|
|
22001
|
+
normalize_order_source: {
|
|
22002
|
+
Args: {
|
|
22003
|
+
p_src: string;
|
|
22004
|
+
};
|
|
22005
|
+
Returns: string;
|
|
22006
|
+
};
|
|
19730
22007
|
normalize_vat: {
|
|
19731
22008
|
Args: {
|
|
19732
22009
|
v: string;
|
|
19733
22010
|
};
|
|
19734
22011
|
Returns: string;
|
|
19735
22012
|
};
|
|
22013
|
+
offer_recipient_matches: {
|
|
22014
|
+
Args: {
|
|
22015
|
+
_campaign_id: string;
|
|
22016
|
+
_customer_id: string;
|
|
22017
|
+
_recipient_id: string;
|
|
22018
|
+
};
|
|
22019
|
+
Returns: boolean;
|
|
22020
|
+
};
|
|
22021
|
+
order_number_prefix: {
|
|
22022
|
+
Args: {
|
|
22023
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
22024
|
+
p_order_source: string;
|
|
22025
|
+
};
|
|
22026
|
+
Returns: string;
|
|
22027
|
+
};
|
|
19736
22028
|
pickstation_get_orders_raw: {
|
|
19737
22029
|
Args: never;
|
|
19738
22030
|
Returns: import("../integrations/supabase/types").Json;
|
|
19739
22031
|
};
|
|
22032
|
+
pickstation_get_planning_context: {
|
|
22033
|
+
Args: never;
|
|
22034
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22035
|
+
};
|
|
19740
22036
|
pickstation_get_settings: {
|
|
19741
22037
|
Args: never;
|
|
19742
22038
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -19760,6 +22056,35 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19760
22056
|
};
|
|
19761
22057
|
Returns: undefined;
|
|
19762
22058
|
};
|
|
22059
|
+
promote_trade_item_key: {
|
|
22060
|
+
Args: {
|
|
22061
|
+
p_new: string;
|
|
22062
|
+
p_old: string;
|
|
22063
|
+
};
|
|
22064
|
+
Returns: undefined;
|
|
22065
|
+
};
|
|
22066
|
+
recompute_order_status: {
|
|
22067
|
+
Args: {
|
|
22068
|
+
p_order_id: string;
|
|
22069
|
+
};
|
|
22070
|
+
Returns: undefined;
|
|
22071
|
+
};
|
|
22072
|
+
recompute_reserved_for_order: {
|
|
22073
|
+
Args: {
|
|
22074
|
+
p_order_id: string;
|
|
22075
|
+
};
|
|
22076
|
+
Returns: undefined;
|
|
22077
|
+
};
|
|
22078
|
+
recompute_reserved_stock: {
|
|
22079
|
+
Args: {
|
|
22080
|
+
p_trade_item_key: string;
|
|
22081
|
+
};
|
|
22082
|
+
Returns: undefined;
|
|
22083
|
+
};
|
|
22084
|
+
refresh_external_customers_grouped: {
|
|
22085
|
+
Args: never;
|
|
22086
|
+
Returns: undefined;
|
|
22087
|
+
};
|
|
19763
22088
|
refresh_floricode_derived_code_lists: {
|
|
19764
22089
|
Args: never;
|
|
19765
22090
|
Returns: {
|
|
@@ -19774,6 +22099,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19774
22099
|
};
|
|
19775
22100
|
Returns: number;
|
|
19776
22101
|
};
|
|
22102
|
+
refresh_floricode_derived_for_products: {
|
|
22103
|
+
Args: {
|
|
22104
|
+
_product_ids: string[];
|
|
22105
|
+
};
|
|
22106
|
+
Returns: number;
|
|
22107
|
+
};
|
|
19777
22108
|
reset_floriday_sync_cursor: {
|
|
19778
22109
|
Args: {
|
|
19779
22110
|
p_connection_id: string;
|
|
@@ -19781,6 +22112,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19781
22112
|
};
|
|
19782
22113
|
Returns: undefined;
|
|
19783
22114
|
};
|
|
22115
|
+
resolve_product_id_for_item: {
|
|
22116
|
+
Args: {
|
|
22117
|
+
p_product_name: string;
|
|
22118
|
+
};
|
|
22119
|
+
Returns: string;
|
|
22120
|
+
};
|
|
19784
22121
|
schedule_floriday_additional_services_sync: {
|
|
19785
22122
|
Args: {
|
|
19786
22123
|
p_apikey: string;
|
|
@@ -20058,6 +22395,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
20058
22395
|
};
|
|
20059
22396
|
Returns: string[];
|
|
20060
22397
|
};
|
|
22398
|
+
sync_cached_packing_from_product: {
|
|
22399
|
+
Args: {
|
|
22400
|
+
p_product_id: string;
|
|
22401
|
+
};
|
|
22402
|
+
Returns: undefined;
|
|
22403
|
+
};
|
|
22404
|
+
sync_order_cart_item_packing_from_product: {
|
|
22405
|
+
Args: {
|
|
22406
|
+
p_product_id: string;
|
|
22407
|
+
};
|
|
22408
|
+
Returns: undefined;
|
|
22409
|
+
};
|
|
22410
|
+
sync_product_packing_from_floriday_cache: {
|
|
22411
|
+
Args: {
|
|
22412
|
+
p_floriday_id: string;
|
|
22413
|
+
};
|
|
22414
|
+
Returns: undefined;
|
|
22415
|
+
};
|
|
20061
22416
|
twinfield_decrypt: {
|
|
20062
22417
|
Args: {
|
|
20063
22418
|
cipher: string;
|
|
@@ -20070,6 +22425,17 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
20070
22425
|
};
|
|
20071
22426
|
Returns: string;
|
|
20072
22427
|
};
|
|
22428
|
+
upsert_auto_fulfillment_log: {
|
|
22429
|
+
Args: {
|
|
22430
|
+
p_connection_id: string;
|
|
22431
|
+
p_error?: string;
|
|
22432
|
+
p_fulfillment_order_id?: string;
|
|
22433
|
+
p_reason?: string;
|
|
22434
|
+
p_sales_order_id: string;
|
|
22435
|
+
p_status: string;
|
|
22436
|
+
};
|
|
22437
|
+
Returns: undefined;
|
|
22438
|
+
};
|
|
20073
22439
|
};
|
|
20074
22440
|
Enums: {
|
|
20075
22441
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|
|
@@ -20092,6 +22458,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
20092
22458
|
signupMailLeadMinutes?: number;
|
|
20093
22459
|
signupMailPurpose?: string;
|
|
20094
22460
|
pickWeekdays?: number[];
|
|
22461
|
+
extraPickDaysWithStickers?: number;
|
|
22462
|
+
autoProcessPaused?: boolean;
|
|
22463
|
+
autoPrintDeliveryNote?: boolean;
|
|
20095
22464
|
}) => {
|
|
20096
22465
|
pickDaysBeforeTransport: number | undefined;
|
|
20097
22466
|
transportRegisterDaysBefore: number | undefined;
|
|
@@ -20101,5 +22470,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
20101
22470
|
signupMailLeadMinutes: number | undefined;
|
|
20102
22471
|
signupMailPurpose: string | undefined;
|
|
20103
22472
|
pickWeekdays: number[] | undefined;
|
|
22473
|
+
extraPickDaysWithStickers: number | undefined;
|
|
22474
|
+
autoProcessPaused: boolean | undefined;
|
|
22475
|
+
autoPrintDeliveryNote: boolean | undefined;
|
|
20104
22476
|
}, Promise<AfhandelingSettings>>;
|
|
20105
22477
|
//# sourceMappingURL=afhandelingSettings.functions.d.ts.map
|