@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
|
@@ -2787,6 +2787,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
|
|
|
2787
2787
|
};
|
|
2788
2788
|
floricode_sync_state: {
|
|
2789
2789
|
Row: {
|
|
2790
|
+
cursor_skip: number;
|
|
2790
2791
|
error_message: string | null;
|
|
2791
2792
|
last_change_date_time: string | null;
|
|
2792
2793
|
last_sequence_number: number;
|
|
@@ -2796,6 +2797,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
|
|
|
2796
2797
|
updated_at: string;
|
|
2797
2798
|
};
|
|
2798
2799
|
Insert: {
|
|
2800
|
+
cursor_skip?: number;
|
|
2799
2801
|
error_message?: string | null;
|
|
2800
2802
|
last_change_date_time?: string | null;
|
|
2801
2803
|
last_sequence_number?: number;
|
|
@@ -2805,6 +2807,7 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
|
|
|
2805
2807
|
updated_at?: string;
|
|
2806
2808
|
};
|
|
2807
2809
|
Update: {
|
|
2810
|
+
cursor_skip?: number;
|
|
2808
2811
|
error_message?: string | null;
|
|
2809
2812
|
last_change_date_time?: string | null;
|
|
2810
2813
|
last_sequence_number?: number;
|
|
@@ -5152,6 +5155,93 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
|
|
|
5152
5155
|
};
|
|
5153
5156
|
Relationships: [];
|
|
5154
5157
|
};
|
|
5158
|
+
manufacture_product_components: {
|
|
5159
|
+
Row: {
|
|
5160
|
+
component_type: string;
|
|
5161
|
+
created_at: string;
|
|
5162
|
+
id: string;
|
|
5163
|
+
manufacture_product_id: string;
|
|
5164
|
+
product_group_id: string | null;
|
|
5165
|
+
quantity: number;
|
|
5166
|
+
trade_item_id: string | null;
|
|
5167
|
+
unit: string;
|
|
5168
|
+
};
|
|
5169
|
+
Insert: {
|
|
5170
|
+
component_type: string;
|
|
5171
|
+
created_at?: string;
|
|
5172
|
+
id?: string;
|
|
5173
|
+
manufacture_product_id: string;
|
|
5174
|
+
product_group_id?: string | null;
|
|
5175
|
+
quantity?: number;
|
|
5176
|
+
trade_item_id?: string | null;
|
|
5177
|
+
unit?: string;
|
|
5178
|
+
};
|
|
5179
|
+
Update: {
|
|
5180
|
+
component_type?: string;
|
|
5181
|
+
created_at?: string;
|
|
5182
|
+
id?: string;
|
|
5183
|
+
manufacture_product_id?: string;
|
|
5184
|
+
product_group_id?: string | null;
|
|
5185
|
+
quantity?: number;
|
|
5186
|
+
trade_item_id?: string | null;
|
|
5187
|
+
unit?: string;
|
|
5188
|
+
};
|
|
5189
|
+
Relationships: [{
|
|
5190
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5191
|
+
columns: ["manufacture_product_id"];
|
|
5192
|
+
isOneToOne: false;
|
|
5193
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
5194
|
+
referencedColumns: ["manufacture_product_id"];
|
|
5195
|
+
}, {
|
|
5196
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5197
|
+
columns: ["manufacture_product_id"];
|
|
5198
|
+
isOneToOne: false;
|
|
5199
|
+
referencedRelation: "manufacture_products";
|
|
5200
|
+
referencedColumns: ["id"];
|
|
5201
|
+
}, {
|
|
5202
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
5203
|
+
columns: ["product_group_id"];
|
|
5204
|
+
isOneToOne: false;
|
|
5205
|
+
referencedRelation: "product_groups";
|
|
5206
|
+
referencedColumns: ["id"];
|
|
5207
|
+
}];
|
|
5208
|
+
};
|
|
5209
|
+
manufacture_products: {
|
|
5210
|
+
Row: {
|
|
5211
|
+
created_at: string;
|
|
5212
|
+
description: string | null;
|
|
5213
|
+
id: string;
|
|
5214
|
+
is_active: boolean;
|
|
5215
|
+
name: string;
|
|
5216
|
+
produced_stock: number;
|
|
5217
|
+
product_code: string;
|
|
5218
|
+
tenant_id: string;
|
|
5219
|
+
updated_at: string;
|
|
5220
|
+
};
|
|
5221
|
+
Insert: {
|
|
5222
|
+
created_at?: string;
|
|
5223
|
+
description?: string | null;
|
|
5224
|
+
id?: string;
|
|
5225
|
+
is_active?: boolean;
|
|
5226
|
+
name: string;
|
|
5227
|
+
produced_stock?: number;
|
|
5228
|
+
product_code: string;
|
|
5229
|
+
tenant_id: string;
|
|
5230
|
+
updated_at?: string;
|
|
5231
|
+
};
|
|
5232
|
+
Update: {
|
|
5233
|
+
created_at?: string;
|
|
5234
|
+
description?: string | null;
|
|
5235
|
+
id?: string;
|
|
5236
|
+
is_active?: boolean;
|
|
5237
|
+
name?: string;
|
|
5238
|
+
produced_stock?: number;
|
|
5239
|
+
product_code?: string;
|
|
5240
|
+
tenant_id?: string;
|
|
5241
|
+
updated_at?: string;
|
|
5242
|
+
};
|
|
5243
|
+
Relationships: [];
|
|
5244
|
+
};
|
|
5155
5245
|
monteurs: {
|
|
5156
5246
|
Row: {
|
|
5157
5247
|
avatar_url: string | null;
|
|
@@ -6112,6 +6202,66 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
|
|
|
6112
6202
|
};
|
|
6113
6203
|
Relationships: [];
|
|
6114
6204
|
};
|
|
6205
|
+
product_group_items: {
|
|
6206
|
+
Row: {
|
|
6207
|
+
created_at: string;
|
|
6208
|
+
id: string;
|
|
6209
|
+
product_group_id: string;
|
|
6210
|
+
quantity: number;
|
|
6211
|
+
trade_item_id: string;
|
|
6212
|
+
};
|
|
6213
|
+
Insert: {
|
|
6214
|
+
created_at?: string;
|
|
6215
|
+
id?: string;
|
|
6216
|
+
product_group_id: string;
|
|
6217
|
+
quantity?: number;
|
|
6218
|
+
trade_item_id: string;
|
|
6219
|
+
};
|
|
6220
|
+
Update: {
|
|
6221
|
+
created_at?: string;
|
|
6222
|
+
id?: string;
|
|
6223
|
+
product_group_id?: string;
|
|
6224
|
+
quantity?: number;
|
|
6225
|
+
trade_item_id?: string;
|
|
6226
|
+
};
|
|
6227
|
+
Relationships: [{
|
|
6228
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
6229
|
+
columns: ["product_group_id"];
|
|
6230
|
+
isOneToOne: false;
|
|
6231
|
+
referencedRelation: "product_groups";
|
|
6232
|
+
referencedColumns: ["id"];
|
|
6233
|
+
}];
|
|
6234
|
+
};
|
|
6235
|
+
product_groups: {
|
|
6236
|
+
Row: {
|
|
6237
|
+
created_at: string;
|
|
6238
|
+
description: string | null;
|
|
6239
|
+
id: string;
|
|
6240
|
+
is_active: boolean;
|
|
6241
|
+
name: string;
|
|
6242
|
+
tenant_id: string;
|
|
6243
|
+
updated_at: string;
|
|
6244
|
+
};
|
|
6245
|
+
Insert: {
|
|
6246
|
+
created_at?: string;
|
|
6247
|
+
description?: string | null;
|
|
6248
|
+
id?: string;
|
|
6249
|
+
is_active?: boolean;
|
|
6250
|
+
name: string;
|
|
6251
|
+
tenant_id: string;
|
|
6252
|
+
updated_at?: string;
|
|
6253
|
+
};
|
|
6254
|
+
Update: {
|
|
6255
|
+
created_at?: string;
|
|
6256
|
+
description?: string | null;
|
|
6257
|
+
id?: string;
|
|
6258
|
+
is_active?: boolean;
|
|
6259
|
+
name?: string;
|
|
6260
|
+
tenant_id?: string;
|
|
6261
|
+
updated_at?: string;
|
|
6262
|
+
};
|
|
6263
|
+
Relationships: [];
|
|
6264
|
+
};
|
|
6115
6265
|
products: {
|
|
6116
6266
|
Row: {
|
|
6117
6267
|
barcode: string | null;
|
|
@@ -7273,6 +7423,48 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
|
|
|
7273
7423
|
};
|
|
7274
7424
|
Relationships: [];
|
|
7275
7425
|
};
|
|
7426
|
+
trade_item_stock: {
|
|
7427
|
+
Row: {
|
|
7428
|
+
connection_id: string;
|
|
7429
|
+
created_at: string;
|
|
7430
|
+
id: string;
|
|
7431
|
+
incoming_stock: number;
|
|
7432
|
+
minimum_stock: number;
|
|
7433
|
+
notes: string | null;
|
|
7434
|
+
physical_stock: number;
|
|
7435
|
+
reserved_stock: number;
|
|
7436
|
+
trade_item_key: string;
|
|
7437
|
+
updated_at: string;
|
|
7438
|
+
user_id: string;
|
|
7439
|
+
};
|
|
7440
|
+
Insert: {
|
|
7441
|
+
connection_id: string;
|
|
7442
|
+
created_at?: string;
|
|
7443
|
+
id?: string;
|
|
7444
|
+
incoming_stock?: number;
|
|
7445
|
+
minimum_stock?: number;
|
|
7446
|
+
notes?: string | null;
|
|
7447
|
+
physical_stock?: number;
|
|
7448
|
+
reserved_stock?: number;
|
|
7449
|
+
trade_item_key: string;
|
|
7450
|
+
updated_at?: string;
|
|
7451
|
+
user_id: string;
|
|
7452
|
+
};
|
|
7453
|
+
Update: {
|
|
7454
|
+
connection_id?: string;
|
|
7455
|
+
created_at?: string;
|
|
7456
|
+
id?: string;
|
|
7457
|
+
incoming_stock?: number;
|
|
7458
|
+
minimum_stock?: number;
|
|
7459
|
+
notes?: string | null;
|
|
7460
|
+
physical_stock?: number;
|
|
7461
|
+
reserved_stock?: number;
|
|
7462
|
+
trade_item_key?: string;
|
|
7463
|
+
updated_at?: string;
|
|
7464
|
+
user_id?: string;
|
|
7465
|
+
};
|
|
7466
|
+
Relationships: [];
|
|
7467
|
+
};
|
|
7276
7468
|
twinfield_connections: {
|
|
7277
7469
|
Row: {
|
|
7278
7470
|
access_token: string | null;
|
|
@@ -8457,6 +8649,35 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
|
|
|
8457
8649
|
};
|
|
8458
8650
|
Relationships: [];
|
|
8459
8651
|
};
|
|
8652
|
+
manufacture_product_possible_stock_view: {
|
|
8653
|
+
Row: {
|
|
8654
|
+
component_count: number | null;
|
|
8655
|
+
manufacture_product_id: string | null;
|
|
8656
|
+
possible_stock: number | null;
|
|
8657
|
+
};
|
|
8658
|
+
Relationships: [];
|
|
8659
|
+
};
|
|
8660
|
+
product_group_stock_view: {
|
|
8661
|
+
Row: {
|
|
8662
|
+
item_count: number | null;
|
|
8663
|
+
product_group_id: string | null;
|
|
8664
|
+
total_stock: number | null;
|
|
8665
|
+
};
|
|
8666
|
+
Relationships: [{
|
|
8667
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
8668
|
+
columns: ["product_group_id"];
|
|
8669
|
+
isOneToOne: false;
|
|
8670
|
+
referencedRelation: "product_groups";
|
|
8671
|
+
referencedColumns: ["id"];
|
|
8672
|
+
}];
|
|
8673
|
+
};
|
|
8674
|
+
trade_item_stock_view: {
|
|
8675
|
+
Row: {
|
|
8676
|
+
stock: number | null;
|
|
8677
|
+
trade_item_id: string | null;
|
|
8678
|
+
};
|
|
8679
|
+
Relationships: [];
|
|
8680
|
+
};
|
|
8460
8681
|
v_external_customers_exact: {
|
|
8461
8682
|
Row: {
|
|
8462
8683
|
account_number: string | null;
|
|
@@ -9027,6 +9248,12 @@ export declare const listExternalProviders: import("@tanstack/start-client-core"
|
|
|
9027
9248
|
row_count: number;
|
|
9028
9249
|
}[];
|
|
9029
9250
|
};
|
|
9251
|
+
refresh_floricode_derived_for_product: {
|
|
9252
|
+
Args: {
|
|
9253
|
+
p_product_code: string;
|
|
9254
|
+
};
|
|
9255
|
+
Returns: number;
|
|
9256
|
+
};
|
|
9030
9257
|
reset_floriday_sync_cursor: {
|
|
9031
9258
|
Args: {
|
|
9032
9259
|
p_connection_id: string;
|
|
@@ -12074,6 +12301,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
|
|
|
12074
12301
|
};
|
|
12075
12302
|
floricode_sync_state: {
|
|
12076
12303
|
Row: {
|
|
12304
|
+
cursor_skip: number;
|
|
12077
12305
|
error_message: string | null;
|
|
12078
12306
|
last_change_date_time: string | null;
|
|
12079
12307
|
last_sequence_number: number;
|
|
@@ -12083,6 +12311,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
|
|
|
12083
12311
|
updated_at: string;
|
|
12084
12312
|
};
|
|
12085
12313
|
Insert: {
|
|
12314
|
+
cursor_skip?: number;
|
|
12086
12315
|
error_message?: string | null;
|
|
12087
12316
|
last_change_date_time?: string | null;
|
|
12088
12317
|
last_sequence_number?: number;
|
|
@@ -12092,6 +12321,7 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
|
|
|
12092
12321
|
updated_at?: string;
|
|
12093
12322
|
};
|
|
12094
12323
|
Update: {
|
|
12324
|
+
cursor_skip?: number;
|
|
12095
12325
|
error_message?: string | null;
|
|
12096
12326
|
last_change_date_time?: string | null;
|
|
12097
12327
|
last_sequence_number?: number;
|
|
@@ -14439,6 +14669,93 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
|
|
|
14439
14669
|
};
|
|
14440
14670
|
Relationships: [];
|
|
14441
14671
|
};
|
|
14672
|
+
manufacture_product_components: {
|
|
14673
|
+
Row: {
|
|
14674
|
+
component_type: string;
|
|
14675
|
+
created_at: string;
|
|
14676
|
+
id: string;
|
|
14677
|
+
manufacture_product_id: string;
|
|
14678
|
+
product_group_id: string | null;
|
|
14679
|
+
quantity: number;
|
|
14680
|
+
trade_item_id: string | null;
|
|
14681
|
+
unit: string;
|
|
14682
|
+
};
|
|
14683
|
+
Insert: {
|
|
14684
|
+
component_type: string;
|
|
14685
|
+
created_at?: string;
|
|
14686
|
+
id?: string;
|
|
14687
|
+
manufacture_product_id: string;
|
|
14688
|
+
product_group_id?: string | null;
|
|
14689
|
+
quantity?: number;
|
|
14690
|
+
trade_item_id?: string | null;
|
|
14691
|
+
unit?: string;
|
|
14692
|
+
};
|
|
14693
|
+
Update: {
|
|
14694
|
+
component_type?: string;
|
|
14695
|
+
created_at?: string;
|
|
14696
|
+
id?: string;
|
|
14697
|
+
manufacture_product_id?: string;
|
|
14698
|
+
product_group_id?: string | null;
|
|
14699
|
+
quantity?: number;
|
|
14700
|
+
trade_item_id?: string | null;
|
|
14701
|
+
unit?: string;
|
|
14702
|
+
};
|
|
14703
|
+
Relationships: [{
|
|
14704
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
14705
|
+
columns: ["manufacture_product_id"];
|
|
14706
|
+
isOneToOne: false;
|
|
14707
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
14708
|
+
referencedColumns: ["manufacture_product_id"];
|
|
14709
|
+
}, {
|
|
14710
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
14711
|
+
columns: ["manufacture_product_id"];
|
|
14712
|
+
isOneToOne: false;
|
|
14713
|
+
referencedRelation: "manufacture_products";
|
|
14714
|
+
referencedColumns: ["id"];
|
|
14715
|
+
}, {
|
|
14716
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
14717
|
+
columns: ["product_group_id"];
|
|
14718
|
+
isOneToOne: false;
|
|
14719
|
+
referencedRelation: "product_groups";
|
|
14720
|
+
referencedColumns: ["id"];
|
|
14721
|
+
}];
|
|
14722
|
+
};
|
|
14723
|
+
manufacture_products: {
|
|
14724
|
+
Row: {
|
|
14725
|
+
created_at: string;
|
|
14726
|
+
description: string | null;
|
|
14727
|
+
id: string;
|
|
14728
|
+
is_active: boolean;
|
|
14729
|
+
name: string;
|
|
14730
|
+
produced_stock: number;
|
|
14731
|
+
product_code: string;
|
|
14732
|
+
tenant_id: string;
|
|
14733
|
+
updated_at: string;
|
|
14734
|
+
};
|
|
14735
|
+
Insert: {
|
|
14736
|
+
created_at?: string;
|
|
14737
|
+
description?: string | null;
|
|
14738
|
+
id?: string;
|
|
14739
|
+
is_active?: boolean;
|
|
14740
|
+
name: string;
|
|
14741
|
+
produced_stock?: number;
|
|
14742
|
+
product_code: string;
|
|
14743
|
+
tenant_id: string;
|
|
14744
|
+
updated_at?: string;
|
|
14745
|
+
};
|
|
14746
|
+
Update: {
|
|
14747
|
+
created_at?: string;
|
|
14748
|
+
description?: string | null;
|
|
14749
|
+
id?: string;
|
|
14750
|
+
is_active?: boolean;
|
|
14751
|
+
name?: string;
|
|
14752
|
+
produced_stock?: number;
|
|
14753
|
+
product_code?: string;
|
|
14754
|
+
tenant_id?: string;
|
|
14755
|
+
updated_at?: string;
|
|
14756
|
+
};
|
|
14757
|
+
Relationships: [];
|
|
14758
|
+
};
|
|
14442
14759
|
monteurs: {
|
|
14443
14760
|
Row: {
|
|
14444
14761
|
avatar_url: string | null;
|
|
@@ -15399,6 +15716,66 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
|
|
|
15399
15716
|
};
|
|
15400
15717
|
Relationships: [];
|
|
15401
15718
|
};
|
|
15719
|
+
product_group_items: {
|
|
15720
|
+
Row: {
|
|
15721
|
+
created_at: string;
|
|
15722
|
+
id: string;
|
|
15723
|
+
product_group_id: string;
|
|
15724
|
+
quantity: number;
|
|
15725
|
+
trade_item_id: string;
|
|
15726
|
+
};
|
|
15727
|
+
Insert: {
|
|
15728
|
+
created_at?: string;
|
|
15729
|
+
id?: string;
|
|
15730
|
+
product_group_id: string;
|
|
15731
|
+
quantity?: number;
|
|
15732
|
+
trade_item_id: string;
|
|
15733
|
+
};
|
|
15734
|
+
Update: {
|
|
15735
|
+
created_at?: string;
|
|
15736
|
+
id?: string;
|
|
15737
|
+
product_group_id?: string;
|
|
15738
|
+
quantity?: number;
|
|
15739
|
+
trade_item_id?: string;
|
|
15740
|
+
};
|
|
15741
|
+
Relationships: [{
|
|
15742
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
15743
|
+
columns: ["product_group_id"];
|
|
15744
|
+
isOneToOne: false;
|
|
15745
|
+
referencedRelation: "product_groups";
|
|
15746
|
+
referencedColumns: ["id"];
|
|
15747
|
+
}];
|
|
15748
|
+
};
|
|
15749
|
+
product_groups: {
|
|
15750
|
+
Row: {
|
|
15751
|
+
created_at: string;
|
|
15752
|
+
description: string | null;
|
|
15753
|
+
id: string;
|
|
15754
|
+
is_active: boolean;
|
|
15755
|
+
name: string;
|
|
15756
|
+
tenant_id: string;
|
|
15757
|
+
updated_at: string;
|
|
15758
|
+
};
|
|
15759
|
+
Insert: {
|
|
15760
|
+
created_at?: string;
|
|
15761
|
+
description?: string | null;
|
|
15762
|
+
id?: string;
|
|
15763
|
+
is_active?: boolean;
|
|
15764
|
+
name: string;
|
|
15765
|
+
tenant_id: string;
|
|
15766
|
+
updated_at?: string;
|
|
15767
|
+
};
|
|
15768
|
+
Update: {
|
|
15769
|
+
created_at?: string;
|
|
15770
|
+
description?: string | null;
|
|
15771
|
+
id?: string;
|
|
15772
|
+
is_active?: boolean;
|
|
15773
|
+
name?: string;
|
|
15774
|
+
tenant_id?: string;
|
|
15775
|
+
updated_at?: string;
|
|
15776
|
+
};
|
|
15777
|
+
Relationships: [];
|
|
15778
|
+
};
|
|
15402
15779
|
products: {
|
|
15403
15780
|
Row: {
|
|
15404
15781
|
barcode: string | null;
|
|
@@ -16560,6 +16937,48 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
|
|
|
16560
16937
|
};
|
|
16561
16938
|
Relationships: [];
|
|
16562
16939
|
};
|
|
16940
|
+
trade_item_stock: {
|
|
16941
|
+
Row: {
|
|
16942
|
+
connection_id: string;
|
|
16943
|
+
created_at: string;
|
|
16944
|
+
id: string;
|
|
16945
|
+
incoming_stock: number;
|
|
16946
|
+
minimum_stock: number;
|
|
16947
|
+
notes: string | null;
|
|
16948
|
+
physical_stock: number;
|
|
16949
|
+
reserved_stock: number;
|
|
16950
|
+
trade_item_key: string;
|
|
16951
|
+
updated_at: string;
|
|
16952
|
+
user_id: string;
|
|
16953
|
+
};
|
|
16954
|
+
Insert: {
|
|
16955
|
+
connection_id: string;
|
|
16956
|
+
created_at?: string;
|
|
16957
|
+
id?: string;
|
|
16958
|
+
incoming_stock?: number;
|
|
16959
|
+
minimum_stock?: number;
|
|
16960
|
+
notes?: string | null;
|
|
16961
|
+
physical_stock?: number;
|
|
16962
|
+
reserved_stock?: number;
|
|
16963
|
+
trade_item_key: string;
|
|
16964
|
+
updated_at?: string;
|
|
16965
|
+
user_id: string;
|
|
16966
|
+
};
|
|
16967
|
+
Update: {
|
|
16968
|
+
connection_id?: string;
|
|
16969
|
+
created_at?: string;
|
|
16970
|
+
id?: string;
|
|
16971
|
+
incoming_stock?: number;
|
|
16972
|
+
minimum_stock?: number;
|
|
16973
|
+
notes?: string | null;
|
|
16974
|
+
physical_stock?: number;
|
|
16975
|
+
reserved_stock?: number;
|
|
16976
|
+
trade_item_key?: string;
|
|
16977
|
+
updated_at?: string;
|
|
16978
|
+
user_id?: string;
|
|
16979
|
+
};
|
|
16980
|
+
Relationships: [];
|
|
16981
|
+
};
|
|
16563
16982
|
twinfield_connections: {
|
|
16564
16983
|
Row: {
|
|
16565
16984
|
access_token: string | null;
|
|
@@ -17744,6 +18163,35 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
|
|
|
17744
18163
|
};
|
|
17745
18164
|
Relationships: [];
|
|
17746
18165
|
};
|
|
18166
|
+
manufacture_product_possible_stock_view: {
|
|
18167
|
+
Row: {
|
|
18168
|
+
component_count: number | null;
|
|
18169
|
+
manufacture_product_id: string | null;
|
|
18170
|
+
possible_stock: number | null;
|
|
18171
|
+
};
|
|
18172
|
+
Relationships: [];
|
|
18173
|
+
};
|
|
18174
|
+
product_group_stock_view: {
|
|
18175
|
+
Row: {
|
|
18176
|
+
item_count: number | null;
|
|
18177
|
+
product_group_id: string | null;
|
|
18178
|
+
total_stock: number | null;
|
|
18179
|
+
};
|
|
18180
|
+
Relationships: [{
|
|
18181
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
18182
|
+
columns: ["product_group_id"];
|
|
18183
|
+
isOneToOne: false;
|
|
18184
|
+
referencedRelation: "product_groups";
|
|
18185
|
+
referencedColumns: ["id"];
|
|
18186
|
+
}];
|
|
18187
|
+
};
|
|
18188
|
+
trade_item_stock_view: {
|
|
18189
|
+
Row: {
|
|
18190
|
+
stock: number | null;
|
|
18191
|
+
trade_item_id: string | null;
|
|
18192
|
+
};
|
|
18193
|
+
Relationships: [];
|
|
18194
|
+
};
|
|
17747
18195
|
v_external_customers_exact: {
|
|
17748
18196
|
Row: {
|
|
17749
18197
|
account_number: string | null;
|
|
@@ -18314,6 +18762,12 @@ export declare const listExternalCustomers: import("@tanstack/start-client-core"
|
|
|
18314
18762
|
row_count: number;
|
|
18315
18763
|
}[];
|
|
18316
18764
|
};
|
|
18765
|
+
refresh_floricode_derived_for_product: {
|
|
18766
|
+
Args: {
|
|
18767
|
+
p_product_code: string;
|
|
18768
|
+
};
|
|
18769
|
+
Returns: number;
|
|
18770
|
+
};
|
|
18317
18771
|
reset_floriday_sync_cursor: {
|
|
18318
18772
|
Args: {
|
|
18319
18773
|
p_connection_id: string;
|
|
@@ -21368,6 +21822,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
|
|
|
21368
21822
|
};
|
|
21369
21823
|
floricode_sync_state: {
|
|
21370
21824
|
Row: {
|
|
21825
|
+
cursor_skip: number;
|
|
21371
21826
|
error_message: string | null;
|
|
21372
21827
|
last_change_date_time: string | null;
|
|
21373
21828
|
last_sequence_number: number;
|
|
@@ -21377,6 +21832,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
|
|
|
21377
21832
|
updated_at: string;
|
|
21378
21833
|
};
|
|
21379
21834
|
Insert: {
|
|
21835
|
+
cursor_skip?: number;
|
|
21380
21836
|
error_message?: string | null;
|
|
21381
21837
|
last_change_date_time?: string | null;
|
|
21382
21838
|
last_sequence_number?: number;
|
|
@@ -21386,6 +21842,7 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
|
|
|
21386
21842
|
updated_at?: string;
|
|
21387
21843
|
};
|
|
21388
21844
|
Update: {
|
|
21845
|
+
cursor_skip?: number;
|
|
21389
21846
|
error_message?: string | null;
|
|
21390
21847
|
last_change_date_time?: string | null;
|
|
21391
21848
|
last_sequence_number?: number;
|
|
@@ -23733,6 +24190,93 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
|
|
|
23733
24190
|
};
|
|
23734
24191
|
Relationships: [];
|
|
23735
24192
|
};
|
|
24193
|
+
manufacture_product_components: {
|
|
24194
|
+
Row: {
|
|
24195
|
+
component_type: string;
|
|
24196
|
+
created_at: string;
|
|
24197
|
+
id: string;
|
|
24198
|
+
manufacture_product_id: string;
|
|
24199
|
+
product_group_id: string | null;
|
|
24200
|
+
quantity: number;
|
|
24201
|
+
trade_item_id: string | null;
|
|
24202
|
+
unit: string;
|
|
24203
|
+
};
|
|
24204
|
+
Insert: {
|
|
24205
|
+
component_type: string;
|
|
24206
|
+
created_at?: string;
|
|
24207
|
+
id?: string;
|
|
24208
|
+
manufacture_product_id: string;
|
|
24209
|
+
product_group_id?: string | null;
|
|
24210
|
+
quantity?: number;
|
|
24211
|
+
trade_item_id?: string | null;
|
|
24212
|
+
unit?: string;
|
|
24213
|
+
};
|
|
24214
|
+
Update: {
|
|
24215
|
+
component_type?: string;
|
|
24216
|
+
created_at?: string;
|
|
24217
|
+
id?: string;
|
|
24218
|
+
manufacture_product_id?: string;
|
|
24219
|
+
product_group_id?: string | null;
|
|
24220
|
+
quantity?: number;
|
|
24221
|
+
trade_item_id?: string | null;
|
|
24222
|
+
unit?: string;
|
|
24223
|
+
};
|
|
24224
|
+
Relationships: [{
|
|
24225
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
24226
|
+
columns: ["manufacture_product_id"];
|
|
24227
|
+
isOneToOne: false;
|
|
24228
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
24229
|
+
referencedColumns: ["manufacture_product_id"];
|
|
24230
|
+
}, {
|
|
24231
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
24232
|
+
columns: ["manufacture_product_id"];
|
|
24233
|
+
isOneToOne: false;
|
|
24234
|
+
referencedRelation: "manufacture_products";
|
|
24235
|
+
referencedColumns: ["id"];
|
|
24236
|
+
}, {
|
|
24237
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
24238
|
+
columns: ["product_group_id"];
|
|
24239
|
+
isOneToOne: false;
|
|
24240
|
+
referencedRelation: "product_groups";
|
|
24241
|
+
referencedColumns: ["id"];
|
|
24242
|
+
}];
|
|
24243
|
+
};
|
|
24244
|
+
manufacture_products: {
|
|
24245
|
+
Row: {
|
|
24246
|
+
created_at: string;
|
|
24247
|
+
description: string | null;
|
|
24248
|
+
id: string;
|
|
24249
|
+
is_active: boolean;
|
|
24250
|
+
name: string;
|
|
24251
|
+
produced_stock: number;
|
|
24252
|
+
product_code: string;
|
|
24253
|
+
tenant_id: string;
|
|
24254
|
+
updated_at: string;
|
|
24255
|
+
};
|
|
24256
|
+
Insert: {
|
|
24257
|
+
created_at?: string;
|
|
24258
|
+
description?: string | null;
|
|
24259
|
+
id?: string;
|
|
24260
|
+
is_active?: boolean;
|
|
24261
|
+
name: string;
|
|
24262
|
+
produced_stock?: number;
|
|
24263
|
+
product_code: string;
|
|
24264
|
+
tenant_id: string;
|
|
24265
|
+
updated_at?: string;
|
|
24266
|
+
};
|
|
24267
|
+
Update: {
|
|
24268
|
+
created_at?: string;
|
|
24269
|
+
description?: string | null;
|
|
24270
|
+
id?: string;
|
|
24271
|
+
is_active?: boolean;
|
|
24272
|
+
name?: string;
|
|
24273
|
+
produced_stock?: number;
|
|
24274
|
+
product_code?: string;
|
|
24275
|
+
tenant_id?: string;
|
|
24276
|
+
updated_at?: string;
|
|
24277
|
+
};
|
|
24278
|
+
Relationships: [];
|
|
24279
|
+
};
|
|
23736
24280
|
monteurs: {
|
|
23737
24281
|
Row: {
|
|
23738
24282
|
avatar_url: string | null;
|
|
@@ -24693,6 +25237,66 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
|
|
|
24693
25237
|
};
|
|
24694
25238
|
Relationships: [];
|
|
24695
25239
|
};
|
|
25240
|
+
product_group_items: {
|
|
25241
|
+
Row: {
|
|
25242
|
+
created_at: string;
|
|
25243
|
+
id: string;
|
|
25244
|
+
product_group_id: string;
|
|
25245
|
+
quantity: number;
|
|
25246
|
+
trade_item_id: string;
|
|
25247
|
+
};
|
|
25248
|
+
Insert: {
|
|
25249
|
+
created_at?: string;
|
|
25250
|
+
id?: string;
|
|
25251
|
+
product_group_id: string;
|
|
25252
|
+
quantity?: number;
|
|
25253
|
+
trade_item_id: string;
|
|
25254
|
+
};
|
|
25255
|
+
Update: {
|
|
25256
|
+
created_at?: string;
|
|
25257
|
+
id?: string;
|
|
25258
|
+
product_group_id?: string;
|
|
25259
|
+
quantity?: number;
|
|
25260
|
+
trade_item_id?: string;
|
|
25261
|
+
};
|
|
25262
|
+
Relationships: [{
|
|
25263
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
25264
|
+
columns: ["product_group_id"];
|
|
25265
|
+
isOneToOne: false;
|
|
25266
|
+
referencedRelation: "product_groups";
|
|
25267
|
+
referencedColumns: ["id"];
|
|
25268
|
+
}];
|
|
25269
|
+
};
|
|
25270
|
+
product_groups: {
|
|
25271
|
+
Row: {
|
|
25272
|
+
created_at: string;
|
|
25273
|
+
description: string | null;
|
|
25274
|
+
id: string;
|
|
25275
|
+
is_active: boolean;
|
|
25276
|
+
name: string;
|
|
25277
|
+
tenant_id: string;
|
|
25278
|
+
updated_at: string;
|
|
25279
|
+
};
|
|
25280
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
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
|
+
Relationships: [];
|
|
25299
|
+
};
|
|
24696
25300
|
products: {
|
|
24697
25301
|
Row: {
|
|
24698
25302
|
barcode: string | null;
|
|
@@ -25854,6 +26458,48 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
|
|
|
25854
26458
|
};
|
|
25855
26459
|
Relationships: [];
|
|
25856
26460
|
};
|
|
26461
|
+
trade_item_stock: {
|
|
26462
|
+
Row: {
|
|
26463
|
+
connection_id: string;
|
|
26464
|
+
created_at: string;
|
|
26465
|
+
id: string;
|
|
26466
|
+
incoming_stock: number;
|
|
26467
|
+
minimum_stock: number;
|
|
26468
|
+
notes: string | null;
|
|
26469
|
+
physical_stock: number;
|
|
26470
|
+
reserved_stock: number;
|
|
26471
|
+
trade_item_key: string;
|
|
26472
|
+
updated_at: string;
|
|
26473
|
+
user_id: string;
|
|
26474
|
+
};
|
|
26475
|
+
Insert: {
|
|
26476
|
+
connection_id: string;
|
|
26477
|
+
created_at?: string;
|
|
26478
|
+
id?: string;
|
|
26479
|
+
incoming_stock?: number;
|
|
26480
|
+
minimum_stock?: number;
|
|
26481
|
+
notes?: string | null;
|
|
26482
|
+
physical_stock?: number;
|
|
26483
|
+
reserved_stock?: number;
|
|
26484
|
+
trade_item_key: string;
|
|
26485
|
+
updated_at?: string;
|
|
26486
|
+
user_id: string;
|
|
26487
|
+
};
|
|
26488
|
+
Update: {
|
|
26489
|
+
connection_id?: string;
|
|
26490
|
+
created_at?: string;
|
|
26491
|
+
id?: string;
|
|
26492
|
+
incoming_stock?: number;
|
|
26493
|
+
minimum_stock?: number;
|
|
26494
|
+
notes?: string | null;
|
|
26495
|
+
physical_stock?: number;
|
|
26496
|
+
reserved_stock?: number;
|
|
26497
|
+
trade_item_key?: string;
|
|
26498
|
+
updated_at?: string;
|
|
26499
|
+
user_id?: string;
|
|
26500
|
+
};
|
|
26501
|
+
Relationships: [];
|
|
26502
|
+
};
|
|
25857
26503
|
twinfield_connections: {
|
|
25858
26504
|
Row: {
|
|
25859
26505
|
access_token: string | null;
|
|
@@ -27038,6 +27684,35 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
|
|
|
27038
27684
|
};
|
|
27039
27685
|
Relationships: [];
|
|
27040
27686
|
};
|
|
27687
|
+
manufacture_product_possible_stock_view: {
|
|
27688
|
+
Row: {
|
|
27689
|
+
component_count: number | null;
|
|
27690
|
+
manufacture_product_id: string | null;
|
|
27691
|
+
possible_stock: number | null;
|
|
27692
|
+
};
|
|
27693
|
+
Relationships: [];
|
|
27694
|
+
};
|
|
27695
|
+
product_group_stock_view: {
|
|
27696
|
+
Row: {
|
|
27697
|
+
item_count: number | null;
|
|
27698
|
+
product_group_id: string | null;
|
|
27699
|
+
total_stock: number | null;
|
|
27700
|
+
};
|
|
27701
|
+
Relationships: [{
|
|
27702
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
27703
|
+
columns: ["product_group_id"];
|
|
27704
|
+
isOneToOne: false;
|
|
27705
|
+
referencedRelation: "product_groups";
|
|
27706
|
+
referencedColumns: ["id"];
|
|
27707
|
+
}];
|
|
27708
|
+
};
|
|
27709
|
+
trade_item_stock_view: {
|
|
27710
|
+
Row: {
|
|
27711
|
+
stock: number | null;
|
|
27712
|
+
trade_item_id: string | null;
|
|
27713
|
+
};
|
|
27714
|
+
Relationships: [];
|
|
27715
|
+
};
|
|
27041
27716
|
v_external_customers_exact: {
|
|
27042
27717
|
Row: {
|
|
27043
27718
|
account_number: string | null;
|
|
@@ -27608,6 +28283,12 @@ export declare const getGroupedCustomerDetail: import("@tanstack/start-client-co
|
|
|
27608
28283
|
row_count: number;
|
|
27609
28284
|
}[];
|
|
27610
28285
|
};
|
|
28286
|
+
refresh_floricode_derived_for_product: {
|
|
28287
|
+
Args: {
|
|
28288
|
+
p_product_code: string;
|
|
28289
|
+
};
|
|
28290
|
+
Returns: number;
|
|
28291
|
+
};
|
|
27611
28292
|
reset_floriday_sync_cursor: {
|
|
27612
28293
|
Args: {
|
|
27613
28294
|
p_connection_id: string;
|
|
@@ -30660,6 +31341,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
|
|
|
30660
31341
|
};
|
|
30661
31342
|
floricode_sync_state: {
|
|
30662
31343
|
Row: {
|
|
31344
|
+
cursor_skip: number;
|
|
30663
31345
|
error_message: string | null;
|
|
30664
31346
|
last_change_date_time: string | null;
|
|
30665
31347
|
last_sequence_number: number;
|
|
@@ -30669,6 +31351,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
|
|
|
30669
31351
|
updated_at: string;
|
|
30670
31352
|
};
|
|
30671
31353
|
Insert: {
|
|
31354
|
+
cursor_skip?: number;
|
|
30672
31355
|
error_message?: string | null;
|
|
30673
31356
|
last_change_date_time?: string | null;
|
|
30674
31357
|
last_sequence_number?: number;
|
|
@@ -30678,6 +31361,7 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
|
|
|
30678
31361
|
updated_at?: string;
|
|
30679
31362
|
};
|
|
30680
31363
|
Update: {
|
|
31364
|
+
cursor_skip?: number;
|
|
30681
31365
|
error_message?: string | null;
|
|
30682
31366
|
last_change_date_time?: string | null;
|
|
30683
31367
|
last_sequence_number?: number;
|
|
@@ -33025,6 +33709,93 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
|
|
|
33025
33709
|
};
|
|
33026
33710
|
Relationships: [];
|
|
33027
33711
|
};
|
|
33712
|
+
manufacture_product_components: {
|
|
33713
|
+
Row: {
|
|
33714
|
+
component_type: string;
|
|
33715
|
+
created_at: string;
|
|
33716
|
+
id: string;
|
|
33717
|
+
manufacture_product_id: string;
|
|
33718
|
+
product_group_id: string | null;
|
|
33719
|
+
quantity: number;
|
|
33720
|
+
trade_item_id: string | null;
|
|
33721
|
+
unit: string;
|
|
33722
|
+
};
|
|
33723
|
+
Insert: {
|
|
33724
|
+
component_type: string;
|
|
33725
|
+
created_at?: string;
|
|
33726
|
+
id?: string;
|
|
33727
|
+
manufacture_product_id: string;
|
|
33728
|
+
product_group_id?: string | null;
|
|
33729
|
+
quantity?: number;
|
|
33730
|
+
trade_item_id?: string | null;
|
|
33731
|
+
unit?: string;
|
|
33732
|
+
};
|
|
33733
|
+
Update: {
|
|
33734
|
+
component_type?: string;
|
|
33735
|
+
created_at?: string;
|
|
33736
|
+
id?: string;
|
|
33737
|
+
manufacture_product_id?: string;
|
|
33738
|
+
product_group_id?: string | null;
|
|
33739
|
+
quantity?: number;
|
|
33740
|
+
trade_item_id?: string | null;
|
|
33741
|
+
unit?: string;
|
|
33742
|
+
};
|
|
33743
|
+
Relationships: [{
|
|
33744
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
33745
|
+
columns: ["manufacture_product_id"];
|
|
33746
|
+
isOneToOne: false;
|
|
33747
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
33748
|
+
referencedColumns: ["manufacture_product_id"];
|
|
33749
|
+
}, {
|
|
33750
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
33751
|
+
columns: ["manufacture_product_id"];
|
|
33752
|
+
isOneToOne: false;
|
|
33753
|
+
referencedRelation: "manufacture_products";
|
|
33754
|
+
referencedColumns: ["id"];
|
|
33755
|
+
}, {
|
|
33756
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
33757
|
+
columns: ["product_group_id"];
|
|
33758
|
+
isOneToOne: false;
|
|
33759
|
+
referencedRelation: "product_groups";
|
|
33760
|
+
referencedColumns: ["id"];
|
|
33761
|
+
}];
|
|
33762
|
+
};
|
|
33763
|
+
manufacture_products: {
|
|
33764
|
+
Row: {
|
|
33765
|
+
created_at: string;
|
|
33766
|
+
description: string | null;
|
|
33767
|
+
id: string;
|
|
33768
|
+
is_active: boolean;
|
|
33769
|
+
name: string;
|
|
33770
|
+
produced_stock: number;
|
|
33771
|
+
product_code: string;
|
|
33772
|
+
tenant_id: string;
|
|
33773
|
+
updated_at: string;
|
|
33774
|
+
};
|
|
33775
|
+
Insert: {
|
|
33776
|
+
created_at?: string;
|
|
33777
|
+
description?: string | null;
|
|
33778
|
+
id?: string;
|
|
33779
|
+
is_active?: boolean;
|
|
33780
|
+
name: string;
|
|
33781
|
+
produced_stock?: number;
|
|
33782
|
+
product_code: string;
|
|
33783
|
+
tenant_id: string;
|
|
33784
|
+
updated_at?: string;
|
|
33785
|
+
};
|
|
33786
|
+
Update: {
|
|
33787
|
+
created_at?: string;
|
|
33788
|
+
description?: string | null;
|
|
33789
|
+
id?: string;
|
|
33790
|
+
is_active?: boolean;
|
|
33791
|
+
name?: string;
|
|
33792
|
+
produced_stock?: number;
|
|
33793
|
+
product_code?: string;
|
|
33794
|
+
tenant_id?: string;
|
|
33795
|
+
updated_at?: string;
|
|
33796
|
+
};
|
|
33797
|
+
Relationships: [];
|
|
33798
|
+
};
|
|
33028
33799
|
monteurs: {
|
|
33029
33800
|
Row: {
|
|
33030
33801
|
avatar_url: string | null;
|
|
@@ -33985,6 +34756,66 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
|
|
|
33985
34756
|
};
|
|
33986
34757
|
Relationships: [];
|
|
33987
34758
|
};
|
|
34759
|
+
product_group_items: {
|
|
34760
|
+
Row: {
|
|
34761
|
+
created_at: string;
|
|
34762
|
+
id: string;
|
|
34763
|
+
product_group_id: string;
|
|
34764
|
+
quantity: number;
|
|
34765
|
+
trade_item_id: string;
|
|
34766
|
+
};
|
|
34767
|
+
Insert: {
|
|
34768
|
+
created_at?: string;
|
|
34769
|
+
id?: string;
|
|
34770
|
+
product_group_id: string;
|
|
34771
|
+
quantity?: number;
|
|
34772
|
+
trade_item_id: string;
|
|
34773
|
+
};
|
|
34774
|
+
Update: {
|
|
34775
|
+
created_at?: string;
|
|
34776
|
+
id?: string;
|
|
34777
|
+
product_group_id?: string;
|
|
34778
|
+
quantity?: number;
|
|
34779
|
+
trade_item_id?: string;
|
|
34780
|
+
};
|
|
34781
|
+
Relationships: [{
|
|
34782
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
34783
|
+
columns: ["product_group_id"];
|
|
34784
|
+
isOneToOne: false;
|
|
34785
|
+
referencedRelation: "product_groups";
|
|
34786
|
+
referencedColumns: ["id"];
|
|
34787
|
+
}];
|
|
34788
|
+
};
|
|
34789
|
+
product_groups: {
|
|
34790
|
+
Row: {
|
|
34791
|
+
created_at: string;
|
|
34792
|
+
description: string | null;
|
|
34793
|
+
id: string;
|
|
34794
|
+
is_active: boolean;
|
|
34795
|
+
name: string;
|
|
34796
|
+
tenant_id: string;
|
|
34797
|
+
updated_at: string;
|
|
34798
|
+
};
|
|
34799
|
+
Insert: {
|
|
34800
|
+
created_at?: string;
|
|
34801
|
+
description?: string | null;
|
|
34802
|
+
id?: string;
|
|
34803
|
+
is_active?: boolean;
|
|
34804
|
+
name: string;
|
|
34805
|
+
tenant_id: string;
|
|
34806
|
+
updated_at?: string;
|
|
34807
|
+
};
|
|
34808
|
+
Update: {
|
|
34809
|
+
created_at?: string;
|
|
34810
|
+
description?: string | null;
|
|
34811
|
+
id?: string;
|
|
34812
|
+
is_active?: boolean;
|
|
34813
|
+
name?: string;
|
|
34814
|
+
tenant_id?: string;
|
|
34815
|
+
updated_at?: string;
|
|
34816
|
+
};
|
|
34817
|
+
Relationships: [];
|
|
34818
|
+
};
|
|
33988
34819
|
products: {
|
|
33989
34820
|
Row: {
|
|
33990
34821
|
barcode: string | null;
|
|
@@ -35146,6 +35977,48 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
|
|
|
35146
35977
|
};
|
|
35147
35978
|
Relationships: [];
|
|
35148
35979
|
};
|
|
35980
|
+
trade_item_stock: {
|
|
35981
|
+
Row: {
|
|
35982
|
+
connection_id: string;
|
|
35983
|
+
created_at: string;
|
|
35984
|
+
id: string;
|
|
35985
|
+
incoming_stock: number;
|
|
35986
|
+
minimum_stock: number;
|
|
35987
|
+
notes: string | null;
|
|
35988
|
+
physical_stock: number;
|
|
35989
|
+
reserved_stock: number;
|
|
35990
|
+
trade_item_key: string;
|
|
35991
|
+
updated_at: string;
|
|
35992
|
+
user_id: string;
|
|
35993
|
+
};
|
|
35994
|
+
Insert: {
|
|
35995
|
+
connection_id: string;
|
|
35996
|
+
created_at?: string;
|
|
35997
|
+
id?: string;
|
|
35998
|
+
incoming_stock?: number;
|
|
35999
|
+
minimum_stock?: number;
|
|
36000
|
+
notes?: string | null;
|
|
36001
|
+
physical_stock?: number;
|
|
36002
|
+
reserved_stock?: number;
|
|
36003
|
+
trade_item_key: string;
|
|
36004
|
+
updated_at?: string;
|
|
36005
|
+
user_id: string;
|
|
36006
|
+
};
|
|
36007
|
+
Update: {
|
|
36008
|
+
connection_id?: string;
|
|
36009
|
+
created_at?: string;
|
|
36010
|
+
id?: string;
|
|
36011
|
+
incoming_stock?: number;
|
|
36012
|
+
minimum_stock?: number;
|
|
36013
|
+
notes?: string | null;
|
|
36014
|
+
physical_stock?: number;
|
|
36015
|
+
reserved_stock?: number;
|
|
36016
|
+
trade_item_key?: string;
|
|
36017
|
+
updated_at?: string;
|
|
36018
|
+
user_id?: string;
|
|
36019
|
+
};
|
|
36020
|
+
Relationships: [];
|
|
36021
|
+
};
|
|
35149
36022
|
twinfield_connections: {
|
|
35150
36023
|
Row: {
|
|
35151
36024
|
access_token: string | null;
|
|
@@ -36330,6 +37203,35 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
|
|
|
36330
37203
|
};
|
|
36331
37204
|
Relationships: [];
|
|
36332
37205
|
};
|
|
37206
|
+
manufacture_product_possible_stock_view: {
|
|
37207
|
+
Row: {
|
|
37208
|
+
component_count: number | null;
|
|
37209
|
+
manufacture_product_id: string | null;
|
|
37210
|
+
possible_stock: number | null;
|
|
37211
|
+
};
|
|
37212
|
+
Relationships: [];
|
|
37213
|
+
};
|
|
37214
|
+
product_group_stock_view: {
|
|
37215
|
+
Row: {
|
|
37216
|
+
item_count: number | null;
|
|
37217
|
+
product_group_id: string | null;
|
|
37218
|
+
total_stock: number | null;
|
|
37219
|
+
};
|
|
37220
|
+
Relationships: [{
|
|
37221
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
37222
|
+
columns: ["product_group_id"];
|
|
37223
|
+
isOneToOne: false;
|
|
37224
|
+
referencedRelation: "product_groups";
|
|
37225
|
+
referencedColumns: ["id"];
|
|
37226
|
+
}];
|
|
37227
|
+
};
|
|
37228
|
+
trade_item_stock_view: {
|
|
37229
|
+
Row: {
|
|
37230
|
+
stock: number | null;
|
|
37231
|
+
trade_item_id: string | null;
|
|
37232
|
+
};
|
|
37233
|
+
Relationships: [];
|
|
37234
|
+
};
|
|
36333
37235
|
v_external_customers_exact: {
|
|
36334
37236
|
Row: {
|
|
36335
37237
|
account_number: string | null;
|
|
@@ -36900,6 +37802,12 @@ export declare const getExternalCustomerDetail: import("@tanstack/start-client-c
|
|
|
36900
37802
|
row_count: number;
|
|
36901
37803
|
}[];
|
|
36902
37804
|
};
|
|
37805
|
+
refresh_floricode_derived_for_product: {
|
|
37806
|
+
Args: {
|
|
37807
|
+
p_product_code: string;
|
|
37808
|
+
};
|
|
37809
|
+
Returns: number;
|
|
37810
|
+
};
|
|
36903
37811
|
reset_floriday_sync_cursor: {
|
|
36904
37812
|
Args: {
|
|
36905
37813
|
p_connection_id: string;
|