@flowselections/floriday-verkoop-module 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +4 -0
- package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -0
- package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.js +95 -0
- package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +6 -0
- package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -0
- package/dist-lib/components/verkoop/CartAssignmentWizard.js +194 -0
- package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/CreateOrderPage.js +14 -4
- package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +4 -0
- package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -0
- package/dist-lib/components/verkoop/OrderAfleverbrievenCard.js +44 -0
- package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +5 -0
- package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -0
- package/dist-lib/components/verkoop/OrderKarindelingCard.js +160 -0
- package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailView.js +6 -3
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.js +39 -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/cart-lock.functions.d.ts +11225 -0
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -0
- package/dist-lib/lib/cart-lock.functions.js +47 -0
- package/dist-lib/lib/cart-planner.d.ts +38 -0
- package/dist-lib/lib/cart-planner.d.ts.map +1 -0
- package/dist-lib/lib/cart-planner.js +217 -0
- package/dist-lib/lib/cart-replan.functions.d.ts +22467 -0
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -0
- package/dist-lib/lib/cart-replan.functions.js +203 -0
- package/dist-lib/lib/create-order.functions.d.ts +25821 -77
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +158 -3
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +33640 -0
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-auto-fulfillment.functions.js +65 -0
- package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts +21 -0
- package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts.map +1 -0
- package/dist-lib/lib/floriday-auto-fulfillment.server.js +352 -0
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +11220 -0
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-logistic-labels.functions.js +171 -0
- package/dist-lib/lib/floriday-public.functions.d.ts +3313 -37
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.js +45 -47
- package/dist-lib/lib/floriday-writes.functions.d.ts +2365 -15
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.d.ts +2 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.js +46 -20
- package/dist-lib/lib/salesorders.functions.d.ts +1420 -10
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.js +8 -0
- package/dist-lib/lib/tradeitems.functions.d.ts +473 -3
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.d.ts +1 -0
- package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.js +121 -39
- package/package.json +1 -1
|
@@ -8,7 +8,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8
8
|
Tables: {
|
|
9
9
|
afhandeling_settings: {
|
|
10
10
|
Row: {
|
|
11
|
+
auto_print_delivery_note: boolean;
|
|
12
|
+
auto_process_paused: boolean;
|
|
11
13
|
created_at: string;
|
|
14
|
+
extra_pick_days_with_stickers: number;
|
|
12
15
|
id: string;
|
|
13
16
|
max_workdays_earlier_pick: number;
|
|
14
17
|
pick_days_before_transport: number;
|
|
@@ -22,7 +25,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
22
25
|
user_id: string;
|
|
23
26
|
};
|
|
24
27
|
Insert: {
|
|
28
|
+
auto_print_delivery_note?: boolean;
|
|
29
|
+
auto_process_paused?: boolean;
|
|
25
30
|
created_at?: string;
|
|
31
|
+
extra_pick_days_with_stickers?: number;
|
|
26
32
|
id?: string;
|
|
27
33
|
max_workdays_earlier_pick?: number;
|
|
28
34
|
pick_days_before_transport?: number;
|
|
@@ -36,7 +42,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
36
42
|
user_id: string;
|
|
37
43
|
};
|
|
38
44
|
Update: {
|
|
45
|
+
auto_print_delivery_note?: boolean;
|
|
46
|
+
auto_process_paused?: boolean;
|
|
39
47
|
created_at?: string;
|
|
48
|
+
extra_pick_days_with_stickers?: number;
|
|
40
49
|
id?: string;
|
|
41
50
|
max_workdays_earlier_pick?: number;
|
|
42
51
|
pick_days_before_transport?: number;
|
|
@@ -828,6 +837,36 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
828
837
|
};
|
|
829
838
|
Relationships: [];
|
|
830
839
|
};
|
|
840
|
+
cart_replan_queue: {
|
|
841
|
+
Row: {
|
|
842
|
+
attempts: number;
|
|
843
|
+
last_error: string | null;
|
|
844
|
+
order_id: string;
|
|
845
|
+
processed_at: string | null;
|
|
846
|
+
requested_at: string;
|
|
847
|
+
};
|
|
848
|
+
Insert: {
|
|
849
|
+
attempts?: number;
|
|
850
|
+
last_error?: string | null;
|
|
851
|
+
order_id: string;
|
|
852
|
+
processed_at?: string | null;
|
|
853
|
+
requested_at?: string;
|
|
854
|
+
};
|
|
855
|
+
Update: {
|
|
856
|
+
attempts?: number;
|
|
857
|
+
last_error?: string | null;
|
|
858
|
+
order_id?: string;
|
|
859
|
+
processed_at?: string | null;
|
|
860
|
+
requested_at?: string;
|
|
861
|
+
};
|
|
862
|
+
Relationships: [{
|
|
863
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
864
|
+
columns: ["order_id"];
|
|
865
|
+
isOneToOne: true;
|
|
866
|
+
referencedRelation: "orders";
|
|
867
|
+
referencedColumns: ["id"];
|
|
868
|
+
}];
|
|
869
|
+
};
|
|
831
870
|
collections: {
|
|
832
871
|
Row: {
|
|
833
872
|
created_at: string;
|
|
@@ -2953,34 +2992,52 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
2953
2992
|
Row: {
|
|
2954
2993
|
catalog_key: string | null;
|
|
2955
2994
|
catalog_url: string;
|
|
2995
|
+
client_id: string | null;
|
|
2996
|
+
client_secret_ciphertext: string | null;
|
|
2997
|
+
client_secret_last4: string | null;
|
|
2956
2998
|
created_at: string;
|
|
2957
2999
|
id: number;
|
|
2958
3000
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
2959
3001
|
last_test_at: string | null;
|
|
2960
3002
|
last_test_error: string | null;
|
|
2961
3003
|
last_test_ok: boolean | null;
|
|
3004
|
+
last_token_test_at: string | null;
|
|
3005
|
+
last_token_test_error: string | null;
|
|
3006
|
+
last_token_test_ok: boolean | null;
|
|
2962
3007
|
updated_at: string;
|
|
2963
3008
|
};
|
|
2964
3009
|
Insert: {
|
|
2965
3010
|
catalog_key?: string | null;
|
|
2966
3011
|
catalog_url?: string;
|
|
3012
|
+
client_id?: string | null;
|
|
3013
|
+
client_secret_ciphertext?: string | null;
|
|
3014
|
+
client_secret_last4?: string | null;
|
|
2967
3015
|
created_at?: string;
|
|
2968
3016
|
id?: number;
|
|
2969
3017
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2970
3018
|
last_test_at?: string | null;
|
|
2971
3019
|
last_test_error?: string | null;
|
|
2972
3020
|
last_test_ok?: boolean | null;
|
|
3021
|
+
last_token_test_at?: string | null;
|
|
3022
|
+
last_token_test_error?: string | null;
|
|
3023
|
+
last_token_test_ok?: boolean | null;
|
|
2973
3024
|
updated_at?: string;
|
|
2974
3025
|
};
|
|
2975
3026
|
Update: {
|
|
2976
3027
|
catalog_key?: string | null;
|
|
2977
3028
|
catalog_url?: string;
|
|
3029
|
+
client_id?: string | null;
|
|
3030
|
+
client_secret_ciphertext?: string | null;
|
|
3031
|
+
client_secret_last4?: string | null;
|
|
2978
3032
|
created_at?: string;
|
|
2979
3033
|
id?: number;
|
|
2980
3034
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2981
3035
|
last_test_at?: string | null;
|
|
2982
3036
|
last_test_error?: string | null;
|
|
2983
3037
|
last_test_ok?: boolean | null;
|
|
3038
|
+
last_token_test_at?: string | null;
|
|
3039
|
+
last_token_test_error?: string | null;
|
|
3040
|
+
last_token_test_ok?: boolean | null;
|
|
2984
3041
|
updated_at?: string;
|
|
2985
3042
|
};
|
|
2986
3043
|
Relationships: [];
|
|
@@ -3213,6 +3270,54 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
3213
3270
|
referencedColumns: ["id"];
|
|
3214
3271
|
}];
|
|
3215
3272
|
};
|
|
3273
|
+
floriday_auto_fulfillment_log: {
|
|
3274
|
+
Row: {
|
|
3275
|
+
attempts: number;
|
|
3276
|
+
connection_id: string;
|
|
3277
|
+
created_at: string;
|
|
3278
|
+
error: string | null;
|
|
3279
|
+
fulfillment_order_id: string | null;
|
|
3280
|
+
id: string;
|
|
3281
|
+
last_attempt_at: string | null;
|
|
3282
|
+
reason: string | null;
|
|
3283
|
+
sales_order_id: string;
|
|
3284
|
+
status: string;
|
|
3285
|
+
updated_at: string;
|
|
3286
|
+
};
|
|
3287
|
+
Insert: {
|
|
3288
|
+
attempts?: number;
|
|
3289
|
+
connection_id: string;
|
|
3290
|
+
created_at?: string;
|
|
3291
|
+
error?: string | null;
|
|
3292
|
+
fulfillment_order_id?: string | null;
|
|
3293
|
+
id?: string;
|
|
3294
|
+
last_attempt_at?: string | null;
|
|
3295
|
+
reason?: string | null;
|
|
3296
|
+
sales_order_id: string;
|
|
3297
|
+
status?: string;
|
|
3298
|
+
updated_at?: string;
|
|
3299
|
+
};
|
|
3300
|
+
Update: {
|
|
3301
|
+
attempts?: number;
|
|
3302
|
+
connection_id?: string;
|
|
3303
|
+
created_at?: string;
|
|
3304
|
+
error?: string | null;
|
|
3305
|
+
fulfillment_order_id?: string | null;
|
|
3306
|
+
id?: string;
|
|
3307
|
+
last_attempt_at?: string | null;
|
|
3308
|
+
reason?: string | null;
|
|
3309
|
+
sales_order_id?: string;
|
|
3310
|
+
status?: string;
|
|
3311
|
+
updated_at?: string;
|
|
3312
|
+
};
|
|
3313
|
+
Relationships: [{
|
|
3314
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3315
|
+
columns: ["connection_id"];
|
|
3316
|
+
isOneToOne: false;
|
|
3317
|
+
referencedRelation: "floriday_connections";
|
|
3318
|
+
referencedColumns: ["id"];
|
|
3319
|
+
}];
|
|
3320
|
+
};
|
|
3216
3321
|
floriday_base_items_cache: {
|
|
3217
3322
|
Row: {
|
|
3218
3323
|
connection_id: string;
|
|
@@ -4317,6 +4422,24 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
4317
4422
|
referencedColumns: ["id"];
|
|
4318
4423
|
}];
|
|
4319
4424
|
};
|
|
4425
|
+
floriday_rate_limit_state: {
|
|
4426
|
+
Row: {
|
|
4427
|
+
bucket: string;
|
|
4428
|
+
last_refill_at: string;
|
|
4429
|
+
tokens: number;
|
|
4430
|
+
};
|
|
4431
|
+
Insert: {
|
|
4432
|
+
bucket: string;
|
|
4433
|
+
last_refill_at?: string;
|
|
4434
|
+
tokens: number;
|
|
4435
|
+
};
|
|
4436
|
+
Update: {
|
|
4437
|
+
bucket?: string;
|
|
4438
|
+
last_refill_at?: string;
|
|
4439
|
+
tokens?: number;
|
|
4440
|
+
};
|
|
4441
|
+
Relationships: [];
|
|
4442
|
+
};
|
|
4320
4443
|
floriday_resource_schemas: {
|
|
4321
4444
|
Row: {
|
|
4322
4445
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -4740,6 +4863,60 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
4740
4863
|
referencedColumns: ["id"];
|
|
4741
4864
|
}];
|
|
4742
4865
|
};
|
|
4866
|
+
flow_role_assignments: {
|
|
4867
|
+
Row: {
|
|
4868
|
+
created_at: string;
|
|
4869
|
+
id: string;
|
|
4870
|
+
role_id: string;
|
|
4871
|
+
user_id: string;
|
|
4872
|
+
};
|
|
4873
|
+
Insert: {
|
|
4874
|
+
created_at?: string;
|
|
4875
|
+
id?: string;
|
|
4876
|
+
role_id: string;
|
|
4877
|
+
user_id: string;
|
|
4878
|
+
};
|
|
4879
|
+
Update: {
|
|
4880
|
+
created_at?: string;
|
|
4881
|
+
id?: string;
|
|
4882
|
+
role_id?: string;
|
|
4883
|
+
user_id?: string;
|
|
4884
|
+
};
|
|
4885
|
+
Relationships: [{
|
|
4886
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
4887
|
+
columns: ["role_id"];
|
|
4888
|
+
isOneToOne: false;
|
|
4889
|
+
referencedRelation: "flow_roles";
|
|
4890
|
+
referencedColumns: ["id"];
|
|
4891
|
+
}];
|
|
4892
|
+
};
|
|
4893
|
+
flow_roles: {
|
|
4894
|
+
Row: {
|
|
4895
|
+
created_at: string;
|
|
4896
|
+
description: string | null;
|
|
4897
|
+
id: string;
|
|
4898
|
+
module_access: string[];
|
|
4899
|
+
name: string;
|
|
4900
|
+
updated_at: string;
|
|
4901
|
+
};
|
|
4902
|
+
Insert: {
|
|
4903
|
+
created_at?: string;
|
|
4904
|
+
description?: string | null;
|
|
4905
|
+
id?: string;
|
|
4906
|
+
module_access?: string[];
|
|
4907
|
+
name: string;
|
|
4908
|
+
updated_at?: string;
|
|
4909
|
+
};
|
|
4910
|
+
Update: {
|
|
4911
|
+
created_at?: string;
|
|
4912
|
+
description?: string | null;
|
|
4913
|
+
id?: string;
|
|
4914
|
+
module_access?: string[];
|
|
4915
|
+
name?: string;
|
|
4916
|
+
updated_at?: string;
|
|
4917
|
+
};
|
|
4918
|
+
Relationships: [];
|
|
4919
|
+
};
|
|
4743
4920
|
imap_accounts: {
|
|
4744
4921
|
Row: {
|
|
4745
4922
|
created_at: string;
|
|
@@ -5371,6 +5548,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5371
5548
|
matched_customer_id: string | null;
|
|
5372
5549
|
message_id: string;
|
|
5373
5550
|
notes: string | null;
|
|
5551
|
+
order_number: string | null;
|
|
5374
5552
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
5375
5553
|
reviewed_at: string | null;
|
|
5376
5554
|
reviewed_by: string | null;
|
|
@@ -5386,6 +5564,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5386
5564
|
matched_customer_id?: string | null;
|
|
5387
5565
|
message_id: string;
|
|
5388
5566
|
notes?: string | null;
|
|
5567
|
+
order_number?: string | null;
|
|
5389
5568
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5390
5569
|
reviewed_at?: string | null;
|
|
5391
5570
|
reviewed_by?: string | null;
|
|
@@ -5401,6 +5580,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5401
5580
|
matched_customer_id?: string | null;
|
|
5402
5581
|
message_id?: string;
|
|
5403
5582
|
notes?: string | null;
|
|
5583
|
+
order_number?: string | null;
|
|
5404
5584
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5405
5585
|
reviewed_at?: string | null;
|
|
5406
5586
|
reviewed_by?: string | null;
|
|
@@ -6257,6 +6437,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6257
6437
|
id: string;
|
|
6258
6438
|
items: import("../integrations/supabase/types").Json;
|
|
6259
6439
|
notes: string | null;
|
|
6440
|
+
order_number: string | null;
|
|
6260
6441
|
recipient_id: string;
|
|
6261
6442
|
total_amount: number;
|
|
6262
6443
|
};
|
|
@@ -6270,6 +6451,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6270
6451
|
id?: string;
|
|
6271
6452
|
items?: import("../integrations/supabase/types").Json;
|
|
6272
6453
|
notes?: string | null;
|
|
6454
|
+
order_number?: string | null;
|
|
6273
6455
|
recipient_id: string;
|
|
6274
6456
|
total_amount?: number;
|
|
6275
6457
|
};
|
|
@@ -6283,6 +6465,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6283
6465
|
id?: string;
|
|
6284
6466
|
items?: import("../integrations/supabase/types").Json;
|
|
6285
6467
|
notes?: string | null;
|
|
6468
|
+
order_number?: string | null;
|
|
6286
6469
|
recipient_id?: string;
|
|
6287
6470
|
total_amount?: number;
|
|
6288
6471
|
};
|
|
@@ -6442,6 +6625,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6442
6625
|
crates_per_layer: number;
|
|
6443
6626
|
created_at: string;
|
|
6444
6627
|
id: string;
|
|
6628
|
+
layer_fraction: number;
|
|
6629
|
+
layer_share_pct: number;
|
|
6630
|
+
layers_per_cart: number;
|
|
6445
6631
|
order_item_id: string | null;
|
|
6446
6632
|
plants_per_crate: number;
|
|
6447
6633
|
product_id: string | null;
|
|
@@ -6453,6 +6639,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6453
6639
|
crates_per_layer?: number;
|
|
6454
6640
|
created_at?: string;
|
|
6455
6641
|
id?: string;
|
|
6642
|
+
layer_fraction?: number;
|
|
6643
|
+
layer_share_pct?: number;
|
|
6644
|
+
layers_per_cart?: number;
|
|
6456
6645
|
order_item_id?: string | null;
|
|
6457
6646
|
plants_per_crate?: number;
|
|
6458
6647
|
product_id?: string | null;
|
|
@@ -6464,6 +6653,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6464
6653
|
crates_per_layer?: number;
|
|
6465
6654
|
created_at?: string;
|
|
6466
6655
|
id?: string;
|
|
6656
|
+
layer_fraction?: number;
|
|
6657
|
+
layer_share_pct?: number;
|
|
6658
|
+
layers_per_cart?: number;
|
|
6467
6659
|
order_item_id?: string | null;
|
|
6468
6660
|
plants_per_crate?: number;
|
|
6469
6661
|
product_id?: string | null;
|
|
@@ -6491,33 +6683,45 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6491
6683
|
};
|
|
6492
6684
|
order_carts: {
|
|
6493
6685
|
Row: {
|
|
6686
|
+
algorithm_version: number;
|
|
6494
6687
|
cart_number: number;
|
|
6495
6688
|
created_at: string;
|
|
6496
6689
|
id: string;
|
|
6497
6690
|
is_auto: boolean;
|
|
6498
6691
|
is_complete: boolean;
|
|
6499
6692
|
notes: string | null;
|
|
6693
|
+
occupancy_pct: number;
|
|
6500
6694
|
order_id: string;
|
|
6695
|
+
source: string;
|
|
6696
|
+
total_layers_used: number;
|
|
6501
6697
|
updated_at: string;
|
|
6502
6698
|
};
|
|
6503
6699
|
Insert: {
|
|
6700
|
+
algorithm_version?: number;
|
|
6504
6701
|
cart_number: number;
|
|
6505
6702
|
created_at?: string;
|
|
6506
6703
|
id?: string;
|
|
6507
6704
|
is_auto?: boolean;
|
|
6508
6705
|
is_complete?: boolean;
|
|
6509
6706
|
notes?: string | null;
|
|
6707
|
+
occupancy_pct?: number;
|
|
6510
6708
|
order_id: string;
|
|
6709
|
+
source?: string;
|
|
6710
|
+
total_layers_used?: number;
|
|
6511
6711
|
updated_at?: string;
|
|
6512
6712
|
};
|
|
6513
6713
|
Update: {
|
|
6714
|
+
algorithm_version?: number;
|
|
6514
6715
|
cart_number?: number;
|
|
6515
6716
|
created_at?: string;
|
|
6516
6717
|
id?: string;
|
|
6517
6718
|
is_auto?: boolean;
|
|
6518
6719
|
is_complete?: boolean;
|
|
6519
6720
|
notes?: string | null;
|
|
6721
|
+
occupancy_pct?: number;
|
|
6520
6722
|
order_id?: string;
|
|
6723
|
+
source?: string;
|
|
6724
|
+
total_layers_used?: number;
|
|
6521
6725
|
updated_at?: string;
|
|
6522
6726
|
};
|
|
6523
6727
|
Relationships: [{
|
|
@@ -6670,6 +6874,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6670
6874
|
order_date: string;
|
|
6671
6875
|
order_number: string;
|
|
6672
6876
|
order_source: string;
|
|
6877
|
+
plan_locked_at: string | null;
|
|
6878
|
+
plan_locked_ref: string | null;
|
|
6673
6879
|
status: string;
|
|
6674
6880
|
total: string;
|
|
6675
6881
|
updated_at: string;
|
|
@@ -6686,6 +6892,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6686
6892
|
order_date?: string;
|
|
6687
6893
|
order_number: string;
|
|
6688
6894
|
order_source?: string;
|
|
6895
|
+
plan_locked_at?: string | null;
|
|
6896
|
+
plan_locked_ref?: string | null;
|
|
6689
6897
|
status?: string;
|
|
6690
6898
|
total?: string;
|
|
6691
6899
|
updated_at?: string;
|
|
@@ -6702,6 +6910,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6702
6910
|
order_date?: string;
|
|
6703
6911
|
order_number?: string;
|
|
6704
6912
|
order_source?: string;
|
|
6913
|
+
plan_locked_at?: string | null;
|
|
6914
|
+
plan_locked_ref?: string | null;
|
|
6705
6915
|
status?: string;
|
|
6706
6916
|
total?: string;
|
|
6707
6917
|
updated_at?: string;
|
|
@@ -7074,6 +7284,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7074
7284
|
display_name: string | null;
|
|
7075
7285
|
email: string | null;
|
|
7076
7286
|
id: string;
|
|
7287
|
+
is_superadmin: boolean;
|
|
7077
7288
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
7078
7289
|
tenant_id: string | null;
|
|
7079
7290
|
updated_at: string;
|
|
@@ -7083,6 +7294,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7083
7294
|
display_name?: string | null;
|
|
7084
7295
|
email?: string | null;
|
|
7085
7296
|
id: string;
|
|
7297
|
+
is_superadmin?: boolean;
|
|
7086
7298
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
7087
7299
|
tenant_id?: string | null;
|
|
7088
7300
|
updated_at?: string;
|
|
@@ -7092,6 +7304,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7092
7304
|
display_name?: string | null;
|
|
7093
7305
|
email?: string | null;
|
|
7094
7306
|
id?: string;
|
|
7307
|
+
is_superadmin?: boolean;
|
|
7095
7308
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
7096
7309
|
tenant_id?: string | null;
|
|
7097
7310
|
updated_at?: string;
|
|
@@ -7881,6 +8094,24 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7881
8094
|
};
|
|
7882
8095
|
Relationships: [];
|
|
7883
8096
|
};
|
|
8097
|
+
sidebar_config: {
|
|
8098
|
+
Row: {
|
|
8099
|
+
id: string;
|
|
8100
|
+
module_order: string[];
|
|
8101
|
+
updated_at: string;
|
|
8102
|
+
};
|
|
8103
|
+
Insert: {
|
|
8104
|
+
id?: string;
|
|
8105
|
+
module_order?: string[];
|
|
8106
|
+
updated_at?: string;
|
|
8107
|
+
};
|
|
8108
|
+
Update: {
|
|
8109
|
+
id?: string;
|
|
8110
|
+
module_order?: string[];
|
|
8111
|
+
updated_at?: string;
|
|
8112
|
+
};
|
|
8113
|
+
Relationships: [];
|
|
8114
|
+
};
|
|
7884
8115
|
stock_import_runs: {
|
|
7885
8116
|
Row: {
|
|
7886
8117
|
connection_id: string | null;
|
|
@@ -7939,7 +8170,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7939
8170
|
reason: string | null;
|
|
7940
8171
|
reserved_after: number | null;
|
|
7941
8172
|
reserved_before: number | null;
|
|
7942
|
-
trade_item_key: string;
|
|
8173
|
+
trade_item_key: string | null;
|
|
7943
8174
|
};
|
|
7944
8175
|
Insert: {
|
|
7945
8176
|
connection_id?: string | null;
|
|
@@ -7956,7 +8187,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7956
8187
|
reason?: string | null;
|
|
7957
8188
|
reserved_after?: number | null;
|
|
7958
8189
|
reserved_before?: number | null;
|
|
7959
|
-
trade_item_key
|
|
8190
|
+
trade_item_key?: string | null;
|
|
7960
8191
|
};
|
|
7961
8192
|
Update: {
|
|
7962
8193
|
connection_id?: string | null;
|
|
@@ -7973,7 +8204,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7973
8204
|
reason?: string | null;
|
|
7974
8205
|
reserved_after?: number | null;
|
|
7975
8206
|
reserved_before?: number | null;
|
|
7976
|
-
trade_item_key?: string;
|
|
8207
|
+
trade_item_key?: string | null;
|
|
7977
8208
|
};
|
|
7978
8209
|
Relationships: [];
|
|
7979
8210
|
};
|
|
@@ -8316,6 +8547,114 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8316
8547
|
};
|
|
8317
8548
|
Relationships: [];
|
|
8318
8549
|
};
|
|
8550
|
+
trade_item_supply_lines: {
|
|
8551
|
+
Row: {
|
|
8552
|
+
available_quantity: number | null;
|
|
8553
|
+
connection_id: string;
|
|
8554
|
+
created_at: string;
|
|
8555
|
+
currency: string | null;
|
|
8556
|
+
endpoint_family: string | null;
|
|
8557
|
+
environment: string | null;
|
|
8558
|
+
id: string;
|
|
8559
|
+
last_error: string | null;
|
|
8560
|
+
last_status: number | null;
|
|
8561
|
+
packing_configuration_id: string | null;
|
|
8562
|
+
period_end: string | null;
|
|
8563
|
+
period_start: string | null;
|
|
8564
|
+
price_per_piece: number | null;
|
|
8565
|
+
sales_unit: string | null;
|
|
8566
|
+
supply_line_id: string | null;
|
|
8567
|
+
supply_type: string;
|
|
8568
|
+
trade_item_id: string;
|
|
8569
|
+
updated_at: string;
|
|
8570
|
+
user_id: string;
|
|
8571
|
+
week: number | null;
|
|
8572
|
+
year: number | null;
|
|
8573
|
+
};
|
|
8574
|
+
Insert: {
|
|
8575
|
+
available_quantity?: number | null;
|
|
8576
|
+
connection_id: string;
|
|
8577
|
+
created_at?: string;
|
|
8578
|
+
currency?: string | null;
|
|
8579
|
+
endpoint_family?: string | null;
|
|
8580
|
+
environment?: string | null;
|
|
8581
|
+
id?: string;
|
|
8582
|
+
last_error?: string | null;
|
|
8583
|
+
last_status?: number | null;
|
|
8584
|
+
packing_configuration_id?: string | null;
|
|
8585
|
+
period_end?: string | null;
|
|
8586
|
+
period_start?: string | null;
|
|
8587
|
+
price_per_piece?: number | null;
|
|
8588
|
+
sales_unit?: string | null;
|
|
8589
|
+
supply_line_id?: string | null;
|
|
8590
|
+
supply_type?: string;
|
|
8591
|
+
trade_item_id: string;
|
|
8592
|
+
updated_at?: string;
|
|
8593
|
+
user_id: string;
|
|
8594
|
+
week?: number | null;
|
|
8595
|
+
year?: number | null;
|
|
8596
|
+
};
|
|
8597
|
+
Update: {
|
|
8598
|
+
available_quantity?: number | null;
|
|
8599
|
+
connection_id?: string;
|
|
8600
|
+
created_at?: string;
|
|
8601
|
+
currency?: string | null;
|
|
8602
|
+
endpoint_family?: string | null;
|
|
8603
|
+
environment?: string | null;
|
|
8604
|
+
id?: string;
|
|
8605
|
+
last_error?: string | null;
|
|
8606
|
+
last_status?: number | null;
|
|
8607
|
+
packing_configuration_id?: string | null;
|
|
8608
|
+
period_end?: string | null;
|
|
8609
|
+
period_start?: string | null;
|
|
8610
|
+
price_per_piece?: number | null;
|
|
8611
|
+
sales_unit?: string | null;
|
|
8612
|
+
supply_line_id?: string | null;
|
|
8613
|
+
supply_type?: string;
|
|
8614
|
+
trade_item_id?: string;
|
|
8615
|
+
updated_at?: string;
|
|
8616
|
+
user_id?: string;
|
|
8617
|
+
week?: number | null;
|
|
8618
|
+
year?: number | null;
|
|
8619
|
+
};
|
|
8620
|
+
Relationships: [];
|
|
8621
|
+
};
|
|
8622
|
+
trade_item_warehouse_preferences: {
|
|
8623
|
+
Row: {
|
|
8624
|
+
connection_id: string;
|
|
8625
|
+
created_at: string;
|
|
8626
|
+
id: string;
|
|
8627
|
+
trade_item_id: string;
|
|
8628
|
+
updated_at: string;
|
|
8629
|
+
warehouse_id: string;
|
|
8630
|
+
warehouse_name: string | null;
|
|
8631
|
+
};
|
|
8632
|
+
Insert: {
|
|
8633
|
+
connection_id: string;
|
|
8634
|
+
created_at?: string;
|
|
8635
|
+
id?: string;
|
|
8636
|
+
trade_item_id: string;
|
|
8637
|
+
updated_at?: string;
|
|
8638
|
+
warehouse_id: string;
|
|
8639
|
+
warehouse_name?: string | null;
|
|
8640
|
+
};
|
|
8641
|
+
Update: {
|
|
8642
|
+
connection_id?: string;
|
|
8643
|
+
created_at?: string;
|
|
8644
|
+
id?: string;
|
|
8645
|
+
trade_item_id?: string;
|
|
8646
|
+
updated_at?: string;
|
|
8647
|
+
warehouse_id?: string;
|
|
8648
|
+
warehouse_name?: string | null;
|
|
8649
|
+
};
|
|
8650
|
+
Relationships: [{
|
|
8651
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8652
|
+
columns: ["connection_id"];
|
|
8653
|
+
isOneToOne: false;
|
|
8654
|
+
referencedRelation: "floriday_connections";
|
|
8655
|
+
referencedColumns: ["id"];
|
|
8656
|
+
}];
|
|
8657
|
+
};
|
|
8319
8658
|
twinfield_connections: {
|
|
8320
8659
|
Row: {
|
|
8321
8660
|
access_token: string | null;
|
|
@@ -8635,6 +8974,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8635
8974
|
default_invoice_type: string;
|
|
8636
8975
|
default_payment_term_days: number;
|
|
8637
8976
|
default_vat_code: string;
|
|
8977
|
+
invoice_enabled_ao: boolean;
|
|
8978
|
+
invoice_enabled_fo: boolean;
|
|
8979
|
+
invoice_enabled_ho: boolean;
|
|
8980
|
+
invoice_enabled_mo: boolean;
|
|
8638
8981
|
updated_at: string;
|
|
8639
8982
|
user_id: string;
|
|
8640
8983
|
};
|
|
@@ -8644,6 +8987,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8644
8987
|
default_invoice_type?: string;
|
|
8645
8988
|
default_payment_term_days?: number;
|
|
8646
8989
|
default_vat_code?: string;
|
|
8990
|
+
invoice_enabled_ao?: boolean;
|
|
8991
|
+
invoice_enabled_fo?: boolean;
|
|
8992
|
+
invoice_enabled_ho?: boolean;
|
|
8993
|
+
invoice_enabled_mo?: boolean;
|
|
8647
8994
|
updated_at?: string;
|
|
8648
8995
|
user_id: string;
|
|
8649
8996
|
};
|
|
@@ -8653,6 +9000,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8653
9000
|
default_invoice_type?: string;
|
|
8654
9001
|
default_payment_term_days?: number;
|
|
8655
9002
|
default_vat_code?: string;
|
|
9003
|
+
invoice_enabled_ao?: boolean;
|
|
9004
|
+
invoice_enabled_fo?: boolean;
|
|
9005
|
+
invoice_enabled_ho?: boolean;
|
|
9006
|
+
invoice_enabled_mo?: boolean;
|
|
8656
9007
|
updated_at?: string;
|
|
8657
9008
|
user_id?: string;
|
|
8658
9009
|
};
|
|
@@ -9947,6 +10298,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
9947
10298
|
order_number: string;
|
|
9948
10299
|
}[];
|
|
9949
10300
|
};
|
|
10301
|
+
autolink_product_to_floriday: {
|
|
10302
|
+
Args: {
|
|
10303
|
+
p_product_id: string;
|
|
10304
|
+
};
|
|
10305
|
+
Returns: string;
|
|
10306
|
+
};
|
|
9950
10307
|
backfill_open_order_reservations: {
|
|
9951
10308
|
Args: never;
|
|
9952
10309
|
Returns: {
|
|
@@ -9985,6 +10342,18 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
9985
10342
|
Args: never;
|
|
9986
10343
|
Returns: number;
|
|
9987
10344
|
};
|
|
10345
|
+
consume_floriday_rate_limit: {
|
|
10346
|
+
Args: {
|
|
10347
|
+
p_bucket: string;
|
|
10348
|
+
p_capacity: number;
|
|
10349
|
+
p_cost?: number;
|
|
10350
|
+
p_refill_per_sec: number;
|
|
10351
|
+
};
|
|
10352
|
+
Returns: {
|
|
10353
|
+
granted: boolean;
|
|
10354
|
+
wait_ms: number;
|
|
10355
|
+
}[];
|
|
10356
|
+
};
|
|
9988
10357
|
control_get_todays_carts: {
|
|
9989
10358
|
Args: never;
|
|
9990
10359
|
Returns: {
|
|
@@ -10065,6 +10434,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10065
10434
|
status: string;
|
|
10066
10435
|
}[];
|
|
10067
10436
|
};
|
|
10437
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10438
|
+
Args: {
|
|
10439
|
+
p_order_id: string;
|
|
10440
|
+
};
|
|
10441
|
+
Returns: undefined;
|
|
10442
|
+
};
|
|
10068
10443
|
ensure_trade_item_stock_row: {
|
|
10069
10444
|
Args: {
|
|
10070
10445
|
p_key: string;
|
|
@@ -10171,6 +10546,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10171
10546
|
office_code: string;
|
|
10172
10547
|
}[];
|
|
10173
10548
|
};
|
|
10549
|
+
get_floricode_record_counts: {
|
|
10550
|
+
Args: never;
|
|
10551
|
+
Returns: {
|
|
10552
|
+
count: number;
|
|
10553
|
+
resource: string;
|
|
10554
|
+
}[];
|
|
10555
|
+
};
|
|
10174
10556
|
get_floriday_agreements_active: {
|
|
10175
10557
|
Args: {
|
|
10176
10558
|
p_on_date?: string;
|
|
@@ -10262,6 +10644,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10262
10644
|
};
|
|
10263
10645
|
Returns: import("../integrations/supabase/types").Json;
|
|
10264
10646
|
};
|
|
10647
|
+
get_offer_delivery_options: {
|
|
10648
|
+
Args: {
|
|
10649
|
+
p_code: string;
|
|
10650
|
+
};
|
|
10651
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10652
|
+
};
|
|
10265
10653
|
get_offer_recipient_by_code: {
|
|
10266
10654
|
Args: {
|
|
10267
10655
|
p_code: string;
|
|
@@ -10326,6 +10714,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10326
10714
|
Args: never;
|
|
10327
10715
|
Returns: boolean;
|
|
10328
10716
|
};
|
|
10717
|
+
is_superadmin: {
|
|
10718
|
+
Args: {
|
|
10719
|
+
_user_id: string;
|
|
10720
|
+
};
|
|
10721
|
+
Returns: boolean;
|
|
10722
|
+
};
|
|
10329
10723
|
local_effective_price: {
|
|
10330
10724
|
Args: {
|
|
10331
10725
|
_customer_id: string;
|
|
@@ -10360,6 +10754,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10360
10754
|
};
|
|
10361
10755
|
Returns: string;
|
|
10362
10756
|
};
|
|
10757
|
+
next_order_number_for_date: {
|
|
10758
|
+
Args: {
|
|
10759
|
+
p_created_at?: string;
|
|
10760
|
+
p_prefix: string;
|
|
10761
|
+
};
|
|
10762
|
+
Returns: string;
|
|
10763
|
+
};
|
|
10363
10764
|
next_work_order_number: {
|
|
10364
10765
|
Args: {
|
|
10365
10766
|
p_parent_work_order_id?: string;
|
|
@@ -10367,6 +10768,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10367
10768
|
};
|
|
10368
10769
|
Returns: string;
|
|
10369
10770
|
};
|
|
10771
|
+
normalize_order_source: {
|
|
10772
|
+
Args: {
|
|
10773
|
+
p_src: string;
|
|
10774
|
+
};
|
|
10775
|
+
Returns: string;
|
|
10776
|
+
};
|
|
10370
10777
|
normalize_vat: {
|
|
10371
10778
|
Args: {
|
|
10372
10779
|
v: string;
|
|
@@ -10381,11 +10788,22 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10381
10788
|
};
|
|
10382
10789
|
Returns: boolean;
|
|
10383
10790
|
};
|
|
10791
|
+
order_number_prefix: {
|
|
10792
|
+
Args: {
|
|
10793
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
10794
|
+
p_order_source: string;
|
|
10795
|
+
};
|
|
10796
|
+
Returns: string;
|
|
10797
|
+
};
|
|
10384
10798
|
pickstation_get_orders_raw: {
|
|
10385
10799
|
Args: never;
|
|
10386
10800
|
Returns: import("../integrations/supabase/types").Json;
|
|
10387
10801
|
};
|
|
10388
|
-
|
|
10802
|
+
pickstation_get_planning_context: {
|
|
10803
|
+
Args: never;
|
|
10804
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10805
|
+
};
|
|
10806
|
+
pickstation_get_settings: {
|
|
10389
10807
|
Args: never;
|
|
10390
10808
|
Returns: import("../integrations/supabase/types").Json;
|
|
10391
10809
|
};
|
|
@@ -10415,6 +10833,28 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10415
10833
|
};
|
|
10416
10834
|
Returns: undefined;
|
|
10417
10835
|
};
|
|
10836
|
+
recompute_order_status: {
|
|
10837
|
+
Args: {
|
|
10838
|
+
p_order_id: string;
|
|
10839
|
+
};
|
|
10840
|
+
Returns: undefined;
|
|
10841
|
+
};
|
|
10842
|
+
recompute_reserved_for_order: {
|
|
10843
|
+
Args: {
|
|
10844
|
+
p_order_id: string;
|
|
10845
|
+
};
|
|
10846
|
+
Returns: undefined;
|
|
10847
|
+
};
|
|
10848
|
+
recompute_reserved_stock: {
|
|
10849
|
+
Args: {
|
|
10850
|
+
p_trade_item_key: string;
|
|
10851
|
+
};
|
|
10852
|
+
Returns: undefined;
|
|
10853
|
+
};
|
|
10854
|
+
refresh_external_customers_grouped: {
|
|
10855
|
+
Args: never;
|
|
10856
|
+
Returns: undefined;
|
|
10857
|
+
};
|
|
10418
10858
|
refresh_floricode_derived_code_lists: {
|
|
10419
10859
|
Args: never;
|
|
10420
10860
|
Returns: {
|
|
@@ -10429,6 +10869,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10429
10869
|
};
|
|
10430
10870
|
Returns: number;
|
|
10431
10871
|
};
|
|
10872
|
+
refresh_floricode_derived_for_products: {
|
|
10873
|
+
Args: {
|
|
10874
|
+
_product_ids: string[];
|
|
10875
|
+
};
|
|
10876
|
+
Returns: number;
|
|
10877
|
+
};
|
|
10432
10878
|
reset_floriday_sync_cursor: {
|
|
10433
10879
|
Args: {
|
|
10434
10880
|
p_connection_id: string;
|
|
@@ -10436,6 +10882,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10436
10882
|
};
|
|
10437
10883
|
Returns: undefined;
|
|
10438
10884
|
};
|
|
10885
|
+
resolve_product_id_for_item: {
|
|
10886
|
+
Args: {
|
|
10887
|
+
p_product_name: string;
|
|
10888
|
+
};
|
|
10889
|
+
Returns: string;
|
|
10890
|
+
};
|
|
10439
10891
|
schedule_floriday_additional_services_sync: {
|
|
10440
10892
|
Args: {
|
|
10441
10893
|
p_apikey: string;
|
|
@@ -10713,6 +11165,24 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10713
11165
|
};
|
|
10714
11166
|
Returns: string[];
|
|
10715
11167
|
};
|
|
11168
|
+
sync_cached_packing_from_product: {
|
|
11169
|
+
Args: {
|
|
11170
|
+
p_product_id: string;
|
|
11171
|
+
};
|
|
11172
|
+
Returns: undefined;
|
|
11173
|
+
};
|
|
11174
|
+
sync_order_cart_item_packing_from_product: {
|
|
11175
|
+
Args: {
|
|
11176
|
+
p_product_id: string;
|
|
11177
|
+
};
|
|
11178
|
+
Returns: undefined;
|
|
11179
|
+
};
|
|
11180
|
+
sync_product_packing_from_floriday_cache: {
|
|
11181
|
+
Args: {
|
|
11182
|
+
p_floriday_id: string;
|
|
11183
|
+
};
|
|
11184
|
+
Returns: undefined;
|
|
11185
|
+
};
|
|
10716
11186
|
twinfield_decrypt: {
|
|
10717
11187
|
Args: {
|
|
10718
11188
|
cipher: string;
|
|
@@ -10747,7 +11217,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
10747
11217
|
Tables: {
|
|
10748
11218
|
afhandeling_settings: {
|
|
10749
11219
|
Row: {
|
|
11220
|
+
auto_print_delivery_note: boolean;
|
|
11221
|
+
auto_process_paused: boolean;
|
|
10750
11222
|
created_at: string;
|
|
11223
|
+
extra_pick_days_with_stickers: number;
|
|
10751
11224
|
id: string;
|
|
10752
11225
|
max_workdays_earlier_pick: number;
|
|
10753
11226
|
pick_days_before_transport: number;
|
|
@@ -10761,7 +11234,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
10761
11234
|
user_id: string;
|
|
10762
11235
|
};
|
|
10763
11236
|
Insert: {
|
|
11237
|
+
auto_print_delivery_note?: boolean;
|
|
11238
|
+
auto_process_paused?: boolean;
|
|
10764
11239
|
created_at?: string;
|
|
11240
|
+
extra_pick_days_with_stickers?: number;
|
|
10765
11241
|
id?: string;
|
|
10766
11242
|
max_workdays_earlier_pick?: number;
|
|
10767
11243
|
pick_days_before_transport?: number;
|
|
@@ -10775,7 +11251,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
10775
11251
|
user_id: string;
|
|
10776
11252
|
};
|
|
10777
11253
|
Update: {
|
|
11254
|
+
auto_print_delivery_note?: boolean;
|
|
11255
|
+
auto_process_paused?: boolean;
|
|
10778
11256
|
created_at?: string;
|
|
11257
|
+
extra_pick_days_with_stickers?: number;
|
|
10779
11258
|
id?: string;
|
|
10780
11259
|
max_workdays_earlier_pick?: number;
|
|
10781
11260
|
pick_days_before_transport?: number;
|
|
@@ -11567,6 +12046,36 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
11567
12046
|
};
|
|
11568
12047
|
Relationships: [];
|
|
11569
12048
|
};
|
|
12049
|
+
cart_replan_queue: {
|
|
12050
|
+
Row: {
|
|
12051
|
+
attempts: number;
|
|
12052
|
+
last_error: string | null;
|
|
12053
|
+
order_id: string;
|
|
12054
|
+
processed_at: string | null;
|
|
12055
|
+
requested_at: string;
|
|
12056
|
+
};
|
|
12057
|
+
Insert: {
|
|
12058
|
+
attempts?: number;
|
|
12059
|
+
last_error?: string | null;
|
|
12060
|
+
order_id: string;
|
|
12061
|
+
processed_at?: string | null;
|
|
12062
|
+
requested_at?: string;
|
|
12063
|
+
};
|
|
12064
|
+
Update: {
|
|
12065
|
+
attempts?: number;
|
|
12066
|
+
last_error?: string | null;
|
|
12067
|
+
order_id?: string;
|
|
12068
|
+
processed_at?: string | null;
|
|
12069
|
+
requested_at?: string;
|
|
12070
|
+
};
|
|
12071
|
+
Relationships: [{
|
|
12072
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
12073
|
+
columns: ["order_id"];
|
|
12074
|
+
isOneToOne: true;
|
|
12075
|
+
referencedRelation: "orders";
|
|
12076
|
+
referencedColumns: ["id"];
|
|
12077
|
+
}];
|
|
12078
|
+
};
|
|
11570
12079
|
collections: {
|
|
11571
12080
|
Row: {
|
|
11572
12081
|
created_at: string;
|
|
@@ -13692,34 +14201,52 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
13692
14201
|
Row: {
|
|
13693
14202
|
catalog_key: string | null;
|
|
13694
14203
|
catalog_url: string;
|
|
14204
|
+
client_id: string | null;
|
|
14205
|
+
client_secret_ciphertext: string | null;
|
|
14206
|
+
client_secret_last4: string | null;
|
|
13695
14207
|
created_at: string;
|
|
13696
14208
|
id: number;
|
|
13697
14209
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
13698
14210
|
last_test_at: string | null;
|
|
13699
14211
|
last_test_error: string | null;
|
|
13700
14212
|
last_test_ok: boolean | null;
|
|
14213
|
+
last_token_test_at: string | null;
|
|
14214
|
+
last_token_test_error: string | null;
|
|
14215
|
+
last_token_test_ok: boolean | null;
|
|
13701
14216
|
updated_at: string;
|
|
13702
14217
|
};
|
|
13703
14218
|
Insert: {
|
|
13704
14219
|
catalog_key?: string | null;
|
|
13705
14220
|
catalog_url?: string;
|
|
14221
|
+
client_id?: string | null;
|
|
14222
|
+
client_secret_ciphertext?: string | null;
|
|
14223
|
+
client_secret_last4?: string | null;
|
|
13706
14224
|
created_at?: string;
|
|
13707
14225
|
id?: number;
|
|
13708
14226
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
13709
14227
|
last_test_at?: string | null;
|
|
13710
14228
|
last_test_error?: string | null;
|
|
13711
14229
|
last_test_ok?: boolean | null;
|
|
14230
|
+
last_token_test_at?: string | null;
|
|
14231
|
+
last_token_test_error?: string | null;
|
|
14232
|
+
last_token_test_ok?: boolean | null;
|
|
13712
14233
|
updated_at?: string;
|
|
13713
14234
|
};
|
|
13714
14235
|
Update: {
|
|
13715
14236
|
catalog_key?: string | null;
|
|
13716
14237
|
catalog_url?: string;
|
|
14238
|
+
client_id?: string | null;
|
|
14239
|
+
client_secret_ciphertext?: string | null;
|
|
14240
|
+
client_secret_last4?: string | null;
|
|
13717
14241
|
created_at?: string;
|
|
13718
14242
|
id?: number;
|
|
13719
14243
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
13720
14244
|
last_test_at?: string | null;
|
|
13721
14245
|
last_test_error?: string | null;
|
|
13722
14246
|
last_test_ok?: boolean | null;
|
|
14247
|
+
last_token_test_at?: string | null;
|
|
14248
|
+
last_token_test_error?: string | null;
|
|
14249
|
+
last_token_test_ok?: boolean | null;
|
|
13723
14250
|
updated_at?: string;
|
|
13724
14251
|
};
|
|
13725
14252
|
Relationships: [];
|
|
@@ -13952,6 +14479,54 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
13952
14479
|
referencedColumns: ["id"];
|
|
13953
14480
|
}];
|
|
13954
14481
|
};
|
|
14482
|
+
floriday_auto_fulfillment_log: {
|
|
14483
|
+
Row: {
|
|
14484
|
+
attempts: number;
|
|
14485
|
+
connection_id: string;
|
|
14486
|
+
created_at: string;
|
|
14487
|
+
error: string | null;
|
|
14488
|
+
fulfillment_order_id: string | null;
|
|
14489
|
+
id: string;
|
|
14490
|
+
last_attempt_at: string | null;
|
|
14491
|
+
reason: string | null;
|
|
14492
|
+
sales_order_id: string;
|
|
14493
|
+
status: string;
|
|
14494
|
+
updated_at: string;
|
|
14495
|
+
};
|
|
14496
|
+
Insert: {
|
|
14497
|
+
attempts?: number;
|
|
14498
|
+
connection_id: string;
|
|
14499
|
+
created_at?: string;
|
|
14500
|
+
error?: string | null;
|
|
14501
|
+
fulfillment_order_id?: string | null;
|
|
14502
|
+
id?: string;
|
|
14503
|
+
last_attempt_at?: string | null;
|
|
14504
|
+
reason?: string | null;
|
|
14505
|
+
sales_order_id: string;
|
|
14506
|
+
status?: string;
|
|
14507
|
+
updated_at?: string;
|
|
14508
|
+
};
|
|
14509
|
+
Update: {
|
|
14510
|
+
attempts?: number;
|
|
14511
|
+
connection_id?: string;
|
|
14512
|
+
created_at?: string;
|
|
14513
|
+
error?: string | null;
|
|
14514
|
+
fulfillment_order_id?: string | null;
|
|
14515
|
+
id?: string;
|
|
14516
|
+
last_attempt_at?: string | null;
|
|
14517
|
+
reason?: string | null;
|
|
14518
|
+
sales_order_id?: string;
|
|
14519
|
+
status?: string;
|
|
14520
|
+
updated_at?: string;
|
|
14521
|
+
};
|
|
14522
|
+
Relationships: [{
|
|
14523
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
14524
|
+
columns: ["connection_id"];
|
|
14525
|
+
isOneToOne: false;
|
|
14526
|
+
referencedRelation: "floriday_connections";
|
|
14527
|
+
referencedColumns: ["id"];
|
|
14528
|
+
}];
|
|
14529
|
+
};
|
|
13955
14530
|
floriday_base_items_cache: {
|
|
13956
14531
|
Row: {
|
|
13957
14532
|
connection_id: string;
|
|
@@ -15056,6 +15631,24 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
15056
15631
|
referencedColumns: ["id"];
|
|
15057
15632
|
}];
|
|
15058
15633
|
};
|
|
15634
|
+
floriday_rate_limit_state: {
|
|
15635
|
+
Row: {
|
|
15636
|
+
bucket: string;
|
|
15637
|
+
last_refill_at: string;
|
|
15638
|
+
tokens: number;
|
|
15639
|
+
};
|
|
15640
|
+
Insert: {
|
|
15641
|
+
bucket: string;
|
|
15642
|
+
last_refill_at?: string;
|
|
15643
|
+
tokens: number;
|
|
15644
|
+
};
|
|
15645
|
+
Update: {
|
|
15646
|
+
bucket?: string;
|
|
15647
|
+
last_refill_at?: string;
|
|
15648
|
+
tokens?: number;
|
|
15649
|
+
};
|
|
15650
|
+
Relationships: [];
|
|
15651
|
+
};
|
|
15059
15652
|
floriday_resource_schemas: {
|
|
15060
15653
|
Row: {
|
|
15061
15654
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -15479,6 +16072,60 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
15479
16072
|
referencedColumns: ["id"];
|
|
15480
16073
|
}];
|
|
15481
16074
|
};
|
|
16075
|
+
flow_role_assignments: {
|
|
16076
|
+
Row: {
|
|
16077
|
+
created_at: string;
|
|
16078
|
+
id: string;
|
|
16079
|
+
role_id: string;
|
|
16080
|
+
user_id: string;
|
|
16081
|
+
};
|
|
16082
|
+
Insert: {
|
|
16083
|
+
created_at?: string;
|
|
16084
|
+
id?: string;
|
|
16085
|
+
role_id: string;
|
|
16086
|
+
user_id: string;
|
|
16087
|
+
};
|
|
16088
|
+
Update: {
|
|
16089
|
+
created_at?: string;
|
|
16090
|
+
id?: string;
|
|
16091
|
+
role_id?: string;
|
|
16092
|
+
user_id?: string;
|
|
16093
|
+
};
|
|
16094
|
+
Relationships: [{
|
|
16095
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
16096
|
+
columns: ["role_id"];
|
|
16097
|
+
isOneToOne: false;
|
|
16098
|
+
referencedRelation: "flow_roles";
|
|
16099
|
+
referencedColumns: ["id"];
|
|
16100
|
+
}];
|
|
16101
|
+
};
|
|
16102
|
+
flow_roles: {
|
|
16103
|
+
Row: {
|
|
16104
|
+
created_at: string;
|
|
16105
|
+
description: string | null;
|
|
16106
|
+
id: string;
|
|
16107
|
+
module_access: string[];
|
|
16108
|
+
name: string;
|
|
16109
|
+
updated_at: string;
|
|
16110
|
+
};
|
|
16111
|
+
Insert: {
|
|
16112
|
+
created_at?: string;
|
|
16113
|
+
description?: string | null;
|
|
16114
|
+
id?: string;
|
|
16115
|
+
module_access?: string[];
|
|
16116
|
+
name: string;
|
|
16117
|
+
updated_at?: string;
|
|
16118
|
+
};
|
|
16119
|
+
Update: {
|
|
16120
|
+
created_at?: string;
|
|
16121
|
+
description?: string | null;
|
|
16122
|
+
id?: string;
|
|
16123
|
+
module_access?: string[];
|
|
16124
|
+
name?: string;
|
|
16125
|
+
updated_at?: string;
|
|
16126
|
+
};
|
|
16127
|
+
Relationships: [];
|
|
16128
|
+
};
|
|
15482
16129
|
imap_accounts: {
|
|
15483
16130
|
Row: {
|
|
15484
16131
|
created_at: string;
|
|
@@ -16110,6 +16757,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16110
16757
|
matched_customer_id: string | null;
|
|
16111
16758
|
message_id: string;
|
|
16112
16759
|
notes: string | null;
|
|
16760
|
+
order_number: string | null;
|
|
16113
16761
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
16114
16762
|
reviewed_at: string | null;
|
|
16115
16763
|
reviewed_by: string | null;
|
|
@@ -16125,6 +16773,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16125
16773
|
matched_customer_id?: string | null;
|
|
16126
16774
|
message_id: string;
|
|
16127
16775
|
notes?: string | null;
|
|
16776
|
+
order_number?: string | null;
|
|
16128
16777
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
16129
16778
|
reviewed_at?: string | null;
|
|
16130
16779
|
reviewed_by?: string | null;
|
|
@@ -16140,6 +16789,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16140
16789
|
matched_customer_id?: string | null;
|
|
16141
16790
|
message_id?: string;
|
|
16142
16791
|
notes?: string | null;
|
|
16792
|
+
order_number?: string | null;
|
|
16143
16793
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
16144
16794
|
reviewed_at?: string | null;
|
|
16145
16795
|
reviewed_by?: string | null;
|
|
@@ -16996,6 +17646,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16996
17646
|
id: string;
|
|
16997
17647
|
items: import("../integrations/supabase/types").Json;
|
|
16998
17648
|
notes: string | null;
|
|
17649
|
+
order_number: string | null;
|
|
16999
17650
|
recipient_id: string;
|
|
17000
17651
|
total_amount: number;
|
|
17001
17652
|
};
|
|
@@ -17009,6 +17660,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17009
17660
|
id?: string;
|
|
17010
17661
|
items?: import("../integrations/supabase/types").Json;
|
|
17011
17662
|
notes?: string | null;
|
|
17663
|
+
order_number?: string | null;
|
|
17012
17664
|
recipient_id: string;
|
|
17013
17665
|
total_amount?: number;
|
|
17014
17666
|
};
|
|
@@ -17022,6 +17674,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17022
17674
|
id?: string;
|
|
17023
17675
|
items?: import("../integrations/supabase/types").Json;
|
|
17024
17676
|
notes?: string | null;
|
|
17677
|
+
order_number?: string | null;
|
|
17025
17678
|
recipient_id?: string;
|
|
17026
17679
|
total_amount?: number;
|
|
17027
17680
|
};
|
|
@@ -17181,6 +17834,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17181
17834
|
crates_per_layer: number;
|
|
17182
17835
|
created_at: string;
|
|
17183
17836
|
id: string;
|
|
17837
|
+
layer_fraction: number;
|
|
17838
|
+
layer_share_pct: number;
|
|
17839
|
+
layers_per_cart: number;
|
|
17184
17840
|
order_item_id: string | null;
|
|
17185
17841
|
plants_per_crate: number;
|
|
17186
17842
|
product_id: string | null;
|
|
@@ -17192,6 +17848,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17192
17848
|
crates_per_layer?: number;
|
|
17193
17849
|
created_at?: string;
|
|
17194
17850
|
id?: string;
|
|
17851
|
+
layer_fraction?: number;
|
|
17852
|
+
layer_share_pct?: number;
|
|
17853
|
+
layers_per_cart?: number;
|
|
17195
17854
|
order_item_id?: string | null;
|
|
17196
17855
|
plants_per_crate?: number;
|
|
17197
17856
|
product_id?: string | null;
|
|
@@ -17203,6 +17862,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17203
17862
|
crates_per_layer?: number;
|
|
17204
17863
|
created_at?: string;
|
|
17205
17864
|
id?: string;
|
|
17865
|
+
layer_fraction?: number;
|
|
17866
|
+
layer_share_pct?: number;
|
|
17867
|
+
layers_per_cart?: number;
|
|
17206
17868
|
order_item_id?: string | null;
|
|
17207
17869
|
plants_per_crate?: number;
|
|
17208
17870
|
product_id?: string | null;
|
|
@@ -17230,33 +17892,45 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17230
17892
|
};
|
|
17231
17893
|
order_carts: {
|
|
17232
17894
|
Row: {
|
|
17895
|
+
algorithm_version: number;
|
|
17233
17896
|
cart_number: number;
|
|
17234
17897
|
created_at: string;
|
|
17235
17898
|
id: string;
|
|
17236
17899
|
is_auto: boolean;
|
|
17237
17900
|
is_complete: boolean;
|
|
17238
17901
|
notes: string | null;
|
|
17902
|
+
occupancy_pct: number;
|
|
17239
17903
|
order_id: string;
|
|
17904
|
+
source: string;
|
|
17905
|
+
total_layers_used: number;
|
|
17240
17906
|
updated_at: string;
|
|
17241
17907
|
};
|
|
17242
17908
|
Insert: {
|
|
17909
|
+
algorithm_version?: number;
|
|
17243
17910
|
cart_number: number;
|
|
17244
17911
|
created_at?: string;
|
|
17245
17912
|
id?: string;
|
|
17246
17913
|
is_auto?: boolean;
|
|
17247
17914
|
is_complete?: boolean;
|
|
17248
17915
|
notes?: string | null;
|
|
17916
|
+
occupancy_pct?: number;
|
|
17249
17917
|
order_id: string;
|
|
17918
|
+
source?: string;
|
|
17919
|
+
total_layers_used?: number;
|
|
17250
17920
|
updated_at?: string;
|
|
17251
17921
|
};
|
|
17252
17922
|
Update: {
|
|
17923
|
+
algorithm_version?: number;
|
|
17253
17924
|
cart_number?: number;
|
|
17254
17925
|
created_at?: string;
|
|
17255
17926
|
id?: string;
|
|
17256
17927
|
is_auto?: boolean;
|
|
17257
17928
|
is_complete?: boolean;
|
|
17258
17929
|
notes?: string | null;
|
|
17930
|
+
occupancy_pct?: number;
|
|
17259
17931
|
order_id?: string;
|
|
17932
|
+
source?: string;
|
|
17933
|
+
total_layers_used?: number;
|
|
17260
17934
|
updated_at?: string;
|
|
17261
17935
|
};
|
|
17262
17936
|
Relationships: [{
|
|
@@ -17409,6 +18083,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17409
18083
|
order_date: string;
|
|
17410
18084
|
order_number: string;
|
|
17411
18085
|
order_source: string;
|
|
18086
|
+
plan_locked_at: string | null;
|
|
18087
|
+
plan_locked_ref: string | null;
|
|
17412
18088
|
status: string;
|
|
17413
18089
|
total: string;
|
|
17414
18090
|
updated_at: string;
|
|
@@ -17425,6 +18101,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17425
18101
|
order_date?: string;
|
|
17426
18102
|
order_number: string;
|
|
17427
18103
|
order_source?: string;
|
|
18104
|
+
plan_locked_at?: string | null;
|
|
18105
|
+
plan_locked_ref?: string | null;
|
|
17428
18106
|
status?: string;
|
|
17429
18107
|
total?: string;
|
|
17430
18108
|
updated_at?: string;
|
|
@@ -17441,6 +18119,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17441
18119
|
order_date?: string;
|
|
17442
18120
|
order_number?: string;
|
|
17443
18121
|
order_source?: string;
|
|
18122
|
+
plan_locked_at?: string | null;
|
|
18123
|
+
plan_locked_ref?: string | null;
|
|
17444
18124
|
status?: string;
|
|
17445
18125
|
total?: string;
|
|
17446
18126
|
updated_at?: string;
|
|
@@ -17813,6 +18493,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17813
18493
|
display_name: string | null;
|
|
17814
18494
|
email: string | null;
|
|
17815
18495
|
id: string;
|
|
18496
|
+
is_superadmin: boolean;
|
|
17816
18497
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
17817
18498
|
tenant_id: string | null;
|
|
17818
18499
|
updated_at: string;
|
|
@@ -17822,6 +18503,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17822
18503
|
display_name?: string | null;
|
|
17823
18504
|
email?: string | null;
|
|
17824
18505
|
id: string;
|
|
18506
|
+
is_superadmin?: boolean;
|
|
17825
18507
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
17826
18508
|
tenant_id?: string | null;
|
|
17827
18509
|
updated_at?: string;
|
|
@@ -17831,6 +18513,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17831
18513
|
display_name?: string | null;
|
|
17832
18514
|
email?: string | null;
|
|
17833
18515
|
id?: string;
|
|
18516
|
+
is_superadmin?: boolean;
|
|
17834
18517
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
17835
18518
|
tenant_id?: string | null;
|
|
17836
18519
|
updated_at?: string;
|
|
@@ -18620,6 +19303,24 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18620
19303
|
};
|
|
18621
19304
|
Relationships: [];
|
|
18622
19305
|
};
|
|
19306
|
+
sidebar_config: {
|
|
19307
|
+
Row: {
|
|
19308
|
+
id: string;
|
|
19309
|
+
module_order: string[];
|
|
19310
|
+
updated_at: string;
|
|
19311
|
+
};
|
|
19312
|
+
Insert: {
|
|
19313
|
+
id?: string;
|
|
19314
|
+
module_order?: string[];
|
|
19315
|
+
updated_at?: string;
|
|
19316
|
+
};
|
|
19317
|
+
Update: {
|
|
19318
|
+
id?: string;
|
|
19319
|
+
module_order?: string[];
|
|
19320
|
+
updated_at?: string;
|
|
19321
|
+
};
|
|
19322
|
+
Relationships: [];
|
|
19323
|
+
};
|
|
18623
19324
|
stock_import_runs: {
|
|
18624
19325
|
Row: {
|
|
18625
19326
|
connection_id: string | null;
|
|
@@ -18678,7 +19379,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18678
19379
|
reason: string | null;
|
|
18679
19380
|
reserved_after: number | null;
|
|
18680
19381
|
reserved_before: number | null;
|
|
18681
|
-
trade_item_key: string;
|
|
19382
|
+
trade_item_key: string | null;
|
|
18682
19383
|
};
|
|
18683
19384
|
Insert: {
|
|
18684
19385
|
connection_id?: string | null;
|
|
@@ -18695,7 +19396,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18695
19396
|
reason?: string | null;
|
|
18696
19397
|
reserved_after?: number | null;
|
|
18697
19398
|
reserved_before?: number | null;
|
|
18698
|
-
trade_item_key
|
|
19399
|
+
trade_item_key?: string | null;
|
|
18699
19400
|
};
|
|
18700
19401
|
Update: {
|
|
18701
19402
|
connection_id?: string | null;
|
|
@@ -18712,7 +19413,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18712
19413
|
reason?: string | null;
|
|
18713
19414
|
reserved_after?: number | null;
|
|
18714
19415
|
reserved_before?: number | null;
|
|
18715
|
-
trade_item_key?: string;
|
|
19416
|
+
trade_item_key?: string | null;
|
|
18716
19417
|
};
|
|
18717
19418
|
Relationships: [];
|
|
18718
19419
|
};
|
|
@@ -19055,6 +19756,114 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19055
19756
|
};
|
|
19056
19757
|
Relationships: [];
|
|
19057
19758
|
};
|
|
19759
|
+
trade_item_supply_lines: {
|
|
19760
|
+
Row: {
|
|
19761
|
+
available_quantity: number | null;
|
|
19762
|
+
connection_id: string;
|
|
19763
|
+
created_at: string;
|
|
19764
|
+
currency: string | null;
|
|
19765
|
+
endpoint_family: string | null;
|
|
19766
|
+
environment: string | null;
|
|
19767
|
+
id: string;
|
|
19768
|
+
last_error: string | null;
|
|
19769
|
+
last_status: number | null;
|
|
19770
|
+
packing_configuration_id: string | null;
|
|
19771
|
+
period_end: string | null;
|
|
19772
|
+
period_start: string | null;
|
|
19773
|
+
price_per_piece: number | null;
|
|
19774
|
+
sales_unit: string | null;
|
|
19775
|
+
supply_line_id: string | null;
|
|
19776
|
+
supply_type: string;
|
|
19777
|
+
trade_item_id: string;
|
|
19778
|
+
updated_at: string;
|
|
19779
|
+
user_id: string;
|
|
19780
|
+
week: number | null;
|
|
19781
|
+
year: number | null;
|
|
19782
|
+
};
|
|
19783
|
+
Insert: {
|
|
19784
|
+
available_quantity?: number | null;
|
|
19785
|
+
connection_id: string;
|
|
19786
|
+
created_at?: string;
|
|
19787
|
+
currency?: string | null;
|
|
19788
|
+
endpoint_family?: string | null;
|
|
19789
|
+
environment?: string | null;
|
|
19790
|
+
id?: string;
|
|
19791
|
+
last_error?: string | null;
|
|
19792
|
+
last_status?: number | null;
|
|
19793
|
+
packing_configuration_id?: string | null;
|
|
19794
|
+
period_end?: string | null;
|
|
19795
|
+
period_start?: string | null;
|
|
19796
|
+
price_per_piece?: number | null;
|
|
19797
|
+
sales_unit?: string | null;
|
|
19798
|
+
supply_line_id?: string | null;
|
|
19799
|
+
supply_type?: string;
|
|
19800
|
+
trade_item_id: string;
|
|
19801
|
+
updated_at?: string;
|
|
19802
|
+
user_id: string;
|
|
19803
|
+
week?: number | null;
|
|
19804
|
+
year?: number | null;
|
|
19805
|
+
};
|
|
19806
|
+
Update: {
|
|
19807
|
+
available_quantity?: number | null;
|
|
19808
|
+
connection_id?: string;
|
|
19809
|
+
created_at?: string;
|
|
19810
|
+
currency?: string | null;
|
|
19811
|
+
endpoint_family?: string | null;
|
|
19812
|
+
environment?: string | null;
|
|
19813
|
+
id?: string;
|
|
19814
|
+
last_error?: string | null;
|
|
19815
|
+
last_status?: number | null;
|
|
19816
|
+
packing_configuration_id?: string | null;
|
|
19817
|
+
period_end?: string | null;
|
|
19818
|
+
period_start?: string | null;
|
|
19819
|
+
price_per_piece?: number | null;
|
|
19820
|
+
sales_unit?: string | null;
|
|
19821
|
+
supply_line_id?: string | null;
|
|
19822
|
+
supply_type?: string;
|
|
19823
|
+
trade_item_id?: string;
|
|
19824
|
+
updated_at?: string;
|
|
19825
|
+
user_id?: string;
|
|
19826
|
+
week?: number | null;
|
|
19827
|
+
year?: number | null;
|
|
19828
|
+
};
|
|
19829
|
+
Relationships: [];
|
|
19830
|
+
};
|
|
19831
|
+
trade_item_warehouse_preferences: {
|
|
19832
|
+
Row: {
|
|
19833
|
+
connection_id: string;
|
|
19834
|
+
created_at: string;
|
|
19835
|
+
id: string;
|
|
19836
|
+
trade_item_id: string;
|
|
19837
|
+
updated_at: string;
|
|
19838
|
+
warehouse_id: string;
|
|
19839
|
+
warehouse_name: string | null;
|
|
19840
|
+
};
|
|
19841
|
+
Insert: {
|
|
19842
|
+
connection_id: string;
|
|
19843
|
+
created_at?: string;
|
|
19844
|
+
id?: string;
|
|
19845
|
+
trade_item_id: string;
|
|
19846
|
+
updated_at?: string;
|
|
19847
|
+
warehouse_id: string;
|
|
19848
|
+
warehouse_name?: string | null;
|
|
19849
|
+
};
|
|
19850
|
+
Update: {
|
|
19851
|
+
connection_id?: string;
|
|
19852
|
+
created_at?: string;
|
|
19853
|
+
id?: string;
|
|
19854
|
+
trade_item_id?: string;
|
|
19855
|
+
updated_at?: string;
|
|
19856
|
+
warehouse_id?: string;
|
|
19857
|
+
warehouse_name?: string | null;
|
|
19858
|
+
};
|
|
19859
|
+
Relationships: [{
|
|
19860
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
19861
|
+
columns: ["connection_id"];
|
|
19862
|
+
isOneToOne: false;
|
|
19863
|
+
referencedRelation: "floriday_connections";
|
|
19864
|
+
referencedColumns: ["id"];
|
|
19865
|
+
}];
|
|
19866
|
+
};
|
|
19058
19867
|
twinfield_connections: {
|
|
19059
19868
|
Row: {
|
|
19060
19869
|
access_token: string | null;
|
|
@@ -19374,6 +20183,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19374
20183
|
default_invoice_type: string;
|
|
19375
20184
|
default_payment_term_days: number;
|
|
19376
20185
|
default_vat_code: string;
|
|
20186
|
+
invoice_enabled_ao: boolean;
|
|
20187
|
+
invoice_enabled_fo: boolean;
|
|
20188
|
+
invoice_enabled_ho: boolean;
|
|
20189
|
+
invoice_enabled_mo: boolean;
|
|
19377
20190
|
updated_at: string;
|
|
19378
20191
|
user_id: string;
|
|
19379
20192
|
};
|
|
@@ -19383,6 +20196,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19383
20196
|
default_invoice_type?: string;
|
|
19384
20197
|
default_payment_term_days?: number;
|
|
19385
20198
|
default_vat_code?: string;
|
|
20199
|
+
invoice_enabled_ao?: boolean;
|
|
20200
|
+
invoice_enabled_fo?: boolean;
|
|
20201
|
+
invoice_enabled_ho?: boolean;
|
|
20202
|
+
invoice_enabled_mo?: boolean;
|
|
19386
20203
|
updated_at?: string;
|
|
19387
20204
|
user_id: string;
|
|
19388
20205
|
};
|
|
@@ -19392,6 +20209,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19392
20209
|
default_invoice_type?: string;
|
|
19393
20210
|
default_payment_term_days?: number;
|
|
19394
20211
|
default_vat_code?: string;
|
|
20212
|
+
invoice_enabled_ao?: boolean;
|
|
20213
|
+
invoice_enabled_fo?: boolean;
|
|
20214
|
+
invoice_enabled_ho?: boolean;
|
|
20215
|
+
invoice_enabled_mo?: boolean;
|
|
19395
20216
|
updated_at?: string;
|
|
19396
20217
|
user_id?: string;
|
|
19397
20218
|
};
|
|
@@ -20686,6 +21507,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20686
21507
|
order_number: string;
|
|
20687
21508
|
}[];
|
|
20688
21509
|
};
|
|
21510
|
+
autolink_product_to_floriday: {
|
|
21511
|
+
Args: {
|
|
21512
|
+
p_product_id: string;
|
|
21513
|
+
};
|
|
21514
|
+
Returns: string;
|
|
21515
|
+
};
|
|
20689
21516
|
backfill_open_order_reservations: {
|
|
20690
21517
|
Args: never;
|
|
20691
21518
|
Returns: {
|
|
@@ -20724,6 +21551,18 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20724
21551
|
Args: never;
|
|
20725
21552
|
Returns: number;
|
|
20726
21553
|
};
|
|
21554
|
+
consume_floriday_rate_limit: {
|
|
21555
|
+
Args: {
|
|
21556
|
+
p_bucket: string;
|
|
21557
|
+
p_capacity: number;
|
|
21558
|
+
p_cost?: number;
|
|
21559
|
+
p_refill_per_sec: number;
|
|
21560
|
+
};
|
|
21561
|
+
Returns: {
|
|
21562
|
+
granted: boolean;
|
|
21563
|
+
wait_ms: number;
|
|
21564
|
+
}[];
|
|
21565
|
+
};
|
|
20727
21566
|
control_get_todays_carts: {
|
|
20728
21567
|
Args: never;
|
|
20729
21568
|
Returns: {
|
|
@@ -20804,6 +21643,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20804
21643
|
status: string;
|
|
20805
21644
|
}[];
|
|
20806
21645
|
};
|
|
21646
|
+
enqueue_cart_replan_if_unlocked: {
|
|
21647
|
+
Args: {
|
|
21648
|
+
p_order_id: string;
|
|
21649
|
+
};
|
|
21650
|
+
Returns: undefined;
|
|
21651
|
+
};
|
|
20807
21652
|
ensure_trade_item_stock_row: {
|
|
20808
21653
|
Args: {
|
|
20809
21654
|
p_key: string;
|
|
@@ -20910,6 +21755,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20910
21755
|
office_code: string;
|
|
20911
21756
|
}[];
|
|
20912
21757
|
};
|
|
21758
|
+
get_floricode_record_counts: {
|
|
21759
|
+
Args: never;
|
|
21760
|
+
Returns: {
|
|
21761
|
+
count: number;
|
|
21762
|
+
resource: string;
|
|
21763
|
+
}[];
|
|
21764
|
+
};
|
|
20913
21765
|
get_floriday_agreements_active: {
|
|
20914
21766
|
Args: {
|
|
20915
21767
|
p_on_date?: string;
|
|
@@ -21001,6 +21853,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21001
21853
|
};
|
|
21002
21854
|
Returns: import("../integrations/supabase/types").Json;
|
|
21003
21855
|
};
|
|
21856
|
+
get_offer_delivery_options: {
|
|
21857
|
+
Args: {
|
|
21858
|
+
p_code: string;
|
|
21859
|
+
};
|
|
21860
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21861
|
+
};
|
|
21004
21862
|
get_offer_recipient_by_code: {
|
|
21005
21863
|
Args: {
|
|
21006
21864
|
p_code: string;
|
|
@@ -21065,6 +21923,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21065
21923
|
Args: never;
|
|
21066
21924
|
Returns: boolean;
|
|
21067
21925
|
};
|
|
21926
|
+
is_superadmin: {
|
|
21927
|
+
Args: {
|
|
21928
|
+
_user_id: string;
|
|
21929
|
+
};
|
|
21930
|
+
Returns: boolean;
|
|
21931
|
+
};
|
|
21068
21932
|
local_effective_price: {
|
|
21069
21933
|
Args: {
|
|
21070
21934
|
_customer_id: string;
|
|
@@ -21099,6 +21963,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21099
21963
|
};
|
|
21100
21964
|
Returns: string;
|
|
21101
21965
|
};
|
|
21966
|
+
next_order_number_for_date: {
|
|
21967
|
+
Args: {
|
|
21968
|
+
p_created_at?: string;
|
|
21969
|
+
p_prefix: string;
|
|
21970
|
+
};
|
|
21971
|
+
Returns: string;
|
|
21972
|
+
};
|
|
21102
21973
|
next_work_order_number: {
|
|
21103
21974
|
Args: {
|
|
21104
21975
|
p_parent_work_order_id?: string;
|
|
@@ -21106,6 +21977,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21106
21977
|
};
|
|
21107
21978
|
Returns: string;
|
|
21108
21979
|
};
|
|
21980
|
+
normalize_order_source: {
|
|
21981
|
+
Args: {
|
|
21982
|
+
p_src: string;
|
|
21983
|
+
};
|
|
21984
|
+
Returns: string;
|
|
21985
|
+
};
|
|
21109
21986
|
normalize_vat: {
|
|
21110
21987
|
Args: {
|
|
21111
21988
|
v: string;
|
|
@@ -21120,10 +21997,21 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21120
21997
|
};
|
|
21121
21998
|
Returns: boolean;
|
|
21122
21999
|
};
|
|
22000
|
+
order_number_prefix: {
|
|
22001
|
+
Args: {
|
|
22002
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
22003
|
+
p_order_source: string;
|
|
22004
|
+
};
|
|
22005
|
+
Returns: string;
|
|
22006
|
+
};
|
|
21123
22007
|
pickstation_get_orders_raw: {
|
|
21124
22008
|
Args: never;
|
|
21125
22009
|
Returns: import("../integrations/supabase/types").Json;
|
|
21126
22010
|
};
|
|
22011
|
+
pickstation_get_planning_context: {
|
|
22012
|
+
Args: never;
|
|
22013
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22014
|
+
};
|
|
21127
22015
|
pickstation_get_settings: {
|
|
21128
22016
|
Args: never;
|
|
21129
22017
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -21154,6 +22042,28 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21154
22042
|
};
|
|
21155
22043
|
Returns: undefined;
|
|
21156
22044
|
};
|
|
22045
|
+
recompute_order_status: {
|
|
22046
|
+
Args: {
|
|
22047
|
+
p_order_id: string;
|
|
22048
|
+
};
|
|
22049
|
+
Returns: undefined;
|
|
22050
|
+
};
|
|
22051
|
+
recompute_reserved_for_order: {
|
|
22052
|
+
Args: {
|
|
22053
|
+
p_order_id: string;
|
|
22054
|
+
};
|
|
22055
|
+
Returns: undefined;
|
|
22056
|
+
};
|
|
22057
|
+
recompute_reserved_stock: {
|
|
22058
|
+
Args: {
|
|
22059
|
+
p_trade_item_key: string;
|
|
22060
|
+
};
|
|
22061
|
+
Returns: undefined;
|
|
22062
|
+
};
|
|
22063
|
+
refresh_external_customers_grouped: {
|
|
22064
|
+
Args: never;
|
|
22065
|
+
Returns: undefined;
|
|
22066
|
+
};
|
|
21157
22067
|
refresh_floricode_derived_code_lists: {
|
|
21158
22068
|
Args: never;
|
|
21159
22069
|
Returns: {
|
|
@@ -21168,6 +22078,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21168
22078
|
};
|
|
21169
22079
|
Returns: number;
|
|
21170
22080
|
};
|
|
22081
|
+
refresh_floricode_derived_for_products: {
|
|
22082
|
+
Args: {
|
|
22083
|
+
_product_ids: string[];
|
|
22084
|
+
};
|
|
22085
|
+
Returns: number;
|
|
22086
|
+
};
|
|
21171
22087
|
reset_floriday_sync_cursor: {
|
|
21172
22088
|
Args: {
|
|
21173
22089
|
p_connection_id: string;
|
|
@@ -21175,6 +22091,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21175
22091
|
};
|
|
21176
22092
|
Returns: undefined;
|
|
21177
22093
|
};
|
|
22094
|
+
resolve_product_id_for_item: {
|
|
22095
|
+
Args: {
|
|
22096
|
+
p_product_name: string;
|
|
22097
|
+
};
|
|
22098
|
+
Returns: string;
|
|
22099
|
+
};
|
|
21178
22100
|
schedule_floriday_additional_services_sync: {
|
|
21179
22101
|
Args: {
|
|
21180
22102
|
p_apikey: string;
|
|
@@ -21452,6 +22374,24 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21452
22374
|
};
|
|
21453
22375
|
Returns: string[];
|
|
21454
22376
|
};
|
|
22377
|
+
sync_cached_packing_from_product: {
|
|
22378
|
+
Args: {
|
|
22379
|
+
p_product_id: string;
|
|
22380
|
+
};
|
|
22381
|
+
Returns: undefined;
|
|
22382
|
+
};
|
|
22383
|
+
sync_order_cart_item_packing_from_product: {
|
|
22384
|
+
Args: {
|
|
22385
|
+
p_product_id: string;
|
|
22386
|
+
};
|
|
22387
|
+
Returns: undefined;
|
|
22388
|
+
};
|
|
22389
|
+
sync_product_packing_from_floriday_cache: {
|
|
22390
|
+
Args: {
|
|
22391
|
+
p_floriday_id: string;
|
|
22392
|
+
};
|
|
22393
|
+
Returns: undefined;
|
|
22394
|
+
};
|
|
21455
22395
|
twinfield_decrypt: {
|
|
21456
22396
|
Args: {
|
|
21457
22397
|
cipher: string;
|
|
@@ -21496,7 +22436,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
21496
22436
|
Tables: {
|
|
21497
22437
|
afhandeling_settings: {
|
|
21498
22438
|
Row: {
|
|
22439
|
+
auto_print_delivery_note: boolean;
|
|
22440
|
+
auto_process_paused: boolean;
|
|
21499
22441
|
created_at: string;
|
|
22442
|
+
extra_pick_days_with_stickers: number;
|
|
21500
22443
|
id: string;
|
|
21501
22444
|
max_workdays_earlier_pick: number;
|
|
21502
22445
|
pick_days_before_transport: number;
|
|
@@ -21510,7 +22453,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
21510
22453
|
user_id: string;
|
|
21511
22454
|
};
|
|
21512
22455
|
Insert: {
|
|
22456
|
+
auto_print_delivery_note?: boolean;
|
|
22457
|
+
auto_process_paused?: boolean;
|
|
21513
22458
|
created_at?: string;
|
|
22459
|
+
extra_pick_days_with_stickers?: number;
|
|
21514
22460
|
id?: string;
|
|
21515
22461
|
max_workdays_earlier_pick?: number;
|
|
21516
22462
|
pick_days_before_transport?: number;
|
|
@@ -21524,7 +22470,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
21524
22470
|
user_id: string;
|
|
21525
22471
|
};
|
|
21526
22472
|
Update: {
|
|
22473
|
+
auto_print_delivery_note?: boolean;
|
|
22474
|
+
auto_process_paused?: boolean;
|
|
21527
22475
|
created_at?: string;
|
|
22476
|
+
extra_pick_days_with_stickers?: number;
|
|
21528
22477
|
id?: string;
|
|
21529
22478
|
max_workdays_earlier_pick?: number;
|
|
21530
22479
|
pick_days_before_transport?: number;
|
|
@@ -22316,6 +23265,36 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
22316
23265
|
};
|
|
22317
23266
|
Relationships: [];
|
|
22318
23267
|
};
|
|
23268
|
+
cart_replan_queue: {
|
|
23269
|
+
Row: {
|
|
23270
|
+
attempts: number;
|
|
23271
|
+
last_error: string | null;
|
|
23272
|
+
order_id: string;
|
|
23273
|
+
processed_at: string | null;
|
|
23274
|
+
requested_at: string;
|
|
23275
|
+
};
|
|
23276
|
+
Insert: {
|
|
23277
|
+
attempts?: number;
|
|
23278
|
+
last_error?: string | null;
|
|
23279
|
+
order_id: string;
|
|
23280
|
+
processed_at?: string | null;
|
|
23281
|
+
requested_at?: string;
|
|
23282
|
+
};
|
|
23283
|
+
Update: {
|
|
23284
|
+
attempts?: number;
|
|
23285
|
+
last_error?: string | null;
|
|
23286
|
+
order_id?: string;
|
|
23287
|
+
processed_at?: string | null;
|
|
23288
|
+
requested_at?: string;
|
|
23289
|
+
};
|
|
23290
|
+
Relationships: [{
|
|
23291
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
23292
|
+
columns: ["order_id"];
|
|
23293
|
+
isOneToOne: true;
|
|
23294
|
+
referencedRelation: "orders";
|
|
23295
|
+
referencedColumns: ["id"];
|
|
23296
|
+
}];
|
|
23297
|
+
};
|
|
22319
23298
|
collections: {
|
|
22320
23299
|
Row: {
|
|
22321
23300
|
created_at: string;
|
|
@@ -24441,34 +25420,52 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
24441
25420
|
Row: {
|
|
24442
25421
|
catalog_key: string | null;
|
|
24443
25422
|
catalog_url: string;
|
|
25423
|
+
client_id: string | null;
|
|
25424
|
+
client_secret_ciphertext: string | null;
|
|
25425
|
+
client_secret_last4: string | null;
|
|
24444
25426
|
created_at: string;
|
|
24445
25427
|
id: number;
|
|
24446
25428
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
24447
25429
|
last_test_at: string | null;
|
|
24448
25430
|
last_test_error: string | null;
|
|
24449
25431
|
last_test_ok: boolean | null;
|
|
25432
|
+
last_token_test_at: string | null;
|
|
25433
|
+
last_token_test_error: string | null;
|
|
25434
|
+
last_token_test_ok: boolean | null;
|
|
24450
25435
|
updated_at: string;
|
|
24451
25436
|
};
|
|
24452
25437
|
Insert: {
|
|
24453
25438
|
catalog_key?: string | null;
|
|
24454
25439
|
catalog_url?: string;
|
|
25440
|
+
client_id?: string | null;
|
|
25441
|
+
client_secret_ciphertext?: string | null;
|
|
25442
|
+
client_secret_last4?: string | null;
|
|
24455
25443
|
created_at?: string;
|
|
24456
25444
|
id?: number;
|
|
24457
25445
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
24458
25446
|
last_test_at?: string | null;
|
|
24459
25447
|
last_test_error?: string | null;
|
|
24460
25448
|
last_test_ok?: boolean | null;
|
|
25449
|
+
last_token_test_at?: string | null;
|
|
25450
|
+
last_token_test_error?: string | null;
|
|
25451
|
+
last_token_test_ok?: boolean | null;
|
|
24461
25452
|
updated_at?: string;
|
|
24462
25453
|
};
|
|
24463
25454
|
Update: {
|
|
24464
25455
|
catalog_key?: string | null;
|
|
24465
25456
|
catalog_url?: string;
|
|
25457
|
+
client_id?: string | null;
|
|
25458
|
+
client_secret_ciphertext?: string | null;
|
|
25459
|
+
client_secret_last4?: string | null;
|
|
24466
25460
|
created_at?: string;
|
|
24467
25461
|
id?: number;
|
|
24468
25462
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
24469
25463
|
last_test_at?: string | null;
|
|
24470
25464
|
last_test_error?: string | null;
|
|
24471
25465
|
last_test_ok?: boolean | null;
|
|
25466
|
+
last_token_test_at?: string | null;
|
|
25467
|
+
last_token_test_error?: string | null;
|
|
25468
|
+
last_token_test_ok?: boolean | null;
|
|
24472
25469
|
updated_at?: string;
|
|
24473
25470
|
};
|
|
24474
25471
|
Relationships: [];
|
|
@@ -24701,6 +25698,54 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
24701
25698
|
referencedColumns: ["id"];
|
|
24702
25699
|
}];
|
|
24703
25700
|
};
|
|
25701
|
+
floriday_auto_fulfillment_log: {
|
|
25702
|
+
Row: {
|
|
25703
|
+
attempts: number;
|
|
25704
|
+
connection_id: string;
|
|
25705
|
+
created_at: string;
|
|
25706
|
+
error: string | null;
|
|
25707
|
+
fulfillment_order_id: string | null;
|
|
25708
|
+
id: string;
|
|
25709
|
+
last_attempt_at: string | null;
|
|
25710
|
+
reason: string | null;
|
|
25711
|
+
sales_order_id: string;
|
|
25712
|
+
status: string;
|
|
25713
|
+
updated_at: string;
|
|
25714
|
+
};
|
|
25715
|
+
Insert: {
|
|
25716
|
+
attempts?: number;
|
|
25717
|
+
connection_id: string;
|
|
25718
|
+
created_at?: string;
|
|
25719
|
+
error?: string | null;
|
|
25720
|
+
fulfillment_order_id?: string | null;
|
|
25721
|
+
id?: string;
|
|
25722
|
+
last_attempt_at?: string | null;
|
|
25723
|
+
reason?: string | null;
|
|
25724
|
+
sales_order_id: string;
|
|
25725
|
+
status?: string;
|
|
25726
|
+
updated_at?: string;
|
|
25727
|
+
};
|
|
25728
|
+
Update: {
|
|
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
|
+
Relationships: [{
|
|
25742
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
25743
|
+
columns: ["connection_id"];
|
|
25744
|
+
isOneToOne: false;
|
|
25745
|
+
referencedRelation: "floriday_connections";
|
|
25746
|
+
referencedColumns: ["id"];
|
|
25747
|
+
}];
|
|
25748
|
+
};
|
|
24704
25749
|
floriday_base_items_cache: {
|
|
24705
25750
|
Row: {
|
|
24706
25751
|
connection_id: string;
|
|
@@ -25805,6 +26850,24 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
25805
26850
|
referencedColumns: ["id"];
|
|
25806
26851
|
}];
|
|
25807
26852
|
};
|
|
26853
|
+
floriday_rate_limit_state: {
|
|
26854
|
+
Row: {
|
|
26855
|
+
bucket: string;
|
|
26856
|
+
last_refill_at: string;
|
|
26857
|
+
tokens: number;
|
|
26858
|
+
};
|
|
26859
|
+
Insert: {
|
|
26860
|
+
bucket: string;
|
|
26861
|
+
last_refill_at?: string;
|
|
26862
|
+
tokens: number;
|
|
26863
|
+
};
|
|
26864
|
+
Update: {
|
|
26865
|
+
bucket?: string;
|
|
26866
|
+
last_refill_at?: string;
|
|
26867
|
+
tokens?: number;
|
|
26868
|
+
};
|
|
26869
|
+
Relationships: [];
|
|
26870
|
+
};
|
|
25808
26871
|
floriday_resource_schemas: {
|
|
25809
26872
|
Row: {
|
|
25810
26873
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -26228,6 +27291,60 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26228
27291
|
referencedColumns: ["id"];
|
|
26229
27292
|
}];
|
|
26230
27293
|
};
|
|
27294
|
+
flow_role_assignments: {
|
|
27295
|
+
Row: {
|
|
27296
|
+
created_at: string;
|
|
27297
|
+
id: string;
|
|
27298
|
+
role_id: string;
|
|
27299
|
+
user_id: string;
|
|
27300
|
+
};
|
|
27301
|
+
Insert: {
|
|
27302
|
+
created_at?: string;
|
|
27303
|
+
id?: string;
|
|
27304
|
+
role_id: string;
|
|
27305
|
+
user_id: string;
|
|
27306
|
+
};
|
|
27307
|
+
Update: {
|
|
27308
|
+
created_at?: string;
|
|
27309
|
+
id?: string;
|
|
27310
|
+
role_id?: string;
|
|
27311
|
+
user_id?: string;
|
|
27312
|
+
};
|
|
27313
|
+
Relationships: [{
|
|
27314
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
27315
|
+
columns: ["role_id"];
|
|
27316
|
+
isOneToOne: false;
|
|
27317
|
+
referencedRelation: "flow_roles";
|
|
27318
|
+
referencedColumns: ["id"];
|
|
27319
|
+
}];
|
|
27320
|
+
};
|
|
27321
|
+
flow_roles: {
|
|
27322
|
+
Row: {
|
|
27323
|
+
created_at: string;
|
|
27324
|
+
description: string | null;
|
|
27325
|
+
id: string;
|
|
27326
|
+
module_access: string[];
|
|
27327
|
+
name: string;
|
|
27328
|
+
updated_at: string;
|
|
27329
|
+
};
|
|
27330
|
+
Insert: {
|
|
27331
|
+
created_at?: string;
|
|
27332
|
+
description?: string | null;
|
|
27333
|
+
id?: string;
|
|
27334
|
+
module_access?: string[];
|
|
27335
|
+
name: string;
|
|
27336
|
+
updated_at?: string;
|
|
27337
|
+
};
|
|
27338
|
+
Update: {
|
|
27339
|
+
created_at?: string;
|
|
27340
|
+
description?: string | null;
|
|
27341
|
+
id?: string;
|
|
27342
|
+
module_access?: string[];
|
|
27343
|
+
name?: string;
|
|
27344
|
+
updated_at?: string;
|
|
27345
|
+
};
|
|
27346
|
+
Relationships: [];
|
|
27347
|
+
};
|
|
26231
27348
|
imap_accounts: {
|
|
26232
27349
|
Row: {
|
|
26233
27350
|
created_at: string;
|
|
@@ -26859,6 +27976,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26859
27976
|
matched_customer_id: string | null;
|
|
26860
27977
|
message_id: string;
|
|
26861
27978
|
notes: string | null;
|
|
27979
|
+
order_number: string | null;
|
|
26862
27980
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
26863
27981
|
reviewed_at: string | null;
|
|
26864
27982
|
reviewed_by: string | null;
|
|
@@ -26874,6 +27992,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26874
27992
|
matched_customer_id?: string | null;
|
|
26875
27993
|
message_id: string;
|
|
26876
27994
|
notes?: string | null;
|
|
27995
|
+
order_number?: string | null;
|
|
26877
27996
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
26878
27997
|
reviewed_at?: string | null;
|
|
26879
27998
|
reviewed_by?: string | null;
|
|
@@ -26889,6 +28008,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26889
28008
|
matched_customer_id?: string | null;
|
|
26890
28009
|
message_id?: string;
|
|
26891
28010
|
notes?: string | null;
|
|
28011
|
+
order_number?: string | null;
|
|
26892
28012
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
26893
28013
|
reviewed_at?: string | null;
|
|
26894
28014
|
reviewed_by?: string | null;
|
|
@@ -27745,6 +28865,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27745
28865
|
id: string;
|
|
27746
28866
|
items: import("../integrations/supabase/types").Json;
|
|
27747
28867
|
notes: string | null;
|
|
28868
|
+
order_number: string | null;
|
|
27748
28869
|
recipient_id: string;
|
|
27749
28870
|
total_amount: number;
|
|
27750
28871
|
};
|
|
@@ -27758,6 +28879,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27758
28879
|
id?: string;
|
|
27759
28880
|
items?: import("../integrations/supabase/types").Json;
|
|
27760
28881
|
notes?: string | null;
|
|
28882
|
+
order_number?: string | null;
|
|
27761
28883
|
recipient_id: string;
|
|
27762
28884
|
total_amount?: number;
|
|
27763
28885
|
};
|
|
@@ -27771,6 +28893,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27771
28893
|
id?: string;
|
|
27772
28894
|
items?: import("../integrations/supabase/types").Json;
|
|
27773
28895
|
notes?: string | null;
|
|
28896
|
+
order_number?: string | null;
|
|
27774
28897
|
recipient_id?: string;
|
|
27775
28898
|
total_amount?: number;
|
|
27776
28899
|
};
|
|
@@ -27930,6 +29053,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27930
29053
|
crates_per_layer: number;
|
|
27931
29054
|
created_at: string;
|
|
27932
29055
|
id: string;
|
|
29056
|
+
layer_fraction: number;
|
|
29057
|
+
layer_share_pct: number;
|
|
29058
|
+
layers_per_cart: number;
|
|
27933
29059
|
order_item_id: string | null;
|
|
27934
29060
|
plants_per_crate: number;
|
|
27935
29061
|
product_id: string | null;
|
|
@@ -27941,6 +29067,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27941
29067
|
crates_per_layer?: number;
|
|
27942
29068
|
created_at?: string;
|
|
27943
29069
|
id?: string;
|
|
29070
|
+
layer_fraction?: number;
|
|
29071
|
+
layer_share_pct?: number;
|
|
29072
|
+
layers_per_cart?: number;
|
|
27944
29073
|
order_item_id?: string | null;
|
|
27945
29074
|
plants_per_crate?: number;
|
|
27946
29075
|
product_id?: string | null;
|
|
@@ -27952,6 +29081,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27952
29081
|
crates_per_layer?: number;
|
|
27953
29082
|
created_at?: string;
|
|
27954
29083
|
id?: string;
|
|
29084
|
+
layer_fraction?: number;
|
|
29085
|
+
layer_share_pct?: number;
|
|
29086
|
+
layers_per_cart?: number;
|
|
27955
29087
|
order_item_id?: string | null;
|
|
27956
29088
|
plants_per_crate?: number;
|
|
27957
29089
|
product_id?: string | null;
|
|
@@ -27979,33 +29111,45 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27979
29111
|
};
|
|
27980
29112
|
order_carts: {
|
|
27981
29113
|
Row: {
|
|
29114
|
+
algorithm_version: number;
|
|
27982
29115
|
cart_number: number;
|
|
27983
29116
|
created_at: string;
|
|
27984
29117
|
id: string;
|
|
27985
29118
|
is_auto: boolean;
|
|
27986
29119
|
is_complete: boolean;
|
|
27987
29120
|
notes: string | null;
|
|
29121
|
+
occupancy_pct: number;
|
|
27988
29122
|
order_id: string;
|
|
29123
|
+
source: string;
|
|
29124
|
+
total_layers_used: number;
|
|
27989
29125
|
updated_at: string;
|
|
27990
29126
|
};
|
|
27991
29127
|
Insert: {
|
|
29128
|
+
algorithm_version?: number;
|
|
27992
29129
|
cart_number: number;
|
|
27993
29130
|
created_at?: string;
|
|
27994
29131
|
id?: string;
|
|
27995
29132
|
is_auto?: boolean;
|
|
27996
29133
|
is_complete?: boolean;
|
|
27997
29134
|
notes?: string | null;
|
|
29135
|
+
occupancy_pct?: number;
|
|
27998
29136
|
order_id: string;
|
|
29137
|
+
source?: string;
|
|
29138
|
+
total_layers_used?: number;
|
|
27999
29139
|
updated_at?: string;
|
|
28000
29140
|
};
|
|
28001
29141
|
Update: {
|
|
29142
|
+
algorithm_version?: number;
|
|
28002
29143
|
cart_number?: number;
|
|
28003
29144
|
created_at?: string;
|
|
28004
29145
|
id?: string;
|
|
28005
29146
|
is_auto?: boolean;
|
|
28006
29147
|
is_complete?: boolean;
|
|
28007
29148
|
notes?: string | null;
|
|
29149
|
+
occupancy_pct?: number;
|
|
28008
29150
|
order_id?: string;
|
|
29151
|
+
source?: string;
|
|
29152
|
+
total_layers_used?: number;
|
|
28009
29153
|
updated_at?: string;
|
|
28010
29154
|
};
|
|
28011
29155
|
Relationships: [{
|
|
@@ -28158,6 +29302,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
28158
29302
|
order_date: string;
|
|
28159
29303
|
order_number: string;
|
|
28160
29304
|
order_source: string;
|
|
29305
|
+
plan_locked_at: string | null;
|
|
29306
|
+
plan_locked_ref: string | null;
|
|
28161
29307
|
status: string;
|
|
28162
29308
|
total: string;
|
|
28163
29309
|
updated_at: string;
|
|
@@ -28174,6 +29320,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
28174
29320
|
order_date?: string;
|
|
28175
29321
|
order_number: string;
|
|
28176
29322
|
order_source?: string;
|
|
29323
|
+
plan_locked_at?: string | null;
|
|
29324
|
+
plan_locked_ref?: string | null;
|
|
28177
29325
|
status?: string;
|
|
28178
29326
|
total?: string;
|
|
28179
29327
|
updated_at?: string;
|
|
@@ -28190,6 +29338,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
28190
29338
|
order_date?: string;
|
|
28191
29339
|
order_number?: string;
|
|
28192
29340
|
order_source?: string;
|
|
29341
|
+
plan_locked_at?: string | null;
|
|
29342
|
+
plan_locked_ref?: string | null;
|
|
28193
29343
|
status?: string;
|
|
28194
29344
|
total?: string;
|
|
28195
29345
|
updated_at?: string;
|
|
@@ -28562,6 +29712,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
28562
29712
|
display_name: string | null;
|
|
28563
29713
|
email: string | null;
|
|
28564
29714
|
id: string;
|
|
29715
|
+
is_superadmin: boolean;
|
|
28565
29716
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
28566
29717
|
tenant_id: string | null;
|
|
28567
29718
|
updated_at: string;
|
|
@@ -28571,6 +29722,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
28571
29722
|
display_name?: string | null;
|
|
28572
29723
|
email?: string | null;
|
|
28573
29724
|
id: string;
|
|
29725
|
+
is_superadmin?: boolean;
|
|
28574
29726
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
28575
29727
|
tenant_id?: string | null;
|
|
28576
29728
|
updated_at?: string;
|
|
@@ -28580,6 +29732,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
28580
29732
|
display_name?: string | null;
|
|
28581
29733
|
email?: string | null;
|
|
28582
29734
|
id?: string;
|
|
29735
|
+
is_superadmin?: boolean;
|
|
28583
29736
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
28584
29737
|
tenant_id?: string | null;
|
|
28585
29738
|
updated_at?: string;
|
|
@@ -29369,6 +30522,24 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29369
30522
|
};
|
|
29370
30523
|
Relationships: [];
|
|
29371
30524
|
};
|
|
30525
|
+
sidebar_config: {
|
|
30526
|
+
Row: {
|
|
30527
|
+
id: string;
|
|
30528
|
+
module_order: string[];
|
|
30529
|
+
updated_at: string;
|
|
30530
|
+
};
|
|
30531
|
+
Insert: {
|
|
30532
|
+
id?: string;
|
|
30533
|
+
module_order?: string[];
|
|
30534
|
+
updated_at?: string;
|
|
30535
|
+
};
|
|
30536
|
+
Update: {
|
|
30537
|
+
id?: string;
|
|
30538
|
+
module_order?: string[];
|
|
30539
|
+
updated_at?: string;
|
|
30540
|
+
};
|
|
30541
|
+
Relationships: [];
|
|
30542
|
+
};
|
|
29372
30543
|
stock_import_runs: {
|
|
29373
30544
|
Row: {
|
|
29374
30545
|
connection_id: string | null;
|
|
@@ -29427,7 +30598,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29427
30598
|
reason: string | null;
|
|
29428
30599
|
reserved_after: number | null;
|
|
29429
30600
|
reserved_before: number | null;
|
|
29430
|
-
trade_item_key: string;
|
|
30601
|
+
trade_item_key: string | null;
|
|
29431
30602
|
};
|
|
29432
30603
|
Insert: {
|
|
29433
30604
|
connection_id?: string | null;
|
|
@@ -29444,7 +30615,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29444
30615
|
reason?: string | null;
|
|
29445
30616
|
reserved_after?: number | null;
|
|
29446
30617
|
reserved_before?: number | null;
|
|
29447
|
-
trade_item_key
|
|
30618
|
+
trade_item_key?: string | null;
|
|
29448
30619
|
};
|
|
29449
30620
|
Update: {
|
|
29450
30621
|
connection_id?: string | null;
|
|
@@ -29461,7 +30632,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29461
30632
|
reason?: string | null;
|
|
29462
30633
|
reserved_after?: number | null;
|
|
29463
30634
|
reserved_before?: number | null;
|
|
29464
|
-
trade_item_key?: string;
|
|
30635
|
+
trade_item_key?: string | null;
|
|
29465
30636
|
};
|
|
29466
30637
|
Relationships: [];
|
|
29467
30638
|
};
|
|
@@ -29804,6 +30975,114 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29804
30975
|
};
|
|
29805
30976
|
Relationships: [];
|
|
29806
30977
|
};
|
|
30978
|
+
trade_item_supply_lines: {
|
|
30979
|
+
Row: {
|
|
30980
|
+
available_quantity: number | null;
|
|
30981
|
+
connection_id: string;
|
|
30982
|
+
created_at: string;
|
|
30983
|
+
currency: string | null;
|
|
30984
|
+
endpoint_family: string | null;
|
|
30985
|
+
environment: string | null;
|
|
30986
|
+
id: string;
|
|
30987
|
+
last_error: string | null;
|
|
30988
|
+
last_status: number | null;
|
|
30989
|
+
packing_configuration_id: string | null;
|
|
30990
|
+
period_end: string | null;
|
|
30991
|
+
period_start: string | null;
|
|
30992
|
+
price_per_piece: number | null;
|
|
30993
|
+
sales_unit: string | null;
|
|
30994
|
+
supply_line_id: string | null;
|
|
30995
|
+
supply_type: string;
|
|
30996
|
+
trade_item_id: string;
|
|
30997
|
+
updated_at: string;
|
|
30998
|
+
user_id: string;
|
|
30999
|
+
week: number | null;
|
|
31000
|
+
year: number | null;
|
|
31001
|
+
};
|
|
31002
|
+
Insert: {
|
|
31003
|
+
available_quantity?: number | null;
|
|
31004
|
+
connection_id: string;
|
|
31005
|
+
created_at?: string;
|
|
31006
|
+
currency?: string | null;
|
|
31007
|
+
endpoint_family?: string | null;
|
|
31008
|
+
environment?: string | null;
|
|
31009
|
+
id?: string;
|
|
31010
|
+
last_error?: string | null;
|
|
31011
|
+
last_status?: number | null;
|
|
31012
|
+
packing_configuration_id?: string | null;
|
|
31013
|
+
period_end?: string | null;
|
|
31014
|
+
period_start?: string | null;
|
|
31015
|
+
price_per_piece?: number | null;
|
|
31016
|
+
sales_unit?: string | null;
|
|
31017
|
+
supply_line_id?: string | null;
|
|
31018
|
+
supply_type?: string;
|
|
31019
|
+
trade_item_id: string;
|
|
31020
|
+
updated_at?: string;
|
|
31021
|
+
user_id: string;
|
|
31022
|
+
week?: number | null;
|
|
31023
|
+
year?: number | null;
|
|
31024
|
+
};
|
|
31025
|
+
Update: {
|
|
31026
|
+
available_quantity?: number | null;
|
|
31027
|
+
connection_id?: string;
|
|
31028
|
+
created_at?: string;
|
|
31029
|
+
currency?: string | null;
|
|
31030
|
+
endpoint_family?: string | null;
|
|
31031
|
+
environment?: string | null;
|
|
31032
|
+
id?: string;
|
|
31033
|
+
last_error?: string | null;
|
|
31034
|
+
last_status?: number | null;
|
|
31035
|
+
packing_configuration_id?: string | null;
|
|
31036
|
+
period_end?: string | null;
|
|
31037
|
+
period_start?: string | null;
|
|
31038
|
+
price_per_piece?: number | null;
|
|
31039
|
+
sales_unit?: string | null;
|
|
31040
|
+
supply_line_id?: string | null;
|
|
31041
|
+
supply_type?: string;
|
|
31042
|
+
trade_item_id?: string;
|
|
31043
|
+
updated_at?: string;
|
|
31044
|
+
user_id?: string;
|
|
31045
|
+
week?: number | null;
|
|
31046
|
+
year?: number | null;
|
|
31047
|
+
};
|
|
31048
|
+
Relationships: [];
|
|
31049
|
+
};
|
|
31050
|
+
trade_item_warehouse_preferences: {
|
|
31051
|
+
Row: {
|
|
31052
|
+
connection_id: string;
|
|
31053
|
+
created_at: string;
|
|
31054
|
+
id: string;
|
|
31055
|
+
trade_item_id: string;
|
|
31056
|
+
updated_at: string;
|
|
31057
|
+
warehouse_id: string;
|
|
31058
|
+
warehouse_name: string | null;
|
|
31059
|
+
};
|
|
31060
|
+
Insert: {
|
|
31061
|
+
connection_id: string;
|
|
31062
|
+
created_at?: string;
|
|
31063
|
+
id?: string;
|
|
31064
|
+
trade_item_id: string;
|
|
31065
|
+
updated_at?: string;
|
|
31066
|
+
warehouse_id: string;
|
|
31067
|
+
warehouse_name?: string | null;
|
|
31068
|
+
};
|
|
31069
|
+
Update: {
|
|
31070
|
+
connection_id?: string;
|
|
31071
|
+
created_at?: string;
|
|
31072
|
+
id?: string;
|
|
31073
|
+
trade_item_id?: string;
|
|
31074
|
+
updated_at?: string;
|
|
31075
|
+
warehouse_id?: string;
|
|
31076
|
+
warehouse_name?: string | null;
|
|
31077
|
+
};
|
|
31078
|
+
Relationships: [{
|
|
31079
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
31080
|
+
columns: ["connection_id"];
|
|
31081
|
+
isOneToOne: false;
|
|
31082
|
+
referencedRelation: "floriday_connections";
|
|
31083
|
+
referencedColumns: ["id"];
|
|
31084
|
+
}];
|
|
31085
|
+
};
|
|
29807
31086
|
twinfield_connections: {
|
|
29808
31087
|
Row: {
|
|
29809
31088
|
access_token: string | null;
|
|
@@ -30123,6 +31402,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
30123
31402
|
default_invoice_type: string;
|
|
30124
31403
|
default_payment_term_days: number;
|
|
30125
31404
|
default_vat_code: string;
|
|
31405
|
+
invoice_enabled_ao: boolean;
|
|
31406
|
+
invoice_enabled_fo: boolean;
|
|
31407
|
+
invoice_enabled_ho: boolean;
|
|
31408
|
+
invoice_enabled_mo: boolean;
|
|
30126
31409
|
updated_at: string;
|
|
30127
31410
|
user_id: string;
|
|
30128
31411
|
};
|
|
@@ -30132,6 +31415,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
30132
31415
|
default_invoice_type?: string;
|
|
30133
31416
|
default_payment_term_days?: number;
|
|
30134
31417
|
default_vat_code?: string;
|
|
31418
|
+
invoice_enabled_ao?: boolean;
|
|
31419
|
+
invoice_enabled_fo?: boolean;
|
|
31420
|
+
invoice_enabled_ho?: boolean;
|
|
31421
|
+
invoice_enabled_mo?: boolean;
|
|
30135
31422
|
updated_at?: string;
|
|
30136
31423
|
user_id: string;
|
|
30137
31424
|
};
|
|
@@ -30141,6 +31428,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
30141
31428
|
default_invoice_type?: string;
|
|
30142
31429
|
default_payment_term_days?: number;
|
|
30143
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;
|
|
30144
31435
|
updated_at?: string;
|
|
30145
31436
|
user_id?: string;
|
|
30146
31437
|
};
|
|
@@ -31435,6 +32726,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31435
32726
|
order_number: string;
|
|
31436
32727
|
}[];
|
|
31437
32728
|
};
|
|
32729
|
+
autolink_product_to_floriday: {
|
|
32730
|
+
Args: {
|
|
32731
|
+
p_product_id: string;
|
|
32732
|
+
};
|
|
32733
|
+
Returns: string;
|
|
32734
|
+
};
|
|
31438
32735
|
backfill_open_order_reservations: {
|
|
31439
32736
|
Args: never;
|
|
31440
32737
|
Returns: {
|
|
@@ -31473,6 +32770,18 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31473
32770
|
Args: never;
|
|
31474
32771
|
Returns: number;
|
|
31475
32772
|
};
|
|
32773
|
+
consume_floriday_rate_limit: {
|
|
32774
|
+
Args: {
|
|
32775
|
+
p_bucket: string;
|
|
32776
|
+
p_capacity: number;
|
|
32777
|
+
p_cost?: number;
|
|
32778
|
+
p_refill_per_sec: number;
|
|
32779
|
+
};
|
|
32780
|
+
Returns: {
|
|
32781
|
+
granted: boolean;
|
|
32782
|
+
wait_ms: number;
|
|
32783
|
+
}[];
|
|
32784
|
+
};
|
|
31476
32785
|
control_get_todays_carts: {
|
|
31477
32786
|
Args: never;
|
|
31478
32787
|
Returns: {
|
|
@@ -31553,6 +32862,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31553
32862
|
status: string;
|
|
31554
32863
|
}[];
|
|
31555
32864
|
};
|
|
32865
|
+
enqueue_cart_replan_if_unlocked: {
|
|
32866
|
+
Args: {
|
|
32867
|
+
p_order_id: string;
|
|
32868
|
+
};
|
|
32869
|
+
Returns: undefined;
|
|
32870
|
+
};
|
|
31556
32871
|
ensure_trade_item_stock_row: {
|
|
31557
32872
|
Args: {
|
|
31558
32873
|
p_key: string;
|
|
@@ -31659,6 +32974,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31659
32974
|
office_code: string;
|
|
31660
32975
|
}[];
|
|
31661
32976
|
};
|
|
32977
|
+
get_floricode_record_counts: {
|
|
32978
|
+
Args: never;
|
|
32979
|
+
Returns: {
|
|
32980
|
+
count: number;
|
|
32981
|
+
resource: string;
|
|
32982
|
+
}[];
|
|
32983
|
+
};
|
|
31662
32984
|
get_floriday_agreements_active: {
|
|
31663
32985
|
Args: {
|
|
31664
32986
|
p_on_date?: string;
|
|
@@ -31750,6 +33072,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31750
33072
|
};
|
|
31751
33073
|
Returns: import("../integrations/supabase/types").Json;
|
|
31752
33074
|
};
|
|
33075
|
+
get_offer_delivery_options: {
|
|
33076
|
+
Args: {
|
|
33077
|
+
p_code: string;
|
|
33078
|
+
};
|
|
33079
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
33080
|
+
};
|
|
31753
33081
|
get_offer_recipient_by_code: {
|
|
31754
33082
|
Args: {
|
|
31755
33083
|
p_code: string;
|
|
@@ -31814,6 +33142,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31814
33142
|
Args: never;
|
|
31815
33143
|
Returns: boolean;
|
|
31816
33144
|
};
|
|
33145
|
+
is_superadmin: {
|
|
33146
|
+
Args: {
|
|
33147
|
+
_user_id: string;
|
|
33148
|
+
};
|
|
33149
|
+
Returns: boolean;
|
|
33150
|
+
};
|
|
31817
33151
|
local_effective_price: {
|
|
31818
33152
|
Args: {
|
|
31819
33153
|
_customer_id: string;
|
|
@@ -31848,6 +33182,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31848
33182
|
};
|
|
31849
33183
|
Returns: string;
|
|
31850
33184
|
};
|
|
33185
|
+
next_order_number_for_date: {
|
|
33186
|
+
Args: {
|
|
33187
|
+
p_created_at?: string;
|
|
33188
|
+
p_prefix: string;
|
|
33189
|
+
};
|
|
33190
|
+
Returns: string;
|
|
33191
|
+
};
|
|
31851
33192
|
next_work_order_number: {
|
|
31852
33193
|
Args: {
|
|
31853
33194
|
p_parent_work_order_id?: string;
|
|
@@ -31855,6 +33196,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31855
33196
|
};
|
|
31856
33197
|
Returns: string;
|
|
31857
33198
|
};
|
|
33199
|
+
normalize_order_source: {
|
|
33200
|
+
Args: {
|
|
33201
|
+
p_src: string;
|
|
33202
|
+
};
|
|
33203
|
+
Returns: string;
|
|
33204
|
+
};
|
|
31858
33205
|
normalize_vat: {
|
|
31859
33206
|
Args: {
|
|
31860
33207
|
v: string;
|
|
@@ -31869,10 +33216,21 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31869
33216
|
};
|
|
31870
33217
|
Returns: boolean;
|
|
31871
33218
|
};
|
|
33219
|
+
order_number_prefix: {
|
|
33220
|
+
Args: {
|
|
33221
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
33222
|
+
p_order_source: string;
|
|
33223
|
+
};
|
|
33224
|
+
Returns: string;
|
|
33225
|
+
};
|
|
31872
33226
|
pickstation_get_orders_raw: {
|
|
31873
33227
|
Args: never;
|
|
31874
33228
|
Returns: import("../integrations/supabase/types").Json;
|
|
31875
33229
|
};
|
|
33230
|
+
pickstation_get_planning_context: {
|
|
33231
|
+
Args: never;
|
|
33232
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
33233
|
+
};
|
|
31876
33234
|
pickstation_get_settings: {
|
|
31877
33235
|
Args: never;
|
|
31878
33236
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -31903,6 +33261,28 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31903
33261
|
};
|
|
31904
33262
|
Returns: undefined;
|
|
31905
33263
|
};
|
|
33264
|
+
recompute_order_status: {
|
|
33265
|
+
Args: {
|
|
33266
|
+
p_order_id: string;
|
|
33267
|
+
};
|
|
33268
|
+
Returns: undefined;
|
|
33269
|
+
};
|
|
33270
|
+
recompute_reserved_for_order: {
|
|
33271
|
+
Args: {
|
|
33272
|
+
p_order_id: string;
|
|
33273
|
+
};
|
|
33274
|
+
Returns: undefined;
|
|
33275
|
+
};
|
|
33276
|
+
recompute_reserved_stock: {
|
|
33277
|
+
Args: {
|
|
33278
|
+
p_trade_item_key: string;
|
|
33279
|
+
};
|
|
33280
|
+
Returns: undefined;
|
|
33281
|
+
};
|
|
33282
|
+
refresh_external_customers_grouped: {
|
|
33283
|
+
Args: never;
|
|
33284
|
+
Returns: undefined;
|
|
33285
|
+
};
|
|
31906
33286
|
refresh_floricode_derived_code_lists: {
|
|
31907
33287
|
Args: never;
|
|
31908
33288
|
Returns: {
|
|
@@ -31917,6 +33297,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31917
33297
|
};
|
|
31918
33298
|
Returns: number;
|
|
31919
33299
|
};
|
|
33300
|
+
refresh_floricode_derived_for_products: {
|
|
33301
|
+
Args: {
|
|
33302
|
+
_product_ids: string[];
|
|
33303
|
+
};
|
|
33304
|
+
Returns: number;
|
|
33305
|
+
};
|
|
31920
33306
|
reset_floriday_sync_cursor: {
|
|
31921
33307
|
Args: {
|
|
31922
33308
|
p_connection_id: string;
|
|
@@ -31924,6 +33310,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31924
33310
|
};
|
|
31925
33311
|
Returns: undefined;
|
|
31926
33312
|
};
|
|
33313
|
+
resolve_product_id_for_item: {
|
|
33314
|
+
Args: {
|
|
33315
|
+
p_product_name: string;
|
|
33316
|
+
};
|
|
33317
|
+
Returns: string;
|
|
33318
|
+
};
|
|
31927
33319
|
schedule_floriday_additional_services_sync: {
|
|
31928
33320
|
Args: {
|
|
31929
33321
|
p_apikey: string;
|
|
@@ -32201,6 +33593,24 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
32201
33593
|
};
|
|
32202
33594
|
Returns: string[];
|
|
32203
33595
|
};
|
|
33596
|
+
sync_cached_packing_from_product: {
|
|
33597
|
+
Args: {
|
|
33598
|
+
p_product_id: string;
|
|
33599
|
+
};
|
|
33600
|
+
Returns: undefined;
|
|
33601
|
+
};
|
|
33602
|
+
sync_order_cart_item_packing_from_product: {
|
|
33603
|
+
Args: {
|
|
33604
|
+
p_product_id: string;
|
|
33605
|
+
};
|
|
33606
|
+
Returns: undefined;
|
|
33607
|
+
};
|
|
33608
|
+
sync_product_packing_from_floriday_cache: {
|
|
33609
|
+
Args: {
|
|
33610
|
+
p_floriday_id: string;
|
|
33611
|
+
};
|
|
33612
|
+
Returns: undefined;
|
|
33613
|
+
};
|
|
32204
33614
|
twinfield_decrypt: {
|
|
32205
33615
|
Args: {
|
|
32206
33616
|
cipher: string;
|