@flowselections/floriday-verkoop-module 1.0.11 → 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 +230 -192
- 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/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +3 -4
- package/dist-lib/components/verkoop/SearchableSelect.d.ts +19 -0
- package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -0
- package/dist-lib/components/verkoop/SearchableSelect.js +21 -0
- 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 +1381 -86
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1381 -86
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1381 -86
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1402 -79
- 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 +100967 -0
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -0
- package/dist-lib/lib/create-order.functions.js +343 -0
- 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 +9067 -16
- 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 +6475 -0
- 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 +4273 -388
- 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 +1381 -86
- 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 +130 -41
- package/package.json +1 -1
|
@@ -8,7 +8,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
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 runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
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 runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
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;
|
|
@@ -718,6 +727,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
718
727
|
notes: string | null;
|
|
719
728
|
performed_at: string;
|
|
720
729
|
rescheduled_count: number;
|
|
730
|
+
stock_consumed_at: string | null;
|
|
721
731
|
total_carts: number;
|
|
722
732
|
updated_at: string;
|
|
723
733
|
user_id: string;
|
|
@@ -731,6 +741,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
731
741
|
notes?: string | null;
|
|
732
742
|
performed_at?: string;
|
|
733
743
|
rescheduled_count?: number;
|
|
744
|
+
stock_consumed_at?: string | null;
|
|
734
745
|
total_carts?: number;
|
|
735
746
|
updated_at?: string;
|
|
736
747
|
user_id: string;
|
|
@@ -744,6 +755,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
744
755
|
notes?: string | null;
|
|
745
756
|
performed_at?: string;
|
|
746
757
|
rescheduled_count?: number;
|
|
758
|
+
stock_consumed_at?: string | null;
|
|
747
759
|
total_carts?: number;
|
|
748
760
|
updated_at?: string;
|
|
749
761
|
user_id?: string;
|
|
@@ -825,6 +837,36 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
825
837
|
};
|
|
826
838
|
Relationships: [];
|
|
827
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
|
+
};
|
|
828
870
|
collections: {
|
|
829
871
|
Row: {
|
|
830
872
|
created_at: string;
|
|
@@ -2950,34 +2992,52 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
2950
2992
|
Row: {
|
|
2951
2993
|
catalog_key: string | null;
|
|
2952
2994
|
catalog_url: string;
|
|
2995
|
+
client_id: string | null;
|
|
2996
|
+
client_secret_ciphertext: string | null;
|
|
2997
|
+
client_secret_last4: string | null;
|
|
2953
2998
|
created_at: string;
|
|
2954
2999
|
id: number;
|
|
2955
3000
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
2956
3001
|
last_test_at: string | null;
|
|
2957
3002
|
last_test_error: string | null;
|
|
2958
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;
|
|
2959
3007
|
updated_at: string;
|
|
2960
3008
|
};
|
|
2961
3009
|
Insert: {
|
|
2962
3010
|
catalog_key?: string | null;
|
|
2963
3011
|
catalog_url?: string;
|
|
3012
|
+
client_id?: string | null;
|
|
3013
|
+
client_secret_ciphertext?: string | null;
|
|
3014
|
+
client_secret_last4?: string | null;
|
|
2964
3015
|
created_at?: string;
|
|
2965
3016
|
id?: number;
|
|
2966
3017
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2967
3018
|
last_test_at?: string | null;
|
|
2968
3019
|
last_test_error?: string | null;
|
|
2969
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;
|
|
2970
3024
|
updated_at?: string;
|
|
2971
3025
|
};
|
|
2972
3026
|
Update: {
|
|
2973
3027
|
catalog_key?: string | null;
|
|
2974
3028
|
catalog_url?: string;
|
|
3029
|
+
client_id?: string | null;
|
|
3030
|
+
client_secret_ciphertext?: string | null;
|
|
3031
|
+
client_secret_last4?: string | null;
|
|
2975
3032
|
created_at?: string;
|
|
2976
3033
|
id?: number;
|
|
2977
3034
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2978
3035
|
last_test_at?: string | null;
|
|
2979
3036
|
last_test_error?: string | null;
|
|
2980
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;
|
|
2981
3041
|
updated_at?: string;
|
|
2982
3042
|
};
|
|
2983
3043
|
Relationships: [];
|
|
@@ -3210,6 +3270,54 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
3210
3270
|
referencedColumns: ["id"];
|
|
3211
3271
|
}];
|
|
3212
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
|
+
};
|
|
3213
3321
|
floriday_base_items_cache: {
|
|
3214
3322
|
Row: {
|
|
3215
3323
|
connection_id: string;
|
|
@@ -3624,6 +3732,51 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
3624
3732
|
referencedColumns: ["id"];
|
|
3625
3733
|
}];
|
|
3626
3734
|
};
|
|
3735
|
+
floriday_continuous_stock_queue: {
|
|
3736
|
+
Row: {
|
|
3737
|
+
attempts: number;
|
|
3738
|
+
connection_id: string;
|
|
3739
|
+
created_at: string;
|
|
3740
|
+
gateway_attempt_id: string | null;
|
|
3741
|
+
id: string;
|
|
3742
|
+
last_error: string | null;
|
|
3743
|
+
number_of_pieces: number;
|
|
3744
|
+
sent_at: string | null;
|
|
3745
|
+
status: string;
|
|
3746
|
+
trade_item_id: string;
|
|
3747
|
+
updated_at: string;
|
|
3748
|
+
user_id: string;
|
|
3749
|
+
};
|
|
3750
|
+
Insert: {
|
|
3751
|
+
attempts?: number;
|
|
3752
|
+
connection_id: string;
|
|
3753
|
+
created_at?: string;
|
|
3754
|
+
gateway_attempt_id?: string | null;
|
|
3755
|
+
id?: string;
|
|
3756
|
+
last_error?: string | null;
|
|
3757
|
+
number_of_pieces?: number;
|
|
3758
|
+
sent_at?: string | null;
|
|
3759
|
+
status?: string;
|
|
3760
|
+
trade_item_id: string;
|
|
3761
|
+
updated_at?: string;
|
|
3762
|
+
user_id: string;
|
|
3763
|
+
};
|
|
3764
|
+
Update: {
|
|
3765
|
+
attempts?: number;
|
|
3766
|
+
connection_id?: string;
|
|
3767
|
+
created_at?: string;
|
|
3768
|
+
gateway_attempt_id?: string | null;
|
|
3769
|
+
id?: string;
|
|
3770
|
+
last_error?: string | null;
|
|
3771
|
+
number_of_pieces?: number;
|
|
3772
|
+
sent_at?: string | null;
|
|
3773
|
+
status?: string;
|
|
3774
|
+
trade_item_id?: string;
|
|
3775
|
+
updated_at?: string;
|
|
3776
|
+
user_id?: string;
|
|
3777
|
+
};
|
|
3778
|
+
Relationships: [];
|
|
3779
|
+
};
|
|
3627
3780
|
floriday_contract_trade_item_groups_cache: {
|
|
3628
3781
|
Row: {
|
|
3629
3782
|
connection_id: string;
|
|
@@ -4269,6 +4422,24 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
4269
4422
|
referencedColumns: ["id"];
|
|
4270
4423
|
}];
|
|
4271
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
|
+
};
|
|
4272
4443
|
floriday_resource_schemas: {
|
|
4273
4444
|
Row: {
|
|
4274
4445
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -4692,6 +4863,60 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
4692
4863
|
referencedColumns: ["id"];
|
|
4693
4864
|
}];
|
|
4694
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
|
+
};
|
|
4695
4920
|
imap_accounts: {
|
|
4696
4921
|
Row: {
|
|
4697
4922
|
created_at: string;
|
|
@@ -5013,88 +5238,286 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5013
5238
|
};
|
|
5014
5239
|
Relationships: [];
|
|
5015
5240
|
};
|
|
5016
|
-
|
|
5241
|
+
local_customer_agreements: {
|
|
5017
5242
|
Row: {
|
|
5243
|
+
base_price: number | null;
|
|
5018
5244
|
created_at: string;
|
|
5245
|
+
currency: string;
|
|
5246
|
+
customer_id: string;
|
|
5019
5247
|
id: string;
|
|
5020
|
-
|
|
5021
|
-
|
|
5248
|
+
min_quantity: number;
|
|
5249
|
+
net_price: number;
|
|
5250
|
+
notes: string | null;
|
|
5251
|
+
product_category_id: string | null;
|
|
5252
|
+
product_id: string | null;
|
|
5022
5253
|
updated_at: string;
|
|
5254
|
+
valid_from: string | null;
|
|
5255
|
+
valid_until: string | null;
|
|
5023
5256
|
};
|
|
5024
5257
|
Insert: {
|
|
5258
|
+
base_price?: number | null;
|
|
5025
5259
|
created_at?: string;
|
|
5260
|
+
currency?: string;
|
|
5261
|
+
customer_id: string;
|
|
5026
5262
|
id?: string;
|
|
5027
|
-
|
|
5028
|
-
|
|
5263
|
+
min_quantity?: number;
|
|
5264
|
+
net_price: number;
|
|
5265
|
+
notes?: string | null;
|
|
5266
|
+
product_category_id?: string | null;
|
|
5267
|
+
product_id?: string | null;
|
|
5029
5268
|
updated_at?: string;
|
|
5269
|
+
valid_from?: string | null;
|
|
5270
|
+
valid_until?: string | null;
|
|
5030
5271
|
};
|
|
5031
5272
|
Update: {
|
|
5273
|
+
base_price?: number | null;
|
|
5032
5274
|
created_at?: string;
|
|
5275
|
+
currency?: string;
|
|
5276
|
+
customer_id?: string;
|
|
5033
5277
|
id?: string;
|
|
5034
|
-
|
|
5035
|
-
|
|
5278
|
+
min_quantity?: number;
|
|
5279
|
+
net_price?: number;
|
|
5280
|
+
notes?: string | null;
|
|
5281
|
+
product_category_id?: string | null;
|
|
5282
|
+
product_id?: string | null;
|
|
5036
5283
|
updated_at?: string;
|
|
5284
|
+
valid_from?: string | null;
|
|
5285
|
+
valid_until?: string | null;
|
|
5037
5286
|
};
|
|
5038
|
-
Relationships: [
|
|
5287
|
+
Relationships: [{
|
|
5288
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
5289
|
+
columns: ["customer_id"];
|
|
5290
|
+
isOneToOne: false;
|
|
5291
|
+
referencedRelation: "customers";
|
|
5292
|
+
referencedColumns: ["id"];
|
|
5293
|
+
}, {
|
|
5294
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
5295
|
+
columns: ["product_category_id"];
|
|
5296
|
+
isOneToOne: false;
|
|
5297
|
+
referencedRelation: "product_categories";
|
|
5298
|
+
referencedColumns: ["id"];
|
|
5299
|
+
}, {
|
|
5300
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
5301
|
+
columns: ["product_id"];
|
|
5302
|
+
isOneToOne: false;
|
|
5303
|
+
referencedRelation: "products";
|
|
5304
|
+
referencedColumns: ["id"];
|
|
5305
|
+
}];
|
|
5039
5306
|
};
|
|
5040
|
-
|
|
5307
|
+
local_customer_price_groups: {
|
|
5041
5308
|
Row: {
|
|
5042
|
-
body_html: string | null;
|
|
5043
|
-
body_text: string | null;
|
|
5044
|
-
connection_id: string | null;
|
|
5045
5309
|
created_at: string;
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5310
|
+
currency: string;
|
|
5311
|
+
customer_id: string;
|
|
5312
|
+
discount_type: string;
|
|
5313
|
+
discount_value: number;
|
|
5050
5314
|
id: string;
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
status: string;
|
|
5056
|
-
subject: string | null;
|
|
5057
|
-
uid: number | null;
|
|
5315
|
+
min_quantity: number;
|
|
5316
|
+
notes: string | null;
|
|
5317
|
+
product_category_id: string | null;
|
|
5318
|
+
product_id: string | null;
|
|
5058
5319
|
updated_at: string;
|
|
5320
|
+
valid_from: string | null;
|
|
5321
|
+
valid_until: string | null;
|
|
5059
5322
|
};
|
|
5060
5323
|
Insert: {
|
|
5061
|
-
body_html?: string | null;
|
|
5062
|
-
body_text?: string | null;
|
|
5063
|
-
connection_id?: string | null;
|
|
5064
5324
|
created_at?: string;
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5325
|
+
currency?: string;
|
|
5326
|
+
customer_id: string;
|
|
5327
|
+
discount_type: string;
|
|
5328
|
+
discount_value: number;
|
|
5069
5329
|
id?: string;
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
status?: string;
|
|
5075
|
-
subject?: string | null;
|
|
5076
|
-
uid?: number | null;
|
|
5330
|
+
min_quantity?: number;
|
|
5331
|
+
notes?: string | null;
|
|
5332
|
+
product_category_id?: string | null;
|
|
5333
|
+
product_id?: string | null;
|
|
5077
5334
|
updated_at?: string;
|
|
5335
|
+
valid_from?: string | null;
|
|
5336
|
+
valid_until?: string | null;
|
|
5078
5337
|
};
|
|
5079
5338
|
Update: {
|
|
5080
|
-
body_html?: string | null;
|
|
5081
|
-
body_text?: string | null;
|
|
5082
|
-
connection_id?: string | null;
|
|
5083
5339
|
created_at?: string;
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5340
|
+
currency?: string;
|
|
5341
|
+
customer_id?: string;
|
|
5342
|
+
discount_type?: string;
|
|
5343
|
+
discount_value?: number;
|
|
5088
5344
|
id?: string;
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
status?: string;
|
|
5094
|
-
subject?: string | null;
|
|
5095
|
-
uid?: number | null;
|
|
5345
|
+
min_quantity?: number;
|
|
5346
|
+
notes?: string | null;
|
|
5347
|
+
product_category_id?: string | null;
|
|
5348
|
+
product_id?: string | null;
|
|
5096
5349
|
updated_at?: string;
|
|
5097
|
-
|
|
5350
|
+
valid_from?: string | null;
|
|
5351
|
+
valid_until?: string | null;
|
|
5352
|
+
};
|
|
5353
|
+
Relationships: [{
|
|
5354
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
5355
|
+
columns: ["customer_id"];
|
|
5356
|
+
isOneToOne: false;
|
|
5357
|
+
referencedRelation: "customers";
|
|
5358
|
+
referencedColumns: ["id"];
|
|
5359
|
+
}, {
|
|
5360
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
5361
|
+
columns: ["product_category_id"];
|
|
5362
|
+
isOneToOne: false;
|
|
5363
|
+
referencedRelation: "product_categories";
|
|
5364
|
+
referencedColumns: ["id"];
|
|
5365
|
+
}, {
|
|
5366
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
5367
|
+
columns: ["product_id"];
|
|
5368
|
+
isOneToOne: false;
|
|
5369
|
+
referencedRelation: "products";
|
|
5370
|
+
referencedColumns: ["id"];
|
|
5371
|
+
}];
|
|
5372
|
+
};
|
|
5373
|
+
local_customer_sales_strategies: {
|
|
5374
|
+
Row: {
|
|
5375
|
+
created_at: string;
|
|
5376
|
+
currency: string;
|
|
5377
|
+
customer_id: string;
|
|
5378
|
+
discount_type: string;
|
|
5379
|
+
discount_value: number;
|
|
5380
|
+
id: string;
|
|
5381
|
+
min_quantity: number;
|
|
5382
|
+
notes: string | null;
|
|
5383
|
+
product_category_id: string | null;
|
|
5384
|
+
product_id: string | null;
|
|
5385
|
+
updated_at: string;
|
|
5386
|
+
valid_from: string | null;
|
|
5387
|
+
valid_until: string | null;
|
|
5388
|
+
};
|
|
5389
|
+
Insert: {
|
|
5390
|
+
created_at?: string;
|
|
5391
|
+
currency?: string;
|
|
5392
|
+
customer_id: string;
|
|
5393
|
+
discount_type: string;
|
|
5394
|
+
discount_value: number;
|
|
5395
|
+
id?: string;
|
|
5396
|
+
min_quantity?: number;
|
|
5397
|
+
notes?: string | null;
|
|
5398
|
+
product_category_id?: string | null;
|
|
5399
|
+
product_id?: string | null;
|
|
5400
|
+
updated_at?: string;
|
|
5401
|
+
valid_from?: string | null;
|
|
5402
|
+
valid_until?: string | null;
|
|
5403
|
+
};
|
|
5404
|
+
Update: {
|
|
5405
|
+
created_at?: string;
|
|
5406
|
+
currency?: string;
|
|
5407
|
+
customer_id?: string;
|
|
5408
|
+
discount_type?: string;
|
|
5409
|
+
discount_value?: number;
|
|
5410
|
+
id?: string;
|
|
5411
|
+
min_quantity?: number;
|
|
5412
|
+
notes?: string | null;
|
|
5413
|
+
product_category_id?: string | null;
|
|
5414
|
+
product_id?: string | null;
|
|
5415
|
+
updated_at?: string;
|
|
5416
|
+
valid_from?: string | null;
|
|
5417
|
+
valid_until?: string | null;
|
|
5418
|
+
};
|
|
5419
|
+
Relationships: [{
|
|
5420
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
5421
|
+
columns: ["customer_id"];
|
|
5422
|
+
isOneToOne: false;
|
|
5423
|
+
referencedRelation: "customers";
|
|
5424
|
+
referencedColumns: ["id"];
|
|
5425
|
+
}, {
|
|
5426
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
5427
|
+
columns: ["product_category_id"];
|
|
5428
|
+
isOneToOne: false;
|
|
5429
|
+
referencedRelation: "product_categories";
|
|
5430
|
+
referencedColumns: ["id"];
|
|
5431
|
+
}, {
|
|
5432
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
5433
|
+
columns: ["product_id"];
|
|
5434
|
+
isOneToOne: false;
|
|
5435
|
+
referencedRelation: "products";
|
|
5436
|
+
referencedColumns: ["id"];
|
|
5437
|
+
}];
|
|
5438
|
+
};
|
|
5439
|
+
locations: {
|
|
5440
|
+
Row: {
|
|
5441
|
+
created_at: string;
|
|
5442
|
+
id: string;
|
|
5443
|
+
name: string;
|
|
5444
|
+
sort_order: number;
|
|
5445
|
+
updated_at: string;
|
|
5446
|
+
};
|
|
5447
|
+
Insert: {
|
|
5448
|
+
created_at?: string;
|
|
5449
|
+
id?: string;
|
|
5450
|
+
name: string;
|
|
5451
|
+
sort_order?: number;
|
|
5452
|
+
updated_at?: string;
|
|
5453
|
+
};
|
|
5454
|
+
Update: {
|
|
5455
|
+
created_at?: string;
|
|
5456
|
+
id?: string;
|
|
5457
|
+
name?: string;
|
|
5458
|
+
sort_order?: number;
|
|
5459
|
+
updated_at?: string;
|
|
5460
|
+
};
|
|
5461
|
+
Relationships: [];
|
|
5462
|
+
};
|
|
5463
|
+
mailbox_messages: {
|
|
5464
|
+
Row: {
|
|
5465
|
+
body_html: string | null;
|
|
5466
|
+
body_text: string | null;
|
|
5467
|
+
connection_id: string | null;
|
|
5468
|
+
created_at: string;
|
|
5469
|
+
error_message: string | null;
|
|
5470
|
+
external_id: string | null;
|
|
5471
|
+
from_email: string | null;
|
|
5472
|
+
from_name: string | null;
|
|
5473
|
+
id: string;
|
|
5474
|
+
message_id: string | null;
|
|
5475
|
+
profile_id: string | null;
|
|
5476
|
+
raw_size: number | null;
|
|
5477
|
+
received_at: string | null;
|
|
5478
|
+
status: string;
|
|
5479
|
+
subject: string | null;
|
|
5480
|
+
uid: number | null;
|
|
5481
|
+
updated_at: string;
|
|
5482
|
+
};
|
|
5483
|
+
Insert: {
|
|
5484
|
+
body_html?: string | null;
|
|
5485
|
+
body_text?: string | null;
|
|
5486
|
+
connection_id?: string | null;
|
|
5487
|
+
created_at?: string;
|
|
5488
|
+
error_message?: string | null;
|
|
5489
|
+
external_id?: string | null;
|
|
5490
|
+
from_email?: string | null;
|
|
5491
|
+
from_name?: string | null;
|
|
5492
|
+
id?: string;
|
|
5493
|
+
message_id?: string | null;
|
|
5494
|
+
profile_id?: string | null;
|
|
5495
|
+
raw_size?: number | null;
|
|
5496
|
+
received_at?: string | null;
|
|
5497
|
+
status?: string;
|
|
5498
|
+
subject?: string | null;
|
|
5499
|
+
uid?: number | null;
|
|
5500
|
+
updated_at?: string;
|
|
5501
|
+
};
|
|
5502
|
+
Update: {
|
|
5503
|
+
body_html?: string | null;
|
|
5504
|
+
body_text?: string | null;
|
|
5505
|
+
connection_id?: string | null;
|
|
5506
|
+
created_at?: string;
|
|
5507
|
+
error_message?: string | null;
|
|
5508
|
+
external_id?: string | null;
|
|
5509
|
+
from_email?: string | null;
|
|
5510
|
+
from_name?: string | null;
|
|
5511
|
+
id?: string;
|
|
5512
|
+
message_id?: string | null;
|
|
5513
|
+
profile_id?: string | null;
|
|
5514
|
+
raw_size?: number | null;
|
|
5515
|
+
received_at?: string | null;
|
|
5516
|
+
status?: string;
|
|
5517
|
+
subject?: string | null;
|
|
5518
|
+
uid?: number | null;
|
|
5519
|
+
updated_at?: string;
|
|
5520
|
+
};
|
|
5098
5521
|
Relationships: [{
|
|
5099
5522
|
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
5100
5523
|
columns: ["connection_id"];
|
|
@@ -5125,6 +5548,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5125
5548
|
matched_customer_id: string | null;
|
|
5126
5549
|
message_id: string;
|
|
5127
5550
|
notes: string | null;
|
|
5551
|
+
order_number: string | null;
|
|
5128
5552
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
5129
5553
|
reviewed_at: string | null;
|
|
5130
5554
|
reviewed_by: string | null;
|
|
@@ -5140,6 +5564,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5140
5564
|
matched_customer_id?: string | null;
|
|
5141
5565
|
message_id: string;
|
|
5142
5566
|
notes?: string | null;
|
|
5567
|
+
order_number?: string | null;
|
|
5143
5568
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5144
5569
|
reviewed_at?: string | null;
|
|
5145
5570
|
reviewed_by?: string | null;
|
|
@@ -5155,6 +5580,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5155
5580
|
matched_customer_id?: string | null;
|
|
5156
5581
|
message_id?: string;
|
|
5157
5582
|
notes?: string | null;
|
|
5583
|
+
order_number?: string | null;
|
|
5158
5584
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5159
5585
|
reviewed_at?: string | null;
|
|
5160
5586
|
reviewed_by?: string | null;
|
|
@@ -5520,6 +5946,273 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5520
5946
|
referencedColumns: ["id"];
|
|
5521
5947
|
}];
|
|
5522
5948
|
};
|
|
5949
|
+
nmbrs_component_mapping: {
|
|
5950
|
+
Row: {
|
|
5951
|
+
created_at: string;
|
|
5952
|
+
id: string;
|
|
5953
|
+
source_kind: string;
|
|
5954
|
+
source_value: string | null;
|
|
5955
|
+
updated_at: string;
|
|
5956
|
+
wage_code: string;
|
|
5957
|
+
};
|
|
5958
|
+
Insert: {
|
|
5959
|
+
created_at?: string;
|
|
5960
|
+
id?: string;
|
|
5961
|
+
source_kind: string;
|
|
5962
|
+
source_value?: string | null;
|
|
5963
|
+
updated_at?: string;
|
|
5964
|
+
wage_code: string;
|
|
5965
|
+
};
|
|
5966
|
+
Update: {
|
|
5967
|
+
created_at?: string;
|
|
5968
|
+
id?: string;
|
|
5969
|
+
source_kind?: string;
|
|
5970
|
+
source_value?: string | null;
|
|
5971
|
+
updated_at?: string;
|
|
5972
|
+
wage_code?: string;
|
|
5973
|
+
};
|
|
5974
|
+
Relationships: [{
|
|
5975
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
5976
|
+
columns: ["wage_code"];
|
|
5977
|
+
isOneToOne: false;
|
|
5978
|
+
referencedRelation: "nmbrs_wage_components";
|
|
5979
|
+
referencedColumns: ["code"];
|
|
5980
|
+
}];
|
|
5981
|
+
};
|
|
5982
|
+
nmbrs_employee_mapping: {
|
|
5983
|
+
Row: {
|
|
5984
|
+
active_from: string | null;
|
|
5985
|
+
active_to: string | null;
|
|
5986
|
+
contract_hours_per_week: number | null;
|
|
5987
|
+
created_at: string;
|
|
5988
|
+
hourly_wage: number | null;
|
|
5989
|
+
id: string;
|
|
5990
|
+
monteur_id: string;
|
|
5991
|
+
nmbrs_company_code: string | null;
|
|
5992
|
+
nmbrs_employee_number: string;
|
|
5993
|
+
updated_at: string;
|
|
5994
|
+
};
|
|
5995
|
+
Insert: {
|
|
5996
|
+
active_from?: string | null;
|
|
5997
|
+
active_to?: string | null;
|
|
5998
|
+
contract_hours_per_week?: number | null;
|
|
5999
|
+
created_at?: string;
|
|
6000
|
+
hourly_wage?: number | null;
|
|
6001
|
+
id?: string;
|
|
6002
|
+
monteur_id: string;
|
|
6003
|
+
nmbrs_company_code?: string | null;
|
|
6004
|
+
nmbrs_employee_number: string;
|
|
6005
|
+
updated_at?: string;
|
|
6006
|
+
};
|
|
6007
|
+
Update: {
|
|
6008
|
+
active_from?: string | null;
|
|
6009
|
+
active_to?: string | null;
|
|
6010
|
+
contract_hours_per_week?: number | null;
|
|
6011
|
+
created_at?: string;
|
|
6012
|
+
hourly_wage?: number | null;
|
|
6013
|
+
id?: string;
|
|
6014
|
+
monteur_id?: string;
|
|
6015
|
+
nmbrs_company_code?: string | null;
|
|
6016
|
+
nmbrs_employee_number?: string;
|
|
6017
|
+
updated_at?: string;
|
|
6018
|
+
};
|
|
6019
|
+
Relationships: [{
|
|
6020
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
6021
|
+
columns: ["monteur_id"];
|
|
6022
|
+
isOneToOne: true;
|
|
6023
|
+
referencedRelation: "monteurs";
|
|
6024
|
+
referencedColumns: ["id"];
|
|
6025
|
+
}];
|
|
6026
|
+
};
|
|
6027
|
+
nmbrs_export_lines: {
|
|
6028
|
+
Row: {
|
|
6029
|
+
amount: number;
|
|
6030
|
+
created_at: string;
|
|
6031
|
+
entry_date: string;
|
|
6032
|
+
hours: number;
|
|
6033
|
+
id: string;
|
|
6034
|
+
monteur_id: string;
|
|
6035
|
+
nmbrs_employee_number: string | null;
|
|
6036
|
+
notes: string | null;
|
|
6037
|
+
run_id: string;
|
|
6038
|
+
source_kind: string | null;
|
|
6039
|
+
source_ref_id: string | null;
|
|
6040
|
+
updated_at: string;
|
|
6041
|
+
wage_code: string;
|
|
6042
|
+
};
|
|
6043
|
+
Insert: {
|
|
6044
|
+
amount?: number;
|
|
6045
|
+
created_at?: string;
|
|
6046
|
+
entry_date: string;
|
|
6047
|
+
hours?: number;
|
|
6048
|
+
id?: string;
|
|
6049
|
+
monteur_id: string;
|
|
6050
|
+
nmbrs_employee_number?: string | null;
|
|
6051
|
+
notes?: string | null;
|
|
6052
|
+
run_id: string;
|
|
6053
|
+
source_kind?: string | null;
|
|
6054
|
+
source_ref_id?: string | null;
|
|
6055
|
+
updated_at?: string;
|
|
6056
|
+
wage_code: string;
|
|
6057
|
+
};
|
|
6058
|
+
Update: {
|
|
6059
|
+
amount?: number;
|
|
6060
|
+
created_at?: string;
|
|
6061
|
+
entry_date?: string;
|
|
6062
|
+
hours?: number;
|
|
6063
|
+
id?: string;
|
|
6064
|
+
monteur_id?: string;
|
|
6065
|
+
nmbrs_employee_number?: string | null;
|
|
6066
|
+
notes?: string | null;
|
|
6067
|
+
run_id?: string;
|
|
6068
|
+
source_kind?: string | null;
|
|
6069
|
+
source_ref_id?: string | null;
|
|
6070
|
+
updated_at?: string;
|
|
6071
|
+
wage_code?: string;
|
|
6072
|
+
};
|
|
6073
|
+
Relationships: [{
|
|
6074
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
6075
|
+
columns: ["monteur_id"];
|
|
6076
|
+
isOneToOne: false;
|
|
6077
|
+
referencedRelation: "monteurs";
|
|
6078
|
+
referencedColumns: ["id"];
|
|
6079
|
+
}, {
|
|
6080
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
6081
|
+
columns: ["run_id"];
|
|
6082
|
+
isOneToOne: false;
|
|
6083
|
+
referencedRelation: "nmbrs_export_runs";
|
|
6084
|
+
referencedColumns: ["id"];
|
|
6085
|
+
}, {
|
|
6086
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
6087
|
+
columns: ["wage_code"];
|
|
6088
|
+
isOneToOne: false;
|
|
6089
|
+
referencedRelation: "nmbrs_wage_components";
|
|
6090
|
+
referencedColumns: ["code"];
|
|
6091
|
+
}];
|
|
6092
|
+
};
|
|
6093
|
+
nmbrs_export_runs: {
|
|
6094
|
+
Row: {
|
|
6095
|
+
created_at: string;
|
|
6096
|
+
file_name: string | null;
|
|
6097
|
+
generated_at: string;
|
|
6098
|
+
generated_by: string | null;
|
|
6099
|
+
id: string;
|
|
6100
|
+
notes: string | null;
|
|
6101
|
+
period_end: string;
|
|
6102
|
+
period_label: string;
|
|
6103
|
+
period_start: string;
|
|
6104
|
+
status: string;
|
|
6105
|
+
total_hours: number;
|
|
6106
|
+
total_lines: number;
|
|
6107
|
+
updated_at: string;
|
|
6108
|
+
};
|
|
6109
|
+
Insert: {
|
|
6110
|
+
created_at?: string;
|
|
6111
|
+
file_name?: string | null;
|
|
6112
|
+
generated_at?: string;
|
|
6113
|
+
generated_by?: string | null;
|
|
6114
|
+
id?: string;
|
|
6115
|
+
notes?: string | null;
|
|
6116
|
+
period_end: string;
|
|
6117
|
+
period_label: string;
|
|
6118
|
+
period_start: string;
|
|
6119
|
+
status?: string;
|
|
6120
|
+
total_hours?: number;
|
|
6121
|
+
total_lines?: number;
|
|
6122
|
+
updated_at?: string;
|
|
6123
|
+
};
|
|
6124
|
+
Update: {
|
|
6125
|
+
created_at?: string;
|
|
6126
|
+
file_name?: string | null;
|
|
6127
|
+
generated_at?: string;
|
|
6128
|
+
generated_by?: string | null;
|
|
6129
|
+
id?: string;
|
|
6130
|
+
notes?: string | null;
|
|
6131
|
+
period_end?: string;
|
|
6132
|
+
period_label?: string;
|
|
6133
|
+
period_start?: string;
|
|
6134
|
+
status?: string;
|
|
6135
|
+
total_hours?: number;
|
|
6136
|
+
total_lines?: number;
|
|
6137
|
+
updated_at?: string;
|
|
6138
|
+
};
|
|
6139
|
+
Relationships: [];
|
|
6140
|
+
};
|
|
6141
|
+
nmbrs_settings: {
|
|
6142
|
+
Row: {
|
|
6143
|
+
created_at: string;
|
|
6144
|
+
default_company_code: string | null;
|
|
6145
|
+
id: boolean;
|
|
6146
|
+
include_travel: boolean;
|
|
6147
|
+
overtime_threshold_daily: number;
|
|
6148
|
+
overtime_threshold_weekly: number;
|
|
6149
|
+
period_type: string;
|
|
6150
|
+
updated_at: string;
|
|
6151
|
+
updated_by: string | null;
|
|
6152
|
+
week_start_day: number;
|
|
6153
|
+
};
|
|
6154
|
+
Insert: {
|
|
6155
|
+
created_at?: string;
|
|
6156
|
+
default_company_code?: string | null;
|
|
6157
|
+
id?: boolean;
|
|
6158
|
+
include_travel?: boolean;
|
|
6159
|
+
overtime_threshold_daily?: number;
|
|
6160
|
+
overtime_threshold_weekly?: number;
|
|
6161
|
+
period_type?: string;
|
|
6162
|
+
updated_at?: string;
|
|
6163
|
+
updated_by?: string | null;
|
|
6164
|
+
week_start_day?: number;
|
|
6165
|
+
};
|
|
6166
|
+
Update: {
|
|
6167
|
+
created_at?: string;
|
|
6168
|
+
default_company_code?: string | null;
|
|
6169
|
+
id?: boolean;
|
|
6170
|
+
include_travel?: boolean;
|
|
6171
|
+
overtime_threshold_daily?: number;
|
|
6172
|
+
overtime_threshold_weekly?: number;
|
|
6173
|
+
period_type?: string;
|
|
6174
|
+
updated_at?: string;
|
|
6175
|
+
updated_by?: string | null;
|
|
6176
|
+
week_start_day?: number;
|
|
6177
|
+
};
|
|
6178
|
+
Relationships: [];
|
|
6179
|
+
};
|
|
6180
|
+
nmbrs_wage_components: {
|
|
6181
|
+
Row: {
|
|
6182
|
+
category: string;
|
|
6183
|
+
code: string;
|
|
6184
|
+
created_at: string;
|
|
6185
|
+
id: string;
|
|
6186
|
+
is_active: boolean;
|
|
6187
|
+
label: string;
|
|
6188
|
+
sort_order: number;
|
|
6189
|
+
unit: string;
|
|
6190
|
+
updated_at: string;
|
|
6191
|
+
};
|
|
6192
|
+
Insert: {
|
|
6193
|
+
category: string;
|
|
6194
|
+
code: string;
|
|
6195
|
+
created_at?: string;
|
|
6196
|
+
id?: string;
|
|
6197
|
+
is_active?: boolean;
|
|
6198
|
+
label: string;
|
|
6199
|
+
sort_order?: number;
|
|
6200
|
+
unit: string;
|
|
6201
|
+
updated_at?: string;
|
|
6202
|
+
};
|
|
6203
|
+
Update: {
|
|
6204
|
+
category?: string;
|
|
6205
|
+
code?: string;
|
|
6206
|
+
created_at?: string;
|
|
6207
|
+
id?: string;
|
|
6208
|
+
is_active?: boolean;
|
|
6209
|
+
label?: string;
|
|
6210
|
+
sort_order?: number;
|
|
6211
|
+
unit?: string;
|
|
6212
|
+
updated_at?: string;
|
|
6213
|
+
};
|
|
6214
|
+
Relationships: [];
|
|
6215
|
+
};
|
|
5523
6216
|
notifications: {
|
|
5524
6217
|
Row: {
|
|
5525
6218
|
created_at: string;
|
|
@@ -5744,6 +6437,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5744
6437
|
id: string;
|
|
5745
6438
|
items: import("../integrations/supabase/types").Json;
|
|
5746
6439
|
notes: string | null;
|
|
6440
|
+
order_number: string | null;
|
|
5747
6441
|
recipient_id: string;
|
|
5748
6442
|
total_amount: number;
|
|
5749
6443
|
};
|
|
@@ -5757,6 +6451,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5757
6451
|
id?: string;
|
|
5758
6452
|
items?: import("../integrations/supabase/types").Json;
|
|
5759
6453
|
notes?: string | null;
|
|
6454
|
+
order_number?: string | null;
|
|
5760
6455
|
recipient_id: string;
|
|
5761
6456
|
total_amount?: number;
|
|
5762
6457
|
};
|
|
@@ -5770,6 +6465,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5770
6465
|
id?: string;
|
|
5771
6466
|
items?: import("../integrations/supabase/types").Json;
|
|
5772
6467
|
notes?: string | null;
|
|
6468
|
+
order_number?: string | null;
|
|
5773
6469
|
recipient_id?: string;
|
|
5774
6470
|
total_amount?: number;
|
|
5775
6471
|
};
|
|
@@ -5929,6 +6625,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5929
6625
|
crates_per_layer: number;
|
|
5930
6626
|
created_at: string;
|
|
5931
6627
|
id: string;
|
|
6628
|
+
layer_fraction: number;
|
|
6629
|
+
layer_share_pct: number;
|
|
6630
|
+
layers_per_cart: number;
|
|
5932
6631
|
order_item_id: string | null;
|
|
5933
6632
|
plants_per_crate: number;
|
|
5934
6633
|
product_id: string | null;
|
|
@@ -5940,6 +6639,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5940
6639
|
crates_per_layer?: number;
|
|
5941
6640
|
created_at?: string;
|
|
5942
6641
|
id?: string;
|
|
6642
|
+
layer_fraction?: number;
|
|
6643
|
+
layer_share_pct?: number;
|
|
6644
|
+
layers_per_cart?: number;
|
|
5943
6645
|
order_item_id?: string | null;
|
|
5944
6646
|
plants_per_crate?: number;
|
|
5945
6647
|
product_id?: string | null;
|
|
@@ -5951,6 +6653,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5951
6653
|
crates_per_layer?: number;
|
|
5952
6654
|
created_at?: string;
|
|
5953
6655
|
id?: string;
|
|
6656
|
+
layer_fraction?: number;
|
|
6657
|
+
layer_share_pct?: number;
|
|
6658
|
+
layers_per_cart?: number;
|
|
5954
6659
|
order_item_id?: string | null;
|
|
5955
6660
|
plants_per_crate?: number;
|
|
5956
6661
|
product_id?: string | null;
|
|
@@ -5978,33 +6683,45 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5978
6683
|
};
|
|
5979
6684
|
order_carts: {
|
|
5980
6685
|
Row: {
|
|
6686
|
+
algorithm_version: number;
|
|
5981
6687
|
cart_number: number;
|
|
5982
6688
|
created_at: string;
|
|
5983
6689
|
id: string;
|
|
5984
6690
|
is_auto: boolean;
|
|
5985
6691
|
is_complete: boolean;
|
|
5986
6692
|
notes: string | null;
|
|
6693
|
+
occupancy_pct: number;
|
|
5987
6694
|
order_id: string;
|
|
6695
|
+
source: string;
|
|
6696
|
+
total_layers_used: number;
|
|
5988
6697
|
updated_at: string;
|
|
5989
6698
|
};
|
|
5990
6699
|
Insert: {
|
|
6700
|
+
algorithm_version?: number;
|
|
5991
6701
|
cart_number: number;
|
|
5992
6702
|
created_at?: string;
|
|
5993
6703
|
id?: string;
|
|
5994
6704
|
is_auto?: boolean;
|
|
5995
6705
|
is_complete?: boolean;
|
|
5996
6706
|
notes?: string | null;
|
|
6707
|
+
occupancy_pct?: number;
|
|
5997
6708
|
order_id: string;
|
|
6709
|
+
source?: string;
|
|
6710
|
+
total_layers_used?: number;
|
|
5998
6711
|
updated_at?: string;
|
|
5999
6712
|
};
|
|
6000
6713
|
Update: {
|
|
6714
|
+
algorithm_version?: number;
|
|
6001
6715
|
cart_number?: number;
|
|
6002
6716
|
created_at?: string;
|
|
6003
6717
|
id?: string;
|
|
6004
6718
|
is_auto?: boolean;
|
|
6005
6719
|
is_complete?: boolean;
|
|
6006
6720
|
notes?: string | null;
|
|
6721
|
+
occupancy_pct?: number;
|
|
6007
6722
|
order_id?: string;
|
|
6723
|
+
source?: string;
|
|
6724
|
+
total_layers_used?: number;
|
|
6008
6725
|
updated_at?: string;
|
|
6009
6726
|
};
|
|
6010
6727
|
Relationships: [{
|
|
@@ -6157,6 +6874,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6157
6874
|
order_date: string;
|
|
6158
6875
|
order_number: string;
|
|
6159
6876
|
order_source: string;
|
|
6877
|
+
plan_locked_at: string | null;
|
|
6878
|
+
plan_locked_ref: string | null;
|
|
6160
6879
|
status: string;
|
|
6161
6880
|
total: string;
|
|
6162
6881
|
updated_at: string;
|
|
@@ -6173,6 +6892,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6173
6892
|
order_date?: string;
|
|
6174
6893
|
order_number: string;
|
|
6175
6894
|
order_source?: string;
|
|
6895
|
+
plan_locked_at?: string | null;
|
|
6896
|
+
plan_locked_ref?: string | null;
|
|
6176
6897
|
status?: string;
|
|
6177
6898
|
total?: string;
|
|
6178
6899
|
updated_at?: string;
|
|
@@ -6189,6 +6910,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6189
6910
|
order_date?: string;
|
|
6190
6911
|
order_number?: string;
|
|
6191
6912
|
order_source?: string;
|
|
6913
|
+
plan_locked_at?: string | null;
|
|
6914
|
+
plan_locked_ref?: string | null;
|
|
6192
6915
|
status?: string;
|
|
6193
6916
|
total?: string;
|
|
6194
6917
|
updated_at?: string;
|
|
@@ -6502,6 +7225,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6502
7225
|
purchase_price: number | null;
|
|
6503
7226
|
quantity: number;
|
|
6504
7227
|
sale_price: number | null;
|
|
7228
|
+
trade_item_key: string | null;
|
|
6505
7229
|
unit: string;
|
|
6506
7230
|
updated_at: string;
|
|
6507
7231
|
weight: string | null;
|
|
@@ -6524,6 +7248,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6524
7248
|
purchase_price?: number | null;
|
|
6525
7249
|
quantity?: number;
|
|
6526
7250
|
sale_price?: number | null;
|
|
7251
|
+
trade_item_key?: string | null;
|
|
6527
7252
|
unit?: string;
|
|
6528
7253
|
updated_at?: string;
|
|
6529
7254
|
weight?: string | null;
|
|
@@ -6546,6 +7271,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6546
7271
|
purchase_price?: number | null;
|
|
6547
7272
|
quantity?: number;
|
|
6548
7273
|
sale_price?: number | null;
|
|
7274
|
+
trade_item_key?: string | null;
|
|
6549
7275
|
unit?: string;
|
|
6550
7276
|
updated_at?: string;
|
|
6551
7277
|
weight?: string | null;
|
|
@@ -6558,6 +7284,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6558
7284
|
display_name: string | null;
|
|
6559
7285
|
email: string | null;
|
|
6560
7286
|
id: string;
|
|
7287
|
+
is_superadmin: boolean;
|
|
6561
7288
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
6562
7289
|
tenant_id: string | null;
|
|
6563
7290
|
updated_at: string;
|
|
@@ -6567,6 +7294,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6567
7294
|
display_name?: string | null;
|
|
6568
7295
|
email?: string | null;
|
|
6569
7296
|
id: string;
|
|
7297
|
+
is_superadmin?: boolean;
|
|
6570
7298
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
6571
7299
|
tenant_id?: string | null;
|
|
6572
7300
|
updated_at?: string;
|
|
@@ -6576,6 +7304,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6576
7304
|
display_name?: string | null;
|
|
6577
7305
|
email?: string | null;
|
|
6578
7306
|
id?: string;
|
|
7307
|
+
is_superadmin?: boolean;
|
|
6579
7308
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
6580
7309
|
tenant_id?: string | null;
|
|
6581
7310
|
updated_at?: string;
|
|
@@ -7365,6 +8094,120 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
7365
8094
|
};
|
|
7366
8095
|
Relationships: [];
|
|
7367
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
|
+
};
|
|
8115
|
+
stock_import_runs: {
|
|
8116
|
+
Row: {
|
|
8117
|
+
connection_id: string | null;
|
|
8118
|
+
created_at: string;
|
|
8119
|
+
created_rows: number;
|
|
8120
|
+
errors: import("../integrations/supabase/types").Json;
|
|
8121
|
+
filename: string | null;
|
|
8122
|
+
id: string;
|
|
8123
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
8124
|
+
skipped_rows: number;
|
|
8125
|
+
total_rows: number;
|
|
8126
|
+
updated_rows: number;
|
|
8127
|
+
user_id: string;
|
|
8128
|
+
};
|
|
8129
|
+
Insert: {
|
|
8130
|
+
connection_id?: string | null;
|
|
8131
|
+
created_at?: string;
|
|
8132
|
+
created_rows?: number;
|
|
8133
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
8134
|
+
filename?: string | null;
|
|
8135
|
+
id?: string;
|
|
8136
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
8137
|
+
skipped_rows?: number;
|
|
8138
|
+
total_rows?: number;
|
|
8139
|
+
updated_rows?: number;
|
|
8140
|
+
user_id: string;
|
|
8141
|
+
};
|
|
8142
|
+
Update: {
|
|
8143
|
+
connection_id?: string | null;
|
|
8144
|
+
created_at?: string;
|
|
8145
|
+
created_rows?: number;
|
|
8146
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
8147
|
+
filename?: string | null;
|
|
8148
|
+
id?: string;
|
|
8149
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
8150
|
+
skipped_rows?: number;
|
|
8151
|
+
total_rows?: number;
|
|
8152
|
+
updated_rows?: number;
|
|
8153
|
+
user_id?: string;
|
|
8154
|
+
};
|
|
8155
|
+
Relationships: [];
|
|
8156
|
+
};
|
|
8157
|
+
stock_mutation_log: {
|
|
8158
|
+
Row: {
|
|
8159
|
+
connection_id: string | null;
|
|
8160
|
+
created_at: string;
|
|
8161
|
+
created_by: string | null;
|
|
8162
|
+
id: string;
|
|
8163
|
+
mutation_type: string;
|
|
8164
|
+
order_id: string | null;
|
|
8165
|
+
order_item_id: string | null;
|
|
8166
|
+
order_source: string | null;
|
|
8167
|
+
physical_after: number | null;
|
|
8168
|
+
physical_before: number | null;
|
|
8169
|
+
qty_delta: number;
|
|
8170
|
+
reason: string | null;
|
|
8171
|
+
reserved_after: number | null;
|
|
8172
|
+
reserved_before: number | null;
|
|
8173
|
+
trade_item_key: string | null;
|
|
8174
|
+
};
|
|
8175
|
+
Insert: {
|
|
8176
|
+
connection_id?: string | null;
|
|
8177
|
+
created_at?: string;
|
|
8178
|
+
created_by?: string | null;
|
|
8179
|
+
id?: string;
|
|
8180
|
+
mutation_type: string;
|
|
8181
|
+
order_id?: string | null;
|
|
8182
|
+
order_item_id?: string | null;
|
|
8183
|
+
order_source?: string | null;
|
|
8184
|
+
physical_after?: number | null;
|
|
8185
|
+
physical_before?: number | null;
|
|
8186
|
+
qty_delta: number;
|
|
8187
|
+
reason?: string | null;
|
|
8188
|
+
reserved_after?: number | null;
|
|
8189
|
+
reserved_before?: number | null;
|
|
8190
|
+
trade_item_key?: string | null;
|
|
8191
|
+
};
|
|
8192
|
+
Update: {
|
|
8193
|
+
connection_id?: string | null;
|
|
8194
|
+
created_at?: string;
|
|
8195
|
+
created_by?: string | null;
|
|
8196
|
+
id?: string;
|
|
8197
|
+
mutation_type?: string;
|
|
8198
|
+
order_id?: string | null;
|
|
8199
|
+
order_item_id?: string | null;
|
|
8200
|
+
order_source?: string | null;
|
|
8201
|
+
physical_after?: number | null;
|
|
8202
|
+
physical_before?: number | null;
|
|
8203
|
+
qty_delta?: number;
|
|
8204
|
+
reason?: string | null;
|
|
8205
|
+
reserved_after?: number | null;
|
|
8206
|
+
reserved_before?: number | null;
|
|
8207
|
+
trade_item_key?: string | null;
|
|
8208
|
+
};
|
|
8209
|
+
Relationships: [];
|
|
8210
|
+
};
|
|
7368
8211
|
supplier_products: {
|
|
7369
8212
|
Row: {
|
|
7370
8213
|
article_number: string | null;
|
|
@@ -7640,69 +8483,177 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
7640
8483
|
floriday_link_error?: string | null;
|
|
7641
8484
|
floriday_link_status?: string;
|
|
7642
8485
|
id?: string;
|
|
7643
|
-
last_floriday_sync_at?: string | null;
|
|
7644
|
-
missing_required_fields?: string[];
|
|
7645
|
-
source?: string;
|
|
8486
|
+
last_floriday_sync_at?: string | null;
|
|
8487
|
+
missing_required_fields?: string[];
|
|
8488
|
+
source?: string;
|
|
8489
|
+
updated_at?: string;
|
|
8490
|
+
user_id: string;
|
|
8491
|
+
};
|
|
8492
|
+
Update: {
|
|
8493
|
+
connection_id?: string | null;
|
|
8494
|
+
created_at?: string;
|
|
8495
|
+
data?: import("../integrations/supabase/types").Json;
|
|
8496
|
+
floriday_id?: string | null;
|
|
8497
|
+
floriday_link_error?: string | null;
|
|
8498
|
+
floriday_link_status?: string;
|
|
8499
|
+
id?: string;
|
|
8500
|
+
last_floriday_sync_at?: string | null;
|
|
8501
|
+
missing_required_fields?: string[];
|
|
8502
|
+
source?: string;
|
|
8503
|
+
updated_at?: string;
|
|
8504
|
+
user_id?: string;
|
|
8505
|
+
};
|
|
8506
|
+
Relationships: [];
|
|
8507
|
+
};
|
|
8508
|
+
trade_item_stock: {
|
|
8509
|
+
Row: {
|
|
8510
|
+
connection_id: string;
|
|
8511
|
+
created_at: string;
|
|
8512
|
+
id: string;
|
|
8513
|
+
incoming_stock: number;
|
|
8514
|
+
minimum_stock: number;
|
|
8515
|
+
notes: string | null;
|
|
8516
|
+
physical_stock: number;
|
|
8517
|
+
reserved_stock: number;
|
|
8518
|
+
trade_item_key: string;
|
|
8519
|
+
updated_at: string;
|
|
8520
|
+
user_id: string;
|
|
8521
|
+
};
|
|
8522
|
+
Insert: {
|
|
8523
|
+
connection_id: string;
|
|
8524
|
+
created_at?: string;
|
|
8525
|
+
id?: string;
|
|
8526
|
+
incoming_stock?: number;
|
|
8527
|
+
minimum_stock?: number;
|
|
8528
|
+
notes?: string | null;
|
|
8529
|
+
physical_stock?: number;
|
|
8530
|
+
reserved_stock?: number;
|
|
8531
|
+
trade_item_key: string;
|
|
8532
|
+
updated_at?: string;
|
|
8533
|
+
user_id: string;
|
|
8534
|
+
};
|
|
8535
|
+
Update: {
|
|
8536
|
+
connection_id?: string;
|
|
8537
|
+
created_at?: string;
|
|
8538
|
+
id?: string;
|
|
8539
|
+
incoming_stock?: number;
|
|
8540
|
+
minimum_stock?: number;
|
|
8541
|
+
notes?: string | null;
|
|
8542
|
+
physical_stock?: number;
|
|
8543
|
+
reserved_stock?: number;
|
|
8544
|
+
trade_item_key?: string;
|
|
8545
|
+
updated_at?: string;
|
|
8546
|
+
user_id?: string;
|
|
8547
|
+
};
|
|
8548
|
+
Relationships: [];
|
|
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;
|
|
7646
8592
|
updated_at?: string;
|
|
7647
8593
|
user_id: string;
|
|
8594
|
+
week?: number | null;
|
|
8595
|
+
year?: number | null;
|
|
7648
8596
|
};
|
|
7649
8597
|
Update: {
|
|
7650
|
-
|
|
8598
|
+
available_quantity?: number | null;
|
|
8599
|
+
connection_id?: string;
|
|
7651
8600
|
created_at?: string;
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
floriday_link_status?: string;
|
|
8601
|
+
currency?: string | null;
|
|
8602
|
+
endpoint_family?: string | null;
|
|
8603
|
+
environment?: string | null;
|
|
7656
8604
|
id?: string;
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
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;
|
|
7660
8615
|
updated_at?: string;
|
|
7661
8616
|
user_id?: string;
|
|
8617
|
+
week?: number | null;
|
|
8618
|
+
year?: number | null;
|
|
7662
8619
|
};
|
|
7663
8620
|
Relationships: [];
|
|
7664
8621
|
};
|
|
7665
|
-
|
|
8622
|
+
trade_item_warehouse_preferences: {
|
|
7666
8623
|
Row: {
|
|
7667
8624
|
connection_id: string;
|
|
7668
8625
|
created_at: string;
|
|
7669
8626
|
id: string;
|
|
7670
|
-
|
|
7671
|
-
minimum_stock: number;
|
|
7672
|
-
notes: string | null;
|
|
7673
|
-
physical_stock: number;
|
|
7674
|
-
reserved_stock: number;
|
|
7675
|
-
trade_item_key: string;
|
|
8627
|
+
trade_item_id: string;
|
|
7676
8628
|
updated_at: string;
|
|
7677
|
-
|
|
8629
|
+
warehouse_id: string;
|
|
8630
|
+
warehouse_name: string | null;
|
|
7678
8631
|
};
|
|
7679
8632
|
Insert: {
|
|
7680
8633
|
connection_id: string;
|
|
7681
8634
|
created_at?: string;
|
|
7682
8635
|
id?: string;
|
|
7683
|
-
|
|
7684
|
-
minimum_stock?: number;
|
|
7685
|
-
notes?: string | null;
|
|
7686
|
-
physical_stock?: number;
|
|
7687
|
-
reserved_stock?: number;
|
|
7688
|
-
trade_item_key: string;
|
|
8636
|
+
trade_item_id: string;
|
|
7689
8637
|
updated_at?: string;
|
|
7690
|
-
|
|
8638
|
+
warehouse_id: string;
|
|
8639
|
+
warehouse_name?: string | null;
|
|
7691
8640
|
};
|
|
7692
8641
|
Update: {
|
|
7693
8642
|
connection_id?: string;
|
|
7694
8643
|
created_at?: string;
|
|
7695
8644
|
id?: string;
|
|
7696
|
-
|
|
7697
|
-
minimum_stock?: number;
|
|
7698
|
-
notes?: string | null;
|
|
7699
|
-
physical_stock?: number;
|
|
7700
|
-
reserved_stock?: number;
|
|
7701
|
-
trade_item_key?: string;
|
|
8645
|
+
trade_item_id?: string;
|
|
7702
8646
|
updated_at?: string;
|
|
7703
|
-
|
|
8647
|
+
warehouse_id?: string;
|
|
8648
|
+
warehouse_name?: string | null;
|
|
7704
8649
|
};
|
|
7705
|
-
Relationships: [
|
|
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
|
+
}];
|
|
7706
8657
|
};
|
|
7707
8658
|
twinfield_connections: {
|
|
7708
8659
|
Row: {
|
|
@@ -8023,6 +8974,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
8023
8974
|
default_invoice_type: string;
|
|
8024
8975
|
default_payment_term_days: number;
|
|
8025
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;
|
|
8026
8981
|
updated_at: string;
|
|
8027
8982
|
user_id: string;
|
|
8028
8983
|
};
|
|
@@ -8032,6 +8987,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
8032
8987
|
default_invoice_type?: string;
|
|
8033
8988
|
default_payment_term_days?: number;
|
|
8034
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;
|
|
8035
8994
|
updated_at?: string;
|
|
8036
8995
|
user_id: string;
|
|
8037
8996
|
};
|
|
@@ -8041,6 +9000,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
8041
9000
|
default_invoice_type?: string;
|
|
8042
9001
|
default_payment_term_days?: number;
|
|
8043
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;
|
|
8044
9007
|
updated_at?: string;
|
|
8045
9008
|
user_id?: string;
|
|
8046
9009
|
};
|
|
@@ -8942,6 +9905,44 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
8942
9905
|
};
|
|
8943
9906
|
Relationships: [];
|
|
8944
9907
|
};
|
|
9908
|
+
floriday_customer_discounts: {
|
|
9909
|
+
Row: {
|
|
9910
|
+
base_price: number | null;
|
|
9911
|
+
buyer_organization_id: string | null;
|
|
9912
|
+
currency: string | null;
|
|
9913
|
+
discount_type: string | null;
|
|
9914
|
+
discount_value: number | null;
|
|
9915
|
+
min_quantity: number | null;
|
|
9916
|
+
net_price: number | null;
|
|
9917
|
+
product_group_id: string | null;
|
|
9918
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
9919
|
+
source: string | null;
|
|
9920
|
+
source_id: string | null;
|
|
9921
|
+
trade_item_id: string | null;
|
|
9922
|
+
valid_from: string | null;
|
|
9923
|
+
valid_until: string | null;
|
|
9924
|
+
};
|
|
9925
|
+
Relationships: [];
|
|
9926
|
+
};
|
|
9927
|
+
local_customer_discounts: {
|
|
9928
|
+
Row: {
|
|
9929
|
+
base_price: number | null;
|
|
9930
|
+
currency: string | null;
|
|
9931
|
+
customer_id: string | null;
|
|
9932
|
+
discount_type: string | null;
|
|
9933
|
+
discount_value: number | null;
|
|
9934
|
+
min_quantity: number | null;
|
|
9935
|
+
net_price: number | null;
|
|
9936
|
+
product_category_id: string | null;
|
|
9937
|
+
product_id: string | null;
|
|
9938
|
+
product_name: string | null;
|
|
9939
|
+
source: string | null;
|
|
9940
|
+
source_id: string | null;
|
|
9941
|
+
valid_from: string | null;
|
|
9942
|
+
valid_until: string | null;
|
|
9943
|
+
};
|
|
9944
|
+
Relationships: [];
|
|
9945
|
+
};
|
|
8945
9946
|
manufacture_product_possible_stock_view: {
|
|
8946
9947
|
Row: {
|
|
8947
9948
|
component_count: number | null;
|
|
@@ -9226,6 +10227,54 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9226
10227
|
};
|
|
9227
10228
|
Returns: number;
|
|
9228
10229
|
};
|
|
10230
|
+
afh_city_code: {
|
|
10231
|
+
Args: {
|
|
10232
|
+
_city: string;
|
|
10233
|
+
_country: string;
|
|
10234
|
+
};
|
|
10235
|
+
Returns: string;
|
|
10236
|
+
};
|
|
10237
|
+
afh_normalize_country: {
|
|
10238
|
+
Args: {
|
|
10239
|
+
_raw: string;
|
|
10240
|
+
};
|
|
10241
|
+
Returns: string;
|
|
10242
|
+
};
|
|
10243
|
+
afh_normalize_nl_province: {
|
|
10244
|
+
Args: {
|
|
10245
|
+
_raw: string;
|
|
10246
|
+
};
|
|
10247
|
+
Returns: string;
|
|
10248
|
+
};
|
|
10249
|
+
afh_subtract_workdays: {
|
|
10250
|
+
Args: {
|
|
10251
|
+
_date: string;
|
|
10252
|
+
_days: number;
|
|
10253
|
+
};
|
|
10254
|
+
Returns: string;
|
|
10255
|
+
};
|
|
10256
|
+
apply_stock_consumption: {
|
|
10257
|
+
Args: {
|
|
10258
|
+
p_order_id: string;
|
|
10259
|
+
p_order_item_id: string;
|
|
10260
|
+
p_qty: number;
|
|
10261
|
+
p_reason: string;
|
|
10262
|
+
p_source: string;
|
|
10263
|
+
p_trade_item_key: string;
|
|
10264
|
+
};
|
|
10265
|
+
Returns: undefined;
|
|
10266
|
+
};
|
|
10267
|
+
apply_stock_reservation: {
|
|
10268
|
+
Args: {
|
|
10269
|
+
p_order_id: string;
|
|
10270
|
+
p_order_item_id: string;
|
|
10271
|
+
p_qty: number;
|
|
10272
|
+
p_reason: string;
|
|
10273
|
+
p_source: string;
|
|
10274
|
+
p_trade_item_key: string;
|
|
10275
|
+
};
|
|
10276
|
+
Returns: undefined;
|
|
10277
|
+
};
|
|
9229
10278
|
assign_cart_numbers: {
|
|
9230
10279
|
Args: {
|
|
9231
10280
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -9249,16 +10298,62 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9249
10298
|
order_number: string;
|
|
9250
10299
|
}[];
|
|
9251
10300
|
};
|
|
10301
|
+
autolink_product_to_floriday: {
|
|
10302
|
+
Args: {
|
|
10303
|
+
p_product_id: string;
|
|
10304
|
+
};
|
|
10305
|
+
Returns: string;
|
|
10306
|
+
};
|
|
10307
|
+
backfill_open_order_reservations: {
|
|
10308
|
+
Args: never;
|
|
10309
|
+
Returns: {
|
|
10310
|
+
processed_items: number;
|
|
10311
|
+
}[];
|
|
10312
|
+
};
|
|
9252
10313
|
call_exact_route: {
|
|
9253
10314
|
Args: {
|
|
9254
10315
|
path: string;
|
|
9255
10316
|
};
|
|
9256
10317
|
Returns: number;
|
|
9257
10318
|
};
|
|
10319
|
+
check_offer_product_available_stock: {
|
|
10320
|
+
Args: {
|
|
10321
|
+
p_campaign_product_id: string;
|
|
10322
|
+
p_code: string;
|
|
10323
|
+
p_needed_qty?: number;
|
|
10324
|
+
p_product_name?: string;
|
|
10325
|
+
};
|
|
10326
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10327
|
+
};
|
|
10328
|
+
check_trade_item_available_stock: {
|
|
10329
|
+
Args: {
|
|
10330
|
+
p_connection_id?: string;
|
|
10331
|
+
p_context?: string;
|
|
10332
|
+
p_needed_qty?: number;
|
|
10333
|
+
p_order_id?: string;
|
|
10334
|
+
p_order_item_id?: string;
|
|
10335
|
+
p_owner_id?: string;
|
|
10336
|
+
p_product_name?: string;
|
|
10337
|
+
p_trade_item_key: string;
|
|
10338
|
+
};
|
|
10339
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10340
|
+
};
|
|
9258
10341
|
cleanup_old_bookings: {
|
|
9259
10342
|
Args: never;
|
|
9260
10343
|
Returns: number;
|
|
9261
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
|
+
};
|
|
9262
10357
|
control_get_todays_carts: {
|
|
9263
10358
|
Args: never;
|
|
9264
10359
|
Returns: {
|
|
@@ -9298,6 +10393,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9298
10393
|
table_name: string;
|
|
9299
10394
|
}[];
|
|
9300
10395
|
};
|
|
10396
|
+
dispatch_carrier_signups_sql: {
|
|
10397
|
+
Args: {
|
|
10398
|
+
_catchup?: string;
|
|
10399
|
+
};
|
|
10400
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10401
|
+
};
|
|
9301
10402
|
email_auth_decrypt: {
|
|
9302
10403
|
Args: {
|
|
9303
10404
|
cipher: string;
|
|
@@ -9333,6 +10434,18 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9333
10434
|
status: string;
|
|
9334
10435
|
}[];
|
|
9335
10436
|
};
|
|
10437
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10438
|
+
Args: {
|
|
10439
|
+
p_order_id: string;
|
|
10440
|
+
};
|
|
10441
|
+
Returns: undefined;
|
|
10442
|
+
};
|
|
10443
|
+
ensure_trade_item_stock_row: {
|
|
10444
|
+
Args: {
|
|
10445
|
+
p_key: string;
|
|
10446
|
+
};
|
|
10447
|
+
Returns: undefined;
|
|
10448
|
+
};
|
|
9336
10449
|
ensure_user_tenant: {
|
|
9337
10450
|
Args: never;
|
|
9338
10451
|
Returns: string;
|
|
@@ -9370,6 +10483,31 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9370
10483
|
};
|
|
9371
10484
|
Returns: boolean;
|
|
9372
10485
|
};
|
|
10486
|
+
find_trade_item_key: {
|
|
10487
|
+
Args: {
|
|
10488
|
+
p_barcode: string;
|
|
10489
|
+
p_name: string;
|
|
10490
|
+
p_product_id: string;
|
|
10491
|
+
};
|
|
10492
|
+
Returns: string;
|
|
10493
|
+
};
|
|
10494
|
+
floriday_effective_price: {
|
|
10495
|
+
Args: {
|
|
10496
|
+
_buyer_id: string;
|
|
10497
|
+
_on_date?: string;
|
|
10498
|
+
_quantity?: number;
|
|
10499
|
+
_trade_item_id: string;
|
|
10500
|
+
};
|
|
10501
|
+
Returns: {
|
|
10502
|
+
base_price: number;
|
|
10503
|
+
currency: string;
|
|
10504
|
+
discount_type: string;
|
|
10505
|
+
discount_value: number;
|
|
10506
|
+
net_price: number;
|
|
10507
|
+
source: string;
|
|
10508
|
+
source_id: string;
|
|
10509
|
+
}[];
|
|
10510
|
+
};
|
|
9373
10511
|
format_cart_number: {
|
|
9374
10512
|
Args: {
|
|
9375
10513
|
p_pick_date: string;
|
|
@@ -9390,6 +10528,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9390
10528
|
preferred_warehouse_name: string;
|
|
9391
10529
|
}[];
|
|
9392
10530
|
};
|
|
10531
|
+
get_active_floriday_context: {
|
|
10532
|
+
Args: never;
|
|
10533
|
+
Returns: {
|
|
10534
|
+
connection_id: string;
|
|
10535
|
+
user_id: string;
|
|
10536
|
+
}[];
|
|
10537
|
+
};
|
|
9393
10538
|
get_active_twinfield_public: {
|
|
9394
10539
|
Args: never;
|
|
9395
10540
|
Returns: {
|
|
@@ -9401,6 +10546,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9401
10546
|
office_code: string;
|
|
9402
10547
|
}[];
|
|
9403
10548
|
};
|
|
10549
|
+
get_floricode_record_counts: {
|
|
10550
|
+
Args: never;
|
|
10551
|
+
Returns: {
|
|
10552
|
+
count: number;
|
|
10553
|
+
resource: string;
|
|
10554
|
+
}[];
|
|
10555
|
+
};
|
|
9404
10556
|
get_floriday_agreements_active: {
|
|
9405
10557
|
Args: {
|
|
9406
10558
|
p_on_date?: string;
|
|
@@ -9492,6 +10644,24 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9492
10644
|
};
|
|
9493
10645
|
Returns: import("../integrations/supabase/types").Json;
|
|
9494
10646
|
};
|
|
10647
|
+
get_offer_delivery_options: {
|
|
10648
|
+
Args: {
|
|
10649
|
+
p_code: string;
|
|
10650
|
+
};
|
|
10651
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10652
|
+
};
|
|
10653
|
+
get_offer_recipient_by_code: {
|
|
10654
|
+
Args: {
|
|
10655
|
+
p_code: string;
|
|
10656
|
+
};
|
|
10657
|
+
Returns: {
|
|
10658
|
+
campaign_id: string;
|
|
10659
|
+
clicked_at: string;
|
|
10660
|
+
customer_id: string;
|
|
10661
|
+
id: string;
|
|
10662
|
+
ordered_at: string;
|
|
10663
|
+
}[];
|
|
10664
|
+
};
|
|
9495
10665
|
get_or_assign_floriday_order_number: {
|
|
9496
10666
|
Args: {
|
|
9497
10667
|
p_floriday_id: string;
|
|
@@ -9544,12 +10714,53 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9544
10714
|
Args: never;
|
|
9545
10715
|
Returns: boolean;
|
|
9546
10716
|
};
|
|
10717
|
+
is_superadmin: {
|
|
10718
|
+
Args: {
|
|
10719
|
+
_user_id: string;
|
|
10720
|
+
};
|
|
10721
|
+
Returns: boolean;
|
|
10722
|
+
};
|
|
10723
|
+
local_effective_price: {
|
|
10724
|
+
Args: {
|
|
10725
|
+
_customer_id: string;
|
|
10726
|
+
_on_date?: string;
|
|
10727
|
+
_product_id: string;
|
|
10728
|
+
_quantity?: number;
|
|
10729
|
+
};
|
|
10730
|
+
Returns: {
|
|
10731
|
+
currency: string;
|
|
10732
|
+
discount_type: string;
|
|
10733
|
+
discount_value: number;
|
|
10734
|
+
net_price: number;
|
|
10735
|
+
source: string;
|
|
10736
|
+
source_id: string;
|
|
10737
|
+
}[];
|
|
10738
|
+
};
|
|
10739
|
+
mark_offer_clicked: {
|
|
10740
|
+
Args: {
|
|
10741
|
+
p_code: string;
|
|
10742
|
+
};
|
|
10743
|
+
Returns: undefined;
|
|
10744
|
+
};
|
|
10745
|
+
mark_offer_ordered: {
|
|
10746
|
+
Args: {
|
|
10747
|
+
p_code: string;
|
|
10748
|
+
};
|
|
10749
|
+
Returns: undefined;
|
|
10750
|
+
};
|
|
9547
10751
|
next_order_number: {
|
|
9548
10752
|
Args: {
|
|
9549
10753
|
p_prefix: string;
|
|
9550
10754
|
};
|
|
9551
10755
|
Returns: string;
|
|
9552
10756
|
};
|
|
10757
|
+
next_order_number_for_date: {
|
|
10758
|
+
Args: {
|
|
10759
|
+
p_created_at?: string;
|
|
10760
|
+
p_prefix: string;
|
|
10761
|
+
};
|
|
10762
|
+
Returns: string;
|
|
10763
|
+
};
|
|
9553
10764
|
next_work_order_number: {
|
|
9554
10765
|
Args: {
|
|
9555
10766
|
p_parent_work_order_id?: string;
|
|
@@ -9557,16 +10768,41 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9557
10768
|
};
|
|
9558
10769
|
Returns: string;
|
|
9559
10770
|
};
|
|
10771
|
+
normalize_order_source: {
|
|
10772
|
+
Args: {
|
|
10773
|
+
p_src: string;
|
|
10774
|
+
};
|
|
10775
|
+
Returns: string;
|
|
10776
|
+
};
|
|
9560
10777
|
normalize_vat: {
|
|
9561
10778
|
Args: {
|
|
9562
10779
|
v: string;
|
|
9563
10780
|
};
|
|
9564
10781
|
Returns: string;
|
|
9565
10782
|
};
|
|
10783
|
+
offer_recipient_matches: {
|
|
10784
|
+
Args: {
|
|
10785
|
+
_campaign_id: string;
|
|
10786
|
+
_customer_id: string;
|
|
10787
|
+
_recipient_id: string;
|
|
10788
|
+
};
|
|
10789
|
+
Returns: boolean;
|
|
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
|
+
};
|
|
9566
10798
|
pickstation_get_orders_raw: {
|
|
9567
10799
|
Args: never;
|
|
9568
10800
|
Returns: import("../integrations/supabase/types").Json;
|
|
9569
10801
|
};
|
|
10802
|
+
pickstation_get_planning_context: {
|
|
10803
|
+
Args: never;
|
|
10804
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10805
|
+
};
|
|
9570
10806
|
pickstation_get_settings: {
|
|
9571
10807
|
Args: never;
|
|
9572
10808
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -9590,6 +10826,35 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9590
10826
|
};
|
|
9591
10827
|
Returns: undefined;
|
|
9592
10828
|
};
|
|
10829
|
+
promote_trade_item_key: {
|
|
10830
|
+
Args: {
|
|
10831
|
+
p_new: string;
|
|
10832
|
+
p_old: string;
|
|
10833
|
+
};
|
|
10834
|
+
Returns: undefined;
|
|
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
|
+
};
|
|
9593
10858
|
refresh_floricode_derived_code_lists: {
|
|
9594
10859
|
Args: never;
|
|
9595
10860
|
Returns: {
|
|
@@ -9604,6 +10869,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9604
10869
|
};
|
|
9605
10870
|
Returns: number;
|
|
9606
10871
|
};
|
|
10872
|
+
refresh_floricode_derived_for_products: {
|
|
10873
|
+
Args: {
|
|
10874
|
+
_product_ids: string[];
|
|
10875
|
+
};
|
|
10876
|
+
Returns: number;
|
|
10877
|
+
};
|
|
9607
10878
|
reset_floriday_sync_cursor: {
|
|
9608
10879
|
Args: {
|
|
9609
10880
|
p_connection_id: string;
|
|
@@ -9611,6 +10882,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9611
10882
|
};
|
|
9612
10883
|
Returns: undefined;
|
|
9613
10884
|
};
|
|
10885
|
+
resolve_product_id_for_item: {
|
|
10886
|
+
Args: {
|
|
10887
|
+
p_product_name: string;
|
|
10888
|
+
};
|
|
10889
|
+
Returns: string;
|
|
10890
|
+
};
|
|
9614
10891
|
schedule_floriday_additional_services_sync: {
|
|
9615
10892
|
Args: {
|
|
9616
10893
|
p_apikey: string;
|
|
@@ -9888,6 +11165,24 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9888
11165
|
};
|
|
9889
11166
|
Returns: string[];
|
|
9890
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
|
+
};
|
|
9891
11186
|
twinfield_decrypt: {
|
|
9892
11187
|
Args: {
|
|
9893
11188
|
cipher: string;
|