@flowselections/floriday-afhandeling-module 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControleLijstPrint.js +63 -2
- package/dist-lib/components/afhandeling/ControlePage.d.ts +3 -1
- package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControlePage.js +6 -2
- package/dist-lib/components/pickstation/KioskControle.d.ts +2 -0
- package/dist-lib/components/pickstation/KioskControle.d.ts.map +1 -0
- package/dist-lib/components/pickstation/KioskControle.js +7 -0
- package/dist-lib/components/pickstation/PickstationPage.d.ts +2 -0
- package/dist-lib/components/pickstation/PickstationPage.d.ts.map +1 -0
- package/dist-lib/components/pickstation/PickstationPage.js +217 -0
- package/dist-lib/index.d.ts +2 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +2 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +885 -60
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +885 -60
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +885 -60
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +907 -62
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +1767 -117
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/carriers.functions.d.ts +4125 -0
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +4125 -0
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +8253 -0
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.js +3 -0
- package/dist-lib/lib/floriday.functions.d.ts +885 -60
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
- package/dist-lib/lib/pickstationOrders.server.js +1 -0
- package/dist-lib/lib/pickstationTypes.d.ts +2 -0
- package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
- package/package.json +20 -1
|
@@ -725,6 +725,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
725
725
|
notes: string | null;
|
|
726
726
|
performed_at: string;
|
|
727
727
|
rescheduled_count: number;
|
|
728
|
+
stock_consumed_at: string | null;
|
|
728
729
|
total_carts: number;
|
|
729
730
|
updated_at: string;
|
|
730
731
|
user_id: string;
|
|
@@ -738,6 +739,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
738
739
|
notes?: string | null;
|
|
739
740
|
performed_at?: string;
|
|
740
741
|
rescheduled_count?: number;
|
|
742
|
+
stock_consumed_at?: string | null;
|
|
741
743
|
total_carts?: number;
|
|
742
744
|
updated_at?: string;
|
|
743
745
|
user_id: string;
|
|
@@ -751,6 +753,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
751
753
|
notes?: string | null;
|
|
752
754
|
performed_at?: string;
|
|
753
755
|
rescheduled_count?: number;
|
|
756
|
+
stock_consumed_at?: string | null;
|
|
754
757
|
total_carts?: number;
|
|
755
758
|
updated_at?: string;
|
|
756
759
|
user_id?: string;
|
|
@@ -3631,6 +3634,51 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
3631
3634
|
referencedColumns: ["id"];
|
|
3632
3635
|
}];
|
|
3633
3636
|
};
|
|
3637
|
+
floriday_continuous_stock_queue: {
|
|
3638
|
+
Row: {
|
|
3639
|
+
attempts: number;
|
|
3640
|
+
connection_id: string;
|
|
3641
|
+
created_at: string;
|
|
3642
|
+
gateway_attempt_id: string | null;
|
|
3643
|
+
id: string;
|
|
3644
|
+
last_error: string | null;
|
|
3645
|
+
number_of_pieces: number;
|
|
3646
|
+
sent_at: string | null;
|
|
3647
|
+
status: string;
|
|
3648
|
+
trade_item_id: string;
|
|
3649
|
+
updated_at: string;
|
|
3650
|
+
user_id: string;
|
|
3651
|
+
};
|
|
3652
|
+
Insert: {
|
|
3653
|
+
attempts?: number;
|
|
3654
|
+
connection_id: string;
|
|
3655
|
+
created_at?: string;
|
|
3656
|
+
gateway_attempt_id?: string | null;
|
|
3657
|
+
id?: string;
|
|
3658
|
+
last_error?: string | null;
|
|
3659
|
+
number_of_pieces?: number;
|
|
3660
|
+
sent_at?: string | null;
|
|
3661
|
+
status?: string;
|
|
3662
|
+
trade_item_id: string;
|
|
3663
|
+
updated_at?: string;
|
|
3664
|
+
user_id: string;
|
|
3665
|
+
};
|
|
3666
|
+
Update: {
|
|
3667
|
+
attempts?: number;
|
|
3668
|
+
connection_id?: string;
|
|
3669
|
+
created_at?: string;
|
|
3670
|
+
gateway_attempt_id?: string | null;
|
|
3671
|
+
id?: string;
|
|
3672
|
+
last_error?: string | null;
|
|
3673
|
+
number_of_pieces?: number;
|
|
3674
|
+
sent_at?: string | null;
|
|
3675
|
+
status?: string;
|
|
3676
|
+
trade_item_id?: string;
|
|
3677
|
+
updated_at?: string;
|
|
3678
|
+
user_id?: string;
|
|
3679
|
+
};
|
|
3680
|
+
Relationships: [];
|
|
3681
|
+
};
|
|
3634
3682
|
floriday_contract_trade_item_groups_cache: {
|
|
3635
3683
|
Row: {
|
|
3636
3684
|
connection_id: string;
|
|
@@ -5020,6 +5068,204 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5020
5068
|
};
|
|
5021
5069
|
Relationships: [];
|
|
5022
5070
|
};
|
|
5071
|
+
local_customer_agreements: {
|
|
5072
|
+
Row: {
|
|
5073
|
+
base_price: number | null;
|
|
5074
|
+
created_at: string;
|
|
5075
|
+
currency: string;
|
|
5076
|
+
customer_id: string;
|
|
5077
|
+
id: string;
|
|
5078
|
+
min_quantity: number;
|
|
5079
|
+
net_price: number;
|
|
5080
|
+
notes: string | null;
|
|
5081
|
+
product_category_id: string | null;
|
|
5082
|
+
product_id: string | null;
|
|
5083
|
+
updated_at: string;
|
|
5084
|
+
valid_from: string | null;
|
|
5085
|
+
valid_until: string | null;
|
|
5086
|
+
};
|
|
5087
|
+
Insert: {
|
|
5088
|
+
base_price?: number | null;
|
|
5089
|
+
created_at?: string;
|
|
5090
|
+
currency?: string;
|
|
5091
|
+
customer_id: string;
|
|
5092
|
+
id?: string;
|
|
5093
|
+
min_quantity?: number;
|
|
5094
|
+
net_price: number;
|
|
5095
|
+
notes?: string | null;
|
|
5096
|
+
product_category_id?: string | null;
|
|
5097
|
+
product_id?: string | null;
|
|
5098
|
+
updated_at?: string;
|
|
5099
|
+
valid_from?: string | null;
|
|
5100
|
+
valid_until?: string | null;
|
|
5101
|
+
};
|
|
5102
|
+
Update: {
|
|
5103
|
+
base_price?: number | null;
|
|
5104
|
+
created_at?: string;
|
|
5105
|
+
currency?: string;
|
|
5106
|
+
customer_id?: string;
|
|
5107
|
+
id?: string;
|
|
5108
|
+
min_quantity?: number;
|
|
5109
|
+
net_price?: number;
|
|
5110
|
+
notes?: string | null;
|
|
5111
|
+
product_category_id?: string | null;
|
|
5112
|
+
product_id?: string | null;
|
|
5113
|
+
updated_at?: string;
|
|
5114
|
+
valid_from?: string | null;
|
|
5115
|
+
valid_until?: string | null;
|
|
5116
|
+
};
|
|
5117
|
+
Relationships: [{
|
|
5118
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
5119
|
+
columns: ["customer_id"];
|
|
5120
|
+
isOneToOne: false;
|
|
5121
|
+
referencedRelation: "customers";
|
|
5122
|
+
referencedColumns: ["id"];
|
|
5123
|
+
}, {
|
|
5124
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
5125
|
+
columns: ["product_category_id"];
|
|
5126
|
+
isOneToOne: false;
|
|
5127
|
+
referencedRelation: "product_categories";
|
|
5128
|
+
referencedColumns: ["id"];
|
|
5129
|
+
}, {
|
|
5130
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
5131
|
+
columns: ["product_id"];
|
|
5132
|
+
isOneToOne: false;
|
|
5133
|
+
referencedRelation: "products";
|
|
5134
|
+
referencedColumns: ["id"];
|
|
5135
|
+
}];
|
|
5136
|
+
};
|
|
5137
|
+
local_customer_price_groups: {
|
|
5138
|
+
Row: {
|
|
5139
|
+
created_at: string;
|
|
5140
|
+
currency: string;
|
|
5141
|
+
customer_id: string;
|
|
5142
|
+
discount_type: string;
|
|
5143
|
+
discount_value: number;
|
|
5144
|
+
id: string;
|
|
5145
|
+
min_quantity: number;
|
|
5146
|
+
notes: string | null;
|
|
5147
|
+
product_category_id: string | null;
|
|
5148
|
+
product_id: string | null;
|
|
5149
|
+
updated_at: string;
|
|
5150
|
+
valid_from: string | null;
|
|
5151
|
+
valid_until: string | null;
|
|
5152
|
+
};
|
|
5153
|
+
Insert: {
|
|
5154
|
+
created_at?: string;
|
|
5155
|
+
currency?: string;
|
|
5156
|
+
customer_id: string;
|
|
5157
|
+
discount_type: string;
|
|
5158
|
+
discount_value: number;
|
|
5159
|
+
id?: string;
|
|
5160
|
+
min_quantity?: number;
|
|
5161
|
+
notes?: string | null;
|
|
5162
|
+
product_category_id?: string | null;
|
|
5163
|
+
product_id?: string | null;
|
|
5164
|
+
updated_at?: string;
|
|
5165
|
+
valid_from?: string | null;
|
|
5166
|
+
valid_until?: string | null;
|
|
5167
|
+
};
|
|
5168
|
+
Update: {
|
|
5169
|
+
created_at?: string;
|
|
5170
|
+
currency?: string;
|
|
5171
|
+
customer_id?: string;
|
|
5172
|
+
discount_type?: string;
|
|
5173
|
+
discount_value?: number;
|
|
5174
|
+
id?: string;
|
|
5175
|
+
min_quantity?: number;
|
|
5176
|
+
notes?: string | null;
|
|
5177
|
+
product_category_id?: string | null;
|
|
5178
|
+
product_id?: string | null;
|
|
5179
|
+
updated_at?: string;
|
|
5180
|
+
valid_from?: string | null;
|
|
5181
|
+
valid_until?: string | null;
|
|
5182
|
+
};
|
|
5183
|
+
Relationships: [{
|
|
5184
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
5185
|
+
columns: ["customer_id"];
|
|
5186
|
+
isOneToOne: false;
|
|
5187
|
+
referencedRelation: "customers";
|
|
5188
|
+
referencedColumns: ["id"];
|
|
5189
|
+
}, {
|
|
5190
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
5191
|
+
columns: ["product_category_id"];
|
|
5192
|
+
isOneToOne: false;
|
|
5193
|
+
referencedRelation: "product_categories";
|
|
5194
|
+
referencedColumns: ["id"];
|
|
5195
|
+
}, {
|
|
5196
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
5197
|
+
columns: ["product_id"];
|
|
5198
|
+
isOneToOne: false;
|
|
5199
|
+
referencedRelation: "products";
|
|
5200
|
+
referencedColumns: ["id"];
|
|
5201
|
+
}];
|
|
5202
|
+
};
|
|
5203
|
+
local_customer_sales_strategies: {
|
|
5204
|
+
Row: {
|
|
5205
|
+
created_at: string;
|
|
5206
|
+
currency: string;
|
|
5207
|
+
customer_id: string;
|
|
5208
|
+
discount_type: string;
|
|
5209
|
+
discount_value: number;
|
|
5210
|
+
id: string;
|
|
5211
|
+
min_quantity: number;
|
|
5212
|
+
notes: string | null;
|
|
5213
|
+
product_category_id: string | null;
|
|
5214
|
+
product_id: string | null;
|
|
5215
|
+
updated_at: string;
|
|
5216
|
+
valid_from: string | null;
|
|
5217
|
+
valid_until: string | null;
|
|
5218
|
+
};
|
|
5219
|
+
Insert: {
|
|
5220
|
+
created_at?: string;
|
|
5221
|
+
currency?: string;
|
|
5222
|
+
customer_id: string;
|
|
5223
|
+
discount_type: string;
|
|
5224
|
+
discount_value: number;
|
|
5225
|
+
id?: string;
|
|
5226
|
+
min_quantity?: number;
|
|
5227
|
+
notes?: string | null;
|
|
5228
|
+
product_category_id?: string | null;
|
|
5229
|
+
product_id?: string | null;
|
|
5230
|
+
updated_at?: string;
|
|
5231
|
+
valid_from?: string | null;
|
|
5232
|
+
valid_until?: string | null;
|
|
5233
|
+
};
|
|
5234
|
+
Update: {
|
|
5235
|
+
created_at?: string;
|
|
5236
|
+
currency?: string;
|
|
5237
|
+
customer_id?: string;
|
|
5238
|
+
discount_type?: string;
|
|
5239
|
+
discount_value?: number;
|
|
5240
|
+
id?: string;
|
|
5241
|
+
min_quantity?: number;
|
|
5242
|
+
notes?: string | null;
|
|
5243
|
+
product_category_id?: string | null;
|
|
5244
|
+
product_id?: string | null;
|
|
5245
|
+
updated_at?: string;
|
|
5246
|
+
valid_from?: string | null;
|
|
5247
|
+
valid_until?: string | null;
|
|
5248
|
+
};
|
|
5249
|
+
Relationships: [{
|
|
5250
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
5251
|
+
columns: ["customer_id"];
|
|
5252
|
+
isOneToOne: false;
|
|
5253
|
+
referencedRelation: "customers";
|
|
5254
|
+
referencedColumns: ["id"];
|
|
5255
|
+
}, {
|
|
5256
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
5257
|
+
columns: ["product_category_id"];
|
|
5258
|
+
isOneToOne: false;
|
|
5259
|
+
referencedRelation: "product_categories";
|
|
5260
|
+
referencedColumns: ["id"];
|
|
5261
|
+
}, {
|
|
5262
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
5263
|
+
columns: ["product_id"];
|
|
5264
|
+
isOneToOne: false;
|
|
5265
|
+
referencedRelation: "products";
|
|
5266
|
+
referencedColumns: ["id"];
|
|
5267
|
+
}];
|
|
5268
|
+
};
|
|
5023
5269
|
locations: {
|
|
5024
5270
|
Row: {
|
|
5025
5271
|
created_at: string;
|
|
@@ -5527,99 +5773,366 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5527
5773
|
referencedColumns: ["id"];
|
|
5528
5774
|
}];
|
|
5529
5775
|
};
|
|
5530
|
-
|
|
5776
|
+
nmbrs_component_mapping: {
|
|
5531
5777
|
Row: {
|
|
5532
5778
|
created_at: string;
|
|
5533
5779
|
id: string;
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
title: string;
|
|
5780
|
+
source_kind: string;
|
|
5781
|
+
source_value: string | null;
|
|
5537
5782
|
updated_at: string;
|
|
5538
|
-
|
|
5783
|
+
wage_code: string;
|
|
5539
5784
|
};
|
|
5540
5785
|
Insert: {
|
|
5541
5786
|
created_at?: string;
|
|
5542
5787
|
id?: string;
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
title: string;
|
|
5788
|
+
source_kind: string;
|
|
5789
|
+
source_value?: string | null;
|
|
5546
5790
|
updated_at?: string;
|
|
5547
|
-
|
|
5791
|
+
wage_code: string;
|
|
5548
5792
|
};
|
|
5549
5793
|
Update: {
|
|
5550
5794
|
created_at?: string;
|
|
5551
5795
|
id?: string;
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
title?: string;
|
|
5796
|
+
source_kind?: string;
|
|
5797
|
+
source_value?: string | null;
|
|
5555
5798
|
updated_at?: string;
|
|
5556
|
-
|
|
5799
|
+
wage_code?: string;
|
|
5557
5800
|
};
|
|
5558
|
-
Relationships: [
|
|
5801
|
+
Relationships: [{
|
|
5802
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
5803
|
+
columns: ["wage_code"];
|
|
5804
|
+
isOneToOne: false;
|
|
5805
|
+
referencedRelation: "nmbrs_wage_components";
|
|
5806
|
+
referencedColumns: ["code"];
|
|
5807
|
+
}];
|
|
5559
5808
|
};
|
|
5560
|
-
|
|
5809
|
+
nmbrs_employee_mapping: {
|
|
5561
5810
|
Row: {
|
|
5562
|
-
|
|
5811
|
+
active_from: string | null;
|
|
5812
|
+
active_to: string | null;
|
|
5813
|
+
contract_hours_per_week: number | null;
|
|
5563
5814
|
created_at: string;
|
|
5815
|
+
hourly_wage: number | null;
|
|
5564
5816
|
id: string;
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5817
|
+
monteur_id: string;
|
|
5818
|
+
nmbrs_company_code: string | null;
|
|
5819
|
+
nmbrs_employee_number: string;
|
|
5820
|
+
updated_at: string;
|
|
5568
5821
|
};
|
|
5569
5822
|
Insert: {
|
|
5570
|
-
|
|
5823
|
+
active_from?: string | null;
|
|
5824
|
+
active_to?: string | null;
|
|
5825
|
+
contract_hours_per_week?: number | null;
|
|
5571
5826
|
created_at?: string;
|
|
5827
|
+
hourly_wage?: number | null;
|
|
5572
5828
|
id?: string;
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5829
|
+
monteur_id: string;
|
|
5830
|
+
nmbrs_company_code?: string | null;
|
|
5831
|
+
nmbrs_employee_number: string;
|
|
5832
|
+
updated_at?: string;
|
|
5576
5833
|
};
|
|
5577
5834
|
Update: {
|
|
5578
|
-
|
|
5835
|
+
active_from?: string | null;
|
|
5836
|
+
active_to?: string | null;
|
|
5837
|
+
contract_hours_per_week?: number | null;
|
|
5579
5838
|
created_at?: string;
|
|
5839
|
+
hourly_wage?: number | null;
|
|
5580
5840
|
id?: string;
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5841
|
+
monteur_id?: string;
|
|
5842
|
+
nmbrs_company_code?: string | null;
|
|
5843
|
+
nmbrs_employee_number?: string;
|
|
5844
|
+
updated_at?: string;
|
|
5584
5845
|
};
|
|
5585
5846
|
Relationships: [{
|
|
5586
|
-
foreignKeyName: "
|
|
5587
|
-
columns: ["
|
|
5588
|
-
isOneToOne:
|
|
5589
|
-
referencedRelation: "
|
|
5847
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
5848
|
+
columns: ["monteur_id"];
|
|
5849
|
+
isOneToOne: true;
|
|
5850
|
+
referencedRelation: "monteurs";
|
|
5590
5851
|
referencedColumns: ["id"];
|
|
5591
5852
|
}];
|
|
5592
5853
|
};
|
|
5593
|
-
|
|
5854
|
+
nmbrs_export_lines: {
|
|
5594
5855
|
Row: {
|
|
5595
|
-
|
|
5596
|
-
barcode: string | null;
|
|
5597
|
-
belading: string | null;
|
|
5598
|
-
campaign_id: string;
|
|
5599
|
-
crate_price: number | null;
|
|
5856
|
+
amount: number;
|
|
5600
5857
|
created_at: string;
|
|
5601
|
-
|
|
5602
|
-
|
|
5858
|
+
entry_date: string;
|
|
5859
|
+
hours: number;
|
|
5603
5860
|
id: string;
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5861
|
+
monteur_id: string;
|
|
5862
|
+
nmbrs_employee_number: string | null;
|
|
5863
|
+
notes: string | null;
|
|
5864
|
+
run_id: string;
|
|
5865
|
+
source_kind: string | null;
|
|
5866
|
+
source_ref_id: string | null;
|
|
5867
|
+
updated_at: string;
|
|
5868
|
+
wage_code: string;
|
|
5612
5869
|
};
|
|
5613
5870
|
Insert: {
|
|
5614
|
-
|
|
5615
|
-
barcode?: string | null;
|
|
5616
|
-
belading?: string | null;
|
|
5617
|
-
campaign_id: string;
|
|
5618
|
-
crate_price?: number | null;
|
|
5871
|
+
amount?: number;
|
|
5619
5872
|
created_at?: string;
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
id?: string;
|
|
5873
|
+
entry_date: string;
|
|
5874
|
+
hours?: number;
|
|
5875
|
+
id?: string;
|
|
5876
|
+
monteur_id: string;
|
|
5877
|
+
nmbrs_employee_number?: string | null;
|
|
5878
|
+
notes?: string | null;
|
|
5879
|
+
run_id: string;
|
|
5880
|
+
source_kind?: string | null;
|
|
5881
|
+
source_ref_id?: string | null;
|
|
5882
|
+
updated_at?: string;
|
|
5883
|
+
wage_code: string;
|
|
5884
|
+
};
|
|
5885
|
+
Update: {
|
|
5886
|
+
amount?: number;
|
|
5887
|
+
created_at?: string;
|
|
5888
|
+
entry_date?: string;
|
|
5889
|
+
hours?: number;
|
|
5890
|
+
id?: string;
|
|
5891
|
+
monteur_id?: string;
|
|
5892
|
+
nmbrs_employee_number?: string | null;
|
|
5893
|
+
notes?: string | null;
|
|
5894
|
+
run_id?: string;
|
|
5895
|
+
source_kind?: string | null;
|
|
5896
|
+
source_ref_id?: string | null;
|
|
5897
|
+
updated_at?: string;
|
|
5898
|
+
wage_code?: string;
|
|
5899
|
+
};
|
|
5900
|
+
Relationships: [{
|
|
5901
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
5902
|
+
columns: ["monteur_id"];
|
|
5903
|
+
isOneToOne: false;
|
|
5904
|
+
referencedRelation: "monteurs";
|
|
5905
|
+
referencedColumns: ["id"];
|
|
5906
|
+
}, {
|
|
5907
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
5908
|
+
columns: ["run_id"];
|
|
5909
|
+
isOneToOne: false;
|
|
5910
|
+
referencedRelation: "nmbrs_export_runs";
|
|
5911
|
+
referencedColumns: ["id"];
|
|
5912
|
+
}, {
|
|
5913
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
5914
|
+
columns: ["wage_code"];
|
|
5915
|
+
isOneToOne: false;
|
|
5916
|
+
referencedRelation: "nmbrs_wage_components";
|
|
5917
|
+
referencedColumns: ["code"];
|
|
5918
|
+
}];
|
|
5919
|
+
};
|
|
5920
|
+
nmbrs_export_runs: {
|
|
5921
|
+
Row: {
|
|
5922
|
+
created_at: string;
|
|
5923
|
+
file_name: string | null;
|
|
5924
|
+
generated_at: string;
|
|
5925
|
+
generated_by: string | null;
|
|
5926
|
+
id: string;
|
|
5927
|
+
notes: string | null;
|
|
5928
|
+
period_end: string;
|
|
5929
|
+
period_label: string;
|
|
5930
|
+
period_start: string;
|
|
5931
|
+
status: string;
|
|
5932
|
+
total_hours: number;
|
|
5933
|
+
total_lines: number;
|
|
5934
|
+
updated_at: string;
|
|
5935
|
+
};
|
|
5936
|
+
Insert: {
|
|
5937
|
+
created_at?: string;
|
|
5938
|
+
file_name?: string | null;
|
|
5939
|
+
generated_at?: string;
|
|
5940
|
+
generated_by?: string | null;
|
|
5941
|
+
id?: string;
|
|
5942
|
+
notes?: string | null;
|
|
5943
|
+
period_end: string;
|
|
5944
|
+
period_label: string;
|
|
5945
|
+
period_start: string;
|
|
5946
|
+
status?: string;
|
|
5947
|
+
total_hours?: number;
|
|
5948
|
+
total_lines?: number;
|
|
5949
|
+
updated_at?: string;
|
|
5950
|
+
};
|
|
5951
|
+
Update: {
|
|
5952
|
+
created_at?: string;
|
|
5953
|
+
file_name?: string | null;
|
|
5954
|
+
generated_at?: string;
|
|
5955
|
+
generated_by?: string | null;
|
|
5956
|
+
id?: string;
|
|
5957
|
+
notes?: string | null;
|
|
5958
|
+
period_end?: string;
|
|
5959
|
+
period_label?: string;
|
|
5960
|
+
period_start?: string;
|
|
5961
|
+
status?: string;
|
|
5962
|
+
total_hours?: number;
|
|
5963
|
+
total_lines?: number;
|
|
5964
|
+
updated_at?: string;
|
|
5965
|
+
};
|
|
5966
|
+
Relationships: [];
|
|
5967
|
+
};
|
|
5968
|
+
nmbrs_settings: {
|
|
5969
|
+
Row: {
|
|
5970
|
+
created_at: string;
|
|
5971
|
+
default_company_code: string | null;
|
|
5972
|
+
id: boolean;
|
|
5973
|
+
include_travel: boolean;
|
|
5974
|
+
overtime_threshold_daily: number;
|
|
5975
|
+
overtime_threshold_weekly: number;
|
|
5976
|
+
period_type: string;
|
|
5977
|
+
updated_at: string;
|
|
5978
|
+
updated_by: string | null;
|
|
5979
|
+
week_start_day: number;
|
|
5980
|
+
};
|
|
5981
|
+
Insert: {
|
|
5982
|
+
created_at?: string;
|
|
5983
|
+
default_company_code?: string | null;
|
|
5984
|
+
id?: boolean;
|
|
5985
|
+
include_travel?: boolean;
|
|
5986
|
+
overtime_threshold_daily?: number;
|
|
5987
|
+
overtime_threshold_weekly?: number;
|
|
5988
|
+
period_type?: string;
|
|
5989
|
+
updated_at?: string;
|
|
5990
|
+
updated_by?: string | null;
|
|
5991
|
+
week_start_day?: number;
|
|
5992
|
+
};
|
|
5993
|
+
Update: {
|
|
5994
|
+
created_at?: string;
|
|
5995
|
+
default_company_code?: string | null;
|
|
5996
|
+
id?: boolean;
|
|
5997
|
+
include_travel?: boolean;
|
|
5998
|
+
overtime_threshold_daily?: number;
|
|
5999
|
+
overtime_threshold_weekly?: number;
|
|
6000
|
+
period_type?: string;
|
|
6001
|
+
updated_at?: string;
|
|
6002
|
+
updated_by?: string | null;
|
|
6003
|
+
week_start_day?: number;
|
|
6004
|
+
};
|
|
6005
|
+
Relationships: [];
|
|
6006
|
+
};
|
|
6007
|
+
nmbrs_wage_components: {
|
|
6008
|
+
Row: {
|
|
6009
|
+
category: string;
|
|
6010
|
+
code: string;
|
|
6011
|
+
created_at: string;
|
|
6012
|
+
id: string;
|
|
6013
|
+
is_active: boolean;
|
|
6014
|
+
label: string;
|
|
6015
|
+
sort_order: number;
|
|
6016
|
+
unit: string;
|
|
6017
|
+
updated_at: string;
|
|
6018
|
+
};
|
|
6019
|
+
Insert: {
|
|
6020
|
+
category: string;
|
|
6021
|
+
code: string;
|
|
6022
|
+
created_at?: string;
|
|
6023
|
+
id?: string;
|
|
6024
|
+
is_active?: boolean;
|
|
6025
|
+
label: string;
|
|
6026
|
+
sort_order?: number;
|
|
6027
|
+
unit: string;
|
|
6028
|
+
updated_at?: string;
|
|
6029
|
+
};
|
|
6030
|
+
Update: {
|
|
6031
|
+
category?: string;
|
|
6032
|
+
code?: string;
|
|
6033
|
+
created_at?: string;
|
|
6034
|
+
id?: string;
|
|
6035
|
+
is_active?: boolean;
|
|
6036
|
+
label?: string;
|
|
6037
|
+
sort_order?: number;
|
|
6038
|
+
unit?: string;
|
|
6039
|
+
updated_at?: string;
|
|
6040
|
+
};
|
|
6041
|
+
Relationships: [];
|
|
6042
|
+
};
|
|
6043
|
+
notifications: {
|
|
6044
|
+
Row: {
|
|
6045
|
+
created_at: string;
|
|
6046
|
+
id: string;
|
|
6047
|
+
message: string | null;
|
|
6048
|
+
read: boolean;
|
|
6049
|
+
title: string;
|
|
6050
|
+
updated_at: string;
|
|
6051
|
+
user_id: string;
|
|
6052
|
+
};
|
|
6053
|
+
Insert: {
|
|
6054
|
+
created_at?: string;
|
|
6055
|
+
id?: string;
|
|
6056
|
+
message?: string | null;
|
|
6057
|
+
read?: boolean;
|
|
6058
|
+
title: string;
|
|
6059
|
+
updated_at?: string;
|
|
6060
|
+
user_id: string;
|
|
6061
|
+
};
|
|
6062
|
+
Update: {
|
|
6063
|
+
created_at?: string;
|
|
6064
|
+
id?: string;
|
|
6065
|
+
message?: string | null;
|
|
6066
|
+
read?: boolean;
|
|
6067
|
+
title?: string;
|
|
6068
|
+
updated_at?: string;
|
|
6069
|
+
user_id?: string;
|
|
6070
|
+
};
|
|
6071
|
+
Relationships: [];
|
|
6072
|
+
};
|
|
6073
|
+
offer_campaign_product_tiers: {
|
|
6074
|
+
Row: {
|
|
6075
|
+
campaign_product_id: string;
|
|
6076
|
+
created_at: string;
|
|
6077
|
+
id: string;
|
|
6078
|
+
min_crates: number;
|
|
6079
|
+
price_per_crate: number;
|
|
6080
|
+
sort_order: number;
|
|
6081
|
+
};
|
|
6082
|
+
Insert: {
|
|
6083
|
+
campaign_product_id: string;
|
|
6084
|
+
created_at?: string;
|
|
6085
|
+
id?: string;
|
|
6086
|
+
min_crates?: number;
|
|
6087
|
+
price_per_crate?: number;
|
|
6088
|
+
sort_order?: number;
|
|
6089
|
+
};
|
|
6090
|
+
Update: {
|
|
6091
|
+
campaign_product_id?: string;
|
|
6092
|
+
created_at?: string;
|
|
6093
|
+
id?: string;
|
|
6094
|
+
min_crates?: number;
|
|
6095
|
+
price_per_crate?: number;
|
|
6096
|
+
sort_order?: number;
|
|
6097
|
+
};
|
|
6098
|
+
Relationships: [{
|
|
6099
|
+
foreignKeyName: "offer_campaign_product_tiers_campaign_product_id_fkey";
|
|
6100
|
+
columns: ["campaign_product_id"];
|
|
6101
|
+
isOneToOne: false;
|
|
6102
|
+
referencedRelation: "offer_campaign_products";
|
|
6103
|
+
referencedColumns: ["id"];
|
|
6104
|
+
}];
|
|
6105
|
+
};
|
|
6106
|
+
offer_campaign_products: {
|
|
6107
|
+
Row: {
|
|
6108
|
+
available_stock: number;
|
|
6109
|
+
barcode: string | null;
|
|
6110
|
+
belading: string | null;
|
|
6111
|
+
campaign_id: string;
|
|
6112
|
+
crate_price: number | null;
|
|
6113
|
+
created_at: string;
|
|
6114
|
+
description: string | null;
|
|
6115
|
+
discount_price: number;
|
|
6116
|
+
id: string;
|
|
6117
|
+
image_url: string | null;
|
|
6118
|
+
normal_price: number;
|
|
6119
|
+
plants_per_crate: number | null;
|
|
6120
|
+
product_id: string | null;
|
|
6121
|
+
product_name: string;
|
|
6122
|
+
sort_order: number;
|
|
6123
|
+
sticker_available: boolean;
|
|
6124
|
+
sticker_cost: number | null;
|
|
6125
|
+
};
|
|
6126
|
+
Insert: {
|
|
6127
|
+
available_stock?: number;
|
|
6128
|
+
barcode?: string | null;
|
|
6129
|
+
belading?: string | null;
|
|
6130
|
+
campaign_id: string;
|
|
6131
|
+
crate_price?: number | null;
|
|
6132
|
+
created_at?: string;
|
|
6133
|
+
description?: string | null;
|
|
6134
|
+
discount_price?: number;
|
|
6135
|
+
id?: string;
|
|
5623
6136
|
image_url?: string | null;
|
|
5624
6137
|
normal_price?: number;
|
|
5625
6138
|
plants_per_crate?: number | null;
|
|
@@ -6509,6 +7022,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6509
7022
|
purchase_price: number | null;
|
|
6510
7023
|
quantity: number;
|
|
6511
7024
|
sale_price: number | null;
|
|
7025
|
+
trade_item_key: string | null;
|
|
6512
7026
|
unit: string;
|
|
6513
7027
|
updated_at: string;
|
|
6514
7028
|
weight: string | null;
|
|
@@ -6531,6 +7045,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6531
7045
|
purchase_price?: number | null;
|
|
6532
7046
|
quantity?: number;
|
|
6533
7047
|
sale_price?: number | null;
|
|
7048
|
+
trade_item_key?: string | null;
|
|
6534
7049
|
unit?: string;
|
|
6535
7050
|
updated_at?: string;
|
|
6536
7051
|
weight?: string | null;
|
|
@@ -6553,6 +7068,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6553
7068
|
purchase_price?: number | null;
|
|
6554
7069
|
quantity?: number;
|
|
6555
7070
|
sale_price?: number | null;
|
|
7071
|
+
trade_item_key?: string | null;
|
|
6556
7072
|
unit?: string;
|
|
6557
7073
|
updated_at?: string;
|
|
6558
7074
|
weight?: string | null;
|
|
@@ -7372,6 +7888,102 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7372
7888
|
};
|
|
7373
7889
|
Relationships: [];
|
|
7374
7890
|
};
|
|
7891
|
+
stock_import_runs: {
|
|
7892
|
+
Row: {
|
|
7893
|
+
connection_id: string | null;
|
|
7894
|
+
created_at: string;
|
|
7895
|
+
created_rows: number;
|
|
7896
|
+
errors: import("../integrations/supabase/types").Json;
|
|
7897
|
+
filename: string | null;
|
|
7898
|
+
id: string;
|
|
7899
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
7900
|
+
skipped_rows: number;
|
|
7901
|
+
total_rows: number;
|
|
7902
|
+
updated_rows: number;
|
|
7903
|
+
user_id: string;
|
|
7904
|
+
};
|
|
7905
|
+
Insert: {
|
|
7906
|
+
connection_id?: string | null;
|
|
7907
|
+
created_at?: string;
|
|
7908
|
+
created_rows?: number;
|
|
7909
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
7910
|
+
filename?: string | null;
|
|
7911
|
+
id?: string;
|
|
7912
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
7913
|
+
skipped_rows?: number;
|
|
7914
|
+
total_rows?: number;
|
|
7915
|
+
updated_rows?: number;
|
|
7916
|
+
user_id: string;
|
|
7917
|
+
};
|
|
7918
|
+
Update: {
|
|
7919
|
+
connection_id?: string | null;
|
|
7920
|
+
created_at?: string;
|
|
7921
|
+
created_rows?: number;
|
|
7922
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
7923
|
+
filename?: string | null;
|
|
7924
|
+
id?: string;
|
|
7925
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
7926
|
+
skipped_rows?: number;
|
|
7927
|
+
total_rows?: number;
|
|
7928
|
+
updated_rows?: number;
|
|
7929
|
+
user_id?: string;
|
|
7930
|
+
};
|
|
7931
|
+
Relationships: [];
|
|
7932
|
+
};
|
|
7933
|
+
stock_mutation_log: {
|
|
7934
|
+
Row: {
|
|
7935
|
+
connection_id: string | null;
|
|
7936
|
+
created_at: string;
|
|
7937
|
+
created_by: string | null;
|
|
7938
|
+
id: string;
|
|
7939
|
+
mutation_type: string;
|
|
7940
|
+
order_id: string | null;
|
|
7941
|
+
order_item_id: string | null;
|
|
7942
|
+
order_source: string | null;
|
|
7943
|
+
physical_after: number | null;
|
|
7944
|
+
physical_before: number | null;
|
|
7945
|
+
qty_delta: number;
|
|
7946
|
+
reason: string | null;
|
|
7947
|
+
reserved_after: number | null;
|
|
7948
|
+
reserved_before: number | null;
|
|
7949
|
+
trade_item_key: string;
|
|
7950
|
+
};
|
|
7951
|
+
Insert: {
|
|
7952
|
+
connection_id?: string | null;
|
|
7953
|
+
created_at?: string;
|
|
7954
|
+
created_by?: string | null;
|
|
7955
|
+
id?: string;
|
|
7956
|
+
mutation_type: string;
|
|
7957
|
+
order_id?: string | null;
|
|
7958
|
+
order_item_id?: string | null;
|
|
7959
|
+
order_source?: string | null;
|
|
7960
|
+
physical_after?: number | null;
|
|
7961
|
+
physical_before?: number | null;
|
|
7962
|
+
qty_delta: number;
|
|
7963
|
+
reason?: string | null;
|
|
7964
|
+
reserved_after?: number | null;
|
|
7965
|
+
reserved_before?: number | null;
|
|
7966
|
+
trade_item_key: string;
|
|
7967
|
+
};
|
|
7968
|
+
Update: {
|
|
7969
|
+
connection_id?: string | null;
|
|
7970
|
+
created_at?: string;
|
|
7971
|
+
created_by?: string | null;
|
|
7972
|
+
id?: string;
|
|
7973
|
+
mutation_type?: string;
|
|
7974
|
+
order_id?: string | null;
|
|
7975
|
+
order_item_id?: string | null;
|
|
7976
|
+
order_source?: string | null;
|
|
7977
|
+
physical_after?: number | null;
|
|
7978
|
+
physical_before?: number | null;
|
|
7979
|
+
qty_delta?: number;
|
|
7980
|
+
reason?: string | null;
|
|
7981
|
+
reserved_after?: number | null;
|
|
7982
|
+
reserved_before?: number | null;
|
|
7983
|
+
trade_item_key?: string;
|
|
7984
|
+
};
|
|
7985
|
+
Relationships: [];
|
|
7986
|
+
};
|
|
7375
7987
|
supplier_products: {
|
|
7376
7988
|
Row: {
|
|
7377
7989
|
article_number: string | null;
|
|
@@ -8949,9 +9561,47 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8949
9561
|
};
|
|
8950
9562
|
Relationships: [];
|
|
8951
9563
|
};
|
|
8952
|
-
|
|
9564
|
+
floriday_customer_discounts: {
|
|
8953
9565
|
Row: {
|
|
8954
|
-
|
|
9566
|
+
base_price: number | null;
|
|
9567
|
+
buyer_organization_id: string | null;
|
|
9568
|
+
currency: string | null;
|
|
9569
|
+
discount_type: string | null;
|
|
9570
|
+
discount_value: number | null;
|
|
9571
|
+
min_quantity: number | null;
|
|
9572
|
+
net_price: number | null;
|
|
9573
|
+
product_group_id: string | null;
|
|
9574
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
9575
|
+
source: string | null;
|
|
9576
|
+
source_id: string | null;
|
|
9577
|
+
trade_item_id: string | null;
|
|
9578
|
+
valid_from: string | null;
|
|
9579
|
+
valid_until: string | null;
|
|
9580
|
+
};
|
|
9581
|
+
Relationships: [];
|
|
9582
|
+
};
|
|
9583
|
+
local_customer_discounts: {
|
|
9584
|
+
Row: {
|
|
9585
|
+
base_price: number | null;
|
|
9586
|
+
currency: string | null;
|
|
9587
|
+
customer_id: string | null;
|
|
9588
|
+
discount_type: string | null;
|
|
9589
|
+
discount_value: number | null;
|
|
9590
|
+
min_quantity: number | null;
|
|
9591
|
+
net_price: number | null;
|
|
9592
|
+
product_category_id: string | null;
|
|
9593
|
+
product_id: string | null;
|
|
9594
|
+
product_name: string | null;
|
|
9595
|
+
source: string | null;
|
|
9596
|
+
source_id: string | null;
|
|
9597
|
+
valid_from: string | null;
|
|
9598
|
+
valid_until: string | null;
|
|
9599
|
+
};
|
|
9600
|
+
Relationships: [];
|
|
9601
|
+
};
|
|
9602
|
+
manufacture_product_possible_stock_view: {
|
|
9603
|
+
Row: {
|
|
9604
|
+
component_count: number | null;
|
|
8955
9605
|
manufacture_product_id: string | null;
|
|
8956
9606
|
possible_stock: number | null;
|
|
8957
9607
|
};
|
|
@@ -9233,6 +9883,54 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9233
9883
|
};
|
|
9234
9884
|
Returns: number;
|
|
9235
9885
|
};
|
|
9886
|
+
afh_city_code: {
|
|
9887
|
+
Args: {
|
|
9888
|
+
_city: string;
|
|
9889
|
+
_country: string;
|
|
9890
|
+
};
|
|
9891
|
+
Returns: string;
|
|
9892
|
+
};
|
|
9893
|
+
afh_normalize_country: {
|
|
9894
|
+
Args: {
|
|
9895
|
+
_raw: string;
|
|
9896
|
+
};
|
|
9897
|
+
Returns: string;
|
|
9898
|
+
};
|
|
9899
|
+
afh_normalize_nl_province: {
|
|
9900
|
+
Args: {
|
|
9901
|
+
_raw: string;
|
|
9902
|
+
};
|
|
9903
|
+
Returns: string;
|
|
9904
|
+
};
|
|
9905
|
+
afh_subtract_workdays: {
|
|
9906
|
+
Args: {
|
|
9907
|
+
_date: string;
|
|
9908
|
+
_days: number;
|
|
9909
|
+
};
|
|
9910
|
+
Returns: string;
|
|
9911
|
+
};
|
|
9912
|
+
apply_stock_consumption: {
|
|
9913
|
+
Args: {
|
|
9914
|
+
p_order_id: string;
|
|
9915
|
+
p_order_item_id: string;
|
|
9916
|
+
p_qty: number;
|
|
9917
|
+
p_reason: string;
|
|
9918
|
+
p_source: string;
|
|
9919
|
+
p_trade_item_key: string;
|
|
9920
|
+
};
|
|
9921
|
+
Returns: undefined;
|
|
9922
|
+
};
|
|
9923
|
+
apply_stock_reservation: {
|
|
9924
|
+
Args: {
|
|
9925
|
+
p_order_id: string;
|
|
9926
|
+
p_order_item_id: string;
|
|
9927
|
+
p_qty: number;
|
|
9928
|
+
p_reason: string;
|
|
9929
|
+
p_source: string;
|
|
9930
|
+
p_trade_item_key: string;
|
|
9931
|
+
};
|
|
9932
|
+
Returns: undefined;
|
|
9933
|
+
};
|
|
9236
9934
|
assign_cart_numbers: {
|
|
9237
9935
|
Args: {
|
|
9238
9936
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -9256,12 +9954,40 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9256
9954
|
order_number: string;
|
|
9257
9955
|
}[];
|
|
9258
9956
|
};
|
|
9957
|
+
backfill_open_order_reservations: {
|
|
9958
|
+
Args: never;
|
|
9959
|
+
Returns: {
|
|
9960
|
+
processed_items: number;
|
|
9961
|
+
}[];
|
|
9962
|
+
};
|
|
9259
9963
|
call_exact_route: {
|
|
9260
9964
|
Args: {
|
|
9261
9965
|
path: string;
|
|
9262
9966
|
};
|
|
9263
9967
|
Returns: number;
|
|
9264
9968
|
};
|
|
9969
|
+
check_offer_product_available_stock: {
|
|
9970
|
+
Args: {
|
|
9971
|
+
p_campaign_product_id: string;
|
|
9972
|
+
p_code: string;
|
|
9973
|
+
p_needed_qty?: number;
|
|
9974
|
+
p_product_name?: string;
|
|
9975
|
+
};
|
|
9976
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9977
|
+
};
|
|
9978
|
+
check_trade_item_available_stock: {
|
|
9979
|
+
Args: {
|
|
9980
|
+
p_connection_id?: string;
|
|
9981
|
+
p_context?: string;
|
|
9982
|
+
p_needed_qty?: number;
|
|
9983
|
+
p_order_id?: string;
|
|
9984
|
+
p_order_item_id?: string;
|
|
9985
|
+
p_owner_id?: string;
|
|
9986
|
+
p_product_name?: string;
|
|
9987
|
+
p_trade_item_key: string;
|
|
9988
|
+
};
|
|
9989
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9990
|
+
};
|
|
9265
9991
|
cleanup_old_bookings: {
|
|
9266
9992
|
Args: never;
|
|
9267
9993
|
Returns: number;
|
|
@@ -9305,6 +10031,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9305
10031
|
table_name: string;
|
|
9306
10032
|
}[];
|
|
9307
10033
|
};
|
|
10034
|
+
dispatch_carrier_signups_sql: {
|
|
10035
|
+
Args: {
|
|
10036
|
+
_catchup?: string;
|
|
10037
|
+
};
|
|
10038
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10039
|
+
};
|
|
9308
10040
|
email_auth_decrypt: {
|
|
9309
10041
|
Args: {
|
|
9310
10042
|
cipher: string;
|
|
@@ -9340,6 +10072,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9340
10072
|
status: string;
|
|
9341
10073
|
}[];
|
|
9342
10074
|
};
|
|
10075
|
+
ensure_trade_item_stock_row: {
|
|
10076
|
+
Args: {
|
|
10077
|
+
p_key: string;
|
|
10078
|
+
};
|
|
10079
|
+
Returns: undefined;
|
|
10080
|
+
};
|
|
9343
10081
|
ensure_user_tenant: {
|
|
9344
10082
|
Args: never;
|
|
9345
10083
|
Returns: string;
|
|
@@ -9377,6 +10115,31 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9377
10115
|
};
|
|
9378
10116
|
Returns: boolean;
|
|
9379
10117
|
};
|
|
10118
|
+
find_trade_item_key: {
|
|
10119
|
+
Args: {
|
|
10120
|
+
p_barcode: string;
|
|
10121
|
+
p_name: string;
|
|
10122
|
+
p_product_id: string;
|
|
10123
|
+
};
|
|
10124
|
+
Returns: string;
|
|
10125
|
+
};
|
|
10126
|
+
floriday_effective_price: {
|
|
10127
|
+
Args: {
|
|
10128
|
+
_buyer_id: string;
|
|
10129
|
+
_on_date?: string;
|
|
10130
|
+
_quantity?: number;
|
|
10131
|
+
_trade_item_id: string;
|
|
10132
|
+
};
|
|
10133
|
+
Returns: {
|
|
10134
|
+
base_price: number;
|
|
10135
|
+
currency: string;
|
|
10136
|
+
discount_type: string;
|
|
10137
|
+
discount_value: number;
|
|
10138
|
+
net_price: number;
|
|
10139
|
+
source: string;
|
|
10140
|
+
source_id: string;
|
|
10141
|
+
}[];
|
|
10142
|
+
};
|
|
9380
10143
|
format_cart_number: {
|
|
9381
10144
|
Args: {
|
|
9382
10145
|
p_pick_date: string;
|
|
@@ -9397,6 +10160,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9397
10160
|
preferred_warehouse_name: string;
|
|
9398
10161
|
}[];
|
|
9399
10162
|
};
|
|
10163
|
+
get_active_floriday_context: {
|
|
10164
|
+
Args: never;
|
|
10165
|
+
Returns: {
|
|
10166
|
+
connection_id: string;
|
|
10167
|
+
user_id: string;
|
|
10168
|
+
}[];
|
|
10169
|
+
};
|
|
9400
10170
|
get_active_twinfield_public: {
|
|
9401
10171
|
Args: never;
|
|
9402
10172
|
Returns: {
|
|
@@ -9499,6 +10269,18 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9499
10269
|
};
|
|
9500
10270
|
Returns: import("../integrations/supabase/types").Json;
|
|
9501
10271
|
};
|
|
10272
|
+
get_offer_recipient_by_code: {
|
|
10273
|
+
Args: {
|
|
10274
|
+
p_code: string;
|
|
10275
|
+
};
|
|
10276
|
+
Returns: {
|
|
10277
|
+
campaign_id: string;
|
|
10278
|
+
clicked_at: string;
|
|
10279
|
+
customer_id: string;
|
|
10280
|
+
id: string;
|
|
10281
|
+
ordered_at: string;
|
|
10282
|
+
}[];
|
|
10283
|
+
};
|
|
9502
10284
|
get_or_assign_floriday_order_number: {
|
|
9503
10285
|
Args: {
|
|
9504
10286
|
p_floriday_id: string;
|
|
@@ -9551,6 +10333,34 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9551
10333
|
Args: never;
|
|
9552
10334
|
Returns: boolean;
|
|
9553
10335
|
};
|
|
10336
|
+
local_effective_price: {
|
|
10337
|
+
Args: {
|
|
10338
|
+
_customer_id: string;
|
|
10339
|
+
_on_date?: string;
|
|
10340
|
+
_product_id: string;
|
|
10341
|
+
_quantity?: number;
|
|
10342
|
+
};
|
|
10343
|
+
Returns: {
|
|
10344
|
+
currency: string;
|
|
10345
|
+
discount_type: string;
|
|
10346
|
+
discount_value: number;
|
|
10347
|
+
net_price: number;
|
|
10348
|
+
source: string;
|
|
10349
|
+
source_id: string;
|
|
10350
|
+
}[];
|
|
10351
|
+
};
|
|
10352
|
+
mark_offer_clicked: {
|
|
10353
|
+
Args: {
|
|
10354
|
+
p_code: string;
|
|
10355
|
+
};
|
|
10356
|
+
Returns: undefined;
|
|
10357
|
+
};
|
|
10358
|
+
mark_offer_ordered: {
|
|
10359
|
+
Args: {
|
|
10360
|
+
p_code: string;
|
|
10361
|
+
};
|
|
10362
|
+
Returns: undefined;
|
|
10363
|
+
};
|
|
9554
10364
|
next_order_number: {
|
|
9555
10365
|
Args: {
|
|
9556
10366
|
p_prefix: string;
|
|
@@ -9570,6 +10380,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9570
10380
|
};
|
|
9571
10381
|
Returns: string;
|
|
9572
10382
|
};
|
|
10383
|
+
offer_recipient_matches: {
|
|
10384
|
+
Args: {
|
|
10385
|
+
_campaign_id: string;
|
|
10386
|
+
_customer_id: string;
|
|
10387
|
+
_recipient_id: string;
|
|
10388
|
+
};
|
|
10389
|
+
Returns: boolean;
|
|
10390
|
+
};
|
|
9573
10391
|
pickstation_get_orders_raw: {
|
|
9574
10392
|
Args: never;
|
|
9575
10393
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -9597,6 +10415,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
9597
10415
|
};
|
|
9598
10416
|
Returns: undefined;
|
|
9599
10417
|
};
|
|
10418
|
+
promote_trade_item_key: {
|
|
10419
|
+
Args: {
|
|
10420
|
+
p_new: string;
|
|
10421
|
+
p_old: string;
|
|
10422
|
+
};
|
|
10423
|
+
Returns: undefined;
|
|
10424
|
+
};
|
|
9600
10425
|
refresh_floricode_derived_code_lists: {
|
|
9601
10426
|
Args: never;
|
|
9602
10427
|
Returns: {
|
|
@@ -10636,6 +11461,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
10636
11461
|
notes: string | null;
|
|
10637
11462
|
performed_at: string;
|
|
10638
11463
|
rescheduled_count: number;
|
|
11464
|
+
stock_consumed_at: string | null;
|
|
10639
11465
|
total_carts: number;
|
|
10640
11466
|
updated_at: string;
|
|
10641
11467
|
user_id: string;
|
|
@@ -10649,6 +11475,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
10649
11475
|
notes?: string | null;
|
|
10650
11476
|
performed_at?: string;
|
|
10651
11477
|
rescheduled_count?: number;
|
|
11478
|
+
stock_consumed_at?: string | null;
|
|
10652
11479
|
total_carts?: number;
|
|
10653
11480
|
updated_at?: string;
|
|
10654
11481
|
user_id: string;
|
|
@@ -10662,6 +11489,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
10662
11489
|
notes?: string | null;
|
|
10663
11490
|
performed_at?: string;
|
|
10664
11491
|
rescheduled_count?: number;
|
|
11492
|
+
stock_consumed_at?: string | null;
|
|
10665
11493
|
total_carts?: number;
|
|
10666
11494
|
updated_at?: string;
|
|
10667
11495
|
user_id?: string;
|
|
@@ -13542,6 +14370,51 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
13542
14370
|
referencedColumns: ["id"];
|
|
13543
14371
|
}];
|
|
13544
14372
|
};
|
|
14373
|
+
floriday_continuous_stock_queue: {
|
|
14374
|
+
Row: {
|
|
14375
|
+
attempts: number;
|
|
14376
|
+
connection_id: string;
|
|
14377
|
+
created_at: string;
|
|
14378
|
+
gateway_attempt_id: string | null;
|
|
14379
|
+
id: string;
|
|
14380
|
+
last_error: string | null;
|
|
14381
|
+
number_of_pieces: number;
|
|
14382
|
+
sent_at: string | null;
|
|
14383
|
+
status: string;
|
|
14384
|
+
trade_item_id: string;
|
|
14385
|
+
updated_at: string;
|
|
14386
|
+
user_id: string;
|
|
14387
|
+
};
|
|
14388
|
+
Insert: {
|
|
14389
|
+
attempts?: number;
|
|
14390
|
+
connection_id: string;
|
|
14391
|
+
created_at?: string;
|
|
14392
|
+
gateway_attempt_id?: string | null;
|
|
14393
|
+
id?: string;
|
|
14394
|
+
last_error?: string | null;
|
|
14395
|
+
number_of_pieces?: number;
|
|
14396
|
+
sent_at?: string | null;
|
|
14397
|
+
status?: string;
|
|
14398
|
+
trade_item_id: string;
|
|
14399
|
+
updated_at?: string;
|
|
14400
|
+
user_id: string;
|
|
14401
|
+
};
|
|
14402
|
+
Update: {
|
|
14403
|
+
attempts?: number;
|
|
14404
|
+
connection_id?: string;
|
|
14405
|
+
created_at?: string;
|
|
14406
|
+
gateway_attempt_id?: string | null;
|
|
14407
|
+
id?: string;
|
|
14408
|
+
last_error?: string | null;
|
|
14409
|
+
number_of_pieces?: number;
|
|
14410
|
+
sent_at?: string | null;
|
|
14411
|
+
status?: string;
|
|
14412
|
+
trade_item_id?: string;
|
|
14413
|
+
updated_at?: string;
|
|
14414
|
+
user_id?: string;
|
|
14415
|
+
};
|
|
14416
|
+
Relationships: [];
|
|
14417
|
+
};
|
|
13545
14418
|
floriday_contract_trade_item_groups_cache: {
|
|
13546
14419
|
Row: {
|
|
13547
14420
|
connection_id: string;
|
|
@@ -14931,6 +15804,204 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
14931
15804
|
};
|
|
14932
15805
|
Relationships: [];
|
|
14933
15806
|
};
|
|
15807
|
+
local_customer_agreements: {
|
|
15808
|
+
Row: {
|
|
15809
|
+
base_price: number | null;
|
|
15810
|
+
created_at: string;
|
|
15811
|
+
currency: string;
|
|
15812
|
+
customer_id: string;
|
|
15813
|
+
id: string;
|
|
15814
|
+
min_quantity: number;
|
|
15815
|
+
net_price: number;
|
|
15816
|
+
notes: string | null;
|
|
15817
|
+
product_category_id: string | null;
|
|
15818
|
+
product_id: string | null;
|
|
15819
|
+
updated_at: string;
|
|
15820
|
+
valid_from: string | null;
|
|
15821
|
+
valid_until: string | null;
|
|
15822
|
+
};
|
|
15823
|
+
Insert: {
|
|
15824
|
+
base_price?: number | null;
|
|
15825
|
+
created_at?: string;
|
|
15826
|
+
currency?: string;
|
|
15827
|
+
customer_id: string;
|
|
15828
|
+
id?: string;
|
|
15829
|
+
min_quantity?: number;
|
|
15830
|
+
net_price: number;
|
|
15831
|
+
notes?: string | null;
|
|
15832
|
+
product_category_id?: string | null;
|
|
15833
|
+
product_id?: string | null;
|
|
15834
|
+
updated_at?: string;
|
|
15835
|
+
valid_from?: string | null;
|
|
15836
|
+
valid_until?: string | null;
|
|
15837
|
+
};
|
|
15838
|
+
Update: {
|
|
15839
|
+
base_price?: number | null;
|
|
15840
|
+
created_at?: string;
|
|
15841
|
+
currency?: string;
|
|
15842
|
+
customer_id?: string;
|
|
15843
|
+
id?: string;
|
|
15844
|
+
min_quantity?: number;
|
|
15845
|
+
net_price?: number;
|
|
15846
|
+
notes?: string | null;
|
|
15847
|
+
product_category_id?: string | null;
|
|
15848
|
+
product_id?: string | null;
|
|
15849
|
+
updated_at?: string;
|
|
15850
|
+
valid_from?: string | null;
|
|
15851
|
+
valid_until?: string | null;
|
|
15852
|
+
};
|
|
15853
|
+
Relationships: [{
|
|
15854
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
15855
|
+
columns: ["customer_id"];
|
|
15856
|
+
isOneToOne: false;
|
|
15857
|
+
referencedRelation: "customers";
|
|
15858
|
+
referencedColumns: ["id"];
|
|
15859
|
+
}, {
|
|
15860
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
15861
|
+
columns: ["product_category_id"];
|
|
15862
|
+
isOneToOne: false;
|
|
15863
|
+
referencedRelation: "product_categories";
|
|
15864
|
+
referencedColumns: ["id"];
|
|
15865
|
+
}, {
|
|
15866
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
15867
|
+
columns: ["product_id"];
|
|
15868
|
+
isOneToOne: false;
|
|
15869
|
+
referencedRelation: "products";
|
|
15870
|
+
referencedColumns: ["id"];
|
|
15871
|
+
}];
|
|
15872
|
+
};
|
|
15873
|
+
local_customer_price_groups: {
|
|
15874
|
+
Row: {
|
|
15875
|
+
created_at: string;
|
|
15876
|
+
currency: string;
|
|
15877
|
+
customer_id: string;
|
|
15878
|
+
discount_type: string;
|
|
15879
|
+
discount_value: number;
|
|
15880
|
+
id: string;
|
|
15881
|
+
min_quantity: number;
|
|
15882
|
+
notes: string | null;
|
|
15883
|
+
product_category_id: string | null;
|
|
15884
|
+
product_id: string | null;
|
|
15885
|
+
updated_at: string;
|
|
15886
|
+
valid_from: string | null;
|
|
15887
|
+
valid_until: string | null;
|
|
15888
|
+
};
|
|
15889
|
+
Insert: {
|
|
15890
|
+
created_at?: string;
|
|
15891
|
+
currency?: string;
|
|
15892
|
+
customer_id: string;
|
|
15893
|
+
discount_type: string;
|
|
15894
|
+
discount_value: number;
|
|
15895
|
+
id?: string;
|
|
15896
|
+
min_quantity?: number;
|
|
15897
|
+
notes?: string | null;
|
|
15898
|
+
product_category_id?: string | null;
|
|
15899
|
+
product_id?: string | null;
|
|
15900
|
+
updated_at?: string;
|
|
15901
|
+
valid_from?: string | null;
|
|
15902
|
+
valid_until?: string | null;
|
|
15903
|
+
};
|
|
15904
|
+
Update: {
|
|
15905
|
+
created_at?: string;
|
|
15906
|
+
currency?: string;
|
|
15907
|
+
customer_id?: string;
|
|
15908
|
+
discount_type?: string;
|
|
15909
|
+
discount_value?: number;
|
|
15910
|
+
id?: string;
|
|
15911
|
+
min_quantity?: number;
|
|
15912
|
+
notes?: string | null;
|
|
15913
|
+
product_category_id?: string | null;
|
|
15914
|
+
product_id?: string | null;
|
|
15915
|
+
updated_at?: string;
|
|
15916
|
+
valid_from?: string | null;
|
|
15917
|
+
valid_until?: string | null;
|
|
15918
|
+
};
|
|
15919
|
+
Relationships: [{
|
|
15920
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
15921
|
+
columns: ["customer_id"];
|
|
15922
|
+
isOneToOne: false;
|
|
15923
|
+
referencedRelation: "customers";
|
|
15924
|
+
referencedColumns: ["id"];
|
|
15925
|
+
}, {
|
|
15926
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
15927
|
+
columns: ["product_category_id"];
|
|
15928
|
+
isOneToOne: false;
|
|
15929
|
+
referencedRelation: "product_categories";
|
|
15930
|
+
referencedColumns: ["id"];
|
|
15931
|
+
}, {
|
|
15932
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
15933
|
+
columns: ["product_id"];
|
|
15934
|
+
isOneToOne: false;
|
|
15935
|
+
referencedRelation: "products";
|
|
15936
|
+
referencedColumns: ["id"];
|
|
15937
|
+
}];
|
|
15938
|
+
};
|
|
15939
|
+
local_customer_sales_strategies: {
|
|
15940
|
+
Row: {
|
|
15941
|
+
created_at: string;
|
|
15942
|
+
currency: string;
|
|
15943
|
+
customer_id: string;
|
|
15944
|
+
discount_type: string;
|
|
15945
|
+
discount_value: number;
|
|
15946
|
+
id: string;
|
|
15947
|
+
min_quantity: number;
|
|
15948
|
+
notes: string | null;
|
|
15949
|
+
product_category_id: string | null;
|
|
15950
|
+
product_id: string | null;
|
|
15951
|
+
updated_at: string;
|
|
15952
|
+
valid_from: string | null;
|
|
15953
|
+
valid_until: string | null;
|
|
15954
|
+
};
|
|
15955
|
+
Insert: {
|
|
15956
|
+
created_at?: string;
|
|
15957
|
+
currency?: string;
|
|
15958
|
+
customer_id: string;
|
|
15959
|
+
discount_type: string;
|
|
15960
|
+
discount_value: number;
|
|
15961
|
+
id?: string;
|
|
15962
|
+
min_quantity?: number;
|
|
15963
|
+
notes?: string | null;
|
|
15964
|
+
product_category_id?: string | null;
|
|
15965
|
+
product_id?: string | null;
|
|
15966
|
+
updated_at?: string;
|
|
15967
|
+
valid_from?: string | null;
|
|
15968
|
+
valid_until?: string | null;
|
|
15969
|
+
};
|
|
15970
|
+
Update: {
|
|
15971
|
+
created_at?: string;
|
|
15972
|
+
currency?: string;
|
|
15973
|
+
customer_id?: string;
|
|
15974
|
+
discount_type?: string;
|
|
15975
|
+
discount_value?: number;
|
|
15976
|
+
id?: string;
|
|
15977
|
+
min_quantity?: number;
|
|
15978
|
+
notes?: string | null;
|
|
15979
|
+
product_category_id?: string | null;
|
|
15980
|
+
product_id?: string | null;
|
|
15981
|
+
updated_at?: string;
|
|
15982
|
+
valid_from?: string | null;
|
|
15983
|
+
valid_until?: string | null;
|
|
15984
|
+
};
|
|
15985
|
+
Relationships: [{
|
|
15986
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
15987
|
+
columns: ["customer_id"];
|
|
15988
|
+
isOneToOne: false;
|
|
15989
|
+
referencedRelation: "customers";
|
|
15990
|
+
referencedColumns: ["id"];
|
|
15991
|
+
}, {
|
|
15992
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
15993
|
+
columns: ["product_category_id"];
|
|
15994
|
+
isOneToOne: false;
|
|
15995
|
+
referencedRelation: "product_categories";
|
|
15996
|
+
referencedColumns: ["id"];
|
|
15997
|
+
}, {
|
|
15998
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
15999
|
+
columns: ["product_id"];
|
|
16000
|
+
isOneToOne: false;
|
|
16001
|
+
referencedRelation: "products";
|
|
16002
|
+
referencedColumns: ["id"];
|
|
16003
|
+
}];
|
|
16004
|
+
};
|
|
14934
16005
|
locations: {
|
|
14935
16006
|
Row: {
|
|
14936
16007
|
created_at: string;
|
|
@@ -15345,98 +16416,365 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15345
16416
|
referencedColumns: ["id"];
|
|
15346
16417
|
}];
|
|
15347
16418
|
};
|
|
15348
|
-
manufacture_products: {
|
|
16419
|
+
manufacture_products: {
|
|
16420
|
+
Row: {
|
|
16421
|
+
created_at: string;
|
|
16422
|
+
description: string | null;
|
|
16423
|
+
id: string;
|
|
16424
|
+
is_active: boolean;
|
|
16425
|
+
name: string;
|
|
16426
|
+
produced_stock: number;
|
|
16427
|
+
product_code: string;
|
|
16428
|
+
tenant_id: string;
|
|
16429
|
+
updated_at: string;
|
|
16430
|
+
};
|
|
16431
|
+
Insert: {
|
|
16432
|
+
created_at?: string;
|
|
16433
|
+
description?: string | null;
|
|
16434
|
+
id?: string;
|
|
16435
|
+
is_active?: boolean;
|
|
16436
|
+
name: string;
|
|
16437
|
+
produced_stock?: number;
|
|
16438
|
+
product_code: string;
|
|
16439
|
+
tenant_id: string;
|
|
16440
|
+
updated_at?: string;
|
|
16441
|
+
};
|
|
16442
|
+
Update: {
|
|
16443
|
+
created_at?: string;
|
|
16444
|
+
description?: string | null;
|
|
16445
|
+
id?: string;
|
|
16446
|
+
is_active?: boolean;
|
|
16447
|
+
name?: string;
|
|
16448
|
+
produced_stock?: number;
|
|
16449
|
+
product_code?: string;
|
|
16450
|
+
tenant_id?: string;
|
|
16451
|
+
updated_at?: string;
|
|
16452
|
+
};
|
|
16453
|
+
Relationships: [];
|
|
16454
|
+
};
|
|
16455
|
+
monteurs: {
|
|
16456
|
+
Row: {
|
|
16457
|
+
avatar_url: string | null;
|
|
16458
|
+
color: string | null;
|
|
16459
|
+
created_at: string;
|
|
16460
|
+
email: string | null;
|
|
16461
|
+
id: string;
|
|
16462
|
+
is_active: boolean;
|
|
16463
|
+
leave_balance_hours: number;
|
|
16464
|
+
name: string;
|
|
16465
|
+
persnr: number | null;
|
|
16466
|
+
phone: string | null;
|
|
16467
|
+
role: string;
|
|
16468
|
+
tenant_id: string;
|
|
16469
|
+
updated_at: string;
|
|
16470
|
+
user_id: string | null;
|
|
16471
|
+
};
|
|
16472
|
+
Insert: {
|
|
16473
|
+
avatar_url?: string | null;
|
|
16474
|
+
color?: string | null;
|
|
16475
|
+
created_at?: string;
|
|
16476
|
+
email?: string | null;
|
|
16477
|
+
id?: string;
|
|
16478
|
+
is_active?: boolean;
|
|
16479
|
+
leave_balance_hours?: number;
|
|
16480
|
+
name: string;
|
|
16481
|
+
persnr?: number | null;
|
|
16482
|
+
phone?: string | null;
|
|
16483
|
+
role?: string;
|
|
16484
|
+
tenant_id: string;
|
|
16485
|
+
updated_at?: string;
|
|
16486
|
+
user_id?: string | null;
|
|
16487
|
+
};
|
|
16488
|
+
Update: {
|
|
16489
|
+
avatar_url?: string | null;
|
|
16490
|
+
color?: string | null;
|
|
16491
|
+
created_at?: string;
|
|
16492
|
+
email?: string | null;
|
|
16493
|
+
id?: string;
|
|
16494
|
+
is_active?: boolean;
|
|
16495
|
+
leave_balance_hours?: number;
|
|
16496
|
+
name?: string;
|
|
16497
|
+
persnr?: number | null;
|
|
16498
|
+
phone?: string | null;
|
|
16499
|
+
role?: string;
|
|
16500
|
+
tenant_id?: string;
|
|
16501
|
+
updated_at?: string;
|
|
16502
|
+
user_id?: string | null;
|
|
16503
|
+
};
|
|
16504
|
+
Relationships: [{
|
|
16505
|
+
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
16506
|
+
columns: ["tenant_id"];
|
|
16507
|
+
isOneToOne: false;
|
|
16508
|
+
referencedRelation: "tenants";
|
|
16509
|
+
referencedColumns: ["id"];
|
|
16510
|
+
}];
|
|
16511
|
+
};
|
|
16512
|
+
nmbrs_component_mapping: {
|
|
16513
|
+
Row: {
|
|
16514
|
+
created_at: string;
|
|
16515
|
+
id: string;
|
|
16516
|
+
source_kind: string;
|
|
16517
|
+
source_value: string | null;
|
|
16518
|
+
updated_at: string;
|
|
16519
|
+
wage_code: string;
|
|
16520
|
+
};
|
|
16521
|
+
Insert: {
|
|
16522
|
+
created_at?: string;
|
|
16523
|
+
id?: string;
|
|
16524
|
+
source_kind: string;
|
|
16525
|
+
source_value?: string | null;
|
|
16526
|
+
updated_at?: string;
|
|
16527
|
+
wage_code: string;
|
|
16528
|
+
};
|
|
16529
|
+
Update: {
|
|
16530
|
+
created_at?: string;
|
|
16531
|
+
id?: string;
|
|
16532
|
+
source_kind?: string;
|
|
16533
|
+
source_value?: string | null;
|
|
16534
|
+
updated_at?: string;
|
|
16535
|
+
wage_code?: string;
|
|
16536
|
+
};
|
|
16537
|
+
Relationships: [{
|
|
16538
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
16539
|
+
columns: ["wage_code"];
|
|
16540
|
+
isOneToOne: false;
|
|
16541
|
+
referencedRelation: "nmbrs_wage_components";
|
|
16542
|
+
referencedColumns: ["code"];
|
|
16543
|
+
}];
|
|
16544
|
+
};
|
|
16545
|
+
nmbrs_employee_mapping: {
|
|
16546
|
+
Row: {
|
|
16547
|
+
active_from: string | null;
|
|
16548
|
+
active_to: string | null;
|
|
16549
|
+
contract_hours_per_week: number | null;
|
|
16550
|
+
created_at: string;
|
|
16551
|
+
hourly_wage: number | null;
|
|
16552
|
+
id: string;
|
|
16553
|
+
monteur_id: string;
|
|
16554
|
+
nmbrs_company_code: string | null;
|
|
16555
|
+
nmbrs_employee_number: string;
|
|
16556
|
+
updated_at: string;
|
|
16557
|
+
};
|
|
16558
|
+
Insert: {
|
|
16559
|
+
active_from?: string | null;
|
|
16560
|
+
active_to?: string | null;
|
|
16561
|
+
contract_hours_per_week?: number | null;
|
|
16562
|
+
created_at?: string;
|
|
16563
|
+
hourly_wage?: number | null;
|
|
16564
|
+
id?: string;
|
|
16565
|
+
monteur_id: string;
|
|
16566
|
+
nmbrs_company_code?: string | null;
|
|
16567
|
+
nmbrs_employee_number: string;
|
|
16568
|
+
updated_at?: string;
|
|
16569
|
+
};
|
|
16570
|
+
Update: {
|
|
16571
|
+
active_from?: string | null;
|
|
16572
|
+
active_to?: string | null;
|
|
16573
|
+
contract_hours_per_week?: number | null;
|
|
16574
|
+
created_at?: string;
|
|
16575
|
+
hourly_wage?: number | null;
|
|
16576
|
+
id?: string;
|
|
16577
|
+
monteur_id?: string;
|
|
16578
|
+
nmbrs_company_code?: string | null;
|
|
16579
|
+
nmbrs_employee_number?: string;
|
|
16580
|
+
updated_at?: string;
|
|
16581
|
+
};
|
|
16582
|
+
Relationships: [{
|
|
16583
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
16584
|
+
columns: ["monteur_id"];
|
|
16585
|
+
isOneToOne: true;
|
|
16586
|
+
referencedRelation: "monteurs";
|
|
16587
|
+
referencedColumns: ["id"];
|
|
16588
|
+
}];
|
|
16589
|
+
};
|
|
16590
|
+
nmbrs_export_lines: {
|
|
16591
|
+
Row: {
|
|
16592
|
+
amount: number;
|
|
16593
|
+
created_at: string;
|
|
16594
|
+
entry_date: string;
|
|
16595
|
+
hours: number;
|
|
16596
|
+
id: string;
|
|
16597
|
+
monteur_id: string;
|
|
16598
|
+
nmbrs_employee_number: string | null;
|
|
16599
|
+
notes: string | null;
|
|
16600
|
+
run_id: string;
|
|
16601
|
+
source_kind: string | null;
|
|
16602
|
+
source_ref_id: string | null;
|
|
16603
|
+
updated_at: string;
|
|
16604
|
+
wage_code: string;
|
|
16605
|
+
};
|
|
16606
|
+
Insert: {
|
|
16607
|
+
amount?: number;
|
|
16608
|
+
created_at?: string;
|
|
16609
|
+
entry_date: string;
|
|
16610
|
+
hours?: number;
|
|
16611
|
+
id?: string;
|
|
16612
|
+
monteur_id: string;
|
|
16613
|
+
nmbrs_employee_number?: string | null;
|
|
16614
|
+
notes?: string | null;
|
|
16615
|
+
run_id: string;
|
|
16616
|
+
source_kind?: string | null;
|
|
16617
|
+
source_ref_id?: string | null;
|
|
16618
|
+
updated_at?: string;
|
|
16619
|
+
wage_code: string;
|
|
16620
|
+
};
|
|
16621
|
+
Update: {
|
|
16622
|
+
amount?: number;
|
|
16623
|
+
created_at?: string;
|
|
16624
|
+
entry_date?: string;
|
|
16625
|
+
hours?: number;
|
|
16626
|
+
id?: string;
|
|
16627
|
+
monteur_id?: string;
|
|
16628
|
+
nmbrs_employee_number?: string | null;
|
|
16629
|
+
notes?: string | null;
|
|
16630
|
+
run_id?: string;
|
|
16631
|
+
source_kind?: string | null;
|
|
16632
|
+
source_ref_id?: string | null;
|
|
16633
|
+
updated_at?: string;
|
|
16634
|
+
wage_code?: string;
|
|
16635
|
+
};
|
|
16636
|
+
Relationships: [{
|
|
16637
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
16638
|
+
columns: ["monteur_id"];
|
|
16639
|
+
isOneToOne: false;
|
|
16640
|
+
referencedRelation: "monteurs";
|
|
16641
|
+
referencedColumns: ["id"];
|
|
16642
|
+
}, {
|
|
16643
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
16644
|
+
columns: ["run_id"];
|
|
16645
|
+
isOneToOne: false;
|
|
16646
|
+
referencedRelation: "nmbrs_export_runs";
|
|
16647
|
+
referencedColumns: ["id"];
|
|
16648
|
+
}, {
|
|
16649
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
16650
|
+
columns: ["wage_code"];
|
|
16651
|
+
isOneToOne: false;
|
|
16652
|
+
referencedRelation: "nmbrs_wage_components";
|
|
16653
|
+
referencedColumns: ["code"];
|
|
16654
|
+
}];
|
|
16655
|
+
};
|
|
16656
|
+
nmbrs_export_runs: {
|
|
16657
|
+
Row: {
|
|
16658
|
+
created_at: string;
|
|
16659
|
+
file_name: string | null;
|
|
16660
|
+
generated_at: string;
|
|
16661
|
+
generated_by: string | null;
|
|
16662
|
+
id: string;
|
|
16663
|
+
notes: string | null;
|
|
16664
|
+
period_end: string;
|
|
16665
|
+
period_label: string;
|
|
16666
|
+
period_start: string;
|
|
16667
|
+
status: string;
|
|
16668
|
+
total_hours: number;
|
|
16669
|
+
total_lines: number;
|
|
16670
|
+
updated_at: string;
|
|
16671
|
+
};
|
|
16672
|
+
Insert: {
|
|
16673
|
+
created_at?: string;
|
|
16674
|
+
file_name?: string | null;
|
|
16675
|
+
generated_at?: string;
|
|
16676
|
+
generated_by?: string | null;
|
|
16677
|
+
id?: string;
|
|
16678
|
+
notes?: string | null;
|
|
16679
|
+
period_end: string;
|
|
16680
|
+
period_label: string;
|
|
16681
|
+
period_start: string;
|
|
16682
|
+
status?: string;
|
|
16683
|
+
total_hours?: number;
|
|
16684
|
+
total_lines?: number;
|
|
16685
|
+
updated_at?: string;
|
|
16686
|
+
};
|
|
16687
|
+
Update: {
|
|
16688
|
+
created_at?: string;
|
|
16689
|
+
file_name?: string | null;
|
|
16690
|
+
generated_at?: string;
|
|
16691
|
+
generated_by?: string | null;
|
|
16692
|
+
id?: string;
|
|
16693
|
+
notes?: string | null;
|
|
16694
|
+
period_end?: string;
|
|
16695
|
+
period_label?: string;
|
|
16696
|
+
period_start?: string;
|
|
16697
|
+
status?: string;
|
|
16698
|
+
total_hours?: number;
|
|
16699
|
+
total_lines?: number;
|
|
16700
|
+
updated_at?: string;
|
|
16701
|
+
};
|
|
16702
|
+
Relationships: [];
|
|
16703
|
+
};
|
|
16704
|
+
nmbrs_settings: {
|
|
15349
16705
|
Row: {
|
|
15350
16706
|
created_at: string;
|
|
15351
|
-
|
|
15352
|
-
id:
|
|
15353
|
-
|
|
15354
|
-
|
|
15355
|
-
|
|
15356
|
-
|
|
15357
|
-
tenant_id: string;
|
|
16707
|
+
default_company_code: string | null;
|
|
16708
|
+
id: boolean;
|
|
16709
|
+
include_travel: boolean;
|
|
16710
|
+
overtime_threshold_daily: number;
|
|
16711
|
+
overtime_threshold_weekly: number;
|
|
16712
|
+
period_type: string;
|
|
15358
16713
|
updated_at: string;
|
|
16714
|
+
updated_by: string | null;
|
|
16715
|
+
week_start_day: number;
|
|
15359
16716
|
};
|
|
15360
16717
|
Insert: {
|
|
15361
16718
|
created_at?: string;
|
|
15362
|
-
|
|
15363
|
-
id?:
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
15368
|
-
tenant_id: string;
|
|
16719
|
+
default_company_code?: string | null;
|
|
16720
|
+
id?: boolean;
|
|
16721
|
+
include_travel?: boolean;
|
|
16722
|
+
overtime_threshold_daily?: number;
|
|
16723
|
+
overtime_threshold_weekly?: number;
|
|
16724
|
+
period_type?: string;
|
|
15369
16725
|
updated_at?: string;
|
|
16726
|
+
updated_by?: string | null;
|
|
16727
|
+
week_start_day?: number;
|
|
15370
16728
|
};
|
|
15371
16729
|
Update: {
|
|
15372
16730
|
created_at?: string;
|
|
15373
|
-
|
|
15374
|
-
id?:
|
|
15375
|
-
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15379
|
-
tenant_id?: string;
|
|
16731
|
+
default_company_code?: string | null;
|
|
16732
|
+
id?: boolean;
|
|
16733
|
+
include_travel?: boolean;
|
|
16734
|
+
overtime_threshold_daily?: number;
|
|
16735
|
+
overtime_threshold_weekly?: number;
|
|
16736
|
+
period_type?: string;
|
|
15380
16737
|
updated_at?: string;
|
|
16738
|
+
updated_by?: string | null;
|
|
16739
|
+
week_start_day?: number;
|
|
15381
16740
|
};
|
|
15382
16741
|
Relationships: [];
|
|
15383
16742
|
};
|
|
15384
|
-
|
|
16743
|
+
nmbrs_wage_components: {
|
|
15385
16744
|
Row: {
|
|
15386
|
-
|
|
15387
|
-
|
|
16745
|
+
category: string;
|
|
16746
|
+
code: string;
|
|
15388
16747
|
created_at: string;
|
|
15389
|
-
email: string | null;
|
|
15390
16748
|
id: string;
|
|
15391
16749
|
is_active: boolean;
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
phone: string | null;
|
|
15396
|
-
role: string;
|
|
15397
|
-
tenant_id: string;
|
|
16750
|
+
label: string;
|
|
16751
|
+
sort_order: number;
|
|
16752
|
+
unit: string;
|
|
15398
16753
|
updated_at: string;
|
|
15399
|
-
user_id: string | null;
|
|
15400
16754
|
};
|
|
15401
16755
|
Insert: {
|
|
15402
|
-
|
|
15403
|
-
|
|
16756
|
+
category: string;
|
|
16757
|
+
code: string;
|
|
15404
16758
|
created_at?: string;
|
|
15405
|
-
email?: string | null;
|
|
15406
16759
|
id?: string;
|
|
15407
16760
|
is_active?: boolean;
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15411
|
-
phone?: string | null;
|
|
15412
|
-
role?: string;
|
|
15413
|
-
tenant_id: string;
|
|
16761
|
+
label: string;
|
|
16762
|
+
sort_order?: number;
|
|
16763
|
+
unit: string;
|
|
15414
16764
|
updated_at?: string;
|
|
15415
|
-
user_id?: string | null;
|
|
15416
16765
|
};
|
|
15417
16766
|
Update: {
|
|
15418
|
-
|
|
15419
|
-
|
|
16767
|
+
category?: string;
|
|
16768
|
+
code?: string;
|
|
15420
16769
|
created_at?: string;
|
|
15421
|
-
email?: string | null;
|
|
15422
16770
|
id?: string;
|
|
15423
16771
|
is_active?: boolean;
|
|
15424
|
-
|
|
15425
|
-
|
|
15426
|
-
|
|
15427
|
-
phone?: string | null;
|
|
15428
|
-
role?: string;
|
|
15429
|
-
tenant_id?: string;
|
|
16772
|
+
label?: string;
|
|
16773
|
+
sort_order?: number;
|
|
16774
|
+
unit?: string;
|
|
15430
16775
|
updated_at?: string;
|
|
15431
|
-
user_id?: string | null;
|
|
15432
16776
|
};
|
|
15433
|
-
Relationships: [
|
|
15434
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
15435
|
-
columns: ["tenant_id"];
|
|
15436
|
-
isOneToOne: false;
|
|
15437
|
-
referencedRelation: "tenants";
|
|
15438
|
-
referencedColumns: ["id"];
|
|
15439
|
-
}];
|
|
16777
|
+
Relationships: [];
|
|
15440
16778
|
};
|
|
15441
16779
|
notifications: {
|
|
15442
16780
|
Row: {
|
|
@@ -16420,6 +17758,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16420
17758
|
purchase_price: number | null;
|
|
16421
17759
|
quantity: number;
|
|
16422
17760
|
sale_price: number | null;
|
|
17761
|
+
trade_item_key: string | null;
|
|
16423
17762
|
unit: string;
|
|
16424
17763
|
updated_at: string;
|
|
16425
17764
|
weight: string | null;
|
|
@@ -16442,6 +17781,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16442
17781
|
purchase_price?: number | null;
|
|
16443
17782
|
quantity?: number;
|
|
16444
17783
|
sale_price?: number | null;
|
|
17784
|
+
trade_item_key?: string | null;
|
|
16445
17785
|
unit?: string;
|
|
16446
17786
|
updated_at?: string;
|
|
16447
17787
|
weight?: string | null;
|
|
@@ -16464,6 +17804,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16464
17804
|
purchase_price?: number | null;
|
|
16465
17805
|
quantity?: number;
|
|
16466
17806
|
sale_price?: number | null;
|
|
17807
|
+
trade_item_key?: string | null;
|
|
16467
17808
|
unit?: string;
|
|
16468
17809
|
updated_at?: string;
|
|
16469
17810
|
weight?: string | null;
|
|
@@ -17283,6 +18624,102 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
17283
18624
|
};
|
|
17284
18625
|
Relationships: [];
|
|
17285
18626
|
};
|
|
18627
|
+
stock_import_runs: {
|
|
18628
|
+
Row: {
|
|
18629
|
+
connection_id: string | null;
|
|
18630
|
+
created_at: string;
|
|
18631
|
+
created_rows: number;
|
|
18632
|
+
errors: import("../integrations/supabase/types").Json;
|
|
18633
|
+
filename: string | null;
|
|
18634
|
+
id: string;
|
|
18635
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
18636
|
+
skipped_rows: number;
|
|
18637
|
+
total_rows: number;
|
|
18638
|
+
updated_rows: number;
|
|
18639
|
+
user_id: string;
|
|
18640
|
+
};
|
|
18641
|
+
Insert: {
|
|
18642
|
+
connection_id?: string | null;
|
|
18643
|
+
created_at?: string;
|
|
18644
|
+
created_rows?: number;
|
|
18645
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
18646
|
+
filename?: string | null;
|
|
18647
|
+
id?: string;
|
|
18648
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
18649
|
+
skipped_rows?: number;
|
|
18650
|
+
total_rows?: number;
|
|
18651
|
+
updated_rows?: number;
|
|
18652
|
+
user_id: string;
|
|
18653
|
+
};
|
|
18654
|
+
Update: {
|
|
18655
|
+
connection_id?: string | null;
|
|
18656
|
+
created_at?: string;
|
|
18657
|
+
created_rows?: number;
|
|
18658
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
18659
|
+
filename?: string | null;
|
|
18660
|
+
id?: string;
|
|
18661
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
18662
|
+
skipped_rows?: number;
|
|
18663
|
+
total_rows?: number;
|
|
18664
|
+
updated_rows?: number;
|
|
18665
|
+
user_id?: string;
|
|
18666
|
+
};
|
|
18667
|
+
Relationships: [];
|
|
18668
|
+
};
|
|
18669
|
+
stock_mutation_log: {
|
|
18670
|
+
Row: {
|
|
18671
|
+
connection_id: string | null;
|
|
18672
|
+
created_at: string;
|
|
18673
|
+
created_by: string | null;
|
|
18674
|
+
id: string;
|
|
18675
|
+
mutation_type: string;
|
|
18676
|
+
order_id: string | null;
|
|
18677
|
+
order_item_id: string | null;
|
|
18678
|
+
order_source: string | null;
|
|
18679
|
+
physical_after: number | null;
|
|
18680
|
+
physical_before: number | null;
|
|
18681
|
+
qty_delta: number;
|
|
18682
|
+
reason: string | null;
|
|
18683
|
+
reserved_after: number | null;
|
|
18684
|
+
reserved_before: number | null;
|
|
18685
|
+
trade_item_key: string;
|
|
18686
|
+
};
|
|
18687
|
+
Insert: {
|
|
18688
|
+
connection_id?: string | null;
|
|
18689
|
+
created_at?: string;
|
|
18690
|
+
created_by?: string | null;
|
|
18691
|
+
id?: string;
|
|
18692
|
+
mutation_type: string;
|
|
18693
|
+
order_id?: string | null;
|
|
18694
|
+
order_item_id?: string | null;
|
|
18695
|
+
order_source?: string | null;
|
|
18696
|
+
physical_after?: number | null;
|
|
18697
|
+
physical_before?: number | null;
|
|
18698
|
+
qty_delta: number;
|
|
18699
|
+
reason?: string | null;
|
|
18700
|
+
reserved_after?: number | null;
|
|
18701
|
+
reserved_before?: number | null;
|
|
18702
|
+
trade_item_key: string;
|
|
18703
|
+
};
|
|
18704
|
+
Update: {
|
|
18705
|
+
connection_id?: string | null;
|
|
18706
|
+
created_at?: string;
|
|
18707
|
+
created_by?: string | null;
|
|
18708
|
+
id?: string;
|
|
18709
|
+
mutation_type?: string;
|
|
18710
|
+
order_id?: string | null;
|
|
18711
|
+
order_item_id?: string | null;
|
|
18712
|
+
order_source?: string | null;
|
|
18713
|
+
physical_after?: number | null;
|
|
18714
|
+
physical_before?: number | null;
|
|
18715
|
+
qty_delta?: number;
|
|
18716
|
+
reason?: string | null;
|
|
18717
|
+
reserved_after?: number | null;
|
|
18718
|
+
reserved_before?: number | null;
|
|
18719
|
+
trade_item_key?: string;
|
|
18720
|
+
};
|
|
18721
|
+
Relationships: [];
|
|
18722
|
+
};
|
|
17286
18723
|
supplier_products: {
|
|
17287
18724
|
Row: {
|
|
17288
18725
|
article_number: string | null;
|
|
@@ -18860,6 +20297,44 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18860
20297
|
};
|
|
18861
20298
|
Relationships: [];
|
|
18862
20299
|
};
|
|
20300
|
+
floriday_customer_discounts: {
|
|
20301
|
+
Row: {
|
|
20302
|
+
base_price: number | null;
|
|
20303
|
+
buyer_organization_id: string | null;
|
|
20304
|
+
currency: string | null;
|
|
20305
|
+
discount_type: string | null;
|
|
20306
|
+
discount_value: number | null;
|
|
20307
|
+
min_quantity: number | null;
|
|
20308
|
+
net_price: number | null;
|
|
20309
|
+
product_group_id: string | null;
|
|
20310
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
20311
|
+
source: string | null;
|
|
20312
|
+
source_id: string | null;
|
|
20313
|
+
trade_item_id: string | null;
|
|
20314
|
+
valid_from: string | null;
|
|
20315
|
+
valid_until: string | null;
|
|
20316
|
+
};
|
|
20317
|
+
Relationships: [];
|
|
20318
|
+
};
|
|
20319
|
+
local_customer_discounts: {
|
|
20320
|
+
Row: {
|
|
20321
|
+
base_price: number | null;
|
|
20322
|
+
currency: string | null;
|
|
20323
|
+
customer_id: string | null;
|
|
20324
|
+
discount_type: string | null;
|
|
20325
|
+
discount_value: number | null;
|
|
20326
|
+
min_quantity: number | null;
|
|
20327
|
+
net_price: number | null;
|
|
20328
|
+
product_category_id: string | null;
|
|
20329
|
+
product_id: string | null;
|
|
20330
|
+
product_name: string | null;
|
|
20331
|
+
source: string | null;
|
|
20332
|
+
source_id: string | null;
|
|
20333
|
+
valid_from: string | null;
|
|
20334
|
+
valid_until: string | null;
|
|
20335
|
+
};
|
|
20336
|
+
Relationships: [];
|
|
20337
|
+
};
|
|
18863
20338
|
manufacture_product_possible_stock_view: {
|
|
18864
20339
|
Row: {
|
|
18865
20340
|
component_count: number | null;
|
|
@@ -19144,6 +20619,54 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19144
20619
|
};
|
|
19145
20620
|
Returns: number;
|
|
19146
20621
|
};
|
|
20622
|
+
afh_city_code: {
|
|
20623
|
+
Args: {
|
|
20624
|
+
_city: string;
|
|
20625
|
+
_country: string;
|
|
20626
|
+
};
|
|
20627
|
+
Returns: string;
|
|
20628
|
+
};
|
|
20629
|
+
afh_normalize_country: {
|
|
20630
|
+
Args: {
|
|
20631
|
+
_raw: string;
|
|
20632
|
+
};
|
|
20633
|
+
Returns: string;
|
|
20634
|
+
};
|
|
20635
|
+
afh_normalize_nl_province: {
|
|
20636
|
+
Args: {
|
|
20637
|
+
_raw: string;
|
|
20638
|
+
};
|
|
20639
|
+
Returns: string;
|
|
20640
|
+
};
|
|
20641
|
+
afh_subtract_workdays: {
|
|
20642
|
+
Args: {
|
|
20643
|
+
_date: string;
|
|
20644
|
+
_days: number;
|
|
20645
|
+
};
|
|
20646
|
+
Returns: string;
|
|
20647
|
+
};
|
|
20648
|
+
apply_stock_consumption: {
|
|
20649
|
+
Args: {
|
|
20650
|
+
p_order_id: string;
|
|
20651
|
+
p_order_item_id: string;
|
|
20652
|
+
p_qty: number;
|
|
20653
|
+
p_reason: string;
|
|
20654
|
+
p_source: string;
|
|
20655
|
+
p_trade_item_key: string;
|
|
20656
|
+
};
|
|
20657
|
+
Returns: undefined;
|
|
20658
|
+
};
|
|
20659
|
+
apply_stock_reservation: {
|
|
20660
|
+
Args: {
|
|
20661
|
+
p_order_id: string;
|
|
20662
|
+
p_order_item_id: string;
|
|
20663
|
+
p_qty: number;
|
|
20664
|
+
p_reason: string;
|
|
20665
|
+
p_source: string;
|
|
20666
|
+
p_trade_item_key: string;
|
|
20667
|
+
};
|
|
20668
|
+
Returns: undefined;
|
|
20669
|
+
};
|
|
19147
20670
|
assign_cart_numbers: {
|
|
19148
20671
|
Args: {
|
|
19149
20672
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -19167,12 +20690,40 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19167
20690
|
order_number: string;
|
|
19168
20691
|
}[];
|
|
19169
20692
|
};
|
|
20693
|
+
backfill_open_order_reservations: {
|
|
20694
|
+
Args: never;
|
|
20695
|
+
Returns: {
|
|
20696
|
+
processed_items: number;
|
|
20697
|
+
}[];
|
|
20698
|
+
};
|
|
19170
20699
|
call_exact_route: {
|
|
19171
20700
|
Args: {
|
|
19172
20701
|
path: string;
|
|
19173
20702
|
};
|
|
19174
20703
|
Returns: number;
|
|
19175
20704
|
};
|
|
20705
|
+
check_offer_product_available_stock: {
|
|
20706
|
+
Args: {
|
|
20707
|
+
p_campaign_product_id: string;
|
|
20708
|
+
p_code: string;
|
|
20709
|
+
p_needed_qty?: number;
|
|
20710
|
+
p_product_name?: string;
|
|
20711
|
+
};
|
|
20712
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
20713
|
+
};
|
|
20714
|
+
check_trade_item_available_stock: {
|
|
20715
|
+
Args: {
|
|
20716
|
+
p_connection_id?: string;
|
|
20717
|
+
p_context?: string;
|
|
20718
|
+
p_needed_qty?: number;
|
|
20719
|
+
p_order_id?: string;
|
|
20720
|
+
p_order_item_id?: string;
|
|
20721
|
+
p_owner_id?: string;
|
|
20722
|
+
p_product_name?: string;
|
|
20723
|
+
p_trade_item_key: string;
|
|
20724
|
+
};
|
|
20725
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
20726
|
+
};
|
|
19176
20727
|
cleanup_old_bookings: {
|
|
19177
20728
|
Args: never;
|
|
19178
20729
|
Returns: number;
|
|
@@ -19216,6 +20767,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19216
20767
|
table_name: string;
|
|
19217
20768
|
}[];
|
|
19218
20769
|
};
|
|
20770
|
+
dispatch_carrier_signups_sql: {
|
|
20771
|
+
Args: {
|
|
20772
|
+
_catchup?: string;
|
|
20773
|
+
};
|
|
20774
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
20775
|
+
};
|
|
19219
20776
|
email_auth_decrypt: {
|
|
19220
20777
|
Args: {
|
|
19221
20778
|
cipher: string;
|
|
@@ -19251,6 +20808,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19251
20808
|
status: string;
|
|
19252
20809
|
}[];
|
|
19253
20810
|
};
|
|
20811
|
+
ensure_trade_item_stock_row: {
|
|
20812
|
+
Args: {
|
|
20813
|
+
p_key: string;
|
|
20814
|
+
};
|
|
20815
|
+
Returns: undefined;
|
|
20816
|
+
};
|
|
19254
20817
|
ensure_user_tenant: {
|
|
19255
20818
|
Args: never;
|
|
19256
20819
|
Returns: string;
|
|
@@ -19288,6 +20851,31 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19288
20851
|
};
|
|
19289
20852
|
Returns: boolean;
|
|
19290
20853
|
};
|
|
20854
|
+
find_trade_item_key: {
|
|
20855
|
+
Args: {
|
|
20856
|
+
p_barcode: string;
|
|
20857
|
+
p_name: string;
|
|
20858
|
+
p_product_id: string;
|
|
20859
|
+
};
|
|
20860
|
+
Returns: string;
|
|
20861
|
+
};
|
|
20862
|
+
floriday_effective_price: {
|
|
20863
|
+
Args: {
|
|
20864
|
+
_buyer_id: string;
|
|
20865
|
+
_on_date?: string;
|
|
20866
|
+
_quantity?: number;
|
|
20867
|
+
_trade_item_id: string;
|
|
20868
|
+
};
|
|
20869
|
+
Returns: {
|
|
20870
|
+
base_price: number;
|
|
20871
|
+
currency: string;
|
|
20872
|
+
discount_type: string;
|
|
20873
|
+
discount_value: number;
|
|
20874
|
+
net_price: number;
|
|
20875
|
+
source: string;
|
|
20876
|
+
source_id: string;
|
|
20877
|
+
}[];
|
|
20878
|
+
};
|
|
19291
20879
|
format_cart_number: {
|
|
19292
20880
|
Args: {
|
|
19293
20881
|
p_pick_date: string;
|
|
@@ -19308,6 +20896,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19308
20896
|
preferred_warehouse_name: string;
|
|
19309
20897
|
}[];
|
|
19310
20898
|
};
|
|
20899
|
+
get_active_floriday_context: {
|
|
20900
|
+
Args: never;
|
|
20901
|
+
Returns: {
|
|
20902
|
+
connection_id: string;
|
|
20903
|
+
user_id: string;
|
|
20904
|
+
}[];
|
|
20905
|
+
};
|
|
19311
20906
|
get_active_twinfield_public: {
|
|
19312
20907
|
Args: never;
|
|
19313
20908
|
Returns: {
|
|
@@ -19410,6 +21005,18 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19410
21005
|
};
|
|
19411
21006
|
Returns: import("../integrations/supabase/types").Json;
|
|
19412
21007
|
};
|
|
21008
|
+
get_offer_recipient_by_code: {
|
|
21009
|
+
Args: {
|
|
21010
|
+
p_code: string;
|
|
21011
|
+
};
|
|
21012
|
+
Returns: {
|
|
21013
|
+
campaign_id: string;
|
|
21014
|
+
clicked_at: string;
|
|
21015
|
+
customer_id: string;
|
|
21016
|
+
id: string;
|
|
21017
|
+
ordered_at: string;
|
|
21018
|
+
}[];
|
|
21019
|
+
};
|
|
19413
21020
|
get_or_assign_floriday_order_number: {
|
|
19414
21021
|
Args: {
|
|
19415
21022
|
p_floriday_id: string;
|
|
@@ -19462,6 +21069,34 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19462
21069
|
Args: never;
|
|
19463
21070
|
Returns: boolean;
|
|
19464
21071
|
};
|
|
21072
|
+
local_effective_price: {
|
|
21073
|
+
Args: {
|
|
21074
|
+
_customer_id: string;
|
|
21075
|
+
_on_date?: string;
|
|
21076
|
+
_product_id: string;
|
|
21077
|
+
_quantity?: number;
|
|
21078
|
+
};
|
|
21079
|
+
Returns: {
|
|
21080
|
+
currency: string;
|
|
21081
|
+
discount_type: string;
|
|
21082
|
+
discount_value: number;
|
|
21083
|
+
net_price: number;
|
|
21084
|
+
source: string;
|
|
21085
|
+
source_id: string;
|
|
21086
|
+
}[];
|
|
21087
|
+
};
|
|
21088
|
+
mark_offer_clicked: {
|
|
21089
|
+
Args: {
|
|
21090
|
+
p_code: string;
|
|
21091
|
+
};
|
|
21092
|
+
Returns: undefined;
|
|
21093
|
+
};
|
|
21094
|
+
mark_offer_ordered: {
|
|
21095
|
+
Args: {
|
|
21096
|
+
p_code: string;
|
|
21097
|
+
};
|
|
21098
|
+
Returns: undefined;
|
|
21099
|
+
};
|
|
19465
21100
|
next_order_number: {
|
|
19466
21101
|
Args: {
|
|
19467
21102
|
p_prefix: string;
|
|
@@ -19481,6 +21116,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19481
21116
|
};
|
|
19482
21117
|
Returns: string;
|
|
19483
21118
|
};
|
|
21119
|
+
offer_recipient_matches: {
|
|
21120
|
+
Args: {
|
|
21121
|
+
_campaign_id: string;
|
|
21122
|
+
_customer_id: string;
|
|
21123
|
+
_recipient_id: string;
|
|
21124
|
+
};
|
|
21125
|
+
Returns: boolean;
|
|
21126
|
+
};
|
|
19484
21127
|
pickstation_get_orders_raw: {
|
|
19485
21128
|
Args: never;
|
|
19486
21129
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -19508,6 +21151,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19508
21151
|
};
|
|
19509
21152
|
Returns: undefined;
|
|
19510
21153
|
};
|
|
21154
|
+
promote_trade_item_key: {
|
|
21155
|
+
Args: {
|
|
21156
|
+
p_new: string;
|
|
21157
|
+
p_old: string;
|
|
21158
|
+
};
|
|
21159
|
+
Returns: undefined;
|
|
21160
|
+
};
|
|
19511
21161
|
refresh_floricode_derived_code_lists: {
|
|
19512
21162
|
Args: never;
|
|
19513
21163
|
Returns: {
|