@flowselections/floriday-afhandeling-module 1.0.13 → 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 +41 -63
- 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/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.map +1 -1
- package/dist-lib/components/pickstation/PickstationPage.js +57 -8
- 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 +2 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +2 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +484 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +484 -3
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +484 -3
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +492 -3
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +981 -7
- 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 +2420 -15
- 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 +2420 -15
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +4840 -30
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.js +1 -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 +492 -3
- 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 +55 -19
- 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 +1 -1
|
@@ -16,7 +16,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
16
16
|
Tables: {
|
|
17
17
|
afhandeling_settings: {
|
|
18
18
|
Row: {
|
|
19
|
+
auto_print_delivery_note: boolean;
|
|
20
|
+
auto_process_paused: boolean;
|
|
19
21
|
created_at: string;
|
|
22
|
+
extra_pick_days_with_stickers: number;
|
|
20
23
|
id: string;
|
|
21
24
|
max_workdays_earlier_pick: number;
|
|
22
25
|
pick_days_before_transport: number;
|
|
@@ -30,7 +33,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
30
33
|
user_id: string;
|
|
31
34
|
};
|
|
32
35
|
Insert: {
|
|
36
|
+
auto_print_delivery_note?: boolean;
|
|
37
|
+
auto_process_paused?: boolean;
|
|
33
38
|
created_at?: string;
|
|
39
|
+
extra_pick_days_with_stickers?: number;
|
|
34
40
|
id?: string;
|
|
35
41
|
max_workdays_earlier_pick?: number;
|
|
36
42
|
pick_days_before_transport?: number;
|
|
@@ -44,7 +50,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
44
50
|
user_id: string;
|
|
45
51
|
};
|
|
46
52
|
Update: {
|
|
53
|
+
auto_print_delivery_note?: boolean;
|
|
54
|
+
auto_process_paused?: boolean;
|
|
47
55
|
created_at?: string;
|
|
56
|
+
extra_pick_days_with_stickers?: number;
|
|
48
57
|
id?: string;
|
|
49
58
|
max_workdays_earlier_pick?: number;
|
|
50
59
|
pick_days_before_transport?: number;
|
|
@@ -836,6 +845,36 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
836
845
|
};
|
|
837
846
|
Relationships: [];
|
|
838
847
|
};
|
|
848
|
+
cart_replan_queue: {
|
|
849
|
+
Row: {
|
|
850
|
+
attempts: number;
|
|
851
|
+
last_error: string | null;
|
|
852
|
+
order_id: string;
|
|
853
|
+
processed_at: string | null;
|
|
854
|
+
requested_at: string;
|
|
855
|
+
};
|
|
856
|
+
Insert: {
|
|
857
|
+
attempts?: number;
|
|
858
|
+
last_error?: string | null;
|
|
859
|
+
order_id: string;
|
|
860
|
+
processed_at?: string | null;
|
|
861
|
+
requested_at?: string;
|
|
862
|
+
};
|
|
863
|
+
Update: {
|
|
864
|
+
attempts?: number;
|
|
865
|
+
last_error?: string | null;
|
|
866
|
+
order_id?: string;
|
|
867
|
+
processed_at?: string | null;
|
|
868
|
+
requested_at?: string;
|
|
869
|
+
};
|
|
870
|
+
Relationships: [{
|
|
871
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
872
|
+
columns: ["order_id"];
|
|
873
|
+
isOneToOne: true;
|
|
874
|
+
referencedRelation: "orders";
|
|
875
|
+
referencedColumns: ["id"];
|
|
876
|
+
}];
|
|
877
|
+
};
|
|
839
878
|
collections: {
|
|
840
879
|
Row: {
|
|
841
880
|
created_at: string;
|
|
@@ -2961,34 +3000,52 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
2961
3000
|
Row: {
|
|
2962
3001
|
catalog_key: string | null;
|
|
2963
3002
|
catalog_url: string;
|
|
3003
|
+
client_id: string | null;
|
|
3004
|
+
client_secret_ciphertext: string | null;
|
|
3005
|
+
client_secret_last4: string | null;
|
|
2964
3006
|
created_at: string;
|
|
2965
3007
|
id: number;
|
|
2966
3008
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
2967
3009
|
last_test_at: string | null;
|
|
2968
3010
|
last_test_error: string | null;
|
|
2969
3011
|
last_test_ok: boolean | null;
|
|
3012
|
+
last_token_test_at: string | null;
|
|
3013
|
+
last_token_test_error: string | null;
|
|
3014
|
+
last_token_test_ok: boolean | null;
|
|
2970
3015
|
updated_at: string;
|
|
2971
3016
|
};
|
|
2972
3017
|
Insert: {
|
|
2973
3018
|
catalog_key?: string | null;
|
|
2974
3019
|
catalog_url?: string;
|
|
3020
|
+
client_id?: string | null;
|
|
3021
|
+
client_secret_ciphertext?: string | null;
|
|
3022
|
+
client_secret_last4?: string | null;
|
|
2975
3023
|
created_at?: string;
|
|
2976
3024
|
id?: number;
|
|
2977
3025
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2978
3026
|
last_test_at?: string | null;
|
|
2979
3027
|
last_test_error?: string | null;
|
|
2980
3028
|
last_test_ok?: boolean | null;
|
|
3029
|
+
last_token_test_at?: string | null;
|
|
3030
|
+
last_token_test_error?: string | null;
|
|
3031
|
+
last_token_test_ok?: boolean | null;
|
|
2981
3032
|
updated_at?: string;
|
|
2982
3033
|
};
|
|
2983
3034
|
Update: {
|
|
2984
3035
|
catalog_key?: string | null;
|
|
2985
3036
|
catalog_url?: string;
|
|
3037
|
+
client_id?: string | null;
|
|
3038
|
+
client_secret_ciphertext?: string | null;
|
|
3039
|
+
client_secret_last4?: string | null;
|
|
2986
3040
|
created_at?: string;
|
|
2987
3041
|
id?: number;
|
|
2988
3042
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2989
3043
|
last_test_at?: string | null;
|
|
2990
3044
|
last_test_error?: string | null;
|
|
2991
3045
|
last_test_ok?: boolean | null;
|
|
3046
|
+
last_token_test_at?: string | null;
|
|
3047
|
+
last_token_test_error?: string | null;
|
|
3048
|
+
last_token_test_ok?: boolean | null;
|
|
2992
3049
|
updated_at?: string;
|
|
2993
3050
|
};
|
|
2994
3051
|
Relationships: [];
|
|
@@ -3221,6 +3278,54 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
3221
3278
|
referencedColumns: ["id"];
|
|
3222
3279
|
}];
|
|
3223
3280
|
};
|
|
3281
|
+
floriday_auto_fulfillment_log: {
|
|
3282
|
+
Row: {
|
|
3283
|
+
attempts: number;
|
|
3284
|
+
connection_id: string;
|
|
3285
|
+
created_at: string;
|
|
3286
|
+
error: string | null;
|
|
3287
|
+
fulfillment_order_id: string | null;
|
|
3288
|
+
id: string;
|
|
3289
|
+
last_attempt_at: string | null;
|
|
3290
|
+
reason: string | null;
|
|
3291
|
+
sales_order_id: string;
|
|
3292
|
+
status: string;
|
|
3293
|
+
updated_at: string;
|
|
3294
|
+
};
|
|
3295
|
+
Insert: {
|
|
3296
|
+
attempts?: number;
|
|
3297
|
+
connection_id: string;
|
|
3298
|
+
created_at?: string;
|
|
3299
|
+
error?: string | null;
|
|
3300
|
+
fulfillment_order_id?: string | null;
|
|
3301
|
+
id?: string;
|
|
3302
|
+
last_attempt_at?: string | null;
|
|
3303
|
+
reason?: string | null;
|
|
3304
|
+
sales_order_id: string;
|
|
3305
|
+
status?: string;
|
|
3306
|
+
updated_at?: string;
|
|
3307
|
+
};
|
|
3308
|
+
Update: {
|
|
3309
|
+
attempts?: number;
|
|
3310
|
+
connection_id?: string;
|
|
3311
|
+
created_at?: string;
|
|
3312
|
+
error?: string | null;
|
|
3313
|
+
fulfillment_order_id?: string | null;
|
|
3314
|
+
id?: string;
|
|
3315
|
+
last_attempt_at?: string | null;
|
|
3316
|
+
reason?: string | null;
|
|
3317
|
+
sales_order_id?: string;
|
|
3318
|
+
status?: string;
|
|
3319
|
+
updated_at?: string;
|
|
3320
|
+
};
|
|
3321
|
+
Relationships: [{
|
|
3322
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3323
|
+
columns: ["connection_id"];
|
|
3324
|
+
isOneToOne: false;
|
|
3325
|
+
referencedRelation: "floriday_connections";
|
|
3326
|
+
referencedColumns: ["id"];
|
|
3327
|
+
}];
|
|
3328
|
+
};
|
|
3224
3329
|
floriday_base_items_cache: {
|
|
3225
3330
|
Row: {
|
|
3226
3331
|
connection_id: string;
|
|
@@ -4325,6 +4430,24 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
4325
4430
|
referencedColumns: ["id"];
|
|
4326
4431
|
}];
|
|
4327
4432
|
};
|
|
4433
|
+
floriday_rate_limit_state: {
|
|
4434
|
+
Row: {
|
|
4435
|
+
bucket: string;
|
|
4436
|
+
last_refill_at: string;
|
|
4437
|
+
tokens: number;
|
|
4438
|
+
};
|
|
4439
|
+
Insert: {
|
|
4440
|
+
bucket: string;
|
|
4441
|
+
last_refill_at?: string;
|
|
4442
|
+
tokens: number;
|
|
4443
|
+
};
|
|
4444
|
+
Update: {
|
|
4445
|
+
bucket?: string;
|
|
4446
|
+
last_refill_at?: string;
|
|
4447
|
+
tokens?: number;
|
|
4448
|
+
};
|
|
4449
|
+
Relationships: [];
|
|
4450
|
+
};
|
|
4328
4451
|
floriday_resource_schemas: {
|
|
4329
4452
|
Row: {
|
|
4330
4453
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -4748,6 +4871,60 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
4748
4871
|
referencedColumns: ["id"];
|
|
4749
4872
|
}];
|
|
4750
4873
|
};
|
|
4874
|
+
flow_role_assignments: {
|
|
4875
|
+
Row: {
|
|
4876
|
+
created_at: string;
|
|
4877
|
+
id: string;
|
|
4878
|
+
role_id: string;
|
|
4879
|
+
user_id: string;
|
|
4880
|
+
};
|
|
4881
|
+
Insert: {
|
|
4882
|
+
created_at?: string;
|
|
4883
|
+
id?: string;
|
|
4884
|
+
role_id: string;
|
|
4885
|
+
user_id: string;
|
|
4886
|
+
};
|
|
4887
|
+
Update: {
|
|
4888
|
+
created_at?: string;
|
|
4889
|
+
id?: string;
|
|
4890
|
+
role_id?: string;
|
|
4891
|
+
user_id?: string;
|
|
4892
|
+
};
|
|
4893
|
+
Relationships: [{
|
|
4894
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
4895
|
+
columns: ["role_id"];
|
|
4896
|
+
isOneToOne: false;
|
|
4897
|
+
referencedRelation: "flow_roles";
|
|
4898
|
+
referencedColumns: ["id"];
|
|
4899
|
+
}];
|
|
4900
|
+
};
|
|
4901
|
+
flow_roles: {
|
|
4902
|
+
Row: {
|
|
4903
|
+
created_at: string;
|
|
4904
|
+
description: string | null;
|
|
4905
|
+
id: string;
|
|
4906
|
+
module_access: string[];
|
|
4907
|
+
name: string;
|
|
4908
|
+
updated_at: string;
|
|
4909
|
+
};
|
|
4910
|
+
Insert: {
|
|
4911
|
+
created_at?: string;
|
|
4912
|
+
description?: string | null;
|
|
4913
|
+
id?: string;
|
|
4914
|
+
module_access?: string[];
|
|
4915
|
+
name: string;
|
|
4916
|
+
updated_at?: string;
|
|
4917
|
+
};
|
|
4918
|
+
Update: {
|
|
4919
|
+
created_at?: string;
|
|
4920
|
+
description?: string | null;
|
|
4921
|
+
id?: string;
|
|
4922
|
+
module_access?: string[];
|
|
4923
|
+
name?: string;
|
|
4924
|
+
updated_at?: string;
|
|
4925
|
+
};
|
|
4926
|
+
Relationships: [];
|
|
4927
|
+
};
|
|
4751
4928
|
imap_accounts: {
|
|
4752
4929
|
Row: {
|
|
4753
4930
|
created_at: string;
|
|
@@ -5379,6 +5556,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
5379
5556
|
matched_customer_id: string | null;
|
|
5380
5557
|
message_id: string;
|
|
5381
5558
|
notes: string | null;
|
|
5559
|
+
order_number: string | null;
|
|
5382
5560
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
5383
5561
|
reviewed_at: string | null;
|
|
5384
5562
|
reviewed_by: string | null;
|
|
@@ -5394,6 +5572,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
5394
5572
|
matched_customer_id?: string | null;
|
|
5395
5573
|
message_id: string;
|
|
5396
5574
|
notes?: string | null;
|
|
5575
|
+
order_number?: string | null;
|
|
5397
5576
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5398
5577
|
reviewed_at?: string | null;
|
|
5399
5578
|
reviewed_by?: string | null;
|
|
@@ -5409,6 +5588,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
5409
5588
|
matched_customer_id?: string | null;
|
|
5410
5589
|
message_id?: string;
|
|
5411
5590
|
notes?: string | null;
|
|
5591
|
+
order_number?: string | null;
|
|
5412
5592
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5413
5593
|
reviewed_at?: string | null;
|
|
5414
5594
|
reviewed_by?: string | null;
|
|
@@ -6265,6 +6445,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
6265
6445
|
id: string;
|
|
6266
6446
|
items: import("../integrations/supabase/types").Json;
|
|
6267
6447
|
notes: string | null;
|
|
6448
|
+
order_number: string | null;
|
|
6268
6449
|
recipient_id: string;
|
|
6269
6450
|
total_amount: number;
|
|
6270
6451
|
};
|
|
@@ -6278,6 +6459,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
6278
6459
|
id?: string;
|
|
6279
6460
|
items?: import("../integrations/supabase/types").Json;
|
|
6280
6461
|
notes?: string | null;
|
|
6462
|
+
order_number?: string | null;
|
|
6281
6463
|
recipient_id: string;
|
|
6282
6464
|
total_amount?: number;
|
|
6283
6465
|
};
|
|
@@ -6291,6 +6473,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
6291
6473
|
id?: string;
|
|
6292
6474
|
items?: import("../integrations/supabase/types").Json;
|
|
6293
6475
|
notes?: string | null;
|
|
6476
|
+
order_number?: string | null;
|
|
6294
6477
|
recipient_id?: string;
|
|
6295
6478
|
total_amount?: number;
|
|
6296
6479
|
};
|
|
@@ -6450,6 +6633,9 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
6450
6633
|
crates_per_layer: number;
|
|
6451
6634
|
created_at: string;
|
|
6452
6635
|
id: string;
|
|
6636
|
+
layer_fraction: number;
|
|
6637
|
+
layer_share_pct: number;
|
|
6638
|
+
layers_per_cart: number;
|
|
6453
6639
|
order_item_id: string | null;
|
|
6454
6640
|
plants_per_crate: number;
|
|
6455
6641
|
product_id: string | null;
|
|
@@ -6461,6 +6647,9 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
6461
6647
|
crates_per_layer?: number;
|
|
6462
6648
|
created_at?: string;
|
|
6463
6649
|
id?: string;
|
|
6650
|
+
layer_fraction?: number;
|
|
6651
|
+
layer_share_pct?: number;
|
|
6652
|
+
layers_per_cart?: number;
|
|
6464
6653
|
order_item_id?: string | null;
|
|
6465
6654
|
plants_per_crate?: number;
|
|
6466
6655
|
product_id?: string | null;
|
|
@@ -6472,6 +6661,9 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
6472
6661
|
crates_per_layer?: number;
|
|
6473
6662
|
created_at?: string;
|
|
6474
6663
|
id?: string;
|
|
6664
|
+
layer_fraction?: number;
|
|
6665
|
+
layer_share_pct?: number;
|
|
6666
|
+
layers_per_cart?: number;
|
|
6475
6667
|
order_item_id?: string | null;
|
|
6476
6668
|
plants_per_crate?: number;
|
|
6477
6669
|
product_id?: string | null;
|
|
@@ -6499,33 +6691,45 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
6499
6691
|
};
|
|
6500
6692
|
order_carts: {
|
|
6501
6693
|
Row: {
|
|
6694
|
+
algorithm_version: number;
|
|
6502
6695
|
cart_number: number;
|
|
6503
6696
|
created_at: string;
|
|
6504
6697
|
id: string;
|
|
6505
6698
|
is_auto: boolean;
|
|
6506
6699
|
is_complete: boolean;
|
|
6507
6700
|
notes: string | null;
|
|
6701
|
+
occupancy_pct: number;
|
|
6508
6702
|
order_id: string;
|
|
6703
|
+
source: string;
|
|
6704
|
+
total_layers_used: number;
|
|
6509
6705
|
updated_at: string;
|
|
6510
6706
|
};
|
|
6511
6707
|
Insert: {
|
|
6708
|
+
algorithm_version?: number;
|
|
6512
6709
|
cart_number: number;
|
|
6513
6710
|
created_at?: string;
|
|
6514
6711
|
id?: string;
|
|
6515
6712
|
is_auto?: boolean;
|
|
6516
6713
|
is_complete?: boolean;
|
|
6517
6714
|
notes?: string | null;
|
|
6715
|
+
occupancy_pct?: number;
|
|
6518
6716
|
order_id: string;
|
|
6717
|
+
source?: string;
|
|
6718
|
+
total_layers_used?: number;
|
|
6519
6719
|
updated_at?: string;
|
|
6520
6720
|
};
|
|
6521
6721
|
Update: {
|
|
6722
|
+
algorithm_version?: number;
|
|
6522
6723
|
cart_number?: number;
|
|
6523
6724
|
created_at?: string;
|
|
6524
6725
|
id?: string;
|
|
6525
6726
|
is_auto?: boolean;
|
|
6526
6727
|
is_complete?: boolean;
|
|
6527
6728
|
notes?: string | null;
|
|
6729
|
+
occupancy_pct?: number;
|
|
6528
6730
|
order_id?: string;
|
|
6731
|
+
source?: string;
|
|
6732
|
+
total_layers_used?: number;
|
|
6529
6733
|
updated_at?: string;
|
|
6530
6734
|
};
|
|
6531
6735
|
Relationships: [{
|
|
@@ -6678,6 +6882,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
6678
6882
|
order_date: string;
|
|
6679
6883
|
order_number: string;
|
|
6680
6884
|
order_source: string;
|
|
6885
|
+
plan_locked_at: string | null;
|
|
6886
|
+
plan_locked_ref: string | null;
|
|
6681
6887
|
status: string;
|
|
6682
6888
|
total: string;
|
|
6683
6889
|
updated_at: string;
|
|
@@ -6694,6 +6900,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
6694
6900
|
order_date?: string;
|
|
6695
6901
|
order_number: string;
|
|
6696
6902
|
order_source?: string;
|
|
6903
|
+
plan_locked_at?: string | null;
|
|
6904
|
+
plan_locked_ref?: string | null;
|
|
6697
6905
|
status?: string;
|
|
6698
6906
|
total?: string;
|
|
6699
6907
|
updated_at?: string;
|
|
@@ -6710,6 +6918,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
6710
6918
|
order_date?: string;
|
|
6711
6919
|
order_number?: string;
|
|
6712
6920
|
order_source?: string;
|
|
6921
|
+
plan_locked_at?: string | null;
|
|
6922
|
+
plan_locked_ref?: string | null;
|
|
6713
6923
|
status?: string;
|
|
6714
6924
|
total?: string;
|
|
6715
6925
|
updated_at?: string;
|
|
@@ -7082,6 +7292,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
7082
7292
|
display_name: string | null;
|
|
7083
7293
|
email: string | null;
|
|
7084
7294
|
id: string;
|
|
7295
|
+
is_superadmin: boolean;
|
|
7085
7296
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
7086
7297
|
tenant_id: string | null;
|
|
7087
7298
|
updated_at: string;
|
|
@@ -7091,6 +7302,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
7091
7302
|
display_name?: string | null;
|
|
7092
7303
|
email?: string | null;
|
|
7093
7304
|
id: string;
|
|
7305
|
+
is_superadmin?: boolean;
|
|
7094
7306
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
7095
7307
|
tenant_id?: string | null;
|
|
7096
7308
|
updated_at?: string;
|
|
@@ -7100,6 +7312,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
7100
7312
|
display_name?: string | null;
|
|
7101
7313
|
email?: string | null;
|
|
7102
7314
|
id?: string;
|
|
7315
|
+
is_superadmin?: boolean;
|
|
7103
7316
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
7104
7317
|
tenant_id?: string | null;
|
|
7105
7318
|
updated_at?: string;
|
|
@@ -7889,6 +8102,24 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
7889
8102
|
};
|
|
7890
8103
|
Relationships: [];
|
|
7891
8104
|
};
|
|
8105
|
+
sidebar_config: {
|
|
8106
|
+
Row: {
|
|
8107
|
+
id: string;
|
|
8108
|
+
module_order: string[];
|
|
8109
|
+
updated_at: string;
|
|
8110
|
+
};
|
|
8111
|
+
Insert: {
|
|
8112
|
+
id?: string;
|
|
8113
|
+
module_order?: string[];
|
|
8114
|
+
updated_at?: string;
|
|
8115
|
+
};
|
|
8116
|
+
Update: {
|
|
8117
|
+
id?: string;
|
|
8118
|
+
module_order?: string[];
|
|
8119
|
+
updated_at?: string;
|
|
8120
|
+
};
|
|
8121
|
+
Relationships: [];
|
|
8122
|
+
};
|
|
7892
8123
|
stock_import_runs: {
|
|
7893
8124
|
Row: {
|
|
7894
8125
|
connection_id: string | null;
|
|
@@ -7947,7 +8178,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
7947
8178
|
reason: string | null;
|
|
7948
8179
|
reserved_after: number | null;
|
|
7949
8180
|
reserved_before: number | null;
|
|
7950
|
-
trade_item_key: string;
|
|
8181
|
+
trade_item_key: string | null;
|
|
7951
8182
|
};
|
|
7952
8183
|
Insert: {
|
|
7953
8184
|
connection_id?: string | null;
|
|
@@ -7964,7 +8195,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
7964
8195
|
reason?: string | null;
|
|
7965
8196
|
reserved_after?: number | null;
|
|
7966
8197
|
reserved_before?: number | null;
|
|
7967
|
-
trade_item_key
|
|
8198
|
+
trade_item_key?: string | null;
|
|
7968
8199
|
};
|
|
7969
8200
|
Update: {
|
|
7970
8201
|
connection_id?: string | null;
|
|
@@ -7981,7 +8212,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
7981
8212
|
reason?: string | null;
|
|
7982
8213
|
reserved_after?: number | null;
|
|
7983
8214
|
reserved_before?: number | null;
|
|
7984
|
-
trade_item_key?: string;
|
|
8215
|
+
trade_item_key?: string | null;
|
|
7985
8216
|
};
|
|
7986
8217
|
Relationships: [];
|
|
7987
8218
|
};
|
|
@@ -8324,6 +8555,114 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
8324
8555
|
};
|
|
8325
8556
|
Relationships: [];
|
|
8326
8557
|
};
|
|
8558
|
+
trade_item_supply_lines: {
|
|
8559
|
+
Row: {
|
|
8560
|
+
available_quantity: number | null;
|
|
8561
|
+
connection_id: string;
|
|
8562
|
+
created_at: string;
|
|
8563
|
+
currency: string | null;
|
|
8564
|
+
endpoint_family: string | null;
|
|
8565
|
+
environment: string | null;
|
|
8566
|
+
id: string;
|
|
8567
|
+
last_error: string | null;
|
|
8568
|
+
last_status: number | null;
|
|
8569
|
+
packing_configuration_id: string | null;
|
|
8570
|
+
period_end: string | null;
|
|
8571
|
+
period_start: string | null;
|
|
8572
|
+
price_per_piece: number | null;
|
|
8573
|
+
sales_unit: string | null;
|
|
8574
|
+
supply_line_id: string | null;
|
|
8575
|
+
supply_type: string;
|
|
8576
|
+
trade_item_id: string;
|
|
8577
|
+
updated_at: string;
|
|
8578
|
+
user_id: string;
|
|
8579
|
+
week: number | null;
|
|
8580
|
+
year: number | null;
|
|
8581
|
+
};
|
|
8582
|
+
Insert: {
|
|
8583
|
+
available_quantity?: number | null;
|
|
8584
|
+
connection_id: string;
|
|
8585
|
+
created_at?: string;
|
|
8586
|
+
currency?: string | null;
|
|
8587
|
+
endpoint_family?: string | null;
|
|
8588
|
+
environment?: string | null;
|
|
8589
|
+
id?: string;
|
|
8590
|
+
last_error?: string | null;
|
|
8591
|
+
last_status?: number | null;
|
|
8592
|
+
packing_configuration_id?: string | null;
|
|
8593
|
+
period_end?: string | null;
|
|
8594
|
+
period_start?: string | null;
|
|
8595
|
+
price_per_piece?: number | null;
|
|
8596
|
+
sales_unit?: string | null;
|
|
8597
|
+
supply_line_id?: string | null;
|
|
8598
|
+
supply_type?: string;
|
|
8599
|
+
trade_item_id: string;
|
|
8600
|
+
updated_at?: string;
|
|
8601
|
+
user_id: string;
|
|
8602
|
+
week?: number | null;
|
|
8603
|
+
year?: number | null;
|
|
8604
|
+
};
|
|
8605
|
+
Update: {
|
|
8606
|
+
available_quantity?: number | null;
|
|
8607
|
+
connection_id?: string;
|
|
8608
|
+
created_at?: string;
|
|
8609
|
+
currency?: string | null;
|
|
8610
|
+
endpoint_family?: string | null;
|
|
8611
|
+
environment?: string | null;
|
|
8612
|
+
id?: string;
|
|
8613
|
+
last_error?: string | null;
|
|
8614
|
+
last_status?: number | null;
|
|
8615
|
+
packing_configuration_id?: string | null;
|
|
8616
|
+
period_end?: string | null;
|
|
8617
|
+
period_start?: string | null;
|
|
8618
|
+
price_per_piece?: number | null;
|
|
8619
|
+
sales_unit?: string | null;
|
|
8620
|
+
supply_line_id?: string | null;
|
|
8621
|
+
supply_type?: string;
|
|
8622
|
+
trade_item_id?: string;
|
|
8623
|
+
updated_at?: string;
|
|
8624
|
+
user_id?: string;
|
|
8625
|
+
week?: number | null;
|
|
8626
|
+
year?: number | null;
|
|
8627
|
+
};
|
|
8628
|
+
Relationships: [];
|
|
8629
|
+
};
|
|
8630
|
+
trade_item_warehouse_preferences: {
|
|
8631
|
+
Row: {
|
|
8632
|
+
connection_id: string;
|
|
8633
|
+
created_at: string;
|
|
8634
|
+
id: string;
|
|
8635
|
+
trade_item_id: string;
|
|
8636
|
+
updated_at: string;
|
|
8637
|
+
warehouse_id: string;
|
|
8638
|
+
warehouse_name: string | null;
|
|
8639
|
+
};
|
|
8640
|
+
Insert: {
|
|
8641
|
+
connection_id: string;
|
|
8642
|
+
created_at?: string;
|
|
8643
|
+
id?: string;
|
|
8644
|
+
trade_item_id: string;
|
|
8645
|
+
updated_at?: string;
|
|
8646
|
+
warehouse_id: string;
|
|
8647
|
+
warehouse_name?: string | null;
|
|
8648
|
+
};
|
|
8649
|
+
Update: {
|
|
8650
|
+
connection_id?: string;
|
|
8651
|
+
created_at?: string;
|
|
8652
|
+
id?: string;
|
|
8653
|
+
trade_item_id?: string;
|
|
8654
|
+
updated_at?: string;
|
|
8655
|
+
warehouse_id?: string;
|
|
8656
|
+
warehouse_name?: string | null;
|
|
8657
|
+
};
|
|
8658
|
+
Relationships: [{
|
|
8659
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8660
|
+
columns: ["connection_id"];
|
|
8661
|
+
isOneToOne: false;
|
|
8662
|
+
referencedRelation: "floriday_connections";
|
|
8663
|
+
referencedColumns: ["id"];
|
|
8664
|
+
}];
|
|
8665
|
+
};
|
|
8327
8666
|
twinfield_connections: {
|
|
8328
8667
|
Row: {
|
|
8329
8668
|
access_token: string | null;
|
|
@@ -8643,6 +8982,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
8643
8982
|
default_invoice_type: string;
|
|
8644
8983
|
default_payment_term_days: number;
|
|
8645
8984
|
default_vat_code: string;
|
|
8985
|
+
invoice_enabled_ao: boolean;
|
|
8986
|
+
invoice_enabled_fo: boolean;
|
|
8987
|
+
invoice_enabled_ho: boolean;
|
|
8988
|
+
invoice_enabled_mo: boolean;
|
|
8646
8989
|
updated_at: string;
|
|
8647
8990
|
user_id: string;
|
|
8648
8991
|
};
|
|
@@ -8652,6 +8995,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
8652
8995
|
default_invoice_type?: string;
|
|
8653
8996
|
default_payment_term_days?: number;
|
|
8654
8997
|
default_vat_code?: string;
|
|
8998
|
+
invoice_enabled_ao?: boolean;
|
|
8999
|
+
invoice_enabled_fo?: boolean;
|
|
9000
|
+
invoice_enabled_ho?: boolean;
|
|
9001
|
+
invoice_enabled_mo?: boolean;
|
|
8655
9002
|
updated_at?: string;
|
|
8656
9003
|
user_id: string;
|
|
8657
9004
|
};
|
|
@@ -8661,6 +9008,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
8661
9008
|
default_invoice_type?: string;
|
|
8662
9009
|
default_payment_term_days?: number;
|
|
8663
9010
|
default_vat_code?: string;
|
|
9011
|
+
invoice_enabled_ao?: boolean;
|
|
9012
|
+
invoice_enabled_fo?: boolean;
|
|
9013
|
+
invoice_enabled_ho?: boolean;
|
|
9014
|
+
invoice_enabled_mo?: boolean;
|
|
8664
9015
|
updated_at?: string;
|
|
8665
9016
|
user_id?: string;
|
|
8666
9017
|
};
|
|
@@ -9955,6 +10306,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
9955
10306
|
order_number: string;
|
|
9956
10307
|
}[];
|
|
9957
10308
|
};
|
|
10309
|
+
autolink_product_to_floriday: {
|
|
10310
|
+
Args: {
|
|
10311
|
+
p_product_id: string;
|
|
10312
|
+
};
|
|
10313
|
+
Returns: string;
|
|
10314
|
+
};
|
|
9958
10315
|
backfill_open_order_reservations: {
|
|
9959
10316
|
Args: never;
|
|
9960
10317
|
Returns: {
|
|
@@ -9993,6 +10350,18 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
9993
10350
|
Args: never;
|
|
9994
10351
|
Returns: number;
|
|
9995
10352
|
};
|
|
10353
|
+
consume_floriday_rate_limit: {
|
|
10354
|
+
Args: {
|
|
10355
|
+
p_bucket: string;
|
|
10356
|
+
p_capacity: number;
|
|
10357
|
+
p_cost?: number;
|
|
10358
|
+
p_refill_per_sec: number;
|
|
10359
|
+
};
|
|
10360
|
+
Returns: {
|
|
10361
|
+
granted: boolean;
|
|
10362
|
+
wait_ms: number;
|
|
10363
|
+
}[];
|
|
10364
|
+
};
|
|
9996
10365
|
control_get_todays_carts: {
|
|
9997
10366
|
Args: never;
|
|
9998
10367
|
Returns: {
|
|
@@ -10073,6 +10442,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
10073
10442
|
status: string;
|
|
10074
10443
|
}[];
|
|
10075
10444
|
};
|
|
10445
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10446
|
+
Args: {
|
|
10447
|
+
p_order_id: string;
|
|
10448
|
+
};
|
|
10449
|
+
Returns: undefined;
|
|
10450
|
+
};
|
|
10076
10451
|
ensure_trade_item_stock_row: {
|
|
10077
10452
|
Args: {
|
|
10078
10453
|
p_key: string;
|
|
@@ -10179,6 +10554,13 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
10179
10554
|
office_code: string;
|
|
10180
10555
|
}[];
|
|
10181
10556
|
};
|
|
10557
|
+
get_floricode_record_counts: {
|
|
10558
|
+
Args: never;
|
|
10559
|
+
Returns: {
|
|
10560
|
+
count: number;
|
|
10561
|
+
resource: string;
|
|
10562
|
+
}[];
|
|
10563
|
+
};
|
|
10182
10564
|
get_floriday_agreements_active: {
|
|
10183
10565
|
Args: {
|
|
10184
10566
|
p_on_date?: string;
|
|
@@ -10270,6 +10652,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
10270
10652
|
};
|
|
10271
10653
|
Returns: import("../integrations/supabase/types").Json;
|
|
10272
10654
|
};
|
|
10655
|
+
get_offer_delivery_options: {
|
|
10656
|
+
Args: {
|
|
10657
|
+
p_code: string;
|
|
10658
|
+
};
|
|
10659
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10660
|
+
};
|
|
10273
10661
|
get_offer_recipient_by_code: {
|
|
10274
10662
|
Args: {
|
|
10275
10663
|
p_code: string;
|
|
@@ -10334,6 +10722,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
10334
10722
|
Args: never;
|
|
10335
10723
|
Returns: boolean;
|
|
10336
10724
|
};
|
|
10725
|
+
is_superadmin: {
|
|
10726
|
+
Args: {
|
|
10727
|
+
_user_id: string;
|
|
10728
|
+
};
|
|
10729
|
+
Returns: boolean;
|
|
10730
|
+
};
|
|
10337
10731
|
local_effective_price: {
|
|
10338
10732
|
Args: {
|
|
10339
10733
|
_customer_id: string;
|
|
@@ -10368,6 +10762,13 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
10368
10762
|
};
|
|
10369
10763
|
Returns: string;
|
|
10370
10764
|
};
|
|
10765
|
+
next_order_number_for_date: {
|
|
10766
|
+
Args: {
|
|
10767
|
+
p_created_at?: string;
|
|
10768
|
+
p_prefix: string;
|
|
10769
|
+
};
|
|
10770
|
+
Returns: string;
|
|
10771
|
+
};
|
|
10371
10772
|
next_work_order_number: {
|
|
10372
10773
|
Args: {
|
|
10373
10774
|
p_parent_work_order_id?: string;
|
|
@@ -10375,6 +10776,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
10375
10776
|
};
|
|
10376
10777
|
Returns: string;
|
|
10377
10778
|
};
|
|
10779
|
+
normalize_order_source: {
|
|
10780
|
+
Args: {
|
|
10781
|
+
p_src: string;
|
|
10782
|
+
};
|
|
10783
|
+
Returns: string;
|
|
10784
|
+
};
|
|
10378
10785
|
normalize_vat: {
|
|
10379
10786
|
Args: {
|
|
10380
10787
|
v: string;
|
|
@@ -10389,10 +10796,21 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
10389
10796
|
};
|
|
10390
10797
|
Returns: boolean;
|
|
10391
10798
|
};
|
|
10799
|
+
order_number_prefix: {
|
|
10800
|
+
Args: {
|
|
10801
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
10802
|
+
p_order_source: string;
|
|
10803
|
+
};
|
|
10804
|
+
Returns: string;
|
|
10805
|
+
};
|
|
10392
10806
|
pickstation_get_orders_raw: {
|
|
10393
10807
|
Args: never;
|
|
10394
10808
|
Returns: import("../integrations/supabase/types").Json;
|
|
10395
10809
|
};
|
|
10810
|
+
pickstation_get_planning_context: {
|
|
10811
|
+
Args: never;
|
|
10812
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10813
|
+
};
|
|
10396
10814
|
pickstation_get_settings: {
|
|
10397
10815
|
Args: never;
|
|
10398
10816
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -10423,6 +10841,28 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
10423
10841
|
};
|
|
10424
10842
|
Returns: undefined;
|
|
10425
10843
|
};
|
|
10844
|
+
recompute_order_status: {
|
|
10845
|
+
Args: {
|
|
10846
|
+
p_order_id: string;
|
|
10847
|
+
};
|
|
10848
|
+
Returns: undefined;
|
|
10849
|
+
};
|
|
10850
|
+
recompute_reserved_for_order: {
|
|
10851
|
+
Args: {
|
|
10852
|
+
p_order_id: string;
|
|
10853
|
+
};
|
|
10854
|
+
Returns: undefined;
|
|
10855
|
+
};
|
|
10856
|
+
recompute_reserved_stock: {
|
|
10857
|
+
Args: {
|
|
10858
|
+
p_trade_item_key: string;
|
|
10859
|
+
};
|
|
10860
|
+
Returns: undefined;
|
|
10861
|
+
};
|
|
10862
|
+
refresh_external_customers_grouped: {
|
|
10863
|
+
Args: never;
|
|
10864
|
+
Returns: undefined;
|
|
10865
|
+
};
|
|
10426
10866
|
refresh_floricode_derived_code_lists: {
|
|
10427
10867
|
Args: never;
|
|
10428
10868
|
Returns: {
|
|
@@ -10437,6 +10877,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
10437
10877
|
};
|
|
10438
10878
|
Returns: number;
|
|
10439
10879
|
};
|
|
10880
|
+
refresh_floricode_derived_for_products: {
|
|
10881
|
+
Args: {
|
|
10882
|
+
_product_ids: string[];
|
|
10883
|
+
};
|
|
10884
|
+
Returns: number;
|
|
10885
|
+
};
|
|
10440
10886
|
reset_floriday_sync_cursor: {
|
|
10441
10887
|
Args: {
|
|
10442
10888
|
p_connection_id: string;
|
|
@@ -10444,6 +10890,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
10444
10890
|
};
|
|
10445
10891
|
Returns: undefined;
|
|
10446
10892
|
};
|
|
10893
|
+
resolve_product_id_for_item: {
|
|
10894
|
+
Args: {
|
|
10895
|
+
p_product_name: string;
|
|
10896
|
+
};
|
|
10897
|
+
Returns: string;
|
|
10898
|
+
};
|
|
10447
10899
|
schedule_floriday_additional_services_sync: {
|
|
10448
10900
|
Args: {
|
|
10449
10901
|
p_apikey: string;
|
|
@@ -10721,6 +11173,24 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
10721
11173
|
};
|
|
10722
11174
|
Returns: string[];
|
|
10723
11175
|
};
|
|
11176
|
+
sync_cached_packing_from_product: {
|
|
11177
|
+
Args: {
|
|
11178
|
+
p_product_id: string;
|
|
11179
|
+
};
|
|
11180
|
+
Returns: undefined;
|
|
11181
|
+
};
|
|
11182
|
+
sync_order_cart_item_packing_from_product: {
|
|
11183
|
+
Args: {
|
|
11184
|
+
p_product_id: string;
|
|
11185
|
+
};
|
|
11186
|
+
Returns: undefined;
|
|
11187
|
+
};
|
|
11188
|
+
sync_product_packing_from_floriday_cache: {
|
|
11189
|
+
Args: {
|
|
11190
|
+
p_floriday_id: string;
|
|
11191
|
+
};
|
|
11192
|
+
Returns: undefined;
|
|
11193
|
+
};
|
|
10724
11194
|
twinfield_decrypt: {
|
|
10725
11195
|
Args: {
|
|
10726
11196
|
cipher: string;
|
|
@@ -10733,6 +11203,17 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
|
|
|
10733
11203
|
};
|
|
10734
11204
|
Returns: string;
|
|
10735
11205
|
};
|
|
11206
|
+
upsert_auto_fulfillment_log: {
|
|
11207
|
+
Args: {
|
|
11208
|
+
p_connection_id: string;
|
|
11209
|
+
p_error?: string;
|
|
11210
|
+
p_fulfillment_order_id?: string;
|
|
11211
|
+
p_reason?: string;
|
|
11212
|
+
p_sales_order_id: string;
|
|
11213
|
+
p_status: string;
|
|
11214
|
+
};
|
|
11215
|
+
Returns: undefined;
|
|
11216
|
+
};
|
|
10736
11217
|
};
|
|
10737
11218
|
Enums: {
|
|
10738
11219
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|
|
@@ -10761,7 +11242,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
10761
11242
|
Tables: {
|
|
10762
11243
|
afhandeling_settings: {
|
|
10763
11244
|
Row: {
|
|
11245
|
+
auto_print_delivery_note: boolean;
|
|
11246
|
+
auto_process_paused: boolean;
|
|
10764
11247
|
created_at: string;
|
|
11248
|
+
extra_pick_days_with_stickers: number;
|
|
10765
11249
|
id: string;
|
|
10766
11250
|
max_workdays_earlier_pick: number;
|
|
10767
11251
|
pick_days_before_transport: number;
|
|
@@ -10775,7 +11259,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
10775
11259
|
user_id: string;
|
|
10776
11260
|
};
|
|
10777
11261
|
Insert: {
|
|
11262
|
+
auto_print_delivery_note?: boolean;
|
|
11263
|
+
auto_process_paused?: boolean;
|
|
10778
11264
|
created_at?: string;
|
|
11265
|
+
extra_pick_days_with_stickers?: number;
|
|
10779
11266
|
id?: string;
|
|
10780
11267
|
max_workdays_earlier_pick?: number;
|
|
10781
11268
|
pick_days_before_transport?: number;
|
|
@@ -10789,7 +11276,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
10789
11276
|
user_id: string;
|
|
10790
11277
|
};
|
|
10791
11278
|
Update: {
|
|
11279
|
+
auto_print_delivery_note?: boolean;
|
|
11280
|
+
auto_process_paused?: boolean;
|
|
10792
11281
|
created_at?: string;
|
|
11282
|
+
extra_pick_days_with_stickers?: number;
|
|
10793
11283
|
id?: string;
|
|
10794
11284
|
max_workdays_earlier_pick?: number;
|
|
10795
11285
|
pick_days_before_transport?: number;
|
|
@@ -11581,6 +12071,36 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
11581
12071
|
};
|
|
11582
12072
|
Relationships: [];
|
|
11583
12073
|
};
|
|
12074
|
+
cart_replan_queue: {
|
|
12075
|
+
Row: {
|
|
12076
|
+
attempts: number;
|
|
12077
|
+
last_error: string | null;
|
|
12078
|
+
order_id: string;
|
|
12079
|
+
processed_at: string | null;
|
|
12080
|
+
requested_at: string;
|
|
12081
|
+
};
|
|
12082
|
+
Insert: {
|
|
12083
|
+
attempts?: number;
|
|
12084
|
+
last_error?: string | null;
|
|
12085
|
+
order_id: string;
|
|
12086
|
+
processed_at?: string | null;
|
|
12087
|
+
requested_at?: string;
|
|
12088
|
+
};
|
|
12089
|
+
Update: {
|
|
12090
|
+
attempts?: number;
|
|
12091
|
+
last_error?: string | null;
|
|
12092
|
+
order_id?: string;
|
|
12093
|
+
processed_at?: string | null;
|
|
12094
|
+
requested_at?: string;
|
|
12095
|
+
};
|
|
12096
|
+
Relationships: [{
|
|
12097
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
12098
|
+
columns: ["order_id"];
|
|
12099
|
+
isOneToOne: true;
|
|
12100
|
+
referencedRelation: "orders";
|
|
12101
|
+
referencedColumns: ["id"];
|
|
12102
|
+
}];
|
|
12103
|
+
};
|
|
11584
12104
|
collections: {
|
|
11585
12105
|
Row: {
|
|
11586
12106
|
created_at: string;
|
|
@@ -13706,34 +14226,52 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
13706
14226
|
Row: {
|
|
13707
14227
|
catalog_key: string | null;
|
|
13708
14228
|
catalog_url: string;
|
|
14229
|
+
client_id: string | null;
|
|
14230
|
+
client_secret_ciphertext: string | null;
|
|
14231
|
+
client_secret_last4: string | null;
|
|
13709
14232
|
created_at: string;
|
|
13710
14233
|
id: number;
|
|
13711
14234
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
13712
14235
|
last_test_at: string | null;
|
|
13713
14236
|
last_test_error: string | null;
|
|
13714
14237
|
last_test_ok: boolean | null;
|
|
14238
|
+
last_token_test_at: string | null;
|
|
14239
|
+
last_token_test_error: string | null;
|
|
14240
|
+
last_token_test_ok: boolean | null;
|
|
13715
14241
|
updated_at: string;
|
|
13716
14242
|
};
|
|
13717
14243
|
Insert: {
|
|
13718
14244
|
catalog_key?: string | null;
|
|
13719
14245
|
catalog_url?: string;
|
|
14246
|
+
client_id?: string | null;
|
|
14247
|
+
client_secret_ciphertext?: string | null;
|
|
14248
|
+
client_secret_last4?: string | null;
|
|
13720
14249
|
created_at?: string;
|
|
13721
14250
|
id?: number;
|
|
13722
14251
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
13723
14252
|
last_test_at?: string | null;
|
|
13724
14253
|
last_test_error?: string | null;
|
|
13725
14254
|
last_test_ok?: boolean | null;
|
|
14255
|
+
last_token_test_at?: string | null;
|
|
14256
|
+
last_token_test_error?: string | null;
|
|
14257
|
+
last_token_test_ok?: boolean | null;
|
|
13726
14258
|
updated_at?: string;
|
|
13727
14259
|
};
|
|
13728
14260
|
Update: {
|
|
13729
14261
|
catalog_key?: string | null;
|
|
13730
14262
|
catalog_url?: string;
|
|
14263
|
+
client_id?: string | null;
|
|
14264
|
+
client_secret_ciphertext?: string | null;
|
|
14265
|
+
client_secret_last4?: string | null;
|
|
13731
14266
|
created_at?: string;
|
|
13732
14267
|
id?: number;
|
|
13733
14268
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
13734
14269
|
last_test_at?: string | null;
|
|
13735
14270
|
last_test_error?: string | null;
|
|
13736
14271
|
last_test_ok?: boolean | null;
|
|
14272
|
+
last_token_test_at?: string | null;
|
|
14273
|
+
last_token_test_error?: string | null;
|
|
14274
|
+
last_token_test_ok?: boolean | null;
|
|
13737
14275
|
updated_at?: string;
|
|
13738
14276
|
};
|
|
13739
14277
|
Relationships: [];
|
|
@@ -13966,6 +14504,54 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
13966
14504
|
referencedColumns: ["id"];
|
|
13967
14505
|
}];
|
|
13968
14506
|
};
|
|
14507
|
+
floriday_auto_fulfillment_log: {
|
|
14508
|
+
Row: {
|
|
14509
|
+
attempts: number;
|
|
14510
|
+
connection_id: string;
|
|
14511
|
+
created_at: string;
|
|
14512
|
+
error: string | null;
|
|
14513
|
+
fulfillment_order_id: string | null;
|
|
14514
|
+
id: string;
|
|
14515
|
+
last_attempt_at: string | null;
|
|
14516
|
+
reason: string | null;
|
|
14517
|
+
sales_order_id: string;
|
|
14518
|
+
status: string;
|
|
14519
|
+
updated_at: string;
|
|
14520
|
+
};
|
|
14521
|
+
Insert: {
|
|
14522
|
+
attempts?: number;
|
|
14523
|
+
connection_id: string;
|
|
14524
|
+
created_at?: string;
|
|
14525
|
+
error?: string | null;
|
|
14526
|
+
fulfillment_order_id?: string | null;
|
|
14527
|
+
id?: string;
|
|
14528
|
+
last_attempt_at?: string | null;
|
|
14529
|
+
reason?: string | null;
|
|
14530
|
+
sales_order_id: string;
|
|
14531
|
+
status?: string;
|
|
14532
|
+
updated_at?: string;
|
|
14533
|
+
};
|
|
14534
|
+
Update: {
|
|
14535
|
+
attempts?: number;
|
|
14536
|
+
connection_id?: string;
|
|
14537
|
+
created_at?: string;
|
|
14538
|
+
error?: string | null;
|
|
14539
|
+
fulfillment_order_id?: string | null;
|
|
14540
|
+
id?: string;
|
|
14541
|
+
last_attempt_at?: string | null;
|
|
14542
|
+
reason?: string | null;
|
|
14543
|
+
sales_order_id?: string;
|
|
14544
|
+
status?: string;
|
|
14545
|
+
updated_at?: string;
|
|
14546
|
+
};
|
|
14547
|
+
Relationships: [{
|
|
14548
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
14549
|
+
columns: ["connection_id"];
|
|
14550
|
+
isOneToOne: false;
|
|
14551
|
+
referencedRelation: "floriday_connections";
|
|
14552
|
+
referencedColumns: ["id"];
|
|
14553
|
+
}];
|
|
14554
|
+
};
|
|
13969
14555
|
floriday_base_items_cache: {
|
|
13970
14556
|
Row: {
|
|
13971
14557
|
connection_id: string;
|
|
@@ -15070,6 +15656,24 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
15070
15656
|
referencedColumns: ["id"];
|
|
15071
15657
|
}];
|
|
15072
15658
|
};
|
|
15659
|
+
floriday_rate_limit_state: {
|
|
15660
|
+
Row: {
|
|
15661
|
+
bucket: string;
|
|
15662
|
+
last_refill_at: string;
|
|
15663
|
+
tokens: number;
|
|
15664
|
+
};
|
|
15665
|
+
Insert: {
|
|
15666
|
+
bucket: string;
|
|
15667
|
+
last_refill_at?: string;
|
|
15668
|
+
tokens: number;
|
|
15669
|
+
};
|
|
15670
|
+
Update: {
|
|
15671
|
+
bucket?: string;
|
|
15672
|
+
last_refill_at?: string;
|
|
15673
|
+
tokens?: number;
|
|
15674
|
+
};
|
|
15675
|
+
Relationships: [];
|
|
15676
|
+
};
|
|
15073
15677
|
floriday_resource_schemas: {
|
|
15074
15678
|
Row: {
|
|
15075
15679
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -15493,6 +16097,60 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
15493
16097
|
referencedColumns: ["id"];
|
|
15494
16098
|
}];
|
|
15495
16099
|
};
|
|
16100
|
+
flow_role_assignments: {
|
|
16101
|
+
Row: {
|
|
16102
|
+
created_at: string;
|
|
16103
|
+
id: string;
|
|
16104
|
+
role_id: string;
|
|
16105
|
+
user_id: string;
|
|
16106
|
+
};
|
|
16107
|
+
Insert: {
|
|
16108
|
+
created_at?: string;
|
|
16109
|
+
id?: string;
|
|
16110
|
+
role_id: string;
|
|
16111
|
+
user_id: string;
|
|
16112
|
+
};
|
|
16113
|
+
Update: {
|
|
16114
|
+
created_at?: string;
|
|
16115
|
+
id?: string;
|
|
16116
|
+
role_id?: string;
|
|
16117
|
+
user_id?: string;
|
|
16118
|
+
};
|
|
16119
|
+
Relationships: [{
|
|
16120
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
16121
|
+
columns: ["role_id"];
|
|
16122
|
+
isOneToOne: false;
|
|
16123
|
+
referencedRelation: "flow_roles";
|
|
16124
|
+
referencedColumns: ["id"];
|
|
16125
|
+
}];
|
|
16126
|
+
};
|
|
16127
|
+
flow_roles: {
|
|
16128
|
+
Row: {
|
|
16129
|
+
created_at: string;
|
|
16130
|
+
description: string | null;
|
|
16131
|
+
id: string;
|
|
16132
|
+
module_access: string[];
|
|
16133
|
+
name: string;
|
|
16134
|
+
updated_at: string;
|
|
16135
|
+
};
|
|
16136
|
+
Insert: {
|
|
16137
|
+
created_at?: string;
|
|
16138
|
+
description?: string | null;
|
|
16139
|
+
id?: string;
|
|
16140
|
+
module_access?: string[];
|
|
16141
|
+
name: string;
|
|
16142
|
+
updated_at?: string;
|
|
16143
|
+
};
|
|
16144
|
+
Update: {
|
|
16145
|
+
created_at?: string;
|
|
16146
|
+
description?: string | null;
|
|
16147
|
+
id?: string;
|
|
16148
|
+
module_access?: string[];
|
|
16149
|
+
name?: string;
|
|
16150
|
+
updated_at?: string;
|
|
16151
|
+
};
|
|
16152
|
+
Relationships: [];
|
|
16153
|
+
};
|
|
15496
16154
|
imap_accounts: {
|
|
15497
16155
|
Row: {
|
|
15498
16156
|
created_at: string;
|
|
@@ -16124,6 +16782,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
16124
16782
|
matched_customer_id: string | null;
|
|
16125
16783
|
message_id: string;
|
|
16126
16784
|
notes: string | null;
|
|
16785
|
+
order_number: string | null;
|
|
16127
16786
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
16128
16787
|
reviewed_at: string | null;
|
|
16129
16788
|
reviewed_by: string | null;
|
|
@@ -16139,6 +16798,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
16139
16798
|
matched_customer_id?: string | null;
|
|
16140
16799
|
message_id: string;
|
|
16141
16800
|
notes?: string | null;
|
|
16801
|
+
order_number?: string | null;
|
|
16142
16802
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
16143
16803
|
reviewed_at?: string | null;
|
|
16144
16804
|
reviewed_by?: string | null;
|
|
@@ -16154,6 +16814,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
16154
16814
|
matched_customer_id?: string | null;
|
|
16155
16815
|
message_id?: string;
|
|
16156
16816
|
notes?: string | null;
|
|
16817
|
+
order_number?: string | null;
|
|
16157
16818
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
16158
16819
|
reviewed_at?: string | null;
|
|
16159
16820
|
reviewed_by?: string | null;
|
|
@@ -17010,6 +17671,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17010
17671
|
id: string;
|
|
17011
17672
|
items: import("../integrations/supabase/types").Json;
|
|
17012
17673
|
notes: string | null;
|
|
17674
|
+
order_number: string | null;
|
|
17013
17675
|
recipient_id: string;
|
|
17014
17676
|
total_amount: number;
|
|
17015
17677
|
};
|
|
@@ -17023,6 +17685,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17023
17685
|
id?: string;
|
|
17024
17686
|
items?: import("../integrations/supabase/types").Json;
|
|
17025
17687
|
notes?: string | null;
|
|
17688
|
+
order_number?: string | null;
|
|
17026
17689
|
recipient_id: string;
|
|
17027
17690
|
total_amount?: number;
|
|
17028
17691
|
};
|
|
@@ -17036,6 +17699,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17036
17699
|
id?: string;
|
|
17037
17700
|
items?: import("../integrations/supabase/types").Json;
|
|
17038
17701
|
notes?: string | null;
|
|
17702
|
+
order_number?: string | null;
|
|
17039
17703
|
recipient_id?: string;
|
|
17040
17704
|
total_amount?: number;
|
|
17041
17705
|
};
|
|
@@ -17195,6 +17859,9 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17195
17859
|
crates_per_layer: number;
|
|
17196
17860
|
created_at: string;
|
|
17197
17861
|
id: string;
|
|
17862
|
+
layer_fraction: number;
|
|
17863
|
+
layer_share_pct: number;
|
|
17864
|
+
layers_per_cart: number;
|
|
17198
17865
|
order_item_id: string | null;
|
|
17199
17866
|
plants_per_crate: number;
|
|
17200
17867
|
product_id: string | null;
|
|
@@ -17206,6 +17873,9 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17206
17873
|
crates_per_layer?: number;
|
|
17207
17874
|
created_at?: string;
|
|
17208
17875
|
id?: string;
|
|
17876
|
+
layer_fraction?: number;
|
|
17877
|
+
layer_share_pct?: number;
|
|
17878
|
+
layers_per_cart?: number;
|
|
17209
17879
|
order_item_id?: string | null;
|
|
17210
17880
|
plants_per_crate?: number;
|
|
17211
17881
|
product_id?: string | null;
|
|
@@ -17217,6 +17887,9 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17217
17887
|
crates_per_layer?: number;
|
|
17218
17888
|
created_at?: string;
|
|
17219
17889
|
id?: string;
|
|
17890
|
+
layer_fraction?: number;
|
|
17891
|
+
layer_share_pct?: number;
|
|
17892
|
+
layers_per_cart?: number;
|
|
17220
17893
|
order_item_id?: string | null;
|
|
17221
17894
|
plants_per_crate?: number;
|
|
17222
17895
|
product_id?: string | null;
|
|
@@ -17244,33 +17917,45 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17244
17917
|
};
|
|
17245
17918
|
order_carts: {
|
|
17246
17919
|
Row: {
|
|
17920
|
+
algorithm_version: number;
|
|
17247
17921
|
cart_number: number;
|
|
17248
17922
|
created_at: string;
|
|
17249
17923
|
id: string;
|
|
17250
17924
|
is_auto: boolean;
|
|
17251
17925
|
is_complete: boolean;
|
|
17252
17926
|
notes: string | null;
|
|
17927
|
+
occupancy_pct: number;
|
|
17253
17928
|
order_id: string;
|
|
17929
|
+
source: string;
|
|
17930
|
+
total_layers_used: number;
|
|
17254
17931
|
updated_at: string;
|
|
17255
17932
|
};
|
|
17256
17933
|
Insert: {
|
|
17934
|
+
algorithm_version?: number;
|
|
17257
17935
|
cart_number: number;
|
|
17258
17936
|
created_at?: string;
|
|
17259
17937
|
id?: string;
|
|
17260
17938
|
is_auto?: boolean;
|
|
17261
17939
|
is_complete?: boolean;
|
|
17262
17940
|
notes?: string | null;
|
|
17941
|
+
occupancy_pct?: number;
|
|
17263
17942
|
order_id: string;
|
|
17943
|
+
source?: string;
|
|
17944
|
+
total_layers_used?: number;
|
|
17264
17945
|
updated_at?: string;
|
|
17265
17946
|
};
|
|
17266
17947
|
Update: {
|
|
17948
|
+
algorithm_version?: number;
|
|
17267
17949
|
cart_number?: number;
|
|
17268
17950
|
created_at?: string;
|
|
17269
17951
|
id?: string;
|
|
17270
17952
|
is_auto?: boolean;
|
|
17271
17953
|
is_complete?: boolean;
|
|
17272
17954
|
notes?: string | null;
|
|
17955
|
+
occupancy_pct?: number;
|
|
17273
17956
|
order_id?: string;
|
|
17957
|
+
source?: string;
|
|
17958
|
+
total_layers_used?: number;
|
|
17274
17959
|
updated_at?: string;
|
|
17275
17960
|
};
|
|
17276
17961
|
Relationships: [{
|
|
@@ -17423,6 +18108,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17423
18108
|
order_date: string;
|
|
17424
18109
|
order_number: string;
|
|
17425
18110
|
order_source: string;
|
|
18111
|
+
plan_locked_at: string | null;
|
|
18112
|
+
plan_locked_ref: string | null;
|
|
17426
18113
|
status: string;
|
|
17427
18114
|
total: string;
|
|
17428
18115
|
updated_at: string;
|
|
@@ -17439,6 +18126,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17439
18126
|
order_date?: string;
|
|
17440
18127
|
order_number: string;
|
|
17441
18128
|
order_source?: string;
|
|
18129
|
+
plan_locked_at?: string | null;
|
|
18130
|
+
plan_locked_ref?: string | null;
|
|
17442
18131
|
status?: string;
|
|
17443
18132
|
total?: string;
|
|
17444
18133
|
updated_at?: string;
|
|
@@ -17455,6 +18144,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17455
18144
|
order_date?: string;
|
|
17456
18145
|
order_number?: string;
|
|
17457
18146
|
order_source?: string;
|
|
18147
|
+
plan_locked_at?: string | null;
|
|
18148
|
+
plan_locked_ref?: string | null;
|
|
17458
18149
|
status?: string;
|
|
17459
18150
|
total?: string;
|
|
17460
18151
|
updated_at?: string;
|
|
@@ -17827,6 +18518,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17827
18518
|
display_name: string | null;
|
|
17828
18519
|
email: string | null;
|
|
17829
18520
|
id: string;
|
|
18521
|
+
is_superadmin: boolean;
|
|
17830
18522
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
17831
18523
|
tenant_id: string | null;
|
|
17832
18524
|
updated_at: string;
|
|
@@ -17836,6 +18528,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17836
18528
|
display_name?: string | null;
|
|
17837
18529
|
email?: string | null;
|
|
17838
18530
|
id: string;
|
|
18531
|
+
is_superadmin?: boolean;
|
|
17839
18532
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
17840
18533
|
tenant_id?: string | null;
|
|
17841
18534
|
updated_at?: string;
|
|
@@ -17845,6 +18538,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
17845
18538
|
display_name?: string | null;
|
|
17846
18539
|
email?: string | null;
|
|
17847
18540
|
id?: string;
|
|
18541
|
+
is_superadmin?: boolean;
|
|
17848
18542
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
17849
18543
|
tenant_id?: string | null;
|
|
17850
18544
|
updated_at?: string;
|
|
@@ -18634,6 +19328,24 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
18634
19328
|
};
|
|
18635
19329
|
Relationships: [];
|
|
18636
19330
|
};
|
|
19331
|
+
sidebar_config: {
|
|
19332
|
+
Row: {
|
|
19333
|
+
id: string;
|
|
19334
|
+
module_order: string[];
|
|
19335
|
+
updated_at: string;
|
|
19336
|
+
};
|
|
19337
|
+
Insert: {
|
|
19338
|
+
id?: string;
|
|
19339
|
+
module_order?: string[];
|
|
19340
|
+
updated_at?: string;
|
|
19341
|
+
};
|
|
19342
|
+
Update: {
|
|
19343
|
+
id?: string;
|
|
19344
|
+
module_order?: string[];
|
|
19345
|
+
updated_at?: string;
|
|
19346
|
+
};
|
|
19347
|
+
Relationships: [];
|
|
19348
|
+
};
|
|
18637
19349
|
stock_import_runs: {
|
|
18638
19350
|
Row: {
|
|
18639
19351
|
connection_id: string | null;
|
|
@@ -18692,7 +19404,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
18692
19404
|
reason: string | null;
|
|
18693
19405
|
reserved_after: number | null;
|
|
18694
19406
|
reserved_before: number | null;
|
|
18695
|
-
trade_item_key: string;
|
|
19407
|
+
trade_item_key: string | null;
|
|
18696
19408
|
};
|
|
18697
19409
|
Insert: {
|
|
18698
19410
|
connection_id?: string | null;
|
|
@@ -18709,7 +19421,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
18709
19421
|
reason?: string | null;
|
|
18710
19422
|
reserved_after?: number | null;
|
|
18711
19423
|
reserved_before?: number | null;
|
|
18712
|
-
trade_item_key
|
|
19424
|
+
trade_item_key?: string | null;
|
|
18713
19425
|
};
|
|
18714
19426
|
Update: {
|
|
18715
19427
|
connection_id?: string | null;
|
|
@@ -18726,7 +19438,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
18726
19438
|
reason?: string | null;
|
|
18727
19439
|
reserved_after?: number | null;
|
|
18728
19440
|
reserved_before?: number | null;
|
|
18729
|
-
trade_item_key?: string;
|
|
19441
|
+
trade_item_key?: string | null;
|
|
18730
19442
|
};
|
|
18731
19443
|
Relationships: [];
|
|
18732
19444
|
};
|
|
@@ -19069,6 +19781,114 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
19069
19781
|
};
|
|
19070
19782
|
Relationships: [];
|
|
19071
19783
|
};
|
|
19784
|
+
trade_item_supply_lines: {
|
|
19785
|
+
Row: {
|
|
19786
|
+
available_quantity: number | null;
|
|
19787
|
+
connection_id: string;
|
|
19788
|
+
created_at: string;
|
|
19789
|
+
currency: string | null;
|
|
19790
|
+
endpoint_family: string | null;
|
|
19791
|
+
environment: string | null;
|
|
19792
|
+
id: string;
|
|
19793
|
+
last_error: string | null;
|
|
19794
|
+
last_status: number | null;
|
|
19795
|
+
packing_configuration_id: string | null;
|
|
19796
|
+
period_end: string | null;
|
|
19797
|
+
period_start: string | null;
|
|
19798
|
+
price_per_piece: number | null;
|
|
19799
|
+
sales_unit: string | null;
|
|
19800
|
+
supply_line_id: string | null;
|
|
19801
|
+
supply_type: string;
|
|
19802
|
+
trade_item_id: string;
|
|
19803
|
+
updated_at: string;
|
|
19804
|
+
user_id: string;
|
|
19805
|
+
week: number | null;
|
|
19806
|
+
year: number | null;
|
|
19807
|
+
};
|
|
19808
|
+
Insert: {
|
|
19809
|
+
available_quantity?: number | null;
|
|
19810
|
+
connection_id: string;
|
|
19811
|
+
created_at?: string;
|
|
19812
|
+
currency?: string | null;
|
|
19813
|
+
endpoint_family?: string | null;
|
|
19814
|
+
environment?: string | null;
|
|
19815
|
+
id?: string;
|
|
19816
|
+
last_error?: string | null;
|
|
19817
|
+
last_status?: number | null;
|
|
19818
|
+
packing_configuration_id?: string | null;
|
|
19819
|
+
period_end?: string | null;
|
|
19820
|
+
period_start?: string | null;
|
|
19821
|
+
price_per_piece?: number | null;
|
|
19822
|
+
sales_unit?: string | null;
|
|
19823
|
+
supply_line_id?: string | null;
|
|
19824
|
+
supply_type?: string;
|
|
19825
|
+
trade_item_id: string;
|
|
19826
|
+
updated_at?: string;
|
|
19827
|
+
user_id: string;
|
|
19828
|
+
week?: number | null;
|
|
19829
|
+
year?: number | null;
|
|
19830
|
+
};
|
|
19831
|
+
Update: {
|
|
19832
|
+
available_quantity?: number | null;
|
|
19833
|
+
connection_id?: string;
|
|
19834
|
+
created_at?: string;
|
|
19835
|
+
currency?: string | null;
|
|
19836
|
+
endpoint_family?: string | null;
|
|
19837
|
+
environment?: string | null;
|
|
19838
|
+
id?: string;
|
|
19839
|
+
last_error?: string | null;
|
|
19840
|
+
last_status?: number | null;
|
|
19841
|
+
packing_configuration_id?: string | null;
|
|
19842
|
+
period_end?: string | null;
|
|
19843
|
+
period_start?: string | null;
|
|
19844
|
+
price_per_piece?: number | null;
|
|
19845
|
+
sales_unit?: string | null;
|
|
19846
|
+
supply_line_id?: string | null;
|
|
19847
|
+
supply_type?: string;
|
|
19848
|
+
trade_item_id?: string;
|
|
19849
|
+
updated_at?: string;
|
|
19850
|
+
user_id?: string;
|
|
19851
|
+
week?: number | null;
|
|
19852
|
+
year?: number | null;
|
|
19853
|
+
};
|
|
19854
|
+
Relationships: [];
|
|
19855
|
+
};
|
|
19856
|
+
trade_item_warehouse_preferences: {
|
|
19857
|
+
Row: {
|
|
19858
|
+
connection_id: string;
|
|
19859
|
+
created_at: string;
|
|
19860
|
+
id: string;
|
|
19861
|
+
trade_item_id: string;
|
|
19862
|
+
updated_at: string;
|
|
19863
|
+
warehouse_id: string;
|
|
19864
|
+
warehouse_name: string | null;
|
|
19865
|
+
};
|
|
19866
|
+
Insert: {
|
|
19867
|
+
connection_id: string;
|
|
19868
|
+
created_at?: string;
|
|
19869
|
+
id?: string;
|
|
19870
|
+
trade_item_id: string;
|
|
19871
|
+
updated_at?: string;
|
|
19872
|
+
warehouse_id: string;
|
|
19873
|
+
warehouse_name?: string | null;
|
|
19874
|
+
};
|
|
19875
|
+
Update: {
|
|
19876
|
+
connection_id?: string;
|
|
19877
|
+
created_at?: string;
|
|
19878
|
+
id?: string;
|
|
19879
|
+
trade_item_id?: string;
|
|
19880
|
+
updated_at?: string;
|
|
19881
|
+
warehouse_id?: string;
|
|
19882
|
+
warehouse_name?: string | null;
|
|
19883
|
+
};
|
|
19884
|
+
Relationships: [{
|
|
19885
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
19886
|
+
columns: ["connection_id"];
|
|
19887
|
+
isOneToOne: false;
|
|
19888
|
+
referencedRelation: "floriday_connections";
|
|
19889
|
+
referencedColumns: ["id"];
|
|
19890
|
+
}];
|
|
19891
|
+
};
|
|
19072
19892
|
twinfield_connections: {
|
|
19073
19893
|
Row: {
|
|
19074
19894
|
access_token: string | null;
|
|
@@ -19388,6 +20208,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
19388
20208
|
default_invoice_type: string;
|
|
19389
20209
|
default_payment_term_days: number;
|
|
19390
20210
|
default_vat_code: string;
|
|
20211
|
+
invoice_enabled_ao: boolean;
|
|
20212
|
+
invoice_enabled_fo: boolean;
|
|
20213
|
+
invoice_enabled_ho: boolean;
|
|
20214
|
+
invoice_enabled_mo: boolean;
|
|
19391
20215
|
updated_at: string;
|
|
19392
20216
|
user_id: string;
|
|
19393
20217
|
};
|
|
@@ -19397,6 +20221,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
19397
20221
|
default_invoice_type?: string;
|
|
19398
20222
|
default_payment_term_days?: number;
|
|
19399
20223
|
default_vat_code?: string;
|
|
20224
|
+
invoice_enabled_ao?: boolean;
|
|
20225
|
+
invoice_enabled_fo?: boolean;
|
|
20226
|
+
invoice_enabled_ho?: boolean;
|
|
20227
|
+
invoice_enabled_mo?: boolean;
|
|
19400
20228
|
updated_at?: string;
|
|
19401
20229
|
user_id: string;
|
|
19402
20230
|
};
|
|
@@ -19406,6 +20234,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
19406
20234
|
default_invoice_type?: string;
|
|
19407
20235
|
default_payment_term_days?: number;
|
|
19408
20236
|
default_vat_code?: string;
|
|
20237
|
+
invoice_enabled_ao?: boolean;
|
|
20238
|
+
invoice_enabled_fo?: boolean;
|
|
20239
|
+
invoice_enabled_ho?: boolean;
|
|
20240
|
+
invoice_enabled_mo?: boolean;
|
|
19409
20241
|
updated_at?: string;
|
|
19410
20242
|
user_id?: string;
|
|
19411
20243
|
};
|
|
@@ -20700,6 +21532,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
20700
21532
|
order_number: string;
|
|
20701
21533
|
}[];
|
|
20702
21534
|
};
|
|
21535
|
+
autolink_product_to_floriday: {
|
|
21536
|
+
Args: {
|
|
21537
|
+
p_product_id: string;
|
|
21538
|
+
};
|
|
21539
|
+
Returns: string;
|
|
21540
|
+
};
|
|
20703
21541
|
backfill_open_order_reservations: {
|
|
20704
21542
|
Args: never;
|
|
20705
21543
|
Returns: {
|
|
@@ -20738,6 +21576,18 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
20738
21576
|
Args: never;
|
|
20739
21577
|
Returns: number;
|
|
20740
21578
|
};
|
|
21579
|
+
consume_floriday_rate_limit: {
|
|
21580
|
+
Args: {
|
|
21581
|
+
p_bucket: string;
|
|
21582
|
+
p_capacity: number;
|
|
21583
|
+
p_cost?: number;
|
|
21584
|
+
p_refill_per_sec: number;
|
|
21585
|
+
};
|
|
21586
|
+
Returns: {
|
|
21587
|
+
granted: boolean;
|
|
21588
|
+
wait_ms: number;
|
|
21589
|
+
}[];
|
|
21590
|
+
};
|
|
20741
21591
|
control_get_todays_carts: {
|
|
20742
21592
|
Args: never;
|
|
20743
21593
|
Returns: {
|
|
@@ -20818,6 +21668,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
20818
21668
|
status: string;
|
|
20819
21669
|
}[];
|
|
20820
21670
|
};
|
|
21671
|
+
enqueue_cart_replan_if_unlocked: {
|
|
21672
|
+
Args: {
|
|
21673
|
+
p_order_id: string;
|
|
21674
|
+
};
|
|
21675
|
+
Returns: undefined;
|
|
21676
|
+
};
|
|
20821
21677
|
ensure_trade_item_stock_row: {
|
|
20822
21678
|
Args: {
|
|
20823
21679
|
p_key: string;
|
|
@@ -20924,6 +21780,13 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
20924
21780
|
office_code: string;
|
|
20925
21781
|
}[];
|
|
20926
21782
|
};
|
|
21783
|
+
get_floricode_record_counts: {
|
|
21784
|
+
Args: never;
|
|
21785
|
+
Returns: {
|
|
21786
|
+
count: number;
|
|
21787
|
+
resource: string;
|
|
21788
|
+
}[];
|
|
21789
|
+
};
|
|
20927
21790
|
get_floriday_agreements_active: {
|
|
20928
21791
|
Args: {
|
|
20929
21792
|
p_on_date?: string;
|
|
@@ -21015,6 +21878,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
21015
21878
|
};
|
|
21016
21879
|
Returns: import("../integrations/supabase/types").Json;
|
|
21017
21880
|
};
|
|
21881
|
+
get_offer_delivery_options: {
|
|
21882
|
+
Args: {
|
|
21883
|
+
p_code: string;
|
|
21884
|
+
};
|
|
21885
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21886
|
+
};
|
|
21018
21887
|
get_offer_recipient_by_code: {
|
|
21019
21888
|
Args: {
|
|
21020
21889
|
p_code: string;
|
|
@@ -21079,6 +21948,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
21079
21948
|
Args: never;
|
|
21080
21949
|
Returns: boolean;
|
|
21081
21950
|
};
|
|
21951
|
+
is_superadmin: {
|
|
21952
|
+
Args: {
|
|
21953
|
+
_user_id: string;
|
|
21954
|
+
};
|
|
21955
|
+
Returns: boolean;
|
|
21956
|
+
};
|
|
21082
21957
|
local_effective_price: {
|
|
21083
21958
|
Args: {
|
|
21084
21959
|
_customer_id: string;
|
|
@@ -21113,6 +21988,13 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
21113
21988
|
};
|
|
21114
21989
|
Returns: string;
|
|
21115
21990
|
};
|
|
21991
|
+
next_order_number_for_date: {
|
|
21992
|
+
Args: {
|
|
21993
|
+
p_created_at?: string;
|
|
21994
|
+
p_prefix: string;
|
|
21995
|
+
};
|
|
21996
|
+
Returns: string;
|
|
21997
|
+
};
|
|
21116
21998
|
next_work_order_number: {
|
|
21117
21999
|
Args: {
|
|
21118
22000
|
p_parent_work_order_id?: string;
|
|
@@ -21120,6 +22002,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
21120
22002
|
};
|
|
21121
22003
|
Returns: string;
|
|
21122
22004
|
};
|
|
22005
|
+
normalize_order_source: {
|
|
22006
|
+
Args: {
|
|
22007
|
+
p_src: string;
|
|
22008
|
+
};
|
|
22009
|
+
Returns: string;
|
|
22010
|
+
};
|
|
21123
22011
|
normalize_vat: {
|
|
21124
22012
|
Args: {
|
|
21125
22013
|
v: string;
|
|
@@ -21134,10 +22022,21 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
21134
22022
|
};
|
|
21135
22023
|
Returns: boolean;
|
|
21136
22024
|
};
|
|
22025
|
+
order_number_prefix: {
|
|
22026
|
+
Args: {
|
|
22027
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
22028
|
+
p_order_source: string;
|
|
22029
|
+
};
|
|
22030
|
+
Returns: string;
|
|
22031
|
+
};
|
|
21137
22032
|
pickstation_get_orders_raw: {
|
|
21138
22033
|
Args: never;
|
|
21139
22034
|
Returns: import("../integrations/supabase/types").Json;
|
|
21140
22035
|
};
|
|
22036
|
+
pickstation_get_planning_context: {
|
|
22037
|
+
Args: never;
|
|
22038
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22039
|
+
};
|
|
21141
22040
|
pickstation_get_settings: {
|
|
21142
22041
|
Args: never;
|
|
21143
22042
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -21168,6 +22067,28 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
21168
22067
|
};
|
|
21169
22068
|
Returns: undefined;
|
|
21170
22069
|
};
|
|
22070
|
+
recompute_order_status: {
|
|
22071
|
+
Args: {
|
|
22072
|
+
p_order_id: string;
|
|
22073
|
+
};
|
|
22074
|
+
Returns: undefined;
|
|
22075
|
+
};
|
|
22076
|
+
recompute_reserved_for_order: {
|
|
22077
|
+
Args: {
|
|
22078
|
+
p_order_id: string;
|
|
22079
|
+
};
|
|
22080
|
+
Returns: undefined;
|
|
22081
|
+
};
|
|
22082
|
+
recompute_reserved_stock: {
|
|
22083
|
+
Args: {
|
|
22084
|
+
p_trade_item_key: string;
|
|
22085
|
+
};
|
|
22086
|
+
Returns: undefined;
|
|
22087
|
+
};
|
|
22088
|
+
refresh_external_customers_grouped: {
|
|
22089
|
+
Args: never;
|
|
22090
|
+
Returns: undefined;
|
|
22091
|
+
};
|
|
21171
22092
|
refresh_floricode_derived_code_lists: {
|
|
21172
22093
|
Args: never;
|
|
21173
22094
|
Returns: {
|
|
@@ -21182,6 +22103,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
21182
22103
|
};
|
|
21183
22104
|
Returns: number;
|
|
21184
22105
|
};
|
|
22106
|
+
refresh_floricode_derived_for_products: {
|
|
22107
|
+
Args: {
|
|
22108
|
+
_product_ids: string[];
|
|
22109
|
+
};
|
|
22110
|
+
Returns: number;
|
|
22111
|
+
};
|
|
21185
22112
|
reset_floriday_sync_cursor: {
|
|
21186
22113
|
Args: {
|
|
21187
22114
|
p_connection_id: string;
|
|
@@ -21189,6 +22116,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
21189
22116
|
};
|
|
21190
22117
|
Returns: undefined;
|
|
21191
22118
|
};
|
|
22119
|
+
resolve_product_id_for_item: {
|
|
22120
|
+
Args: {
|
|
22121
|
+
p_product_name: string;
|
|
22122
|
+
};
|
|
22123
|
+
Returns: string;
|
|
22124
|
+
};
|
|
21192
22125
|
schedule_floriday_additional_services_sync: {
|
|
21193
22126
|
Args: {
|
|
21194
22127
|
p_apikey: string;
|
|
@@ -21466,6 +22399,24 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
21466
22399
|
};
|
|
21467
22400
|
Returns: string[];
|
|
21468
22401
|
};
|
|
22402
|
+
sync_cached_packing_from_product: {
|
|
22403
|
+
Args: {
|
|
22404
|
+
p_product_id: string;
|
|
22405
|
+
};
|
|
22406
|
+
Returns: undefined;
|
|
22407
|
+
};
|
|
22408
|
+
sync_order_cart_item_packing_from_product: {
|
|
22409
|
+
Args: {
|
|
22410
|
+
p_product_id: string;
|
|
22411
|
+
};
|
|
22412
|
+
Returns: undefined;
|
|
22413
|
+
};
|
|
22414
|
+
sync_product_packing_from_floriday_cache: {
|
|
22415
|
+
Args: {
|
|
22416
|
+
p_floriday_id: string;
|
|
22417
|
+
};
|
|
22418
|
+
Returns: undefined;
|
|
22419
|
+
};
|
|
21469
22420
|
twinfield_decrypt: {
|
|
21470
22421
|
Args: {
|
|
21471
22422
|
cipher: string;
|
|
@@ -21478,6 +22429,17 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
|
|
|
21478
22429
|
};
|
|
21479
22430
|
Returns: string;
|
|
21480
22431
|
};
|
|
22432
|
+
upsert_auto_fulfillment_log: {
|
|
22433
|
+
Args: {
|
|
22434
|
+
p_connection_id: string;
|
|
22435
|
+
p_error?: string;
|
|
22436
|
+
p_fulfillment_order_id?: string;
|
|
22437
|
+
p_reason?: string;
|
|
22438
|
+
p_sales_order_id: string;
|
|
22439
|
+
p_status: string;
|
|
22440
|
+
};
|
|
22441
|
+
Returns: undefined;
|
|
22442
|
+
};
|
|
21481
22443
|
};
|
|
21482
22444
|
Enums: {
|
|
21483
22445
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|
|
@@ -21500,7 +22462,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
21500
22462
|
Tables: {
|
|
21501
22463
|
afhandeling_settings: {
|
|
21502
22464
|
Row: {
|
|
22465
|
+
auto_print_delivery_note: boolean;
|
|
22466
|
+
auto_process_paused: boolean;
|
|
21503
22467
|
created_at: string;
|
|
22468
|
+
extra_pick_days_with_stickers: number;
|
|
21504
22469
|
id: string;
|
|
21505
22470
|
max_workdays_earlier_pick: number;
|
|
21506
22471
|
pick_days_before_transport: number;
|
|
@@ -21514,7 +22479,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
21514
22479
|
user_id: string;
|
|
21515
22480
|
};
|
|
21516
22481
|
Insert: {
|
|
22482
|
+
auto_print_delivery_note?: boolean;
|
|
22483
|
+
auto_process_paused?: boolean;
|
|
21517
22484
|
created_at?: string;
|
|
22485
|
+
extra_pick_days_with_stickers?: number;
|
|
21518
22486
|
id?: string;
|
|
21519
22487
|
max_workdays_earlier_pick?: number;
|
|
21520
22488
|
pick_days_before_transport?: number;
|
|
@@ -21528,7 +22496,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
21528
22496
|
user_id: string;
|
|
21529
22497
|
};
|
|
21530
22498
|
Update: {
|
|
22499
|
+
auto_print_delivery_note?: boolean;
|
|
22500
|
+
auto_process_paused?: boolean;
|
|
21531
22501
|
created_at?: string;
|
|
22502
|
+
extra_pick_days_with_stickers?: number;
|
|
21532
22503
|
id?: string;
|
|
21533
22504
|
max_workdays_earlier_pick?: number;
|
|
21534
22505
|
pick_days_before_transport?: number;
|
|
@@ -22320,6 +23291,36 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
22320
23291
|
};
|
|
22321
23292
|
Relationships: [];
|
|
22322
23293
|
};
|
|
23294
|
+
cart_replan_queue: {
|
|
23295
|
+
Row: {
|
|
23296
|
+
attempts: number;
|
|
23297
|
+
last_error: string | null;
|
|
23298
|
+
order_id: string;
|
|
23299
|
+
processed_at: string | null;
|
|
23300
|
+
requested_at: string;
|
|
23301
|
+
};
|
|
23302
|
+
Insert: {
|
|
23303
|
+
attempts?: number;
|
|
23304
|
+
last_error?: string | null;
|
|
23305
|
+
order_id: string;
|
|
23306
|
+
processed_at?: string | null;
|
|
23307
|
+
requested_at?: string;
|
|
23308
|
+
};
|
|
23309
|
+
Update: {
|
|
23310
|
+
attempts?: number;
|
|
23311
|
+
last_error?: string | null;
|
|
23312
|
+
order_id?: string;
|
|
23313
|
+
processed_at?: string | null;
|
|
23314
|
+
requested_at?: string;
|
|
23315
|
+
};
|
|
23316
|
+
Relationships: [{
|
|
23317
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
23318
|
+
columns: ["order_id"];
|
|
23319
|
+
isOneToOne: true;
|
|
23320
|
+
referencedRelation: "orders";
|
|
23321
|
+
referencedColumns: ["id"];
|
|
23322
|
+
}];
|
|
23323
|
+
};
|
|
22323
23324
|
collections: {
|
|
22324
23325
|
Row: {
|
|
22325
23326
|
created_at: string;
|
|
@@ -24445,34 +25446,52 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
24445
25446
|
Row: {
|
|
24446
25447
|
catalog_key: string | null;
|
|
24447
25448
|
catalog_url: string;
|
|
25449
|
+
client_id: string | null;
|
|
25450
|
+
client_secret_ciphertext: string | null;
|
|
25451
|
+
client_secret_last4: string | null;
|
|
24448
25452
|
created_at: string;
|
|
24449
25453
|
id: number;
|
|
24450
25454
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
24451
25455
|
last_test_at: string | null;
|
|
24452
25456
|
last_test_error: string | null;
|
|
24453
25457
|
last_test_ok: boolean | null;
|
|
25458
|
+
last_token_test_at: string | null;
|
|
25459
|
+
last_token_test_error: string | null;
|
|
25460
|
+
last_token_test_ok: boolean | null;
|
|
24454
25461
|
updated_at: string;
|
|
24455
25462
|
};
|
|
24456
25463
|
Insert: {
|
|
24457
25464
|
catalog_key?: string | null;
|
|
24458
25465
|
catalog_url?: string;
|
|
25466
|
+
client_id?: string | null;
|
|
25467
|
+
client_secret_ciphertext?: string | null;
|
|
25468
|
+
client_secret_last4?: string | null;
|
|
24459
25469
|
created_at?: string;
|
|
24460
25470
|
id?: number;
|
|
24461
25471
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
24462
25472
|
last_test_at?: string | null;
|
|
24463
25473
|
last_test_error?: string | null;
|
|
24464
25474
|
last_test_ok?: boolean | null;
|
|
25475
|
+
last_token_test_at?: string | null;
|
|
25476
|
+
last_token_test_error?: string | null;
|
|
25477
|
+
last_token_test_ok?: boolean | null;
|
|
24465
25478
|
updated_at?: string;
|
|
24466
25479
|
};
|
|
24467
25480
|
Update: {
|
|
24468
25481
|
catalog_key?: string | null;
|
|
24469
25482
|
catalog_url?: string;
|
|
25483
|
+
client_id?: string | null;
|
|
25484
|
+
client_secret_ciphertext?: string | null;
|
|
25485
|
+
client_secret_last4?: string | null;
|
|
24470
25486
|
created_at?: string;
|
|
24471
25487
|
id?: number;
|
|
24472
25488
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
24473
25489
|
last_test_at?: string | null;
|
|
24474
25490
|
last_test_error?: string | null;
|
|
24475
25491
|
last_test_ok?: boolean | null;
|
|
25492
|
+
last_token_test_at?: string | null;
|
|
25493
|
+
last_token_test_error?: string | null;
|
|
25494
|
+
last_token_test_ok?: boolean | null;
|
|
24476
25495
|
updated_at?: string;
|
|
24477
25496
|
};
|
|
24478
25497
|
Relationships: [];
|
|
@@ -24705,6 +25724,54 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
24705
25724
|
referencedColumns: ["id"];
|
|
24706
25725
|
}];
|
|
24707
25726
|
};
|
|
25727
|
+
floriday_auto_fulfillment_log: {
|
|
25728
|
+
Row: {
|
|
25729
|
+
attempts: number;
|
|
25730
|
+
connection_id: string;
|
|
25731
|
+
created_at: string;
|
|
25732
|
+
error: string | null;
|
|
25733
|
+
fulfillment_order_id: string | null;
|
|
25734
|
+
id: string;
|
|
25735
|
+
last_attempt_at: string | null;
|
|
25736
|
+
reason: string | null;
|
|
25737
|
+
sales_order_id: string;
|
|
25738
|
+
status: string;
|
|
25739
|
+
updated_at: string;
|
|
25740
|
+
};
|
|
25741
|
+
Insert: {
|
|
25742
|
+
attempts?: number;
|
|
25743
|
+
connection_id: string;
|
|
25744
|
+
created_at?: string;
|
|
25745
|
+
error?: string | null;
|
|
25746
|
+
fulfillment_order_id?: string | null;
|
|
25747
|
+
id?: string;
|
|
25748
|
+
last_attempt_at?: string | null;
|
|
25749
|
+
reason?: string | null;
|
|
25750
|
+
sales_order_id: string;
|
|
25751
|
+
status?: string;
|
|
25752
|
+
updated_at?: string;
|
|
25753
|
+
};
|
|
25754
|
+
Update: {
|
|
25755
|
+
attempts?: number;
|
|
25756
|
+
connection_id?: string;
|
|
25757
|
+
created_at?: string;
|
|
25758
|
+
error?: string | null;
|
|
25759
|
+
fulfillment_order_id?: string | null;
|
|
25760
|
+
id?: string;
|
|
25761
|
+
last_attempt_at?: string | null;
|
|
25762
|
+
reason?: string | null;
|
|
25763
|
+
sales_order_id?: string;
|
|
25764
|
+
status?: string;
|
|
25765
|
+
updated_at?: string;
|
|
25766
|
+
};
|
|
25767
|
+
Relationships: [{
|
|
25768
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
25769
|
+
columns: ["connection_id"];
|
|
25770
|
+
isOneToOne: false;
|
|
25771
|
+
referencedRelation: "floriday_connections";
|
|
25772
|
+
referencedColumns: ["id"];
|
|
25773
|
+
}];
|
|
25774
|
+
};
|
|
24708
25775
|
floriday_base_items_cache: {
|
|
24709
25776
|
Row: {
|
|
24710
25777
|
connection_id: string;
|
|
@@ -25809,6 +26876,24 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
25809
26876
|
referencedColumns: ["id"];
|
|
25810
26877
|
}];
|
|
25811
26878
|
};
|
|
26879
|
+
floriday_rate_limit_state: {
|
|
26880
|
+
Row: {
|
|
26881
|
+
bucket: string;
|
|
26882
|
+
last_refill_at: string;
|
|
26883
|
+
tokens: number;
|
|
26884
|
+
};
|
|
26885
|
+
Insert: {
|
|
26886
|
+
bucket: string;
|
|
26887
|
+
last_refill_at?: string;
|
|
26888
|
+
tokens: number;
|
|
26889
|
+
};
|
|
26890
|
+
Update: {
|
|
26891
|
+
bucket?: string;
|
|
26892
|
+
last_refill_at?: string;
|
|
26893
|
+
tokens?: number;
|
|
26894
|
+
};
|
|
26895
|
+
Relationships: [];
|
|
26896
|
+
};
|
|
25812
26897
|
floriday_resource_schemas: {
|
|
25813
26898
|
Row: {
|
|
25814
26899
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -26232,6 +27317,60 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
26232
27317
|
referencedColumns: ["id"];
|
|
26233
27318
|
}];
|
|
26234
27319
|
};
|
|
27320
|
+
flow_role_assignments: {
|
|
27321
|
+
Row: {
|
|
27322
|
+
created_at: string;
|
|
27323
|
+
id: string;
|
|
27324
|
+
role_id: string;
|
|
27325
|
+
user_id: string;
|
|
27326
|
+
};
|
|
27327
|
+
Insert: {
|
|
27328
|
+
created_at?: string;
|
|
27329
|
+
id?: string;
|
|
27330
|
+
role_id: string;
|
|
27331
|
+
user_id: string;
|
|
27332
|
+
};
|
|
27333
|
+
Update: {
|
|
27334
|
+
created_at?: string;
|
|
27335
|
+
id?: string;
|
|
27336
|
+
role_id?: string;
|
|
27337
|
+
user_id?: string;
|
|
27338
|
+
};
|
|
27339
|
+
Relationships: [{
|
|
27340
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
27341
|
+
columns: ["role_id"];
|
|
27342
|
+
isOneToOne: false;
|
|
27343
|
+
referencedRelation: "flow_roles";
|
|
27344
|
+
referencedColumns: ["id"];
|
|
27345
|
+
}];
|
|
27346
|
+
};
|
|
27347
|
+
flow_roles: {
|
|
27348
|
+
Row: {
|
|
27349
|
+
created_at: string;
|
|
27350
|
+
description: string | null;
|
|
27351
|
+
id: string;
|
|
27352
|
+
module_access: string[];
|
|
27353
|
+
name: string;
|
|
27354
|
+
updated_at: string;
|
|
27355
|
+
};
|
|
27356
|
+
Insert: {
|
|
27357
|
+
created_at?: string;
|
|
27358
|
+
description?: string | null;
|
|
27359
|
+
id?: string;
|
|
27360
|
+
module_access?: string[];
|
|
27361
|
+
name: string;
|
|
27362
|
+
updated_at?: string;
|
|
27363
|
+
};
|
|
27364
|
+
Update: {
|
|
27365
|
+
created_at?: string;
|
|
27366
|
+
description?: string | null;
|
|
27367
|
+
id?: string;
|
|
27368
|
+
module_access?: string[];
|
|
27369
|
+
name?: string;
|
|
27370
|
+
updated_at?: string;
|
|
27371
|
+
};
|
|
27372
|
+
Relationships: [];
|
|
27373
|
+
};
|
|
26235
27374
|
imap_accounts: {
|
|
26236
27375
|
Row: {
|
|
26237
27376
|
created_at: string;
|
|
@@ -26863,6 +28002,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
26863
28002
|
matched_customer_id: string | null;
|
|
26864
28003
|
message_id: string;
|
|
26865
28004
|
notes: string | null;
|
|
28005
|
+
order_number: string | null;
|
|
26866
28006
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
26867
28007
|
reviewed_at: string | null;
|
|
26868
28008
|
reviewed_by: string | null;
|
|
@@ -26878,6 +28018,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
26878
28018
|
matched_customer_id?: string | null;
|
|
26879
28019
|
message_id: string;
|
|
26880
28020
|
notes?: string | null;
|
|
28021
|
+
order_number?: string | null;
|
|
26881
28022
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
26882
28023
|
reviewed_at?: string | null;
|
|
26883
28024
|
reviewed_by?: string | null;
|
|
@@ -26893,6 +28034,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
26893
28034
|
matched_customer_id?: string | null;
|
|
26894
28035
|
message_id?: string;
|
|
26895
28036
|
notes?: string | null;
|
|
28037
|
+
order_number?: string | null;
|
|
26896
28038
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
26897
28039
|
reviewed_at?: string | null;
|
|
26898
28040
|
reviewed_by?: string | null;
|
|
@@ -27749,6 +28891,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
27749
28891
|
id: string;
|
|
27750
28892
|
items: import("../integrations/supabase/types").Json;
|
|
27751
28893
|
notes: string | null;
|
|
28894
|
+
order_number: string | null;
|
|
27752
28895
|
recipient_id: string;
|
|
27753
28896
|
total_amount: number;
|
|
27754
28897
|
};
|
|
@@ -27762,6 +28905,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
27762
28905
|
id?: string;
|
|
27763
28906
|
items?: import("../integrations/supabase/types").Json;
|
|
27764
28907
|
notes?: string | null;
|
|
28908
|
+
order_number?: string | null;
|
|
27765
28909
|
recipient_id: string;
|
|
27766
28910
|
total_amount?: number;
|
|
27767
28911
|
};
|
|
@@ -27775,6 +28919,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
27775
28919
|
id?: string;
|
|
27776
28920
|
items?: import("../integrations/supabase/types").Json;
|
|
27777
28921
|
notes?: string | null;
|
|
28922
|
+
order_number?: string | null;
|
|
27778
28923
|
recipient_id?: string;
|
|
27779
28924
|
total_amount?: number;
|
|
27780
28925
|
};
|
|
@@ -27934,6 +29079,9 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
27934
29079
|
crates_per_layer: number;
|
|
27935
29080
|
created_at: string;
|
|
27936
29081
|
id: string;
|
|
29082
|
+
layer_fraction: number;
|
|
29083
|
+
layer_share_pct: number;
|
|
29084
|
+
layers_per_cart: number;
|
|
27937
29085
|
order_item_id: string | null;
|
|
27938
29086
|
plants_per_crate: number;
|
|
27939
29087
|
product_id: string | null;
|
|
@@ -27945,6 +29093,9 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
27945
29093
|
crates_per_layer?: number;
|
|
27946
29094
|
created_at?: string;
|
|
27947
29095
|
id?: string;
|
|
29096
|
+
layer_fraction?: number;
|
|
29097
|
+
layer_share_pct?: number;
|
|
29098
|
+
layers_per_cart?: number;
|
|
27948
29099
|
order_item_id?: string | null;
|
|
27949
29100
|
plants_per_crate?: number;
|
|
27950
29101
|
product_id?: string | null;
|
|
@@ -27956,6 +29107,9 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
27956
29107
|
crates_per_layer?: number;
|
|
27957
29108
|
created_at?: string;
|
|
27958
29109
|
id?: string;
|
|
29110
|
+
layer_fraction?: number;
|
|
29111
|
+
layer_share_pct?: number;
|
|
29112
|
+
layers_per_cart?: number;
|
|
27959
29113
|
order_item_id?: string | null;
|
|
27960
29114
|
plants_per_crate?: number;
|
|
27961
29115
|
product_id?: string | null;
|
|
@@ -27983,33 +29137,45 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
27983
29137
|
};
|
|
27984
29138
|
order_carts: {
|
|
27985
29139
|
Row: {
|
|
29140
|
+
algorithm_version: number;
|
|
27986
29141
|
cart_number: number;
|
|
27987
29142
|
created_at: string;
|
|
27988
29143
|
id: string;
|
|
27989
29144
|
is_auto: boolean;
|
|
27990
29145
|
is_complete: boolean;
|
|
27991
29146
|
notes: string | null;
|
|
29147
|
+
occupancy_pct: number;
|
|
27992
29148
|
order_id: string;
|
|
29149
|
+
source: string;
|
|
29150
|
+
total_layers_used: number;
|
|
27993
29151
|
updated_at: string;
|
|
27994
29152
|
};
|
|
27995
29153
|
Insert: {
|
|
29154
|
+
algorithm_version?: number;
|
|
27996
29155
|
cart_number: number;
|
|
27997
29156
|
created_at?: string;
|
|
27998
29157
|
id?: string;
|
|
27999
29158
|
is_auto?: boolean;
|
|
28000
29159
|
is_complete?: boolean;
|
|
28001
29160
|
notes?: string | null;
|
|
29161
|
+
occupancy_pct?: number;
|
|
28002
29162
|
order_id: string;
|
|
29163
|
+
source?: string;
|
|
29164
|
+
total_layers_used?: number;
|
|
28003
29165
|
updated_at?: string;
|
|
28004
29166
|
};
|
|
28005
29167
|
Update: {
|
|
29168
|
+
algorithm_version?: number;
|
|
28006
29169
|
cart_number?: number;
|
|
28007
29170
|
created_at?: string;
|
|
28008
29171
|
id?: string;
|
|
28009
29172
|
is_auto?: boolean;
|
|
28010
29173
|
is_complete?: boolean;
|
|
28011
29174
|
notes?: string | null;
|
|
29175
|
+
occupancy_pct?: number;
|
|
28012
29176
|
order_id?: string;
|
|
29177
|
+
source?: string;
|
|
29178
|
+
total_layers_used?: number;
|
|
28013
29179
|
updated_at?: string;
|
|
28014
29180
|
};
|
|
28015
29181
|
Relationships: [{
|
|
@@ -28162,6 +29328,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
28162
29328
|
order_date: string;
|
|
28163
29329
|
order_number: string;
|
|
28164
29330
|
order_source: string;
|
|
29331
|
+
plan_locked_at: string | null;
|
|
29332
|
+
plan_locked_ref: string | null;
|
|
28165
29333
|
status: string;
|
|
28166
29334
|
total: string;
|
|
28167
29335
|
updated_at: string;
|
|
@@ -28178,6 +29346,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
28178
29346
|
order_date?: string;
|
|
28179
29347
|
order_number: string;
|
|
28180
29348
|
order_source?: string;
|
|
29349
|
+
plan_locked_at?: string | null;
|
|
29350
|
+
plan_locked_ref?: string | null;
|
|
28181
29351
|
status?: string;
|
|
28182
29352
|
total?: string;
|
|
28183
29353
|
updated_at?: string;
|
|
@@ -28194,6 +29364,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
28194
29364
|
order_date?: string;
|
|
28195
29365
|
order_number?: string;
|
|
28196
29366
|
order_source?: string;
|
|
29367
|
+
plan_locked_at?: string | null;
|
|
29368
|
+
plan_locked_ref?: string | null;
|
|
28197
29369
|
status?: string;
|
|
28198
29370
|
total?: string;
|
|
28199
29371
|
updated_at?: string;
|
|
@@ -28566,6 +29738,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
28566
29738
|
display_name: string | null;
|
|
28567
29739
|
email: string | null;
|
|
28568
29740
|
id: string;
|
|
29741
|
+
is_superadmin: boolean;
|
|
28569
29742
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
28570
29743
|
tenant_id: string | null;
|
|
28571
29744
|
updated_at: string;
|
|
@@ -28575,6 +29748,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
28575
29748
|
display_name?: string | null;
|
|
28576
29749
|
email?: string | null;
|
|
28577
29750
|
id: string;
|
|
29751
|
+
is_superadmin?: boolean;
|
|
28578
29752
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
28579
29753
|
tenant_id?: string | null;
|
|
28580
29754
|
updated_at?: string;
|
|
@@ -28584,6 +29758,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
28584
29758
|
display_name?: string | null;
|
|
28585
29759
|
email?: string | null;
|
|
28586
29760
|
id?: string;
|
|
29761
|
+
is_superadmin?: boolean;
|
|
28587
29762
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
28588
29763
|
tenant_id?: string | null;
|
|
28589
29764
|
updated_at?: string;
|
|
@@ -29373,6 +30548,24 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
29373
30548
|
};
|
|
29374
30549
|
Relationships: [];
|
|
29375
30550
|
};
|
|
30551
|
+
sidebar_config: {
|
|
30552
|
+
Row: {
|
|
30553
|
+
id: string;
|
|
30554
|
+
module_order: string[];
|
|
30555
|
+
updated_at: string;
|
|
30556
|
+
};
|
|
30557
|
+
Insert: {
|
|
30558
|
+
id?: string;
|
|
30559
|
+
module_order?: string[];
|
|
30560
|
+
updated_at?: string;
|
|
30561
|
+
};
|
|
30562
|
+
Update: {
|
|
30563
|
+
id?: string;
|
|
30564
|
+
module_order?: string[];
|
|
30565
|
+
updated_at?: string;
|
|
30566
|
+
};
|
|
30567
|
+
Relationships: [];
|
|
30568
|
+
};
|
|
29376
30569
|
stock_import_runs: {
|
|
29377
30570
|
Row: {
|
|
29378
30571
|
connection_id: string | null;
|
|
@@ -29431,7 +30624,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
29431
30624
|
reason: string | null;
|
|
29432
30625
|
reserved_after: number | null;
|
|
29433
30626
|
reserved_before: number | null;
|
|
29434
|
-
trade_item_key: string;
|
|
30627
|
+
trade_item_key: string | null;
|
|
29435
30628
|
};
|
|
29436
30629
|
Insert: {
|
|
29437
30630
|
connection_id?: string | null;
|
|
@@ -29448,7 +30641,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
29448
30641
|
reason?: string | null;
|
|
29449
30642
|
reserved_after?: number | null;
|
|
29450
30643
|
reserved_before?: number | null;
|
|
29451
|
-
trade_item_key
|
|
30644
|
+
trade_item_key?: string | null;
|
|
29452
30645
|
};
|
|
29453
30646
|
Update: {
|
|
29454
30647
|
connection_id?: string | null;
|
|
@@ -29465,7 +30658,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
29465
30658
|
reason?: string | null;
|
|
29466
30659
|
reserved_after?: number | null;
|
|
29467
30660
|
reserved_before?: number | null;
|
|
29468
|
-
trade_item_key?: string;
|
|
30661
|
+
trade_item_key?: string | null;
|
|
29469
30662
|
};
|
|
29470
30663
|
Relationships: [];
|
|
29471
30664
|
};
|
|
@@ -29808,6 +31001,114 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
29808
31001
|
};
|
|
29809
31002
|
Relationships: [];
|
|
29810
31003
|
};
|
|
31004
|
+
trade_item_supply_lines: {
|
|
31005
|
+
Row: {
|
|
31006
|
+
available_quantity: number | null;
|
|
31007
|
+
connection_id: string;
|
|
31008
|
+
created_at: string;
|
|
31009
|
+
currency: string | null;
|
|
31010
|
+
endpoint_family: string | null;
|
|
31011
|
+
environment: string | null;
|
|
31012
|
+
id: string;
|
|
31013
|
+
last_error: string | null;
|
|
31014
|
+
last_status: number | null;
|
|
31015
|
+
packing_configuration_id: string | null;
|
|
31016
|
+
period_end: string | null;
|
|
31017
|
+
period_start: string | null;
|
|
31018
|
+
price_per_piece: number | null;
|
|
31019
|
+
sales_unit: string | null;
|
|
31020
|
+
supply_line_id: string | null;
|
|
31021
|
+
supply_type: string;
|
|
31022
|
+
trade_item_id: string;
|
|
31023
|
+
updated_at: string;
|
|
31024
|
+
user_id: string;
|
|
31025
|
+
week: number | null;
|
|
31026
|
+
year: number | null;
|
|
31027
|
+
};
|
|
31028
|
+
Insert: {
|
|
31029
|
+
available_quantity?: number | null;
|
|
31030
|
+
connection_id: string;
|
|
31031
|
+
created_at?: string;
|
|
31032
|
+
currency?: string | null;
|
|
31033
|
+
endpoint_family?: string | null;
|
|
31034
|
+
environment?: string | null;
|
|
31035
|
+
id?: string;
|
|
31036
|
+
last_error?: string | null;
|
|
31037
|
+
last_status?: number | null;
|
|
31038
|
+
packing_configuration_id?: string | null;
|
|
31039
|
+
period_end?: string | null;
|
|
31040
|
+
period_start?: string | null;
|
|
31041
|
+
price_per_piece?: number | null;
|
|
31042
|
+
sales_unit?: string | null;
|
|
31043
|
+
supply_line_id?: string | null;
|
|
31044
|
+
supply_type?: string;
|
|
31045
|
+
trade_item_id: string;
|
|
31046
|
+
updated_at?: string;
|
|
31047
|
+
user_id: string;
|
|
31048
|
+
week?: number | null;
|
|
31049
|
+
year?: number | null;
|
|
31050
|
+
};
|
|
31051
|
+
Update: {
|
|
31052
|
+
available_quantity?: number | null;
|
|
31053
|
+
connection_id?: string;
|
|
31054
|
+
created_at?: string;
|
|
31055
|
+
currency?: string | null;
|
|
31056
|
+
endpoint_family?: string | null;
|
|
31057
|
+
environment?: string | null;
|
|
31058
|
+
id?: string;
|
|
31059
|
+
last_error?: string | null;
|
|
31060
|
+
last_status?: number | null;
|
|
31061
|
+
packing_configuration_id?: string | null;
|
|
31062
|
+
period_end?: string | null;
|
|
31063
|
+
period_start?: string | null;
|
|
31064
|
+
price_per_piece?: number | null;
|
|
31065
|
+
sales_unit?: string | null;
|
|
31066
|
+
supply_line_id?: string | null;
|
|
31067
|
+
supply_type?: string;
|
|
31068
|
+
trade_item_id?: string;
|
|
31069
|
+
updated_at?: string;
|
|
31070
|
+
user_id?: string;
|
|
31071
|
+
week?: number | null;
|
|
31072
|
+
year?: number | null;
|
|
31073
|
+
};
|
|
31074
|
+
Relationships: [];
|
|
31075
|
+
};
|
|
31076
|
+
trade_item_warehouse_preferences: {
|
|
31077
|
+
Row: {
|
|
31078
|
+
connection_id: string;
|
|
31079
|
+
created_at: string;
|
|
31080
|
+
id: string;
|
|
31081
|
+
trade_item_id: string;
|
|
31082
|
+
updated_at: string;
|
|
31083
|
+
warehouse_id: string;
|
|
31084
|
+
warehouse_name: string | null;
|
|
31085
|
+
};
|
|
31086
|
+
Insert: {
|
|
31087
|
+
connection_id: string;
|
|
31088
|
+
created_at?: string;
|
|
31089
|
+
id?: string;
|
|
31090
|
+
trade_item_id: string;
|
|
31091
|
+
updated_at?: string;
|
|
31092
|
+
warehouse_id: string;
|
|
31093
|
+
warehouse_name?: string | null;
|
|
31094
|
+
};
|
|
31095
|
+
Update: {
|
|
31096
|
+
connection_id?: string;
|
|
31097
|
+
created_at?: string;
|
|
31098
|
+
id?: string;
|
|
31099
|
+
trade_item_id?: string;
|
|
31100
|
+
updated_at?: string;
|
|
31101
|
+
warehouse_id?: string;
|
|
31102
|
+
warehouse_name?: string | null;
|
|
31103
|
+
};
|
|
31104
|
+
Relationships: [{
|
|
31105
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
31106
|
+
columns: ["connection_id"];
|
|
31107
|
+
isOneToOne: false;
|
|
31108
|
+
referencedRelation: "floriday_connections";
|
|
31109
|
+
referencedColumns: ["id"];
|
|
31110
|
+
}];
|
|
31111
|
+
};
|
|
29811
31112
|
twinfield_connections: {
|
|
29812
31113
|
Row: {
|
|
29813
31114
|
access_token: string | null;
|
|
@@ -30127,6 +31428,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
30127
31428
|
default_invoice_type: string;
|
|
30128
31429
|
default_payment_term_days: number;
|
|
30129
31430
|
default_vat_code: string;
|
|
31431
|
+
invoice_enabled_ao: boolean;
|
|
31432
|
+
invoice_enabled_fo: boolean;
|
|
31433
|
+
invoice_enabled_ho: boolean;
|
|
31434
|
+
invoice_enabled_mo: boolean;
|
|
30130
31435
|
updated_at: string;
|
|
30131
31436
|
user_id: string;
|
|
30132
31437
|
};
|
|
@@ -30136,6 +31441,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
30136
31441
|
default_invoice_type?: string;
|
|
30137
31442
|
default_payment_term_days?: number;
|
|
30138
31443
|
default_vat_code?: string;
|
|
31444
|
+
invoice_enabled_ao?: boolean;
|
|
31445
|
+
invoice_enabled_fo?: boolean;
|
|
31446
|
+
invoice_enabled_ho?: boolean;
|
|
31447
|
+
invoice_enabled_mo?: boolean;
|
|
30139
31448
|
updated_at?: string;
|
|
30140
31449
|
user_id: string;
|
|
30141
31450
|
};
|
|
@@ -30145,6 +31454,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
30145
31454
|
default_invoice_type?: string;
|
|
30146
31455
|
default_payment_term_days?: number;
|
|
30147
31456
|
default_vat_code?: string;
|
|
31457
|
+
invoice_enabled_ao?: boolean;
|
|
31458
|
+
invoice_enabled_fo?: boolean;
|
|
31459
|
+
invoice_enabled_ho?: boolean;
|
|
31460
|
+
invoice_enabled_mo?: boolean;
|
|
30148
31461
|
updated_at?: string;
|
|
30149
31462
|
user_id?: string;
|
|
30150
31463
|
};
|
|
@@ -31439,6 +32752,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
31439
32752
|
order_number: string;
|
|
31440
32753
|
}[];
|
|
31441
32754
|
};
|
|
32755
|
+
autolink_product_to_floriday: {
|
|
32756
|
+
Args: {
|
|
32757
|
+
p_product_id: string;
|
|
32758
|
+
};
|
|
32759
|
+
Returns: string;
|
|
32760
|
+
};
|
|
31442
32761
|
backfill_open_order_reservations: {
|
|
31443
32762
|
Args: never;
|
|
31444
32763
|
Returns: {
|
|
@@ -31477,6 +32796,18 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
31477
32796
|
Args: never;
|
|
31478
32797
|
Returns: number;
|
|
31479
32798
|
};
|
|
32799
|
+
consume_floriday_rate_limit: {
|
|
32800
|
+
Args: {
|
|
32801
|
+
p_bucket: string;
|
|
32802
|
+
p_capacity: number;
|
|
32803
|
+
p_cost?: number;
|
|
32804
|
+
p_refill_per_sec: number;
|
|
32805
|
+
};
|
|
32806
|
+
Returns: {
|
|
32807
|
+
granted: boolean;
|
|
32808
|
+
wait_ms: number;
|
|
32809
|
+
}[];
|
|
32810
|
+
};
|
|
31480
32811
|
control_get_todays_carts: {
|
|
31481
32812
|
Args: never;
|
|
31482
32813
|
Returns: {
|
|
@@ -31557,6 +32888,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
31557
32888
|
status: string;
|
|
31558
32889
|
}[];
|
|
31559
32890
|
};
|
|
32891
|
+
enqueue_cart_replan_if_unlocked: {
|
|
32892
|
+
Args: {
|
|
32893
|
+
p_order_id: string;
|
|
32894
|
+
};
|
|
32895
|
+
Returns: undefined;
|
|
32896
|
+
};
|
|
31560
32897
|
ensure_trade_item_stock_row: {
|
|
31561
32898
|
Args: {
|
|
31562
32899
|
p_key: string;
|
|
@@ -31663,6 +33000,13 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
31663
33000
|
office_code: string;
|
|
31664
33001
|
}[];
|
|
31665
33002
|
};
|
|
33003
|
+
get_floricode_record_counts: {
|
|
33004
|
+
Args: never;
|
|
33005
|
+
Returns: {
|
|
33006
|
+
count: number;
|
|
33007
|
+
resource: string;
|
|
33008
|
+
}[];
|
|
33009
|
+
};
|
|
31666
33010
|
get_floriday_agreements_active: {
|
|
31667
33011
|
Args: {
|
|
31668
33012
|
p_on_date?: string;
|
|
@@ -31754,6 +33098,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
31754
33098
|
};
|
|
31755
33099
|
Returns: import("../integrations/supabase/types").Json;
|
|
31756
33100
|
};
|
|
33101
|
+
get_offer_delivery_options: {
|
|
33102
|
+
Args: {
|
|
33103
|
+
p_code: string;
|
|
33104
|
+
};
|
|
33105
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
33106
|
+
};
|
|
31757
33107
|
get_offer_recipient_by_code: {
|
|
31758
33108
|
Args: {
|
|
31759
33109
|
p_code: string;
|
|
@@ -31818,6 +33168,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
31818
33168
|
Args: never;
|
|
31819
33169
|
Returns: boolean;
|
|
31820
33170
|
};
|
|
33171
|
+
is_superadmin: {
|
|
33172
|
+
Args: {
|
|
33173
|
+
_user_id: string;
|
|
33174
|
+
};
|
|
33175
|
+
Returns: boolean;
|
|
33176
|
+
};
|
|
31821
33177
|
local_effective_price: {
|
|
31822
33178
|
Args: {
|
|
31823
33179
|
_customer_id: string;
|
|
@@ -31852,6 +33208,13 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
31852
33208
|
};
|
|
31853
33209
|
Returns: string;
|
|
31854
33210
|
};
|
|
33211
|
+
next_order_number_for_date: {
|
|
33212
|
+
Args: {
|
|
33213
|
+
p_created_at?: string;
|
|
33214
|
+
p_prefix: string;
|
|
33215
|
+
};
|
|
33216
|
+
Returns: string;
|
|
33217
|
+
};
|
|
31855
33218
|
next_work_order_number: {
|
|
31856
33219
|
Args: {
|
|
31857
33220
|
p_parent_work_order_id?: string;
|
|
@@ -31859,6 +33222,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
31859
33222
|
};
|
|
31860
33223
|
Returns: string;
|
|
31861
33224
|
};
|
|
33225
|
+
normalize_order_source: {
|
|
33226
|
+
Args: {
|
|
33227
|
+
p_src: string;
|
|
33228
|
+
};
|
|
33229
|
+
Returns: string;
|
|
33230
|
+
};
|
|
31862
33231
|
normalize_vat: {
|
|
31863
33232
|
Args: {
|
|
31864
33233
|
v: string;
|
|
@@ -31873,10 +33242,21 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
31873
33242
|
};
|
|
31874
33243
|
Returns: boolean;
|
|
31875
33244
|
};
|
|
33245
|
+
order_number_prefix: {
|
|
33246
|
+
Args: {
|
|
33247
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
33248
|
+
p_order_source: string;
|
|
33249
|
+
};
|
|
33250
|
+
Returns: string;
|
|
33251
|
+
};
|
|
31876
33252
|
pickstation_get_orders_raw: {
|
|
31877
33253
|
Args: never;
|
|
31878
33254
|
Returns: import("../integrations/supabase/types").Json;
|
|
31879
33255
|
};
|
|
33256
|
+
pickstation_get_planning_context: {
|
|
33257
|
+
Args: never;
|
|
33258
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
33259
|
+
};
|
|
31880
33260
|
pickstation_get_settings: {
|
|
31881
33261
|
Args: never;
|
|
31882
33262
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -31907,6 +33287,28 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
31907
33287
|
};
|
|
31908
33288
|
Returns: undefined;
|
|
31909
33289
|
};
|
|
33290
|
+
recompute_order_status: {
|
|
33291
|
+
Args: {
|
|
33292
|
+
p_order_id: string;
|
|
33293
|
+
};
|
|
33294
|
+
Returns: undefined;
|
|
33295
|
+
};
|
|
33296
|
+
recompute_reserved_for_order: {
|
|
33297
|
+
Args: {
|
|
33298
|
+
p_order_id: string;
|
|
33299
|
+
};
|
|
33300
|
+
Returns: undefined;
|
|
33301
|
+
};
|
|
33302
|
+
recompute_reserved_stock: {
|
|
33303
|
+
Args: {
|
|
33304
|
+
p_trade_item_key: string;
|
|
33305
|
+
};
|
|
33306
|
+
Returns: undefined;
|
|
33307
|
+
};
|
|
33308
|
+
refresh_external_customers_grouped: {
|
|
33309
|
+
Args: never;
|
|
33310
|
+
Returns: undefined;
|
|
33311
|
+
};
|
|
31910
33312
|
refresh_floricode_derived_code_lists: {
|
|
31911
33313
|
Args: never;
|
|
31912
33314
|
Returns: {
|
|
@@ -31921,6 +33323,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
31921
33323
|
};
|
|
31922
33324
|
Returns: number;
|
|
31923
33325
|
};
|
|
33326
|
+
refresh_floricode_derived_for_products: {
|
|
33327
|
+
Args: {
|
|
33328
|
+
_product_ids: string[];
|
|
33329
|
+
};
|
|
33330
|
+
Returns: number;
|
|
33331
|
+
};
|
|
31924
33332
|
reset_floriday_sync_cursor: {
|
|
31925
33333
|
Args: {
|
|
31926
33334
|
p_connection_id: string;
|
|
@@ -31928,6 +33336,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
31928
33336
|
};
|
|
31929
33337
|
Returns: undefined;
|
|
31930
33338
|
};
|
|
33339
|
+
resolve_product_id_for_item: {
|
|
33340
|
+
Args: {
|
|
33341
|
+
p_product_name: string;
|
|
33342
|
+
};
|
|
33343
|
+
Returns: string;
|
|
33344
|
+
};
|
|
31931
33345
|
schedule_floriday_additional_services_sync: {
|
|
31932
33346
|
Args: {
|
|
31933
33347
|
p_apikey: string;
|
|
@@ -32205,6 +33619,24 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
32205
33619
|
};
|
|
32206
33620
|
Returns: string[];
|
|
32207
33621
|
};
|
|
33622
|
+
sync_cached_packing_from_product: {
|
|
33623
|
+
Args: {
|
|
33624
|
+
p_product_id: string;
|
|
33625
|
+
};
|
|
33626
|
+
Returns: undefined;
|
|
33627
|
+
};
|
|
33628
|
+
sync_order_cart_item_packing_from_product: {
|
|
33629
|
+
Args: {
|
|
33630
|
+
p_product_id: string;
|
|
33631
|
+
};
|
|
33632
|
+
Returns: undefined;
|
|
33633
|
+
};
|
|
33634
|
+
sync_product_packing_from_floriday_cache: {
|
|
33635
|
+
Args: {
|
|
33636
|
+
p_floriday_id: string;
|
|
33637
|
+
};
|
|
33638
|
+
Returns: undefined;
|
|
33639
|
+
};
|
|
32208
33640
|
twinfield_decrypt: {
|
|
32209
33641
|
Args: {
|
|
32210
33642
|
cipher: string;
|
|
@@ -32217,6 +33649,17 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
|
|
|
32217
33649
|
};
|
|
32218
33650
|
Returns: string;
|
|
32219
33651
|
};
|
|
33652
|
+
upsert_auto_fulfillment_log: {
|
|
33653
|
+
Args: {
|
|
33654
|
+
p_connection_id: string;
|
|
33655
|
+
p_error?: string;
|
|
33656
|
+
p_fulfillment_order_id?: string;
|
|
33657
|
+
p_reason?: string;
|
|
33658
|
+
p_sales_order_id: string;
|
|
33659
|
+
p_status: string;
|
|
33660
|
+
};
|
|
33661
|
+
Returns: undefined;
|
|
33662
|
+
};
|
|
32220
33663
|
};
|
|
32221
33664
|
Enums: {
|
|
32222
33665
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|
|
@@ -32246,7 +33689,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
32246
33689
|
Tables: {
|
|
32247
33690
|
afhandeling_settings: {
|
|
32248
33691
|
Row: {
|
|
33692
|
+
auto_print_delivery_note: boolean;
|
|
33693
|
+
auto_process_paused: boolean;
|
|
32249
33694
|
created_at: string;
|
|
33695
|
+
extra_pick_days_with_stickers: number;
|
|
32250
33696
|
id: string;
|
|
32251
33697
|
max_workdays_earlier_pick: number;
|
|
32252
33698
|
pick_days_before_transport: number;
|
|
@@ -32260,7 +33706,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
32260
33706
|
user_id: string;
|
|
32261
33707
|
};
|
|
32262
33708
|
Insert: {
|
|
33709
|
+
auto_print_delivery_note?: boolean;
|
|
33710
|
+
auto_process_paused?: boolean;
|
|
32263
33711
|
created_at?: string;
|
|
33712
|
+
extra_pick_days_with_stickers?: number;
|
|
32264
33713
|
id?: string;
|
|
32265
33714
|
max_workdays_earlier_pick?: number;
|
|
32266
33715
|
pick_days_before_transport?: number;
|
|
@@ -32274,7 +33723,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
32274
33723
|
user_id: string;
|
|
32275
33724
|
};
|
|
32276
33725
|
Update: {
|
|
33726
|
+
auto_print_delivery_note?: boolean;
|
|
33727
|
+
auto_process_paused?: boolean;
|
|
32277
33728
|
created_at?: string;
|
|
33729
|
+
extra_pick_days_with_stickers?: number;
|
|
32278
33730
|
id?: string;
|
|
32279
33731
|
max_workdays_earlier_pick?: number;
|
|
32280
33732
|
pick_days_before_transport?: number;
|
|
@@ -33066,6 +34518,36 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
33066
34518
|
};
|
|
33067
34519
|
Relationships: [];
|
|
33068
34520
|
};
|
|
34521
|
+
cart_replan_queue: {
|
|
34522
|
+
Row: {
|
|
34523
|
+
attempts: number;
|
|
34524
|
+
last_error: string | null;
|
|
34525
|
+
order_id: string;
|
|
34526
|
+
processed_at: string | null;
|
|
34527
|
+
requested_at: string;
|
|
34528
|
+
};
|
|
34529
|
+
Insert: {
|
|
34530
|
+
attempts?: number;
|
|
34531
|
+
last_error?: string | null;
|
|
34532
|
+
order_id: string;
|
|
34533
|
+
processed_at?: string | null;
|
|
34534
|
+
requested_at?: string;
|
|
34535
|
+
};
|
|
34536
|
+
Update: {
|
|
34537
|
+
attempts?: number;
|
|
34538
|
+
last_error?: string | null;
|
|
34539
|
+
order_id?: string;
|
|
34540
|
+
processed_at?: string | null;
|
|
34541
|
+
requested_at?: string;
|
|
34542
|
+
};
|
|
34543
|
+
Relationships: [{
|
|
34544
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
34545
|
+
columns: ["order_id"];
|
|
34546
|
+
isOneToOne: true;
|
|
34547
|
+
referencedRelation: "orders";
|
|
34548
|
+
referencedColumns: ["id"];
|
|
34549
|
+
}];
|
|
34550
|
+
};
|
|
33069
34551
|
collections: {
|
|
33070
34552
|
Row: {
|
|
33071
34553
|
created_at: string;
|
|
@@ -35191,34 +36673,52 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
35191
36673
|
Row: {
|
|
35192
36674
|
catalog_key: string | null;
|
|
35193
36675
|
catalog_url: string;
|
|
36676
|
+
client_id: string | null;
|
|
36677
|
+
client_secret_ciphertext: string | null;
|
|
36678
|
+
client_secret_last4: string | null;
|
|
35194
36679
|
created_at: string;
|
|
35195
36680
|
id: number;
|
|
35196
36681
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
35197
36682
|
last_test_at: string | null;
|
|
35198
36683
|
last_test_error: string | null;
|
|
35199
36684
|
last_test_ok: boolean | null;
|
|
36685
|
+
last_token_test_at: string | null;
|
|
36686
|
+
last_token_test_error: string | null;
|
|
36687
|
+
last_token_test_ok: boolean | null;
|
|
35200
36688
|
updated_at: string;
|
|
35201
36689
|
};
|
|
35202
36690
|
Insert: {
|
|
35203
36691
|
catalog_key?: string | null;
|
|
35204
36692
|
catalog_url?: string;
|
|
36693
|
+
client_id?: string | null;
|
|
36694
|
+
client_secret_ciphertext?: string | null;
|
|
36695
|
+
client_secret_last4?: string | null;
|
|
35205
36696
|
created_at?: string;
|
|
35206
36697
|
id?: number;
|
|
35207
36698
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
35208
36699
|
last_test_at?: string | null;
|
|
35209
36700
|
last_test_error?: string | null;
|
|
35210
36701
|
last_test_ok?: boolean | null;
|
|
36702
|
+
last_token_test_at?: string | null;
|
|
36703
|
+
last_token_test_error?: string | null;
|
|
36704
|
+
last_token_test_ok?: boolean | null;
|
|
35211
36705
|
updated_at?: string;
|
|
35212
36706
|
};
|
|
35213
36707
|
Update: {
|
|
35214
36708
|
catalog_key?: string | null;
|
|
35215
36709
|
catalog_url?: string;
|
|
36710
|
+
client_id?: string | null;
|
|
36711
|
+
client_secret_ciphertext?: string | null;
|
|
36712
|
+
client_secret_last4?: string | null;
|
|
35216
36713
|
created_at?: string;
|
|
35217
36714
|
id?: number;
|
|
35218
36715
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
35219
36716
|
last_test_at?: string | null;
|
|
35220
36717
|
last_test_error?: string | null;
|
|
35221
36718
|
last_test_ok?: boolean | null;
|
|
36719
|
+
last_token_test_at?: string | null;
|
|
36720
|
+
last_token_test_error?: string | null;
|
|
36721
|
+
last_token_test_ok?: boolean | null;
|
|
35222
36722
|
updated_at?: string;
|
|
35223
36723
|
};
|
|
35224
36724
|
Relationships: [];
|
|
@@ -35451,6 +36951,54 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
35451
36951
|
referencedColumns: ["id"];
|
|
35452
36952
|
}];
|
|
35453
36953
|
};
|
|
36954
|
+
floriday_auto_fulfillment_log: {
|
|
36955
|
+
Row: {
|
|
36956
|
+
attempts: number;
|
|
36957
|
+
connection_id: string;
|
|
36958
|
+
created_at: string;
|
|
36959
|
+
error: string | null;
|
|
36960
|
+
fulfillment_order_id: string | null;
|
|
36961
|
+
id: string;
|
|
36962
|
+
last_attempt_at: string | null;
|
|
36963
|
+
reason: string | null;
|
|
36964
|
+
sales_order_id: string;
|
|
36965
|
+
status: string;
|
|
36966
|
+
updated_at: string;
|
|
36967
|
+
};
|
|
36968
|
+
Insert: {
|
|
36969
|
+
attempts?: number;
|
|
36970
|
+
connection_id: string;
|
|
36971
|
+
created_at?: string;
|
|
36972
|
+
error?: string | null;
|
|
36973
|
+
fulfillment_order_id?: string | null;
|
|
36974
|
+
id?: string;
|
|
36975
|
+
last_attempt_at?: string | null;
|
|
36976
|
+
reason?: string | null;
|
|
36977
|
+
sales_order_id: string;
|
|
36978
|
+
status?: string;
|
|
36979
|
+
updated_at?: string;
|
|
36980
|
+
};
|
|
36981
|
+
Update: {
|
|
36982
|
+
attempts?: number;
|
|
36983
|
+
connection_id?: string;
|
|
36984
|
+
created_at?: string;
|
|
36985
|
+
error?: string | null;
|
|
36986
|
+
fulfillment_order_id?: string | null;
|
|
36987
|
+
id?: string;
|
|
36988
|
+
last_attempt_at?: string | null;
|
|
36989
|
+
reason?: string | null;
|
|
36990
|
+
sales_order_id?: string;
|
|
36991
|
+
status?: string;
|
|
36992
|
+
updated_at?: string;
|
|
36993
|
+
};
|
|
36994
|
+
Relationships: [{
|
|
36995
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
36996
|
+
columns: ["connection_id"];
|
|
36997
|
+
isOneToOne: false;
|
|
36998
|
+
referencedRelation: "floriday_connections";
|
|
36999
|
+
referencedColumns: ["id"];
|
|
37000
|
+
}];
|
|
37001
|
+
};
|
|
35454
37002
|
floriday_base_items_cache: {
|
|
35455
37003
|
Row: {
|
|
35456
37004
|
connection_id: string;
|
|
@@ -36555,6 +38103,24 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
36555
38103
|
referencedColumns: ["id"];
|
|
36556
38104
|
}];
|
|
36557
38105
|
};
|
|
38106
|
+
floriday_rate_limit_state: {
|
|
38107
|
+
Row: {
|
|
38108
|
+
bucket: string;
|
|
38109
|
+
last_refill_at: string;
|
|
38110
|
+
tokens: number;
|
|
38111
|
+
};
|
|
38112
|
+
Insert: {
|
|
38113
|
+
bucket: string;
|
|
38114
|
+
last_refill_at?: string;
|
|
38115
|
+
tokens: number;
|
|
38116
|
+
};
|
|
38117
|
+
Update: {
|
|
38118
|
+
bucket?: string;
|
|
38119
|
+
last_refill_at?: string;
|
|
38120
|
+
tokens?: number;
|
|
38121
|
+
};
|
|
38122
|
+
Relationships: [];
|
|
38123
|
+
};
|
|
36558
38124
|
floriday_resource_schemas: {
|
|
36559
38125
|
Row: {
|
|
36560
38126
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -36978,6 +38544,60 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
36978
38544
|
referencedColumns: ["id"];
|
|
36979
38545
|
}];
|
|
36980
38546
|
};
|
|
38547
|
+
flow_role_assignments: {
|
|
38548
|
+
Row: {
|
|
38549
|
+
created_at: string;
|
|
38550
|
+
id: string;
|
|
38551
|
+
role_id: string;
|
|
38552
|
+
user_id: string;
|
|
38553
|
+
};
|
|
38554
|
+
Insert: {
|
|
38555
|
+
created_at?: string;
|
|
38556
|
+
id?: string;
|
|
38557
|
+
role_id: string;
|
|
38558
|
+
user_id: string;
|
|
38559
|
+
};
|
|
38560
|
+
Update: {
|
|
38561
|
+
created_at?: string;
|
|
38562
|
+
id?: string;
|
|
38563
|
+
role_id?: string;
|
|
38564
|
+
user_id?: string;
|
|
38565
|
+
};
|
|
38566
|
+
Relationships: [{
|
|
38567
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
38568
|
+
columns: ["role_id"];
|
|
38569
|
+
isOneToOne: false;
|
|
38570
|
+
referencedRelation: "flow_roles";
|
|
38571
|
+
referencedColumns: ["id"];
|
|
38572
|
+
}];
|
|
38573
|
+
};
|
|
38574
|
+
flow_roles: {
|
|
38575
|
+
Row: {
|
|
38576
|
+
created_at: string;
|
|
38577
|
+
description: string | null;
|
|
38578
|
+
id: string;
|
|
38579
|
+
module_access: string[];
|
|
38580
|
+
name: string;
|
|
38581
|
+
updated_at: string;
|
|
38582
|
+
};
|
|
38583
|
+
Insert: {
|
|
38584
|
+
created_at?: string;
|
|
38585
|
+
description?: string | null;
|
|
38586
|
+
id?: string;
|
|
38587
|
+
module_access?: string[];
|
|
38588
|
+
name: string;
|
|
38589
|
+
updated_at?: string;
|
|
38590
|
+
};
|
|
38591
|
+
Update: {
|
|
38592
|
+
created_at?: string;
|
|
38593
|
+
description?: string | null;
|
|
38594
|
+
id?: string;
|
|
38595
|
+
module_access?: string[];
|
|
38596
|
+
name?: string;
|
|
38597
|
+
updated_at?: string;
|
|
38598
|
+
};
|
|
38599
|
+
Relationships: [];
|
|
38600
|
+
};
|
|
36981
38601
|
imap_accounts: {
|
|
36982
38602
|
Row: {
|
|
36983
38603
|
created_at: string;
|
|
@@ -37609,6 +39229,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
37609
39229
|
matched_customer_id: string | null;
|
|
37610
39230
|
message_id: string;
|
|
37611
39231
|
notes: string | null;
|
|
39232
|
+
order_number: string | null;
|
|
37612
39233
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
37613
39234
|
reviewed_at: string | null;
|
|
37614
39235
|
reviewed_by: string | null;
|
|
@@ -37624,6 +39245,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
37624
39245
|
matched_customer_id?: string | null;
|
|
37625
39246
|
message_id: string;
|
|
37626
39247
|
notes?: string | null;
|
|
39248
|
+
order_number?: string | null;
|
|
37627
39249
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
37628
39250
|
reviewed_at?: string | null;
|
|
37629
39251
|
reviewed_by?: string | null;
|
|
@@ -37639,6 +39261,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
37639
39261
|
matched_customer_id?: string | null;
|
|
37640
39262
|
message_id?: string;
|
|
37641
39263
|
notes?: string | null;
|
|
39264
|
+
order_number?: string | null;
|
|
37642
39265
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
37643
39266
|
reviewed_at?: string | null;
|
|
37644
39267
|
reviewed_by?: string | null;
|
|
@@ -38495,6 +40118,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
38495
40118
|
id: string;
|
|
38496
40119
|
items: import("../integrations/supabase/types").Json;
|
|
38497
40120
|
notes: string | null;
|
|
40121
|
+
order_number: string | null;
|
|
38498
40122
|
recipient_id: string;
|
|
38499
40123
|
total_amount: number;
|
|
38500
40124
|
};
|
|
@@ -38508,6 +40132,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
38508
40132
|
id?: string;
|
|
38509
40133
|
items?: import("../integrations/supabase/types").Json;
|
|
38510
40134
|
notes?: string | null;
|
|
40135
|
+
order_number?: string | null;
|
|
38511
40136
|
recipient_id: string;
|
|
38512
40137
|
total_amount?: number;
|
|
38513
40138
|
};
|
|
@@ -38521,6 +40146,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
38521
40146
|
id?: string;
|
|
38522
40147
|
items?: import("../integrations/supabase/types").Json;
|
|
38523
40148
|
notes?: string | null;
|
|
40149
|
+
order_number?: string | null;
|
|
38524
40150
|
recipient_id?: string;
|
|
38525
40151
|
total_amount?: number;
|
|
38526
40152
|
};
|
|
@@ -38680,6 +40306,9 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
38680
40306
|
crates_per_layer: number;
|
|
38681
40307
|
created_at: string;
|
|
38682
40308
|
id: string;
|
|
40309
|
+
layer_fraction: number;
|
|
40310
|
+
layer_share_pct: number;
|
|
40311
|
+
layers_per_cart: number;
|
|
38683
40312
|
order_item_id: string | null;
|
|
38684
40313
|
plants_per_crate: number;
|
|
38685
40314
|
product_id: string | null;
|
|
@@ -38691,6 +40320,9 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
38691
40320
|
crates_per_layer?: number;
|
|
38692
40321
|
created_at?: string;
|
|
38693
40322
|
id?: string;
|
|
40323
|
+
layer_fraction?: number;
|
|
40324
|
+
layer_share_pct?: number;
|
|
40325
|
+
layers_per_cart?: number;
|
|
38694
40326
|
order_item_id?: string | null;
|
|
38695
40327
|
plants_per_crate?: number;
|
|
38696
40328
|
product_id?: string | null;
|
|
@@ -38702,6 +40334,9 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
38702
40334
|
crates_per_layer?: number;
|
|
38703
40335
|
created_at?: string;
|
|
38704
40336
|
id?: string;
|
|
40337
|
+
layer_fraction?: number;
|
|
40338
|
+
layer_share_pct?: number;
|
|
40339
|
+
layers_per_cart?: number;
|
|
38705
40340
|
order_item_id?: string | null;
|
|
38706
40341
|
plants_per_crate?: number;
|
|
38707
40342
|
product_id?: string | null;
|
|
@@ -38729,33 +40364,45 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
38729
40364
|
};
|
|
38730
40365
|
order_carts: {
|
|
38731
40366
|
Row: {
|
|
40367
|
+
algorithm_version: number;
|
|
38732
40368
|
cart_number: number;
|
|
38733
40369
|
created_at: string;
|
|
38734
40370
|
id: string;
|
|
38735
40371
|
is_auto: boolean;
|
|
38736
40372
|
is_complete: boolean;
|
|
38737
40373
|
notes: string | null;
|
|
40374
|
+
occupancy_pct: number;
|
|
38738
40375
|
order_id: string;
|
|
40376
|
+
source: string;
|
|
40377
|
+
total_layers_used: number;
|
|
38739
40378
|
updated_at: string;
|
|
38740
40379
|
};
|
|
38741
40380
|
Insert: {
|
|
40381
|
+
algorithm_version?: number;
|
|
38742
40382
|
cart_number: number;
|
|
38743
40383
|
created_at?: string;
|
|
38744
40384
|
id?: string;
|
|
38745
40385
|
is_auto?: boolean;
|
|
38746
40386
|
is_complete?: boolean;
|
|
38747
40387
|
notes?: string | null;
|
|
40388
|
+
occupancy_pct?: number;
|
|
38748
40389
|
order_id: string;
|
|
40390
|
+
source?: string;
|
|
40391
|
+
total_layers_used?: number;
|
|
38749
40392
|
updated_at?: string;
|
|
38750
40393
|
};
|
|
38751
40394
|
Update: {
|
|
40395
|
+
algorithm_version?: number;
|
|
38752
40396
|
cart_number?: number;
|
|
38753
40397
|
created_at?: string;
|
|
38754
40398
|
id?: string;
|
|
38755
40399
|
is_auto?: boolean;
|
|
38756
40400
|
is_complete?: boolean;
|
|
38757
40401
|
notes?: string | null;
|
|
40402
|
+
occupancy_pct?: number;
|
|
38758
40403
|
order_id?: string;
|
|
40404
|
+
source?: string;
|
|
40405
|
+
total_layers_used?: number;
|
|
38759
40406
|
updated_at?: string;
|
|
38760
40407
|
};
|
|
38761
40408
|
Relationships: [{
|
|
@@ -38908,6 +40555,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
38908
40555
|
order_date: string;
|
|
38909
40556
|
order_number: string;
|
|
38910
40557
|
order_source: string;
|
|
40558
|
+
plan_locked_at: string | null;
|
|
40559
|
+
plan_locked_ref: string | null;
|
|
38911
40560
|
status: string;
|
|
38912
40561
|
total: string;
|
|
38913
40562
|
updated_at: string;
|
|
@@ -38924,6 +40573,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
38924
40573
|
order_date?: string;
|
|
38925
40574
|
order_number: string;
|
|
38926
40575
|
order_source?: string;
|
|
40576
|
+
plan_locked_at?: string | null;
|
|
40577
|
+
plan_locked_ref?: string | null;
|
|
38927
40578
|
status?: string;
|
|
38928
40579
|
total?: string;
|
|
38929
40580
|
updated_at?: string;
|
|
@@ -38940,6 +40591,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
38940
40591
|
order_date?: string;
|
|
38941
40592
|
order_number?: string;
|
|
38942
40593
|
order_source?: string;
|
|
40594
|
+
plan_locked_at?: string | null;
|
|
40595
|
+
plan_locked_ref?: string | null;
|
|
38943
40596
|
status?: string;
|
|
38944
40597
|
total?: string;
|
|
38945
40598
|
updated_at?: string;
|
|
@@ -39312,6 +40965,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
39312
40965
|
display_name: string | null;
|
|
39313
40966
|
email: string | null;
|
|
39314
40967
|
id: string;
|
|
40968
|
+
is_superadmin: boolean;
|
|
39315
40969
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
39316
40970
|
tenant_id: string | null;
|
|
39317
40971
|
updated_at: string;
|
|
@@ -39321,6 +40975,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
39321
40975
|
display_name?: string | null;
|
|
39322
40976
|
email?: string | null;
|
|
39323
40977
|
id: string;
|
|
40978
|
+
is_superadmin?: boolean;
|
|
39324
40979
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
39325
40980
|
tenant_id?: string | null;
|
|
39326
40981
|
updated_at?: string;
|
|
@@ -39330,6 +40985,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
39330
40985
|
display_name?: string | null;
|
|
39331
40986
|
email?: string | null;
|
|
39332
40987
|
id?: string;
|
|
40988
|
+
is_superadmin?: boolean;
|
|
39333
40989
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
39334
40990
|
tenant_id?: string | null;
|
|
39335
40991
|
updated_at?: string;
|
|
@@ -40119,6 +41775,24 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
40119
41775
|
};
|
|
40120
41776
|
Relationships: [];
|
|
40121
41777
|
};
|
|
41778
|
+
sidebar_config: {
|
|
41779
|
+
Row: {
|
|
41780
|
+
id: string;
|
|
41781
|
+
module_order: string[];
|
|
41782
|
+
updated_at: string;
|
|
41783
|
+
};
|
|
41784
|
+
Insert: {
|
|
41785
|
+
id?: string;
|
|
41786
|
+
module_order?: string[];
|
|
41787
|
+
updated_at?: string;
|
|
41788
|
+
};
|
|
41789
|
+
Update: {
|
|
41790
|
+
id?: string;
|
|
41791
|
+
module_order?: string[];
|
|
41792
|
+
updated_at?: string;
|
|
41793
|
+
};
|
|
41794
|
+
Relationships: [];
|
|
41795
|
+
};
|
|
40122
41796
|
stock_import_runs: {
|
|
40123
41797
|
Row: {
|
|
40124
41798
|
connection_id: string | null;
|
|
@@ -40177,7 +41851,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
40177
41851
|
reason: string | null;
|
|
40178
41852
|
reserved_after: number | null;
|
|
40179
41853
|
reserved_before: number | null;
|
|
40180
|
-
trade_item_key: string;
|
|
41854
|
+
trade_item_key: string | null;
|
|
40181
41855
|
};
|
|
40182
41856
|
Insert: {
|
|
40183
41857
|
connection_id?: string | null;
|
|
@@ -40194,7 +41868,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
40194
41868
|
reason?: string | null;
|
|
40195
41869
|
reserved_after?: number | null;
|
|
40196
41870
|
reserved_before?: number | null;
|
|
40197
|
-
trade_item_key
|
|
41871
|
+
trade_item_key?: string | null;
|
|
40198
41872
|
};
|
|
40199
41873
|
Update: {
|
|
40200
41874
|
connection_id?: string | null;
|
|
@@ -40211,7 +41885,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
40211
41885
|
reason?: string | null;
|
|
40212
41886
|
reserved_after?: number | null;
|
|
40213
41887
|
reserved_before?: number | null;
|
|
40214
|
-
trade_item_key?: string;
|
|
41888
|
+
trade_item_key?: string | null;
|
|
40215
41889
|
};
|
|
40216
41890
|
Relationships: [];
|
|
40217
41891
|
};
|
|
@@ -40554,6 +42228,114 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
40554
42228
|
};
|
|
40555
42229
|
Relationships: [];
|
|
40556
42230
|
};
|
|
42231
|
+
trade_item_supply_lines: {
|
|
42232
|
+
Row: {
|
|
42233
|
+
available_quantity: number | null;
|
|
42234
|
+
connection_id: string;
|
|
42235
|
+
created_at: string;
|
|
42236
|
+
currency: string | null;
|
|
42237
|
+
endpoint_family: string | null;
|
|
42238
|
+
environment: string | null;
|
|
42239
|
+
id: string;
|
|
42240
|
+
last_error: string | null;
|
|
42241
|
+
last_status: number | null;
|
|
42242
|
+
packing_configuration_id: string | null;
|
|
42243
|
+
period_end: string | null;
|
|
42244
|
+
period_start: string | null;
|
|
42245
|
+
price_per_piece: number | null;
|
|
42246
|
+
sales_unit: string | null;
|
|
42247
|
+
supply_line_id: string | null;
|
|
42248
|
+
supply_type: string;
|
|
42249
|
+
trade_item_id: string;
|
|
42250
|
+
updated_at: string;
|
|
42251
|
+
user_id: string;
|
|
42252
|
+
week: number | null;
|
|
42253
|
+
year: number | null;
|
|
42254
|
+
};
|
|
42255
|
+
Insert: {
|
|
42256
|
+
available_quantity?: number | null;
|
|
42257
|
+
connection_id: string;
|
|
42258
|
+
created_at?: string;
|
|
42259
|
+
currency?: string | null;
|
|
42260
|
+
endpoint_family?: string | null;
|
|
42261
|
+
environment?: string | null;
|
|
42262
|
+
id?: string;
|
|
42263
|
+
last_error?: string | null;
|
|
42264
|
+
last_status?: number | null;
|
|
42265
|
+
packing_configuration_id?: string | null;
|
|
42266
|
+
period_end?: string | null;
|
|
42267
|
+
period_start?: string | null;
|
|
42268
|
+
price_per_piece?: number | null;
|
|
42269
|
+
sales_unit?: string | null;
|
|
42270
|
+
supply_line_id?: string | null;
|
|
42271
|
+
supply_type?: string;
|
|
42272
|
+
trade_item_id: string;
|
|
42273
|
+
updated_at?: string;
|
|
42274
|
+
user_id: string;
|
|
42275
|
+
week?: number | null;
|
|
42276
|
+
year?: number | null;
|
|
42277
|
+
};
|
|
42278
|
+
Update: {
|
|
42279
|
+
available_quantity?: number | null;
|
|
42280
|
+
connection_id?: string;
|
|
42281
|
+
created_at?: string;
|
|
42282
|
+
currency?: string | null;
|
|
42283
|
+
endpoint_family?: string | null;
|
|
42284
|
+
environment?: string | null;
|
|
42285
|
+
id?: string;
|
|
42286
|
+
last_error?: string | null;
|
|
42287
|
+
last_status?: number | null;
|
|
42288
|
+
packing_configuration_id?: string | null;
|
|
42289
|
+
period_end?: string | null;
|
|
42290
|
+
period_start?: string | null;
|
|
42291
|
+
price_per_piece?: number | null;
|
|
42292
|
+
sales_unit?: string | null;
|
|
42293
|
+
supply_line_id?: string | null;
|
|
42294
|
+
supply_type?: string;
|
|
42295
|
+
trade_item_id?: string;
|
|
42296
|
+
updated_at?: string;
|
|
42297
|
+
user_id?: string;
|
|
42298
|
+
week?: number | null;
|
|
42299
|
+
year?: number | null;
|
|
42300
|
+
};
|
|
42301
|
+
Relationships: [];
|
|
42302
|
+
};
|
|
42303
|
+
trade_item_warehouse_preferences: {
|
|
42304
|
+
Row: {
|
|
42305
|
+
connection_id: string;
|
|
42306
|
+
created_at: string;
|
|
42307
|
+
id: string;
|
|
42308
|
+
trade_item_id: string;
|
|
42309
|
+
updated_at: string;
|
|
42310
|
+
warehouse_id: string;
|
|
42311
|
+
warehouse_name: string | null;
|
|
42312
|
+
};
|
|
42313
|
+
Insert: {
|
|
42314
|
+
connection_id: string;
|
|
42315
|
+
created_at?: string;
|
|
42316
|
+
id?: string;
|
|
42317
|
+
trade_item_id: string;
|
|
42318
|
+
updated_at?: string;
|
|
42319
|
+
warehouse_id: string;
|
|
42320
|
+
warehouse_name?: string | null;
|
|
42321
|
+
};
|
|
42322
|
+
Update: {
|
|
42323
|
+
connection_id?: string;
|
|
42324
|
+
created_at?: string;
|
|
42325
|
+
id?: string;
|
|
42326
|
+
trade_item_id?: string;
|
|
42327
|
+
updated_at?: string;
|
|
42328
|
+
warehouse_id?: string;
|
|
42329
|
+
warehouse_name?: string | null;
|
|
42330
|
+
};
|
|
42331
|
+
Relationships: [{
|
|
42332
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
42333
|
+
columns: ["connection_id"];
|
|
42334
|
+
isOneToOne: false;
|
|
42335
|
+
referencedRelation: "floriday_connections";
|
|
42336
|
+
referencedColumns: ["id"];
|
|
42337
|
+
}];
|
|
42338
|
+
};
|
|
40557
42339
|
twinfield_connections: {
|
|
40558
42340
|
Row: {
|
|
40559
42341
|
access_token: string | null;
|
|
@@ -40873,6 +42655,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
40873
42655
|
default_invoice_type: string;
|
|
40874
42656
|
default_payment_term_days: number;
|
|
40875
42657
|
default_vat_code: string;
|
|
42658
|
+
invoice_enabled_ao: boolean;
|
|
42659
|
+
invoice_enabled_fo: boolean;
|
|
42660
|
+
invoice_enabled_ho: boolean;
|
|
42661
|
+
invoice_enabled_mo: boolean;
|
|
40876
42662
|
updated_at: string;
|
|
40877
42663
|
user_id: string;
|
|
40878
42664
|
};
|
|
@@ -40882,6 +42668,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
40882
42668
|
default_invoice_type?: string;
|
|
40883
42669
|
default_payment_term_days?: number;
|
|
40884
42670
|
default_vat_code?: string;
|
|
42671
|
+
invoice_enabled_ao?: boolean;
|
|
42672
|
+
invoice_enabled_fo?: boolean;
|
|
42673
|
+
invoice_enabled_ho?: boolean;
|
|
42674
|
+
invoice_enabled_mo?: boolean;
|
|
40885
42675
|
updated_at?: string;
|
|
40886
42676
|
user_id: string;
|
|
40887
42677
|
};
|
|
@@ -40891,6 +42681,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
40891
42681
|
default_invoice_type?: string;
|
|
40892
42682
|
default_payment_term_days?: number;
|
|
40893
42683
|
default_vat_code?: string;
|
|
42684
|
+
invoice_enabled_ao?: boolean;
|
|
42685
|
+
invoice_enabled_fo?: boolean;
|
|
42686
|
+
invoice_enabled_ho?: boolean;
|
|
42687
|
+
invoice_enabled_mo?: boolean;
|
|
40894
42688
|
updated_at?: string;
|
|
40895
42689
|
user_id?: string;
|
|
40896
42690
|
};
|
|
@@ -42185,6 +43979,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42185
43979
|
order_number: string;
|
|
42186
43980
|
}[];
|
|
42187
43981
|
};
|
|
43982
|
+
autolink_product_to_floriday: {
|
|
43983
|
+
Args: {
|
|
43984
|
+
p_product_id: string;
|
|
43985
|
+
};
|
|
43986
|
+
Returns: string;
|
|
43987
|
+
};
|
|
42188
43988
|
backfill_open_order_reservations: {
|
|
42189
43989
|
Args: never;
|
|
42190
43990
|
Returns: {
|
|
@@ -42223,6 +44023,18 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42223
44023
|
Args: never;
|
|
42224
44024
|
Returns: number;
|
|
42225
44025
|
};
|
|
44026
|
+
consume_floriday_rate_limit: {
|
|
44027
|
+
Args: {
|
|
44028
|
+
p_bucket: string;
|
|
44029
|
+
p_capacity: number;
|
|
44030
|
+
p_cost?: number;
|
|
44031
|
+
p_refill_per_sec: number;
|
|
44032
|
+
};
|
|
44033
|
+
Returns: {
|
|
44034
|
+
granted: boolean;
|
|
44035
|
+
wait_ms: number;
|
|
44036
|
+
}[];
|
|
44037
|
+
};
|
|
42226
44038
|
control_get_todays_carts: {
|
|
42227
44039
|
Args: never;
|
|
42228
44040
|
Returns: {
|
|
@@ -42303,6 +44115,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42303
44115
|
status: string;
|
|
42304
44116
|
}[];
|
|
42305
44117
|
};
|
|
44118
|
+
enqueue_cart_replan_if_unlocked: {
|
|
44119
|
+
Args: {
|
|
44120
|
+
p_order_id: string;
|
|
44121
|
+
};
|
|
44122
|
+
Returns: undefined;
|
|
44123
|
+
};
|
|
42306
44124
|
ensure_trade_item_stock_row: {
|
|
42307
44125
|
Args: {
|
|
42308
44126
|
p_key: string;
|
|
@@ -42409,6 +44227,13 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42409
44227
|
office_code: string;
|
|
42410
44228
|
}[];
|
|
42411
44229
|
};
|
|
44230
|
+
get_floricode_record_counts: {
|
|
44231
|
+
Args: never;
|
|
44232
|
+
Returns: {
|
|
44233
|
+
count: number;
|
|
44234
|
+
resource: string;
|
|
44235
|
+
}[];
|
|
44236
|
+
};
|
|
42412
44237
|
get_floriday_agreements_active: {
|
|
42413
44238
|
Args: {
|
|
42414
44239
|
p_on_date?: string;
|
|
@@ -42500,6 +44325,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42500
44325
|
};
|
|
42501
44326
|
Returns: import("../integrations/supabase/types").Json;
|
|
42502
44327
|
};
|
|
44328
|
+
get_offer_delivery_options: {
|
|
44329
|
+
Args: {
|
|
44330
|
+
p_code: string;
|
|
44331
|
+
};
|
|
44332
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44333
|
+
};
|
|
42503
44334
|
get_offer_recipient_by_code: {
|
|
42504
44335
|
Args: {
|
|
42505
44336
|
p_code: string;
|
|
@@ -42564,6 +44395,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42564
44395
|
Args: never;
|
|
42565
44396
|
Returns: boolean;
|
|
42566
44397
|
};
|
|
44398
|
+
is_superadmin: {
|
|
44399
|
+
Args: {
|
|
44400
|
+
_user_id: string;
|
|
44401
|
+
};
|
|
44402
|
+
Returns: boolean;
|
|
44403
|
+
};
|
|
42567
44404
|
local_effective_price: {
|
|
42568
44405
|
Args: {
|
|
42569
44406
|
_customer_id: string;
|
|
@@ -42598,6 +44435,13 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42598
44435
|
};
|
|
42599
44436
|
Returns: string;
|
|
42600
44437
|
};
|
|
44438
|
+
next_order_number_for_date: {
|
|
44439
|
+
Args: {
|
|
44440
|
+
p_created_at?: string;
|
|
44441
|
+
p_prefix: string;
|
|
44442
|
+
};
|
|
44443
|
+
Returns: string;
|
|
44444
|
+
};
|
|
42601
44445
|
next_work_order_number: {
|
|
42602
44446
|
Args: {
|
|
42603
44447
|
p_parent_work_order_id?: string;
|
|
@@ -42605,6 +44449,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42605
44449
|
};
|
|
42606
44450
|
Returns: string;
|
|
42607
44451
|
};
|
|
44452
|
+
normalize_order_source: {
|
|
44453
|
+
Args: {
|
|
44454
|
+
p_src: string;
|
|
44455
|
+
};
|
|
44456
|
+
Returns: string;
|
|
44457
|
+
};
|
|
42608
44458
|
normalize_vat: {
|
|
42609
44459
|
Args: {
|
|
42610
44460
|
v: string;
|
|
@@ -42619,10 +44469,21 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42619
44469
|
};
|
|
42620
44470
|
Returns: boolean;
|
|
42621
44471
|
};
|
|
44472
|
+
order_number_prefix: {
|
|
44473
|
+
Args: {
|
|
44474
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
44475
|
+
p_order_source: string;
|
|
44476
|
+
};
|
|
44477
|
+
Returns: string;
|
|
44478
|
+
};
|
|
42622
44479
|
pickstation_get_orders_raw: {
|
|
42623
44480
|
Args: never;
|
|
42624
44481
|
Returns: import("../integrations/supabase/types").Json;
|
|
42625
44482
|
};
|
|
44483
|
+
pickstation_get_planning_context: {
|
|
44484
|
+
Args: never;
|
|
44485
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44486
|
+
};
|
|
42626
44487
|
pickstation_get_settings: {
|
|
42627
44488
|
Args: never;
|
|
42628
44489
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -42653,6 +44514,28 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42653
44514
|
};
|
|
42654
44515
|
Returns: undefined;
|
|
42655
44516
|
};
|
|
44517
|
+
recompute_order_status: {
|
|
44518
|
+
Args: {
|
|
44519
|
+
p_order_id: string;
|
|
44520
|
+
};
|
|
44521
|
+
Returns: undefined;
|
|
44522
|
+
};
|
|
44523
|
+
recompute_reserved_for_order: {
|
|
44524
|
+
Args: {
|
|
44525
|
+
p_order_id: string;
|
|
44526
|
+
};
|
|
44527
|
+
Returns: undefined;
|
|
44528
|
+
};
|
|
44529
|
+
recompute_reserved_stock: {
|
|
44530
|
+
Args: {
|
|
44531
|
+
p_trade_item_key: string;
|
|
44532
|
+
};
|
|
44533
|
+
Returns: undefined;
|
|
44534
|
+
};
|
|
44535
|
+
refresh_external_customers_grouped: {
|
|
44536
|
+
Args: never;
|
|
44537
|
+
Returns: undefined;
|
|
44538
|
+
};
|
|
42656
44539
|
refresh_floricode_derived_code_lists: {
|
|
42657
44540
|
Args: never;
|
|
42658
44541
|
Returns: {
|
|
@@ -42667,6 +44550,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42667
44550
|
};
|
|
42668
44551
|
Returns: number;
|
|
42669
44552
|
};
|
|
44553
|
+
refresh_floricode_derived_for_products: {
|
|
44554
|
+
Args: {
|
|
44555
|
+
_product_ids: string[];
|
|
44556
|
+
};
|
|
44557
|
+
Returns: number;
|
|
44558
|
+
};
|
|
42670
44559
|
reset_floriday_sync_cursor: {
|
|
42671
44560
|
Args: {
|
|
42672
44561
|
p_connection_id: string;
|
|
@@ -42674,6 +44563,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42674
44563
|
};
|
|
42675
44564
|
Returns: undefined;
|
|
42676
44565
|
};
|
|
44566
|
+
resolve_product_id_for_item: {
|
|
44567
|
+
Args: {
|
|
44568
|
+
p_product_name: string;
|
|
44569
|
+
};
|
|
44570
|
+
Returns: string;
|
|
44571
|
+
};
|
|
42677
44572
|
schedule_floriday_additional_services_sync: {
|
|
42678
44573
|
Args: {
|
|
42679
44574
|
p_apikey: string;
|
|
@@ -42951,6 +44846,24 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42951
44846
|
};
|
|
42952
44847
|
Returns: string[];
|
|
42953
44848
|
};
|
|
44849
|
+
sync_cached_packing_from_product: {
|
|
44850
|
+
Args: {
|
|
44851
|
+
p_product_id: string;
|
|
44852
|
+
};
|
|
44853
|
+
Returns: undefined;
|
|
44854
|
+
};
|
|
44855
|
+
sync_order_cart_item_packing_from_product: {
|
|
44856
|
+
Args: {
|
|
44857
|
+
p_product_id: string;
|
|
44858
|
+
};
|
|
44859
|
+
Returns: undefined;
|
|
44860
|
+
};
|
|
44861
|
+
sync_product_packing_from_floriday_cache: {
|
|
44862
|
+
Args: {
|
|
44863
|
+
p_floriday_id: string;
|
|
44864
|
+
};
|
|
44865
|
+
Returns: undefined;
|
|
44866
|
+
};
|
|
42954
44867
|
twinfield_decrypt: {
|
|
42955
44868
|
Args: {
|
|
42956
44869
|
cipher: string;
|
|
@@ -42963,6 +44876,17 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
|
|
|
42963
44876
|
};
|
|
42964
44877
|
Returns: string;
|
|
42965
44878
|
};
|
|
44879
|
+
upsert_auto_fulfillment_log: {
|
|
44880
|
+
Args: {
|
|
44881
|
+
p_connection_id: string;
|
|
44882
|
+
p_error?: string;
|
|
44883
|
+
p_fulfillment_order_id?: string;
|
|
44884
|
+
p_reason?: string;
|
|
44885
|
+
p_sales_order_id: string;
|
|
44886
|
+
p_status: string;
|
|
44887
|
+
};
|
|
44888
|
+
Returns: undefined;
|
|
44889
|
+
};
|
|
42966
44890
|
};
|
|
42967
44891
|
Enums: {
|
|
42968
44892
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|
|
@@ -42992,7 +44916,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
42992
44916
|
Tables: {
|
|
42993
44917
|
afhandeling_settings: {
|
|
42994
44918
|
Row: {
|
|
44919
|
+
auto_print_delivery_note: boolean;
|
|
44920
|
+
auto_process_paused: boolean;
|
|
42995
44921
|
created_at: string;
|
|
44922
|
+
extra_pick_days_with_stickers: number;
|
|
42996
44923
|
id: string;
|
|
42997
44924
|
max_workdays_earlier_pick: number;
|
|
42998
44925
|
pick_days_before_transport: number;
|
|
@@ -43006,7 +44933,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
43006
44933
|
user_id: string;
|
|
43007
44934
|
};
|
|
43008
44935
|
Insert: {
|
|
44936
|
+
auto_print_delivery_note?: boolean;
|
|
44937
|
+
auto_process_paused?: boolean;
|
|
43009
44938
|
created_at?: string;
|
|
44939
|
+
extra_pick_days_with_stickers?: number;
|
|
43010
44940
|
id?: string;
|
|
43011
44941
|
max_workdays_earlier_pick?: number;
|
|
43012
44942
|
pick_days_before_transport?: number;
|
|
@@ -43020,7 +44950,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
43020
44950
|
user_id: string;
|
|
43021
44951
|
};
|
|
43022
44952
|
Update: {
|
|
44953
|
+
auto_print_delivery_note?: boolean;
|
|
44954
|
+
auto_process_paused?: boolean;
|
|
43023
44955
|
created_at?: string;
|
|
44956
|
+
extra_pick_days_with_stickers?: number;
|
|
43024
44957
|
id?: string;
|
|
43025
44958
|
max_workdays_earlier_pick?: number;
|
|
43026
44959
|
pick_days_before_transport?: number;
|
|
@@ -43812,6 +45745,36 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
43812
45745
|
};
|
|
43813
45746
|
Relationships: [];
|
|
43814
45747
|
};
|
|
45748
|
+
cart_replan_queue: {
|
|
45749
|
+
Row: {
|
|
45750
|
+
attempts: number;
|
|
45751
|
+
last_error: string | null;
|
|
45752
|
+
order_id: string;
|
|
45753
|
+
processed_at: string | null;
|
|
45754
|
+
requested_at: string;
|
|
45755
|
+
};
|
|
45756
|
+
Insert: {
|
|
45757
|
+
attempts?: number;
|
|
45758
|
+
last_error?: string | null;
|
|
45759
|
+
order_id: string;
|
|
45760
|
+
processed_at?: string | null;
|
|
45761
|
+
requested_at?: string;
|
|
45762
|
+
};
|
|
45763
|
+
Update: {
|
|
45764
|
+
attempts?: number;
|
|
45765
|
+
last_error?: string | null;
|
|
45766
|
+
order_id?: string;
|
|
45767
|
+
processed_at?: string | null;
|
|
45768
|
+
requested_at?: string;
|
|
45769
|
+
};
|
|
45770
|
+
Relationships: [{
|
|
45771
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
45772
|
+
columns: ["order_id"];
|
|
45773
|
+
isOneToOne: true;
|
|
45774
|
+
referencedRelation: "orders";
|
|
45775
|
+
referencedColumns: ["id"];
|
|
45776
|
+
}];
|
|
45777
|
+
};
|
|
43815
45778
|
collections: {
|
|
43816
45779
|
Row: {
|
|
43817
45780
|
created_at: string;
|
|
@@ -45937,34 +47900,52 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
45937
47900
|
Row: {
|
|
45938
47901
|
catalog_key: string | null;
|
|
45939
47902
|
catalog_url: string;
|
|
47903
|
+
client_id: string | null;
|
|
47904
|
+
client_secret_ciphertext: string | null;
|
|
47905
|
+
client_secret_last4: string | null;
|
|
45940
47906
|
created_at: string;
|
|
45941
47907
|
id: number;
|
|
45942
47908
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
45943
47909
|
last_test_at: string | null;
|
|
45944
47910
|
last_test_error: string | null;
|
|
45945
47911
|
last_test_ok: boolean | null;
|
|
47912
|
+
last_token_test_at: string | null;
|
|
47913
|
+
last_token_test_error: string | null;
|
|
47914
|
+
last_token_test_ok: boolean | null;
|
|
45946
47915
|
updated_at: string;
|
|
45947
47916
|
};
|
|
45948
47917
|
Insert: {
|
|
45949
47918
|
catalog_key?: string | null;
|
|
45950
47919
|
catalog_url?: string;
|
|
47920
|
+
client_id?: string | null;
|
|
47921
|
+
client_secret_ciphertext?: string | null;
|
|
47922
|
+
client_secret_last4?: string | null;
|
|
45951
47923
|
created_at?: string;
|
|
45952
47924
|
id?: number;
|
|
45953
47925
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
45954
47926
|
last_test_at?: string | null;
|
|
45955
47927
|
last_test_error?: string | null;
|
|
45956
47928
|
last_test_ok?: boolean | null;
|
|
47929
|
+
last_token_test_at?: string | null;
|
|
47930
|
+
last_token_test_error?: string | null;
|
|
47931
|
+
last_token_test_ok?: boolean | null;
|
|
45957
47932
|
updated_at?: string;
|
|
45958
47933
|
};
|
|
45959
47934
|
Update: {
|
|
45960
47935
|
catalog_key?: string | null;
|
|
45961
47936
|
catalog_url?: string;
|
|
47937
|
+
client_id?: string | null;
|
|
47938
|
+
client_secret_ciphertext?: string | null;
|
|
47939
|
+
client_secret_last4?: string | null;
|
|
45962
47940
|
created_at?: string;
|
|
45963
47941
|
id?: number;
|
|
45964
47942
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
45965
47943
|
last_test_at?: string | null;
|
|
45966
47944
|
last_test_error?: string | null;
|
|
45967
47945
|
last_test_ok?: boolean | null;
|
|
47946
|
+
last_token_test_at?: string | null;
|
|
47947
|
+
last_token_test_error?: string | null;
|
|
47948
|
+
last_token_test_ok?: boolean | null;
|
|
45968
47949
|
updated_at?: string;
|
|
45969
47950
|
};
|
|
45970
47951
|
Relationships: [];
|
|
@@ -46197,6 +48178,54 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
46197
48178
|
referencedColumns: ["id"];
|
|
46198
48179
|
}];
|
|
46199
48180
|
};
|
|
48181
|
+
floriday_auto_fulfillment_log: {
|
|
48182
|
+
Row: {
|
|
48183
|
+
attempts: number;
|
|
48184
|
+
connection_id: string;
|
|
48185
|
+
created_at: string;
|
|
48186
|
+
error: string | null;
|
|
48187
|
+
fulfillment_order_id: string | null;
|
|
48188
|
+
id: string;
|
|
48189
|
+
last_attempt_at: string | null;
|
|
48190
|
+
reason: string | null;
|
|
48191
|
+
sales_order_id: string;
|
|
48192
|
+
status: string;
|
|
48193
|
+
updated_at: string;
|
|
48194
|
+
};
|
|
48195
|
+
Insert: {
|
|
48196
|
+
attempts?: number;
|
|
48197
|
+
connection_id: string;
|
|
48198
|
+
created_at?: string;
|
|
48199
|
+
error?: string | null;
|
|
48200
|
+
fulfillment_order_id?: string | null;
|
|
48201
|
+
id?: string;
|
|
48202
|
+
last_attempt_at?: string | null;
|
|
48203
|
+
reason?: string | null;
|
|
48204
|
+
sales_order_id: string;
|
|
48205
|
+
status?: string;
|
|
48206
|
+
updated_at?: string;
|
|
48207
|
+
};
|
|
48208
|
+
Update: {
|
|
48209
|
+
attempts?: number;
|
|
48210
|
+
connection_id?: string;
|
|
48211
|
+
created_at?: string;
|
|
48212
|
+
error?: string | null;
|
|
48213
|
+
fulfillment_order_id?: string | null;
|
|
48214
|
+
id?: string;
|
|
48215
|
+
last_attempt_at?: string | null;
|
|
48216
|
+
reason?: string | null;
|
|
48217
|
+
sales_order_id?: string;
|
|
48218
|
+
status?: string;
|
|
48219
|
+
updated_at?: string;
|
|
48220
|
+
};
|
|
48221
|
+
Relationships: [{
|
|
48222
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
48223
|
+
columns: ["connection_id"];
|
|
48224
|
+
isOneToOne: false;
|
|
48225
|
+
referencedRelation: "floriday_connections";
|
|
48226
|
+
referencedColumns: ["id"];
|
|
48227
|
+
}];
|
|
48228
|
+
};
|
|
46200
48229
|
floriday_base_items_cache: {
|
|
46201
48230
|
Row: {
|
|
46202
48231
|
connection_id: string;
|
|
@@ -47301,6 +49330,24 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
47301
49330
|
referencedColumns: ["id"];
|
|
47302
49331
|
}];
|
|
47303
49332
|
};
|
|
49333
|
+
floriday_rate_limit_state: {
|
|
49334
|
+
Row: {
|
|
49335
|
+
bucket: string;
|
|
49336
|
+
last_refill_at: string;
|
|
49337
|
+
tokens: number;
|
|
49338
|
+
};
|
|
49339
|
+
Insert: {
|
|
49340
|
+
bucket: string;
|
|
49341
|
+
last_refill_at?: string;
|
|
49342
|
+
tokens: number;
|
|
49343
|
+
};
|
|
49344
|
+
Update: {
|
|
49345
|
+
bucket?: string;
|
|
49346
|
+
last_refill_at?: string;
|
|
49347
|
+
tokens?: number;
|
|
49348
|
+
};
|
|
49349
|
+
Relationships: [];
|
|
49350
|
+
};
|
|
47304
49351
|
floriday_resource_schemas: {
|
|
47305
49352
|
Row: {
|
|
47306
49353
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -47724,6 +49771,60 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
47724
49771
|
referencedColumns: ["id"];
|
|
47725
49772
|
}];
|
|
47726
49773
|
};
|
|
49774
|
+
flow_role_assignments: {
|
|
49775
|
+
Row: {
|
|
49776
|
+
created_at: string;
|
|
49777
|
+
id: string;
|
|
49778
|
+
role_id: string;
|
|
49779
|
+
user_id: string;
|
|
49780
|
+
};
|
|
49781
|
+
Insert: {
|
|
49782
|
+
created_at?: string;
|
|
49783
|
+
id?: string;
|
|
49784
|
+
role_id: string;
|
|
49785
|
+
user_id: string;
|
|
49786
|
+
};
|
|
49787
|
+
Update: {
|
|
49788
|
+
created_at?: string;
|
|
49789
|
+
id?: string;
|
|
49790
|
+
role_id?: string;
|
|
49791
|
+
user_id?: string;
|
|
49792
|
+
};
|
|
49793
|
+
Relationships: [{
|
|
49794
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
49795
|
+
columns: ["role_id"];
|
|
49796
|
+
isOneToOne: false;
|
|
49797
|
+
referencedRelation: "flow_roles";
|
|
49798
|
+
referencedColumns: ["id"];
|
|
49799
|
+
}];
|
|
49800
|
+
};
|
|
49801
|
+
flow_roles: {
|
|
49802
|
+
Row: {
|
|
49803
|
+
created_at: string;
|
|
49804
|
+
description: string | null;
|
|
49805
|
+
id: string;
|
|
49806
|
+
module_access: string[];
|
|
49807
|
+
name: string;
|
|
49808
|
+
updated_at: string;
|
|
49809
|
+
};
|
|
49810
|
+
Insert: {
|
|
49811
|
+
created_at?: string;
|
|
49812
|
+
description?: string | null;
|
|
49813
|
+
id?: string;
|
|
49814
|
+
module_access?: string[];
|
|
49815
|
+
name: string;
|
|
49816
|
+
updated_at?: string;
|
|
49817
|
+
};
|
|
49818
|
+
Update: {
|
|
49819
|
+
created_at?: string;
|
|
49820
|
+
description?: string | null;
|
|
49821
|
+
id?: string;
|
|
49822
|
+
module_access?: string[];
|
|
49823
|
+
name?: string;
|
|
49824
|
+
updated_at?: string;
|
|
49825
|
+
};
|
|
49826
|
+
Relationships: [];
|
|
49827
|
+
};
|
|
47727
49828
|
imap_accounts: {
|
|
47728
49829
|
Row: {
|
|
47729
49830
|
created_at: string;
|
|
@@ -48355,6 +50456,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
48355
50456
|
matched_customer_id: string | null;
|
|
48356
50457
|
message_id: string;
|
|
48357
50458
|
notes: string | null;
|
|
50459
|
+
order_number: string | null;
|
|
48358
50460
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
48359
50461
|
reviewed_at: string | null;
|
|
48360
50462
|
reviewed_by: string | null;
|
|
@@ -48370,6 +50472,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
48370
50472
|
matched_customer_id?: string | null;
|
|
48371
50473
|
message_id: string;
|
|
48372
50474
|
notes?: string | null;
|
|
50475
|
+
order_number?: string | null;
|
|
48373
50476
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
48374
50477
|
reviewed_at?: string | null;
|
|
48375
50478
|
reviewed_by?: string | null;
|
|
@@ -48385,6 +50488,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
48385
50488
|
matched_customer_id?: string | null;
|
|
48386
50489
|
message_id?: string;
|
|
48387
50490
|
notes?: string | null;
|
|
50491
|
+
order_number?: string | null;
|
|
48388
50492
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
48389
50493
|
reviewed_at?: string | null;
|
|
48390
50494
|
reviewed_by?: string | null;
|
|
@@ -49241,6 +51345,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
49241
51345
|
id: string;
|
|
49242
51346
|
items: import("../integrations/supabase/types").Json;
|
|
49243
51347
|
notes: string | null;
|
|
51348
|
+
order_number: string | null;
|
|
49244
51349
|
recipient_id: string;
|
|
49245
51350
|
total_amount: number;
|
|
49246
51351
|
};
|
|
@@ -49254,6 +51359,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
49254
51359
|
id?: string;
|
|
49255
51360
|
items?: import("../integrations/supabase/types").Json;
|
|
49256
51361
|
notes?: string | null;
|
|
51362
|
+
order_number?: string | null;
|
|
49257
51363
|
recipient_id: string;
|
|
49258
51364
|
total_amount?: number;
|
|
49259
51365
|
};
|
|
@@ -49267,6 +51373,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
49267
51373
|
id?: string;
|
|
49268
51374
|
items?: import("../integrations/supabase/types").Json;
|
|
49269
51375
|
notes?: string | null;
|
|
51376
|
+
order_number?: string | null;
|
|
49270
51377
|
recipient_id?: string;
|
|
49271
51378
|
total_amount?: number;
|
|
49272
51379
|
};
|
|
@@ -49426,6 +51533,9 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
49426
51533
|
crates_per_layer: number;
|
|
49427
51534
|
created_at: string;
|
|
49428
51535
|
id: string;
|
|
51536
|
+
layer_fraction: number;
|
|
51537
|
+
layer_share_pct: number;
|
|
51538
|
+
layers_per_cart: number;
|
|
49429
51539
|
order_item_id: string | null;
|
|
49430
51540
|
plants_per_crate: number;
|
|
49431
51541
|
product_id: string | null;
|
|
@@ -49437,6 +51547,9 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
49437
51547
|
crates_per_layer?: number;
|
|
49438
51548
|
created_at?: string;
|
|
49439
51549
|
id?: string;
|
|
51550
|
+
layer_fraction?: number;
|
|
51551
|
+
layer_share_pct?: number;
|
|
51552
|
+
layers_per_cart?: number;
|
|
49440
51553
|
order_item_id?: string | null;
|
|
49441
51554
|
plants_per_crate?: number;
|
|
49442
51555
|
product_id?: string | null;
|
|
@@ -49448,6 +51561,9 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
49448
51561
|
crates_per_layer?: number;
|
|
49449
51562
|
created_at?: string;
|
|
49450
51563
|
id?: string;
|
|
51564
|
+
layer_fraction?: number;
|
|
51565
|
+
layer_share_pct?: number;
|
|
51566
|
+
layers_per_cart?: number;
|
|
49451
51567
|
order_item_id?: string | null;
|
|
49452
51568
|
plants_per_crate?: number;
|
|
49453
51569
|
product_id?: string | null;
|
|
@@ -49475,33 +51591,45 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
49475
51591
|
};
|
|
49476
51592
|
order_carts: {
|
|
49477
51593
|
Row: {
|
|
51594
|
+
algorithm_version: number;
|
|
49478
51595
|
cart_number: number;
|
|
49479
51596
|
created_at: string;
|
|
49480
51597
|
id: string;
|
|
49481
51598
|
is_auto: boolean;
|
|
49482
51599
|
is_complete: boolean;
|
|
49483
51600
|
notes: string | null;
|
|
51601
|
+
occupancy_pct: number;
|
|
49484
51602
|
order_id: string;
|
|
51603
|
+
source: string;
|
|
51604
|
+
total_layers_used: number;
|
|
49485
51605
|
updated_at: string;
|
|
49486
51606
|
};
|
|
49487
51607
|
Insert: {
|
|
51608
|
+
algorithm_version?: number;
|
|
49488
51609
|
cart_number: number;
|
|
49489
51610
|
created_at?: string;
|
|
49490
51611
|
id?: string;
|
|
49491
51612
|
is_auto?: boolean;
|
|
49492
51613
|
is_complete?: boolean;
|
|
49493
51614
|
notes?: string | null;
|
|
51615
|
+
occupancy_pct?: number;
|
|
49494
51616
|
order_id: string;
|
|
51617
|
+
source?: string;
|
|
51618
|
+
total_layers_used?: number;
|
|
49495
51619
|
updated_at?: string;
|
|
49496
51620
|
};
|
|
49497
51621
|
Update: {
|
|
51622
|
+
algorithm_version?: number;
|
|
49498
51623
|
cart_number?: number;
|
|
49499
51624
|
created_at?: string;
|
|
49500
51625
|
id?: string;
|
|
49501
51626
|
is_auto?: boolean;
|
|
49502
51627
|
is_complete?: boolean;
|
|
49503
51628
|
notes?: string | null;
|
|
51629
|
+
occupancy_pct?: number;
|
|
49504
51630
|
order_id?: string;
|
|
51631
|
+
source?: string;
|
|
51632
|
+
total_layers_used?: number;
|
|
49505
51633
|
updated_at?: string;
|
|
49506
51634
|
};
|
|
49507
51635
|
Relationships: [{
|
|
@@ -49654,6 +51782,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
49654
51782
|
order_date: string;
|
|
49655
51783
|
order_number: string;
|
|
49656
51784
|
order_source: string;
|
|
51785
|
+
plan_locked_at: string | null;
|
|
51786
|
+
plan_locked_ref: string | null;
|
|
49657
51787
|
status: string;
|
|
49658
51788
|
total: string;
|
|
49659
51789
|
updated_at: string;
|
|
@@ -49670,6 +51800,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
49670
51800
|
order_date?: string;
|
|
49671
51801
|
order_number: string;
|
|
49672
51802
|
order_source?: string;
|
|
51803
|
+
plan_locked_at?: string | null;
|
|
51804
|
+
plan_locked_ref?: string | null;
|
|
49673
51805
|
status?: string;
|
|
49674
51806
|
total?: string;
|
|
49675
51807
|
updated_at?: string;
|
|
@@ -49686,6 +51818,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
49686
51818
|
order_date?: string;
|
|
49687
51819
|
order_number?: string;
|
|
49688
51820
|
order_source?: string;
|
|
51821
|
+
plan_locked_at?: string | null;
|
|
51822
|
+
plan_locked_ref?: string | null;
|
|
49689
51823
|
status?: string;
|
|
49690
51824
|
total?: string;
|
|
49691
51825
|
updated_at?: string;
|
|
@@ -50058,6 +52192,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
50058
52192
|
display_name: string | null;
|
|
50059
52193
|
email: string | null;
|
|
50060
52194
|
id: string;
|
|
52195
|
+
is_superadmin: boolean;
|
|
50061
52196
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
50062
52197
|
tenant_id: string | null;
|
|
50063
52198
|
updated_at: string;
|
|
@@ -50067,6 +52202,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
50067
52202
|
display_name?: string | null;
|
|
50068
52203
|
email?: string | null;
|
|
50069
52204
|
id: string;
|
|
52205
|
+
is_superadmin?: boolean;
|
|
50070
52206
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
50071
52207
|
tenant_id?: string | null;
|
|
50072
52208
|
updated_at?: string;
|
|
@@ -50076,6 +52212,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
50076
52212
|
display_name?: string | null;
|
|
50077
52213
|
email?: string | null;
|
|
50078
52214
|
id?: string;
|
|
52215
|
+
is_superadmin?: boolean;
|
|
50079
52216
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
50080
52217
|
tenant_id?: string | null;
|
|
50081
52218
|
updated_at?: string;
|
|
@@ -50865,6 +53002,24 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
50865
53002
|
};
|
|
50866
53003
|
Relationships: [];
|
|
50867
53004
|
};
|
|
53005
|
+
sidebar_config: {
|
|
53006
|
+
Row: {
|
|
53007
|
+
id: string;
|
|
53008
|
+
module_order: string[];
|
|
53009
|
+
updated_at: string;
|
|
53010
|
+
};
|
|
53011
|
+
Insert: {
|
|
53012
|
+
id?: string;
|
|
53013
|
+
module_order?: string[];
|
|
53014
|
+
updated_at?: string;
|
|
53015
|
+
};
|
|
53016
|
+
Update: {
|
|
53017
|
+
id?: string;
|
|
53018
|
+
module_order?: string[];
|
|
53019
|
+
updated_at?: string;
|
|
53020
|
+
};
|
|
53021
|
+
Relationships: [];
|
|
53022
|
+
};
|
|
50868
53023
|
stock_import_runs: {
|
|
50869
53024
|
Row: {
|
|
50870
53025
|
connection_id: string | null;
|
|
@@ -50923,7 +53078,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
50923
53078
|
reason: string | null;
|
|
50924
53079
|
reserved_after: number | null;
|
|
50925
53080
|
reserved_before: number | null;
|
|
50926
|
-
trade_item_key: string;
|
|
53081
|
+
trade_item_key: string | null;
|
|
50927
53082
|
};
|
|
50928
53083
|
Insert: {
|
|
50929
53084
|
connection_id?: string | null;
|
|
@@ -50940,7 +53095,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
50940
53095
|
reason?: string | null;
|
|
50941
53096
|
reserved_after?: number | null;
|
|
50942
53097
|
reserved_before?: number | null;
|
|
50943
|
-
trade_item_key
|
|
53098
|
+
trade_item_key?: string | null;
|
|
50944
53099
|
};
|
|
50945
53100
|
Update: {
|
|
50946
53101
|
connection_id?: string | null;
|
|
@@ -50957,7 +53112,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
50957
53112
|
reason?: string | null;
|
|
50958
53113
|
reserved_after?: number | null;
|
|
50959
53114
|
reserved_before?: number | null;
|
|
50960
|
-
trade_item_key?: string;
|
|
53115
|
+
trade_item_key?: string | null;
|
|
50961
53116
|
};
|
|
50962
53117
|
Relationships: [];
|
|
50963
53118
|
};
|
|
@@ -51300,6 +53455,114 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
51300
53455
|
};
|
|
51301
53456
|
Relationships: [];
|
|
51302
53457
|
};
|
|
53458
|
+
trade_item_supply_lines: {
|
|
53459
|
+
Row: {
|
|
53460
|
+
available_quantity: number | null;
|
|
53461
|
+
connection_id: string;
|
|
53462
|
+
created_at: string;
|
|
53463
|
+
currency: string | null;
|
|
53464
|
+
endpoint_family: string | null;
|
|
53465
|
+
environment: string | null;
|
|
53466
|
+
id: string;
|
|
53467
|
+
last_error: string | null;
|
|
53468
|
+
last_status: number | null;
|
|
53469
|
+
packing_configuration_id: string | null;
|
|
53470
|
+
period_end: string | null;
|
|
53471
|
+
period_start: string | null;
|
|
53472
|
+
price_per_piece: number | null;
|
|
53473
|
+
sales_unit: string | null;
|
|
53474
|
+
supply_line_id: string | null;
|
|
53475
|
+
supply_type: string;
|
|
53476
|
+
trade_item_id: string;
|
|
53477
|
+
updated_at: string;
|
|
53478
|
+
user_id: string;
|
|
53479
|
+
week: number | null;
|
|
53480
|
+
year: number | null;
|
|
53481
|
+
};
|
|
53482
|
+
Insert: {
|
|
53483
|
+
available_quantity?: number | null;
|
|
53484
|
+
connection_id: string;
|
|
53485
|
+
created_at?: string;
|
|
53486
|
+
currency?: string | null;
|
|
53487
|
+
endpoint_family?: string | null;
|
|
53488
|
+
environment?: string | null;
|
|
53489
|
+
id?: string;
|
|
53490
|
+
last_error?: string | null;
|
|
53491
|
+
last_status?: number | null;
|
|
53492
|
+
packing_configuration_id?: string | null;
|
|
53493
|
+
period_end?: string | null;
|
|
53494
|
+
period_start?: string | null;
|
|
53495
|
+
price_per_piece?: number | null;
|
|
53496
|
+
sales_unit?: string | null;
|
|
53497
|
+
supply_line_id?: string | null;
|
|
53498
|
+
supply_type?: string;
|
|
53499
|
+
trade_item_id: string;
|
|
53500
|
+
updated_at?: string;
|
|
53501
|
+
user_id: string;
|
|
53502
|
+
week?: number | null;
|
|
53503
|
+
year?: number | null;
|
|
53504
|
+
};
|
|
53505
|
+
Update: {
|
|
53506
|
+
available_quantity?: number | null;
|
|
53507
|
+
connection_id?: string;
|
|
53508
|
+
created_at?: string;
|
|
53509
|
+
currency?: string | null;
|
|
53510
|
+
endpoint_family?: string | null;
|
|
53511
|
+
environment?: string | null;
|
|
53512
|
+
id?: string;
|
|
53513
|
+
last_error?: string | null;
|
|
53514
|
+
last_status?: number | null;
|
|
53515
|
+
packing_configuration_id?: string | null;
|
|
53516
|
+
period_end?: string | null;
|
|
53517
|
+
period_start?: string | null;
|
|
53518
|
+
price_per_piece?: number | null;
|
|
53519
|
+
sales_unit?: string | null;
|
|
53520
|
+
supply_line_id?: string | null;
|
|
53521
|
+
supply_type?: string;
|
|
53522
|
+
trade_item_id?: string;
|
|
53523
|
+
updated_at?: string;
|
|
53524
|
+
user_id?: string;
|
|
53525
|
+
week?: number | null;
|
|
53526
|
+
year?: number | null;
|
|
53527
|
+
};
|
|
53528
|
+
Relationships: [];
|
|
53529
|
+
};
|
|
53530
|
+
trade_item_warehouse_preferences: {
|
|
53531
|
+
Row: {
|
|
53532
|
+
connection_id: string;
|
|
53533
|
+
created_at: string;
|
|
53534
|
+
id: string;
|
|
53535
|
+
trade_item_id: string;
|
|
53536
|
+
updated_at: string;
|
|
53537
|
+
warehouse_id: string;
|
|
53538
|
+
warehouse_name: string | null;
|
|
53539
|
+
};
|
|
53540
|
+
Insert: {
|
|
53541
|
+
connection_id: string;
|
|
53542
|
+
created_at?: string;
|
|
53543
|
+
id?: string;
|
|
53544
|
+
trade_item_id: string;
|
|
53545
|
+
updated_at?: string;
|
|
53546
|
+
warehouse_id: string;
|
|
53547
|
+
warehouse_name?: string | null;
|
|
53548
|
+
};
|
|
53549
|
+
Update: {
|
|
53550
|
+
connection_id?: string;
|
|
53551
|
+
created_at?: string;
|
|
53552
|
+
id?: string;
|
|
53553
|
+
trade_item_id?: string;
|
|
53554
|
+
updated_at?: string;
|
|
53555
|
+
warehouse_id?: string;
|
|
53556
|
+
warehouse_name?: string | null;
|
|
53557
|
+
};
|
|
53558
|
+
Relationships: [{
|
|
53559
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
53560
|
+
columns: ["connection_id"];
|
|
53561
|
+
isOneToOne: false;
|
|
53562
|
+
referencedRelation: "floriday_connections";
|
|
53563
|
+
referencedColumns: ["id"];
|
|
53564
|
+
}];
|
|
53565
|
+
};
|
|
51303
53566
|
twinfield_connections: {
|
|
51304
53567
|
Row: {
|
|
51305
53568
|
access_token: string | null;
|
|
@@ -51619,6 +53882,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
51619
53882
|
default_invoice_type: string;
|
|
51620
53883
|
default_payment_term_days: number;
|
|
51621
53884
|
default_vat_code: string;
|
|
53885
|
+
invoice_enabled_ao: boolean;
|
|
53886
|
+
invoice_enabled_fo: boolean;
|
|
53887
|
+
invoice_enabled_ho: boolean;
|
|
53888
|
+
invoice_enabled_mo: boolean;
|
|
51622
53889
|
updated_at: string;
|
|
51623
53890
|
user_id: string;
|
|
51624
53891
|
};
|
|
@@ -51628,6 +53895,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
51628
53895
|
default_invoice_type?: string;
|
|
51629
53896
|
default_payment_term_days?: number;
|
|
51630
53897
|
default_vat_code?: string;
|
|
53898
|
+
invoice_enabled_ao?: boolean;
|
|
53899
|
+
invoice_enabled_fo?: boolean;
|
|
53900
|
+
invoice_enabled_ho?: boolean;
|
|
53901
|
+
invoice_enabled_mo?: boolean;
|
|
51631
53902
|
updated_at?: string;
|
|
51632
53903
|
user_id: string;
|
|
51633
53904
|
};
|
|
@@ -51637,6 +53908,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
51637
53908
|
default_invoice_type?: string;
|
|
51638
53909
|
default_payment_term_days?: number;
|
|
51639
53910
|
default_vat_code?: string;
|
|
53911
|
+
invoice_enabled_ao?: boolean;
|
|
53912
|
+
invoice_enabled_fo?: boolean;
|
|
53913
|
+
invoice_enabled_ho?: boolean;
|
|
53914
|
+
invoice_enabled_mo?: boolean;
|
|
51640
53915
|
updated_at?: string;
|
|
51641
53916
|
user_id?: string;
|
|
51642
53917
|
};
|
|
@@ -52931,6 +55206,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
52931
55206
|
order_number: string;
|
|
52932
55207
|
}[];
|
|
52933
55208
|
};
|
|
55209
|
+
autolink_product_to_floriday: {
|
|
55210
|
+
Args: {
|
|
55211
|
+
p_product_id: string;
|
|
55212
|
+
};
|
|
55213
|
+
Returns: string;
|
|
55214
|
+
};
|
|
52934
55215
|
backfill_open_order_reservations: {
|
|
52935
55216
|
Args: never;
|
|
52936
55217
|
Returns: {
|
|
@@ -52969,6 +55250,18 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
52969
55250
|
Args: never;
|
|
52970
55251
|
Returns: number;
|
|
52971
55252
|
};
|
|
55253
|
+
consume_floriday_rate_limit: {
|
|
55254
|
+
Args: {
|
|
55255
|
+
p_bucket: string;
|
|
55256
|
+
p_capacity: number;
|
|
55257
|
+
p_cost?: number;
|
|
55258
|
+
p_refill_per_sec: number;
|
|
55259
|
+
};
|
|
55260
|
+
Returns: {
|
|
55261
|
+
granted: boolean;
|
|
55262
|
+
wait_ms: number;
|
|
55263
|
+
}[];
|
|
55264
|
+
};
|
|
52972
55265
|
control_get_todays_carts: {
|
|
52973
55266
|
Args: never;
|
|
52974
55267
|
Returns: {
|
|
@@ -53049,6 +55342,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
53049
55342
|
status: string;
|
|
53050
55343
|
}[];
|
|
53051
55344
|
};
|
|
55345
|
+
enqueue_cart_replan_if_unlocked: {
|
|
55346
|
+
Args: {
|
|
55347
|
+
p_order_id: string;
|
|
55348
|
+
};
|
|
55349
|
+
Returns: undefined;
|
|
55350
|
+
};
|
|
53052
55351
|
ensure_trade_item_stock_row: {
|
|
53053
55352
|
Args: {
|
|
53054
55353
|
p_key: string;
|
|
@@ -53155,6 +55454,13 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
53155
55454
|
office_code: string;
|
|
53156
55455
|
}[];
|
|
53157
55456
|
};
|
|
55457
|
+
get_floricode_record_counts: {
|
|
55458
|
+
Args: never;
|
|
55459
|
+
Returns: {
|
|
55460
|
+
count: number;
|
|
55461
|
+
resource: string;
|
|
55462
|
+
}[];
|
|
55463
|
+
};
|
|
53158
55464
|
get_floriday_agreements_active: {
|
|
53159
55465
|
Args: {
|
|
53160
55466
|
p_on_date?: string;
|
|
@@ -53246,6 +55552,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
53246
55552
|
};
|
|
53247
55553
|
Returns: import("../integrations/supabase/types").Json;
|
|
53248
55554
|
};
|
|
55555
|
+
get_offer_delivery_options: {
|
|
55556
|
+
Args: {
|
|
55557
|
+
p_code: string;
|
|
55558
|
+
};
|
|
55559
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
55560
|
+
};
|
|
53249
55561
|
get_offer_recipient_by_code: {
|
|
53250
55562
|
Args: {
|
|
53251
55563
|
p_code: string;
|
|
@@ -53310,6 +55622,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
53310
55622
|
Args: never;
|
|
53311
55623
|
Returns: boolean;
|
|
53312
55624
|
};
|
|
55625
|
+
is_superadmin: {
|
|
55626
|
+
Args: {
|
|
55627
|
+
_user_id: string;
|
|
55628
|
+
};
|
|
55629
|
+
Returns: boolean;
|
|
55630
|
+
};
|
|
53313
55631
|
local_effective_price: {
|
|
53314
55632
|
Args: {
|
|
53315
55633
|
_customer_id: string;
|
|
@@ -53344,6 +55662,13 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
53344
55662
|
};
|
|
53345
55663
|
Returns: string;
|
|
53346
55664
|
};
|
|
55665
|
+
next_order_number_for_date: {
|
|
55666
|
+
Args: {
|
|
55667
|
+
p_created_at?: string;
|
|
55668
|
+
p_prefix: string;
|
|
55669
|
+
};
|
|
55670
|
+
Returns: string;
|
|
55671
|
+
};
|
|
53347
55672
|
next_work_order_number: {
|
|
53348
55673
|
Args: {
|
|
53349
55674
|
p_parent_work_order_id?: string;
|
|
@@ -53351,6 +55676,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
53351
55676
|
};
|
|
53352
55677
|
Returns: string;
|
|
53353
55678
|
};
|
|
55679
|
+
normalize_order_source: {
|
|
55680
|
+
Args: {
|
|
55681
|
+
p_src: string;
|
|
55682
|
+
};
|
|
55683
|
+
Returns: string;
|
|
55684
|
+
};
|
|
53354
55685
|
normalize_vat: {
|
|
53355
55686
|
Args: {
|
|
53356
55687
|
v: string;
|
|
@@ -53365,10 +55696,21 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
53365
55696
|
};
|
|
53366
55697
|
Returns: boolean;
|
|
53367
55698
|
};
|
|
55699
|
+
order_number_prefix: {
|
|
55700
|
+
Args: {
|
|
55701
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
55702
|
+
p_order_source: string;
|
|
55703
|
+
};
|
|
55704
|
+
Returns: string;
|
|
55705
|
+
};
|
|
53368
55706
|
pickstation_get_orders_raw: {
|
|
53369
55707
|
Args: never;
|
|
53370
55708
|
Returns: import("../integrations/supabase/types").Json;
|
|
53371
55709
|
};
|
|
55710
|
+
pickstation_get_planning_context: {
|
|
55711
|
+
Args: never;
|
|
55712
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
55713
|
+
};
|
|
53372
55714
|
pickstation_get_settings: {
|
|
53373
55715
|
Args: never;
|
|
53374
55716
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -53399,6 +55741,28 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
53399
55741
|
};
|
|
53400
55742
|
Returns: undefined;
|
|
53401
55743
|
};
|
|
55744
|
+
recompute_order_status: {
|
|
55745
|
+
Args: {
|
|
55746
|
+
p_order_id: string;
|
|
55747
|
+
};
|
|
55748
|
+
Returns: undefined;
|
|
55749
|
+
};
|
|
55750
|
+
recompute_reserved_for_order: {
|
|
55751
|
+
Args: {
|
|
55752
|
+
p_order_id: string;
|
|
55753
|
+
};
|
|
55754
|
+
Returns: undefined;
|
|
55755
|
+
};
|
|
55756
|
+
recompute_reserved_stock: {
|
|
55757
|
+
Args: {
|
|
55758
|
+
p_trade_item_key: string;
|
|
55759
|
+
};
|
|
55760
|
+
Returns: undefined;
|
|
55761
|
+
};
|
|
55762
|
+
refresh_external_customers_grouped: {
|
|
55763
|
+
Args: never;
|
|
55764
|
+
Returns: undefined;
|
|
55765
|
+
};
|
|
53402
55766
|
refresh_floricode_derived_code_lists: {
|
|
53403
55767
|
Args: never;
|
|
53404
55768
|
Returns: {
|
|
@@ -53413,6 +55777,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
53413
55777
|
};
|
|
53414
55778
|
Returns: number;
|
|
53415
55779
|
};
|
|
55780
|
+
refresh_floricode_derived_for_products: {
|
|
55781
|
+
Args: {
|
|
55782
|
+
_product_ids: string[];
|
|
55783
|
+
};
|
|
55784
|
+
Returns: number;
|
|
55785
|
+
};
|
|
53416
55786
|
reset_floriday_sync_cursor: {
|
|
53417
55787
|
Args: {
|
|
53418
55788
|
p_connection_id: string;
|
|
@@ -53420,6 +55790,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
53420
55790
|
};
|
|
53421
55791
|
Returns: undefined;
|
|
53422
55792
|
};
|
|
55793
|
+
resolve_product_id_for_item: {
|
|
55794
|
+
Args: {
|
|
55795
|
+
p_product_name: string;
|
|
55796
|
+
};
|
|
55797
|
+
Returns: string;
|
|
55798
|
+
};
|
|
53423
55799
|
schedule_floriday_additional_services_sync: {
|
|
53424
55800
|
Args: {
|
|
53425
55801
|
p_apikey: string;
|
|
@@ -53697,6 +56073,24 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
53697
56073
|
};
|
|
53698
56074
|
Returns: string[];
|
|
53699
56075
|
};
|
|
56076
|
+
sync_cached_packing_from_product: {
|
|
56077
|
+
Args: {
|
|
56078
|
+
p_product_id: string;
|
|
56079
|
+
};
|
|
56080
|
+
Returns: undefined;
|
|
56081
|
+
};
|
|
56082
|
+
sync_order_cart_item_packing_from_product: {
|
|
56083
|
+
Args: {
|
|
56084
|
+
p_product_id: string;
|
|
56085
|
+
};
|
|
56086
|
+
Returns: undefined;
|
|
56087
|
+
};
|
|
56088
|
+
sync_product_packing_from_floriday_cache: {
|
|
56089
|
+
Args: {
|
|
56090
|
+
p_floriday_id: string;
|
|
56091
|
+
};
|
|
56092
|
+
Returns: undefined;
|
|
56093
|
+
};
|
|
53700
56094
|
twinfield_decrypt: {
|
|
53701
56095
|
Args: {
|
|
53702
56096
|
cipher: string;
|
|
@@ -53709,6 +56103,17 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
|
|
|
53709
56103
|
};
|
|
53710
56104
|
Returns: string;
|
|
53711
56105
|
};
|
|
56106
|
+
upsert_auto_fulfillment_log: {
|
|
56107
|
+
Args: {
|
|
56108
|
+
p_connection_id: string;
|
|
56109
|
+
p_error?: string;
|
|
56110
|
+
p_fulfillment_order_id?: string;
|
|
56111
|
+
p_reason?: string;
|
|
56112
|
+
p_sales_order_id: string;
|
|
56113
|
+
p_status: string;
|
|
56114
|
+
};
|
|
56115
|
+
Returns: undefined;
|
|
56116
|
+
};
|
|
53712
56117
|
};
|
|
53713
56118
|
Enums: {
|
|
53714
56119
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|