@flowselections/floriday-verkoop-module 1.0.17 → 1.0.19
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 +436 -149
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +436 -149
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +436 -149
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +452 -153
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/cart-lock.functions.d.ts +436 -149
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +884 -310
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.d.ts +39491 -1379
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +814 -64
- 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 +1321 -460
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +436 -149
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +3052 -1043
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +2180 -745
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +47382 -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 +1321 -460
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +436 -149
- 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,21 +7861,131 @@ 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
|
};
|
|
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
|
+
];
|
|
7944
|
+
};
|
|
7945
|
+
product_merge_log: {
|
|
7946
|
+
Row: {
|
|
7947
|
+
canonical_product_id: string | null;
|
|
7948
|
+
id: string;
|
|
7949
|
+
merged_at: string;
|
|
7950
|
+
merged_from_id: string;
|
|
7951
|
+
notes: string | null;
|
|
7952
|
+
snapshot: Json;
|
|
7953
|
+
source_table: string;
|
|
7954
|
+
status: string;
|
|
7955
|
+
};
|
|
7956
|
+
Insert: {
|
|
7957
|
+
canonical_product_id?: string | null;
|
|
7958
|
+
id?: string;
|
|
7959
|
+
merged_at?: string;
|
|
7960
|
+
merged_from_id: string;
|
|
7961
|
+
notes?: string | null;
|
|
7962
|
+
snapshot?: Json;
|
|
7963
|
+
source_table: string;
|
|
7964
|
+
status?: string;
|
|
7965
|
+
};
|
|
7966
|
+
Update: {
|
|
7967
|
+
canonical_product_id?: string | null;
|
|
7968
|
+
id?: string;
|
|
7969
|
+
merged_at?: string;
|
|
7970
|
+
merged_from_id?: string;
|
|
7971
|
+
notes?: string | null;
|
|
7972
|
+
snapshot?: Json;
|
|
7973
|
+
source_table?: string;
|
|
7974
|
+
status?: string;
|
|
7975
|
+
};
|
|
7757
7976
|
Relationships: [];
|
|
7758
7977
|
};
|
|
7759
7978
|
products: {
|
|
7760
7979
|
Row: {
|
|
7980
|
+
article_number: string | null;
|
|
7761
7981
|
barcode: string | null;
|
|
7762
7982
|
batch: string;
|
|
7763
7983
|
crates_per_layer: number;
|
|
7764
7984
|
created_at: string;
|
|
7765
7985
|
custom_fields: Json;
|
|
7986
|
+
floriday_active: boolean;
|
|
7987
|
+
floriday_payload: Json;
|
|
7988
|
+
floriday_trade_item_id: string | null;
|
|
7766
7989
|
id: string;
|
|
7767
7990
|
image_url: string | null;
|
|
7768
7991
|
incoming_quantity: number;
|
|
@@ -7781,11 +8004,15 @@ export type Database = {
|
|
|
7781
8004
|
weight: string | null;
|
|
7782
8005
|
};
|
|
7783
8006
|
Insert: {
|
|
8007
|
+
article_number?: string | null;
|
|
7784
8008
|
barcode?: string | null;
|
|
7785
8009
|
batch: string;
|
|
7786
8010
|
crates_per_layer?: number;
|
|
7787
8011
|
created_at?: string;
|
|
7788
8012
|
custom_fields?: Json;
|
|
8013
|
+
floriday_active?: boolean;
|
|
8014
|
+
floriday_payload?: Json;
|
|
8015
|
+
floriday_trade_item_id?: string | null;
|
|
7789
8016
|
id?: string;
|
|
7790
8017
|
image_url?: string | null;
|
|
7791
8018
|
incoming_quantity?: number;
|
|
@@ -7804,11 +8031,15 @@ export type Database = {
|
|
|
7804
8031
|
weight?: string | null;
|
|
7805
8032
|
};
|
|
7806
8033
|
Update: {
|
|
8034
|
+
article_number?: string | null;
|
|
7807
8035
|
barcode?: string | null;
|
|
7808
8036
|
batch?: string;
|
|
7809
8037
|
crates_per_layer?: number;
|
|
7810
8038
|
created_at?: string;
|
|
7811
8039
|
custom_fields?: Json;
|
|
8040
|
+
floriday_active?: boolean;
|
|
8041
|
+
floriday_payload?: Json;
|
|
8042
|
+
floriday_trade_item_id?: string | null;
|
|
7812
8043
|
id?: string;
|
|
7813
8044
|
image_url?: string | null;
|
|
7814
8045
|
incoming_quantity?: number;
|
|
@@ -8749,8 +8980,10 @@ export type Database = {
|
|
|
8749
8980
|
order_id: string | null;
|
|
8750
8981
|
order_item_id: string | null;
|
|
8751
8982
|
order_source: string | null;
|
|
8983
|
+
parent_trade_item_key: string | null;
|
|
8752
8984
|
physical_after: number | null;
|
|
8753
8985
|
physical_before: number | null;
|
|
8986
|
+
production_batch_id: string | null;
|
|
8754
8987
|
qty_delta: number;
|
|
8755
8988
|
reason: string | null;
|
|
8756
8989
|
reserved_after: number | null;
|
|
@@ -8766,8 +8999,10 @@ export type Database = {
|
|
|
8766
8999
|
order_id?: string | null;
|
|
8767
9000
|
order_item_id?: string | null;
|
|
8768
9001
|
order_source?: string | null;
|
|
9002
|
+
parent_trade_item_key?: string | null;
|
|
8769
9003
|
physical_after?: number | null;
|
|
8770
9004
|
physical_before?: number | null;
|
|
9005
|
+
production_batch_id?: string | null;
|
|
8771
9006
|
qty_delta: number;
|
|
8772
9007
|
reason?: string | null;
|
|
8773
9008
|
reserved_after?: number | null;
|
|
@@ -8783,8 +9018,10 @@ export type Database = {
|
|
|
8783
9018
|
order_id?: string | null;
|
|
8784
9019
|
order_item_id?: string | null;
|
|
8785
9020
|
order_source?: string | null;
|
|
9021
|
+
parent_trade_item_key?: string | null;
|
|
8786
9022
|
physical_after?: number | null;
|
|
8787
9023
|
physical_before?: number | null;
|
|
9024
|
+
production_batch_id?: string | null;
|
|
8788
9025
|
qty_delta?: number;
|
|
8789
9026
|
reason?: string | null;
|
|
8790
9027
|
reserved_after?: number | null;
|
|
@@ -9253,7 +9490,7 @@ export type Database = {
|
|
|
9253
9490
|
twinfield_connections: {
|
|
9254
9491
|
Row: {
|
|
9255
9492
|
access_token: string | null;
|
|
9256
|
-
client_id: string;
|
|
9493
|
+
client_id: string | null;
|
|
9257
9494
|
client_secret: string | null;
|
|
9258
9495
|
cluster_uri: string | null;
|
|
9259
9496
|
company_code: string | null;
|
|
@@ -9265,7 +9502,7 @@ export type Database = {
|
|
|
9265
9502
|
is_active: boolean;
|
|
9266
9503
|
label: string | null;
|
|
9267
9504
|
office_code: string | null;
|
|
9268
|
-
redirect_uri: string;
|
|
9505
|
+
redirect_uri: string | null;
|
|
9269
9506
|
refresh_token: string | null;
|
|
9270
9507
|
token_expires_at: string | null;
|
|
9271
9508
|
updated_at: string;
|
|
@@ -9273,7 +9510,7 @@ export type Database = {
|
|
|
9273
9510
|
};
|
|
9274
9511
|
Insert: {
|
|
9275
9512
|
access_token?: string | null;
|
|
9276
|
-
client_id
|
|
9513
|
+
client_id?: string | null;
|
|
9277
9514
|
client_secret?: string | null;
|
|
9278
9515
|
cluster_uri?: string | null;
|
|
9279
9516
|
company_code?: string | null;
|
|
@@ -9285,7 +9522,7 @@ export type Database = {
|
|
|
9285
9522
|
is_active?: boolean;
|
|
9286
9523
|
label?: string | null;
|
|
9287
9524
|
office_code?: string | null;
|
|
9288
|
-
redirect_uri
|
|
9525
|
+
redirect_uri?: string | null;
|
|
9289
9526
|
refresh_token?: string | null;
|
|
9290
9527
|
token_expires_at?: string | null;
|
|
9291
9528
|
updated_at?: string;
|
|
@@ -9293,7 +9530,7 @@ export type Database = {
|
|
|
9293
9530
|
};
|
|
9294
9531
|
Update: {
|
|
9295
9532
|
access_token?: string | null;
|
|
9296
|
-
client_id?: string;
|
|
9533
|
+
client_id?: string | null;
|
|
9297
9534
|
client_secret?: string | null;
|
|
9298
9535
|
cluster_uri?: string | null;
|
|
9299
9536
|
company_code?: string | null;
|
|
@@ -9305,7 +9542,7 @@ export type Database = {
|
|
|
9305
9542
|
is_active?: boolean;
|
|
9306
9543
|
label?: string | null;
|
|
9307
9544
|
office_code?: string | null;
|
|
9308
|
-
redirect_uri?: string;
|
|
9545
|
+
redirect_uri?: string | null;
|
|
9309
9546
|
refresh_token?: string | null;
|
|
9310
9547
|
token_expires_at?: string | null;
|
|
9311
9548
|
updated_at?: string;
|
|
@@ -10522,25 +10759,6 @@ export type Database = {
|
|
|
10522
10759
|
};
|
|
10523
10760
|
Relationships: [];
|
|
10524
10761
|
};
|
|
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
10762
|
local_customer_discounts: {
|
|
10545
10763
|
Row: {
|
|
10546
10764
|
base_price: number | null;
|
|
@@ -10856,6 +11074,13 @@ export type Database = {
|
|
|
10856
11074
|
};
|
|
10857
11075
|
Returns: number;
|
|
10858
11076
|
};
|
|
11077
|
+
_migrate_rewrite_stock_key: {
|
|
11078
|
+
Args: {
|
|
11079
|
+
_from_key: string;
|
|
11080
|
+
_to_key: string;
|
|
11081
|
+
};
|
|
11082
|
+
Returns: undefined;
|
|
11083
|
+
};
|
|
10859
11084
|
afh_city_code: {
|
|
10860
11085
|
Args: {
|
|
10861
11086
|
_city: string;
|
|
@@ -10971,6 +11196,28 @@ export type Database = {
|
|
|
10971
11196
|
Args: never;
|
|
10972
11197
|
Returns: undefined;
|
|
10973
11198
|
};
|
|
11199
|
+
consume_bom_for_production: {
|
|
11200
|
+
Args: {
|
|
11201
|
+
p_connection_id: string;
|
|
11202
|
+
p_parent_id: string;
|
|
11203
|
+
p_parent_key: string;
|
|
11204
|
+
p_parent_kind: string;
|
|
11205
|
+
p_quantity: number;
|
|
11206
|
+
p_user_id: string;
|
|
11207
|
+
};
|
|
11208
|
+
Returns: Json;
|
|
11209
|
+
} | {
|
|
11210
|
+
Args: {
|
|
11211
|
+
p_batch_id?: string;
|
|
11212
|
+
p_connection_id: string;
|
|
11213
|
+
p_parent_id: string;
|
|
11214
|
+
p_parent_key: string;
|
|
11215
|
+
p_parent_kind: string;
|
|
11216
|
+
p_quantity: number;
|
|
11217
|
+
p_user_id: string;
|
|
11218
|
+
};
|
|
11219
|
+
Returns: Json;
|
|
11220
|
+
};
|
|
10974
11221
|
consume_floriday_rate_limit: {
|
|
10975
11222
|
Args: {
|
|
10976
11223
|
p_bucket: string;
|
|
@@ -11022,6 +11269,13 @@ export type Database = {
|
|
|
11022
11269
|
table_name: string;
|
|
11023
11270
|
}[];
|
|
11024
11271
|
};
|
|
11272
|
+
delete_samenstelling: {
|
|
11273
|
+
Args: {
|
|
11274
|
+
p_parent_id: string;
|
|
11275
|
+
p_parent_kind: string;
|
|
11276
|
+
};
|
|
11277
|
+
Returns: Json;
|
|
11278
|
+
};
|
|
11025
11279
|
dispatch_carrier_signups_sql: {
|
|
11026
11280
|
Args: {
|
|
11027
11281
|
_catchup?: string;
|
|
@@ -11182,19 +11436,6 @@ export type Database = {
|
|
|
11182
11436
|
resource: string;
|
|
11183
11437
|
}[];
|
|
11184
11438
|
};
|
|
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
11439
|
get_floriday_clock_supplies_window: {
|
|
11199
11440
|
Args: {
|
|
11200
11441
|
p_from: string;
|
|
@@ -11267,6 +11508,21 @@ export type Database = {
|
|
|
11267
11508
|
minutes_since_success: number;
|
|
11268
11509
|
}[];
|
|
11269
11510
|
};
|
|
11511
|
+
get_group_allocation_keys: {
|
|
11512
|
+
Args: {
|
|
11513
|
+
p_product_id: string;
|
|
11514
|
+
};
|
|
11515
|
+
Returns: {
|
|
11516
|
+
k: string;
|
|
11517
|
+
ord: number;
|
|
11518
|
+
}[];
|
|
11519
|
+
};
|
|
11520
|
+
get_group_head_key: {
|
|
11521
|
+
Args: {
|
|
11522
|
+
p_group_id: string;
|
|
11523
|
+
};
|
|
11524
|
+
Returns: string;
|
|
11525
|
+
};
|
|
11270
11526
|
get_offer_by_link_code: {
|
|
11271
11527
|
Args: {
|
|
11272
11528
|
p_code: string;
|
|
@@ -11377,6 +11633,19 @@ export type Database = {
|
|
|
11377
11633
|
};
|
|
11378
11634
|
Returns: undefined;
|
|
11379
11635
|
};
|
|
11636
|
+
mark_shipment_shipped: {
|
|
11637
|
+
Args: {
|
|
11638
|
+
p_shipment_id: string;
|
|
11639
|
+
};
|
|
11640
|
+
Returns: undefined;
|
|
11641
|
+
};
|
|
11642
|
+
merge_products: {
|
|
11643
|
+
Args: {
|
|
11644
|
+
_canonical: string;
|
|
11645
|
+
_loser: string;
|
|
11646
|
+
};
|
|
11647
|
+
Returns: undefined;
|
|
11648
|
+
};
|
|
11380
11649
|
next_manufacture_partij: {
|
|
11381
11650
|
Args: {
|
|
11382
11651
|
_tenant_id: string;
|
|
@@ -11461,6 +11730,14 @@ export type Database = {
|
|
|
11461
11730
|
};
|
|
11462
11731
|
Returns: undefined;
|
|
11463
11732
|
};
|
|
11733
|
+
produce_designed_product: {
|
|
11734
|
+
Args: {
|
|
11735
|
+
p_parent_id: string;
|
|
11736
|
+
p_parent_kind: string;
|
|
11737
|
+
p_quantity: number;
|
|
11738
|
+
};
|
|
11739
|
+
Returns: Json;
|
|
11740
|
+
};
|
|
11464
11741
|
promote_trade_item_key: {
|
|
11465
11742
|
Args: {
|
|
11466
11743
|
p_new: string;
|
|
@@ -11468,6 +11745,10 @@ export type Database = {
|
|
|
11468
11745
|
};
|
|
11469
11746
|
Returns: undefined;
|
|
11470
11747
|
};
|
|
11748
|
+
recompute_all_reserved_stock: {
|
|
11749
|
+
Args: never;
|
|
11750
|
+
Returns: undefined;
|
|
11751
|
+
};
|
|
11471
11752
|
recompute_order_status: {
|
|
11472
11753
|
Args: {
|
|
11473
11754
|
p_order_id: string;
|
|
@@ -11517,27 +11798,45 @@ export type Database = {
|
|
|
11517
11798
|
};
|
|
11518
11799
|
Returns: undefined;
|
|
11519
11800
|
};
|
|
11801
|
+
resolve_group_allocation: {
|
|
11802
|
+
Args: {
|
|
11803
|
+
_needed: number;
|
|
11804
|
+
_product_group_id: string;
|
|
11805
|
+
};
|
|
11806
|
+
Returns: {
|
|
11807
|
+
allocated: number;
|
|
11808
|
+
trade_item_id: string;
|
|
11809
|
+
}[];
|
|
11810
|
+
};
|
|
11811
|
+
resolve_group_member_stock_key: {
|
|
11812
|
+
Args: {
|
|
11813
|
+
p_trade_item_id: string;
|
|
11814
|
+
};
|
|
11815
|
+
Returns: string;
|
|
11816
|
+
};
|
|
11520
11817
|
resolve_product_id_for_item: {
|
|
11521
11818
|
Args: {
|
|
11522
11819
|
p_product_name: string;
|
|
11523
11820
|
};
|
|
11524
11821
|
Returns: string;
|
|
11525
11822
|
};
|
|
11526
|
-
|
|
11823
|
+
resolve_stock_trade_item_key: {
|
|
11527
11824
|
Args: {
|
|
11528
|
-
|
|
11529
|
-
p_url: string;
|
|
11825
|
+
p_product_id: string;
|
|
11530
11826
|
};
|
|
11531
|
-
Returns:
|
|
11827
|
+
Returns: string;
|
|
11532
11828
|
};
|
|
11533
|
-
|
|
11829
|
+
reverse_production: {
|
|
11534
11830
|
Args: {
|
|
11535
|
-
|
|
11536
|
-
|
|
11831
|
+
p_connection_id?: string;
|
|
11832
|
+
p_parent_key: string;
|
|
11833
|
+
p_quantity: number;
|
|
11834
|
+
p_reason?: string;
|
|
11835
|
+
p_user_id?: string;
|
|
11537
11836
|
};
|
|
11538
|
-
Returns:
|
|
11837
|
+
Returns: Json;
|
|
11539
11838
|
};
|
|
11540
|
-
|
|
11839
|
+
schedule_floriday_additional_services_sync: {
|
|
11541
11840
|
Args: {
|
|
11542
11841
|
p_apikey: string;
|
|
11543
11842
|
p_url: string;
|