@flowselections/twinfield-authenticatie-module-15-06-2026 1.1.2 → 1.1.4
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/integrations/supabase/auth-middleware.d.ts +732 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +732 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +732 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/twinfield-admin.server.d.ts +732 -0
- package/dist-lib/integrations/supabase/twinfield-admin.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +752 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/accounting/twinfield/actions.functions.d.ts +2928 -0
- package/dist-lib/lib/accounting/twinfield/actions.functions.d.ts.map +1 -1
- package/dist-lib/lib/accounting/twinfield/conformance.functions.d.ts +732 -0
- package/dist-lib/lib/accounting/twinfield/conformance.functions.d.ts.map +1 -1
- package/dist-lib/lib/twinfield-adapter.functions.d.ts +1592 -128
- package/dist-lib/lib/twinfield-adapter.functions.d.ts.map +1 -1
- package/dist-lib/lib/twinfield-sync.functions.d.ts +1592 -128
- package/dist-lib/lib/twinfield-sync.functions.d.ts.map +1 -1
- package/dist-lib/lib/twinfield.functions.d.ts +7320 -0
- package/dist-lib/lib/twinfield.functions.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -3623,6 +3623,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
3623
3623
|
referencedColumns: ["id"];
|
|
3624
3624
|
}];
|
|
3625
3625
|
};
|
|
3626
|
+
floriday_continuous_stock_queue: {
|
|
3627
|
+
Row: {
|
|
3628
|
+
attempts: number;
|
|
3629
|
+
connection_id: string;
|
|
3630
|
+
created_at: string;
|
|
3631
|
+
gateway_attempt_id: string | null;
|
|
3632
|
+
id: string;
|
|
3633
|
+
last_error: string | null;
|
|
3634
|
+
number_of_pieces: number;
|
|
3635
|
+
sent_at: string | null;
|
|
3636
|
+
status: string;
|
|
3637
|
+
trade_item_id: string;
|
|
3638
|
+
updated_at: string;
|
|
3639
|
+
user_id: string;
|
|
3640
|
+
};
|
|
3641
|
+
Insert: {
|
|
3642
|
+
attempts?: number;
|
|
3643
|
+
connection_id: string;
|
|
3644
|
+
created_at?: string;
|
|
3645
|
+
gateway_attempt_id?: string | null;
|
|
3646
|
+
id?: string;
|
|
3647
|
+
last_error?: string | null;
|
|
3648
|
+
number_of_pieces?: number;
|
|
3649
|
+
sent_at?: string | null;
|
|
3650
|
+
status?: string;
|
|
3651
|
+
trade_item_id: string;
|
|
3652
|
+
updated_at?: string;
|
|
3653
|
+
user_id: string;
|
|
3654
|
+
};
|
|
3655
|
+
Update: {
|
|
3656
|
+
attempts?: number;
|
|
3657
|
+
connection_id?: string;
|
|
3658
|
+
created_at?: string;
|
|
3659
|
+
gateway_attempt_id?: string | null;
|
|
3660
|
+
id?: string;
|
|
3661
|
+
last_error?: string | null;
|
|
3662
|
+
number_of_pieces?: number;
|
|
3663
|
+
sent_at?: string | null;
|
|
3664
|
+
status?: string;
|
|
3665
|
+
trade_item_id?: string;
|
|
3666
|
+
updated_at?: string;
|
|
3667
|
+
user_id?: string;
|
|
3668
|
+
};
|
|
3669
|
+
Relationships: [];
|
|
3670
|
+
};
|
|
3626
3671
|
floriday_contract_trade_item_groups_cache: {
|
|
3627
3672
|
Row: {
|
|
3628
3673
|
connection_id: string;
|
|
@@ -5012,6 +5057,204 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5012
5057
|
};
|
|
5013
5058
|
Relationships: [];
|
|
5014
5059
|
};
|
|
5060
|
+
local_customer_agreements: {
|
|
5061
|
+
Row: {
|
|
5062
|
+
base_price: number | null;
|
|
5063
|
+
created_at: string;
|
|
5064
|
+
currency: string;
|
|
5065
|
+
customer_id: string;
|
|
5066
|
+
id: string;
|
|
5067
|
+
min_quantity: number;
|
|
5068
|
+
net_price: number;
|
|
5069
|
+
notes: string | null;
|
|
5070
|
+
product_category_id: string | null;
|
|
5071
|
+
product_id: string | null;
|
|
5072
|
+
updated_at: string;
|
|
5073
|
+
valid_from: string | null;
|
|
5074
|
+
valid_until: string | null;
|
|
5075
|
+
};
|
|
5076
|
+
Insert: {
|
|
5077
|
+
base_price?: number | null;
|
|
5078
|
+
created_at?: string;
|
|
5079
|
+
currency?: string;
|
|
5080
|
+
customer_id: string;
|
|
5081
|
+
id?: string;
|
|
5082
|
+
min_quantity?: number;
|
|
5083
|
+
net_price: number;
|
|
5084
|
+
notes?: string | null;
|
|
5085
|
+
product_category_id?: string | null;
|
|
5086
|
+
product_id?: string | null;
|
|
5087
|
+
updated_at?: string;
|
|
5088
|
+
valid_from?: string | null;
|
|
5089
|
+
valid_until?: string | null;
|
|
5090
|
+
};
|
|
5091
|
+
Update: {
|
|
5092
|
+
base_price?: number | null;
|
|
5093
|
+
created_at?: string;
|
|
5094
|
+
currency?: string;
|
|
5095
|
+
customer_id?: string;
|
|
5096
|
+
id?: string;
|
|
5097
|
+
min_quantity?: number;
|
|
5098
|
+
net_price?: number;
|
|
5099
|
+
notes?: string | null;
|
|
5100
|
+
product_category_id?: string | null;
|
|
5101
|
+
product_id?: string | null;
|
|
5102
|
+
updated_at?: string;
|
|
5103
|
+
valid_from?: string | null;
|
|
5104
|
+
valid_until?: string | null;
|
|
5105
|
+
};
|
|
5106
|
+
Relationships: [{
|
|
5107
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
5108
|
+
columns: ["customer_id"];
|
|
5109
|
+
isOneToOne: false;
|
|
5110
|
+
referencedRelation: "customers";
|
|
5111
|
+
referencedColumns: ["id"];
|
|
5112
|
+
}, {
|
|
5113
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
5114
|
+
columns: ["product_category_id"];
|
|
5115
|
+
isOneToOne: false;
|
|
5116
|
+
referencedRelation: "product_categories";
|
|
5117
|
+
referencedColumns: ["id"];
|
|
5118
|
+
}, {
|
|
5119
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
5120
|
+
columns: ["product_id"];
|
|
5121
|
+
isOneToOne: false;
|
|
5122
|
+
referencedRelation: "products";
|
|
5123
|
+
referencedColumns: ["id"];
|
|
5124
|
+
}];
|
|
5125
|
+
};
|
|
5126
|
+
local_customer_price_groups: {
|
|
5127
|
+
Row: {
|
|
5128
|
+
created_at: string;
|
|
5129
|
+
currency: string;
|
|
5130
|
+
customer_id: string;
|
|
5131
|
+
discount_type: string;
|
|
5132
|
+
discount_value: number;
|
|
5133
|
+
id: string;
|
|
5134
|
+
min_quantity: number;
|
|
5135
|
+
notes: string | null;
|
|
5136
|
+
product_category_id: string | null;
|
|
5137
|
+
product_id: string | null;
|
|
5138
|
+
updated_at: string;
|
|
5139
|
+
valid_from: string | null;
|
|
5140
|
+
valid_until: string | null;
|
|
5141
|
+
};
|
|
5142
|
+
Insert: {
|
|
5143
|
+
created_at?: string;
|
|
5144
|
+
currency?: string;
|
|
5145
|
+
customer_id: string;
|
|
5146
|
+
discount_type: string;
|
|
5147
|
+
discount_value: number;
|
|
5148
|
+
id?: string;
|
|
5149
|
+
min_quantity?: number;
|
|
5150
|
+
notes?: string | null;
|
|
5151
|
+
product_category_id?: string | null;
|
|
5152
|
+
product_id?: string | null;
|
|
5153
|
+
updated_at?: string;
|
|
5154
|
+
valid_from?: string | null;
|
|
5155
|
+
valid_until?: string | null;
|
|
5156
|
+
};
|
|
5157
|
+
Update: {
|
|
5158
|
+
created_at?: string;
|
|
5159
|
+
currency?: string;
|
|
5160
|
+
customer_id?: string;
|
|
5161
|
+
discount_type?: string;
|
|
5162
|
+
discount_value?: number;
|
|
5163
|
+
id?: string;
|
|
5164
|
+
min_quantity?: number;
|
|
5165
|
+
notes?: string | null;
|
|
5166
|
+
product_category_id?: string | null;
|
|
5167
|
+
product_id?: string | null;
|
|
5168
|
+
updated_at?: string;
|
|
5169
|
+
valid_from?: string | null;
|
|
5170
|
+
valid_until?: string | null;
|
|
5171
|
+
};
|
|
5172
|
+
Relationships: [{
|
|
5173
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
5174
|
+
columns: ["customer_id"];
|
|
5175
|
+
isOneToOne: false;
|
|
5176
|
+
referencedRelation: "customers";
|
|
5177
|
+
referencedColumns: ["id"];
|
|
5178
|
+
}, {
|
|
5179
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
5180
|
+
columns: ["product_category_id"];
|
|
5181
|
+
isOneToOne: false;
|
|
5182
|
+
referencedRelation: "product_categories";
|
|
5183
|
+
referencedColumns: ["id"];
|
|
5184
|
+
}, {
|
|
5185
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
5186
|
+
columns: ["product_id"];
|
|
5187
|
+
isOneToOne: false;
|
|
5188
|
+
referencedRelation: "products";
|
|
5189
|
+
referencedColumns: ["id"];
|
|
5190
|
+
}];
|
|
5191
|
+
};
|
|
5192
|
+
local_customer_sales_strategies: {
|
|
5193
|
+
Row: {
|
|
5194
|
+
created_at: string;
|
|
5195
|
+
currency: string;
|
|
5196
|
+
customer_id: string;
|
|
5197
|
+
discount_type: string;
|
|
5198
|
+
discount_value: number;
|
|
5199
|
+
id: string;
|
|
5200
|
+
min_quantity: number;
|
|
5201
|
+
notes: string | null;
|
|
5202
|
+
product_category_id: string | null;
|
|
5203
|
+
product_id: string | null;
|
|
5204
|
+
updated_at: string;
|
|
5205
|
+
valid_from: string | null;
|
|
5206
|
+
valid_until: string | null;
|
|
5207
|
+
};
|
|
5208
|
+
Insert: {
|
|
5209
|
+
created_at?: string;
|
|
5210
|
+
currency?: string;
|
|
5211
|
+
customer_id: string;
|
|
5212
|
+
discount_type: string;
|
|
5213
|
+
discount_value: number;
|
|
5214
|
+
id?: string;
|
|
5215
|
+
min_quantity?: number;
|
|
5216
|
+
notes?: string | null;
|
|
5217
|
+
product_category_id?: string | null;
|
|
5218
|
+
product_id?: string | null;
|
|
5219
|
+
updated_at?: string;
|
|
5220
|
+
valid_from?: string | null;
|
|
5221
|
+
valid_until?: string | null;
|
|
5222
|
+
};
|
|
5223
|
+
Update: {
|
|
5224
|
+
created_at?: string;
|
|
5225
|
+
currency?: string;
|
|
5226
|
+
customer_id?: string;
|
|
5227
|
+
discount_type?: string;
|
|
5228
|
+
discount_value?: number;
|
|
5229
|
+
id?: string;
|
|
5230
|
+
min_quantity?: number;
|
|
5231
|
+
notes?: string | null;
|
|
5232
|
+
product_category_id?: string | null;
|
|
5233
|
+
product_id?: string | null;
|
|
5234
|
+
updated_at?: string;
|
|
5235
|
+
valid_from?: string | null;
|
|
5236
|
+
valid_until?: string | null;
|
|
5237
|
+
};
|
|
5238
|
+
Relationships: [{
|
|
5239
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
5240
|
+
columns: ["customer_id"];
|
|
5241
|
+
isOneToOne: false;
|
|
5242
|
+
referencedRelation: "customers";
|
|
5243
|
+
referencedColumns: ["id"];
|
|
5244
|
+
}, {
|
|
5245
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
5246
|
+
columns: ["product_category_id"];
|
|
5247
|
+
isOneToOne: false;
|
|
5248
|
+
referencedRelation: "product_categories";
|
|
5249
|
+
referencedColumns: ["id"];
|
|
5250
|
+
}, {
|
|
5251
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
5252
|
+
columns: ["product_id"];
|
|
5253
|
+
isOneToOne: false;
|
|
5254
|
+
referencedRelation: "products";
|
|
5255
|
+
referencedColumns: ["id"];
|
|
5256
|
+
}];
|
|
5257
|
+
};
|
|
5015
5258
|
locations: {
|
|
5016
5259
|
Row: {
|
|
5017
5260
|
created_at: string;
|
|
@@ -5519,6 +5762,273 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5519
5762
|
referencedColumns: ["id"];
|
|
5520
5763
|
}];
|
|
5521
5764
|
};
|
|
5765
|
+
nmbrs_component_mapping: {
|
|
5766
|
+
Row: {
|
|
5767
|
+
created_at: string;
|
|
5768
|
+
id: string;
|
|
5769
|
+
source_kind: string;
|
|
5770
|
+
source_value: string | null;
|
|
5771
|
+
updated_at: string;
|
|
5772
|
+
wage_code: string;
|
|
5773
|
+
};
|
|
5774
|
+
Insert: {
|
|
5775
|
+
created_at?: string;
|
|
5776
|
+
id?: string;
|
|
5777
|
+
source_kind: string;
|
|
5778
|
+
source_value?: string | null;
|
|
5779
|
+
updated_at?: string;
|
|
5780
|
+
wage_code: string;
|
|
5781
|
+
};
|
|
5782
|
+
Update: {
|
|
5783
|
+
created_at?: string;
|
|
5784
|
+
id?: string;
|
|
5785
|
+
source_kind?: string;
|
|
5786
|
+
source_value?: string | null;
|
|
5787
|
+
updated_at?: string;
|
|
5788
|
+
wage_code?: string;
|
|
5789
|
+
};
|
|
5790
|
+
Relationships: [{
|
|
5791
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
5792
|
+
columns: ["wage_code"];
|
|
5793
|
+
isOneToOne: false;
|
|
5794
|
+
referencedRelation: "nmbrs_wage_components";
|
|
5795
|
+
referencedColumns: ["code"];
|
|
5796
|
+
}];
|
|
5797
|
+
};
|
|
5798
|
+
nmbrs_employee_mapping: {
|
|
5799
|
+
Row: {
|
|
5800
|
+
active_from: string | null;
|
|
5801
|
+
active_to: string | null;
|
|
5802
|
+
contract_hours_per_week: number | null;
|
|
5803
|
+
created_at: string;
|
|
5804
|
+
hourly_wage: number | null;
|
|
5805
|
+
id: string;
|
|
5806
|
+
monteur_id: string;
|
|
5807
|
+
nmbrs_company_code: string | null;
|
|
5808
|
+
nmbrs_employee_number: string;
|
|
5809
|
+
updated_at: string;
|
|
5810
|
+
};
|
|
5811
|
+
Insert: {
|
|
5812
|
+
active_from?: string | null;
|
|
5813
|
+
active_to?: string | null;
|
|
5814
|
+
contract_hours_per_week?: number | null;
|
|
5815
|
+
created_at?: string;
|
|
5816
|
+
hourly_wage?: number | null;
|
|
5817
|
+
id?: string;
|
|
5818
|
+
monteur_id: string;
|
|
5819
|
+
nmbrs_company_code?: string | null;
|
|
5820
|
+
nmbrs_employee_number: string;
|
|
5821
|
+
updated_at?: string;
|
|
5822
|
+
};
|
|
5823
|
+
Update: {
|
|
5824
|
+
active_from?: string | null;
|
|
5825
|
+
active_to?: string | null;
|
|
5826
|
+
contract_hours_per_week?: number | null;
|
|
5827
|
+
created_at?: string;
|
|
5828
|
+
hourly_wage?: number | null;
|
|
5829
|
+
id?: string;
|
|
5830
|
+
monteur_id?: string;
|
|
5831
|
+
nmbrs_company_code?: string | null;
|
|
5832
|
+
nmbrs_employee_number?: string;
|
|
5833
|
+
updated_at?: string;
|
|
5834
|
+
};
|
|
5835
|
+
Relationships: [{
|
|
5836
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
5837
|
+
columns: ["monteur_id"];
|
|
5838
|
+
isOneToOne: true;
|
|
5839
|
+
referencedRelation: "monteurs";
|
|
5840
|
+
referencedColumns: ["id"];
|
|
5841
|
+
}];
|
|
5842
|
+
};
|
|
5843
|
+
nmbrs_export_lines: {
|
|
5844
|
+
Row: {
|
|
5845
|
+
amount: number;
|
|
5846
|
+
created_at: string;
|
|
5847
|
+
entry_date: string;
|
|
5848
|
+
hours: number;
|
|
5849
|
+
id: string;
|
|
5850
|
+
monteur_id: string;
|
|
5851
|
+
nmbrs_employee_number: string | null;
|
|
5852
|
+
notes: string | null;
|
|
5853
|
+
run_id: string;
|
|
5854
|
+
source_kind: string | null;
|
|
5855
|
+
source_ref_id: string | null;
|
|
5856
|
+
updated_at: string;
|
|
5857
|
+
wage_code: string;
|
|
5858
|
+
};
|
|
5859
|
+
Insert: {
|
|
5860
|
+
amount?: number;
|
|
5861
|
+
created_at?: string;
|
|
5862
|
+
entry_date: string;
|
|
5863
|
+
hours?: number;
|
|
5864
|
+
id?: string;
|
|
5865
|
+
monteur_id: string;
|
|
5866
|
+
nmbrs_employee_number?: string | null;
|
|
5867
|
+
notes?: string | null;
|
|
5868
|
+
run_id: string;
|
|
5869
|
+
source_kind?: string | null;
|
|
5870
|
+
source_ref_id?: string | null;
|
|
5871
|
+
updated_at?: string;
|
|
5872
|
+
wage_code: string;
|
|
5873
|
+
};
|
|
5874
|
+
Update: {
|
|
5875
|
+
amount?: number;
|
|
5876
|
+
created_at?: string;
|
|
5877
|
+
entry_date?: string;
|
|
5878
|
+
hours?: number;
|
|
5879
|
+
id?: string;
|
|
5880
|
+
monteur_id?: string;
|
|
5881
|
+
nmbrs_employee_number?: string | null;
|
|
5882
|
+
notes?: string | null;
|
|
5883
|
+
run_id?: string;
|
|
5884
|
+
source_kind?: string | null;
|
|
5885
|
+
source_ref_id?: string | null;
|
|
5886
|
+
updated_at?: string;
|
|
5887
|
+
wage_code?: string;
|
|
5888
|
+
};
|
|
5889
|
+
Relationships: [{
|
|
5890
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
5891
|
+
columns: ["monteur_id"];
|
|
5892
|
+
isOneToOne: false;
|
|
5893
|
+
referencedRelation: "monteurs";
|
|
5894
|
+
referencedColumns: ["id"];
|
|
5895
|
+
}, {
|
|
5896
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
5897
|
+
columns: ["run_id"];
|
|
5898
|
+
isOneToOne: false;
|
|
5899
|
+
referencedRelation: "nmbrs_export_runs";
|
|
5900
|
+
referencedColumns: ["id"];
|
|
5901
|
+
}, {
|
|
5902
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
5903
|
+
columns: ["wage_code"];
|
|
5904
|
+
isOneToOne: false;
|
|
5905
|
+
referencedRelation: "nmbrs_wage_components";
|
|
5906
|
+
referencedColumns: ["code"];
|
|
5907
|
+
}];
|
|
5908
|
+
};
|
|
5909
|
+
nmbrs_export_runs: {
|
|
5910
|
+
Row: {
|
|
5911
|
+
created_at: string;
|
|
5912
|
+
file_name: string | null;
|
|
5913
|
+
generated_at: string;
|
|
5914
|
+
generated_by: string | null;
|
|
5915
|
+
id: string;
|
|
5916
|
+
notes: string | null;
|
|
5917
|
+
period_end: string;
|
|
5918
|
+
period_label: string;
|
|
5919
|
+
period_start: string;
|
|
5920
|
+
status: string;
|
|
5921
|
+
total_hours: number;
|
|
5922
|
+
total_lines: number;
|
|
5923
|
+
updated_at: string;
|
|
5924
|
+
};
|
|
5925
|
+
Insert: {
|
|
5926
|
+
created_at?: string;
|
|
5927
|
+
file_name?: string | null;
|
|
5928
|
+
generated_at?: string;
|
|
5929
|
+
generated_by?: string | null;
|
|
5930
|
+
id?: string;
|
|
5931
|
+
notes?: string | null;
|
|
5932
|
+
period_end: string;
|
|
5933
|
+
period_label: string;
|
|
5934
|
+
period_start: string;
|
|
5935
|
+
status?: string;
|
|
5936
|
+
total_hours?: number;
|
|
5937
|
+
total_lines?: number;
|
|
5938
|
+
updated_at?: string;
|
|
5939
|
+
};
|
|
5940
|
+
Update: {
|
|
5941
|
+
created_at?: string;
|
|
5942
|
+
file_name?: string | null;
|
|
5943
|
+
generated_at?: string;
|
|
5944
|
+
generated_by?: string | null;
|
|
5945
|
+
id?: string;
|
|
5946
|
+
notes?: string | null;
|
|
5947
|
+
period_end?: string;
|
|
5948
|
+
period_label?: string;
|
|
5949
|
+
period_start?: string;
|
|
5950
|
+
status?: string;
|
|
5951
|
+
total_hours?: number;
|
|
5952
|
+
total_lines?: number;
|
|
5953
|
+
updated_at?: string;
|
|
5954
|
+
};
|
|
5955
|
+
Relationships: [];
|
|
5956
|
+
};
|
|
5957
|
+
nmbrs_settings: {
|
|
5958
|
+
Row: {
|
|
5959
|
+
created_at: string;
|
|
5960
|
+
default_company_code: string | null;
|
|
5961
|
+
id: boolean;
|
|
5962
|
+
include_travel: boolean;
|
|
5963
|
+
overtime_threshold_daily: number;
|
|
5964
|
+
overtime_threshold_weekly: number;
|
|
5965
|
+
period_type: string;
|
|
5966
|
+
updated_at: string;
|
|
5967
|
+
updated_by: string | null;
|
|
5968
|
+
week_start_day: number;
|
|
5969
|
+
};
|
|
5970
|
+
Insert: {
|
|
5971
|
+
created_at?: string;
|
|
5972
|
+
default_company_code?: string | null;
|
|
5973
|
+
id?: boolean;
|
|
5974
|
+
include_travel?: boolean;
|
|
5975
|
+
overtime_threshold_daily?: number;
|
|
5976
|
+
overtime_threshold_weekly?: number;
|
|
5977
|
+
period_type?: string;
|
|
5978
|
+
updated_at?: string;
|
|
5979
|
+
updated_by?: string | null;
|
|
5980
|
+
week_start_day?: number;
|
|
5981
|
+
};
|
|
5982
|
+
Update: {
|
|
5983
|
+
created_at?: string;
|
|
5984
|
+
default_company_code?: string | null;
|
|
5985
|
+
id?: boolean;
|
|
5986
|
+
include_travel?: boolean;
|
|
5987
|
+
overtime_threshold_daily?: number;
|
|
5988
|
+
overtime_threshold_weekly?: number;
|
|
5989
|
+
period_type?: string;
|
|
5990
|
+
updated_at?: string;
|
|
5991
|
+
updated_by?: string | null;
|
|
5992
|
+
week_start_day?: number;
|
|
5993
|
+
};
|
|
5994
|
+
Relationships: [];
|
|
5995
|
+
};
|
|
5996
|
+
nmbrs_wage_components: {
|
|
5997
|
+
Row: {
|
|
5998
|
+
category: string;
|
|
5999
|
+
code: string;
|
|
6000
|
+
created_at: string;
|
|
6001
|
+
id: string;
|
|
6002
|
+
is_active: boolean;
|
|
6003
|
+
label: string;
|
|
6004
|
+
sort_order: number;
|
|
6005
|
+
unit: string;
|
|
6006
|
+
updated_at: string;
|
|
6007
|
+
};
|
|
6008
|
+
Insert: {
|
|
6009
|
+
category: string;
|
|
6010
|
+
code: string;
|
|
6011
|
+
created_at?: string;
|
|
6012
|
+
id?: string;
|
|
6013
|
+
is_active?: boolean;
|
|
6014
|
+
label: string;
|
|
6015
|
+
sort_order?: number;
|
|
6016
|
+
unit: string;
|
|
6017
|
+
updated_at?: string;
|
|
6018
|
+
};
|
|
6019
|
+
Update: {
|
|
6020
|
+
category?: string;
|
|
6021
|
+
code?: string;
|
|
6022
|
+
created_at?: string;
|
|
6023
|
+
id?: string;
|
|
6024
|
+
is_active?: boolean;
|
|
6025
|
+
label?: string;
|
|
6026
|
+
sort_order?: number;
|
|
6027
|
+
unit?: string;
|
|
6028
|
+
updated_at?: string;
|
|
6029
|
+
};
|
|
6030
|
+
Relationships: [];
|
|
6031
|
+
};
|
|
5522
6032
|
notifications: {
|
|
5523
6033
|
Row: {
|
|
5524
6034
|
created_at: string;
|
|
@@ -5743,6 +6253,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5743
6253
|
id: string;
|
|
5744
6254
|
items: import("./types").Json;
|
|
5745
6255
|
notes: string | null;
|
|
6256
|
+
order_number: string | null;
|
|
5746
6257
|
recipient_id: string;
|
|
5747
6258
|
total_amount: number;
|
|
5748
6259
|
};
|
|
@@ -5756,6 +6267,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5756
6267
|
id?: string;
|
|
5757
6268
|
items?: import("./types").Json;
|
|
5758
6269
|
notes?: string | null;
|
|
6270
|
+
order_number?: string | null;
|
|
5759
6271
|
recipient_id: string;
|
|
5760
6272
|
total_amount?: number;
|
|
5761
6273
|
};
|
|
@@ -5769,6 +6281,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5769
6281
|
id?: string;
|
|
5770
6282
|
items?: import("./types").Json;
|
|
5771
6283
|
notes?: string | null;
|
|
6284
|
+
order_number?: string | null;
|
|
5772
6285
|
recipient_id?: string;
|
|
5773
6286
|
total_amount?: number;
|
|
5774
6287
|
};
|
|
@@ -7367,6 +7880,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
7367
7880
|
};
|
|
7368
7881
|
Relationships: [];
|
|
7369
7882
|
};
|
|
7883
|
+
stock_import_runs: {
|
|
7884
|
+
Row: {
|
|
7885
|
+
connection_id: string | null;
|
|
7886
|
+
created_at: string;
|
|
7887
|
+
created_rows: number;
|
|
7888
|
+
errors: import("./types").Json;
|
|
7889
|
+
filename: string | null;
|
|
7890
|
+
id: string;
|
|
7891
|
+
mutations: import("./types").Json;
|
|
7892
|
+
skipped_rows: number;
|
|
7893
|
+
total_rows: number;
|
|
7894
|
+
updated_rows: number;
|
|
7895
|
+
user_id: string;
|
|
7896
|
+
};
|
|
7897
|
+
Insert: {
|
|
7898
|
+
connection_id?: string | null;
|
|
7899
|
+
created_at?: string;
|
|
7900
|
+
created_rows?: number;
|
|
7901
|
+
errors?: import("./types").Json;
|
|
7902
|
+
filename?: string | null;
|
|
7903
|
+
id?: string;
|
|
7904
|
+
mutations?: import("./types").Json;
|
|
7905
|
+
skipped_rows?: number;
|
|
7906
|
+
total_rows?: number;
|
|
7907
|
+
updated_rows?: number;
|
|
7908
|
+
user_id: string;
|
|
7909
|
+
};
|
|
7910
|
+
Update: {
|
|
7911
|
+
connection_id?: string | null;
|
|
7912
|
+
created_at?: string;
|
|
7913
|
+
created_rows?: number;
|
|
7914
|
+
errors?: import("./types").Json;
|
|
7915
|
+
filename?: string | null;
|
|
7916
|
+
id?: string;
|
|
7917
|
+
mutations?: import("./types").Json;
|
|
7918
|
+
skipped_rows?: number;
|
|
7919
|
+
total_rows?: number;
|
|
7920
|
+
updated_rows?: number;
|
|
7921
|
+
user_id?: string;
|
|
7922
|
+
};
|
|
7923
|
+
Relationships: [];
|
|
7924
|
+
};
|
|
7370
7925
|
stock_mutation_log: {
|
|
7371
7926
|
Row: {
|
|
7372
7927
|
connection_id: string | null;
|
|
@@ -8998,6 +9553,44 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
8998
9553
|
};
|
|
8999
9554
|
Relationships: [];
|
|
9000
9555
|
};
|
|
9556
|
+
floriday_customer_discounts: {
|
|
9557
|
+
Row: {
|
|
9558
|
+
base_price: number | null;
|
|
9559
|
+
buyer_organization_id: string | null;
|
|
9560
|
+
currency: string | null;
|
|
9561
|
+
discount_type: string | null;
|
|
9562
|
+
discount_value: number | null;
|
|
9563
|
+
min_quantity: number | null;
|
|
9564
|
+
net_price: number | null;
|
|
9565
|
+
product_group_id: string | null;
|
|
9566
|
+
raw: import("./types").Json | null;
|
|
9567
|
+
source: string | null;
|
|
9568
|
+
source_id: string | null;
|
|
9569
|
+
trade_item_id: string | null;
|
|
9570
|
+
valid_from: string | null;
|
|
9571
|
+
valid_until: string | null;
|
|
9572
|
+
};
|
|
9573
|
+
Relationships: [];
|
|
9574
|
+
};
|
|
9575
|
+
local_customer_discounts: {
|
|
9576
|
+
Row: {
|
|
9577
|
+
base_price: number | null;
|
|
9578
|
+
currency: string | null;
|
|
9579
|
+
customer_id: string | null;
|
|
9580
|
+
discount_type: string | null;
|
|
9581
|
+
discount_value: number | null;
|
|
9582
|
+
min_quantity: number | null;
|
|
9583
|
+
net_price: number | null;
|
|
9584
|
+
product_category_id: string | null;
|
|
9585
|
+
product_id: string | null;
|
|
9586
|
+
product_name: string | null;
|
|
9587
|
+
source: string | null;
|
|
9588
|
+
source_id: string | null;
|
|
9589
|
+
valid_from: string | null;
|
|
9590
|
+
valid_until: string | null;
|
|
9591
|
+
};
|
|
9592
|
+
Relationships: [];
|
|
9593
|
+
};
|
|
9001
9594
|
manufacture_product_possible_stock_view: {
|
|
9002
9595
|
Row: {
|
|
9003
9596
|
component_count: number | null;
|
|
@@ -9353,12 +9946,40 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9353
9946
|
order_number: string;
|
|
9354
9947
|
}[];
|
|
9355
9948
|
};
|
|
9949
|
+
backfill_open_order_reservations: {
|
|
9950
|
+
Args: never;
|
|
9951
|
+
Returns: {
|
|
9952
|
+
processed_items: number;
|
|
9953
|
+
}[];
|
|
9954
|
+
};
|
|
9356
9955
|
call_exact_route: {
|
|
9357
9956
|
Args: {
|
|
9358
9957
|
path: string;
|
|
9359
9958
|
};
|
|
9360
9959
|
Returns: number;
|
|
9361
9960
|
};
|
|
9961
|
+
check_offer_product_available_stock: {
|
|
9962
|
+
Args: {
|
|
9963
|
+
p_campaign_product_id: string;
|
|
9964
|
+
p_code: string;
|
|
9965
|
+
p_needed_qty?: number;
|
|
9966
|
+
p_product_name?: string;
|
|
9967
|
+
};
|
|
9968
|
+
Returns: import("./types").Json;
|
|
9969
|
+
};
|
|
9970
|
+
check_trade_item_available_stock: {
|
|
9971
|
+
Args: {
|
|
9972
|
+
p_connection_id?: string;
|
|
9973
|
+
p_context?: string;
|
|
9974
|
+
p_needed_qty?: number;
|
|
9975
|
+
p_order_id?: string;
|
|
9976
|
+
p_order_item_id?: string;
|
|
9977
|
+
p_owner_id?: string;
|
|
9978
|
+
p_product_name?: string;
|
|
9979
|
+
p_trade_item_key: string;
|
|
9980
|
+
};
|
|
9981
|
+
Returns: import("./types").Json;
|
|
9982
|
+
};
|
|
9362
9983
|
cleanup_old_bookings: {
|
|
9363
9984
|
Args: never;
|
|
9364
9985
|
Returns: number;
|
|
@@ -9443,6 +10064,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9443
10064
|
status: string;
|
|
9444
10065
|
}[];
|
|
9445
10066
|
};
|
|
10067
|
+
ensure_trade_item_stock_row: {
|
|
10068
|
+
Args: {
|
|
10069
|
+
p_key: string;
|
|
10070
|
+
};
|
|
10071
|
+
Returns: undefined;
|
|
10072
|
+
};
|
|
9446
10073
|
ensure_user_tenant: {
|
|
9447
10074
|
Args: never;
|
|
9448
10075
|
Returns: string;
|
|
@@ -9480,6 +10107,31 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9480
10107
|
};
|
|
9481
10108
|
Returns: boolean;
|
|
9482
10109
|
};
|
|
10110
|
+
find_trade_item_key: {
|
|
10111
|
+
Args: {
|
|
10112
|
+
p_barcode: string;
|
|
10113
|
+
p_name: string;
|
|
10114
|
+
p_product_id: string;
|
|
10115
|
+
};
|
|
10116
|
+
Returns: string;
|
|
10117
|
+
};
|
|
10118
|
+
floriday_effective_price: {
|
|
10119
|
+
Args: {
|
|
10120
|
+
_buyer_id: string;
|
|
10121
|
+
_on_date?: string;
|
|
10122
|
+
_quantity?: number;
|
|
10123
|
+
_trade_item_id: string;
|
|
10124
|
+
};
|
|
10125
|
+
Returns: {
|
|
10126
|
+
base_price: number;
|
|
10127
|
+
currency: string;
|
|
10128
|
+
discount_type: string;
|
|
10129
|
+
discount_value: number;
|
|
10130
|
+
net_price: number;
|
|
10131
|
+
source: string;
|
|
10132
|
+
source_id: string;
|
|
10133
|
+
}[];
|
|
10134
|
+
};
|
|
9483
10135
|
format_cart_number: {
|
|
9484
10136
|
Args: {
|
|
9485
10137
|
p_pick_date: string;
|
|
@@ -9500,6 +10152,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9500
10152
|
preferred_warehouse_name: string;
|
|
9501
10153
|
}[];
|
|
9502
10154
|
};
|
|
10155
|
+
get_active_floriday_context: {
|
|
10156
|
+
Args: never;
|
|
10157
|
+
Returns: {
|
|
10158
|
+
connection_id: string;
|
|
10159
|
+
user_id: string;
|
|
10160
|
+
}[];
|
|
10161
|
+
};
|
|
9503
10162
|
get_active_twinfield_public: {
|
|
9504
10163
|
Args: never;
|
|
9505
10164
|
Returns: {
|
|
@@ -9602,6 +10261,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9602
10261
|
};
|
|
9603
10262
|
Returns: import("./types").Json;
|
|
9604
10263
|
};
|
|
10264
|
+
get_offer_recipient_by_code: {
|
|
10265
|
+
Args: {
|
|
10266
|
+
p_code: string;
|
|
10267
|
+
};
|
|
10268
|
+
Returns: {
|
|
10269
|
+
campaign_id: string;
|
|
10270
|
+
clicked_at: string;
|
|
10271
|
+
customer_id: string;
|
|
10272
|
+
id: string;
|
|
10273
|
+
ordered_at: string;
|
|
10274
|
+
}[];
|
|
10275
|
+
};
|
|
9605
10276
|
get_or_assign_floriday_order_number: {
|
|
9606
10277
|
Args: {
|
|
9607
10278
|
p_floriday_id: string;
|
|
@@ -9654,12 +10325,47 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9654
10325
|
Args: never;
|
|
9655
10326
|
Returns: boolean;
|
|
9656
10327
|
};
|
|
10328
|
+
local_effective_price: {
|
|
10329
|
+
Args: {
|
|
10330
|
+
_customer_id: string;
|
|
10331
|
+
_on_date?: string;
|
|
10332
|
+
_product_id: string;
|
|
10333
|
+
_quantity?: number;
|
|
10334
|
+
};
|
|
10335
|
+
Returns: {
|
|
10336
|
+
currency: string;
|
|
10337
|
+
discount_type: string;
|
|
10338
|
+
discount_value: number;
|
|
10339
|
+
net_price: number;
|
|
10340
|
+
source: string;
|
|
10341
|
+
source_id: string;
|
|
10342
|
+
}[];
|
|
10343
|
+
};
|
|
10344
|
+
mark_offer_clicked: {
|
|
10345
|
+
Args: {
|
|
10346
|
+
p_code: string;
|
|
10347
|
+
};
|
|
10348
|
+
Returns: undefined;
|
|
10349
|
+
};
|
|
10350
|
+
mark_offer_ordered: {
|
|
10351
|
+
Args: {
|
|
10352
|
+
p_code: string;
|
|
10353
|
+
};
|
|
10354
|
+
Returns: undefined;
|
|
10355
|
+
};
|
|
9657
10356
|
next_order_number: {
|
|
9658
10357
|
Args: {
|
|
9659
10358
|
p_prefix: string;
|
|
9660
10359
|
};
|
|
9661
10360
|
Returns: string;
|
|
9662
10361
|
};
|
|
10362
|
+
next_order_number_for_date: {
|
|
10363
|
+
Args: {
|
|
10364
|
+
p_created_at?: string;
|
|
10365
|
+
p_prefix: string;
|
|
10366
|
+
};
|
|
10367
|
+
Returns: string;
|
|
10368
|
+
};
|
|
9663
10369
|
next_work_order_number: {
|
|
9664
10370
|
Args: {
|
|
9665
10371
|
p_parent_work_order_id?: string;
|
|
@@ -9673,6 +10379,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9673
10379
|
};
|
|
9674
10380
|
Returns: string;
|
|
9675
10381
|
};
|
|
10382
|
+
offer_recipient_matches: {
|
|
10383
|
+
Args: {
|
|
10384
|
+
_campaign_id: string;
|
|
10385
|
+
_customer_id: string;
|
|
10386
|
+
_recipient_id: string;
|
|
10387
|
+
};
|
|
10388
|
+
Returns: boolean;
|
|
10389
|
+
};
|
|
10390
|
+
order_number_prefix: {
|
|
10391
|
+
Args: {
|
|
10392
|
+
p_custom_fields?: import("./types").Json;
|
|
10393
|
+
p_order_source: string;
|
|
10394
|
+
};
|
|
10395
|
+
Returns: string;
|
|
10396
|
+
};
|
|
9676
10397
|
pickstation_get_orders_raw: {
|
|
9677
10398
|
Args: never;
|
|
9678
10399
|
Returns: import("./types").Json;
|
|
@@ -9700,6 +10421,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9700
10421
|
};
|
|
9701
10422
|
Returns: undefined;
|
|
9702
10423
|
};
|
|
10424
|
+
promote_trade_item_key: {
|
|
10425
|
+
Args: {
|
|
10426
|
+
p_new: string;
|
|
10427
|
+
p_old: string;
|
|
10428
|
+
};
|
|
10429
|
+
Returns: undefined;
|
|
10430
|
+
};
|
|
10431
|
+
refresh_external_customers_grouped: {
|
|
10432
|
+
Args: never;
|
|
10433
|
+
Returns: undefined;
|
|
10434
|
+
};
|
|
9703
10435
|
refresh_floricode_derived_code_lists: {
|
|
9704
10436
|
Args: never;
|
|
9705
10437
|
Returns: {
|