@flowselections/floriday-voorraad 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts +9 -0
- package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts.map +1 -0
- package/dist-lib/components/voorraad/AdditionalPackagingDialog.js +51 -0
- package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
- package/dist-lib/components/voorraad/ArtikelWizard.js +411 -28
- package/dist-lib/components/voorraad/EditArtikelPage.d.ts.map +1 -1
- package/dist-lib/components/voorraad/EditArtikelPage.js +78 -4
- package/dist-lib/components/voorraad/ExcelExportButton.d.ts +2 -1
- package/dist-lib/components/voorraad/ExcelExportButton.d.ts.map +1 -1
- package/dist-lib/components/voorraad/ExcelExportButton.js +24 -5
- package/dist-lib/components/voorraad/OrderHistoryCard.d.ts +8 -0
- package/dist-lib/components/voorraad/OrderHistoryCard.d.ts.map +1 -0
- package/dist-lib/components/voorraad/OrderHistoryCard.js +133 -0
- package/dist-lib/components/voorraad/PriceStatusBadge.d.ts +7 -0
- package/dist-lib/components/voorraad/PriceStatusBadge.d.ts.map +1 -0
- package/dist-lib/components/voorraad/PriceStatusBadge.js +67 -0
- package/dist-lib/components/voorraad/ProductLinkCard.d.ts +13 -0
- package/dist-lib/components/voorraad/ProductLinkCard.d.ts.map +1 -0
- package/dist-lib/components/voorraad/ProductLinkCard.js +159 -0
- package/dist-lib/components/voorraad/StockBulkButtons.d.ts.map +1 -1
- package/dist-lib/components/voorraad/StockBulkButtons.js +88 -7
- package/dist-lib/components/voorraad/VoorraadStockCard.d.ts +2 -1
- package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
- package/dist-lib/components/voorraad/VoorraadStockCard.js +5 -4
- package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
- package/dist-lib/components/voorraad/VoorraadTable.js +6 -1
- package/dist-lib/hooks/useLocalTradeItems.d.ts.map +1 -1
- package/dist-lib/hooks/useLocalTradeItems.js +4 -0
- package/dist-lib/hooks/useTradeItemSpec.d.ts.map +1 -1
- package/dist-lib/hooks/useTradeItemSpec.js +4 -1
- package/dist-lib/hooks/useTradeItemStock.d.ts +14 -1
- package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
- package/dist-lib/hooks/useTradeItemStock.js +76 -17
- package/dist-lib/hooks/useTradeItemSupplyLine.d.ts +21 -0
- package/dist-lib/hooks/useTradeItemSupplyLine.d.ts.map +1 -0
- package/dist-lib/hooks/useTradeItemSupplyLine.js +49 -0
- package/dist-lib/hooks/useVoorraadData.d.ts +5 -4
- package/dist-lib/hooks/useVoorraadData.d.ts.map +1 -1
- package/dist-lib/hooks/useVoorraadData.js +73 -7
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +1 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1307 -94
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1307 -94
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1307 -94
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1328 -87
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/ensure-article-codes.d.ts +8 -0
- package/dist-lib/lib/ensure-article-codes.d.ts.map +1 -0
- package/dist-lib/lib/ensure-article-codes.js +78 -0
- package/dist-lib/lib/floricode-required-features.functions.d.ts +1313 -94
- package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
- package/dist-lib/lib/floricode-required-features.functions.js +20 -2
- package/dist-lib/lib/floriday-client.d.ts +6 -0
- package/dist-lib/lib/floriday-client.d.ts.map +1 -1
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts +11264 -0
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-customer-offer.functions.js +175 -0
- package/dist-lib/lib/floriday-gateway.functions.d.ts +16129 -17
- package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.functions.js +150 -0
- package/dist-lib/lib/floriday-gateway.server.d.ts +22 -0
- package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.server.js +3 -0
- package/dist-lib/lib/floriday-payload.d.ts +76 -8
- package/dist-lib/lib/floriday-payload.d.ts.map +1 -1
- package/dist-lib/lib/floriday-payload.js +209 -39
- package/dist-lib/lib/floriday-supply-line.d.ts +53 -0
- package/dist-lib/lib/floriday-supply-line.d.ts.map +1 -0
- package/dist-lib/lib/floriday-supply-line.js +109 -0
- package/dist-lib/lib/floriday-warehouse.functions.d.ts +33638 -0
- package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-warehouse.functions.js +98 -0
- package/dist-lib/lib/floriday-writes.functions.d.ts +2707 -281
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.js +39 -6
- package/dist-lib/lib/vrs-catalog.d.ts +27 -0
- package/dist-lib/lib/vrs-catalog.d.ts.map +1 -0
- package/dist-lib/lib/vrs-catalog.js +98 -0
- package/package.json +3 -2
- package/public/flowselections-assets/Voorraad/floriday-logo.png +0 -0
|
@@ -13,7 +13,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
13
13
|
Tables: {
|
|
14
14
|
afhandeling_settings: {
|
|
15
15
|
Row: {
|
|
16
|
+
auto_print_delivery_note: boolean;
|
|
17
|
+
auto_process_paused: boolean;
|
|
16
18
|
created_at: string;
|
|
19
|
+
extra_pick_days_with_stickers: number;
|
|
17
20
|
id: string;
|
|
18
21
|
max_workdays_earlier_pick: number;
|
|
19
22
|
pick_days_before_transport: number;
|
|
@@ -27,7 +30,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
27
30
|
user_id: string;
|
|
28
31
|
};
|
|
29
32
|
Insert: {
|
|
33
|
+
auto_print_delivery_note?: boolean;
|
|
34
|
+
auto_process_paused?: boolean;
|
|
30
35
|
created_at?: string;
|
|
36
|
+
extra_pick_days_with_stickers?: number;
|
|
31
37
|
id?: string;
|
|
32
38
|
max_workdays_earlier_pick?: number;
|
|
33
39
|
pick_days_before_transport?: number;
|
|
@@ -41,7 +47,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
41
47
|
user_id: string;
|
|
42
48
|
};
|
|
43
49
|
Update: {
|
|
50
|
+
auto_print_delivery_note?: boolean;
|
|
51
|
+
auto_process_paused?: boolean;
|
|
44
52
|
created_at?: string;
|
|
53
|
+
extra_pick_days_with_stickers?: number;
|
|
45
54
|
id?: string;
|
|
46
55
|
max_workdays_earlier_pick?: number;
|
|
47
56
|
pick_days_before_transport?: number;
|
|
@@ -833,6 +842,36 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
833
842
|
};
|
|
834
843
|
Relationships: [];
|
|
835
844
|
};
|
|
845
|
+
cart_replan_queue: {
|
|
846
|
+
Row: {
|
|
847
|
+
attempts: number;
|
|
848
|
+
last_error: string | null;
|
|
849
|
+
order_id: string;
|
|
850
|
+
processed_at: string | null;
|
|
851
|
+
requested_at: string;
|
|
852
|
+
};
|
|
853
|
+
Insert: {
|
|
854
|
+
attempts?: number;
|
|
855
|
+
last_error?: string | null;
|
|
856
|
+
order_id: string;
|
|
857
|
+
processed_at?: string | null;
|
|
858
|
+
requested_at?: string;
|
|
859
|
+
};
|
|
860
|
+
Update: {
|
|
861
|
+
attempts?: number;
|
|
862
|
+
last_error?: string | null;
|
|
863
|
+
order_id?: string;
|
|
864
|
+
processed_at?: string | null;
|
|
865
|
+
requested_at?: string;
|
|
866
|
+
};
|
|
867
|
+
Relationships: [{
|
|
868
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
869
|
+
columns: ["order_id"];
|
|
870
|
+
isOneToOne: true;
|
|
871
|
+
referencedRelation: "orders";
|
|
872
|
+
referencedColumns: ["id"];
|
|
873
|
+
}];
|
|
874
|
+
};
|
|
836
875
|
collections: {
|
|
837
876
|
Row: {
|
|
838
877
|
created_at: string;
|
|
@@ -2958,34 +2997,52 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2958
2997
|
Row: {
|
|
2959
2998
|
catalog_key: string | null;
|
|
2960
2999
|
catalog_url: string;
|
|
3000
|
+
client_id: string | null;
|
|
3001
|
+
client_secret_ciphertext: string | null;
|
|
3002
|
+
client_secret_last4: string | null;
|
|
2961
3003
|
created_at: string;
|
|
2962
3004
|
id: number;
|
|
2963
3005
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
2964
3006
|
last_test_at: string | null;
|
|
2965
3007
|
last_test_error: string | null;
|
|
2966
3008
|
last_test_ok: boolean | null;
|
|
3009
|
+
last_token_test_at: string | null;
|
|
3010
|
+
last_token_test_error: string | null;
|
|
3011
|
+
last_token_test_ok: boolean | null;
|
|
2967
3012
|
updated_at: string;
|
|
2968
3013
|
};
|
|
2969
3014
|
Insert: {
|
|
2970
3015
|
catalog_key?: string | null;
|
|
2971
3016
|
catalog_url?: string;
|
|
3017
|
+
client_id?: string | null;
|
|
3018
|
+
client_secret_ciphertext?: string | null;
|
|
3019
|
+
client_secret_last4?: string | null;
|
|
2972
3020
|
created_at?: string;
|
|
2973
3021
|
id?: number;
|
|
2974
3022
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2975
3023
|
last_test_at?: string | null;
|
|
2976
3024
|
last_test_error?: string | null;
|
|
2977
3025
|
last_test_ok?: boolean | null;
|
|
3026
|
+
last_token_test_at?: string | null;
|
|
3027
|
+
last_token_test_error?: string | null;
|
|
3028
|
+
last_token_test_ok?: boolean | null;
|
|
2978
3029
|
updated_at?: string;
|
|
2979
3030
|
};
|
|
2980
3031
|
Update: {
|
|
2981
3032
|
catalog_key?: string | null;
|
|
2982
3033
|
catalog_url?: string;
|
|
3034
|
+
client_id?: string | null;
|
|
3035
|
+
client_secret_ciphertext?: string | null;
|
|
3036
|
+
client_secret_last4?: string | null;
|
|
2983
3037
|
created_at?: string;
|
|
2984
3038
|
id?: number;
|
|
2985
3039
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2986
3040
|
last_test_at?: string | null;
|
|
2987
3041
|
last_test_error?: string | null;
|
|
2988
3042
|
last_test_ok?: boolean | null;
|
|
3043
|
+
last_token_test_at?: string | null;
|
|
3044
|
+
last_token_test_error?: string | null;
|
|
3045
|
+
last_token_test_ok?: boolean | null;
|
|
2989
3046
|
updated_at?: string;
|
|
2990
3047
|
};
|
|
2991
3048
|
Relationships: [];
|
|
@@ -3218,6 +3275,54 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
3218
3275
|
referencedColumns: ["id"];
|
|
3219
3276
|
}];
|
|
3220
3277
|
};
|
|
3278
|
+
floriday_auto_fulfillment_log: {
|
|
3279
|
+
Row: {
|
|
3280
|
+
attempts: number;
|
|
3281
|
+
connection_id: string;
|
|
3282
|
+
created_at: string;
|
|
3283
|
+
error: string | null;
|
|
3284
|
+
fulfillment_order_id: string | null;
|
|
3285
|
+
id: string;
|
|
3286
|
+
last_attempt_at: string | null;
|
|
3287
|
+
reason: string | null;
|
|
3288
|
+
sales_order_id: string;
|
|
3289
|
+
status: string;
|
|
3290
|
+
updated_at: string;
|
|
3291
|
+
};
|
|
3292
|
+
Insert: {
|
|
3293
|
+
attempts?: number;
|
|
3294
|
+
connection_id: string;
|
|
3295
|
+
created_at?: string;
|
|
3296
|
+
error?: string | null;
|
|
3297
|
+
fulfillment_order_id?: string | null;
|
|
3298
|
+
id?: string;
|
|
3299
|
+
last_attempt_at?: string | null;
|
|
3300
|
+
reason?: string | null;
|
|
3301
|
+
sales_order_id: string;
|
|
3302
|
+
status?: string;
|
|
3303
|
+
updated_at?: string;
|
|
3304
|
+
};
|
|
3305
|
+
Update: {
|
|
3306
|
+
attempts?: number;
|
|
3307
|
+
connection_id?: string;
|
|
3308
|
+
created_at?: string;
|
|
3309
|
+
error?: string | null;
|
|
3310
|
+
fulfillment_order_id?: string | null;
|
|
3311
|
+
id?: string;
|
|
3312
|
+
last_attempt_at?: string | null;
|
|
3313
|
+
reason?: string | null;
|
|
3314
|
+
sales_order_id?: string;
|
|
3315
|
+
status?: string;
|
|
3316
|
+
updated_at?: string;
|
|
3317
|
+
};
|
|
3318
|
+
Relationships: [{
|
|
3319
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3320
|
+
columns: ["connection_id"];
|
|
3321
|
+
isOneToOne: false;
|
|
3322
|
+
referencedRelation: "floriday_connections";
|
|
3323
|
+
referencedColumns: ["id"];
|
|
3324
|
+
}];
|
|
3325
|
+
};
|
|
3221
3326
|
floriday_base_items_cache: {
|
|
3222
3327
|
Row: {
|
|
3223
3328
|
connection_id: string;
|
|
@@ -3632,6 +3737,51 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
3632
3737
|
referencedColumns: ["id"];
|
|
3633
3738
|
}];
|
|
3634
3739
|
};
|
|
3740
|
+
floriday_continuous_stock_queue: {
|
|
3741
|
+
Row: {
|
|
3742
|
+
attempts: number;
|
|
3743
|
+
connection_id: string;
|
|
3744
|
+
created_at: string;
|
|
3745
|
+
gateway_attempt_id: string | null;
|
|
3746
|
+
id: string;
|
|
3747
|
+
last_error: string | null;
|
|
3748
|
+
number_of_pieces: number;
|
|
3749
|
+
sent_at: string | null;
|
|
3750
|
+
status: string;
|
|
3751
|
+
trade_item_id: string;
|
|
3752
|
+
updated_at: string;
|
|
3753
|
+
user_id: string;
|
|
3754
|
+
};
|
|
3755
|
+
Insert: {
|
|
3756
|
+
attempts?: number;
|
|
3757
|
+
connection_id: string;
|
|
3758
|
+
created_at?: string;
|
|
3759
|
+
gateway_attempt_id?: string | null;
|
|
3760
|
+
id?: string;
|
|
3761
|
+
last_error?: string | null;
|
|
3762
|
+
number_of_pieces?: number;
|
|
3763
|
+
sent_at?: string | null;
|
|
3764
|
+
status?: string;
|
|
3765
|
+
trade_item_id: string;
|
|
3766
|
+
updated_at?: string;
|
|
3767
|
+
user_id: string;
|
|
3768
|
+
};
|
|
3769
|
+
Update: {
|
|
3770
|
+
attempts?: number;
|
|
3771
|
+
connection_id?: string;
|
|
3772
|
+
created_at?: string;
|
|
3773
|
+
gateway_attempt_id?: string | null;
|
|
3774
|
+
id?: string;
|
|
3775
|
+
last_error?: string | null;
|
|
3776
|
+
number_of_pieces?: number;
|
|
3777
|
+
sent_at?: string | null;
|
|
3778
|
+
status?: string;
|
|
3779
|
+
trade_item_id?: string;
|
|
3780
|
+
updated_at?: string;
|
|
3781
|
+
user_id?: string;
|
|
3782
|
+
};
|
|
3783
|
+
Relationships: [];
|
|
3784
|
+
};
|
|
3635
3785
|
floriday_contract_trade_item_groups_cache: {
|
|
3636
3786
|
Row: {
|
|
3637
3787
|
connection_id: string;
|
|
@@ -4277,6 +4427,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
4277
4427
|
referencedColumns: ["id"];
|
|
4278
4428
|
}];
|
|
4279
4429
|
};
|
|
4430
|
+
floriday_rate_limit_state: {
|
|
4431
|
+
Row: {
|
|
4432
|
+
bucket: string;
|
|
4433
|
+
last_refill_at: string;
|
|
4434
|
+
tokens: number;
|
|
4435
|
+
};
|
|
4436
|
+
Insert: {
|
|
4437
|
+
bucket: string;
|
|
4438
|
+
last_refill_at?: string;
|
|
4439
|
+
tokens: number;
|
|
4440
|
+
};
|
|
4441
|
+
Update: {
|
|
4442
|
+
bucket?: string;
|
|
4443
|
+
last_refill_at?: string;
|
|
4444
|
+
tokens?: number;
|
|
4445
|
+
};
|
|
4446
|
+
Relationships: [];
|
|
4447
|
+
};
|
|
4280
4448
|
floriday_resource_schemas: {
|
|
4281
4449
|
Row: {
|
|
4282
4450
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -4700,6 +4868,60 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
4700
4868
|
referencedColumns: ["id"];
|
|
4701
4869
|
}];
|
|
4702
4870
|
};
|
|
4871
|
+
flow_role_assignments: {
|
|
4872
|
+
Row: {
|
|
4873
|
+
created_at: string;
|
|
4874
|
+
id: string;
|
|
4875
|
+
role_id: string;
|
|
4876
|
+
user_id: string;
|
|
4877
|
+
};
|
|
4878
|
+
Insert: {
|
|
4879
|
+
created_at?: string;
|
|
4880
|
+
id?: string;
|
|
4881
|
+
role_id: string;
|
|
4882
|
+
user_id: string;
|
|
4883
|
+
};
|
|
4884
|
+
Update: {
|
|
4885
|
+
created_at?: string;
|
|
4886
|
+
id?: string;
|
|
4887
|
+
role_id?: string;
|
|
4888
|
+
user_id?: string;
|
|
4889
|
+
};
|
|
4890
|
+
Relationships: [{
|
|
4891
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
4892
|
+
columns: ["role_id"];
|
|
4893
|
+
isOneToOne: false;
|
|
4894
|
+
referencedRelation: "flow_roles";
|
|
4895
|
+
referencedColumns: ["id"];
|
|
4896
|
+
}];
|
|
4897
|
+
};
|
|
4898
|
+
flow_roles: {
|
|
4899
|
+
Row: {
|
|
4900
|
+
created_at: string;
|
|
4901
|
+
description: string | null;
|
|
4902
|
+
id: string;
|
|
4903
|
+
module_access: string[];
|
|
4904
|
+
name: string;
|
|
4905
|
+
updated_at: string;
|
|
4906
|
+
};
|
|
4907
|
+
Insert: {
|
|
4908
|
+
created_at?: string;
|
|
4909
|
+
description?: string | null;
|
|
4910
|
+
id?: string;
|
|
4911
|
+
module_access?: string[];
|
|
4912
|
+
name: string;
|
|
4913
|
+
updated_at?: string;
|
|
4914
|
+
};
|
|
4915
|
+
Update: {
|
|
4916
|
+
created_at?: string;
|
|
4917
|
+
description?: string | null;
|
|
4918
|
+
id?: string;
|
|
4919
|
+
module_access?: string[];
|
|
4920
|
+
name?: string;
|
|
4921
|
+
updated_at?: string;
|
|
4922
|
+
};
|
|
4923
|
+
Relationships: [];
|
|
4924
|
+
};
|
|
4703
4925
|
imap_accounts: {
|
|
4704
4926
|
Row: {
|
|
4705
4927
|
created_at: string;
|
|
@@ -5021,88 +5243,286 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5021
5243
|
};
|
|
5022
5244
|
Relationships: [];
|
|
5023
5245
|
};
|
|
5024
|
-
|
|
5246
|
+
local_customer_agreements: {
|
|
5025
5247
|
Row: {
|
|
5248
|
+
base_price: number | null;
|
|
5026
5249
|
created_at: string;
|
|
5250
|
+
currency: string;
|
|
5251
|
+
customer_id: string;
|
|
5027
5252
|
id: string;
|
|
5028
|
-
|
|
5029
|
-
|
|
5253
|
+
min_quantity: number;
|
|
5254
|
+
net_price: number;
|
|
5255
|
+
notes: string | null;
|
|
5256
|
+
product_category_id: string | null;
|
|
5257
|
+
product_id: string | null;
|
|
5030
5258
|
updated_at: string;
|
|
5259
|
+
valid_from: string | null;
|
|
5260
|
+
valid_until: string | null;
|
|
5031
5261
|
};
|
|
5032
5262
|
Insert: {
|
|
5263
|
+
base_price?: number | null;
|
|
5033
5264
|
created_at?: string;
|
|
5265
|
+
currency?: string;
|
|
5266
|
+
customer_id: string;
|
|
5034
5267
|
id?: string;
|
|
5035
|
-
|
|
5036
|
-
|
|
5268
|
+
min_quantity?: number;
|
|
5269
|
+
net_price: number;
|
|
5270
|
+
notes?: string | null;
|
|
5271
|
+
product_category_id?: string | null;
|
|
5272
|
+
product_id?: string | null;
|
|
5037
5273
|
updated_at?: string;
|
|
5274
|
+
valid_from?: string | null;
|
|
5275
|
+
valid_until?: string | null;
|
|
5038
5276
|
};
|
|
5039
5277
|
Update: {
|
|
5278
|
+
base_price?: number | null;
|
|
5040
5279
|
created_at?: string;
|
|
5280
|
+
currency?: string;
|
|
5281
|
+
customer_id?: string;
|
|
5041
5282
|
id?: string;
|
|
5042
|
-
|
|
5043
|
-
|
|
5283
|
+
min_quantity?: number;
|
|
5284
|
+
net_price?: number;
|
|
5285
|
+
notes?: string | null;
|
|
5286
|
+
product_category_id?: string | null;
|
|
5287
|
+
product_id?: string | null;
|
|
5044
5288
|
updated_at?: string;
|
|
5289
|
+
valid_from?: string | null;
|
|
5290
|
+
valid_until?: string | null;
|
|
5045
5291
|
};
|
|
5046
|
-
Relationships: [
|
|
5292
|
+
Relationships: [{
|
|
5293
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
5294
|
+
columns: ["customer_id"];
|
|
5295
|
+
isOneToOne: false;
|
|
5296
|
+
referencedRelation: "customers";
|
|
5297
|
+
referencedColumns: ["id"];
|
|
5298
|
+
}, {
|
|
5299
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
5300
|
+
columns: ["product_category_id"];
|
|
5301
|
+
isOneToOne: false;
|
|
5302
|
+
referencedRelation: "product_categories";
|
|
5303
|
+
referencedColumns: ["id"];
|
|
5304
|
+
}, {
|
|
5305
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
5306
|
+
columns: ["product_id"];
|
|
5307
|
+
isOneToOne: false;
|
|
5308
|
+
referencedRelation: "products";
|
|
5309
|
+
referencedColumns: ["id"];
|
|
5310
|
+
}];
|
|
5047
5311
|
};
|
|
5048
|
-
|
|
5312
|
+
local_customer_price_groups: {
|
|
5049
5313
|
Row: {
|
|
5050
|
-
body_html: string | null;
|
|
5051
|
-
body_text: string | null;
|
|
5052
|
-
connection_id: string | null;
|
|
5053
5314
|
created_at: string;
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5315
|
+
currency: string;
|
|
5316
|
+
customer_id: string;
|
|
5317
|
+
discount_type: string;
|
|
5318
|
+
discount_value: number;
|
|
5058
5319
|
id: string;
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
status: string;
|
|
5064
|
-
subject: string | null;
|
|
5065
|
-
uid: number | null;
|
|
5320
|
+
min_quantity: number;
|
|
5321
|
+
notes: string | null;
|
|
5322
|
+
product_category_id: string | null;
|
|
5323
|
+
product_id: string | null;
|
|
5066
5324
|
updated_at: string;
|
|
5325
|
+
valid_from: string | null;
|
|
5326
|
+
valid_until: string | null;
|
|
5067
5327
|
};
|
|
5068
5328
|
Insert: {
|
|
5069
|
-
body_html?: string | null;
|
|
5070
|
-
body_text?: string | null;
|
|
5071
|
-
connection_id?: string | null;
|
|
5072
5329
|
created_at?: string;
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5330
|
+
currency?: string;
|
|
5331
|
+
customer_id: string;
|
|
5332
|
+
discount_type: string;
|
|
5333
|
+
discount_value: number;
|
|
5077
5334
|
id?: string;
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
status?: string;
|
|
5083
|
-
subject?: string | null;
|
|
5084
|
-
uid?: number | null;
|
|
5335
|
+
min_quantity?: number;
|
|
5336
|
+
notes?: string | null;
|
|
5337
|
+
product_category_id?: string | null;
|
|
5338
|
+
product_id?: string | null;
|
|
5085
5339
|
updated_at?: string;
|
|
5340
|
+
valid_from?: string | null;
|
|
5341
|
+
valid_until?: string | null;
|
|
5086
5342
|
};
|
|
5087
5343
|
Update: {
|
|
5088
|
-
body_html?: string | null;
|
|
5089
|
-
body_text?: string | null;
|
|
5090
|
-
connection_id?: string | null;
|
|
5091
5344
|
created_at?: string;
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5345
|
+
currency?: string;
|
|
5346
|
+
customer_id?: string;
|
|
5347
|
+
discount_type?: string;
|
|
5348
|
+
discount_value?: number;
|
|
5096
5349
|
id?: string;
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
status?: string;
|
|
5102
|
-
subject?: string | null;
|
|
5103
|
-
uid?: number | null;
|
|
5350
|
+
min_quantity?: number;
|
|
5351
|
+
notes?: string | null;
|
|
5352
|
+
product_category_id?: string | null;
|
|
5353
|
+
product_id?: string | null;
|
|
5104
5354
|
updated_at?: string;
|
|
5105
|
-
|
|
5355
|
+
valid_from?: string | null;
|
|
5356
|
+
valid_until?: string | null;
|
|
5357
|
+
};
|
|
5358
|
+
Relationships: [{
|
|
5359
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
5360
|
+
columns: ["customer_id"];
|
|
5361
|
+
isOneToOne: false;
|
|
5362
|
+
referencedRelation: "customers";
|
|
5363
|
+
referencedColumns: ["id"];
|
|
5364
|
+
}, {
|
|
5365
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
5366
|
+
columns: ["product_category_id"];
|
|
5367
|
+
isOneToOne: false;
|
|
5368
|
+
referencedRelation: "product_categories";
|
|
5369
|
+
referencedColumns: ["id"];
|
|
5370
|
+
}, {
|
|
5371
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
5372
|
+
columns: ["product_id"];
|
|
5373
|
+
isOneToOne: false;
|
|
5374
|
+
referencedRelation: "products";
|
|
5375
|
+
referencedColumns: ["id"];
|
|
5376
|
+
}];
|
|
5377
|
+
};
|
|
5378
|
+
local_customer_sales_strategies: {
|
|
5379
|
+
Row: {
|
|
5380
|
+
created_at: string;
|
|
5381
|
+
currency: string;
|
|
5382
|
+
customer_id: string;
|
|
5383
|
+
discount_type: string;
|
|
5384
|
+
discount_value: number;
|
|
5385
|
+
id: string;
|
|
5386
|
+
min_quantity: number;
|
|
5387
|
+
notes: string | null;
|
|
5388
|
+
product_category_id: string | null;
|
|
5389
|
+
product_id: string | null;
|
|
5390
|
+
updated_at: string;
|
|
5391
|
+
valid_from: string | null;
|
|
5392
|
+
valid_until: string | null;
|
|
5393
|
+
};
|
|
5394
|
+
Insert: {
|
|
5395
|
+
created_at?: string;
|
|
5396
|
+
currency?: string;
|
|
5397
|
+
customer_id: string;
|
|
5398
|
+
discount_type: string;
|
|
5399
|
+
discount_value: number;
|
|
5400
|
+
id?: string;
|
|
5401
|
+
min_quantity?: number;
|
|
5402
|
+
notes?: string | null;
|
|
5403
|
+
product_category_id?: string | null;
|
|
5404
|
+
product_id?: string | null;
|
|
5405
|
+
updated_at?: string;
|
|
5406
|
+
valid_from?: string | null;
|
|
5407
|
+
valid_until?: string | null;
|
|
5408
|
+
};
|
|
5409
|
+
Update: {
|
|
5410
|
+
created_at?: string;
|
|
5411
|
+
currency?: string;
|
|
5412
|
+
customer_id?: string;
|
|
5413
|
+
discount_type?: string;
|
|
5414
|
+
discount_value?: number;
|
|
5415
|
+
id?: string;
|
|
5416
|
+
min_quantity?: number;
|
|
5417
|
+
notes?: string | null;
|
|
5418
|
+
product_category_id?: string | null;
|
|
5419
|
+
product_id?: string | null;
|
|
5420
|
+
updated_at?: string;
|
|
5421
|
+
valid_from?: string | null;
|
|
5422
|
+
valid_until?: string | null;
|
|
5423
|
+
};
|
|
5424
|
+
Relationships: [{
|
|
5425
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
5426
|
+
columns: ["customer_id"];
|
|
5427
|
+
isOneToOne: false;
|
|
5428
|
+
referencedRelation: "customers";
|
|
5429
|
+
referencedColumns: ["id"];
|
|
5430
|
+
}, {
|
|
5431
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
5432
|
+
columns: ["product_category_id"];
|
|
5433
|
+
isOneToOne: false;
|
|
5434
|
+
referencedRelation: "product_categories";
|
|
5435
|
+
referencedColumns: ["id"];
|
|
5436
|
+
}, {
|
|
5437
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
5438
|
+
columns: ["product_id"];
|
|
5439
|
+
isOneToOne: false;
|
|
5440
|
+
referencedRelation: "products";
|
|
5441
|
+
referencedColumns: ["id"];
|
|
5442
|
+
}];
|
|
5443
|
+
};
|
|
5444
|
+
locations: {
|
|
5445
|
+
Row: {
|
|
5446
|
+
created_at: string;
|
|
5447
|
+
id: string;
|
|
5448
|
+
name: string;
|
|
5449
|
+
sort_order: number;
|
|
5450
|
+
updated_at: string;
|
|
5451
|
+
};
|
|
5452
|
+
Insert: {
|
|
5453
|
+
created_at?: string;
|
|
5454
|
+
id?: string;
|
|
5455
|
+
name: string;
|
|
5456
|
+
sort_order?: number;
|
|
5457
|
+
updated_at?: string;
|
|
5458
|
+
};
|
|
5459
|
+
Update: {
|
|
5460
|
+
created_at?: string;
|
|
5461
|
+
id?: string;
|
|
5462
|
+
name?: string;
|
|
5463
|
+
sort_order?: number;
|
|
5464
|
+
updated_at?: string;
|
|
5465
|
+
};
|
|
5466
|
+
Relationships: [];
|
|
5467
|
+
};
|
|
5468
|
+
mailbox_messages: {
|
|
5469
|
+
Row: {
|
|
5470
|
+
body_html: string | null;
|
|
5471
|
+
body_text: string | null;
|
|
5472
|
+
connection_id: string | null;
|
|
5473
|
+
created_at: string;
|
|
5474
|
+
error_message: string | null;
|
|
5475
|
+
external_id: string | null;
|
|
5476
|
+
from_email: string | null;
|
|
5477
|
+
from_name: string | null;
|
|
5478
|
+
id: string;
|
|
5479
|
+
message_id: string | null;
|
|
5480
|
+
profile_id: string | null;
|
|
5481
|
+
raw_size: number | null;
|
|
5482
|
+
received_at: string | null;
|
|
5483
|
+
status: string;
|
|
5484
|
+
subject: string | null;
|
|
5485
|
+
uid: number | null;
|
|
5486
|
+
updated_at: string;
|
|
5487
|
+
};
|
|
5488
|
+
Insert: {
|
|
5489
|
+
body_html?: string | null;
|
|
5490
|
+
body_text?: string | null;
|
|
5491
|
+
connection_id?: string | null;
|
|
5492
|
+
created_at?: string;
|
|
5493
|
+
error_message?: string | null;
|
|
5494
|
+
external_id?: string | null;
|
|
5495
|
+
from_email?: string | null;
|
|
5496
|
+
from_name?: string | null;
|
|
5497
|
+
id?: string;
|
|
5498
|
+
message_id?: string | null;
|
|
5499
|
+
profile_id?: string | null;
|
|
5500
|
+
raw_size?: number | null;
|
|
5501
|
+
received_at?: string | null;
|
|
5502
|
+
status?: string;
|
|
5503
|
+
subject?: string | null;
|
|
5504
|
+
uid?: number | null;
|
|
5505
|
+
updated_at?: string;
|
|
5506
|
+
};
|
|
5507
|
+
Update: {
|
|
5508
|
+
body_html?: string | null;
|
|
5509
|
+
body_text?: string | null;
|
|
5510
|
+
connection_id?: string | null;
|
|
5511
|
+
created_at?: string;
|
|
5512
|
+
error_message?: string | null;
|
|
5513
|
+
external_id?: string | null;
|
|
5514
|
+
from_email?: string | null;
|
|
5515
|
+
from_name?: string | null;
|
|
5516
|
+
id?: string;
|
|
5517
|
+
message_id?: string | null;
|
|
5518
|
+
profile_id?: string | null;
|
|
5519
|
+
raw_size?: number | null;
|
|
5520
|
+
received_at?: string | null;
|
|
5521
|
+
status?: string;
|
|
5522
|
+
subject?: string | null;
|
|
5523
|
+
uid?: number | null;
|
|
5524
|
+
updated_at?: string;
|
|
5525
|
+
};
|
|
5106
5526
|
Relationships: [{
|
|
5107
5527
|
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
5108
5528
|
columns: ["connection_id"];
|
|
@@ -5133,6 +5553,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5133
5553
|
matched_customer_id: string | null;
|
|
5134
5554
|
message_id: string;
|
|
5135
5555
|
notes: string | null;
|
|
5556
|
+
order_number: string | null;
|
|
5136
5557
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
5137
5558
|
reviewed_at: string | null;
|
|
5138
5559
|
reviewed_by: string | null;
|
|
@@ -5148,6 +5569,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5148
5569
|
matched_customer_id?: string | null;
|
|
5149
5570
|
message_id: string;
|
|
5150
5571
|
notes?: string | null;
|
|
5572
|
+
order_number?: string | null;
|
|
5151
5573
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5152
5574
|
reviewed_at?: string | null;
|
|
5153
5575
|
reviewed_by?: string | null;
|
|
@@ -5163,6 +5585,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5163
5585
|
matched_customer_id?: string | null;
|
|
5164
5586
|
message_id?: string;
|
|
5165
5587
|
notes?: string | null;
|
|
5588
|
+
order_number?: string | null;
|
|
5166
5589
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5167
5590
|
reviewed_at?: string | null;
|
|
5168
5591
|
reviewed_by?: string | null;
|
|
@@ -5528,130 +5951,397 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5528
5951
|
referencedColumns: ["id"];
|
|
5529
5952
|
}];
|
|
5530
5953
|
};
|
|
5531
|
-
|
|
5954
|
+
nmbrs_component_mapping: {
|
|
5532
5955
|
Row: {
|
|
5533
5956
|
created_at: string;
|
|
5534
5957
|
id: string;
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
title: string;
|
|
5958
|
+
source_kind: string;
|
|
5959
|
+
source_value: string | null;
|
|
5538
5960
|
updated_at: string;
|
|
5539
|
-
|
|
5961
|
+
wage_code: string;
|
|
5540
5962
|
};
|
|
5541
5963
|
Insert: {
|
|
5542
5964
|
created_at?: string;
|
|
5543
5965
|
id?: string;
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
title: string;
|
|
5966
|
+
source_kind: string;
|
|
5967
|
+
source_value?: string | null;
|
|
5547
5968
|
updated_at?: string;
|
|
5548
|
-
|
|
5969
|
+
wage_code: string;
|
|
5549
5970
|
};
|
|
5550
5971
|
Update: {
|
|
5551
5972
|
created_at?: string;
|
|
5552
5973
|
id?: string;
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
title?: string;
|
|
5974
|
+
source_kind?: string;
|
|
5975
|
+
source_value?: string | null;
|
|
5556
5976
|
updated_at?: string;
|
|
5557
|
-
|
|
5977
|
+
wage_code?: string;
|
|
5558
5978
|
};
|
|
5559
|
-
Relationships: [
|
|
5979
|
+
Relationships: [{
|
|
5980
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
5981
|
+
columns: ["wage_code"];
|
|
5982
|
+
isOneToOne: false;
|
|
5983
|
+
referencedRelation: "nmbrs_wage_components";
|
|
5984
|
+
referencedColumns: ["code"];
|
|
5985
|
+
}];
|
|
5560
5986
|
};
|
|
5561
|
-
|
|
5987
|
+
nmbrs_employee_mapping: {
|
|
5562
5988
|
Row: {
|
|
5563
|
-
|
|
5989
|
+
active_from: string | null;
|
|
5990
|
+
active_to: string | null;
|
|
5991
|
+
contract_hours_per_week: number | null;
|
|
5564
5992
|
created_at: string;
|
|
5993
|
+
hourly_wage: number | null;
|
|
5565
5994
|
id: string;
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5995
|
+
monteur_id: string;
|
|
5996
|
+
nmbrs_company_code: string | null;
|
|
5997
|
+
nmbrs_employee_number: string;
|
|
5998
|
+
updated_at: string;
|
|
5569
5999
|
};
|
|
5570
6000
|
Insert: {
|
|
5571
|
-
|
|
6001
|
+
active_from?: string | null;
|
|
6002
|
+
active_to?: string | null;
|
|
6003
|
+
contract_hours_per_week?: number | null;
|
|
5572
6004
|
created_at?: string;
|
|
6005
|
+
hourly_wage?: number | null;
|
|
5573
6006
|
id?: string;
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
6007
|
+
monteur_id: string;
|
|
6008
|
+
nmbrs_company_code?: string | null;
|
|
6009
|
+
nmbrs_employee_number: string;
|
|
6010
|
+
updated_at?: string;
|
|
5577
6011
|
};
|
|
5578
6012
|
Update: {
|
|
5579
|
-
|
|
6013
|
+
active_from?: string | null;
|
|
6014
|
+
active_to?: string | null;
|
|
6015
|
+
contract_hours_per_week?: number | null;
|
|
5580
6016
|
created_at?: string;
|
|
6017
|
+
hourly_wage?: number | null;
|
|
5581
6018
|
id?: string;
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
6019
|
+
monteur_id?: string;
|
|
6020
|
+
nmbrs_company_code?: string | null;
|
|
6021
|
+
nmbrs_employee_number?: string;
|
|
6022
|
+
updated_at?: string;
|
|
5585
6023
|
};
|
|
5586
6024
|
Relationships: [{
|
|
5587
|
-
foreignKeyName: "
|
|
5588
|
-
columns: ["
|
|
5589
|
-
isOneToOne:
|
|
5590
|
-
referencedRelation: "
|
|
6025
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
6026
|
+
columns: ["monteur_id"];
|
|
6027
|
+
isOneToOne: true;
|
|
6028
|
+
referencedRelation: "monteurs";
|
|
5591
6029
|
referencedColumns: ["id"];
|
|
5592
6030
|
}];
|
|
5593
6031
|
};
|
|
5594
|
-
|
|
6032
|
+
nmbrs_export_lines: {
|
|
5595
6033
|
Row: {
|
|
5596
|
-
|
|
5597
|
-
barcode: string | null;
|
|
5598
|
-
belading: string | null;
|
|
5599
|
-
campaign_id: string;
|
|
5600
|
-
crate_price: number | null;
|
|
6034
|
+
amount: number;
|
|
5601
6035
|
created_at: string;
|
|
5602
|
-
|
|
5603
|
-
|
|
6036
|
+
entry_date: string;
|
|
6037
|
+
hours: number;
|
|
5604
6038
|
id: string;
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
6039
|
+
monteur_id: string;
|
|
6040
|
+
nmbrs_employee_number: string | null;
|
|
6041
|
+
notes: string | null;
|
|
6042
|
+
run_id: string;
|
|
6043
|
+
source_kind: string | null;
|
|
6044
|
+
source_ref_id: string | null;
|
|
6045
|
+
updated_at: string;
|
|
6046
|
+
wage_code: string;
|
|
5613
6047
|
};
|
|
5614
6048
|
Insert: {
|
|
5615
|
-
|
|
5616
|
-
barcode?: string | null;
|
|
5617
|
-
belading?: string | null;
|
|
5618
|
-
campaign_id: string;
|
|
5619
|
-
crate_price?: number | null;
|
|
6049
|
+
amount?: number;
|
|
5620
6050
|
created_at?: string;
|
|
5621
|
-
|
|
5622
|
-
|
|
6051
|
+
entry_date: string;
|
|
6052
|
+
hours?: number;
|
|
5623
6053
|
id?: string;
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
6054
|
+
monteur_id: string;
|
|
6055
|
+
nmbrs_employee_number?: string | null;
|
|
6056
|
+
notes?: string | null;
|
|
6057
|
+
run_id: string;
|
|
6058
|
+
source_kind?: string | null;
|
|
6059
|
+
source_ref_id?: string | null;
|
|
6060
|
+
updated_at?: string;
|
|
6061
|
+
wage_code: string;
|
|
5632
6062
|
};
|
|
5633
6063
|
Update: {
|
|
5634
|
-
|
|
5635
|
-
barcode?: string | null;
|
|
5636
|
-
belading?: string | null;
|
|
5637
|
-
campaign_id?: string;
|
|
5638
|
-
crate_price?: number | null;
|
|
6064
|
+
amount?: number;
|
|
5639
6065
|
created_at?: string;
|
|
5640
|
-
|
|
5641
|
-
|
|
6066
|
+
entry_date?: string;
|
|
6067
|
+
hours?: number;
|
|
5642
6068
|
id?: string;
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
6069
|
+
monteur_id?: string;
|
|
6070
|
+
nmbrs_employee_number?: string | null;
|
|
6071
|
+
notes?: string | null;
|
|
6072
|
+
run_id?: string;
|
|
6073
|
+
source_kind?: string | null;
|
|
6074
|
+
source_ref_id?: string | null;
|
|
6075
|
+
updated_at?: string;
|
|
6076
|
+
wage_code?: string;
|
|
5651
6077
|
};
|
|
5652
6078
|
Relationships: [{
|
|
5653
|
-
foreignKeyName: "
|
|
5654
|
-
columns: ["
|
|
6079
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
6080
|
+
columns: ["monteur_id"];
|
|
6081
|
+
isOneToOne: false;
|
|
6082
|
+
referencedRelation: "monteurs";
|
|
6083
|
+
referencedColumns: ["id"];
|
|
6084
|
+
}, {
|
|
6085
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
6086
|
+
columns: ["run_id"];
|
|
6087
|
+
isOneToOne: false;
|
|
6088
|
+
referencedRelation: "nmbrs_export_runs";
|
|
6089
|
+
referencedColumns: ["id"];
|
|
6090
|
+
}, {
|
|
6091
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
6092
|
+
columns: ["wage_code"];
|
|
6093
|
+
isOneToOne: false;
|
|
6094
|
+
referencedRelation: "nmbrs_wage_components";
|
|
6095
|
+
referencedColumns: ["code"];
|
|
6096
|
+
}];
|
|
6097
|
+
};
|
|
6098
|
+
nmbrs_export_runs: {
|
|
6099
|
+
Row: {
|
|
6100
|
+
created_at: string;
|
|
6101
|
+
file_name: string | null;
|
|
6102
|
+
generated_at: string;
|
|
6103
|
+
generated_by: string | null;
|
|
6104
|
+
id: string;
|
|
6105
|
+
notes: string | null;
|
|
6106
|
+
period_end: string;
|
|
6107
|
+
period_label: string;
|
|
6108
|
+
period_start: string;
|
|
6109
|
+
status: string;
|
|
6110
|
+
total_hours: number;
|
|
6111
|
+
total_lines: number;
|
|
6112
|
+
updated_at: string;
|
|
6113
|
+
};
|
|
6114
|
+
Insert: {
|
|
6115
|
+
created_at?: string;
|
|
6116
|
+
file_name?: string | null;
|
|
6117
|
+
generated_at?: string;
|
|
6118
|
+
generated_by?: string | null;
|
|
6119
|
+
id?: string;
|
|
6120
|
+
notes?: string | null;
|
|
6121
|
+
period_end: string;
|
|
6122
|
+
period_label: string;
|
|
6123
|
+
period_start: string;
|
|
6124
|
+
status?: string;
|
|
6125
|
+
total_hours?: number;
|
|
6126
|
+
total_lines?: number;
|
|
6127
|
+
updated_at?: string;
|
|
6128
|
+
};
|
|
6129
|
+
Update: {
|
|
6130
|
+
created_at?: string;
|
|
6131
|
+
file_name?: string | null;
|
|
6132
|
+
generated_at?: string;
|
|
6133
|
+
generated_by?: string | null;
|
|
6134
|
+
id?: string;
|
|
6135
|
+
notes?: string | null;
|
|
6136
|
+
period_end?: string;
|
|
6137
|
+
period_label?: string;
|
|
6138
|
+
period_start?: string;
|
|
6139
|
+
status?: string;
|
|
6140
|
+
total_hours?: number;
|
|
6141
|
+
total_lines?: number;
|
|
6142
|
+
updated_at?: string;
|
|
6143
|
+
};
|
|
6144
|
+
Relationships: [];
|
|
6145
|
+
};
|
|
6146
|
+
nmbrs_settings: {
|
|
6147
|
+
Row: {
|
|
6148
|
+
created_at: string;
|
|
6149
|
+
default_company_code: string | null;
|
|
6150
|
+
id: boolean;
|
|
6151
|
+
include_travel: boolean;
|
|
6152
|
+
overtime_threshold_daily: number;
|
|
6153
|
+
overtime_threshold_weekly: number;
|
|
6154
|
+
period_type: string;
|
|
6155
|
+
updated_at: string;
|
|
6156
|
+
updated_by: string | null;
|
|
6157
|
+
week_start_day: number;
|
|
6158
|
+
};
|
|
6159
|
+
Insert: {
|
|
6160
|
+
created_at?: string;
|
|
6161
|
+
default_company_code?: string | null;
|
|
6162
|
+
id?: boolean;
|
|
6163
|
+
include_travel?: boolean;
|
|
6164
|
+
overtime_threshold_daily?: number;
|
|
6165
|
+
overtime_threshold_weekly?: number;
|
|
6166
|
+
period_type?: string;
|
|
6167
|
+
updated_at?: string;
|
|
6168
|
+
updated_by?: string | null;
|
|
6169
|
+
week_start_day?: number;
|
|
6170
|
+
};
|
|
6171
|
+
Update: {
|
|
6172
|
+
created_at?: string;
|
|
6173
|
+
default_company_code?: string | null;
|
|
6174
|
+
id?: boolean;
|
|
6175
|
+
include_travel?: boolean;
|
|
6176
|
+
overtime_threshold_daily?: number;
|
|
6177
|
+
overtime_threshold_weekly?: number;
|
|
6178
|
+
period_type?: string;
|
|
6179
|
+
updated_at?: string;
|
|
6180
|
+
updated_by?: string | null;
|
|
6181
|
+
week_start_day?: number;
|
|
6182
|
+
};
|
|
6183
|
+
Relationships: [];
|
|
6184
|
+
};
|
|
6185
|
+
nmbrs_wage_components: {
|
|
6186
|
+
Row: {
|
|
6187
|
+
category: string;
|
|
6188
|
+
code: string;
|
|
6189
|
+
created_at: string;
|
|
6190
|
+
id: string;
|
|
6191
|
+
is_active: boolean;
|
|
6192
|
+
label: string;
|
|
6193
|
+
sort_order: number;
|
|
6194
|
+
unit: string;
|
|
6195
|
+
updated_at: string;
|
|
6196
|
+
};
|
|
6197
|
+
Insert: {
|
|
6198
|
+
category: string;
|
|
6199
|
+
code: string;
|
|
6200
|
+
created_at?: string;
|
|
6201
|
+
id?: string;
|
|
6202
|
+
is_active?: boolean;
|
|
6203
|
+
label: string;
|
|
6204
|
+
sort_order?: number;
|
|
6205
|
+
unit: string;
|
|
6206
|
+
updated_at?: string;
|
|
6207
|
+
};
|
|
6208
|
+
Update: {
|
|
6209
|
+
category?: string;
|
|
6210
|
+
code?: string;
|
|
6211
|
+
created_at?: string;
|
|
6212
|
+
id?: string;
|
|
6213
|
+
is_active?: boolean;
|
|
6214
|
+
label?: string;
|
|
6215
|
+
sort_order?: number;
|
|
6216
|
+
unit?: string;
|
|
6217
|
+
updated_at?: string;
|
|
6218
|
+
};
|
|
6219
|
+
Relationships: [];
|
|
6220
|
+
};
|
|
6221
|
+
notifications: {
|
|
6222
|
+
Row: {
|
|
6223
|
+
created_at: string;
|
|
6224
|
+
id: string;
|
|
6225
|
+
message: string | null;
|
|
6226
|
+
read: boolean;
|
|
6227
|
+
title: string;
|
|
6228
|
+
updated_at: string;
|
|
6229
|
+
user_id: string;
|
|
6230
|
+
};
|
|
6231
|
+
Insert: {
|
|
6232
|
+
created_at?: string;
|
|
6233
|
+
id?: string;
|
|
6234
|
+
message?: string | null;
|
|
6235
|
+
read?: boolean;
|
|
6236
|
+
title: string;
|
|
6237
|
+
updated_at?: string;
|
|
6238
|
+
user_id: string;
|
|
6239
|
+
};
|
|
6240
|
+
Update: {
|
|
6241
|
+
created_at?: string;
|
|
6242
|
+
id?: string;
|
|
6243
|
+
message?: string | null;
|
|
6244
|
+
read?: boolean;
|
|
6245
|
+
title?: string;
|
|
6246
|
+
updated_at?: string;
|
|
6247
|
+
user_id?: string;
|
|
6248
|
+
};
|
|
6249
|
+
Relationships: [];
|
|
6250
|
+
};
|
|
6251
|
+
offer_campaign_product_tiers: {
|
|
6252
|
+
Row: {
|
|
6253
|
+
campaign_product_id: string;
|
|
6254
|
+
created_at: string;
|
|
6255
|
+
id: string;
|
|
6256
|
+
min_crates: number;
|
|
6257
|
+
price_per_crate: number;
|
|
6258
|
+
sort_order: number;
|
|
6259
|
+
};
|
|
6260
|
+
Insert: {
|
|
6261
|
+
campaign_product_id: string;
|
|
6262
|
+
created_at?: string;
|
|
6263
|
+
id?: string;
|
|
6264
|
+
min_crates?: number;
|
|
6265
|
+
price_per_crate?: number;
|
|
6266
|
+
sort_order?: number;
|
|
6267
|
+
};
|
|
6268
|
+
Update: {
|
|
6269
|
+
campaign_product_id?: string;
|
|
6270
|
+
created_at?: string;
|
|
6271
|
+
id?: string;
|
|
6272
|
+
min_crates?: number;
|
|
6273
|
+
price_per_crate?: number;
|
|
6274
|
+
sort_order?: number;
|
|
6275
|
+
};
|
|
6276
|
+
Relationships: [{
|
|
6277
|
+
foreignKeyName: "offer_campaign_product_tiers_campaign_product_id_fkey";
|
|
6278
|
+
columns: ["campaign_product_id"];
|
|
6279
|
+
isOneToOne: false;
|
|
6280
|
+
referencedRelation: "offer_campaign_products";
|
|
6281
|
+
referencedColumns: ["id"];
|
|
6282
|
+
}];
|
|
6283
|
+
};
|
|
6284
|
+
offer_campaign_products: {
|
|
6285
|
+
Row: {
|
|
6286
|
+
available_stock: number;
|
|
6287
|
+
barcode: string | null;
|
|
6288
|
+
belading: string | null;
|
|
6289
|
+
campaign_id: string;
|
|
6290
|
+
crate_price: number | null;
|
|
6291
|
+
created_at: string;
|
|
6292
|
+
description: string | null;
|
|
6293
|
+
discount_price: number;
|
|
6294
|
+
id: string;
|
|
6295
|
+
image_url: string | null;
|
|
6296
|
+
normal_price: number;
|
|
6297
|
+
plants_per_crate: number | null;
|
|
6298
|
+
product_id: string | null;
|
|
6299
|
+
product_name: string;
|
|
6300
|
+
sort_order: number;
|
|
6301
|
+
sticker_available: boolean;
|
|
6302
|
+
sticker_cost: number | null;
|
|
6303
|
+
};
|
|
6304
|
+
Insert: {
|
|
6305
|
+
available_stock?: number;
|
|
6306
|
+
barcode?: string | null;
|
|
6307
|
+
belading?: string | null;
|
|
6308
|
+
campaign_id: string;
|
|
6309
|
+
crate_price?: number | null;
|
|
6310
|
+
created_at?: string;
|
|
6311
|
+
description?: string | null;
|
|
6312
|
+
discount_price?: number;
|
|
6313
|
+
id?: string;
|
|
6314
|
+
image_url?: string | null;
|
|
6315
|
+
normal_price?: number;
|
|
6316
|
+
plants_per_crate?: number | null;
|
|
6317
|
+
product_id?: string | null;
|
|
6318
|
+
product_name: string;
|
|
6319
|
+
sort_order?: number;
|
|
6320
|
+
sticker_available?: boolean;
|
|
6321
|
+
sticker_cost?: number | null;
|
|
6322
|
+
};
|
|
6323
|
+
Update: {
|
|
6324
|
+
available_stock?: number;
|
|
6325
|
+
barcode?: string | null;
|
|
6326
|
+
belading?: string | null;
|
|
6327
|
+
campaign_id?: string;
|
|
6328
|
+
crate_price?: number | null;
|
|
6329
|
+
created_at?: string;
|
|
6330
|
+
description?: string | null;
|
|
6331
|
+
discount_price?: number;
|
|
6332
|
+
id?: string;
|
|
6333
|
+
image_url?: string | null;
|
|
6334
|
+
normal_price?: number;
|
|
6335
|
+
plants_per_crate?: number | null;
|
|
6336
|
+
product_id?: string | null;
|
|
6337
|
+
product_name?: string;
|
|
6338
|
+
sort_order?: number;
|
|
6339
|
+
sticker_available?: boolean;
|
|
6340
|
+
sticker_cost?: number | null;
|
|
6341
|
+
};
|
|
6342
|
+
Relationships: [{
|
|
6343
|
+
foreignKeyName: "offer_campaign_products_campaign_id_fkey";
|
|
6344
|
+
columns: ["campaign_id"];
|
|
5655
6345
|
isOneToOne: false;
|
|
5656
6346
|
referencedRelation: "offer_campaigns";
|
|
5657
6347
|
referencedColumns: ["id"];
|
|
@@ -5752,6 +6442,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5752
6442
|
id: string;
|
|
5753
6443
|
items: import("../integrations/supabase/types").Json;
|
|
5754
6444
|
notes: string | null;
|
|
6445
|
+
order_number: string | null;
|
|
5755
6446
|
recipient_id: string;
|
|
5756
6447
|
total_amount: number;
|
|
5757
6448
|
};
|
|
@@ -5765,6 +6456,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5765
6456
|
id?: string;
|
|
5766
6457
|
items?: import("../integrations/supabase/types").Json;
|
|
5767
6458
|
notes?: string | null;
|
|
6459
|
+
order_number?: string | null;
|
|
5768
6460
|
recipient_id: string;
|
|
5769
6461
|
total_amount?: number;
|
|
5770
6462
|
};
|
|
@@ -5778,6 +6470,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5778
6470
|
id?: string;
|
|
5779
6471
|
items?: import("../integrations/supabase/types").Json;
|
|
5780
6472
|
notes?: string | null;
|
|
6473
|
+
order_number?: string | null;
|
|
5781
6474
|
recipient_id?: string;
|
|
5782
6475
|
total_amount?: number;
|
|
5783
6476
|
};
|
|
@@ -5937,6 +6630,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5937
6630
|
crates_per_layer: number;
|
|
5938
6631
|
created_at: string;
|
|
5939
6632
|
id: string;
|
|
6633
|
+
layer_fraction: number;
|
|
6634
|
+
layer_share_pct: number;
|
|
6635
|
+
layers_per_cart: number;
|
|
5940
6636
|
order_item_id: string | null;
|
|
5941
6637
|
plants_per_crate: number;
|
|
5942
6638
|
product_id: string | null;
|
|
@@ -5948,6 +6644,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5948
6644
|
crates_per_layer?: number;
|
|
5949
6645
|
created_at?: string;
|
|
5950
6646
|
id?: string;
|
|
6647
|
+
layer_fraction?: number;
|
|
6648
|
+
layer_share_pct?: number;
|
|
6649
|
+
layers_per_cart?: number;
|
|
5951
6650
|
order_item_id?: string | null;
|
|
5952
6651
|
plants_per_crate?: number;
|
|
5953
6652
|
product_id?: string | null;
|
|
@@ -5959,6 +6658,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5959
6658
|
crates_per_layer?: number;
|
|
5960
6659
|
created_at?: string;
|
|
5961
6660
|
id?: string;
|
|
6661
|
+
layer_fraction?: number;
|
|
6662
|
+
layer_share_pct?: number;
|
|
6663
|
+
layers_per_cart?: number;
|
|
5962
6664
|
order_item_id?: string | null;
|
|
5963
6665
|
plants_per_crate?: number;
|
|
5964
6666
|
product_id?: string | null;
|
|
@@ -5986,33 +6688,45 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
5986
6688
|
};
|
|
5987
6689
|
order_carts: {
|
|
5988
6690
|
Row: {
|
|
6691
|
+
algorithm_version: number;
|
|
5989
6692
|
cart_number: number;
|
|
5990
6693
|
created_at: string;
|
|
5991
6694
|
id: string;
|
|
5992
6695
|
is_auto: boolean;
|
|
5993
6696
|
is_complete: boolean;
|
|
5994
6697
|
notes: string | null;
|
|
6698
|
+
occupancy_pct: number;
|
|
5995
6699
|
order_id: string;
|
|
6700
|
+
source: string;
|
|
6701
|
+
total_layers_used: number;
|
|
5996
6702
|
updated_at: string;
|
|
5997
6703
|
};
|
|
5998
6704
|
Insert: {
|
|
6705
|
+
algorithm_version?: number;
|
|
5999
6706
|
cart_number: number;
|
|
6000
6707
|
created_at?: string;
|
|
6001
6708
|
id?: string;
|
|
6002
6709
|
is_auto?: boolean;
|
|
6003
6710
|
is_complete?: boolean;
|
|
6004
6711
|
notes?: string | null;
|
|
6712
|
+
occupancy_pct?: number;
|
|
6005
6713
|
order_id: string;
|
|
6714
|
+
source?: string;
|
|
6715
|
+
total_layers_used?: number;
|
|
6006
6716
|
updated_at?: string;
|
|
6007
6717
|
};
|
|
6008
6718
|
Update: {
|
|
6719
|
+
algorithm_version?: number;
|
|
6009
6720
|
cart_number?: number;
|
|
6010
6721
|
created_at?: string;
|
|
6011
6722
|
id?: string;
|
|
6012
6723
|
is_auto?: boolean;
|
|
6013
6724
|
is_complete?: boolean;
|
|
6014
6725
|
notes?: string | null;
|
|
6726
|
+
occupancy_pct?: number;
|
|
6015
6727
|
order_id?: string;
|
|
6728
|
+
source?: string;
|
|
6729
|
+
total_layers_used?: number;
|
|
6016
6730
|
updated_at?: string;
|
|
6017
6731
|
};
|
|
6018
6732
|
Relationships: [{
|
|
@@ -6165,6 +6879,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6165
6879
|
order_date: string;
|
|
6166
6880
|
order_number: string;
|
|
6167
6881
|
order_source: string;
|
|
6882
|
+
plan_locked_at: string | null;
|
|
6883
|
+
plan_locked_ref: string | null;
|
|
6168
6884
|
status: string;
|
|
6169
6885
|
total: string;
|
|
6170
6886
|
updated_at: string;
|
|
@@ -6181,6 +6897,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6181
6897
|
order_date?: string;
|
|
6182
6898
|
order_number: string;
|
|
6183
6899
|
order_source?: string;
|
|
6900
|
+
plan_locked_at?: string | null;
|
|
6901
|
+
plan_locked_ref?: string | null;
|
|
6184
6902
|
status?: string;
|
|
6185
6903
|
total?: string;
|
|
6186
6904
|
updated_at?: string;
|
|
@@ -6197,6 +6915,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6197
6915
|
order_date?: string;
|
|
6198
6916
|
order_number?: string;
|
|
6199
6917
|
order_source?: string;
|
|
6918
|
+
plan_locked_at?: string | null;
|
|
6919
|
+
plan_locked_ref?: string | null;
|
|
6200
6920
|
status?: string;
|
|
6201
6921
|
total?: string;
|
|
6202
6922
|
updated_at?: string;
|
|
@@ -6569,6 +7289,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6569
7289
|
display_name: string | null;
|
|
6570
7290
|
email: string | null;
|
|
6571
7291
|
id: string;
|
|
7292
|
+
is_superadmin: boolean;
|
|
6572
7293
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
6573
7294
|
tenant_id: string | null;
|
|
6574
7295
|
updated_at: string;
|
|
@@ -6578,6 +7299,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6578
7299
|
display_name?: string | null;
|
|
6579
7300
|
email?: string | null;
|
|
6580
7301
|
id: string;
|
|
7302
|
+
is_superadmin?: boolean;
|
|
6581
7303
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
6582
7304
|
tenant_id?: string | null;
|
|
6583
7305
|
updated_at?: string;
|
|
@@ -6587,6 +7309,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6587
7309
|
display_name?: string | null;
|
|
6588
7310
|
email?: string | null;
|
|
6589
7311
|
id?: string;
|
|
7312
|
+
is_superadmin?: boolean;
|
|
6590
7313
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
6591
7314
|
tenant_id?: string | null;
|
|
6592
7315
|
updated_at?: string;
|
|
@@ -7376,28 +8099,88 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7376
8099
|
};
|
|
7377
8100
|
Relationships: [];
|
|
7378
8101
|
};
|
|
7379
|
-
|
|
8102
|
+
sidebar_config: {
|
|
8103
|
+
Row: {
|
|
8104
|
+
id: string;
|
|
8105
|
+
module_order: string[];
|
|
8106
|
+
updated_at: string;
|
|
8107
|
+
};
|
|
8108
|
+
Insert: {
|
|
8109
|
+
id?: string;
|
|
8110
|
+
module_order?: string[];
|
|
8111
|
+
updated_at?: string;
|
|
8112
|
+
};
|
|
8113
|
+
Update: {
|
|
8114
|
+
id?: string;
|
|
8115
|
+
module_order?: string[];
|
|
8116
|
+
updated_at?: string;
|
|
8117
|
+
};
|
|
8118
|
+
Relationships: [];
|
|
8119
|
+
};
|
|
8120
|
+
stock_import_runs: {
|
|
7380
8121
|
Row: {
|
|
7381
8122
|
connection_id: string | null;
|
|
7382
8123
|
created_at: string;
|
|
7383
|
-
|
|
8124
|
+
created_rows: number;
|
|
8125
|
+
errors: import("../integrations/supabase/types").Json;
|
|
8126
|
+
filename: string | null;
|
|
7384
8127
|
id: string;
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
physical_before: number | null;
|
|
7391
|
-
qty_delta: number;
|
|
7392
|
-
reason: string | null;
|
|
7393
|
-
reserved_after: number | null;
|
|
7394
|
-
reserved_before: number | null;
|
|
7395
|
-
trade_item_key: string;
|
|
8128
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
8129
|
+
skipped_rows: number;
|
|
8130
|
+
total_rows: number;
|
|
8131
|
+
updated_rows: number;
|
|
8132
|
+
user_id: string;
|
|
7396
8133
|
};
|
|
7397
8134
|
Insert: {
|
|
7398
8135
|
connection_id?: string | null;
|
|
7399
8136
|
created_at?: string;
|
|
7400
|
-
|
|
8137
|
+
created_rows?: number;
|
|
8138
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
8139
|
+
filename?: string | null;
|
|
8140
|
+
id?: string;
|
|
8141
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
8142
|
+
skipped_rows?: number;
|
|
8143
|
+
total_rows?: number;
|
|
8144
|
+
updated_rows?: number;
|
|
8145
|
+
user_id: string;
|
|
8146
|
+
};
|
|
8147
|
+
Update: {
|
|
8148
|
+
connection_id?: string | null;
|
|
8149
|
+
created_at?: string;
|
|
8150
|
+
created_rows?: number;
|
|
8151
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
8152
|
+
filename?: string | null;
|
|
8153
|
+
id?: string;
|
|
8154
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
8155
|
+
skipped_rows?: number;
|
|
8156
|
+
total_rows?: number;
|
|
8157
|
+
updated_rows?: number;
|
|
8158
|
+
user_id?: string;
|
|
8159
|
+
};
|
|
8160
|
+
Relationships: [];
|
|
8161
|
+
};
|
|
8162
|
+
stock_mutation_log: {
|
|
8163
|
+
Row: {
|
|
8164
|
+
connection_id: string | null;
|
|
8165
|
+
created_at: string;
|
|
8166
|
+
created_by: string | null;
|
|
8167
|
+
id: string;
|
|
8168
|
+
mutation_type: string;
|
|
8169
|
+
order_id: string | null;
|
|
8170
|
+
order_item_id: string | null;
|
|
8171
|
+
order_source: string | null;
|
|
8172
|
+
physical_after: number | null;
|
|
8173
|
+
physical_before: number | null;
|
|
8174
|
+
qty_delta: number;
|
|
8175
|
+
reason: string | null;
|
|
8176
|
+
reserved_after: number | null;
|
|
8177
|
+
reserved_before: number | null;
|
|
8178
|
+
trade_item_key: string | null;
|
|
8179
|
+
};
|
|
8180
|
+
Insert: {
|
|
8181
|
+
connection_id?: string | null;
|
|
8182
|
+
created_at?: string;
|
|
8183
|
+
created_by?: string | null;
|
|
7401
8184
|
id?: string;
|
|
7402
8185
|
mutation_type: string;
|
|
7403
8186
|
order_id?: string | null;
|
|
@@ -7409,7 +8192,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7409
8192
|
reason?: string | null;
|
|
7410
8193
|
reserved_after?: number | null;
|
|
7411
8194
|
reserved_before?: number | null;
|
|
7412
|
-
trade_item_key
|
|
8195
|
+
trade_item_key?: string | null;
|
|
7413
8196
|
};
|
|
7414
8197
|
Update: {
|
|
7415
8198
|
connection_id?: string | null;
|
|
@@ -7426,7 +8209,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7426
8209
|
reason?: string | null;
|
|
7427
8210
|
reserved_after?: number | null;
|
|
7428
8211
|
reserved_before?: number | null;
|
|
7429
|
-
trade_item_key?: string;
|
|
8212
|
+
trade_item_key?: string | null;
|
|
7430
8213
|
};
|
|
7431
8214
|
Relationships: [];
|
|
7432
8215
|
};
|
|
@@ -7769,6 +8552,114 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7769
8552
|
};
|
|
7770
8553
|
Relationships: [];
|
|
7771
8554
|
};
|
|
8555
|
+
trade_item_supply_lines: {
|
|
8556
|
+
Row: {
|
|
8557
|
+
available_quantity: number | null;
|
|
8558
|
+
connection_id: string;
|
|
8559
|
+
created_at: string;
|
|
8560
|
+
currency: string | null;
|
|
8561
|
+
endpoint_family: string | null;
|
|
8562
|
+
environment: string | null;
|
|
8563
|
+
id: string;
|
|
8564
|
+
last_error: string | null;
|
|
8565
|
+
last_status: number | null;
|
|
8566
|
+
packing_configuration_id: string | null;
|
|
8567
|
+
period_end: string | null;
|
|
8568
|
+
period_start: string | null;
|
|
8569
|
+
price_per_piece: number | null;
|
|
8570
|
+
sales_unit: string | null;
|
|
8571
|
+
supply_line_id: string | null;
|
|
8572
|
+
supply_type: string;
|
|
8573
|
+
trade_item_id: string;
|
|
8574
|
+
updated_at: string;
|
|
8575
|
+
user_id: string;
|
|
8576
|
+
week: number | null;
|
|
8577
|
+
year: number | null;
|
|
8578
|
+
};
|
|
8579
|
+
Insert: {
|
|
8580
|
+
available_quantity?: number | null;
|
|
8581
|
+
connection_id: string;
|
|
8582
|
+
created_at?: string;
|
|
8583
|
+
currency?: string | null;
|
|
8584
|
+
endpoint_family?: string | null;
|
|
8585
|
+
environment?: string | null;
|
|
8586
|
+
id?: string;
|
|
8587
|
+
last_error?: string | null;
|
|
8588
|
+
last_status?: number | null;
|
|
8589
|
+
packing_configuration_id?: string | null;
|
|
8590
|
+
period_end?: string | null;
|
|
8591
|
+
period_start?: string | null;
|
|
8592
|
+
price_per_piece?: number | null;
|
|
8593
|
+
sales_unit?: string | null;
|
|
8594
|
+
supply_line_id?: string | null;
|
|
8595
|
+
supply_type?: string;
|
|
8596
|
+
trade_item_id: string;
|
|
8597
|
+
updated_at?: string;
|
|
8598
|
+
user_id: string;
|
|
8599
|
+
week?: number | null;
|
|
8600
|
+
year?: number | null;
|
|
8601
|
+
};
|
|
8602
|
+
Update: {
|
|
8603
|
+
available_quantity?: number | null;
|
|
8604
|
+
connection_id?: string;
|
|
8605
|
+
created_at?: string;
|
|
8606
|
+
currency?: string | null;
|
|
8607
|
+
endpoint_family?: string | null;
|
|
8608
|
+
environment?: string | null;
|
|
8609
|
+
id?: string;
|
|
8610
|
+
last_error?: string | null;
|
|
8611
|
+
last_status?: number | null;
|
|
8612
|
+
packing_configuration_id?: string | null;
|
|
8613
|
+
period_end?: string | null;
|
|
8614
|
+
period_start?: string | null;
|
|
8615
|
+
price_per_piece?: number | null;
|
|
8616
|
+
sales_unit?: string | null;
|
|
8617
|
+
supply_line_id?: string | null;
|
|
8618
|
+
supply_type?: string;
|
|
8619
|
+
trade_item_id?: string;
|
|
8620
|
+
updated_at?: string;
|
|
8621
|
+
user_id?: string;
|
|
8622
|
+
week?: number | null;
|
|
8623
|
+
year?: number | null;
|
|
8624
|
+
};
|
|
8625
|
+
Relationships: [];
|
|
8626
|
+
};
|
|
8627
|
+
trade_item_warehouse_preferences: {
|
|
8628
|
+
Row: {
|
|
8629
|
+
connection_id: string;
|
|
8630
|
+
created_at: string;
|
|
8631
|
+
id: string;
|
|
8632
|
+
trade_item_id: string;
|
|
8633
|
+
updated_at: string;
|
|
8634
|
+
warehouse_id: string;
|
|
8635
|
+
warehouse_name: string | null;
|
|
8636
|
+
};
|
|
8637
|
+
Insert: {
|
|
8638
|
+
connection_id: string;
|
|
8639
|
+
created_at?: string;
|
|
8640
|
+
id?: string;
|
|
8641
|
+
trade_item_id: string;
|
|
8642
|
+
updated_at?: string;
|
|
8643
|
+
warehouse_id: string;
|
|
8644
|
+
warehouse_name?: string | null;
|
|
8645
|
+
};
|
|
8646
|
+
Update: {
|
|
8647
|
+
connection_id?: string;
|
|
8648
|
+
created_at?: string;
|
|
8649
|
+
id?: string;
|
|
8650
|
+
trade_item_id?: string;
|
|
8651
|
+
updated_at?: string;
|
|
8652
|
+
warehouse_id?: string;
|
|
8653
|
+
warehouse_name?: string | null;
|
|
8654
|
+
};
|
|
8655
|
+
Relationships: [{
|
|
8656
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8657
|
+
columns: ["connection_id"];
|
|
8658
|
+
isOneToOne: false;
|
|
8659
|
+
referencedRelation: "floriday_connections";
|
|
8660
|
+
referencedColumns: ["id"];
|
|
8661
|
+
}];
|
|
8662
|
+
};
|
|
7772
8663
|
twinfield_connections: {
|
|
7773
8664
|
Row: {
|
|
7774
8665
|
access_token: string | null;
|
|
@@ -8088,6 +8979,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8088
8979
|
default_invoice_type: string;
|
|
8089
8980
|
default_payment_term_days: number;
|
|
8090
8981
|
default_vat_code: string;
|
|
8982
|
+
invoice_enabled_ao: boolean;
|
|
8983
|
+
invoice_enabled_fo: boolean;
|
|
8984
|
+
invoice_enabled_ho: boolean;
|
|
8985
|
+
invoice_enabled_mo: boolean;
|
|
8091
8986
|
updated_at: string;
|
|
8092
8987
|
user_id: string;
|
|
8093
8988
|
};
|
|
@@ -8097,6 +8992,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8097
8992
|
default_invoice_type?: string;
|
|
8098
8993
|
default_payment_term_days?: number;
|
|
8099
8994
|
default_vat_code?: string;
|
|
8995
|
+
invoice_enabled_ao?: boolean;
|
|
8996
|
+
invoice_enabled_fo?: boolean;
|
|
8997
|
+
invoice_enabled_ho?: boolean;
|
|
8998
|
+
invoice_enabled_mo?: boolean;
|
|
8100
8999
|
updated_at?: string;
|
|
8101
9000
|
user_id: string;
|
|
8102
9001
|
};
|
|
@@ -8106,6 +9005,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8106
9005
|
default_invoice_type?: string;
|
|
8107
9006
|
default_payment_term_days?: number;
|
|
8108
9007
|
default_vat_code?: string;
|
|
9008
|
+
invoice_enabled_ao?: boolean;
|
|
9009
|
+
invoice_enabled_fo?: boolean;
|
|
9010
|
+
invoice_enabled_ho?: boolean;
|
|
9011
|
+
invoice_enabled_mo?: boolean;
|
|
8109
9012
|
updated_at?: string;
|
|
8110
9013
|
user_id?: string;
|
|
8111
9014
|
};
|
|
@@ -9007,6 +9910,44 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9007
9910
|
};
|
|
9008
9911
|
Relationships: [];
|
|
9009
9912
|
};
|
|
9913
|
+
floriday_customer_discounts: {
|
|
9914
|
+
Row: {
|
|
9915
|
+
base_price: number | null;
|
|
9916
|
+
buyer_organization_id: string | null;
|
|
9917
|
+
currency: string | null;
|
|
9918
|
+
discount_type: string | null;
|
|
9919
|
+
discount_value: number | null;
|
|
9920
|
+
min_quantity: number | null;
|
|
9921
|
+
net_price: number | null;
|
|
9922
|
+
product_group_id: string | null;
|
|
9923
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
9924
|
+
source: string | null;
|
|
9925
|
+
source_id: string | null;
|
|
9926
|
+
trade_item_id: string | null;
|
|
9927
|
+
valid_from: string | null;
|
|
9928
|
+
valid_until: string | null;
|
|
9929
|
+
};
|
|
9930
|
+
Relationships: [];
|
|
9931
|
+
};
|
|
9932
|
+
local_customer_discounts: {
|
|
9933
|
+
Row: {
|
|
9934
|
+
base_price: number | null;
|
|
9935
|
+
currency: string | null;
|
|
9936
|
+
customer_id: string | null;
|
|
9937
|
+
discount_type: string | null;
|
|
9938
|
+
discount_value: number | null;
|
|
9939
|
+
min_quantity: number | null;
|
|
9940
|
+
net_price: number | null;
|
|
9941
|
+
product_category_id: string | null;
|
|
9942
|
+
product_id: string | null;
|
|
9943
|
+
product_name: string | null;
|
|
9944
|
+
source: string | null;
|
|
9945
|
+
source_id: string | null;
|
|
9946
|
+
valid_from: string | null;
|
|
9947
|
+
valid_until: string | null;
|
|
9948
|
+
};
|
|
9949
|
+
Relationships: [];
|
|
9950
|
+
};
|
|
9010
9951
|
manufacture_product_possible_stock_view: {
|
|
9011
9952
|
Row: {
|
|
9012
9953
|
component_count: number | null;
|
|
@@ -9291,6 +10232,32 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9291
10232
|
};
|
|
9292
10233
|
Returns: number;
|
|
9293
10234
|
};
|
|
10235
|
+
afh_city_code: {
|
|
10236
|
+
Args: {
|
|
10237
|
+
_city: string;
|
|
10238
|
+
_country: string;
|
|
10239
|
+
};
|
|
10240
|
+
Returns: string;
|
|
10241
|
+
};
|
|
10242
|
+
afh_normalize_country: {
|
|
10243
|
+
Args: {
|
|
10244
|
+
_raw: string;
|
|
10245
|
+
};
|
|
10246
|
+
Returns: string;
|
|
10247
|
+
};
|
|
10248
|
+
afh_normalize_nl_province: {
|
|
10249
|
+
Args: {
|
|
10250
|
+
_raw: string;
|
|
10251
|
+
};
|
|
10252
|
+
Returns: string;
|
|
10253
|
+
};
|
|
10254
|
+
afh_subtract_workdays: {
|
|
10255
|
+
Args: {
|
|
10256
|
+
_date: string;
|
|
10257
|
+
_days: number;
|
|
10258
|
+
};
|
|
10259
|
+
Returns: string;
|
|
10260
|
+
};
|
|
9294
10261
|
apply_stock_consumption: {
|
|
9295
10262
|
Args: {
|
|
9296
10263
|
p_order_id: string;
|
|
@@ -9336,16 +10303,62 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9336
10303
|
order_number: string;
|
|
9337
10304
|
}[];
|
|
9338
10305
|
};
|
|
10306
|
+
autolink_product_to_floriday: {
|
|
10307
|
+
Args: {
|
|
10308
|
+
p_product_id: string;
|
|
10309
|
+
};
|
|
10310
|
+
Returns: string;
|
|
10311
|
+
};
|
|
10312
|
+
backfill_open_order_reservations: {
|
|
10313
|
+
Args: never;
|
|
10314
|
+
Returns: {
|
|
10315
|
+
processed_items: number;
|
|
10316
|
+
}[];
|
|
10317
|
+
};
|
|
9339
10318
|
call_exact_route: {
|
|
9340
10319
|
Args: {
|
|
9341
10320
|
path: string;
|
|
9342
10321
|
};
|
|
9343
10322
|
Returns: number;
|
|
9344
10323
|
};
|
|
10324
|
+
check_offer_product_available_stock: {
|
|
10325
|
+
Args: {
|
|
10326
|
+
p_campaign_product_id: string;
|
|
10327
|
+
p_code: string;
|
|
10328
|
+
p_needed_qty?: number;
|
|
10329
|
+
p_product_name?: string;
|
|
10330
|
+
};
|
|
10331
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10332
|
+
};
|
|
10333
|
+
check_trade_item_available_stock: {
|
|
10334
|
+
Args: {
|
|
10335
|
+
p_connection_id?: string;
|
|
10336
|
+
p_context?: string;
|
|
10337
|
+
p_needed_qty?: number;
|
|
10338
|
+
p_order_id?: string;
|
|
10339
|
+
p_order_item_id?: string;
|
|
10340
|
+
p_owner_id?: string;
|
|
10341
|
+
p_product_name?: string;
|
|
10342
|
+
p_trade_item_key: string;
|
|
10343
|
+
};
|
|
10344
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10345
|
+
};
|
|
9345
10346
|
cleanup_old_bookings: {
|
|
9346
10347
|
Args: never;
|
|
9347
10348
|
Returns: number;
|
|
9348
10349
|
};
|
|
10350
|
+
consume_floriday_rate_limit: {
|
|
10351
|
+
Args: {
|
|
10352
|
+
p_bucket: string;
|
|
10353
|
+
p_capacity: number;
|
|
10354
|
+
p_cost?: number;
|
|
10355
|
+
p_refill_per_sec: number;
|
|
10356
|
+
};
|
|
10357
|
+
Returns: {
|
|
10358
|
+
granted: boolean;
|
|
10359
|
+
wait_ms: number;
|
|
10360
|
+
}[];
|
|
10361
|
+
};
|
|
9349
10362
|
control_get_todays_carts: {
|
|
9350
10363
|
Args: never;
|
|
9351
10364
|
Returns: {
|
|
@@ -9385,6 +10398,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9385
10398
|
table_name: string;
|
|
9386
10399
|
}[];
|
|
9387
10400
|
};
|
|
10401
|
+
dispatch_carrier_signups_sql: {
|
|
10402
|
+
Args: {
|
|
10403
|
+
_catchup?: string;
|
|
10404
|
+
};
|
|
10405
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10406
|
+
};
|
|
9388
10407
|
email_auth_decrypt: {
|
|
9389
10408
|
Args: {
|
|
9390
10409
|
cipher: string;
|
|
@@ -9420,6 +10439,18 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9420
10439
|
status: string;
|
|
9421
10440
|
}[];
|
|
9422
10441
|
};
|
|
10442
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10443
|
+
Args: {
|
|
10444
|
+
p_order_id: string;
|
|
10445
|
+
};
|
|
10446
|
+
Returns: undefined;
|
|
10447
|
+
};
|
|
10448
|
+
ensure_trade_item_stock_row: {
|
|
10449
|
+
Args: {
|
|
10450
|
+
p_key: string;
|
|
10451
|
+
};
|
|
10452
|
+
Returns: undefined;
|
|
10453
|
+
};
|
|
9423
10454
|
ensure_user_tenant: {
|
|
9424
10455
|
Args: never;
|
|
9425
10456
|
Returns: string;
|
|
@@ -9457,6 +10488,31 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9457
10488
|
};
|
|
9458
10489
|
Returns: boolean;
|
|
9459
10490
|
};
|
|
10491
|
+
find_trade_item_key: {
|
|
10492
|
+
Args: {
|
|
10493
|
+
p_barcode: string;
|
|
10494
|
+
p_name: string;
|
|
10495
|
+
p_product_id: string;
|
|
10496
|
+
};
|
|
10497
|
+
Returns: string;
|
|
10498
|
+
};
|
|
10499
|
+
floriday_effective_price: {
|
|
10500
|
+
Args: {
|
|
10501
|
+
_buyer_id: string;
|
|
10502
|
+
_on_date?: string;
|
|
10503
|
+
_quantity?: number;
|
|
10504
|
+
_trade_item_id: string;
|
|
10505
|
+
};
|
|
10506
|
+
Returns: {
|
|
10507
|
+
base_price: number;
|
|
10508
|
+
currency: string;
|
|
10509
|
+
discount_type: string;
|
|
10510
|
+
discount_value: number;
|
|
10511
|
+
net_price: number;
|
|
10512
|
+
source: string;
|
|
10513
|
+
source_id: string;
|
|
10514
|
+
}[];
|
|
10515
|
+
};
|
|
9460
10516
|
format_cart_number: {
|
|
9461
10517
|
Args: {
|
|
9462
10518
|
p_pick_date: string;
|
|
@@ -9477,6 +10533,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9477
10533
|
preferred_warehouse_name: string;
|
|
9478
10534
|
}[];
|
|
9479
10535
|
};
|
|
10536
|
+
get_active_floriday_context: {
|
|
10537
|
+
Args: never;
|
|
10538
|
+
Returns: {
|
|
10539
|
+
connection_id: string;
|
|
10540
|
+
user_id: string;
|
|
10541
|
+
}[];
|
|
10542
|
+
};
|
|
9480
10543
|
get_active_twinfield_public: {
|
|
9481
10544
|
Args: never;
|
|
9482
10545
|
Returns: {
|
|
@@ -9488,6 +10551,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9488
10551
|
office_code: string;
|
|
9489
10552
|
}[];
|
|
9490
10553
|
};
|
|
10554
|
+
get_floricode_record_counts: {
|
|
10555
|
+
Args: never;
|
|
10556
|
+
Returns: {
|
|
10557
|
+
count: number;
|
|
10558
|
+
resource: string;
|
|
10559
|
+
}[];
|
|
10560
|
+
};
|
|
9491
10561
|
get_floriday_agreements_active: {
|
|
9492
10562
|
Args: {
|
|
9493
10563
|
p_on_date?: string;
|
|
@@ -9579,6 +10649,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9579
10649
|
};
|
|
9580
10650
|
Returns: import("../integrations/supabase/types").Json;
|
|
9581
10651
|
};
|
|
10652
|
+
get_offer_delivery_options: {
|
|
10653
|
+
Args: {
|
|
10654
|
+
p_code: string;
|
|
10655
|
+
};
|
|
10656
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10657
|
+
};
|
|
10658
|
+
get_offer_recipient_by_code: {
|
|
10659
|
+
Args: {
|
|
10660
|
+
p_code: string;
|
|
10661
|
+
};
|
|
10662
|
+
Returns: {
|
|
10663
|
+
campaign_id: string;
|
|
10664
|
+
clicked_at: string;
|
|
10665
|
+
customer_id: string;
|
|
10666
|
+
id: string;
|
|
10667
|
+
ordered_at: string;
|
|
10668
|
+
}[];
|
|
10669
|
+
};
|
|
9582
10670
|
get_or_assign_floriday_order_number: {
|
|
9583
10671
|
Args: {
|
|
9584
10672
|
p_floriday_id: string;
|
|
@@ -9631,12 +10719,53 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9631
10719
|
Args: never;
|
|
9632
10720
|
Returns: boolean;
|
|
9633
10721
|
};
|
|
10722
|
+
is_superadmin: {
|
|
10723
|
+
Args: {
|
|
10724
|
+
_user_id: string;
|
|
10725
|
+
};
|
|
10726
|
+
Returns: boolean;
|
|
10727
|
+
};
|
|
10728
|
+
local_effective_price: {
|
|
10729
|
+
Args: {
|
|
10730
|
+
_customer_id: string;
|
|
10731
|
+
_on_date?: string;
|
|
10732
|
+
_product_id: string;
|
|
10733
|
+
_quantity?: number;
|
|
10734
|
+
};
|
|
10735
|
+
Returns: {
|
|
10736
|
+
currency: string;
|
|
10737
|
+
discount_type: string;
|
|
10738
|
+
discount_value: number;
|
|
10739
|
+
net_price: number;
|
|
10740
|
+
source: string;
|
|
10741
|
+
source_id: string;
|
|
10742
|
+
}[];
|
|
10743
|
+
};
|
|
10744
|
+
mark_offer_clicked: {
|
|
10745
|
+
Args: {
|
|
10746
|
+
p_code: string;
|
|
10747
|
+
};
|
|
10748
|
+
Returns: undefined;
|
|
10749
|
+
};
|
|
10750
|
+
mark_offer_ordered: {
|
|
10751
|
+
Args: {
|
|
10752
|
+
p_code: string;
|
|
10753
|
+
};
|
|
10754
|
+
Returns: undefined;
|
|
10755
|
+
};
|
|
9634
10756
|
next_order_number: {
|
|
9635
10757
|
Args: {
|
|
9636
10758
|
p_prefix: string;
|
|
9637
10759
|
};
|
|
9638
10760
|
Returns: string;
|
|
9639
10761
|
};
|
|
10762
|
+
next_order_number_for_date: {
|
|
10763
|
+
Args: {
|
|
10764
|
+
p_created_at?: string;
|
|
10765
|
+
p_prefix: string;
|
|
10766
|
+
};
|
|
10767
|
+
Returns: string;
|
|
10768
|
+
};
|
|
9640
10769
|
next_work_order_number: {
|
|
9641
10770
|
Args: {
|
|
9642
10771
|
p_parent_work_order_id?: string;
|
|
@@ -9644,16 +10773,41 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9644
10773
|
};
|
|
9645
10774
|
Returns: string;
|
|
9646
10775
|
};
|
|
10776
|
+
normalize_order_source: {
|
|
10777
|
+
Args: {
|
|
10778
|
+
p_src: string;
|
|
10779
|
+
};
|
|
10780
|
+
Returns: string;
|
|
10781
|
+
};
|
|
9647
10782
|
normalize_vat: {
|
|
9648
10783
|
Args: {
|
|
9649
10784
|
v: string;
|
|
9650
10785
|
};
|
|
9651
10786
|
Returns: string;
|
|
9652
10787
|
};
|
|
10788
|
+
offer_recipient_matches: {
|
|
10789
|
+
Args: {
|
|
10790
|
+
_campaign_id: string;
|
|
10791
|
+
_customer_id: string;
|
|
10792
|
+
_recipient_id: string;
|
|
10793
|
+
};
|
|
10794
|
+
Returns: boolean;
|
|
10795
|
+
};
|
|
10796
|
+
order_number_prefix: {
|
|
10797
|
+
Args: {
|
|
10798
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
10799
|
+
p_order_source: string;
|
|
10800
|
+
};
|
|
10801
|
+
Returns: string;
|
|
10802
|
+
};
|
|
9653
10803
|
pickstation_get_orders_raw: {
|
|
9654
10804
|
Args: never;
|
|
9655
10805
|
Returns: import("../integrations/supabase/types").Json;
|
|
9656
10806
|
};
|
|
10807
|
+
pickstation_get_planning_context: {
|
|
10808
|
+
Args: never;
|
|
10809
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10810
|
+
};
|
|
9657
10811
|
pickstation_get_settings: {
|
|
9658
10812
|
Args: never;
|
|
9659
10813
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -9677,8 +10831,37 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9677
10831
|
};
|
|
9678
10832
|
Returns: undefined;
|
|
9679
10833
|
};
|
|
9680
|
-
|
|
9681
|
-
Args:
|
|
10834
|
+
promote_trade_item_key: {
|
|
10835
|
+
Args: {
|
|
10836
|
+
p_new: string;
|
|
10837
|
+
p_old: string;
|
|
10838
|
+
};
|
|
10839
|
+
Returns: undefined;
|
|
10840
|
+
};
|
|
10841
|
+
recompute_order_status: {
|
|
10842
|
+
Args: {
|
|
10843
|
+
p_order_id: string;
|
|
10844
|
+
};
|
|
10845
|
+
Returns: undefined;
|
|
10846
|
+
};
|
|
10847
|
+
recompute_reserved_for_order: {
|
|
10848
|
+
Args: {
|
|
10849
|
+
p_order_id: string;
|
|
10850
|
+
};
|
|
10851
|
+
Returns: undefined;
|
|
10852
|
+
};
|
|
10853
|
+
recompute_reserved_stock: {
|
|
10854
|
+
Args: {
|
|
10855
|
+
p_trade_item_key: string;
|
|
10856
|
+
};
|
|
10857
|
+
Returns: undefined;
|
|
10858
|
+
};
|
|
10859
|
+
refresh_external_customers_grouped: {
|
|
10860
|
+
Args: never;
|
|
10861
|
+
Returns: undefined;
|
|
10862
|
+
};
|
|
10863
|
+
refresh_floricode_derived_code_lists: {
|
|
10864
|
+
Args: never;
|
|
9682
10865
|
Returns: {
|
|
9683
10866
|
environment: string;
|
|
9684
10867
|
list_name: string;
|
|
@@ -9691,6 +10874,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9691
10874
|
};
|
|
9692
10875
|
Returns: number;
|
|
9693
10876
|
};
|
|
10877
|
+
refresh_floricode_derived_for_products: {
|
|
10878
|
+
Args: {
|
|
10879
|
+
_product_ids: string[];
|
|
10880
|
+
};
|
|
10881
|
+
Returns: number;
|
|
10882
|
+
};
|
|
9694
10883
|
reset_floriday_sync_cursor: {
|
|
9695
10884
|
Args: {
|
|
9696
10885
|
p_connection_id: string;
|
|
@@ -9698,6 +10887,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9698
10887
|
};
|
|
9699
10888
|
Returns: undefined;
|
|
9700
10889
|
};
|
|
10890
|
+
resolve_product_id_for_item: {
|
|
10891
|
+
Args: {
|
|
10892
|
+
p_product_name: string;
|
|
10893
|
+
};
|
|
10894
|
+
Returns: string;
|
|
10895
|
+
};
|
|
9701
10896
|
schedule_floriday_additional_services_sync: {
|
|
9702
10897
|
Args: {
|
|
9703
10898
|
p_apikey: string;
|
|
@@ -9975,6 +11170,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
9975
11170
|
};
|
|
9976
11171
|
Returns: string[];
|
|
9977
11172
|
};
|
|
11173
|
+
sync_cached_packing_from_product: {
|
|
11174
|
+
Args: {
|
|
11175
|
+
p_product_id: string;
|
|
11176
|
+
};
|
|
11177
|
+
Returns: undefined;
|
|
11178
|
+
};
|
|
11179
|
+
sync_order_cart_item_packing_from_product: {
|
|
11180
|
+
Args: {
|
|
11181
|
+
p_product_id: string;
|
|
11182
|
+
};
|
|
11183
|
+
Returns: undefined;
|
|
11184
|
+
};
|
|
11185
|
+
sync_product_packing_from_floriday_cache: {
|
|
11186
|
+
Args: {
|
|
11187
|
+
p_floriday_id: string;
|
|
11188
|
+
};
|
|
11189
|
+
Returns: undefined;
|
|
11190
|
+
};
|
|
9978
11191
|
twinfield_decrypt: {
|
|
9979
11192
|
Args: {
|
|
9980
11193
|
cipher: string;
|
|
@@ -10006,7 +11219,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
10006
11219
|
Tables: {
|
|
10007
11220
|
afhandeling_settings: {
|
|
10008
11221
|
Row: {
|
|
11222
|
+
auto_print_delivery_note: boolean;
|
|
11223
|
+
auto_process_paused: boolean;
|
|
10009
11224
|
created_at: string;
|
|
11225
|
+
extra_pick_days_with_stickers: number;
|
|
10010
11226
|
id: string;
|
|
10011
11227
|
max_workdays_earlier_pick: number;
|
|
10012
11228
|
pick_days_before_transport: number;
|
|
@@ -10020,7 +11236,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
10020
11236
|
user_id: string;
|
|
10021
11237
|
};
|
|
10022
11238
|
Insert: {
|
|
11239
|
+
auto_print_delivery_note?: boolean;
|
|
11240
|
+
auto_process_paused?: boolean;
|
|
10023
11241
|
created_at?: string;
|
|
11242
|
+
extra_pick_days_with_stickers?: number;
|
|
10024
11243
|
id?: string;
|
|
10025
11244
|
max_workdays_earlier_pick?: number;
|
|
10026
11245
|
pick_days_before_transport?: number;
|
|
@@ -10034,7 +11253,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
10034
11253
|
user_id: string;
|
|
10035
11254
|
};
|
|
10036
11255
|
Update: {
|
|
11256
|
+
auto_print_delivery_note?: boolean;
|
|
11257
|
+
auto_process_paused?: boolean;
|
|
10037
11258
|
created_at?: string;
|
|
11259
|
+
extra_pick_days_with_stickers?: number;
|
|
10038
11260
|
id?: string;
|
|
10039
11261
|
max_workdays_earlier_pick?: number;
|
|
10040
11262
|
pick_days_before_transport?: number;
|
|
@@ -10826,6 +12048,36 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
10826
12048
|
};
|
|
10827
12049
|
Relationships: [];
|
|
10828
12050
|
};
|
|
12051
|
+
cart_replan_queue: {
|
|
12052
|
+
Row: {
|
|
12053
|
+
attempts: number;
|
|
12054
|
+
last_error: string | null;
|
|
12055
|
+
order_id: string;
|
|
12056
|
+
processed_at: string | null;
|
|
12057
|
+
requested_at: string;
|
|
12058
|
+
};
|
|
12059
|
+
Insert: {
|
|
12060
|
+
attempts?: number;
|
|
12061
|
+
last_error?: string | null;
|
|
12062
|
+
order_id: string;
|
|
12063
|
+
processed_at?: string | null;
|
|
12064
|
+
requested_at?: string;
|
|
12065
|
+
};
|
|
12066
|
+
Update: {
|
|
12067
|
+
attempts?: number;
|
|
12068
|
+
last_error?: string | null;
|
|
12069
|
+
order_id?: string;
|
|
12070
|
+
processed_at?: string | null;
|
|
12071
|
+
requested_at?: string;
|
|
12072
|
+
};
|
|
12073
|
+
Relationships: [{
|
|
12074
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
12075
|
+
columns: ["order_id"];
|
|
12076
|
+
isOneToOne: true;
|
|
12077
|
+
referencedRelation: "orders";
|
|
12078
|
+
referencedColumns: ["id"];
|
|
12079
|
+
}];
|
|
12080
|
+
};
|
|
10829
12081
|
collections: {
|
|
10830
12082
|
Row: {
|
|
10831
12083
|
created_at: string;
|
|
@@ -12951,34 +14203,52 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
12951
14203
|
Row: {
|
|
12952
14204
|
catalog_key: string | null;
|
|
12953
14205
|
catalog_url: string;
|
|
14206
|
+
client_id: string | null;
|
|
14207
|
+
client_secret_ciphertext: string | null;
|
|
14208
|
+
client_secret_last4: string | null;
|
|
12954
14209
|
created_at: string;
|
|
12955
14210
|
id: number;
|
|
12956
14211
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
12957
14212
|
last_test_at: string | null;
|
|
12958
14213
|
last_test_error: string | null;
|
|
12959
14214
|
last_test_ok: boolean | null;
|
|
14215
|
+
last_token_test_at: string | null;
|
|
14216
|
+
last_token_test_error: string | null;
|
|
14217
|
+
last_token_test_ok: boolean | null;
|
|
12960
14218
|
updated_at: string;
|
|
12961
14219
|
};
|
|
12962
14220
|
Insert: {
|
|
12963
14221
|
catalog_key?: string | null;
|
|
12964
14222
|
catalog_url?: string;
|
|
14223
|
+
client_id?: string | null;
|
|
14224
|
+
client_secret_ciphertext?: string | null;
|
|
14225
|
+
client_secret_last4?: string | null;
|
|
12965
14226
|
created_at?: string;
|
|
12966
14227
|
id?: number;
|
|
12967
14228
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
12968
14229
|
last_test_at?: string | null;
|
|
12969
14230
|
last_test_error?: string | null;
|
|
12970
14231
|
last_test_ok?: boolean | null;
|
|
14232
|
+
last_token_test_at?: string | null;
|
|
14233
|
+
last_token_test_error?: string | null;
|
|
14234
|
+
last_token_test_ok?: boolean | null;
|
|
12971
14235
|
updated_at?: string;
|
|
12972
14236
|
};
|
|
12973
14237
|
Update: {
|
|
12974
14238
|
catalog_key?: string | null;
|
|
12975
14239
|
catalog_url?: string;
|
|
14240
|
+
client_id?: string | null;
|
|
14241
|
+
client_secret_ciphertext?: string | null;
|
|
14242
|
+
client_secret_last4?: string | null;
|
|
12976
14243
|
created_at?: string;
|
|
12977
14244
|
id?: number;
|
|
12978
14245
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
12979
14246
|
last_test_at?: string | null;
|
|
12980
14247
|
last_test_error?: string | null;
|
|
12981
14248
|
last_test_ok?: boolean | null;
|
|
14249
|
+
last_token_test_at?: string | null;
|
|
14250
|
+
last_token_test_error?: string | null;
|
|
14251
|
+
last_token_test_ok?: boolean | null;
|
|
12982
14252
|
updated_at?: string;
|
|
12983
14253
|
};
|
|
12984
14254
|
Relationships: [];
|
|
@@ -13211,6 +14481,54 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
13211
14481
|
referencedColumns: ["id"];
|
|
13212
14482
|
}];
|
|
13213
14483
|
};
|
|
14484
|
+
floriday_auto_fulfillment_log: {
|
|
14485
|
+
Row: {
|
|
14486
|
+
attempts: number;
|
|
14487
|
+
connection_id: string;
|
|
14488
|
+
created_at: string;
|
|
14489
|
+
error: string | null;
|
|
14490
|
+
fulfillment_order_id: string | null;
|
|
14491
|
+
id: string;
|
|
14492
|
+
last_attempt_at: string | null;
|
|
14493
|
+
reason: string | null;
|
|
14494
|
+
sales_order_id: string;
|
|
14495
|
+
status: string;
|
|
14496
|
+
updated_at: string;
|
|
14497
|
+
};
|
|
14498
|
+
Insert: {
|
|
14499
|
+
attempts?: number;
|
|
14500
|
+
connection_id: string;
|
|
14501
|
+
created_at?: string;
|
|
14502
|
+
error?: string | null;
|
|
14503
|
+
fulfillment_order_id?: string | null;
|
|
14504
|
+
id?: string;
|
|
14505
|
+
last_attempt_at?: string | null;
|
|
14506
|
+
reason?: string | null;
|
|
14507
|
+
sales_order_id: string;
|
|
14508
|
+
status?: string;
|
|
14509
|
+
updated_at?: string;
|
|
14510
|
+
};
|
|
14511
|
+
Update: {
|
|
14512
|
+
attempts?: number;
|
|
14513
|
+
connection_id?: string;
|
|
14514
|
+
created_at?: string;
|
|
14515
|
+
error?: string | null;
|
|
14516
|
+
fulfillment_order_id?: string | null;
|
|
14517
|
+
id?: string;
|
|
14518
|
+
last_attempt_at?: string | null;
|
|
14519
|
+
reason?: string | null;
|
|
14520
|
+
sales_order_id?: string;
|
|
14521
|
+
status?: string;
|
|
14522
|
+
updated_at?: string;
|
|
14523
|
+
};
|
|
14524
|
+
Relationships: [{
|
|
14525
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
14526
|
+
columns: ["connection_id"];
|
|
14527
|
+
isOneToOne: false;
|
|
14528
|
+
referencedRelation: "floriday_connections";
|
|
14529
|
+
referencedColumns: ["id"];
|
|
14530
|
+
}];
|
|
14531
|
+
};
|
|
13214
14532
|
floriday_base_items_cache: {
|
|
13215
14533
|
Row: {
|
|
13216
14534
|
connection_id: string;
|
|
@@ -13625,6 +14943,51 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
13625
14943
|
referencedColumns: ["id"];
|
|
13626
14944
|
}];
|
|
13627
14945
|
};
|
|
14946
|
+
floriday_continuous_stock_queue: {
|
|
14947
|
+
Row: {
|
|
14948
|
+
attempts: number;
|
|
14949
|
+
connection_id: string;
|
|
14950
|
+
created_at: string;
|
|
14951
|
+
gateway_attempt_id: string | null;
|
|
14952
|
+
id: string;
|
|
14953
|
+
last_error: string | null;
|
|
14954
|
+
number_of_pieces: number;
|
|
14955
|
+
sent_at: string | null;
|
|
14956
|
+
status: string;
|
|
14957
|
+
trade_item_id: string;
|
|
14958
|
+
updated_at: string;
|
|
14959
|
+
user_id: string;
|
|
14960
|
+
};
|
|
14961
|
+
Insert: {
|
|
14962
|
+
attempts?: number;
|
|
14963
|
+
connection_id: string;
|
|
14964
|
+
created_at?: string;
|
|
14965
|
+
gateway_attempt_id?: string | null;
|
|
14966
|
+
id?: string;
|
|
14967
|
+
last_error?: string | null;
|
|
14968
|
+
number_of_pieces?: number;
|
|
14969
|
+
sent_at?: string | null;
|
|
14970
|
+
status?: string;
|
|
14971
|
+
trade_item_id: string;
|
|
14972
|
+
updated_at?: string;
|
|
14973
|
+
user_id: string;
|
|
14974
|
+
};
|
|
14975
|
+
Update: {
|
|
14976
|
+
attempts?: number;
|
|
14977
|
+
connection_id?: string;
|
|
14978
|
+
created_at?: string;
|
|
14979
|
+
gateway_attempt_id?: string | null;
|
|
14980
|
+
id?: string;
|
|
14981
|
+
last_error?: string | null;
|
|
14982
|
+
number_of_pieces?: number;
|
|
14983
|
+
sent_at?: string | null;
|
|
14984
|
+
status?: string;
|
|
14985
|
+
trade_item_id?: string;
|
|
14986
|
+
updated_at?: string;
|
|
14987
|
+
user_id?: string;
|
|
14988
|
+
};
|
|
14989
|
+
Relationships: [];
|
|
14990
|
+
};
|
|
13628
14991
|
floriday_contract_trade_item_groups_cache: {
|
|
13629
14992
|
Row: {
|
|
13630
14993
|
connection_id: string;
|
|
@@ -14270,6 +15633,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
14270
15633
|
referencedColumns: ["id"];
|
|
14271
15634
|
}];
|
|
14272
15635
|
};
|
|
15636
|
+
floriday_rate_limit_state: {
|
|
15637
|
+
Row: {
|
|
15638
|
+
bucket: string;
|
|
15639
|
+
last_refill_at: string;
|
|
15640
|
+
tokens: number;
|
|
15641
|
+
};
|
|
15642
|
+
Insert: {
|
|
15643
|
+
bucket: string;
|
|
15644
|
+
last_refill_at?: string;
|
|
15645
|
+
tokens: number;
|
|
15646
|
+
};
|
|
15647
|
+
Update: {
|
|
15648
|
+
bucket?: string;
|
|
15649
|
+
last_refill_at?: string;
|
|
15650
|
+
tokens?: number;
|
|
15651
|
+
};
|
|
15652
|
+
Relationships: [];
|
|
15653
|
+
};
|
|
14273
15654
|
floriday_resource_schemas: {
|
|
14274
15655
|
Row: {
|
|
14275
15656
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -14693,6 +16074,60 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
14693
16074
|
referencedColumns: ["id"];
|
|
14694
16075
|
}];
|
|
14695
16076
|
};
|
|
16077
|
+
flow_role_assignments: {
|
|
16078
|
+
Row: {
|
|
16079
|
+
created_at: string;
|
|
16080
|
+
id: string;
|
|
16081
|
+
role_id: string;
|
|
16082
|
+
user_id: string;
|
|
16083
|
+
};
|
|
16084
|
+
Insert: {
|
|
16085
|
+
created_at?: string;
|
|
16086
|
+
id?: string;
|
|
16087
|
+
role_id: string;
|
|
16088
|
+
user_id: string;
|
|
16089
|
+
};
|
|
16090
|
+
Update: {
|
|
16091
|
+
created_at?: string;
|
|
16092
|
+
id?: string;
|
|
16093
|
+
role_id?: string;
|
|
16094
|
+
user_id?: string;
|
|
16095
|
+
};
|
|
16096
|
+
Relationships: [{
|
|
16097
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
16098
|
+
columns: ["role_id"];
|
|
16099
|
+
isOneToOne: false;
|
|
16100
|
+
referencedRelation: "flow_roles";
|
|
16101
|
+
referencedColumns: ["id"];
|
|
16102
|
+
}];
|
|
16103
|
+
};
|
|
16104
|
+
flow_roles: {
|
|
16105
|
+
Row: {
|
|
16106
|
+
created_at: string;
|
|
16107
|
+
description: string | null;
|
|
16108
|
+
id: string;
|
|
16109
|
+
module_access: string[];
|
|
16110
|
+
name: string;
|
|
16111
|
+
updated_at: string;
|
|
16112
|
+
};
|
|
16113
|
+
Insert: {
|
|
16114
|
+
created_at?: string;
|
|
16115
|
+
description?: string | null;
|
|
16116
|
+
id?: string;
|
|
16117
|
+
module_access?: string[];
|
|
16118
|
+
name: string;
|
|
16119
|
+
updated_at?: string;
|
|
16120
|
+
};
|
|
16121
|
+
Update: {
|
|
16122
|
+
created_at?: string;
|
|
16123
|
+
description?: string | null;
|
|
16124
|
+
id?: string;
|
|
16125
|
+
module_access?: string[];
|
|
16126
|
+
name?: string;
|
|
16127
|
+
updated_at?: string;
|
|
16128
|
+
};
|
|
16129
|
+
Relationships: [];
|
|
16130
|
+
};
|
|
14696
16131
|
imap_accounts: {
|
|
14697
16132
|
Row: {
|
|
14698
16133
|
created_at: string;
|
|
@@ -15014,47 +16449,245 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15014
16449
|
};
|
|
15015
16450
|
Relationships: [];
|
|
15016
16451
|
};
|
|
15017
|
-
|
|
16452
|
+
local_customer_agreements: {
|
|
15018
16453
|
Row: {
|
|
16454
|
+
base_price: number | null;
|
|
15019
16455
|
created_at: string;
|
|
16456
|
+
currency: string;
|
|
16457
|
+
customer_id: string;
|
|
15020
16458
|
id: string;
|
|
15021
|
-
|
|
15022
|
-
|
|
16459
|
+
min_quantity: number;
|
|
16460
|
+
net_price: number;
|
|
16461
|
+
notes: string | null;
|
|
16462
|
+
product_category_id: string | null;
|
|
16463
|
+
product_id: string | null;
|
|
15023
16464
|
updated_at: string;
|
|
16465
|
+
valid_from: string | null;
|
|
16466
|
+
valid_until: string | null;
|
|
15024
16467
|
};
|
|
15025
16468
|
Insert: {
|
|
16469
|
+
base_price?: number | null;
|
|
15026
16470
|
created_at?: string;
|
|
16471
|
+
currency?: string;
|
|
16472
|
+
customer_id: string;
|
|
15027
16473
|
id?: string;
|
|
15028
|
-
|
|
15029
|
-
|
|
16474
|
+
min_quantity?: number;
|
|
16475
|
+
net_price: number;
|
|
16476
|
+
notes?: string | null;
|
|
16477
|
+
product_category_id?: string | null;
|
|
16478
|
+
product_id?: string | null;
|
|
15030
16479
|
updated_at?: string;
|
|
16480
|
+
valid_from?: string | null;
|
|
16481
|
+
valid_until?: string | null;
|
|
15031
16482
|
};
|
|
15032
16483
|
Update: {
|
|
16484
|
+
base_price?: number | null;
|
|
15033
16485
|
created_at?: string;
|
|
16486
|
+
currency?: string;
|
|
16487
|
+
customer_id?: string;
|
|
15034
16488
|
id?: string;
|
|
15035
|
-
|
|
15036
|
-
|
|
16489
|
+
min_quantity?: number;
|
|
16490
|
+
net_price?: number;
|
|
16491
|
+
notes?: string | null;
|
|
16492
|
+
product_category_id?: string | null;
|
|
16493
|
+
product_id?: string | null;
|
|
15037
16494
|
updated_at?: string;
|
|
16495
|
+
valid_from?: string | null;
|
|
16496
|
+
valid_until?: string | null;
|
|
15038
16497
|
};
|
|
15039
|
-
Relationships: [
|
|
16498
|
+
Relationships: [{
|
|
16499
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
16500
|
+
columns: ["customer_id"];
|
|
16501
|
+
isOneToOne: false;
|
|
16502
|
+
referencedRelation: "customers";
|
|
16503
|
+
referencedColumns: ["id"];
|
|
16504
|
+
}, {
|
|
16505
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
16506
|
+
columns: ["product_category_id"];
|
|
16507
|
+
isOneToOne: false;
|
|
16508
|
+
referencedRelation: "product_categories";
|
|
16509
|
+
referencedColumns: ["id"];
|
|
16510
|
+
}, {
|
|
16511
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
16512
|
+
columns: ["product_id"];
|
|
16513
|
+
isOneToOne: false;
|
|
16514
|
+
referencedRelation: "products";
|
|
16515
|
+
referencedColumns: ["id"];
|
|
16516
|
+
}];
|
|
15040
16517
|
};
|
|
15041
|
-
|
|
16518
|
+
local_customer_price_groups: {
|
|
15042
16519
|
Row: {
|
|
15043
|
-
body_html: string | null;
|
|
15044
|
-
body_text: string | null;
|
|
15045
|
-
connection_id: string | null;
|
|
15046
16520
|
created_at: string;
|
|
15047
|
-
|
|
15048
|
-
|
|
15049
|
-
|
|
15050
|
-
|
|
16521
|
+
currency: string;
|
|
16522
|
+
customer_id: string;
|
|
16523
|
+
discount_type: string;
|
|
16524
|
+
discount_value: number;
|
|
15051
16525
|
id: string;
|
|
15052
|
-
|
|
15053
|
-
|
|
15054
|
-
|
|
15055
|
-
|
|
15056
|
-
|
|
15057
|
-
|
|
16526
|
+
min_quantity: number;
|
|
16527
|
+
notes: string | null;
|
|
16528
|
+
product_category_id: string | null;
|
|
16529
|
+
product_id: string | null;
|
|
16530
|
+
updated_at: string;
|
|
16531
|
+
valid_from: string | null;
|
|
16532
|
+
valid_until: string | null;
|
|
16533
|
+
};
|
|
16534
|
+
Insert: {
|
|
16535
|
+
created_at?: string;
|
|
16536
|
+
currency?: string;
|
|
16537
|
+
customer_id: string;
|
|
16538
|
+
discount_type: string;
|
|
16539
|
+
discount_value: number;
|
|
16540
|
+
id?: string;
|
|
16541
|
+
min_quantity?: number;
|
|
16542
|
+
notes?: string | null;
|
|
16543
|
+
product_category_id?: string | null;
|
|
16544
|
+
product_id?: string | null;
|
|
16545
|
+
updated_at?: string;
|
|
16546
|
+
valid_from?: string | null;
|
|
16547
|
+
valid_until?: string | null;
|
|
16548
|
+
};
|
|
16549
|
+
Update: {
|
|
16550
|
+
created_at?: string;
|
|
16551
|
+
currency?: string;
|
|
16552
|
+
customer_id?: string;
|
|
16553
|
+
discount_type?: string;
|
|
16554
|
+
discount_value?: number;
|
|
16555
|
+
id?: string;
|
|
16556
|
+
min_quantity?: number;
|
|
16557
|
+
notes?: string | null;
|
|
16558
|
+
product_category_id?: string | null;
|
|
16559
|
+
product_id?: string | null;
|
|
16560
|
+
updated_at?: string;
|
|
16561
|
+
valid_from?: string | null;
|
|
16562
|
+
valid_until?: string | null;
|
|
16563
|
+
};
|
|
16564
|
+
Relationships: [{
|
|
16565
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
16566
|
+
columns: ["customer_id"];
|
|
16567
|
+
isOneToOne: false;
|
|
16568
|
+
referencedRelation: "customers";
|
|
16569
|
+
referencedColumns: ["id"];
|
|
16570
|
+
}, {
|
|
16571
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
16572
|
+
columns: ["product_category_id"];
|
|
16573
|
+
isOneToOne: false;
|
|
16574
|
+
referencedRelation: "product_categories";
|
|
16575
|
+
referencedColumns: ["id"];
|
|
16576
|
+
}, {
|
|
16577
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
16578
|
+
columns: ["product_id"];
|
|
16579
|
+
isOneToOne: false;
|
|
16580
|
+
referencedRelation: "products";
|
|
16581
|
+
referencedColumns: ["id"];
|
|
16582
|
+
}];
|
|
16583
|
+
};
|
|
16584
|
+
local_customer_sales_strategies: {
|
|
16585
|
+
Row: {
|
|
16586
|
+
created_at: string;
|
|
16587
|
+
currency: string;
|
|
16588
|
+
customer_id: string;
|
|
16589
|
+
discount_type: string;
|
|
16590
|
+
discount_value: number;
|
|
16591
|
+
id: string;
|
|
16592
|
+
min_quantity: number;
|
|
16593
|
+
notes: string | null;
|
|
16594
|
+
product_category_id: string | null;
|
|
16595
|
+
product_id: string | null;
|
|
16596
|
+
updated_at: string;
|
|
16597
|
+
valid_from: string | null;
|
|
16598
|
+
valid_until: string | null;
|
|
16599
|
+
};
|
|
16600
|
+
Insert: {
|
|
16601
|
+
created_at?: string;
|
|
16602
|
+
currency?: string;
|
|
16603
|
+
customer_id: string;
|
|
16604
|
+
discount_type: string;
|
|
16605
|
+
discount_value: number;
|
|
16606
|
+
id?: string;
|
|
16607
|
+
min_quantity?: number;
|
|
16608
|
+
notes?: string | null;
|
|
16609
|
+
product_category_id?: string | null;
|
|
16610
|
+
product_id?: string | null;
|
|
16611
|
+
updated_at?: string;
|
|
16612
|
+
valid_from?: string | null;
|
|
16613
|
+
valid_until?: string | null;
|
|
16614
|
+
};
|
|
16615
|
+
Update: {
|
|
16616
|
+
created_at?: string;
|
|
16617
|
+
currency?: string;
|
|
16618
|
+
customer_id?: string;
|
|
16619
|
+
discount_type?: string;
|
|
16620
|
+
discount_value?: number;
|
|
16621
|
+
id?: string;
|
|
16622
|
+
min_quantity?: number;
|
|
16623
|
+
notes?: string | null;
|
|
16624
|
+
product_category_id?: string | null;
|
|
16625
|
+
product_id?: string | null;
|
|
16626
|
+
updated_at?: string;
|
|
16627
|
+
valid_from?: string | null;
|
|
16628
|
+
valid_until?: string | null;
|
|
16629
|
+
};
|
|
16630
|
+
Relationships: [{
|
|
16631
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
16632
|
+
columns: ["customer_id"];
|
|
16633
|
+
isOneToOne: false;
|
|
16634
|
+
referencedRelation: "customers";
|
|
16635
|
+
referencedColumns: ["id"];
|
|
16636
|
+
}, {
|
|
16637
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
16638
|
+
columns: ["product_category_id"];
|
|
16639
|
+
isOneToOne: false;
|
|
16640
|
+
referencedRelation: "product_categories";
|
|
16641
|
+
referencedColumns: ["id"];
|
|
16642
|
+
}, {
|
|
16643
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
16644
|
+
columns: ["product_id"];
|
|
16645
|
+
isOneToOne: false;
|
|
16646
|
+
referencedRelation: "products";
|
|
16647
|
+
referencedColumns: ["id"];
|
|
16648
|
+
}];
|
|
16649
|
+
};
|
|
16650
|
+
locations: {
|
|
16651
|
+
Row: {
|
|
16652
|
+
created_at: string;
|
|
16653
|
+
id: string;
|
|
16654
|
+
name: string;
|
|
16655
|
+
sort_order: number;
|
|
16656
|
+
updated_at: string;
|
|
16657
|
+
};
|
|
16658
|
+
Insert: {
|
|
16659
|
+
created_at?: string;
|
|
16660
|
+
id?: string;
|
|
16661
|
+
name: string;
|
|
16662
|
+
sort_order?: number;
|
|
16663
|
+
updated_at?: string;
|
|
16664
|
+
};
|
|
16665
|
+
Update: {
|
|
16666
|
+
created_at?: string;
|
|
16667
|
+
id?: string;
|
|
16668
|
+
name?: string;
|
|
16669
|
+
sort_order?: number;
|
|
16670
|
+
updated_at?: string;
|
|
16671
|
+
};
|
|
16672
|
+
Relationships: [];
|
|
16673
|
+
};
|
|
16674
|
+
mailbox_messages: {
|
|
16675
|
+
Row: {
|
|
16676
|
+
body_html: string | null;
|
|
16677
|
+
body_text: string | null;
|
|
16678
|
+
connection_id: string | null;
|
|
16679
|
+
created_at: string;
|
|
16680
|
+
error_message: string | null;
|
|
16681
|
+
external_id: string | null;
|
|
16682
|
+
from_email: string | null;
|
|
16683
|
+
from_name: string | null;
|
|
16684
|
+
id: string;
|
|
16685
|
+
message_id: string | null;
|
|
16686
|
+
profile_id: string | null;
|
|
16687
|
+
raw_size: number | null;
|
|
16688
|
+
received_at: string | null;
|
|
16689
|
+
status: string;
|
|
16690
|
+
subject: string | null;
|
|
15058
16691
|
uid: number | null;
|
|
15059
16692
|
updated_at: string;
|
|
15060
16693
|
};
|
|
@@ -15126,6 +16759,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15126
16759
|
matched_customer_id: string | null;
|
|
15127
16760
|
message_id: string;
|
|
15128
16761
|
notes: string | null;
|
|
16762
|
+
order_number: string | null;
|
|
15129
16763
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
15130
16764
|
reviewed_at: string | null;
|
|
15131
16765
|
reviewed_by: string | null;
|
|
@@ -15141,6 +16775,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15141
16775
|
matched_customer_id?: string | null;
|
|
15142
16776
|
message_id: string;
|
|
15143
16777
|
notes?: string | null;
|
|
16778
|
+
order_number?: string | null;
|
|
15144
16779
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
15145
16780
|
reviewed_at?: string | null;
|
|
15146
16781
|
reviewed_by?: string | null;
|
|
@@ -15156,6 +16791,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15156
16791
|
matched_customer_id?: string | null;
|
|
15157
16792
|
message_id?: string;
|
|
15158
16793
|
notes?: string | null;
|
|
16794
|
+
order_number?: string | null;
|
|
15159
16795
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
15160
16796
|
reviewed_at?: string | null;
|
|
15161
16797
|
reviewed_by?: string | null;
|
|
@@ -15409,117 +17045,384 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15409
17045
|
unit?: string;
|
|
15410
17046
|
};
|
|
15411
17047
|
Relationships: [{
|
|
15412
|
-
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
15413
|
-
columns: ["manufacture_product_id"];
|
|
17048
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
17049
|
+
columns: ["manufacture_product_id"];
|
|
17050
|
+
isOneToOne: false;
|
|
17051
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
17052
|
+
referencedColumns: ["manufacture_product_id"];
|
|
17053
|
+
}, {
|
|
17054
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
17055
|
+
columns: ["manufacture_product_id"];
|
|
17056
|
+
isOneToOne: false;
|
|
17057
|
+
referencedRelation: "manufacture_products";
|
|
17058
|
+
referencedColumns: ["id"];
|
|
17059
|
+
}, {
|
|
17060
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
17061
|
+
columns: ["product_group_id"];
|
|
17062
|
+
isOneToOne: false;
|
|
17063
|
+
referencedRelation: "product_groups";
|
|
17064
|
+
referencedColumns: ["id"];
|
|
17065
|
+
}];
|
|
17066
|
+
};
|
|
17067
|
+
manufacture_products: {
|
|
17068
|
+
Row: {
|
|
17069
|
+
created_at: string;
|
|
17070
|
+
description: string | null;
|
|
17071
|
+
id: string;
|
|
17072
|
+
is_active: boolean;
|
|
17073
|
+
name: string;
|
|
17074
|
+
produced_stock: number;
|
|
17075
|
+
product_code: string;
|
|
17076
|
+
tenant_id: string;
|
|
17077
|
+
updated_at: string;
|
|
17078
|
+
};
|
|
17079
|
+
Insert: {
|
|
17080
|
+
created_at?: string;
|
|
17081
|
+
description?: string | null;
|
|
17082
|
+
id?: string;
|
|
17083
|
+
is_active?: boolean;
|
|
17084
|
+
name: string;
|
|
17085
|
+
produced_stock?: number;
|
|
17086
|
+
product_code: string;
|
|
17087
|
+
tenant_id: string;
|
|
17088
|
+
updated_at?: string;
|
|
17089
|
+
};
|
|
17090
|
+
Update: {
|
|
17091
|
+
created_at?: string;
|
|
17092
|
+
description?: string | null;
|
|
17093
|
+
id?: string;
|
|
17094
|
+
is_active?: boolean;
|
|
17095
|
+
name?: string;
|
|
17096
|
+
produced_stock?: number;
|
|
17097
|
+
product_code?: string;
|
|
17098
|
+
tenant_id?: string;
|
|
17099
|
+
updated_at?: string;
|
|
17100
|
+
};
|
|
17101
|
+
Relationships: [];
|
|
17102
|
+
};
|
|
17103
|
+
monteurs: {
|
|
17104
|
+
Row: {
|
|
17105
|
+
avatar_url: string | null;
|
|
17106
|
+
color: string | null;
|
|
17107
|
+
created_at: string;
|
|
17108
|
+
email: string | null;
|
|
17109
|
+
id: string;
|
|
17110
|
+
is_active: boolean;
|
|
17111
|
+
leave_balance_hours: number;
|
|
17112
|
+
name: string;
|
|
17113
|
+
persnr: number | null;
|
|
17114
|
+
phone: string | null;
|
|
17115
|
+
role: string;
|
|
17116
|
+
tenant_id: string;
|
|
17117
|
+
updated_at: string;
|
|
17118
|
+
user_id: string | null;
|
|
17119
|
+
};
|
|
17120
|
+
Insert: {
|
|
17121
|
+
avatar_url?: string | null;
|
|
17122
|
+
color?: string | null;
|
|
17123
|
+
created_at?: string;
|
|
17124
|
+
email?: string | null;
|
|
17125
|
+
id?: string;
|
|
17126
|
+
is_active?: boolean;
|
|
17127
|
+
leave_balance_hours?: number;
|
|
17128
|
+
name: string;
|
|
17129
|
+
persnr?: number | null;
|
|
17130
|
+
phone?: string | null;
|
|
17131
|
+
role?: string;
|
|
17132
|
+
tenant_id: string;
|
|
17133
|
+
updated_at?: string;
|
|
17134
|
+
user_id?: string | null;
|
|
17135
|
+
};
|
|
17136
|
+
Update: {
|
|
17137
|
+
avatar_url?: string | null;
|
|
17138
|
+
color?: string | null;
|
|
17139
|
+
created_at?: string;
|
|
17140
|
+
email?: string | null;
|
|
17141
|
+
id?: string;
|
|
17142
|
+
is_active?: boolean;
|
|
17143
|
+
leave_balance_hours?: number;
|
|
17144
|
+
name?: string;
|
|
17145
|
+
persnr?: number | null;
|
|
17146
|
+
phone?: string | null;
|
|
17147
|
+
role?: string;
|
|
17148
|
+
tenant_id?: string;
|
|
17149
|
+
updated_at?: string;
|
|
17150
|
+
user_id?: string | null;
|
|
17151
|
+
};
|
|
17152
|
+
Relationships: [{
|
|
17153
|
+
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
17154
|
+
columns: ["tenant_id"];
|
|
17155
|
+
isOneToOne: false;
|
|
17156
|
+
referencedRelation: "tenants";
|
|
17157
|
+
referencedColumns: ["id"];
|
|
17158
|
+
}];
|
|
17159
|
+
};
|
|
17160
|
+
nmbrs_component_mapping: {
|
|
17161
|
+
Row: {
|
|
17162
|
+
created_at: string;
|
|
17163
|
+
id: string;
|
|
17164
|
+
source_kind: string;
|
|
17165
|
+
source_value: string | null;
|
|
17166
|
+
updated_at: string;
|
|
17167
|
+
wage_code: string;
|
|
17168
|
+
};
|
|
17169
|
+
Insert: {
|
|
17170
|
+
created_at?: string;
|
|
17171
|
+
id?: string;
|
|
17172
|
+
source_kind: string;
|
|
17173
|
+
source_value?: string | null;
|
|
17174
|
+
updated_at?: string;
|
|
17175
|
+
wage_code: string;
|
|
17176
|
+
};
|
|
17177
|
+
Update: {
|
|
17178
|
+
created_at?: string;
|
|
17179
|
+
id?: string;
|
|
17180
|
+
source_kind?: string;
|
|
17181
|
+
source_value?: string | null;
|
|
17182
|
+
updated_at?: string;
|
|
17183
|
+
wage_code?: string;
|
|
17184
|
+
};
|
|
17185
|
+
Relationships: [{
|
|
17186
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
17187
|
+
columns: ["wage_code"];
|
|
17188
|
+
isOneToOne: false;
|
|
17189
|
+
referencedRelation: "nmbrs_wage_components";
|
|
17190
|
+
referencedColumns: ["code"];
|
|
17191
|
+
}];
|
|
17192
|
+
};
|
|
17193
|
+
nmbrs_employee_mapping: {
|
|
17194
|
+
Row: {
|
|
17195
|
+
active_from: string | null;
|
|
17196
|
+
active_to: string | null;
|
|
17197
|
+
contract_hours_per_week: number | null;
|
|
17198
|
+
created_at: string;
|
|
17199
|
+
hourly_wage: number | null;
|
|
17200
|
+
id: string;
|
|
17201
|
+
monteur_id: string;
|
|
17202
|
+
nmbrs_company_code: string | null;
|
|
17203
|
+
nmbrs_employee_number: string;
|
|
17204
|
+
updated_at: string;
|
|
17205
|
+
};
|
|
17206
|
+
Insert: {
|
|
17207
|
+
active_from?: string | null;
|
|
17208
|
+
active_to?: string | null;
|
|
17209
|
+
contract_hours_per_week?: number | null;
|
|
17210
|
+
created_at?: string;
|
|
17211
|
+
hourly_wage?: number | null;
|
|
17212
|
+
id?: string;
|
|
17213
|
+
monteur_id: string;
|
|
17214
|
+
nmbrs_company_code?: string | null;
|
|
17215
|
+
nmbrs_employee_number: string;
|
|
17216
|
+
updated_at?: string;
|
|
17217
|
+
};
|
|
17218
|
+
Update: {
|
|
17219
|
+
active_from?: string | null;
|
|
17220
|
+
active_to?: string | null;
|
|
17221
|
+
contract_hours_per_week?: number | null;
|
|
17222
|
+
created_at?: string;
|
|
17223
|
+
hourly_wage?: number | null;
|
|
17224
|
+
id?: string;
|
|
17225
|
+
monteur_id?: string;
|
|
17226
|
+
nmbrs_company_code?: string | null;
|
|
17227
|
+
nmbrs_employee_number?: string;
|
|
17228
|
+
updated_at?: string;
|
|
17229
|
+
};
|
|
17230
|
+
Relationships: [{
|
|
17231
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
17232
|
+
columns: ["monteur_id"];
|
|
17233
|
+
isOneToOne: true;
|
|
17234
|
+
referencedRelation: "monteurs";
|
|
17235
|
+
referencedColumns: ["id"];
|
|
17236
|
+
}];
|
|
17237
|
+
};
|
|
17238
|
+
nmbrs_export_lines: {
|
|
17239
|
+
Row: {
|
|
17240
|
+
amount: number;
|
|
17241
|
+
created_at: string;
|
|
17242
|
+
entry_date: string;
|
|
17243
|
+
hours: number;
|
|
17244
|
+
id: string;
|
|
17245
|
+
monteur_id: string;
|
|
17246
|
+
nmbrs_employee_number: string | null;
|
|
17247
|
+
notes: string | null;
|
|
17248
|
+
run_id: string;
|
|
17249
|
+
source_kind: string | null;
|
|
17250
|
+
source_ref_id: string | null;
|
|
17251
|
+
updated_at: string;
|
|
17252
|
+
wage_code: string;
|
|
17253
|
+
};
|
|
17254
|
+
Insert: {
|
|
17255
|
+
amount?: number;
|
|
17256
|
+
created_at?: string;
|
|
17257
|
+
entry_date: string;
|
|
17258
|
+
hours?: number;
|
|
17259
|
+
id?: string;
|
|
17260
|
+
monteur_id: string;
|
|
17261
|
+
nmbrs_employee_number?: string | null;
|
|
17262
|
+
notes?: string | null;
|
|
17263
|
+
run_id: string;
|
|
17264
|
+
source_kind?: string | null;
|
|
17265
|
+
source_ref_id?: string | null;
|
|
17266
|
+
updated_at?: string;
|
|
17267
|
+
wage_code: string;
|
|
17268
|
+
};
|
|
17269
|
+
Update: {
|
|
17270
|
+
amount?: number;
|
|
17271
|
+
created_at?: string;
|
|
17272
|
+
entry_date?: string;
|
|
17273
|
+
hours?: number;
|
|
17274
|
+
id?: string;
|
|
17275
|
+
monteur_id?: string;
|
|
17276
|
+
nmbrs_employee_number?: string | null;
|
|
17277
|
+
notes?: string | null;
|
|
17278
|
+
run_id?: string;
|
|
17279
|
+
source_kind?: string | null;
|
|
17280
|
+
source_ref_id?: string | null;
|
|
17281
|
+
updated_at?: string;
|
|
17282
|
+
wage_code?: string;
|
|
17283
|
+
};
|
|
17284
|
+
Relationships: [{
|
|
17285
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
17286
|
+
columns: ["monteur_id"];
|
|
15414
17287
|
isOneToOne: false;
|
|
15415
|
-
referencedRelation: "
|
|
15416
|
-
referencedColumns: ["
|
|
17288
|
+
referencedRelation: "monteurs";
|
|
17289
|
+
referencedColumns: ["id"];
|
|
15417
17290
|
}, {
|
|
15418
|
-
foreignKeyName: "
|
|
15419
|
-
columns: ["
|
|
17291
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
17292
|
+
columns: ["run_id"];
|
|
15420
17293
|
isOneToOne: false;
|
|
15421
|
-
referencedRelation: "
|
|
17294
|
+
referencedRelation: "nmbrs_export_runs";
|
|
15422
17295
|
referencedColumns: ["id"];
|
|
15423
17296
|
}, {
|
|
15424
|
-
foreignKeyName: "
|
|
15425
|
-
columns: ["
|
|
17297
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
17298
|
+
columns: ["wage_code"];
|
|
15426
17299
|
isOneToOne: false;
|
|
15427
|
-
referencedRelation: "
|
|
15428
|
-
referencedColumns: ["
|
|
17300
|
+
referencedRelation: "nmbrs_wage_components";
|
|
17301
|
+
referencedColumns: ["code"];
|
|
15429
17302
|
}];
|
|
15430
17303
|
};
|
|
15431
|
-
|
|
17304
|
+
nmbrs_export_runs: {
|
|
15432
17305
|
Row: {
|
|
15433
17306
|
created_at: string;
|
|
15434
|
-
|
|
17307
|
+
file_name: string | null;
|
|
17308
|
+
generated_at: string;
|
|
17309
|
+
generated_by: string | null;
|
|
15435
17310
|
id: string;
|
|
15436
|
-
|
|
15437
|
-
|
|
15438
|
-
|
|
15439
|
-
|
|
15440
|
-
|
|
17311
|
+
notes: string | null;
|
|
17312
|
+
period_end: string;
|
|
17313
|
+
period_label: string;
|
|
17314
|
+
period_start: string;
|
|
17315
|
+
status: string;
|
|
17316
|
+
total_hours: number;
|
|
17317
|
+
total_lines: number;
|
|
15441
17318
|
updated_at: string;
|
|
15442
17319
|
};
|
|
15443
17320
|
Insert: {
|
|
15444
17321
|
created_at?: string;
|
|
15445
|
-
|
|
17322
|
+
file_name?: string | null;
|
|
17323
|
+
generated_at?: string;
|
|
17324
|
+
generated_by?: string | null;
|
|
15446
17325
|
id?: string;
|
|
15447
|
-
|
|
15448
|
-
|
|
15449
|
-
|
|
15450
|
-
|
|
15451
|
-
|
|
17326
|
+
notes?: string | null;
|
|
17327
|
+
period_end: string;
|
|
17328
|
+
period_label: string;
|
|
17329
|
+
period_start: string;
|
|
17330
|
+
status?: string;
|
|
17331
|
+
total_hours?: number;
|
|
17332
|
+
total_lines?: number;
|
|
15452
17333
|
updated_at?: string;
|
|
15453
17334
|
};
|
|
15454
17335
|
Update: {
|
|
15455
17336
|
created_at?: string;
|
|
15456
|
-
|
|
17337
|
+
file_name?: string | null;
|
|
17338
|
+
generated_at?: string;
|
|
17339
|
+
generated_by?: string | null;
|
|
15457
17340
|
id?: string;
|
|
15458
|
-
|
|
15459
|
-
|
|
15460
|
-
|
|
15461
|
-
|
|
15462
|
-
|
|
17341
|
+
notes?: string | null;
|
|
17342
|
+
period_end?: string;
|
|
17343
|
+
period_label?: string;
|
|
17344
|
+
period_start?: string;
|
|
17345
|
+
status?: string;
|
|
17346
|
+
total_hours?: number;
|
|
17347
|
+
total_lines?: number;
|
|
15463
17348
|
updated_at?: string;
|
|
15464
17349
|
};
|
|
15465
17350
|
Relationships: [];
|
|
15466
17351
|
};
|
|
15467
|
-
|
|
17352
|
+
nmbrs_settings: {
|
|
15468
17353
|
Row: {
|
|
15469
|
-
avatar_url: string | null;
|
|
15470
|
-
color: string | null;
|
|
15471
17354
|
created_at: string;
|
|
15472
|
-
|
|
17355
|
+
default_company_code: string | null;
|
|
17356
|
+
id: boolean;
|
|
17357
|
+
include_travel: boolean;
|
|
17358
|
+
overtime_threshold_daily: number;
|
|
17359
|
+
overtime_threshold_weekly: number;
|
|
17360
|
+
period_type: string;
|
|
17361
|
+
updated_at: string;
|
|
17362
|
+
updated_by: string | null;
|
|
17363
|
+
week_start_day: number;
|
|
17364
|
+
};
|
|
17365
|
+
Insert: {
|
|
17366
|
+
created_at?: string;
|
|
17367
|
+
default_company_code?: string | null;
|
|
17368
|
+
id?: boolean;
|
|
17369
|
+
include_travel?: boolean;
|
|
17370
|
+
overtime_threshold_daily?: number;
|
|
17371
|
+
overtime_threshold_weekly?: number;
|
|
17372
|
+
period_type?: string;
|
|
17373
|
+
updated_at?: string;
|
|
17374
|
+
updated_by?: string | null;
|
|
17375
|
+
week_start_day?: number;
|
|
17376
|
+
};
|
|
17377
|
+
Update: {
|
|
17378
|
+
created_at?: string;
|
|
17379
|
+
default_company_code?: string | null;
|
|
17380
|
+
id?: boolean;
|
|
17381
|
+
include_travel?: boolean;
|
|
17382
|
+
overtime_threshold_daily?: number;
|
|
17383
|
+
overtime_threshold_weekly?: number;
|
|
17384
|
+
period_type?: string;
|
|
17385
|
+
updated_at?: string;
|
|
17386
|
+
updated_by?: string | null;
|
|
17387
|
+
week_start_day?: number;
|
|
17388
|
+
};
|
|
17389
|
+
Relationships: [];
|
|
17390
|
+
};
|
|
17391
|
+
nmbrs_wage_components: {
|
|
17392
|
+
Row: {
|
|
17393
|
+
category: string;
|
|
17394
|
+
code: string;
|
|
17395
|
+
created_at: string;
|
|
15473
17396
|
id: string;
|
|
15474
17397
|
is_active: boolean;
|
|
15475
|
-
|
|
15476
|
-
|
|
15477
|
-
|
|
15478
|
-
phone: string | null;
|
|
15479
|
-
role: string;
|
|
15480
|
-
tenant_id: string;
|
|
17398
|
+
label: string;
|
|
17399
|
+
sort_order: number;
|
|
17400
|
+
unit: string;
|
|
15481
17401
|
updated_at: string;
|
|
15482
|
-
user_id: string | null;
|
|
15483
17402
|
};
|
|
15484
17403
|
Insert: {
|
|
15485
|
-
|
|
15486
|
-
|
|
17404
|
+
category: string;
|
|
17405
|
+
code: string;
|
|
15487
17406
|
created_at?: string;
|
|
15488
|
-
email?: string | null;
|
|
15489
17407
|
id?: string;
|
|
15490
17408
|
is_active?: boolean;
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
15494
|
-
phone?: string | null;
|
|
15495
|
-
role?: string;
|
|
15496
|
-
tenant_id: string;
|
|
17409
|
+
label: string;
|
|
17410
|
+
sort_order?: number;
|
|
17411
|
+
unit: string;
|
|
15497
17412
|
updated_at?: string;
|
|
15498
|
-
user_id?: string | null;
|
|
15499
17413
|
};
|
|
15500
17414
|
Update: {
|
|
15501
|
-
|
|
15502
|
-
|
|
17415
|
+
category?: string;
|
|
17416
|
+
code?: string;
|
|
15503
17417
|
created_at?: string;
|
|
15504
|
-
email?: string | null;
|
|
15505
17418
|
id?: string;
|
|
15506
17419
|
is_active?: boolean;
|
|
15507
|
-
|
|
15508
|
-
|
|
15509
|
-
|
|
15510
|
-
phone?: string | null;
|
|
15511
|
-
role?: string;
|
|
15512
|
-
tenant_id?: string;
|
|
17420
|
+
label?: string;
|
|
17421
|
+
sort_order?: number;
|
|
17422
|
+
unit?: string;
|
|
15513
17423
|
updated_at?: string;
|
|
15514
|
-
user_id?: string | null;
|
|
15515
17424
|
};
|
|
15516
|
-
Relationships: [
|
|
15517
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
15518
|
-
columns: ["tenant_id"];
|
|
15519
|
-
isOneToOne: false;
|
|
15520
|
-
referencedRelation: "tenants";
|
|
15521
|
-
referencedColumns: ["id"];
|
|
15522
|
-
}];
|
|
17425
|
+
Relationships: [];
|
|
15523
17426
|
};
|
|
15524
17427
|
notifications: {
|
|
15525
17428
|
Row: {
|
|
@@ -15745,6 +17648,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15745
17648
|
id: string;
|
|
15746
17649
|
items: import("../integrations/supabase/types").Json;
|
|
15747
17650
|
notes: string | null;
|
|
17651
|
+
order_number: string | null;
|
|
15748
17652
|
recipient_id: string;
|
|
15749
17653
|
total_amount: number;
|
|
15750
17654
|
};
|
|
@@ -15758,6 +17662,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15758
17662
|
id?: string;
|
|
15759
17663
|
items?: import("../integrations/supabase/types").Json;
|
|
15760
17664
|
notes?: string | null;
|
|
17665
|
+
order_number?: string | null;
|
|
15761
17666
|
recipient_id: string;
|
|
15762
17667
|
total_amount?: number;
|
|
15763
17668
|
};
|
|
@@ -15771,6 +17676,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15771
17676
|
id?: string;
|
|
15772
17677
|
items?: import("../integrations/supabase/types").Json;
|
|
15773
17678
|
notes?: string | null;
|
|
17679
|
+
order_number?: string | null;
|
|
15774
17680
|
recipient_id?: string;
|
|
15775
17681
|
total_amount?: number;
|
|
15776
17682
|
};
|
|
@@ -15930,6 +17836,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15930
17836
|
crates_per_layer: number;
|
|
15931
17837
|
created_at: string;
|
|
15932
17838
|
id: string;
|
|
17839
|
+
layer_fraction: number;
|
|
17840
|
+
layer_share_pct: number;
|
|
17841
|
+
layers_per_cart: number;
|
|
15933
17842
|
order_item_id: string | null;
|
|
15934
17843
|
plants_per_crate: number;
|
|
15935
17844
|
product_id: string | null;
|
|
@@ -15941,6 +17850,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15941
17850
|
crates_per_layer?: number;
|
|
15942
17851
|
created_at?: string;
|
|
15943
17852
|
id?: string;
|
|
17853
|
+
layer_fraction?: number;
|
|
17854
|
+
layer_share_pct?: number;
|
|
17855
|
+
layers_per_cart?: number;
|
|
15944
17856
|
order_item_id?: string | null;
|
|
15945
17857
|
plants_per_crate?: number;
|
|
15946
17858
|
product_id?: string | null;
|
|
@@ -15952,6 +17864,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15952
17864
|
crates_per_layer?: number;
|
|
15953
17865
|
created_at?: string;
|
|
15954
17866
|
id?: string;
|
|
17867
|
+
layer_fraction?: number;
|
|
17868
|
+
layer_share_pct?: number;
|
|
17869
|
+
layers_per_cart?: number;
|
|
15955
17870
|
order_item_id?: string | null;
|
|
15956
17871
|
plants_per_crate?: number;
|
|
15957
17872
|
product_id?: string | null;
|
|
@@ -15979,33 +17894,45 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
15979
17894
|
};
|
|
15980
17895
|
order_carts: {
|
|
15981
17896
|
Row: {
|
|
17897
|
+
algorithm_version: number;
|
|
15982
17898
|
cart_number: number;
|
|
15983
17899
|
created_at: string;
|
|
15984
17900
|
id: string;
|
|
15985
17901
|
is_auto: boolean;
|
|
15986
17902
|
is_complete: boolean;
|
|
15987
17903
|
notes: string | null;
|
|
17904
|
+
occupancy_pct: number;
|
|
15988
17905
|
order_id: string;
|
|
17906
|
+
source: string;
|
|
17907
|
+
total_layers_used: number;
|
|
15989
17908
|
updated_at: string;
|
|
15990
17909
|
};
|
|
15991
17910
|
Insert: {
|
|
17911
|
+
algorithm_version?: number;
|
|
15992
17912
|
cart_number: number;
|
|
15993
17913
|
created_at?: string;
|
|
15994
17914
|
id?: string;
|
|
15995
17915
|
is_auto?: boolean;
|
|
15996
17916
|
is_complete?: boolean;
|
|
15997
17917
|
notes?: string | null;
|
|
17918
|
+
occupancy_pct?: number;
|
|
15998
17919
|
order_id: string;
|
|
17920
|
+
source?: string;
|
|
17921
|
+
total_layers_used?: number;
|
|
15999
17922
|
updated_at?: string;
|
|
16000
17923
|
};
|
|
16001
17924
|
Update: {
|
|
17925
|
+
algorithm_version?: number;
|
|
16002
17926
|
cart_number?: number;
|
|
16003
17927
|
created_at?: string;
|
|
16004
17928
|
id?: string;
|
|
16005
17929
|
is_auto?: boolean;
|
|
16006
17930
|
is_complete?: boolean;
|
|
16007
17931
|
notes?: string | null;
|
|
17932
|
+
occupancy_pct?: number;
|
|
16008
17933
|
order_id?: string;
|
|
17934
|
+
source?: string;
|
|
17935
|
+
total_layers_used?: number;
|
|
16009
17936
|
updated_at?: string;
|
|
16010
17937
|
};
|
|
16011
17938
|
Relationships: [{
|
|
@@ -16158,6 +18085,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
16158
18085
|
order_date: string;
|
|
16159
18086
|
order_number: string;
|
|
16160
18087
|
order_source: string;
|
|
18088
|
+
plan_locked_at: string | null;
|
|
18089
|
+
plan_locked_ref: string | null;
|
|
16161
18090
|
status: string;
|
|
16162
18091
|
total: string;
|
|
16163
18092
|
updated_at: string;
|
|
@@ -16174,6 +18103,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
16174
18103
|
order_date?: string;
|
|
16175
18104
|
order_number: string;
|
|
16176
18105
|
order_source?: string;
|
|
18106
|
+
plan_locked_at?: string | null;
|
|
18107
|
+
plan_locked_ref?: string | null;
|
|
16177
18108
|
status?: string;
|
|
16178
18109
|
total?: string;
|
|
16179
18110
|
updated_at?: string;
|
|
@@ -16190,6 +18121,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
16190
18121
|
order_date?: string;
|
|
16191
18122
|
order_number?: string;
|
|
16192
18123
|
order_source?: string;
|
|
18124
|
+
plan_locked_at?: string | null;
|
|
18125
|
+
plan_locked_ref?: string | null;
|
|
16193
18126
|
status?: string;
|
|
16194
18127
|
total?: string;
|
|
16195
18128
|
updated_at?: string;
|
|
@@ -16562,6 +18495,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
16562
18495
|
display_name: string | null;
|
|
16563
18496
|
email: string | null;
|
|
16564
18497
|
id: string;
|
|
18498
|
+
is_superadmin: boolean;
|
|
16565
18499
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
16566
18500
|
tenant_id: string | null;
|
|
16567
18501
|
updated_at: string;
|
|
@@ -16571,6 +18505,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
16571
18505
|
display_name?: string | null;
|
|
16572
18506
|
email?: string | null;
|
|
16573
18507
|
id: string;
|
|
18508
|
+
is_superadmin?: boolean;
|
|
16574
18509
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
16575
18510
|
tenant_id?: string | null;
|
|
16576
18511
|
updated_at?: string;
|
|
@@ -16580,6 +18515,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
16580
18515
|
display_name?: string | null;
|
|
16581
18516
|
email?: string | null;
|
|
16582
18517
|
id?: string;
|
|
18518
|
+
is_superadmin?: boolean;
|
|
16583
18519
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
16584
18520
|
tenant_id?: string | null;
|
|
16585
18521
|
updated_at?: string;
|
|
@@ -17369,6 +19305,66 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17369
19305
|
};
|
|
17370
19306
|
Relationships: [];
|
|
17371
19307
|
};
|
|
19308
|
+
sidebar_config: {
|
|
19309
|
+
Row: {
|
|
19310
|
+
id: string;
|
|
19311
|
+
module_order: string[];
|
|
19312
|
+
updated_at: string;
|
|
19313
|
+
};
|
|
19314
|
+
Insert: {
|
|
19315
|
+
id?: string;
|
|
19316
|
+
module_order?: string[];
|
|
19317
|
+
updated_at?: string;
|
|
19318
|
+
};
|
|
19319
|
+
Update: {
|
|
19320
|
+
id?: string;
|
|
19321
|
+
module_order?: string[];
|
|
19322
|
+
updated_at?: string;
|
|
19323
|
+
};
|
|
19324
|
+
Relationships: [];
|
|
19325
|
+
};
|
|
19326
|
+
stock_import_runs: {
|
|
19327
|
+
Row: {
|
|
19328
|
+
connection_id: string | null;
|
|
19329
|
+
created_at: string;
|
|
19330
|
+
created_rows: number;
|
|
19331
|
+
errors: import("../integrations/supabase/types").Json;
|
|
19332
|
+
filename: string | null;
|
|
19333
|
+
id: string;
|
|
19334
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
19335
|
+
skipped_rows: number;
|
|
19336
|
+
total_rows: number;
|
|
19337
|
+
updated_rows: number;
|
|
19338
|
+
user_id: string;
|
|
19339
|
+
};
|
|
19340
|
+
Insert: {
|
|
19341
|
+
connection_id?: string | null;
|
|
19342
|
+
created_at?: string;
|
|
19343
|
+
created_rows?: number;
|
|
19344
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
19345
|
+
filename?: string | null;
|
|
19346
|
+
id?: string;
|
|
19347
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
19348
|
+
skipped_rows?: number;
|
|
19349
|
+
total_rows?: number;
|
|
19350
|
+
updated_rows?: number;
|
|
19351
|
+
user_id: string;
|
|
19352
|
+
};
|
|
19353
|
+
Update: {
|
|
19354
|
+
connection_id?: string | null;
|
|
19355
|
+
created_at?: string;
|
|
19356
|
+
created_rows?: number;
|
|
19357
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
19358
|
+
filename?: string | null;
|
|
19359
|
+
id?: string;
|
|
19360
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
19361
|
+
skipped_rows?: number;
|
|
19362
|
+
total_rows?: number;
|
|
19363
|
+
updated_rows?: number;
|
|
19364
|
+
user_id?: string;
|
|
19365
|
+
};
|
|
19366
|
+
Relationships: [];
|
|
19367
|
+
};
|
|
17372
19368
|
stock_mutation_log: {
|
|
17373
19369
|
Row: {
|
|
17374
19370
|
connection_id: string | null;
|
|
@@ -17385,7 +19381,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17385
19381
|
reason: string | null;
|
|
17386
19382
|
reserved_after: number | null;
|
|
17387
19383
|
reserved_before: number | null;
|
|
17388
|
-
trade_item_key: string;
|
|
19384
|
+
trade_item_key: string | null;
|
|
17389
19385
|
};
|
|
17390
19386
|
Insert: {
|
|
17391
19387
|
connection_id?: string | null;
|
|
@@ -17402,7 +19398,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17402
19398
|
reason?: string | null;
|
|
17403
19399
|
reserved_after?: number | null;
|
|
17404
19400
|
reserved_before?: number | null;
|
|
17405
|
-
trade_item_key
|
|
19401
|
+
trade_item_key?: string | null;
|
|
17406
19402
|
};
|
|
17407
19403
|
Update: {
|
|
17408
19404
|
connection_id?: string | null;
|
|
@@ -17419,7 +19415,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17419
19415
|
reason?: string | null;
|
|
17420
19416
|
reserved_after?: number | null;
|
|
17421
19417
|
reserved_before?: number | null;
|
|
17422
|
-
trade_item_key?: string;
|
|
19418
|
+
trade_item_key?: string | null;
|
|
17423
19419
|
};
|
|
17424
19420
|
Relationships: [];
|
|
17425
19421
|
};
|
|
@@ -17691,76 +19687,184 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17691
19687
|
user_id: string;
|
|
17692
19688
|
};
|
|
17693
19689
|
Insert: {
|
|
17694
|
-
connection_id?: string | null;
|
|
19690
|
+
connection_id?: string | null;
|
|
19691
|
+
created_at?: string;
|
|
19692
|
+
data?: import("../integrations/supabase/types").Json;
|
|
19693
|
+
floriday_id?: string | null;
|
|
19694
|
+
floriday_link_error?: string | null;
|
|
19695
|
+
floriday_link_status?: string;
|
|
19696
|
+
id?: string;
|
|
19697
|
+
last_floriday_sync_at?: string | null;
|
|
19698
|
+
missing_required_fields?: string[];
|
|
19699
|
+
source?: string;
|
|
19700
|
+
updated_at?: string;
|
|
19701
|
+
user_id: string;
|
|
19702
|
+
};
|
|
19703
|
+
Update: {
|
|
19704
|
+
connection_id?: string | null;
|
|
19705
|
+
created_at?: string;
|
|
19706
|
+
data?: import("../integrations/supabase/types").Json;
|
|
19707
|
+
floriday_id?: string | null;
|
|
19708
|
+
floriday_link_error?: string | null;
|
|
19709
|
+
floriday_link_status?: string;
|
|
19710
|
+
id?: string;
|
|
19711
|
+
last_floriday_sync_at?: string | null;
|
|
19712
|
+
missing_required_fields?: string[];
|
|
19713
|
+
source?: string;
|
|
19714
|
+
updated_at?: string;
|
|
19715
|
+
user_id?: string;
|
|
19716
|
+
};
|
|
19717
|
+
Relationships: [];
|
|
19718
|
+
};
|
|
19719
|
+
trade_item_stock: {
|
|
19720
|
+
Row: {
|
|
19721
|
+
connection_id: string;
|
|
19722
|
+
created_at: string;
|
|
19723
|
+
id: string;
|
|
19724
|
+
incoming_stock: number;
|
|
19725
|
+
minimum_stock: number;
|
|
19726
|
+
notes: string | null;
|
|
19727
|
+
physical_stock: number;
|
|
19728
|
+
reserved_stock: number;
|
|
19729
|
+
trade_item_key: string;
|
|
19730
|
+
updated_at: string;
|
|
19731
|
+
user_id: string;
|
|
19732
|
+
};
|
|
19733
|
+
Insert: {
|
|
19734
|
+
connection_id: string;
|
|
19735
|
+
created_at?: string;
|
|
19736
|
+
id?: string;
|
|
19737
|
+
incoming_stock?: number;
|
|
19738
|
+
minimum_stock?: number;
|
|
19739
|
+
notes?: string | null;
|
|
19740
|
+
physical_stock?: number;
|
|
19741
|
+
reserved_stock?: number;
|
|
19742
|
+
trade_item_key: string;
|
|
19743
|
+
updated_at?: string;
|
|
19744
|
+
user_id: string;
|
|
19745
|
+
};
|
|
19746
|
+
Update: {
|
|
19747
|
+
connection_id?: string;
|
|
19748
|
+
created_at?: string;
|
|
19749
|
+
id?: string;
|
|
19750
|
+
incoming_stock?: number;
|
|
19751
|
+
minimum_stock?: number;
|
|
19752
|
+
notes?: string | null;
|
|
19753
|
+
physical_stock?: number;
|
|
19754
|
+
reserved_stock?: number;
|
|
19755
|
+
trade_item_key?: string;
|
|
19756
|
+
updated_at?: string;
|
|
19757
|
+
user_id?: string;
|
|
19758
|
+
};
|
|
19759
|
+
Relationships: [];
|
|
19760
|
+
};
|
|
19761
|
+
trade_item_supply_lines: {
|
|
19762
|
+
Row: {
|
|
19763
|
+
available_quantity: number | null;
|
|
19764
|
+
connection_id: string;
|
|
19765
|
+
created_at: string;
|
|
19766
|
+
currency: string | null;
|
|
19767
|
+
endpoint_family: string | null;
|
|
19768
|
+
environment: string | null;
|
|
19769
|
+
id: string;
|
|
19770
|
+
last_error: string | null;
|
|
19771
|
+
last_status: number | null;
|
|
19772
|
+
packing_configuration_id: string | null;
|
|
19773
|
+
period_end: string | null;
|
|
19774
|
+
period_start: string | null;
|
|
19775
|
+
price_per_piece: number | null;
|
|
19776
|
+
sales_unit: string | null;
|
|
19777
|
+
supply_line_id: string | null;
|
|
19778
|
+
supply_type: string;
|
|
19779
|
+
trade_item_id: string;
|
|
19780
|
+
updated_at: string;
|
|
19781
|
+
user_id: string;
|
|
19782
|
+
week: number | null;
|
|
19783
|
+
year: number | null;
|
|
19784
|
+
};
|
|
19785
|
+
Insert: {
|
|
19786
|
+
available_quantity?: number | null;
|
|
19787
|
+
connection_id: string;
|
|
17695
19788
|
created_at?: string;
|
|
17696
|
-
|
|
17697
|
-
|
|
17698
|
-
|
|
17699
|
-
floriday_link_status?: string;
|
|
19789
|
+
currency?: string | null;
|
|
19790
|
+
endpoint_family?: string | null;
|
|
19791
|
+
environment?: string | null;
|
|
17700
19792
|
id?: string;
|
|
17701
|
-
|
|
17702
|
-
|
|
17703
|
-
|
|
19793
|
+
last_error?: string | null;
|
|
19794
|
+
last_status?: number | null;
|
|
19795
|
+
packing_configuration_id?: string | null;
|
|
19796
|
+
period_end?: string | null;
|
|
19797
|
+
period_start?: string | null;
|
|
19798
|
+
price_per_piece?: number | null;
|
|
19799
|
+
sales_unit?: string | null;
|
|
19800
|
+
supply_line_id?: string | null;
|
|
19801
|
+
supply_type?: string;
|
|
19802
|
+
trade_item_id: string;
|
|
17704
19803
|
updated_at?: string;
|
|
17705
19804
|
user_id: string;
|
|
19805
|
+
week?: number | null;
|
|
19806
|
+
year?: number | null;
|
|
17706
19807
|
};
|
|
17707
19808
|
Update: {
|
|
17708
|
-
|
|
19809
|
+
available_quantity?: number | null;
|
|
19810
|
+
connection_id?: string;
|
|
17709
19811
|
created_at?: string;
|
|
17710
|
-
|
|
17711
|
-
|
|
17712
|
-
|
|
17713
|
-
floriday_link_status?: string;
|
|
19812
|
+
currency?: string | null;
|
|
19813
|
+
endpoint_family?: string | null;
|
|
19814
|
+
environment?: string | null;
|
|
17714
19815
|
id?: string;
|
|
17715
|
-
|
|
17716
|
-
|
|
17717
|
-
|
|
19816
|
+
last_error?: string | null;
|
|
19817
|
+
last_status?: number | null;
|
|
19818
|
+
packing_configuration_id?: string | null;
|
|
19819
|
+
period_end?: string | null;
|
|
19820
|
+
period_start?: string | null;
|
|
19821
|
+
price_per_piece?: number | null;
|
|
19822
|
+
sales_unit?: string | null;
|
|
19823
|
+
supply_line_id?: string | null;
|
|
19824
|
+
supply_type?: string;
|
|
19825
|
+
trade_item_id?: string;
|
|
17718
19826
|
updated_at?: string;
|
|
17719
19827
|
user_id?: string;
|
|
19828
|
+
week?: number | null;
|
|
19829
|
+
year?: number | null;
|
|
17720
19830
|
};
|
|
17721
19831
|
Relationships: [];
|
|
17722
19832
|
};
|
|
17723
|
-
|
|
19833
|
+
trade_item_warehouse_preferences: {
|
|
17724
19834
|
Row: {
|
|
17725
19835
|
connection_id: string;
|
|
17726
19836
|
created_at: string;
|
|
17727
19837
|
id: string;
|
|
17728
|
-
|
|
17729
|
-
minimum_stock: number;
|
|
17730
|
-
notes: string | null;
|
|
17731
|
-
physical_stock: number;
|
|
17732
|
-
reserved_stock: number;
|
|
17733
|
-
trade_item_key: string;
|
|
19838
|
+
trade_item_id: string;
|
|
17734
19839
|
updated_at: string;
|
|
17735
|
-
|
|
19840
|
+
warehouse_id: string;
|
|
19841
|
+
warehouse_name: string | null;
|
|
17736
19842
|
};
|
|
17737
19843
|
Insert: {
|
|
17738
19844
|
connection_id: string;
|
|
17739
19845
|
created_at?: string;
|
|
17740
19846
|
id?: string;
|
|
17741
|
-
|
|
17742
|
-
minimum_stock?: number;
|
|
17743
|
-
notes?: string | null;
|
|
17744
|
-
physical_stock?: number;
|
|
17745
|
-
reserved_stock?: number;
|
|
17746
|
-
trade_item_key: string;
|
|
19847
|
+
trade_item_id: string;
|
|
17747
19848
|
updated_at?: string;
|
|
17748
|
-
|
|
19849
|
+
warehouse_id: string;
|
|
19850
|
+
warehouse_name?: string | null;
|
|
17749
19851
|
};
|
|
17750
19852
|
Update: {
|
|
17751
19853
|
connection_id?: string;
|
|
17752
19854
|
created_at?: string;
|
|
17753
19855
|
id?: string;
|
|
17754
|
-
|
|
17755
|
-
minimum_stock?: number;
|
|
17756
|
-
notes?: string | null;
|
|
17757
|
-
physical_stock?: number;
|
|
17758
|
-
reserved_stock?: number;
|
|
17759
|
-
trade_item_key?: string;
|
|
19856
|
+
trade_item_id?: string;
|
|
17760
19857
|
updated_at?: string;
|
|
17761
|
-
|
|
19858
|
+
warehouse_id?: string;
|
|
19859
|
+
warehouse_name?: string | null;
|
|
17762
19860
|
};
|
|
17763
|
-
Relationships: [
|
|
19861
|
+
Relationships: [{
|
|
19862
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
19863
|
+
columns: ["connection_id"];
|
|
19864
|
+
isOneToOne: false;
|
|
19865
|
+
referencedRelation: "floriday_connections";
|
|
19866
|
+
referencedColumns: ["id"];
|
|
19867
|
+
}];
|
|
17764
19868
|
};
|
|
17765
19869
|
twinfield_connections: {
|
|
17766
19870
|
Row: {
|
|
@@ -18081,6 +20185,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18081
20185
|
default_invoice_type: string;
|
|
18082
20186
|
default_payment_term_days: number;
|
|
18083
20187
|
default_vat_code: string;
|
|
20188
|
+
invoice_enabled_ao: boolean;
|
|
20189
|
+
invoice_enabled_fo: boolean;
|
|
20190
|
+
invoice_enabled_ho: boolean;
|
|
20191
|
+
invoice_enabled_mo: boolean;
|
|
18084
20192
|
updated_at: string;
|
|
18085
20193
|
user_id: string;
|
|
18086
20194
|
};
|
|
@@ -18090,6 +20198,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18090
20198
|
default_invoice_type?: string;
|
|
18091
20199
|
default_payment_term_days?: number;
|
|
18092
20200
|
default_vat_code?: string;
|
|
20201
|
+
invoice_enabled_ao?: boolean;
|
|
20202
|
+
invoice_enabled_fo?: boolean;
|
|
20203
|
+
invoice_enabled_ho?: boolean;
|
|
20204
|
+
invoice_enabled_mo?: boolean;
|
|
18093
20205
|
updated_at?: string;
|
|
18094
20206
|
user_id: string;
|
|
18095
20207
|
};
|
|
@@ -18099,6 +20211,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18099
20211
|
default_invoice_type?: string;
|
|
18100
20212
|
default_payment_term_days?: number;
|
|
18101
20213
|
default_vat_code?: string;
|
|
20214
|
+
invoice_enabled_ao?: boolean;
|
|
20215
|
+
invoice_enabled_fo?: boolean;
|
|
20216
|
+
invoice_enabled_ho?: boolean;
|
|
20217
|
+
invoice_enabled_mo?: boolean;
|
|
18102
20218
|
updated_at?: string;
|
|
18103
20219
|
user_id?: string;
|
|
18104
20220
|
};
|
|
@@ -19000,6 +21116,44 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19000
21116
|
};
|
|
19001
21117
|
Relationships: [];
|
|
19002
21118
|
};
|
|
21119
|
+
floriday_customer_discounts: {
|
|
21120
|
+
Row: {
|
|
21121
|
+
base_price: number | null;
|
|
21122
|
+
buyer_organization_id: string | null;
|
|
21123
|
+
currency: string | null;
|
|
21124
|
+
discount_type: string | null;
|
|
21125
|
+
discount_value: number | null;
|
|
21126
|
+
min_quantity: number | null;
|
|
21127
|
+
net_price: number | null;
|
|
21128
|
+
product_group_id: string | null;
|
|
21129
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
21130
|
+
source: string | null;
|
|
21131
|
+
source_id: string | null;
|
|
21132
|
+
trade_item_id: string | null;
|
|
21133
|
+
valid_from: string | null;
|
|
21134
|
+
valid_until: string | null;
|
|
21135
|
+
};
|
|
21136
|
+
Relationships: [];
|
|
21137
|
+
};
|
|
21138
|
+
local_customer_discounts: {
|
|
21139
|
+
Row: {
|
|
21140
|
+
base_price: number | null;
|
|
21141
|
+
currency: string | null;
|
|
21142
|
+
customer_id: string | null;
|
|
21143
|
+
discount_type: string | null;
|
|
21144
|
+
discount_value: number | null;
|
|
21145
|
+
min_quantity: number | null;
|
|
21146
|
+
net_price: number | null;
|
|
21147
|
+
product_category_id: string | null;
|
|
21148
|
+
product_id: string | null;
|
|
21149
|
+
product_name: string | null;
|
|
21150
|
+
source: string | null;
|
|
21151
|
+
source_id: string | null;
|
|
21152
|
+
valid_from: string | null;
|
|
21153
|
+
valid_until: string | null;
|
|
21154
|
+
};
|
|
21155
|
+
Relationships: [];
|
|
21156
|
+
};
|
|
19003
21157
|
manufacture_product_possible_stock_view: {
|
|
19004
21158
|
Row: {
|
|
19005
21159
|
component_count: number | null;
|
|
@@ -19284,6 +21438,32 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19284
21438
|
};
|
|
19285
21439
|
Returns: number;
|
|
19286
21440
|
};
|
|
21441
|
+
afh_city_code: {
|
|
21442
|
+
Args: {
|
|
21443
|
+
_city: string;
|
|
21444
|
+
_country: string;
|
|
21445
|
+
};
|
|
21446
|
+
Returns: string;
|
|
21447
|
+
};
|
|
21448
|
+
afh_normalize_country: {
|
|
21449
|
+
Args: {
|
|
21450
|
+
_raw: string;
|
|
21451
|
+
};
|
|
21452
|
+
Returns: string;
|
|
21453
|
+
};
|
|
21454
|
+
afh_normalize_nl_province: {
|
|
21455
|
+
Args: {
|
|
21456
|
+
_raw: string;
|
|
21457
|
+
};
|
|
21458
|
+
Returns: string;
|
|
21459
|
+
};
|
|
21460
|
+
afh_subtract_workdays: {
|
|
21461
|
+
Args: {
|
|
21462
|
+
_date: string;
|
|
21463
|
+
_days: number;
|
|
21464
|
+
};
|
|
21465
|
+
Returns: string;
|
|
21466
|
+
};
|
|
19287
21467
|
apply_stock_consumption: {
|
|
19288
21468
|
Args: {
|
|
19289
21469
|
p_order_id: string;
|
|
@@ -19329,16 +21509,62 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19329
21509
|
order_number: string;
|
|
19330
21510
|
}[];
|
|
19331
21511
|
};
|
|
21512
|
+
autolink_product_to_floriday: {
|
|
21513
|
+
Args: {
|
|
21514
|
+
p_product_id: string;
|
|
21515
|
+
};
|
|
21516
|
+
Returns: string;
|
|
21517
|
+
};
|
|
21518
|
+
backfill_open_order_reservations: {
|
|
21519
|
+
Args: never;
|
|
21520
|
+
Returns: {
|
|
21521
|
+
processed_items: number;
|
|
21522
|
+
}[];
|
|
21523
|
+
};
|
|
19332
21524
|
call_exact_route: {
|
|
19333
21525
|
Args: {
|
|
19334
21526
|
path: string;
|
|
19335
21527
|
};
|
|
19336
21528
|
Returns: number;
|
|
19337
21529
|
};
|
|
21530
|
+
check_offer_product_available_stock: {
|
|
21531
|
+
Args: {
|
|
21532
|
+
p_campaign_product_id: string;
|
|
21533
|
+
p_code: string;
|
|
21534
|
+
p_needed_qty?: number;
|
|
21535
|
+
p_product_name?: string;
|
|
21536
|
+
};
|
|
21537
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21538
|
+
};
|
|
21539
|
+
check_trade_item_available_stock: {
|
|
21540
|
+
Args: {
|
|
21541
|
+
p_connection_id?: string;
|
|
21542
|
+
p_context?: string;
|
|
21543
|
+
p_needed_qty?: number;
|
|
21544
|
+
p_order_id?: string;
|
|
21545
|
+
p_order_item_id?: string;
|
|
21546
|
+
p_owner_id?: string;
|
|
21547
|
+
p_product_name?: string;
|
|
21548
|
+
p_trade_item_key: string;
|
|
21549
|
+
};
|
|
21550
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21551
|
+
};
|
|
19338
21552
|
cleanup_old_bookings: {
|
|
19339
21553
|
Args: never;
|
|
19340
21554
|
Returns: number;
|
|
19341
21555
|
};
|
|
21556
|
+
consume_floriday_rate_limit: {
|
|
21557
|
+
Args: {
|
|
21558
|
+
p_bucket: string;
|
|
21559
|
+
p_capacity: number;
|
|
21560
|
+
p_cost?: number;
|
|
21561
|
+
p_refill_per_sec: number;
|
|
21562
|
+
};
|
|
21563
|
+
Returns: {
|
|
21564
|
+
granted: boolean;
|
|
21565
|
+
wait_ms: number;
|
|
21566
|
+
}[];
|
|
21567
|
+
};
|
|
19342
21568
|
control_get_todays_carts: {
|
|
19343
21569
|
Args: never;
|
|
19344
21570
|
Returns: {
|
|
@@ -19378,6 +21604,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19378
21604
|
table_name: string;
|
|
19379
21605
|
}[];
|
|
19380
21606
|
};
|
|
21607
|
+
dispatch_carrier_signups_sql: {
|
|
21608
|
+
Args: {
|
|
21609
|
+
_catchup?: string;
|
|
21610
|
+
};
|
|
21611
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21612
|
+
};
|
|
19381
21613
|
email_auth_decrypt: {
|
|
19382
21614
|
Args: {
|
|
19383
21615
|
cipher: string;
|
|
@@ -19413,6 +21645,18 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19413
21645
|
status: string;
|
|
19414
21646
|
}[];
|
|
19415
21647
|
};
|
|
21648
|
+
enqueue_cart_replan_if_unlocked: {
|
|
21649
|
+
Args: {
|
|
21650
|
+
p_order_id: string;
|
|
21651
|
+
};
|
|
21652
|
+
Returns: undefined;
|
|
21653
|
+
};
|
|
21654
|
+
ensure_trade_item_stock_row: {
|
|
21655
|
+
Args: {
|
|
21656
|
+
p_key: string;
|
|
21657
|
+
};
|
|
21658
|
+
Returns: undefined;
|
|
21659
|
+
};
|
|
19416
21660
|
ensure_user_tenant: {
|
|
19417
21661
|
Args: never;
|
|
19418
21662
|
Returns: string;
|
|
@@ -19450,6 +21694,31 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19450
21694
|
};
|
|
19451
21695
|
Returns: boolean;
|
|
19452
21696
|
};
|
|
21697
|
+
find_trade_item_key: {
|
|
21698
|
+
Args: {
|
|
21699
|
+
p_barcode: string;
|
|
21700
|
+
p_name: string;
|
|
21701
|
+
p_product_id: string;
|
|
21702
|
+
};
|
|
21703
|
+
Returns: string;
|
|
21704
|
+
};
|
|
21705
|
+
floriday_effective_price: {
|
|
21706
|
+
Args: {
|
|
21707
|
+
_buyer_id: string;
|
|
21708
|
+
_on_date?: string;
|
|
21709
|
+
_quantity?: number;
|
|
21710
|
+
_trade_item_id: string;
|
|
21711
|
+
};
|
|
21712
|
+
Returns: {
|
|
21713
|
+
base_price: number;
|
|
21714
|
+
currency: string;
|
|
21715
|
+
discount_type: string;
|
|
21716
|
+
discount_value: number;
|
|
21717
|
+
net_price: number;
|
|
21718
|
+
source: string;
|
|
21719
|
+
source_id: string;
|
|
21720
|
+
}[];
|
|
21721
|
+
};
|
|
19453
21722
|
format_cart_number: {
|
|
19454
21723
|
Args: {
|
|
19455
21724
|
p_pick_date: string;
|
|
@@ -19470,6 +21739,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19470
21739
|
preferred_warehouse_name: string;
|
|
19471
21740
|
}[];
|
|
19472
21741
|
};
|
|
21742
|
+
get_active_floriday_context: {
|
|
21743
|
+
Args: never;
|
|
21744
|
+
Returns: {
|
|
21745
|
+
connection_id: string;
|
|
21746
|
+
user_id: string;
|
|
21747
|
+
}[];
|
|
21748
|
+
};
|
|
19473
21749
|
get_active_twinfield_public: {
|
|
19474
21750
|
Args: never;
|
|
19475
21751
|
Returns: {
|
|
@@ -19481,6 +21757,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19481
21757
|
office_code: string;
|
|
19482
21758
|
}[];
|
|
19483
21759
|
};
|
|
21760
|
+
get_floricode_record_counts: {
|
|
21761
|
+
Args: never;
|
|
21762
|
+
Returns: {
|
|
21763
|
+
count: number;
|
|
21764
|
+
resource: string;
|
|
21765
|
+
}[];
|
|
21766
|
+
};
|
|
19484
21767
|
get_floriday_agreements_active: {
|
|
19485
21768
|
Args: {
|
|
19486
21769
|
p_on_date?: string;
|
|
@@ -19572,6 +21855,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19572
21855
|
};
|
|
19573
21856
|
Returns: import("../integrations/supabase/types").Json;
|
|
19574
21857
|
};
|
|
21858
|
+
get_offer_delivery_options: {
|
|
21859
|
+
Args: {
|
|
21860
|
+
p_code: string;
|
|
21861
|
+
};
|
|
21862
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21863
|
+
};
|
|
21864
|
+
get_offer_recipient_by_code: {
|
|
21865
|
+
Args: {
|
|
21866
|
+
p_code: string;
|
|
21867
|
+
};
|
|
21868
|
+
Returns: {
|
|
21869
|
+
campaign_id: string;
|
|
21870
|
+
clicked_at: string;
|
|
21871
|
+
customer_id: string;
|
|
21872
|
+
id: string;
|
|
21873
|
+
ordered_at: string;
|
|
21874
|
+
}[];
|
|
21875
|
+
};
|
|
19575
21876
|
get_or_assign_floriday_order_number: {
|
|
19576
21877
|
Args: {
|
|
19577
21878
|
p_floriday_id: string;
|
|
@@ -19624,12 +21925,53 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19624
21925
|
Args: never;
|
|
19625
21926
|
Returns: boolean;
|
|
19626
21927
|
};
|
|
21928
|
+
is_superadmin: {
|
|
21929
|
+
Args: {
|
|
21930
|
+
_user_id: string;
|
|
21931
|
+
};
|
|
21932
|
+
Returns: boolean;
|
|
21933
|
+
};
|
|
21934
|
+
local_effective_price: {
|
|
21935
|
+
Args: {
|
|
21936
|
+
_customer_id: string;
|
|
21937
|
+
_on_date?: string;
|
|
21938
|
+
_product_id: string;
|
|
21939
|
+
_quantity?: number;
|
|
21940
|
+
};
|
|
21941
|
+
Returns: {
|
|
21942
|
+
currency: string;
|
|
21943
|
+
discount_type: string;
|
|
21944
|
+
discount_value: number;
|
|
21945
|
+
net_price: number;
|
|
21946
|
+
source: string;
|
|
21947
|
+
source_id: string;
|
|
21948
|
+
}[];
|
|
21949
|
+
};
|
|
21950
|
+
mark_offer_clicked: {
|
|
21951
|
+
Args: {
|
|
21952
|
+
p_code: string;
|
|
21953
|
+
};
|
|
21954
|
+
Returns: undefined;
|
|
21955
|
+
};
|
|
21956
|
+
mark_offer_ordered: {
|
|
21957
|
+
Args: {
|
|
21958
|
+
p_code: string;
|
|
21959
|
+
};
|
|
21960
|
+
Returns: undefined;
|
|
21961
|
+
};
|
|
19627
21962
|
next_order_number: {
|
|
19628
21963
|
Args: {
|
|
19629
21964
|
p_prefix: string;
|
|
19630
21965
|
};
|
|
19631
21966
|
Returns: string;
|
|
19632
21967
|
};
|
|
21968
|
+
next_order_number_for_date: {
|
|
21969
|
+
Args: {
|
|
21970
|
+
p_created_at?: string;
|
|
21971
|
+
p_prefix: string;
|
|
21972
|
+
};
|
|
21973
|
+
Returns: string;
|
|
21974
|
+
};
|
|
19633
21975
|
next_work_order_number: {
|
|
19634
21976
|
Args: {
|
|
19635
21977
|
p_parent_work_order_id?: string;
|
|
@@ -19637,16 +21979,41 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19637
21979
|
};
|
|
19638
21980
|
Returns: string;
|
|
19639
21981
|
};
|
|
21982
|
+
normalize_order_source: {
|
|
21983
|
+
Args: {
|
|
21984
|
+
p_src: string;
|
|
21985
|
+
};
|
|
21986
|
+
Returns: string;
|
|
21987
|
+
};
|
|
19640
21988
|
normalize_vat: {
|
|
19641
21989
|
Args: {
|
|
19642
21990
|
v: string;
|
|
19643
21991
|
};
|
|
19644
21992
|
Returns: string;
|
|
19645
21993
|
};
|
|
21994
|
+
offer_recipient_matches: {
|
|
21995
|
+
Args: {
|
|
21996
|
+
_campaign_id: string;
|
|
21997
|
+
_customer_id: string;
|
|
21998
|
+
_recipient_id: string;
|
|
21999
|
+
};
|
|
22000
|
+
Returns: boolean;
|
|
22001
|
+
};
|
|
22002
|
+
order_number_prefix: {
|
|
22003
|
+
Args: {
|
|
22004
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
22005
|
+
p_order_source: string;
|
|
22006
|
+
};
|
|
22007
|
+
Returns: string;
|
|
22008
|
+
};
|
|
19646
22009
|
pickstation_get_orders_raw: {
|
|
19647
22010
|
Args: never;
|
|
19648
22011
|
Returns: import("../integrations/supabase/types").Json;
|
|
19649
22012
|
};
|
|
22013
|
+
pickstation_get_planning_context: {
|
|
22014
|
+
Args: never;
|
|
22015
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22016
|
+
};
|
|
19650
22017
|
pickstation_get_settings: {
|
|
19651
22018
|
Args: never;
|
|
19652
22019
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -19670,6 +22037,35 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19670
22037
|
};
|
|
19671
22038
|
Returns: undefined;
|
|
19672
22039
|
};
|
|
22040
|
+
promote_trade_item_key: {
|
|
22041
|
+
Args: {
|
|
22042
|
+
p_new: string;
|
|
22043
|
+
p_old: string;
|
|
22044
|
+
};
|
|
22045
|
+
Returns: undefined;
|
|
22046
|
+
};
|
|
22047
|
+
recompute_order_status: {
|
|
22048
|
+
Args: {
|
|
22049
|
+
p_order_id: string;
|
|
22050
|
+
};
|
|
22051
|
+
Returns: undefined;
|
|
22052
|
+
};
|
|
22053
|
+
recompute_reserved_for_order: {
|
|
22054
|
+
Args: {
|
|
22055
|
+
p_order_id: string;
|
|
22056
|
+
};
|
|
22057
|
+
Returns: undefined;
|
|
22058
|
+
};
|
|
22059
|
+
recompute_reserved_stock: {
|
|
22060
|
+
Args: {
|
|
22061
|
+
p_trade_item_key: string;
|
|
22062
|
+
};
|
|
22063
|
+
Returns: undefined;
|
|
22064
|
+
};
|
|
22065
|
+
refresh_external_customers_grouped: {
|
|
22066
|
+
Args: never;
|
|
22067
|
+
Returns: undefined;
|
|
22068
|
+
};
|
|
19673
22069
|
refresh_floricode_derived_code_lists: {
|
|
19674
22070
|
Args: never;
|
|
19675
22071
|
Returns: {
|
|
@@ -19684,6 +22080,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19684
22080
|
};
|
|
19685
22081
|
Returns: number;
|
|
19686
22082
|
};
|
|
22083
|
+
refresh_floricode_derived_for_products: {
|
|
22084
|
+
Args: {
|
|
22085
|
+
_product_ids: string[];
|
|
22086
|
+
};
|
|
22087
|
+
Returns: number;
|
|
22088
|
+
};
|
|
19687
22089
|
reset_floriday_sync_cursor: {
|
|
19688
22090
|
Args: {
|
|
19689
22091
|
p_connection_id: string;
|
|
@@ -19691,6 +22093,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19691
22093
|
};
|
|
19692
22094
|
Returns: undefined;
|
|
19693
22095
|
};
|
|
22096
|
+
resolve_product_id_for_item: {
|
|
22097
|
+
Args: {
|
|
22098
|
+
p_product_name: string;
|
|
22099
|
+
};
|
|
22100
|
+
Returns: string;
|
|
22101
|
+
};
|
|
19694
22102
|
schedule_floriday_additional_services_sync: {
|
|
19695
22103
|
Args: {
|
|
19696
22104
|
p_apikey: string;
|
|
@@ -19968,6 +22376,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19968
22376
|
};
|
|
19969
22377
|
Returns: string[];
|
|
19970
22378
|
};
|
|
22379
|
+
sync_cached_packing_from_product: {
|
|
22380
|
+
Args: {
|
|
22381
|
+
p_product_id: string;
|
|
22382
|
+
};
|
|
22383
|
+
Returns: undefined;
|
|
22384
|
+
};
|
|
22385
|
+
sync_order_cart_item_packing_from_product: {
|
|
22386
|
+
Args: {
|
|
22387
|
+
p_product_id: string;
|
|
22388
|
+
};
|
|
22389
|
+
Returns: undefined;
|
|
22390
|
+
};
|
|
22391
|
+
sync_product_packing_from_floriday_cache: {
|
|
22392
|
+
Args: {
|
|
22393
|
+
p_floriday_id: string;
|
|
22394
|
+
};
|
|
22395
|
+
Returns: undefined;
|
|
22396
|
+
};
|
|
19971
22397
|
twinfield_decrypt: {
|
|
19972
22398
|
Args: {
|
|
19973
22399
|
cipher: string;
|