@flowselections/floriday-klanten-module 1.0.19 → 1.0.21
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/pricegroups/PriceGroupEditRoute.d.ts +3 -1
- package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.d.ts.map +1 -1
- package/dist-lib/components/klanten/pricegroups/PriceGroupEditRoute.js +4 -4
- package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.d.ts +2 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.d.ts.map +1 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupNewRoute.js +5 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.d.ts +2 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.d.ts.map +1 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupsRoute.js +12 -0
- 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 +228 -2
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +228 -2
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +228 -2
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +235 -3
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +8 -1
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +684 -6
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
- package/dist-lib/lib/accounting.functions.d.ts +684 -6
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +228 -2
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.d.ts +2052 -18
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/delivery-locations.functions.d.ts +912 -8
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +912 -8
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-assortment.functions.d.ts +228 -2
- package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-discounts.functions.d.ts +456 -4
- package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-trade-items.functions.d.ts +228 -2
- package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
- package/dist-lib/lib/local-discounts.functions.d.ts +1596 -14
- package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/overdue-invoices.functions.d.ts +228 -2
- package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups-local.functions.d.ts +1596 -14
- package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups.functions.d.ts +228 -2
- package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -8406,6 +8406,66 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
8406
8406
|
referencedColumns: ["id"];
|
|
8407
8407
|
}];
|
|
8408
8408
|
};
|
|
8409
|
+
product_bom_items: {
|
|
8410
|
+
Row: {
|
|
8411
|
+
component_product_id: string | null;
|
|
8412
|
+
component_trade_item_floriday_id: string | null;
|
|
8413
|
+
created_at: string;
|
|
8414
|
+
id: string;
|
|
8415
|
+
notes: string | null;
|
|
8416
|
+
packing_configuration_id: string | null;
|
|
8417
|
+
parent_product_id: string | null;
|
|
8418
|
+
parent_trade_item_floriday_id: string | null;
|
|
8419
|
+
quantity: number;
|
|
8420
|
+
sort_order: number;
|
|
8421
|
+
tenant_id: string;
|
|
8422
|
+
unit: string;
|
|
8423
|
+
updated_at: string;
|
|
8424
|
+
};
|
|
8425
|
+
Insert: {
|
|
8426
|
+
component_product_id?: string | null;
|
|
8427
|
+
component_trade_item_floriday_id?: string | null;
|
|
8428
|
+
created_at?: string;
|
|
8429
|
+
id?: string;
|
|
8430
|
+
notes?: string | null;
|
|
8431
|
+
packing_configuration_id?: string | null;
|
|
8432
|
+
parent_product_id?: string | null;
|
|
8433
|
+
parent_trade_item_floriday_id?: string | null;
|
|
8434
|
+
quantity?: number;
|
|
8435
|
+
sort_order?: number;
|
|
8436
|
+
tenant_id: string;
|
|
8437
|
+
unit?: string;
|
|
8438
|
+
updated_at?: string;
|
|
8439
|
+
};
|
|
8440
|
+
Update: {
|
|
8441
|
+
component_product_id?: string | null;
|
|
8442
|
+
component_trade_item_floriday_id?: string | null;
|
|
8443
|
+
created_at?: string;
|
|
8444
|
+
id?: string;
|
|
8445
|
+
notes?: string | null;
|
|
8446
|
+
packing_configuration_id?: string | null;
|
|
8447
|
+
parent_product_id?: string | null;
|
|
8448
|
+
parent_trade_item_floriday_id?: string | null;
|
|
8449
|
+
quantity?: number;
|
|
8450
|
+
sort_order?: number;
|
|
8451
|
+
tenant_id?: string;
|
|
8452
|
+
unit?: string;
|
|
8453
|
+
updated_at?: string;
|
|
8454
|
+
};
|
|
8455
|
+
Relationships: [{
|
|
8456
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
8457
|
+
columns: ["component_product_id"];
|
|
8458
|
+
isOneToOne: false;
|
|
8459
|
+
referencedRelation: "products";
|
|
8460
|
+
referencedColumns: ["id"];
|
|
8461
|
+
}, {
|
|
8462
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
8463
|
+
columns: ["parent_product_id"];
|
|
8464
|
+
isOneToOne: false;
|
|
8465
|
+
referencedRelation: "products";
|
|
8466
|
+
referencedColumns: ["id"];
|
|
8467
|
+
}];
|
|
8468
|
+
};
|
|
8409
8469
|
product_categories: {
|
|
8410
8470
|
Row: {
|
|
8411
8471
|
color: string;
|
|
@@ -8511,6 +8571,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
8511
8571
|
id: string;
|
|
8512
8572
|
product_group_id: string;
|
|
8513
8573
|
quantity: number;
|
|
8574
|
+
sort_order: number;
|
|
8514
8575
|
trade_item_id: string;
|
|
8515
8576
|
};
|
|
8516
8577
|
Insert: {
|
|
@@ -8518,6 +8579,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
8518
8579
|
id?: string;
|
|
8519
8580
|
product_group_id: string;
|
|
8520
8581
|
quantity?: number;
|
|
8582
|
+
sort_order?: number;
|
|
8521
8583
|
trade_item_id: string;
|
|
8522
8584
|
};
|
|
8523
8585
|
Update: {
|
|
@@ -8525,6 +8587,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
8525
8587
|
id?: string;
|
|
8526
8588
|
product_group_id?: string;
|
|
8527
8589
|
quantity?: number;
|
|
8590
|
+
sort_order?: number;
|
|
8528
8591
|
trade_item_id?: string;
|
|
8529
8592
|
};
|
|
8530
8593
|
Relationships: [{
|
|
@@ -8577,16 +8640,85 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
8577
8640
|
referencedColumns: ["id"];
|
|
8578
8641
|
}];
|
|
8579
8642
|
};
|
|
8643
|
+
product_load_settings: {
|
|
8644
|
+
Row: {
|
|
8645
|
+
created_at: string;
|
|
8646
|
+
id: string;
|
|
8647
|
+
is_package: boolean;
|
|
8648
|
+
label: string | null;
|
|
8649
|
+
layers_per_load_carrier: number | null;
|
|
8650
|
+
load_carrier: string | null;
|
|
8651
|
+
package_id: string | null;
|
|
8652
|
+
package_label: string | null;
|
|
8653
|
+
packages_per_layer: number | null;
|
|
8654
|
+
packing_configuration_id: string;
|
|
8655
|
+
product_id: string | null;
|
|
8656
|
+
tenant_id: string;
|
|
8657
|
+
trade_item_floriday_id: string | null;
|
|
8658
|
+
units_per_package: number | null;
|
|
8659
|
+
updated_at: string;
|
|
8660
|
+
};
|
|
8661
|
+
Insert: {
|
|
8662
|
+
created_at?: string;
|
|
8663
|
+
id?: string;
|
|
8664
|
+
is_package?: boolean;
|
|
8665
|
+
label?: string | null;
|
|
8666
|
+
layers_per_load_carrier?: number | null;
|
|
8667
|
+
load_carrier?: string | null;
|
|
8668
|
+
package_id?: string | null;
|
|
8669
|
+
package_label?: string | null;
|
|
8670
|
+
packages_per_layer?: number | null;
|
|
8671
|
+
packing_configuration_id?: string;
|
|
8672
|
+
product_id?: string | null;
|
|
8673
|
+
tenant_id: string;
|
|
8674
|
+
trade_item_floriday_id?: string | null;
|
|
8675
|
+
units_per_package?: number | null;
|
|
8676
|
+
updated_at?: string;
|
|
8677
|
+
};
|
|
8678
|
+
Update: {
|
|
8679
|
+
created_at?: string;
|
|
8680
|
+
id?: string;
|
|
8681
|
+
is_package?: boolean;
|
|
8682
|
+
label?: string | null;
|
|
8683
|
+
layers_per_load_carrier?: number | null;
|
|
8684
|
+
load_carrier?: string | null;
|
|
8685
|
+
package_id?: string | null;
|
|
8686
|
+
package_label?: string | null;
|
|
8687
|
+
packages_per_layer?: number | null;
|
|
8688
|
+
packing_configuration_id?: string;
|
|
8689
|
+
product_id?: string | null;
|
|
8690
|
+
tenant_id?: string;
|
|
8691
|
+
trade_item_floriday_id?: string | null;
|
|
8692
|
+
units_per_package?: number | null;
|
|
8693
|
+
updated_at?: string;
|
|
8694
|
+
};
|
|
8695
|
+
Relationships: [{
|
|
8696
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
8697
|
+
columns: ["package_id"];
|
|
8698
|
+
isOneToOne: false;
|
|
8699
|
+
referencedRelation: "packages";
|
|
8700
|
+
referencedColumns: ["id"];
|
|
8701
|
+
}, {
|
|
8702
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
8703
|
+
columns: ["product_id"];
|
|
8704
|
+
isOneToOne: false;
|
|
8705
|
+
referencedRelation: "products";
|
|
8706
|
+
referencedColumns: ["id"];
|
|
8707
|
+
}];
|
|
8708
|
+
};
|
|
8580
8709
|
products: {
|
|
8581
8710
|
Row: {
|
|
8711
|
+
article_number: string | null;
|
|
8582
8712
|
barcode: string | null;
|
|
8583
8713
|
batch: string;
|
|
8584
8714
|
crates_per_layer: number;
|
|
8585
8715
|
created_at: string;
|
|
8586
8716
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
8717
|
+
floriday_trade_item_id: string | null;
|
|
8587
8718
|
id: string;
|
|
8588
8719
|
image_url: string | null;
|
|
8589
8720
|
incoming_quantity: number;
|
|
8721
|
+
is_layer: boolean;
|
|
8590
8722
|
layers_per_cart: number;
|
|
8591
8723
|
location: string;
|
|
8592
8724
|
min_quantity: number;
|
|
@@ -8602,14 +8734,17 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
8602
8734
|
weight: string | null;
|
|
8603
8735
|
};
|
|
8604
8736
|
Insert: {
|
|
8737
|
+
article_number?: string | null;
|
|
8605
8738
|
barcode?: string | null;
|
|
8606
8739
|
batch: string;
|
|
8607
8740
|
crates_per_layer?: number;
|
|
8608
8741
|
created_at?: string;
|
|
8609
8742
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
8743
|
+
floriday_trade_item_id?: string | null;
|
|
8610
8744
|
id?: string;
|
|
8611
8745
|
image_url?: string | null;
|
|
8612
8746
|
incoming_quantity?: number;
|
|
8747
|
+
is_layer?: boolean;
|
|
8613
8748
|
layers_per_cart?: number;
|
|
8614
8749
|
location: string;
|
|
8615
8750
|
min_quantity?: number;
|
|
@@ -8625,14 +8760,17 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
8625
8760
|
weight?: string | null;
|
|
8626
8761
|
};
|
|
8627
8762
|
Update: {
|
|
8763
|
+
article_number?: string | null;
|
|
8628
8764
|
barcode?: string | null;
|
|
8629
8765
|
batch?: string;
|
|
8630
8766
|
crates_per_layer?: number;
|
|
8631
8767
|
created_at?: string;
|
|
8632
8768
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
8769
|
+
floriday_trade_item_id?: string | null;
|
|
8633
8770
|
id?: string;
|
|
8634
8771
|
image_url?: string | null;
|
|
8635
8772
|
incoming_quantity?: number;
|
|
8773
|
+
is_layer?: boolean;
|
|
8636
8774
|
layers_per_cart?: number;
|
|
8637
8775
|
location?: string;
|
|
8638
8776
|
min_quantity?: number;
|
|
@@ -8652,6 +8790,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
8652
8790
|
profiles: {
|
|
8653
8791
|
Row: {
|
|
8654
8792
|
address: string | null;
|
|
8793
|
+
avatar_url: string | null;
|
|
8655
8794
|
created_at: string;
|
|
8656
8795
|
display_name: string | null;
|
|
8657
8796
|
email: string | null;
|
|
@@ -8663,6 +8802,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
8663
8802
|
};
|
|
8664
8803
|
Insert: {
|
|
8665
8804
|
address?: string | null;
|
|
8805
|
+
avatar_url?: string | null;
|
|
8666
8806
|
created_at?: string;
|
|
8667
8807
|
display_name?: string | null;
|
|
8668
8808
|
email?: string | null;
|
|
@@ -8674,6 +8814,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
8674
8814
|
};
|
|
8675
8815
|
Update: {
|
|
8676
8816
|
address?: string | null;
|
|
8817
|
+
avatar_url?: string | null;
|
|
8677
8818
|
created_at?: string;
|
|
8678
8819
|
display_name?: string | null;
|
|
8679
8820
|
email?: string | null;
|
|
@@ -9540,6 +9681,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
9540
9681
|
order_source: string | null;
|
|
9541
9682
|
physical_after: number | null;
|
|
9542
9683
|
physical_before: number | null;
|
|
9684
|
+
production_batch_id: string | null;
|
|
9543
9685
|
qty_delta: number;
|
|
9544
9686
|
reason: string | null;
|
|
9545
9687
|
reserved_after: number | null;
|
|
@@ -9557,6 +9699,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
9557
9699
|
order_source?: string | null;
|
|
9558
9700
|
physical_after?: number | null;
|
|
9559
9701
|
physical_before?: number | null;
|
|
9702
|
+
production_batch_id?: string | null;
|
|
9560
9703
|
qty_delta: number;
|
|
9561
9704
|
reason?: string | null;
|
|
9562
9705
|
reserved_after?: number | null;
|
|
@@ -9574,6 +9717,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
9574
9717
|
order_source?: string | null;
|
|
9575
9718
|
physical_after?: number | null;
|
|
9576
9719
|
physical_before?: number | null;
|
|
9720
|
+
production_batch_id?: string | null;
|
|
9577
9721
|
qty_delta?: number;
|
|
9578
9722
|
reason?: string | null;
|
|
9579
9723
|
reserved_after?: number | null;
|
|
@@ -12002,6 +12146,12 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
12002
12146
|
processed_items: number;
|
|
12003
12147
|
}[];
|
|
12004
12148
|
};
|
|
12149
|
+
calculate_layer_stock: {
|
|
12150
|
+
Args: {
|
|
12151
|
+
p_product_id: string;
|
|
12152
|
+
};
|
|
12153
|
+
Returns: number;
|
|
12154
|
+
};
|
|
12005
12155
|
call_exact_route: {
|
|
12006
12156
|
Args: {
|
|
12007
12157
|
path: string;
|
|
@@ -12061,6 +12211,28 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
12061
12211
|
Args: never;
|
|
12062
12212
|
Returns: undefined;
|
|
12063
12213
|
};
|
|
12214
|
+
consume_bom_for_production: {
|
|
12215
|
+
Args: {
|
|
12216
|
+
p_connection_id: string;
|
|
12217
|
+
p_parent_id: string;
|
|
12218
|
+
p_parent_key: string;
|
|
12219
|
+
p_parent_kind: string;
|
|
12220
|
+
p_quantity: number;
|
|
12221
|
+
p_user_id: string;
|
|
12222
|
+
};
|
|
12223
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12224
|
+
} | {
|
|
12225
|
+
Args: {
|
|
12226
|
+
p_batch_id?: string;
|
|
12227
|
+
p_connection_id: string;
|
|
12228
|
+
p_parent_id: string;
|
|
12229
|
+
p_parent_key: string;
|
|
12230
|
+
p_parent_kind: string;
|
|
12231
|
+
p_quantity: number;
|
|
12232
|
+
p_user_id: string;
|
|
12233
|
+
};
|
|
12234
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12235
|
+
};
|
|
12064
12236
|
consume_floriday_rate_limit: {
|
|
12065
12237
|
Args: {
|
|
12066
12238
|
p_bucket: string;
|
|
@@ -12118,6 +12290,13 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
12118
12290
|
table_name: string;
|
|
12119
12291
|
}[];
|
|
12120
12292
|
};
|
|
12293
|
+
delete_samenstelling: {
|
|
12294
|
+
Args: {
|
|
12295
|
+
p_parent_id: string;
|
|
12296
|
+
p_parent_kind: string;
|
|
12297
|
+
};
|
|
12298
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12299
|
+
};
|
|
12121
12300
|
dispatch_carrier_signups_sql: {
|
|
12122
12301
|
Args: {
|
|
12123
12302
|
_catchup?: string;
|
|
@@ -12373,6 +12552,12 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
12373
12552
|
minutes_since_success: number;
|
|
12374
12553
|
}[];
|
|
12375
12554
|
};
|
|
12555
|
+
get_inventory_stock_for_key: {
|
|
12556
|
+
Args: {
|
|
12557
|
+
p_key: string;
|
|
12558
|
+
};
|
|
12559
|
+
Returns: number;
|
|
12560
|
+
};
|
|
12376
12561
|
get_offer_by_link_code: {
|
|
12377
12562
|
Args: {
|
|
12378
12563
|
p_code: string;
|
|
@@ -12403,6 +12588,12 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
12403
12588
|
};
|
|
12404
12589
|
Returns: string;
|
|
12405
12590
|
};
|
|
12591
|
+
get_product_group_available_stock: {
|
|
12592
|
+
Args: {
|
|
12593
|
+
p_group_id: string;
|
|
12594
|
+
};
|
|
12595
|
+
Returns: number;
|
|
12596
|
+
};
|
|
12406
12597
|
get_room_busy_windows: {
|
|
12407
12598
|
Args: {
|
|
12408
12599
|
p_from: string;
|
|
@@ -12476,9 +12667,10 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
12476
12667
|
list_monteurs: {
|
|
12477
12668
|
Args: never;
|
|
12478
12669
|
Returns: {
|
|
12670
|
+
avatar_url: string;
|
|
12479
12671
|
display_name: string;
|
|
12480
12672
|
email: string;
|
|
12481
|
-
|
|
12673
|
+
id: string;
|
|
12482
12674
|
}[];
|
|
12483
12675
|
};
|
|
12484
12676
|
local_effective_price: {
|
|
@@ -12613,6 +12805,14 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
12613
12805
|
};
|
|
12614
12806
|
Returns: undefined;
|
|
12615
12807
|
};
|
|
12808
|
+
produce_designed_product: {
|
|
12809
|
+
Args: {
|
|
12810
|
+
p_parent_id: string;
|
|
12811
|
+
p_parent_kind: string;
|
|
12812
|
+
p_quantity: number;
|
|
12813
|
+
};
|
|
12814
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12815
|
+
};
|
|
12616
12816
|
promote_trade_item_key: {
|
|
12617
12817
|
Args: {
|
|
12618
12818
|
p_new: string;
|
|
@@ -12687,6 +12887,16 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
12687
12887
|
};
|
|
12688
12888
|
Returns: number;
|
|
12689
12889
|
};
|
|
12890
|
+
reverse_production: {
|
|
12891
|
+
Args: {
|
|
12892
|
+
p_connection_id?: string;
|
|
12893
|
+
p_parent_key: string;
|
|
12894
|
+
p_quantity: number;
|
|
12895
|
+
p_reason?: string;
|
|
12896
|
+
p_user_id?: string;
|
|
12897
|
+
};
|
|
12898
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12899
|
+
};
|
|
12690
12900
|
schedule_floriday_additional_services_sync: {
|
|
12691
12901
|
Args: {
|
|
12692
12902
|
p_apikey: string;
|
|
@@ -12971,18 +13181,34 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
12971
13181
|
};
|
|
12972
13182
|
Returns: string[];
|
|
12973
13183
|
};
|
|
13184
|
+
sync_all_layer_stocks: {
|
|
13185
|
+
Args: never;
|
|
13186
|
+
Returns: undefined;
|
|
13187
|
+
};
|
|
12974
13188
|
sync_cached_packing_from_product: {
|
|
12975
13189
|
Args: {
|
|
12976
13190
|
p_product_id: string;
|
|
12977
13191
|
};
|
|
12978
13192
|
Returns: undefined;
|
|
12979
13193
|
};
|
|
13194
|
+
sync_layer_stock: {
|
|
13195
|
+
Args: {
|
|
13196
|
+
p_product_id: string;
|
|
13197
|
+
};
|
|
13198
|
+
Returns: undefined;
|
|
13199
|
+
};
|
|
12980
13200
|
sync_order_cart_item_packing_from_product: {
|
|
12981
13201
|
Args: {
|
|
12982
13202
|
p_product_id: string;
|
|
12983
13203
|
};
|
|
12984
13204
|
Returns: undefined;
|
|
12985
13205
|
};
|
|
13206
|
+
sync_product_group_belading: {
|
|
13207
|
+
Args: {
|
|
13208
|
+
_group_id: string;
|
|
13209
|
+
};
|
|
13210
|
+
Returns: undefined;
|
|
13211
|
+
};
|
|
12986
13212
|
sync_product_packing_from_floriday_cache: {
|
|
12987
13213
|
Args: {
|
|
12988
13214
|
p_floriday_id: string;
|
|
@@ -13019,7 +13245,7 @@ export declare const listCustomerPriceGroups: import("@tanstack/start-client-cor
|
|
|
13019
13245
|
exact_push_status: "pending" | "sent" | "error";
|
|
13020
13246
|
itk_customer_segment: "Business" | "Private";
|
|
13021
13247
|
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
13022
|
-
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
|
|
13248
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
13023
13249
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
13024
13250
|
};
|
|
13025
13251
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -21387,6 +21613,66 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
21387
21613
|
referencedColumns: ["id"];
|
|
21388
21614
|
}];
|
|
21389
21615
|
};
|
|
21616
|
+
product_bom_items: {
|
|
21617
|
+
Row: {
|
|
21618
|
+
component_product_id: string | null;
|
|
21619
|
+
component_trade_item_floriday_id: string | null;
|
|
21620
|
+
created_at: string;
|
|
21621
|
+
id: string;
|
|
21622
|
+
notes: string | null;
|
|
21623
|
+
packing_configuration_id: string | null;
|
|
21624
|
+
parent_product_id: string | null;
|
|
21625
|
+
parent_trade_item_floriday_id: string | null;
|
|
21626
|
+
quantity: number;
|
|
21627
|
+
sort_order: number;
|
|
21628
|
+
tenant_id: string;
|
|
21629
|
+
unit: string;
|
|
21630
|
+
updated_at: string;
|
|
21631
|
+
};
|
|
21632
|
+
Insert: {
|
|
21633
|
+
component_product_id?: string | null;
|
|
21634
|
+
component_trade_item_floriday_id?: string | null;
|
|
21635
|
+
created_at?: string;
|
|
21636
|
+
id?: string;
|
|
21637
|
+
notes?: string | null;
|
|
21638
|
+
packing_configuration_id?: string | null;
|
|
21639
|
+
parent_product_id?: string | null;
|
|
21640
|
+
parent_trade_item_floriday_id?: string | null;
|
|
21641
|
+
quantity?: number;
|
|
21642
|
+
sort_order?: number;
|
|
21643
|
+
tenant_id: string;
|
|
21644
|
+
unit?: string;
|
|
21645
|
+
updated_at?: string;
|
|
21646
|
+
};
|
|
21647
|
+
Update: {
|
|
21648
|
+
component_product_id?: string | null;
|
|
21649
|
+
component_trade_item_floriday_id?: string | null;
|
|
21650
|
+
created_at?: string;
|
|
21651
|
+
id?: string;
|
|
21652
|
+
notes?: string | null;
|
|
21653
|
+
packing_configuration_id?: string | null;
|
|
21654
|
+
parent_product_id?: string | null;
|
|
21655
|
+
parent_trade_item_floriday_id?: string | null;
|
|
21656
|
+
quantity?: number;
|
|
21657
|
+
sort_order?: number;
|
|
21658
|
+
tenant_id?: string;
|
|
21659
|
+
unit?: string;
|
|
21660
|
+
updated_at?: string;
|
|
21661
|
+
};
|
|
21662
|
+
Relationships: [{
|
|
21663
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
21664
|
+
columns: ["component_product_id"];
|
|
21665
|
+
isOneToOne: false;
|
|
21666
|
+
referencedRelation: "products";
|
|
21667
|
+
referencedColumns: ["id"];
|
|
21668
|
+
}, {
|
|
21669
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
21670
|
+
columns: ["parent_product_id"];
|
|
21671
|
+
isOneToOne: false;
|
|
21672
|
+
referencedRelation: "products";
|
|
21673
|
+
referencedColumns: ["id"];
|
|
21674
|
+
}];
|
|
21675
|
+
};
|
|
21390
21676
|
product_categories: {
|
|
21391
21677
|
Row: {
|
|
21392
21678
|
color: string;
|
|
@@ -21492,6 +21778,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
21492
21778
|
id: string;
|
|
21493
21779
|
product_group_id: string;
|
|
21494
21780
|
quantity: number;
|
|
21781
|
+
sort_order: number;
|
|
21495
21782
|
trade_item_id: string;
|
|
21496
21783
|
};
|
|
21497
21784
|
Insert: {
|
|
@@ -21499,6 +21786,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
21499
21786
|
id?: string;
|
|
21500
21787
|
product_group_id: string;
|
|
21501
21788
|
quantity?: number;
|
|
21789
|
+
sort_order?: number;
|
|
21502
21790
|
trade_item_id: string;
|
|
21503
21791
|
};
|
|
21504
21792
|
Update: {
|
|
@@ -21506,6 +21794,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
21506
21794
|
id?: string;
|
|
21507
21795
|
product_group_id?: string;
|
|
21508
21796
|
quantity?: number;
|
|
21797
|
+
sort_order?: number;
|
|
21509
21798
|
trade_item_id?: string;
|
|
21510
21799
|
};
|
|
21511
21800
|
Relationships: [{
|
|
@@ -21558,16 +21847,85 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
21558
21847
|
referencedColumns: ["id"];
|
|
21559
21848
|
}];
|
|
21560
21849
|
};
|
|
21850
|
+
product_load_settings: {
|
|
21851
|
+
Row: {
|
|
21852
|
+
created_at: string;
|
|
21853
|
+
id: string;
|
|
21854
|
+
is_package: boolean;
|
|
21855
|
+
label: string | null;
|
|
21856
|
+
layers_per_load_carrier: number | null;
|
|
21857
|
+
load_carrier: string | null;
|
|
21858
|
+
package_id: string | null;
|
|
21859
|
+
package_label: string | null;
|
|
21860
|
+
packages_per_layer: number | null;
|
|
21861
|
+
packing_configuration_id: string;
|
|
21862
|
+
product_id: string | null;
|
|
21863
|
+
tenant_id: string;
|
|
21864
|
+
trade_item_floriday_id: string | null;
|
|
21865
|
+
units_per_package: number | null;
|
|
21866
|
+
updated_at: string;
|
|
21867
|
+
};
|
|
21868
|
+
Insert: {
|
|
21869
|
+
created_at?: string;
|
|
21870
|
+
id?: string;
|
|
21871
|
+
is_package?: boolean;
|
|
21872
|
+
label?: string | null;
|
|
21873
|
+
layers_per_load_carrier?: number | null;
|
|
21874
|
+
load_carrier?: string | null;
|
|
21875
|
+
package_id?: string | null;
|
|
21876
|
+
package_label?: string | null;
|
|
21877
|
+
packages_per_layer?: number | null;
|
|
21878
|
+
packing_configuration_id?: string;
|
|
21879
|
+
product_id?: string | null;
|
|
21880
|
+
tenant_id: string;
|
|
21881
|
+
trade_item_floriday_id?: string | null;
|
|
21882
|
+
units_per_package?: number | null;
|
|
21883
|
+
updated_at?: string;
|
|
21884
|
+
};
|
|
21885
|
+
Update: {
|
|
21886
|
+
created_at?: string;
|
|
21887
|
+
id?: string;
|
|
21888
|
+
is_package?: boolean;
|
|
21889
|
+
label?: string | null;
|
|
21890
|
+
layers_per_load_carrier?: number | null;
|
|
21891
|
+
load_carrier?: string | null;
|
|
21892
|
+
package_id?: string | null;
|
|
21893
|
+
package_label?: string | null;
|
|
21894
|
+
packages_per_layer?: number | null;
|
|
21895
|
+
packing_configuration_id?: string;
|
|
21896
|
+
product_id?: string | null;
|
|
21897
|
+
tenant_id?: string;
|
|
21898
|
+
trade_item_floriday_id?: string | null;
|
|
21899
|
+
units_per_package?: number | null;
|
|
21900
|
+
updated_at?: string;
|
|
21901
|
+
};
|
|
21902
|
+
Relationships: [{
|
|
21903
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
21904
|
+
columns: ["package_id"];
|
|
21905
|
+
isOneToOne: false;
|
|
21906
|
+
referencedRelation: "packages";
|
|
21907
|
+
referencedColumns: ["id"];
|
|
21908
|
+
}, {
|
|
21909
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
21910
|
+
columns: ["product_id"];
|
|
21911
|
+
isOneToOne: false;
|
|
21912
|
+
referencedRelation: "products";
|
|
21913
|
+
referencedColumns: ["id"];
|
|
21914
|
+
}];
|
|
21915
|
+
};
|
|
21561
21916
|
products: {
|
|
21562
21917
|
Row: {
|
|
21918
|
+
article_number: string | null;
|
|
21563
21919
|
barcode: string | null;
|
|
21564
21920
|
batch: string;
|
|
21565
21921
|
crates_per_layer: number;
|
|
21566
21922
|
created_at: string;
|
|
21567
21923
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
21924
|
+
floriday_trade_item_id: string | null;
|
|
21568
21925
|
id: string;
|
|
21569
21926
|
image_url: string | null;
|
|
21570
21927
|
incoming_quantity: number;
|
|
21928
|
+
is_layer: boolean;
|
|
21571
21929
|
layers_per_cart: number;
|
|
21572
21930
|
location: string;
|
|
21573
21931
|
min_quantity: number;
|
|
@@ -21583,14 +21941,17 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
21583
21941
|
weight: string | null;
|
|
21584
21942
|
};
|
|
21585
21943
|
Insert: {
|
|
21944
|
+
article_number?: string | null;
|
|
21586
21945
|
barcode?: string | null;
|
|
21587
21946
|
batch: string;
|
|
21588
21947
|
crates_per_layer?: number;
|
|
21589
21948
|
created_at?: string;
|
|
21590
21949
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
21950
|
+
floriday_trade_item_id?: string | null;
|
|
21591
21951
|
id?: string;
|
|
21592
21952
|
image_url?: string | null;
|
|
21593
21953
|
incoming_quantity?: number;
|
|
21954
|
+
is_layer?: boolean;
|
|
21594
21955
|
layers_per_cart?: number;
|
|
21595
21956
|
location: string;
|
|
21596
21957
|
min_quantity?: number;
|
|
@@ -21606,14 +21967,17 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
21606
21967
|
weight?: string | null;
|
|
21607
21968
|
};
|
|
21608
21969
|
Update: {
|
|
21970
|
+
article_number?: string | null;
|
|
21609
21971
|
barcode?: string | null;
|
|
21610
21972
|
batch?: string;
|
|
21611
21973
|
crates_per_layer?: number;
|
|
21612
21974
|
created_at?: string;
|
|
21613
21975
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
21976
|
+
floriday_trade_item_id?: string | null;
|
|
21614
21977
|
id?: string;
|
|
21615
21978
|
image_url?: string | null;
|
|
21616
21979
|
incoming_quantity?: number;
|
|
21980
|
+
is_layer?: boolean;
|
|
21617
21981
|
layers_per_cart?: number;
|
|
21618
21982
|
location?: string;
|
|
21619
21983
|
min_quantity?: number;
|
|
@@ -21633,6 +21997,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
21633
21997
|
profiles: {
|
|
21634
21998
|
Row: {
|
|
21635
21999
|
address: string | null;
|
|
22000
|
+
avatar_url: string | null;
|
|
21636
22001
|
created_at: string;
|
|
21637
22002
|
display_name: string | null;
|
|
21638
22003
|
email: string | null;
|
|
@@ -21644,6 +22009,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
21644
22009
|
};
|
|
21645
22010
|
Insert: {
|
|
21646
22011
|
address?: string | null;
|
|
22012
|
+
avatar_url?: string | null;
|
|
21647
22013
|
created_at?: string;
|
|
21648
22014
|
display_name?: string | null;
|
|
21649
22015
|
email?: string | null;
|
|
@@ -21655,6 +22021,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
21655
22021
|
};
|
|
21656
22022
|
Update: {
|
|
21657
22023
|
address?: string | null;
|
|
22024
|
+
avatar_url?: string | null;
|
|
21658
22025
|
created_at?: string;
|
|
21659
22026
|
display_name?: string | null;
|
|
21660
22027
|
email?: string | null;
|
|
@@ -22521,6 +22888,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
22521
22888
|
order_source: string | null;
|
|
22522
22889
|
physical_after: number | null;
|
|
22523
22890
|
physical_before: number | null;
|
|
22891
|
+
production_batch_id: string | null;
|
|
22524
22892
|
qty_delta: number;
|
|
22525
22893
|
reason: string | null;
|
|
22526
22894
|
reserved_after: number | null;
|
|
@@ -22538,6 +22906,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
22538
22906
|
order_source?: string | null;
|
|
22539
22907
|
physical_after?: number | null;
|
|
22540
22908
|
physical_before?: number | null;
|
|
22909
|
+
production_batch_id?: string | null;
|
|
22541
22910
|
qty_delta: number;
|
|
22542
22911
|
reason?: string | null;
|
|
22543
22912
|
reserved_after?: number | null;
|
|
@@ -22555,6 +22924,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
22555
22924
|
order_source?: string | null;
|
|
22556
22925
|
physical_after?: number | null;
|
|
22557
22926
|
physical_before?: number | null;
|
|
22927
|
+
production_batch_id?: string | null;
|
|
22558
22928
|
qty_delta?: number;
|
|
22559
22929
|
reason?: string | null;
|
|
22560
22930
|
reserved_after?: number | null;
|
|
@@ -24983,6 +25353,12 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
24983
25353
|
processed_items: number;
|
|
24984
25354
|
}[];
|
|
24985
25355
|
};
|
|
25356
|
+
calculate_layer_stock: {
|
|
25357
|
+
Args: {
|
|
25358
|
+
p_product_id: string;
|
|
25359
|
+
};
|
|
25360
|
+
Returns: number;
|
|
25361
|
+
};
|
|
24986
25362
|
call_exact_route: {
|
|
24987
25363
|
Args: {
|
|
24988
25364
|
path: string;
|
|
@@ -25042,6 +25418,28 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
25042
25418
|
Args: never;
|
|
25043
25419
|
Returns: undefined;
|
|
25044
25420
|
};
|
|
25421
|
+
consume_bom_for_production: {
|
|
25422
|
+
Args: {
|
|
25423
|
+
p_connection_id: string;
|
|
25424
|
+
p_parent_id: string;
|
|
25425
|
+
p_parent_key: string;
|
|
25426
|
+
p_parent_kind: string;
|
|
25427
|
+
p_quantity: number;
|
|
25428
|
+
p_user_id: string;
|
|
25429
|
+
};
|
|
25430
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
25431
|
+
} | {
|
|
25432
|
+
Args: {
|
|
25433
|
+
p_batch_id?: string;
|
|
25434
|
+
p_connection_id: string;
|
|
25435
|
+
p_parent_id: string;
|
|
25436
|
+
p_parent_key: string;
|
|
25437
|
+
p_parent_kind: string;
|
|
25438
|
+
p_quantity: number;
|
|
25439
|
+
p_user_id: string;
|
|
25440
|
+
};
|
|
25441
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
25442
|
+
};
|
|
25045
25443
|
consume_floriday_rate_limit: {
|
|
25046
25444
|
Args: {
|
|
25047
25445
|
p_bucket: string;
|
|
@@ -25099,6 +25497,13 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
25099
25497
|
table_name: string;
|
|
25100
25498
|
}[];
|
|
25101
25499
|
};
|
|
25500
|
+
delete_samenstelling: {
|
|
25501
|
+
Args: {
|
|
25502
|
+
p_parent_id: string;
|
|
25503
|
+
p_parent_kind: string;
|
|
25504
|
+
};
|
|
25505
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
25506
|
+
};
|
|
25102
25507
|
dispatch_carrier_signups_sql: {
|
|
25103
25508
|
Args: {
|
|
25104
25509
|
_catchup?: string;
|
|
@@ -25354,6 +25759,12 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
25354
25759
|
minutes_since_success: number;
|
|
25355
25760
|
}[];
|
|
25356
25761
|
};
|
|
25762
|
+
get_inventory_stock_for_key: {
|
|
25763
|
+
Args: {
|
|
25764
|
+
p_key: string;
|
|
25765
|
+
};
|
|
25766
|
+
Returns: number;
|
|
25767
|
+
};
|
|
25357
25768
|
get_offer_by_link_code: {
|
|
25358
25769
|
Args: {
|
|
25359
25770
|
p_code: string;
|
|
@@ -25384,6 +25795,12 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
25384
25795
|
};
|
|
25385
25796
|
Returns: string;
|
|
25386
25797
|
};
|
|
25798
|
+
get_product_group_available_stock: {
|
|
25799
|
+
Args: {
|
|
25800
|
+
p_group_id: string;
|
|
25801
|
+
};
|
|
25802
|
+
Returns: number;
|
|
25803
|
+
};
|
|
25387
25804
|
get_room_busy_windows: {
|
|
25388
25805
|
Args: {
|
|
25389
25806
|
p_from: string;
|
|
@@ -25457,9 +25874,10 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
25457
25874
|
list_monteurs: {
|
|
25458
25875
|
Args: never;
|
|
25459
25876
|
Returns: {
|
|
25877
|
+
avatar_url: string;
|
|
25460
25878
|
display_name: string;
|
|
25461
25879
|
email: string;
|
|
25462
|
-
|
|
25880
|
+
id: string;
|
|
25463
25881
|
}[];
|
|
25464
25882
|
};
|
|
25465
25883
|
local_effective_price: {
|
|
@@ -25594,6 +26012,14 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
25594
26012
|
};
|
|
25595
26013
|
Returns: undefined;
|
|
25596
26014
|
};
|
|
26015
|
+
produce_designed_product: {
|
|
26016
|
+
Args: {
|
|
26017
|
+
p_parent_id: string;
|
|
26018
|
+
p_parent_kind: string;
|
|
26019
|
+
p_quantity: number;
|
|
26020
|
+
};
|
|
26021
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
26022
|
+
};
|
|
25597
26023
|
promote_trade_item_key: {
|
|
25598
26024
|
Args: {
|
|
25599
26025
|
p_new: string;
|
|
@@ -25668,6 +26094,16 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
25668
26094
|
};
|
|
25669
26095
|
Returns: number;
|
|
25670
26096
|
};
|
|
26097
|
+
reverse_production: {
|
|
26098
|
+
Args: {
|
|
26099
|
+
p_connection_id?: string;
|
|
26100
|
+
p_parent_key: string;
|
|
26101
|
+
p_quantity: number;
|
|
26102
|
+
p_reason?: string;
|
|
26103
|
+
p_user_id?: string;
|
|
26104
|
+
};
|
|
26105
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
26106
|
+
};
|
|
25671
26107
|
schedule_floriday_additional_services_sync: {
|
|
25672
26108
|
Args: {
|
|
25673
26109
|
p_apikey: string;
|
|
@@ -25952,18 +26388,34 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
25952
26388
|
};
|
|
25953
26389
|
Returns: string[];
|
|
25954
26390
|
};
|
|
26391
|
+
sync_all_layer_stocks: {
|
|
26392
|
+
Args: never;
|
|
26393
|
+
Returns: undefined;
|
|
26394
|
+
};
|
|
25955
26395
|
sync_cached_packing_from_product: {
|
|
25956
26396
|
Args: {
|
|
25957
26397
|
p_product_id: string;
|
|
25958
26398
|
};
|
|
25959
26399
|
Returns: undefined;
|
|
25960
26400
|
};
|
|
26401
|
+
sync_layer_stock: {
|
|
26402
|
+
Args: {
|
|
26403
|
+
p_product_id: string;
|
|
26404
|
+
};
|
|
26405
|
+
Returns: undefined;
|
|
26406
|
+
};
|
|
25961
26407
|
sync_order_cart_item_packing_from_product: {
|
|
25962
26408
|
Args: {
|
|
25963
26409
|
p_product_id: string;
|
|
25964
26410
|
};
|
|
25965
26411
|
Returns: undefined;
|
|
25966
26412
|
};
|
|
26413
|
+
sync_product_group_belading: {
|
|
26414
|
+
Args: {
|
|
26415
|
+
_group_id: string;
|
|
26416
|
+
};
|
|
26417
|
+
Returns: undefined;
|
|
26418
|
+
};
|
|
25967
26419
|
sync_product_packing_from_floriday_cache: {
|
|
25968
26420
|
Args: {
|
|
25969
26421
|
p_floriday_id: string;
|
|
@@ -26000,7 +26452,7 @@ export declare const getCustomerPriceGroup: import("@tanstack/start-client-core"
|
|
|
26000
26452
|
exact_push_status: "pending" | "sent" | "error";
|
|
26001
26453
|
itk_customer_segment: "Business" | "Private";
|
|
26002
26454
|
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
26003
|
-
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
|
|
26455
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
26004
26456
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
26005
26457
|
};
|
|
26006
26458
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -34394,6 +34846,66 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
34394
34846
|
referencedColumns: ["id"];
|
|
34395
34847
|
}];
|
|
34396
34848
|
};
|
|
34849
|
+
product_bom_items: {
|
|
34850
|
+
Row: {
|
|
34851
|
+
component_product_id: string | null;
|
|
34852
|
+
component_trade_item_floriday_id: string | null;
|
|
34853
|
+
created_at: string;
|
|
34854
|
+
id: string;
|
|
34855
|
+
notes: string | null;
|
|
34856
|
+
packing_configuration_id: string | null;
|
|
34857
|
+
parent_product_id: string | null;
|
|
34858
|
+
parent_trade_item_floriday_id: string | null;
|
|
34859
|
+
quantity: number;
|
|
34860
|
+
sort_order: number;
|
|
34861
|
+
tenant_id: string;
|
|
34862
|
+
unit: string;
|
|
34863
|
+
updated_at: string;
|
|
34864
|
+
};
|
|
34865
|
+
Insert: {
|
|
34866
|
+
component_product_id?: string | null;
|
|
34867
|
+
component_trade_item_floriday_id?: string | null;
|
|
34868
|
+
created_at?: string;
|
|
34869
|
+
id?: string;
|
|
34870
|
+
notes?: string | null;
|
|
34871
|
+
packing_configuration_id?: string | null;
|
|
34872
|
+
parent_product_id?: string | null;
|
|
34873
|
+
parent_trade_item_floriday_id?: string | null;
|
|
34874
|
+
quantity?: number;
|
|
34875
|
+
sort_order?: number;
|
|
34876
|
+
tenant_id: string;
|
|
34877
|
+
unit?: string;
|
|
34878
|
+
updated_at?: string;
|
|
34879
|
+
};
|
|
34880
|
+
Update: {
|
|
34881
|
+
component_product_id?: string | null;
|
|
34882
|
+
component_trade_item_floriday_id?: string | null;
|
|
34883
|
+
created_at?: string;
|
|
34884
|
+
id?: string;
|
|
34885
|
+
notes?: string | null;
|
|
34886
|
+
packing_configuration_id?: string | null;
|
|
34887
|
+
parent_product_id?: string | null;
|
|
34888
|
+
parent_trade_item_floriday_id?: string | null;
|
|
34889
|
+
quantity?: number;
|
|
34890
|
+
sort_order?: number;
|
|
34891
|
+
tenant_id?: string;
|
|
34892
|
+
unit?: string;
|
|
34893
|
+
updated_at?: string;
|
|
34894
|
+
};
|
|
34895
|
+
Relationships: [{
|
|
34896
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
34897
|
+
columns: ["component_product_id"];
|
|
34898
|
+
isOneToOne: false;
|
|
34899
|
+
referencedRelation: "products";
|
|
34900
|
+
referencedColumns: ["id"];
|
|
34901
|
+
}, {
|
|
34902
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
34903
|
+
columns: ["parent_product_id"];
|
|
34904
|
+
isOneToOne: false;
|
|
34905
|
+
referencedRelation: "products";
|
|
34906
|
+
referencedColumns: ["id"];
|
|
34907
|
+
}];
|
|
34908
|
+
};
|
|
34397
34909
|
product_categories: {
|
|
34398
34910
|
Row: {
|
|
34399
34911
|
color: string;
|
|
@@ -34499,6 +35011,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
34499
35011
|
id: string;
|
|
34500
35012
|
product_group_id: string;
|
|
34501
35013
|
quantity: number;
|
|
35014
|
+
sort_order: number;
|
|
34502
35015
|
trade_item_id: string;
|
|
34503
35016
|
};
|
|
34504
35017
|
Insert: {
|
|
@@ -34506,6 +35019,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
34506
35019
|
id?: string;
|
|
34507
35020
|
product_group_id: string;
|
|
34508
35021
|
quantity?: number;
|
|
35022
|
+
sort_order?: number;
|
|
34509
35023
|
trade_item_id: string;
|
|
34510
35024
|
};
|
|
34511
35025
|
Update: {
|
|
@@ -34513,6 +35027,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
34513
35027
|
id?: string;
|
|
34514
35028
|
product_group_id?: string;
|
|
34515
35029
|
quantity?: number;
|
|
35030
|
+
sort_order?: number;
|
|
34516
35031
|
trade_item_id?: string;
|
|
34517
35032
|
};
|
|
34518
35033
|
Relationships: [{
|
|
@@ -34565,16 +35080,85 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
34565
35080
|
referencedColumns: ["id"];
|
|
34566
35081
|
}];
|
|
34567
35082
|
};
|
|
35083
|
+
product_load_settings: {
|
|
35084
|
+
Row: {
|
|
35085
|
+
created_at: string;
|
|
35086
|
+
id: string;
|
|
35087
|
+
is_package: boolean;
|
|
35088
|
+
label: string | null;
|
|
35089
|
+
layers_per_load_carrier: number | null;
|
|
35090
|
+
load_carrier: string | null;
|
|
35091
|
+
package_id: string | null;
|
|
35092
|
+
package_label: string | null;
|
|
35093
|
+
packages_per_layer: number | null;
|
|
35094
|
+
packing_configuration_id: string;
|
|
35095
|
+
product_id: string | null;
|
|
35096
|
+
tenant_id: string;
|
|
35097
|
+
trade_item_floriday_id: string | null;
|
|
35098
|
+
units_per_package: number | null;
|
|
35099
|
+
updated_at: string;
|
|
35100
|
+
};
|
|
35101
|
+
Insert: {
|
|
35102
|
+
created_at?: string;
|
|
35103
|
+
id?: string;
|
|
35104
|
+
is_package?: boolean;
|
|
35105
|
+
label?: string | null;
|
|
35106
|
+
layers_per_load_carrier?: number | null;
|
|
35107
|
+
load_carrier?: string | null;
|
|
35108
|
+
package_id?: string | null;
|
|
35109
|
+
package_label?: string | null;
|
|
35110
|
+
packages_per_layer?: number | null;
|
|
35111
|
+
packing_configuration_id?: string;
|
|
35112
|
+
product_id?: string | null;
|
|
35113
|
+
tenant_id: string;
|
|
35114
|
+
trade_item_floriday_id?: string | null;
|
|
35115
|
+
units_per_package?: number | null;
|
|
35116
|
+
updated_at?: string;
|
|
35117
|
+
};
|
|
35118
|
+
Update: {
|
|
35119
|
+
created_at?: string;
|
|
35120
|
+
id?: string;
|
|
35121
|
+
is_package?: boolean;
|
|
35122
|
+
label?: string | null;
|
|
35123
|
+
layers_per_load_carrier?: number | null;
|
|
35124
|
+
load_carrier?: string | null;
|
|
35125
|
+
package_id?: string | null;
|
|
35126
|
+
package_label?: string | null;
|
|
35127
|
+
packages_per_layer?: number | null;
|
|
35128
|
+
packing_configuration_id?: string;
|
|
35129
|
+
product_id?: string | null;
|
|
35130
|
+
tenant_id?: string;
|
|
35131
|
+
trade_item_floriday_id?: string | null;
|
|
35132
|
+
units_per_package?: number | null;
|
|
35133
|
+
updated_at?: string;
|
|
35134
|
+
};
|
|
35135
|
+
Relationships: [{
|
|
35136
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
35137
|
+
columns: ["package_id"];
|
|
35138
|
+
isOneToOne: false;
|
|
35139
|
+
referencedRelation: "packages";
|
|
35140
|
+
referencedColumns: ["id"];
|
|
35141
|
+
}, {
|
|
35142
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
35143
|
+
columns: ["product_id"];
|
|
35144
|
+
isOneToOne: false;
|
|
35145
|
+
referencedRelation: "products";
|
|
35146
|
+
referencedColumns: ["id"];
|
|
35147
|
+
}];
|
|
35148
|
+
};
|
|
34568
35149
|
products: {
|
|
34569
35150
|
Row: {
|
|
35151
|
+
article_number: string | null;
|
|
34570
35152
|
barcode: string | null;
|
|
34571
35153
|
batch: string;
|
|
34572
35154
|
crates_per_layer: number;
|
|
34573
35155
|
created_at: string;
|
|
34574
35156
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
35157
|
+
floriday_trade_item_id: string | null;
|
|
34575
35158
|
id: string;
|
|
34576
35159
|
image_url: string | null;
|
|
34577
35160
|
incoming_quantity: number;
|
|
35161
|
+
is_layer: boolean;
|
|
34578
35162
|
layers_per_cart: number;
|
|
34579
35163
|
location: string;
|
|
34580
35164
|
min_quantity: number;
|
|
@@ -34590,14 +35174,17 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
34590
35174
|
weight: string | null;
|
|
34591
35175
|
};
|
|
34592
35176
|
Insert: {
|
|
35177
|
+
article_number?: string | null;
|
|
34593
35178
|
barcode?: string | null;
|
|
34594
35179
|
batch: string;
|
|
34595
35180
|
crates_per_layer?: number;
|
|
34596
35181
|
created_at?: string;
|
|
34597
35182
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
35183
|
+
floriday_trade_item_id?: string | null;
|
|
34598
35184
|
id?: string;
|
|
34599
35185
|
image_url?: string | null;
|
|
34600
35186
|
incoming_quantity?: number;
|
|
35187
|
+
is_layer?: boolean;
|
|
34601
35188
|
layers_per_cart?: number;
|
|
34602
35189
|
location: string;
|
|
34603
35190
|
min_quantity?: number;
|
|
@@ -34613,14 +35200,17 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
34613
35200
|
weight?: string | null;
|
|
34614
35201
|
};
|
|
34615
35202
|
Update: {
|
|
35203
|
+
article_number?: string | null;
|
|
34616
35204
|
barcode?: string | null;
|
|
34617
35205
|
batch?: string;
|
|
34618
35206
|
crates_per_layer?: number;
|
|
34619
35207
|
created_at?: string;
|
|
34620
35208
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
35209
|
+
floriday_trade_item_id?: string | null;
|
|
34621
35210
|
id?: string;
|
|
34622
35211
|
image_url?: string | null;
|
|
34623
35212
|
incoming_quantity?: number;
|
|
35213
|
+
is_layer?: boolean;
|
|
34624
35214
|
layers_per_cart?: number;
|
|
34625
35215
|
location?: string;
|
|
34626
35216
|
min_quantity?: number;
|
|
@@ -34640,6 +35230,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
34640
35230
|
profiles: {
|
|
34641
35231
|
Row: {
|
|
34642
35232
|
address: string | null;
|
|
35233
|
+
avatar_url: string | null;
|
|
34643
35234
|
created_at: string;
|
|
34644
35235
|
display_name: string | null;
|
|
34645
35236
|
email: string | null;
|
|
@@ -34651,6 +35242,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
34651
35242
|
};
|
|
34652
35243
|
Insert: {
|
|
34653
35244
|
address?: string | null;
|
|
35245
|
+
avatar_url?: string | null;
|
|
34654
35246
|
created_at?: string;
|
|
34655
35247
|
display_name?: string | null;
|
|
34656
35248
|
email?: string | null;
|
|
@@ -34662,6 +35254,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
34662
35254
|
};
|
|
34663
35255
|
Update: {
|
|
34664
35256
|
address?: string | null;
|
|
35257
|
+
avatar_url?: string | null;
|
|
34665
35258
|
created_at?: string;
|
|
34666
35259
|
display_name?: string | null;
|
|
34667
35260
|
email?: string | null;
|
|
@@ -35528,6 +36121,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
35528
36121
|
order_source: string | null;
|
|
35529
36122
|
physical_after: number | null;
|
|
35530
36123
|
physical_before: number | null;
|
|
36124
|
+
production_batch_id: string | null;
|
|
35531
36125
|
qty_delta: number;
|
|
35532
36126
|
reason: string | null;
|
|
35533
36127
|
reserved_after: number | null;
|
|
@@ -35545,6 +36139,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
35545
36139
|
order_source?: string | null;
|
|
35546
36140
|
physical_after?: number | null;
|
|
35547
36141
|
physical_before?: number | null;
|
|
36142
|
+
production_batch_id?: string | null;
|
|
35548
36143
|
qty_delta: number;
|
|
35549
36144
|
reason?: string | null;
|
|
35550
36145
|
reserved_after?: number | null;
|
|
@@ -35562,6 +36157,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
35562
36157
|
order_source?: string | null;
|
|
35563
36158
|
physical_after?: number | null;
|
|
35564
36159
|
physical_before?: number | null;
|
|
36160
|
+
production_batch_id?: string | null;
|
|
35565
36161
|
qty_delta?: number;
|
|
35566
36162
|
reason?: string | null;
|
|
35567
36163
|
reserved_after?: number | null;
|
|
@@ -37990,6 +38586,12 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
37990
38586
|
processed_items: number;
|
|
37991
38587
|
}[];
|
|
37992
38588
|
};
|
|
38589
|
+
calculate_layer_stock: {
|
|
38590
|
+
Args: {
|
|
38591
|
+
p_product_id: string;
|
|
38592
|
+
};
|
|
38593
|
+
Returns: number;
|
|
38594
|
+
};
|
|
37993
38595
|
call_exact_route: {
|
|
37994
38596
|
Args: {
|
|
37995
38597
|
path: string;
|
|
@@ -38049,6 +38651,28 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
38049
38651
|
Args: never;
|
|
38050
38652
|
Returns: undefined;
|
|
38051
38653
|
};
|
|
38654
|
+
consume_bom_for_production: {
|
|
38655
|
+
Args: {
|
|
38656
|
+
p_connection_id: string;
|
|
38657
|
+
p_parent_id: string;
|
|
38658
|
+
p_parent_key: string;
|
|
38659
|
+
p_parent_kind: string;
|
|
38660
|
+
p_quantity: number;
|
|
38661
|
+
p_user_id: string;
|
|
38662
|
+
};
|
|
38663
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
38664
|
+
} | {
|
|
38665
|
+
Args: {
|
|
38666
|
+
p_batch_id?: string;
|
|
38667
|
+
p_connection_id: string;
|
|
38668
|
+
p_parent_id: string;
|
|
38669
|
+
p_parent_key: string;
|
|
38670
|
+
p_parent_kind: string;
|
|
38671
|
+
p_quantity: number;
|
|
38672
|
+
p_user_id: string;
|
|
38673
|
+
};
|
|
38674
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
38675
|
+
};
|
|
38052
38676
|
consume_floriday_rate_limit: {
|
|
38053
38677
|
Args: {
|
|
38054
38678
|
p_bucket: string;
|
|
@@ -38106,6 +38730,13 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
38106
38730
|
table_name: string;
|
|
38107
38731
|
}[];
|
|
38108
38732
|
};
|
|
38733
|
+
delete_samenstelling: {
|
|
38734
|
+
Args: {
|
|
38735
|
+
p_parent_id: string;
|
|
38736
|
+
p_parent_kind: string;
|
|
38737
|
+
};
|
|
38738
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
38739
|
+
};
|
|
38109
38740
|
dispatch_carrier_signups_sql: {
|
|
38110
38741
|
Args: {
|
|
38111
38742
|
_catchup?: string;
|
|
@@ -38361,6 +38992,12 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
38361
38992
|
minutes_since_success: number;
|
|
38362
38993
|
}[];
|
|
38363
38994
|
};
|
|
38995
|
+
get_inventory_stock_for_key: {
|
|
38996
|
+
Args: {
|
|
38997
|
+
p_key: string;
|
|
38998
|
+
};
|
|
38999
|
+
Returns: number;
|
|
39000
|
+
};
|
|
38364
39001
|
get_offer_by_link_code: {
|
|
38365
39002
|
Args: {
|
|
38366
39003
|
p_code: string;
|
|
@@ -38391,6 +39028,12 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
38391
39028
|
};
|
|
38392
39029
|
Returns: string;
|
|
38393
39030
|
};
|
|
39031
|
+
get_product_group_available_stock: {
|
|
39032
|
+
Args: {
|
|
39033
|
+
p_group_id: string;
|
|
39034
|
+
};
|
|
39035
|
+
Returns: number;
|
|
39036
|
+
};
|
|
38394
39037
|
get_room_busy_windows: {
|
|
38395
39038
|
Args: {
|
|
38396
39039
|
p_from: string;
|
|
@@ -38464,9 +39107,10 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
38464
39107
|
list_monteurs: {
|
|
38465
39108
|
Args: never;
|
|
38466
39109
|
Returns: {
|
|
39110
|
+
avatar_url: string;
|
|
38467
39111
|
display_name: string;
|
|
38468
39112
|
email: string;
|
|
38469
|
-
|
|
39113
|
+
id: string;
|
|
38470
39114
|
}[];
|
|
38471
39115
|
};
|
|
38472
39116
|
local_effective_price: {
|
|
@@ -38601,6 +39245,14 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
38601
39245
|
};
|
|
38602
39246
|
Returns: undefined;
|
|
38603
39247
|
};
|
|
39248
|
+
produce_designed_product: {
|
|
39249
|
+
Args: {
|
|
39250
|
+
p_parent_id: string;
|
|
39251
|
+
p_parent_kind: string;
|
|
39252
|
+
p_quantity: number;
|
|
39253
|
+
};
|
|
39254
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
39255
|
+
};
|
|
38604
39256
|
promote_trade_item_key: {
|
|
38605
39257
|
Args: {
|
|
38606
39258
|
p_new: string;
|
|
@@ -38675,6 +39327,16 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
38675
39327
|
};
|
|
38676
39328
|
Returns: number;
|
|
38677
39329
|
};
|
|
39330
|
+
reverse_production: {
|
|
39331
|
+
Args: {
|
|
39332
|
+
p_connection_id?: string;
|
|
39333
|
+
p_parent_key: string;
|
|
39334
|
+
p_quantity: number;
|
|
39335
|
+
p_reason?: string;
|
|
39336
|
+
p_user_id?: string;
|
|
39337
|
+
};
|
|
39338
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
39339
|
+
};
|
|
38678
39340
|
schedule_floriday_additional_services_sync: {
|
|
38679
39341
|
Args: {
|
|
38680
39342
|
p_apikey: string;
|
|
@@ -38959,18 +39621,34 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
38959
39621
|
};
|
|
38960
39622
|
Returns: string[];
|
|
38961
39623
|
};
|
|
39624
|
+
sync_all_layer_stocks: {
|
|
39625
|
+
Args: never;
|
|
39626
|
+
Returns: undefined;
|
|
39627
|
+
};
|
|
38962
39628
|
sync_cached_packing_from_product: {
|
|
38963
39629
|
Args: {
|
|
38964
39630
|
p_product_id: string;
|
|
38965
39631
|
};
|
|
38966
39632
|
Returns: undefined;
|
|
38967
39633
|
};
|
|
39634
|
+
sync_layer_stock: {
|
|
39635
|
+
Args: {
|
|
39636
|
+
p_product_id: string;
|
|
39637
|
+
};
|
|
39638
|
+
Returns: undefined;
|
|
39639
|
+
};
|
|
38968
39640
|
sync_order_cart_item_packing_from_product: {
|
|
38969
39641
|
Args: {
|
|
38970
39642
|
p_product_id: string;
|
|
38971
39643
|
};
|
|
38972
39644
|
Returns: undefined;
|
|
38973
39645
|
};
|
|
39646
|
+
sync_product_group_belading: {
|
|
39647
|
+
Args: {
|
|
39648
|
+
_group_id: string;
|
|
39649
|
+
};
|
|
39650
|
+
Returns: undefined;
|
|
39651
|
+
};
|
|
38974
39652
|
sync_product_packing_from_floriday_cache: {
|
|
38975
39653
|
Args: {
|
|
38976
39654
|
p_floriday_id: string;
|
|
@@ -39007,7 +39685,7 @@ export declare const createCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
39007
39685
|
exact_push_status: "pending" | "sent" | "error";
|
|
39008
39686
|
itk_customer_segment: "Business" | "Private";
|
|
39009
39687
|
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
39010
|
-
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
|
|
39688
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
39011
39689
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
39012
39690
|
};
|
|
39013
39691
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -47412,6 +48090,66 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
47412
48090
|
referencedColumns: ["id"];
|
|
47413
48091
|
}];
|
|
47414
48092
|
};
|
|
48093
|
+
product_bom_items: {
|
|
48094
|
+
Row: {
|
|
48095
|
+
component_product_id: string | null;
|
|
48096
|
+
component_trade_item_floriday_id: string | null;
|
|
48097
|
+
created_at: string;
|
|
48098
|
+
id: string;
|
|
48099
|
+
notes: string | null;
|
|
48100
|
+
packing_configuration_id: string | null;
|
|
48101
|
+
parent_product_id: string | null;
|
|
48102
|
+
parent_trade_item_floriday_id: string | null;
|
|
48103
|
+
quantity: number;
|
|
48104
|
+
sort_order: number;
|
|
48105
|
+
tenant_id: string;
|
|
48106
|
+
unit: string;
|
|
48107
|
+
updated_at: string;
|
|
48108
|
+
};
|
|
48109
|
+
Insert: {
|
|
48110
|
+
component_product_id?: string | null;
|
|
48111
|
+
component_trade_item_floriday_id?: string | null;
|
|
48112
|
+
created_at?: string;
|
|
48113
|
+
id?: string;
|
|
48114
|
+
notes?: string | null;
|
|
48115
|
+
packing_configuration_id?: string | null;
|
|
48116
|
+
parent_product_id?: string | null;
|
|
48117
|
+
parent_trade_item_floriday_id?: string | null;
|
|
48118
|
+
quantity?: number;
|
|
48119
|
+
sort_order?: number;
|
|
48120
|
+
tenant_id: string;
|
|
48121
|
+
unit?: string;
|
|
48122
|
+
updated_at?: string;
|
|
48123
|
+
};
|
|
48124
|
+
Update: {
|
|
48125
|
+
component_product_id?: string | null;
|
|
48126
|
+
component_trade_item_floriday_id?: string | null;
|
|
48127
|
+
created_at?: string;
|
|
48128
|
+
id?: string;
|
|
48129
|
+
notes?: string | null;
|
|
48130
|
+
packing_configuration_id?: string | null;
|
|
48131
|
+
parent_product_id?: string | null;
|
|
48132
|
+
parent_trade_item_floriday_id?: string | null;
|
|
48133
|
+
quantity?: number;
|
|
48134
|
+
sort_order?: number;
|
|
48135
|
+
tenant_id?: string;
|
|
48136
|
+
unit?: string;
|
|
48137
|
+
updated_at?: string;
|
|
48138
|
+
};
|
|
48139
|
+
Relationships: [{
|
|
48140
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
48141
|
+
columns: ["component_product_id"];
|
|
48142
|
+
isOneToOne: false;
|
|
48143
|
+
referencedRelation: "products";
|
|
48144
|
+
referencedColumns: ["id"];
|
|
48145
|
+
}, {
|
|
48146
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
48147
|
+
columns: ["parent_product_id"];
|
|
48148
|
+
isOneToOne: false;
|
|
48149
|
+
referencedRelation: "products";
|
|
48150
|
+
referencedColumns: ["id"];
|
|
48151
|
+
}];
|
|
48152
|
+
};
|
|
47415
48153
|
product_categories: {
|
|
47416
48154
|
Row: {
|
|
47417
48155
|
color: string;
|
|
@@ -47517,6 +48255,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
47517
48255
|
id: string;
|
|
47518
48256
|
product_group_id: string;
|
|
47519
48257
|
quantity: number;
|
|
48258
|
+
sort_order: number;
|
|
47520
48259
|
trade_item_id: string;
|
|
47521
48260
|
};
|
|
47522
48261
|
Insert: {
|
|
@@ -47524,6 +48263,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
47524
48263
|
id?: string;
|
|
47525
48264
|
product_group_id: string;
|
|
47526
48265
|
quantity?: number;
|
|
48266
|
+
sort_order?: number;
|
|
47527
48267
|
trade_item_id: string;
|
|
47528
48268
|
};
|
|
47529
48269
|
Update: {
|
|
@@ -47531,6 +48271,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
47531
48271
|
id?: string;
|
|
47532
48272
|
product_group_id?: string;
|
|
47533
48273
|
quantity?: number;
|
|
48274
|
+
sort_order?: number;
|
|
47534
48275
|
trade_item_id?: string;
|
|
47535
48276
|
};
|
|
47536
48277
|
Relationships: [{
|
|
@@ -47583,16 +48324,85 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
47583
48324
|
referencedColumns: ["id"];
|
|
47584
48325
|
}];
|
|
47585
48326
|
};
|
|
48327
|
+
product_load_settings: {
|
|
48328
|
+
Row: {
|
|
48329
|
+
created_at: string;
|
|
48330
|
+
id: string;
|
|
48331
|
+
is_package: boolean;
|
|
48332
|
+
label: string | null;
|
|
48333
|
+
layers_per_load_carrier: number | null;
|
|
48334
|
+
load_carrier: string | null;
|
|
48335
|
+
package_id: string | null;
|
|
48336
|
+
package_label: string | null;
|
|
48337
|
+
packages_per_layer: number | null;
|
|
48338
|
+
packing_configuration_id: string;
|
|
48339
|
+
product_id: string | null;
|
|
48340
|
+
tenant_id: string;
|
|
48341
|
+
trade_item_floriday_id: string | null;
|
|
48342
|
+
units_per_package: number | null;
|
|
48343
|
+
updated_at: string;
|
|
48344
|
+
};
|
|
48345
|
+
Insert: {
|
|
48346
|
+
created_at?: string;
|
|
48347
|
+
id?: string;
|
|
48348
|
+
is_package?: boolean;
|
|
48349
|
+
label?: string | null;
|
|
48350
|
+
layers_per_load_carrier?: number | null;
|
|
48351
|
+
load_carrier?: string | null;
|
|
48352
|
+
package_id?: string | null;
|
|
48353
|
+
package_label?: string | null;
|
|
48354
|
+
packages_per_layer?: number | null;
|
|
48355
|
+
packing_configuration_id?: string;
|
|
48356
|
+
product_id?: string | null;
|
|
48357
|
+
tenant_id: string;
|
|
48358
|
+
trade_item_floriday_id?: string | null;
|
|
48359
|
+
units_per_package?: number | null;
|
|
48360
|
+
updated_at?: string;
|
|
48361
|
+
};
|
|
48362
|
+
Update: {
|
|
48363
|
+
created_at?: string;
|
|
48364
|
+
id?: string;
|
|
48365
|
+
is_package?: boolean;
|
|
48366
|
+
label?: string | null;
|
|
48367
|
+
layers_per_load_carrier?: number | null;
|
|
48368
|
+
load_carrier?: string | null;
|
|
48369
|
+
package_id?: string | null;
|
|
48370
|
+
package_label?: string | null;
|
|
48371
|
+
packages_per_layer?: number | null;
|
|
48372
|
+
packing_configuration_id?: string;
|
|
48373
|
+
product_id?: string | null;
|
|
48374
|
+
tenant_id?: string;
|
|
48375
|
+
trade_item_floriday_id?: string | null;
|
|
48376
|
+
units_per_package?: number | null;
|
|
48377
|
+
updated_at?: string;
|
|
48378
|
+
};
|
|
48379
|
+
Relationships: [{
|
|
48380
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
48381
|
+
columns: ["package_id"];
|
|
48382
|
+
isOneToOne: false;
|
|
48383
|
+
referencedRelation: "packages";
|
|
48384
|
+
referencedColumns: ["id"];
|
|
48385
|
+
}, {
|
|
48386
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
48387
|
+
columns: ["product_id"];
|
|
48388
|
+
isOneToOne: false;
|
|
48389
|
+
referencedRelation: "products";
|
|
48390
|
+
referencedColumns: ["id"];
|
|
48391
|
+
}];
|
|
48392
|
+
};
|
|
47586
48393
|
products: {
|
|
47587
48394
|
Row: {
|
|
48395
|
+
article_number: string | null;
|
|
47588
48396
|
barcode: string | null;
|
|
47589
48397
|
batch: string;
|
|
47590
48398
|
crates_per_layer: number;
|
|
47591
48399
|
created_at: string;
|
|
47592
48400
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
48401
|
+
floriday_trade_item_id: string | null;
|
|
47593
48402
|
id: string;
|
|
47594
48403
|
image_url: string | null;
|
|
47595
48404
|
incoming_quantity: number;
|
|
48405
|
+
is_layer: boolean;
|
|
47596
48406
|
layers_per_cart: number;
|
|
47597
48407
|
location: string;
|
|
47598
48408
|
min_quantity: number;
|
|
@@ -47608,14 +48418,17 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
47608
48418
|
weight: string | null;
|
|
47609
48419
|
};
|
|
47610
48420
|
Insert: {
|
|
48421
|
+
article_number?: string | null;
|
|
47611
48422
|
barcode?: string | null;
|
|
47612
48423
|
batch: string;
|
|
47613
48424
|
crates_per_layer?: number;
|
|
47614
48425
|
created_at?: string;
|
|
47615
48426
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
48427
|
+
floriday_trade_item_id?: string | null;
|
|
47616
48428
|
id?: string;
|
|
47617
48429
|
image_url?: string | null;
|
|
47618
48430
|
incoming_quantity?: number;
|
|
48431
|
+
is_layer?: boolean;
|
|
47619
48432
|
layers_per_cart?: number;
|
|
47620
48433
|
location: string;
|
|
47621
48434
|
min_quantity?: number;
|
|
@@ -47631,14 +48444,17 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
47631
48444
|
weight?: string | null;
|
|
47632
48445
|
};
|
|
47633
48446
|
Update: {
|
|
48447
|
+
article_number?: string | null;
|
|
47634
48448
|
barcode?: string | null;
|
|
47635
48449
|
batch?: string;
|
|
47636
48450
|
crates_per_layer?: number;
|
|
47637
48451
|
created_at?: string;
|
|
47638
48452
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
48453
|
+
floriday_trade_item_id?: string | null;
|
|
47639
48454
|
id?: string;
|
|
47640
48455
|
image_url?: string | null;
|
|
47641
48456
|
incoming_quantity?: number;
|
|
48457
|
+
is_layer?: boolean;
|
|
47642
48458
|
layers_per_cart?: number;
|
|
47643
48459
|
location?: string;
|
|
47644
48460
|
min_quantity?: number;
|
|
@@ -47658,6 +48474,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
47658
48474
|
profiles: {
|
|
47659
48475
|
Row: {
|
|
47660
48476
|
address: string | null;
|
|
48477
|
+
avatar_url: string | null;
|
|
47661
48478
|
created_at: string;
|
|
47662
48479
|
display_name: string | null;
|
|
47663
48480
|
email: string | null;
|
|
@@ -47669,6 +48486,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
47669
48486
|
};
|
|
47670
48487
|
Insert: {
|
|
47671
48488
|
address?: string | null;
|
|
48489
|
+
avatar_url?: string | null;
|
|
47672
48490
|
created_at?: string;
|
|
47673
48491
|
display_name?: string | null;
|
|
47674
48492
|
email?: string | null;
|
|
@@ -47680,6 +48498,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
47680
48498
|
};
|
|
47681
48499
|
Update: {
|
|
47682
48500
|
address?: string | null;
|
|
48501
|
+
avatar_url?: string | null;
|
|
47683
48502
|
created_at?: string;
|
|
47684
48503
|
display_name?: string | null;
|
|
47685
48504
|
email?: string | null;
|
|
@@ -48546,6 +49365,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
48546
49365
|
order_source: string | null;
|
|
48547
49366
|
physical_after: number | null;
|
|
48548
49367
|
physical_before: number | null;
|
|
49368
|
+
production_batch_id: string | null;
|
|
48549
49369
|
qty_delta: number;
|
|
48550
49370
|
reason: string | null;
|
|
48551
49371
|
reserved_after: number | null;
|
|
@@ -48563,6 +49383,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
48563
49383
|
order_source?: string | null;
|
|
48564
49384
|
physical_after?: number | null;
|
|
48565
49385
|
physical_before?: number | null;
|
|
49386
|
+
production_batch_id?: string | null;
|
|
48566
49387
|
qty_delta: number;
|
|
48567
49388
|
reason?: string | null;
|
|
48568
49389
|
reserved_after?: number | null;
|
|
@@ -48580,6 +49401,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
48580
49401
|
order_source?: string | null;
|
|
48581
49402
|
physical_after?: number | null;
|
|
48582
49403
|
physical_before?: number | null;
|
|
49404
|
+
production_batch_id?: string | null;
|
|
48583
49405
|
qty_delta?: number;
|
|
48584
49406
|
reason?: string | null;
|
|
48585
49407
|
reserved_after?: number | null;
|
|
@@ -51008,6 +51830,12 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
51008
51830
|
processed_items: number;
|
|
51009
51831
|
}[];
|
|
51010
51832
|
};
|
|
51833
|
+
calculate_layer_stock: {
|
|
51834
|
+
Args: {
|
|
51835
|
+
p_product_id: string;
|
|
51836
|
+
};
|
|
51837
|
+
Returns: number;
|
|
51838
|
+
};
|
|
51011
51839
|
call_exact_route: {
|
|
51012
51840
|
Args: {
|
|
51013
51841
|
path: string;
|
|
@@ -51067,6 +51895,28 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
51067
51895
|
Args: never;
|
|
51068
51896
|
Returns: undefined;
|
|
51069
51897
|
};
|
|
51898
|
+
consume_bom_for_production: {
|
|
51899
|
+
Args: {
|
|
51900
|
+
p_connection_id: string;
|
|
51901
|
+
p_parent_id: string;
|
|
51902
|
+
p_parent_key: string;
|
|
51903
|
+
p_parent_kind: string;
|
|
51904
|
+
p_quantity: number;
|
|
51905
|
+
p_user_id: string;
|
|
51906
|
+
};
|
|
51907
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
51908
|
+
} | {
|
|
51909
|
+
Args: {
|
|
51910
|
+
p_batch_id?: string;
|
|
51911
|
+
p_connection_id: string;
|
|
51912
|
+
p_parent_id: string;
|
|
51913
|
+
p_parent_key: string;
|
|
51914
|
+
p_parent_kind: string;
|
|
51915
|
+
p_quantity: number;
|
|
51916
|
+
p_user_id: string;
|
|
51917
|
+
};
|
|
51918
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
51919
|
+
};
|
|
51070
51920
|
consume_floriday_rate_limit: {
|
|
51071
51921
|
Args: {
|
|
51072
51922
|
p_bucket: string;
|
|
@@ -51124,6 +51974,13 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
51124
51974
|
table_name: string;
|
|
51125
51975
|
}[];
|
|
51126
51976
|
};
|
|
51977
|
+
delete_samenstelling: {
|
|
51978
|
+
Args: {
|
|
51979
|
+
p_parent_id: string;
|
|
51980
|
+
p_parent_kind: string;
|
|
51981
|
+
};
|
|
51982
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
51983
|
+
};
|
|
51127
51984
|
dispatch_carrier_signups_sql: {
|
|
51128
51985
|
Args: {
|
|
51129
51986
|
_catchup?: string;
|
|
@@ -51379,6 +52236,12 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
51379
52236
|
minutes_since_success: number;
|
|
51380
52237
|
}[];
|
|
51381
52238
|
};
|
|
52239
|
+
get_inventory_stock_for_key: {
|
|
52240
|
+
Args: {
|
|
52241
|
+
p_key: string;
|
|
52242
|
+
};
|
|
52243
|
+
Returns: number;
|
|
52244
|
+
};
|
|
51382
52245
|
get_offer_by_link_code: {
|
|
51383
52246
|
Args: {
|
|
51384
52247
|
p_code: string;
|
|
@@ -51409,6 +52272,12 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
51409
52272
|
};
|
|
51410
52273
|
Returns: string;
|
|
51411
52274
|
};
|
|
52275
|
+
get_product_group_available_stock: {
|
|
52276
|
+
Args: {
|
|
52277
|
+
p_group_id: string;
|
|
52278
|
+
};
|
|
52279
|
+
Returns: number;
|
|
52280
|
+
};
|
|
51412
52281
|
get_room_busy_windows: {
|
|
51413
52282
|
Args: {
|
|
51414
52283
|
p_from: string;
|
|
@@ -51482,9 +52351,10 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
51482
52351
|
list_monteurs: {
|
|
51483
52352
|
Args: never;
|
|
51484
52353
|
Returns: {
|
|
52354
|
+
avatar_url: string;
|
|
51485
52355
|
display_name: string;
|
|
51486
52356
|
email: string;
|
|
51487
|
-
|
|
52357
|
+
id: string;
|
|
51488
52358
|
}[];
|
|
51489
52359
|
};
|
|
51490
52360
|
local_effective_price: {
|
|
@@ -51619,6 +52489,14 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
51619
52489
|
};
|
|
51620
52490
|
Returns: undefined;
|
|
51621
52491
|
};
|
|
52492
|
+
produce_designed_product: {
|
|
52493
|
+
Args: {
|
|
52494
|
+
p_parent_id: string;
|
|
52495
|
+
p_parent_kind: string;
|
|
52496
|
+
p_quantity: number;
|
|
52497
|
+
};
|
|
52498
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
52499
|
+
};
|
|
51622
52500
|
promote_trade_item_key: {
|
|
51623
52501
|
Args: {
|
|
51624
52502
|
p_new: string;
|
|
@@ -51693,6 +52571,16 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
51693
52571
|
};
|
|
51694
52572
|
Returns: number;
|
|
51695
52573
|
};
|
|
52574
|
+
reverse_production: {
|
|
52575
|
+
Args: {
|
|
52576
|
+
p_connection_id?: string;
|
|
52577
|
+
p_parent_key: string;
|
|
52578
|
+
p_quantity: number;
|
|
52579
|
+
p_reason?: string;
|
|
52580
|
+
p_user_id?: string;
|
|
52581
|
+
};
|
|
52582
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
52583
|
+
};
|
|
51696
52584
|
schedule_floriday_additional_services_sync: {
|
|
51697
52585
|
Args: {
|
|
51698
52586
|
p_apikey: string;
|
|
@@ -51977,18 +52865,34 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
51977
52865
|
};
|
|
51978
52866
|
Returns: string[];
|
|
51979
52867
|
};
|
|
52868
|
+
sync_all_layer_stocks: {
|
|
52869
|
+
Args: never;
|
|
52870
|
+
Returns: undefined;
|
|
52871
|
+
};
|
|
51980
52872
|
sync_cached_packing_from_product: {
|
|
51981
52873
|
Args: {
|
|
51982
52874
|
p_product_id: string;
|
|
51983
52875
|
};
|
|
51984
52876
|
Returns: undefined;
|
|
51985
52877
|
};
|
|
52878
|
+
sync_layer_stock: {
|
|
52879
|
+
Args: {
|
|
52880
|
+
p_product_id: string;
|
|
52881
|
+
};
|
|
52882
|
+
Returns: undefined;
|
|
52883
|
+
};
|
|
51986
52884
|
sync_order_cart_item_packing_from_product: {
|
|
51987
52885
|
Args: {
|
|
51988
52886
|
p_product_id: string;
|
|
51989
52887
|
};
|
|
51990
52888
|
Returns: undefined;
|
|
51991
52889
|
};
|
|
52890
|
+
sync_product_group_belading: {
|
|
52891
|
+
Args: {
|
|
52892
|
+
_group_id: string;
|
|
52893
|
+
};
|
|
52894
|
+
Returns: undefined;
|
|
52895
|
+
};
|
|
51992
52896
|
sync_product_packing_from_floriday_cache: {
|
|
51993
52897
|
Args: {
|
|
51994
52898
|
p_floriday_id: string;
|
|
@@ -52025,7 +52929,7 @@ export declare const updateCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
52025
52929
|
exact_push_status: "pending" | "sent" | "error";
|
|
52026
52930
|
itk_customer_segment: "Business" | "Private";
|
|
52027
52931
|
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
52028
|
-
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
|
|
52932
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
52029
52933
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
52030
52934
|
};
|
|
52031
52935
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -60433,6 +61337,66 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
60433
61337
|
referencedColumns: ["id"];
|
|
60434
61338
|
}];
|
|
60435
61339
|
};
|
|
61340
|
+
product_bom_items: {
|
|
61341
|
+
Row: {
|
|
61342
|
+
component_product_id: string | null;
|
|
61343
|
+
component_trade_item_floriday_id: string | null;
|
|
61344
|
+
created_at: string;
|
|
61345
|
+
id: string;
|
|
61346
|
+
notes: string | null;
|
|
61347
|
+
packing_configuration_id: string | null;
|
|
61348
|
+
parent_product_id: string | null;
|
|
61349
|
+
parent_trade_item_floriday_id: string | null;
|
|
61350
|
+
quantity: number;
|
|
61351
|
+
sort_order: number;
|
|
61352
|
+
tenant_id: string;
|
|
61353
|
+
unit: string;
|
|
61354
|
+
updated_at: string;
|
|
61355
|
+
};
|
|
61356
|
+
Insert: {
|
|
61357
|
+
component_product_id?: string | null;
|
|
61358
|
+
component_trade_item_floriday_id?: string | null;
|
|
61359
|
+
created_at?: string;
|
|
61360
|
+
id?: string;
|
|
61361
|
+
notes?: string | null;
|
|
61362
|
+
packing_configuration_id?: string | null;
|
|
61363
|
+
parent_product_id?: string | null;
|
|
61364
|
+
parent_trade_item_floriday_id?: string | null;
|
|
61365
|
+
quantity?: number;
|
|
61366
|
+
sort_order?: number;
|
|
61367
|
+
tenant_id: string;
|
|
61368
|
+
unit?: string;
|
|
61369
|
+
updated_at?: string;
|
|
61370
|
+
};
|
|
61371
|
+
Update: {
|
|
61372
|
+
component_product_id?: string | null;
|
|
61373
|
+
component_trade_item_floriday_id?: string | null;
|
|
61374
|
+
created_at?: string;
|
|
61375
|
+
id?: string;
|
|
61376
|
+
notes?: string | null;
|
|
61377
|
+
packing_configuration_id?: string | null;
|
|
61378
|
+
parent_product_id?: string | null;
|
|
61379
|
+
parent_trade_item_floriday_id?: string | null;
|
|
61380
|
+
quantity?: number;
|
|
61381
|
+
sort_order?: number;
|
|
61382
|
+
tenant_id?: string;
|
|
61383
|
+
unit?: string;
|
|
61384
|
+
updated_at?: string;
|
|
61385
|
+
};
|
|
61386
|
+
Relationships: [{
|
|
61387
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
61388
|
+
columns: ["component_product_id"];
|
|
61389
|
+
isOneToOne: false;
|
|
61390
|
+
referencedRelation: "products";
|
|
61391
|
+
referencedColumns: ["id"];
|
|
61392
|
+
}, {
|
|
61393
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
61394
|
+
columns: ["parent_product_id"];
|
|
61395
|
+
isOneToOne: false;
|
|
61396
|
+
referencedRelation: "products";
|
|
61397
|
+
referencedColumns: ["id"];
|
|
61398
|
+
}];
|
|
61399
|
+
};
|
|
60436
61400
|
product_categories: {
|
|
60437
61401
|
Row: {
|
|
60438
61402
|
color: string;
|
|
@@ -60538,6 +61502,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
60538
61502
|
id: string;
|
|
60539
61503
|
product_group_id: string;
|
|
60540
61504
|
quantity: number;
|
|
61505
|
+
sort_order: number;
|
|
60541
61506
|
trade_item_id: string;
|
|
60542
61507
|
};
|
|
60543
61508
|
Insert: {
|
|
@@ -60545,6 +61510,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
60545
61510
|
id?: string;
|
|
60546
61511
|
product_group_id: string;
|
|
60547
61512
|
quantity?: number;
|
|
61513
|
+
sort_order?: number;
|
|
60548
61514
|
trade_item_id: string;
|
|
60549
61515
|
};
|
|
60550
61516
|
Update: {
|
|
@@ -60552,6 +61518,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
60552
61518
|
id?: string;
|
|
60553
61519
|
product_group_id?: string;
|
|
60554
61520
|
quantity?: number;
|
|
61521
|
+
sort_order?: number;
|
|
60555
61522
|
trade_item_id?: string;
|
|
60556
61523
|
};
|
|
60557
61524
|
Relationships: [{
|
|
@@ -60604,16 +61571,85 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
60604
61571
|
referencedColumns: ["id"];
|
|
60605
61572
|
}];
|
|
60606
61573
|
};
|
|
61574
|
+
product_load_settings: {
|
|
61575
|
+
Row: {
|
|
61576
|
+
created_at: string;
|
|
61577
|
+
id: string;
|
|
61578
|
+
is_package: boolean;
|
|
61579
|
+
label: string | null;
|
|
61580
|
+
layers_per_load_carrier: number | null;
|
|
61581
|
+
load_carrier: string | null;
|
|
61582
|
+
package_id: string | null;
|
|
61583
|
+
package_label: string | null;
|
|
61584
|
+
packages_per_layer: number | null;
|
|
61585
|
+
packing_configuration_id: string;
|
|
61586
|
+
product_id: string | null;
|
|
61587
|
+
tenant_id: string;
|
|
61588
|
+
trade_item_floriday_id: string | null;
|
|
61589
|
+
units_per_package: number | null;
|
|
61590
|
+
updated_at: string;
|
|
61591
|
+
};
|
|
61592
|
+
Insert: {
|
|
61593
|
+
created_at?: string;
|
|
61594
|
+
id?: string;
|
|
61595
|
+
is_package?: boolean;
|
|
61596
|
+
label?: string | null;
|
|
61597
|
+
layers_per_load_carrier?: number | null;
|
|
61598
|
+
load_carrier?: string | null;
|
|
61599
|
+
package_id?: string | null;
|
|
61600
|
+
package_label?: string | null;
|
|
61601
|
+
packages_per_layer?: number | null;
|
|
61602
|
+
packing_configuration_id?: string;
|
|
61603
|
+
product_id?: string | null;
|
|
61604
|
+
tenant_id: string;
|
|
61605
|
+
trade_item_floriday_id?: string | null;
|
|
61606
|
+
units_per_package?: number | null;
|
|
61607
|
+
updated_at?: string;
|
|
61608
|
+
};
|
|
61609
|
+
Update: {
|
|
61610
|
+
created_at?: string;
|
|
61611
|
+
id?: string;
|
|
61612
|
+
is_package?: boolean;
|
|
61613
|
+
label?: string | null;
|
|
61614
|
+
layers_per_load_carrier?: number | null;
|
|
61615
|
+
load_carrier?: string | null;
|
|
61616
|
+
package_id?: string | null;
|
|
61617
|
+
package_label?: string | null;
|
|
61618
|
+
packages_per_layer?: number | null;
|
|
61619
|
+
packing_configuration_id?: string;
|
|
61620
|
+
product_id?: string | null;
|
|
61621
|
+
tenant_id?: string;
|
|
61622
|
+
trade_item_floriday_id?: string | null;
|
|
61623
|
+
units_per_package?: number | null;
|
|
61624
|
+
updated_at?: string;
|
|
61625
|
+
};
|
|
61626
|
+
Relationships: [{
|
|
61627
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
61628
|
+
columns: ["package_id"];
|
|
61629
|
+
isOneToOne: false;
|
|
61630
|
+
referencedRelation: "packages";
|
|
61631
|
+
referencedColumns: ["id"];
|
|
61632
|
+
}, {
|
|
61633
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
61634
|
+
columns: ["product_id"];
|
|
61635
|
+
isOneToOne: false;
|
|
61636
|
+
referencedRelation: "products";
|
|
61637
|
+
referencedColumns: ["id"];
|
|
61638
|
+
}];
|
|
61639
|
+
};
|
|
60607
61640
|
products: {
|
|
60608
61641
|
Row: {
|
|
61642
|
+
article_number: string | null;
|
|
60609
61643
|
barcode: string | null;
|
|
60610
61644
|
batch: string;
|
|
60611
61645
|
crates_per_layer: number;
|
|
60612
61646
|
created_at: string;
|
|
60613
61647
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
61648
|
+
floriday_trade_item_id: string | null;
|
|
60614
61649
|
id: string;
|
|
60615
61650
|
image_url: string | null;
|
|
60616
61651
|
incoming_quantity: number;
|
|
61652
|
+
is_layer: boolean;
|
|
60617
61653
|
layers_per_cart: number;
|
|
60618
61654
|
location: string;
|
|
60619
61655
|
min_quantity: number;
|
|
@@ -60629,14 +61665,17 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
60629
61665
|
weight: string | null;
|
|
60630
61666
|
};
|
|
60631
61667
|
Insert: {
|
|
61668
|
+
article_number?: string | null;
|
|
60632
61669
|
barcode?: string | null;
|
|
60633
61670
|
batch: string;
|
|
60634
61671
|
crates_per_layer?: number;
|
|
60635
61672
|
created_at?: string;
|
|
60636
61673
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
61674
|
+
floriday_trade_item_id?: string | null;
|
|
60637
61675
|
id?: string;
|
|
60638
61676
|
image_url?: string | null;
|
|
60639
61677
|
incoming_quantity?: number;
|
|
61678
|
+
is_layer?: boolean;
|
|
60640
61679
|
layers_per_cart?: number;
|
|
60641
61680
|
location: string;
|
|
60642
61681
|
min_quantity?: number;
|
|
@@ -60652,14 +61691,17 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
60652
61691
|
weight?: string | null;
|
|
60653
61692
|
};
|
|
60654
61693
|
Update: {
|
|
61694
|
+
article_number?: string | null;
|
|
60655
61695
|
barcode?: string | null;
|
|
60656
61696
|
batch?: string;
|
|
60657
61697
|
crates_per_layer?: number;
|
|
60658
61698
|
created_at?: string;
|
|
60659
61699
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
61700
|
+
floriday_trade_item_id?: string | null;
|
|
60660
61701
|
id?: string;
|
|
60661
61702
|
image_url?: string | null;
|
|
60662
61703
|
incoming_quantity?: number;
|
|
61704
|
+
is_layer?: boolean;
|
|
60663
61705
|
layers_per_cart?: number;
|
|
60664
61706
|
location?: string;
|
|
60665
61707
|
min_quantity?: number;
|
|
@@ -60679,6 +61721,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
60679
61721
|
profiles: {
|
|
60680
61722
|
Row: {
|
|
60681
61723
|
address: string | null;
|
|
61724
|
+
avatar_url: string | null;
|
|
60682
61725
|
created_at: string;
|
|
60683
61726
|
display_name: string | null;
|
|
60684
61727
|
email: string | null;
|
|
@@ -60690,6 +61733,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
60690
61733
|
};
|
|
60691
61734
|
Insert: {
|
|
60692
61735
|
address?: string | null;
|
|
61736
|
+
avatar_url?: string | null;
|
|
60693
61737
|
created_at?: string;
|
|
60694
61738
|
display_name?: string | null;
|
|
60695
61739
|
email?: string | null;
|
|
@@ -60701,6 +61745,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
60701
61745
|
};
|
|
60702
61746
|
Update: {
|
|
60703
61747
|
address?: string | null;
|
|
61748
|
+
avatar_url?: string | null;
|
|
60704
61749
|
created_at?: string;
|
|
60705
61750
|
display_name?: string | null;
|
|
60706
61751
|
email?: string | null;
|
|
@@ -61567,6 +62612,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
61567
62612
|
order_source: string | null;
|
|
61568
62613
|
physical_after: number | null;
|
|
61569
62614
|
physical_before: number | null;
|
|
62615
|
+
production_batch_id: string | null;
|
|
61570
62616
|
qty_delta: number;
|
|
61571
62617
|
reason: string | null;
|
|
61572
62618
|
reserved_after: number | null;
|
|
@@ -61584,6 +62630,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
61584
62630
|
order_source?: string | null;
|
|
61585
62631
|
physical_after?: number | null;
|
|
61586
62632
|
physical_before?: number | null;
|
|
62633
|
+
production_batch_id?: string | null;
|
|
61587
62634
|
qty_delta: number;
|
|
61588
62635
|
reason?: string | null;
|
|
61589
62636
|
reserved_after?: number | null;
|
|
@@ -61601,6 +62648,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
61601
62648
|
order_source?: string | null;
|
|
61602
62649
|
physical_after?: number | null;
|
|
61603
62650
|
physical_before?: number | null;
|
|
62651
|
+
production_batch_id?: string | null;
|
|
61604
62652
|
qty_delta?: number;
|
|
61605
62653
|
reason?: string | null;
|
|
61606
62654
|
reserved_after?: number | null;
|
|
@@ -64029,6 +65077,12 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
64029
65077
|
processed_items: number;
|
|
64030
65078
|
}[];
|
|
64031
65079
|
};
|
|
65080
|
+
calculate_layer_stock: {
|
|
65081
|
+
Args: {
|
|
65082
|
+
p_product_id: string;
|
|
65083
|
+
};
|
|
65084
|
+
Returns: number;
|
|
65085
|
+
};
|
|
64032
65086
|
call_exact_route: {
|
|
64033
65087
|
Args: {
|
|
64034
65088
|
path: string;
|
|
@@ -64088,6 +65142,28 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
64088
65142
|
Args: never;
|
|
64089
65143
|
Returns: undefined;
|
|
64090
65144
|
};
|
|
65145
|
+
consume_bom_for_production: {
|
|
65146
|
+
Args: {
|
|
65147
|
+
p_connection_id: string;
|
|
65148
|
+
p_parent_id: string;
|
|
65149
|
+
p_parent_key: string;
|
|
65150
|
+
p_parent_kind: string;
|
|
65151
|
+
p_quantity: number;
|
|
65152
|
+
p_user_id: string;
|
|
65153
|
+
};
|
|
65154
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65155
|
+
} | {
|
|
65156
|
+
Args: {
|
|
65157
|
+
p_batch_id?: string;
|
|
65158
|
+
p_connection_id: string;
|
|
65159
|
+
p_parent_id: string;
|
|
65160
|
+
p_parent_key: string;
|
|
65161
|
+
p_parent_kind: string;
|
|
65162
|
+
p_quantity: number;
|
|
65163
|
+
p_user_id: string;
|
|
65164
|
+
};
|
|
65165
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65166
|
+
};
|
|
64091
65167
|
consume_floriday_rate_limit: {
|
|
64092
65168
|
Args: {
|
|
64093
65169
|
p_bucket: string;
|
|
@@ -64145,6 +65221,13 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
64145
65221
|
table_name: string;
|
|
64146
65222
|
}[];
|
|
64147
65223
|
};
|
|
65224
|
+
delete_samenstelling: {
|
|
65225
|
+
Args: {
|
|
65226
|
+
p_parent_id: string;
|
|
65227
|
+
p_parent_kind: string;
|
|
65228
|
+
};
|
|
65229
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65230
|
+
};
|
|
64148
65231
|
dispatch_carrier_signups_sql: {
|
|
64149
65232
|
Args: {
|
|
64150
65233
|
_catchup?: string;
|
|
@@ -64400,6 +65483,12 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
64400
65483
|
minutes_since_success: number;
|
|
64401
65484
|
}[];
|
|
64402
65485
|
};
|
|
65486
|
+
get_inventory_stock_for_key: {
|
|
65487
|
+
Args: {
|
|
65488
|
+
p_key: string;
|
|
65489
|
+
};
|
|
65490
|
+
Returns: number;
|
|
65491
|
+
};
|
|
64403
65492
|
get_offer_by_link_code: {
|
|
64404
65493
|
Args: {
|
|
64405
65494
|
p_code: string;
|
|
@@ -64430,6 +65519,12 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
64430
65519
|
};
|
|
64431
65520
|
Returns: string;
|
|
64432
65521
|
};
|
|
65522
|
+
get_product_group_available_stock: {
|
|
65523
|
+
Args: {
|
|
65524
|
+
p_group_id: string;
|
|
65525
|
+
};
|
|
65526
|
+
Returns: number;
|
|
65527
|
+
};
|
|
64433
65528
|
get_room_busy_windows: {
|
|
64434
65529
|
Args: {
|
|
64435
65530
|
p_from: string;
|
|
@@ -64503,9 +65598,10 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
64503
65598
|
list_monteurs: {
|
|
64504
65599
|
Args: never;
|
|
64505
65600
|
Returns: {
|
|
65601
|
+
avatar_url: string;
|
|
64506
65602
|
display_name: string;
|
|
64507
65603
|
email: string;
|
|
64508
|
-
|
|
65604
|
+
id: string;
|
|
64509
65605
|
}[];
|
|
64510
65606
|
};
|
|
64511
65607
|
local_effective_price: {
|
|
@@ -64640,6 +65736,14 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
64640
65736
|
};
|
|
64641
65737
|
Returns: undefined;
|
|
64642
65738
|
};
|
|
65739
|
+
produce_designed_product: {
|
|
65740
|
+
Args: {
|
|
65741
|
+
p_parent_id: string;
|
|
65742
|
+
p_parent_kind: string;
|
|
65743
|
+
p_quantity: number;
|
|
65744
|
+
};
|
|
65745
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65746
|
+
};
|
|
64643
65747
|
promote_trade_item_key: {
|
|
64644
65748
|
Args: {
|
|
64645
65749
|
p_new: string;
|
|
@@ -64714,6 +65818,16 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
64714
65818
|
};
|
|
64715
65819
|
Returns: number;
|
|
64716
65820
|
};
|
|
65821
|
+
reverse_production: {
|
|
65822
|
+
Args: {
|
|
65823
|
+
p_connection_id?: string;
|
|
65824
|
+
p_parent_key: string;
|
|
65825
|
+
p_quantity: number;
|
|
65826
|
+
p_reason?: string;
|
|
65827
|
+
p_user_id?: string;
|
|
65828
|
+
};
|
|
65829
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65830
|
+
};
|
|
64717
65831
|
schedule_floriday_additional_services_sync: {
|
|
64718
65832
|
Args: {
|
|
64719
65833
|
p_apikey: string;
|
|
@@ -64998,18 +66112,34 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
64998
66112
|
};
|
|
64999
66113
|
Returns: string[];
|
|
65000
66114
|
};
|
|
66115
|
+
sync_all_layer_stocks: {
|
|
66116
|
+
Args: never;
|
|
66117
|
+
Returns: undefined;
|
|
66118
|
+
};
|
|
65001
66119
|
sync_cached_packing_from_product: {
|
|
65002
66120
|
Args: {
|
|
65003
66121
|
p_product_id: string;
|
|
65004
66122
|
};
|
|
65005
66123
|
Returns: undefined;
|
|
65006
66124
|
};
|
|
66125
|
+
sync_layer_stock: {
|
|
66126
|
+
Args: {
|
|
66127
|
+
p_product_id: string;
|
|
66128
|
+
};
|
|
66129
|
+
Returns: undefined;
|
|
66130
|
+
};
|
|
65007
66131
|
sync_order_cart_item_packing_from_product: {
|
|
65008
66132
|
Args: {
|
|
65009
66133
|
p_product_id: string;
|
|
65010
66134
|
};
|
|
65011
66135
|
Returns: undefined;
|
|
65012
66136
|
};
|
|
66137
|
+
sync_product_group_belading: {
|
|
66138
|
+
Args: {
|
|
66139
|
+
_group_id: string;
|
|
66140
|
+
};
|
|
66141
|
+
Returns: undefined;
|
|
66142
|
+
};
|
|
65013
66143
|
sync_product_packing_from_floriday_cache: {
|
|
65014
66144
|
Args: {
|
|
65015
66145
|
p_floriday_id: string;
|
|
@@ -65046,7 +66176,7 @@ export declare const deleteCustomerPriceGroup: import("@tanstack/start-client-co
|
|
|
65046
66176
|
exact_push_status: "pending" | "sent" | "error";
|
|
65047
66177
|
itk_customer_segment: "Business" | "Private";
|
|
65048
66178
|
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
65049
|
-
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
|
|
66179
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
65050
66180
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
65051
66181
|
};
|
|
65052
66182
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -73418,6 +74548,66 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
73418
74548
|
referencedColumns: ["id"];
|
|
73419
74549
|
}];
|
|
73420
74550
|
};
|
|
74551
|
+
product_bom_items: {
|
|
74552
|
+
Row: {
|
|
74553
|
+
component_product_id: string | null;
|
|
74554
|
+
component_trade_item_floriday_id: string | null;
|
|
74555
|
+
created_at: string;
|
|
74556
|
+
id: string;
|
|
74557
|
+
notes: string | null;
|
|
74558
|
+
packing_configuration_id: string | null;
|
|
74559
|
+
parent_product_id: string | null;
|
|
74560
|
+
parent_trade_item_floriday_id: string | null;
|
|
74561
|
+
quantity: number;
|
|
74562
|
+
sort_order: number;
|
|
74563
|
+
tenant_id: string;
|
|
74564
|
+
unit: string;
|
|
74565
|
+
updated_at: string;
|
|
74566
|
+
};
|
|
74567
|
+
Insert: {
|
|
74568
|
+
component_product_id?: string | null;
|
|
74569
|
+
component_trade_item_floriday_id?: string | null;
|
|
74570
|
+
created_at?: string;
|
|
74571
|
+
id?: string;
|
|
74572
|
+
notes?: string | null;
|
|
74573
|
+
packing_configuration_id?: string | null;
|
|
74574
|
+
parent_product_id?: string | null;
|
|
74575
|
+
parent_trade_item_floriday_id?: string | null;
|
|
74576
|
+
quantity?: number;
|
|
74577
|
+
sort_order?: number;
|
|
74578
|
+
tenant_id: string;
|
|
74579
|
+
unit?: string;
|
|
74580
|
+
updated_at?: string;
|
|
74581
|
+
};
|
|
74582
|
+
Update: {
|
|
74583
|
+
component_product_id?: string | null;
|
|
74584
|
+
component_trade_item_floriday_id?: string | null;
|
|
74585
|
+
created_at?: string;
|
|
74586
|
+
id?: string;
|
|
74587
|
+
notes?: string | null;
|
|
74588
|
+
packing_configuration_id?: string | null;
|
|
74589
|
+
parent_product_id?: string | null;
|
|
74590
|
+
parent_trade_item_floriday_id?: string | null;
|
|
74591
|
+
quantity?: number;
|
|
74592
|
+
sort_order?: number;
|
|
74593
|
+
tenant_id?: string;
|
|
74594
|
+
unit?: string;
|
|
74595
|
+
updated_at?: string;
|
|
74596
|
+
};
|
|
74597
|
+
Relationships: [{
|
|
74598
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
74599
|
+
columns: ["component_product_id"];
|
|
74600
|
+
isOneToOne: false;
|
|
74601
|
+
referencedRelation: "products";
|
|
74602
|
+
referencedColumns: ["id"];
|
|
74603
|
+
}, {
|
|
74604
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
74605
|
+
columns: ["parent_product_id"];
|
|
74606
|
+
isOneToOne: false;
|
|
74607
|
+
referencedRelation: "products";
|
|
74608
|
+
referencedColumns: ["id"];
|
|
74609
|
+
}];
|
|
74610
|
+
};
|
|
73421
74611
|
product_categories: {
|
|
73422
74612
|
Row: {
|
|
73423
74613
|
color: string;
|
|
@@ -73523,6 +74713,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
73523
74713
|
id: string;
|
|
73524
74714
|
product_group_id: string;
|
|
73525
74715
|
quantity: number;
|
|
74716
|
+
sort_order: number;
|
|
73526
74717
|
trade_item_id: string;
|
|
73527
74718
|
};
|
|
73528
74719
|
Insert: {
|
|
@@ -73530,6 +74721,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
73530
74721
|
id?: string;
|
|
73531
74722
|
product_group_id: string;
|
|
73532
74723
|
quantity?: number;
|
|
74724
|
+
sort_order?: number;
|
|
73533
74725
|
trade_item_id: string;
|
|
73534
74726
|
};
|
|
73535
74727
|
Update: {
|
|
@@ -73537,6 +74729,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
73537
74729
|
id?: string;
|
|
73538
74730
|
product_group_id?: string;
|
|
73539
74731
|
quantity?: number;
|
|
74732
|
+
sort_order?: number;
|
|
73540
74733
|
trade_item_id?: string;
|
|
73541
74734
|
};
|
|
73542
74735
|
Relationships: [{
|
|
@@ -73589,16 +74782,85 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
73589
74782
|
referencedColumns: ["id"];
|
|
73590
74783
|
}];
|
|
73591
74784
|
};
|
|
74785
|
+
product_load_settings: {
|
|
74786
|
+
Row: {
|
|
74787
|
+
created_at: string;
|
|
74788
|
+
id: string;
|
|
74789
|
+
is_package: boolean;
|
|
74790
|
+
label: string | null;
|
|
74791
|
+
layers_per_load_carrier: number | null;
|
|
74792
|
+
load_carrier: string | null;
|
|
74793
|
+
package_id: string | null;
|
|
74794
|
+
package_label: string | null;
|
|
74795
|
+
packages_per_layer: number | null;
|
|
74796
|
+
packing_configuration_id: string;
|
|
74797
|
+
product_id: string | null;
|
|
74798
|
+
tenant_id: string;
|
|
74799
|
+
trade_item_floriday_id: string | null;
|
|
74800
|
+
units_per_package: number | null;
|
|
74801
|
+
updated_at: string;
|
|
74802
|
+
};
|
|
74803
|
+
Insert: {
|
|
74804
|
+
created_at?: string;
|
|
74805
|
+
id?: string;
|
|
74806
|
+
is_package?: boolean;
|
|
74807
|
+
label?: string | null;
|
|
74808
|
+
layers_per_load_carrier?: number | null;
|
|
74809
|
+
load_carrier?: string | null;
|
|
74810
|
+
package_id?: string | null;
|
|
74811
|
+
package_label?: string | null;
|
|
74812
|
+
packages_per_layer?: number | null;
|
|
74813
|
+
packing_configuration_id?: string;
|
|
74814
|
+
product_id?: string | null;
|
|
74815
|
+
tenant_id: string;
|
|
74816
|
+
trade_item_floriday_id?: string | null;
|
|
74817
|
+
units_per_package?: number | null;
|
|
74818
|
+
updated_at?: string;
|
|
74819
|
+
};
|
|
74820
|
+
Update: {
|
|
74821
|
+
created_at?: string;
|
|
74822
|
+
id?: string;
|
|
74823
|
+
is_package?: boolean;
|
|
74824
|
+
label?: string | null;
|
|
74825
|
+
layers_per_load_carrier?: number | null;
|
|
74826
|
+
load_carrier?: string | null;
|
|
74827
|
+
package_id?: string | null;
|
|
74828
|
+
package_label?: string | null;
|
|
74829
|
+
packages_per_layer?: number | null;
|
|
74830
|
+
packing_configuration_id?: string;
|
|
74831
|
+
product_id?: string | null;
|
|
74832
|
+
tenant_id?: string;
|
|
74833
|
+
trade_item_floriday_id?: string | null;
|
|
74834
|
+
units_per_package?: number | null;
|
|
74835
|
+
updated_at?: string;
|
|
74836
|
+
};
|
|
74837
|
+
Relationships: [{
|
|
74838
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
74839
|
+
columns: ["package_id"];
|
|
74840
|
+
isOneToOne: false;
|
|
74841
|
+
referencedRelation: "packages";
|
|
74842
|
+
referencedColumns: ["id"];
|
|
74843
|
+
}, {
|
|
74844
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
74845
|
+
columns: ["product_id"];
|
|
74846
|
+
isOneToOne: false;
|
|
74847
|
+
referencedRelation: "products";
|
|
74848
|
+
referencedColumns: ["id"];
|
|
74849
|
+
}];
|
|
74850
|
+
};
|
|
73592
74851
|
products: {
|
|
73593
74852
|
Row: {
|
|
74853
|
+
article_number: string | null;
|
|
73594
74854
|
barcode: string | null;
|
|
73595
74855
|
batch: string;
|
|
73596
74856
|
crates_per_layer: number;
|
|
73597
74857
|
created_at: string;
|
|
73598
74858
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
74859
|
+
floriday_trade_item_id: string | null;
|
|
73599
74860
|
id: string;
|
|
73600
74861
|
image_url: string | null;
|
|
73601
74862
|
incoming_quantity: number;
|
|
74863
|
+
is_layer: boolean;
|
|
73602
74864
|
layers_per_cart: number;
|
|
73603
74865
|
location: string;
|
|
73604
74866
|
min_quantity: number;
|
|
@@ -73614,14 +74876,17 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
73614
74876
|
weight: string | null;
|
|
73615
74877
|
};
|
|
73616
74878
|
Insert: {
|
|
74879
|
+
article_number?: string | null;
|
|
73617
74880
|
barcode?: string | null;
|
|
73618
74881
|
batch: string;
|
|
73619
74882
|
crates_per_layer?: number;
|
|
73620
74883
|
created_at?: string;
|
|
73621
74884
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
74885
|
+
floriday_trade_item_id?: string | null;
|
|
73622
74886
|
id?: string;
|
|
73623
74887
|
image_url?: string | null;
|
|
73624
74888
|
incoming_quantity?: number;
|
|
74889
|
+
is_layer?: boolean;
|
|
73625
74890
|
layers_per_cart?: number;
|
|
73626
74891
|
location: string;
|
|
73627
74892
|
min_quantity?: number;
|
|
@@ -73637,14 +74902,17 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
73637
74902
|
weight?: string | null;
|
|
73638
74903
|
};
|
|
73639
74904
|
Update: {
|
|
74905
|
+
article_number?: string | null;
|
|
73640
74906
|
barcode?: string | null;
|
|
73641
74907
|
batch?: string;
|
|
73642
74908
|
crates_per_layer?: number;
|
|
73643
74909
|
created_at?: string;
|
|
73644
74910
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
74911
|
+
floriday_trade_item_id?: string | null;
|
|
73645
74912
|
id?: string;
|
|
73646
74913
|
image_url?: string | null;
|
|
73647
74914
|
incoming_quantity?: number;
|
|
74915
|
+
is_layer?: boolean;
|
|
73648
74916
|
layers_per_cart?: number;
|
|
73649
74917
|
location?: string;
|
|
73650
74918
|
min_quantity?: number;
|
|
@@ -73664,6 +74932,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
73664
74932
|
profiles: {
|
|
73665
74933
|
Row: {
|
|
73666
74934
|
address: string | null;
|
|
74935
|
+
avatar_url: string | null;
|
|
73667
74936
|
created_at: string;
|
|
73668
74937
|
display_name: string | null;
|
|
73669
74938
|
email: string | null;
|
|
@@ -73675,6 +74944,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
73675
74944
|
};
|
|
73676
74945
|
Insert: {
|
|
73677
74946
|
address?: string | null;
|
|
74947
|
+
avatar_url?: string | null;
|
|
73678
74948
|
created_at?: string;
|
|
73679
74949
|
display_name?: string | null;
|
|
73680
74950
|
email?: string | null;
|
|
@@ -73686,6 +74956,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
73686
74956
|
};
|
|
73687
74957
|
Update: {
|
|
73688
74958
|
address?: string | null;
|
|
74959
|
+
avatar_url?: string | null;
|
|
73689
74960
|
created_at?: string;
|
|
73690
74961
|
display_name?: string | null;
|
|
73691
74962
|
email?: string | null;
|
|
@@ -74552,6 +75823,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
74552
75823
|
order_source: string | null;
|
|
74553
75824
|
physical_after: number | null;
|
|
74554
75825
|
physical_before: number | null;
|
|
75826
|
+
production_batch_id: string | null;
|
|
74555
75827
|
qty_delta: number;
|
|
74556
75828
|
reason: string | null;
|
|
74557
75829
|
reserved_after: number | null;
|
|
@@ -74569,6 +75841,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
74569
75841
|
order_source?: string | null;
|
|
74570
75842
|
physical_after?: number | null;
|
|
74571
75843
|
physical_before?: number | null;
|
|
75844
|
+
production_batch_id?: string | null;
|
|
74572
75845
|
qty_delta: number;
|
|
74573
75846
|
reason?: string | null;
|
|
74574
75847
|
reserved_after?: number | null;
|
|
@@ -74586,6 +75859,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
74586
75859
|
order_source?: string | null;
|
|
74587
75860
|
physical_after?: number | null;
|
|
74588
75861
|
physical_before?: number | null;
|
|
75862
|
+
production_batch_id?: string | null;
|
|
74589
75863
|
qty_delta?: number;
|
|
74590
75864
|
reason?: string | null;
|
|
74591
75865
|
reserved_after?: number | null;
|
|
@@ -77014,6 +78288,12 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
77014
78288
|
processed_items: number;
|
|
77015
78289
|
}[];
|
|
77016
78290
|
};
|
|
78291
|
+
calculate_layer_stock: {
|
|
78292
|
+
Args: {
|
|
78293
|
+
p_product_id: string;
|
|
78294
|
+
};
|
|
78295
|
+
Returns: number;
|
|
78296
|
+
};
|
|
77017
78297
|
call_exact_route: {
|
|
77018
78298
|
Args: {
|
|
77019
78299
|
path: string;
|
|
@@ -77073,6 +78353,28 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
77073
78353
|
Args: never;
|
|
77074
78354
|
Returns: undefined;
|
|
77075
78355
|
};
|
|
78356
|
+
consume_bom_for_production: {
|
|
78357
|
+
Args: {
|
|
78358
|
+
p_connection_id: string;
|
|
78359
|
+
p_parent_id: string;
|
|
78360
|
+
p_parent_key: string;
|
|
78361
|
+
p_parent_kind: string;
|
|
78362
|
+
p_quantity: number;
|
|
78363
|
+
p_user_id: string;
|
|
78364
|
+
};
|
|
78365
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
78366
|
+
} | {
|
|
78367
|
+
Args: {
|
|
78368
|
+
p_batch_id?: string;
|
|
78369
|
+
p_connection_id: string;
|
|
78370
|
+
p_parent_id: string;
|
|
78371
|
+
p_parent_key: string;
|
|
78372
|
+
p_parent_kind: string;
|
|
78373
|
+
p_quantity: number;
|
|
78374
|
+
p_user_id: string;
|
|
78375
|
+
};
|
|
78376
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
78377
|
+
};
|
|
77076
78378
|
consume_floriday_rate_limit: {
|
|
77077
78379
|
Args: {
|
|
77078
78380
|
p_bucket: string;
|
|
@@ -77130,6 +78432,13 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
77130
78432
|
table_name: string;
|
|
77131
78433
|
}[];
|
|
77132
78434
|
};
|
|
78435
|
+
delete_samenstelling: {
|
|
78436
|
+
Args: {
|
|
78437
|
+
p_parent_id: string;
|
|
78438
|
+
p_parent_kind: string;
|
|
78439
|
+
};
|
|
78440
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
78441
|
+
};
|
|
77133
78442
|
dispatch_carrier_signups_sql: {
|
|
77134
78443
|
Args: {
|
|
77135
78444
|
_catchup?: string;
|
|
@@ -77385,6 +78694,12 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
77385
78694
|
minutes_since_success: number;
|
|
77386
78695
|
}[];
|
|
77387
78696
|
};
|
|
78697
|
+
get_inventory_stock_for_key: {
|
|
78698
|
+
Args: {
|
|
78699
|
+
p_key: string;
|
|
78700
|
+
};
|
|
78701
|
+
Returns: number;
|
|
78702
|
+
};
|
|
77388
78703
|
get_offer_by_link_code: {
|
|
77389
78704
|
Args: {
|
|
77390
78705
|
p_code: string;
|
|
@@ -77415,6 +78730,12 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
77415
78730
|
};
|
|
77416
78731
|
Returns: string;
|
|
77417
78732
|
};
|
|
78733
|
+
get_product_group_available_stock: {
|
|
78734
|
+
Args: {
|
|
78735
|
+
p_group_id: string;
|
|
78736
|
+
};
|
|
78737
|
+
Returns: number;
|
|
78738
|
+
};
|
|
77418
78739
|
get_room_busy_windows: {
|
|
77419
78740
|
Args: {
|
|
77420
78741
|
p_from: string;
|
|
@@ -77488,9 +78809,10 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
77488
78809
|
list_monteurs: {
|
|
77489
78810
|
Args: never;
|
|
77490
78811
|
Returns: {
|
|
78812
|
+
avatar_url: string;
|
|
77491
78813
|
display_name: string;
|
|
77492
78814
|
email: string;
|
|
77493
|
-
|
|
78815
|
+
id: string;
|
|
77494
78816
|
}[];
|
|
77495
78817
|
};
|
|
77496
78818
|
local_effective_price: {
|
|
@@ -77625,6 +78947,14 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
77625
78947
|
};
|
|
77626
78948
|
Returns: undefined;
|
|
77627
78949
|
};
|
|
78950
|
+
produce_designed_product: {
|
|
78951
|
+
Args: {
|
|
78952
|
+
p_parent_id: string;
|
|
78953
|
+
p_parent_kind: string;
|
|
78954
|
+
p_quantity: number;
|
|
78955
|
+
};
|
|
78956
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
78957
|
+
};
|
|
77628
78958
|
promote_trade_item_key: {
|
|
77629
78959
|
Args: {
|
|
77630
78960
|
p_new: string;
|
|
@@ -77699,6 +79029,16 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
77699
79029
|
};
|
|
77700
79030
|
Returns: number;
|
|
77701
79031
|
};
|
|
79032
|
+
reverse_production: {
|
|
79033
|
+
Args: {
|
|
79034
|
+
p_connection_id?: string;
|
|
79035
|
+
p_parent_key: string;
|
|
79036
|
+
p_quantity: number;
|
|
79037
|
+
p_reason?: string;
|
|
79038
|
+
p_user_id?: string;
|
|
79039
|
+
};
|
|
79040
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
79041
|
+
};
|
|
77702
79042
|
schedule_floriday_additional_services_sync: {
|
|
77703
79043
|
Args: {
|
|
77704
79044
|
p_apikey: string;
|
|
@@ -77983,18 +79323,34 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
77983
79323
|
};
|
|
77984
79324
|
Returns: string[];
|
|
77985
79325
|
};
|
|
79326
|
+
sync_all_layer_stocks: {
|
|
79327
|
+
Args: never;
|
|
79328
|
+
Returns: undefined;
|
|
79329
|
+
};
|
|
77986
79330
|
sync_cached_packing_from_product: {
|
|
77987
79331
|
Args: {
|
|
77988
79332
|
p_product_id: string;
|
|
77989
79333
|
};
|
|
77990
79334
|
Returns: undefined;
|
|
77991
79335
|
};
|
|
79336
|
+
sync_layer_stock: {
|
|
79337
|
+
Args: {
|
|
79338
|
+
p_product_id: string;
|
|
79339
|
+
};
|
|
79340
|
+
Returns: undefined;
|
|
79341
|
+
};
|
|
77992
79342
|
sync_order_cart_item_packing_from_product: {
|
|
77993
79343
|
Args: {
|
|
77994
79344
|
p_product_id: string;
|
|
77995
79345
|
};
|
|
77996
79346
|
Returns: undefined;
|
|
77997
79347
|
};
|
|
79348
|
+
sync_product_group_belading: {
|
|
79349
|
+
Args: {
|
|
79350
|
+
_group_id: string;
|
|
79351
|
+
};
|
|
79352
|
+
Returns: undefined;
|
|
79353
|
+
};
|
|
77998
79354
|
sync_product_packing_from_floriday_cache: {
|
|
77999
79355
|
Args: {
|
|
78000
79356
|
p_floriday_id: string;
|
|
@@ -78031,7 +79387,7 @@ export declare const reorderCustomerPriceGroups: import("@tanstack/start-client-
|
|
|
78031
79387
|
exact_push_status: "pending" | "sent" | "error";
|
|
78032
79388
|
itk_customer_segment: "Business" | "Private";
|
|
78033
79389
|
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
78034
|
-
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
|
|
79390
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
78035
79391
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
78036
79392
|
};
|
|
78037
79393
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -86403,6 +87759,66 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
86403
87759
|
referencedColumns: ["id"];
|
|
86404
87760
|
}];
|
|
86405
87761
|
};
|
|
87762
|
+
product_bom_items: {
|
|
87763
|
+
Row: {
|
|
87764
|
+
component_product_id: string | null;
|
|
87765
|
+
component_trade_item_floriday_id: string | null;
|
|
87766
|
+
created_at: string;
|
|
87767
|
+
id: string;
|
|
87768
|
+
notes: string | null;
|
|
87769
|
+
packing_configuration_id: string | null;
|
|
87770
|
+
parent_product_id: string | null;
|
|
87771
|
+
parent_trade_item_floriday_id: string | null;
|
|
87772
|
+
quantity: number;
|
|
87773
|
+
sort_order: number;
|
|
87774
|
+
tenant_id: string;
|
|
87775
|
+
unit: string;
|
|
87776
|
+
updated_at: string;
|
|
87777
|
+
};
|
|
87778
|
+
Insert: {
|
|
87779
|
+
component_product_id?: string | null;
|
|
87780
|
+
component_trade_item_floriday_id?: string | null;
|
|
87781
|
+
created_at?: string;
|
|
87782
|
+
id?: string;
|
|
87783
|
+
notes?: string | null;
|
|
87784
|
+
packing_configuration_id?: string | null;
|
|
87785
|
+
parent_product_id?: string | null;
|
|
87786
|
+
parent_trade_item_floriday_id?: string | null;
|
|
87787
|
+
quantity?: number;
|
|
87788
|
+
sort_order?: number;
|
|
87789
|
+
tenant_id: string;
|
|
87790
|
+
unit?: string;
|
|
87791
|
+
updated_at?: string;
|
|
87792
|
+
};
|
|
87793
|
+
Update: {
|
|
87794
|
+
component_product_id?: string | null;
|
|
87795
|
+
component_trade_item_floriday_id?: string | null;
|
|
87796
|
+
created_at?: string;
|
|
87797
|
+
id?: string;
|
|
87798
|
+
notes?: string | null;
|
|
87799
|
+
packing_configuration_id?: string | null;
|
|
87800
|
+
parent_product_id?: string | null;
|
|
87801
|
+
parent_trade_item_floriday_id?: string | null;
|
|
87802
|
+
quantity?: number;
|
|
87803
|
+
sort_order?: number;
|
|
87804
|
+
tenant_id?: string;
|
|
87805
|
+
unit?: string;
|
|
87806
|
+
updated_at?: string;
|
|
87807
|
+
};
|
|
87808
|
+
Relationships: [{
|
|
87809
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
87810
|
+
columns: ["component_product_id"];
|
|
87811
|
+
isOneToOne: false;
|
|
87812
|
+
referencedRelation: "products";
|
|
87813
|
+
referencedColumns: ["id"];
|
|
87814
|
+
}, {
|
|
87815
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
87816
|
+
columns: ["parent_product_id"];
|
|
87817
|
+
isOneToOne: false;
|
|
87818
|
+
referencedRelation: "products";
|
|
87819
|
+
referencedColumns: ["id"];
|
|
87820
|
+
}];
|
|
87821
|
+
};
|
|
86406
87822
|
product_categories: {
|
|
86407
87823
|
Row: {
|
|
86408
87824
|
color: string;
|
|
@@ -86508,6 +87924,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
86508
87924
|
id: string;
|
|
86509
87925
|
product_group_id: string;
|
|
86510
87926
|
quantity: number;
|
|
87927
|
+
sort_order: number;
|
|
86511
87928
|
trade_item_id: string;
|
|
86512
87929
|
};
|
|
86513
87930
|
Insert: {
|
|
@@ -86515,6 +87932,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
86515
87932
|
id?: string;
|
|
86516
87933
|
product_group_id: string;
|
|
86517
87934
|
quantity?: number;
|
|
87935
|
+
sort_order?: number;
|
|
86518
87936
|
trade_item_id: string;
|
|
86519
87937
|
};
|
|
86520
87938
|
Update: {
|
|
@@ -86522,6 +87940,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
86522
87940
|
id?: string;
|
|
86523
87941
|
product_group_id?: string;
|
|
86524
87942
|
quantity?: number;
|
|
87943
|
+
sort_order?: number;
|
|
86525
87944
|
trade_item_id?: string;
|
|
86526
87945
|
};
|
|
86527
87946
|
Relationships: [{
|
|
@@ -86574,16 +87993,85 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
86574
87993
|
referencedColumns: ["id"];
|
|
86575
87994
|
}];
|
|
86576
87995
|
};
|
|
87996
|
+
product_load_settings: {
|
|
87997
|
+
Row: {
|
|
87998
|
+
created_at: string;
|
|
87999
|
+
id: string;
|
|
88000
|
+
is_package: boolean;
|
|
88001
|
+
label: string | null;
|
|
88002
|
+
layers_per_load_carrier: number | null;
|
|
88003
|
+
load_carrier: string | null;
|
|
88004
|
+
package_id: string | null;
|
|
88005
|
+
package_label: string | null;
|
|
88006
|
+
packages_per_layer: number | null;
|
|
88007
|
+
packing_configuration_id: string;
|
|
88008
|
+
product_id: string | null;
|
|
88009
|
+
tenant_id: string;
|
|
88010
|
+
trade_item_floriday_id: string | null;
|
|
88011
|
+
units_per_package: number | null;
|
|
88012
|
+
updated_at: string;
|
|
88013
|
+
};
|
|
88014
|
+
Insert: {
|
|
88015
|
+
created_at?: string;
|
|
88016
|
+
id?: string;
|
|
88017
|
+
is_package?: boolean;
|
|
88018
|
+
label?: string | null;
|
|
88019
|
+
layers_per_load_carrier?: number | null;
|
|
88020
|
+
load_carrier?: string | null;
|
|
88021
|
+
package_id?: string | null;
|
|
88022
|
+
package_label?: string | null;
|
|
88023
|
+
packages_per_layer?: number | null;
|
|
88024
|
+
packing_configuration_id?: string;
|
|
88025
|
+
product_id?: string | null;
|
|
88026
|
+
tenant_id: string;
|
|
88027
|
+
trade_item_floriday_id?: string | null;
|
|
88028
|
+
units_per_package?: number | null;
|
|
88029
|
+
updated_at?: string;
|
|
88030
|
+
};
|
|
88031
|
+
Update: {
|
|
88032
|
+
created_at?: string;
|
|
88033
|
+
id?: string;
|
|
88034
|
+
is_package?: boolean;
|
|
88035
|
+
label?: string | null;
|
|
88036
|
+
layers_per_load_carrier?: number | null;
|
|
88037
|
+
load_carrier?: string | null;
|
|
88038
|
+
package_id?: string | null;
|
|
88039
|
+
package_label?: string | null;
|
|
88040
|
+
packages_per_layer?: number | null;
|
|
88041
|
+
packing_configuration_id?: string;
|
|
88042
|
+
product_id?: string | null;
|
|
88043
|
+
tenant_id?: string;
|
|
88044
|
+
trade_item_floriday_id?: string | null;
|
|
88045
|
+
units_per_package?: number | null;
|
|
88046
|
+
updated_at?: string;
|
|
88047
|
+
};
|
|
88048
|
+
Relationships: [{
|
|
88049
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
88050
|
+
columns: ["package_id"];
|
|
88051
|
+
isOneToOne: false;
|
|
88052
|
+
referencedRelation: "packages";
|
|
88053
|
+
referencedColumns: ["id"];
|
|
88054
|
+
}, {
|
|
88055
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
88056
|
+
columns: ["product_id"];
|
|
88057
|
+
isOneToOne: false;
|
|
88058
|
+
referencedRelation: "products";
|
|
88059
|
+
referencedColumns: ["id"];
|
|
88060
|
+
}];
|
|
88061
|
+
};
|
|
86577
88062
|
products: {
|
|
86578
88063
|
Row: {
|
|
88064
|
+
article_number: string | null;
|
|
86579
88065
|
barcode: string | null;
|
|
86580
88066
|
batch: string;
|
|
86581
88067
|
crates_per_layer: number;
|
|
86582
88068
|
created_at: string;
|
|
86583
88069
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
88070
|
+
floriday_trade_item_id: string | null;
|
|
86584
88071
|
id: string;
|
|
86585
88072
|
image_url: string | null;
|
|
86586
88073
|
incoming_quantity: number;
|
|
88074
|
+
is_layer: boolean;
|
|
86587
88075
|
layers_per_cart: number;
|
|
86588
88076
|
location: string;
|
|
86589
88077
|
min_quantity: number;
|
|
@@ -86599,14 +88087,17 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
86599
88087
|
weight: string | null;
|
|
86600
88088
|
};
|
|
86601
88089
|
Insert: {
|
|
88090
|
+
article_number?: string | null;
|
|
86602
88091
|
barcode?: string | null;
|
|
86603
88092
|
batch: string;
|
|
86604
88093
|
crates_per_layer?: number;
|
|
86605
88094
|
created_at?: string;
|
|
86606
88095
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
88096
|
+
floriday_trade_item_id?: string | null;
|
|
86607
88097
|
id?: string;
|
|
86608
88098
|
image_url?: string | null;
|
|
86609
88099
|
incoming_quantity?: number;
|
|
88100
|
+
is_layer?: boolean;
|
|
86610
88101
|
layers_per_cart?: number;
|
|
86611
88102
|
location: string;
|
|
86612
88103
|
min_quantity?: number;
|
|
@@ -86622,14 +88113,17 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
86622
88113
|
weight?: string | null;
|
|
86623
88114
|
};
|
|
86624
88115
|
Update: {
|
|
88116
|
+
article_number?: string | null;
|
|
86625
88117
|
barcode?: string | null;
|
|
86626
88118
|
batch?: string;
|
|
86627
88119
|
crates_per_layer?: number;
|
|
86628
88120
|
created_at?: string;
|
|
86629
88121
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
88122
|
+
floriday_trade_item_id?: string | null;
|
|
86630
88123
|
id?: string;
|
|
86631
88124
|
image_url?: string | null;
|
|
86632
88125
|
incoming_quantity?: number;
|
|
88126
|
+
is_layer?: boolean;
|
|
86633
88127
|
layers_per_cart?: number;
|
|
86634
88128
|
location?: string;
|
|
86635
88129
|
min_quantity?: number;
|
|
@@ -86649,6 +88143,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
86649
88143
|
profiles: {
|
|
86650
88144
|
Row: {
|
|
86651
88145
|
address: string | null;
|
|
88146
|
+
avatar_url: string | null;
|
|
86652
88147
|
created_at: string;
|
|
86653
88148
|
display_name: string | null;
|
|
86654
88149
|
email: string | null;
|
|
@@ -86660,6 +88155,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
86660
88155
|
};
|
|
86661
88156
|
Insert: {
|
|
86662
88157
|
address?: string | null;
|
|
88158
|
+
avatar_url?: string | null;
|
|
86663
88159
|
created_at?: string;
|
|
86664
88160
|
display_name?: string | null;
|
|
86665
88161
|
email?: string | null;
|
|
@@ -86671,6 +88167,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
86671
88167
|
};
|
|
86672
88168
|
Update: {
|
|
86673
88169
|
address?: string | null;
|
|
88170
|
+
avatar_url?: string | null;
|
|
86674
88171
|
created_at?: string;
|
|
86675
88172
|
display_name?: string | null;
|
|
86676
88173
|
email?: string | null;
|
|
@@ -87537,6 +89034,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
87537
89034
|
order_source: string | null;
|
|
87538
89035
|
physical_after: number | null;
|
|
87539
89036
|
physical_before: number | null;
|
|
89037
|
+
production_batch_id: string | null;
|
|
87540
89038
|
qty_delta: number;
|
|
87541
89039
|
reason: string | null;
|
|
87542
89040
|
reserved_after: number | null;
|
|
@@ -87554,6 +89052,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
87554
89052
|
order_source?: string | null;
|
|
87555
89053
|
physical_after?: number | null;
|
|
87556
89054
|
physical_before?: number | null;
|
|
89055
|
+
production_batch_id?: string | null;
|
|
87557
89056
|
qty_delta: number;
|
|
87558
89057
|
reason?: string | null;
|
|
87559
89058
|
reserved_after?: number | null;
|
|
@@ -87571,6 +89070,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
87571
89070
|
order_source?: string | null;
|
|
87572
89071
|
physical_after?: number | null;
|
|
87573
89072
|
physical_before?: number | null;
|
|
89073
|
+
production_batch_id?: string | null;
|
|
87574
89074
|
qty_delta?: number;
|
|
87575
89075
|
reason?: string | null;
|
|
87576
89076
|
reserved_after?: number | null;
|
|
@@ -89999,6 +91499,12 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
89999
91499
|
processed_items: number;
|
|
90000
91500
|
}[];
|
|
90001
91501
|
};
|
|
91502
|
+
calculate_layer_stock: {
|
|
91503
|
+
Args: {
|
|
91504
|
+
p_product_id: string;
|
|
91505
|
+
};
|
|
91506
|
+
Returns: number;
|
|
91507
|
+
};
|
|
90002
91508
|
call_exact_route: {
|
|
90003
91509
|
Args: {
|
|
90004
91510
|
path: string;
|
|
@@ -90058,6 +91564,28 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
90058
91564
|
Args: never;
|
|
90059
91565
|
Returns: undefined;
|
|
90060
91566
|
};
|
|
91567
|
+
consume_bom_for_production: {
|
|
91568
|
+
Args: {
|
|
91569
|
+
p_connection_id: string;
|
|
91570
|
+
p_parent_id: string;
|
|
91571
|
+
p_parent_key: string;
|
|
91572
|
+
p_parent_kind: string;
|
|
91573
|
+
p_quantity: number;
|
|
91574
|
+
p_user_id: string;
|
|
91575
|
+
};
|
|
91576
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
91577
|
+
} | {
|
|
91578
|
+
Args: {
|
|
91579
|
+
p_batch_id?: string;
|
|
91580
|
+
p_connection_id: string;
|
|
91581
|
+
p_parent_id: string;
|
|
91582
|
+
p_parent_key: string;
|
|
91583
|
+
p_parent_kind: string;
|
|
91584
|
+
p_quantity: number;
|
|
91585
|
+
p_user_id: string;
|
|
91586
|
+
};
|
|
91587
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
91588
|
+
};
|
|
90061
91589
|
consume_floriday_rate_limit: {
|
|
90062
91590
|
Args: {
|
|
90063
91591
|
p_bucket: string;
|
|
@@ -90115,6 +91643,13 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
90115
91643
|
table_name: string;
|
|
90116
91644
|
}[];
|
|
90117
91645
|
};
|
|
91646
|
+
delete_samenstelling: {
|
|
91647
|
+
Args: {
|
|
91648
|
+
p_parent_id: string;
|
|
91649
|
+
p_parent_kind: string;
|
|
91650
|
+
};
|
|
91651
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
91652
|
+
};
|
|
90118
91653
|
dispatch_carrier_signups_sql: {
|
|
90119
91654
|
Args: {
|
|
90120
91655
|
_catchup?: string;
|
|
@@ -90370,6 +91905,12 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
90370
91905
|
minutes_since_success: number;
|
|
90371
91906
|
}[];
|
|
90372
91907
|
};
|
|
91908
|
+
get_inventory_stock_for_key: {
|
|
91909
|
+
Args: {
|
|
91910
|
+
p_key: string;
|
|
91911
|
+
};
|
|
91912
|
+
Returns: number;
|
|
91913
|
+
};
|
|
90373
91914
|
get_offer_by_link_code: {
|
|
90374
91915
|
Args: {
|
|
90375
91916
|
p_code: string;
|
|
@@ -90400,6 +91941,12 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
90400
91941
|
};
|
|
90401
91942
|
Returns: string;
|
|
90402
91943
|
};
|
|
91944
|
+
get_product_group_available_stock: {
|
|
91945
|
+
Args: {
|
|
91946
|
+
p_group_id: string;
|
|
91947
|
+
};
|
|
91948
|
+
Returns: number;
|
|
91949
|
+
};
|
|
90403
91950
|
get_room_busy_windows: {
|
|
90404
91951
|
Args: {
|
|
90405
91952
|
p_from: string;
|
|
@@ -90473,9 +92020,10 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
90473
92020
|
list_monteurs: {
|
|
90474
92021
|
Args: never;
|
|
90475
92022
|
Returns: {
|
|
92023
|
+
avatar_url: string;
|
|
90476
92024
|
display_name: string;
|
|
90477
92025
|
email: string;
|
|
90478
|
-
|
|
92026
|
+
id: string;
|
|
90479
92027
|
}[];
|
|
90480
92028
|
};
|
|
90481
92029
|
local_effective_price: {
|
|
@@ -90610,6 +92158,14 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
90610
92158
|
};
|
|
90611
92159
|
Returns: undefined;
|
|
90612
92160
|
};
|
|
92161
|
+
produce_designed_product: {
|
|
92162
|
+
Args: {
|
|
92163
|
+
p_parent_id: string;
|
|
92164
|
+
p_parent_kind: string;
|
|
92165
|
+
p_quantity: number;
|
|
92166
|
+
};
|
|
92167
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
92168
|
+
};
|
|
90613
92169
|
promote_trade_item_key: {
|
|
90614
92170
|
Args: {
|
|
90615
92171
|
p_new: string;
|
|
@@ -90684,6 +92240,16 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
90684
92240
|
};
|
|
90685
92241
|
Returns: number;
|
|
90686
92242
|
};
|
|
92243
|
+
reverse_production: {
|
|
92244
|
+
Args: {
|
|
92245
|
+
p_connection_id?: string;
|
|
92246
|
+
p_parent_key: string;
|
|
92247
|
+
p_quantity: number;
|
|
92248
|
+
p_reason?: string;
|
|
92249
|
+
p_user_id?: string;
|
|
92250
|
+
};
|
|
92251
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
92252
|
+
};
|
|
90687
92253
|
schedule_floriday_additional_services_sync: {
|
|
90688
92254
|
Args: {
|
|
90689
92255
|
p_apikey: string;
|
|
@@ -90968,18 +92534,34 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
90968
92534
|
};
|
|
90969
92535
|
Returns: string[];
|
|
90970
92536
|
};
|
|
92537
|
+
sync_all_layer_stocks: {
|
|
92538
|
+
Args: never;
|
|
92539
|
+
Returns: undefined;
|
|
92540
|
+
};
|
|
90971
92541
|
sync_cached_packing_from_product: {
|
|
90972
92542
|
Args: {
|
|
90973
92543
|
p_product_id: string;
|
|
90974
92544
|
};
|
|
90975
92545
|
Returns: undefined;
|
|
90976
92546
|
};
|
|
92547
|
+
sync_layer_stock: {
|
|
92548
|
+
Args: {
|
|
92549
|
+
p_product_id: string;
|
|
92550
|
+
};
|
|
92551
|
+
Returns: undefined;
|
|
92552
|
+
};
|
|
90977
92553
|
sync_order_cart_item_packing_from_product: {
|
|
90978
92554
|
Args: {
|
|
90979
92555
|
p_product_id: string;
|
|
90980
92556
|
};
|
|
90981
92557
|
Returns: undefined;
|
|
90982
92558
|
};
|
|
92559
|
+
sync_product_group_belading: {
|
|
92560
|
+
Args: {
|
|
92561
|
+
_group_id: string;
|
|
92562
|
+
};
|
|
92563
|
+
Returns: undefined;
|
|
92564
|
+
};
|
|
90983
92565
|
sync_product_packing_from_floriday_cache: {
|
|
90984
92566
|
Args: {
|
|
90985
92567
|
p_floriday_id: string;
|
|
@@ -91016,7 +92598,7 @@ export declare const setPriceGroupMembers: import("@tanstack/start-client-core")
|
|
|
91016
92598
|
exact_push_status: "pending" | "sent" | "error";
|
|
91017
92599
|
itk_customer_segment: "Business" | "Private";
|
|
91018
92600
|
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
91019
|
-
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd";
|
|
92601
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
91020
92602
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
91021
92603
|
};
|
|
91022
92604
|
CompositeTypes: { [_ in never]: never; };
|