@flowselections/floriday-verkoop-module 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/CreateOrderPage.js +217 -189
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +3 -4
- package/dist-lib/components/verkoop/SearchableSelect.d.ts +19 -0
- package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -0
- package/dist-lib/components/verkoop/SearchableSelect.js +21 -0
- package/dist-lib/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/create-order.functions.d.ts +75223 -0
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -0
- package/dist-lib/lib/create-order.functions.js +188 -0
- package/dist-lib/lib/floriday-public.functions.d.ts +5775 -0
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +4125 -0
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.d.ts +2760 -285
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +885 -60
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.js +9 -2
- package/package.json +1 -1
|
@@ -714,6 +714,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
714
714
|
notes: string | null;
|
|
715
715
|
performed_at: string;
|
|
716
716
|
rescheduled_count: number;
|
|
717
|
+
stock_consumed_at: string | null;
|
|
717
718
|
total_carts: number;
|
|
718
719
|
updated_at: string;
|
|
719
720
|
user_id: string;
|
|
@@ -727,6 +728,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
727
728
|
notes?: string | null;
|
|
728
729
|
performed_at?: string;
|
|
729
730
|
rescheduled_count?: number;
|
|
731
|
+
stock_consumed_at?: string | null;
|
|
730
732
|
total_carts?: number;
|
|
731
733
|
updated_at?: string;
|
|
732
734
|
user_id: string;
|
|
@@ -740,6 +742,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
740
742
|
notes?: string | null;
|
|
741
743
|
performed_at?: string;
|
|
742
744
|
rescheduled_count?: number;
|
|
745
|
+
stock_consumed_at?: string | null;
|
|
743
746
|
total_carts?: number;
|
|
744
747
|
updated_at?: string;
|
|
745
748
|
user_id?: string;
|
|
@@ -3620,6 +3623,51 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
3620
3623
|
referencedColumns: ["id"];
|
|
3621
3624
|
}];
|
|
3622
3625
|
};
|
|
3626
|
+
floriday_continuous_stock_queue: {
|
|
3627
|
+
Row: {
|
|
3628
|
+
attempts: number;
|
|
3629
|
+
connection_id: string;
|
|
3630
|
+
created_at: string;
|
|
3631
|
+
gateway_attempt_id: string | null;
|
|
3632
|
+
id: string;
|
|
3633
|
+
last_error: string | null;
|
|
3634
|
+
number_of_pieces: number;
|
|
3635
|
+
sent_at: string | null;
|
|
3636
|
+
status: string;
|
|
3637
|
+
trade_item_id: string;
|
|
3638
|
+
updated_at: string;
|
|
3639
|
+
user_id: string;
|
|
3640
|
+
};
|
|
3641
|
+
Insert: {
|
|
3642
|
+
attempts?: number;
|
|
3643
|
+
connection_id: string;
|
|
3644
|
+
created_at?: string;
|
|
3645
|
+
gateway_attempt_id?: string | null;
|
|
3646
|
+
id?: string;
|
|
3647
|
+
last_error?: string | null;
|
|
3648
|
+
number_of_pieces?: number;
|
|
3649
|
+
sent_at?: string | null;
|
|
3650
|
+
status?: string;
|
|
3651
|
+
trade_item_id: string;
|
|
3652
|
+
updated_at?: string;
|
|
3653
|
+
user_id: string;
|
|
3654
|
+
};
|
|
3655
|
+
Update: {
|
|
3656
|
+
attempts?: number;
|
|
3657
|
+
connection_id?: string;
|
|
3658
|
+
created_at?: string;
|
|
3659
|
+
gateway_attempt_id?: string | null;
|
|
3660
|
+
id?: string;
|
|
3661
|
+
last_error?: string | null;
|
|
3662
|
+
number_of_pieces?: number;
|
|
3663
|
+
sent_at?: string | null;
|
|
3664
|
+
status?: string;
|
|
3665
|
+
trade_item_id?: string;
|
|
3666
|
+
updated_at?: string;
|
|
3667
|
+
user_id?: string;
|
|
3668
|
+
};
|
|
3669
|
+
Relationships: [];
|
|
3670
|
+
};
|
|
3623
3671
|
floriday_contract_trade_item_groups_cache: {
|
|
3624
3672
|
Row: {
|
|
3625
3673
|
connection_id: string;
|
|
@@ -5009,6 +5057,204 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
5009
5057
|
};
|
|
5010
5058
|
Relationships: [];
|
|
5011
5059
|
};
|
|
5060
|
+
local_customer_agreements: {
|
|
5061
|
+
Row: {
|
|
5062
|
+
base_price: number | null;
|
|
5063
|
+
created_at: string;
|
|
5064
|
+
currency: string;
|
|
5065
|
+
customer_id: string;
|
|
5066
|
+
id: string;
|
|
5067
|
+
min_quantity: number;
|
|
5068
|
+
net_price: number;
|
|
5069
|
+
notes: string | null;
|
|
5070
|
+
product_category_id: string | null;
|
|
5071
|
+
product_id: string | null;
|
|
5072
|
+
updated_at: string;
|
|
5073
|
+
valid_from: string | null;
|
|
5074
|
+
valid_until: string | null;
|
|
5075
|
+
};
|
|
5076
|
+
Insert: {
|
|
5077
|
+
base_price?: number | null;
|
|
5078
|
+
created_at?: string;
|
|
5079
|
+
currency?: string;
|
|
5080
|
+
customer_id: string;
|
|
5081
|
+
id?: string;
|
|
5082
|
+
min_quantity?: number;
|
|
5083
|
+
net_price: number;
|
|
5084
|
+
notes?: string | null;
|
|
5085
|
+
product_category_id?: string | null;
|
|
5086
|
+
product_id?: string | null;
|
|
5087
|
+
updated_at?: string;
|
|
5088
|
+
valid_from?: string | null;
|
|
5089
|
+
valid_until?: string | null;
|
|
5090
|
+
};
|
|
5091
|
+
Update: {
|
|
5092
|
+
base_price?: number | null;
|
|
5093
|
+
created_at?: string;
|
|
5094
|
+
currency?: string;
|
|
5095
|
+
customer_id?: string;
|
|
5096
|
+
id?: string;
|
|
5097
|
+
min_quantity?: number;
|
|
5098
|
+
net_price?: number;
|
|
5099
|
+
notes?: string | null;
|
|
5100
|
+
product_category_id?: string | null;
|
|
5101
|
+
product_id?: string | null;
|
|
5102
|
+
updated_at?: string;
|
|
5103
|
+
valid_from?: string | null;
|
|
5104
|
+
valid_until?: string | null;
|
|
5105
|
+
};
|
|
5106
|
+
Relationships: [{
|
|
5107
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
5108
|
+
columns: ["customer_id"];
|
|
5109
|
+
isOneToOne: false;
|
|
5110
|
+
referencedRelation: "customers";
|
|
5111
|
+
referencedColumns: ["id"];
|
|
5112
|
+
}, {
|
|
5113
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
5114
|
+
columns: ["product_category_id"];
|
|
5115
|
+
isOneToOne: false;
|
|
5116
|
+
referencedRelation: "product_categories";
|
|
5117
|
+
referencedColumns: ["id"];
|
|
5118
|
+
}, {
|
|
5119
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
5120
|
+
columns: ["product_id"];
|
|
5121
|
+
isOneToOne: false;
|
|
5122
|
+
referencedRelation: "products";
|
|
5123
|
+
referencedColumns: ["id"];
|
|
5124
|
+
}];
|
|
5125
|
+
};
|
|
5126
|
+
local_customer_price_groups: {
|
|
5127
|
+
Row: {
|
|
5128
|
+
created_at: string;
|
|
5129
|
+
currency: string;
|
|
5130
|
+
customer_id: string;
|
|
5131
|
+
discount_type: string;
|
|
5132
|
+
discount_value: number;
|
|
5133
|
+
id: string;
|
|
5134
|
+
min_quantity: number;
|
|
5135
|
+
notes: string | null;
|
|
5136
|
+
product_category_id: string | null;
|
|
5137
|
+
product_id: string | null;
|
|
5138
|
+
updated_at: string;
|
|
5139
|
+
valid_from: string | null;
|
|
5140
|
+
valid_until: string | null;
|
|
5141
|
+
};
|
|
5142
|
+
Insert: {
|
|
5143
|
+
created_at?: string;
|
|
5144
|
+
currency?: string;
|
|
5145
|
+
customer_id: string;
|
|
5146
|
+
discount_type: string;
|
|
5147
|
+
discount_value: number;
|
|
5148
|
+
id?: string;
|
|
5149
|
+
min_quantity?: number;
|
|
5150
|
+
notes?: string | null;
|
|
5151
|
+
product_category_id?: string | null;
|
|
5152
|
+
product_id?: string | null;
|
|
5153
|
+
updated_at?: string;
|
|
5154
|
+
valid_from?: string | null;
|
|
5155
|
+
valid_until?: string | null;
|
|
5156
|
+
};
|
|
5157
|
+
Update: {
|
|
5158
|
+
created_at?: string;
|
|
5159
|
+
currency?: string;
|
|
5160
|
+
customer_id?: string;
|
|
5161
|
+
discount_type?: string;
|
|
5162
|
+
discount_value?: number;
|
|
5163
|
+
id?: string;
|
|
5164
|
+
min_quantity?: number;
|
|
5165
|
+
notes?: string | null;
|
|
5166
|
+
product_category_id?: string | null;
|
|
5167
|
+
product_id?: string | null;
|
|
5168
|
+
updated_at?: string;
|
|
5169
|
+
valid_from?: string | null;
|
|
5170
|
+
valid_until?: string | null;
|
|
5171
|
+
};
|
|
5172
|
+
Relationships: [{
|
|
5173
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
5174
|
+
columns: ["customer_id"];
|
|
5175
|
+
isOneToOne: false;
|
|
5176
|
+
referencedRelation: "customers";
|
|
5177
|
+
referencedColumns: ["id"];
|
|
5178
|
+
}, {
|
|
5179
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
5180
|
+
columns: ["product_category_id"];
|
|
5181
|
+
isOneToOne: false;
|
|
5182
|
+
referencedRelation: "product_categories";
|
|
5183
|
+
referencedColumns: ["id"];
|
|
5184
|
+
}, {
|
|
5185
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
5186
|
+
columns: ["product_id"];
|
|
5187
|
+
isOneToOne: false;
|
|
5188
|
+
referencedRelation: "products";
|
|
5189
|
+
referencedColumns: ["id"];
|
|
5190
|
+
}];
|
|
5191
|
+
};
|
|
5192
|
+
local_customer_sales_strategies: {
|
|
5193
|
+
Row: {
|
|
5194
|
+
created_at: string;
|
|
5195
|
+
currency: string;
|
|
5196
|
+
customer_id: string;
|
|
5197
|
+
discount_type: string;
|
|
5198
|
+
discount_value: number;
|
|
5199
|
+
id: string;
|
|
5200
|
+
min_quantity: number;
|
|
5201
|
+
notes: string | null;
|
|
5202
|
+
product_category_id: string | null;
|
|
5203
|
+
product_id: string | null;
|
|
5204
|
+
updated_at: string;
|
|
5205
|
+
valid_from: string | null;
|
|
5206
|
+
valid_until: string | null;
|
|
5207
|
+
};
|
|
5208
|
+
Insert: {
|
|
5209
|
+
created_at?: string;
|
|
5210
|
+
currency?: string;
|
|
5211
|
+
customer_id: string;
|
|
5212
|
+
discount_type: string;
|
|
5213
|
+
discount_value: number;
|
|
5214
|
+
id?: string;
|
|
5215
|
+
min_quantity?: number;
|
|
5216
|
+
notes?: string | null;
|
|
5217
|
+
product_category_id?: string | null;
|
|
5218
|
+
product_id?: string | null;
|
|
5219
|
+
updated_at?: string;
|
|
5220
|
+
valid_from?: string | null;
|
|
5221
|
+
valid_until?: string | null;
|
|
5222
|
+
};
|
|
5223
|
+
Update: {
|
|
5224
|
+
created_at?: string;
|
|
5225
|
+
currency?: string;
|
|
5226
|
+
customer_id?: string;
|
|
5227
|
+
discount_type?: string;
|
|
5228
|
+
discount_value?: number;
|
|
5229
|
+
id?: string;
|
|
5230
|
+
min_quantity?: number;
|
|
5231
|
+
notes?: string | null;
|
|
5232
|
+
product_category_id?: string | null;
|
|
5233
|
+
product_id?: string | null;
|
|
5234
|
+
updated_at?: string;
|
|
5235
|
+
valid_from?: string | null;
|
|
5236
|
+
valid_until?: string | null;
|
|
5237
|
+
};
|
|
5238
|
+
Relationships: [{
|
|
5239
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
5240
|
+
columns: ["customer_id"];
|
|
5241
|
+
isOneToOne: false;
|
|
5242
|
+
referencedRelation: "customers";
|
|
5243
|
+
referencedColumns: ["id"];
|
|
5244
|
+
}, {
|
|
5245
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
5246
|
+
columns: ["product_category_id"];
|
|
5247
|
+
isOneToOne: false;
|
|
5248
|
+
referencedRelation: "product_categories";
|
|
5249
|
+
referencedColumns: ["id"];
|
|
5250
|
+
}, {
|
|
5251
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
5252
|
+
columns: ["product_id"];
|
|
5253
|
+
isOneToOne: false;
|
|
5254
|
+
referencedRelation: "products";
|
|
5255
|
+
referencedColumns: ["id"];
|
|
5256
|
+
}];
|
|
5257
|
+
};
|
|
5012
5258
|
locations: {
|
|
5013
5259
|
Row: {
|
|
5014
5260
|
created_at: string;
|
|
@@ -5516,6 +5762,273 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
5516
5762
|
referencedColumns: ["id"];
|
|
5517
5763
|
}];
|
|
5518
5764
|
};
|
|
5765
|
+
nmbrs_component_mapping: {
|
|
5766
|
+
Row: {
|
|
5767
|
+
created_at: string;
|
|
5768
|
+
id: string;
|
|
5769
|
+
source_kind: string;
|
|
5770
|
+
source_value: string | null;
|
|
5771
|
+
updated_at: string;
|
|
5772
|
+
wage_code: string;
|
|
5773
|
+
};
|
|
5774
|
+
Insert: {
|
|
5775
|
+
created_at?: string;
|
|
5776
|
+
id?: string;
|
|
5777
|
+
source_kind: string;
|
|
5778
|
+
source_value?: string | null;
|
|
5779
|
+
updated_at?: string;
|
|
5780
|
+
wage_code: string;
|
|
5781
|
+
};
|
|
5782
|
+
Update: {
|
|
5783
|
+
created_at?: string;
|
|
5784
|
+
id?: string;
|
|
5785
|
+
source_kind?: string;
|
|
5786
|
+
source_value?: string | null;
|
|
5787
|
+
updated_at?: string;
|
|
5788
|
+
wage_code?: string;
|
|
5789
|
+
};
|
|
5790
|
+
Relationships: [{
|
|
5791
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
5792
|
+
columns: ["wage_code"];
|
|
5793
|
+
isOneToOne: false;
|
|
5794
|
+
referencedRelation: "nmbrs_wage_components";
|
|
5795
|
+
referencedColumns: ["code"];
|
|
5796
|
+
}];
|
|
5797
|
+
};
|
|
5798
|
+
nmbrs_employee_mapping: {
|
|
5799
|
+
Row: {
|
|
5800
|
+
active_from: string | null;
|
|
5801
|
+
active_to: string | null;
|
|
5802
|
+
contract_hours_per_week: number | null;
|
|
5803
|
+
created_at: string;
|
|
5804
|
+
hourly_wage: number | null;
|
|
5805
|
+
id: string;
|
|
5806
|
+
monteur_id: string;
|
|
5807
|
+
nmbrs_company_code: string | null;
|
|
5808
|
+
nmbrs_employee_number: string;
|
|
5809
|
+
updated_at: string;
|
|
5810
|
+
};
|
|
5811
|
+
Insert: {
|
|
5812
|
+
active_from?: string | null;
|
|
5813
|
+
active_to?: string | null;
|
|
5814
|
+
contract_hours_per_week?: number | null;
|
|
5815
|
+
created_at?: string;
|
|
5816
|
+
hourly_wage?: number | null;
|
|
5817
|
+
id?: string;
|
|
5818
|
+
monteur_id: string;
|
|
5819
|
+
nmbrs_company_code?: string | null;
|
|
5820
|
+
nmbrs_employee_number: string;
|
|
5821
|
+
updated_at?: string;
|
|
5822
|
+
};
|
|
5823
|
+
Update: {
|
|
5824
|
+
active_from?: string | null;
|
|
5825
|
+
active_to?: string | null;
|
|
5826
|
+
contract_hours_per_week?: number | null;
|
|
5827
|
+
created_at?: string;
|
|
5828
|
+
hourly_wage?: number | null;
|
|
5829
|
+
id?: string;
|
|
5830
|
+
monteur_id?: string;
|
|
5831
|
+
nmbrs_company_code?: string | null;
|
|
5832
|
+
nmbrs_employee_number?: string;
|
|
5833
|
+
updated_at?: string;
|
|
5834
|
+
};
|
|
5835
|
+
Relationships: [{
|
|
5836
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
5837
|
+
columns: ["monteur_id"];
|
|
5838
|
+
isOneToOne: true;
|
|
5839
|
+
referencedRelation: "monteurs";
|
|
5840
|
+
referencedColumns: ["id"];
|
|
5841
|
+
}];
|
|
5842
|
+
};
|
|
5843
|
+
nmbrs_export_lines: {
|
|
5844
|
+
Row: {
|
|
5845
|
+
amount: number;
|
|
5846
|
+
created_at: string;
|
|
5847
|
+
entry_date: string;
|
|
5848
|
+
hours: number;
|
|
5849
|
+
id: string;
|
|
5850
|
+
monteur_id: string;
|
|
5851
|
+
nmbrs_employee_number: string | null;
|
|
5852
|
+
notes: string | null;
|
|
5853
|
+
run_id: string;
|
|
5854
|
+
source_kind: string | null;
|
|
5855
|
+
source_ref_id: string | null;
|
|
5856
|
+
updated_at: string;
|
|
5857
|
+
wage_code: string;
|
|
5858
|
+
};
|
|
5859
|
+
Insert: {
|
|
5860
|
+
amount?: number;
|
|
5861
|
+
created_at?: string;
|
|
5862
|
+
entry_date: string;
|
|
5863
|
+
hours?: number;
|
|
5864
|
+
id?: string;
|
|
5865
|
+
monteur_id: string;
|
|
5866
|
+
nmbrs_employee_number?: string | null;
|
|
5867
|
+
notes?: string | null;
|
|
5868
|
+
run_id: string;
|
|
5869
|
+
source_kind?: string | null;
|
|
5870
|
+
source_ref_id?: string | null;
|
|
5871
|
+
updated_at?: string;
|
|
5872
|
+
wage_code: string;
|
|
5873
|
+
};
|
|
5874
|
+
Update: {
|
|
5875
|
+
amount?: number;
|
|
5876
|
+
created_at?: string;
|
|
5877
|
+
entry_date?: string;
|
|
5878
|
+
hours?: number;
|
|
5879
|
+
id?: string;
|
|
5880
|
+
monteur_id?: string;
|
|
5881
|
+
nmbrs_employee_number?: string | null;
|
|
5882
|
+
notes?: string | null;
|
|
5883
|
+
run_id?: string;
|
|
5884
|
+
source_kind?: string | null;
|
|
5885
|
+
source_ref_id?: string | null;
|
|
5886
|
+
updated_at?: string;
|
|
5887
|
+
wage_code?: string;
|
|
5888
|
+
};
|
|
5889
|
+
Relationships: [{
|
|
5890
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
5891
|
+
columns: ["monteur_id"];
|
|
5892
|
+
isOneToOne: false;
|
|
5893
|
+
referencedRelation: "monteurs";
|
|
5894
|
+
referencedColumns: ["id"];
|
|
5895
|
+
}, {
|
|
5896
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
5897
|
+
columns: ["run_id"];
|
|
5898
|
+
isOneToOne: false;
|
|
5899
|
+
referencedRelation: "nmbrs_export_runs";
|
|
5900
|
+
referencedColumns: ["id"];
|
|
5901
|
+
}, {
|
|
5902
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
5903
|
+
columns: ["wage_code"];
|
|
5904
|
+
isOneToOne: false;
|
|
5905
|
+
referencedRelation: "nmbrs_wage_components";
|
|
5906
|
+
referencedColumns: ["code"];
|
|
5907
|
+
}];
|
|
5908
|
+
};
|
|
5909
|
+
nmbrs_export_runs: {
|
|
5910
|
+
Row: {
|
|
5911
|
+
created_at: string;
|
|
5912
|
+
file_name: string | null;
|
|
5913
|
+
generated_at: string;
|
|
5914
|
+
generated_by: string | null;
|
|
5915
|
+
id: string;
|
|
5916
|
+
notes: string | null;
|
|
5917
|
+
period_end: string;
|
|
5918
|
+
period_label: string;
|
|
5919
|
+
period_start: string;
|
|
5920
|
+
status: string;
|
|
5921
|
+
total_hours: number;
|
|
5922
|
+
total_lines: number;
|
|
5923
|
+
updated_at: string;
|
|
5924
|
+
};
|
|
5925
|
+
Insert: {
|
|
5926
|
+
created_at?: string;
|
|
5927
|
+
file_name?: string | null;
|
|
5928
|
+
generated_at?: string;
|
|
5929
|
+
generated_by?: string | null;
|
|
5930
|
+
id?: string;
|
|
5931
|
+
notes?: string | null;
|
|
5932
|
+
period_end: string;
|
|
5933
|
+
period_label: string;
|
|
5934
|
+
period_start: string;
|
|
5935
|
+
status?: string;
|
|
5936
|
+
total_hours?: number;
|
|
5937
|
+
total_lines?: number;
|
|
5938
|
+
updated_at?: string;
|
|
5939
|
+
};
|
|
5940
|
+
Update: {
|
|
5941
|
+
created_at?: string;
|
|
5942
|
+
file_name?: string | null;
|
|
5943
|
+
generated_at?: string;
|
|
5944
|
+
generated_by?: string | null;
|
|
5945
|
+
id?: string;
|
|
5946
|
+
notes?: string | null;
|
|
5947
|
+
period_end?: string;
|
|
5948
|
+
period_label?: string;
|
|
5949
|
+
period_start?: string;
|
|
5950
|
+
status?: string;
|
|
5951
|
+
total_hours?: number;
|
|
5952
|
+
total_lines?: number;
|
|
5953
|
+
updated_at?: string;
|
|
5954
|
+
};
|
|
5955
|
+
Relationships: [];
|
|
5956
|
+
};
|
|
5957
|
+
nmbrs_settings: {
|
|
5958
|
+
Row: {
|
|
5959
|
+
created_at: string;
|
|
5960
|
+
default_company_code: string | null;
|
|
5961
|
+
id: boolean;
|
|
5962
|
+
include_travel: boolean;
|
|
5963
|
+
overtime_threshold_daily: number;
|
|
5964
|
+
overtime_threshold_weekly: number;
|
|
5965
|
+
period_type: string;
|
|
5966
|
+
updated_at: string;
|
|
5967
|
+
updated_by: string | null;
|
|
5968
|
+
week_start_day: number;
|
|
5969
|
+
};
|
|
5970
|
+
Insert: {
|
|
5971
|
+
created_at?: string;
|
|
5972
|
+
default_company_code?: string | null;
|
|
5973
|
+
id?: boolean;
|
|
5974
|
+
include_travel?: boolean;
|
|
5975
|
+
overtime_threshold_daily?: number;
|
|
5976
|
+
overtime_threshold_weekly?: number;
|
|
5977
|
+
period_type?: string;
|
|
5978
|
+
updated_at?: string;
|
|
5979
|
+
updated_by?: string | null;
|
|
5980
|
+
week_start_day?: number;
|
|
5981
|
+
};
|
|
5982
|
+
Update: {
|
|
5983
|
+
created_at?: string;
|
|
5984
|
+
default_company_code?: string | null;
|
|
5985
|
+
id?: boolean;
|
|
5986
|
+
include_travel?: boolean;
|
|
5987
|
+
overtime_threshold_daily?: number;
|
|
5988
|
+
overtime_threshold_weekly?: number;
|
|
5989
|
+
period_type?: string;
|
|
5990
|
+
updated_at?: string;
|
|
5991
|
+
updated_by?: string | null;
|
|
5992
|
+
week_start_day?: number;
|
|
5993
|
+
};
|
|
5994
|
+
Relationships: [];
|
|
5995
|
+
};
|
|
5996
|
+
nmbrs_wage_components: {
|
|
5997
|
+
Row: {
|
|
5998
|
+
category: string;
|
|
5999
|
+
code: string;
|
|
6000
|
+
created_at: string;
|
|
6001
|
+
id: string;
|
|
6002
|
+
is_active: boolean;
|
|
6003
|
+
label: string;
|
|
6004
|
+
sort_order: number;
|
|
6005
|
+
unit: string;
|
|
6006
|
+
updated_at: string;
|
|
6007
|
+
};
|
|
6008
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
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
|
+
Relationships: [];
|
|
6031
|
+
};
|
|
5519
6032
|
notifications: {
|
|
5520
6033
|
Row: {
|
|
5521
6034
|
created_at: string;
|
|
@@ -6498,6 +7011,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
6498
7011
|
purchase_price: number | null;
|
|
6499
7012
|
quantity: number;
|
|
6500
7013
|
sale_price: number | null;
|
|
7014
|
+
trade_item_key: string | null;
|
|
6501
7015
|
unit: string;
|
|
6502
7016
|
updated_at: string;
|
|
6503
7017
|
weight: string | null;
|
|
@@ -6520,6 +7034,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
6520
7034
|
purchase_price?: number | null;
|
|
6521
7035
|
quantity?: number;
|
|
6522
7036
|
sale_price?: number | null;
|
|
7037
|
+
trade_item_key?: string | null;
|
|
6523
7038
|
unit?: string;
|
|
6524
7039
|
updated_at?: string;
|
|
6525
7040
|
weight?: string | null;
|
|
@@ -6542,6 +7057,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
6542
7057
|
purchase_price?: number | null;
|
|
6543
7058
|
quantity?: number;
|
|
6544
7059
|
sale_price?: number | null;
|
|
7060
|
+
trade_item_key?: string | null;
|
|
6545
7061
|
unit?: string;
|
|
6546
7062
|
updated_at?: string;
|
|
6547
7063
|
weight?: string | null;
|
|
@@ -7361,6 +7877,102 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7361
7877
|
};
|
|
7362
7878
|
Relationships: [];
|
|
7363
7879
|
};
|
|
7880
|
+
stock_import_runs: {
|
|
7881
|
+
Row: {
|
|
7882
|
+
connection_id: string | null;
|
|
7883
|
+
created_at: string;
|
|
7884
|
+
created_rows: number;
|
|
7885
|
+
errors: import("../integrations/supabase/types").Json;
|
|
7886
|
+
filename: string | null;
|
|
7887
|
+
id: string;
|
|
7888
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
7889
|
+
skipped_rows: number;
|
|
7890
|
+
total_rows: number;
|
|
7891
|
+
updated_rows: number;
|
|
7892
|
+
user_id: string;
|
|
7893
|
+
};
|
|
7894
|
+
Insert: {
|
|
7895
|
+
connection_id?: string | null;
|
|
7896
|
+
created_at?: string;
|
|
7897
|
+
created_rows?: number;
|
|
7898
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
7899
|
+
filename?: string | null;
|
|
7900
|
+
id?: string;
|
|
7901
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
7902
|
+
skipped_rows?: number;
|
|
7903
|
+
total_rows?: number;
|
|
7904
|
+
updated_rows?: number;
|
|
7905
|
+
user_id: string;
|
|
7906
|
+
};
|
|
7907
|
+
Update: {
|
|
7908
|
+
connection_id?: string | null;
|
|
7909
|
+
created_at?: string;
|
|
7910
|
+
created_rows?: number;
|
|
7911
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
7912
|
+
filename?: string | null;
|
|
7913
|
+
id?: string;
|
|
7914
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
7915
|
+
skipped_rows?: number;
|
|
7916
|
+
total_rows?: number;
|
|
7917
|
+
updated_rows?: number;
|
|
7918
|
+
user_id?: string;
|
|
7919
|
+
};
|
|
7920
|
+
Relationships: [];
|
|
7921
|
+
};
|
|
7922
|
+
stock_mutation_log: {
|
|
7923
|
+
Row: {
|
|
7924
|
+
connection_id: string | null;
|
|
7925
|
+
created_at: string;
|
|
7926
|
+
created_by: string | null;
|
|
7927
|
+
id: string;
|
|
7928
|
+
mutation_type: string;
|
|
7929
|
+
order_id: string | null;
|
|
7930
|
+
order_item_id: string | null;
|
|
7931
|
+
order_source: string | null;
|
|
7932
|
+
physical_after: number | null;
|
|
7933
|
+
physical_before: number | null;
|
|
7934
|
+
qty_delta: number;
|
|
7935
|
+
reason: string | null;
|
|
7936
|
+
reserved_after: number | null;
|
|
7937
|
+
reserved_before: number | null;
|
|
7938
|
+
trade_item_key: string;
|
|
7939
|
+
};
|
|
7940
|
+
Insert: {
|
|
7941
|
+
connection_id?: string | null;
|
|
7942
|
+
created_at?: string;
|
|
7943
|
+
created_by?: string | null;
|
|
7944
|
+
id?: string;
|
|
7945
|
+
mutation_type: string;
|
|
7946
|
+
order_id?: string | null;
|
|
7947
|
+
order_item_id?: string | null;
|
|
7948
|
+
order_source?: string | null;
|
|
7949
|
+
physical_after?: number | null;
|
|
7950
|
+
physical_before?: number | null;
|
|
7951
|
+
qty_delta: number;
|
|
7952
|
+
reason?: string | null;
|
|
7953
|
+
reserved_after?: number | null;
|
|
7954
|
+
reserved_before?: number | null;
|
|
7955
|
+
trade_item_key: string;
|
|
7956
|
+
};
|
|
7957
|
+
Update: {
|
|
7958
|
+
connection_id?: string | null;
|
|
7959
|
+
created_at?: string;
|
|
7960
|
+
created_by?: string | null;
|
|
7961
|
+
id?: string;
|
|
7962
|
+
mutation_type?: string;
|
|
7963
|
+
order_id?: string | null;
|
|
7964
|
+
order_item_id?: string | null;
|
|
7965
|
+
order_source?: string | null;
|
|
7966
|
+
physical_after?: number | null;
|
|
7967
|
+
physical_before?: number | null;
|
|
7968
|
+
qty_delta?: number;
|
|
7969
|
+
reason?: string | null;
|
|
7970
|
+
reserved_after?: number | null;
|
|
7971
|
+
reserved_before?: number | null;
|
|
7972
|
+
trade_item_key?: string;
|
|
7973
|
+
};
|
|
7974
|
+
Relationships: [];
|
|
7975
|
+
};
|
|
7364
7976
|
supplier_products: {
|
|
7365
7977
|
Row: {
|
|
7366
7978
|
article_number: string | null;
|
|
@@ -8938,6 +9550,44 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8938
9550
|
};
|
|
8939
9551
|
Relationships: [];
|
|
8940
9552
|
};
|
|
9553
|
+
floriday_customer_discounts: {
|
|
9554
|
+
Row: {
|
|
9555
|
+
base_price: number | null;
|
|
9556
|
+
buyer_organization_id: string | null;
|
|
9557
|
+
currency: string | null;
|
|
9558
|
+
discount_type: string | null;
|
|
9559
|
+
discount_value: number | null;
|
|
9560
|
+
min_quantity: number | null;
|
|
9561
|
+
net_price: number | null;
|
|
9562
|
+
product_group_id: string | null;
|
|
9563
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
9564
|
+
source: string | null;
|
|
9565
|
+
source_id: string | null;
|
|
9566
|
+
trade_item_id: string | null;
|
|
9567
|
+
valid_from: string | null;
|
|
9568
|
+
valid_until: string | null;
|
|
9569
|
+
};
|
|
9570
|
+
Relationships: [];
|
|
9571
|
+
};
|
|
9572
|
+
local_customer_discounts: {
|
|
9573
|
+
Row: {
|
|
9574
|
+
base_price: number | null;
|
|
9575
|
+
currency: string | null;
|
|
9576
|
+
customer_id: string | null;
|
|
9577
|
+
discount_type: string | null;
|
|
9578
|
+
discount_value: number | null;
|
|
9579
|
+
min_quantity: number | null;
|
|
9580
|
+
net_price: number | null;
|
|
9581
|
+
product_category_id: string | null;
|
|
9582
|
+
product_id: string | null;
|
|
9583
|
+
product_name: string | null;
|
|
9584
|
+
source: string | null;
|
|
9585
|
+
source_id: string | null;
|
|
9586
|
+
valid_from: string | null;
|
|
9587
|
+
valid_until: string | null;
|
|
9588
|
+
};
|
|
9589
|
+
Relationships: [];
|
|
9590
|
+
};
|
|
8941
9591
|
manufacture_product_possible_stock_view: {
|
|
8942
9592
|
Row: {
|
|
8943
9593
|
component_count: number | null;
|
|
@@ -9222,6 +9872,54 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9222
9872
|
};
|
|
9223
9873
|
Returns: number;
|
|
9224
9874
|
};
|
|
9875
|
+
afh_city_code: {
|
|
9876
|
+
Args: {
|
|
9877
|
+
_city: string;
|
|
9878
|
+
_country: string;
|
|
9879
|
+
};
|
|
9880
|
+
Returns: string;
|
|
9881
|
+
};
|
|
9882
|
+
afh_normalize_country: {
|
|
9883
|
+
Args: {
|
|
9884
|
+
_raw: string;
|
|
9885
|
+
};
|
|
9886
|
+
Returns: string;
|
|
9887
|
+
};
|
|
9888
|
+
afh_normalize_nl_province: {
|
|
9889
|
+
Args: {
|
|
9890
|
+
_raw: string;
|
|
9891
|
+
};
|
|
9892
|
+
Returns: string;
|
|
9893
|
+
};
|
|
9894
|
+
afh_subtract_workdays: {
|
|
9895
|
+
Args: {
|
|
9896
|
+
_date: string;
|
|
9897
|
+
_days: number;
|
|
9898
|
+
};
|
|
9899
|
+
Returns: string;
|
|
9900
|
+
};
|
|
9901
|
+
apply_stock_consumption: {
|
|
9902
|
+
Args: {
|
|
9903
|
+
p_order_id: string;
|
|
9904
|
+
p_order_item_id: string;
|
|
9905
|
+
p_qty: number;
|
|
9906
|
+
p_reason: string;
|
|
9907
|
+
p_source: string;
|
|
9908
|
+
p_trade_item_key: string;
|
|
9909
|
+
};
|
|
9910
|
+
Returns: undefined;
|
|
9911
|
+
};
|
|
9912
|
+
apply_stock_reservation: {
|
|
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
|
+
};
|
|
9225
9923
|
assign_cart_numbers: {
|
|
9226
9924
|
Args: {
|
|
9227
9925
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -9245,12 +9943,40 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9245
9943
|
order_number: string;
|
|
9246
9944
|
}[];
|
|
9247
9945
|
};
|
|
9946
|
+
backfill_open_order_reservations: {
|
|
9947
|
+
Args: never;
|
|
9948
|
+
Returns: {
|
|
9949
|
+
processed_items: number;
|
|
9950
|
+
}[];
|
|
9951
|
+
};
|
|
9248
9952
|
call_exact_route: {
|
|
9249
9953
|
Args: {
|
|
9250
9954
|
path: string;
|
|
9251
9955
|
};
|
|
9252
9956
|
Returns: number;
|
|
9253
9957
|
};
|
|
9958
|
+
check_offer_product_available_stock: {
|
|
9959
|
+
Args: {
|
|
9960
|
+
p_campaign_product_id: string;
|
|
9961
|
+
p_code: string;
|
|
9962
|
+
p_needed_qty?: number;
|
|
9963
|
+
p_product_name?: string;
|
|
9964
|
+
};
|
|
9965
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9966
|
+
};
|
|
9967
|
+
check_trade_item_available_stock: {
|
|
9968
|
+
Args: {
|
|
9969
|
+
p_connection_id?: string;
|
|
9970
|
+
p_context?: string;
|
|
9971
|
+
p_needed_qty?: number;
|
|
9972
|
+
p_order_id?: string;
|
|
9973
|
+
p_order_item_id?: string;
|
|
9974
|
+
p_owner_id?: string;
|
|
9975
|
+
p_product_name?: string;
|
|
9976
|
+
p_trade_item_key: string;
|
|
9977
|
+
};
|
|
9978
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9979
|
+
};
|
|
9254
9980
|
cleanup_old_bookings: {
|
|
9255
9981
|
Args: never;
|
|
9256
9982
|
Returns: number;
|
|
@@ -9294,6 +10020,12 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9294
10020
|
table_name: string;
|
|
9295
10021
|
}[];
|
|
9296
10022
|
};
|
|
10023
|
+
dispatch_carrier_signups_sql: {
|
|
10024
|
+
Args: {
|
|
10025
|
+
_catchup?: string;
|
|
10026
|
+
};
|
|
10027
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10028
|
+
};
|
|
9297
10029
|
email_auth_decrypt: {
|
|
9298
10030
|
Args: {
|
|
9299
10031
|
cipher: string;
|
|
@@ -9329,6 +10061,12 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9329
10061
|
status: string;
|
|
9330
10062
|
}[];
|
|
9331
10063
|
};
|
|
10064
|
+
ensure_trade_item_stock_row: {
|
|
10065
|
+
Args: {
|
|
10066
|
+
p_key: string;
|
|
10067
|
+
};
|
|
10068
|
+
Returns: undefined;
|
|
10069
|
+
};
|
|
9332
10070
|
ensure_user_tenant: {
|
|
9333
10071
|
Args: never;
|
|
9334
10072
|
Returns: string;
|
|
@@ -9366,6 +10104,31 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9366
10104
|
};
|
|
9367
10105
|
Returns: boolean;
|
|
9368
10106
|
};
|
|
10107
|
+
find_trade_item_key: {
|
|
10108
|
+
Args: {
|
|
10109
|
+
p_barcode: string;
|
|
10110
|
+
p_name: string;
|
|
10111
|
+
p_product_id: string;
|
|
10112
|
+
};
|
|
10113
|
+
Returns: string;
|
|
10114
|
+
};
|
|
10115
|
+
floriday_effective_price: {
|
|
10116
|
+
Args: {
|
|
10117
|
+
_buyer_id: string;
|
|
10118
|
+
_on_date?: string;
|
|
10119
|
+
_quantity?: number;
|
|
10120
|
+
_trade_item_id: string;
|
|
10121
|
+
};
|
|
10122
|
+
Returns: {
|
|
10123
|
+
base_price: number;
|
|
10124
|
+
currency: string;
|
|
10125
|
+
discount_type: string;
|
|
10126
|
+
discount_value: number;
|
|
10127
|
+
net_price: number;
|
|
10128
|
+
source: string;
|
|
10129
|
+
source_id: string;
|
|
10130
|
+
}[];
|
|
10131
|
+
};
|
|
9369
10132
|
format_cart_number: {
|
|
9370
10133
|
Args: {
|
|
9371
10134
|
p_pick_date: string;
|
|
@@ -9386,6 +10149,13 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9386
10149
|
preferred_warehouse_name: string;
|
|
9387
10150
|
}[];
|
|
9388
10151
|
};
|
|
10152
|
+
get_active_floriday_context: {
|
|
10153
|
+
Args: never;
|
|
10154
|
+
Returns: {
|
|
10155
|
+
connection_id: string;
|
|
10156
|
+
user_id: string;
|
|
10157
|
+
}[];
|
|
10158
|
+
};
|
|
9389
10159
|
get_active_twinfield_public: {
|
|
9390
10160
|
Args: never;
|
|
9391
10161
|
Returns: {
|
|
@@ -9488,6 +10258,18 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9488
10258
|
};
|
|
9489
10259
|
Returns: import("../integrations/supabase/types").Json;
|
|
9490
10260
|
};
|
|
10261
|
+
get_offer_recipient_by_code: {
|
|
10262
|
+
Args: {
|
|
10263
|
+
p_code: string;
|
|
10264
|
+
};
|
|
10265
|
+
Returns: {
|
|
10266
|
+
campaign_id: string;
|
|
10267
|
+
clicked_at: string;
|
|
10268
|
+
customer_id: string;
|
|
10269
|
+
id: string;
|
|
10270
|
+
ordered_at: string;
|
|
10271
|
+
}[];
|
|
10272
|
+
};
|
|
9491
10273
|
get_or_assign_floriday_order_number: {
|
|
9492
10274
|
Args: {
|
|
9493
10275
|
p_floriday_id: string;
|
|
@@ -9540,6 +10322,34 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9540
10322
|
Args: never;
|
|
9541
10323
|
Returns: boolean;
|
|
9542
10324
|
};
|
|
10325
|
+
local_effective_price: {
|
|
10326
|
+
Args: {
|
|
10327
|
+
_customer_id: string;
|
|
10328
|
+
_on_date?: string;
|
|
10329
|
+
_product_id: string;
|
|
10330
|
+
_quantity?: number;
|
|
10331
|
+
};
|
|
10332
|
+
Returns: {
|
|
10333
|
+
currency: string;
|
|
10334
|
+
discount_type: string;
|
|
10335
|
+
discount_value: number;
|
|
10336
|
+
net_price: number;
|
|
10337
|
+
source: string;
|
|
10338
|
+
source_id: string;
|
|
10339
|
+
}[];
|
|
10340
|
+
};
|
|
10341
|
+
mark_offer_clicked: {
|
|
10342
|
+
Args: {
|
|
10343
|
+
p_code: string;
|
|
10344
|
+
};
|
|
10345
|
+
Returns: undefined;
|
|
10346
|
+
};
|
|
10347
|
+
mark_offer_ordered: {
|
|
10348
|
+
Args: {
|
|
10349
|
+
p_code: string;
|
|
10350
|
+
};
|
|
10351
|
+
Returns: undefined;
|
|
10352
|
+
};
|
|
9543
10353
|
next_order_number: {
|
|
9544
10354
|
Args: {
|
|
9545
10355
|
p_prefix: string;
|
|
@@ -9559,6 +10369,14 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9559
10369
|
};
|
|
9560
10370
|
Returns: string;
|
|
9561
10371
|
};
|
|
10372
|
+
offer_recipient_matches: {
|
|
10373
|
+
Args: {
|
|
10374
|
+
_campaign_id: string;
|
|
10375
|
+
_customer_id: string;
|
|
10376
|
+
_recipient_id: string;
|
|
10377
|
+
};
|
|
10378
|
+
Returns: boolean;
|
|
10379
|
+
};
|
|
9562
10380
|
pickstation_get_orders_raw: {
|
|
9563
10381
|
Args: never;
|
|
9564
10382
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -9586,6 +10404,13 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9586
10404
|
};
|
|
9587
10405
|
Returns: undefined;
|
|
9588
10406
|
};
|
|
10407
|
+
promote_trade_item_key: {
|
|
10408
|
+
Args: {
|
|
10409
|
+
p_new: string;
|
|
10410
|
+
p_old: string;
|
|
10411
|
+
};
|
|
10412
|
+
Returns: undefined;
|
|
10413
|
+
};
|
|
9589
10414
|
refresh_floricode_derived_code_lists: {
|
|
9590
10415
|
Args: never;
|
|
9591
10416
|
Returns: {
|
|
@@ -10632,6 +11457,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
10632
11457
|
notes: string | null;
|
|
10633
11458
|
performed_at: string;
|
|
10634
11459
|
rescheduled_count: number;
|
|
11460
|
+
stock_consumed_at: string | null;
|
|
10635
11461
|
total_carts: number;
|
|
10636
11462
|
updated_at: string;
|
|
10637
11463
|
user_id: string;
|
|
@@ -10645,6 +11471,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
10645
11471
|
notes?: string | null;
|
|
10646
11472
|
performed_at?: string;
|
|
10647
11473
|
rescheduled_count?: number;
|
|
11474
|
+
stock_consumed_at?: string | null;
|
|
10648
11475
|
total_carts?: number;
|
|
10649
11476
|
updated_at?: string;
|
|
10650
11477
|
user_id: string;
|
|
@@ -10658,6 +11485,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
10658
11485
|
notes?: string | null;
|
|
10659
11486
|
performed_at?: string;
|
|
10660
11487
|
rescheduled_count?: number;
|
|
11488
|
+
stock_consumed_at?: string | null;
|
|
10661
11489
|
total_carts?: number;
|
|
10662
11490
|
updated_at?: string;
|
|
10663
11491
|
user_id?: string;
|
|
@@ -13538,6 +14366,51 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
13538
14366
|
referencedColumns: ["id"];
|
|
13539
14367
|
}];
|
|
13540
14368
|
};
|
|
14369
|
+
floriday_continuous_stock_queue: {
|
|
14370
|
+
Row: {
|
|
14371
|
+
attempts: number;
|
|
14372
|
+
connection_id: string;
|
|
14373
|
+
created_at: string;
|
|
14374
|
+
gateway_attempt_id: string | null;
|
|
14375
|
+
id: string;
|
|
14376
|
+
last_error: string | null;
|
|
14377
|
+
number_of_pieces: number;
|
|
14378
|
+
sent_at: string | null;
|
|
14379
|
+
status: string;
|
|
14380
|
+
trade_item_id: string;
|
|
14381
|
+
updated_at: string;
|
|
14382
|
+
user_id: string;
|
|
14383
|
+
};
|
|
14384
|
+
Insert: {
|
|
14385
|
+
attempts?: number;
|
|
14386
|
+
connection_id: string;
|
|
14387
|
+
created_at?: string;
|
|
14388
|
+
gateway_attempt_id?: string | null;
|
|
14389
|
+
id?: string;
|
|
14390
|
+
last_error?: string | null;
|
|
14391
|
+
number_of_pieces?: number;
|
|
14392
|
+
sent_at?: string | null;
|
|
14393
|
+
status?: string;
|
|
14394
|
+
trade_item_id: string;
|
|
14395
|
+
updated_at?: string;
|
|
14396
|
+
user_id: string;
|
|
14397
|
+
};
|
|
14398
|
+
Update: {
|
|
14399
|
+
attempts?: number;
|
|
14400
|
+
connection_id?: string;
|
|
14401
|
+
created_at?: string;
|
|
14402
|
+
gateway_attempt_id?: string | null;
|
|
14403
|
+
id?: string;
|
|
14404
|
+
last_error?: string | null;
|
|
14405
|
+
number_of_pieces?: number;
|
|
14406
|
+
sent_at?: string | null;
|
|
14407
|
+
status?: string;
|
|
14408
|
+
trade_item_id?: string;
|
|
14409
|
+
updated_at?: string;
|
|
14410
|
+
user_id?: string;
|
|
14411
|
+
};
|
|
14412
|
+
Relationships: [];
|
|
14413
|
+
};
|
|
13541
14414
|
floriday_contract_trade_item_groups_cache: {
|
|
13542
14415
|
Row: {
|
|
13543
14416
|
connection_id: string;
|
|
@@ -14927,6 +15800,204 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
14927
15800
|
};
|
|
14928
15801
|
Relationships: [];
|
|
14929
15802
|
};
|
|
15803
|
+
local_customer_agreements: {
|
|
15804
|
+
Row: {
|
|
15805
|
+
base_price: number | null;
|
|
15806
|
+
created_at: string;
|
|
15807
|
+
currency: string;
|
|
15808
|
+
customer_id: string;
|
|
15809
|
+
id: string;
|
|
15810
|
+
min_quantity: number;
|
|
15811
|
+
net_price: number;
|
|
15812
|
+
notes: string | null;
|
|
15813
|
+
product_category_id: string | null;
|
|
15814
|
+
product_id: string | null;
|
|
15815
|
+
updated_at: string;
|
|
15816
|
+
valid_from: string | null;
|
|
15817
|
+
valid_until: string | null;
|
|
15818
|
+
};
|
|
15819
|
+
Insert: {
|
|
15820
|
+
base_price?: number | null;
|
|
15821
|
+
created_at?: string;
|
|
15822
|
+
currency?: string;
|
|
15823
|
+
customer_id: string;
|
|
15824
|
+
id?: string;
|
|
15825
|
+
min_quantity?: number;
|
|
15826
|
+
net_price: number;
|
|
15827
|
+
notes?: string | null;
|
|
15828
|
+
product_category_id?: string | null;
|
|
15829
|
+
product_id?: string | null;
|
|
15830
|
+
updated_at?: string;
|
|
15831
|
+
valid_from?: string | null;
|
|
15832
|
+
valid_until?: string | null;
|
|
15833
|
+
};
|
|
15834
|
+
Update: {
|
|
15835
|
+
base_price?: number | null;
|
|
15836
|
+
created_at?: string;
|
|
15837
|
+
currency?: string;
|
|
15838
|
+
customer_id?: string;
|
|
15839
|
+
id?: string;
|
|
15840
|
+
min_quantity?: number;
|
|
15841
|
+
net_price?: number;
|
|
15842
|
+
notes?: string | null;
|
|
15843
|
+
product_category_id?: string | null;
|
|
15844
|
+
product_id?: string | null;
|
|
15845
|
+
updated_at?: string;
|
|
15846
|
+
valid_from?: string | null;
|
|
15847
|
+
valid_until?: string | null;
|
|
15848
|
+
};
|
|
15849
|
+
Relationships: [{
|
|
15850
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
15851
|
+
columns: ["customer_id"];
|
|
15852
|
+
isOneToOne: false;
|
|
15853
|
+
referencedRelation: "customers";
|
|
15854
|
+
referencedColumns: ["id"];
|
|
15855
|
+
}, {
|
|
15856
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
15857
|
+
columns: ["product_category_id"];
|
|
15858
|
+
isOneToOne: false;
|
|
15859
|
+
referencedRelation: "product_categories";
|
|
15860
|
+
referencedColumns: ["id"];
|
|
15861
|
+
}, {
|
|
15862
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
15863
|
+
columns: ["product_id"];
|
|
15864
|
+
isOneToOne: false;
|
|
15865
|
+
referencedRelation: "products";
|
|
15866
|
+
referencedColumns: ["id"];
|
|
15867
|
+
}];
|
|
15868
|
+
};
|
|
15869
|
+
local_customer_price_groups: {
|
|
15870
|
+
Row: {
|
|
15871
|
+
created_at: string;
|
|
15872
|
+
currency: string;
|
|
15873
|
+
customer_id: string;
|
|
15874
|
+
discount_type: string;
|
|
15875
|
+
discount_value: number;
|
|
15876
|
+
id: string;
|
|
15877
|
+
min_quantity: number;
|
|
15878
|
+
notes: string | null;
|
|
15879
|
+
product_category_id: string | null;
|
|
15880
|
+
product_id: string | null;
|
|
15881
|
+
updated_at: string;
|
|
15882
|
+
valid_from: string | null;
|
|
15883
|
+
valid_until: string | null;
|
|
15884
|
+
};
|
|
15885
|
+
Insert: {
|
|
15886
|
+
created_at?: string;
|
|
15887
|
+
currency?: string;
|
|
15888
|
+
customer_id: string;
|
|
15889
|
+
discount_type: string;
|
|
15890
|
+
discount_value: number;
|
|
15891
|
+
id?: string;
|
|
15892
|
+
min_quantity?: number;
|
|
15893
|
+
notes?: string | null;
|
|
15894
|
+
product_category_id?: string | null;
|
|
15895
|
+
product_id?: string | null;
|
|
15896
|
+
updated_at?: string;
|
|
15897
|
+
valid_from?: string | null;
|
|
15898
|
+
valid_until?: string | null;
|
|
15899
|
+
};
|
|
15900
|
+
Update: {
|
|
15901
|
+
created_at?: string;
|
|
15902
|
+
currency?: string;
|
|
15903
|
+
customer_id?: string;
|
|
15904
|
+
discount_type?: string;
|
|
15905
|
+
discount_value?: number;
|
|
15906
|
+
id?: string;
|
|
15907
|
+
min_quantity?: number;
|
|
15908
|
+
notes?: string | null;
|
|
15909
|
+
product_category_id?: string | null;
|
|
15910
|
+
product_id?: string | null;
|
|
15911
|
+
updated_at?: string;
|
|
15912
|
+
valid_from?: string | null;
|
|
15913
|
+
valid_until?: string | null;
|
|
15914
|
+
};
|
|
15915
|
+
Relationships: [{
|
|
15916
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
15917
|
+
columns: ["customer_id"];
|
|
15918
|
+
isOneToOne: false;
|
|
15919
|
+
referencedRelation: "customers";
|
|
15920
|
+
referencedColumns: ["id"];
|
|
15921
|
+
}, {
|
|
15922
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
15923
|
+
columns: ["product_category_id"];
|
|
15924
|
+
isOneToOne: false;
|
|
15925
|
+
referencedRelation: "product_categories";
|
|
15926
|
+
referencedColumns: ["id"];
|
|
15927
|
+
}, {
|
|
15928
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
15929
|
+
columns: ["product_id"];
|
|
15930
|
+
isOneToOne: false;
|
|
15931
|
+
referencedRelation: "products";
|
|
15932
|
+
referencedColumns: ["id"];
|
|
15933
|
+
}];
|
|
15934
|
+
};
|
|
15935
|
+
local_customer_sales_strategies: {
|
|
15936
|
+
Row: {
|
|
15937
|
+
created_at: string;
|
|
15938
|
+
currency: string;
|
|
15939
|
+
customer_id: string;
|
|
15940
|
+
discount_type: string;
|
|
15941
|
+
discount_value: number;
|
|
15942
|
+
id: string;
|
|
15943
|
+
min_quantity: number;
|
|
15944
|
+
notes: string | null;
|
|
15945
|
+
product_category_id: string | null;
|
|
15946
|
+
product_id: string | null;
|
|
15947
|
+
updated_at: string;
|
|
15948
|
+
valid_from: string | null;
|
|
15949
|
+
valid_until: string | null;
|
|
15950
|
+
};
|
|
15951
|
+
Insert: {
|
|
15952
|
+
created_at?: string;
|
|
15953
|
+
currency?: string;
|
|
15954
|
+
customer_id: string;
|
|
15955
|
+
discount_type: string;
|
|
15956
|
+
discount_value: number;
|
|
15957
|
+
id?: string;
|
|
15958
|
+
min_quantity?: number;
|
|
15959
|
+
notes?: string | null;
|
|
15960
|
+
product_category_id?: string | null;
|
|
15961
|
+
product_id?: string | null;
|
|
15962
|
+
updated_at?: string;
|
|
15963
|
+
valid_from?: string | null;
|
|
15964
|
+
valid_until?: string | null;
|
|
15965
|
+
};
|
|
15966
|
+
Update: {
|
|
15967
|
+
created_at?: string;
|
|
15968
|
+
currency?: string;
|
|
15969
|
+
customer_id?: string;
|
|
15970
|
+
discount_type?: string;
|
|
15971
|
+
discount_value?: number;
|
|
15972
|
+
id?: string;
|
|
15973
|
+
min_quantity?: number;
|
|
15974
|
+
notes?: string | null;
|
|
15975
|
+
product_category_id?: string | null;
|
|
15976
|
+
product_id?: string | null;
|
|
15977
|
+
updated_at?: string;
|
|
15978
|
+
valid_from?: string | null;
|
|
15979
|
+
valid_until?: string | null;
|
|
15980
|
+
};
|
|
15981
|
+
Relationships: [{
|
|
15982
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
15983
|
+
columns: ["customer_id"];
|
|
15984
|
+
isOneToOne: false;
|
|
15985
|
+
referencedRelation: "customers";
|
|
15986
|
+
referencedColumns: ["id"];
|
|
15987
|
+
}, {
|
|
15988
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
15989
|
+
columns: ["product_category_id"];
|
|
15990
|
+
isOneToOne: false;
|
|
15991
|
+
referencedRelation: "product_categories";
|
|
15992
|
+
referencedColumns: ["id"];
|
|
15993
|
+
}, {
|
|
15994
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
15995
|
+
columns: ["product_id"];
|
|
15996
|
+
isOneToOne: false;
|
|
15997
|
+
referencedRelation: "products";
|
|
15998
|
+
referencedColumns: ["id"];
|
|
15999
|
+
}];
|
|
16000
|
+
};
|
|
14930
16001
|
locations: {
|
|
14931
16002
|
Row: {
|
|
14932
16003
|
created_at: string;
|
|
@@ -15434,6 +16505,273 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
15434
16505
|
referencedColumns: ["id"];
|
|
15435
16506
|
}];
|
|
15436
16507
|
};
|
|
16508
|
+
nmbrs_component_mapping: {
|
|
16509
|
+
Row: {
|
|
16510
|
+
created_at: string;
|
|
16511
|
+
id: string;
|
|
16512
|
+
source_kind: string;
|
|
16513
|
+
source_value: string | null;
|
|
16514
|
+
updated_at: string;
|
|
16515
|
+
wage_code: string;
|
|
16516
|
+
};
|
|
16517
|
+
Insert: {
|
|
16518
|
+
created_at?: string;
|
|
16519
|
+
id?: string;
|
|
16520
|
+
source_kind: string;
|
|
16521
|
+
source_value?: string | null;
|
|
16522
|
+
updated_at?: string;
|
|
16523
|
+
wage_code: string;
|
|
16524
|
+
};
|
|
16525
|
+
Update: {
|
|
16526
|
+
created_at?: string;
|
|
16527
|
+
id?: string;
|
|
16528
|
+
source_kind?: string;
|
|
16529
|
+
source_value?: string | null;
|
|
16530
|
+
updated_at?: string;
|
|
16531
|
+
wage_code?: string;
|
|
16532
|
+
};
|
|
16533
|
+
Relationships: [{
|
|
16534
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
16535
|
+
columns: ["wage_code"];
|
|
16536
|
+
isOneToOne: false;
|
|
16537
|
+
referencedRelation: "nmbrs_wage_components";
|
|
16538
|
+
referencedColumns: ["code"];
|
|
16539
|
+
}];
|
|
16540
|
+
};
|
|
16541
|
+
nmbrs_employee_mapping: {
|
|
16542
|
+
Row: {
|
|
16543
|
+
active_from: string | null;
|
|
16544
|
+
active_to: string | null;
|
|
16545
|
+
contract_hours_per_week: number | null;
|
|
16546
|
+
created_at: string;
|
|
16547
|
+
hourly_wage: number | null;
|
|
16548
|
+
id: string;
|
|
16549
|
+
monteur_id: string;
|
|
16550
|
+
nmbrs_company_code: string | null;
|
|
16551
|
+
nmbrs_employee_number: string;
|
|
16552
|
+
updated_at: string;
|
|
16553
|
+
};
|
|
16554
|
+
Insert: {
|
|
16555
|
+
active_from?: string | null;
|
|
16556
|
+
active_to?: string | null;
|
|
16557
|
+
contract_hours_per_week?: number | null;
|
|
16558
|
+
created_at?: string;
|
|
16559
|
+
hourly_wage?: number | null;
|
|
16560
|
+
id?: string;
|
|
16561
|
+
monteur_id: string;
|
|
16562
|
+
nmbrs_company_code?: string | null;
|
|
16563
|
+
nmbrs_employee_number: string;
|
|
16564
|
+
updated_at?: string;
|
|
16565
|
+
};
|
|
16566
|
+
Update: {
|
|
16567
|
+
active_from?: string | null;
|
|
16568
|
+
active_to?: string | null;
|
|
16569
|
+
contract_hours_per_week?: number | null;
|
|
16570
|
+
created_at?: string;
|
|
16571
|
+
hourly_wage?: number | null;
|
|
16572
|
+
id?: string;
|
|
16573
|
+
monteur_id?: string;
|
|
16574
|
+
nmbrs_company_code?: string | null;
|
|
16575
|
+
nmbrs_employee_number?: string;
|
|
16576
|
+
updated_at?: string;
|
|
16577
|
+
};
|
|
16578
|
+
Relationships: [{
|
|
16579
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
16580
|
+
columns: ["monteur_id"];
|
|
16581
|
+
isOneToOne: true;
|
|
16582
|
+
referencedRelation: "monteurs";
|
|
16583
|
+
referencedColumns: ["id"];
|
|
16584
|
+
}];
|
|
16585
|
+
};
|
|
16586
|
+
nmbrs_export_lines: {
|
|
16587
|
+
Row: {
|
|
16588
|
+
amount: number;
|
|
16589
|
+
created_at: string;
|
|
16590
|
+
entry_date: string;
|
|
16591
|
+
hours: number;
|
|
16592
|
+
id: string;
|
|
16593
|
+
monteur_id: string;
|
|
16594
|
+
nmbrs_employee_number: string | null;
|
|
16595
|
+
notes: string | null;
|
|
16596
|
+
run_id: string;
|
|
16597
|
+
source_kind: string | null;
|
|
16598
|
+
source_ref_id: string | null;
|
|
16599
|
+
updated_at: string;
|
|
16600
|
+
wage_code: string;
|
|
16601
|
+
};
|
|
16602
|
+
Insert: {
|
|
16603
|
+
amount?: number;
|
|
16604
|
+
created_at?: string;
|
|
16605
|
+
entry_date: string;
|
|
16606
|
+
hours?: number;
|
|
16607
|
+
id?: string;
|
|
16608
|
+
monteur_id: string;
|
|
16609
|
+
nmbrs_employee_number?: string | null;
|
|
16610
|
+
notes?: string | null;
|
|
16611
|
+
run_id: string;
|
|
16612
|
+
source_kind?: string | null;
|
|
16613
|
+
source_ref_id?: string | null;
|
|
16614
|
+
updated_at?: string;
|
|
16615
|
+
wage_code: string;
|
|
16616
|
+
};
|
|
16617
|
+
Update: {
|
|
16618
|
+
amount?: number;
|
|
16619
|
+
created_at?: string;
|
|
16620
|
+
entry_date?: string;
|
|
16621
|
+
hours?: number;
|
|
16622
|
+
id?: string;
|
|
16623
|
+
monteur_id?: string;
|
|
16624
|
+
nmbrs_employee_number?: string | null;
|
|
16625
|
+
notes?: string | null;
|
|
16626
|
+
run_id?: string;
|
|
16627
|
+
source_kind?: string | null;
|
|
16628
|
+
source_ref_id?: string | null;
|
|
16629
|
+
updated_at?: string;
|
|
16630
|
+
wage_code?: string;
|
|
16631
|
+
};
|
|
16632
|
+
Relationships: [{
|
|
16633
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
16634
|
+
columns: ["monteur_id"];
|
|
16635
|
+
isOneToOne: false;
|
|
16636
|
+
referencedRelation: "monteurs";
|
|
16637
|
+
referencedColumns: ["id"];
|
|
16638
|
+
}, {
|
|
16639
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
16640
|
+
columns: ["run_id"];
|
|
16641
|
+
isOneToOne: false;
|
|
16642
|
+
referencedRelation: "nmbrs_export_runs";
|
|
16643
|
+
referencedColumns: ["id"];
|
|
16644
|
+
}, {
|
|
16645
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
16646
|
+
columns: ["wage_code"];
|
|
16647
|
+
isOneToOne: false;
|
|
16648
|
+
referencedRelation: "nmbrs_wage_components";
|
|
16649
|
+
referencedColumns: ["code"];
|
|
16650
|
+
}];
|
|
16651
|
+
};
|
|
16652
|
+
nmbrs_export_runs: {
|
|
16653
|
+
Row: {
|
|
16654
|
+
created_at: string;
|
|
16655
|
+
file_name: string | null;
|
|
16656
|
+
generated_at: string;
|
|
16657
|
+
generated_by: string | null;
|
|
16658
|
+
id: string;
|
|
16659
|
+
notes: string | null;
|
|
16660
|
+
period_end: string;
|
|
16661
|
+
period_label: string;
|
|
16662
|
+
period_start: string;
|
|
16663
|
+
status: string;
|
|
16664
|
+
total_hours: number;
|
|
16665
|
+
total_lines: number;
|
|
16666
|
+
updated_at: string;
|
|
16667
|
+
};
|
|
16668
|
+
Insert: {
|
|
16669
|
+
created_at?: string;
|
|
16670
|
+
file_name?: string | null;
|
|
16671
|
+
generated_at?: string;
|
|
16672
|
+
generated_by?: string | null;
|
|
16673
|
+
id?: string;
|
|
16674
|
+
notes?: string | null;
|
|
16675
|
+
period_end: string;
|
|
16676
|
+
period_label: string;
|
|
16677
|
+
period_start: string;
|
|
16678
|
+
status?: string;
|
|
16679
|
+
total_hours?: number;
|
|
16680
|
+
total_lines?: number;
|
|
16681
|
+
updated_at?: string;
|
|
16682
|
+
};
|
|
16683
|
+
Update: {
|
|
16684
|
+
created_at?: string;
|
|
16685
|
+
file_name?: string | null;
|
|
16686
|
+
generated_at?: string;
|
|
16687
|
+
generated_by?: string | null;
|
|
16688
|
+
id?: string;
|
|
16689
|
+
notes?: string | null;
|
|
16690
|
+
period_end?: string;
|
|
16691
|
+
period_label?: string;
|
|
16692
|
+
period_start?: string;
|
|
16693
|
+
status?: string;
|
|
16694
|
+
total_hours?: number;
|
|
16695
|
+
total_lines?: number;
|
|
16696
|
+
updated_at?: string;
|
|
16697
|
+
};
|
|
16698
|
+
Relationships: [];
|
|
16699
|
+
};
|
|
16700
|
+
nmbrs_settings: {
|
|
16701
|
+
Row: {
|
|
16702
|
+
created_at: string;
|
|
16703
|
+
default_company_code: string | null;
|
|
16704
|
+
id: boolean;
|
|
16705
|
+
include_travel: boolean;
|
|
16706
|
+
overtime_threshold_daily: number;
|
|
16707
|
+
overtime_threshold_weekly: number;
|
|
16708
|
+
period_type: string;
|
|
16709
|
+
updated_at: string;
|
|
16710
|
+
updated_by: string | null;
|
|
16711
|
+
week_start_day: number;
|
|
16712
|
+
};
|
|
16713
|
+
Insert: {
|
|
16714
|
+
created_at?: string;
|
|
16715
|
+
default_company_code?: string | null;
|
|
16716
|
+
id?: boolean;
|
|
16717
|
+
include_travel?: boolean;
|
|
16718
|
+
overtime_threshold_daily?: number;
|
|
16719
|
+
overtime_threshold_weekly?: number;
|
|
16720
|
+
period_type?: string;
|
|
16721
|
+
updated_at?: string;
|
|
16722
|
+
updated_by?: string | null;
|
|
16723
|
+
week_start_day?: number;
|
|
16724
|
+
};
|
|
16725
|
+
Update: {
|
|
16726
|
+
created_at?: string;
|
|
16727
|
+
default_company_code?: string | null;
|
|
16728
|
+
id?: boolean;
|
|
16729
|
+
include_travel?: boolean;
|
|
16730
|
+
overtime_threshold_daily?: number;
|
|
16731
|
+
overtime_threshold_weekly?: number;
|
|
16732
|
+
period_type?: string;
|
|
16733
|
+
updated_at?: string;
|
|
16734
|
+
updated_by?: string | null;
|
|
16735
|
+
week_start_day?: number;
|
|
16736
|
+
};
|
|
16737
|
+
Relationships: [];
|
|
16738
|
+
};
|
|
16739
|
+
nmbrs_wage_components: {
|
|
16740
|
+
Row: {
|
|
16741
|
+
category: string;
|
|
16742
|
+
code: string;
|
|
16743
|
+
created_at: string;
|
|
16744
|
+
id: string;
|
|
16745
|
+
is_active: boolean;
|
|
16746
|
+
label: string;
|
|
16747
|
+
sort_order: number;
|
|
16748
|
+
unit: string;
|
|
16749
|
+
updated_at: string;
|
|
16750
|
+
};
|
|
16751
|
+
Insert: {
|
|
16752
|
+
category: string;
|
|
16753
|
+
code: string;
|
|
16754
|
+
created_at?: string;
|
|
16755
|
+
id?: string;
|
|
16756
|
+
is_active?: boolean;
|
|
16757
|
+
label: string;
|
|
16758
|
+
sort_order?: number;
|
|
16759
|
+
unit: string;
|
|
16760
|
+
updated_at?: string;
|
|
16761
|
+
};
|
|
16762
|
+
Update: {
|
|
16763
|
+
category?: string;
|
|
16764
|
+
code?: string;
|
|
16765
|
+
created_at?: string;
|
|
16766
|
+
id?: string;
|
|
16767
|
+
is_active?: boolean;
|
|
16768
|
+
label?: string;
|
|
16769
|
+
sort_order?: number;
|
|
16770
|
+
unit?: string;
|
|
16771
|
+
updated_at?: string;
|
|
16772
|
+
};
|
|
16773
|
+
Relationships: [];
|
|
16774
|
+
};
|
|
15437
16775
|
notifications: {
|
|
15438
16776
|
Row: {
|
|
15439
16777
|
created_at: string;
|
|
@@ -16416,6 +17754,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16416
17754
|
purchase_price: number | null;
|
|
16417
17755
|
quantity: number;
|
|
16418
17756
|
sale_price: number | null;
|
|
17757
|
+
trade_item_key: string | null;
|
|
16419
17758
|
unit: string;
|
|
16420
17759
|
updated_at: string;
|
|
16421
17760
|
weight: string | null;
|
|
@@ -16438,6 +17777,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16438
17777
|
purchase_price?: number | null;
|
|
16439
17778
|
quantity?: number;
|
|
16440
17779
|
sale_price?: number | null;
|
|
17780
|
+
trade_item_key?: string | null;
|
|
16441
17781
|
unit?: string;
|
|
16442
17782
|
updated_at?: string;
|
|
16443
17783
|
weight?: string | null;
|
|
@@ -16460,6 +17800,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16460
17800
|
purchase_price?: number | null;
|
|
16461
17801
|
quantity?: number;
|
|
16462
17802
|
sale_price?: number | null;
|
|
17803
|
+
trade_item_key?: string | null;
|
|
16463
17804
|
unit?: string;
|
|
16464
17805
|
updated_at?: string;
|
|
16465
17806
|
weight?: string | null;
|
|
@@ -17279,6 +18620,102 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17279
18620
|
};
|
|
17280
18621
|
Relationships: [];
|
|
17281
18622
|
};
|
|
18623
|
+
stock_import_runs: {
|
|
18624
|
+
Row: {
|
|
18625
|
+
connection_id: string | null;
|
|
18626
|
+
created_at: string;
|
|
18627
|
+
created_rows: number;
|
|
18628
|
+
errors: import("../integrations/supabase/types").Json;
|
|
18629
|
+
filename: string | null;
|
|
18630
|
+
id: string;
|
|
18631
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
18632
|
+
skipped_rows: number;
|
|
18633
|
+
total_rows: number;
|
|
18634
|
+
updated_rows: number;
|
|
18635
|
+
user_id: string;
|
|
18636
|
+
};
|
|
18637
|
+
Insert: {
|
|
18638
|
+
connection_id?: string | null;
|
|
18639
|
+
created_at?: string;
|
|
18640
|
+
created_rows?: number;
|
|
18641
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
18642
|
+
filename?: string | null;
|
|
18643
|
+
id?: string;
|
|
18644
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
18645
|
+
skipped_rows?: number;
|
|
18646
|
+
total_rows?: number;
|
|
18647
|
+
updated_rows?: number;
|
|
18648
|
+
user_id: string;
|
|
18649
|
+
};
|
|
18650
|
+
Update: {
|
|
18651
|
+
connection_id?: string | null;
|
|
18652
|
+
created_at?: string;
|
|
18653
|
+
created_rows?: number;
|
|
18654
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
18655
|
+
filename?: string | null;
|
|
18656
|
+
id?: string;
|
|
18657
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
18658
|
+
skipped_rows?: number;
|
|
18659
|
+
total_rows?: number;
|
|
18660
|
+
updated_rows?: number;
|
|
18661
|
+
user_id?: string;
|
|
18662
|
+
};
|
|
18663
|
+
Relationships: [];
|
|
18664
|
+
};
|
|
18665
|
+
stock_mutation_log: {
|
|
18666
|
+
Row: {
|
|
18667
|
+
connection_id: string | null;
|
|
18668
|
+
created_at: string;
|
|
18669
|
+
created_by: string | null;
|
|
18670
|
+
id: string;
|
|
18671
|
+
mutation_type: string;
|
|
18672
|
+
order_id: string | null;
|
|
18673
|
+
order_item_id: string | null;
|
|
18674
|
+
order_source: string | null;
|
|
18675
|
+
physical_after: number | null;
|
|
18676
|
+
physical_before: number | null;
|
|
18677
|
+
qty_delta: number;
|
|
18678
|
+
reason: string | null;
|
|
18679
|
+
reserved_after: number | null;
|
|
18680
|
+
reserved_before: number | null;
|
|
18681
|
+
trade_item_key: string;
|
|
18682
|
+
};
|
|
18683
|
+
Insert: {
|
|
18684
|
+
connection_id?: string | null;
|
|
18685
|
+
created_at?: string;
|
|
18686
|
+
created_by?: string | null;
|
|
18687
|
+
id?: string;
|
|
18688
|
+
mutation_type: string;
|
|
18689
|
+
order_id?: string | null;
|
|
18690
|
+
order_item_id?: string | null;
|
|
18691
|
+
order_source?: string | null;
|
|
18692
|
+
physical_after?: number | null;
|
|
18693
|
+
physical_before?: number | null;
|
|
18694
|
+
qty_delta: number;
|
|
18695
|
+
reason?: string | null;
|
|
18696
|
+
reserved_after?: number | null;
|
|
18697
|
+
reserved_before?: number | null;
|
|
18698
|
+
trade_item_key: string;
|
|
18699
|
+
};
|
|
18700
|
+
Update: {
|
|
18701
|
+
connection_id?: string | null;
|
|
18702
|
+
created_at?: string;
|
|
18703
|
+
created_by?: string | null;
|
|
18704
|
+
id?: string;
|
|
18705
|
+
mutation_type?: string;
|
|
18706
|
+
order_id?: string | null;
|
|
18707
|
+
order_item_id?: string | null;
|
|
18708
|
+
order_source?: string | null;
|
|
18709
|
+
physical_after?: number | null;
|
|
18710
|
+
physical_before?: number | null;
|
|
18711
|
+
qty_delta?: number;
|
|
18712
|
+
reason?: string | null;
|
|
18713
|
+
reserved_after?: number | null;
|
|
18714
|
+
reserved_before?: number | null;
|
|
18715
|
+
trade_item_key?: string;
|
|
18716
|
+
};
|
|
18717
|
+
Relationships: [];
|
|
18718
|
+
};
|
|
17282
18719
|
supplier_products: {
|
|
17283
18720
|
Row: {
|
|
17284
18721
|
article_number: string | null;
|
|
@@ -18856,6 +20293,44 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18856
20293
|
};
|
|
18857
20294
|
Relationships: [];
|
|
18858
20295
|
};
|
|
20296
|
+
floriday_customer_discounts: {
|
|
20297
|
+
Row: {
|
|
20298
|
+
base_price: number | null;
|
|
20299
|
+
buyer_organization_id: string | null;
|
|
20300
|
+
currency: string | null;
|
|
20301
|
+
discount_type: string | null;
|
|
20302
|
+
discount_value: number | null;
|
|
20303
|
+
min_quantity: number | null;
|
|
20304
|
+
net_price: number | null;
|
|
20305
|
+
product_group_id: string | null;
|
|
20306
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
20307
|
+
source: string | null;
|
|
20308
|
+
source_id: string | null;
|
|
20309
|
+
trade_item_id: string | null;
|
|
20310
|
+
valid_from: string | null;
|
|
20311
|
+
valid_until: string | null;
|
|
20312
|
+
};
|
|
20313
|
+
Relationships: [];
|
|
20314
|
+
};
|
|
20315
|
+
local_customer_discounts: {
|
|
20316
|
+
Row: {
|
|
20317
|
+
base_price: number | null;
|
|
20318
|
+
currency: string | null;
|
|
20319
|
+
customer_id: string | null;
|
|
20320
|
+
discount_type: string | null;
|
|
20321
|
+
discount_value: number | null;
|
|
20322
|
+
min_quantity: number | null;
|
|
20323
|
+
net_price: number | null;
|
|
20324
|
+
product_category_id: string | null;
|
|
20325
|
+
product_id: string | null;
|
|
20326
|
+
product_name: string | null;
|
|
20327
|
+
source: string | null;
|
|
20328
|
+
source_id: string | null;
|
|
20329
|
+
valid_from: string | null;
|
|
20330
|
+
valid_until: string | null;
|
|
20331
|
+
};
|
|
20332
|
+
Relationships: [];
|
|
20333
|
+
};
|
|
18859
20334
|
manufacture_product_possible_stock_view: {
|
|
18860
20335
|
Row: {
|
|
18861
20336
|
component_count: number | null;
|
|
@@ -19140,6 +20615,54 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19140
20615
|
};
|
|
19141
20616
|
Returns: number;
|
|
19142
20617
|
};
|
|
20618
|
+
afh_city_code: {
|
|
20619
|
+
Args: {
|
|
20620
|
+
_city: string;
|
|
20621
|
+
_country: string;
|
|
20622
|
+
};
|
|
20623
|
+
Returns: string;
|
|
20624
|
+
};
|
|
20625
|
+
afh_normalize_country: {
|
|
20626
|
+
Args: {
|
|
20627
|
+
_raw: string;
|
|
20628
|
+
};
|
|
20629
|
+
Returns: string;
|
|
20630
|
+
};
|
|
20631
|
+
afh_normalize_nl_province: {
|
|
20632
|
+
Args: {
|
|
20633
|
+
_raw: string;
|
|
20634
|
+
};
|
|
20635
|
+
Returns: string;
|
|
20636
|
+
};
|
|
20637
|
+
afh_subtract_workdays: {
|
|
20638
|
+
Args: {
|
|
20639
|
+
_date: string;
|
|
20640
|
+
_days: number;
|
|
20641
|
+
};
|
|
20642
|
+
Returns: string;
|
|
20643
|
+
};
|
|
20644
|
+
apply_stock_consumption: {
|
|
20645
|
+
Args: {
|
|
20646
|
+
p_order_id: string;
|
|
20647
|
+
p_order_item_id: string;
|
|
20648
|
+
p_qty: number;
|
|
20649
|
+
p_reason: string;
|
|
20650
|
+
p_source: string;
|
|
20651
|
+
p_trade_item_key: string;
|
|
20652
|
+
};
|
|
20653
|
+
Returns: undefined;
|
|
20654
|
+
};
|
|
20655
|
+
apply_stock_reservation: {
|
|
20656
|
+
Args: {
|
|
20657
|
+
p_order_id: string;
|
|
20658
|
+
p_order_item_id: string;
|
|
20659
|
+
p_qty: number;
|
|
20660
|
+
p_reason: string;
|
|
20661
|
+
p_source: string;
|
|
20662
|
+
p_trade_item_key: string;
|
|
20663
|
+
};
|
|
20664
|
+
Returns: undefined;
|
|
20665
|
+
};
|
|
19143
20666
|
assign_cart_numbers: {
|
|
19144
20667
|
Args: {
|
|
19145
20668
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -19163,12 +20686,40 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19163
20686
|
order_number: string;
|
|
19164
20687
|
}[];
|
|
19165
20688
|
};
|
|
20689
|
+
backfill_open_order_reservations: {
|
|
20690
|
+
Args: never;
|
|
20691
|
+
Returns: {
|
|
20692
|
+
processed_items: number;
|
|
20693
|
+
}[];
|
|
20694
|
+
};
|
|
19166
20695
|
call_exact_route: {
|
|
19167
20696
|
Args: {
|
|
19168
20697
|
path: string;
|
|
19169
20698
|
};
|
|
19170
20699
|
Returns: number;
|
|
19171
20700
|
};
|
|
20701
|
+
check_offer_product_available_stock: {
|
|
20702
|
+
Args: {
|
|
20703
|
+
p_campaign_product_id: string;
|
|
20704
|
+
p_code: string;
|
|
20705
|
+
p_needed_qty?: number;
|
|
20706
|
+
p_product_name?: string;
|
|
20707
|
+
};
|
|
20708
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
20709
|
+
};
|
|
20710
|
+
check_trade_item_available_stock: {
|
|
20711
|
+
Args: {
|
|
20712
|
+
p_connection_id?: string;
|
|
20713
|
+
p_context?: string;
|
|
20714
|
+
p_needed_qty?: number;
|
|
20715
|
+
p_order_id?: string;
|
|
20716
|
+
p_order_item_id?: string;
|
|
20717
|
+
p_owner_id?: string;
|
|
20718
|
+
p_product_name?: string;
|
|
20719
|
+
p_trade_item_key: string;
|
|
20720
|
+
};
|
|
20721
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
20722
|
+
};
|
|
19172
20723
|
cleanup_old_bookings: {
|
|
19173
20724
|
Args: never;
|
|
19174
20725
|
Returns: number;
|
|
@@ -19212,6 +20763,12 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19212
20763
|
table_name: string;
|
|
19213
20764
|
}[];
|
|
19214
20765
|
};
|
|
20766
|
+
dispatch_carrier_signups_sql: {
|
|
20767
|
+
Args: {
|
|
20768
|
+
_catchup?: string;
|
|
20769
|
+
};
|
|
20770
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
20771
|
+
};
|
|
19215
20772
|
email_auth_decrypt: {
|
|
19216
20773
|
Args: {
|
|
19217
20774
|
cipher: string;
|
|
@@ -19247,6 +20804,12 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19247
20804
|
status: string;
|
|
19248
20805
|
}[];
|
|
19249
20806
|
};
|
|
20807
|
+
ensure_trade_item_stock_row: {
|
|
20808
|
+
Args: {
|
|
20809
|
+
p_key: string;
|
|
20810
|
+
};
|
|
20811
|
+
Returns: undefined;
|
|
20812
|
+
};
|
|
19250
20813
|
ensure_user_tenant: {
|
|
19251
20814
|
Args: never;
|
|
19252
20815
|
Returns: string;
|
|
@@ -19284,6 +20847,31 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19284
20847
|
};
|
|
19285
20848
|
Returns: boolean;
|
|
19286
20849
|
};
|
|
20850
|
+
find_trade_item_key: {
|
|
20851
|
+
Args: {
|
|
20852
|
+
p_barcode: string;
|
|
20853
|
+
p_name: string;
|
|
20854
|
+
p_product_id: string;
|
|
20855
|
+
};
|
|
20856
|
+
Returns: string;
|
|
20857
|
+
};
|
|
20858
|
+
floriday_effective_price: {
|
|
20859
|
+
Args: {
|
|
20860
|
+
_buyer_id: string;
|
|
20861
|
+
_on_date?: string;
|
|
20862
|
+
_quantity?: number;
|
|
20863
|
+
_trade_item_id: string;
|
|
20864
|
+
};
|
|
20865
|
+
Returns: {
|
|
20866
|
+
base_price: number;
|
|
20867
|
+
currency: string;
|
|
20868
|
+
discount_type: string;
|
|
20869
|
+
discount_value: number;
|
|
20870
|
+
net_price: number;
|
|
20871
|
+
source: string;
|
|
20872
|
+
source_id: string;
|
|
20873
|
+
}[];
|
|
20874
|
+
};
|
|
19287
20875
|
format_cart_number: {
|
|
19288
20876
|
Args: {
|
|
19289
20877
|
p_pick_date: string;
|
|
@@ -19304,6 +20892,13 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19304
20892
|
preferred_warehouse_name: string;
|
|
19305
20893
|
}[];
|
|
19306
20894
|
};
|
|
20895
|
+
get_active_floriday_context: {
|
|
20896
|
+
Args: never;
|
|
20897
|
+
Returns: {
|
|
20898
|
+
connection_id: string;
|
|
20899
|
+
user_id: string;
|
|
20900
|
+
}[];
|
|
20901
|
+
};
|
|
19307
20902
|
get_active_twinfield_public: {
|
|
19308
20903
|
Args: never;
|
|
19309
20904
|
Returns: {
|
|
@@ -19406,6 +21001,18 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19406
21001
|
};
|
|
19407
21002
|
Returns: import("../integrations/supabase/types").Json;
|
|
19408
21003
|
};
|
|
21004
|
+
get_offer_recipient_by_code: {
|
|
21005
|
+
Args: {
|
|
21006
|
+
p_code: string;
|
|
21007
|
+
};
|
|
21008
|
+
Returns: {
|
|
21009
|
+
campaign_id: string;
|
|
21010
|
+
clicked_at: string;
|
|
21011
|
+
customer_id: string;
|
|
21012
|
+
id: string;
|
|
21013
|
+
ordered_at: string;
|
|
21014
|
+
}[];
|
|
21015
|
+
};
|
|
19409
21016
|
get_or_assign_floriday_order_number: {
|
|
19410
21017
|
Args: {
|
|
19411
21018
|
p_floriday_id: string;
|
|
@@ -19458,6 +21065,34 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19458
21065
|
Args: never;
|
|
19459
21066
|
Returns: boolean;
|
|
19460
21067
|
};
|
|
21068
|
+
local_effective_price: {
|
|
21069
|
+
Args: {
|
|
21070
|
+
_customer_id: string;
|
|
21071
|
+
_on_date?: string;
|
|
21072
|
+
_product_id: string;
|
|
21073
|
+
_quantity?: number;
|
|
21074
|
+
};
|
|
21075
|
+
Returns: {
|
|
21076
|
+
currency: string;
|
|
21077
|
+
discount_type: string;
|
|
21078
|
+
discount_value: number;
|
|
21079
|
+
net_price: number;
|
|
21080
|
+
source: string;
|
|
21081
|
+
source_id: string;
|
|
21082
|
+
}[];
|
|
21083
|
+
};
|
|
21084
|
+
mark_offer_clicked: {
|
|
21085
|
+
Args: {
|
|
21086
|
+
p_code: string;
|
|
21087
|
+
};
|
|
21088
|
+
Returns: undefined;
|
|
21089
|
+
};
|
|
21090
|
+
mark_offer_ordered: {
|
|
21091
|
+
Args: {
|
|
21092
|
+
p_code: string;
|
|
21093
|
+
};
|
|
21094
|
+
Returns: undefined;
|
|
21095
|
+
};
|
|
19461
21096
|
next_order_number: {
|
|
19462
21097
|
Args: {
|
|
19463
21098
|
p_prefix: string;
|
|
@@ -19477,6 +21112,14 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19477
21112
|
};
|
|
19478
21113
|
Returns: string;
|
|
19479
21114
|
};
|
|
21115
|
+
offer_recipient_matches: {
|
|
21116
|
+
Args: {
|
|
21117
|
+
_campaign_id: string;
|
|
21118
|
+
_customer_id: string;
|
|
21119
|
+
_recipient_id: string;
|
|
21120
|
+
};
|
|
21121
|
+
Returns: boolean;
|
|
21122
|
+
};
|
|
19480
21123
|
pickstation_get_orders_raw: {
|
|
19481
21124
|
Args: never;
|
|
19482
21125
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -19504,6 +21147,13 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19504
21147
|
};
|
|
19505
21148
|
Returns: undefined;
|
|
19506
21149
|
};
|
|
21150
|
+
promote_trade_item_key: {
|
|
21151
|
+
Args: {
|
|
21152
|
+
p_new: string;
|
|
21153
|
+
p_old: string;
|
|
21154
|
+
};
|
|
21155
|
+
Returns: undefined;
|
|
21156
|
+
};
|
|
19507
21157
|
refresh_floricode_derived_code_lists: {
|
|
19508
21158
|
Args: never;
|
|
19509
21159
|
Returns: {
|
|
@@ -20547,6 +22197,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
20547
22197
|
notes: string | null;
|
|
20548
22198
|
performed_at: string;
|
|
20549
22199
|
rescheduled_count: number;
|
|
22200
|
+
stock_consumed_at: string | null;
|
|
20550
22201
|
total_carts: number;
|
|
20551
22202
|
updated_at: string;
|
|
20552
22203
|
user_id: string;
|
|
@@ -20560,6 +22211,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
20560
22211
|
notes?: string | null;
|
|
20561
22212
|
performed_at?: string;
|
|
20562
22213
|
rescheduled_count?: number;
|
|
22214
|
+
stock_consumed_at?: string | null;
|
|
20563
22215
|
total_carts?: number;
|
|
20564
22216
|
updated_at?: string;
|
|
20565
22217
|
user_id: string;
|
|
@@ -20573,6 +22225,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
20573
22225
|
notes?: string | null;
|
|
20574
22226
|
performed_at?: string;
|
|
20575
22227
|
rescheduled_count?: number;
|
|
22228
|
+
stock_consumed_at?: string | null;
|
|
20576
22229
|
total_carts?: number;
|
|
20577
22230
|
updated_at?: string;
|
|
20578
22231
|
user_id?: string;
|
|
@@ -23453,6 +25106,51 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
23453
25106
|
referencedColumns: ["id"];
|
|
23454
25107
|
}];
|
|
23455
25108
|
};
|
|
25109
|
+
floriday_continuous_stock_queue: {
|
|
25110
|
+
Row: {
|
|
25111
|
+
attempts: number;
|
|
25112
|
+
connection_id: string;
|
|
25113
|
+
created_at: string;
|
|
25114
|
+
gateway_attempt_id: string | null;
|
|
25115
|
+
id: string;
|
|
25116
|
+
last_error: string | null;
|
|
25117
|
+
number_of_pieces: number;
|
|
25118
|
+
sent_at: string | null;
|
|
25119
|
+
status: string;
|
|
25120
|
+
trade_item_id: string;
|
|
25121
|
+
updated_at: string;
|
|
25122
|
+
user_id: string;
|
|
25123
|
+
};
|
|
25124
|
+
Insert: {
|
|
25125
|
+
attempts?: number;
|
|
25126
|
+
connection_id: string;
|
|
25127
|
+
created_at?: string;
|
|
25128
|
+
gateway_attempt_id?: string | null;
|
|
25129
|
+
id?: string;
|
|
25130
|
+
last_error?: string | null;
|
|
25131
|
+
number_of_pieces?: number;
|
|
25132
|
+
sent_at?: string | null;
|
|
25133
|
+
status?: string;
|
|
25134
|
+
trade_item_id: string;
|
|
25135
|
+
updated_at?: string;
|
|
25136
|
+
user_id: string;
|
|
25137
|
+
};
|
|
25138
|
+
Update: {
|
|
25139
|
+
attempts?: number;
|
|
25140
|
+
connection_id?: string;
|
|
25141
|
+
created_at?: string;
|
|
25142
|
+
gateway_attempt_id?: string | null;
|
|
25143
|
+
id?: string;
|
|
25144
|
+
last_error?: string | null;
|
|
25145
|
+
number_of_pieces?: number;
|
|
25146
|
+
sent_at?: string | null;
|
|
25147
|
+
status?: string;
|
|
25148
|
+
trade_item_id?: string;
|
|
25149
|
+
updated_at?: string;
|
|
25150
|
+
user_id?: string;
|
|
25151
|
+
};
|
|
25152
|
+
Relationships: [];
|
|
25153
|
+
};
|
|
23456
25154
|
floriday_contract_trade_item_groups_cache: {
|
|
23457
25155
|
Row: {
|
|
23458
25156
|
connection_id: string;
|
|
@@ -24842,6 +26540,204 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
24842
26540
|
};
|
|
24843
26541
|
Relationships: [];
|
|
24844
26542
|
};
|
|
26543
|
+
local_customer_agreements: {
|
|
26544
|
+
Row: {
|
|
26545
|
+
base_price: number | null;
|
|
26546
|
+
created_at: string;
|
|
26547
|
+
currency: string;
|
|
26548
|
+
customer_id: string;
|
|
26549
|
+
id: string;
|
|
26550
|
+
min_quantity: number;
|
|
26551
|
+
net_price: number;
|
|
26552
|
+
notes: string | null;
|
|
26553
|
+
product_category_id: string | null;
|
|
26554
|
+
product_id: string | null;
|
|
26555
|
+
updated_at: string;
|
|
26556
|
+
valid_from: string | null;
|
|
26557
|
+
valid_until: string | null;
|
|
26558
|
+
};
|
|
26559
|
+
Insert: {
|
|
26560
|
+
base_price?: number | null;
|
|
26561
|
+
created_at?: string;
|
|
26562
|
+
currency?: string;
|
|
26563
|
+
customer_id: string;
|
|
26564
|
+
id?: string;
|
|
26565
|
+
min_quantity?: number;
|
|
26566
|
+
net_price: number;
|
|
26567
|
+
notes?: string | null;
|
|
26568
|
+
product_category_id?: string | null;
|
|
26569
|
+
product_id?: string | null;
|
|
26570
|
+
updated_at?: string;
|
|
26571
|
+
valid_from?: string | null;
|
|
26572
|
+
valid_until?: string | null;
|
|
26573
|
+
};
|
|
26574
|
+
Update: {
|
|
26575
|
+
base_price?: number | null;
|
|
26576
|
+
created_at?: string;
|
|
26577
|
+
currency?: string;
|
|
26578
|
+
customer_id?: string;
|
|
26579
|
+
id?: string;
|
|
26580
|
+
min_quantity?: number;
|
|
26581
|
+
net_price?: number;
|
|
26582
|
+
notes?: string | null;
|
|
26583
|
+
product_category_id?: string | null;
|
|
26584
|
+
product_id?: string | null;
|
|
26585
|
+
updated_at?: string;
|
|
26586
|
+
valid_from?: string | null;
|
|
26587
|
+
valid_until?: string | null;
|
|
26588
|
+
};
|
|
26589
|
+
Relationships: [{
|
|
26590
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
26591
|
+
columns: ["customer_id"];
|
|
26592
|
+
isOneToOne: false;
|
|
26593
|
+
referencedRelation: "customers";
|
|
26594
|
+
referencedColumns: ["id"];
|
|
26595
|
+
}, {
|
|
26596
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
26597
|
+
columns: ["product_category_id"];
|
|
26598
|
+
isOneToOne: false;
|
|
26599
|
+
referencedRelation: "product_categories";
|
|
26600
|
+
referencedColumns: ["id"];
|
|
26601
|
+
}, {
|
|
26602
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
26603
|
+
columns: ["product_id"];
|
|
26604
|
+
isOneToOne: false;
|
|
26605
|
+
referencedRelation: "products";
|
|
26606
|
+
referencedColumns: ["id"];
|
|
26607
|
+
}];
|
|
26608
|
+
};
|
|
26609
|
+
local_customer_price_groups: {
|
|
26610
|
+
Row: {
|
|
26611
|
+
created_at: string;
|
|
26612
|
+
currency: string;
|
|
26613
|
+
customer_id: string;
|
|
26614
|
+
discount_type: string;
|
|
26615
|
+
discount_value: number;
|
|
26616
|
+
id: string;
|
|
26617
|
+
min_quantity: number;
|
|
26618
|
+
notes: string | null;
|
|
26619
|
+
product_category_id: string | null;
|
|
26620
|
+
product_id: string | null;
|
|
26621
|
+
updated_at: string;
|
|
26622
|
+
valid_from: string | null;
|
|
26623
|
+
valid_until: string | null;
|
|
26624
|
+
};
|
|
26625
|
+
Insert: {
|
|
26626
|
+
created_at?: string;
|
|
26627
|
+
currency?: string;
|
|
26628
|
+
customer_id: string;
|
|
26629
|
+
discount_type: string;
|
|
26630
|
+
discount_value: number;
|
|
26631
|
+
id?: string;
|
|
26632
|
+
min_quantity?: number;
|
|
26633
|
+
notes?: string | null;
|
|
26634
|
+
product_category_id?: string | null;
|
|
26635
|
+
product_id?: string | null;
|
|
26636
|
+
updated_at?: string;
|
|
26637
|
+
valid_from?: string | null;
|
|
26638
|
+
valid_until?: string | null;
|
|
26639
|
+
};
|
|
26640
|
+
Update: {
|
|
26641
|
+
created_at?: string;
|
|
26642
|
+
currency?: string;
|
|
26643
|
+
customer_id?: string;
|
|
26644
|
+
discount_type?: string;
|
|
26645
|
+
discount_value?: number;
|
|
26646
|
+
id?: string;
|
|
26647
|
+
min_quantity?: number;
|
|
26648
|
+
notes?: string | null;
|
|
26649
|
+
product_category_id?: string | null;
|
|
26650
|
+
product_id?: string | null;
|
|
26651
|
+
updated_at?: string;
|
|
26652
|
+
valid_from?: string | null;
|
|
26653
|
+
valid_until?: string | null;
|
|
26654
|
+
};
|
|
26655
|
+
Relationships: [{
|
|
26656
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
26657
|
+
columns: ["customer_id"];
|
|
26658
|
+
isOneToOne: false;
|
|
26659
|
+
referencedRelation: "customers";
|
|
26660
|
+
referencedColumns: ["id"];
|
|
26661
|
+
}, {
|
|
26662
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
26663
|
+
columns: ["product_category_id"];
|
|
26664
|
+
isOneToOne: false;
|
|
26665
|
+
referencedRelation: "product_categories";
|
|
26666
|
+
referencedColumns: ["id"];
|
|
26667
|
+
}, {
|
|
26668
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
26669
|
+
columns: ["product_id"];
|
|
26670
|
+
isOneToOne: false;
|
|
26671
|
+
referencedRelation: "products";
|
|
26672
|
+
referencedColumns: ["id"];
|
|
26673
|
+
}];
|
|
26674
|
+
};
|
|
26675
|
+
local_customer_sales_strategies: {
|
|
26676
|
+
Row: {
|
|
26677
|
+
created_at: string;
|
|
26678
|
+
currency: string;
|
|
26679
|
+
customer_id: string;
|
|
26680
|
+
discount_type: string;
|
|
26681
|
+
discount_value: number;
|
|
26682
|
+
id: string;
|
|
26683
|
+
min_quantity: number;
|
|
26684
|
+
notes: string | null;
|
|
26685
|
+
product_category_id: string | null;
|
|
26686
|
+
product_id: string | null;
|
|
26687
|
+
updated_at: string;
|
|
26688
|
+
valid_from: string | null;
|
|
26689
|
+
valid_until: string | null;
|
|
26690
|
+
};
|
|
26691
|
+
Insert: {
|
|
26692
|
+
created_at?: string;
|
|
26693
|
+
currency?: string;
|
|
26694
|
+
customer_id: string;
|
|
26695
|
+
discount_type: string;
|
|
26696
|
+
discount_value: number;
|
|
26697
|
+
id?: string;
|
|
26698
|
+
min_quantity?: number;
|
|
26699
|
+
notes?: string | null;
|
|
26700
|
+
product_category_id?: string | null;
|
|
26701
|
+
product_id?: string | null;
|
|
26702
|
+
updated_at?: string;
|
|
26703
|
+
valid_from?: string | null;
|
|
26704
|
+
valid_until?: string | null;
|
|
26705
|
+
};
|
|
26706
|
+
Update: {
|
|
26707
|
+
created_at?: string;
|
|
26708
|
+
currency?: string;
|
|
26709
|
+
customer_id?: string;
|
|
26710
|
+
discount_type?: string;
|
|
26711
|
+
discount_value?: number;
|
|
26712
|
+
id?: string;
|
|
26713
|
+
min_quantity?: number;
|
|
26714
|
+
notes?: string | null;
|
|
26715
|
+
product_category_id?: string | null;
|
|
26716
|
+
product_id?: string | null;
|
|
26717
|
+
updated_at?: string;
|
|
26718
|
+
valid_from?: string | null;
|
|
26719
|
+
valid_until?: string | null;
|
|
26720
|
+
};
|
|
26721
|
+
Relationships: [{
|
|
26722
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
26723
|
+
columns: ["customer_id"];
|
|
26724
|
+
isOneToOne: false;
|
|
26725
|
+
referencedRelation: "customers";
|
|
26726
|
+
referencedColumns: ["id"];
|
|
26727
|
+
}, {
|
|
26728
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
26729
|
+
columns: ["product_category_id"];
|
|
26730
|
+
isOneToOne: false;
|
|
26731
|
+
referencedRelation: "product_categories";
|
|
26732
|
+
referencedColumns: ["id"];
|
|
26733
|
+
}, {
|
|
26734
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
26735
|
+
columns: ["product_id"];
|
|
26736
|
+
isOneToOne: false;
|
|
26737
|
+
referencedRelation: "products";
|
|
26738
|
+
referencedColumns: ["id"];
|
|
26739
|
+
}];
|
|
26740
|
+
};
|
|
24845
26741
|
locations: {
|
|
24846
26742
|
Row: {
|
|
24847
26743
|
created_at: string;
|
|
@@ -25349,6 +27245,273 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
25349
27245
|
referencedColumns: ["id"];
|
|
25350
27246
|
}];
|
|
25351
27247
|
};
|
|
27248
|
+
nmbrs_component_mapping: {
|
|
27249
|
+
Row: {
|
|
27250
|
+
created_at: string;
|
|
27251
|
+
id: string;
|
|
27252
|
+
source_kind: string;
|
|
27253
|
+
source_value: string | null;
|
|
27254
|
+
updated_at: string;
|
|
27255
|
+
wage_code: string;
|
|
27256
|
+
};
|
|
27257
|
+
Insert: {
|
|
27258
|
+
created_at?: string;
|
|
27259
|
+
id?: string;
|
|
27260
|
+
source_kind: string;
|
|
27261
|
+
source_value?: string | null;
|
|
27262
|
+
updated_at?: string;
|
|
27263
|
+
wage_code: string;
|
|
27264
|
+
};
|
|
27265
|
+
Update: {
|
|
27266
|
+
created_at?: string;
|
|
27267
|
+
id?: string;
|
|
27268
|
+
source_kind?: string;
|
|
27269
|
+
source_value?: string | null;
|
|
27270
|
+
updated_at?: string;
|
|
27271
|
+
wage_code?: string;
|
|
27272
|
+
};
|
|
27273
|
+
Relationships: [{
|
|
27274
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
27275
|
+
columns: ["wage_code"];
|
|
27276
|
+
isOneToOne: false;
|
|
27277
|
+
referencedRelation: "nmbrs_wage_components";
|
|
27278
|
+
referencedColumns: ["code"];
|
|
27279
|
+
}];
|
|
27280
|
+
};
|
|
27281
|
+
nmbrs_employee_mapping: {
|
|
27282
|
+
Row: {
|
|
27283
|
+
active_from: string | null;
|
|
27284
|
+
active_to: string | null;
|
|
27285
|
+
contract_hours_per_week: number | null;
|
|
27286
|
+
created_at: string;
|
|
27287
|
+
hourly_wage: number | null;
|
|
27288
|
+
id: string;
|
|
27289
|
+
monteur_id: string;
|
|
27290
|
+
nmbrs_company_code: string | null;
|
|
27291
|
+
nmbrs_employee_number: string;
|
|
27292
|
+
updated_at: string;
|
|
27293
|
+
};
|
|
27294
|
+
Insert: {
|
|
27295
|
+
active_from?: string | null;
|
|
27296
|
+
active_to?: string | null;
|
|
27297
|
+
contract_hours_per_week?: number | null;
|
|
27298
|
+
created_at?: string;
|
|
27299
|
+
hourly_wage?: number | null;
|
|
27300
|
+
id?: string;
|
|
27301
|
+
monteur_id: string;
|
|
27302
|
+
nmbrs_company_code?: string | null;
|
|
27303
|
+
nmbrs_employee_number: string;
|
|
27304
|
+
updated_at?: string;
|
|
27305
|
+
};
|
|
27306
|
+
Update: {
|
|
27307
|
+
active_from?: string | null;
|
|
27308
|
+
active_to?: string | null;
|
|
27309
|
+
contract_hours_per_week?: number | null;
|
|
27310
|
+
created_at?: string;
|
|
27311
|
+
hourly_wage?: number | null;
|
|
27312
|
+
id?: string;
|
|
27313
|
+
monteur_id?: string;
|
|
27314
|
+
nmbrs_company_code?: string | null;
|
|
27315
|
+
nmbrs_employee_number?: string;
|
|
27316
|
+
updated_at?: string;
|
|
27317
|
+
};
|
|
27318
|
+
Relationships: [{
|
|
27319
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
27320
|
+
columns: ["monteur_id"];
|
|
27321
|
+
isOneToOne: true;
|
|
27322
|
+
referencedRelation: "monteurs";
|
|
27323
|
+
referencedColumns: ["id"];
|
|
27324
|
+
}];
|
|
27325
|
+
};
|
|
27326
|
+
nmbrs_export_lines: {
|
|
27327
|
+
Row: {
|
|
27328
|
+
amount: number;
|
|
27329
|
+
created_at: string;
|
|
27330
|
+
entry_date: string;
|
|
27331
|
+
hours: number;
|
|
27332
|
+
id: string;
|
|
27333
|
+
monteur_id: string;
|
|
27334
|
+
nmbrs_employee_number: string | null;
|
|
27335
|
+
notes: string | null;
|
|
27336
|
+
run_id: string;
|
|
27337
|
+
source_kind: string | null;
|
|
27338
|
+
source_ref_id: string | null;
|
|
27339
|
+
updated_at: string;
|
|
27340
|
+
wage_code: string;
|
|
27341
|
+
};
|
|
27342
|
+
Insert: {
|
|
27343
|
+
amount?: number;
|
|
27344
|
+
created_at?: string;
|
|
27345
|
+
entry_date: string;
|
|
27346
|
+
hours?: number;
|
|
27347
|
+
id?: string;
|
|
27348
|
+
monteur_id: string;
|
|
27349
|
+
nmbrs_employee_number?: string | null;
|
|
27350
|
+
notes?: string | null;
|
|
27351
|
+
run_id: string;
|
|
27352
|
+
source_kind?: string | null;
|
|
27353
|
+
source_ref_id?: string | null;
|
|
27354
|
+
updated_at?: string;
|
|
27355
|
+
wage_code: string;
|
|
27356
|
+
};
|
|
27357
|
+
Update: {
|
|
27358
|
+
amount?: number;
|
|
27359
|
+
created_at?: string;
|
|
27360
|
+
entry_date?: string;
|
|
27361
|
+
hours?: number;
|
|
27362
|
+
id?: string;
|
|
27363
|
+
monteur_id?: string;
|
|
27364
|
+
nmbrs_employee_number?: string | null;
|
|
27365
|
+
notes?: string | null;
|
|
27366
|
+
run_id?: string;
|
|
27367
|
+
source_kind?: string | null;
|
|
27368
|
+
source_ref_id?: string | null;
|
|
27369
|
+
updated_at?: string;
|
|
27370
|
+
wage_code?: string;
|
|
27371
|
+
};
|
|
27372
|
+
Relationships: [{
|
|
27373
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
27374
|
+
columns: ["monteur_id"];
|
|
27375
|
+
isOneToOne: false;
|
|
27376
|
+
referencedRelation: "monteurs";
|
|
27377
|
+
referencedColumns: ["id"];
|
|
27378
|
+
}, {
|
|
27379
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
27380
|
+
columns: ["run_id"];
|
|
27381
|
+
isOneToOne: false;
|
|
27382
|
+
referencedRelation: "nmbrs_export_runs";
|
|
27383
|
+
referencedColumns: ["id"];
|
|
27384
|
+
}, {
|
|
27385
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
27386
|
+
columns: ["wage_code"];
|
|
27387
|
+
isOneToOne: false;
|
|
27388
|
+
referencedRelation: "nmbrs_wage_components";
|
|
27389
|
+
referencedColumns: ["code"];
|
|
27390
|
+
}];
|
|
27391
|
+
};
|
|
27392
|
+
nmbrs_export_runs: {
|
|
27393
|
+
Row: {
|
|
27394
|
+
created_at: string;
|
|
27395
|
+
file_name: string | null;
|
|
27396
|
+
generated_at: string;
|
|
27397
|
+
generated_by: string | null;
|
|
27398
|
+
id: string;
|
|
27399
|
+
notes: string | null;
|
|
27400
|
+
period_end: string;
|
|
27401
|
+
period_label: string;
|
|
27402
|
+
period_start: string;
|
|
27403
|
+
status: string;
|
|
27404
|
+
total_hours: number;
|
|
27405
|
+
total_lines: number;
|
|
27406
|
+
updated_at: string;
|
|
27407
|
+
};
|
|
27408
|
+
Insert: {
|
|
27409
|
+
created_at?: string;
|
|
27410
|
+
file_name?: string | null;
|
|
27411
|
+
generated_at?: string;
|
|
27412
|
+
generated_by?: string | null;
|
|
27413
|
+
id?: string;
|
|
27414
|
+
notes?: string | null;
|
|
27415
|
+
period_end: string;
|
|
27416
|
+
period_label: string;
|
|
27417
|
+
period_start: string;
|
|
27418
|
+
status?: string;
|
|
27419
|
+
total_hours?: number;
|
|
27420
|
+
total_lines?: number;
|
|
27421
|
+
updated_at?: string;
|
|
27422
|
+
};
|
|
27423
|
+
Update: {
|
|
27424
|
+
created_at?: string;
|
|
27425
|
+
file_name?: string | null;
|
|
27426
|
+
generated_at?: string;
|
|
27427
|
+
generated_by?: string | null;
|
|
27428
|
+
id?: string;
|
|
27429
|
+
notes?: string | null;
|
|
27430
|
+
period_end?: string;
|
|
27431
|
+
period_label?: string;
|
|
27432
|
+
period_start?: string;
|
|
27433
|
+
status?: string;
|
|
27434
|
+
total_hours?: number;
|
|
27435
|
+
total_lines?: number;
|
|
27436
|
+
updated_at?: string;
|
|
27437
|
+
};
|
|
27438
|
+
Relationships: [];
|
|
27439
|
+
};
|
|
27440
|
+
nmbrs_settings: {
|
|
27441
|
+
Row: {
|
|
27442
|
+
created_at: string;
|
|
27443
|
+
default_company_code: string | null;
|
|
27444
|
+
id: boolean;
|
|
27445
|
+
include_travel: boolean;
|
|
27446
|
+
overtime_threshold_daily: number;
|
|
27447
|
+
overtime_threshold_weekly: number;
|
|
27448
|
+
period_type: string;
|
|
27449
|
+
updated_at: string;
|
|
27450
|
+
updated_by: string | null;
|
|
27451
|
+
week_start_day: number;
|
|
27452
|
+
};
|
|
27453
|
+
Insert: {
|
|
27454
|
+
created_at?: string;
|
|
27455
|
+
default_company_code?: string | null;
|
|
27456
|
+
id?: boolean;
|
|
27457
|
+
include_travel?: boolean;
|
|
27458
|
+
overtime_threshold_daily?: number;
|
|
27459
|
+
overtime_threshold_weekly?: number;
|
|
27460
|
+
period_type?: string;
|
|
27461
|
+
updated_at?: string;
|
|
27462
|
+
updated_by?: string | null;
|
|
27463
|
+
week_start_day?: number;
|
|
27464
|
+
};
|
|
27465
|
+
Update: {
|
|
27466
|
+
created_at?: string;
|
|
27467
|
+
default_company_code?: string | null;
|
|
27468
|
+
id?: boolean;
|
|
27469
|
+
include_travel?: boolean;
|
|
27470
|
+
overtime_threshold_daily?: number;
|
|
27471
|
+
overtime_threshold_weekly?: number;
|
|
27472
|
+
period_type?: string;
|
|
27473
|
+
updated_at?: string;
|
|
27474
|
+
updated_by?: string | null;
|
|
27475
|
+
week_start_day?: number;
|
|
27476
|
+
};
|
|
27477
|
+
Relationships: [];
|
|
27478
|
+
};
|
|
27479
|
+
nmbrs_wage_components: {
|
|
27480
|
+
Row: {
|
|
27481
|
+
category: string;
|
|
27482
|
+
code: string;
|
|
27483
|
+
created_at: string;
|
|
27484
|
+
id: string;
|
|
27485
|
+
is_active: boolean;
|
|
27486
|
+
label: string;
|
|
27487
|
+
sort_order: number;
|
|
27488
|
+
unit: string;
|
|
27489
|
+
updated_at: string;
|
|
27490
|
+
};
|
|
27491
|
+
Insert: {
|
|
27492
|
+
category: string;
|
|
27493
|
+
code: string;
|
|
27494
|
+
created_at?: string;
|
|
27495
|
+
id?: string;
|
|
27496
|
+
is_active?: boolean;
|
|
27497
|
+
label: string;
|
|
27498
|
+
sort_order?: number;
|
|
27499
|
+
unit: string;
|
|
27500
|
+
updated_at?: string;
|
|
27501
|
+
};
|
|
27502
|
+
Update: {
|
|
27503
|
+
category?: string;
|
|
27504
|
+
code?: string;
|
|
27505
|
+
created_at?: string;
|
|
27506
|
+
id?: string;
|
|
27507
|
+
is_active?: boolean;
|
|
27508
|
+
label?: string;
|
|
27509
|
+
sort_order?: number;
|
|
27510
|
+
unit?: string;
|
|
27511
|
+
updated_at?: string;
|
|
27512
|
+
};
|
|
27513
|
+
Relationships: [];
|
|
27514
|
+
};
|
|
25352
27515
|
notifications: {
|
|
25353
27516
|
Row: {
|
|
25354
27517
|
created_at: string;
|
|
@@ -26331,6 +28494,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
26331
28494
|
purchase_price: number | null;
|
|
26332
28495
|
quantity: number;
|
|
26333
28496
|
sale_price: number | null;
|
|
28497
|
+
trade_item_key: string | null;
|
|
26334
28498
|
unit: string;
|
|
26335
28499
|
updated_at: string;
|
|
26336
28500
|
weight: string | null;
|
|
@@ -26353,6 +28517,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
26353
28517
|
purchase_price?: number | null;
|
|
26354
28518
|
quantity?: number;
|
|
26355
28519
|
sale_price?: number | null;
|
|
28520
|
+
trade_item_key?: string | null;
|
|
26356
28521
|
unit?: string;
|
|
26357
28522
|
updated_at?: string;
|
|
26358
28523
|
weight?: string | null;
|
|
@@ -26375,6 +28540,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
26375
28540
|
purchase_price?: number | null;
|
|
26376
28541
|
quantity?: number;
|
|
26377
28542
|
sale_price?: number | null;
|
|
28543
|
+
trade_item_key?: string | null;
|
|
26378
28544
|
unit?: string;
|
|
26379
28545
|
updated_at?: string;
|
|
26380
28546
|
weight?: string | null;
|
|
@@ -27194,6 +29360,102 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
27194
29360
|
};
|
|
27195
29361
|
Relationships: [];
|
|
27196
29362
|
};
|
|
29363
|
+
stock_import_runs: {
|
|
29364
|
+
Row: {
|
|
29365
|
+
connection_id: string | null;
|
|
29366
|
+
created_at: string;
|
|
29367
|
+
created_rows: number;
|
|
29368
|
+
errors: import("../integrations/supabase/types").Json;
|
|
29369
|
+
filename: string | null;
|
|
29370
|
+
id: string;
|
|
29371
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
29372
|
+
skipped_rows: number;
|
|
29373
|
+
total_rows: number;
|
|
29374
|
+
updated_rows: number;
|
|
29375
|
+
user_id: string;
|
|
29376
|
+
};
|
|
29377
|
+
Insert: {
|
|
29378
|
+
connection_id?: string | null;
|
|
29379
|
+
created_at?: string;
|
|
29380
|
+
created_rows?: number;
|
|
29381
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
29382
|
+
filename?: string | null;
|
|
29383
|
+
id?: string;
|
|
29384
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
29385
|
+
skipped_rows?: number;
|
|
29386
|
+
total_rows?: number;
|
|
29387
|
+
updated_rows?: number;
|
|
29388
|
+
user_id: string;
|
|
29389
|
+
};
|
|
29390
|
+
Update: {
|
|
29391
|
+
connection_id?: string | null;
|
|
29392
|
+
created_at?: string;
|
|
29393
|
+
created_rows?: number;
|
|
29394
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
29395
|
+
filename?: string | null;
|
|
29396
|
+
id?: string;
|
|
29397
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
29398
|
+
skipped_rows?: number;
|
|
29399
|
+
total_rows?: number;
|
|
29400
|
+
updated_rows?: number;
|
|
29401
|
+
user_id?: string;
|
|
29402
|
+
};
|
|
29403
|
+
Relationships: [];
|
|
29404
|
+
};
|
|
29405
|
+
stock_mutation_log: {
|
|
29406
|
+
Row: {
|
|
29407
|
+
connection_id: string | null;
|
|
29408
|
+
created_at: string;
|
|
29409
|
+
created_by: string | null;
|
|
29410
|
+
id: string;
|
|
29411
|
+
mutation_type: string;
|
|
29412
|
+
order_id: string | null;
|
|
29413
|
+
order_item_id: string | null;
|
|
29414
|
+
order_source: string | null;
|
|
29415
|
+
physical_after: number | null;
|
|
29416
|
+
physical_before: number | null;
|
|
29417
|
+
qty_delta: number;
|
|
29418
|
+
reason: string | null;
|
|
29419
|
+
reserved_after: number | null;
|
|
29420
|
+
reserved_before: number | null;
|
|
29421
|
+
trade_item_key: string;
|
|
29422
|
+
};
|
|
29423
|
+
Insert: {
|
|
29424
|
+
connection_id?: string | null;
|
|
29425
|
+
created_at?: string;
|
|
29426
|
+
created_by?: string | null;
|
|
29427
|
+
id?: string;
|
|
29428
|
+
mutation_type: string;
|
|
29429
|
+
order_id?: string | null;
|
|
29430
|
+
order_item_id?: string | null;
|
|
29431
|
+
order_source?: string | null;
|
|
29432
|
+
physical_after?: number | null;
|
|
29433
|
+
physical_before?: number | null;
|
|
29434
|
+
qty_delta: number;
|
|
29435
|
+
reason?: string | null;
|
|
29436
|
+
reserved_after?: number | null;
|
|
29437
|
+
reserved_before?: number | null;
|
|
29438
|
+
trade_item_key: string;
|
|
29439
|
+
};
|
|
29440
|
+
Update: {
|
|
29441
|
+
connection_id?: string | null;
|
|
29442
|
+
created_at?: string;
|
|
29443
|
+
created_by?: string | null;
|
|
29444
|
+
id?: string;
|
|
29445
|
+
mutation_type?: string;
|
|
29446
|
+
order_id?: string | null;
|
|
29447
|
+
order_item_id?: string | null;
|
|
29448
|
+
order_source?: string | null;
|
|
29449
|
+
physical_after?: number | null;
|
|
29450
|
+
physical_before?: number | null;
|
|
29451
|
+
qty_delta?: number;
|
|
29452
|
+
reason?: string | null;
|
|
29453
|
+
reserved_after?: number | null;
|
|
29454
|
+
reserved_before?: number | null;
|
|
29455
|
+
trade_item_key?: string;
|
|
29456
|
+
};
|
|
29457
|
+
Relationships: [];
|
|
29458
|
+
};
|
|
27197
29459
|
supplier_products: {
|
|
27198
29460
|
Row: {
|
|
27199
29461
|
article_number: string | null;
|
|
@@ -28771,6 +31033,44 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
28771
31033
|
};
|
|
28772
31034
|
Relationships: [];
|
|
28773
31035
|
};
|
|
31036
|
+
floriday_customer_discounts: {
|
|
31037
|
+
Row: {
|
|
31038
|
+
base_price: number | null;
|
|
31039
|
+
buyer_organization_id: string | null;
|
|
31040
|
+
currency: string | null;
|
|
31041
|
+
discount_type: string | null;
|
|
31042
|
+
discount_value: number | null;
|
|
31043
|
+
min_quantity: number | null;
|
|
31044
|
+
net_price: number | null;
|
|
31045
|
+
product_group_id: string | null;
|
|
31046
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
31047
|
+
source: string | null;
|
|
31048
|
+
source_id: string | null;
|
|
31049
|
+
trade_item_id: string | null;
|
|
31050
|
+
valid_from: string | null;
|
|
31051
|
+
valid_until: string | null;
|
|
31052
|
+
};
|
|
31053
|
+
Relationships: [];
|
|
31054
|
+
};
|
|
31055
|
+
local_customer_discounts: {
|
|
31056
|
+
Row: {
|
|
31057
|
+
base_price: number | null;
|
|
31058
|
+
currency: string | null;
|
|
31059
|
+
customer_id: string | null;
|
|
31060
|
+
discount_type: string | null;
|
|
31061
|
+
discount_value: number | null;
|
|
31062
|
+
min_quantity: number | null;
|
|
31063
|
+
net_price: number | null;
|
|
31064
|
+
product_category_id: string | null;
|
|
31065
|
+
product_id: string | null;
|
|
31066
|
+
product_name: string | null;
|
|
31067
|
+
source: string | null;
|
|
31068
|
+
source_id: string | null;
|
|
31069
|
+
valid_from: string | null;
|
|
31070
|
+
valid_until: string | null;
|
|
31071
|
+
};
|
|
31072
|
+
Relationships: [];
|
|
31073
|
+
};
|
|
28774
31074
|
manufacture_product_possible_stock_view: {
|
|
28775
31075
|
Row: {
|
|
28776
31076
|
component_count: number | null;
|
|
@@ -29055,6 +31355,54 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
29055
31355
|
};
|
|
29056
31356
|
Returns: number;
|
|
29057
31357
|
};
|
|
31358
|
+
afh_city_code: {
|
|
31359
|
+
Args: {
|
|
31360
|
+
_city: string;
|
|
31361
|
+
_country: string;
|
|
31362
|
+
};
|
|
31363
|
+
Returns: string;
|
|
31364
|
+
};
|
|
31365
|
+
afh_normalize_country: {
|
|
31366
|
+
Args: {
|
|
31367
|
+
_raw: string;
|
|
31368
|
+
};
|
|
31369
|
+
Returns: string;
|
|
31370
|
+
};
|
|
31371
|
+
afh_normalize_nl_province: {
|
|
31372
|
+
Args: {
|
|
31373
|
+
_raw: string;
|
|
31374
|
+
};
|
|
31375
|
+
Returns: string;
|
|
31376
|
+
};
|
|
31377
|
+
afh_subtract_workdays: {
|
|
31378
|
+
Args: {
|
|
31379
|
+
_date: string;
|
|
31380
|
+
_days: number;
|
|
31381
|
+
};
|
|
31382
|
+
Returns: string;
|
|
31383
|
+
};
|
|
31384
|
+
apply_stock_consumption: {
|
|
31385
|
+
Args: {
|
|
31386
|
+
p_order_id: string;
|
|
31387
|
+
p_order_item_id: string;
|
|
31388
|
+
p_qty: number;
|
|
31389
|
+
p_reason: string;
|
|
31390
|
+
p_source: string;
|
|
31391
|
+
p_trade_item_key: string;
|
|
31392
|
+
};
|
|
31393
|
+
Returns: undefined;
|
|
31394
|
+
};
|
|
31395
|
+
apply_stock_reservation: {
|
|
31396
|
+
Args: {
|
|
31397
|
+
p_order_id: string;
|
|
31398
|
+
p_order_item_id: string;
|
|
31399
|
+
p_qty: number;
|
|
31400
|
+
p_reason: string;
|
|
31401
|
+
p_source: string;
|
|
31402
|
+
p_trade_item_key: string;
|
|
31403
|
+
};
|
|
31404
|
+
Returns: undefined;
|
|
31405
|
+
};
|
|
29058
31406
|
assign_cart_numbers: {
|
|
29059
31407
|
Args: {
|
|
29060
31408
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -29078,12 +31426,40 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
29078
31426
|
order_number: string;
|
|
29079
31427
|
}[];
|
|
29080
31428
|
};
|
|
31429
|
+
backfill_open_order_reservations: {
|
|
31430
|
+
Args: never;
|
|
31431
|
+
Returns: {
|
|
31432
|
+
processed_items: number;
|
|
31433
|
+
}[];
|
|
31434
|
+
};
|
|
29081
31435
|
call_exact_route: {
|
|
29082
31436
|
Args: {
|
|
29083
31437
|
path: string;
|
|
29084
31438
|
};
|
|
29085
31439
|
Returns: number;
|
|
29086
31440
|
};
|
|
31441
|
+
check_offer_product_available_stock: {
|
|
31442
|
+
Args: {
|
|
31443
|
+
p_campaign_product_id: string;
|
|
31444
|
+
p_code: string;
|
|
31445
|
+
p_needed_qty?: number;
|
|
31446
|
+
p_product_name?: string;
|
|
31447
|
+
};
|
|
31448
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
31449
|
+
};
|
|
31450
|
+
check_trade_item_available_stock: {
|
|
31451
|
+
Args: {
|
|
31452
|
+
p_connection_id?: string;
|
|
31453
|
+
p_context?: string;
|
|
31454
|
+
p_needed_qty?: number;
|
|
31455
|
+
p_order_id?: string;
|
|
31456
|
+
p_order_item_id?: string;
|
|
31457
|
+
p_owner_id?: string;
|
|
31458
|
+
p_product_name?: string;
|
|
31459
|
+
p_trade_item_key: string;
|
|
31460
|
+
};
|
|
31461
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
31462
|
+
};
|
|
29087
31463
|
cleanup_old_bookings: {
|
|
29088
31464
|
Args: never;
|
|
29089
31465
|
Returns: number;
|
|
@@ -29127,6 +31503,12 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
29127
31503
|
table_name: string;
|
|
29128
31504
|
}[];
|
|
29129
31505
|
};
|
|
31506
|
+
dispatch_carrier_signups_sql: {
|
|
31507
|
+
Args: {
|
|
31508
|
+
_catchup?: string;
|
|
31509
|
+
};
|
|
31510
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
31511
|
+
};
|
|
29130
31512
|
email_auth_decrypt: {
|
|
29131
31513
|
Args: {
|
|
29132
31514
|
cipher: string;
|
|
@@ -29162,6 +31544,12 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
29162
31544
|
status: string;
|
|
29163
31545
|
}[];
|
|
29164
31546
|
};
|
|
31547
|
+
ensure_trade_item_stock_row: {
|
|
31548
|
+
Args: {
|
|
31549
|
+
p_key: string;
|
|
31550
|
+
};
|
|
31551
|
+
Returns: undefined;
|
|
31552
|
+
};
|
|
29165
31553
|
ensure_user_tenant: {
|
|
29166
31554
|
Args: never;
|
|
29167
31555
|
Returns: string;
|
|
@@ -29199,6 +31587,31 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
29199
31587
|
};
|
|
29200
31588
|
Returns: boolean;
|
|
29201
31589
|
};
|
|
31590
|
+
find_trade_item_key: {
|
|
31591
|
+
Args: {
|
|
31592
|
+
p_barcode: string;
|
|
31593
|
+
p_name: string;
|
|
31594
|
+
p_product_id: string;
|
|
31595
|
+
};
|
|
31596
|
+
Returns: string;
|
|
31597
|
+
};
|
|
31598
|
+
floriday_effective_price: {
|
|
31599
|
+
Args: {
|
|
31600
|
+
_buyer_id: string;
|
|
31601
|
+
_on_date?: string;
|
|
31602
|
+
_quantity?: number;
|
|
31603
|
+
_trade_item_id: string;
|
|
31604
|
+
};
|
|
31605
|
+
Returns: {
|
|
31606
|
+
base_price: number;
|
|
31607
|
+
currency: string;
|
|
31608
|
+
discount_type: string;
|
|
31609
|
+
discount_value: number;
|
|
31610
|
+
net_price: number;
|
|
31611
|
+
source: string;
|
|
31612
|
+
source_id: string;
|
|
31613
|
+
}[];
|
|
31614
|
+
};
|
|
29202
31615
|
format_cart_number: {
|
|
29203
31616
|
Args: {
|
|
29204
31617
|
p_pick_date: string;
|
|
@@ -29219,6 +31632,13 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
29219
31632
|
preferred_warehouse_name: string;
|
|
29220
31633
|
}[];
|
|
29221
31634
|
};
|
|
31635
|
+
get_active_floriday_context: {
|
|
31636
|
+
Args: never;
|
|
31637
|
+
Returns: {
|
|
31638
|
+
connection_id: string;
|
|
31639
|
+
user_id: string;
|
|
31640
|
+
}[];
|
|
31641
|
+
};
|
|
29222
31642
|
get_active_twinfield_public: {
|
|
29223
31643
|
Args: never;
|
|
29224
31644
|
Returns: {
|
|
@@ -29321,6 +31741,18 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
29321
31741
|
};
|
|
29322
31742
|
Returns: import("../integrations/supabase/types").Json;
|
|
29323
31743
|
};
|
|
31744
|
+
get_offer_recipient_by_code: {
|
|
31745
|
+
Args: {
|
|
31746
|
+
p_code: string;
|
|
31747
|
+
};
|
|
31748
|
+
Returns: {
|
|
31749
|
+
campaign_id: string;
|
|
31750
|
+
clicked_at: string;
|
|
31751
|
+
customer_id: string;
|
|
31752
|
+
id: string;
|
|
31753
|
+
ordered_at: string;
|
|
31754
|
+
}[];
|
|
31755
|
+
};
|
|
29324
31756
|
get_or_assign_floriday_order_number: {
|
|
29325
31757
|
Args: {
|
|
29326
31758
|
p_floriday_id: string;
|
|
@@ -29373,6 +31805,34 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
29373
31805
|
Args: never;
|
|
29374
31806
|
Returns: boolean;
|
|
29375
31807
|
};
|
|
31808
|
+
local_effective_price: {
|
|
31809
|
+
Args: {
|
|
31810
|
+
_customer_id: string;
|
|
31811
|
+
_on_date?: string;
|
|
31812
|
+
_product_id: string;
|
|
31813
|
+
_quantity?: number;
|
|
31814
|
+
};
|
|
31815
|
+
Returns: {
|
|
31816
|
+
currency: string;
|
|
31817
|
+
discount_type: string;
|
|
31818
|
+
discount_value: number;
|
|
31819
|
+
net_price: number;
|
|
31820
|
+
source: string;
|
|
31821
|
+
source_id: string;
|
|
31822
|
+
}[];
|
|
31823
|
+
};
|
|
31824
|
+
mark_offer_clicked: {
|
|
31825
|
+
Args: {
|
|
31826
|
+
p_code: string;
|
|
31827
|
+
};
|
|
31828
|
+
Returns: undefined;
|
|
31829
|
+
};
|
|
31830
|
+
mark_offer_ordered: {
|
|
31831
|
+
Args: {
|
|
31832
|
+
p_code: string;
|
|
31833
|
+
};
|
|
31834
|
+
Returns: undefined;
|
|
31835
|
+
};
|
|
29376
31836
|
next_order_number: {
|
|
29377
31837
|
Args: {
|
|
29378
31838
|
p_prefix: string;
|
|
@@ -29392,6 +31852,14 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
29392
31852
|
};
|
|
29393
31853
|
Returns: string;
|
|
29394
31854
|
};
|
|
31855
|
+
offer_recipient_matches: {
|
|
31856
|
+
Args: {
|
|
31857
|
+
_campaign_id: string;
|
|
31858
|
+
_customer_id: string;
|
|
31859
|
+
_recipient_id: string;
|
|
31860
|
+
};
|
|
31861
|
+
Returns: boolean;
|
|
31862
|
+
};
|
|
29395
31863
|
pickstation_get_orders_raw: {
|
|
29396
31864
|
Args: never;
|
|
29397
31865
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -29419,6 +31887,13 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
29419
31887
|
};
|
|
29420
31888
|
Returns: undefined;
|
|
29421
31889
|
};
|
|
31890
|
+
promote_trade_item_key: {
|
|
31891
|
+
Args: {
|
|
31892
|
+
p_new: string;
|
|
31893
|
+
p_old: string;
|
|
31894
|
+
};
|
|
31895
|
+
Returns: undefined;
|
|
31896
|
+
};
|
|
29422
31897
|
refresh_floricode_derived_code_lists: {
|
|
29423
31898
|
Args: never;
|
|
29424
31899
|
Returns: {
|
|
@@ -30465,6 +32940,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
30465
32940
|
notes: string | null;
|
|
30466
32941
|
performed_at: string;
|
|
30467
32942
|
rescheduled_count: number;
|
|
32943
|
+
stock_consumed_at: string | null;
|
|
30468
32944
|
total_carts: number;
|
|
30469
32945
|
updated_at: string;
|
|
30470
32946
|
user_id: string;
|
|
@@ -30478,6 +32954,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
30478
32954
|
notes?: string | null;
|
|
30479
32955
|
performed_at?: string;
|
|
30480
32956
|
rescheduled_count?: number;
|
|
32957
|
+
stock_consumed_at?: string | null;
|
|
30481
32958
|
total_carts?: number;
|
|
30482
32959
|
updated_at?: string;
|
|
30483
32960
|
user_id: string;
|
|
@@ -30491,6 +32968,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
30491
32968
|
notes?: string | null;
|
|
30492
32969
|
performed_at?: string;
|
|
30493
32970
|
rescheduled_count?: number;
|
|
32971
|
+
stock_consumed_at?: string | null;
|
|
30494
32972
|
total_carts?: number;
|
|
30495
32973
|
updated_at?: string;
|
|
30496
32974
|
user_id?: string;
|
|
@@ -33371,6 +35849,51 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
33371
35849
|
referencedColumns: ["id"];
|
|
33372
35850
|
}];
|
|
33373
35851
|
};
|
|
35852
|
+
floriday_continuous_stock_queue: {
|
|
35853
|
+
Row: {
|
|
35854
|
+
attempts: number;
|
|
35855
|
+
connection_id: string;
|
|
35856
|
+
created_at: string;
|
|
35857
|
+
gateway_attempt_id: string | null;
|
|
35858
|
+
id: string;
|
|
35859
|
+
last_error: string | null;
|
|
35860
|
+
number_of_pieces: number;
|
|
35861
|
+
sent_at: string | null;
|
|
35862
|
+
status: string;
|
|
35863
|
+
trade_item_id: string;
|
|
35864
|
+
updated_at: string;
|
|
35865
|
+
user_id: string;
|
|
35866
|
+
};
|
|
35867
|
+
Insert: {
|
|
35868
|
+
attempts?: number;
|
|
35869
|
+
connection_id: string;
|
|
35870
|
+
created_at?: string;
|
|
35871
|
+
gateway_attempt_id?: string | null;
|
|
35872
|
+
id?: string;
|
|
35873
|
+
last_error?: string | null;
|
|
35874
|
+
number_of_pieces?: number;
|
|
35875
|
+
sent_at?: string | null;
|
|
35876
|
+
status?: string;
|
|
35877
|
+
trade_item_id: string;
|
|
35878
|
+
updated_at?: string;
|
|
35879
|
+
user_id: string;
|
|
35880
|
+
};
|
|
35881
|
+
Update: {
|
|
35882
|
+
attempts?: number;
|
|
35883
|
+
connection_id?: string;
|
|
35884
|
+
created_at?: string;
|
|
35885
|
+
gateway_attempt_id?: string | null;
|
|
35886
|
+
id?: string;
|
|
35887
|
+
last_error?: string | null;
|
|
35888
|
+
number_of_pieces?: number;
|
|
35889
|
+
sent_at?: string | null;
|
|
35890
|
+
status?: string;
|
|
35891
|
+
trade_item_id?: string;
|
|
35892
|
+
updated_at?: string;
|
|
35893
|
+
user_id?: string;
|
|
35894
|
+
};
|
|
35895
|
+
Relationships: [];
|
|
35896
|
+
};
|
|
33374
35897
|
floriday_contract_trade_item_groups_cache: {
|
|
33375
35898
|
Row: {
|
|
33376
35899
|
connection_id: string;
|
|
@@ -34760,6 +37283,204 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
34760
37283
|
};
|
|
34761
37284
|
Relationships: [];
|
|
34762
37285
|
};
|
|
37286
|
+
local_customer_agreements: {
|
|
37287
|
+
Row: {
|
|
37288
|
+
base_price: number | null;
|
|
37289
|
+
created_at: string;
|
|
37290
|
+
currency: string;
|
|
37291
|
+
customer_id: string;
|
|
37292
|
+
id: string;
|
|
37293
|
+
min_quantity: number;
|
|
37294
|
+
net_price: number;
|
|
37295
|
+
notes: string | null;
|
|
37296
|
+
product_category_id: string | null;
|
|
37297
|
+
product_id: string | null;
|
|
37298
|
+
updated_at: string;
|
|
37299
|
+
valid_from: string | null;
|
|
37300
|
+
valid_until: string | null;
|
|
37301
|
+
};
|
|
37302
|
+
Insert: {
|
|
37303
|
+
base_price?: number | null;
|
|
37304
|
+
created_at?: string;
|
|
37305
|
+
currency?: string;
|
|
37306
|
+
customer_id: string;
|
|
37307
|
+
id?: string;
|
|
37308
|
+
min_quantity?: number;
|
|
37309
|
+
net_price: number;
|
|
37310
|
+
notes?: string | null;
|
|
37311
|
+
product_category_id?: string | null;
|
|
37312
|
+
product_id?: string | null;
|
|
37313
|
+
updated_at?: string;
|
|
37314
|
+
valid_from?: string | null;
|
|
37315
|
+
valid_until?: string | null;
|
|
37316
|
+
};
|
|
37317
|
+
Update: {
|
|
37318
|
+
base_price?: number | null;
|
|
37319
|
+
created_at?: string;
|
|
37320
|
+
currency?: string;
|
|
37321
|
+
customer_id?: string;
|
|
37322
|
+
id?: string;
|
|
37323
|
+
min_quantity?: number;
|
|
37324
|
+
net_price?: number;
|
|
37325
|
+
notes?: string | null;
|
|
37326
|
+
product_category_id?: string | null;
|
|
37327
|
+
product_id?: string | null;
|
|
37328
|
+
updated_at?: string;
|
|
37329
|
+
valid_from?: string | null;
|
|
37330
|
+
valid_until?: string | null;
|
|
37331
|
+
};
|
|
37332
|
+
Relationships: [{
|
|
37333
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
37334
|
+
columns: ["customer_id"];
|
|
37335
|
+
isOneToOne: false;
|
|
37336
|
+
referencedRelation: "customers";
|
|
37337
|
+
referencedColumns: ["id"];
|
|
37338
|
+
}, {
|
|
37339
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
37340
|
+
columns: ["product_category_id"];
|
|
37341
|
+
isOneToOne: false;
|
|
37342
|
+
referencedRelation: "product_categories";
|
|
37343
|
+
referencedColumns: ["id"];
|
|
37344
|
+
}, {
|
|
37345
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
37346
|
+
columns: ["product_id"];
|
|
37347
|
+
isOneToOne: false;
|
|
37348
|
+
referencedRelation: "products";
|
|
37349
|
+
referencedColumns: ["id"];
|
|
37350
|
+
}];
|
|
37351
|
+
};
|
|
37352
|
+
local_customer_price_groups: {
|
|
37353
|
+
Row: {
|
|
37354
|
+
created_at: string;
|
|
37355
|
+
currency: string;
|
|
37356
|
+
customer_id: string;
|
|
37357
|
+
discount_type: string;
|
|
37358
|
+
discount_value: number;
|
|
37359
|
+
id: string;
|
|
37360
|
+
min_quantity: number;
|
|
37361
|
+
notes: string | null;
|
|
37362
|
+
product_category_id: string | null;
|
|
37363
|
+
product_id: string | null;
|
|
37364
|
+
updated_at: string;
|
|
37365
|
+
valid_from: string | null;
|
|
37366
|
+
valid_until: string | null;
|
|
37367
|
+
};
|
|
37368
|
+
Insert: {
|
|
37369
|
+
created_at?: string;
|
|
37370
|
+
currency?: string;
|
|
37371
|
+
customer_id: string;
|
|
37372
|
+
discount_type: string;
|
|
37373
|
+
discount_value: number;
|
|
37374
|
+
id?: string;
|
|
37375
|
+
min_quantity?: number;
|
|
37376
|
+
notes?: string | null;
|
|
37377
|
+
product_category_id?: string | null;
|
|
37378
|
+
product_id?: string | null;
|
|
37379
|
+
updated_at?: string;
|
|
37380
|
+
valid_from?: string | null;
|
|
37381
|
+
valid_until?: string | null;
|
|
37382
|
+
};
|
|
37383
|
+
Update: {
|
|
37384
|
+
created_at?: string;
|
|
37385
|
+
currency?: string;
|
|
37386
|
+
customer_id?: string;
|
|
37387
|
+
discount_type?: string;
|
|
37388
|
+
discount_value?: number;
|
|
37389
|
+
id?: string;
|
|
37390
|
+
min_quantity?: number;
|
|
37391
|
+
notes?: string | null;
|
|
37392
|
+
product_category_id?: string | null;
|
|
37393
|
+
product_id?: string | null;
|
|
37394
|
+
updated_at?: string;
|
|
37395
|
+
valid_from?: string | null;
|
|
37396
|
+
valid_until?: string | null;
|
|
37397
|
+
};
|
|
37398
|
+
Relationships: [{
|
|
37399
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
37400
|
+
columns: ["customer_id"];
|
|
37401
|
+
isOneToOne: false;
|
|
37402
|
+
referencedRelation: "customers";
|
|
37403
|
+
referencedColumns: ["id"];
|
|
37404
|
+
}, {
|
|
37405
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
37406
|
+
columns: ["product_category_id"];
|
|
37407
|
+
isOneToOne: false;
|
|
37408
|
+
referencedRelation: "product_categories";
|
|
37409
|
+
referencedColumns: ["id"];
|
|
37410
|
+
}, {
|
|
37411
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
37412
|
+
columns: ["product_id"];
|
|
37413
|
+
isOneToOne: false;
|
|
37414
|
+
referencedRelation: "products";
|
|
37415
|
+
referencedColumns: ["id"];
|
|
37416
|
+
}];
|
|
37417
|
+
};
|
|
37418
|
+
local_customer_sales_strategies: {
|
|
37419
|
+
Row: {
|
|
37420
|
+
created_at: string;
|
|
37421
|
+
currency: string;
|
|
37422
|
+
customer_id: string;
|
|
37423
|
+
discount_type: string;
|
|
37424
|
+
discount_value: number;
|
|
37425
|
+
id: string;
|
|
37426
|
+
min_quantity: number;
|
|
37427
|
+
notes: string | null;
|
|
37428
|
+
product_category_id: string | null;
|
|
37429
|
+
product_id: string | null;
|
|
37430
|
+
updated_at: string;
|
|
37431
|
+
valid_from: string | null;
|
|
37432
|
+
valid_until: string | null;
|
|
37433
|
+
};
|
|
37434
|
+
Insert: {
|
|
37435
|
+
created_at?: string;
|
|
37436
|
+
currency?: string;
|
|
37437
|
+
customer_id: string;
|
|
37438
|
+
discount_type: string;
|
|
37439
|
+
discount_value: number;
|
|
37440
|
+
id?: string;
|
|
37441
|
+
min_quantity?: number;
|
|
37442
|
+
notes?: string | null;
|
|
37443
|
+
product_category_id?: string | null;
|
|
37444
|
+
product_id?: string | null;
|
|
37445
|
+
updated_at?: string;
|
|
37446
|
+
valid_from?: string | null;
|
|
37447
|
+
valid_until?: string | null;
|
|
37448
|
+
};
|
|
37449
|
+
Update: {
|
|
37450
|
+
created_at?: string;
|
|
37451
|
+
currency?: string;
|
|
37452
|
+
customer_id?: string;
|
|
37453
|
+
discount_type?: string;
|
|
37454
|
+
discount_value?: number;
|
|
37455
|
+
id?: string;
|
|
37456
|
+
min_quantity?: number;
|
|
37457
|
+
notes?: string | null;
|
|
37458
|
+
product_category_id?: string | null;
|
|
37459
|
+
product_id?: string | null;
|
|
37460
|
+
updated_at?: string;
|
|
37461
|
+
valid_from?: string | null;
|
|
37462
|
+
valid_until?: string | null;
|
|
37463
|
+
};
|
|
37464
|
+
Relationships: [{
|
|
37465
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
37466
|
+
columns: ["customer_id"];
|
|
37467
|
+
isOneToOne: false;
|
|
37468
|
+
referencedRelation: "customers";
|
|
37469
|
+
referencedColumns: ["id"];
|
|
37470
|
+
}, {
|
|
37471
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
37472
|
+
columns: ["product_category_id"];
|
|
37473
|
+
isOneToOne: false;
|
|
37474
|
+
referencedRelation: "product_categories";
|
|
37475
|
+
referencedColumns: ["id"];
|
|
37476
|
+
}, {
|
|
37477
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
37478
|
+
columns: ["product_id"];
|
|
37479
|
+
isOneToOne: false;
|
|
37480
|
+
referencedRelation: "products";
|
|
37481
|
+
referencedColumns: ["id"];
|
|
37482
|
+
}];
|
|
37483
|
+
};
|
|
34763
37484
|
locations: {
|
|
34764
37485
|
Row: {
|
|
34765
37486
|
created_at: string;
|
|
@@ -35267,6 +37988,273 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
35267
37988
|
referencedColumns: ["id"];
|
|
35268
37989
|
}];
|
|
35269
37990
|
};
|
|
37991
|
+
nmbrs_component_mapping: {
|
|
37992
|
+
Row: {
|
|
37993
|
+
created_at: string;
|
|
37994
|
+
id: string;
|
|
37995
|
+
source_kind: string;
|
|
37996
|
+
source_value: string | null;
|
|
37997
|
+
updated_at: string;
|
|
37998
|
+
wage_code: string;
|
|
37999
|
+
};
|
|
38000
|
+
Insert: {
|
|
38001
|
+
created_at?: string;
|
|
38002
|
+
id?: string;
|
|
38003
|
+
source_kind: string;
|
|
38004
|
+
source_value?: string | null;
|
|
38005
|
+
updated_at?: string;
|
|
38006
|
+
wage_code: string;
|
|
38007
|
+
};
|
|
38008
|
+
Update: {
|
|
38009
|
+
created_at?: string;
|
|
38010
|
+
id?: string;
|
|
38011
|
+
source_kind?: string;
|
|
38012
|
+
source_value?: string | null;
|
|
38013
|
+
updated_at?: string;
|
|
38014
|
+
wage_code?: string;
|
|
38015
|
+
};
|
|
38016
|
+
Relationships: [{
|
|
38017
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
38018
|
+
columns: ["wage_code"];
|
|
38019
|
+
isOneToOne: false;
|
|
38020
|
+
referencedRelation: "nmbrs_wage_components";
|
|
38021
|
+
referencedColumns: ["code"];
|
|
38022
|
+
}];
|
|
38023
|
+
};
|
|
38024
|
+
nmbrs_employee_mapping: {
|
|
38025
|
+
Row: {
|
|
38026
|
+
active_from: string | null;
|
|
38027
|
+
active_to: string | null;
|
|
38028
|
+
contract_hours_per_week: number | null;
|
|
38029
|
+
created_at: string;
|
|
38030
|
+
hourly_wage: number | null;
|
|
38031
|
+
id: string;
|
|
38032
|
+
monteur_id: string;
|
|
38033
|
+
nmbrs_company_code: string | null;
|
|
38034
|
+
nmbrs_employee_number: string;
|
|
38035
|
+
updated_at: string;
|
|
38036
|
+
};
|
|
38037
|
+
Insert: {
|
|
38038
|
+
active_from?: string | null;
|
|
38039
|
+
active_to?: string | null;
|
|
38040
|
+
contract_hours_per_week?: number | null;
|
|
38041
|
+
created_at?: string;
|
|
38042
|
+
hourly_wage?: number | null;
|
|
38043
|
+
id?: string;
|
|
38044
|
+
monteur_id: string;
|
|
38045
|
+
nmbrs_company_code?: string | null;
|
|
38046
|
+
nmbrs_employee_number: string;
|
|
38047
|
+
updated_at?: string;
|
|
38048
|
+
};
|
|
38049
|
+
Update: {
|
|
38050
|
+
active_from?: string | null;
|
|
38051
|
+
active_to?: string | null;
|
|
38052
|
+
contract_hours_per_week?: number | null;
|
|
38053
|
+
created_at?: string;
|
|
38054
|
+
hourly_wage?: number | null;
|
|
38055
|
+
id?: string;
|
|
38056
|
+
monteur_id?: string;
|
|
38057
|
+
nmbrs_company_code?: string | null;
|
|
38058
|
+
nmbrs_employee_number?: string;
|
|
38059
|
+
updated_at?: string;
|
|
38060
|
+
};
|
|
38061
|
+
Relationships: [{
|
|
38062
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
38063
|
+
columns: ["monteur_id"];
|
|
38064
|
+
isOneToOne: true;
|
|
38065
|
+
referencedRelation: "monteurs";
|
|
38066
|
+
referencedColumns: ["id"];
|
|
38067
|
+
}];
|
|
38068
|
+
};
|
|
38069
|
+
nmbrs_export_lines: {
|
|
38070
|
+
Row: {
|
|
38071
|
+
amount: number;
|
|
38072
|
+
created_at: string;
|
|
38073
|
+
entry_date: string;
|
|
38074
|
+
hours: number;
|
|
38075
|
+
id: string;
|
|
38076
|
+
monteur_id: string;
|
|
38077
|
+
nmbrs_employee_number: string | null;
|
|
38078
|
+
notes: string | null;
|
|
38079
|
+
run_id: string;
|
|
38080
|
+
source_kind: string | null;
|
|
38081
|
+
source_ref_id: string | null;
|
|
38082
|
+
updated_at: string;
|
|
38083
|
+
wage_code: string;
|
|
38084
|
+
};
|
|
38085
|
+
Insert: {
|
|
38086
|
+
amount?: number;
|
|
38087
|
+
created_at?: string;
|
|
38088
|
+
entry_date: string;
|
|
38089
|
+
hours?: number;
|
|
38090
|
+
id?: string;
|
|
38091
|
+
monteur_id: string;
|
|
38092
|
+
nmbrs_employee_number?: string | null;
|
|
38093
|
+
notes?: string | null;
|
|
38094
|
+
run_id: string;
|
|
38095
|
+
source_kind?: string | null;
|
|
38096
|
+
source_ref_id?: string | null;
|
|
38097
|
+
updated_at?: string;
|
|
38098
|
+
wage_code: string;
|
|
38099
|
+
};
|
|
38100
|
+
Update: {
|
|
38101
|
+
amount?: number;
|
|
38102
|
+
created_at?: string;
|
|
38103
|
+
entry_date?: string;
|
|
38104
|
+
hours?: number;
|
|
38105
|
+
id?: string;
|
|
38106
|
+
monteur_id?: string;
|
|
38107
|
+
nmbrs_employee_number?: string | null;
|
|
38108
|
+
notes?: string | null;
|
|
38109
|
+
run_id?: string;
|
|
38110
|
+
source_kind?: string | null;
|
|
38111
|
+
source_ref_id?: string | null;
|
|
38112
|
+
updated_at?: string;
|
|
38113
|
+
wage_code?: string;
|
|
38114
|
+
};
|
|
38115
|
+
Relationships: [{
|
|
38116
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
38117
|
+
columns: ["monteur_id"];
|
|
38118
|
+
isOneToOne: false;
|
|
38119
|
+
referencedRelation: "monteurs";
|
|
38120
|
+
referencedColumns: ["id"];
|
|
38121
|
+
}, {
|
|
38122
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
38123
|
+
columns: ["run_id"];
|
|
38124
|
+
isOneToOne: false;
|
|
38125
|
+
referencedRelation: "nmbrs_export_runs";
|
|
38126
|
+
referencedColumns: ["id"];
|
|
38127
|
+
}, {
|
|
38128
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
38129
|
+
columns: ["wage_code"];
|
|
38130
|
+
isOneToOne: false;
|
|
38131
|
+
referencedRelation: "nmbrs_wage_components";
|
|
38132
|
+
referencedColumns: ["code"];
|
|
38133
|
+
}];
|
|
38134
|
+
};
|
|
38135
|
+
nmbrs_export_runs: {
|
|
38136
|
+
Row: {
|
|
38137
|
+
created_at: string;
|
|
38138
|
+
file_name: string | null;
|
|
38139
|
+
generated_at: string;
|
|
38140
|
+
generated_by: string | null;
|
|
38141
|
+
id: string;
|
|
38142
|
+
notes: string | null;
|
|
38143
|
+
period_end: string;
|
|
38144
|
+
period_label: string;
|
|
38145
|
+
period_start: string;
|
|
38146
|
+
status: string;
|
|
38147
|
+
total_hours: number;
|
|
38148
|
+
total_lines: number;
|
|
38149
|
+
updated_at: string;
|
|
38150
|
+
};
|
|
38151
|
+
Insert: {
|
|
38152
|
+
created_at?: string;
|
|
38153
|
+
file_name?: string | null;
|
|
38154
|
+
generated_at?: string;
|
|
38155
|
+
generated_by?: string | null;
|
|
38156
|
+
id?: string;
|
|
38157
|
+
notes?: string | null;
|
|
38158
|
+
period_end: string;
|
|
38159
|
+
period_label: string;
|
|
38160
|
+
period_start: string;
|
|
38161
|
+
status?: string;
|
|
38162
|
+
total_hours?: number;
|
|
38163
|
+
total_lines?: number;
|
|
38164
|
+
updated_at?: string;
|
|
38165
|
+
};
|
|
38166
|
+
Update: {
|
|
38167
|
+
created_at?: string;
|
|
38168
|
+
file_name?: string | null;
|
|
38169
|
+
generated_at?: string;
|
|
38170
|
+
generated_by?: string | null;
|
|
38171
|
+
id?: string;
|
|
38172
|
+
notes?: string | null;
|
|
38173
|
+
period_end?: string;
|
|
38174
|
+
period_label?: string;
|
|
38175
|
+
period_start?: string;
|
|
38176
|
+
status?: string;
|
|
38177
|
+
total_hours?: number;
|
|
38178
|
+
total_lines?: number;
|
|
38179
|
+
updated_at?: string;
|
|
38180
|
+
};
|
|
38181
|
+
Relationships: [];
|
|
38182
|
+
};
|
|
38183
|
+
nmbrs_settings: {
|
|
38184
|
+
Row: {
|
|
38185
|
+
created_at: string;
|
|
38186
|
+
default_company_code: string | null;
|
|
38187
|
+
id: boolean;
|
|
38188
|
+
include_travel: boolean;
|
|
38189
|
+
overtime_threshold_daily: number;
|
|
38190
|
+
overtime_threshold_weekly: number;
|
|
38191
|
+
period_type: string;
|
|
38192
|
+
updated_at: string;
|
|
38193
|
+
updated_by: string | null;
|
|
38194
|
+
week_start_day: number;
|
|
38195
|
+
};
|
|
38196
|
+
Insert: {
|
|
38197
|
+
created_at?: string;
|
|
38198
|
+
default_company_code?: string | null;
|
|
38199
|
+
id?: boolean;
|
|
38200
|
+
include_travel?: boolean;
|
|
38201
|
+
overtime_threshold_daily?: number;
|
|
38202
|
+
overtime_threshold_weekly?: number;
|
|
38203
|
+
period_type?: string;
|
|
38204
|
+
updated_at?: string;
|
|
38205
|
+
updated_by?: string | null;
|
|
38206
|
+
week_start_day?: number;
|
|
38207
|
+
};
|
|
38208
|
+
Update: {
|
|
38209
|
+
created_at?: string;
|
|
38210
|
+
default_company_code?: string | null;
|
|
38211
|
+
id?: boolean;
|
|
38212
|
+
include_travel?: boolean;
|
|
38213
|
+
overtime_threshold_daily?: number;
|
|
38214
|
+
overtime_threshold_weekly?: number;
|
|
38215
|
+
period_type?: string;
|
|
38216
|
+
updated_at?: string;
|
|
38217
|
+
updated_by?: string | null;
|
|
38218
|
+
week_start_day?: number;
|
|
38219
|
+
};
|
|
38220
|
+
Relationships: [];
|
|
38221
|
+
};
|
|
38222
|
+
nmbrs_wage_components: {
|
|
38223
|
+
Row: {
|
|
38224
|
+
category: string;
|
|
38225
|
+
code: string;
|
|
38226
|
+
created_at: string;
|
|
38227
|
+
id: string;
|
|
38228
|
+
is_active: boolean;
|
|
38229
|
+
label: string;
|
|
38230
|
+
sort_order: number;
|
|
38231
|
+
unit: string;
|
|
38232
|
+
updated_at: string;
|
|
38233
|
+
};
|
|
38234
|
+
Insert: {
|
|
38235
|
+
category: string;
|
|
38236
|
+
code: string;
|
|
38237
|
+
created_at?: string;
|
|
38238
|
+
id?: string;
|
|
38239
|
+
is_active?: boolean;
|
|
38240
|
+
label: string;
|
|
38241
|
+
sort_order?: number;
|
|
38242
|
+
unit: string;
|
|
38243
|
+
updated_at?: string;
|
|
38244
|
+
};
|
|
38245
|
+
Update: {
|
|
38246
|
+
category?: string;
|
|
38247
|
+
code?: string;
|
|
38248
|
+
created_at?: string;
|
|
38249
|
+
id?: string;
|
|
38250
|
+
is_active?: boolean;
|
|
38251
|
+
label?: string;
|
|
38252
|
+
sort_order?: number;
|
|
38253
|
+
unit?: string;
|
|
38254
|
+
updated_at?: string;
|
|
38255
|
+
};
|
|
38256
|
+
Relationships: [];
|
|
38257
|
+
};
|
|
35270
38258
|
notifications: {
|
|
35271
38259
|
Row: {
|
|
35272
38260
|
created_at: string;
|
|
@@ -36249,6 +39237,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
36249
39237
|
purchase_price: number | null;
|
|
36250
39238
|
quantity: number;
|
|
36251
39239
|
sale_price: number | null;
|
|
39240
|
+
trade_item_key: string | null;
|
|
36252
39241
|
unit: string;
|
|
36253
39242
|
updated_at: string;
|
|
36254
39243
|
weight: string | null;
|
|
@@ -36271,6 +39260,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
36271
39260
|
purchase_price?: number | null;
|
|
36272
39261
|
quantity?: number;
|
|
36273
39262
|
sale_price?: number | null;
|
|
39263
|
+
trade_item_key?: string | null;
|
|
36274
39264
|
unit?: string;
|
|
36275
39265
|
updated_at?: string;
|
|
36276
39266
|
weight?: string | null;
|
|
@@ -36293,6 +39283,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
36293
39283
|
purchase_price?: number | null;
|
|
36294
39284
|
quantity?: number;
|
|
36295
39285
|
sale_price?: number | null;
|
|
39286
|
+
trade_item_key?: string | null;
|
|
36296
39287
|
unit?: string;
|
|
36297
39288
|
updated_at?: string;
|
|
36298
39289
|
weight?: string | null;
|
|
@@ -37112,6 +40103,102 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
37112
40103
|
};
|
|
37113
40104
|
Relationships: [];
|
|
37114
40105
|
};
|
|
40106
|
+
stock_import_runs: {
|
|
40107
|
+
Row: {
|
|
40108
|
+
connection_id: string | null;
|
|
40109
|
+
created_at: string;
|
|
40110
|
+
created_rows: number;
|
|
40111
|
+
errors: import("../integrations/supabase/types").Json;
|
|
40112
|
+
filename: string | null;
|
|
40113
|
+
id: string;
|
|
40114
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
40115
|
+
skipped_rows: number;
|
|
40116
|
+
total_rows: number;
|
|
40117
|
+
updated_rows: number;
|
|
40118
|
+
user_id: string;
|
|
40119
|
+
};
|
|
40120
|
+
Insert: {
|
|
40121
|
+
connection_id?: string | null;
|
|
40122
|
+
created_at?: string;
|
|
40123
|
+
created_rows?: number;
|
|
40124
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
40125
|
+
filename?: string | null;
|
|
40126
|
+
id?: string;
|
|
40127
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
40128
|
+
skipped_rows?: number;
|
|
40129
|
+
total_rows?: number;
|
|
40130
|
+
updated_rows?: number;
|
|
40131
|
+
user_id: string;
|
|
40132
|
+
};
|
|
40133
|
+
Update: {
|
|
40134
|
+
connection_id?: string | null;
|
|
40135
|
+
created_at?: string;
|
|
40136
|
+
created_rows?: number;
|
|
40137
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
40138
|
+
filename?: string | null;
|
|
40139
|
+
id?: string;
|
|
40140
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
40141
|
+
skipped_rows?: number;
|
|
40142
|
+
total_rows?: number;
|
|
40143
|
+
updated_rows?: number;
|
|
40144
|
+
user_id?: string;
|
|
40145
|
+
};
|
|
40146
|
+
Relationships: [];
|
|
40147
|
+
};
|
|
40148
|
+
stock_mutation_log: {
|
|
40149
|
+
Row: {
|
|
40150
|
+
connection_id: string | null;
|
|
40151
|
+
created_at: string;
|
|
40152
|
+
created_by: string | null;
|
|
40153
|
+
id: string;
|
|
40154
|
+
mutation_type: string;
|
|
40155
|
+
order_id: string | null;
|
|
40156
|
+
order_item_id: string | null;
|
|
40157
|
+
order_source: string | null;
|
|
40158
|
+
physical_after: number | null;
|
|
40159
|
+
physical_before: number | null;
|
|
40160
|
+
qty_delta: number;
|
|
40161
|
+
reason: string | null;
|
|
40162
|
+
reserved_after: number | null;
|
|
40163
|
+
reserved_before: number | null;
|
|
40164
|
+
trade_item_key: string;
|
|
40165
|
+
};
|
|
40166
|
+
Insert: {
|
|
40167
|
+
connection_id?: string | null;
|
|
40168
|
+
created_at?: string;
|
|
40169
|
+
created_by?: string | null;
|
|
40170
|
+
id?: string;
|
|
40171
|
+
mutation_type: string;
|
|
40172
|
+
order_id?: string | null;
|
|
40173
|
+
order_item_id?: string | null;
|
|
40174
|
+
order_source?: string | null;
|
|
40175
|
+
physical_after?: number | null;
|
|
40176
|
+
physical_before?: number | null;
|
|
40177
|
+
qty_delta: number;
|
|
40178
|
+
reason?: string | null;
|
|
40179
|
+
reserved_after?: number | null;
|
|
40180
|
+
reserved_before?: number | null;
|
|
40181
|
+
trade_item_key: string;
|
|
40182
|
+
};
|
|
40183
|
+
Update: {
|
|
40184
|
+
connection_id?: string | null;
|
|
40185
|
+
created_at?: string;
|
|
40186
|
+
created_by?: string | null;
|
|
40187
|
+
id?: string;
|
|
40188
|
+
mutation_type?: string;
|
|
40189
|
+
order_id?: string | null;
|
|
40190
|
+
order_item_id?: string | null;
|
|
40191
|
+
order_source?: string | null;
|
|
40192
|
+
physical_after?: number | null;
|
|
40193
|
+
physical_before?: number | null;
|
|
40194
|
+
qty_delta?: number;
|
|
40195
|
+
reason?: string | null;
|
|
40196
|
+
reserved_after?: number | null;
|
|
40197
|
+
reserved_before?: number | null;
|
|
40198
|
+
trade_item_key?: string;
|
|
40199
|
+
};
|
|
40200
|
+
Relationships: [];
|
|
40201
|
+
};
|
|
37115
40202
|
supplier_products: {
|
|
37116
40203
|
Row: {
|
|
37117
40204
|
article_number: string | null;
|
|
@@ -38689,6 +41776,44 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
38689
41776
|
};
|
|
38690
41777
|
Relationships: [];
|
|
38691
41778
|
};
|
|
41779
|
+
floriday_customer_discounts: {
|
|
41780
|
+
Row: {
|
|
41781
|
+
base_price: number | null;
|
|
41782
|
+
buyer_organization_id: string | null;
|
|
41783
|
+
currency: string | null;
|
|
41784
|
+
discount_type: string | null;
|
|
41785
|
+
discount_value: number | null;
|
|
41786
|
+
min_quantity: number | null;
|
|
41787
|
+
net_price: number | null;
|
|
41788
|
+
product_group_id: string | null;
|
|
41789
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
41790
|
+
source: string | null;
|
|
41791
|
+
source_id: string | null;
|
|
41792
|
+
trade_item_id: string | null;
|
|
41793
|
+
valid_from: string | null;
|
|
41794
|
+
valid_until: string | null;
|
|
41795
|
+
};
|
|
41796
|
+
Relationships: [];
|
|
41797
|
+
};
|
|
41798
|
+
local_customer_discounts: {
|
|
41799
|
+
Row: {
|
|
41800
|
+
base_price: number | null;
|
|
41801
|
+
currency: string | null;
|
|
41802
|
+
customer_id: string | null;
|
|
41803
|
+
discount_type: string | null;
|
|
41804
|
+
discount_value: number | null;
|
|
41805
|
+
min_quantity: number | null;
|
|
41806
|
+
net_price: number | null;
|
|
41807
|
+
product_category_id: string | null;
|
|
41808
|
+
product_id: string | null;
|
|
41809
|
+
product_name: string | null;
|
|
41810
|
+
source: string | null;
|
|
41811
|
+
source_id: string | null;
|
|
41812
|
+
valid_from: string | null;
|
|
41813
|
+
valid_until: string | null;
|
|
41814
|
+
};
|
|
41815
|
+
Relationships: [];
|
|
41816
|
+
};
|
|
38692
41817
|
manufacture_product_possible_stock_view: {
|
|
38693
41818
|
Row: {
|
|
38694
41819
|
component_count: number | null;
|
|
@@ -38973,6 +42098,54 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
38973
42098
|
};
|
|
38974
42099
|
Returns: number;
|
|
38975
42100
|
};
|
|
42101
|
+
afh_city_code: {
|
|
42102
|
+
Args: {
|
|
42103
|
+
_city: string;
|
|
42104
|
+
_country: string;
|
|
42105
|
+
};
|
|
42106
|
+
Returns: string;
|
|
42107
|
+
};
|
|
42108
|
+
afh_normalize_country: {
|
|
42109
|
+
Args: {
|
|
42110
|
+
_raw: string;
|
|
42111
|
+
};
|
|
42112
|
+
Returns: string;
|
|
42113
|
+
};
|
|
42114
|
+
afh_normalize_nl_province: {
|
|
42115
|
+
Args: {
|
|
42116
|
+
_raw: string;
|
|
42117
|
+
};
|
|
42118
|
+
Returns: string;
|
|
42119
|
+
};
|
|
42120
|
+
afh_subtract_workdays: {
|
|
42121
|
+
Args: {
|
|
42122
|
+
_date: string;
|
|
42123
|
+
_days: number;
|
|
42124
|
+
};
|
|
42125
|
+
Returns: string;
|
|
42126
|
+
};
|
|
42127
|
+
apply_stock_consumption: {
|
|
42128
|
+
Args: {
|
|
42129
|
+
p_order_id: string;
|
|
42130
|
+
p_order_item_id: string;
|
|
42131
|
+
p_qty: number;
|
|
42132
|
+
p_reason: string;
|
|
42133
|
+
p_source: string;
|
|
42134
|
+
p_trade_item_key: string;
|
|
42135
|
+
};
|
|
42136
|
+
Returns: undefined;
|
|
42137
|
+
};
|
|
42138
|
+
apply_stock_reservation: {
|
|
42139
|
+
Args: {
|
|
42140
|
+
p_order_id: string;
|
|
42141
|
+
p_order_item_id: string;
|
|
42142
|
+
p_qty: number;
|
|
42143
|
+
p_reason: string;
|
|
42144
|
+
p_source: string;
|
|
42145
|
+
p_trade_item_key: string;
|
|
42146
|
+
};
|
|
42147
|
+
Returns: undefined;
|
|
42148
|
+
};
|
|
38976
42149
|
assign_cart_numbers: {
|
|
38977
42150
|
Args: {
|
|
38978
42151
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -38996,12 +42169,40 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
38996
42169
|
order_number: string;
|
|
38997
42170
|
}[];
|
|
38998
42171
|
};
|
|
42172
|
+
backfill_open_order_reservations: {
|
|
42173
|
+
Args: never;
|
|
42174
|
+
Returns: {
|
|
42175
|
+
processed_items: number;
|
|
42176
|
+
}[];
|
|
42177
|
+
};
|
|
38999
42178
|
call_exact_route: {
|
|
39000
42179
|
Args: {
|
|
39001
42180
|
path: string;
|
|
39002
42181
|
};
|
|
39003
42182
|
Returns: number;
|
|
39004
42183
|
};
|
|
42184
|
+
check_offer_product_available_stock: {
|
|
42185
|
+
Args: {
|
|
42186
|
+
p_campaign_product_id: string;
|
|
42187
|
+
p_code: string;
|
|
42188
|
+
p_needed_qty?: number;
|
|
42189
|
+
p_product_name?: string;
|
|
42190
|
+
};
|
|
42191
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
42192
|
+
};
|
|
42193
|
+
check_trade_item_available_stock: {
|
|
42194
|
+
Args: {
|
|
42195
|
+
p_connection_id?: string;
|
|
42196
|
+
p_context?: string;
|
|
42197
|
+
p_needed_qty?: number;
|
|
42198
|
+
p_order_id?: string;
|
|
42199
|
+
p_order_item_id?: string;
|
|
42200
|
+
p_owner_id?: string;
|
|
42201
|
+
p_product_name?: string;
|
|
42202
|
+
p_trade_item_key: string;
|
|
42203
|
+
};
|
|
42204
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
42205
|
+
};
|
|
39005
42206
|
cleanup_old_bookings: {
|
|
39006
42207
|
Args: never;
|
|
39007
42208
|
Returns: number;
|
|
@@ -39045,6 +42246,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
39045
42246
|
table_name: string;
|
|
39046
42247
|
}[];
|
|
39047
42248
|
};
|
|
42249
|
+
dispatch_carrier_signups_sql: {
|
|
42250
|
+
Args: {
|
|
42251
|
+
_catchup?: string;
|
|
42252
|
+
};
|
|
42253
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
42254
|
+
};
|
|
39048
42255
|
email_auth_decrypt: {
|
|
39049
42256
|
Args: {
|
|
39050
42257
|
cipher: string;
|
|
@@ -39080,6 +42287,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
39080
42287
|
status: string;
|
|
39081
42288
|
}[];
|
|
39082
42289
|
};
|
|
42290
|
+
ensure_trade_item_stock_row: {
|
|
42291
|
+
Args: {
|
|
42292
|
+
p_key: string;
|
|
42293
|
+
};
|
|
42294
|
+
Returns: undefined;
|
|
42295
|
+
};
|
|
39083
42296
|
ensure_user_tenant: {
|
|
39084
42297
|
Args: never;
|
|
39085
42298
|
Returns: string;
|
|
@@ -39117,6 +42330,31 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
39117
42330
|
};
|
|
39118
42331
|
Returns: boolean;
|
|
39119
42332
|
};
|
|
42333
|
+
find_trade_item_key: {
|
|
42334
|
+
Args: {
|
|
42335
|
+
p_barcode: string;
|
|
42336
|
+
p_name: string;
|
|
42337
|
+
p_product_id: string;
|
|
42338
|
+
};
|
|
42339
|
+
Returns: string;
|
|
42340
|
+
};
|
|
42341
|
+
floriday_effective_price: {
|
|
42342
|
+
Args: {
|
|
42343
|
+
_buyer_id: string;
|
|
42344
|
+
_on_date?: string;
|
|
42345
|
+
_quantity?: number;
|
|
42346
|
+
_trade_item_id: string;
|
|
42347
|
+
};
|
|
42348
|
+
Returns: {
|
|
42349
|
+
base_price: number;
|
|
42350
|
+
currency: string;
|
|
42351
|
+
discount_type: string;
|
|
42352
|
+
discount_value: number;
|
|
42353
|
+
net_price: number;
|
|
42354
|
+
source: string;
|
|
42355
|
+
source_id: string;
|
|
42356
|
+
}[];
|
|
42357
|
+
};
|
|
39120
42358
|
format_cart_number: {
|
|
39121
42359
|
Args: {
|
|
39122
42360
|
p_pick_date: string;
|
|
@@ -39137,6 +42375,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
39137
42375
|
preferred_warehouse_name: string;
|
|
39138
42376
|
}[];
|
|
39139
42377
|
};
|
|
42378
|
+
get_active_floriday_context: {
|
|
42379
|
+
Args: never;
|
|
42380
|
+
Returns: {
|
|
42381
|
+
connection_id: string;
|
|
42382
|
+
user_id: string;
|
|
42383
|
+
}[];
|
|
42384
|
+
};
|
|
39140
42385
|
get_active_twinfield_public: {
|
|
39141
42386
|
Args: never;
|
|
39142
42387
|
Returns: {
|
|
@@ -39239,6 +42484,18 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
39239
42484
|
};
|
|
39240
42485
|
Returns: import("../integrations/supabase/types").Json;
|
|
39241
42486
|
};
|
|
42487
|
+
get_offer_recipient_by_code: {
|
|
42488
|
+
Args: {
|
|
42489
|
+
p_code: string;
|
|
42490
|
+
};
|
|
42491
|
+
Returns: {
|
|
42492
|
+
campaign_id: string;
|
|
42493
|
+
clicked_at: string;
|
|
42494
|
+
customer_id: string;
|
|
42495
|
+
id: string;
|
|
42496
|
+
ordered_at: string;
|
|
42497
|
+
}[];
|
|
42498
|
+
};
|
|
39242
42499
|
get_or_assign_floriday_order_number: {
|
|
39243
42500
|
Args: {
|
|
39244
42501
|
p_floriday_id: string;
|
|
@@ -39291,6 +42548,34 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
39291
42548
|
Args: never;
|
|
39292
42549
|
Returns: boolean;
|
|
39293
42550
|
};
|
|
42551
|
+
local_effective_price: {
|
|
42552
|
+
Args: {
|
|
42553
|
+
_customer_id: string;
|
|
42554
|
+
_on_date?: string;
|
|
42555
|
+
_product_id: string;
|
|
42556
|
+
_quantity?: number;
|
|
42557
|
+
};
|
|
42558
|
+
Returns: {
|
|
42559
|
+
currency: string;
|
|
42560
|
+
discount_type: string;
|
|
42561
|
+
discount_value: number;
|
|
42562
|
+
net_price: number;
|
|
42563
|
+
source: string;
|
|
42564
|
+
source_id: string;
|
|
42565
|
+
}[];
|
|
42566
|
+
};
|
|
42567
|
+
mark_offer_clicked: {
|
|
42568
|
+
Args: {
|
|
42569
|
+
p_code: string;
|
|
42570
|
+
};
|
|
42571
|
+
Returns: undefined;
|
|
42572
|
+
};
|
|
42573
|
+
mark_offer_ordered: {
|
|
42574
|
+
Args: {
|
|
42575
|
+
p_code: string;
|
|
42576
|
+
};
|
|
42577
|
+
Returns: undefined;
|
|
42578
|
+
};
|
|
39294
42579
|
next_order_number: {
|
|
39295
42580
|
Args: {
|
|
39296
42581
|
p_prefix: string;
|
|
@@ -39310,6 +42595,14 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
39310
42595
|
};
|
|
39311
42596
|
Returns: string;
|
|
39312
42597
|
};
|
|
42598
|
+
offer_recipient_matches: {
|
|
42599
|
+
Args: {
|
|
42600
|
+
_campaign_id: string;
|
|
42601
|
+
_customer_id: string;
|
|
42602
|
+
_recipient_id: string;
|
|
42603
|
+
};
|
|
42604
|
+
Returns: boolean;
|
|
42605
|
+
};
|
|
39313
42606
|
pickstation_get_orders_raw: {
|
|
39314
42607
|
Args: never;
|
|
39315
42608
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -39337,6 +42630,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
39337
42630
|
};
|
|
39338
42631
|
Returns: undefined;
|
|
39339
42632
|
};
|
|
42633
|
+
promote_trade_item_key: {
|
|
42634
|
+
Args: {
|
|
42635
|
+
p_new: string;
|
|
42636
|
+
p_old: string;
|
|
42637
|
+
};
|
|
42638
|
+
Returns: undefined;
|
|
42639
|
+
};
|
|
39340
42640
|
refresh_floricode_derived_code_lists: {
|
|
39341
42641
|
Args: never;
|
|
39342
42642
|
Returns: {
|
|
@@ -40380,6 +43680,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
40380
43680
|
notes: string | null;
|
|
40381
43681
|
performed_at: string;
|
|
40382
43682
|
rescheduled_count: number;
|
|
43683
|
+
stock_consumed_at: string | null;
|
|
40383
43684
|
total_carts: number;
|
|
40384
43685
|
updated_at: string;
|
|
40385
43686
|
user_id: string;
|
|
@@ -40393,6 +43694,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
40393
43694
|
notes?: string | null;
|
|
40394
43695
|
performed_at?: string;
|
|
40395
43696
|
rescheduled_count?: number;
|
|
43697
|
+
stock_consumed_at?: string | null;
|
|
40396
43698
|
total_carts?: number;
|
|
40397
43699
|
updated_at?: string;
|
|
40398
43700
|
user_id: string;
|
|
@@ -40406,6 +43708,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
40406
43708
|
notes?: string | null;
|
|
40407
43709
|
performed_at?: string;
|
|
40408
43710
|
rescheduled_count?: number;
|
|
43711
|
+
stock_consumed_at?: string | null;
|
|
40409
43712
|
total_carts?: number;
|
|
40410
43713
|
updated_at?: string;
|
|
40411
43714
|
user_id?: string;
|
|
@@ -43286,6 +46589,51 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
43286
46589
|
referencedColumns: ["id"];
|
|
43287
46590
|
}];
|
|
43288
46591
|
};
|
|
46592
|
+
floriday_continuous_stock_queue: {
|
|
46593
|
+
Row: {
|
|
46594
|
+
attempts: number;
|
|
46595
|
+
connection_id: string;
|
|
46596
|
+
created_at: string;
|
|
46597
|
+
gateway_attempt_id: string | null;
|
|
46598
|
+
id: string;
|
|
46599
|
+
last_error: string | null;
|
|
46600
|
+
number_of_pieces: number;
|
|
46601
|
+
sent_at: string | null;
|
|
46602
|
+
status: string;
|
|
46603
|
+
trade_item_id: string;
|
|
46604
|
+
updated_at: string;
|
|
46605
|
+
user_id: string;
|
|
46606
|
+
};
|
|
46607
|
+
Insert: {
|
|
46608
|
+
attempts?: number;
|
|
46609
|
+
connection_id: string;
|
|
46610
|
+
created_at?: string;
|
|
46611
|
+
gateway_attempt_id?: string | null;
|
|
46612
|
+
id?: string;
|
|
46613
|
+
last_error?: string | null;
|
|
46614
|
+
number_of_pieces?: number;
|
|
46615
|
+
sent_at?: string | null;
|
|
46616
|
+
status?: string;
|
|
46617
|
+
trade_item_id: string;
|
|
46618
|
+
updated_at?: string;
|
|
46619
|
+
user_id: string;
|
|
46620
|
+
};
|
|
46621
|
+
Update: {
|
|
46622
|
+
attempts?: number;
|
|
46623
|
+
connection_id?: string;
|
|
46624
|
+
created_at?: string;
|
|
46625
|
+
gateway_attempt_id?: string | null;
|
|
46626
|
+
id?: string;
|
|
46627
|
+
last_error?: string | null;
|
|
46628
|
+
number_of_pieces?: number;
|
|
46629
|
+
sent_at?: string | null;
|
|
46630
|
+
status?: string;
|
|
46631
|
+
trade_item_id?: string;
|
|
46632
|
+
updated_at?: string;
|
|
46633
|
+
user_id?: string;
|
|
46634
|
+
};
|
|
46635
|
+
Relationships: [];
|
|
46636
|
+
};
|
|
43289
46637
|
floriday_contract_trade_item_groups_cache: {
|
|
43290
46638
|
Row: {
|
|
43291
46639
|
connection_id: string;
|
|
@@ -44675,6 +48023,204 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
44675
48023
|
};
|
|
44676
48024
|
Relationships: [];
|
|
44677
48025
|
};
|
|
48026
|
+
local_customer_agreements: {
|
|
48027
|
+
Row: {
|
|
48028
|
+
base_price: number | null;
|
|
48029
|
+
created_at: string;
|
|
48030
|
+
currency: string;
|
|
48031
|
+
customer_id: string;
|
|
48032
|
+
id: string;
|
|
48033
|
+
min_quantity: number;
|
|
48034
|
+
net_price: number;
|
|
48035
|
+
notes: string | null;
|
|
48036
|
+
product_category_id: string | null;
|
|
48037
|
+
product_id: string | null;
|
|
48038
|
+
updated_at: string;
|
|
48039
|
+
valid_from: string | null;
|
|
48040
|
+
valid_until: string | null;
|
|
48041
|
+
};
|
|
48042
|
+
Insert: {
|
|
48043
|
+
base_price?: number | null;
|
|
48044
|
+
created_at?: string;
|
|
48045
|
+
currency?: string;
|
|
48046
|
+
customer_id: string;
|
|
48047
|
+
id?: string;
|
|
48048
|
+
min_quantity?: number;
|
|
48049
|
+
net_price: number;
|
|
48050
|
+
notes?: string | null;
|
|
48051
|
+
product_category_id?: string | null;
|
|
48052
|
+
product_id?: string | null;
|
|
48053
|
+
updated_at?: string;
|
|
48054
|
+
valid_from?: string | null;
|
|
48055
|
+
valid_until?: string | null;
|
|
48056
|
+
};
|
|
48057
|
+
Update: {
|
|
48058
|
+
base_price?: number | null;
|
|
48059
|
+
created_at?: string;
|
|
48060
|
+
currency?: string;
|
|
48061
|
+
customer_id?: string;
|
|
48062
|
+
id?: string;
|
|
48063
|
+
min_quantity?: number;
|
|
48064
|
+
net_price?: number;
|
|
48065
|
+
notes?: string | null;
|
|
48066
|
+
product_category_id?: string | null;
|
|
48067
|
+
product_id?: string | null;
|
|
48068
|
+
updated_at?: string;
|
|
48069
|
+
valid_from?: string | null;
|
|
48070
|
+
valid_until?: string | null;
|
|
48071
|
+
};
|
|
48072
|
+
Relationships: [{
|
|
48073
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
48074
|
+
columns: ["customer_id"];
|
|
48075
|
+
isOneToOne: false;
|
|
48076
|
+
referencedRelation: "customers";
|
|
48077
|
+
referencedColumns: ["id"];
|
|
48078
|
+
}, {
|
|
48079
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
48080
|
+
columns: ["product_category_id"];
|
|
48081
|
+
isOneToOne: false;
|
|
48082
|
+
referencedRelation: "product_categories";
|
|
48083
|
+
referencedColumns: ["id"];
|
|
48084
|
+
}, {
|
|
48085
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
48086
|
+
columns: ["product_id"];
|
|
48087
|
+
isOneToOne: false;
|
|
48088
|
+
referencedRelation: "products";
|
|
48089
|
+
referencedColumns: ["id"];
|
|
48090
|
+
}];
|
|
48091
|
+
};
|
|
48092
|
+
local_customer_price_groups: {
|
|
48093
|
+
Row: {
|
|
48094
|
+
created_at: string;
|
|
48095
|
+
currency: string;
|
|
48096
|
+
customer_id: string;
|
|
48097
|
+
discount_type: string;
|
|
48098
|
+
discount_value: number;
|
|
48099
|
+
id: string;
|
|
48100
|
+
min_quantity: number;
|
|
48101
|
+
notes: string | null;
|
|
48102
|
+
product_category_id: string | null;
|
|
48103
|
+
product_id: string | null;
|
|
48104
|
+
updated_at: string;
|
|
48105
|
+
valid_from: string | null;
|
|
48106
|
+
valid_until: string | null;
|
|
48107
|
+
};
|
|
48108
|
+
Insert: {
|
|
48109
|
+
created_at?: string;
|
|
48110
|
+
currency?: string;
|
|
48111
|
+
customer_id: string;
|
|
48112
|
+
discount_type: string;
|
|
48113
|
+
discount_value: number;
|
|
48114
|
+
id?: string;
|
|
48115
|
+
min_quantity?: number;
|
|
48116
|
+
notes?: string | null;
|
|
48117
|
+
product_category_id?: string | null;
|
|
48118
|
+
product_id?: string | null;
|
|
48119
|
+
updated_at?: string;
|
|
48120
|
+
valid_from?: string | null;
|
|
48121
|
+
valid_until?: string | null;
|
|
48122
|
+
};
|
|
48123
|
+
Update: {
|
|
48124
|
+
created_at?: string;
|
|
48125
|
+
currency?: string;
|
|
48126
|
+
customer_id?: string;
|
|
48127
|
+
discount_type?: string;
|
|
48128
|
+
discount_value?: number;
|
|
48129
|
+
id?: string;
|
|
48130
|
+
min_quantity?: number;
|
|
48131
|
+
notes?: string | null;
|
|
48132
|
+
product_category_id?: string | null;
|
|
48133
|
+
product_id?: string | null;
|
|
48134
|
+
updated_at?: string;
|
|
48135
|
+
valid_from?: string | null;
|
|
48136
|
+
valid_until?: string | null;
|
|
48137
|
+
};
|
|
48138
|
+
Relationships: [{
|
|
48139
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
48140
|
+
columns: ["customer_id"];
|
|
48141
|
+
isOneToOne: false;
|
|
48142
|
+
referencedRelation: "customers";
|
|
48143
|
+
referencedColumns: ["id"];
|
|
48144
|
+
}, {
|
|
48145
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
48146
|
+
columns: ["product_category_id"];
|
|
48147
|
+
isOneToOne: false;
|
|
48148
|
+
referencedRelation: "product_categories";
|
|
48149
|
+
referencedColumns: ["id"];
|
|
48150
|
+
}, {
|
|
48151
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
48152
|
+
columns: ["product_id"];
|
|
48153
|
+
isOneToOne: false;
|
|
48154
|
+
referencedRelation: "products";
|
|
48155
|
+
referencedColumns: ["id"];
|
|
48156
|
+
}];
|
|
48157
|
+
};
|
|
48158
|
+
local_customer_sales_strategies: {
|
|
48159
|
+
Row: {
|
|
48160
|
+
created_at: string;
|
|
48161
|
+
currency: string;
|
|
48162
|
+
customer_id: string;
|
|
48163
|
+
discount_type: string;
|
|
48164
|
+
discount_value: number;
|
|
48165
|
+
id: string;
|
|
48166
|
+
min_quantity: number;
|
|
48167
|
+
notes: string | null;
|
|
48168
|
+
product_category_id: string | null;
|
|
48169
|
+
product_id: string | null;
|
|
48170
|
+
updated_at: string;
|
|
48171
|
+
valid_from: string | null;
|
|
48172
|
+
valid_until: string | null;
|
|
48173
|
+
};
|
|
48174
|
+
Insert: {
|
|
48175
|
+
created_at?: string;
|
|
48176
|
+
currency?: string;
|
|
48177
|
+
customer_id: string;
|
|
48178
|
+
discount_type: string;
|
|
48179
|
+
discount_value: number;
|
|
48180
|
+
id?: string;
|
|
48181
|
+
min_quantity?: number;
|
|
48182
|
+
notes?: string | null;
|
|
48183
|
+
product_category_id?: string | null;
|
|
48184
|
+
product_id?: string | null;
|
|
48185
|
+
updated_at?: string;
|
|
48186
|
+
valid_from?: string | null;
|
|
48187
|
+
valid_until?: string | null;
|
|
48188
|
+
};
|
|
48189
|
+
Update: {
|
|
48190
|
+
created_at?: string;
|
|
48191
|
+
currency?: string;
|
|
48192
|
+
customer_id?: string;
|
|
48193
|
+
discount_type?: string;
|
|
48194
|
+
discount_value?: number;
|
|
48195
|
+
id?: string;
|
|
48196
|
+
min_quantity?: number;
|
|
48197
|
+
notes?: string | null;
|
|
48198
|
+
product_category_id?: string | null;
|
|
48199
|
+
product_id?: string | null;
|
|
48200
|
+
updated_at?: string;
|
|
48201
|
+
valid_from?: string | null;
|
|
48202
|
+
valid_until?: string | null;
|
|
48203
|
+
};
|
|
48204
|
+
Relationships: [{
|
|
48205
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
48206
|
+
columns: ["customer_id"];
|
|
48207
|
+
isOneToOne: false;
|
|
48208
|
+
referencedRelation: "customers";
|
|
48209
|
+
referencedColumns: ["id"];
|
|
48210
|
+
}, {
|
|
48211
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
48212
|
+
columns: ["product_category_id"];
|
|
48213
|
+
isOneToOne: false;
|
|
48214
|
+
referencedRelation: "product_categories";
|
|
48215
|
+
referencedColumns: ["id"];
|
|
48216
|
+
}, {
|
|
48217
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
48218
|
+
columns: ["product_id"];
|
|
48219
|
+
isOneToOne: false;
|
|
48220
|
+
referencedRelation: "products";
|
|
48221
|
+
referencedColumns: ["id"];
|
|
48222
|
+
}];
|
|
48223
|
+
};
|
|
44678
48224
|
locations: {
|
|
44679
48225
|
Row: {
|
|
44680
48226
|
created_at: string;
|
|
@@ -45182,6 +48728,273 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
45182
48728
|
referencedColumns: ["id"];
|
|
45183
48729
|
}];
|
|
45184
48730
|
};
|
|
48731
|
+
nmbrs_component_mapping: {
|
|
48732
|
+
Row: {
|
|
48733
|
+
created_at: string;
|
|
48734
|
+
id: string;
|
|
48735
|
+
source_kind: string;
|
|
48736
|
+
source_value: string | null;
|
|
48737
|
+
updated_at: string;
|
|
48738
|
+
wage_code: string;
|
|
48739
|
+
};
|
|
48740
|
+
Insert: {
|
|
48741
|
+
created_at?: string;
|
|
48742
|
+
id?: string;
|
|
48743
|
+
source_kind: string;
|
|
48744
|
+
source_value?: string | null;
|
|
48745
|
+
updated_at?: string;
|
|
48746
|
+
wage_code: string;
|
|
48747
|
+
};
|
|
48748
|
+
Update: {
|
|
48749
|
+
created_at?: string;
|
|
48750
|
+
id?: string;
|
|
48751
|
+
source_kind?: string;
|
|
48752
|
+
source_value?: string | null;
|
|
48753
|
+
updated_at?: string;
|
|
48754
|
+
wage_code?: string;
|
|
48755
|
+
};
|
|
48756
|
+
Relationships: [{
|
|
48757
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
48758
|
+
columns: ["wage_code"];
|
|
48759
|
+
isOneToOne: false;
|
|
48760
|
+
referencedRelation: "nmbrs_wage_components";
|
|
48761
|
+
referencedColumns: ["code"];
|
|
48762
|
+
}];
|
|
48763
|
+
};
|
|
48764
|
+
nmbrs_employee_mapping: {
|
|
48765
|
+
Row: {
|
|
48766
|
+
active_from: string | null;
|
|
48767
|
+
active_to: string | null;
|
|
48768
|
+
contract_hours_per_week: number | null;
|
|
48769
|
+
created_at: string;
|
|
48770
|
+
hourly_wage: number | null;
|
|
48771
|
+
id: string;
|
|
48772
|
+
monteur_id: string;
|
|
48773
|
+
nmbrs_company_code: string | null;
|
|
48774
|
+
nmbrs_employee_number: string;
|
|
48775
|
+
updated_at: string;
|
|
48776
|
+
};
|
|
48777
|
+
Insert: {
|
|
48778
|
+
active_from?: string | null;
|
|
48779
|
+
active_to?: string | null;
|
|
48780
|
+
contract_hours_per_week?: number | null;
|
|
48781
|
+
created_at?: string;
|
|
48782
|
+
hourly_wage?: number | null;
|
|
48783
|
+
id?: string;
|
|
48784
|
+
monteur_id: string;
|
|
48785
|
+
nmbrs_company_code?: string | null;
|
|
48786
|
+
nmbrs_employee_number: string;
|
|
48787
|
+
updated_at?: string;
|
|
48788
|
+
};
|
|
48789
|
+
Update: {
|
|
48790
|
+
active_from?: string | null;
|
|
48791
|
+
active_to?: string | null;
|
|
48792
|
+
contract_hours_per_week?: number | null;
|
|
48793
|
+
created_at?: string;
|
|
48794
|
+
hourly_wage?: number | null;
|
|
48795
|
+
id?: string;
|
|
48796
|
+
monteur_id?: string;
|
|
48797
|
+
nmbrs_company_code?: string | null;
|
|
48798
|
+
nmbrs_employee_number?: string;
|
|
48799
|
+
updated_at?: string;
|
|
48800
|
+
};
|
|
48801
|
+
Relationships: [{
|
|
48802
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
48803
|
+
columns: ["monteur_id"];
|
|
48804
|
+
isOneToOne: true;
|
|
48805
|
+
referencedRelation: "monteurs";
|
|
48806
|
+
referencedColumns: ["id"];
|
|
48807
|
+
}];
|
|
48808
|
+
};
|
|
48809
|
+
nmbrs_export_lines: {
|
|
48810
|
+
Row: {
|
|
48811
|
+
amount: number;
|
|
48812
|
+
created_at: string;
|
|
48813
|
+
entry_date: string;
|
|
48814
|
+
hours: number;
|
|
48815
|
+
id: string;
|
|
48816
|
+
monteur_id: string;
|
|
48817
|
+
nmbrs_employee_number: string | null;
|
|
48818
|
+
notes: string | null;
|
|
48819
|
+
run_id: string;
|
|
48820
|
+
source_kind: string | null;
|
|
48821
|
+
source_ref_id: string | null;
|
|
48822
|
+
updated_at: string;
|
|
48823
|
+
wage_code: string;
|
|
48824
|
+
};
|
|
48825
|
+
Insert: {
|
|
48826
|
+
amount?: number;
|
|
48827
|
+
created_at?: string;
|
|
48828
|
+
entry_date: string;
|
|
48829
|
+
hours?: number;
|
|
48830
|
+
id?: string;
|
|
48831
|
+
monteur_id: string;
|
|
48832
|
+
nmbrs_employee_number?: string | null;
|
|
48833
|
+
notes?: string | null;
|
|
48834
|
+
run_id: string;
|
|
48835
|
+
source_kind?: string | null;
|
|
48836
|
+
source_ref_id?: string | null;
|
|
48837
|
+
updated_at?: string;
|
|
48838
|
+
wage_code: string;
|
|
48839
|
+
};
|
|
48840
|
+
Update: {
|
|
48841
|
+
amount?: number;
|
|
48842
|
+
created_at?: string;
|
|
48843
|
+
entry_date?: string;
|
|
48844
|
+
hours?: number;
|
|
48845
|
+
id?: string;
|
|
48846
|
+
monteur_id?: string;
|
|
48847
|
+
nmbrs_employee_number?: string | null;
|
|
48848
|
+
notes?: string | null;
|
|
48849
|
+
run_id?: string;
|
|
48850
|
+
source_kind?: string | null;
|
|
48851
|
+
source_ref_id?: string | null;
|
|
48852
|
+
updated_at?: string;
|
|
48853
|
+
wage_code?: string;
|
|
48854
|
+
};
|
|
48855
|
+
Relationships: [{
|
|
48856
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
48857
|
+
columns: ["monteur_id"];
|
|
48858
|
+
isOneToOne: false;
|
|
48859
|
+
referencedRelation: "monteurs";
|
|
48860
|
+
referencedColumns: ["id"];
|
|
48861
|
+
}, {
|
|
48862
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
48863
|
+
columns: ["run_id"];
|
|
48864
|
+
isOneToOne: false;
|
|
48865
|
+
referencedRelation: "nmbrs_export_runs";
|
|
48866
|
+
referencedColumns: ["id"];
|
|
48867
|
+
}, {
|
|
48868
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
48869
|
+
columns: ["wage_code"];
|
|
48870
|
+
isOneToOne: false;
|
|
48871
|
+
referencedRelation: "nmbrs_wage_components";
|
|
48872
|
+
referencedColumns: ["code"];
|
|
48873
|
+
}];
|
|
48874
|
+
};
|
|
48875
|
+
nmbrs_export_runs: {
|
|
48876
|
+
Row: {
|
|
48877
|
+
created_at: string;
|
|
48878
|
+
file_name: string | null;
|
|
48879
|
+
generated_at: string;
|
|
48880
|
+
generated_by: string | null;
|
|
48881
|
+
id: string;
|
|
48882
|
+
notes: string | null;
|
|
48883
|
+
period_end: string;
|
|
48884
|
+
period_label: string;
|
|
48885
|
+
period_start: string;
|
|
48886
|
+
status: string;
|
|
48887
|
+
total_hours: number;
|
|
48888
|
+
total_lines: number;
|
|
48889
|
+
updated_at: string;
|
|
48890
|
+
};
|
|
48891
|
+
Insert: {
|
|
48892
|
+
created_at?: string;
|
|
48893
|
+
file_name?: string | null;
|
|
48894
|
+
generated_at?: string;
|
|
48895
|
+
generated_by?: string | null;
|
|
48896
|
+
id?: string;
|
|
48897
|
+
notes?: string | null;
|
|
48898
|
+
period_end: string;
|
|
48899
|
+
period_label: string;
|
|
48900
|
+
period_start: string;
|
|
48901
|
+
status?: string;
|
|
48902
|
+
total_hours?: number;
|
|
48903
|
+
total_lines?: number;
|
|
48904
|
+
updated_at?: string;
|
|
48905
|
+
};
|
|
48906
|
+
Update: {
|
|
48907
|
+
created_at?: string;
|
|
48908
|
+
file_name?: string | null;
|
|
48909
|
+
generated_at?: string;
|
|
48910
|
+
generated_by?: string | null;
|
|
48911
|
+
id?: string;
|
|
48912
|
+
notes?: string | null;
|
|
48913
|
+
period_end?: string;
|
|
48914
|
+
period_label?: string;
|
|
48915
|
+
period_start?: string;
|
|
48916
|
+
status?: string;
|
|
48917
|
+
total_hours?: number;
|
|
48918
|
+
total_lines?: number;
|
|
48919
|
+
updated_at?: string;
|
|
48920
|
+
};
|
|
48921
|
+
Relationships: [];
|
|
48922
|
+
};
|
|
48923
|
+
nmbrs_settings: {
|
|
48924
|
+
Row: {
|
|
48925
|
+
created_at: string;
|
|
48926
|
+
default_company_code: string | null;
|
|
48927
|
+
id: boolean;
|
|
48928
|
+
include_travel: boolean;
|
|
48929
|
+
overtime_threshold_daily: number;
|
|
48930
|
+
overtime_threshold_weekly: number;
|
|
48931
|
+
period_type: string;
|
|
48932
|
+
updated_at: string;
|
|
48933
|
+
updated_by: string | null;
|
|
48934
|
+
week_start_day: number;
|
|
48935
|
+
};
|
|
48936
|
+
Insert: {
|
|
48937
|
+
created_at?: string;
|
|
48938
|
+
default_company_code?: string | null;
|
|
48939
|
+
id?: boolean;
|
|
48940
|
+
include_travel?: boolean;
|
|
48941
|
+
overtime_threshold_daily?: number;
|
|
48942
|
+
overtime_threshold_weekly?: number;
|
|
48943
|
+
period_type?: string;
|
|
48944
|
+
updated_at?: string;
|
|
48945
|
+
updated_by?: string | null;
|
|
48946
|
+
week_start_day?: number;
|
|
48947
|
+
};
|
|
48948
|
+
Update: {
|
|
48949
|
+
created_at?: string;
|
|
48950
|
+
default_company_code?: string | null;
|
|
48951
|
+
id?: boolean;
|
|
48952
|
+
include_travel?: boolean;
|
|
48953
|
+
overtime_threshold_daily?: number;
|
|
48954
|
+
overtime_threshold_weekly?: number;
|
|
48955
|
+
period_type?: string;
|
|
48956
|
+
updated_at?: string;
|
|
48957
|
+
updated_by?: string | null;
|
|
48958
|
+
week_start_day?: number;
|
|
48959
|
+
};
|
|
48960
|
+
Relationships: [];
|
|
48961
|
+
};
|
|
48962
|
+
nmbrs_wage_components: {
|
|
48963
|
+
Row: {
|
|
48964
|
+
category: string;
|
|
48965
|
+
code: string;
|
|
48966
|
+
created_at: string;
|
|
48967
|
+
id: string;
|
|
48968
|
+
is_active: boolean;
|
|
48969
|
+
label: string;
|
|
48970
|
+
sort_order: number;
|
|
48971
|
+
unit: string;
|
|
48972
|
+
updated_at: string;
|
|
48973
|
+
};
|
|
48974
|
+
Insert: {
|
|
48975
|
+
category: string;
|
|
48976
|
+
code: string;
|
|
48977
|
+
created_at?: string;
|
|
48978
|
+
id?: string;
|
|
48979
|
+
is_active?: boolean;
|
|
48980
|
+
label: string;
|
|
48981
|
+
sort_order?: number;
|
|
48982
|
+
unit: string;
|
|
48983
|
+
updated_at?: string;
|
|
48984
|
+
};
|
|
48985
|
+
Update: {
|
|
48986
|
+
category?: string;
|
|
48987
|
+
code?: string;
|
|
48988
|
+
created_at?: string;
|
|
48989
|
+
id?: string;
|
|
48990
|
+
is_active?: boolean;
|
|
48991
|
+
label?: string;
|
|
48992
|
+
sort_order?: number;
|
|
48993
|
+
unit?: string;
|
|
48994
|
+
updated_at?: string;
|
|
48995
|
+
};
|
|
48996
|
+
Relationships: [];
|
|
48997
|
+
};
|
|
45185
48998
|
notifications: {
|
|
45186
48999
|
Row: {
|
|
45187
49000
|
created_at: string;
|
|
@@ -46164,6 +49977,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
46164
49977
|
purchase_price: number | null;
|
|
46165
49978
|
quantity: number;
|
|
46166
49979
|
sale_price: number | null;
|
|
49980
|
+
trade_item_key: string | null;
|
|
46167
49981
|
unit: string;
|
|
46168
49982
|
updated_at: string;
|
|
46169
49983
|
weight: string | null;
|
|
@@ -46186,6 +50000,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
46186
50000
|
purchase_price?: number | null;
|
|
46187
50001
|
quantity?: number;
|
|
46188
50002
|
sale_price?: number | null;
|
|
50003
|
+
trade_item_key?: string | null;
|
|
46189
50004
|
unit?: string;
|
|
46190
50005
|
updated_at?: string;
|
|
46191
50006
|
weight?: string | null;
|
|
@@ -46208,6 +50023,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
46208
50023
|
purchase_price?: number | null;
|
|
46209
50024
|
quantity?: number;
|
|
46210
50025
|
sale_price?: number | null;
|
|
50026
|
+
trade_item_key?: string | null;
|
|
46211
50027
|
unit?: string;
|
|
46212
50028
|
updated_at?: string;
|
|
46213
50029
|
weight?: string | null;
|
|
@@ -47027,6 +50843,102 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
47027
50843
|
};
|
|
47028
50844
|
Relationships: [];
|
|
47029
50845
|
};
|
|
50846
|
+
stock_import_runs: {
|
|
50847
|
+
Row: {
|
|
50848
|
+
connection_id: string | null;
|
|
50849
|
+
created_at: string;
|
|
50850
|
+
created_rows: number;
|
|
50851
|
+
errors: import("../integrations/supabase/types").Json;
|
|
50852
|
+
filename: string | null;
|
|
50853
|
+
id: string;
|
|
50854
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
50855
|
+
skipped_rows: number;
|
|
50856
|
+
total_rows: number;
|
|
50857
|
+
updated_rows: number;
|
|
50858
|
+
user_id: string;
|
|
50859
|
+
};
|
|
50860
|
+
Insert: {
|
|
50861
|
+
connection_id?: string | null;
|
|
50862
|
+
created_at?: string;
|
|
50863
|
+
created_rows?: number;
|
|
50864
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
50865
|
+
filename?: string | null;
|
|
50866
|
+
id?: string;
|
|
50867
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
50868
|
+
skipped_rows?: number;
|
|
50869
|
+
total_rows?: number;
|
|
50870
|
+
updated_rows?: number;
|
|
50871
|
+
user_id: string;
|
|
50872
|
+
};
|
|
50873
|
+
Update: {
|
|
50874
|
+
connection_id?: string | null;
|
|
50875
|
+
created_at?: string;
|
|
50876
|
+
created_rows?: number;
|
|
50877
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
50878
|
+
filename?: string | null;
|
|
50879
|
+
id?: string;
|
|
50880
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
50881
|
+
skipped_rows?: number;
|
|
50882
|
+
total_rows?: number;
|
|
50883
|
+
updated_rows?: number;
|
|
50884
|
+
user_id?: string;
|
|
50885
|
+
};
|
|
50886
|
+
Relationships: [];
|
|
50887
|
+
};
|
|
50888
|
+
stock_mutation_log: {
|
|
50889
|
+
Row: {
|
|
50890
|
+
connection_id: string | null;
|
|
50891
|
+
created_at: string;
|
|
50892
|
+
created_by: string | null;
|
|
50893
|
+
id: string;
|
|
50894
|
+
mutation_type: string;
|
|
50895
|
+
order_id: string | null;
|
|
50896
|
+
order_item_id: string | null;
|
|
50897
|
+
order_source: string | null;
|
|
50898
|
+
physical_after: number | null;
|
|
50899
|
+
physical_before: number | null;
|
|
50900
|
+
qty_delta: number;
|
|
50901
|
+
reason: string | null;
|
|
50902
|
+
reserved_after: number | null;
|
|
50903
|
+
reserved_before: number | null;
|
|
50904
|
+
trade_item_key: string;
|
|
50905
|
+
};
|
|
50906
|
+
Insert: {
|
|
50907
|
+
connection_id?: string | null;
|
|
50908
|
+
created_at?: string;
|
|
50909
|
+
created_by?: string | null;
|
|
50910
|
+
id?: string;
|
|
50911
|
+
mutation_type: string;
|
|
50912
|
+
order_id?: string | null;
|
|
50913
|
+
order_item_id?: string | null;
|
|
50914
|
+
order_source?: string | null;
|
|
50915
|
+
physical_after?: number | null;
|
|
50916
|
+
physical_before?: number | null;
|
|
50917
|
+
qty_delta: number;
|
|
50918
|
+
reason?: string | null;
|
|
50919
|
+
reserved_after?: number | null;
|
|
50920
|
+
reserved_before?: number | null;
|
|
50921
|
+
trade_item_key: string;
|
|
50922
|
+
};
|
|
50923
|
+
Update: {
|
|
50924
|
+
connection_id?: string | null;
|
|
50925
|
+
created_at?: string;
|
|
50926
|
+
created_by?: string | null;
|
|
50927
|
+
id?: string;
|
|
50928
|
+
mutation_type?: string;
|
|
50929
|
+
order_id?: string | null;
|
|
50930
|
+
order_item_id?: string | null;
|
|
50931
|
+
order_source?: string | null;
|
|
50932
|
+
physical_after?: number | null;
|
|
50933
|
+
physical_before?: number | null;
|
|
50934
|
+
qty_delta?: number;
|
|
50935
|
+
reason?: string | null;
|
|
50936
|
+
reserved_after?: number | null;
|
|
50937
|
+
reserved_before?: number | null;
|
|
50938
|
+
trade_item_key?: string;
|
|
50939
|
+
};
|
|
50940
|
+
Relationships: [];
|
|
50941
|
+
};
|
|
47030
50942
|
supplier_products: {
|
|
47031
50943
|
Row: {
|
|
47032
50944
|
article_number: string | null;
|
|
@@ -48604,6 +52516,44 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
48604
52516
|
};
|
|
48605
52517
|
Relationships: [];
|
|
48606
52518
|
};
|
|
52519
|
+
floriday_customer_discounts: {
|
|
52520
|
+
Row: {
|
|
52521
|
+
base_price: number | null;
|
|
52522
|
+
buyer_organization_id: string | null;
|
|
52523
|
+
currency: string | null;
|
|
52524
|
+
discount_type: string | null;
|
|
52525
|
+
discount_value: number | null;
|
|
52526
|
+
min_quantity: number | null;
|
|
52527
|
+
net_price: number | null;
|
|
52528
|
+
product_group_id: string | null;
|
|
52529
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
52530
|
+
source: string | null;
|
|
52531
|
+
source_id: string | null;
|
|
52532
|
+
trade_item_id: string | null;
|
|
52533
|
+
valid_from: string | null;
|
|
52534
|
+
valid_until: string | null;
|
|
52535
|
+
};
|
|
52536
|
+
Relationships: [];
|
|
52537
|
+
};
|
|
52538
|
+
local_customer_discounts: {
|
|
52539
|
+
Row: {
|
|
52540
|
+
base_price: number | null;
|
|
52541
|
+
currency: string | null;
|
|
52542
|
+
customer_id: string | null;
|
|
52543
|
+
discount_type: string | null;
|
|
52544
|
+
discount_value: number | null;
|
|
52545
|
+
min_quantity: number | null;
|
|
52546
|
+
net_price: number | null;
|
|
52547
|
+
product_category_id: string | null;
|
|
52548
|
+
product_id: string | null;
|
|
52549
|
+
product_name: string | null;
|
|
52550
|
+
source: string | null;
|
|
52551
|
+
source_id: string | null;
|
|
52552
|
+
valid_from: string | null;
|
|
52553
|
+
valid_until: string | null;
|
|
52554
|
+
};
|
|
52555
|
+
Relationships: [];
|
|
52556
|
+
};
|
|
48607
52557
|
manufacture_product_possible_stock_view: {
|
|
48608
52558
|
Row: {
|
|
48609
52559
|
component_count: number | null;
|
|
@@ -48888,6 +52838,54 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
48888
52838
|
};
|
|
48889
52839
|
Returns: number;
|
|
48890
52840
|
};
|
|
52841
|
+
afh_city_code: {
|
|
52842
|
+
Args: {
|
|
52843
|
+
_city: string;
|
|
52844
|
+
_country: string;
|
|
52845
|
+
};
|
|
52846
|
+
Returns: string;
|
|
52847
|
+
};
|
|
52848
|
+
afh_normalize_country: {
|
|
52849
|
+
Args: {
|
|
52850
|
+
_raw: string;
|
|
52851
|
+
};
|
|
52852
|
+
Returns: string;
|
|
52853
|
+
};
|
|
52854
|
+
afh_normalize_nl_province: {
|
|
52855
|
+
Args: {
|
|
52856
|
+
_raw: string;
|
|
52857
|
+
};
|
|
52858
|
+
Returns: string;
|
|
52859
|
+
};
|
|
52860
|
+
afh_subtract_workdays: {
|
|
52861
|
+
Args: {
|
|
52862
|
+
_date: string;
|
|
52863
|
+
_days: number;
|
|
52864
|
+
};
|
|
52865
|
+
Returns: string;
|
|
52866
|
+
};
|
|
52867
|
+
apply_stock_consumption: {
|
|
52868
|
+
Args: {
|
|
52869
|
+
p_order_id: string;
|
|
52870
|
+
p_order_item_id: string;
|
|
52871
|
+
p_qty: number;
|
|
52872
|
+
p_reason: string;
|
|
52873
|
+
p_source: string;
|
|
52874
|
+
p_trade_item_key: string;
|
|
52875
|
+
};
|
|
52876
|
+
Returns: undefined;
|
|
52877
|
+
};
|
|
52878
|
+
apply_stock_reservation: {
|
|
52879
|
+
Args: {
|
|
52880
|
+
p_order_id: string;
|
|
52881
|
+
p_order_item_id: string;
|
|
52882
|
+
p_qty: number;
|
|
52883
|
+
p_reason: string;
|
|
52884
|
+
p_source: string;
|
|
52885
|
+
p_trade_item_key: string;
|
|
52886
|
+
};
|
|
52887
|
+
Returns: undefined;
|
|
52888
|
+
};
|
|
48891
52889
|
assign_cart_numbers: {
|
|
48892
52890
|
Args: {
|
|
48893
52891
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -48911,12 +52909,40 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
48911
52909
|
order_number: string;
|
|
48912
52910
|
}[];
|
|
48913
52911
|
};
|
|
52912
|
+
backfill_open_order_reservations: {
|
|
52913
|
+
Args: never;
|
|
52914
|
+
Returns: {
|
|
52915
|
+
processed_items: number;
|
|
52916
|
+
}[];
|
|
52917
|
+
};
|
|
48914
52918
|
call_exact_route: {
|
|
48915
52919
|
Args: {
|
|
48916
52920
|
path: string;
|
|
48917
52921
|
};
|
|
48918
52922
|
Returns: number;
|
|
48919
52923
|
};
|
|
52924
|
+
check_offer_product_available_stock: {
|
|
52925
|
+
Args: {
|
|
52926
|
+
p_campaign_product_id: string;
|
|
52927
|
+
p_code: string;
|
|
52928
|
+
p_needed_qty?: number;
|
|
52929
|
+
p_product_name?: string;
|
|
52930
|
+
};
|
|
52931
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
52932
|
+
};
|
|
52933
|
+
check_trade_item_available_stock: {
|
|
52934
|
+
Args: {
|
|
52935
|
+
p_connection_id?: string;
|
|
52936
|
+
p_context?: string;
|
|
52937
|
+
p_needed_qty?: number;
|
|
52938
|
+
p_order_id?: string;
|
|
52939
|
+
p_order_item_id?: string;
|
|
52940
|
+
p_owner_id?: string;
|
|
52941
|
+
p_product_name?: string;
|
|
52942
|
+
p_trade_item_key: string;
|
|
52943
|
+
};
|
|
52944
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
52945
|
+
};
|
|
48920
52946
|
cleanup_old_bookings: {
|
|
48921
52947
|
Args: never;
|
|
48922
52948
|
Returns: number;
|
|
@@ -48960,6 +52986,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
48960
52986
|
table_name: string;
|
|
48961
52987
|
}[];
|
|
48962
52988
|
};
|
|
52989
|
+
dispatch_carrier_signups_sql: {
|
|
52990
|
+
Args: {
|
|
52991
|
+
_catchup?: string;
|
|
52992
|
+
};
|
|
52993
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
52994
|
+
};
|
|
48963
52995
|
email_auth_decrypt: {
|
|
48964
52996
|
Args: {
|
|
48965
52997
|
cipher: string;
|
|
@@ -48995,6 +53027,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
48995
53027
|
status: string;
|
|
48996
53028
|
}[];
|
|
48997
53029
|
};
|
|
53030
|
+
ensure_trade_item_stock_row: {
|
|
53031
|
+
Args: {
|
|
53032
|
+
p_key: string;
|
|
53033
|
+
};
|
|
53034
|
+
Returns: undefined;
|
|
53035
|
+
};
|
|
48998
53036
|
ensure_user_tenant: {
|
|
48999
53037
|
Args: never;
|
|
49000
53038
|
Returns: string;
|
|
@@ -49032,6 +53070,31 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
49032
53070
|
};
|
|
49033
53071
|
Returns: boolean;
|
|
49034
53072
|
};
|
|
53073
|
+
find_trade_item_key: {
|
|
53074
|
+
Args: {
|
|
53075
|
+
p_barcode: string;
|
|
53076
|
+
p_name: string;
|
|
53077
|
+
p_product_id: string;
|
|
53078
|
+
};
|
|
53079
|
+
Returns: string;
|
|
53080
|
+
};
|
|
53081
|
+
floriday_effective_price: {
|
|
53082
|
+
Args: {
|
|
53083
|
+
_buyer_id: string;
|
|
53084
|
+
_on_date?: string;
|
|
53085
|
+
_quantity?: number;
|
|
53086
|
+
_trade_item_id: string;
|
|
53087
|
+
};
|
|
53088
|
+
Returns: {
|
|
53089
|
+
base_price: number;
|
|
53090
|
+
currency: string;
|
|
53091
|
+
discount_type: string;
|
|
53092
|
+
discount_value: number;
|
|
53093
|
+
net_price: number;
|
|
53094
|
+
source: string;
|
|
53095
|
+
source_id: string;
|
|
53096
|
+
}[];
|
|
53097
|
+
};
|
|
49035
53098
|
format_cart_number: {
|
|
49036
53099
|
Args: {
|
|
49037
53100
|
p_pick_date: string;
|
|
@@ -49052,6 +53115,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
49052
53115
|
preferred_warehouse_name: string;
|
|
49053
53116
|
}[];
|
|
49054
53117
|
};
|
|
53118
|
+
get_active_floriday_context: {
|
|
53119
|
+
Args: never;
|
|
53120
|
+
Returns: {
|
|
53121
|
+
connection_id: string;
|
|
53122
|
+
user_id: string;
|
|
53123
|
+
}[];
|
|
53124
|
+
};
|
|
49055
53125
|
get_active_twinfield_public: {
|
|
49056
53126
|
Args: never;
|
|
49057
53127
|
Returns: {
|
|
@@ -49154,6 +53224,18 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
49154
53224
|
};
|
|
49155
53225
|
Returns: import("../integrations/supabase/types").Json;
|
|
49156
53226
|
};
|
|
53227
|
+
get_offer_recipient_by_code: {
|
|
53228
|
+
Args: {
|
|
53229
|
+
p_code: string;
|
|
53230
|
+
};
|
|
53231
|
+
Returns: {
|
|
53232
|
+
campaign_id: string;
|
|
53233
|
+
clicked_at: string;
|
|
53234
|
+
customer_id: string;
|
|
53235
|
+
id: string;
|
|
53236
|
+
ordered_at: string;
|
|
53237
|
+
}[];
|
|
53238
|
+
};
|
|
49157
53239
|
get_or_assign_floriday_order_number: {
|
|
49158
53240
|
Args: {
|
|
49159
53241
|
p_floriday_id: string;
|
|
@@ -49206,6 +53288,34 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
49206
53288
|
Args: never;
|
|
49207
53289
|
Returns: boolean;
|
|
49208
53290
|
};
|
|
53291
|
+
local_effective_price: {
|
|
53292
|
+
Args: {
|
|
53293
|
+
_customer_id: string;
|
|
53294
|
+
_on_date?: string;
|
|
53295
|
+
_product_id: string;
|
|
53296
|
+
_quantity?: number;
|
|
53297
|
+
};
|
|
53298
|
+
Returns: {
|
|
53299
|
+
currency: string;
|
|
53300
|
+
discount_type: string;
|
|
53301
|
+
discount_value: number;
|
|
53302
|
+
net_price: number;
|
|
53303
|
+
source: string;
|
|
53304
|
+
source_id: string;
|
|
53305
|
+
}[];
|
|
53306
|
+
};
|
|
53307
|
+
mark_offer_clicked: {
|
|
53308
|
+
Args: {
|
|
53309
|
+
p_code: string;
|
|
53310
|
+
};
|
|
53311
|
+
Returns: undefined;
|
|
53312
|
+
};
|
|
53313
|
+
mark_offer_ordered: {
|
|
53314
|
+
Args: {
|
|
53315
|
+
p_code: string;
|
|
53316
|
+
};
|
|
53317
|
+
Returns: undefined;
|
|
53318
|
+
};
|
|
49209
53319
|
next_order_number: {
|
|
49210
53320
|
Args: {
|
|
49211
53321
|
p_prefix: string;
|
|
@@ -49225,6 +53335,14 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
49225
53335
|
};
|
|
49226
53336
|
Returns: string;
|
|
49227
53337
|
};
|
|
53338
|
+
offer_recipient_matches: {
|
|
53339
|
+
Args: {
|
|
53340
|
+
_campaign_id: string;
|
|
53341
|
+
_customer_id: string;
|
|
53342
|
+
_recipient_id: string;
|
|
53343
|
+
};
|
|
53344
|
+
Returns: boolean;
|
|
53345
|
+
};
|
|
49228
53346
|
pickstation_get_orders_raw: {
|
|
49229
53347
|
Args: never;
|
|
49230
53348
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -49252,6 +53370,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
49252
53370
|
};
|
|
49253
53371
|
Returns: undefined;
|
|
49254
53372
|
};
|
|
53373
|
+
promote_trade_item_key: {
|
|
53374
|
+
Args: {
|
|
53375
|
+
p_new: string;
|
|
53376
|
+
p_old: string;
|
|
53377
|
+
};
|
|
53378
|
+
Returns: undefined;
|
|
53379
|
+
};
|
|
49255
53380
|
refresh_floricode_derived_code_lists: {
|
|
49256
53381
|
Args: never;
|
|
49257
53382
|
Returns: {
|