@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
|
@@ -718,6 +718,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
718
718
|
notes: string | null;
|
|
719
719
|
performed_at: string;
|
|
720
720
|
rescheduled_count: number;
|
|
721
|
+
stock_consumed_at: string | null;
|
|
721
722
|
total_carts: number;
|
|
722
723
|
updated_at: string;
|
|
723
724
|
user_id: string;
|
|
@@ -731,6 +732,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
731
732
|
notes?: string | null;
|
|
732
733
|
performed_at?: string;
|
|
733
734
|
rescheduled_count?: number;
|
|
735
|
+
stock_consumed_at?: string | null;
|
|
734
736
|
total_carts?: number;
|
|
735
737
|
updated_at?: string;
|
|
736
738
|
user_id: string;
|
|
@@ -744,6 +746,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
744
746
|
notes?: string | null;
|
|
745
747
|
performed_at?: string;
|
|
746
748
|
rescheduled_count?: number;
|
|
749
|
+
stock_consumed_at?: string | null;
|
|
747
750
|
total_carts?: number;
|
|
748
751
|
updated_at?: string;
|
|
749
752
|
user_id?: string;
|
|
@@ -3624,6 +3627,51 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
3624
3627
|
referencedColumns: ["id"];
|
|
3625
3628
|
}];
|
|
3626
3629
|
};
|
|
3630
|
+
floriday_continuous_stock_queue: {
|
|
3631
|
+
Row: {
|
|
3632
|
+
attempts: number;
|
|
3633
|
+
connection_id: string;
|
|
3634
|
+
created_at: string;
|
|
3635
|
+
gateway_attempt_id: string | null;
|
|
3636
|
+
id: string;
|
|
3637
|
+
last_error: string | null;
|
|
3638
|
+
number_of_pieces: number;
|
|
3639
|
+
sent_at: string | null;
|
|
3640
|
+
status: string;
|
|
3641
|
+
trade_item_id: string;
|
|
3642
|
+
updated_at: string;
|
|
3643
|
+
user_id: string;
|
|
3644
|
+
};
|
|
3645
|
+
Insert: {
|
|
3646
|
+
attempts?: number;
|
|
3647
|
+
connection_id: string;
|
|
3648
|
+
created_at?: string;
|
|
3649
|
+
gateway_attempt_id?: string | null;
|
|
3650
|
+
id?: string;
|
|
3651
|
+
last_error?: string | null;
|
|
3652
|
+
number_of_pieces?: number;
|
|
3653
|
+
sent_at?: string | null;
|
|
3654
|
+
status?: string;
|
|
3655
|
+
trade_item_id: string;
|
|
3656
|
+
updated_at?: string;
|
|
3657
|
+
user_id: string;
|
|
3658
|
+
};
|
|
3659
|
+
Update: {
|
|
3660
|
+
attempts?: number;
|
|
3661
|
+
connection_id?: string;
|
|
3662
|
+
created_at?: string;
|
|
3663
|
+
gateway_attempt_id?: string | null;
|
|
3664
|
+
id?: string;
|
|
3665
|
+
last_error?: string | null;
|
|
3666
|
+
number_of_pieces?: number;
|
|
3667
|
+
sent_at?: string | null;
|
|
3668
|
+
status?: string;
|
|
3669
|
+
trade_item_id?: string;
|
|
3670
|
+
updated_at?: string;
|
|
3671
|
+
user_id?: string;
|
|
3672
|
+
};
|
|
3673
|
+
Relationships: [];
|
|
3674
|
+
};
|
|
3627
3675
|
floriday_contract_trade_item_groups_cache: {
|
|
3628
3676
|
Row: {
|
|
3629
3677
|
connection_id: string;
|
|
@@ -5013,6 +5061,204 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5013
5061
|
};
|
|
5014
5062
|
Relationships: [];
|
|
5015
5063
|
};
|
|
5064
|
+
local_customer_agreements: {
|
|
5065
|
+
Row: {
|
|
5066
|
+
base_price: number | null;
|
|
5067
|
+
created_at: string;
|
|
5068
|
+
currency: string;
|
|
5069
|
+
customer_id: string;
|
|
5070
|
+
id: string;
|
|
5071
|
+
min_quantity: number;
|
|
5072
|
+
net_price: number;
|
|
5073
|
+
notes: string | null;
|
|
5074
|
+
product_category_id: string | null;
|
|
5075
|
+
product_id: string | null;
|
|
5076
|
+
updated_at: string;
|
|
5077
|
+
valid_from: string | null;
|
|
5078
|
+
valid_until: string | null;
|
|
5079
|
+
};
|
|
5080
|
+
Insert: {
|
|
5081
|
+
base_price?: number | null;
|
|
5082
|
+
created_at?: string;
|
|
5083
|
+
currency?: string;
|
|
5084
|
+
customer_id: string;
|
|
5085
|
+
id?: string;
|
|
5086
|
+
min_quantity?: number;
|
|
5087
|
+
net_price: number;
|
|
5088
|
+
notes?: string | null;
|
|
5089
|
+
product_category_id?: string | null;
|
|
5090
|
+
product_id?: string | null;
|
|
5091
|
+
updated_at?: string;
|
|
5092
|
+
valid_from?: string | null;
|
|
5093
|
+
valid_until?: string | null;
|
|
5094
|
+
};
|
|
5095
|
+
Update: {
|
|
5096
|
+
base_price?: number | null;
|
|
5097
|
+
created_at?: string;
|
|
5098
|
+
currency?: string;
|
|
5099
|
+
customer_id?: string;
|
|
5100
|
+
id?: string;
|
|
5101
|
+
min_quantity?: number;
|
|
5102
|
+
net_price?: number;
|
|
5103
|
+
notes?: string | null;
|
|
5104
|
+
product_category_id?: string | null;
|
|
5105
|
+
product_id?: string | null;
|
|
5106
|
+
updated_at?: string;
|
|
5107
|
+
valid_from?: string | null;
|
|
5108
|
+
valid_until?: string | null;
|
|
5109
|
+
};
|
|
5110
|
+
Relationships: [{
|
|
5111
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
5112
|
+
columns: ["customer_id"];
|
|
5113
|
+
isOneToOne: false;
|
|
5114
|
+
referencedRelation: "customers";
|
|
5115
|
+
referencedColumns: ["id"];
|
|
5116
|
+
}, {
|
|
5117
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
5118
|
+
columns: ["product_category_id"];
|
|
5119
|
+
isOneToOne: false;
|
|
5120
|
+
referencedRelation: "product_categories";
|
|
5121
|
+
referencedColumns: ["id"];
|
|
5122
|
+
}, {
|
|
5123
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
5124
|
+
columns: ["product_id"];
|
|
5125
|
+
isOneToOne: false;
|
|
5126
|
+
referencedRelation: "products";
|
|
5127
|
+
referencedColumns: ["id"];
|
|
5128
|
+
}];
|
|
5129
|
+
};
|
|
5130
|
+
local_customer_price_groups: {
|
|
5131
|
+
Row: {
|
|
5132
|
+
created_at: string;
|
|
5133
|
+
currency: string;
|
|
5134
|
+
customer_id: string;
|
|
5135
|
+
discount_type: string;
|
|
5136
|
+
discount_value: number;
|
|
5137
|
+
id: string;
|
|
5138
|
+
min_quantity: number;
|
|
5139
|
+
notes: string | null;
|
|
5140
|
+
product_category_id: string | null;
|
|
5141
|
+
product_id: string | null;
|
|
5142
|
+
updated_at: string;
|
|
5143
|
+
valid_from: string | null;
|
|
5144
|
+
valid_until: string | null;
|
|
5145
|
+
};
|
|
5146
|
+
Insert: {
|
|
5147
|
+
created_at?: string;
|
|
5148
|
+
currency?: string;
|
|
5149
|
+
customer_id: string;
|
|
5150
|
+
discount_type: string;
|
|
5151
|
+
discount_value: number;
|
|
5152
|
+
id?: string;
|
|
5153
|
+
min_quantity?: number;
|
|
5154
|
+
notes?: string | null;
|
|
5155
|
+
product_category_id?: string | null;
|
|
5156
|
+
product_id?: string | null;
|
|
5157
|
+
updated_at?: string;
|
|
5158
|
+
valid_from?: string | null;
|
|
5159
|
+
valid_until?: string | null;
|
|
5160
|
+
};
|
|
5161
|
+
Update: {
|
|
5162
|
+
created_at?: string;
|
|
5163
|
+
currency?: string;
|
|
5164
|
+
customer_id?: string;
|
|
5165
|
+
discount_type?: string;
|
|
5166
|
+
discount_value?: number;
|
|
5167
|
+
id?: string;
|
|
5168
|
+
min_quantity?: number;
|
|
5169
|
+
notes?: string | null;
|
|
5170
|
+
product_category_id?: string | null;
|
|
5171
|
+
product_id?: string | null;
|
|
5172
|
+
updated_at?: string;
|
|
5173
|
+
valid_from?: string | null;
|
|
5174
|
+
valid_until?: string | null;
|
|
5175
|
+
};
|
|
5176
|
+
Relationships: [{
|
|
5177
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
5178
|
+
columns: ["customer_id"];
|
|
5179
|
+
isOneToOne: false;
|
|
5180
|
+
referencedRelation: "customers";
|
|
5181
|
+
referencedColumns: ["id"];
|
|
5182
|
+
}, {
|
|
5183
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
5184
|
+
columns: ["product_category_id"];
|
|
5185
|
+
isOneToOne: false;
|
|
5186
|
+
referencedRelation: "product_categories";
|
|
5187
|
+
referencedColumns: ["id"];
|
|
5188
|
+
}, {
|
|
5189
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
5190
|
+
columns: ["product_id"];
|
|
5191
|
+
isOneToOne: false;
|
|
5192
|
+
referencedRelation: "products";
|
|
5193
|
+
referencedColumns: ["id"];
|
|
5194
|
+
}];
|
|
5195
|
+
};
|
|
5196
|
+
local_customer_sales_strategies: {
|
|
5197
|
+
Row: {
|
|
5198
|
+
created_at: string;
|
|
5199
|
+
currency: string;
|
|
5200
|
+
customer_id: string;
|
|
5201
|
+
discount_type: string;
|
|
5202
|
+
discount_value: number;
|
|
5203
|
+
id: string;
|
|
5204
|
+
min_quantity: number;
|
|
5205
|
+
notes: string | null;
|
|
5206
|
+
product_category_id: string | null;
|
|
5207
|
+
product_id: string | null;
|
|
5208
|
+
updated_at: string;
|
|
5209
|
+
valid_from: string | null;
|
|
5210
|
+
valid_until: string | null;
|
|
5211
|
+
};
|
|
5212
|
+
Insert: {
|
|
5213
|
+
created_at?: string;
|
|
5214
|
+
currency?: string;
|
|
5215
|
+
customer_id: string;
|
|
5216
|
+
discount_type: string;
|
|
5217
|
+
discount_value: number;
|
|
5218
|
+
id?: string;
|
|
5219
|
+
min_quantity?: number;
|
|
5220
|
+
notes?: string | null;
|
|
5221
|
+
product_category_id?: string | null;
|
|
5222
|
+
product_id?: string | null;
|
|
5223
|
+
updated_at?: string;
|
|
5224
|
+
valid_from?: string | null;
|
|
5225
|
+
valid_until?: string | null;
|
|
5226
|
+
};
|
|
5227
|
+
Update: {
|
|
5228
|
+
created_at?: string;
|
|
5229
|
+
currency?: string;
|
|
5230
|
+
customer_id?: string;
|
|
5231
|
+
discount_type?: string;
|
|
5232
|
+
discount_value?: number;
|
|
5233
|
+
id?: string;
|
|
5234
|
+
min_quantity?: number;
|
|
5235
|
+
notes?: string | null;
|
|
5236
|
+
product_category_id?: string | null;
|
|
5237
|
+
product_id?: string | null;
|
|
5238
|
+
updated_at?: string;
|
|
5239
|
+
valid_from?: string | null;
|
|
5240
|
+
valid_until?: string | null;
|
|
5241
|
+
};
|
|
5242
|
+
Relationships: [{
|
|
5243
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
5244
|
+
columns: ["customer_id"];
|
|
5245
|
+
isOneToOne: false;
|
|
5246
|
+
referencedRelation: "customers";
|
|
5247
|
+
referencedColumns: ["id"];
|
|
5248
|
+
}, {
|
|
5249
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
5250
|
+
columns: ["product_category_id"];
|
|
5251
|
+
isOneToOne: false;
|
|
5252
|
+
referencedRelation: "product_categories";
|
|
5253
|
+
referencedColumns: ["id"];
|
|
5254
|
+
}, {
|
|
5255
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
5256
|
+
columns: ["product_id"];
|
|
5257
|
+
isOneToOne: false;
|
|
5258
|
+
referencedRelation: "products";
|
|
5259
|
+
referencedColumns: ["id"];
|
|
5260
|
+
}];
|
|
5261
|
+
};
|
|
5016
5262
|
locations: {
|
|
5017
5263
|
Row: {
|
|
5018
5264
|
created_at: string;
|
|
@@ -5520,99 +5766,366 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5520
5766
|
referencedColumns: ["id"];
|
|
5521
5767
|
}];
|
|
5522
5768
|
};
|
|
5523
|
-
|
|
5769
|
+
nmbrs_component_mapping: {
|
|
5524
5770
|
Row: {
|
|
5525
5771
|
created_at: string;
|
|
5526
5772
|
id: string;
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
title: string;
|
|
5773
|
+
source_kind: string;
|
|
5774
|
+
source_value: string | null;
|
|
5530
5775
|
updated_at: string;
|
|
5531
|
-
|
|
5776
|
+
wage_code: string;
|
|
5532
5777
|
};
|
|
5533
5778
|
Insert: {
|
|
5534
5779
|
created_at?: string;
|
|
5535
5780
|
id?: string;
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
title: string;
|
|
5781
|
+
source_kind: string;
|
|
5782
|
+
source_value?: string | null;
|
|
5539
5783
|
updated_at?: string;
|
|
5540
|
-
|
|
5784
|
+
wage_code: string;
|
|
5541
5785
|
};
|
|
5542
5786
|
Update: {
|
|
5543
5787
|
created_at?: string;
|
|
5544
5788
|
id?: string;
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
title?: string;
|
|
5789
|
+
source_kind?: string;
|
|
5790
|
+
source_value?: string | null;
|
|
5548
5791
|
updated_at?: string;
|
|
5549
|
-
|
|
5792
|
+
wage_code?: string;
|
|
5550
5793
|
};
|
|
5551
|
-
Relationships: [
|
|
5794
|
+
Relationships: [{
|
|
5795
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
5796
|
+
columns: ["wage_code"];
|
|
5797
|
+
isOneToOne: false;
|
|
5798
|
+
referencedRelation: "nmbrs_wage_components";
|
|
5799
|
+
referencedColumns: ["code"];
|
|
5800
|
+
}];
|
|
5552
5801
|
};
|
|
5553
|
-
|
|
5802
|
+
nmbrs_employee_mapping: {
|
|
5554
5803
|
Row: {
|
|
5555
|
-
|
|
5804
|
+
active_from: string | null;
|
|
5805
|
+
active_to: string | null;
|
|
5806
|
+
contract_hours_per_week: number | null;
|
|
5556
5807
|
created_at: string;
|
|
5808
|
+
hourly_wage: number | null;
|
|
5557
5809
|
id: string;
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5810
|
+
monteur_id: string;
|
|
5811
|
+
nmbrs_company_code: string | null;
|
|
5812
|
+
nmbrs_employee_number: string;
|
|
5813
|
+
updated_at: string;
|
|
5561
5814
|
};
|
|
5562
5815
|
Insert: {
|
|
5563
|
-
|
|
5816
|
+
active_from?: string | null;
|
|
5817
|
+
active_to?: string | null;
|
|
5818
|
+
contract_hours_per_week?: number | null;
|
|
5564
5819
|
created_at?: string;
|
|
5820
|
+
hourly_wage?: number | null;
|
|
5565
5821
|
id?: string;
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5822
|
+
monteur_id: string;
|
|
5823
|
+
nmbrs_company_code?: string | null;
|
|
5824
|
+
nmbrs_employee_number: string;
|
|
5825
|
+
updated_at?: string;
|
|
5569
5826
|
};
|
|
5570
5827
|
Update: {
|
|
5571
|
-
|
|
5828
|
+
active_from?: string | null;
|
|
5829
|
+
active_to?: string | null;
|
|
5830
|
+
contract_hours_per_week?: number | null;
|
|
5572
5831
|
created_at?: string;
|
|
5832
|
+
hourly_wage?: number | null;
|
|
5573
5833
|
id?: string;
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5834
|
+
monteur_id?: string;
|
|
5835
|
+
nmbrs_company_code?: string | null;
|
|
5836
|
+
nmbrs_employee_number?: string;
|
|
5837
|
+
updated_at?: string;
|
|
5577
5838
|
};
|
|
5578
5839
|
Relationships: [{
|
|
5579
|
-
foreignKeyName: "
|
|
5580
|
-
columns: ["
|
|
5581
|
-
isOneToOne:
|
|
5582
|
-
referencedRelation: "
|
|
5840
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
5841
|
+
columns: ["monteur_id"];
|
|
5842
|
+
isOneToOne: true;
|
|
5843
|
+
referencedRelation: "monteurs";
|
|
5583
5844
|
referencedColumns: ["id"];
|
|
5584
5845
|
}];
|
|
5585
5846
|
};
|
|
5586
|
-
|
|
5847
|
+
nmbrs_export_lines: {
|
|
5587
5848
|
Row: {
|
|
5588
|
-
|
|
5589
|
-
barcode: string | null;
|
|
5590
|
-
belading: string | null;
|
|
5591
|
-
campaign_id: string;
|
|
5592
|
-
crate_price: number | null;
|
|
5849
|
+
amount: number;
|
|
5593
5850
|
created_at: string;
|
|
5594
|
-
|
|
5595
|
-
|
|
5851
|
+
entry_date: string;
|
|
5852
|
+
hours: number;
|
|
5596
5853
|
id: string;
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5854
|
+
monteur_id: string;
|
|
5855
|
+
nmbrs_employee_number: string | null;
|
|
5856
|
+
notes: string | null;
|
|
5857
|
+
run_id: string;
|
|
5858
|
+
source_kind: string | null;
|
|
5859
|
+
source_ref_id: string | null;
|
|
5860
|
+
updated_at: string;
|
|
5861
|
+
wage_code: string;
|
|
5605
5862
|
};
|
|
5606
5863
|
Insert: {
|
|
5607
|
-
|
|
5608
|
-
barcode?: string | null;
|
|
5609
|
-
belading?: string | null;
|
|
5610
|
-
campaign_id: string;
|
|
5611
|
-
crate_price?: number | null;
|
|
5864
|
+
amount?: number;
|
|
5612
5865
|
created_at?: string;
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
id?: string;
|
|
5866
|
+
entry_date: string;
|
|
5867
|
+
hours?: number;
|
|
5868
|
+
id?: string;
|
|
5869
|
+
monteur_id: string;
|
|
5870
|
+
nmbrs_employee_number?: string | null;
|
|
5871
|
+
notes?: string | null;
|
|
5872
|
+
run_id: string;
|
|
5873
|
+
source_kind?: string | null;
|
|
5874
|
+
source_ref_id?: string | null;
|
|
5875
|
+
updated_at?: string;
|
|
5876
|
+
wage_code: string;
|
|
5877
|
+
};
|
|
5878
|
+
Update: {
|
|
5879
|
+
amount?: number;
|
|
5880
|
+
created_at?: string;
|
|
5881
|
+
entry_date?: string;
|
|
5882
|
+
hours?: number;
|
|
5883
|
+
id?: string;
|
|
5884
|
+
monteur_id?: string;
|
|
5885
|
+
nmbrs_employee_number?: string | null;
|
|
5886
|
+
notes?: string | null;
|
|
5887
|
+
run_id?: string;
|
|
5888
|
+
source_kind?: string | null;
|
|
5889
|
+
source_ref_id?: string | null;
|
|
5890
|
+
updated_at?: string;
|
|
5891
|
+
wage_code?: string;
|
|
5892
|
+
};
|
|
5893
|
+
Relationships: [{
|
|
5894
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
5895
|
+
columns: ["monteur_id"];
|
|
5896
|
+
isOneToOne: false;
|
|
5897
|
+
referencedRelation: "monteurs";
|
|
5898
|
+
referencedColumns: ["id"];
|
|
5899
|
+
}, {
|
|
5900
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
5901
|
+
columns: ["run_id"];
|
|
5902
|
+
isOneToOne: false;
|
|
5903
|
+
referencedRelation: "nmbrs_export_runs";
|
|
5904
|
+
referencedColumns: ["id"];
|
|
5905
|
+
}, {
|
|
5906
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
5907
|
+
columns: ["wage_code"];
|
|
5908
|
+
isOneToOne: false;
|
|
5909
|
+
referencedRelation: "nmbrs_wage_components";
|
|
5910
|
+
referencedColumns: ["code"];
|
|
5911
|
+
}];
|
|
5912
|
+
};
|
|
5913
|
+
nmbrs_export_runs: {
|
|
5914
|
+
Row: {
|
|
5915
|
+
created_at: string;
|
|
5916
|
+
file_name: string | null;
|
|
5917
|
+
generated_at: string;
|
|
5918
|
+
generated_by: string | null;
|
|
5919
|
+
id: string;
|
|
5920
|
+
notes: string | null;
|
|
5921
|
+
period_end: string;
|
|
5922
|
+
period_label: string;
|
|
5923
|
+
period_start: string;
|
|
5924
|
+
status: string;
|
|
5925
|
+
total_hours: number;
|
|
5926
|
+
total_lines: number;
|
|
5927
|
+
updated_at: string;
|
|
5928
|
+
};
|
|
5929
|
+
Insert: {
|
|
5930
|
+
created_at?: string;
|
|
5931
|
+
file_name?: string | null;
|
|
5932
|
+
generated_at?: string;
|
|
5933
|
+
generated_by?: string | null;
|
|
5934
|
+
id?: string;
|
|
5935
|
+
notes?: string | null;
|
|
5936
|
+
period_end: string;
|
|
5937
|
+
period_label: string;
|
|
5938
|
+
period_start: string;
|
|
5939
|
+
status?: string;
|
|
5940
|
+
total_hours?: number;
|
|
5941
|
+
total_lines?: number;
|
|
5942
|
+
updated_at?: string;
|
|
5943
|
+
};
|
|
5944
|
+
Update: {
|
|
5945
|
+
created_at?: string;
|
|
5946
|
+
file_name?: string | null;
|
|
5947
|
+
generated_at?: string;
|
|
5948
|
+
generated_by?: string | null;
|
|
5949
|
+
id?: string;
|
|
5950
|
+
notes?: string | null;
|
|
5951
|
+
period_end?: string;
|
|
5952
|
+
period_label?: string;
|
|
5953
|
+
period_start?: string;
|
|
5954
|
+
status?: string;
|
|
5955
|
+
total_hours?: number;
|
|
5956
|
+
total_lines?: number;
|
|
5957
|
+
updated_at?: string;
|
|
5958
|
+
};
|
|
5959
|
+
Relationships: [];
|
|
5960
|
+
};
|
|
5961
|
+
nmbrs_settings: {
|
|
5962
|
+
Row: {
|
|
5963
|
+
created_at: string;
|
|
5964
|
+
default_company_code: string | null;
|
|
5965
|
+
id: boolean;
|
|
5966
|
+
include_travel: boolean;
|
|
5967
|
+
overtime_threshold_daily: number;
|
|
5968
|
+
overtime_threshold_weekly: number;
|
|
5969
|
+
period_type: string;
|
|
5970
|
+
updated_at: string;
|
|
5971
|
+
updated_by: string | null;
|
|
5972
|
+
week_start_day: number;
|
|
5973
|
+
};
|
|
5974
|
+
Insert: {
|
|
5975
|
+
created_at?: string;
|
|
5976
|
+
default_company_code?: string | null;
|
|
5977
|
+
id?: boolean;
|
|
5978
|
+
include_travel?: boolean;
|
|
5979
|
+
overtime_threshold_daily?: number;
|
|
5980
|
+
overtime_threshold_weekly?: number;
|
|
5981
|
+
period_type?: string;
|
|
5982
|
+
updated_at?: string;
|
|
5983
|
+
updated_by?: string | null;
|
|
5984
|
+
week_start_day?: number;
|
|
5985
|
+
};
|
|
5986
|
+
Update: {
|
|
5987
|
+
created_at?: string;
|
|
5988
|
+
default_company_code?: string | null;
|
|
5989
|
+
id?: boolean;
|
|
5990
|
+
include_travel?: boolean;
|
|
5991
|
+
overtime_threshold_daily?: number;
|
|
5992
|
+
overtime_threshold_weekly?: number;
|
|
5993
|
+
period_type?: string;
|
|
5994
|
+
updated_at?: string;
|
|
5995
|
+
updated_by?: string | null;
|
|
5996
|
+
week_start_day?: number;
|
|
5997
|
+
};
|
|
5998
|
+
Relationships: [];
|
|
5999
|
+
};
|
|
6000
|
+
nmbrs_wage_components: {
|
|
6001
|
+
Row: {
|
|
6002
|
+
category: string;
|
|
6003
|
+
code: string;
|
|
6004
|
+
created_at: string;
|
|
6005
|
+
id: string;
|
|
6006
|
+
is_active: boolean;
|
|
6007
|
+
label: string;
|
|
6008
|
+
sort_order: number;
|
|
6009
|
+
unit: string;
|
|
6010
|
+
updated_at: string;
|
|
6011
|
+
};
|
|
6012
|
+
Insert: {
|
|
6013
|
+
category: string;
|
|
6014
|
+
code: string;
|
|
6015
|
+
created_at?: string;
|
|
6016
|
+
id?: string;
|
|
6017
|
+
is_active?: boolean;
|
|
6018
|
+
label: string;
|
|
6019
|
+
sort_order?: number;
|
|
6020
|
+
unit: string;
|
|
6021
|
+
updated_at?: string;
|
|
6022
|
+
};
|
|
6023
|
+
Update: {
|
|
6024
|
+
category?: string;
|
|
6025
|
+
code?: string;
|
|
6026
|
+
created_at?: string;
|
|
6027
|
+
id?: string;
|
|
6028
|
+
is_active?: boolean;
|
|
6029
|
+
label?: string;
|
|
6030
|
+
sort_order?: number;
|
|
6031
|
+
unit?: string;
|
|
6032
|
+
updated_at?: string;
|
|
6033
|
+
};
|
|
6034
|
+
Relationships: [];
|
|
6035
|
+
};
|
|
6036
|
+
notifications: {
|
|
6037
|
+
Row: {
|
|
6038
|
+
created_at: string;
|
|
6039
|
+
id: string;
|
|
6040
|
+
message: string | null;
|
|
6041
|
+
read: boolean;
|
|
6042
|
+
title: string;
|
|
6043
|
+
updated_at: string;
|
|
6044
|
+
user_id: string;
|
|
6045
|
+
};
|
|
6046
|
+
Insert: {
|
|
6047
|
+
created_at?: string;
|
|
6048
|
+
id?: string;
|
|
6049
|
+
message?: string | null;
|
|
6050
|
+
read?: boolean;
|
|
6051
|
+
title: string;
|
|
6052
|
+
updated_at?: string;
|
|
6053
|
+
user_id: string;
|
|
6054
|
+
};
|
|
6055
|
+
Update: {
|
|
6056
|
+
created_at?: string;
|
|
6057
|
+
id?: string;
|
|
6058
|
+
message?: string | null;
|
|
6059
|
+
read?: boolean;
|
|
6060
|
+
title?: string;
|
|
6061
|
+
updated_at?: string;
|
|
6062
|
+
user_id?: string;
|
|
6063
|
+
};
|
|
6064
|
+
Relationships: [];
|
|
6065
|
+
};
|
|
6066
|
+
offer_campaign_product_tiers: {
|
|
6067
|
+
Row: {
|
|
6068
|
+
campaign_product_id: string;
|
|
6069
|
+
created_at: string;
|
|
6070
|
+
id: string;
|
|
6071
|
+
min_crates: number;
|
|
6072
|
+
price_per_crate: number;
|
|
6073
|
+
sort_order: number;
|
|
6074
|
+
};
|
|
6075
|
+
Insert: {
|
|
6076
|
+
campaign_product_id: string;
|
|
6077
|
+
created_at?: string;
|
|
6078
|
+
id?: string;
|
|
6079
|
+
min_crates?: number;
|
|
6080
|
+
price_per_crate?: number;
|
|
6081
|
+
sort_order?: number;
|
|
6082
|
+
};
|
|
6083
|
+
Update: {
|
|
6084
|
+
campaign_product_id?: string;
|
|
6085
|
+
created_at?: string;
|
|
6086
|
+
id?: string;
|
|
6087
|
+
min_crates?: number;
|
|
6088
|
+
price_per_crate?: number;
|
|
6089
|
+
sort_order?: number;
|
|
6090
|
+
};
|
|
6091
|
+
Relationships: [{
|
|
6092
|
+
foreignKeyName: "offer_campaign_product_tiers_campaign_product_id_fkey";
|
|
6093
|
+
columns: ["campaign_product_id"];
|
|
6094
|
+
isOneToOne: false;
|
|
6095
|
+
referencedRelation: "offer_campaign_products";
|
|
6096
|
+
referencedColumns: ["id"];
|
|
6097
|
+
}];
|
|
6098
|
+
};
|
|
6099
|
+
offer_campaign_products: {
|
|
6100
|
+
Row: {
|
|
6101
|
+
available_stock: number;
|
|
6102
|
+
barcode: string | null;
|
|
6103
|
+
belading: string | null;
|
|
6104
|
+
campaign_id: string;
|
|
6105
|
+
crate_price: number | null;
|
|
6106
|
+
created_at: string;
|
|
6107
|
+
description: string | null;
|
|
6108
|
+
discount_price: number;
|
|
6109
|
+
id: string;
|
|
6110
|
+
image_url: string | null;
|
|
6111
|
+
normal_price: number;
|
|
6112
|
+
plants_per_crate: number | null;
|
|
6113
|
+
product_id: string | null;
|
|
6114
|
+
product_name: string;
|
|
6115
|
+
sort_order: number;
|
|
6116
|
+
sticker_available: boolean;
|
|
6117
|
+
sticker_cost: number | null;
|
|
6118
|
+
};
|
|
6119
|
+
Insert: {
|
|
6120
|
+
available_stock?: number;
|
|
6121
|
+
barcode?: string | null;
|
|
6122
|
+
belading?: string | null;
|
|
6123
|
+
campaign_id: string;
|
|
6124
|
+
crate_price?: number | null;
|
|
6125
|
+
created_at?: string;
|
|
6126
|
+
description?: string | null;
|
|
6127
|
+
discount_price?: number;
|
|
6128
|
+
id?: string;
|
|
5616
6129
|
image_url?: string | null;
|
|
5617
6130
|
normal_price?: number;
|
|
5618
6131
|
plants_per_crate?: number | null;
|
|
@@ -6502,6 +7015,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6502
7015
|
purchase_price: number | null;
|
|
6503
7016
|
quantity: number;
|
|
6504
7017
|
sale_price: number | null;
|
|
7018
|
+
trade_item_key: string | null;
|
|
6505
7019
|
unit: string;
|
|
6506
7020
|
updated_at: string;
|
|
6507
7021
|
weight: string | null;
|
|
@@ -6524,6 +7038,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6524
7038
|
purchase_price?: number | null;
|
|
6525
7039
|
quantity?: number;
|
|
6526
7040
|
sale_price?: number | null;
|
|
7041
|
+
trade_item_key?: string | null;
|
|
6527
7042
|
unit?: string;
|
|
6528
7043
|
updated_at?: string;
|
|
6529
7044
|
weight?: string | null;
|
|
@@ -6546,6 +7061,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6546
7061
|
purchase_price?: number | null;
|
|
6547
7062
|
quantity?: number;
|
|
6548
7063
|
sale_price?: number | null;
|
|
7064
|
+
trade_item_key?: string | null;
|
|
6549
7065
|
unit?: string;
|
|
6550
7066
|
updated_at?: string;
|
|
6551
7067
|
weight?: string | null;
|
|
@@ -7365,6 +7881,102 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7365
7881
|
};
|
|
7366
7882
|
Relationships: [];
|
|
7367
7883
|
};
|
|
7884
|
+
stock_import_runs: {
|
|
7885
|
+
Row: {
|
|
7886
|
+
connection_id: string | null;
|
|
7887
|
+
created_at: string;
|
|
7888
|
+
created_rows: number;
|
|
7889
|
+
errors: import("../integrations/supabase/types").Json;
|
|
7890
|
+
filename: string | null;
|
|
7891
|
+
id: string;
|
|
7892
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
7893
|
+
skipped_rows: number;
|
|
7894
|
+
total_rows: number;
|
|
7895
|
+
updated_rows: number;
|
|
7896
|
+
user_id: string;
|
|
7897
|
+
};
|
|
7898
|
+
Insert: {
|
|
7899
|
+
connection_id?: string | null;
|
|
7900
|
+
created_at?: string;
|
|
7901
|
+
created_rows?: number;
|
|
7902
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
7903
|
+
filename?: string | null;
|
|
7904
|
+
id?: string;
|
|
7905
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
7906
|
+
skipped_rows?: number;
|
|
7907
|
+
total_rows?: number;
|
|
7908
|
+
updated_rows?: number;
|
|
7909
|
+
user_id: string;
|
|
7910
|
+
};
|
|
7911
|
+
Update: {
|
|
7912
|
+
connection_id?: string | null;
|
|
7913
|
+
created_at?: string;
|
|
7914
|
+
created_rows?: number;
|
|
7915
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
7916
|
+
filename?: string | null;
|
|
7917
|
+
id?: string;
|
|
7918
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
7919
|
+
skipped_rows?: number;
|
|
7920
|
+
total_rows?: number;
|
|
7921
|
+
updated_rows?: number;
|
|
7922
|
+
user_id?: string;
|
|
7923
|
+
};
|
|
7924
|
+
Relationships: [];
|
|
7925
|
+
};
|
|
7926
|
+
stock_mutation_log: {
|
|
7927
|
+
Row: {
|
|
7928
|
+
connection_id: string | null;
|
|
7929
|
+
created_at: string;
|
|
7930
|
+
created_by: string | null;
|
|
7931
|
+
id: string;
|
|
7932
|
+
mutation_type: string;
|
|
7933
|
+
order_id: string | null;
|
|
7934
|
+
order_item_id: string | null;
|
|
7935
|
+
order_source: string | null;
|
|
7936
|
+
physical_after: number | null;
|
|
7937
|
+
physical_before: number | null;
|
|
7938
|
+
qty_delta: number;
|
|
7939
|
+
reason: string | null;
|
|
7940
|
+
reserved_after: number | null;
|
|
7941
|
+
reserved_before: number | null;
|
|
7942
|
+
trade_item_key: string;
|
|
7943
|
+
};
|
|
7944
|
+
Insert: {
|
|
7945
|
+
connection_id?: string | null;
|
|
7946
|
+
created_at?: string;
|
|
7947
|
+
created_by?: string | null;
|
|
7948
|
+
id?: string;
|
|
7949
|
+
mutation_type: string;
|
|
7950
|
+
order_id?: string | null;
|
|
7951
|
+
order_item_id?: string | null;
|
|
7952
|
+
order_source?: string | null;
|
|
7953
|
+
physical_after?: number | null;
|
|
7954
|
+
physical_before?: number | null;
|
|
7955
|
+
qty_delta: number;
|
|
7956
|
+
reason?: string | null;
|
|
7957
|
+
reserved_after?: number | null;
|
|
7958
|
+
reserved_before?: number | null;
|
|
7959
|
+
trade_item_key: string;
|
|
7960
|
+
};
|
|
7961
|
+
Update: {
|
|
7962
|
+
connection_id?: string | null;
|
|
7963
|
+
created_at?: string;
|
|
7964
|
+
created_by?: string | null;
|
|
7965
|
+
id?: string;
|
|
7966
|
+
mutation_type?: string;
|
|
7967
|
+
order_id?: string | null;
|
|
7968
|
+
order_item_id?: string | null;
|
|
7969
|
+
order_source?: string | null;
|
|
7970
|
+
physical_after?: number | null;
|
|
7971
|
+
physical_before?: number | null;
|
|
7972
|
+
qty_delta?: number;
|
|
7973
|
+
reason?: string | null;
|
|
7974
|
+
reserved_after?: number | null;
|
|
7975
|
+
reserved_before?: number | null;
|
|
7976
|
+
trade_item_key?: string;
|
|
7977
|
+
};
|
|
7978
|
+
Relationships: [];
|
|
7979
|
+
};
|
|
7368
7980
|
supplier_products: {
|
|
7369
7981
|
Row: {
|
|
7370
7982
|
article_number: string | null;
|
|
@@ -8942,9 +9554,47 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8942
9554
|
};
|
|
8943
9555
|
Relationships: [];
|
|
8944
9556
|
};
|
|
8945
|
-
|
|
9557
|
+
floriday_customer_discounts: {
|
|
8946
9558
|
Row: {
|
|
8947
|
-
|
|
9559
|
+
base_price: number | null;
|
|
9560
|
+
buyer_organization_id: string | null;
|
|
9561
|
+
currency: string | null;
|
|
9562
|
+
discount_type: string | null;
|
|
9563
|
+
discount_value: number | null;
|
|
9564
|
+
min_quantity: number | null;
|
|
9565
|
+
net_price: number | null;
|
|
9566
|
+
product_group_id: string | null;
|
|
9567
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
9568
|
+
source: string | null;
|
|
9569
|
+
source_id: string | null;
|
|
9570
|
+
trade_item_id: string | null;
|
|
9571
|
+
valid_from: string | null;
|
|
9572
|
+
valid_until: string | null;
|
|
9573
|
+
};
|
|
9574
|
+
Relationships: [];
|
|
9575
|
+
};
|
|
9576
|
+
local_customer_discounts: {
|
|
9577
|
+
Row: {
|
|
9578
|
+
base_price: number | null;
|
|
9579
|
+
currency: string | null;
|
|
9580
|
+
customer_id: string | null;
|
|
9581
|
+
discount_type: string | null;
|
|
9582
|
+
discount_value: number | null;
|
|
9583
|
+
min_quantity: number | null;
|
|
9584
|
+
net_price: number | null;
|
|
9585
|
+
product_category_id: string | null;
|
|
9586
|
+
product_id: string | null;
|
|
9587
|
+
product_name: string | null;
|
|
9588
|
+
source: string | null;
|
|
9589
|
+
source_id: string | null;
|
|
9590
|
+
valid_from: string | null;
|
|
9591
|
+
valid_until: string | null;
|
|
9592
|
+
};
|
|
9593
|
+
Relationships: [];
|
|
9594
|
+
};
|
|
9595
|
+
manufacture_product_possible_stock_view: {
|
|
9596
|
+
Row: {
|
|
9597
|
+
component_count: number | null;
|
|
8948
9598
|
manufacture_product_id: string | null;
|
|
8949
9599
|
possible_stock: number | null;
|
|
8950
9600
|
};
|
|
@@ -9226,6 +9876,54 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
9226
9876
|
};
|
|
9227
9877
|
Returns: number;
|
|
9228
9878
|
};
|
|
9879
|
+
afh_city_code: {
|
|
9880
|
+
Args: {
|
|
9881
|
+
_city: string;
|
|
9882
|
+
_country: string;
|
|
9883
|
+
};
|
|
9884
|
+
Returns: string;
|
|
9885
|
+
};
|
|
9886
|
+
afh_normalize_country: {
|
|
9887
|
+
Args: {
|
|
9888
|
+
_raw: string;
|
|
9889
|
+
};
|
|
9890
|
+
Returns: string;
|
|
9891
|
+
};
|
|
9892
|
+
afh_normalize_nl_province: {
|
|
9893
|
+
Args: {
|
|
9894
|
+
_raw: string;
|
|
9895
|
+
};
|
|
9896
|
+
Returns: string;
|
|
9897
|
+
};
|
|
9898
|
+
afh_subtract_workdays: {
|
|
9899
|
+
Args: {
|
|
9900
|
+
_date: string;
|
|
9901
|
+
_days: number;
|
|
9902
|
+
};
|
|
9903
|
+
Returns: string;
|
|
9904
|
+
};
|
|
9905
|
+
apply_stock_consumption: {
|
|
9906
|
+
Args: {
|
|
9907
|
+
p_order_id: string;
|
|
9908
|
+
p_order_item_id: string;
|
|
9909
|
+
p_qty: number;
|
|
9910
|
+
p_reason: string;
|
|
9911
|
+
p_source: string;
|
|
9912
|
+
p_trade_item_key: string;
|
|
9913
|
+
};
|
|
9914
|
+
Returns: undefined;
|
|
9915
|
+
};
|
|
9916
|
+
apply_stock_reservation: {
|
|
9917
|
+
Args: {
|
|
9918
|
+
p_order_id: string;
|
|
9919
|
+
p_order_item_id: string;
|
|
9920
|
+
p_qty: number;
|
|
9921
|
+
p_reason: string;
|
|
9922
|
+
p_source: string;
|
|
9923
|
+
p_trade_item_key: string;
|
|
9924
|
+
};
|
|
9925
|
+
Returns: undefined;
|
|
9926
|
+
};
|
|
9229
9927
|
assign_cart_numbers: {
|
|
9230
9928
|
Args: {
|
|
9231
9929
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -9249,12 +9947,40 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
9249
9947
|
order_number: string;
|
|
9250
9948
|
}[];
|
|
9251
9949
|
};
|
|
9950
|
+
backfill_open_order_reservations: {
|
|
9951
|
+
Args: never;
|
|
9952
|
+
Returns: {
|
|
9953
|
+
processed_items: number;
|
|
9954
|
+
}[];
|
|
9955
|
+
};
|
|
9252
9956
|
call_exact_route: {
|
|
9253
9957
|
Args: {
|
|
9254
9958
|
path: string;
|
|
9255
9959
|
};
|
|
9256
9960
|
Returns: number;
|
|
9257
9961
|
};
|
|
9962
|
+
check_offer_product_available_stock: {
|
|
9963
|
+
Args: {
|
|
9964
|
+
p_campaign_product_id: string;
|
|
9965
|
+
p_code: string;
|
|
9966
|
+
p_needed_qty?: number;
|
|
9967
|
+
p_product_name?: string;
|
|
9968
|
+
};
|
|
9969
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9970
|
+
};
|
|
9971
|
+
check_trade_item_available_stock: {
|
|
9972
|
+
Args: {
|
|
9973
|
+
p_connection_id?: string;
|
|
9974
|
+
p_context?: string;
|
|
9975
|
+
p_needed_qty?: number;
|
|
9976
|
+
p_order_id?: string;
|
|
9977
|
+
p_order_item_id?: string;
|
|
9978
|
+
p_owner_id?: string;
|
|
9979
|
+
p_product_name?: string;
|
|
9980
|
+
p_trade_item_key: string;
|
|
9981
|
+
};
|
|
9982
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9983
|
+
};
|
|
9258
9984
|
cleanup_old_bookings: {
|
|
9259
9985
|
Args: never;
|
|
9260
9986
|
Returns: number;
|
|
@@ -9298,6 +10024,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
9298
10024
|
table_name: string;
|
|
9299
10025
|
}[];
|
|
9300
10026
|
};
|
|
10027
|
+
dispatch_carrier_signups_sql: {
|
|
10028
|
+
Args: {
|
|
10029
|
+
_catchup?: string;
|
|
10030
|
+
};
|
|
10031
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10032
|
+
};
|
|
9301
10033
|
email_auth_decrypt: {
|
|
9302
10034
|
Args: {
|
|
9303
10035
|
cipher: string;
|
|
@@ -9333,6 +10065,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
9333
10065
|
status: string;
|
|
9334
10066
|
}[];
|
|
9335
10067
|
};
|
|
10068
|
+
ensure_trade_item_stock_row: {
|
|
10069
|
+
Args: {
|
|
10070
|
+
p_key: string;
|
|
10071
|
+
};
|
|
10072
|
+
Returns: undefined;
|
|
10073
|
+
};
|
|
9336
10074
|
ensure_user_tenant: {
|
|
9337
10075
|
Args: never;
|
|
9338
10076
|
Returns: string;
|
|
@@ -9370,6 +10108,31 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
9370
10108
|
};
|
|
9371
10109
|
Returns: boolean;
|
|
9372
10110
|
};
|
|
10111
|
+
find_trade_item_key: {
|
|
10112
|
+
Args: {
|
|
10113
|
+
p_barcode: string;
|
|
10114
|
+
p_name: string;
|
|
10115
|
+
p_product_id: string;
|
|
10116
|
+
};
|
|
10117
|
+
Returns: string;
|
|
10118
|
+
};
|
|
10119
|
+
floriday_effective_price: {
|
|
10120
|
+
Args: {
|
|
10121
|
+
_buyer_id: string;
|
|
10122
|
+
_on_date?: string;
|
|
10123
|
+
_quantity?: number;
|
|
10124
|
+
_trade_item_id: string;
|
|
10125
|
+
};
|
|
10126
|
+
Returns: {
|
|
10127
|
+
base_price: number;
|
|
10128
|
+
currency: string;
|
|
10129
|
+
discount_type: string;
|
|
10130
|
+
discount_value: number;
|
|
10131
|
+
net_price: number;
|
|
10132
|
+
source: string;
|
|
10133
|
+
source_id: string;
|
|
10134
|
+
}[];
|
|
10135
|
+
};
|
|
9373
10136
|
format_cart_number: {
|
|
9374
10137
|
Args: {
|
|
9375
10138
|
p_pick_date: string;
|
|
@@ -9390,6 +10153,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
9390
10153
|
preferred_warehouse_name: string;
|
|
9391
10154
|
}[];
|
|
9392
10155
|
};
|
|
10156
|
+
get_active_floriday_context: {
|
|
10157
|
+
Args: never;
|
|
10158
|
+
Returns: {
|
|
10159
|
+
connection_id: string;
|
|
10160
|
+
user_id: string;
|
|
10161
|
+
}[];
|
|
10162
|
+
};
|
|
9393
10163
|
get_active_twinfield_public: {
|
|
9394
10164
|
Args: never;
|
|
9395
10165
|
Returns: {
|
|
@@ -9492,6 +10262,18 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
9492
10262
|
};
|
|
9493
10263
|
Returns: import("../integrations/supabase/types").Json;
|
|
9494
10264
|
};
|
|
10265
|
+
get_offer_recipient_by_code: {
|
|
10266
|
+
Args: {
|
|
10267
|
+
p_code: string;
|
|
10268
|
+
};
|
|
10269
|
+
Returns: {
|
|
10270
|
+
campaign_id: string;
|
|
10271
|
+
clicked_at: string;
|
|
10272
|
+
customer_id: string;
|
|
10273
|
+
id: string;
|
|
10274
|
+
ordered_at: string;
|
|
10275
|
+
}[];
|
|
10276
|
+
};
|
|
9495
10277
|
get_or_assign_floriday_order_number: {
|
|
9496
10278
|
Args: {
|
|
9497
10279
|
p_floriday_id: string;
|
|
@@ -9544,6 +10326,34 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
9544
10326
|
Args: never;
|
|
9545
10327
|
Returns: boolean;
|
|
9546
10328
|
};
|
|
10329
|
+
local_effective_price: {
|
|
10330
|
+
Args: {
|
|
10331
|
+
_customer_id: string;
|
|
10332
|
+
_on_date?: string;
|
|
10333
|
+
_product_id: string;
|
|
10334
|
+
_quantity?: number;
|
|
10335
|
+
};
|
|
10336
|
+
Returns: {
|
|
10337
|
+
currency: string;
|
|
10338
|
+
discount_type: string;
|
|
10339
|
+
discount_value: number;
|
|
10340
|
+
net_price: number;
|
|
10341
|
+
source: string;
|
|
10342
|
+
source_id: string;
|
|
10343
|
+
}[];
|
|
10344
|
+
};
|
|
10345
|
+
mark_offer_clicked: {
|
|
10346
|
+
Args: {
|
|
10347
|
+
p_code: string;
|
|
10348
|
+
};
|
|
10349
|
+
Returns: undefined;
|
|
10350
|
+
};
|
|
10351
|
+
mark_offer_ordered: {
|
|
10352
|
+
Args: {
|
|
10353
|
+
p_code: string;
|
|
10354
|
+
};
|
|
10355
|
+
Returns: undefined;
|
|
10356
|
+
};
|
|
9547
10357
|
next_order_number: {
|
|
9548
10358
|
Args: {
|
|
9549
10359
|
p_prefix: string;
|
|
@@ -9563,6 +10373,14 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
9563
10373
|
};
|
|
9564
10374
|
Returns: string;
|
|
9565
10375
|
};
|
|
10376
|
+
offer_recipient_matches: {
|
|
10377
|
+
Args: {
|
|
10378
|
+
_campaign_id: string;
|
|
10379
|
+
_customer_id: string;
|
|
10380
|
+
_recipient_id: string;
|
|
10381
|
+
};
|
|
10382
|
+
Returns: boolean;
|
|
10383
|
+
};
|
|
9566
10384
|
pickstation_get_orders_raw: {
|
|
9567
10385
|
Args: never;
|
|
9568
10386
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -9590,6 +10408,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
9590
10408
|
};
|
|
9591
10409
|
Returns: undefined;
|
|
9592
10410
|
};
|
|
10411
|
+
promote_trade_item_key: {
|
|
10412
|
+
Args: {
|
|
10413
|
+
p_new: string;
|
|
10414
|
+
p_old: string;
|
|
10415
|
+
};
|
|
10416
|
+
Returns: undefined;
|
|
10417
|
+
};
|
|
9593
10418
|
refresh_floricode_derived_code_lists: {
|
|
9594
10419
|
Args: never;
|
|
9595
10420
|
Returns: {
|
|
@@ -10632,6 +11457,7 @@ export declare const createSalesOrder: 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 createSalesOrder: 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 createSalesOrder: 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 createSalesOrder: 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,83 +15800,281 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
14927
15800
|
};
|
|
14928
15801
|
Relationships: [];
|
|
14929
15802
|
};
|
|
14930
|
-
|
|
15803
|
+
local_customer_agreements: {
|
|
14931
15804
|
Row: {
|
|
15805
|
+
base_price: number | null;
|
|
14932
15806
|
created_at: string;
|
|
15807
|
+
currency: string;
|
|
15808
|
+
customer_id: string;
|
|
14933
15809
|
id: string;
|
|
14934
|
-
|
|
14935
|
-
|
|
15810
|
+
min_quantity: number;
|
|
15811
|
+
net_price: number;
|
|
15812
|
+
notes: string | null;
|
|
15813
|
+
product_category_id: string | null;
|
|
15814
|
+
product_id: string | null;
|
|
14936
15815
|
updated_at: string;
|
|
15816
|
+
valid_from: string | null;
|
|
15817
|
+
valid_until: string | null;
|
|
14937
15818
|
};
|
|
14938
15819
|
Insert: {
|
|
15820
|
+
base_price?: number | null;
|
|
14939
15821
|
created_at?: string;
|
|
15822
|
+
currency?: string;
|
|
15823
|
+
customer_id: string;
|
|
14940
15824
|
id?: string;
|
|
14941
|
-
|
|
14942
|
-
|
|
15825
|
+
min_quantity?: number;
|
|
15826
|
+
net_price: number;
|
|
15827
|
+
notes?: string | null;
|
|
15828
|
+
product_category_id?: string | null;
|
|
15829
|
+
product_id?: string | null;
|
|
14943
15830
|
updated_at?: string;
|
|
15831
|
+
valid_from?: string | null;
|
|
15832
|
+
valid_until?: string | null;
|
|
14944
15833
|
};
|
|
14945
15834
|
Update: {
|
|
15835
|
+
base_price?: number | null;
|
|
14946
15836
|
created_at?: string;
|
|
15837
|
+
currency?: string;
|
|
15838
|
+
customer_id?: string;
|
|
14947
15839
|
id?: string;
|
|
14948
|
-
|
|
14949
|
-
|
|
15840
|
+
min_quantity?: number;
|
|
15841
|
+
net_price?: number;
|
|
15842
|
+
notes?: string | null;
|
|
15843
|
+
product_category_id?: string | null;
|
|
15844
|
+
product_id?: string | null;
|
|
14950
15845
|
updated_at?: string;
|
|
15846
|
+
valid_from?: string | null;
|
|
15847
|
+
valid_until?: string | null;
|
|
14951
15848
|
};
|
|
14952
|
-
Relationships: [
|
|
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
|
+
}];
|
|
14953
15868
|
};
|
|
14954
|
-
|
|
15869
|
+
local_customer_price_groups: {
|
|
14955
15870
|
Row: {
|
|
14956
|
-
body_html: string | null;
|
|
14957
|
-
body_text: string | null;
|
|
14958
|
-
connection_id: string | null;
|
|
14959
15871
|
created_at: string;
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
|
|
14963
|
-
|
|
15872
|
+
currency: string;
|
|
15873
|
+
customer_id: string;
|
|
15874
|
+
discount_type: string;
|
|
15875
|
+
discount_value: number;
|
|
14964
15876
|
id: string;
|
|
14965
|
-
|
|
14966
|
-
|
|
14967
|
-
|
|
14968
|
-
|
|
14969
|
-
status: string;
|
|
14970
|
-
subject: string | null;
|
|
14971
|
-
uid: number | null;
|
|
15877
|
+
min_quantity: number;
|
|
15878
|
+
notes: string | null;
|
|
15879
|
+
product_category_id: string | null;
|
|
15880
|
+
product_id: string | null;
|
|
14972
15881
|
updated_at: string;
|
|
15882
|
+
valid_from: string | null;
|
|
15883
|
+
valid_until: string | null;
|
|
14973
15884
|
};
|
|
14974
15885
|
Insert: {
|
|
14975
|
-
body_html?: string | null;
|
|
14976
|
-
body_text?: string | null;
|
|
14977
|
-
connection_id?: string | null;
|
|
14978
15886
|
created_at?: string;
|
|
14979
|
-
|
|
14980
|
-
|
|
14981
|
-
|
|
14982
|
-
|
|
15887
|
+
currency?: string;
|
|
15888
|
+
customer_id: string;
|
|
15889
|
+
discount_type: string;
|
|
15890
|
+
discount_value: number;
|
|
14983
15891
|
id?: string;
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
status?: string;
|
|
14989
|
-
subject?: string | null;
|
|
14990
|
-
uid?: number | null;
|
|
15892
|
+
min_quantity?: number;
|
|
15893
|
+
notes?: string | null;
|
|
15894
|
+
product_category_id?: string | null;
|
|
15895
|
+
product_id?: string | null;
|
|
14991
15896
|
updated_at?: string;
|
|
15897
|
+
valid_from?: string | null;
|
|
15898
|
+
valid_until?: string | null;
|
|
14992
15899
|
};
|
|
14993
15900
|
Update: {
|
|
14994
|
-
body_html?: string | null;
|
|
14995
|
-
body_text?: string | null;
|
|
14996
|
-
connection_id?: string | null;
|
|
14997
15901
|
created_at?: string;
|
|
14998
|
-
|
|
14999
|
-
|
|
15000
|
-
|
|
15001
|
-
|
|
15902
|
+
currency?: string;
|
|
15903
|
+
customer_id?: string;
|
|
15904
|
+
discount_type?: string;
|
|
15905
|
+
discount_value?: number;
|
|
15002
15906
|
id?: string;
|
|
15003
|
-
|
|
15004
|
-
|
|
15005
|
-
|
|
15006
|
-
|
|
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
|
+
};
|
|
16001
|
+
locations: {
|
|
16002
|
+
Row: {
|
|
16003
|
+
created_at: string;
|
|
16004
|
+
id: string;
|
|
16005
|
+
name: string;
|
|
16006
|
+
sort_order: number;
|
|
16007
|
+
updated_at: string;
|
|
16008
|
+
};
|
|
16009
|
+
Insert: {
|
|
16010
|
+
created_at?: string;
|
|
16011
|
+
id?: string;
|
|
16012
|
+
name: string;
|
|
16013
|
+
sort_order?: number;
|
|
16014
|
+
updated_at?: string;
|
|
16015
|
+
};
|
|
16016
|
+
Update: {
|
|
16017
|
+
created_at?: string;
|
|
16018
|
+
id?: string;
|
|
16019
|
+
name?: string;
|
|
16020
|
+
sort_order?: number;
|
|
16021
|
+
updated_at?: string;
|
|
16022
|
+
};
|
|
16023
|
+
Relationships: [];
|
|
16024
|
+
};
|
|
16025
|
+
mailbox_messages: {
|
|
16026
|
+
Row: {
|
|
16027
|
+
body_html: string | null;
|
|
16028
|
+
body_text: string | null;
|
|
16029
|
+
connection_id: string | null;
|
|
16030
|
+
created_at: string;
|
|
16031
|
+
error_message: string | null;
|
|
16032
|
+
external_id: string | null;
|
|
16033
|
+
from_email: string | null;
|
|
16034
|
+
from_name: string | null;
|
|
16035
|
+
id: string;
|
|
16036
|
+
message_id: string | null;
|
|
16037
|
+
profile_id: string | null;
|
|
16038
|
+
raw_size: number | null;
|
|
16039
|
+
received_at: string | null;
|
|
16040
|
+
status: string;
|
|
16041
|
+
subject: string | null;
|
|
16042
|
+
uid: number | null;
|
|
16043
|
+
updated_at: string;
|
|
16044
|
+
};
|
|
16045
|
+
Insert: {
|
|
16046
|
+
body_html?: string | null;
|
|
16047
|
+
body_text?: string | null;
|
|
16048
|
+
connection_id?: string | null;
|
|
16049
|
+
created_at?: string;
|
|
16050
|
+
error_message?: string | null;
|
|
16051
|
+
external_id?: string | null;
|
|
16052
|
+
from_email?: string | null;
|
|
16053
|
+
from_name?: string | null;
|
|
16054
|
+
id?: string;
|
|
16055
|
+
message_id?: string | null;
|
|
16056
|
+
profile_id?: string | null;
|
|
16057
|
+
raw_size?: number | null;
|
|
16058
|
+
received_at?: string | null;
|
|
16059
|
+
status?: string;
|
|
16060
|
+
subject?: string | null;
|
|
16061
|
+
uid?: number | null;
|
|
16062
|
+
updated_at?: string;
|
|
16063
|
+
};
|
|
16064
|
+
Update: {
|
|
16065
|
+
body_html?: string | null;
|
|
16066
|
+
body_text?: string | null;
|
|
16067
|
+
connection_id?: string | null;
|
|
16068
|
+
created_at?: string;
|
|
16069
|
+
error_message?: string | null;
|
|
16070
|
+
external_id?: string | null;
|
|
16071
|
+
from_email?: string | null;
|
|
16072
|
+
from_name?: string | null;
|
|
16073
|
+
id?: string;
|
|
16074
|
+
message_id?: string | null;
|
|
16075
|
+
profile_id?: string | null;
|
|
16076
|
+
raw_size?: number | null;
|
|
16077
|
+
received_at?: string | null;
|
|
15007
16078
|
status?: string;
|
|
15008
16079
|
subject?: string | null;
|
|
15009
16080
|
uid?: number | null;
|
|
@@ -15434,134 +16505,401 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
15434
16505
|
referencedColumns: ["id"];
|
|
15435
16506
|
}];
|
|
15436
16507
|
};
|
|
15437
|
-
|
|
16508
|
+
nmbrs_component_mapping: {
|
|
15438
16509
|
Row: {
|
|
15439
16510
|
created_at: string;
|
|
15440
16511
|
id: string;
|
|
15441
|
-
|
|
15442
|
-
|
|
15443
|
-
title: string;
|
|
16512
|
+
source_kind: string;
|
|
16513
|
+
source_value: string | null;
|
|
15444
16514
|
updated_at: string;
|
|
15445
|
-
|
|
16515
|
+
wage_code: string;
|
|
15446
16516
|
};
|
|
15447
16517
|
Insert: {
|
|
15448
16518
|
created_at?: string;
|
|
15449
16519
|
id?: string;
|
|
15450
|
-
|
|
15451
|
-
|
|
15452
|
-
title: string;
|
|
16520
|
+
source_kind: string;
|
|
16521
|
+
source_value?: string | null;
|
|
15453
16522
|
updated_at?: string;
|
|
15454
|
-
|
|
16523
|
+
wage_code: string;
|
|
15455
16524
|
};
|
|
15456
16525
|
Update: {
|
|
15457
16526
|
created_at?: string;
|
|
15458
16527
|
id?: string;
|
|
15459
|
-
|
|
15460
|
-
|
|
15461
|
-
title?: string;
|
|
16528
|
+
source_kind?: string;
|
|
16529
|
+
source_value?: string | null;
|
|
15462
16530
|
updated_at?: string;
|
|
15463
|
-
|
|
16531
|
+
wage_code?: string;
|
|
15464
16532
|
};
|
|
15465
|
-
Relationships: [
|
|
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
|
+
}];
|
|
15466
16540
|
};
|
|
15467
|
-
|
|
16541
|
+
nmbrs_employee_mapping: {
|
|
15468
16542
|
Row: {
|
|
15469
|
-
|
|
16543
|
+
active_from: string | null;
|
|
16544
|
+
active_to: string | null;
|
|
16545
|
+
contract_hours_per_week: number | null;
|
|
15470
16546
|
created_at: string;
|
|
16547
|
+
hourly_wage: number | null;
|
|
15471
16548
|
id: string;
|
|
15472
|
-
|
|
15473
|
-
|
|
15474
|
-
|
|
16549
|
+
monteur_id: string;
|
|
16550
|
+
nmbrs_company_code: string | null;
|
|
16551
|
+
nmbrs_employee_number: string;
|
|
16552
|
+
updated_at: string;
|
|
15475
16553
|
};
|
|
15476
16554
|
Insert: {
|
|
15477
|
-
|
|
16555
|
+
active_from?: string | null;
|
|
16556
|
+
active_to?: string | null;
|
|
16557
|
+
contract_hours_per_week?: number | null;
|
|
15478
16558
|
created_at?: string;
|
|
16559
|
+
hourly_wage?: number | null;
|
|
15479
16560
|
id?: string;
|
|
15480
|
-
|
|
15481
|
-
|
|
15482
|
-
|
|
16561
|
+
monteur_id: string;
|
|
16562
|
+
nmbrs_company_code?: string | null;
|
|
16563
|
+
nmbrs_employee_number: string;
|
|
16564
|
+
updated_at?: string;
|
|
15483
16565
|
};
|
|
15484
16566
|
Update: {
|
|
15485
|
-
|
|
16567
|
+
active_from?: string | null;
|
|
16568
|
+
active_to?: string | null;
|
|
16569
|
+
contract_hours_per_week?: number | null;
|
|
15486
16570
|
created_at?: string;
|
|
16571
|
+
hourly_wage?: number | null;
|
|
15487
16572
|
id?: string;
|
|
15488
|
-
|
|
15489
|
-
|
|
15490
|
-
|
|
16573
|
+
monteur_id?: string;
|
|
16574
|
+
nmbrs_company_code?: string | null;
|
|
16575
|
+
nmbrs_employee_number?: string;
|
|
16576
|
+
updated_at?: string;
|
|
15491
16577
|
};
|
|
15492
16578
|
Relationships: [{
|
|
15493
|
-
foreignKeyName: "
|
|
15494
|
-
columns: ["
|
|
15495
|
-
isOneToOne:
|
|
15496
|
-
referencedRelation: "
|
|
16579
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
16580
|
+
columns: ["monteur_id"];
|
|
16581
|
+
isOneToOne: true;
|
|
16582
|
+
referencedRelation: "monteurs";
|
|
15497
16583
|
referencedColumns: ["id"];
|
|
15498
16584
|
}];
|
|
15499
16585
|
};
|
|
15500
|
-
|
|
16586
|
+
nmbrs_export_lines: {
|
|
15501
16587
|
Row: {
|
|
15502
|
-
|
|
15503
|
-
barcode: string | null;
|
|
15504
|
-
belading: string | null;
|
|
15505
|
-
campaign_id: string;
|
|
15506
|
-
crate_price: number | null;
|
|
16588
|
+
amount: number;
|
|
15507
16589
|
created_at: string;
|
|
15508
|
-
|
|
15509
|
-
|
|
16590
|
+
entry_date: string;
|
|
16591
|
+
hours: number;
|
|
15510
16592
|
id: string;
|
|
15511
|
-
|
|
15512
|
-
|
|
15513
|
-
|
|
15514
|
-
|
|
15515
|
-
|
|
15516
|
-
|
|
15517
|
-
|
|
15518
|
-
|
|
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;
|
|
15519
16601
|
};
|
|
15520
16602
|
Insert: {
|
|
15521
|
-
|
|
15522
|
-
barcode?: string | null;
|
|
15523
|
-
belading?: string | null;
|
|
15524
|
-
campaign_id: string;
|
|
15525
|
-
crate_price?: number | null;
|
|
16603
|
+
amount?: number;
|
|
15526
16604
|
created_at?: string;
|
|
15527
|
-
|
|
15528
|
-
|
|
16605
|
+
entry_date: string;
|
|
16606
|
+
hours?: number;
|
|
15529
16607
|
id?: string;
|
|
15530
|
-
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
|
-
|
|
15534
|
-
|
|
15535
|
-
|
|
15536
|
-
|
|
15537
|
-
|
|
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;
|
|
15538
16616
|
};
|
|
15539
16617
|
Update: {
|
|
15540
|
-
|
|
15541
|
-
barcode?: string | null;
|
|
15542
|
-
belading?: string | null;
|
|
15543
|
-
campaign_id?: string;
|
|
15544
|
-
crate_price?: number | null;
|
|
16618
|
+
amount?: number;
|
|
15545
16619
|
created_at?: string;
|
|
15546
|
-
|
|
15547
|
-
|
|
16620
|
+
entry_date?: string;
|
|
16621
|
+
hours?: number;
|
|
15548
16622
|
id?: string;
|
|
15549
|
-
|
|
15550
|
-
|
|
15551
|
-
|
|
15552
|
-
|
|
15553
|
-
|
|
15554
|
-
|
|
15555
|
-
|
|
15556
|
-
|
|
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;
|
|
15557
16631
|
};
|
|
15558
16632
|
Relationships: [{
|
|
15559
|
-
foreignKeyName: "
|
|
15560
|
-
columns: ["
|
|
16633
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
16634
|
+
columns: ["monteur_id"];
|
|
15561
16635
|
isOneToOne: false;
|
|
15562
|
-
referencedRelation: "
|
|
16636
|
+
referencedRelation: "monteurs";
|
|
15563
16637
|
referencedColumns: ["id"];
|
|
15564
|
-
}
|
|
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
|
+
};
|
|
16775
|
+
notifications: {
|
|
16776
|
+
Row: {
|
|
16777
|
+
created_at: string;
|
|
16778
|
+
id: string;
|
|
16779
|
+
message: string | null;
|
|
16780
|
+
read: boolean;
|
|
16781
|
+
title: string;
|
|
16782
|
+
updated_at: string;
|
|
16783
|
+
user_id: string;
|
|
16784
|
+
};
|
|
16785
|
+
Insert: {
|
|
16786
|
+
created_at?: string;
|
|
16787
|
+
id?: string;
|
|
16788
|
+
message?: string | null;
|
|
16789
|
+
read?: boolean;
|
|
16790
|
+
title: string;
|
|
16791
|
+
updated_at?: string;
|
|
16792
|
+
user_id: string;
|
|
16793
|
+
};
|
|
16794
|
+
Update: {
|
|
16795
|
+
created_at?: string;
|
|
16796
|
+
id?: string;
|
|
16797
|
+
message?: string | null;
|
|
16798
|
+
read?: boolean;
|
|
16799
|
+
title?: string;
|
|
16800
|
+
updated_at?: string;
|
|
16801
|
+
user_id?: string;
|
|
16802
|
+
};
|
|
16803
|
+
Relationships: [];
|
|
16804
|
+
};
|
|
16805
|
+
offer_campaign_product_tiers: {
|
|
16806
|
+
Row: {
|
|
16807
|
+
campaign_product_id: string;
|
|
16808
|
+
created_at: string;
|
|
16809
|
+
id: string;
|
|
16810
|
+
min_crates: number;
|
|
16811
|
+
price_per_crate: number;
|
|
16812
|
+
sort_order: number;
|
|
16813
|
+
};
|
|
16814
|
+
Insert: {
|
|
16815
|
+
campaign_product_id: string;
|
|
16816
|
+
created_at?: string;
|
|
16817
|
+
id?: string;
|
|
16818
|
+
min_crates?: number;
|
|
16819
|
+
price_per_crate?: number;
|
|
16820
|
+
sort_order?: number;
|
|
16821
|
+
};
|
|
16822
|
+
Update: {
|
|
16823
|
+
campaign_product_id?: string;
|
|
16824
|
+
created_at?: string;
|
|
16825
|
+
id?: string;
|
|
16826
|
+
min_crates?: number;
|
|
16827
|
+
price_per_crate?: number;
|
|
16828
|
+
sort_order?: number;
|
|
16829
|
+
};
|
|
16830
|
+
Relationships: [{
|
|
16831
|
+
foreignKeyName: "offer_campaign_product_tiers_campaign_product_id_fkey";
|
|
16832
|
+
columns: ["campaign_product_id"];
|
|
16833
|
+
isOneToOne: false;
|
|
16834
|
+
referencedRelation: "offer_campaign_products";
|
|
16835
|
+
referencedColumns: ["id"];
|
|
16836
|
+
}];
|
|
16837
|
+
};
|
|
16838
|
+
offer_campaign_products: {
|
|
16839
|
+
Row: {
|
|
16840
|
+
available_stock: number;
|
|
16841
|
+
barcode: string | null;
|
|
16842
|
+
belading: string | null;
|
|
16843
|
+
campaign_id: string;
|
|
16844
|
+
crate_price: number | null;
|
|
16845
|
+
created_at: string;
|
|
16846
|
+
description: string | null;
|
|
16847
|
+
discount_price: number;
|
|
16848
|
+
id: string;
|
|
16849
|
+
image_url: string | null;
|
|
16850
|
+
normal_price: number;
|
|
16851
|
+
plants_per_crate: number | null;
|
|
16852
|
+
product_id: string | null;
|
|
16853
|
+
product_name: string;
|
|
16854
|
+
sort_order: number;
|
|
16855
|
+
sticker_available: boolean;
|
|
16856
|
+
sticker_cost: number | null;
|
|
16857
|
+
};
|
|
16858
|
+
Insert: {
|
|
16859
|
+
available_stock?: number;
|
|
16860
|
+
barcode?: string | null;
|
|
16861
|
+
belading?: string | null;
|
|
16862
|
+
campaign_id: string;
|
|
16863
|
+
crate_price?: number | null;
|
|
16864
|
+
created_at?: string;
|
|
16865
|
+
description?: string | null;
|
|
16866
|
+
discount_price?: number;
|
|
16867
|
+
id?: string;
|
|
16868
|
+
image_url?: string | null;
|
|
16869
|
+
normal_price?: number;
|
|
16870
|
+
plants_per_crate?: number | null;
|
|
16871
|
+
product_id?: string | null;
|
|
16872
|
+
product_name: string;
|
|
16873
|
+
sort_order?: number;
|
|
16874
|
+
sticker_available?: boolean;
|
|
16875
|
+
sticker_cost?: number | null;
|
|
16876
|
+
};
|
|
16877
|
+
Update: {
|
|
16878
|
+
available_stock?: number;
|
|
16879
|
+
barcode?: string | null;
|
|
16880
|
+
belading?: string | null;
|
|
16881
|
+
campaign_id?: string;
|
|
16882
|
+
crate_price?: number | null;
|
|
16883
|
+
created_at?: string;
|
|
16884
|
+
description?: string | null;
|
|
16885
|
+
discount_price?: number;
|
|
16886
|
+
id?: string;
|
|
16887
|
+
image_url?: string | null;
|
|
16888
|
+
normal_price?: number;
|
|
16889
|
+
plants_per_crate?: number | null;
|
|
16890
|
+
product_id?: string | null;
|
|
16891
|
+
product_name?: string;
|
|
16892
|
+
sort_order?: number;
|
|
16893
|
+
sticker_available?: boolean;
|
|
16894
|
+
sticker_cost?: number | null;
|
|
16895
|
+
};
|
|
16896
|
+
Relationships: [{
|
|
16897
|
+
foreignKeyName: "offer_campaign_products_campaign_id_fkey";
|
|
16898
|
+
columns: ["campaign_id"];
|
|
16899
|
+
isOneToOne: false;
|
|
16900
|
+
referencedRelation: "offer_campaigns";
|
|
16901
|
+
referencedColumns: ["id"];
|
|
16902
|
+
}];
|
|
15565
16903
|
};
|
|
15566
16904
|
offer_campaigns: {
|
|
15567
16905
|
Row: {
|
|
@@ -16416,6 +17754,7 @@ export declare const createSalesOrder: 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 createSalesOrder: 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 createSalesOrder: 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,49 +18620,145 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17279
18620
|
};
|
|
17280
18621
|
Relationships: [];
|
|
17281
18622
|
};
|
|
17282
|
-
|
|
18623
|
+
stock_import_runs: {
|
|
17283
18624
|
Row: {
|
|
17284
|
-
|
|
18625
|
+
connection_id: string | null;
|
|
17285
18626
|
created_at: string;
|
|
18627
|
+
created_rows: number;
|
|
18628
|
+
errors: import("../integrations/supabase/types").Json;
|
|
18629
|
+
filename: string | null;
|
|
17286
18630
|
id: string;
|
|
17287
|
-
|
|
17288
|
-
|
|
17289
|
-
|
|
17290
|
-
|
|
17291
|
-
|
|
17292
|
-
supplier_id: string;
|
|
17293
|
-
unit: string;
|
|
17294
|
-
updated_at: string;
|
|
18631
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
18632
|
+
skipped_rows: number;
|
|
18633
|
+
total_rows: number;
|
|
18634
|
+
updated_rows: number;
|
|
18635
|
+
user_id: string;
|
|
17295
18636
|
};
|
|
17296
18637
|
Insert: {
|
|
17297
|
-
|
|
18638
|
+
connection_id?: string | null;
|
|
17298
18639
|
created_at?: string;
|
|
18640
|
+
created_rows?: number;
|
|
18641
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
18642
|
+
filename?: string | null;
|
|
17299
18643
|
id?: string;
|
|
17300
|
-
|
|
17301
|
-
|
|
17302
|
-
|
|
17303
|
-
|
|
17304
|
-
|
|
17305
|
-
supplier_id: string;
|
|
17306
|
-
unit?: string;
|
|
17307
|
-
updated_at?: string;
|
|
18644
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
18645
|
+
skipped_rows?: number;
|
|
18646
|
+
total_rows?: number;
|
|
18647
|
+
updated_rows?: number;
|
|
18648
|
+
user_id: string;
|
|
17308
18649
|
};
|
|
17309
18650
|
Update: {
|
|
17310
|
-
|
|
18651
|
+
connection_id?: string | null;
|
|
17311
18652
|
created_at?: string;
|
|
18653
|
+
created_rows?: number;
|
|
18654
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
18655
|
+
filename?: string | null;
|
|
17312
18656
|
id?: string;
|
|
17313
|
-
|
|
17314
|
-
|
|
17315
|
-
|
|
17316
|
-
|
|
17317
|
-
|
|
17318
|
-
supplier_id?: string;
|
|
17319
|
-
unit?: string;
|
|
17320
|
-
updated_at?: string;
|
|
18657
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
18658
|
+
skipped_rows?: number;
|
|
18659
|
+
total_rows?: number;
|
|
18660
|
+
updated_rows?: number;
|
|
18661
|
+
user_id?: string;
|
|
17321
18662
|
};
|
|
17322
|
-
Relationships: [
|
|
17323
|
-
|
|
17324
|
-
|
|
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
|
+
};
|
|
18719
|
+
supplier_products: {
|
|
18720
|
+
Row: {
|
|
18721
|
+
article_number: string | null;
|
|
18722
|
+
created_at: string;
|
|
18723
|
+
id: string;
|
|
18724
|
+
name: string;
|
|
18725
|
+
notes: string | null;
|
|
18726
|
+
pot_size: string | null;
|
|
18727
|
+
price: number | null;
|
|
18728
|
+
quantity: number | null;
|
|
18729
|
+
supplier_id: string;
|
|
18730
|
+
unit: string;
|
|
18731
|
+
updated_at: string;
|
|
18732
|
+
};
|
|
18733
|
+
Insert: {
|
|
18734
|
+
article_number?: string | null;
|
|
18735
|
+
created_at?: string;
|
|
18736
|
+
id?: string;
|
|
18737
|
+
name: string;
|
|
18738
|
+
notes?: string | null;
|
|
18739
|
+
pot_size?: string | null;
|
|
18740
|
+
price?: number | null;
|
|
18741
|
+
quantity?: number | null;
|
|
18742
|
+
supplier_id: string;
|
|
18743
|
+
unit?: string;
|
|
18744
|
+
updated_at?: string;
|
|
18745
|
+
};
|
|
18746
|
+
Update: {
|
|
18747
|
+
article_number?: string | null;
|
|
18748
|
+
created_at?: string;
|
|
18749
|
+
id?: string;
|
|
18750
|
+
name?: string;
|
|
18751
|
+
notes?: string | null;
|
|
18752
|
+
pot_size?: string | null;
|
|
18753
|
+
price?: number | null;
|
|
18754
|
+
quantity?: number | null;
|
|
18755
|
+
supplier_id?: string;
|
|
18756
|
+
unit?: string;
|
|
18757
|
+
updated_at?: string;
|
|
18758
|
+
};
|
|
18759
|
+
Relationships: [{
|
|
18760
|
+
foreignKeyName: "supplier_products_supplier_id_fkey";
|
|
18761
|
+
columns: ["supplier_id"];
|
|
17325
18762
|
isOneToOne: false;
|
|
17326
18763
|
referencedRelation: "suppliers";
|
|
17327
18764
|
referencedColumns: ["id"];
|
|
@@ -18856,6 +20293,44 @@ export declare const createSalesOrder: 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 createSalesOrder: 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 createSalesOrder: 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 createSalesOrder: 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 createSalesOrder: 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 createSalesOrder: 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 createSalesOrder: 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 createSalesOrder: 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 createSalesOrder: 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 createSalesOrder: 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 createSalesOrder: 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: {
|
|
@@ -20556,6 +22206,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
20556
22206
|
notes: string | null;
|
|
20557
22207
|
performed_at: string;
|
|
20558
22208
|
rescheduled_count: number;
|
|
22209
|
+
stock_consumed_at: string | null;
|
|
20559
22210
|
total_carts: number;
|
|
20560
22211
|
updated_at: string;
|
|
20561
22212
|
user_id: string;
|
|
@@ -20569,6 +22220,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
20569
22220
|
notes?: string | null;
|
|
20570
22221
|
performed_at?: string;
|
|
20571
22222
|
rescheduled_count?: number;
|
|
22223
|
+
stock_consumed_at?: string | null;
|
|
20572
22224
|
total_carts?: number;
|
|
20573
22225
|
updated_at?: string;
|
|
20574
22226
|
user_id: string;
|
|
@@ -20582,6 +22234,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
20582
22234
|
notes?: string | null;
|
|
20583
22235
|
performed_at?: string;
|
|
20584
22236
|
rescheduled_count?: number;
|
|
22237
|
+
stock_consumed_at?: string | null;
|
|
20585
22238
|
total_carts?: number;
|
|
20586
22239
|
updated_at?: string;
|
|
20587
22240
|
user_id?: string;
|
|
@@ -23462,6 +25115,51 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
23462
25115
|
referencedColumns: ["id"];
|
|
23463
25116
|
}];
|
|
23464
25117
|
};
|
|
25118
|
+
floriday_continuous_stock_queue: {
|
|
25119
|
+
Row: {
|
|
25120
|
+
attempts: number;
|
|
25121
|
+
connection_id: string;
|
|
25122
|
+
created_at: string;
|
|
25123
|
+
gateway_attempt_id: string | null;
|
|
25124
|
+
id: string;
|
|
25125
|
+
last_error: string | null;
|
|
25126
|
+
number_of_pieces: number;
|
|
25127
|
+
sent_at: string | null;
|
|
25128
|
+
status: string;
|
|
25129
|
+
trade_item_id: string;
|
|
25130
|
+
updated_at: string;
|
|
25131
|
+
user_id: string;
|
|
25132
|
+
};
|
|
25133
|
+
Insert: {
|
|
25134
|
+
attempts?: number;
|
|
25135
|
+
connection_id: string;
|
|
25136
|
+
created_at?: string;
|
|
25137
|
+
gateway_attempt_id?: string | null;
|
|
25138
|
+
id?: string;
|
|
25139
|
+
last_error?: string | null;
|
|
25140
|
+
number_of_pieces?: number;
|
|
25141
|
+
sent_at?: string | null;
|
|
25142
|
+
status?: string;
|
|
25143
|
+
trade_item_id: string;
|
|
25144
|
+
updated_at?: string;
|
|
25145
|
+
user_id: string;
|
|
25146
|
+
};
|
|
25147
|
+
Update: {
|
|
25148
|
+
attempts?: number;
|
|
25149
|
+
connection_id?: string;
|
|
25150
|
+
created_at?: string;
|
|
25151
|
+
gateway_attempt_id?: string | null;
|
|
25152
|
+
id?: string;
|
|
25153
|
+
last_error?: string | null;
|
|
25154
|
+
number_of_pieces?: number;
|
|
25155
|
+
sent_at?: string | null;
|
|
25156
|
+
status?: string;
|
|
25157
|
+
trade_item_id?: string;
|
|
25158
|
+
updated_at?: string;
|
|
25159
|
+
user_id?: string;
|
|
25160
|
+
};
|
|
25161
|
+
Relationships: [];
|
|
25162
|
+
};
|
|
23465
25163
|
floriday_contract_trade_item_groups_cache: {
|
|
23466
25164
|
Row: {
|
|
23467
25165
|
connection_id: string;
|
|
@@ -24851,27 +26549,225 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
24851
26549
|
};
|
|
24852
26550
|
Relationships: [];
|
|
24853
26551
|
};
|
|
24854
|
-
|
|
26552
|
+
local_customer_agreements: {
|
|
24855
26553
|
Row: {
|
|
26554
|
+
base_price: number | null;
|
|
24856
26555
|
created_at: string;
|
|
26556
|
+
currency: string;
|
|
26557
|
+
customer_id: string;
|
|
24857
26558
|
id: string;
|
|
24858
|
-
|
|
24859
|
-
|
|
26559
|
+
min_quantity: number;
|
|
26560
|
+
net_price: number;
|
|
26561
|
+
notes: string | null;
|
|
26562
|
+
product_category_id: string | null;
|
|
26563
|
+
product_id: string | null;
|
|
24860
26564
|
updated_at: string;
|
|
26565
|
+
valid_from: string | null;
|
|
26566
|
+
valid_until: string | null;
|
|
24861
26567
|
};
|
|
24862
26568
|
Insert: {
|
|
26569
|
+
base_price?: number | null;
|
|
24863
26570
|
created_at?: string;
|
|
26571
|
+
currency?: string;
|
|
26572
|
+
customer_id: string;
|
|
24864
26573
|
id?: string;
|
|
24865
|
-
|
|
24866
|
-
|
|
26574
|
+
min_quantity?: number;
|
|
26575
|
+
net_price: number;
|
|
26576
|
+
notes?: string | null;
|
|
26577
|
+
product_category_id?: string | null;
|
|
26578
|
+
product_id?: string | null;
|
|
24867
26579
|
updated_at?: string;
|
|
26580
|
+
valid_from?: string | null;
|
|
26581
|
+
valid_until?: string | null;
|
|
24868
26582
|
};
|
|
24869
26583
|
Update: {
|
|
26584
|
+
base_price?: number | null;
|
|
24870
26585
|
created_at?: string;
|
|
26586
|
+
currency?: string;
|
|
26587
|
+
customer_id?: string;
|
|
24871
26588
|
id?: string;
|
|
24872
|
-
|
|
24873
|
-
|
|
24874
|
-
|
|
26589
|
+
min_quantity?: number;
|
|
26590
|
+
net_price?: number;
|
|
26591
|
+
notes?: string | null;
|
|
26592
|
+
product_category_id?: string | null;
|
|
26593
|
+
product_id?: string | null;
|
|
26594
|
+
updated_at?: string;
|
|
26595
|
+
valid_from?: string | null;
|
|
26596
|
+
valid_until?: string | null;
|
|
26597
|
+
};
|
|
26598
|
+
Relationships: [{
|
|
26599
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
26600
|
+
columns: ["customer_id"];
|
|
26601
|
+
isOneToOne: false;
|
|
26602
|
+
referencedRelation: "customers";
|
|
26603
|
+
referencedColumns: ["id"];
|
|
26604
|
+
}, {
|
|
26605
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
26606
|
+
columns: ["product_category_id"];
|
|
26607
|
+
isOneToOne: false;
|
|
26608
|
+
referencedRelation: "product_categories";
|
|
26609
|
+
referencedColumns: ["id"];
|
|
26610
|
+
}, {
|
|
26611
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
26612
|
+
columns: ["product_id"];
|
|
26613
|
+
isOneToOne: false;
|
|
26614
|
+
referencedRelation: "products";
|
|
26615
|
+
referencedColumns: ["id"];
|
|
26616
|
+
}];
|
|
26617
|
+
};
|
|
26618
|
+
local_customer_price_groups: {
|
|
26619
|
+
Row: {
|
|
26620
|
+
created_at: string;
|
|
26621
|
+
currency: string;
|
|
26622
|
+
customer_id: string;
|
|
26623
|
+
discount_type: string;
|
|
26624
|
+
discount_value: number;
|
|
26625
|
+
id: string;
|
|
26626
|
+
min_quantity: number;
|
|
26627
|
+
notes: string | null;
|
|
26628
|
+
product_category_id: string | null;
|
|
26629
|
+
product_id: string | null;
|
|
26630
|
+
updated_at: string;
|
|
26631
|
+
valid_from: string | null;
|
|
26632
|
+
valid_until: string | null;
|
|
26633
|
+
};
|
|
26634
|
+
Insert: {
|
|
26635
|
+
created_at?: string;
|
|
26636
|
+
currency?: string;
|
|
26637
|
+
customer_id: string;
|
|
26638
|
+
discount_type: string;
|
|
26639
|
+
discount_value: number;
|
|
26640
|
+
id?: string;
|
|
26641
|
+
min_quantity?: number;
|
|
26642
|
+
notes?: string | null;
|
|
26643
|
+
product_category_id?: string | null;
|
|
26644
|
+
product_id?: string | null;
|
|
26645
|
+
updated_at?: string;
|
|
26646
|
+
valid_from?: string | null;
|
|
26647
|
+
valid_until?: string | null;
|
|
26648
|
+
};
|
|
26649
|
+
Update: {
|
|
26650
|
+
created_at?: string;
|
|
26651
|
+
currency?: string;
|
|
26652
|
+
customer_id?: string;
|
|
26653
|
+
discount_type?: string;
|
|
26654
|
+
discount_value?: number;
|
|
26655
|
+
id?: string;
|
|
26656
|
+
min_quantity?: number;
|
|
26657
|
+
notes?: string | null;
|
|
26658
|
+
product_category_id?: string | null;
|
|
26659
|
+
product_id?: string | null;
|
|
26660
|
+
updated_at?: string;
|
|
26661
|
+
valid_from?: string | null;
|
|
26662
|
+
valid_until?: string | null;
|
|
26663
|
+
};
|
|
26664
|
+
Relationships: [{
|
|
26665
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
26666
|
+
columns: ["customer_id"];
|
|
26667
|
+
isOneToOne: false;
|
|
26668
|
+
referencedRelation: "customers";
|
|
26669
|
+
referencedColumns: ["id"];
|
|
26670
|
+
}, {
|
|
26671
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
26672
|
+
columns: ["product_category_id"];
|
|
26673
|
+
isOneToOne: false;
|
|
26674
|
+
referencedRelation: "product_categories";
|
|
26675
|
+
referencedColumns: ["id"];
|
|
26676
|
+
}, {
|
|
26677
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
26678
|
+
columns: ["product_id"];
|
|
26679
|
+
isOneToOne: false;
|
|
26680
|
+
referencedRelation: "products";
|
|
26681
|
+
referencedColumns: ["id"];
|
|
26682
|
+
}];
|
|
26683
|
+
};
|
|
26684
|
+
local_customer_sales_strategies: {
|
|
26685
|
+
Row: {
|
|
26686
|
+
created_at: string;
|
|
26687
|
+
currency: string;
|
|
26688
|
+
customer_id: string;
|
|
26689
|
+
discount_type: string;
|
|
26690
|
+
discount_value: number;
|
|
26691
|
+
id: string;
|
|
26692
|
+
min_quantity: number;
|
|
26693
|
+
notes: string | null;
|
|
26694
|
+
product_category_id: string | null;
|
|
26695
|
+
product_id: string | null;
|
|
26696
|
+
updated_at: string;
|
|
26697
|
+
valid_from: string | null;
|
|
26698
|
+
valid_until: string | null;
|
|
26699
|
+
};
|
|
26700
|
+
Insert: {
|
|
26701
|
+
created_at?: string;
|
|
26702
|
+
currency?: string;
|
|
26703
|
+
customer_id: string;
|
|
26704
|
+
discount_type: string;
|
|
26705
|
+
discount_value: number;
|
|
26706
|
+
id?: string;
|
|
26707
|
+
min_quantity?: number;
|
|
26708
|
+
notes?: string | null;
|
|
26709
|
+
product_category_id?: string | null;
|
|
26710
|
+
product_id?: string | null;
|
|
26711
|
+
updated_at?: string;
|
|
26712
|
+
valid_from?: string | null;
|
|
26713
|
+
valid_until?: string | null;
|
|
26714
|
+
};
|
|
26715
|
+
Update: {
|
|
26716
|
+
created_at?: string;
|
|
26717
|
+
currency?: string;
|
|
26718
|
+
customer_id?: string;
|
|
26719
|
+
discount_type?: string;
|
|
26720
|
+
discount_value?: number;
|
|
26721
|
+
id?: string;
|
|
26722
|
+
min_quantity?: number;
|
|
26723
|
+
notes?: string | null;
|
|
26724
|
+
product_category_id?: string | null;
|
|
26725
|
+
product_id?: string | null;
|
|
26726
|
+
updated_at?: string;
|
|
26727
|
+
valid_from?: string | null;
|
|
26728
|
+
valid_until?: string | null;
|
|
26729
|
+
};
|
|
26730
|
+
Relationships: [{
|
|
26731
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
26732
|
+
columns: ["customer_id"];
|
|
26733
|
+
isOneToOne: false;
|
|
26734
|
+
referencedRelation: "customers";
|
|
26735
|
+
referencedColumns: ["id"];
|
|
26736
|
+
}, {
|
|
26737
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
26738
|
+
columns: ["product_category_id"];
|
|
26739
|
+
isOneToOne: false;
|
|
26740
|
+
referencedRelation: "product_categories";
|
|
26741
|
+
referencedColumns: ["id"];
|
|
26742
|
+
}, {
|
|
26743
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
26744
|
+
columns: ["product_id"];
|
|
26745
|
+
isOneToOne: false;
|
|
26746
|
+
referencedRelation: "products";
|
|
26747
|
+
referencedColumns: ["id"];
|
|
26748
|
+
}];
|
|
26749
|
+
};
|
|
26750
|
+
locations: {
|
|
26751
|
+
Row: {
|
|
26752
|
+
created_at: string;
|
|
26753
|
+
id: string;
|
|
26754
|
+
name: string;
|
|
26755
|
+
sort_order: number;
|
|
26756
|
+
updated_at: string;
|
|
26757
|
+
};
|
|
26758
|
+
Insert: {
|
|
26759
|
+
created_at?: string;
|
|
26760
|
+
id?: string;
|
|
26761
|
+
name: string;
|
|
26762
|
+
sort_order?: number;
|
|
26763
|
+
updated_at?: string;
|
|
26764
|
+
};
|
|
26765
|
+
Update: {
|
|
26766
|
+
created_at?: string;
|
|
26767
|
+
id?: string;
|
|
26768
|
+
name?: string;
|
|
26769
|
+
sort_order?: number;
|
|
26770
|
+
updated_at?: string;
|
|
24875
26771
|
};
|
|
24876
26772
|
Relationships: [];
|
|
24877
26773
|
};
|
|
@@ -25265,98 +27161,365 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
25265
27161
|
referencedColumns: ["id"];
|
|
25266
27162
|
}];
|
|
25267
27163
|
};
|
|
25268
|
-
manufacture_products: {
|
|
27164
|
+
manufacture_products: {
|
|
27165
|
+
Row: {
|
|
27166
|
+
created_at: string;
|
|
27167
|
+
description: string | null;
|
|
27168
|
+
id: string;
|
|
27169
|
+
is_active: boolean;
|
|
27170
|
+
name: string;
|
|
27171
|
+
produced_stock: number;
|
|
27172
|
+
product_code: string;
|
|
27173
|
+
tenant_id: string;
|
|
27174
|
+
updated_at: string;
|
|
27175
|
+
};
|
|
27176
|
+
Insert: {
|
|
27177
|
+
created_at?: string;
|
|
27178
|
+
description?: string | null;
|
|
27179
|
+
id?: string;
|
|
27180
|
+
is_active?: boolean;
|
|
27181
|
+
name: string;
|
|
27182
|
+
produced_stock?: number;
|
|
27183
|
+
product_code: string;
|
|
27184
|
+
tenant_id: string;
|
|
27185
|
+
updated_at?: string;
|
|
27186
|
+
};
|
|
27187
|
+
Update: {
|
|
27188
|
+
created_at?: string;
|
|
27189
|
+
description?: string | null;
|
|
27190
|
+
id?: string;
|
|
27191
|
+
is_active?: boolean;
|
|
27192
|
+
name?: string;
|
|
27193
|
+
produced_stock?: number;
|
|
27194
|
+
product_code?: string;
|
|
27195
|
+
tenant_id?: string;
|
|
27196
|
+
updated_at?: string;
|
|
27197
|
+
};
|
|
27198
|
+
Relationships: [];
|
|
27199
|
+
};
|
|
27200
|
+
monteurs: {
|
|
27201
|
+
Row: {
|
|
27202
|
+
avatar_url: string | null;
|
|
27203
|
+
color: string | null;
|
|
27204
|
+
created_at: string;
|
|
27205
|
+
email: string | null;
|
|
27206
|
+
id: string;
|
|
27207
|
+
is_active: boolean;
|
|
27208
|
+
leave_balance_hours: number;
|
|
27209
|
+
name: string;
|
|
27210
|
+
persnr: number | null;
|
|
27211
|
+
phone: string | null;
|
|
27212
|
+
role: string;
|
|
27213
|
+
tenant_id: string;
|
|
27214
|
+
updated_at: string;
|
|
27215
|
+
user_id: string | null;
|
|
27216
|
+
};
|
|
27217
|
+
Insert: {
|
|
27218
|
+
avatar_url?: string | null;
|
|
27219
|
+
color?: string | null;
|
|
27220
|
+
created_at?: string;
|
|
27221
|
+
email?: string | null;
|
|
27222
|
+
id?: string;
|
|
27223
|
+
is_active?: boolean;
|
|
27224
|
+
leave_balance_hours?: number;
|
|
27225
|
+
name: string;
|
|
27226
|
+
persnr?: number | null;
|
|
27227
|
+
phone?: string | null;
|
|
27228
|
+
role?: string;
|
|
27229
|
+
tenant_id: string;
|
|
27230
|
+
updated_at?: string;
|
|
27231
|
+
user_id?: string | null;
|
|
27232
|
+
};
|
|
27233
|
+
Update: {
|
|
27234
|
+
avatar_url?: string | null;
|
|
27235
|
+
color?: string | null;
|
|
27236
|
+
created_at?: string;
|
|
27237
|
+
email?: string | null;
|
|
27238
|
+
id?: string;
|
|
27239
|
+
is_active?: boolean;
|
|
27240
|
+
leave_balance_hours?: number;
|
|
27241
|
+
name?: string;
|
|
27242
|
+
persnr?: number | null;
|
|
27243
|
+
phone?: string | null;
|
|
27244
|
+
role?: string;
|
|
27245
|
+
tenant_id?: string;
|
|
27246
|
+
updated_at?: string;
|
|
27247
|
+
user_id?: string | null;
|
|
27248
|
+
};
|
|
27249
|
+
Relationships: [{
|
|
27250
|
+
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
27251
|
+
columns: ["tenant_id"];
|
|
27252
|
+
isOneToOne: false;
|
|
27253
|
+
referencedRelation: "tenants";
|
|
27254
|
+
referencedColumns: ["id"];
|
|
27255
|
+
}];
|
|
27256
|
+
};
|
|
27257
|
+
nmbrs_component_mapping: {
|
|
27258
|
+
Row: {
|
|
27259
|
+
created_at: string;
|
|
27260
|
+
id: string;
|
|
27261
|
+
source_kind: string;
|
|
27262
|
+
source_value: string | null;
|
|
27263
|
+
updated_at: string;
|
|
27264
|
+
wage_code: string;
|
|
27265
|
+
};
|
|
27266
|
+
Insert: {
|
|
27267
|
+
created_at?: string;
|
|
27268
|
+
id?: string;
|
|
27269
|
+
source_kind: string;
|
|
27270
|
+
source_value?: string | null;
|
|
27271
|
+
updated_at?: string;
|
|
27272
|
+
wage_code: string;
|
|
27273
|
+
};
|
|
27274
|
+
Update: {
|
|
27275
|
+
created_at?: string;
|
|
27276
|
+
id?: string;
|
|
27277
|
+
source_kind?: string;
|
|
27278
|
+
source_value?: string | null;
|
|
27279
|
+
updated_at?: string;
|
|
27280
|
+
wage_code?: string;
|
|
27281
|
+
};
|
|
27282
|
+
Relationships: [{
|
|
27283
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
27284
|
+
columns: ["wage_code"];
|
|
27285
|
+
isOneToOne: false;
|
|
27286
|
+
referencedRelation: "nmbrs_wage_components";
|
|
27287
|
+
referencedColumns: ["code"];
|
|
27288
|
+
}];
|
|
27289
|
+
};
|
|
27290
|
+
nmbrs_employee_mapping: {
|
|
27291
|
+
Row: {
|
|
27292
|
+
active_from: string | null;
|
|
27293
|
+
active_to: string | null;
|
|
27294
|
+
contract_hours_per_week: number | null;
|
|
27295
|
+
created_at: string;
|
|
27296
|
+
hourly_wage: number | null;
|
|
27297
|
+
id: string;
|
|
27298
|
+
monteur_id: string;
|
|
27299
|
+
nmbrs_company_code: string | null;
|
|
27300
|
+
nmbrs_employee_number: string;
|
|
27301
|
+
updated_at: string;
|
|
27302
|
+
};
|
|
27303
|
+
Insert: {
|
|
27304
|
+
active_from?: string | null;
|
|
27305
|
+
active_to?: string | null;
|
|
27306
|
+
contract_hours_per_week?: number | null;
|
|
27307
|
+
created_at?: string;
|
|
27308
|
+
hourly_wage?: number | null;
|
|
27309
|
+
id?: string;
|
|
27310
|
+
monteur_id: string;
|
|
27311
|
+
nmbrs_company_code?: string | null;
|
|
27312
|
+
nmbrs_employee_number: string;
|
|
27313
|
+
updated_at?: string;
|
|
27314
|
+
};
|
|
27315
|
+
Update: {
|
|
27316
|
+
active_from?: string | null;
|
|
27317
|
+
active_to?: string | null;
|
|
27318
|
+
contract_hours_per_week?: number | null;
|
|
27319
|
+
created_at?: string;
|
|
27320
|
+
hourly_wage?: number | null;
|
|
27321
|
+
id?: string;
|
|
27322
|
+
monteur_id?: string;
|
|
27323
|
+
nmbrs_company_code?: string | null;
|
|
27324
|
+
nmbrs_employee_number?: string;
|
|
27325
|
+
updated_at?: string;
|
|
27326
|
+
};
|
|
27327
|
+
Relationships: [{
|
|
27328
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
27329
|
+
columns: ["monteur_id"];
|
|
27330
|
+
isOneToOne: true;
|
|
27331
|
+
referencedRelation: "monteurs";
|
|
27332
|
+
referencedColumns: ["id"];
|
|
27333
|
+
}];
|
|
27334
|
+
};
|
|
27335
|
+
nmbrs_export_lines: {
|
|
27336
|
+
Row: {
|
|
27337
|
+
amount: number;
|
|
27338
|
+
created_at: string;
|
|
27339
|
+
entry_date: string;
|
|
27340
|
+
hours: number;
|
|
27341
|
+
id: string;
|
|
27342
|
+
monteur_id: string;
|
|
27343
|
+
nmbrs_employee_number: string | null;
|
|
27344
|
+
notes: string | null;
|
|
27345
|
+
run_id: string;
|
|
27346
|
+
source_kind: string | null;
|
|
27347
|
+
source_ref_id: string | null;
|
|
27348
|
+
updated_at: string;
|
|
27349
|
+
wage_code: string;
|
|
27350
|
+
};
|
|
27351
|
+
Insert: {
|
|
27352
|
+
amount?: number;
|
|
27353
|
+
created_at?: string;
|
|
27354
|
+
entry_date: string;
|
|
27355
|
+
hours?: number;
|
|
27356
|
+
id?: string;
|
|
27357
|
+
monteur_id: string;
|
|
27358
|
+
nmbrs_employee_number?: string | null;
|
|
27359
|
+
notes?: string | null;
|
|
27360
|
+
run_id: string;
|
|
27361
|
+
source_kind?: string | null;
|
|
27362
|
+
source_ref_id?: string | null;
|
|
27363
|
+
updated_at?: string;
|
|
27364
|
+
wage_code: string;
|
|
27365
|
+
};
|
|
27366
|
+
Update: {
|
|
27367
|
+
amount?: number;
|
|
27368
|
+
created_at?: string;
|
|
27369
|
+
entry_date?: string;
|
|
27370
|
+
hours?: number;
|
|
27371
|
+
id?: string;
|
|
27372
|
+
monteur_id?: string;
|
|
27373
|
+
nmbrs_employee_number?: string | null;
|
|
27374
|
+
notes?: string | null;
|
|
27375
|
+
run_id?: string;
|
|
27376
|
+
source_kind?: string | null;
|
|
27377
|
+
source_ref_id?: string | null;
|
|
27378
|
+
updated_at?: string;
|
|
27379
|
+
wage_code?: string;
|
|
27380
|
+
};
|
|
27381
|
+
Relationships: [{
|
|
27382
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
27383
|
+
columns: ["monteur_id"];
|
|
27384
|
+
isOneToOne: false;
|
|
27385
|
+
referencedRelation: "monteurs";
|
|
27386
|
+
referencedColumns: ["id"];
|
|
27387
|
+
}, {
|
|
27388
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
27389
|
+
columns: ["run_id"];
|
|
27390
|
+
isOneToOne: false;
|
|
27391
|
+
referencedRelation: "nmbrs_export_runs";
|
|
27392
|
+
referencedColumns: ["id"];
|
|
27393
|
+
}, {
|
|
27394
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
27395
|
+
columns: ["wage_code"];
|
|
27396
|
+
isOneToOne: false;
|
|
27397
|
+
referencedRelation: "nmbrs_wage_components";
|
|
27398
|
+
referencedColumns: ["code"];
|
|
27399
|
+
}];
|
|
27400
|
+
};
|
|
27401
|
+
nmbrs_export_runs: {
|
|
27402
|
+
Row: {
|
|
27403
|
+
created_at: string;
|
|
27404
|
+
file_name: string | null;
|
|
27405
|
+
generated_at: string;
|
|
27406
|
+
generated_by: string | null;
|
|
27407
|
+
id: string;
|
|
27408
|
+
notes: string | null;
|
|
27409
|
+
period_end: string;
|
|
27410
|
+
period_label: string;
|
|
27411
|
+
period_start: string;
|
|
27412
|
+
status: string;
|
|
27413
|
+
total_hours: number;
|
|
27414
|
+
total_lines: number;
|
|
27415
|
+
updated_at: string;
|
|
27416
|
+
};
|
|
27417
|
+
Insert: {
|
|
27418
|
+
created_at?: string;
|
|
27419
|
+
file_name?: string | null;
|
|
27420
|
+
generated_at?: string;
|
|
27421
|
+
generated_by?: string | null;
|
|
27422
|
+
id?: string;
|
|
27423
|
+
notes?: string | null;
|
|
27424
|
+
period_end: string;
|
|
27425
|
+
period_label: string;
|
|
27426
|
+
period_start: string;
|
|
27427
|
+
status?: string;
|
|
27428
|
+
total_hours?: number;
|
|
27429
|
+
total_lines?: number;
|
|
27430
|
+
updated_at?: string;
|
|
27431
|
+
};
|
|
27432
|
+
Update: {
|
|
27433
|
+
created_at?: string;
|
|
27434
|
+
file_name?: string | null;
|
|
27435
|
+
generated_at?: string;
|
|
27436
|
+
generated_by?: string | null;
|
|
27437
|
+
id?: string;
|
|
27438
|
+
notes?: string | null;
|
|
27439
|
+
period_end?: string;
|
|
27440
|
+
period_label?: string;
|
|
27441
|
+
period_start?: string;
|
|
27442
|
+
status?: string;
|
|
27443
|
+
total_hours?: number;
|
|
27444
|
+
total_lines?: number;
|
|
27445
|
+
updated_at?: string;
|
|
27446
|
+
};
|
|
27447
|
+
Relationships: [];
|
|
27448
|
+
};
|
|
27449
|
+
nmbrs_settings: {
|
|
25269
27450
|
Row: {
|
|
25270
27451
|
created_at: string;
|
|
25271
|
-
|
|
25272
|
-
id:
|
|
25273
|
-
|
|
25274
|
-
|
|
25275
|
-
|
|
25276
|
-
|
|
25277
|
-
tenant_id: string;
|
|
27452
|
+
default_company_code: string | null;
|
|
27453
|
+
id: boolean;
|
|
27454
|
+
include_travel: boolean;
|
|
27455
|
+
overtime_threshold_daily: number;
|
|
27456
|
+
overtime_threshold_weekly: number;
|
|
27457
|
+
period_type: string;
|
|
25278
27458
|
updated_at: string;
|
|
27459
|
+
updated_by: string | null;
|
|
27460
|
+
week_start_day: number;
|
|
25279
27461
|
};
|
|
25280
27462
|
Insert: {
|
|
25281
27463
|
created_at?: string;
|
|
25282
|
-
|
|
25283
|
-
id?:
|
|
25284
|
-
|
|
25285
|
-
|
|
25286
|
-
|
|
25287
|
-
|
|
25288
|
-
tenant_id: string;
|
|
27464
|
+
default_company_code?: string | null;
|
|
27465
|
+
id?: boolean;
|
|
27466
|
+
include_travel?: boolean;
|
|
27467
|
+
overtime_threshold_daily?: number;
|
|
27468
|
+
overtime_threshold_weekly?: number;
|
|
27469
|
+
period_type?: string;
|
|
25289
27470
|
updated_at?: string;
|
|
27471
|
+
updated_by?: string | null;
|
|
27472
|
+
week_start_day?: number;
|
|
25290
27473
|
};
|
|
25291
27474
|
Update: {
|
|
25292
27475
|
created_at?: string;
|
|
25293
|
-
|
|
25294
|
-
id?:
|
|
25295
|
-
|
|
25296
|
-
|
|
25297
|
-
|
|
25298
|
-
|
|
25299
|
-
tenant_id?: string;
|
|
27476
|
+
default_company_code?: string | null;
|
|
27477
|
+
id?: boolean;
|
|
27478
|
+
include_travel?: boolean;
|
|
27479
|
+
overtime_threshold_daily?: number;
|
|
27480
|
+
overtime_threshold_weekly?: number;
|
|
27481
|
+
period_type?: string;
|
|
25300
27482
|
updated_at?: string;
|
|
27483
|
+
updated_by?: string | null;
|
|
27484
|
+
week_start_day?: number;
|
|
25301
27485
|
};
|
|
25302
27486
|
Relationships: [];
|
|
25303
27487
|
};
|
|
25304
|
-
|
|
27488
|
+
nmbrs_wage_components: {
|
|
25305
27489
|
Row: {
|
|
25306
|
-
|
|
25307
|
-
|
|
27490
|
+
category: string;
|
|
27491
|
+
code: string;
|
|
25308
27492
|
created_at: string;
|
|
25309
|
-
email: string | null;
|
|
25310
27493
|
id: string;
|
|
25311
27494
|
is_active: boolean;
|
|
25312
|
-
|
|
25313
|
-
|
|
25314
|
-
|
|
25315
|
-
phone: string | null;
|
|
25316
|
-
role: string;
|
|
25317
|
-
tenant_id: string;
|
|
27495
|
+
label: string;
|
|
27496
|
+
sort_order: number;
|
|
27497
|
+
unit: string;
|
|
25318
27498
|
updated_at: string;
|
|
25319
|
-
user_id: string | null;
|
|
25320
27499
|
};
|
|
25321
27500
|
Insert: {
|
|
25322
|
-
|
|
25323
|
-
|
|
27501
|
+
category: string;
|
|
27502
|
+
code: string;
|
|
25324
27503
|
created_at?: string;
|
|
25325
|
-
email?: string | null;
|
|
25326
27504
|
id?: string;
|
|
25327
27505
|
is_active?: boolean;
|
|
25328
|
-
|
|
25329
|
-
|
|
25330
|
-
|
|
25331
|
-
phone?: string | null;
|
|
25332
|
-
role?: string;
|
|
25333
|
-
tenant_id: string;
|
|
27506
|
+
label: string;
|
|
27507
|
+
sort_order?: number;
|
|
27508
|
+
unit: string;
|
|
25334
27509
|
updated_at?: string;
|
|
25335
|
-
user_id?: string | null;
|
|
25336
27510
|
};
|
|
25337
27511
|
Update: {
|
|
25338
|
-
|
|
25339
|
-
|
|
27512
|
+
category?: string;
|
|
27513
|
+
code?: string;
|
|
25340
27514
|
created_at?: string;
|
|
25341
|
-
email?: string | null;
|
|
25342
27515
|
id?: string;
|
|
25343
27516
|
is_active?: boolean;
|
|
25344
|
-
|
|
25345
|
-
|
|
25346
|
-
|
|
25347
|
-
phone?: string | null;
|
|
25348
|
-
role?: string;
|
|
25349
|
-
tenant_id?: string;
|
|
27517
|
+
label?: string;
|
|
27518
|
+
sort_order?: number;
|
|
27519
|
+
unit?: string;
|
|
25350
27520
|
updated_at?: string;
|
|
25351
|
-
user_id?: string | null;
|
|
25352
27521
|
};
|
|
25353
|
-
Relationships: [
|
|
25354
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
25355
|
-
columns: ["tenant_id"];
|
|
25356
|
-
isOneToOne: false;
|
|
25357
|
-
referencedRelation: "tenants";
|
|
25358
|
-
referencedColumns: ["id"];
|
|
25359
|
-
}];
|
|
27522
|
+
Relationships: [];
|
|
25360
27523
|
};
|
|
25361
27524
|
notifications: {
|
|
25362
27525
|
Row: {
|
|
@@ -26340,6 +28503,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26340
28503
|
purchase_price: number | null;
|
|
26341
28504
|
quantity: number;
|
|
26342
28505
|
sale_price: number | null;
|
|
28506
|
+
trade_item_key: string | null;
|
|
26343
28507
|
unit: string;
|
|
26344
28508
|
updated_at: string;
|
|
26345
28509
|
weight: string | null;
|
|
@@ -26362,6 +28526,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26362
28526
|
purchase_price?: number | null;
|
|
26363
28527
|
quantity?: number;
|
|
26364
28528
|
sale_price?: number | null;
|
|
28529
|
+
trade_item_key?: string | null;
|
|
26365
28530
|
unit?: string;
|
|
26366
28531
|
updated_at?: string;
|
|
26367
28532
|
weight?: string | null;
|
|
@@ -26384,6 +28549,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26384
28549
|
purchase_price?: number | null;
|
|
26385
28550
|
quantity?: number;
|
|
26386
28551
|
sale_price?: number | null;
|
|
28552
|
+
trade_item_key?: string | null;
|
|
26387
28553
|
unit?: string;
|
|
26388
28554
|
updated_at?: string;
|
|
26389
28555
|
weight?: string | null;
|
|
@@ -27203,6 +29369,102 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27203
29369
|
};
|
|
27204
29370
|
Relationships: [];
|
|
27205
29371
|
};
|
|
29372
|
+
stock_import_runs: {
|
|
29373
|
+
Row: {
|
|
29374
|
+
connection_id: string | null;
|
|
29375
|
+
created_at: string;
|
|
29376
|
+
created_rows: number;
|
|
29377
|
+
errors: import("../integrations/supabase/types").Json;
|
|
29378
|
+
filename: string | null;
|
|
29379
|
+
id: string;
|
|
29380
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
29381
|
+
skipped_rows: number;
|
|
29382
|
+
total_rows: number;
|
|
29383
|
+
updated_rows: number;
|
|
29384
|
+
user_id: string;
|
|
29385
|
+
};
|
|
29386
|
+
Insert: {
|
|
29387
|
+
connection_id?: string | null;
|
|
29388
|
+
created_at?: string;
|
|
29389
|
+
created_rows?: number;
|
|
29390
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
29391
|
+
filename?: string | null;
|
|
29392
|
+
id?: string;
|
|
29393
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
29394
|
+
skipped_rows?: number;
|
|
29395
|
+
total_rows?: number;
|
|
29396
|
+
updated_rows?: number;
|
|
29397
|
+
user_id: string;
|
|
29398
|
+
};
|
|
29399
|
+
Update: {
|
|
29400
|
+
connection_id?: string | null;
|
|
29401
|
+
created_at?: string;
|
|
29402
|
+
created_rows?: number;
|
|
29403
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
29404
|
+
filename?: string | null;
|
|
29405
|
+
id?: string;
|
|
29406
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
29407
|
+
skipped_rows?: number;
|
|
29408
|
+
total_rows?: number;
|
|
29409
|
+
updated_rows?: number;
|
|
29410
|
+
user_id?: string;
|
|
29411
|
+
};
|
|
29412
|
+
Relationships: [];
|
|
29413
|
+
};
|
|
29414
|
+
stock_mutation_log: {
|
|
29415
|
+
Row: {
|
|
29416
|
+
connection_id: string | null;
|
|
29417
|
+
created_at: string;
|
|
29418
|
+
created_by: string | null;
|
|
29419
|
+
id: string;
|
|
29420
|
+
mutation_type: string;
|
|
29421
|
+
order_id: string | null;
|
|
29422
|
+
order_item_id: string | null;
|
|
29423
|
+
order_source: string | null;
|
|
29424
|
+
physical_after: number | null;
|
|
29425
|
+
physical_before: number | null;
|
|
29426
|
+
qty_delta: number;
|
|
29427
|
+
reason: string | null;
|
|
29428
|
+
reserved_after: number | null;
|
|
29429
|
+
reserved_before: number | null;
|
|
29430
|
+
trade_item_key: string;
|
|
29431
|
+
};
|
|
29432
|
+
Insert: {
|
|
29433
|
+
connection_id?: string | null;
|
|
29434
|
+
created_at?: string;
|
|
29435
|
+
created_by?: string | null;
|
|
29436
|
+
id?: string;
|
|
29437
|
+
mutation_type: string;
|
|
29438
|
+
order_id?: string | null;
|
|
29439
|
+
order_item_id?: string | null;
|
|
29440
|
+
order_source?: string | null;
|
|
29441
|
+
physical_after?: number | null;
|
|
29442
|
+
physical_before?: number | null;
|
|
29443
|
+
qty_delta: number;
|
|
29444
|
+
reason?: string | null;
|
|
29445
|
+
reserved_after?: number | null;
|
|
29446
|
+
reserved_before?: number | null;
|
|
29447
|
+
trade_item_key: string;
|
|
29448
|
+
};
|
|
29449
|
+
Update: {
|
|
29450
|
+
connection_id?: string | null;
|
|
29451
|
+
created_at?: string;
|
|
29452
|
+
created_by?: string | null;
|
|
29453
|
+
id?: string;
|
|
29454
|
+
mutation_type?: string;
|
|
29455
|
+
order_id?: string | null;
|
|
29456
|
+
order_item_id?: string | null;
|
|
29457
|
+
order_source?: string | null;
|
|
29458
|
+
physical_after?: number | null;
|
|
29459
|
+
physical_before?: number | null;
|
|
29460
|
+
qty_delta?: number;
|
|
29461
|
+
reason?: string | null;
|
|
29462
|
+
reserved_after?: number | null;
|
|
29463
|
+
reserved_before?: number | null;
|
|
29464
|
+
trade_item_key?: string;
|
|
29465
|
+
};
|
|
29466
|
+
Relationships: [];
|
|
29467
|
+
};
|
|
27206
29468
|
supplier_products: {
|
|
27207
29469
|
Row: {
|
|
27208
29470
|
article_number: string | null;
|
|
@@ -28780,6 +31042,44 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
28780
31042
|
};
|
|
28781
31043
|
Relationships: [];
|
|
28782
31044
|
};
|
|
31045
|
+
floriday_customer_discounts: {
|
|
31046
|
+
Row: {
|
|
31047
|
+
base_price: number | null;
|
|
31048
|
+
buyer_organization_id: string | null;
|
|
31049
|
+
currency: string | null;
|
|
31050
|
+
discount_type: string | null;
|
|
31051
|
+
discount_value: number | null;
|
|
31052
|
+
min_quantity: number | null;
|
|
31053
|
+
net_price: number | null;
|
|
31054
|
+
product_group_id: string | null;
|
|
31055
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
31056
|
+
source: string | null;
|
|
31057
|
+
source_id: string | null;
|
|
31058
|
+
trade_item_id: string | null;
|
|
31059
|
+
valid_from: string | null;
|
|
31060
|
+
valid_until: string | null;
|
|
31061
|
+
};
|
|
31062
|
+
Relationships: [];
|
|
31063
|
+
};
|
|
31064
|
+
local_customer_discounts: {
|
|
31065
|
+
Row: {
|
|
31066
|
+
base_price: number | null;
|
|
31067
|
+
currency: string | null;
|
|
31068
|
+
customer_id: string | null;
|
|
31069
|
+
discount_type: string | null;
|
|
31070
|
+
discount_value: number | null;
|
|
31071
|
+
min_quantity: number | null;
|
|
31072
|
+
net_price: number | null;
|
|
31073
|
+
product_category_id: string | null;
|
|
31074
|
+
product_id: string | null;
|
|
31075
|
+
product_name: string | null;
|
|
31076
|
+
source: string | null;
|
|
31077
|
+
source_id: string | null;
|
|
31078
|
+
valid_from: string | null;
|
|
31079
|
+
valid_until: string | null;
|
|
31080
|
+
};
|
|
31081
|
+
Relationships: [];
|
|
31082
|
+
};
|
|
28783
31083
|
manufacture_product_possible_stock_view: {
|
|
28784
31084
|
Row: {
|
|
28785
31085
|
component_count: number | null;
|
|
@@ -29064,6 +31364,54 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29064
31364
|
};
|
|
29065
31365
|
Returns: number;
|
|
29066
31366
|
};
|
|
31367
|
+
afh_city_code: {
|
|
31368
|
+
Args: {
|
|
31369
|
+
_city: string;
|
|
31370
|
+
_country: string;
|
|
31371
|
+
};
|
|
31372
|
+
Returns: string;
|
|
31373
|
+
};
|
|
31374
|
+
afh_normalize_country: {
|
|
31375
|
+
Args: {
|
|
31376
|
+
_raw: string;
|
|
31377
|
+
};
|
|
31378
|
+
Returns: string;
|
|
31379
|
+
};
|
|
31380
|
+
afh_normalize_nl_province: {
|
|
31381
|
+
Args: {
|
|
31382
|
+
_raw: string;
|
|
31383
|
+
};
|
|
31384
|
+
Returns: string;
|
|
31385
|
+
};
|
|
31386
|
+
afh_subtract_workdays: {
|
|
31387
|
+
Args: {
|
|
31388
|
+
_date: string;
|
|
31389
|
+
_days: number;
|
|
31390
|
+
};
|
|
31391
|
+
Returns: string;
|
|
31392
|
+
};
|
|
31393
|
+
apply_stock_consumption: {
|
|
31394
|
+
Args: {
|
|
31395
|
+
p_order_id: string;
|
|
31396
|
+
p_order_item_id: string;
|
|
31397
|
+
p_qty: number;
|
|
31398
|
+
p_reason: string;
|
|
31399
|
+
p_source: string;
|
|
31400
|
+
p_trade_item_key: string;
|
|
31401
|
+
};
|
|
31402
|
+
Returns: undefined;
|
|
31403
|
+
};
|
|
31404
|
+
apply_stock_reservation: {
|
|
31405
|
+
Args: {
|
|
31406
|
+
p_order_id: string;
|
|
31407
|
+
p_order_item_id: string;
|
|
31408
|
+
p_qty: number;
|
|
31409
|
+
p_reason: string;
|
|
31410
|
+
p_source: string;
|
|
31411
|
+
p_trade_item_key: string;
|
|
31412
|
+
};
|
|
31413
|
+
Returns: undefined;
|
|
31414
|
+
};
|
|
29067
31415
|
assign_cart_numbers: {
|
|
29068
31416
|
Args: {
|
|
29069
31417
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -29087,12 +31435,40 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29087
31435
|
order_number: string;
|
|
29088
31436
|
}[];
|
|
29089
31437
|
};
|
|
31438
|
+
backfill_open_order_reservations: {
|
|
31439
|
+
Args: never;
|
|
31440
|
+
Returns: {
|
|
31441
|
+
processed_items: number;
|
|
31442
|
+
}[];
|
|
31443
|
+
};
|
|
29090
31444
|
call_exact_route: {
|
|
29091
31445
|
Args: {
|
|
29092
31446
|
path: string;
|
|
29093
31447
|
};
|
|
29094
31448
|
Returns: number;
|
|
29095
31449
|
};
|
|
31450
|
+
check_offer_product_available_stock: {
|
|
31451
|
+
Args: {
|
|
31452
|
+
p_campaign_product_id: string;
|
|
31453
|
+
p_code: string;
|
|
31454
|
+
p_needed_qty?: number;
|
|
31455
|
+
p_product_name?: string;
|
|
31456
|
+
};
|
|
31457
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
31458
|
+
};
|
|
31459
|
+
check_trade_item_available_stock: {
|
|
31460
|
+
Args: {
|
|
31461
|
+
p_connection_id?: string;
|
|
31462
|
+
p_context?: string;
|
|
31463
|
+
p_needed_qty?: number;
|
|
31464
|
+
p_order_id?: string;
|
|
31465
|
+
p_order_item_id?: string;
|
|
31466
|
+
p_owner_id?: string;
|
|
31467
|
+
p_product_name?: string;
|
|
31468
|
+
p_trade_item_key: string;
|
|
31469
|
+
};
|
|
31470
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
31471
|
+
};
|
|
29096
31472
|
cleanup_old_bookings: {
|
|
29097
31473
|
Args: never;
|
|
29098
31474
|
Returns: number;
|
|
@@ -29136,6 +31512,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29136
31512
|
table_name: string;
|
|
29137
31513
|
}[];
|
|
29138
31514
|
};
|
|
31515
|
+
dispatch_carrier_signups_sql: {
|
|
31516
|
+
Args: {
|
|
31517
|
+
_catchup?: string;
|
|
31518
|
+
};
|
|
31519
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
31520
|
+
};
|
|
29139
31521
|
email_auth_decrypt: {
|
|
29140
31522
|
Args: {
|
|
29141
31523
|
cipher: string;
|
|
@@ -29171,6 +31553,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29171
31553
|
status: string;
|
|
29172
31554
|
}[];
|
|
29173
31555
|
};
|
|
31556
|
+
ensure_trade_item_stock_row: {
|
|
31557
|
+
Args: {
|
|
31558
|
+
p_key: string;
|
|
31559
|
+
};
|
|
31560
|
+
Returns: undefined;
|
|
31561
|
+
};
|
|
29174
31562
|
ensure_user_tenant: {
|
|
29175
31563
|
Args: never;
|
|
29176
31564
|
Returns: string;
|
|
@@ -29208,6 +31596,31 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29208
31596
|
};
|
|
29209
31597
|
Returns: boolean;
|
|
29210
31598
|
};
|
|
31599
|
+
find_trade_item_key: {
|
|
31600
|
+
Args: {
|
|
31601
|
+
p_barcode: string;
|
|
31602
|
+
p_name: string;
|
|
31603
|
+
p_product_id: string;
|
|
31604
|
+
};
|
|
31605
|
+
Returns: string;
|
|
31606
|
+
};
|
|
31607
|
+
floriday_effective_price: {
|
|
31608
|
+
Args: {
|
|
31609
|
+
_buyer_id: string;
|
|
31610
|
+
_on_date?: string;
|
|
31611
|
+
_quantity?: number;
|
|
31612
|
+
_trade_item_id: string;
|
|
31613
|
+
};
|
|
31614
|
+
Returns: {
|
|
31615
|
+
base_price: number;
|
|
31616
|
+
currency: string;
|
|
31617
|
+
discount_type: string;
|
|
31618
|
+
discount_value: number;
|
|
31619
|
+
net_price: number;
|
|
31620
|
+
source: string;
|
|
31621
|
+
source_id: string;
|
|
31622
|
+
}[];
|
|
31623
|
+
};
|
|
29211
31624
|
format_cart_number: {
|
|
29212
31625
|
Args: {
|
|
29213
31626
|
p_pick_date: string;
|
|
@@ -29228,6 +31641,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29228
31641
|
preferred_warehouse_name: string;
|
|
29229
31642
|
}[];
|
|
29230
31643
|
};
|
|
31644
|
+
get_active_floriday_context: {
|
|
31645
|
+
Args: never;
|
|
31646
|
+
Returns: {
|
|
31647
|
+
connection_id: string;
|
|
31648
|
+
user_id: string;
|
|
31649
|
+
}[];
|
|
31650
|
+
};
|
|
29231
31651
|
get_active_twinfield_public: {
|
|
29232
31652
|
Args: never;
|
|
29233
31653
|
Returns: {
|
|
@@ -29330,6 +31750,18 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29330
31750
|
};
|
|
29331
31751
|
Returns: import("../integrations/supabase/types").Json;
|
|
29332
31752
|
};
|
|
31753
|
+
get_offer_recipient_by_code: {
|
|
31754
|
+
Args: {
|
|
31755
|
+
p_code: string;
|
|
31756
|
+
};
|
|
31757
|
+
Returns: {
|
|
31758
|
+
campaign_id: string;
|
|
31759
|
+
clicked_at: string;
|
|
31760
|
+
customer_id: string;
|
|
31761
|
+
id: string;
|
|
31762
|
+
ordered_at: string;
|
|
31763
|
+
}[];
|
|
31764
|
+
};
|
|
29333
31765
|
get_or_assign_floriday_order_number: {
|
|
29334
31766
|
Args: {
|
|
29335
31767
|
p_floriday_id: string;
|
|
@@ -29382,6 +31814,34 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29382
31814
|
Args: never;
|
|
29383
31815
|
Returns: boolean;
|
|
29384
31816
|
};
|
|
31817
|
+
local_effective_price: {
|
|
31818
|
+
Args: {
|
|
31819
|
+
_customer_id: string;
|
|
31820
|
+
_on_date?: string;
|
|
31821
|
+
_product_id: string;
|
|
31822
|
+
_quantity?: number;
|
|
31823
|
+
};
|
|
31824
|
+
Returns: {
|
|
31825
|
+
currency: string;
|
|
31826
|
+
discount_type: string;
|
|
31827
|
+
discount_value: number;
|
|
31828
|
+
net_price: number;
|
|
31829
|
+
source: string;
|
|
31830
|
+
source_id: string;
|
|
31831
|
+
}[];
|
|
31832
|
+
};
|
|
31833
|
+
mark_offer_clicked: {
|
|
31834
|
+
Args: {
|
|
31835
|
+
p_code: string;
|
|
31836
|
+
};
|
|
31837
|
+
Returns: undefined;
|
|
31838
|
+
};
|
|
31839
|
+
mark_offer_ordered: {
|
|
31840
|
+
Args: {
|
|
31841
|
+
p_code: string;
|
|
31842
|
+
};
|
|
31843
|
+
Returns: undefined;
|
|
31844
|
+
};
|
|
29385
31845
|
next_order_number: {
|
|
29386
31846
|
Args: {
|
|
29387
31847
|
p_prefix: string;
|
|
@@ -29401,6 +31861,14 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29401
31861
|
};
|
|
29402
31862
|
Returns: string;
|
|
29403
31863
|
};
|
|
31864
|
+
offer_recipient_matches: {
|
|
31865
|
+
Args: {
|
|
31866
|
+
_campaign_id: string;
|
|
31867
|
+
_customer_id: string;
|
|
31868
|
+
_recipient_id: string;
|
|
31869
|
+
};
|
|
31870
|
+
Returns: boolean;
|
|
31871
|
+
};
|
|
29404
31872
|
pickstation_get_orders_raw: {
|
|
29405
31873
|
Args: never;
|
|
29406
31874
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -29428,6 +31896,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29428
31896
|
};
|
|
29429
31897
|
Returns: undefined;
|
|
29430
31898
|
};
|
|
31899
|
+
promote_trade_item_key: {
|
|
31900
|
+
Args: {
|
|
31901
|
+
p_new: string;
|
|
31902
|
+
p_old: string;
|
|
31903
|
+
};
|
|
31904
|
+
Returns: undefined;
|
|
31905
|
+
};
|
|
29431
31906
|
refresh_floricode_derived_code_lists: {
|
|
29432
31907
|
Args: never;
|
|
29433
31908
|
Returns: {
|