@flowselections/floriday-klanten-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/klanten/GroupedKlantDetail.js +1 -1
- package/dist-lib/components/klanten/KlantDetail.js +1 -1
- package/dist-lib/components/klanten/KlantenOverzicht.js +1 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +227 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +227 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +227 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +235 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/accounting.functions.d.ts +681 -0
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +227 -0
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.d.ts +1589 -0
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/delivery-locations.functions.d.ts +908 -0
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +908 -0
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2772,6 +2772,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
2772
2772
|
};
|
|
2773
2773
|
floricode_sync_state: {
|
|
2774
2774
|
Row: {
|
|
2775
|
+
cursor_skip: number;
|
|
2775
2776
|
error_message: string | null;
|
|
2776
2777
|
last_change_date_time: string | null;
|
|
2777
2778
|
last_sequence_number: number;
|
|
@@ -2781,6 +2782,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
2781
2782
|
updated_at: string;
|
|
2782
2783
|
};
|
|
2783
2784
|
Insert: {
|
|
2785
|
+
cursor_skip?: number;
|
|
2784
2786
|
error_message?: string | null;
|
|
2785
2787
|
last_change_date_time?: string | null;
|
|
2786
2788
|
last_sequence_number?: number;
|
|
@@ -2790,6 +2792,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
2790
2792
|
updated_at?: string;
|
|
2791
2793
|
};
|
|
2792
2794
|
Update: {
|
|
2795
|
+
cursor_skip?: number;
|
|
2793
2796
|
error_message?: string | null;
|
|
2794
2797
|
last_change_date_time?: string | null;
|
|
2795
2798
|
last_sequence_number?: number;
|
|
@@ -5137,6 +5140,93 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
5137
5140
|
};
|
|
5138
5141
|
Relationships: [];
|
|
5139
5142
|
};
|
|
5143
|
+
manufacture_product_components: {
|
|
5144
|
+
Row: {
|
|
5145
|
+
component_type: string;
|
|
5146
|
+
created_at: string;
|
|
5147
|
+
id: string;
|
|
5148
|
+
manufacture_product_id: string;
|
|
5149
|
+
product_group_id: string | null;
|
|
5150
|
+
quantity: number;
|
|
5151
|
+
trade_item_id: string | null;
|
|
5152
|
+
unit: string;
|
|
5153
|
+
};
|
|
5154
|
+
Insert: {
|
|
5155
|
+
component_type: string;
|
|
5156
|
+
created_at?: string;
|
|
5157
|
+
id?: string;
|
|
5158
|
+
manufacture_product_id: string;
|
|
5159
|
+
product_group_id?: string | null;
|
|
5160
|
+
quantity?: number;
|
|
5161
|
+
trade_item_id?: string | null;
|
|
5162
|
+
unit?: string;
|
|
5163
|
+
};
|
|
5164
|
+
Update: {
|
|
5165
|
+
component_type?: string;
|
|
5166
|
+
created_at?: string;
|
|
5167
|
+
id?: string;
|
|
5168
|
+
manufacture_product_id?: string;
|
|
5169
|
+
product_group_id?: string | null;
|
|
5170
|
+
quantity?: number;
|
|
5171
|
+
trade_item_id?: string | null;
|
|
5172
|
+
unit?: string;
|
|
5173
|
+
};
|
|
5174
|
+
Relationships: [{
|
|
5175
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5176
|
+
columns: ["manufacture_product_id"];
|
|
5177
|
+
isOneToOne: false;
|
|
5178
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
5179
|
+
referencedColumns: ["manufacture_product_id"];
|
|
5180
|
+
}, {
|
|
5181
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5182
|
+
columns: ["manufacture_product_id"];
|
|
5183
|
+
isOneToOne: false;
|
|
5184
|
+
referencedRelation: "manufacture_products";
|
|
5185
|
+
referencedColumns: ["id"];
|
|
5186
|
+
}, {
|
|
5187
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
5188
|
+
columns: ["product_group_id"];
|
|
5189
|
+
isOneToOne: false;
|
|
5190
|
+
referencedRelation: "product_groups";
|
|
5191
|
+
referencedColumns: ["id"];
|
|
5192
|
+
}];
|
|
5193
|
+
};
|
|
5194
|
+
manufacture_products: {
|
|
5195
|
+
Row: {
|
|
5196
|
+
created_at: string;
|
|
5197
|
+
description: string | null;
|
|
5198
|
+
id: string;
|
|
5199
|
+
is_active: boolean;
|
|
5200
|
+
name: string;
|
|
5201
|
+
produced_stock: number;
|
|
5202
|
+
product_code: string;
|
|
5203
|
+
tenant_id: string;
|
|
5204
|
+
updated_at: string;
|
|
5205
|
+
};
|
|
5206
|
+
Insert: {
|
|
5207
|
+
created_at?: string;
|
|
5208
|
+
description?: string | null;
|
|
5209
|
+
id?: string;
|
|
5210
|
+
is_active?: boolean;
|
|
5211
|
+
name: string;
|
|
5212
|
+
produced_stock?: number;
|
|
5213
|
+
product_code: string;
|
|
5214
|
+
tenant_id: string;
|
|
5215
|
+
updated_at?: string;
|
|
5216
|
+
};
|
|
5217
|
+
Update: {
|
|
5218
|
+
created_at?: string;
|
|
5219
|
+
description?: string | null;
|
|
5220
|
+
id?: string;
|
|
5221
|
+
is_active?: boolean;
|
|
5222
|
+
name?: string;
|
|
5223
|
+
produced_stock?: number;
|
|
5224
|
+
product_code?: string;
|
|
5225
|
+
tenant_id?: string;
|
|
5226
|
+
updated_at?: string;
|
|
5227
|
+
};
|
|
5228
|
+
Relationships: [];
|
|
5229
|
+
};
|
|
5140
5230
|
monteurs: {
|
|
5141
5231
|
Row: {
|
|
5142
5232
|
avatar_url: string | null;
|
|
@@ -6097,6 +6187,66 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
6097
6187
|
};
|
|
6098
6188
|
Relationships: [];
|
|
6099
6189
|
};
|
|
6190
|
+
product_group_items: {
|
|
6191
|
+
Row: {
|
|
6192
|
+
created_at: string;
|
|
6193
|
+
id: string;
|
|
6194
|
+
product_group_id: string;
|
|
6195
|
+
quantity: number;
|
|
6196
|
+
trade_item_id: string;
|
|
6197
|
+
};
|
|
6198
|
+
Insert: {
|
|
6199
|
+
created_at?: string;
|
|
6200
|
+
id?: string;
|
|
6201
|
+
product_group_id: string;
|
|
6202
|
+
quantity?: number;
|
|
6203
|
+
trade_item_id: string;
|
|
6204
|
+
};
|
|
6205
|
+
Update: {
|
|
6206
|
+
created_at?: string;
|
|
6207
|
+
id?: string;
|
|
6208
|
+
product_group_id?: string;
|
|
6209
|
+
quantity?: number;
|
|
6210
|
+
trade_item_id?: string;
|
|
6211
|
+
};
|
|
6212
|
+
Relationships: [{
|
|
6213
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
6214
|
+
columns: ["product_group_id"];
|
|
6215
|
+
isOneToOne: false;
|
|
6216
|
+
referencedRelation: "product_groups";
|
|
6217
|
+
referencedColumns: ["id"];
|
|
6218
|
+
}];
|
|
6219
|
+
};
|
|
6220
|
+
product_groups: {
|
|
6221
|
+
Row: {
|
|
6222
|
+
created_at: string;
|
|
6223
|
+
description: string | null;
|
|
6224
|
+
id: string;
|
|
6225
|
+
is_active: boolean;
|
|
6226
|
+
name: string;
|
|
6227
|
+
tenant_id: string;
|
|
6228
|
+
updated_at: string;
|
|
6229
|
+
};
|
|
6230
|
+
Insert: {
|
|
6231
|
+
created_at?: string;
|
|
6232
|
+
description?: string | null;
|
|
6233
|
+
id?: string;
|
|
6234
|
+
is_active?: boolean;
|
|
6235
|
+
name: string;
|
|
6236
|
+
tenant_id: string;
|
|
6237
|
+
updated_at?: string;
|
|
6238
|
+
};
|
|
6239
|
+
Update: {
|
|
6240
|
+
created_at?: string;
|
|
6241
|
+
description?: string | null;
|
|
6242
|
+
id?: string;
|
|
6243
|
+
is_active?: boolean;
|
|
6244
|
+
name?: string;
|
|
6245
|
+
tenant_id?: string;
|
|
6246
|
+
updated_at?: string;
|
|
6247
|
+
};
|
|
6248
|
+
Relationships: [];
|
|
6249
|
+
};
|
|
6100
6250
|
products: {
|
|
6101
6251
|
Row: {
|
|
6102
6252
|
barcode: string | null;
|
|
@@ -7258,6 +7408,48 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
7258
7408
|
};
|
|
7259
7409
|
Relationships: [];
|
|
7260
7410
|
};
|
|
7411
|
+
trade_item_stock: {
|
|
7412
|
+
Row: {
|
|
7413
|
+
connection_id: string;
|
|
7414
|
+
created_at: string;
|
|
7415
|
+
id: string;
|
|
7416
|
+
incoming_stock: number;
|
|
7417
|
+
minimum_stock: number;
|
|
7418
|
+
notes: string | null;
|
|
7419
|
+
physical_stock: number;
|
|
7420
|
+
reserved_stock: number;
|
|
7421
|
+
trade_item_key: string;
|
|
7422
|
+
updated_at: string;
|
|
7423
|
+
user_id: string;
|
|
7424
|
+
};
|
|
7425
|
+
Insert: {
|
|
7426
|
+
connection_id: string;
|
|
7427
|
+
created_at?: string;
|
|
7428
|
+
id?: string;
|
|
7429
|
+
incoming_stock?: number;
|
|
7430
|
+
minimum_stock?: number;
|
|
7431
|
+
notes?: string | null;
|
|
7432
|
+
physical_stock?: number;
|
|
7433
|
+
reserved_stock?: number;
|
|
7434
|
+
trade_item_key: string;
|
|
7435
|
+
updated_at?: string;
|
|
7436
|
+
user_id: string;
|
|
7437
|
+
};
|
|
7438
|
+
Update: {
|
|
7439
|
+
connection_id?: string;
|
|
7440
|
+
created_at?: string;
|
|
7441
|
+
id?: string;
|
|
7442
|
+
incoming_stock?: number;
|
|
7443
|
+
minimum_stock?: number;
|
|
7444
|
+
notes?: string | null;
|
|
7445
|
+
physical_stock?: number;
|
|
7446
|
+
reserved_stock?: number;
|
|
7447
|
+
trade_item_key?: string;
|
|
7448
|
+
updated_at?: string;
|
|
7449
|
+
user_id?: string;
|
|
7450
|
+
};
|
|
7451
|
+
Relationships: [];
|
|
7452
|
+
};
|
|
7261
7453
|
twinfield_connections: {
|
|
7262
7454
|
Row: {
|
|
7263
7455
|
access_token: string | null;
|
|
@@ -8442,6 +8634,35 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
8442
8634
|
};
|
|
8443
8635
|
Relationships: [];
|
|
8444
8636
|
};
|
|
8637
|
+
manufacture_product_possible_stock_view: {
|
|
8638
|
+
Row: {
|
|
8639
|
+
component_count: number | null;
|
|
8640
|
+
manufacture_product_id: string | null;
|
|
8641
|
+
possible_stock: number | null;
|
|
8642
|
+
};
|
|
8643
|
+
Relationships: [];
|
|
8644
|
+
};
|
|
8645
|
+
product_group_stock_view: {
|
|
8646
|
+
Row: {
|
|
8647
|
+
item_count: number | null;
|
|
8648
|
+
product_group_id: string | null;
|
|
8649
|
+
total_stock: number | null;
|
|
8650
|
+
};
|
|
8651
|
+
Relationships: [{
|
|
8652
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
8653
|
+
columns: ["product_group_id"];
|
|
8654
|
+
isOneToOne: false;
|
|
8655
|
+
referencedRelation: "product_groups";
|
|
8656
|
+
referencedColumns: ["id"];
|
|
8657
|
+
}];
|
|
8658
|
+
};
|
|
8659
|
+
trade_item_stock_view: {
|
|
8660
|
+
Row: {
|
|
8661
|
+
stock: number | null;
|
|
8662
|
+
trade_item_id: string | null;
|
|
8663
|
+
};
|
|
8664
|
+
Relationships: [];
|
|
8665
|
+
};
|
|
8445
8666
|
v_external_customers_exact: {
|
|
8446
8667
|
Row: {
|
|
8447
8668
|
account_number: string | null;
|
|
@@ -9012,6 +9233,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
9012
9233
|
row_count: number;
|
|
9013
9234
|
}[];
|
|
9014
9235
|
};
|
|
9236
|
+
refresh_floricode_derived_for_product: {
|
|
9237
|
+
Args: {
|
|
9238
|
+
p_product_code: string;
|
|
9239
|
+
};
|
|
9240
|
+
Returns: number;
|
|
9241
|
+
};
|
|
9015
9242
|
reset_floriday_sync_cursor: {
|
|
9016
9243
|
Args: {
|
|
9017
9244
|
p_connection_id: string;
|
|
@@ -12066,6 +12293,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
|
|
|
12066
12293
|
};
|
|
12067
12294
|
floricode_sync_state: {
|
|
12068
12295
|
Row: {
|
|
12296
|
+
cursor_skip: number;
|
|
12069
12297
|
error_message: string | null;
|
|
12070
12298
|
last_change_date_time: string | null;
|
|
12071
12299
|
last_sequence_number: number;
|
|
@@ -12075,6 +12303,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
|
|
|
12075
12303
|
updated_at: string;
|
|
12076
12304
|
};
|
|
12077
12305
|
Insert: {
|
|
12306
|
+
cursor_skip?: number;
|
|
12078
12307
|
error_message?: string | null;
|
|
12079
12308
|
last_change_date_time?: string | null;
|
|
12080
12309
|
last_sequence_number?: number;
|
|
@@ -12084,6 +12313,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
|
|
|
12084
12313
|
updated_at?: string;
|
|
12085
12314
|
};
|
|
12086
12315
|
Update: {
|
|
12316
|
+
cursor_skip?: number;
|
|
12087
12317
|
error_message?: string | null;
|
|
12088
12318
|
last_change_date_time?: string | null;
|
|
12089
12319
|
last_sequence_number?: number;
|
|
@@ -14431,6 +14661,93 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
|
|
|
14431
14661
|
};
|
|
14432
14662
|
Relationships: [];
|
|
14433
14663
|
};
|
|
14664
|
+
manufacture_product_components: {
|
|
14665
|
+
Row: {
|
|
14666
|
+
component_type: string;
|
|
14667
|
+
created_at: string;
|
|
14668
|
+
id: string;
|
|
14669
|
+
manufacture_product_id: string;
|
|
14670
|
+
product_group_id: string | null;
|
|
14671
|
+
quantity: number;
|
|
14672
|
+
trade_item_id: string | null;
|
|
14673
|
+
unit: string;
|
|
14674
|
+
};
|
|
14675
|
+
Insert: {
|
|
14676
|
+
component_type: string;
|
|
14677
|
+
created_at?: string;
|
|
14678
|
+
id?: string;
|
|
14679
|
+
manufacture_product_id: string;
|
|
14680
|
+
product_group_id?: string | null;
|
|
14681
|
+
quantity?: number;
|
|
14682
|
+
trade_item_id?: string | null;
|
|
14683
|
+
unit?: string;
|
|
14684
|
+
};
|
|
14685
|
+
Update: {
|
|
14686
|
+
component_type?: string;
|
|
14687
|
+
created_at?: string;
|
|
14688
|
+
id?: string;
|
|
14689
|
+
manufacture_product_id?: string;
|
|
14690
|
+
product_group_id?: string | null;
|
|
14691
|
+
quantity?: number;
|
|
14692
|
+
trade_item_id?: string | null;
|
|
14693
|
+
unit?: string;
|
|
14694
|
+
};
|
|
14695
|
+
Relationships: [{
|
|
14696
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
14697
|
+
columns: ["manufacture_product_id"];
|
|
14698
|
+
isOneToOne: false;
|
|
14699
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
14700
|
+
referencedColumns: ["manufacture_product_id"];
|
|
14701
|
+
}, {
|
|
14702
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
14703
|
+
columns: ["manufacture_product_id"];
|
|
14704
|
+
isOneToOne: false;
|
|
14705
|
+
referencedRelation: "manufacture_products";
|
|
14706
|
+
referencedColumns: ["id"];
|
|
14707
|
+
}, {
|
|
14708
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
14709
|
+
columns: ["product_group_id"];
|
|
14710
|
+
isOneToOne: false;
|
|
14711
|
+
referencedRelation: "product_groups";
|
|
14712
|
+
referencedColumns: ["id"];
|
|
14713
|
+
}];
|
|
14714
|
+
};
|
|
14715
|
+
manufacture_products: {
|
|
14716
|
+
Row: {
|
|
14717
|
+
created_at: string;
|
|
14718
|
+
description: string | null;
|
|
14719
|
+
id: string;
|
|
14720
|
+
is_active: boolean;
|
|
14721
|
+
name: string;
|
|
14722
|
+
produced_stock: number;
|
|
14723
|
+
product_code: string;
|
|
14724
|
+
tenant_id: string;
|
|
14725
|
+
updated_at: string;
|
|
14726
|
+
};
|
|
14727
|
+
Insert: {
|
|
14728
|
+
created_at?: string;
|
|
14729
|
+
description?: string | null;
|
|
14730
|
+
id?: string;
|
|
14731
|
+
is_active?: boolean;
|
|
14732
|
+
name: string;
|
|
14733
|
+
produced_stock?: number;
|
|
14734
|
+
product_code: string;
|
|
14735
|
+
tenant_id: string;
|
|
14736
|
+
updated_at?: string;
|
|
14737
|
+
};
|
|
14738
|
+
Update: {
|
|
14739
|
+
created_at?: string;
|
|
14740
|
+
description?: string | null;
|
|
14741
|
+
id?: string;
|
|
14742
|
+
is_active?: boolean;
|
|
14743
|
+
name?: string;
|
|
14744
|
+
produced_stock?: number;
|
|
14745
|
+
product_code?: string;
|
|
14746
|
+
tenant_id?: string;
|
|
14747
|
+
updated_at?: string;
|
|
14748
|
+
};
|
|
14749
|
+
Relationships: [];
|
|
14750
|
+
};
|
|
14434
14751
|
monteurs: {
|
|
14435
14752
|
Row: {
|
|
14436
14753
|
avatar_url: string | null;
|
|
@@ -15391,6 +15708,66 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
|
|
|
15391
15708
|
};
|
|
15392
15709
|
Relationships: [];
|
|
15393
15710
|
};
|
|
15711
|
+
product_group_items: {
|
|
15712
|
+
Row: {
|
|
15713
|
+
created_at: string;
|
|
15714
|
+
id: string;
|
|
15715
|
+
product_group_id: string;
|
|
15716
|
+
quantity: number;
|
|
15717
|
+
trade_item_id: string;
|
|
15718
|
+
};
|
|
15719
|
+
Insert: {
|
|
15720
|
+
created_at?: string;
|
|
15721
|
+
id?: string;
|
|
15722
|
+
product_group_id: string;
|
|
15723
|
+
quantity?: number;
|
|
15724
|
+
trade_item_id: string;
|
|
15725
|
+
};
|
|
15726
|
+
Update: {
|
|
15727
|
+
created_at?: string;
|
|
15728
|
+
id?: string;
|
|
15729
|
+
product_group_id?: string;
|
|
15730
|
+
quantity?: number;
|
|
15731
|
+
trade_item_id?: string;
|
|
15732
|
+
};
|
|
15733
|
+
Relationships: [{
|
|
15734
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
15735
|
+
columns: ["product_group_id"];
|
|
15736
|
+
isOneToOne: false;
|
|
15737
|
+
referencedRelation: "product_groups";
|
|
15738
|
+
referencedColumns: ["id"];
|
|
15739
|
+
}];
|
|
15740
|
+
};
|
|
15741
|
+
product_groups: {
|
|
15742
|
+
Row: {
|
|
15743
|
+
created_at: string;
|
|
15744
|
+
description: string | null;
|
|
15745
|
+
id: string;
|
|
15746
|
+
is_active: boolean;
|
|
15747
|
+
name: string;
|
|
15748
|
+
tenant_id: string;
|
|
15749
|
+
updated_at: string;
|
|
15750
|
+
};
|
|
15751
|
+
Insert: {
|
|
15752
|
+
created_at?: string;
|
|
15753
|
+
description?: string | null;
|
|
15754
|
+
id?: string;
|
|
15755
|
+
is_active?: boolean;
|
|
15756
|
+
name: string;
|
|
15757
|
+
tenant_id: string;
|
|
15758
|
+
updated_at?: string;
|
|
15759
|
+
};
|
|
15760
|
+
Update: {
|
|
15761
|
+
created_at?: string;
|
|
15762
|
+
description?: string | null;
|
|
15763
|
+
id?: string;
|
|
15764
|
+
is_active?: boolean;
|
|
15765
|
+
name?: string;
|
|
15766
|
+
tenant_id?: string;
|
|
15767
|
+
updated_at?: string;
|
|
15768
|
+
};
|
|
15769
|
+
Relationships: [];
|
|
15770
|
+
};
|
|
15394
15771
|
products: {
|
|
15395
15772
|
Row: {
|
|
15396
15773
|
barcode: string | null;
|
|
@@ -16552,6 +16929,48 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
|
|
|
16552
16929
|
};
|
|
16553
16930
|
Relationships: [];
|
|
16554
16931
|
};
|
|
16932
|
+
trade_item_stock: {
|
|
16933
|
+
Row: {
|
|
16934
|
+
connection_id: string;
|
|
16935
|
+
created_at: string;
|
|
16936
|
+
id: string;
|
|
16937
|
+
incoming_stock: number;
|
|
16938
|
+
minimum_stock: number;
|
|
16939
|
+
notes: string | null;
|
|
16940
|
+
physical_stock: number;
|
|
16941
|
+
reserved_stock: number;
|
|
16942
|
+
trade_item_key: string;
|
|
16943
|
+
updated_at: string;
|
|
16944
|
+
user_id: string;
|
|
16945
|
+
};
|
|
16946
|
+
Insert: {
|
|
16947
|
+
connection_id: string;
|
|
16948
|
+
created_at?: string;
|
|
16949
|
+
id?: string;
|
|
16950
|
+
incoming_stock?: number;
|
|
16951
|
+
minimum_stock?: number;
|
|
16952
|
+
notes?: string | null;
|
|
16953
|
+
physical_stock?: number;
|
|
16954
|
+
reserved_stock?: number;
|
|
16955
|
+
trade_item_key: string;
|
|
16956
|
+
updated_at?: string;
|
|
16957
|
+
user_id: string;
|
|
16958
|
+
};
|
|
16959
|
+
Update: {
|
|
16960
|
+
connection_id?: string;
|
|
16961
|
+
created_at?: string;
|
|
16962
|
+
id?: string;
|
|
16963
|
+
incoming_stock?: number;
|
|
16964
|
+
minimum_stock?: number;
|
|
16965
|
+
notes?: string | null;
|
|
16966
|
+
physical_stock?: number;
|
|
16967
|
+
reserved_stock?: number;
|
|
16968
|
+
trade_item_key?: string;
|
|
16969
|
+
updated_at?: string;
|
|
16970
|
+
user_id?: string;
|
|
16971
|
+
};
|
|
16972
|
+
Relationships: [];
|
|
16973
|
+
};
|
|
16555
16974
|
twinfield_connections: {
|
|
16556
16975
|
Row: {
|
|
16557
16976
|
access_token: string | null;
|
|
@@ -17736,6 +18155,35 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
|
|
|
17736
18155
|
};
|
|
17737
18156
|
Relationships: [];
|
|
17738
18157
|
};
|
|
18158
|
+
manufacture_product_possible_stock_view: {
|
|
18159
|
+
Row: {
|
|
18160
|
+
component_count: number | null;
|
|
18161
|
+
manufacture_product_id: string | null;
|
|
18162
|
+
possible_stock: number | null;
|
|
18163
|
+
};
|
|
18164
|
+
Relationships: [];
|
|
18165
|
+
};
|
|
18166
|
+
product_group_stock_view: {
|
|
18167
|
+
Row: {
|
|
18168
|
+
item_count: number | null;
|
|
18169
|
+
product_group_id: string | null;
|
|
18170
|
+
total_stock: number | null;
|
|
18171
|
+
};
|
|
18172
|
+
Relationships: [{
|
|
18173
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
18174
|
+
columns: ["product_group_id"];
|
|
18175
|
+
isOneToOne: false;
|
|
18176
|
+
referencedRelation: "product_groups";
|
|
18177
|
+
referencedColumns: ["id"];
|
|
18178
|
+
}];
|
|
18179
|
+
};
|
|
18180
|
+
trade_item_stock_view: {
|
|
18181
|
+
Row: {
|
|
18182
|
+
stock: number | null;
|
|
18183
|
+
trade_item_id: string | null;
|
|
18184
|
+
};
|
|
18185
|
+
Relationships: [];
|
|
18186
|
+
};
|
|
17739
18187
|
v_external_customers_exact: {
|
|
17740
18188
|
Row: {
|
|
17741
18189
|
account_number: string | null;
|
|
@@ -18306,6 +18754,12 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
|
|
|
18306
18754
|
row_count: number;
|
|
18307
18755
|
}[];
|
|
18308
18756
|
};
|
|
18757
|
+
refresh_floricode_derived_for_product: {
|
|
18758
|
+
Args: {
|
|
18759
|
+
p_product_code: string;
|
|
18760
|
+
};
|
|
18761
|
+
Returns: number;
|
|
18762
|
+
};
|
|
18309
18763
|
reset_floriday_sync_cursor: {
|
|
18310
18764
|
Args: {
|
|
18311
18765
|
p_connection_id: string;
|
|
@@ -21377,6 +21831,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
|
|
|
21377
21831
|
};
|
|
21378
21832
|
floricode_sync_state: {
|
|
21379
21833
|
Row: {
|
|
21834
|
+
cursor_skip: number;
|
|
21380
21835
|
error_message: string | null;
|
|
21381
21836
|
last_change_date_time: string | null;
|
|
21382
21837
|
last_sequence_number: number;
|
|
@@ -21386,6 +21841,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
|
|
|
21386
21841
|
updated_at: string;
|
|
21387
21842
|
};
|
|
21388
21843
|
Insert: {
|
|
21844
|
+
cursor_skip?: number;
|
|
21389
21845
|
error_message?: string | null;
|
|
21390
21846
|
last_change_date_time?: string | null;
|
|
21391
21847
|
last_sequence_number?: number;
|
|
@@ -21395,6 +21851,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
|
|
|
21395
21851
|
updated_at?: string;
|
|
21396
21852
|
};
|
|
21397
21853
|
Update: {
|
|
21854
|
+
cursor_skip?: number;
|
|
21398
21855
|
error_message?: string | null;
|
|
21399
21856
|
last_change_date_time?: string | null;
|
|
21400
21857
|
last_sequence_number?: number;
|
|
@@ -23742,6 +24199,93 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
|
|
|
23742
24199
|
};
|
|
23743
24200
|
Relationships: [];
|
|
23744
24201
|
};
|
|
24202
|
+
manufacture_product_components: {
|
|
24203
|
+
Row: {
|
|
24204
|
+
component_type: string;
|
|
24205
|
+
created_at: string;
|
|
24206
|
+
id: string;
|
|
24207
|
+
manufacture_product_id: string;
|
|
24208
|
+
product_group_id: string | null;
|
|
24209
|
+
quantity: number;
|
|
24210
|
+
trade_item_id: string | null;
|
|
24211
|
+
unit: string;
|
|
24212
|
+
};
|
|
24213
|
+
Insert: {
|
|
24214
|
+
component_type: string;
|
|
24215
|
+
created_at?: string;
|
|
24216
|
+
id?: string;
|
|
24217
|
+
manufacture_product_id: string;
|
|
24218
|
+
product_group_id?: string | null;
|
|
24219
|
+
quantity?: number;
|
|
24220
|
+
trade_item_id?: string | null;
|
|
24221
|
+
unit?: string;
|
|
24222
|
+
};
|
|
24223
|
+
Update: {
|
|
24224
|
+
component_type?: string;
|
|
24225
|
+
created_at?: string;
|
|
24226
|
+
id?: string;
|
|
24227
|
+
manufacture_product_id?: string;
|
|
24228
|
+
product_group_id?: string | null;
|
|
24229
|
+
quantity?: number;
|
|
24230
|
+
trade_item_id?: string | null;
|
|
24231
|
+
unit?: string;
|
|
24232
|
+
};
|
|
24233
|
+
Relationships: [{
|
|
24234
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
24235
|
+
columns: ["manufacture_product_id"];
|
|
24236
|
+
isOneToOne: false;
|
|
24237
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
24238
|
+
referencedColumns: ["manufacture_product_id"];
|
|
24239
|
+
}, {
|
|
24240
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
24241
|
+
columns: ["manufacture_product_id"];
|
|
24242
|
+
isOneToOne: false;
|
|
24243
|
+
referencedRelation: "manufacture_products";
|
|
24244
|
+
referencedColumns: ["id"];
|
|
24245
|
+
}, {
|
|
24246
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
24247
|
+
columns: ["product_group_id"];
|
|
24248
|
+
isOneToOne: false;
|
|
24249
|
+
referencedRelation: "product_groups";
|
|
24250
|
+
referencedColumns: ["id"];
|
|
24251
|
+
}];
|
|
24252
|
+
};
|
|
24253
|
+
manufacture_products: {
|
|
24254
|
+
Row: {
|
|
24255
|
+
created_at: string;
|
|
24256
|
+
description: string | null;
|
|
24257
|
+
id: string;
|
|
24258
|
+
is_active: boolean;
|
|
24259
|
+
name: string;
|
|
24260
|
+
produced_stock: number;
|
|
24261
|
+
product_code: string;
|
|
24262
|
+
tenant_id: string;
|
|
24263
|
+
updated_at: string;
|
|
24264
|
+
};
|
|
24265
|
+
Insert: {
|
|
24266
|
+
created_at?: string;
|
|
24267
|
+
description?: string | null;
|
|
24268
|
+
id?: string;
|
|
24269
|
+
is_active?: boolean;
|
|
24270
|
+
name: string;
|
|
24271
|
+
produced_stock?: number;
|
|
24272
|
+
product_code: string;
|
|
24273
|
+
tenant_id: string;
|
|
24274
|
+
updated_at?: string;
|
|
24275
|
+
};
|
|
24276
|
+
Update: {
|
|
24277
|
+
created_at?: string;
|
|
24278
|
+
description?: string | null;
|
|
24279
|
+
id?: string;
|
|
24280
|
+
is_active?: boolean;
|
|
24281
|
+
name?: string;
|
|
24282
|
+
produced_stock?: number;
|
|
24283
|
+
product_code?: string;
|
|
24284
|
+
tenant_id?: string;
|
|
24285
|
+
updated_at?: string;
|
|
24286
|
+
};
|
|
24287
|
+
Relationships: [];
|
|
24288
|
+
};
|
|
23745
24289
|
monteurs: {
|
|
23746
24290
|
Row: {
|
|
23747
24291
|
avatar_url: string | null;
|
|
@@ -24702,6 +25246,66 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
|
|
|
24702
25246
|
};
|
|
24703
25247
|
Relationships: [];
|
|
24704
25248
|
};
|
|
25249
|
+
product_group_items: {
|
|
25250
|
+
Row: {
|
|
25251
|
+
created_at: string;
|
|
25252
|
+
id: string;
|
|
25253
|
+
product_group_id: string;
|
|
25254
|
+
quantity: number;
|
|
25255
|
+
trade_item_id: string;
|
|
25256
|
+
};
|
|
25257
|
+
Insert: {
|
|
25258
|
+
created_at?: string;
|
|
25259
|
+
id?: string;
|
|
25260
|
+
product_group_id: string;
|
|
25261
|
+
quantity?: number;
|
|
25262
|
+
trade_item_id: string;
|
|
25263
|
+
};
|
|
25264
|
+
Update: {
|
|
25265
|
+
created_at?: string;
|
|
25266
|
+
id?: string;
|
|
25267
|
+
product_group_id?: string;
|
|
25268
|
+
quantity?: number;
|
|
25269
|
+
trade_item_id?: string;
|
|
25270
|
+
};
|
|
25271
|
+
Relationships: [{
|
|
25272
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
25273
|
+
columns: ["product_group_id"];
|
|
25274
|
+
isOneToOne: false;
|
|
25275
|
+
referencedRelation: "product_groups";
|
|
25276
|
+
referencedColumns: ["id"];
|
|
25277
|
+
}];
|
|
25278
|
+
};
|
|
25279
|
+
product_groups: {
|
|
25280
|
+
Row: {
|
|
25281
|
+
created_at: string;
|
|
25282
|
+
description: string | null;
|
|
25283
|
+
id: string;
|
|
25284
|
+
is_active: boolean;
|
|
25285
|
+
name: string;
|
|
25286
|
+
tenant_id: string;
|
|
25287
|
+
updated_at: string;
|
|
25288
|
+
};
|
|
25289
|
+
Insert: {
|
|
25290
|
+
created_at?: string;
|
|
25291
|
+
description?: string | null;
|
|
25292
|
+
id?: string;
|
|
25293
|
+
is_active?: boolean;
|
|
25294
|
+
name: string;
|
|
25295
|
+
tenant_id: string;
|
|
25296
|
+
updated_at?: string;
|
|
25297
|
+
};
|
|
25298
|
+
Update: {
|
|
25299
|
+
created_at?: string;
|
|
25300
|
+
description?: string | null;
|
|
25301
|
+
id?: string;
|
|
25302
|
+
is_active?: boolean;
|
|
25303
|
+
name?: string;
|
|
25304
|
+
tenant_id?: string;
|
|
25305
|
+
updated_at?: string;
|
|
25306
|
+
};
|
|
25307
|
+
Relationships: [];
|
|
25308
|
+
};
|
|
24705
25309
|
products: {
|
|
24706
25310
|
Row: {
|
|
24707
25311
|
barcode: string | null;
|
|
@@ -25863,6 +26467,48 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
|
|
|
25863
26467
|
};
|
|
25864
26468
|
Relationships: [];
|
|
25865
26469
|
};
|
|
26470
|
+
trade_item_stock: {
|
|
26471
|
+
Row: {
|
|
26472
|
+
connection_id: string;
|
|
26473
|
+
created_at: string;
|
|
26474
|
+
id: string;
|
|
26475
|
+
incoming_stock: number;
|
|
26476
|
+
minimum_stock: number;
|
|
26477
|
+
notes: string | null;
|
|
26478
|
+
physical_stock: number;
|
|
26479
|
+
reserved_stock: number;
|
|
26480
|
+
trade_item_key: string;
|
|
26481
|
+
updated_at: string;
|
|
26482
|
+
user_id: string;
|
|
26483
|
+
};
|
|
26484
|
+
Insert: {
|
|
26485
|
+
connection_id: string;
|
|
26486
|
+
created_at?: string;
|
|
26487
|
+
id?: string;
|
|
26488
|
+
incoming_stock?: number;
|
|
26489
|
+
minimum_stock?: number;
|
|
26490
|
+
notes?: string | null;
|
|
26491
|
+
physical_stock?: number;
|
|
26492
|
+
reserved_stock?: number;
|
|
26493
|
+
trade_item_key: string;
|
|
26494
|
+
updated_at?: string;
|
|
26495
|
+
user_id: string;
|
|
26496
|
+
};
|
|
26497
|
+
Update: {
|
|
26498
|
+
connection_id?: string;
|
|
26499
|
+
created_at?: string;
|
|
26500
|
+
id?: string;
|
|
26501
|
+
incoming_stock?: number;
|
|
26502
|
+
minimum_stock?: number;
|
|
26503
|
+
notes?: string | null;
|
|
26504
|
+
physical_stock?: number;
|
|
26505
|
+
reserved_stock?: number;
|
|
26506
|
+
trade_item_key?: string;
|
|
26507
|
+
updated_at?: string;
|
|
26508
|
+
user_id?: string;
|
|
26509
|
+
};
|
|
26510
|
+
Relationships: [];
|
|
26511
|
+
};
|
|
25866
26512
|
twinfield_connections: {
|
|
25867
26513
|
Row: {
|
|
25868
26514
|
access_token: string | null;
|
|
@@ -27047,6 +27693,35 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
|
|
|
27047
27693
|
};
|
|
27048
27694
|
Relationships: [];
|
|
27049
27695
|
};
|
|
27696
|
+
manufacture_product_possible_stock_view: {
|
|
27697
|
+
Row: {
|
|
27698
|
+
component_count: number | null;
|
|
27699
|
+
manufacture_product_id: string | null;
|
|
27700
|
+
possible_stock: number | null;
|
|
27701
|
+
};
|
|
27702
|
+
Relationships: [];
|
|
27703
|
+
};
|
|
27704
|
+
product_group_stock_view: {
|
|
27705
|
+
Row: {
|
|
27706
|
+
item_count: number | null;
|
|
27707
|
+
product_group_id: string | null;
|
|
27708
|
+
total_stock: number | null;
|
|
27709
|
+
};
|
|
27710
|
+
Relationships: [{
|
|
27711
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
27712
|
+
columns: ["product_group_id"];
|
|
27713
|
+
isOneToOne: false;
|
|
27714
|
+
referencedRelation: "product_groups";
|
|
27715
|
+
referencedColumns: ["id"];
|
|
27716
|
+
}];
|
|
27717
|
+
};
|
|
27718
|
+
trade_item_stock_view: {
|
|
27719
|
+
Row: {
|
|
27720
|
+
stock: number | null;
|
|
27721
|
+
trade_item_id: string | null;
|
|
27722
|
+
};
|
|
27723
|
+
Relationships: [];
|
|
27724
|
+
};
|
|
27050
27725
|
v_external_customers_exact: {
|
|
27051
27726
|
Row: {
|
|
27052
27727
|
account_number: string | null;
|
|
@@ -27617,6 +28292,12 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
|
|
|
27617
28292
|
row_count: number;
|
|
27618
28293
|
}[];
|
|
27619
28294
|
};
|
|
28295
|
+
refresh_floricode_derived_for_product: {
|
|
28296
|
+
Args: {
|
|
28297
|
+
p_product_code: string;
|
|
28298
|
+
};
|
|
28299
|
+
Returns: number;
|
|
28300
|
+
};
|
|
27620
28301
|
reset_floriday_sync_cursor: {
|
|
27621
28302
|
Args: {
|
|
27622
28303
|
p_connection_id: string;
|
|
@@ -30698,6 +31379,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
|
|
|
30698
31379
|
};
|
|
30699
31380
|
floricode_sync_state: {
|
|
30700
31381
|
Row: {
|
|
31382
|
+
cursor_skip: number;
|
|
30701
31383
|
error_message: string | null;
|
|
30702
31384
|
last_change_date_time: string | null;
|
|
30703
31385
|
last_sequence_number: number;
|
|
@@ -30707,6 +31389,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
|
|
|
30707
31389
|
updated_at: string;
|
|
30708
31390
|
};
|
|
30709
31391
|
Insert: {
|
|
31392
|
+
cursor_skip?: number;
|
|
30710
31393
|
error_message?: string | null;
|
|
30711
31394
|
last_change_date_time?: string | null;
|
|
30712
31395
|
last_sequence_number?: number;
|
|
@@ -30716,6 +31399,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
|
|
|
30716
31399
|
updated_at?: string;
|
|
30717
31400
|
};
|
|
30718
31401
|
Update: {
|
|
31402
|
+
cursor_skip?: number;
|
|
30719
31403
|
error_message?: string | null;
|
|
30720
31404
|
last_change_date_time?: string | null;
|
|
30721
31405
|
last_sequence_number?: number;
|
|
@@ -33063,6 +33747,93 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
|
|
|
33063
33747
|
};
|
|
33064
33748
|
Relationships: [];
|
|
33065
33749
|
};
|
|
33750
|
+
manufacture_product_components: {
|
|
33751
|
+
Row: {
|
|
33752
|
+
component_type: string;
|
|
33753
|
+
created_at: string;
|
|
33754
|
+
id: string;
|
|
33755
|
+
manufacture_product_id: string;
|
|
33756
|
+
product_group_id: string | null;
|
|
33757
|
+
quantity: number;
|
|
33758
|
+
trade_item_id: string | null;
|
|
33759
|
+
unit: string;
|
|
33760
|
+
};
|
|
33761
|
+
Insert: {
|
|
33762
|
+
component_type: string;
|
|
33763
|
+
created_at?: string;
|
|
33764
|
+
id?: string;
|
|
33765
|
+
manufacture_product_id: string;
|
|
33766
|
+
product_group_id?: string | null;
|
|
33767
|
+
quantity?: number;
|
|
33768
|
+
trade_item_id?: string | null;
|
|
33769
|
+
unit?: string;
|
|
33770
|
+
};
|
|
33771
|
+
Update: {
|
|
33772
|
+
component_type?: string;
|
|
33773
|
+
created_at?: string;
|
|
33774
|
+
id?: string;
|
|
33775
|
+
manufacture_product_id?: string;
|
|
33776
|
+
product_group_id?: string | null;
|
|
33777
|
+
quantity?: number;
|
|
33778
|
+
trade_item_id?: string | null;
|
|
33779
|
+
unit?: string;
|
|
33780
|
+
};
|
|
33781
|
+
Relationships: [{
|
|
33782
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
33783
|
+
columns: ["manufacture_product_id"];
|
|
33784
|
+
isOneToOne: false;
|
|
33785
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
33786
|
+
referencedColumns: ["manufacture_product_id"];
|
|
33787
|
+
}, {
|
|
33788
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
33789
|
+
columns: ["manufacture_product_id"];
|
|
33790
|
+
isOneToOne: false;
|
|
33791
|
+
referencedRelation: "manufacture_products";
|
|
33792
|
+
referencedColumns: ["id"];
|
|
33793
|
+
}, {
|
|
33794
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
33795
|
+
columns: ["product_group_id"];
|
|
33796
|
+
isOneToOne: false;
|
|
33797
|
+
referencedRelation: "product_groups";
|
|
33798
|
+
referencedColumns: ["id"];
|
|
33799
|
+
}];
|
|
33800
|
+
};
|
|
33801
|
+
manufacture_products: {
|
|
33802
|
+
Row: {
|
|
33803
|
+
created_at: string;
|
|
33804
|
+
description: string | null;
|
|
33805
|
+
id: string;
|
|
33806
|
+
is_active: boolean;
|
|
33807
|
+
name: string;
|
|
33808
|
+
produced_stock: number;
|
|
33809
|
+
product_code: string;
|
|
33810
|
+
tenant_id: string;
|
|
33811
|
+
updated_at: string;
|
|
33812
|
+
};
|
|
33813
|
+
Insert: {
|
|
33814
|
+
created_at?: string;
|
|
33815
|
+
description?: string | null;
|
|
33816
|
+
id?: string;
|
|
33817
|
+
is_active?: boolean;
|
|
33818
|
+
name: string;
|
|
33819
|
+
produced_stock?: number;
|
|
33820
|
+
product_code: string;
|
|
33821
|
+
tenant_id: string;
|
|
33822
|
+
updated_at?: string;
|
|
33823
|
+
};
|
|
33824
|
+
Update: {
|
|
33825
|
+
created_at?: string;
|
|
33826
|
+
description?: string | null;
|
|
33827
|
+
id?: string;
|
|
33828
|
+
is_active?: boolean;
|
|
33829
|
+
name?: string;
|
|
33830
|
+
produced_stock?: number;
|
|
33831
|
+
product_code?: string;
|
|
33832
|
+
tenant_id?: string;
|
|
33833
|
+
updated_at?: string;
|
|
33834
|
+
};
|
|
33835
|
+
Relationships: [];
|
|
33836
|
+
};
|
|
33066
33837
|
monteurs: {
|
|
33067
33838
|
Row: {
|
|
33068
33839
|
avatar_url: string | null;
|
|
@@ -34023,6 +34794,66 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
|
|
|
34023
34794
|
};
|
|
34024
34795
|
Relationships: [];
|
|
34025
34796
|
};
|
|
34797
|
+
product_group_items: {
|
|
34798
|
+
Row: {
|
|
34799
|
+
created_at: string;
|
|
34800
|
+
id: string;
|
|
34801
|
+
product_group_id: string;
|
|
34802
|
+
quantity: number;
|
|
34803
|
+
trade_item_id: string;
|
|
34804
|
+
};
|
|
34805
|
+
Insert: {
|
|
34806
|
+
created_at?: string;
|
|
34807
|
+
id?: string;
|
|
34808
|
+
product_group_id: string;
|
|
34809
|
+
quantity?: number;
|
|
34810
|
+
trade_item_id: string;
|
|
34811
|
+
};
|
|
34812
|
+
Update: {
|
|
34813
|
+
created_at?: string;
|
|
34814
|
+
id?: string;
|
|
34815
|
+
product_group_id?: string;
|
|
34816
|
+
quantity?: number;
|
|
34817
|
+
trade_item_id?: string;
|
|
34818
|
+
};
|
|
34819
|
+
Relationships: [{
|
|
34820
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
34821
|
+
columns: ["product_group_id"];
|
|
34822
|
+
isOneToOne: false;
|
|
34823
|
+
referencedRelation: "product_groups";
|
|
34824
|
+
referencedColumns: ["id"];
|
|
34825
|
+
}];
|
|
34826
|
+
};
|
|
34827
|
+
product_groups: {
|
|
34828
|
+
Row: {
|
|
34829
|
+
created_at: string;
|
|
34830
|
+
description: string | null;
|
|
34831
|
+
id: string;
|
|
34832
|
+
is_active: boolean;
|
|
34833
|
+
name: string;
|
|
34834
|
+
tenant_id: string;
|
|
34835
|
+
updated_at: string;
|
|
34836
|
+
};
|
|
34837
|
+
Insert: {
|
|
34838
|
+
created_at?: string;
|
|
34839
|
+
description?: string | null;
|
|
34840
|
+
id?: string;
|
|
34841
|
+
is_active?: boolean;
|
|
34842
|
+
name: string;
|
|
34843
|
+
tenant_id: string;
|
|
34844
|
+
updated_at?: string;
|
|
34845
|
+
};
|
|
34846
|
+
Update: {
|
|
34847
|
+
created_at?: string;
|
|
34848
|
+
description?: string | null;
|
|
34849
|
+
id?: string;
|
|
34850
|
+
is_active?: boolean;
|
|
34851
|
+
name?: string;
|
|
34852
|
+
tenant_id?: string;
|
|
34853
|
+
updated_at?: string;
|
|
34854
|
+
};
|
|
34855
|
+
Relationships: [];
|
|
34856
|
+
};
|
|
34026
34857
|
products: {
|
|
34027
34858
|
Row: {
|
|
34028
34859
|
barcode: string | null;
|
|
@@ -35184,6 +36015,48 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
|
|
|
35184
36015
|
};
|
|
35185
36016
|
Relationships: [];
|
|
35186
36017
|
};
|
|
36018
|
+
trade_item_stock: {
|
|
36019
|
+
Row: {
|
|
36020
|
+
connection_id: string;
|
|
36021
|
+
created_at: string;
|
|
36022
|
+
id: string;
|
|
36023
|
+
incoming_stock: number;
|
|
36024
|
+
minimum_stock: number;
|
|
36025
|
+
notes: string | null;
|
|
36026
|
+
physical_stock: number;
|
|
36027
|
+
reserved_stock: number;
|
|
36028
|
+
trade_item_key: string;
|
|
36029
|
+
updated_at: string;
|
|
36030
|
+
user_id: string;
|
|
36031
|
+
};
|
|
36032
|
+
Insert: {
|
|
36033
|
+
connection_id: string;
|
|
36034
|
+
created_at?: string;
|
|
36035
|
+
id?: string;
|
|
36036
|
+
incoming_stock?: number;
|
|
36037
|
+
minimum_stock?: number;
|
|
36038
|
+
notes?: string | null;
|
|
36039
|
+
physical_stock?: number;
|
|
36040
|
+
reserved_stock?: number;
|
|
36041
|
+
trade_item_key: string;
|
|
36042
|
+
updated_at?: string;
|
|
36043
|
+
user_id: string;
|
|
36044
|
+
};
|
|
36045
|
+
Update: {
|
|
36046
|
+
connection_id?: string;
|
|
36047
|
+
created_at?: string;
|
|
36048
|
+
id?: string;
|
|
36049
|
+
incoming_stock?: number;
|
|
36050
|
+
minimum_stock?: number;
|
|
36051
|
+
notes?: string | null;
|
|
36052
|
+
physical_stock?: number;
|
|
36053
|
+
reserved_stock?: number;
|
|
36054
|
+
trade_item_key?: string;
|
|
36055
|
+
updated_at?: string;
|
|
36056
|
+
user_id?: string;
|
|
36057
|
+
};
|
|
36058
|
+
Relationships: [];
|
|
36059
|
+
};
|
|
35187
36060
|
twinfield_connections: {
|
|
35188
36061
|
Row: {
|
|
35189
36062
|
access_token: string | null;
|
|
@@ -36368,6 +37241,35 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
|
|
|
36368
37241
|
};
|
|
36369
37242
|
Relationships: [];
|
|
36370
37243
|
};
|
|
37244
|
+
manufacture_product_possible_stock_view: {
|
|
37245
|
+
Row: {
|
|
37246
|
+
component_count: number | null;
|
|
37247
|
+
manufacture_product_id: string | null;
|
|
37248
|
+
possible_stock: number | null;
|
|
37249
|
+
};
|
|
37250
|
+
Relationships: [];
|
|
37251
|
+
};
|
|
37252
|
+
product_group_stock_view: {
|
|
37253
|
+
Row: {
|
|
37254
|
+
item_count: number | null;
|
|
37255
|
+
product_group_id: string | null;
|
|
37256
|
+
total_stock: number | null;
|
|
37257
|
+
};
|
|
37258
|
+
Relationships: [{
|
|
37259
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
37260
|
+
columns: ["product_group_id"];
|
|
37261
|
+
isOneToOne: false;
|
|
37262
|
+
referencedRelation: "product_groups";
|
|
37263
|
+
referencedColumns: ["id"];
|
|
37264
|
+
}];
|
|
37265
|
+
};
|
|
37266
|
+
trade_item_stock_view: {
|
|
37267
|
+
Row: {
|
|
37268
|
+
stock: number | null;
|
|
37269
|
+
trade_item_id: string | null;
|
|
37270
|
+
};
|
|
37271
|
+
Relationships: [];
|
|
37272
|
+
};
|
|
36371
37273
|
v_external_customers_exact: {
|
|
36372
37274
|
Row: {
|
|
36373
37275
|
account_number: string | null;
|
|
@@ -36938,6 +37840,12 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
|
|
|
36938
37840
|
row_count: number;
|
|
36939
37841
|
}[];
|
|
36940
37842
|
};
|
|
37843
|
+
refresh_floricode_derived_for_product: {
|
|
37844
|
+
Args: {
|
|
37845
|
+
p_product_code: string;
|
|
37846
|
+
};
|
|
37847
|
+
Returns: number;
|
|
37848
|
+
};
|
|
36941
37849
|
reset_floriday_sync_cursor: {
|
|
36942
37850
|
Args: {
|
|
36943
37851
|
p_connection_id: string;
|