@flowselections/floriday-klanten-module 1.0.10 → 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/GroupedKlantDetailRoute.d.ts +2 -0
- package/dist-lib/components/klanten/GroupedKlantDetailRoute.d.ts.map +1 -0
- package/dist-lib/components/klanten/GroupedKlantDetailRoute.js +8 -0
- package/dist-lib/components/klanten/KlantDetail.js +1 -1
- package/dist-lib/components/klanten/KlantDetailRoute.d.ts +2 -0
- package/dist-lib/components/klanten/KlantDetailRoute.d.ts.map +1 -0
- package/dist-lib/components/klanten/KlantDetailRoute.js +8 -0
- package/dist-lib/components/klanten/KlantenOverzicht.js +1 -1
- package/dist-lib/index.d.ts +2 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +2 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +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 +25 -1
|
@@ -2734,6 +2734,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
2734
2734
|
};
|
|
2735
2735
|
floricode_sync_state: {
|
|
2736
2736
|
Row: {
|
|
2737
|
+
cursor_skip: number;
|
|
2737
2738
|
error_message: string | null;
|
|
2738
2739
|
last_change_date_time: string | null;
|
|
2739
2740
|
last_sequence_number: number;
|
|
@@ -2743,6 +2744,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
2743
2744
|
updated_at: string;
|
|
2744
2745
|
};
|
|
2745
2746
|
Insert: {
|
|
2747
|
+
cursor_skip?: number;
|
|
2746
2748
|
error_message?: string | null;
|
|
2747
2749
|
last_change_date_time?: string | null;
|
|
2748
2750
|
last_sequence_number?: number;
|
|
@@ -2752,6 +2754,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
2752
2754
|
updated_at?: string;
|
|
2753
2755
|
};
|
|
2754
2756
|
Update: {
|
|
2757
|
+
cursor_skip?: number;
|
|
2755
2758
|
error_message?: string | null;
|
|
2756
2759
|
last_change_date_time?: string | null;
|
|
2757
2760
|
last_sequence_number?: number;
|
|
@@ -5099,6 +5102,93 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
5099
5102
|
};
|
|
5100
5103
|
Relationships: [];
|
|
5101
5104
|
};
|
|
5105
|
+
manufacture_product_components: {
|
|
5106
|
+
Row: {
|
|
5107
|
+
component_type: string;
|
|
5108
|
+
created_at: string;
|
|
5109
|
+
id: string;
|
|
5110
|
+
manufacture_product_id: string;
|
|
5111
|
+
product_group_id: string | null;
|
|
5112
|
+
quantity: number;
|
|
5113
|
+
trade_item_id: string | null;
|
|
5114
|
+
unit: string;
|
|
5115
|
+
};
|
|
5116
|
+
Insert: {
|
|
5117
|
+
component_type: string;
|
|
5118
|
+
created_at?: string;
|
|
5119
|
+
id?: string;
|
|
5120
|
+
manufacture_product_id: string;
|
|
5121
|
+
product_group_id?: string | null;
|
|
5122
|
+
quantity?: number;
|
|
5123
|
+
trade_item_id?: string | null;
|
|
5124
|
+
unit?: string;
|
|
5125
|
+
};
|
|
5126
|
+
Update: {
|
|
5127
|
+
component_type?: string;
|
|
5128
|
+
created_at?: string;
|
|
5129
|
+
id?: string;
|
|
5130
|
+
manufacture_product_id?: string;
|
|
5131
|
+
product_group_id?: string | null;
|
|
5132
|
+
quantity?: number;
|
|
5133
|
+
trade_item_id?: string | null;
|
|
5134
|
+
unit?: string;
|
|
5135
|
+
};
|
|
5136
|
+
Relationships: [{
|
|
5137
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5138
|
+
columns: ["manufacture_product_id"];
|
|
5139
|
+
isOneToOne: false;
|
|
5140
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
5141
|
+
referencedColumns: ["manufacture_product_id"];
|
|
5142
|
+
}, {
|
|
5143
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5144
|
+
columns: ["manufacture_product_id"];
|
|
5145
|
+
isOneToOne: false;
|
|
5146
|
+
referencedRelation: "manufacture_products";
|
|
5147
|
+
referencedColumns: ["id"];
|
|
5148
|
+
}, {
|
|
5149
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
5150
|
+
columns: ["product_group_id"];
|
|
5151
|
+
isOneToOne: false;
|
|
5152
|
+
referencedRelation: "product_groups";
|
|
5153
|
+
referencedColumns: ["id"];
|
|
5154
|
+
}];
|
|
5155
|
+
};
|
|
5156
|
+
manufacture_products: {
|
|
5157
|
+
Row: {
|
|
5158
|
+
created_at: string;
|
|
5159
|
+
description: string | null;
|
|
5160
|
+
id: string;
|
|
5161
|
+
is_active: boolean;
|
|
5162
|
+
name: string;
|
|
5163
|
+
produced_stock: number;
|
|
5164
|
+
product_code: string;
|
|
5165
|
+
tenant_id: string;
|
|
5166
|
+
updated_at: string;
|
|
5167
|
+
};
|
|
5168
|
+
Insert: {
|
|
5169
|
+
created_at?: string;
|
|
5170
|
+
description?: string | null;
|
|
5171
|
+
id?: string;
|
|
5172
|
+
is_active?: boolean;
|
|
5173
|
+
name: string;
|
|
5174
|
+
produced_stock?: number;
|
|
5175
|
+
product_code: string;
|
|
5176
|
+
tenant_id: string;
|
|
5177
|
+
updated_at?: string;
|
|
5178
|
+
};
|
|
5179
|
+
Update: {
|
|
5180
|
+
created_at?: string;
|
|
5181
|
+
description?: string | null;
|
|
5182
|
+
id?: string;
|
|
5183
|
+
is_active?: boolean;
|
|
5184
|
+
name?: string;
|
|
5185
|
+
produced_stock?: number;
|
|
5186
|
+
product_code?: string;
|
|
5187
|
+
tenant_id?: string;
|
|
5188
|
+
updated_at?: string;
|
|
5189
|
+
};
|
|
5190
|
+
Relationships: [];
|
|
5191
|
+
};
|
|
5102
5192
|
monteurs: {
|
|
5103
5193
|
Row: {
|
|
5104
5194
|
avatar_url: string | null;
|
|
@@ -6059,6 +6149,66 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
6059
6149
|
};
|
|
6060
6150
|
Relationships: [];
|
|
6061
6151
|
};
|
|
6152
|
+
product_group_items: {
|
|
6153
|
+
Row: {
|
|
6154
|
+
created_at: string;
|
|
6155
|
+
id: string;
|
|
6156
|
+
product_group_id: string;
|
|
6157
|
+
quantity: number;
|
|
6158
|
+
trade_item_id: string;
|
|
6159
|
+
};
|
|
6160
|
+
Insert: {
|
|
6161
|
+
created_at?: string;
|
|
6162
|
+
id?: string;
|
|
6163
|
+
product_group_id: string;
|
|
6164
|
+
quantity?: number;
|
|
6165
|
+
trade_item_id: string;
|
|
6166
|
+
};
|
|
6167
|
+
Update: {
|
|
6168
|
+
created_at?: string;
|
|
6169
|
+
id?: string;
|
|
6170
|
+
product_group_id?: string;
|
|
6171
|
+
quantity?: number;
|
|
6172
|
+
trade_item_id?: string;
|
|
6173
|
+
};
|
|
6174
|
+
Relationships: [{
|
|
6175
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
6176
|
+
columns: ["product_group_id"];
|
|
6177
|
+
isOneToOne: false;
|
|
6178
|
+
referencedRelation: "product_groups";
|
|
6179
|
+
referencedColumns: ["id"];
|
|
6180
|
+
}];
|
|
6181
|
+
};
|
|
6182
|
+
product_groups: {
|
|
6183
|
+
Row: {
|
|
6184
|
+
created_at: string;
|
|
6185
|
+
description: string | null;
|
|
6186
|
+
id: string;
|
|
6187
|
+
is_active: boolean;
|
|
6188
|
+
name: string;
|
|
6189
|
+
tenant_id: string;
|
|
6190
|
+
updated_at: string;
|
|
6191
|
+
};
|
|
6192
|
+
Insert: {
|
|
6193
|
+
created_at?: string;
|
|
6194
|
+
description?: string | null;
|
|
6195
|
+
id?: string;
|
|
6196
|
+
is_active?: boolean;
|
|
6197
|
+
name: string;
|
|
6198
|
+
tenant_id: string;
|
|
6199
|
+
updated_at?: string;
|
|
6200
|
+
};
|
|
6201
|
+
Update: {
|
|
6202
|
+
created_at?: string;
|
|
6203
|
+
description?: string | null;
|
|
6204
|
+
id?: string;
|
|
6205
|
+
is_active?: boolean;
|
|
6206
|
+
name?: string;
|
|
6207
|
+
tenant_id?: string;
|
|
6208
|
+
updated_at?: string;
|
|
6209
|
+
};
|
|
6210
|
+
Relationships: [];
|
|
6211
|
+
};
|
|
6062
6212
|
products: {
|
|
6063
6213
|
Row: {
|
|
6064
6214
|
barcode: string | null;
|
|
@@ -7220,6 +7370,48 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7220
7370
|
};
|
|
7221
7371
|
Relationships: [];
|
|
7222
7372
|
};
|
|
7373
|
+
trade_item_stock: {
|
|
7374
|
+
Row: {
|
|
7375
|
+
connection_id: string;
|
|
7376
|
+
created_at: string;
|
|
7377
|
+
id: string;
|
|
7378
|
+
incoming_stock: number;
|
|
7379
|
+
minimum_stock: number;
|
|
7380
|
+
notes: string | null;
|
|
7381
|
+
physical_stock: number;
|
|
7382
|
+
reserved_stock: number;
|
|
7383
|
+
trade_item_key: string;
|
|
7384
|
+
updated_at: string;
|
|
7385
|
+
user_id: string;
|
|
7386
|
+
};
|
|
7387
|
+
Insert: {
|
|
7388
|
+
connection_id: string;
|
|
7389
|
+
created_at?: string;
|
|
7390
|
+
id?: string;
|
|
7391
|
+
incoming_stock?: number;
|
|
7392
|
+
minimum_stock?: number;
|
|
7393
|
+
notes?: string | null;
|
|
7394
|
+
physical_stock?: number;
|
|
7395
|
+
reserved_stock?: number;
|
|
7396
|
+
trade_item_key: string;
|
|
7397
|
+
updated_at?: string;
|
|
7398
|
+
user_id: string;
|
|
7399
|
+
};
|
|
7400
|
+
Update: {
|
|
7401
|
+
connection_id?: string;
|
|
7402
|
+
created_at?: string;
|
|
7403
|
+
id?: string;
|
|
7404
|
+
incoming_stock?: number;
|
|
7405
|
+
minimum_stock?: number;
|
|
7406
|
+
notes?: string | null;
|
|
7407
|
+
physical_stock?: number;
|
|
7408
|
+
reserved_stock?: number;
|
|
7409
|
+
trade_item_key?: string;
|
|
7410
|
+
updated_at?: string;
|
|
7411
|
+
user_id?: string;
|
|
7412
|
+
};
|
|
7413
|
+
Relationships: [];
|
|
7414
|
+
};
|
|
7223
7415
|
twinfield_connections: {
|
|
7224
7416
|
Row: {
|
|
7225
7417
|
access_token: string | null;
|
|
@@ -8404,6 +8596,35 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
8404
8596
|
};
|
|
8405
8597
|
Relationships: [];
|
|
8406
8598
|
};
|
|
8599
|
+
manufacture_product_possible_stock_view: {
|
|
8600
|
+
Row: {
|
|
8601
|
+
component_count: number | null;
|
|
8602
|
+
manufacture_product_id: string | null;
|
|
8603
|
+
possible_stock: number | null;
|
|
8604
|
+
};
|
|
8605
|
+
Relationships: [];
|
|
8606
|
+
};
|
|
8607
|
+
product_group_stock_view: {
|
|
8608
|
+
Row: {
|
|
8609
|
+
item_count: number | null;
|
|
8610
|
+
product_group_id: string | null;
|
|
8611
|
+
total_stock: number | null;
|
|
8612
|
+
};
|
|
8613
|
+
Relationships: [{
|
|
8614
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
8615
|
+
columns: ["product_group_id"];
|
|
8616
|
+
isOneToOne: false;
|
|
8617
|
+
referencedRelation: "product_groups";
|
|
8618
|
+
referencedColumns: ["id"];
|
|
8619
|
+
}];
|
|
8620
|
+
};
|
|
8621
|
+
trade_item_stock_view: {
|
|
8622
|
+
Row: {
|
|
8623
|
+
stock: number | null;
|
|
8624
|
+
trade_item_id: string | null;
|
|
8625
|
+
};
|
|
8626
|
+
Relationships: [];
|
|
8627
|
+
};
|
|
8407
8628
|
v_external_customers_exact: {
|
|
8408
8629
|
Row: {
|
|
8409
8630
|
account_number: string | null;
|
|
@@ -8974,6 +9195,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
8974
9195
|
row_count: number;
|
|
8975
9196
|
}[];
|
|
8976
9197
|
};
|
|
9198
|
+
refresh_floricode_derived_for_product: {
|
|
9199
|
+
Args: {
|
|
9200
|
+
p_product_code: string;
|
|
9201
|
+
};
|
|
9202
|
+
Returns: number;
|
|
9203
|
+
};
|
|
8977
9204
|
reset_floriday_sync_cursor: {
|
|
8978
9205
|
Args: {
|
|
8979
9206
|
p_connection_id: string;
|
|
@@ -12021,6 +12248,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
12021
12248
|
};
|
|
12022
12249
|
floricode_sync_state: {
|
|
12023
12250
|
Row: {
|
|
12251
|
+
cursor_skip: number;
|
|
12024
12252
|
error_message: string | null;
|
|
12025
12253
|
last_change_date_time: string | null;
|
|
12026
12254
|
last_sequence_number: number;
|
|
@@ -12030,6 +12258,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
12030
12258
|
updated_at: string;
|
|
12031
12259
|
};
|
|
12032
12260
|
Insert: {
|
|
12261
|
+
cursor_skip?: number;
|
|
12033
12262
|
error_message?: string | null;
|
|
12034
12263
|
last_change_date_time?: string | null;
|
|
12035
12264
|
last_sequence_number?: number;
|
|
@@ -12039,6 +12268,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
12039
12268
|
updated_at?: string;
|
|
12040
12269
|
};
|
|
12041
12270
|
Update: {
|
|
12271
|
+
cursor_skip?: number;
|
|
12042
12272
|
error_message?: string | null;
|
|
12043
12273
|
last_change_date_time?: string | null;
|
|
12044
12274
|
last_sequence_number?: number;
|
|
@@ -14386,6 +14616,93 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
14386
14616
|
};
|
|
14387
14617
|
Relationships: [];
|
|
14388
14618
|
};
|
|
14619
|
+
manufacture_product_components: {
|
|
14620
|
+
Row: {
|
|
14621
|
+
component_type: string;
|
|
14622
|
+
created_at: string;
|
|
14623
|
+
id: string;
|
|
14624
|
+
manufacture_product_id: string;
|
|
14625
|
+
product_group_id: string | null;
|
|
14626
|
+
quantity: number;
|
|
14627
|
+
trade_item_id: string | null;
|
|
14628
|
+
unit: string;
|
|
14629
|
+
};
|
|
14630
|
+
Insert: {
|
|
14631
|
+
component_type: string;
|
|
14632
|
+
created_at?: string;
|
|
14633
|
+
id?: string;
|
|
14634
|
+
manufacture_product_id: string;
|
|
14635
|
+
product_group_id?: string | null;
|
|
14636
|
+
quantity?: number;
|
|
14637
|
+
trade_item_id?: string | null;
|
|
14638
|
+
unit?: string;
|
|
14639
|
+
};
|
|
14640
|
+
Update: {
|
|
14641
|
+
component_type?: string;
|
|
14642
|
+
created_at?: string;
|
|
14643
|
+
id?: string;
|
|
14644
|
+
manufacture_product_id?: string;
|
|
14645
|
+
product_group_id?: string | null;
|
|
14646
|
+
quantity?: number;
|
|
14647
|
+
trade_item_id?: string | null;
|
|
14648
|
+
unit?: string;
|
|
14649
|
+
};
|
|
14650
|
+
Relationships: [{
|
|
14651
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
14652
|
+
columns: ["manufacture_product_id"];
|
|
14653
|
+
isOneToOne: false;
|
|
14654
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
14655
|
+
referencedColumns: ["manufacture_product_id"];
|
|
14656
|
+
}, {
|
|
14657
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
14658
|
+
columns: ["manufacture_product_id"];
|
|
14659
|
+
isOneToOne: false;
|
|
14660
|
+
referencedRelation: "manufacture_products";
|
|
14661
|
+
referencedColumns: ["id"];
|
|
14662
|
+
}, {
|
|
14663
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
14664
|
+
columns: ["product_group_id"];
|
|
14665
|
+
isOneToOne: false;
|
|
14666
|
+
referencedRelation: "product_groups";
|
|
14667
|
+
referencedColumns: ["id"];
|
|
14668
|
+
}];
|
|
14669
|
+
};
|
|
14670
|
+
manufacture_products: {
|
|
14671
|
+
Row: {
|
|
14672
|
+
created_at: string;
|
|
14673
|
+
description: string | null;
|
|
14674
|
+
id: string;
|
|
14675
|
+
is_active: boolean;
|
|
14676
|
+
name: string;
|
|
14677
|
+
produced_stock: number;
|
|
14678
|
+
product_code: string;
|
|
14679
|
+
tenant_id: string;
|
|
14680
|
+
updated_at: string;
|
|
14681
|
+
};
|
|
14682
|
+
Insert: {
|
|
14683
|
+
created_at?: string;
|
|
14684
|
+
description?: string | null;
|
|
14685
|
+
id?: string;
|
|
14686
|
+
is_active?: boolean;
|
|
14687
|
+
name: string;
|
|
14688
|
+
produced_stock?: number;
|
|
14689
|
+
product_code: string;
|
|
14690
|
+
tenant_id: string;
|
|
14691
|
+
updated_at?: string;
|
|
14692
|
+
};
|
|
14693
|
+
Update: {
|
|
14694
|
+
created_at?: string;
|
|
14695
|
+
description?: string | null;
|
|
14696
|
+
id?: string;
|
|
14697
|
+
is_active?: boolean;
|
|
14698
|
+
name?: string;
|
|
14699
|
+
produced_stock?: number;
|
|
14700
|
+
product_code?: string;
|
|
14701
|
+
tenant_id?: string;
|
|
14702
|
+
updated_at?: string;
|
|
14703
|
+
};
|
|
14704
|
+
Relationships: [];
|
|
14705
|
+
};
|
|
14389
14706
|
monteurs: {
|
|
14390
14707
|
Row: {
|
|
14391
14708
|
avatar_url: string | null;
|
|
@@ -15346,6 +15663,66 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
15346
15663
|
};
|
|
15347
15664
|
Relationships: [];
|
|
15348
15665
|
};
|
|
15666
|
+
product_group_items: {
|
|
15667
|
+
Row: {
|
|
15668
|
+
created_at: string;
|
|
15669
|
+
id: string;
|
|
15670
|
+
product_group_id: string;
|
|
15671
|
+
quantity: number;
|
|
15672
|
+
trade_item_id: string;
|
|
15673
|
+
};
|
|
15674
|
+
Insert: {
|
|
15675
|
+
created_at?: string;
|
|
15676
|
+
id?: string;
|
|
15677
|
+
product_group_id: string;
|
|
15678
|
+
quantity?: number;
|
|
15679
|
+
trade_item_id: string;
|
|
15680
|
+
};
|
|
15681
|
+
Update: {
|
|
15682
|
+
created_at?: string;
|
|
15683
|
+
id?: string;
|
|
15684
|
+
product_group_id?: string;
|
|
15685
|
+
quantity?: number;
|
|
15686
|
+
trade_item_id?: string;
|
|
15687
|
+
};
|
|
15688
|
+
Relationships: [{
|
|
15689
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
15690
|
+
columns: ["product_group_id"];
|
|
15691
|
+
isOneToOne: false;
|
|
15692
|
+
referencedRelation: "product_groups";
|
|
15693
|
+
referencedColumns: ["id"];
|
|
15694
|
+
}];
|
|
15695
|
+
};
|
|
15696
|
+
product_groups: {
|
|
15697
|
+
Row: {
|
|
15698
|
+
created_at: string;
|
|
15699
|
+
description: string | null;
|
|
15700
|
+
id: string;
|
|
15701
|
+
is_active: boolean;
|
|
15702
|
+
name: string;
|
|
15703
|
+
tenant_id: string;
|
|
15704
|
+
updated_at: string;
|
|
15705
|
+
};
|
|
15706
|
+
Insert: {
|
|
15707
|
+
created_at?: string;
|
|
15708
|
+
description?: string | null;
|
|
15709
|
+
id?: string;
|
|
15710
|
+
is_active?: boolean;
|
|
15711
|
+
name: string;
|
|
15712
|
+
tenant_id: string;
|
|
15713
|
+
updated_at?: string;
|
|
15714
|
+
};
|
|
15715
|
+
Update: {
|
|
15716
|
+
created_at?: string;
|
|
15717
|
+
description?: string | null;
|
|
15718
|
+
id?: string;
|
|
15719
|
+
is_active?: boolean;
|
|
15720
|
+
name?: string;
|
|
15721
|
+
tenant_id?: string;
|
|
15722
|
+
updated_at?: string;
|
|
15723
|
+
};
|
|
15724
|
+
Relationships: [];
|
|
15725
|
+
};
|
|
15349
15726
|
products: {
|
|
15350
15727
|
Row: {
|
|
15351
15728
|
barcode: string | null;
|
|
@@ -16507,6 +16884,48 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
16507
16884
|
};
|
|
16508
16885
|
Relationships: [];
|
|
16509
16886
|
};
|
|
16887
|
+
trade_item_stock: {
|
|
16888
|
+
Row: {
|
|
16889
|
+
connection_id: string;
|
|
16890
|
+
created_at: string;
|
|
16891
|
+
id: string;
|
|
16892
|
+
incoming_stock: number;
|
|
16893
|
+
minimum_stock: number;
|
|
16894
|
+
notes: string | null;
|
|
16895
|
+
physical_stock: number;
|
|
16896
|
+
reserved_stock: number;
|
|
16897
|
+
trade_item_key: string;
|
|
16898
|
+
updated_at: string;
|
|
16899
|
+
user_id: string;
|
|
16900
|
+
};
|
|
16901
|
+
Insert: {
|
|
16902
|
+
connection_id: string;
|
|
16903
|
+
created_at?: string;
|
|
16904
|
+
id?: string;
|
|
16905
|
+
incoming_stock?: number;
|
|
16906
|
+
minimum_stock?: number;
|
|
16907
|
+
notes?: string | null;
|
|
16908
|
+
physical_stock?: number;
|
|
16909
|
+
reserved_stock?: number;
|
|
16910
|
+
trade_item_key: string;
|
|
16911
|
+
updated_at?: string;
|
|
16912
|
+
user_id: string;
|
|
16913
|
+
};
|
|
16914
|
+
Update: {
|
|
16915
|
+
connection_id?: string;
|
|
16916
|
+
created_at?: string;
|
|
16917
|
+
id?: string;
|
|
16918
|
+
incoming_stock?: number;
|
|
16919
|
+
minimum_stock?: number;
|
|
16920
|
+
notes?: string | null;
|
|
16921
|
+
physical_stock?: number;
|
|
16922
|
+
reserved_stock?: number;
|
|
16923
|
+
trade_item_key?: string;
|
|
16924
|
+
updated_at?: string;
|
|
16925
|
+
user_id?: string;
|
|
16926
|
+
};
|
|
16927
|
+
Relationships: [];
|
|
16928
|
+
};
|
|
16510
16929
|
twinfield_connections: {
|
|
16511
16930
|
Row: {
|
|
16512
16931
|
access_token: string | null;
|
|
@@ -17691,6 +18110,35 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
17691
18110
|
};
|
|
17692
18111
|
Relationships: [];
|
|
17693
18112
|
};
|
|
18113
|
+
manufacture_product_possible_stock_view: {
|
|
18114
|
+
Row: {
|
|
18115
|
+
component_count: number | null;
|
|
18116
|
+
manufacture_product_id: string | null;
|
|
18117
|
+
possible_stock: number | null;
|
|
18118
|
+
};
|
|
18119
|
+
Relationships: [];
|
|
18120
|
+
};
|
|
18121
|
+
product_group_stock_view: {
|
|
18122
|
+
Row: {
|
|
18123
|
+
item_count: number | null;
|
|
18124
|
+
product_group_id: string | null;
|
|
18125
|
+
total_stock: number | null;
|
|
18126
|
+
};
|
|
18127
|
+
Relationships: [{
|
|
18128
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
18129
|
+
columns: ["product_group_id"];
|
|
18130
|
+
isOneToOne: false;
|
|
18131
|
+
referencedRelation: "product_groups";
|
|
18132
|
+
referencedColumns: ["id"];
|
|
18133
|
+
}];
|
|
18134
|
+
};
|
|
18135
|
+
trade_item_stock_view: {
|
|
18136
|
+
Row: {
|
|
18137
|
+
stock: number | null;
|
|
18138
|
+
trade_item_id: string | null;
|
|
18139
|
+
};
|
|
18140
|
+
Relationships: [];
|
|
18141
|
+
};
|
|
17694
18142
|
v_external_customers_exact: {
|
|
17695
18143
|
Row: {
|
|
17696
18144
|
account_number: string | null;
|
|
@@ -18261,6 +18709,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
18261
18709
|
row_count: number;
|
|
18262
18710
|
}[];
|
|
18263
18711
|
};
|
|
18712
|
+
refresh_floricode_derived_for_product: {
|
|
18713
|
+
Args: {
|
|
18714
|
+
p_product_code: string;
|
|
18715
|
+
};
|
|
18716
|
+
Returns: number;
|
|
18717
|
+
};
|
|
18264
18718
|
reset_floriday_sync_cursor: {
|
|
18265
18719
|
Args: {
|
|
18266
18720
|
p_connection_id: string;
|
|
@@ -21308,6 +21762,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
21308
21762
|
};
|
|
21309
21763
|
floricode_sync_state: {
|
|
21310
21764
|
Row: {
|
|
21765
|
+
cursor_skip: number;
|
|
21311
21766
|
error_message: string | null;
|
|
21312
21767
|
last_change_date_time: string | null;
|
|
21313
21768
|
last_sequence_number: number;
|
|
@@ -21317,6 +21772,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
21317
21772
|
updated_at: string;
|
|
21318
21773
|
};
|
|
21319
21774
|
Insert: {
|
|
21775
|
+
cursor_skip?: number;
|
|
21320
21776
|
error_message?: string | null;
|
|
21321
21777
|
last_change_date_time?: string | null;
|
|
21322
21778
|
last_sequence_number?: number;
|
|
@@ -21326,6 +21782,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
21326
21782
|
updated_at?: string;
|
|
21327
21783
|
};
|
|
21328
21784
|
Update: {
|
|
21785
|
+
cursor_skip?: number;
|
|
21329
21786
|
error_message?: string | null;
|
|
21330
21787
|
last_change_date_time?: string | null;
|
|
21331
21788
|
last_sequence_number?: number;
|
|
@@ -23673,6 +24130,93 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
23673
24130
|
};
|
|
23674
24131
|
Relationships: [];
|
|
23675
24132
|
};
|
|
24133
|
+
manufacture_product_components: {
|
|
24134
|
+
Row: {
|
|
24135
|
+
component_type: string;
|
|
24136
|
+
created_at: string;
|
|
24137
|
+
id: string;
|
|
24138
|
+
manufacture_product_id: string;
|
|
24139
|
+
product_group_id: string | null;
|
|
24140
|
+
quantity: number;
|
|
24141
|
+
trade_item_id: string | null;
|
|
24142
|
+
unit: string;
|
|
24143
|
+
};
|
|
24144
|
+
Insert: {
|
|
24145
|
+
component_type: string;
|
|
24146
|
+
created_at?: string;
|
|
24147
|
+
id?: string;
|
|
24148
|
+
manufacture_product_id: string;
|
|
24149
|
+
product_group_id?: string | null;
|
|
24150
|
+
quantity?: number;
|
|
24151
|
+
trade_item_id?: string | null;
|
|
24152
|
+
unit?: string;
|
|
24153
|
+
};
|
|
24154
|
+
Update: {
|
|
24155
|
+
component_type?: string;
|
|
24156
|
+
created_at?: string;
|
|
24157
|
+
id?: string;
|
|
24158
|
+
manufacture_product_id?: string;
|
|
24159
|
+
product_group_id?: string | null;
|
|
24160
|
+
quantity?: number;
|
|
24161
|
+
trade_item_id?: string | null;
|
|
24162
|
+
unit?: string;
|
|
24163
|
+
};
|
|
24164
|
+
Relationships: [{
|
|
24165
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
24166
|
+
columns: ["manufacture_product_id"];
|
|
24167
|
+
isOneToOne: false;
|
|
24168
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
24169
|
+
referencedColumns: ["manufacture_product_id"];
|
|
24170
|
+
}, {
|
|
24171
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
24172
|
+
columns: ["manufacture_product_id"];
|
|
24173
|
+
isOneToOne: false;
|
|
24174
|
+
referencedRelation: "manufacture_products";
|
|
24175
|
+
referencedColumns: ["id"];
|
|
24176
|
+
}, {
|
|
24177
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
24178
|
+
columns: ["product_group_id"];
|
|
24179
|
+
isOneToOne: false;
|
|
24180
|
+
referencedRelation: "product_groups";
|
|
24181
|
+
referencedColumns: ["id"];
|
|
24182
|
+
}];
|
|
24183
|
+
};
|
|
24184
|
+
manufacture_products: {
|
|
24185
|
+
Row: {
|
|
24186
|
+
created_at: string;
|
|
24187
|
+
description: string | null;
|
|
24188
|
+
id: string;
|
|
24189
|
+
is_active: boolean;
|
|
24190
|
+
name: string;
|
|
24191
|
+
produced_stock: number;
|
|
24192
|
+
product_code: string;
|
|
24193
|
+
tenant_id: string;
|
|
24194
|
+
updated_at: string;
|
|
24195
|
+
};
|
|
24196
|
+
Insert: {
|
|
24197
|
+
created_at?: string;
|
|
24198
|
+
description?: string | null;
|
|
24199
|
+
id?: string;
|
|
24200
|
+
is_active?: boolean;
|
|
24201
|
+
name: string;
|
|
24202
|
+
produced_stock?: number;
|
|
24203
|
+
product_code: string;
|
|
24204
|
+
tenant_id: string;
|
|
24205
|
+
updated_at?: string;
|
|
24206
|
+
};
|
|
24207
|
+
Update: {
|
|
24208
|
+
created_at?: string;
|
|
24209
|
+
description?: string | null;
|
|
24210
|
+
id?: string;
|
|
24211
|
+
is_active?: boolean;
|
|
24212
|
+
name?: string;
|
|
24213
|
+
produced_stock?: number;
|
|
24214
|
+
product_code?: string;
|
|
24215
|
+
tenant_id?: string;
|
|
24216
|
+
updated_at?: string;
|
|
24217
|
+
};
|
|
24218
|
+
Relationships: [];
|
|
24219
|
+
};
|
|
23676
24220
|
monteurs: {
|
|
23677
24221
|
Row: {
|
|
23678
24222
|
avatar_url: string | null;
|
|
@@ -24633,6 +25177,66 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
24633
25177
|
};
|
|
24634
25178
|
Relationships: [];
|
|
24635
25179
|
};
|
|
25180
|
+
product_group_items: {
|
|
25181
|
+
Row: {
|
|
25182
|
+
created_at: string;
|
|
25183
|
+
id: string;
|
|
25184
|
+
product_group_id: string;
|
|
25185
|
+
quantity: number;
|
|
25186
|
+
trade_item_id: string;
|
|
25187
|
+
};
|
|
25188
|
+
Insert: {
|
|
25189
|
+
created_at?: string;
|
|
25190
|
+
id?: string;
|
|
25191
|
+
product_group_id: string;
|
|
25192
|
+
quantity?: number;
|
|
25193
|
+
trade_item_id: string;
|
|
25194
|
+
};
|
|
25195
|
+
Update: {
|
|
25196
|
+
created_at?: string;
|
|
25197
|
+
id?: string;
|
|
25198
|
+
product_group_id?: string;
|
|
25199
|
+
quantity?: number;
|
|
25200
|
+
trade_item_id?: string;
|
|
25201
|
+
};
|
|
25202
|
+
Relationships: [{
|
|
25203
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
25204
|
+
columns: ["product_group_id"];
|
|
25205
|
+
isOneToOne: false;
|
|
25206
|
+
referencedRelation: "product_groups";
|
|
25207
|
+
referencedColumns: ["id"];
|
|
25208
|
+
}];
|
|
25209
|
+
};
|
|
25210
|
+
product_groups: {
|
|
25211
|
+
Row: {
|
|
25212
|
+
created_at: string;
|
|
25213
|
+
description: string | null;
|
|
25214
|
+
id: string;
|
|
25215
|
+
is_active: boolean;
|
|
25216
|
+
name: string;
|
|
25217
|
+
tenant_id: string;
|
|
25218
|
+
updated_at: string;
|
|
25219
|
+
};
|
|
25220
|
+
Insert: {
|
|
25221
|
+
created_at?: string;
|
|
25222
|
+
description?: string | null;
|
|
25223
|
+
id?: string;
|
|
25224
|
+
is_active?: boolean;
|
|
25225
|
+
name: string;
|
|
25226
|
+
tenant_id: string;
|
|
25227
|
+
updated_at?: string;
|
|
25228
|
+
};
|
|
25229
|
+
Update: {
|
|
25230
|
+
created_at?: string;
|
|
25231
|
+
description?: string | null;
|
|
25232
|
+
id?: string;
|
|
25233
|
+
is_active?: boolean;
|
|
25234
|
+
name?: string;
|
|
25235
|
+
tenant_id?: string;
|
|
25236
|
+
updated_at?: string;
|
|
25237
|
+
};
|
|
25238
|
+
Relationships: [];
|
|
25239
|
+
};
|
|
24636
25240
|
products: {
|
|
24637
25241
|
Row: {
|
|
24638
25242
|
barcode: string | null;
|
|
@@ -25794,6 +26398,48 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
25794
26398
|
};
|
|
25795
26399
|
Relationships: [];
|
|
25796
26400
|
};
|
|
26401
|
+
trade_item_stock: {
|
|
26402
|
+
Row: {
|
|
26403
|
+
connection_id: string;
|
|
26404
|
+
created_at: string;
|
|
26405
|
+
id: string;
|
|
26406
|
+
incoming_stock: number;
|
|
26407
|
+
minimum_stock: number;
|
|
26408
|
+
notes: string | null;
|
|
26409
|
+
physical_stock: number;
|
|
26410
|
+
reserved_stock: number;
|
|
26411
|
+
trade_item_key: string;
|
|
26412
|
+
updated_at: string;
|
|
26413
|
+
user_id: string;
|
|
26414
|
+
};
|
|
26415
|
+
Insert: {
|
|
26416
|
+
connection_id: string;
|
|
26417
|
+
created_at?: string;
|
|
26418
|
+
id?: string;
|
|
26419
|
+
incoming_stock?: number;
|
|
26420
|
+
minimum_stock?: number;
|
|
26421
|
+
notes?: string | null;
|
|
26422
|
+
physical_stock?: number;
|
|
26423
|
+
reserved_stock?: number;
|
|
26424
|
+
trade_item_key: string;
|
|
26425
|
+
updated_at?: string;
|
|
26426
|
+
user_id: string;
|
|
26427
|
+
};
|
|
26428
|
+
Update: {
|
|
26429
|
+
connection_id?: string;
|
|
26430
|
+
created_at?: string;
|
|
26431
|
+
id?: string;
|
|
26432
|
+
incoming_stock?: number;
|
|
26433
|
+
minimum_stock?: number;
|
|
26434
|
+
notes?: string | null;
|
|
26435
|
+
physical_stock?: number;
|
|
26436
|
+
reserved_stock?: number;
|
|
26437
|
+
trade_item_key?: string;
|
|
26438
|
+
updated_at?: string;
|
|
26439
|
+
user_id?: string;
|
|
26440
|
+
};
|
|
26441
|
+
Relationships: [];
|
|
26442
|
+
};
|
|
25797
26443
|
twinfield_connections: {
|
|
25798
26444
|
Row: {
|
|
25799
26445
|
access_token: string | null;
|
|
@@ -26978,6 +27624,35 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
26978
27624
|
};
|
|
26979
27625
|
Relationships: [];
|
|
26980
27626
|
};
|
|
27627
|
+
manufacture_product_possible_stock_view: {
|
|
27628
|
+
Row: {
|
|
27629
|
+
component_count: number | null;
|
|
27630
|
+
manufacture_product_id: string | null;
|
|
27631
|
+
possible_stock: number | null;
|
|
27632
|
+
};
|
|
27633
|
+
Relationships: [];
|
|
27634
|
+
};
|
|
27635
|
+
product_group_stock_view: {
|
|
27636
|
+
Row: {
|
|
27637
|
+
item_count: number | null;
|
|
27638
|
+
product_group_id: string | null;
|
|
27639
|
+
total_stock: number | null;
|
|
27640
|
+
};
|
|
27641
|
+
Relationships: [{
|
|
27642
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
27643
|
+
columns: ["product_group_id"];
|
|
27644
|
+
isOneToOne: false;
|
|
27645
|
+
referencedRelation: "product_groups";
|
|
27646
|
+
referencedColumns: ["id"];
|
|
27647
|
+
}];
|
|
27648
|
+
};
|
|
27649
|
+
trade_item_stock_view: {
|
|
27650
|
+
Row: {
|
|
27651
|
+
stock: number | null;
|
|
27652
|
+
trade_item_id: string | null;
|
|
27653
|
+
};
|
|
27654
|
+
Relationships: [];
|
|
27655
|
+
};
|
|
26981
27656
|
v_external_customers_exact: {
|
|
26982
27657
|
Row: {
|
|
26983
27658
|
account_number: string | null;
|
|
@@ -27548,6 +28223,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
27548
28223
|
row_count: number;
|
|
27549
28224
|
}[];
|
|
27550
28225
|
};
|
|
28226
|
+
refresh_floricode_derived_for_product: {
|
|
28227
|
+
Args: {
|
|
28228
|
+
p_product_code: string;
|
|
28229
|
+
};
|
|
28230
|
+
Returns: number;
|
|
28231
|
+
};
|
|
27551
28232
|
reset_floriday_sync_cursor: {
|
|
27552
28233
|
Args: {
|
|
27553
28234
|
p_connection_id: string;
|