@flowselections/floriday-verkoop-module 1.0.17 → 1.0.18
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/verkoop/CreateOrderPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/CreateOrderPage.js +6 -4
- package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +6 -0
- package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -0
- package/dist-lib/components/verkoop/EditLocalOrderDialog.js +102 -0
- package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderKarindelingCard.js +26 -28
- package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +5 -0
- package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -0
- package/dist-lib/components/verkoop/OrderShipmentsCard.js +137 -0
- package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailPage.js +8 -2
- package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailView.js +2 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +4 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +2 -2
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.js +43 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +381 -150
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +381 -150
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +381 -150
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +397 -154
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/cart-lock.functions.d.ts +381 -150
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +789 -327
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.d.ts +38897 -1457
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +792 -52
- package/dist-lib/lib/expand-group-order-items.d.ts +13 -0
- package/dist-lib/lib/expand-group-order-items.d.ts.map +1 -0
- package/dist-lib/lib/expand-group-order-items.js +216 -0
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1174 -481
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +381 -150
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +2701 -1084
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +1939 -784
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +47158 -0
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -0
- package/dist-lib/lib/order-shipments.functions.js +178 -0
- package/dist-lib/lib/salesorders-mapping.d.ts +1 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.d.ts +1174 -481
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +381 -150
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.js +39 -2
- package/package.json +2 -2
|
@@ -3490,109 +3490,6 @@ export type Database = {
|
|
|
3490
3490
|
}
|
|
3491
3491
|
];
|
|
3492
3492
|
};
|
|
3493
|
-
floriday_agreement_calloffs_cache: {
|
|
3494
|
-
Row: {
|
|
3495
|
-
agreement_id: string | null;
|
|
3496
|
-
connection_id: string;
|
|
3497
|
-
data: Json;
|
|
3498
|
-
delivery_date: string | null;
|
|
3499
|
-
fetched_at: string;
|
|
3500
|
-
floriday_id: string;
|
|
3501
|
-
id: string;
|
|
3502
|
-
is_deleted: boolean;
|
|
3503
|
-
sequence_number: number;
|
|
3504
|
-
status: string | null;
|
|
3505
|
-
updated_at: string;
|
|
3506
|
-
};
|
|
3507
|
-
Insert: {
|
|
3508
|
-
agreement_id?: string | null;
|
|
3509
|
-
connection_id: string;
|
|
3510
|
-
data?: Json;
|
|
3511
|
-
delivery_date?: string | null;
|
|
3512
|
-
fetched_at?: string;
|
|
3513
|
-
floriday_id: string;
|
|
3514
|
-
id?: string;
|
|
3515
|
-
is_deleted?: boolean;
|
|
3516
|
-
sequence_number?: number;
|
|
3517
|
-
status?: string | null;
|
|
3518
|
-
updated_at?: string;
|
|
3519
|
-
};
|
|
3520
|
-
Update: {
|
|
3521
|
-
agreement_id?: string | null;
|
|
3522
|
-
connection_id?: string;
|
|
3523
|
-
data?: Json;
|
|
3524
|
-
delivery_date?: string | null;
|
|
3525
|
-
fetched_at?: string;
|
|
3526
|
-
floriday_id?: string;
|
|
3527
|
-
id?: string;
|
|
3528
|
-
is_deleted?: boolean;
|
|
3529
|
-
sequence_number?: number;
|
|
3530
|
-
status?: string | null;
|
|
3531
|
-
updated_at?: string;
|
|
3532
|
-
};
|
|
3533
|
-
Relationships: [
|
|
3534
|
-
{
|
|
3535
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
3536
|
-
columns: ["connection_id"];
|
|
3537
|
-
isOneToOne: false;
|
|
3538
|
-
referencedRelation: "floriday_connections";
|
|
3539
|
-
referencedColumns: ["id"];
|
|
3540
|
-
}
|
|
3541
|
-
];
|
|
3542
|
-
};
|
|
3543
|
-
floriday_agreements_cache: {
|
|
3544
|
-
Row: {
|
|
3545
|
-
buyer_organization_id: string | null;
|
|
3546
|
-
connection_id: string;
|
|
3547
|
-
data: Json;
|
|
3548
|
-
fetched_at: string;
|
|
3549
|
-
floriday_id: string;
|
|
3550
|
-
id: string;
|
|
3551
|
-
is_deleted: boolean;
|
|
3552
|
-
sequence_number: number;
|
|
3553
|
-
status: string | null;
|
|
3554
|
-
updated_at: string;
|
|
3555
|
-
valid_from: string | null;
|
|
3556
|
-
valid_until: string | null;
|
|
3557
|
-
};
|
|
3558
|
-
Insert: {
|
|
3559
|
-
buyer_organization_id?: string | null;
|
|
3560
|
-
connection_id: string;
|
|
3561
|
-
data?: Json;
|
|
3562
|
-
fetched_at?: string;
|
|
3563
|
-
floriday_id: string;
|
|
3564
|
-
id?: string;
|
|
3565
|
-
is_deleted?: boolean;
|
|
3566
|
-
sequence_number?: number;
|
|
3567
|
-
status?: string | null;
|
|
3568
|
-
updated_at?: string;
|
|
3569
|
-
valid_from?: string | null;
|
|
3570
|
-
valid_until?: string | null;
|
|
3571
|
-
};
|
|
3572
|
-
Update: {
|
|
3573
|
-
buyer_organization_id?: string | null;
|
|
3574
|
-
connection_id?: string;
|
|
3575
|
-
data?: Json;
|
|
3576
|
-
fetched_at?: string;
|
|
3577
|
-
floriday_id?: string;
|
|
3578
|
-
id?: string;
|
|
3579
|
-
is_deleted?: boolean;
|
|
3580
|
-
sequence_number?: number;
|
|
3581
|
-
status?: string | null;
|
|
3582
|
-
updated_at?: string;
|
|
3583
|
-
valid_from?: string | null;
|
|
3584
|
-
valid_until?: string | null;
|
|
3585
|
-
};
|
|
3586
|
-
Relationships: [
|
|
3587
|
-
{
|
|
3588
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
3589
|
-
columns: ["connection_id"];
|
|
3590
|
-
isOneToOne: false;
|
|
3591
|
-
referencedRelation: "floriday_connections";
|
|
3592
|
-
referencedColumns: ["id"];
|
|
3593
|
-
}
|
|
3594
|
-
];
|
|
3595
|
-
};
|
|
3596
3493
|
floriday_auction_letters_cache: {
|
|
3597
3494
|
Row: {
|
|
3598
3495
|
auction_letter_code: string;
|
|
@@ -5148,6 +5045,47 @@ export type Database = {
|
|
|
5148
5045
|
}
|
|
5149
5046
|
];
|
|
5150
5047
|
};
|
|
5048
|
+
floriday_trade_settings_customers_cache: {
|
|
5049
|
+
Row: {
|
|
5050
|
+
connection_id: string;
|
|
5051
|
+
data: Json;
|
|
5052
|
+
fetched_at: string;
|
|
5053
|
+
floriday_id: string;
|
|
5054
|
+
id: string;
|
|
5055
|
+
is_deleted: boolean;
|
|
5056
|
+
sequence_number: number;
|
|
5057
|
+
updated_at: string;
|
|
5058
|
+
};
|
|
5059
|
+
Insert: {
|
|
5060
|
+
connection_id: string;
|
|
5061
|
+
data: Json;
|
|
5062
|
+
fetched_at?: string;
|
|
5063
|
+
floriday_id: string;
|
|
5064
|
+
id?: string;
|
|
5065
|
+
is_deleted?: boolean;
|
|
5066
|
+
sequence_number?: number;
|
|
5067
|
+
updated_at?: string;
|
|
5068
|
+
};
|
|
5069
|
+
Update: {
|
|
5070
|
+
connection_id?: string;
|
|
5071
|
+
data?: Json;
|
|
5072
|
+
fetched_at?: string;
|
|
5073
|
+
floriday_id?: string;
|
|
5074
|
+
id?: string;
|
|
5075
|
+
is_deleted?: boolean;
|
|
5076
|
+
sequence_number?: number;
|
|
5077
|
+
updated_at?: string;
|
|
5078
|
+
};
|
|
5079
|
+
Relationships: [
|
|
5080
|
+
{
|
|
5081
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
5082
|
+
columns: ["connection_id"];
|
|
5083
|
+
isOneToOne: false;
|
|
5084
|
+
referencedRelation: "floriday_connections";
|
|
5085
|
+
referencedColumns: ["id"];
|
|
5086
|
+
}
|
|
5087
|
+
];
|
|
5088
|
+
};
|
|
5151
5089
|
floriday_trips_cache: {
|
|
5152
5090
|
Row: {
|
|
5153
5091
|
carrier_organization_id: string | null;
|
|
@@ -7405,6 +7343,111 @@ export type Database = {
|
|
|
7405
7343
|
};
|
|
7406
7344
|
Relationships: [];
|
|
7407
7345
|
};
|
|
7346
|
+
order_shipment_items: {
|
|
7347
|
+
Row: {
|
|
7348
|
+
created_at: string;
|
|
7349
|
+
id: string;
|
|
7350
|
+
order_item_id: string;
|
|
7351
|
+
product_id: string | null;
|
|
7352
|
+
product_name: string;
|
|
7353
|
+
quantity: number;
|
|
7354
|
+
shipment_id: string;
|
|
7355
|
+
updated_at: string;
|
|
7356
|
+
};
|
|
7357
|
+
Insert: {
|
|
7358
|
+
created_at?: string;
|
|
7359
|
+
id?: string;
|
|
7360
|
+
order_item_id: string;
|
|
7361
|
+
product_id?: string | null;
|
|
7362
|
+
product_name: string;
|
|
7363
|
+
quantity: number;
|
|
7364
|
+
shipment_id: string;
|
|
7365
|
+
updated_at?: string;
|
|
7366
|
+
};
|
|
7367
|
+
Update: {
|
|
7368
|
+
created_at?: string;
|
|
7369
|
+
id?: string;
|
|
7370
|
+
order_item_id?: string;
|
|
7371
|
+
product_id?: string | null;
|
|
7372
|
+
product_name?: string;
|
|
7373
|
+
quantity?: number;
|
|
7374
|
+
shipment_id?: string;
|
|
7375
|
+
updated_at?: string;
|
|
7376
|
+
};
|
|
7377
|
+
Relationships: [
|
|
7378
|
+
{
|
|
7379
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
7380
|
+
columns: ["order_item_id"];
|
|
7381
|
+
isOneToOne: false;
|
|
7382
|
+
referencedRelation: "order_items";
|
|
7383
|
+
referencedColumns: ["id"];
|
|
7384
|
+
},
|
|
7385
|
+
{
|
|
7386
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
7387
|
+
columns: ["shipment_id"];
|
|
7388
|
+
isOneToOne: false;
|
|
7389
|
+
referencedRelation: "order_shipments";
|
|
7390
|
+
referencedColumns: ["id"];
|
|
7391
|
+
}
|
|
7392
|
+
];
|
|
7393
|
+
};
|
|
7394
|
+
order_shipments: {
|
|
7395
|
+
Row: {
|
|
7396
|
+
carrier_id: string | null;
|
|
7397
|
+
created_at: string;
|
|
7398
|
+
delivery_date: string | null;
|
|
7399
|
+
delivery_location_id: string | null;
|
|
7400
|
+
id: string;
|
|
7401
|
+
notes: string | null;
|
|
7402
|
+
order_id: string;
|
|
7403
|
+
shipment_number: number;
|
|
7404
|
+
shipped_at: string | null;
|
|
7405
|
+
status: string;
|
|
7406
|
+
updated_at: string;
|
|
7407
|
+
};
|
|
7408
|
+
Insert: {
|
|
7409
|
+
carrier_id?: string | null;
|
|
7410
|
+
created_at?: string;
|
|
7411
|
+
delivery_date?: string | null;
|
|
7412
|
+
delivery_location_id?: string | null;
|
|
7413
|
+
id?: string;
|
|
7414
|
+
notes?: string | null;
|
|
7415
|
+
order_id: string;
|
|
7416
|
+
shipment_number: number;
|
|
7417
|
+
shipped_at?: string | null;
|
|
7418
|
+
status?: string;
|
|
7419
|
+
updated_at?: string;
|
|
7420
|
+
};
|
|
7421
|
+
Update: {
|
|
7422
|
+
carrier_id?: string | null;
|
|
7423
|
+
created_at?: string;
|
|
7424
|
+
delivery_date?: string | null;
|
|
7425
|
+
delivery_location_id?: string | null;
|
|
7426
|
+
id?: string;
|
|
7427
|
+
notes?: string | null;
|
|
7428
|
+
order_id?: string;
|
|
7429
|
+
shipment_number?: number;
|
|
7430
|
+
shipped_at?: string | null;
|
|
7431
|
+
status?: string;
|
|
7432
|
+
updated_at?: string;
|
|
7433
|
+
};
|
|
7434
|
+
Relationships: [
|
|
7435
|
+
{
|
|
7436
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
7437
|
+
columns: ["carrier_id"];
|
|
7438
|
+
isOneToOne: false;
|
|
7439
|
+
referencedRelation: "carriers";
|
|
7440
|
+
referencedColumns: ["id"];
|
|
7441
|
+
},
|
|
7442
|
+
{
|
|
7443
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
7444
|
+
columns: ["order_id"];
|
|
7445
|
+
isOneToOne: false;
|
|
7446
|
+
referencedRelation: "orders";
|
|
7447
|
+
referencedColumns: ["id"];
|
|
7448
|
+
}
|
|
7449
|
+
];
|
|
7450
|
+
};
|
|
7408
7451
|
orders: {
|
|
7409
7452
|
Row: {
|
|
7410
7453
|
created_at: string;
|
|
@@ -7412,8 +7455,9 @@ export type Database = {
|
|
|
7412
7455
|
customer_id: string | null;
|
|
7413
7456
|
customer_name: string;
|
|
7414
7457
|
deleted_at: string | null;
|
|
7415
|
-
delivery_date: string;
|
|
7458
|
+
delivery_date: string | null;
|
|
7416
7459
|
id: string;
|
|
7460
|
+
is_reservation: boolean;
|
|
7417
7461
|
notes: string | null;
|
|
7418
7462
|
order_date: string;
|
|
7419
7463
|
order_number: string;
|
|
@@ -7430,8 +7474,9 @@ export type Database = {
|
|
|
7430
7474
|
customer_id?: string | null;
|
|
7431
7475
|
customer_name?: string;
|
|
7432
7476
|
deleted_at?: string | null;
|
|
7433
|
-
delivery_date
|
|
7477
|
+
delivery_date?: string | null;
|
|
7434
7478
|
id?: string;
|
|
7479
|
+
is_reservation?: boolean;
|
|
7435
7480
|
notes?: string | null;
|
|
7436
7481
|
order_date?: string;
|
|
7437
7482
|
order_number: string;
|
|
@@ -7448,8 +7493,9 @@ export type Database = {
|
|
|
7448
7493
|
customer_id?: string | null;
|
|
7449
7494
|
customer_name?: string;
|
|
7450
7495
|
deleted_at?: string | null;
|
|
7451
|
-
delivery_date?: string;
|
|
7496
|
+
delivery_date?: string | null;
|
|
7452
7497
|
id?: string;
|
|
7498
|
+
is_reservation?: boolean;
|
|
7453
7499
|
notes?: string | null;
|
|
7454
7500
|
order_date?: string;
|
|
7455
7501
|
order_number?: string;
|
|
@@ -7593,6 +7639,66 @@ export type Database = {
|
|
|
7593
7639
|
};
|
|
7594
7640
|
Relationships: [];
|
|
7595
7641
|
};
|
|
7642
|
+
product_bom_items: {
|
|
7643
|
+
Row: {
|
|
7644
|
+
component_product_id: string | null;
|
|
7645
|
+
component_trade_item_floriday_id: string | null;
|
|
7646
|
+
created_at: string;
|
|
7647
|
+
id: string;
|
|
7648
|
+
notes: string | null;
|
|
7649
|
+
parent_product_id: string | null;
|
|
7650
|
+
parent_trade_item_floriday_id: string | null;
|
|
7651
|
+
quantity: number;
|
|
7652
|
+
sort_order: number;
|
|
7653
|
+
tenant_id: string;
|
|
7654
|
+
unit: string;
|
|
7655
|
+
updated_at: string;
|
|
7656
|
+
};
|
|
7657
|
+
Insert: {
|
|
7658
|
+
component_product_id?: string | null;
|
|
7659
|
+
component_trade_item_floriday_id?: string | null;
|
|
7660
|
+
created_at?: string;
|
|
7661
|
+
id?: string;
|
|
7662
|
+
notes?: string | null;
|
|
7663
|
+
parent_product_id?: string | null;
|
|
7664
|
+
parent_trade_item_floriday_id?: string | null;
|
|
7665
|
+
quantity?: number;
|
|
7666
|
+
sort_order?: number;
|
|
7667
|
+
tenant_id: string;
|
|
7668
|
+
unit?: string;
|
|
7669
|
+
updated_at?: string;
|
|
7670
|
+
};
|
|
7671
|
+
Update: {
|
|
7672
|
+
component_product_id?: string | null;
|
|
7673
|
+
component_trade_item_floriday_id?: string | null;
|
|
7674
|
+
created_at?: string;
|
|
7675
|
+
id?: string;
|
|
7676
|
+
notes?: string | null;
|
|
7677
|
+
parent_product_id?: string | null;
|
|
7678
|
+
parent_trade_item_floriday_id?: string | null;
|
|
7679
|
+
quantity?: number;
|
|
7680
|
+
sort_order?: number;
|
|
7681
|
+
tenant_id?: string;
|
|
7682
|
+
unit?: string;
|
|
7683
|
+
updated_at?: string;
|
|
7684
|
+
};
|
|
7685
|
+
Relationships: [
|
|
7686
|
+
{
|
|
7687
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
7688
|
+
columns: ["component_product_id"];
|
|
7689
|
+
isOneToOne: false;
|
|
7690
|
+
referencedRelation: "products";
|
|
7691
|
+
referencedColumns: ["id"];
|
|
7692
|
+
},
|
|
7693
|
+
{
|
|
7694
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
7695
|
+
columns: ["parent_product_id"];
|
|
7696
|
+
isOneToOne: false;
|
|
7697
|
+
referencedRelation: "products";
|
|
7698
|
+
referencedColumns: ["id"];
|
|
7699
|
+
}
|
|
7700
|
+
];
|
|
7701
|
+
};
|
|
7596
7702
|
product_categories: {
|
|
7597
7703
|
Row: {
|
|
7598
7704
|
color: string;
|
|
@@ -7700,6 +7806,7 @@ export type Database = {
|
|
|
7700
7806
|
id: string;
|
|
7701
7807
|
product_group_id: string;
|
|
7702
7808
|
quantity: number;
|
|
7809
|
+
sort_order: number;
|
|
7703
7810
|
trade_item_id: string;
|
|
7704
7811
|
};
|
|
7705
7812
|
Insert: {
|
|
@@ -7707,6 +7814,7 @@ export type Database = {
|
|
|
7707
7814
|
id?: string;
|
|
7708
7815
|
product_group_id: string;
|
|
7709
7816
|
quantity?: number;
|
|
7817
|
+
sort_order?: number;
|
|
7710
7818
|
trade_item_id: string;
|
|
7711
7819
|
};
|
|
7712
7820
|
Update: {
|
|
@@ -7714,6 +7822,7 @@ export type Database = {
|
|
|
7714
7822
|
id?: string;
|
|
7715
7823
|
product_group_id?: string;
|
|
7716
7824
|
quantity?: number;
|
|
7825
|
+
sort_order?: number;
|
|
7717
7826
|
trade_item_id?: string;
|
|
7718
7827
|
};
|
|
7719
7828
|
Relationships: [
|
|
@@ -7730,6 +7839,8 @@ export type Database = {
|
|
|
7730
7839
|
Row: {
|
|
7731
7840
|
created_at: string;
|
|
7732
7841
|
description: string | null;
|
|
7842
|
+
head_product_id: string | null;
|
|
7843
|
+
head_trade_item_floriday_id: string | null;
|
|
7733
7844
|
id: string;
|
|
7734
7845
|
is_active: boolean;
|
|
7735
7846
|
name: string;
|
|
@@ -7739,6 +7850,8 @@ export type Database = {
|
|
|
7739
7850
|
Insert: {
|
|
7740
7851
|
created_at?: string;
|
|
7741
7852
|
description?: string | null;
|
|
7853
|
+
head_product_id?: string | null;
|
|
7854
|
+
head_trade_item_floriday_id?: string | null;
|
|
7742
7855
|
id?: string;
|
|
7743
7856
|
is_active?: boolean;
|
|
7744
7857
|
name: string;
|
|
@@ -7748,16 +7861,90 @@ export type Database = {
|
|
|
7748
7861
|
Update: {
|
|
7749
7862
|
created_at?: string;
|
|
7750
7863
|
description?: string | null;
|
|
7864
|
+
head_product_id?: string | null;
|
|
7865
|
+
head_trade_item_floriday_id?: string | null;
|
|
7751
7866
|
id?: string;
|
|
7752
7867
|
is_active?: boolean;
|
|
7753
7868
|
name?: string;
|
|
7754
7869
|
tenant_id?: string;
|
|
7755
7870
|
updated_at?: string;
|
|
7756
7871
|
};
|
|
7757
|
-
Relationships: [
|
|
7872
|
+
Relationships: [
|
|
7873
|
+
{
|
|
7874
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
7875
|
+
columns: ["head_product_id"];
|
|
7876
|
+
isOneToOne: false;
|
|
7877
|
+
referencedRelation: "products";
|
|
7878
|
+
referencedColumns: ["id"];
|
|
7879
|
+
}
|
|
7880
|
+
];
|
|
7881
|
+
};
|
|
7882
|
+
product_load_settings: {
|
|
7883
|
+
Row: {
|
|
7884
|
+
created_at: string;
|
|
7885
|
+
id: string;
|
|
7886
|
+
is_package: boolean;
|
|
7887
|
+
layers_per_load_carrier: number | null;
|
|
7888
|
+
load_carrier: string | null;
|
|
7889
|
+
package_id: string | null;
|
|
7890
|
+
package_label: string | null;
|
|
7891
|
+
packages_per_layer: number | null;
|
|
7892
|
+
product_id: string | null;
|
|
7893
|
+
tenant_id: string;
|
|
7894
|
+
trade_item_floriday_id: string | null;
|
|
7895
|
+
units_per_package: number | null;
|
|
7896
|
+
updated_at: string;
|
|
7897
|
+
};
|
|
7898
|
+
Insert: {
|
|
7899
|
+
created_at?: string;
|
|
7900
|
+
id?: string;
|
|
7901
|
+
is_package?: boolean;
|
|
7902
|
+
layers_per_load_carrier?: number | null;
|
|
7903
|
+
load_carrier?: string | null;
|
|
7904
|
+
package_id?: string | null;
|
|
7905
|
+
package_label?: string | null;
|
|
7906
|
+
packages_per_layer?: number | null;
|
|
7907
|
+
product_id?: string | null;
|
|
7908
|
+
tenant_id: string;
|
|
7909
|
+
trade_item_floriday_id?: string | null;
|
|
7910
|
+
units_per_package?: number | null;
|
|
7911
|
+
updated_at?: string;
|
|
7912
|
+
};
|
|
7913
|
+
Update: {
|
|
7914
|
+
created_at?: string;
|
|
7915
|
+
id?: string;
|
|
7916
|
+
is_package?: boolean;
|
|
7917
|
+
layers_per_load_carrier?: number | null;
|
|
7918
|
+
load_carrier?: string | null;
|
|
7919
|
+
package_id?: string | null;
|
|
7920
|
+
package_label?: string | null;
|
|
7921
|
+
packages_per_layer?: number | null;
|
|
7922
|
+
product_id?: string | null;
|
|
7923
|
+
tenant_id?: string;
|
|
7924
|
+
trade_item_floriday_id?: string | null;
|
|
7925
|
+
units_per_package?: number | null;
|
|
7926
|
+
updated_at?: string;
|
|
7927
|
+
};
|
|
7928
|
+
Relationships: [
|
|
7929
|
+
{
|
|
7930
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
7931
|
+
columns: ["package_id"];
|
|
7932
|
+
isOneToOne: false;
|
|
7933
|
+
referencedRelation: "packages";
|
|
7934
|
+
referencedColumns: ["id"];
|
|
7935
|
+
},
|
|
7936
|
+
{
|
|
7937
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
7938
|
+
columns: ["product_id"];
|
|
7939
|
+
isOneToOne: false;
|
|
7940
|
+
referencedRelation: "products";
|
|
7941
|
+
referencedColumns: ["id"];
|
|
7942
|
+
}
|
|
7943
|
+
];
|
|
7758
7944
|
};
|
|
7759
7945
|
products: {
|
|
7760
7946
|
Row: {
|
|
7947
|
+
article_number: string | null;
|
|
7761
7948
|
barcode: string | null;
|
|
7762
7949
|
batch: string;
|
|
7763
7950
|
crates_per_layer: number;
|
|
@@ -7781,6 +7968,7 @@ export type Database = {
|
|
|
7781
7968
|
weight: string | null;
|
|
7782
7969
|
};
|
|
7783
7970
|
Insert: {
|
|
7971
|
+
article_number?: string | null;
|
|
7784
7972
|
barcode?: string | null;
|
|
7785
7973
|
batch: string;
|
|
7786
7974
|
crates_per_layer?: number;
|
|
@@ -7804,6 +7992,7 @@ export type Database = {
|
|
|
7804
7992
|
weight?: string | null;
|
|
7805
7993
|
};
|
|
7806
7994
|
Update: {
|
|
7995
|
+
article_number?: string | null;
|
|
7807
7996
|
barcode?: string | null;
|
|
7808
7997
|
batch?: string;
|
|
7809
7998
|
crates_per_layer?: number;
|
|
@@ -8749,8 +8938,10 @@ export type Database = {
|
|
|
8749
8938
|
order_id: string | null;
|
|
8750
8939
|
order_item_id: string | null;
|
|
8751
8940
|
order_source: string | null;
|
|
8941
|
+
parent_trade_item_key: string | null;
|
|
8752
8942
|
physical_after: number | null;
|
|
8753
8943
|
physical_before: number | null;
|
|
8944
|
+
production_batch_id: string | null;
|
|
8754
8945
|
qty_delta: number;
|
|
8755
8946
|
reason: string | null;
|
|
8756
8947
|
reserved_after: number | null;
|
|
@@ -8766,8 +8957,10 @@ export type Database = {
|
|
|
8766
8957
|
order_id?: string | null;
|
|
8767
8958
|
order_item_id?: string | null;
|
|
8768
8959
|
order_source?: string | null;
|
|
8960
|
+
parent_trade_item_key?: string | null;
|
|
8769
8961
|
physical_after?: number | null;
|
|
8770
8962
|
physical_before?: number | null;
|
|
8963
|
+
production_batch_id?: string | null;
|
|
8771
8964
|
qty_delta: number;
|
|
8772
8965
|
reason?: string | null;
|
|
8773
8966
|
reserved_after?: number | null;
|
|
@@ -8783,8 +8976,10 @@ export type Database = {
|
|
|
8783
8976
|
order_id?: string | null;
|
|
8784
8977
|
order_item_id?: string | null;
|
|
8785
8978
|
order_source?: string | null;
|
|
8979
|
+
parent_trade_item_key?: string | null;
|
|
8786
8980
|
physical_after?: number | null;
|
|
8787
8981
|
physical_before?: number | null;
|
|
8982
|
+
production_batch_id?: string | null;
|
|
8788
8983
|
qty_delta?: number;
|
|
8789
8984
|
reason?: string | null;
|
|
8790
8985
|
reserved_after?: number | null;
|
|
@@ -9253,7 +9448,7 @@ export type Database = {
|
|
|
9253
9448
|
twinfield_connections: {
|
|
9254
9449
|
Row: {
|
|
9255
9450
|
access_token: string | null;
|
|
9256
|
-
client_id: string;
|
|
9451
|
+
client_id: string | null;
|
|
9257
9452
|
client_secret: string | null;
|
|
9258
9453
|
cluster_uri: string | null;
|
|
9259
9454
|
company_code: string | null;
|
|
@@ -9265,7 +9460,7 @@ export type Database = {
|
|
|
9265
9460
|
is_active: boolean;
|
|
9266
9461
|
label: string | null;
|
|
9267
9462
|
office_code: string | null;
|
|
9268
|
-
redirect_uri: string;
|
|
9463
|
+
redirect_uri: string | null;
|
|
9269
9464
|
refresh_token: string | null;
|
|
9270
9465
|
token_expires_at: string | null;
|
|
9271
9466
|
updated_at: string;
|
|
@@ -9273,7 +9468,7 @@ export type Database = {
|
|
|
9273
9468
|
};
|
|
9274
9469
|
Insert: {
|
|
9275
9470
|
access_token?: string | null;
|
|
9276
|
-
client_id
|
|
9471
|
+
client_id?: string | null;
|
|
9277
9472
|
client_secret?: string | null;
|
|
9278
9473
|
cluster_uri?: string | null;
|
|
9279
9474
|
company_code?: string | null;
|
|
@@ -9285,7 +9480,7 @@ export type Database = {
|
|
|
9285
9480
|
is_active?: boolean;
|
|
9286
9481
|
label?: string | null;
|
|
9287
9482
|
office_code?: string | null;
|
|
9288
|
-
redirect_uri
|
|
9483
|
+
redirect_uri?: string | null;
|
|
9289
9484
|
refresh_token?: string | null;
|
|
9290
9485
|
token_expires_at?: string | null;
|
|
9291
9486
|
updated_at?: string;
|
|
@@ -9293,7 +9488,7 @@ export type Database = {
|
|
|
9293
9488
|
};
|
|
9294
9489
|
Update: {
|
|
9295
9490
|
access_token?: string | null;
|
|
9296
|
-
client_id?: string;
|
|
9491
|
+
client_id?: string | null;
|
|
9297
9492
|
client_secret?: string | null;
|
|
9298
9493
|
cluster_uri?: string | null;
|
|
9299
9494
|
company_code?: string | null;
|
|
@@ -9305,7 +9500,7 @@ export type Database = {
|
|
|
9305
9500
|
is_active?: boolean;
|
|
9306
9501
|
label?: string | null;
|
|
9307
9502
|
office_code?: string | null;
|
|
9308
|
-
redirect_uri?: string;
|
|
9503
|
+
redirect_uri?: string | null;
|
|
9309
9504
|
refresh_token?: string | null;
|
|
9310
9505
|
token_expires_at?: string | null;
|
|
9311
9506
|
updated_at?: string;
|
|
@@ -10522,25 +10717,6 @@ export type Database = {
|
|
|
10522
10717
|
};
|
|
10523
10718
|
Relationships: [];
|
|
10524
10719
|
};
|
|
10525
|
-
floriday_customer_discounts: {
|
|
10526
|
-
Row: {
|
|
10527
|
-
base_price: number | null;
|
|
10528
|
-
buyer_organization_id: string | null;
|
|
10529
|
-
currency: string | null;
|
|
10530
|
-
discount_type: string | null;
|
|
10531
|
-
discount_value: number | null;
|
|
10532
|
-
min_quantity: number | null;
|
|
10533
|
-
net_price: number | null;
|
|
10534
|
-
product_group_id: string | null;
|
|
10535
|
-
raw: Json | null;
|
|
10536
|
-
source: string | null;
|
|
10537
|
-
source_id: string | null;
|
|
10538
|
-
trade_item_id: string | null;
|
|
10539
|
-
valid_from: string | null;
|
|
10540
|
-
valid_until: string | null;
|
|
10541
|
-
};
|
|
10542
|
-
Relationships: [];
|
|
10543
|
-
};
|
|
10544
10720
|
local_customer_discounts: {
|
|
10545
10721
|
Row: {
|
|
10546
10722
|
base_price: number | null;
|
|
@@ -10971,6 +11147,28 @@ export type Database = {
|
|
|
10971
11147
|
Args: never;
|
|
10972
11148
|
Returns: undefined;
|
|
10973
11149
|
};
|
|
11150
|
+
consume_bom_for_production: {
|
|
11151
|
+
Args: {
|
|
11152
|
+
p_connection_id: string;
|
|
11153
|
+
p_parent_id: string;
|
|
11154
|
+
p_parent_key: string;
|
|
11155
|
+
p_parent_kind: string;
|
|
11156
|
+
p_quantity: number;
|
|
11157
|
+
p_user_id: string;
|
|
11158
|
+
};
|
|
11159
|
+
Returns: Json;
|
|
11160
|
+
} | {
|
|
11161
|
+
Args: {
|
|
11162
|
+
p_batch_id?: string;
|
|
11163
|
+
p_connection_id: string;
|
|
11164
|
+
p_parent_id: string;
|
|
11165
|
+
p_parent_key: string;
|
|
11166
|
+
p_parent_kind: string;
|
|
11167
|
+
p_quantity: number;
|
|
11168
|
+
p_user_id: string;
|
|
11169
|
+
};
|
|
11170
|
+
Returns: Json;
|
|
11171
|
+
};
|
|
10974
11172
|
consume_floriday_rate_limit: {
|
|
10975
11173
|
Args: {
|
|
10976
11174
|
p_bucket: string;
|
|
@@ -11022,6 +11220,13 @@ export type Database = {
|
|
|
11022
11220
|
table_name: string;
|
|
11023
11221
|
}[];
|
|
11024
11222
|
};
|
|
11223
|
+
delete_samenstelling: {
|
|
11224
|
+
Args: {
|
|
11225
|
+
p_parent_id: string;
|
|
11226
|
+
p_parent_kind: string;
|
|
11227
|
+
};
|
|
11228
|
+
Returns: Json;
|
|
11229
|
+
};
|
|
11025
11230
|
dispatch_carrier_signups_sql: {
|
|
11026
11231
|
Args: {
|
|
11027
11232
|
_catchup?: string;
|
|
@@ -11182,19 +11387,6 @@ export type Database = {
|
|
|
11182
11387
|
resource: string;
|
|
11183
11388
|
}[];
|
|
11184
11389
|
};
|
|
11185
|
-
get_floriday_agreements_active: {
|
|
11186
|
-
Args: {
|
|
11187
|
-
p_on_date?: string;
|
|
11188
|
-
};
|
|
11189
|
-
Returns: {
|
|
11190
|
-
buyer_organization_id: string;
|
|
11191
|
-
data: Json;
|
|
11192
|
-
floriday_id: string;
|
|
11193
|
-
status: string;
|
|
11194
|
-
valid_from: string;
|
|
11195
|
-
valid_until: string;
|
|
11196
|
-
}[];
|
|
11197
|
-
};
|
|
11198
11390
|
get_floriday_clock_supplies_window: {
|
|
11199
11391
|
Args: {
|
|
11200
11392
|
p_from: string;
|
|
@@ -11267,6 +11459,21 @@ export type Database = {
|
|
|
11267
11459
|
minutes_since_success: number;
|
|
11268
11460
|
}[];
|
|
11269
11461
|
};
|
|
11462
|
+
get_group_allocation_keys: {
|
|
11463
|
+
Args: {
|
|
11464
|
+
p_product_id: string;
|
|
11465
|
+
};
|
|
11466
|
+
Returns: {
|
|
11467
|
+
k: string;
|
|
11468
|
+
ord: number;
|
|
11469
|
+
}[];
|
|
11470
|
+
};
|
|
11471
|
+
get_group_head_key: {
|
|
11472
|
+
Args: {
|
|
11473
|
+
p_group_id: string;
|
|
11474
|
+
};
|
|
11475
|
+
Returns: string;
|
|
11476
|
+
};
|
|
11270
11477
|
get_offer_by_link_code: {
|
|
11271
11478
|
Args: {
|
|
11272
11479
|
p_code: string;
|
|
@@ -11377,6 +11584,12 @@ export type Database = {
|
|
|
11377
11584
|
};
|
|
11378
11585
|
Returns: undefined;
|
|
11379
11586
|
};
|
|
11587
|
+
mark_shipment_shipped: {
|
|
11588
|
+
Args: {
|
|
11589
|
+
p_shipment_id: string;
|
|
11590
|
+
};
|
|
11591
|
+
Returns: undefined;
|
|
11592
|
+
};
|
|
11380
11593
|
next_manufacture_partij: {
|
|
11381
11594
|
Args: {
|
|
11382
11595
|
_tenant_id: string;
|
|
@@ -11461,6 +11674,14 @@ export type Database = {
|
|
|
11461
11674
|
};
|
|
11462
11675
|
Returns: undefined;
|
|
11463
11676
|
};
|
|
11677
|
+
produce_designed_product: {
|
|
11678
|
+
Args: {
|
|
11679
|
+
p_parent_id: string;
|
|
11680
|
+
p_parent_kind: string;
|
|
11681
|
+
p_quantity: number;
|
|
11682
|
+
};
|
|
11683
|
+
Returns: Json;
|
|
11684
|
+
};
|
|
11464
11685
|
promote_trade_item_key: {
|
|
11465
11686
|
Args: {
|
|
11466
11687
|
p_new: string;
|
|
@@ -11468,6 +11689,10 @@ export type Database = {
|
|
|
11468
11689
|
};
|
|
11469
11690
|
Returns: undefined;
|
|
11470
11691
|
};
|
|
11692
|
+
recompute_all_reserved_stock: {
|
|
11693
|
+
Args: never;
|
|
11694
|
+
Returns: undefined;
|
|
11695
|
+
};
|
|
11471
11696
|
recompute_order_status: {
|
|
11472
11697
|
Args: {
|
|
11473
11698
|
p_order_id: string;
|
|
@@ -11517,27 +11742,45 @@ export type Database = {
|
|
|
11517
11742
|
};
|
|
11518
11743
|
Returns: undefined;
|
|
11519
11744
|
};
|
|
11745
|
+
resolve_group_allocation: {
|
|
11746
|
+
Args: {
|
|
11747
|
+
_needed: number;
|
|
11748
|
+
_product_group_id: string;
|
|
11749
|
+
};
|
|
11750
|
+
Returns: {
|
|
11751
|
+
allocated: number;
|
|
11752
|
+
trade_item_id: string;
|
|
11753
|
+
}[];
|
|
11754
|
+
};
|
|
11755
|
+
resolve_group_member_stock_key: {
|
|
11756
|
+
Args: {
|
|
11757
|
+
p_trade_item_id: string;
|
|
11758
|
+
};
|
|
11759
|
+
Returns: string;
|
|
11760
|
+
};
|
|
11520
11761
|
resolve_product_id_for_item: {
|
|
11521
11762
|
Args: {
|
|
11522
11763
|
p_product_name: string;
|
|
11523
11764
|
};
|
|
11524
11765
|
Returns: string;
|
|
11525
11766
|
};
|
|
11526
|
-
|
|
11767
|
+
resolve_stock_trade_item_key: {
|
|
11527
11768
|
Args: {
|
|
11528
|
-
|
|
11529
|
-
p_url: string;
|
|
11769
|
+
p_product_id: string;
|
|
11530
11770
|
};
|
|
11531
|
-
Returns:
|
|
11771
|
+
Returns: string;
|
|
11532
11772
|
};
|
|
11533
|
-
|
|
11773
|
+
reverse_production: {
|
|
11534
11774
|
Args: {
|
|
11535
|
-
|
|
11536
|
-
|
|
11775
|
+
p_connection_id?: string;
|
|
11776
|
+
p_parent_key: string;
|
|
11777
|
+
p_quantity: number;
|
|
11778
|
+
p_reason?: string;
|
|
11779
|
+
p_user_id?: string;
|
|
11537
11780
|
};
|
|
11538
|
-
Returns:
|
|
11781
|
+
Returns: Json;
|
|
11539
11782
|
};
|
|
11540
|
-
|
|
11783
|
+
schedule_floriday_additional_services_sync: {
|
|
11541
11784
|
Args: {
|
|
11542
11785
|
p_apikey: string;
|
|
11543
11786
|
p_url: string;
|