@flowselections/floriday-voorraad 1.0.16 → 1.0.17
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/voorraad/AdditionalPackagingDialog.d.ts +9 -0
- package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts.map +1 -0
- package/dist-lib/components/voorraad/AdditionalPackagingDialog.js +51 -0
- package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
- package/dist-lib/components/voorraad/ArtikelWizard.js +372 -30
- package/dist-lib/components/voorraad/EditArtikelPage.d.ts.map +1 -1
- package/dist-lib/components/voorraad/EditArtikelPage.js +78 -4
- package/dist-lib/components/voorraad/OrderHistoryCard.d.ts +8 -0
- package/dist-lib/components/voorraad/OrderHistoryCard.d.ts.map +1 -0
- package/dist-lib/components/voorraad/OrderHistoryCard.js +133 -0
- package/dist-lib/components/voorraad/PriceStatusBadge.d.ts +7 -0
- package/dist-lib/components/voorraad/PriceStatusBadge.d.ts.map +1 -0
- package/dist-lib/components/voorraad/PriceStatusBadge.js +67 -0
- package/dist-lib/components/voorraad/VoorraadStockCard.d.ts +2 -1
- package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
- package/dist-lib/components/voorraad/VoorraadStockCard.js +5 -4
- package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
- package/dist-lib/components/voorraad/VoorraadTable.js +6 -1
- package/dist-lib/hooks/useLocalTradeItems.d.ts.map +1 -1
- package/dist-lib/hooks/useLocalTradeItems.js +4 -0
- package/dist-lib/hooks/useTradeItemStock.d.ts +14 -1
- package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
- package/dist-lib/hooks/useTradeItemStock.js +76 -17
- package/dist-lib/hooks/useTradeItemSupplyLine.d.ts +21 -0
- package/dist-lib/hooks/useTradeItemSupplyLine.d.ts.map +1 -0
- package/dist-lib/hooks/useTradeItemSupplyLine.js +49 -0
- package/dist-lib/hooks/useVoorraadData.d.ts.map +1 -1
- package/dist-lib/hooks/useVoorraadData.js +35 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +473 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +473 -3
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +473 -3
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +481 -3
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floricode-required-features.functions.d.ts +480 -4
- package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
- package/dist-lib/lib/floricode-required-features.functions.js +20 -2
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts +11264 -0
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-customer-offer.functions.js +175 -0
- package/dist-lib/lib/floriday-gateway.functions.d.ts +13155 -15
- package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.functions.js +150 -0
- package/dist-lib/lib/floriday-gateway.server.d.ts +22 -0
- package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.server.js +3 -0
- package/dist-lib/lib/floriday-payload.d.ts +60 -6
- package/dist-lib/lib/floriday-payload.d.ts.map +1 -1
- package/dist-lib/lib/floriday-payload.js +104 -7
- package/dist-lib/lib/floriday-supply-line.d.ts +53 -0
- package/dist-lib/lib/floriday-supply-line.d.ts.map +1 -0
- package/dist-lib/lib/floriday-supply-line.js +109 -0
- package/dist-lib/lib/floriday-warehouse.functions.d.ts +1420 -10
- package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +947 -7
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.js +6 -1
- package/dist-lib/lib/vrs-catalog.d.ts +27 -0
- package/dist-lib/lib/vrs-catalog.d.ts.map +1 -0
- package/dist-lib/lib/vrs-catalog.js +98 -0
- package/package.json +3 -2
- package/public/flowselections-assets/Voorraad/floriday-logo.png +0 -0
|
@@ -13,7 +13,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
13
13
|
Tables: {
|
|
14
14
|
afhandeling_settings: {
|
|
15
15
|
Row: {
|
|
16
|
+
auto_print_delivery_note: boolean;
|
|
17
|
+
auto_process_paused: boolean;
|
|
16
18
|
created_at: string;
|
|
19
|
+
extra_pick_days_with_stickers: number;
|
|
17
20
|
id: string;
|
|
18
21
|
max_workdays_earlier_pick: number;
|
|
19
22
|
pick_days_before_transport: number;
|
|
@@ -27,7 +30,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
27
30
|
user_id: string;
|
|
28
31
|
};
|
|
29
32
|
Insert: {
|
|
33
|
+
auto_print_delivery_note?: boolean;
|
|
34
|
+
auto_process_paused?: boolean;
|
|
30
35
|
created_at?: string;
|
|
36
|
+
extra_pick_days_with_stickers?: number;
|
|
31
37
|
id?: string;
|
|
32
38
|
max_workdays_earlier_pick?: number;
|
|
33
39
|
pick_days_before_transport?: number;
|
|
@@ -41,7 +47,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
41
47
|
user_id: string;
|
|
42
48
|
};
|
|
43
49
|
Update: {
|
|
50
|
+
auto_print_delivery_note?: boolean;
|
|
51
|
+
auto_process_paused?: boolean;
|
|
44
52
|
created_at?: string;
|
|
53
|
+
extra_pick_days_with_stickers?: number;
|
|
45
54
|
id?: string;
|
|
46
55
|
max_workdays_earlier_pick?: number;
|
|
47
56
|
pick_days_before_transport?: number;
|
|
@@ -833,6 +842,36 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
833
842
|
};
|
|
834
843
|
Relationships: [];
|
|
835
844
|
};
|
|
845
|
+
cart_replan_queue: {
|
|
846
|
+
Row: {
|
|
847
|
+
attempts: number;
|
|
848
|
+
last_error: string | null;
|
|
849
|
+
order_id: string;
|
|
850
|
+
processed_at: string | null;
|
|
851
|
+
requested_at: string;
|
|
852
|
+
};
|
|
853
|
+
Insert: {
|
|
854
|
+
attempts?: number;
|
|
855
|
+
last_error?: string | null;
|
|
856
|
+
order_id: string;
|
|
857
|
+
processed_at?: string | null;
|
|
858
|
+
requested_at?: string;
|
|
859
|
+
};
|
|
860
|
+
Update: {
|
|
861
|
+
attempts?: number;
|
|
862
|
+
last_error?: string | null;
|
|
863
|
+
order_id?: string;
|
|
864
|
+
processed_at?: string | null;
|
|
865
|
+
requested_at?: string;
|
|
866
|
+
};
|
|
867
|
+
Relationships: [{
|
|
868
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
869
|
+
columns: ["order_id"];
|
|
870
|
+
isOneToOne: true;
|
|
871
|
+
referencedRelation: "orders";
|
|
872
|
+
referencedColumns: ["id"];
|
|
873
|
+
}];
|
|
874
|
+
};
|
|
836
875
|
collections: {
|
|
837
876
|
Row: {
|
|
838
877
|
created_at: string;
|
|
@@ -2958,34 +2997,52 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2958
2997
|
Row: {
|
|
2959
2998
|
catalog_key: string | null;
|
|
2960
2999
|
catalog_url: string;
|
|
3000
|
+
client_id: string | null;
|
|
3001
|
+
client_secret_ciphertext: string | null;
|
|
3002
|
+
client_secret_last4: string | null;
|
|
2961
3003
|
created_at: string;
|
|
2962
3004
|
id: number;
|
|
2963
3005
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
2964
3006
|
last_test_at: string | null;
|
|
2965
3007
|
last_test_error: string | null;
|
|
2966
3008
|
last_test_ok: boolean | null;
|
|
3009
|
+
last_token_test_at: string | null;
|
|
3010
|
+
last_token_test_error: string | null;
|
|
3011
|
+
last_token_test_ok: boolean | null;
|
|
2967
3012
|
updated_at: string;
|
|
2968
3013
|
};
|
|
2969
3014
|
Insert: {
|
|
2970
3015
|
catalog_key?: string | null;
|
|
2971
3016
|
catalog_url?: string;
|
|
3017
|
+
client_id?: string | null;
|
|
3018
|
+
client_secret_ciphertext?: string | null;
|
|
3019
|
+
client_secret_last4?: string | null;
|
|
2972
3020
|
created_at?: string;
|
|
2973
3021
|
id?: number;
|
|
2974
3022
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2975
3023
|
last_test_at?: string | null;
|
|
2976
3024
|
last_test_error?: string | null;
|
|
2977
3025
|
last_test_ok?: boolean | null;
|
|
3026
|
+
last_token_test_at?: string | null;
|
|
3027
|
+
last_token_test_error?: string | null;
|
|
3028
|
+
last_token_test_ok?: boolean | null;
|
|
2978
3029
|
updated_at?: string;
|
|
2979
3030
|
};
|
|
2980
3031
|
Update: {
|
|
2981
3032
|
catalog_key?: string | null;
|
|
2982
3033
|
catalog_url?: string;
|
|
3034
|
+
client_id?: string | null;
|
|
3035
|
+
client_secret_ciphertext?: string | null;
|
|
3036
|
+
client_secret_last4?: string | null;
|
|
2983
3037
|
created_at?: string;
|
|
2984
3038
|
id?: number;
|
|
2985
3039
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2986
3040
|
last_test_at?: string | null;
|
|
2987
3041
|
last_test_error?: string | null;
|
|
2988
3042
|
last_test_ok?: boolean | null;
|
|
3043
|
+
last_token_test_at?: string | null;
|
|
3044
|
+
last_token_test_error?: string | null;
|
|
3045
|
+
last_token_test_ok?: boolean | null;
|
|
2989
3046
|
updated_at?: string;
|
|
2990
3047
|
};
|
|
2991
3048
|
Relationships: [];
|
|
@@ -3218,6 +3275,54 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
3218
3275
|
referencedColumns: ["id"];
|
|
3219
3276
|
}];
|
|
3220
3277
|
};
|
|
3278
|
+
floriday_auto_fulfillment_log: {
|
|
3279
|
+
Row: {
|
|
3280
|
+
attempts: number;
|
|
3281
|
+
connection_id: string;
|
|
3282
|
+
created_at: string;
|
|
3283
|
+
error: string | null;
|
|
3284
|
+
fulfillment_order_id: string | null;
|
|
3285
|
+
id: string;
|
|
3286
|
+
last_attempt_at: string | null;
|
|
3287
|
+
reason: string | null;
|
|
3288
|
+
sales_order_id: string;
|
|
3289
|
+
status: string;
|
|
3290
|
+
updated_at: string;
|
|
3291
|
+
};
|
|
3292
|
+
Insert: {
|
|
3293
|
+
attempts?: number;
|
|
3294
|
+
connection_id: string;
|
|
3295
|
+
created_at?: string;
|
|
3296
|
+
error?: string | null;
|
|
3297
|
+
fulfillment_order_id?: string | null;
|
|
3298
|
+
id?: string;
|
|
3299
|
+
last_attempt_at?: string | null;
|
|
3300
|
+
reason?: string | null;
|
|
3301
|
+
sales_order_id: string;
|
|
3302
|
+
status?: string;
|
|
3303
|
+
updated_at?: string;
|
|
3304
|
+
};
|
|
3305
|
+
Update: {
|
|
3306
|
+
attempts?: number;
|
|
3307
|
+
connection_id?: string;
|
|
3308
|
+
created_at?: string;
|
|
3309
|
+
error?: string | null;
|
|
3310
|
+
fulfillment_order_id?: string | null;
|
|
3311
|
+
id?: string;
|
|
3312
|
+
last_attempt_at?: string | null;
|
|
3313
|
+
reason?: string | null;
|
|
3314
|
+
sales_order_id?: string;
|
|
3315
|
+
status?: string;
|
|
3316
|
+
updated_at?: string;
|
|
3317
|
+
};
|
|
3318
|
+
Relationships: [{
|
|
3319
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3320
|
+
columns: ["connection_id"];
|
|
3321
|
+
isOneToOne: false;
|
|
3322
|
+
referencedRelation: "floriday_connections";
|
|
3323
|
+
referencedColumns: ["id"];
|
|
3324
|
+
}];
|
|
3325
|
+
};
|
|
3221
3326
|
floriday_base_items_cache: {
|
|
3222
3327
|
Row: {
|
|
3223
3328
|
connection_id: string;
|
|
@@ -4322,6 +4427,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
4322
4427
|
referencedColumns: ["id"];
|
|
4323
4428
|
}];
|
|
4324
4429
|
};
|
|
4430
|
+
floriday_rate_limit_state: {
|
|
4431
|
+
Row: {
|
|
4432
|
+
bucket: string;
|
|
4433
|
+
last_refill_at: string;
|
|
4434
|
+
tokens: number;
|
|
4435
|
+
};
|
|
4436
|
+
Insert: {
|
|
4437
|
+
bucket: string;
|
|
4438
|
+
last_refill_at?: string;
|
|
4439
|
+
tokens: number;
|
|
4440
|
+
};
|
|
4441
|
+
Update: {
|
|
4442
|
+
bucket?: string;
|
|
4443
|
+
last_refill_at?: string;
|
|
4444
|
+
tokens?: number;
|
|
4445
|
+
};
|
|
4446
|
+
Relationships: [];
|
|
4447
|
+
};
|
|
4325
4448
|
floriday_resource_schemas: {
|
|
4326
4449
|
Row: {
|
|
4327
4450
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -4745,6 +4868,60 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
4745
4868
|
referencedColumns: ["id"];
|
|
4746
4869
|
}];
|
|
4747
4870
|
};
|
|
4871
|
+
flow_role_assignments: {
|
|
4872
|
+
Row: {
|
|
4873
|
+
created_at: string;
|
|
4874
|
+
id: string;
|
|
4875
|
+
role_id: string;
|
|
4876
|
+
user_id: string;
|
|
4877
|
+
};
|
|
4878
|
+
Insert: {
|
|
4879
|
+
created_at?: string;
|
|
4880
|
+
id?: string;
|
|
4881
|
+
role_id: string;
|
|
4882
|
+
user_id: string;
|
|
4883
|
+
};
|
|
4884
|
+
Update: {
|
|
4885
|
+
created_at?: string;
|
|
4886
|
+
id?: string;
|
|
4887
|
+
role_id?: string;
|
|
4888
|
+
user_id?: string;
|
|
4889
|
+
};
|
|
4890
|
+
Relationships: [{
|
|
4891
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
4892
|
+
columns: ["role_id"];
|
|
4893
|
+
isOneToOne: false;
|
|
4894
|
+
referencedRelation: "flow_roles";
|
|
4895
|
+
referencedColumns: ["id"];
|
|
4896
|
+
}];
|
|
4897
|
+
};
|
|
4898
|
+
flow_roles: {
|
|
4899
|
+
Row: {
|
|
4900
|
+
created_at: string;
|
|
4901
|
+
description: string | null;
|
|
4902
|
+
id: string;
|
|
4903
|
+
module_access: string[];
|
|
4904
|
+
name: string;
|
|
4905
|
+
updated_at: string;
|
|
4906
|
+
};
|
|
4907
|
+
Insert: {
|
|
4908
|
+
created_at?: string;
|
|
4909
|
+
description?: string | null;
|
|
4910
|
+
id?: string;
|
|
4911
|
+
module_access?: string[];
|
|
4912
|
+
name: string;
|
|
4913
|
+
updated_at?: string;
|
|
4914
|
+
};
|
|
4915
|
+
Update: {
|
|
4916
|
+
created_at?: string;
|
|
4917
|
+
description?: string | null;
|
|
4918
|
+
id?: string;
|
|
4919
|
+
module_access?: string[];
|
|
4920
|
+
name?: string;
|
|
4921
|
+
updated_at?: string;
|
|
4922
|
+
};
|
|
4923
|
+
Relationships: [];
|
|
4924
|
+
};
|
|
4748
4925
|
imap_accounts: {
|
|
4749
4926
|
Row: {
|
|
4750
4927
|
created_at: string;
|
|
@@ -5376,6 +5553,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5376
5553
|
matched_customer_id: string | null;
|
|
5377
5554
|
message_id: string;
|
|
5378
5555
|
notes: string | null;
|
|
5556
|
+
order_number: string | null;
|
|
5379
5557
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
5380
5558
|
reviewed_at: string | null;
|
|
5381
5559
|
reviewed_by: string | null;
|
|
@@ -5391,6 +5569,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5391
5569
|
matched_customer_id?: string | null;
|
|
5392
5570
|
message_id: string;
|
|
5393
5571
|
notes?: string | null;
|
|
5572
|
+
order_number?: string | null;
|
|
5394
5573
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5395
5574
|
reviewed_at?: string | null;
|
|
5396
5575
|
reviewed_by?: string | null;
|
|
@@ -5406,6 +5585,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5406
5585
|
matched_customer_id?: string | null;
|
|
5407
5586
|
message_id?: string;
|
|
5408
5587
|
notes?: string | null;
|
|
5588
|
+
order_number?: string | null;
|
|
5409
5589
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5410
5590
|
reviewed_at?: string | null;
|
|
5411
5591
|
reviewed_by?: string | null;
|
|
@@ -6262,6 +6442,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6262
6442
|
id: string;
|
|
6263
6443
|
items: import("../integrations/supabase/types").Json;
|
|
6264
6444
|
notes: string | null;
|
|
6445
|
+
order_number: string | null;
|
|
6265
6446
|
recipient_id: string;
|
|
6266
6447
|
total_amount: number;
|
|
6267
6448
|
};
|
|
@@ -6275,6 +6456,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6275
6456
|
id?: string;
|
|
6276
6457
|
items?: import("../integrations/supabase/types").Json;
|
|
6277
6458
|
notes?: string | null;
|
|
6459
|
+
order_number?: string | null;
|
|
6278
6460
|
recipient_id: string;
|
|
6279
6461
|
total_amount?: number;
|
|
6280
6462
|
};
|
|
@@ -6288,6 +6470,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6288
6470
|
id?: string;
|
|
6289
6471
|
items?: import("../integrations/supabase/types").Json;
|
|
6290
6472
|
notes?: string | null;
|
|
6473
|
+
order_number?: string | null;
|
|
6291
6474
|
recipient_id?: string;
|
|
6292
6475
|
total_amount?: number;
|
|
6293
6476
|
};
|
|
@@ -6447,6 +6630,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6447
6630
|
crates_per_layer: number;
|
|
6448
6631
|
created_at: string;
|
|
6449
6632
|
id: string;
|
|
6633
|
+
layer_fraction: number;
|
|
6634
|
+
layer_share_pct: number;
|
|
6635
|
+
layers_per_cart: number;
|
|
6450
6636
|
order_item_id: string | null;
|
|
6451
6637
|
plants_per_crate: number;
|
|
6452
6638
|
product_id: string | null;
|
|
@@ -6458,6 +6644,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6458
6644
|
crates_per_layer?: number;
|
|
6459
6645
|
created_at?: string;
|
|
6460
6646
|
id?: string;
|
|
6647
|
+
layer_fraction?: number;
|
|
6648
|
+
layer_share_pct?: number;
|
|
6649
|
+
layers_per_cart?: number;
|
|
6461
6650
|
order_item_id?: string | null;
|
|
6462
6651
|
plants_per_crate?: number;
|
|
6463
6652
|
product_id?: string | null;
|
|
@@ -6469,6 +6658,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6469
6658
|
crates_per_layer?: number;
|
|
6470
6659
|
created_at?: string;
|
|
6471
6660
|
id?: string;
|
|
6661
|
+
layer_fraction?: number;
|
|
6662
|
+
layer_share_pct?: number;
|
|
6663
|
+
layers_per_cart?: number;
|
|
6472
6664
|
order_item_id?: string | null;
|
|
6473
6665
|
plants_per_crate?: number;
|
|
6474
6666
|
product_id?: string | null;
|
|
@@ -6496,33 +6688,45 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6496
6688
|
};
|
|
6497
6689
|
order_carts: {
|
|
6498
6690
|
Row: {
|
|
6691
|
+
algorithm_version: number;
|
|
6499
6692
|
cart_number: number;
|
|
6500
6693
|
created_at: string;
|
|
6501
6694
|
id: string;
|
|
6502
6695
|
is_auto: boolean;
|
|
6503
6696
|
is_complete: boolean;
|
|
6504
6697
|
notes: string | null;
|
|
6698
|
+
occupancy_pct: number;
|
|
6505
6699
|
order_id: string;
|
|
6700
|
+
source: string;
|
|
6701
|
+
total_layers_used: number;
|
|
6506
6702
|
updated_at: string;
|
|
6507
6703
|
};
|
|
6508
6704
|
Insert: {
|
|
6705
|
+
algorithm_version?: number;
|
|
6509
6706
|
cart_number: number;
|
|
6510
6707
|
created_at?: string;
|
|
6511
6708
|
id?: string;
|
|
6512
6709
|
is_auto?: boolean;
|
|
6513
6710
|
is_complete?: boolean;
|
|
6514
6711
|
notes?: string | null;
|
|
6712
|
+
occupancy_pct?: number;
|
|
6515
6713
|
order_id: string;
|
|
6714
|
+
source?: string;
|
|
6715
|
+
total_layers_used?: number;
|
|
6516
6716
|
updated_at?: string;
|
|
6517
6717
|
};
|
|
6518
6718
|
Update: {
|
|
6719
|
+
algorithm_version?: number;
|
|
6519
6720
|
cart_number?: number;
|
|
6520
6721
|
created_at?: string;
|
|
6521
6722
|
id?: string;
|
|
6522
6723
|
is_auto?: boolean;
|
|
6523
6724
|
is_complete?: boolean;
|
|
6524
6725
|
notes?: string | null;
|
|
6726
|
+
occupancy_pct?: number;
|
|
6525
6727
|
order_id?: string;
|
|
6728
|
+
source?: string;
|
|
6729
|
+
total_layers_used?: number;
|
|
6526
6730
|
updated_at?: string;
|
|
6527
6731
|
};
|
|
6528
6732
|
Relationships: [{
|
|
@@ -6675,6 +6879,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6675
6879
|
order_date: string;
|
|
6676
6880
|
order_number: string;
|
|
6677
6881
|
order_source: string;
|
|
6882
|
+
plan_locked_at: string | null;
|
|
6883
|
+
plan_locked_ref: string | null;
|
|
6678
6884
|
status: string;
|
|
6679
6885
|
total: string;
|
|
6680
6886
|
updated_at: string;
|
|
@@ -6691,6 +6897,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6691
6897
|
order_date?: string;
|
|
6692
6898
|
order_number: string;
|
|
6693
6899
|
order_source?: string;
|
|
6900
|
+
plan_locked_at?: string | null;
|
|
6901
|
+
plan_locked_ref?: string | null;
|
|
6694
6902
|
status?: string;
|
|
6695
6903
|
total?: string;
|
|
6696
6904
|
updated_at?: string;
|
|
@@ -6707,6 +6915,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6707
6915
|
order_date?: string;
|
|
6708
6916
|
order_number?: string;
|
|
6709
6917
|
order_source?: string;
|
|
6918
|
+
plan_locked_at?: string | null;
|
|
6919
|
+
plan_locked_ref?: string | null;
|
|
6710
6920
|
status?: string;
|
|
6711
6921
|
total?: string;
|
|
6712
6922
|
updated_at?: string;
|
|
@@ -7079,6 +7289,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7079
7289
|
display_name: string | null;
|
|
7080
7290
|
email: string | null;
|
|
7081
7291
|
id: string;
|
|
7292
|
+
is_superadmin: boolean;
|
|
7082
7293
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
7083
7294
|
tenant_id: string | null;
|
|
7084
7295
|
updated_at: string;
|
|
@@ -7088,6 +7299,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7088
7299
|
display_name?: string | null;
|
|
7089
7300
|
email?: string | null;
|
|
7090
7301
|
id: string;
|
|
7302
|
+
is_superadmin?: boolean;
|
|
7091
7303
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
7092
7304
|
tenant_id?: string | null;
|
|
7093
7305
|
updated_at?: string;
|
|
@@ -7097,6 +7309,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7097
7309
|
display_name?: string | null;
|
|
7098
7310
|
email?: string | null;
|
|
7099
7311
|
id?: string;
|
|
7312
|
+
is_superadmin?: boolean;
|
|
7100
7313
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
7101
7314
|
tenant_id?: string | null;
|
|
7102
7315
|
updated_at?: string;
|
|
@@ -7886,6 +8099,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7886
8099
|
};
|
|
7887
8100
|
Relationships: [];
|
|
7888
8101
|
};
|
|
8102
|
+
sidebar_config: {
|
|
8103
|
+
Row: {
|
|
8104
|
+
id: string;
|
|
8105
|
+
module_order: string[];
|
|
8106
|
+
updated_at: string;
|
|
8107
|
+
};
|
|
8108
|
+
Insert: {
|
|
8109
|
+
id?: string;
|
|
8110
|
+
module_order?: string[];
|
|
8111
|
+
updated_at?: string;
|
|
8112
|
+
};
|
|
8113
|
+
Update: {
|
|
8114
|
+
id?: string;
|
|
8115
|
+
module_order?: string[];
|
|
8116
|
+
updated_at?: string;
|
|
8117
|
+
};
|
|
8118
|
+
Relationships: [];
|
|
8119
|
+
};
|
|
7889
8120
|
stock_import_runs: {
|
|
7890
8121
|
Row: {
|
|
7891
8122
|
connection_id: string | null;
|
|
@@ -7944,7 +8175,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7944
8175
|
reason: string | null;
|
|
7945
8176
|
reserved_after: number | null;
|
|
7946
8177
|
reserved_before: number | null;
|
|
7947
|
-
trade_item_key: string;
|
|
8178
|
+
trade_item_key: string | null;
|
|
7948
8179
|
};
|
|
7949
8180
|
Insert: {
|
|
7950
8181
|
connection_id?: string | null;
|
|
@@ -7961,7 +8192,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7961
8192
|
reason?: string | null;
|
|
7962
8193
|
reserved_after?: number | null;
|
|
7963
8194
|
reserved_before?: number | null;
|
|
7964
|
-
trade_item_key
|
|
8195
|
+
trade_item_key?: string | null;
|
|
7965
8196
|
};
|
|
7966
8197
|
Update: {
|
|
7967
8198
|
connection_id?: string | null;
|
|
@@ -7978,7 +8209,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7978
8209
|
reason?: string | null;
|
|
7979
8210
|
reserved_after?: number | null;
|
|
7980
8211
|
reserved_before?: number | null;
|
|
7981
|
-
trade_item_key?: string;
|
|
8212
|
+
trade_item_key?: string | null;
|
|
7982
8213
|
};
|
|
7983
8214
|
Relationships: [];
|
|
7984
8215
|
};
|
|
@@ -8321,6 +8552,114 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8321
8552
|
};
|
|
8322
8553
|
Relationships: [];
|
|
8323
8554
|
};
|
|
8555
|
+
trade_item_supply_lines: {
|
|
8556
|
+
Row: {
|
|
8557
|
+
available_quantity: number | null;
|
|
8558
|
+
connection_id: string;
|
|
8559
|
+
created_at: string;
|
|
8560
|
+
currency: string | null;
|
|
8561
|
+
endpoint_family: string | null;
|
|
8562
|
+
environment: string | null;
|
|
8563
|
+
id: string;
|
|
8564
|
+
last_error: string | null;
|
|
8565
|
+
last_status: number | null;
|
|
8566
|
+
packing_configuration_id: string | null;
|
|
8567
|
+
period_end: string | null;
|
|
8568
|
+
period_start: string | null;
|
|
8569
|
+
price_per_piece: number | null;
|
|
8570
|
+
sales_unit: string | null;
|
|
8571
|
+
supply_line_id: string | null;
|
|
8572
|
+
supply_type: string;
|
|
8573
|
+
trade_item_id: string;
|
|
8574
|
+
updated_at: string;
|
|
8575
|
+
user_id: string;
|
|
8576
|
+
week: number | null;
|
|
8577
|
+
year: number | null;
|
|
8578
|
+
};
|
|
8579
|
+
Insert: {
|
|
8580
|
+
available_quantity?: number | null;
|
|
8581
|
+
connection_id: string;
|
|
8582
|
+
created_at?: string;
|
|
8583
|
+
currency?: string | null;
|
|
8584
|
+
endpoint_family?: string | null;
|
|
8585
|
+
environment?: string | null;
|
|
8586
|
+
id?: string;
|
|
8587
|
+
last_error?: string | null;
|
|
8588
|
+
last_status?: number | null;
|
|
8589
|
+
packing_configuration_id?: string | null;
|
|
8590
|
+
period_end?: string | null;
|
|
8591
|
+
period_start?: string | null;
|
|
8592
|
+
price_per_piece?: number | null;
|
|
8593
|
+
sales_unit?: string | null;
|
|
8594
|
+
supply_line_id?: string | null;
|
|
8595
|
+
supply_type?: string;
|
|
8596
|
+
trade_item_id: string;
|
|
8597
|
+
updated_at?: string;
|
|
8598
|
+
user_id: string;
|
|
8599
|
+
week?: number | null;
|
|
8600
|
+
year?: number | null;
|
|
8601
|
+
};
|
|
8602
|
+
Update: {
|
|
8603
|
+
available_quantity?: number | null;
|
|
8604
|
+
connection_id?: string;
|
|
8605
|
+
created_at?: string;
|
|
8606
|
+
currency?: string | null;
|
|
8607
|
+
endpoint_family?: string | null;
|
|
8608
|
+
environment?: string | null;
|
|
8609
|
+
id?: string;
|
|
8610
|
+
last_error?: string | null;
|
|
8611
|
+
last_status?: number | null;
|
|
8612
|
+
packing_configuration_id?: string | null;
|
|
8613
|
+
period_end?: string | null;
|
|
8614
|
+
period_start?: string | null;
|
|
8615
|
+
price_per_piece?: number | null;
|
|
8616
|
+
sales_unit?: string | null;
|
|
8617
|
+
supply_line_id?: string | null;
|
|
8618
|
+
supply_type?: string;
|
|
8619
|
+
trade_item_id?: string;
|
|
8620
|
+
updated_at?: string;
|
|
8621
|
+
user_id?: string;
|
|
8622
|
+
week?: number | null;
|
|
8623
|
+
year?: number | null;
|
|
8624
|
+
};
|
|
8625
|
+
Relationships: [];
|
|
8626
|
+
};
|
|
8627
|
+
trade_item_warehouse_preferences: {
|
|
8628
|
+
Row: {
|
|
8629
|
+
connection_id: string;
|
|
8630
|
+
created_at: string;
|
|
8631
|
+
id: string;
|
|
8632
|
+
trade_item_id: string;
|
|
8633
|
+
updated_at: string;
|
|
8634
|
+
warehouse_id: string;
|
|
8635
|
+
warehouse_name: string | null;
|
|
8636
|
+
};
|
|
8637
|
+
Insert: {
|
|
8638
|
+
connection_id: string;
|
|
8639
|
+
created_at?: string;
|
|
8640
|
+
id?: string;
|
|
8641
|
+
trade_item_id: string;
|
|
8642
|
+
updated_at?: string;
|
|
8643
|
+
warehouse_id: string;
|
|
8644
|
+
warehouse_name?: string | null;
|
|
8645
|
+
};
|
|
8646
|
+
Update: {
|
|
8647
|
+
connection_id?: string;
|
|
8648
|
+
created_at?: string;
|
|
8649
|
+
id?: string;
|
|
8650
|
+
trade_item_id?: string;
|
|
8651
|
+
updated_at?: string;
|
|
8652
|
+
warehouse_id?: string;
|
|
8653
|
+
warehouse_name?: string | null;
|
|
8654
|
+
};
|
|
8655
|
+
Relationships: [{
|
|
8656
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8657
|
+
columns: ["connection_id"];
|
|
8658
|
+
isOneToOne: false;
|
|
8659
|
+
referencedRelation: "floriday_connections";
|
|
8660
|
+
referencedColumns: ["id"];
|
|
8661
|
+
}];
|
|
8662
|
+
};
|
|
8324
8663
|
twinfield_connections: {
|
|
8325
8664
|
Row: {
|
|
8326
8665
|
access_token: string | null;
|
|
@@ -8640,6 +8979,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8640
8979
|
default_invoice_type: string;
|
|
8641
8980
|
default_payment_term_days: number;
|
|
8642
8981
|
default_vat_code: string;
|
|
8982
|
+
invoice_enabled_ao: boolean;
|
|
8983
|
+
invoice_enabled_fo: boolean;
|
|
8984
|
+
invoice_enabled_ho: boolean;
|
|
8985
|
+
invoice_enabled_mo: boolean;
|
|
8643
8986
|
updated_at: string;
|
|
8644
8987
|
user_id: string;
|
|
8645
8988
|
};
|
|
@@ -8649,6 +8992,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8649
8992
|
default_invoice_type?: string;
|
|
8650
8993
|
default_payment_term_days?: number;
|
|
8651
8994
|
default_vat_code?: string;
|
|
8995
|
+
invoice_enabled_ao?: boolean;
|
|
8996
|
+
invoice_enabled_fo?: boolean;
|
|
8997
|
+
invoice_enabled_ho?: boolean;
|
|
8998
|
+
invoice_enabled_mo?: boolean;
|
|
8652
8999
|
updated_at?: string;
|
|
8653
9000
|
user_id: string;
|
|
8654
9001
|
};
|
|
@@ -8658,6 +9005,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8658
9005
|
default_invoice_type?: string;
|
|
8659
9006
|
default_payment_term_days?: number;
|
|
8660
9007
|
default_vat_code?: string;
|
|
9008
|
+
invoice_enabled_ao?: boolean;
|
|
9009
|
+
invoice_enabled_fo?: boolean;
|
|
9010
|
+
invoice_enabled_ho?: boolean;
|
|
9011
|
+
invoice_enabled_mo?: boolean;
|
|
8661
9012
|
updated_at?: string;
|
|
8662
9013
|
user_id?: string;
|
|
8663
9014
|
};
|
|
@@ -9952,6 +10303,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9952
10303
|
order_number: string;
|
|
9953
10304
|
}[];
|
|
9954
10305
|
};
|
|
10306
|
+
autolink_product_to_floriday: {
|
|
10307
|
+
Args: {
|
|
10308
|
+
p_product_id: string;
|
|
10309
|
+
};
|
|
10310
|
+
Returns: string;
|
|
10311
|
+
};
|
|
9955
10312
|
backfill_open_order_reservations: {
|
|
9956
10313
|
Args: never;
|
|
9957
10314
|
Returns: {
|
|
@@ -9990,6 +10347,18 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9990
10347
|
Args: never;
|
|
9991
10348
|
Returns: number;
|
|
9992
10349
|
};
|
|
10350
|
+
consume_floriday_rate_limit: {
|
|
10351
|
+
Args: {
|
|
10352
|
+
p_bucket: string;
|
|
10353
|
+
p_capacity: number;
|
|
10354
|
+
p_cost?: number;
|
|
10355
|
+
p_refill_per_sec: number;
|
|
10356
|
+
};
|
|
10357
|
+
Returns: {
|
|
10358
|
+
granted: boolean;
|
|
10359
|
+
wait_ms: number;
|
|
10360
|
+
}[];
|
|
10361
|
+
};
|
|
9993
10362
|
control_get_todays_carts: {
|
|
9994
10363
|
Args: never;
|
|
9995
10364
|
Returns: {
|
|
@@ -10070,6 +10439,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10070
10439
|
status: string;
|
|
10071
10440
|
}[];
|
|
10072
10441
|
};
|
|
10442
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10443
|
+
Args: {
|
|
10444
|
+
p_order_id: string;
|
|
10445
|
+
};
|
|
10446
|
+
Returns: undefined;
|
|
10447
|
+
};
|
|
10073
10448
|
ensure_trade_item_stock_row: {
|
|
10074
10449
|
Args: {
|
|
10075
10450
|
p_key: string;
|
|
@@ -10176,6 +10551,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10176
10551
|
office_code: string;
|
|
10177
10552
|
}[];
|
|
10178
10553
|
};
|
|
10554
|
+
get_floricode_record_counts: {
|
|
10555
|
+
Args: never;
|
|
10556
|
+
Returns: {
|
|
10557
|
+
count: number;
|
|
10558
|
+
resource: string;
|
|
10559
|
+
}[];
|
|
10560
|
+
};
|
|
10179
10561
|
get_floriday_agreements_active: {
|
|
10180
10562
|
Args: {
|
|
10181
10563
|
p_on_date?: string;
|
|
@@ -10267,6 +10649,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10267
10649
|
};
|
|
10268
10650
|
Returns: import("../integrations/supabase/types").Json;
|
|
10269
10651
|
};
|
|
10652
|
+
get_offer_delivery_options: {
|
|
10653
|
+
Args: {
|
|
10654
|
+
p_code: string;
|
|
10655
|
+
};
|
|
10656
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10657
|
+
};
|
|
10270
10658
|
get_offer_recipient_by_code: {
|
|
10271
10659
|
Args: {
|
|
10272
10660
|
p_code: string;
|
|
@@ -10331,6 +10719,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10331
10719
|
Args: never;
|
|
10332
10720
|
Returns: boolean;
|
|
10333
10721
|
};
|
|
10722
|
+
is_superadmin: {
|
|
10723
|
+
Args: {
|
|
10724
|
+
_user_id: string;
|
|
10725
|
+
};
|
|
10726
|
+
Returns: boolean;
|
|
10727
|
+
};
|
|
10334
10728
|
local_effective_price: {
|
|
10335
10729
|
Args: {
|
|
10336
10730
|
_customer_id: string;
|
|
@@ -10365,6 +10759,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10365
10759
|
};
|
|
10366
10760
|
Returns: string;
|
|
10367
10761
|
};
|
|
10762
|
+
next_order_number_for_date: {
|
|
10763
|
+
Args: {
|
|
10764
|
+
p_created_at?: string;
|
|
10765
|
+
p_prefix: string;
|
|
10766
|
+
};
|
|
10767
|
+
Returns: string;
|
|
10768
|
+
};
|
|
10368
10769
|
next_work_order_number: {
|
|
10369
10770
|
Args: {
|
|
10370
10771
|
p_parent_work_order_id?: string;
|
|
@@ -10372,6 +10773,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10372
10773
|
};
|
|
10373
10774
|
Returns: string;
|
|
10374
10775
|
};
|
|
10776
|
+
normalize_order_source: {
|
|
10777
|
+
Args: {
|
|
10778
|
+
p_src: string;
|
|
10779
|
+
};
|
|
10780
|
+
Returns: string;
|
|
10781
|
+
};
|
|
10375
10782
|
normalize_vat: {
|
|
10376
10783
|
Args: {
|
|
10377
10784
|
v: string;
|
|
@@ -10386,11 +10793,22 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10386
10793
|
};
|
|
10387
10794
|
Returns: boolean;
|
|
10388
10795
|
};
|
|
10796
|
+
order_number_prefix: {
|
|
10797
|
+
Args: {
|
|
10798
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
10799
|
+
p_order_source: string;
|
|
10800
|
+
};
|
|
10801
|
+
Returns: string;
|
|
10802
|
+
};
|
|
10389
10803
|
pickstation_get_orders_raw: {
|
|
10390
10804
|
Args: never;
|
|
10391
10805
|
Returns: import("../integrations/supabase/types").Json;
|
|
10392
10806
|
};
|
|
10393
|
-
|
|
10807
|
+
pickstation_get_planning_context: {
|
|
10808
|
+
Args: never;
|
|
10809
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10810
|
+
};
|
|
10811
|
+
pickstation_get_settings: {
|
|
10394
10812
|
Args: never;
|
|
10395
10813
|
Returns: import("../integrations/supabase/types").Json;
|
|
10396
10814
|
};
|
|
@@ -10420,6 +10838,28 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10420
10838
|
};
|
|
10421
10839
|
Returns: undefined;
|
|
10422
10840
|
};
|
|
10841
|
+
recompute_order_status: {
|
|
10842
|
+
Args: {
|
|
10843
|
+
p_order_id: string;
|
|
10844
|
+
};
|
|
10845
|
+
Returns: undefined;
|
|
10846
|
+
};
|
|
10847
|
+
recompute_reserved_for_order: {
|
|
10848
|
+
Args: {
|
|
10849
|
+
p_order_id: string;
|
|
10850
|
+
};
|
|
10851
|
+
Returns: undefined;
|
|
10852
|
+
};
|
|
10853
|
+
recompute_reserved_stock: {
|
|
10854
|
+
Args: {
|
|
10855
|
+
p_trade_item_key: string;
|
|
10856
|
+
};
|
|
10857
|
+
Returns: undefined;
|
|
10858
|
+
};
|
|
10859
|
+
refresh_external_customers_grouped: {
|
|
10860
|
+
Args: never;
|
|
10861
|
+
Returns: undefined;
|
|
10862
|
+
};
|
|
10423
10863
|
refresh_floricode_derived_code_lists: {
|
|
10424
10864
|
Args: never;
|
|
10425
10865
|
Returns: {
|
|
@@ -10434,6 +10874,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10434
10874
|
};
|
|
10435
10875
|
Returns: number;
|
|
10436
10876
|
};
|
|
10877
|
+
refresh_floricode_derived_for_products: {
|
|
10878
|
+
Args: {
|
|
10879
|
+
_product_ids: string[];
|
|
10880
|
+
};
|
|
10881
|
+
Returns: number;
|
|
10882
|
+
};
|
|
10437
10883
|
reset_floriday_sync_cursor: {
|
|
10438
10884
|
Args: {
|
|
10439
10885
|
p_connection_id: string;
|
|
@@ -10441,6 +10887,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10441
10887
|
};
|
|
10442
10888
|
Returns: undefined;
|
|
10443
10889
|
};
|
|
10890
|
+
resolve_product_id_for_item: {
|
|
10891
|
+
Args: {
|
|
10892
|
+
p_product_name: string;
|
|
10893
|
+
};
|
|
10894
|
+
Returns: string;
|
|
10895
|
+
};
|
|
10444
10896
|
schedule_floriday_additional_services_sync: {
|
|
10445
10897
|
Args: {
|
|
10446
10898
|
p_apikey: string;
|
|
@@ -10718,6 +11170,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10718
11170
|
};
|
|
10719
11171
|
Returns: string[];
|
|
10720
11172
|
};
|
|
11173
|
+
sync_cached_packing_from_product: {
|
|
11174
|
+
Args: {
|
|
11175
|
+
p_product_id: string;
|
|
11176
|
+
};
|
|
11177
|
+
Returns: undefined;
|
|
11178
|
+
};
|
|
11179
|
+
sync_order_cart_item_packing_from_product: {
|
|
11180
|
+
Args: {
|
|
11181
|
+
p_product_id: string;
|
|
11182
|
+
};
|
|
11183
|
+
Returns: undefined;
|
|
11184
|
+
};
|
|
11185
|
+
sync_product_packing_from_floriday_cache: {
|
|
11186
|
+
Args: {
|
|
11187
|
+
p_floriday_id: string;
|
|
11188
|
+
};
|
|
11189
|
+
Returns: undefined;
|
|
11190
|
+
};
|
|
10721
11191
|
twinfield_decrypt: {
|
|
10722
11192
|
Args: {
|
|
10723
11193
|
cipher: string;
|
|
@@ -10749,7 +11219,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
10749
11219
|
Tables: {
|
|
10750
11220
|
afhandeling_settings: {
|
|
10751
11221
|
Row: {
|
|
11222
|
+
auto_print_delivery_note: boolean;
|
|
11223
|
+
auto_process_paused: boolean;
|
|
10752
11224
|
created_at: string;
|
|
11225
|
+
extra_pick_days_with_stickers: number;
|
|
10753
11226
|
id: string;
|
|
10754
11227
|
max_workdays_earlier_pick: number;
|
|
10755
11228
|
pick_days_before_transport: number;
|
|
@@ -10763,7 +11236,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
10763
11236
|
user_id: string;
|
|
10764
11237
|
};
|
|
10765
11238
|
Insert: {
|
|
11239
|
+
auto_print_delivery_note?: boolean;
|
|
11240
|
+
auto_process_paused?: boolean;
|
|
10766
11241
|
created_at?: string;
|
|
11242
|
+
extra_pick_days_with_stickers?: number;
|
|
10767
11243
|
id?: string;
|
|
10768
11244
|
max_workdays_earlier_pick?: number;
|
|
10769
11245
|
pick_days_before_transport?: number;
|
|
@@ -10777,7 +11253,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
10777
11253
|
user_id: string;
|
|
10778
11254
|
};
|
|
10779
11255
|
Update: {
|
|
11256
|
+
auto_print_delivery_note?: boolean;
|
|
11257
|
+
auto_process_paused?: boolean;
|
|
10780
11258
|
created_at?: string;
|
|
11259
|
+
extra_pick_days_with_stickers?: number;
|
|
10781
11260
|
id?: string;
|
|
10782
11261
|
max_workdays_earlier_pick?: number;
|
|
10783
11262
|
pick_days_before_transport?: number;
|
|
@@ -11569,6 +12048,36 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
11569
12048
|
};
|
|
11570
12049
|
Relationships: [];
|
|
11571
12050
|
};
|
|
12051
|
+
cart_replan_queue: {
|
|
12052
|
+
Row: {
|
|
12053
|
+
attempts: number;
|
|
12054
|
+
last_error: string | null;
|
|
12055
|
+
order_id: string;
|
|
12056
|
+
processed_at: string | null;
|
|
12057
|
+
requested_at: string;
|
|
12058
|
+
};
|
|
12059
|
+
Insert: {
|
|
12060
|
+
attempts?: number;
|
|
12061
|
+
last_error?: string | null;
|
|
12062
|
+
order_id: string;
|
|
12063
|
+
processed_at?: string | null;
|
|
12064
|
+
requested_at?: string;
|
|
12065
|
+
};
|
|
12066
|
+
Update: {
|
|
12067
|
+
attempts?: number;
|
|
12068
|
+
last_error?: string | null;
|
|
12069
|
+
order_id?: string;
|
|
12070
|
+
processed_at?: string | null;
|
|
12071
|
+
requested_at?: string;
|
|
12072
|
+
};
|
|
12073
|
+
Relationships: [{
|
|
12074
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
12075
|
+
columns: ["order_id"];
|
|
12076
|
+
isOneToOne: true;
|
|
12077
|
+
referencedRelation: "orders";
|
|
12078
|
+
referencedColumns: ["id"];
|
|
12079
|
+
}];
|
|
12080
|
+
};
|
|
11572
12081
|
collections: {
|
|
11573
12082
|
Row: {
|
|
11574
12083
|
created_at: string;
|
|
@@ -13694,34 +14203,52 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
13694
14203
|
Row: {
|
|
13695
14204
|
catalog_key: string | null;
|
|
13696
14205
|
catalog_url: string;
|
|
14206
|
+
client_id: string | null;
|
|
14207
|
+
client_secret_ciphertext: string | null;
|
|
14208
|
+
client_secret_last4: string | null;
|
|
13697
14209
|
created_at: string;
|
|
13698
14210
|
id: number;
|
|
13699
14211
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
13700
14212
|
last_test_at: string | null;
|
|
13701
14213
|
last_test_error: string | null;
|
|
13702
14214
|
last_test_ok: boolean | null;
|
|
14215
|
+
last_token_test_at: string | null;
|
|
14216
|
+
last_token_test_error: string | null;
|
|
14217
|
+
last_token_test_ok: boolean | null;
|
|
13703
14218
|
updated_at: string;
|
|
13704
14219
|
};
|
|
13705
14220
|
Insert: {
|
|
13706
14221
|
catalog_key?: string | null;
|
|
13707
14222
|
catalog_url?: string;
|
|
14223
|
+
client_id?: string | null;
|
|
14224
|
+
client_secret_ciphertext?: string | null;
|
|
14225
|
+
client_secret_last4?: string | null;
|
|
13708
14226
|
created_at?: string;
|
|
13709
14227
|
id?: number;
|
|
13710
14228
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
13711
14229
|
last_test_at?: string | null;
|
|
13712
14230
|
last_test_error?: string | null;
|
|
13713
14231
|
last_test_ok?: boolean | null;
|
|
14232
|
+
last_token_test_at?: string | null;
|
|
14233
|
+
last_token_test_error?: string | null;
|
|
14234
|
+
last_token_test_ok?: boolean | null;
|
|
13714
14235
|
updated_at?: string;
|
|
13715
14236
|
};
|
|
13716
14237
|
Update: {
|
|
13717
14238
|
catalog_key?: string | null;
|
|
13718
14239
|
catalog_url?: string;
|
|
14240
|
+
client_id?: string | null;
|
|
14241
|
+
client_secret_ciphertext?: string | null;
|
|
14242
|
+
client_secret_last4?: string | null;
|
|
13719
14243
|
created_at?: string;
|
|
13720
14244
|
id?: number;
|
|
13721
14245
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
13722
14246
|
last_test_at?: string | null;
|
|
13723
14247
|
last_test_error?: string | null;
|
|
13724
14248
|
last_test_ok?: boolean | null;
|
|
14249
|
+
last_token_test_at?: string | null;
|
|
14250
|
+
last_token_test_error?: string | null;
|
|
14251
|
+
last_token_test_ok?: boolean | null;
|
|
13725
14252
|
updated_at?: string;
|
|
13726
14253
|
};
|
|
13727
14254
|
Relationships: [];
|
|
@@ -13954,6 +14481,54 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
13954
14481
|
referencedColumns: ["id"];
|
|
13955
14482
|
}];
|
|
13956
14483
|
};
|
|
14484
|
+
floriday_auto_fulfillment_log: {
|
|
14485
|
+
Row: {
|
|
14486
|
+
attempts: number;
|
|
14487
|
+
connection_id: string;
|
|
14488
|
+
created_at: string;
|
|
14489
|
+
error: string | null;
|
|
14490
|
+
fulfillment_order_id: string | null;
|
|
14491
|
+
id: string;
|
|
14492
|
+
last_attempt_at: string | null;
|
|
14493
|
+
reason: string | null;
|
|
14494
|
+
sales_order_id: string;
|
|
14495
|
+
status: string;
|
|
14496
|
+
updated_at: string;
|
|
14497
|
+
};
|
|
14498
|
+
Insert: {
|
|
14499
|
+
attempts?: number;
|
|
14500
|
+
connection_id: string;
|
|
14501
|
+
created_at?: string;
|
|
14502
|
+
error?: string | null;
|
|
14503
|
+
fulfillment_order_id?: string | null;
|
|
14504
|
+
id?: string;
|
|
14505
|
+
last_attempt_at?: string | null;
|
|
14506
|
+
reason?: string | null;
|
|
14507
|
+
sales_order_id: string;
|
|
14508
|
+
status?: string;
|
|
14509
|
+
updated_at?: string;
|
|
14510
|
+
};
|
|
14511
|
+
Update: {
|
|
14512
|
+
attempts?: number;
|
|
14513
|
+
connection_id?: string;
|
|
14514
|
+
created_at?: string;
|
|
14515
|
+
error?: string | null;
|
|
14516
|
+
fulfillment_order_id?: string | null;
|
|
14517
|
+
id?: string;
|
|
14518
|
+
last_attempt_at?: string | null;
|
|
14519
|
+
reason?: string | null;
|
|
14520
|
+
sales_order_id?: string;
|
|
14521
|
+
status?: string;
|
|
14522
|
+
updated_at?: string;
|
|
14523
|
+
};
|
|
14524
|
+
Relationships: [{
|
|
14525
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
14526
|
+
columns: ["connection_id"];
|
|
14527
|
+
isOneToOne: false;
|
|
14528
|
+
referencedRelation: "floriday_connections";
|
|
14529
|
+
referencedColumns: ["id"];
|
|
14530
|
+
}];
|
|
14531
|
+
};
|
|
13957
14532
|
floriday_base_items_cache: {
|
|
13958
14533
|
Row: {
|
|
13959
14534
|
connection_id: string;
|
|
@@ -15058,6 +15633,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15058
15633
|
referencedColumns: ["id"];
|
|
15059
15634
|
}];
|
|
15060
15635
|
};
|
|
15636
|
+
floriday_rate_limit_state: {
|
|
15637
|
+
Row: {
|
|
15638
|
+
bucket: string;
|
|
15639
|
+
last_refill_at: string;
|
|
15640
|
+
tokens: number;
|
|
15641
|
+
};
|
|
15642
|
+
Insert: {
|
|
15643
|
+
bucket: string;
|
|
15644
|
+
last_refill_at?: string;
|
|
15645
|
+
tokens: number;
|
|
15646
|
+
};
|
|
15647
|
+
Update: {
|
|
15648
|
+
bucket?: string;
|
|
15649
|
+
last_refill_at?: string;
|
|
15650
|
+
tokens?: number;
|
|
15651
|
+
};
|
|
15652
|
+
Relationships: [];
|
|
15653
|
+
};
|
|
15061
15654
|
floriday_resource_schemas: {
|
|
15062
15655
|
Row: {
|
|
15063
15656
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -15481,6 +16074,60 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15481
16074
|
referencedColumns: ["id"];
|
|
15482
16075
|
}];
|
|
15483
16076
|
};
|
|
16077
|
+
flow_role_assignments: {
|
|
16078
|
+
Row: {
|
|
16079
|
+
created_at: string;
|
|
16080
|
+
id: string;
|
|
16081
|
+
role_id: string;
|
|
16082
|
+
user_id: string;
|
|
16083
|
+
};
|
|
16084
|
+
Insert: {
|
|
16085
|
+
created_at?: string;
|
|
16086
|
+
id?: string;
|
|
16087
|
+
role_id: string;
|
|
16088
|
+
user_id: string;
|
|
16089
|
+
};
|
|
16090
|
+
Update: {
|
|
16091
|
+
created_at?: string;
|
|
16092
|
+
id?: string;
|
|
16093
|
+
role_id?: string;
|
|
16094
|
+
user_id?: string;
|
|
16095
|
+
};
|
|
16096
|
+
Relationships: [{
|
|
16097
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
16098
|
+
columns: ["role_id"];
|
|
16099
|
+
isOneToOne: false;
|
|
16100
|
+
referencedRelation: "flow_roles";
|
|
16101
|
+
referencedColumns: ["id"];
|
|
16102
|
+
}];
|
|
16103
|
+
};
|
|
16104
|
+
flow_roles: {
|
|
16105
|
+
Row: {
|
|
16106
|
+
created_at: string;
|
|
16107
|
+
description: string | null;
|
|
16108
|
+
id: string;
|
|
16109
|
+
module_access: string[];
|
|
16110
|
+
name: string;
|
|
16111
|
+
updated_at: string;
|
|
16112
|
+
};
|
|
16113
|
+
Insert: {
|
|
16114
|
+
created_at?: string;
|
|
16115
|
+
description?: string | null;
|
|
16116
|
+
id?: string;
|
|
16117
|
+
module_access?: string[];
|
|
16118
|
+
name: string;
|
|
16119
|
+
updated_at?: string;
|
|
16120
|
+
};
|
|
16121
|
+
Update: {
|
|
16122
|
+
created_at?: string;
|
|
16123
|
+
description?: string | null;
|
|
16124
|
+
id?: string;
|
|
16125
|
+
module_access?: string[];
|
|
16126
|
+
name?: string;
|
|
16127
|
+
updated_at?: string;
|
|
16128
|
+
};
|
|
16129
|
+
Relationships: [];
|
|
16130
|
+
};
|
|
15484
16131
|
imap_accounts: {
|
|
15485
16132
|
Row: {
|
|
15486
16133
|
created_at: string;
|
|
@@ -16112,6 +16759,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
16112
16759
|
matched_customer_id: string | null;
|
|
16113
16760
|
message_id: string;
|
|
16114
16761
|
notes: string | null;
|
|
16762
|
+
order_number: string | null;
|
|
16115
16763
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
16116
16764
|
reviewed_at: string | null;
|
|
16117
16765
|
reviewed_by: string | null;
|
|
@@ -16127,6 +16775,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
16127
16775
|
matched_customer_id?: string | null;
|
|
16128
16776
|
message_id: string;
|
|
16129
16777
|
notes?: string | null;
|
|
16778
|
+
order_number?: string | null;
|
|
16130
16779
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
16131
16780
|
reviewed_at?: string | null;
|
|
16132
16781
|
reviewed_by?: string | null;
|
|
@@ -16142,6 +16791,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
16142
16791
|
matched_customer_id?: string | null;
|
|
16143
16792
|
message_id?: string;
|
|
16144
16793
|
notes?: string | null;
|
|
16794
|
+
order_number?: string | null;
|
|
16145
16795
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
16146
16796
|
reviewed_at?: string | null;
|
|
16147
16797
|
reviewed_by?: string | null;
|
|
@@ -16998,6 +17648,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
16998
17648
|
id: string;
|
|
16999
17649
|
items: import("../integrations/supabase/types").Json;
|
|
17000
17650
|
notes: string | null;
|
|
17651
|
+
order_number: string | null;
|
|
17001
17652
|
recipient_id: string;
|
|
17002
17653
|
total_amount: number;
|
|
17003
17654
|
};
|
|
@@ -17011,6 +17662,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17011
17662
|
id?: string;
|
|
17012
17663
|
items?: import("../integrations/supabase/types").Json;
|
|
17013
17664
|
notes?: string | null;
|
|
17665
|
+
order_number?: string | null;
|
|
17014
17666
|
recipient_id: string;
|
|
17015
17667
|
total_amount?: number;
|
|
17016
17668
|
};
|
|
@@ -17024,6 +17676,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17024
17676
|
id?: string;
|
|
17025
17677
|
items?: import("../integrations/supabase/types").Json;
|
|
17026
17678
|
notes?: string | null;
|
|
17679
|
+
order_number?: string | null;
|
|
17027
17680
|
recipient_id?: string;
|
|
17028
17681
|
total_amount?: number;
|
|
17029
17682
|
};
|
|
@@ -17183,6 +17836,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17183
17836
|
crates_per_layer: number;
|
|
17184
17837
|
created_at: string;
|
|
17185
17838
|
id: string;
|
|
17839
|
+
layer_fraction: number;
|
|
17840
|
+
layer_share_pct: number;
|
|
17841
|
+
layers_per_cart: number;
|
|
17186
17842
|
order_item_id: string | null;
|
|
17187
17843
|
plants_per_crate: number;
|
|
17188
17844
|
product_id: string | null;
|
|
@@ -17194,6 +17850,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17194
17850
|
crates_per_layer?: number;
|
|
17195
17851
|
created_at?: string;
|
|
17196
17852
|
id?: string;
|
|
17853
|
+
layer_fraction?: number;
|
|
17854
|
+
layer_share_pct?: number;
|
|
17855
|
+
layers_per_cart?: number;
|
|
17197
17856
|
order_item_id?: string | null;
|
|
17198
17857
|
plants_per_crate?: number;
|
|
17199
17858
|
product_id?: string | null;
|
|
@@ -17205,6 +17864,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17205
17864
|
crates_per_layer?: number;
|
|
17206
17865
|
created_at?: string;
|
|
17207
17866
|
id?: string;
|
|
17867
|
+
layer_fraction?: number;
|
|
17868
|
+
layer_share_pct?: number;
|
|
17869
|
+
layers_per_cart?: number;
|
|
17208
17870
|
order_item_id?: string | null;
|
|
17209
17871
|
plants_per_crate?: number;
|
|
17210
17872
|
product_id?: string | null;
|
|
@@ -17232,33 +17894,45 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17232
17894
|
};
|
|
17233
17895
|
order_carts: {
|
|
17234
17896
|
Row: {
|
|
17897
|
+
algorithm_version: number;
|
|
17235
17898
|
cart_number: number;
|
|
17236
17899
|
created_at: string;
|
|
17237
17900
|
id: string;
|
|
17238
17901
|
is_auto: boolean;
|
|
17239
17902
|
is_complete: boolean;
|
|
17240
17903
|
notes: string | null;
|
|
17904
|
+
occupancy_pct: number;
|
|
17241
17905
|
order_id: string;
|
|
17906
|
+
source: string;
|
|
17907
|
+
total_layers_used: number;
|
|
17242
17908
|
updated_at: string;
|
|
17243
17909
|
};
|
|
17244
17910
|
Insert: {
|
|
17911
|
+
algorithm_version?: number;
|
|
17245
17912
|
cart_number: number;
|
|
17246
17913
|
created_at?: string;
|
|
17247
17914
|
id?: string;
|
|
17248
17915
|
is_auto?: boolean;
|
|
17249
17916
|
is_complete?: boolean;
|
|
17250
17917
|
notes?: string | null;
|
|
17918
|
+
occupancy_pct?: number;
|
|
17251
17919
|
order_id: string;
|
|
17920
|
+
source?: string;
|
|
17921
|
+
total_layers_used?: number;
|
|
17252
17922
|
updated_at?: string;
|
|
17253
17923
|
};
|
|
17254
17924
|
Update: {
|
|
17925
|
+
algorithm_version?: number;
|
|
17255
17926
|
cart_number?: number;
|
|
17256
17927
|
created_at?: string;
|
|
17257
17928
|
id?: string;
|
|
17258
17929
|
is_auto?: boolean;
|
|
17259
17930
|
is_complete?: boolean;
|
|
17260
17931
|
notes?: string | null;
|
|
17932
|
+
occupancy_pct?: number;
|
|
17261
17933
|
order_id?: string;
|
|
17934
|
+
source?: string;
|
|
17935
|
+
total_layers_used?: number;
|
|
17262
17936
|
updated_at?: string;
|
|
17263
17937
|
};
|
|
17264
17938
|
Relationships: [{
|
|
@@ -17411,6 +18085,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17411
18085
|
order_date: string;
|
|
17412
18086
|
order_number: string;
|
|
17413
18087
|
order_source: string;
|
|
18088
|
+
plan_locked_at: string | null;
|
|
18089
|
+
plan_locked_ref: string | null;
|
|
17414
18090
|
status: string;
|
|
17415
18091
|
total: string;
|
|
17416
18092
|
updated_at: string;
|
|
@@ -17427,6 +18103,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17427
18103
|
order_date?: string;
|
|
17428
18104
|
order_number: string;
|
|
17429
18105
|
order_source?: string;
|
|
18106
|
+
plan_locked_at?: string | null;
|
|
18107
|
+
plan_locked_ref?: string | null;
|
|
17430
18108
|
status?: string;
|
|
17431
18109
|
total?: string;
|
|
17432
18110
|
updated_at?: string;
|
|
@@ -17443,6 +18121,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17443
18121
|
order_date?: string;
|
|
17444
18122
|
order_number?: string;
|
|
17445
18123
|
order_source?: string;
|
|
18124
|
+
plan_locked_at?: string | null;
|
|
18125
|
+
plan_locked_ref?: string | null;
|
|
17446
18126
|
status?: string;
|
|
17447
18127
|
total?: string;
|
|
17448
18128
|
updated_at?: string;
|
|
@@ -17815,6 +18495,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17815
18495
|
display_name: string | null;
|
|
17816
18496
|
email: string | null;
|
|
17817
18497
|
id: string;
|
|
18498
|
+
is_superadmin: boolean;
|
|
17818
18499
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
17819
18500
|
tenant_id: string | null;
|
|
17820
18501
|
updated_at: string;
|
|
@@ -17824,6 +18505,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17824
18505
|
display_name?: string | null;
|
|
17825
18506
|
email?: string | null;
|
|
17826
18507
|
id: string;
|
|
18508
|
+
is_superadmin?: boolean;
|
|
17827
18509
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
17828
18510
|
tenant_id?: string | null;
|
|
17829
18511
|
updated_at?: string;
|
|
@@ -17833,6 +18515,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17833
18515
|
display_name?: string | null;
|
|
17834
18516
|
email?: string | null;
|
|
17835
18517
|
id?: string;
|
|
18518
|
+
is_superadmin?: boolean;
|
|
17836
18519
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
17837
18520
|
tenant_id?: string | null;
|
|
17838
18521
|
updated_at?: string;
|
|
@@ -18622,6 +19305,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18622
19305
|
};
|
|
18623
19306
|
Relationships: [];
|
|
18624
19307
|
};
|
|
19308
|
+
sidebar_config: {
|
|
19309
|
+
Row: {
|
|
19310
|
+
id: string;
|
|
19311
|
+
module_order: string[];
|
|
19312
|
+
updated_at: string;
|
|
19313
|
+
};
|
|
19314
|
+
Insert: {
|
|
19315
|
+
id?: string;
|
|
19316
|
+
module_order?: string[];
|
|
19317
|
+
updated_at?: string;
|
|
19318
|
+
};
|
|
19319
|
+
Update: {
|
|
19320
|
+
id?: string;
|
|
19321
|
+
module_order?: string[];
|
|
19322
|
+
updated_at?: string;
|
|
19323
|
+
};
|
|
19324
|
+
Relationships: [];
|
|
19325
|
+
};
|
|
18625
19326
|
stock_import_runs: {
|
|
18626
19327
|
Row: {
|
|
18627
19328
|
connection_id: string | null;
|
|
@@ -18680,7 +19381,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18680
19381
|
reason: string | null;
|
|
18681
19382
|
reserved_after: number | null;
|
|
18682
19383
|
reserved_before: number | null;
|
|
18683
|
-
trade_item_key: string;
|
|
19384
|
+
trade_item_key: string | null;
|
|
18684
19385
|
};
|
|
18685
19386
|
Insert: {
|
|
18686
19387
|
connection_id?: string | null;
|
|
@@ -18697,7 +19398,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18697
19398
|
reason?: string | null;
|
|
18698
19399
|
reserved_after?: number | null;
|
|
18699
19400
|
reserved_before?: number | null;
|
|
18700
|
-
trade_item_key
|
|
19401
|
+
trade_item_key?: string | null;
|
|
18701
19402
|
};
|
|
18702
19403
|
Update: {
|
|
18703
19404
|
connection_id?: string | null;
|
|
@@ -18714,7 +19415,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18714
19415
|
reason?: string | null;
|
|
18715
19416
|
reserved_after?: number | null;
|
|
18716
19417
|
reserved_before?: number | null;
|
|
18717
|
-
trade_item_key?: string;
|
|
19418
|
+
trade_item_key?: string | null;
|
|
18718
19419
|
};
|
|
18719
19420
|
Relationships: [];
|
|
18720
19421
|
};
|
|
@@ -19057,6 +19758,114 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19057
19758
|
};
|
|
19058
19759
|
Relationships: [];
|
|
19059
19760
|
};
|
|
19761
|
+
trade_item_supply_lines: {
|
|
19762
|
+
Row: {
|
|
19763
|
+
available_quantity: number | null;
|
|
19764
|
+
connection_id: string;
|
|
19765
|
+
created_at: string;
|
|
19766
|
+
currency: string | null;
|
|
19767
|
+
endpoint_family: string | null;
|
|
19768
|
+
environment: string | null;
|
|
19769
|
+
id: string;
|
|
19770
|
+
last_error: string | null;
|
|
19771
|
+
last_status: number | null;
|
|
19772
|
+
packing_configuration_id: string | null;
|
|
19773
|
+
period_end: string | null;
|
|
19774
|
+
period_start: string | null;
|
|
19775
|
+
price_per_piece: number | null;
|
|
19776
|
+
sales_unit: string | null;
|
|
19777
|
+
supply_line_id: string | null;
|
|
19778
|
+
supply_type: string;
|
|
19779
|
+
trade_item_id: string;
|
|
19780
|
+
updated_at: string;
|
|
19781
|
+
user_id: string;
|
|
19782
|
+
week: number | null;
|
|
19783
|
+
year: number | null;
|
|
19784
|
+
};
|
|
19785
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
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
|
+
Relationships: [];
|
|
19832
|
+
};
|
|
19833
|
+
trade_item_warehouse_preferences: {
|
|
19834
|
+
Row: {
|
|
19835
|
+
connection_id: string;
|
|
19836
|
+
created_at: string;
|
|
19837
|
+
id: string;
|
|
19838
|
+
trade_item_id: string;
|
|
19839
|
+
updated_at: string;
|
|
19840
|
+
warehouse_id: string;
|
|
19841
|
+
warehouse_name: string | null;
|
|
19842
|
+
};
|
|
19843
|
+
Insert: {
|
|
19844
|
+
connection_id: string;
|
|
19845
|
+
created_at?: string;
|
|
19846
|
+
id?: string;
|
|
19847
|
+
trade_item_id: string;
|
|
19848
|
+
updated_at?: string;
|
|
19849
|
+
warehouse_id: string;
|
|
19850
|
+
warehouse_name?: string | null;
|
|
19851
|
+
};
|
|
19852
|
+
Update: {
|
|
19853
|
+
connection_id?: string;
|
|
19854
|
+
created_at?: string;
|
|
19855
|
+
id?: string;
|
|
19856
|
+
trade_item_id?: string;
|
|
19857
|
+
updated_at?: string;
|
|
19858
|
+
warehouse_id?: string;
|
|
19859
|
+
warehouse_name?: string | null;
|
|
19860
|
+
};
|
|
19861
|
+
Relationships: [{
|
|
19862
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
19863
|
+
columns: ["connection_id"];
|
|
19864
|
+
isOneToOne: false;
|
|
19865
|
+
referencedRelation: "floriday_connections";
|
|
19866
|
+
referencedColumns: ["id"];
|
|
19867
|
+
}];
|
|
19868
|
+
};
|
|
19060
19869
|
twinfield_connections: {
|
|
19061
19870
|
Row: {
|
|
19062
19871
|
access_token: string | null;
|
|
@@ -19376,6 +20185,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19376
20185
|
default_invoice_type: string;
|
|
19377
20186
|
default_payment_term_days: number;
|
|
19378
20187
|
default_vat_code: string;
|
|
20188
|
+
invoice_enabled_ao: boolean;
|
|
20189
|
+
invoice_enabled_fo: boolean;
|
|
20190
|
+
invoice_enabled_ho: boolean;
|
|
20191
|
+
invoice_enabled_mo: boolean;
|
|
19379
20192
|
updated_at: string;
|
|
19380
20193
|
user_id: string;
|
|
19381
20194
|
};
|
|
@@ -19385,6 +20198,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19385
20198
|
default_invoice_type?: string;
|
|
19386
20199
|
default_payment_term_days?: number;
|
|
19387
20200
|
default_vat_code?: string;
|
|
20201
|
+
invoice_enabled_ao?: boolean;
|
|
20202
|
+
invoice_enabled_fo?: boolean;
|
|
20203
|
+
invoice_enabled_ho?: boolean;
|
|
20204
|
+
invoice_enabled_mo?: boolean;
|
|
19388
20205
|
updated_at?: string;
|
|
19389
20206
|
user_id: string;
|
|
19390
20207
|
};
|
|
@@ -19394,6 +20211,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19394
20211
|
default_invoice_type?: string;
|
|
19395
20212
|
default_payment_term_days?: number;
|
|
19396
20213
|
default_vat_code?: string;
|
|
20214
|
+
invoice_enabled_ao?: boolean;
|
|
20215
|
+
invoice_enabled_fo?: boolean;
|
|
20216
|
+
invoice_enabled_ho?: boolean;
|
|
20217
|
+
invoice_enabled_mo?: boolean;
|
|
19397
20218
|
updated_at?: string;
|
|
19398
20219
|
user_id?: string;
|
|
19399
20220
|
};
|
|
@@ -20688,6 +21509,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
20688
21509
|
order_number: string;
|
|
20689
21510
|
}[];
|
|
20690
21511
|
};
|
|
21512
|
+
autolink_product_to_floriday: {
|
|
21513
|
+
Args: {
|
|
21514
|
+
p_product_id: string;
|
|
21515
|
+
};
|
|
21516
|
+
Returns: string;
|
|
21517
|
+
};
|
|
20691
21518
|
backfill_open_order_reservations: {
|
|
20692
21519
|
Args: never;
|
|
20693
21520
|
Returns: {
|
|
@@ -20726,6 +21553,18 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
20726
21553
|
Args: never;
|
|
20727
21554
|
Returns: number;
|
|
20728
21555
|
};
|
|
21556
|
+
consume_floriday_rate_limit: {
|
|
21557
|
+
Args: {
|
|
21558
|
+
p_bucket: string;
|
|
21559
|
+
p_capacity: number;
|
|
21560
|
+
p_cost?: number;
|
|
21561
|
+
p_refill_per_sec: number;
|
|
21562
|
+
};
|
|
21563
|
+
Returns: {
|
|
21564
|
+
granted: boolean;
|
|
21565
|
+
wait_ms: number;
|
|
21566
|
+
}[];
|
|
21567
|
+
};
|
|
20729
21568
|
control_get_todays_carts: {
|
|
20730
21569
|
Args: never;
|
|
20731
21570
|
Returns: {
|
|
@@ -20806,6 +21645,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
20806
21645
|
status: string;
|
|
20807
21646
|
}[];
|
|
20808
21647
|
};
|
|
21648
|
+
enqueue_cart_replan_if_unlocked: {
|
|
21649
|
+
Args: {
|
|
21650
|
+
p_order_id: string;
|
|
21651
|
+
};
|
|
21652
|
+
Returns: undefined;
|
|
21653
|
+
};
|
|
20809
21654
|
ensure_trade_item_stock_row: {
|
|
20810
21655
|
Args: {
|
|
20811
21656
|
p_key: string;
|
|
@@ -20912,6 +21757,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
20912
21757
|
office_code: string;
|
|
20913
21758
|
}[];
|
|
20914
21759
|
};
|
|
21760
|
+
get_floricode_record_counts: {
|
|
21761
|
+
Args: never;
|
|
21762
|
+
Returns: {
|
|
21763
|
+
count: number;
|
|
21764
|
+
resource: string;
|
|
21765
|
+
}[];
|
|
21766
|
+
};
|
|
20915
21767
|
get_floriday_agreements_active: {
|
|
20916
21768
|
Args: {
|
|
20917
21769
|
p_on_date?: string;
|
|
@@ -21003,6 +21855,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
21003
21855
|
};
|
|
21004
21856
|
Returns: import("../integrations/supabase/types").Json;
|
|
21005
21857
|
};
|
|
21858
|
+
get_offer_delivery_options: {
|
|
21859
|
+
Args: {
|
|
21860
|
+
p_code: string;
|
|
21861
|
+
};
|
|
21862
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21863
|
+
};
|
|
21006
21864
|
get_offer_recipient_by_code: {
|
|
21007
21865
|
Args: {
|
|
21008
21866
|
p_code: string;
|
|
@@ -21067,6 +21925,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
21067
21925
|
Args: never;
|
|
21068
21926
|
Returns: boolean;
|
|
21069
21927
|
};
|
|
21928
|
+
is_superadmin: {
|
|
21929
|
+
Args: {
|
|
21930
|
+
_user_id: string;
|
|
21931
|
+
};
|
|
21932
|
+
Returns: boolean;
|
|
21933
|
+
};
|
|
21070
21934
|
local_effective_price: {
|
|
21071
21935
|
Args: {
|
|
21072
21936
|
_customer_id: string;
|
|
@@ -21101,6 +21965,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
21101
21965
|
};
|
|
21102
21966
|
Returns: string;
|
|
21103
21967
|
};
|
|
21968
|
+
next_order_number_for_date: {
|
|
21969
|
+
Args: {
|
|
21970
|
+
p_created_at?: string;
|
|
21971
|
+
p_prefix: string;
|
|
21972
|
+
};
|
|
21973
|
+
Returns: string;
|
|
21974
|
+
};
|
|
21104
21975
|
next_work_order_number: {
|
|
21105
21976
|
Args: {
|
|
21106
21977
|
p_parent_work_order_id?: string;
|
|
@@ -21108,6 +21979,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
21108
21979
|
};
|
|
21109
21980
|
Returns: string;
|
|
21110
21981
|
};
|
|
21982
|
+
normalize_order_source: {
|
|
21983
|
+
Args: {
|
|
21984
|
+
p_src: string;
|
|
21985
|
+
};
|
|
21986
|
+
Returns: string;
|
|
21987
|
+
};
|
|
21111
21988
|
normalize_vat: {
|
|
21112
21989
|
Args: {
|
|
21113
21990
|
v: string;
|
|
@@ -21122,10 +21999,21 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
21122
21999
|
};
|
|
21123
22000
|
Returns: boolean;
|
|
21124
22001
|
};
|
|
22002
|
+
order_number_prefix: {
|
|
22003
|
+
Args: {
|
|
22004
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
22005
|
+
p_order_source: string;
|
|
22006
|
+
};
|
|
22007
|
+
Returns: string;
|
|
22008
|
+
};
|
|
21125
22009
|
pickstation_get_orders_raw: {
|
|
21126
22010
|
Args: never;
|
|
21127
22011
|
Returns: import("../integrations/supabase/types").Json;
|
|
21128
22012
|
};
|
|
22013
|
+
pickstation_get_planning_context: {
|
|
22014
|
+
Args: never;
|
|
22015
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22016
|
+
};
|
|
21129
22017
|
pickstation_get_settings: {
|
|
21130
22018
|
Args: never;
|
|
21131
22019
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -21156,6 +22044,28 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
21156
22044
|
};
|
|
21157
22045
|
Returns: undefined;
|
|
21158
22046
|
};
|
|
22047
|
+
recompute_order_status: {
|
|
22048
|
+
Args: {
|
|
22049
|
+
p_order_id: string;
|
|
22050
|
+
};
|
|
22051
|
+
Returns: undefined;
|
|
22052
|
+
};
|
|
22053
|
+
recompute_reserved_for_order: {
|
|
22054
|
+
Args: {
|
|
22055
|
+
p_order_id: string;
|
|
22056
|
+
};
|
|
22057
|
+
Returns: undefined;
|
|
22058
|
+
};
|
|
22059
|
+
recompute_reserved_stock: {
|
|
22060
|
+
Args: {
|
|
22061
|
+
p_trade_item_key: string;
|
|
22062
|
+
};
|
|
22063
|
+
Returns: undefined;
|
|
22064
|
+
};
|
|
22065
|
+
refresh_external_customers_grouped: {
|
|
22066
|
+
Args: never;
|
|
22067
|
+
Returns: undefined;
|
|
22068
|
+
};
|
|
21159
22069
|
refresh_floricode_derived_code_lists: {
|
|
21160
22070
|
Args: never;
|
|
21161
22071
|
Returns: {
|
|
@@ -21170,6 +22080,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
21170
22080
|
};
|
|
21171
22081
|
Returns: number;
|
|
21172
22082
|
};
|
|
22083
|
+
refresh_floricode_derived_for_products: {
|
|
22084
|
+
Args: {
|
|
22085
|
+
_product_ids: string[];
|
|
22086
|
+
};
|
|
22087
|
+
Returns: number;
|
|
22088
|
+
};
|
|
21173
22089
|
reset_floriday_sync_cursor: {
|
|
21174
22090
|
Args: {
|
|
21175
22091
|
p_connection_id: string;
|
|
@@ -21177,6 +22093,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
21177
22093
|
};
|
|
21178
22094
|
Returns: undefined;
|
|
21179
22095
|
};
|
|
22096
|
+
resolve_product_id_for_item: {
|
|
22097
|
+
Args: {
|
|
22098
|
+
p_product_name: string;
|
|
22099
|
+
};
|
|
22100
|
+
Returns: string;
|
|
22101
|
+
};
|
|
21180
22102
|
schedule_floriday_additional_services_sync: {
|
|
21181
22103
|
Args: {
|
|
21182
22104
|
p_apikey: string;
|
|
@@ -21454,6 +22376,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
21454
22376
|
};
|
|
21455
22377
|
Returns: string[];
|
|
21456
22378
|
};
|
|
22379
|
+
sync_cached_packing_from_product: {
|
|
22380
|
+
Args: {
|
|
22381
|
+
p_product_id: string;
|
|
22382
|
+
};
|
|
22383
|
+
Returns: undefined;
|
|
22384
|
+
};
|
|
22385
|
+
sync_order_cart_item_packing_from_product: {
|
|
22386
|
+
Args: {
|
|
22387
|
+
p_product_id: string;
|
|
22388
|
+
};
|
|
22389
|
+
Returns: undefined;
|
|
22390
|
+
};
|
|
22391
|
+
sync_product_packing_from_floriday_cache: {
|
|
22392
|
+
Args: {
|
|
22393
|
+
p_floriday_id: string;
|
|
22394
|
+
};
|
|
22395
|
+
Returns: undefined;
|
|
22396
|
+
};
|
|
21457
22397
|
twinfield_decrypt: {
|
|
21458
22398
|
Args: {
|
|
21459
22399
|
cipher: string;
|