@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
|
@@ -3415,105 +3415,6 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
3415
3415
|
referencedColumns: ["id"];
|
|
3416
3416
|
}];
|
|
3417
3417
|
};
|
|
3418
|
-
floriday_agreement_calloffs_cache: {
|
|
3419
|
-
Row: {
|
|
3420
|
-
agreement_id: string | null;
|
|
3421
|
-
connection_id: string;
|
|
3422
|
-
data: import("../integrations/supabase/types").Json;
|
|
3423
|
-
delivery_date: string | null;
|
|
3424
|
-
fetched_at: string;
|
|
3425
|
-
floriday_id: string;
|
|
3426
|
-
id: string;
|
|
3427
|
-
is_deleted: boolean;
|
|
3428
|
-
sequence_number: number;
|
|
3429
|
-
status: string | null;
|
|
3430
|
-
updated_at: string;
|
|
3431
|
-
};
|
|
3432
|
-
Insert: {
|
|
3433
|
-
agreement_id?: string | null;
|
|
3434
|
-
connection_id: string;
|
|
3435
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3436
|
-
delivery_date?: string | null;
|
|
3437
|
-
fetched_at?: string;
|
|
3438
|
-
floriday_id: string;
|
|
3439
|
-
id?: string;
|
|
3440
|
-
is_deleted?: boolean;
|
|
3441
|
-
sequence_number?: number;
|
|
3442
|
-
status?: string | null;
|
|
3443
|
-
updated_at?: string;
|
|
3444
|
-
};
|
|
3445
|
-
Update: {
|
|
3446
|
-
agreement_id?: string | null;
|
|
3447
|
-
connection_id?: string;
|
|
3448
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3449
|
-
delivery_date?: string | null;
|
|
3450
|
-
fetched_at?: string;
|
|
3451
|
-
floriday_id?: string;
|
|
3452
|
-
id?: string;
|
|
3453
|
-
is_deleted?: boolean;
|
|
3454
|
-
sequence_number?: number;
|
|
3455
|
-
status?: string | null;
|
|
3456
|
-
updated_at?: string;
|
|
3457
|
-
};
|
|
3458
|
-
Relationships: [{
|
|
3459
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
3460
|
-
columns: ["connection_id"];
|
|
3461
|
-
isOneToOne: false;
|
|
3462
|
-
referencedRelation: "floriday_connections";
|
|
3463
|
-
referencedColumns: ["id"];
|
|
3464
|
-
}];
|
|
3465
|
-
};
|
|
3466
|
-
floriday_agreements_cache: {
|
|
3467
|
-
Row: {
|
|
3468
|
-
buyer_organization_id: string | null;
|
|
3469
|
-
connection_id: string;
|
|
3470
|
-
data: import("../integrations/supabase/types").Json;
|
|
3471
|
-
fetched_at: string;
|
|
3472
|
-
floriday_id: string;
|
|
3473
|
-
id: string;
|
|
3474
|
-
is_deleted: boolean;
|
|
3475
|
-
sequence_number: number;
|
|
3476
|
-
status: string | null;
|
|
3477
|
-
updated_at: string;
|
|
3478
|
-
valid_from: string | null;
|
|
3479
|
-
valid_until: string | null;
|
|
3480
|
-
};
|
|
3481
|
-
Insert: {
|
|
3482
|
-
buyer_organization_id?: string | null;
|
|
3483
|
-
connection_id: string;
|
|
3484
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3485
|
-
fetched_at?: string;
|
|
3486
|
-
floriday_id: string;
|
|
3487
|
-
id?: string;
|
|
3488
|
-
is_deleted?: boolean;
|
|
3489
|
-
sequence_number?: number;
|
|
3490
|
-
status?: string | null;
|
|
3491
|
-
updated_at?: string;
|
|
3492
|
-
valid_from?: string | null;
|
|
3493
|
-
valid_until?: string | null;
|
|
3494
|
-
};
|
|
3495
|
-
Update: {
|
|
3496
|
-
buyer_organization_id?: string | null;
|
|
3497
|
-
connection_id?: string;
|
|
3498
|
-
data?: import("../integrations/supabase/types").Json;
|
|
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
|
-
valid_from?: string | null;
|
|
3507
|
-
valid_until?: string | null;
|
|
3508
|
-
};
|
|
3509
|
-
Relationships: [{
|
|
3510
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
3511
|
-
columns: ["connection_id"];
|
|
3512
|
-
isOneToOne: false;
|
|
3513
|
-
referencedRelation: "floriday_connections";
|
|
3514
|
-
referencedColumns: ["id"];
|
|
3515
|
-
}];
|
|
3516
|
-
};
|
|
3517
3418
|
floriday_auction_letters_cache: {
|
|
3518
3419
|
Row: {
|
|
3519
3420
|
auction_letter_code: string;
|
|
@@ -5011,6 +4912,45 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
5011
4912
|
referencedColumns: ["id"];
|
|
5012
4913
|
}];
|
|
5013
4914
|
};
|
|
4915
|
+
floriday_trade_settings_customers_cache: {
|
|
4916
|
+
Row: {
|
|
4917
|
+
connection_id: string;
|
|
4918
|
+
data: import("../integrations/supabase/types").Json;
|
|
4919
|
+
fetched_at: string;
|
|
4920
|
+
floriday_id: string;
|
|
4921
|
+
id: string;
|
|
4922
|
+
is_deleted: boolean;
|
|
4923
|
+
sequence_number: number;
|
|
4924
|
+
updated_at: string;
|
|
4925
|
+
};
|
|
4926
|
+
Insert: {
|
|
4927
|
+
connection_id: string;
|
|
4928
|
+
data: import("../integrations/supabase/types").Json;
|
|
4929
|
+
fetched_at?: string;
|
|
4930
|
+
floriday_id: string;
|
|
4931
|
+
id?: string;
|
|
4932
|
+
is_deleted?: boolean;
|
|
4933
|
+
sequence_number?: number;
|
|
4934
|
+
updated_at?: string;
|
|
4935
|
+
};
|
|
4936
|
+
Update: {
|
|
4937
|
+
connection_id?: string;
|
|
4938
|
+
data?: import("../integrations/supabase/types").Json;
|
|
4939
|
+
fetched_at?: string;
|
|
4940
|
+
floriday_id?: string;
|
|
4941
|
+
id?: string;
|
|
4942
|
+
is_deleted?: boolean;
|
|
4943
|
+
sequence_number?: number;
|
|
4944
|
+
updated_at?: string;
|
|
4945
|
+
};
|
|
4946
|
+
Relationships: [{
|
|
4947
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
4948
|
+
columns: ["connection_id"];
|
|
4949
|
+
isOneToOne: false;
|
|
4950
|
+
referencedRelation: "floriday_connections";
|
|
4951
|
+
referencedColumns: ["id"];
|
|
4952
|
+
}];
|
|
4953
|
+
};
|
|
5014
4954
|
floriday_trips_cache: {
|
|
5015
4955
|
Row: {
|
|
5016
4956
|
carrier_organization_id: string | null;
|
|
@@ -7183,6 +7123,105 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7183
7123
|
};
|
|
7184
7124
|
Relationships: [];
|
|
7185
7125
|
};
|
|
7126
|
+
order_shipment_items: {
|
|
7127
|
+
Row: {
|
|
7128
|
+
created_at: string;
|
|
7129
|
+
id: string;
|
|
7130
|
+
order_item_id: string;
|
|
7131
|
+
product_id: string | null;
|
|
7132
|
+
product_name: string;
|
|
7133
|
+
quantity: number;
|
|
7134
|
+
shipment_id: string;
|
|
7135
|
+
updated_at: string;
|
|
7136
|
+
};
|
|
7137
|
+
Insert: {
|
|
7138
|
+
created_at?: string;
|
|
7139
|
+
id?: string;
|
|
7140
|
+
order_item_id: string;
|
|
7141
|
+
product_id?: string | null;
|
|
7142
|
+
product_name: string;
|
|
7143
|
+
quantity: number;
|
|
7144
|
+
shipment_id: string;
|
|
7145
|
+
updated_at?: string;
|
|
7146
|
+
};
|
|
7147
|
+
Update: {
|
|
7148
|
+
created_at?: string;
|
|
7149
|
+
id?: string;
|
|
7150
|
+
order_item_id?: string;
|
|
7151
|
+
product_id?: string | null;
|
|
7152
|
+
product_name?: string;
|
|
7153
|
+
quantity?: number;
|
|
7154
|
+
shipment_id?: string;
|
|
7155
|
+
updated_at?: string;
|
|
7156
|
+
};
|
|
7157
|
+
Relationships: [{
|
|
7158
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
7159
|
+
columns: ["order_item_id"];
|
|
7160
|
+
isOneToOne: false;
|
|
7161
|
+
referencedRelation: "order_items";
|
|
7162
|
+
referencedColumns: ["id"];
|
|
7163
|
+
}, {
|
|
7164
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
7165
|
+
columns: ["shipment_id"];
|
|
7166
|
+
isOneToOne: false;
|
|
7167
|
+
referencedRelation: "order_shipments";
|
|
7168
|
+
referencedColumns: ["id"];
|
|
7169
|
+
}];
|
|
7170
|
+
};
|
|
7171
|
+
order_shipments: {
|
|
7172
|
+
Row: {
|
|
7173
|
+
carrier_id: string | null;
|
|
7174
|
+
created_at: string;
|
|
7175
|
+
delivery_date: string | null;
|
|
7176
|
+
delivery_location_id: string | null;
|
|
7177
|
+
id: string;
|
|
7178
|
+
notes: string | null;
|
|
7179
|
+
order_id: string;
|
|
7180
|
+
shipment_number: number;
|
|
7181
|
+
shipped_at: string | null;
|
|
7182
|
+
status: string;
|
|
7183
|
+
updated_at: string;
|
|
7184
|
+
};
|
|
7185
|
+
Insert: {
|
|
7186
|
+
carrier_id?: string | null;
|
|
7187
|
+
created_at?: string;
|
|
7188
|
+
delivery_date?: string | null;
|
|
7189
|
+
delivery_location_id?: string | null;
|
|
7190
|
+
id?: string;
|
|
7191
|
+
notes?: string | null;
|
|
7192
|
+
order_id: string;
|
|
7193
|
+
shipment_number: number;
|
|
7194
|
+
shipped_at?: string | null;
|
|
7195
|
+
status?: string;
|
|
7196
|
+
updated_at?: string;
|
|
7197
|
+
};
|
|
7198
|
+
Update: {
|
|
7199
|
+
carrier_id?: string | null;
|
|
7200
|
+
created_at?: string;
|
|
7201
|
+
delivery_date?: string | null;
|
|
7202
|
+
delivery_location_id?: string | null;
|
|
7203
|
+
id?: string;
|
|
7204
|
+
notes?: string | null;
|
|
7205
|
+
order_id?: string;
|
|
7206
|
+
shipment_number?: number;
|
|
7207
|
+
shipped_at?: string | null;
|
|
7208
|
+
status?: string;
|
|
7209
|
+
updated_at?: string;
|
|
7210
|
+
};
|
|
7211
|
+
Relationships: [{
|
|
7212
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
7213
|
+
columns: ["carrier_id"];
|
|
7214
|
+
isOneToOne: false;
|
|
7215
|
+
referencedRelation: "carriers";
|
|
7216
|
+
referencedColumns: ["id"];
|
|
7217
|
+
}, {
|
|
7218
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
7219
|
+
columns: ["order_id"];
|
|
7220
|
+
isOneToOne: false;
|
|
7221
|
+
referencedRelation: "orders";
|
|
7222
|
+
referencedColumns: ["id"];
|
|
7223
|
+
}];
|
|
7224
|
+
};
|
|
7186
7225
|
orders: {
|
|
7187
7226
|
Row: {
|
|
7188
7227
|
created_at: string;
|
|
@@ -7190,8 +7229,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7190
7229
|
customer_id: string | null;
|
|
7191
7230
|
customer_name: string;
|
|
7192
7231
|
deleted_at: string | null;
|
|
7193
|
-
delivery_date: string;
|
|
7232
|
+
delivery_date: string | null;
|
|
7194
7233
|
id: string;
|
|
7234
|
+
is_reservation: boolean;
|
|
7195
7235
|
notes: string | null;
|
|
7196
7236
|
order_date: string;
|
|
7197
7237
|
order_number: string;
|
|
@@ -7208,8 +7248,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7208
7248
|
customer_id?: string | null;
|
|
7209
7249
|
customer_name?: string;
|
|
7210
7250
|
deleted_at?: string | null;
|
|
7211
|
-
delivery_date
|
|
7251
|
+
delivery_date?: string | null;
|
|
7212
7252
|
id?: string;
|
|
7253
|
+
is_reservation?: boolean;
|
|
7213
7254
|
notes?: string | null;
|
|
7214
7255
|
order_date?: string;
|
|
7215
7256
|
order_number: string;
|
|
@@ -7226,8 +7267,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7226
7267
|
customer_id?: string | null;
|
|
7227
7268
|
customer_name?: string;
|
|
7228
7269
|
deleted_at?: string | null;
|
|
7229
|
-
delivery_date?: string;
|
|
7270
|
+
delivery_date?: string | null;
|
|
7230
7271
|
id?: string;
|
|
7272
|
+
is_reservation?: boolean;
|
|
7231
7273
|
notes?: string | null;
|
|
7232
7274
|
order_date?: string;
|
|
7233
7275
|
order_number?: string;
|
|
@@ -7369,6 +7411,63 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7369
7411
|
};
|
|
7370
7412
|
Relationships: [];
|
|
7371
7413
|
};
|
|
7414
|
+
product_bom_items: {
|
|
7415
|
+
Row: {
|
|
7416
|
+
component_product_id: string | null;
|
|
7417
|
+
component_trade_item_floriday_id: string | null;
|
|
7418
|
+
created_at: string;
|
|
7419
|
+
id: string;
|
|
7420
|
+
notes: string | null;
|
|
7421
|
+
parent_product_id: string | null;
|
|
7422
|
+
parent_trade_item_floriday_id: string | null;
|
|
7423
|
+
quantity: number;
|
|
7424
|
+
sort_order: number;
|
|
7425
|
+
tenant_id: string;
|
|
7426
|
+
unit: string;
|
|
7427
|
+
updated_at: string;
|
|
7428
|
+
};
|
|
7429
|
+
Insert: {
|
|
7430
|
+
component_product_id?: string | null;
|
|
7431
|
+
component_trade_item_floriday_id?: string | null;
|
|
7432
|
+
created_at?: string;
|
|
7433
|
+
id?: string;
|
|
7434
|
+
notes?: string | null;
|
|
7435
|
+
parent_product_id?: string | null;
|
|
7436
|
+
parent_trade_item_floriday_id?: string | null;
|
|
7437
|
+
quantity?: number;
|
|
7438
|
+
sort_order?: number;
|
|
7439
|
+
tenant_id: string;
|
|
7440
|
+
unit?: string;
|
|
7441
|
+
updated_at?: string;
|
|
7442
|
+
};
|
|
7443
|
+
Update: {
|
|
7444
|
+
component_product_id?: string | null;
|
|
7445
|
+
component_trade_item_floriday_id?: string | null;
|
|
7446
|
+
created_at?: string;
|
|
7447
|
+
id?: string;
|
|
7448
|
+
notes?: string | null;
|
|
7449
|
+
parent_product_id?: string | null;
|
|
7450
|
+
parent_trade_item_floriday_id?: string | null;
|
|
7451
|
+
quantity?: number;
|
|
7452
|
+
sort_order?: number;
|
|
7453
|
+
tenant_id?: string;
|
|
7454
|
+
unit?: string;
|
|
7455
|
+
updated_at?: string;
|
|
7456
|
+
};
|
|
7457
|
+
Relationships: [{
|
|
7458
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
7459
|
+
columns: ["component_product_id"];
|
|
7460
|
+
isOneToOne: false;
|
|
7461
|
+
referencedRelation: "products";
|
|
7462
|
+
referencedColumns: ["id"];
|
|
7463
|
+
}, {
|
|
7464
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
7465
|
+
columns: ["parent_product_id"];
|
|
7466
|
+
isOneToOne: false;
|
|
7467
|
+
referencedRelation: "products";
|
|
7468
|
+
referencedColumns: ["id"];
|
|
7469
|
+
}];
|
|
7470
|
+
};
|
|
7372
7471
|
product_categories: {
|
|
7373
7472
|
Row: {
|
|
7374
7473
|
color: string;
|
|
@@ -7474,6 +7573,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7474
7573
|
id: string;
|
|
7475
7574
|
product_group_id: string;
|
|
7476
7575
|
quantity: number;
|
|
7576
|
+
sort_order: number;
|
|
7477
7577
|
trade_item_id: string;
|
|
7478
7578
|
};
|
|
7479
7579
|
Insert: {
|
|
@@ -7481,6 +7581,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7481
7581
|
id?: string;
|
|
7482
7582
|
product_group_id: string;
|
|
7483
7583
|
quantity?: number;
|
|
7584
|
+
sort_order?: number;
|
|
7484
7585
|
trade_item_id: string;
|
|
7485
7586
|
};
|
|
7486
7587
|
Update: {
|
|
@@ -7488,6 +7589,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7488
7589
|
id?: string;
|
|
7489
7590
|
product_group_id?: string;
|
|
7490
7591
|
quantity?: number;
|
|
7592
|
+
sort_order?: number;
|
|
7491
7593
|
trade_item_id?: string;
|
|
7492
7594
|
};
|
|
7493
7595
|
Relationships: [{
|
|
@@ -7502,6 +7604,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7502
7604
|
Row: {
|
|
7503
7605
|
created_at: string;
|
|
7504
7606
|
description: string | null;
|
|
7607
|
+
head_product_id: string | null;
|
|
7608
|
+
head_trade_item_floriday_id: string | null;
|
|
7505
7609
|
id: string;
|
|
7506
7610
|
is_active: boolean;
|
|
7507
7611
|
name: string;
|
|
@@ -7511,6 +7615,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7511
7615
|
Insert: {
|
|
7512
7616
|
created_at?: string;
|
|
7513
7617
|
description?: string | null;
|
|
7618
|
+
head_product_id?: string | null;
|
|
7619
|
+
head_trade_item_floriday_id?: string | null;
|
|
7514
7620
|
id?: string;
|
|
7515
7621
|
is_active?: boolean;
|
|
7516
7622
|
name: string;
|
|
@@ -7520,16 +7626,85 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7520
7626
|
Update: {
|
|
7521
7627
|
created_at?: string;
|
|
7522
7628
|
description?: string | null;
|
|
7629
|
+
head_product_id?: string | null;
|
|
7630
|
+
head_trade_item_floriday_id?: string | null;
|
|
7523
7631
|
id?: string;
|
|
7524
7632
|
is_active?: boolean;
|
|
7525
7633
|
name?: string;
|
|
7526
7634
|
tenant_id?: string;
|
|
7527
7635
|
updated_at?: string;
|
|
7528
7636
|
};
|
|
7529
|
-
Relationships: [
|
|
7637
|
+
Relationships: [{
|
|
7638
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
7639
|
+
columns: ["head_product_id"];
|
|
7640
|
+
isOneToOne: false;
|
|
7641
|
+
referencedRelation: "products";
|
|
7642
|
+
referencedColumns: ["id"];
|
|
7643
|
+
}];
|
|
7644
|
+
};
|
|
7645
|
+
product_load_settings: {
|
|
7646
|
+
Row: {
|
|
7647
|
+
created_at: string;
|
|
7648
|
+
id: string;
|
|
7649
|
+
is_package: boolean;
|
|
7650
|
+
layers_per_load_carrier: number | null;
|
|
7651
|
+
load_carrier: string | null;
|
|
7652
|
+
package_id: string | null;
|
|
7653
|
+
package_label: string | null;
|
|
7654
|
+
packages_per_layer: number | null;
|
|
7655
|
+
product_id: string | null;
|
|
7656
|
+
tenant_id: string;
|
|
7657
|
+
trade_item_floriday_id: string | null;
|
|
7658
|
+
units_per_package: number | null;
|
|
7659
|
+
updated_at: string;
|
|
7660
|
+
};
|
|
7661
|
+
Insert: {
|
|
7662
|
+
created_at?: string;
|
|
7663
|
+
id?: string;
|
|
7664
|
+
is_package?: boolean;
|
|
7665
|
+
layers_per_load_carrier?: number | null;
|
|
7666
|
+
load_carrier?: string | null;
|
|
7667
|
+
package_id?: string | null;
|
|
7668
|
+
package_label?: string | null;
|
|
7669
|
+
packages_per_layer?: number | null;
|
|
7670
|
+
product_id?: string | null;
|
|
7671
|
+
tenant_id: string;
|
|
7672
|
+
trade_item_floriday_id?: string | null;
|
|
7673
|
+
units_per_package?: number | null;
|
|
7674
|
+
updated_at?: string;
|
|
7675
|
+
};
|
|
7676
|
+
Update: {
|
|
7677
|
+
created_at?: string;
|
|
7678
|
+
id?: string;
|
|
7679
|
+
is_package?: boolean;
|
|
7680
|
+
layers_per_load_carrier?: number | null;
|
|
7681
|
+
load_carrier?: string | null;
|
|
7682
|
+
package_id?: string | null;
|
|
7683
|
+
package_label?: string | null;
|
|
7684
|
+
packages_per_layer?: number | null;
|
|
7685
|
+
product_id?: string | null;
|
|
7686
|
+
tenant_id?: string;
|
|
7687
|
+
trade_item_floriday_id?: string | null;
|
|
7688
|
+
units_per_package?: number | null;
|
|
7689
|
+
updated_at?: string;
|
|
7690
|
+
};
|
|
7691
|
+
Relationships: [{
|
|
7692
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
7693
|
+
columns: ["package_id"];
|
|
7694
|
+
isOneToOne: false;
|
|
7695
|
+
referencedRelation: "packages";
|
|
7696
|
+
referencedColumns: ["id"];
|
|
7697
|
+
}, {
|
|
7698
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
7699
|
+
columns: ["product_id"];
|
|
7700
|
+
isOneToOne: false;
|
|
7701
|
+
referencedRelation: "products";
|
|
7702
|
+
referencedColumns: ["id"];
|
|
7703
|
+
}];
|
|
7530
7704
|
};
|
|
7531
7705
|
products: {
|
|
7532
7706
|
Row: {
|
|
7707
|
+
article_number: string | null;
|
|
7533
7708
|
barcode: string | null;
|
|
7534
7709
|
batch: string;
|
|
7535
7710
|
crates_per_layer: number;
|
|
@@ -7553,6 +7728,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7553
7728
|
weight: string | null;
|
|
7554
7729
|
};
|
|
7555
7730
|
Insert: {
|
|
7731
|
+
article_number?: string | null;
|
|
7556
7732
|
barcode?: string | null;
|
|
7557
7733
|
batch: string;
|
|
7558
7734
|
crates_per_layer?: number;
|
|
@@ -7576,6 +7752,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7576
7752
|
weight?: string | null;
|
|
7577
7753
|
};
|
|
7578
7754
|
Update: {
|
|
7755
|
+
article_number?: string | null;
|
|
7579
7756
|
barcode?: string | null;
|
|
7580
7757
|
batch?: string;
|
|
7581
7758
|
crates_per_layer?: number;
|
|
@@ -8489,8 +8666,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
8489
8666
|
order_id: string | null;
|
|
8490
8667
|
order_item_id: string | null;
|
|
8491
8668
|
order_source: string | null;
|
|
8669
|
+
parent_trade_item_key: string | null;
|
|
8492
8670
|
physical_after: number | null;
|
|
8493
8671
|
physical_before: number | null;
|
|
8672
|
+
production_batch_id: string | null;
|
|
8494
8673
|
qty_delta: number;
|
|
8495
8674
|
reason: string | null;
|
|
8496
8675
|
reserved_after: number | null;
|
|
@@ -8506,8 +8685,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
8506
8685
|
order_id?: string | null;
|
|
8507
8686
|
order_item_id?: string | null;
|
|
8508
8687
|
order_source?: string | null;
|
|
8688
|
+
parent_trade_item_key?: string | null;
|
|
8509
8689
|
physical_after?: number | null;
|
|
8510
8690
|
physical_before?: number | null;
|
|
8691
|
+
production_batch_id?: string | null;
|
|
8511
8692
|
qty_delta: number;
|
|
8512
8693
|
reason?: string | null;
|
|
8513
8694
|
reserved_after?: number | null;
|
|
@@ -8523,8 +8704,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
8523
8704
|
order_id?: string | null;
|
|
8524
8705
|
order_item_id?: string | null;
|
|
8525
8706
|
order_source?: string | null;
|
|
8707
|
+
parent_trade_item_key?: string | null;
|
|
8526
8708
|
physical_after?: number | null;
|
|
8527
8709
|
physical_before?: number | null;
|
|
8710
|
+
production_batch_id?: string | null;
|
|
8528
8711
|
qty_delta?: number;
|
|
8529
8712
|
reason?: string | null;
|
|
8530
8713
|
reserved_after?: number | null;
|
|
@@ -8983,7 +9166,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
8983
9166
|
twinfield_connections: {
|
|
8984
9167
|
Row: {
|
|
8985
9168
|
access_token: string | null;
|
|
8986
|
-
client_id: string;
|
|
9169
|
+
client_id: string | null;
|
|
8987
9170
|
client_secret: string | null;
|
|
8988
9171
|
cluster_uri: string | null;
|
|
8989
9172
|
company_code: string | null;
|
|
@@ -8995,7 +9178,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
8995
9178
|
is_active: boolean;
|
|
8996
9179
|
label: string | null;
|
|
8997
9180
|
office_code: string | null;
|
|
8998
|
-
redirect_uri: string;
|
|
9181
|
+
redirect_uri: string | null;
|
|
8999
9182
|
refresh_token: string | null;
|
|
9000
9183
|
token_expires_at: string | null;
|
|
9001
9184
|
updated_at: string;
|
|
@@ -9003,7 +9186,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
9003
9186
|
};
|
|
9004
9187
|
Insert: {
|
|
9005
9188
|
access_token?: string | null;
|
|
9006
|
-
client_id
|
|
9189
|
+
client_id?: string | null;
|
|
9007
9190
|
client_secret?: string | null;
|
|
9008
9191
|
cluster_uri?: string | null;
|
|
9009
9192
|
company_code?: string | null;
|
|
@@ -9015,7 +9198,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
9015
9198
|
is_active?: boolean;
|
|
9016
9199
|
label?: string | null;
|
|
9017
9200
|
office_code?: string | null;
|
|
9018
|
-
redirect_uri
|
|
9201
|
+
redirect_uri?: string | null;
|
|
9019
9202
|
refresh_token?: string | null;
|
|
9020
9203
|
token_expires_at?: string | null;
|
|
9021
9204
|
updated_at?: string;
|
|
@@ -9023,7 +9206,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
9023
9206
|
};
|
|
9024
9207
|
Update: {
|
|
9025
9208
|
access_token?: string | null;
|
|
9026
|
-
client_id?: string;
|
|
9209
|
+
client_id?: string | null;
|
|
9027
9210
|
client_secret?: string | null;
|
|
9028
9211
|
cluster_uri?: string | null;
|
|
9029
9212
|
company_code?: string | null;
|
|
@@ -9035,7 +9218,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
9035
9218
|
is_active?: boolean;
|
|
9036
9219
|
label?: string | null;
|
|
9037
9220
|
office_code?: string | null;
|
|
9038
|
-
redirect_uri?: string;
|
|
9221
|
+
redirect_uri?: string | null;
|
|
9039
9222
|
refresh_token?: string | null;
|
|
9040
9223
|
token_expires_at?: string | null;
|
|
9041
9224
|
updated_at?: string;
|
|
@@ -10225,27 +10408,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
10225
10408
|
status: string | null;
|
|
10226
10409
|
synced_at: string | null;
|
|
10227
10410
|
total_excl: number | null;
|
|
10228
|
-
total_incl: number | null;
|
|
10229
|
-
total_vat: number | null;
|
|
10230
|
-
};
|
|
10231
|
-
Relationships: [];
|
|
10232
|
-
};
|
|
10233
|
-
floriday_customer_discounts: {
|
|
10234
|
-
Row: {
|
|
10235
|
-
base_price: number | null;
|
|
10236
|
-
buyer_organization_id: string | null;
|
|
10237
|
-
currency: string | null;
|
|
10238
|
-
discount_type: string | null;
|
|
10239
|
-
discount_value: number | null;
|
|
10240
|
-
min_quantity: number | null;
|
|
10241
|
-
net_price: number | null;
|
|
10242
|
-
product_group_id: string | null;
|
|
10243
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
10244
|
-
source: string | null;
|
|
10245
|
-
source_id: string | null;
|
|
10246
|
-
trade_item_id: string | null;
|
|
10247
|
-
valid_from: string | null;
|
|
10248
|
-
valid_until: string | null;
|
|
10411
|
+
total_incl: number | null;
|
|
10412
|
+
total_vat: number | null;
|
|
10249
10413
|
};
|
|
10250
10414
|
Relationships: [];
|
|
10251
10415
|
};
|
|
@@ -10667,6 +10831,28 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
10667
10831
|
Args: never;
|
|
10668
10832
|
Returns: undefined;
|
|
10669
10833
|
};
|
|
10834
|
+
consume_bom_for_production: {
|
|
10835
|
+
Args: {
|
|
10836
|
+
p_connection_id: string;
|
|
10837
|
+
p_parent_id: string;
|
|
10838
|
+
p_parent_key: string;
|
|
10839
|
+
p_parent_kind: string;
|
|
10840
|
+
p_quantity: number;
|
|
10841
|
+
p_user_id: string;
|
|
10842
|
+
};
|
|
10843
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10844
|
+
} | {
|
|
10845
|
+
Args: {
|
|
10846
|
+
p_batch_id?: string;
|
|
10847
|
+
p_connection_id: string;
|
|
10848
|
+
p_parent_id: string;
|
|
10849
|
+
p_parent_key: string;
|
|
10850
|
+
p_parent_kind: string;
|
|
10851
|
+
p_quantity: number;
|
|
10852
|
+
p_user_id: string;
|
|
10853
|
+
};
|
|
10854
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10855
|
+
};
|
|
10670
10856
|
consume_floriday_rate_limit: {
|
|
10671
10857
|
Args: {
|
|
10672
10858
|
p_bucket: string;
|
|
@@ -10718,6 +10904,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
10718
10904
|
table_name: string;
|
|
10719
10905
|
}[];
|
|
10720
10906
|
};
|
|
10907
|
+
delete_samenstelling: {
|
|
10908
|
+
Args: {
|
|
10909
|
+
p_parent_id: string;
|
|
10910
|
+
p_parent_kind: string;
|
|
10911
|
+
};
|
|
10912
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10913
|
+
};
|
|
10721
10914
|
dispatch_carrier_signups_sql: {
|
|
10722
10915
|
Args: {
|
|
10723
10916
|
_catchup?: string;
|
|
@@ -10878,19 +11071,6 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
10878
11071
|
resource: string;
|
|
10879
11072
|
}[];
|
|
10880
11073
|
};
|
|
10881
|
-
get_floriday_agreements_active: {
|
|
10882
|
-
Args: {
|
|
10883
|
-
p_on_date?: string;
|
|
10884
|
-
};
|
|
10885
|
-
Returns: {
|
|
10886
|
-
buyer_organization_id: string;
|
|
10887
|
-
data: import("../integrations/supabase/types").Json;
|
|
10888
|
-
floriday_id: string;
|
|
10889
|
-
status: string;
|
|
10890
|
-
valid_from: string;
|
|
10891
|
-
valid_until: string;
|
|
10892
|
-
}[];
|
|
10893
|
-
};
|
|
10894
11074
|
get_floriday_clock_supplies_window: {
|
|
10895
11075
|
Args: {
|
|
10896
11076
|
p_from: string;
|
|
@@ -10963,6 +11143,21 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
10963
11143
|
minutes_since_success: number;
|
|
10964
11144
|
}[];
|
|
10965
11145
|
};
|
|
11146
|
+
get_group_allocation_keys: {
|
|
11147
|
+
Args: {
|
|
11148
|
+
p_product_id: string;
|
|
11149
|
+
};
|
|
11150
|
+
Returns: {
|
|
11151
|
+
k: string;
|
|
11152
|
+
ord: number;
|
|
11153
|
+
}[];
|
|
11154
|
+
};
|
|
11155
|
+
get_group_head_key: {
|
|
11156
|
+
Args: {
|
|
11157
|
+
p_group_id: string;
|
|
11158
|
+
};
|
|
11159
|
+
Returns: string;
|
|
11160
|
+
};
|
|
10966
11161
|
get_offer_by_link_code: {
|
|
10967
11162
|
Args: {
|
|
10968
11163
|
p_code: string;
|
|
@@ -11073,6 +11268,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
11073
11268
|
};
|
|
11074
11269
|
Returns: undefined;
|
|
11075
11270
|
};
|
|
11271
|
+
mark_shipment_shipped: {
|
|
11272
|
+
Args: {
|
|
11273
|
+
p_shipment_id: string;
|
|
11274
|
+
};
|
|
11275
|
+
Returns: undefined;
|
|
11276
|
+
};
|
|
11076
11277
|
next_manufacture_partij: {
|
|
11077
11278
|
Args: {
|
|
11078
11279
|
_tenant_id: string;
|
|
@@ -11157,6 +11358,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
11157
11358
|
};
|
|
11158
11359
|
Returns: undefined;
|
|
11159
11360
|
};
|
|
11361
|
+
produce_designed_product: {
|
|
11362
|
+
Args: {
|
|
11363
|
+
p_parent_id: string;
|
|
11364
|
+
p_parent_kind: string;
|
|
11365
|
+
p_quantity: number;
|
|
11366
|
+
};
|
|
11367
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11368
|
+
};
|
|
11160
11369
|
promote_trade_item_key: {
|
|
11161
11370
|
Args: {
|
|
11162
11371
|
p_new: string;
|
|
@@ -11164,6 +11373,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
11164
11373
|
};
|
|
11165
11374
|
Returns: undefined;
|
|
11166
11375
|
};
|
|
11376
|
+
recompute_all_reserved_stock: {
|
|
11377
|
+
Args: never;
|
|
11378
|
+
Returns: undefined;
|
|
11379
|
+
};
|
|
11167
11380
|
recompute_order_status: {
|
|
11168
11381
|
Args: {
|
|
11169
11382
|
p_order_id: string;
|
|
@@ -11213,27 +11426,45 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
11213
11426
|
};
|
|
11214
11427
|
Returns: undefined;
|
|
11215
11428
|
};
|
|
11429
|
+
resolve_group_allocation: {
|
|
11430
|
+
Args: {
|
|
11431
|
+
_needed: number;
|
|
11432
|
+
_product_group_id: string;
|
|
11433
|
+
};
|
|
11434
|
+
Returns: {
|
|
11435
|
+
allocated: number;
|
|
11436
|
+
trade_item_id: string;
|
|
11437
|
+
}[];
|
|
11438
|
+
};
|
|
11439
|
+
resolve_group_member_stock_key: {
|
|
11440
|
+
Args: {
|
|
11441
|
+
p_trade_item_id: string;
|
|
11442
|
+
};
|
|
11443
|
+
Returns: string;
|
|
11444
|
+
};
|
|
11216
11445
|
resolve_product_id_for_item: {
|
|
11217
11446
|
Args: {
|
|
11218
11447
|
p_product_name: string;
|
|
11219
11448
|
};
|
|
11220
11449
|
Returns: string;
|
|
11221
11450
|
};
|
|
11222
|
-
|
|
11451
|
+
resolve_stock_trade_item_key: {
|
|
11223
11452
|
Args: {
|
|
11224
|
-
|
|
11225
|
-
p_url: string;
|
|
11453
|
+
p_product_id: string;
|
|
11226
11454
|
};
|
|
11227
|
-
Returns:
|
|
11455
|
+
Returns: string;
|
|
11228
11456
|
};
|
|
11229
|
-
|
|
11457
|
+
reverse_production: {
|
|
11230
11458
|
Args: {
|
|
11231
|
-
|
|
11232
|
-
|
|
11459
|
+
p_connection_id?: string;
|
|
11460
|
+
p_parent_key: string;
|
|
11461
|
+
p_quantity: number;
|
|
11462
|
+
p_reason?: string;
|
|
11463
|
+
p_user_id?: string;
|
|
11233
11464
|
};
|
|
11234
|
-
Returns:
|
|
11465
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11235
11466
|
};
|
|
11236
|
-
|
|
11467
|
+
schedule_floriday_additional_services_sync: {
|
|
11237
11468
|
Args: {
|
|
11238
11469
|
p_apikey: string;
|
|
11239
11470
|
p_url: string;
|
|
@@ -14979,105 +15210,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
14979
15210
|
referencedColumns: ["id"];
|
|
14980
15211
|
}];
|
|
14981
15212
|
};
|
|
14982
|
-
floriday_agreement_calloffs_cache: {
|
|
14983
|
-
Row: {
|
|
14984
|
-
agreement_id: string | null;
|
|
14985
|
-
connection_id: string;
|
|
14986
|
-
data: import("../integrations/supabase/types").Json;
|
|
14987
|
-
delivery_date: string | null;
|
|
14988
|
-
fetched_at: string;
|
|
14989
|
-
floriday_id: string;
|
|
14990
|
-
id: string;
|
|
14991
|
-
is_deleted: boolean;
|
|
14992
|
-
sequence_number: number;
|
|
14993
|
-
status: string | null;
|
|
14994
|
-
updated_at: string;
|
|
14995
|
-
};
|
|
14996
|
-
Insert: {
|
|
14997
|
-
agreement_id?: string | null;
|
|
14998
|
-
connection_id: string;
|
|
14999
|
-
data?: import("../integrations/supabase/types").Json;
|
|
15000
|
-
delivery_date?: string | null;
|
|
15001
|
-
fetched_at?: string;
|
|
15002
|
-
floriday_id: string;
|
|
15003
|
-
id?: string;
|
|
15004
|
-
is_deleted?: boolean;
|
|
15005
|
-
sequence_number?: number;
|
|
15006
|
-
status?: string | null;
|
|
15007
|
-
updated_at?: string;
|
|
15008
|
-
};
|
|
15009
|
-
Update: {
|
|
15010
|
-
agreement_id?: string | null;
|
|
15011
|
-
connection_id?: string;
|
|
15012
|
-
data?: import("../integrations/supabase/types").Json;
|
|
15013
|
-
delivery_date?: string | null;
|
|
15014
|
-
fetched_at?: string;
|
|
15015
|
-
floriday_id?: string;
|
|
15016
|
-
id?: string;
|
|
15017
|
-
is_deleted?: boolean;
|
|
15018
|
-
sequence_number?: number;
|
|
15019
|
-
status?: string | null;
|
|
15020
|
-
updated_at?: string;
|
|
15021
|
-
};
|
|
15022
|
-
Relationships: [{
|
|
15023
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
15024
|
-
columns: ["connection_id"];
|
|
15025
|
-
isOneToOne: false;
|
|
15026
|
-
referencedRelation: "floriday_connections";
|
|
15027
|
-
referencedColumns: ["id"];
|
|
15028
|
-
}];
|
|
15029
|
-
};
|
|
15030
|
-
floriday_agreements_cache: {
|
|
15031
|
-
Row: {
|
|
15032
|
-
buyer_organization_id: string | null;
|
|
15033
|
-
connection_id: string;
|
|
15034
|
-
data: import("../integrations/supabase/types").Json;
|
|
15035
|
-
fetched_at: string;
|
|
15036
|
-
floriday_id: string;
|
|
15037
|
-
id: string;
|
|
15038
|
-
is_deleted: boolean;
|
|
15039
|
-
sequence_number: number;
|
|
15040
|
-
status: string | null;
|
|
15041
|
-
updated_at: string;
|
|
15042
|
-
valid_from: string | null;
|
|
15043
|
-
valid_until: string | null;
|
|
15044
|
-
};
|
|
15045
|
-
Insert: {
|
|
15046
|
-
buyer_organization_id?: string | null;
|
|
15047
|
-
connection_id: string;
|
|
15048
|
-
data?: import("../integrations/supabase/types").Json;
|
|
15049
|
-
fetched_at?: string;
|
|
15050
|
-
floriday_id: string;
|
|
15051
|
-
id?: string;
|
|
15052
|
-
is_deleted?: boolean;
|
|
15053
|
-
sequence_number?: number;
|
|
15054
|
-
status?: string | null;
|
|
15055
|
-
updated_at?: string;
|
|
15056
|
-
valid_from?: string | null;
|
|
15057
|
-
valid_until?: string | null;
|
|
15058
|
-
};
|
|
15059
|
-
Update: {
|
|
15060
|
-
buyer_organization_id?: string | null;
|
|
15061
|
-
connection_id?: string;
|
|
15062
|
-
data?: import("../integrations/supabase/types").Json;
|
|
15063
|
-
fetched_at?: string;
|
|
15064
|
-
floriday_id?: string;
|
|
15065
|
-
id?: string;
|
|
15066
|
-
is_deleted?: boolean;
|
|
15067
|
-
sequence_number?: number;
|
|
15068
|
-
status?: string | null;
|
|
15069
|
-
updated_at?: string;
|
|
15070
|
-
valid_from?: string | null;
|
|
15071
|
-
valid_until?: string | null;
|
|
15072
|
-
};
|
|
15073
|
-
Relationships: [{
|
|
15074
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
15075
|
-
columns: ["connection_id"];
|
|
15076
|
-
isOneToOne: false;
|
|
15077
|
-
referencedRelation: "floriday_connections";
|
|
15078
|
-
referencedColumns: ["id"];
|
|
15079
|
-
}];
|
|
15080
|
-
};
|
|
15081
15213
|
floriday_auction_letters_cache: {
|
|
15082
15214
|
Row: {
|
|
15083
15215
|
auction_letter_code: string;
|
|
@@ -16575,6 +16707,45 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
16575
16707
|
referencedColumns: ["id"];
|
|
16576
16708
|
}];
|
|
16577
16709
|
};
|
|
16710
|
+
floriday_trade_settings_customers_cache: {
|
|
16711
|
+
Row: {
|
|
16712
|
+
connection_id: string;
|
|
16713
|
+
data: import("../integrations/supabase/types").Json;
|
|
16714
|
+
fetched_at: string;
|
|
16715
|
+
floriday_id: string;
|
|
16716
|
+
id: string;
|
|
16717
|
+
is_deleted: boolean;
|
|
16718
|
+
sequence_number: number;
|
|
16719
|
+
updated_at: string;
|
|
16720
|
+
};
|
|
16721
|
+
Insert: {
|
|
16722
|
+
connection_id: string;
|
|
16723
|
+
data: import("../integrations/supabase/types").Json;
|
|
16724
|
+
fetched_at?: string;
|
|
16725
|
+
floriday_id: string;
|
|
16726
|
+
id?: string;
|
|
16727
|
+
is_deleted?: boolean;
|
|
16728
|
+
sequence_number?: number;
|
|
16729
|
+
updated_at?: string;
|
|
16730
|
+
};
|
|
16731
|
+
Update: {
|
|
16732
|
+
connection_id?: string;
|
|
16733
|
+
data?: import("../integrations/supabase/types").Json;
|
|
16734
|
+
fetched_at?: string;
|
|
16735
|
+
floriday_id?: string;
|
|
16736
|
+
id?: string;
|
|
16737
|
+
is_deleted?: boolean;
|
|
16738
|
+
sequence_number?: number;
|
|
16739
|
+
updated_at?: string;
|
|
16740
|
+
};
|
|
16741
|
+
Relationships: [{
|
|
16742
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
16743
|
+
columns: ["connection_id"];
|
|
16744
|
+
isOneToOne: false;
|
|
16745
|
+
referencedRelation: "floriday_connections";
|
|
16746
|
+
referencedColumns: ["id"];
|
|
16747
|
+
}];
|
|
16748
|
+
};
|
|
16578
16749
|
floriday_trips_cache: {
|
|
16579
16750
|
Row: {
|
|
16580
16751
|
carrier_organization_id: string | null;
|
|
@@ -18684,68 +18855,167 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
18684
18855
|
};
|
|
18685
18856
|
Relationships: [];
|
|
18686
18857
|
};
|
|
18687
|
-
order_items: {
|
|
18858
|
+
order_items: {
|
|
18859
|
+
Row: {
|
|
18860
|
+
created_at: string;
|
|
18861
|
+
id: string;
|
|
18862
|
+
order_id: string;
|
|
18863
|
+
product_id: string | null;
|
|
18864
|
+
product_name: string;
|
|
18865
|
+
quantity: number;
|
|
18866
|
+
unit: string;
|
|
18867
|
+
unit_price: number | null;
|
|
18868
|
+
};
|
|
18869
|
+
Insert: {
|
|
18870
|
+
created_at?: string;
|
|
18871
|
+
id?: string;
|
|
18872
|
+
order_id: string;
|
|
18873
|
+
product_id?: string | null;
|
|
18874
|
+
product_name: string;
|
|
18875
|
+
quantity?: number;
|
|
18876
|
+
unit?: string;
|
|
18877
|
+
unit_price?: number | null;
|
|
18878
|
+
};
|
|
18879
|
+
Update: {
|
|
18880
|
+
created_at?: string;
|
|
18881
|
+
id?: string;
|
|
18882
|
+
order_id?: string;
|
|
18883
|
+
product_id?: string | null;
|
|
18884
|
+
product_name?: string;
|
|
18885
|
+
quantity?: number;
|
|
18886
|
+
unit?: string;
|
|
18887
|
+
unit_price?: number | null;
|
|
18888
|
+
};
|
|
18889
|
+
Relationships: [{
|
|
18890
|
+
foreignKeyName: "order_items_order_id_fkey";
|
|
18891
|
+
columns: ["order_id"];
|
|
18892
|
+
isOneToOne: false;
|
|
18893
|
+
referencedRelation: "orders";
|
|
18894
|
+
referencedColumns: ["id"];
|
|
18895
|
+
}, {
|
|
18896
|
+
foreignKeyName: "order_items_product_id_fkey";
|
|
18897
|
+
columns: ["product_id"];
|
|
18898
|
+
isOneToOne: false;
|
|
18899
|
+
referencedRelation: "products";
|
|
18900
|
+
referencedColumns: ["id"];
|
|
18901
|
+
}];
|
|
18902
|
+
};
|
|
18903
|
+
order_number_counters: {
|
|
18904
|
+
Row: {
|
|
18905
|
+
last_value: number;
|
|
18906
|
+
updated_at: string;
|
|
18907
|
+
year: number;
|
|
18908
|
+
};
|
|
18909
|
+
Insert: {
|
|
18910
|
+
last_value?: number;
|
|
18911
|
+
updated_at?: string;
|
|
18912
|
+
year: number;
|
|
18913
|
+
};
|
|
18914
|
+
Update: {
|
|
18915
|
+
last_value?: number;
|
|
18916
|
+
updated_at?: string;
|
|
18917
|
+
year?: number;
|
|
18918
|
+
};
|
|
18919
|
+
Relationships: [];
|
|
18920
|
+
};
|
|
18921
|
+
order_shipment_items: {
|
|
18688
18922
|
Row: {
|
|
18689
18923
|
created_at: string;
|
|
18690
18924
|
id: string;
|
|
18691
|
-
|
|
18925
|
+
order_item_id: string;
|
|
18692
18926
|
product_id: string | null;
|
|
18693
18927
|
product_name: string;
|
|
18694
18928
|
quantity: number;
|
|
18695
|
-
|
|
18696
|
-
|
|
18929
|
+
shipment_id: string;
|
|
18930
|
+
updated_at: string;
|
|
18697
18931
|
};
|
|
18698
18932
|
Insert: {
|
|
18699
18933
|
created_at?: string;
|
|
18700
18934
|
id?: string;
|
|
18701
|
-
|
|
18935
|
+
order_item_id: string;
|
|
18702
18936
|
product_id?: string | null;
|
|
18703
18937
|
product_name: string;
|
|
18704
|
-
quantity
|
|
18705
|
-
|
|
18706
|
-
|
|
18938
|
+
quantity: number;
|
|
18939
|
+
shipment_id: string;
|
|
18940
|
+
updated_at?: string;
|
|
18707
18941
|
};
|
|
18708
18942
|
Update: {
|
|
18709
18943
|
created_at?: string;
|
|
18710
18944
|
id?: string;
|
|
18711
|
-
|
|
18945
|
+
order_item_id?: string;
|
|
18712
18946
|
product_id?: string | null;
|
|
18713
18947
|
product_name?: string;
|
|
18714
18948
|
quantity?: number;
|
|
18715
|
-
|
|
18716
|
-
|
|
18949
|
+
shipment_id?: string;
|
|
18950
|
+
updated_at?: string;
|
|
18717
18951
|
};
|
|
18718
18952
|
Relationships: [{
|
|
18719
|
-
foreignKeyName: "
|
|
18720
|
-
columns: ["
|
|
18953
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
18954
|
+
columns: ["order_item_id"];
|
|
18721
18955
|
isOneToOne: false;
|
|
18722
|
-
referencedRelation: "
|
|
18956
|
+
referencedRelation: "order_items";
|
|
18723
18957
|
referencedColumns: ["id"];
|
|
18724
18958
|
}, {
|
|
18725
|
-
foreignKeyName: "
|
|
18726
|
-
columns: ["
|
|
18959
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
18960
|
+
columns: ["shipment_id"];
|
|
18727
18961
|
isOneToOne: false;
|
|
18728
|
-
referencedRelation: "
|
|
18962
|
+
referencedRelation: "order_shipments";
|
|
18729
18963
|
referencedColumns: ["id"];
|
|
18730
18964
|
}];
|
|
18731
18965
|
};
|
|
18732
|
-
|
|
18966
|
+
order_shipments: {
|
|
18733
18967
|
Row: {
|
|
18734
|
-
|
|
18968
|
+
carrier_id: string | null;
|
|
18969
|
+
created_at: string;
|
|
18970
|
+
delivery_date: string | null;
|
|
18971
|
+
delivery_location_id: string | null;
|
|
18972
|
+
id: string;
|
|
18973
|
+
notes: string | null;
|
|
18974
|
+
order_id: string;
|
|
18975
|
+
shipment_number: number;
|
|
18976
|
+
shipped_at: string | null;
|
|
18977
|
+
status: string;
|
|
18735
18978
|
updated_at: string;
|
|
18736
|
-
year: number;
|
|
18737
18979
|
};
|
|
18738
18980
|
Insert: {
|
|
18739
|
-
|
|
18981
|
+
carrier_id?: string | null;
|
|
18982
|
+
created_at?: string;
|
|
18983
|
+
delivery_date?: string | null;
|
|
18984
|
+
delivery_location_id?: string | null;
|
|
18985
|
+
id?: string;
|
|
18986
|
+
notes?: string | null;
|
|
18987
|
+
order_id: string;
|
|
18988
|
+
shipment_number: number;
|
|
18989
|
+
shipped_at?: string | null;
|
|
18990
|
+
status?: string;
|
|
18740
18991
|
updated_at?: string;
|
|
18741
|
-
year: number;
|
|
18742
18992
|
};
|
|
18743
18993
|
Update: {
|
|
18744
|
-
|
|
18994
|
+
carrier_id?: string | null;
|
|
18995
|
+
created_at?: string;
|
|
18996
|
+
delivery_date?: string | null;
|
|
18997
|
+
delivery_location_id?: string | null;
|
|
18998
|
+
id?: string;
|
|
18999
|
+
notes?: string | null;
|
|
19000
|
+
order_id?: string;
|
|
19001
|
+
shipment_number?: number;
|
|
19002
|
+
shipped_at?: string | null;
|
|
19003
|
+
status?: string;
|
|
18745
19004
|
updated_at?: string;
|
|
18746
|
-
year?: number;
|
|
18747
19005
|
};
|
|
18748
|
-
Relationships: [
|
|
19006
|
+
Relationships: [{
|
|
19007
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
19008
|
+
columns: ["carrier_id"];
|
|
19009
|
+
isOneToOne: false;
|
|
19010
|
+
referencedRelation: "carriers";
|
|
19011
|
+
referencedColumns: ["id"];
|
|
19012
|
+
}, {
|
|
19013
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
19014
|
+
columns: ["order_id"];
|
|
19015
|
+
isOneToOne: false;
|
|
19016
|
+
referencedRelation: "orders";
|
|
19017
|
+
referencedColumns: ["id"];
|
|
19018
|
+
}];
|
|
18749
19019
|
};
|
|
18750
19020
|
orders: {
|
|
18751
19021
|
Row: {
|
|
@@ -18754,8 +19024,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
18754
19024
|
customer_id: string | null;
|
|
18755
19025
|
customer_name: string;
|
|
18756
19026
|
deleted_at: string | null;
|
|
18757
|
-
delivery_date: string;
|
|
19027
|
+
delivery_date: string | null;
|
|
18758
19028
|
id: string;
|
|
19029
|
+
is_reservation: boolean;
|
|
18759
19030
|
notes: string | null;
|
|
18760
19031
|
order_date: string;
|
|
18761
19032
|
order_number: string;
|
|
@@ -18772,8 +19043,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
18772
19043
|
customer_id?: string | null;
|
|
18773
19044
|
customer_name?: string;
|
|
18774
19045
|
deleted_at?: string | null;
|
|
18775
|
-
delivery_date
|
|
19046
|
+
delivery_date?: string | null;
|
|
18776
19047
|
id?: string;
|
|
19048
|
+
is_reservation?: boolean;
|
|
18777
19049
|
notes?: string | null;
|
|
18778
19050
|
order_date?: string;
|
|
18779
19051
|
order_number: string;
|
|
@@ -18790,8 +19062,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
18790
19062
|
customer_id?: string | null;
|
|
18791
19063
|
customer_name?: string;
|
|
18792
19064
|
deleted_at?: string | null;
|
|
18793
|
-
delivery_date?: string;
|
|
19065
|
+
delivery_date?: string | null;
|
|
18794
19066
|
id?: string;
|
|
19067
|
+
is_reservation?: boolean;
|
|
18795
19068
|
notes?: string | null;
|
|
18796
19069
|
order_date?: string;
|
|
18797
19070
|
order_number?: string;
|
|
@@ -18933,6 +19206,63 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
18933
19206
|
};
|
|
18934
19207
|
Relationships: [];
|
|
18935
19208
|
};
|
|
19209
|
+
product_bom_items: {
|
|
19210
|
+
Row: {
|
|
19211
|
+
component_product_id: string | null;
|
|
19212
|
+
component_trade_item_floriday_id: string | null;
|
|
19213
|
+
created_at: string;
|
|
19214
|
+
id: string;
|
|
19215
|
+
notes: string | null;
|
|
19216
|
+
parent_product_id: string | null;
|
|
19217
|
+
parent_trade_item_floriday_id: string | null;
|
|
19218
|
+
quantity: number;
|
|
19219
|
+
sort_order: number;
|
|
19220
|
+
tenant_id: string;
|
|
19221
|
+
unit: string;
|
|
19222
|
+
updated_at: string;
|
|
19223
|
+
};
|
|
19224
|
+
Insert: {
|
|
19225
|
+
component_product_id?: string | null;
|
|
19226
|
+
component_trade_item_floriday_id?: string | null;
|
|
19227
|
+
created_at?: string;
|
|
19228
|
+
id?: string;
|
|
19229
|
+
notes?: string | null;
|
|
19230
|
+
parent_product_id?: string | null;
|
|
19231
|
+
parent_trade_item_floriday_id?: string | null;
|
|
19232
|
+
quantity?: number;
|
|
19233
|
+
sort_order?: number;
|
|
19234
|
+
tenant_id: string;
|
|
19235
|
+
unit?: string;
|
|
19236
|
+
updated_at?: string;
|
|
19237
|
+
};
|
|
19238
|
+
Update: {
|
|
19239
|
+
component_product_id?: string | null;
|
|
19240
|
+
component_trade_item_floriday_id?: string | null;
|
|
19241
|
+
created_at?: string;
|
|
19242
|
+
id?: string;
|
|
19243
|
+
notes?: string | null;
|
|
19244
|
+
parent_product_id?: string | null;
|
|
19245
|
+
parent_trade_item_floriday_id?: string | null;
|
|
19246
|
+
quantity?: number;
|
|
19247
|
+
sort_order?: number;
|
|
19248
|
+
tenant_id?: string;
|
|
19249
|
+
unit?: string;
|
|
19250
|
+
updated_at?: string;
|
|
19251
|
+
};
|
|
19252
|
+
Relationships: [{
|
|
19253
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
19254
|
+
columns: ["component_product_id"];
|
|
19255
|
+
isOneToOne: false;
|
|
19256
|
+
referencedRelation: "products";
|
|
19257
|
+
referencedColumns: ["id"];
|
|
19258
|
+
}, {
|
|
19259
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
19260
|
+
columns: ["parent_product_id"];
|
|
19261
|
+
isOneToOne: false;
|
|
19262
|
+
referencedRelation: "products";
|
|
19263
|
+
referencedColumns: ["id"];
|
|
19264
|
+
}];
|
|
19265
|
+
};
|
|
18936
19266
|
product_categories: {
|
|
18937
19267
|
Row: {
|
|
18938
19268
|
color: string;
|
|
@@ -19038,6 +19368,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19038
19368
|
id: string;
|
|
19039
19369
|
product_group_id: string;
|
|
19040
19370
|
quantity: number;
|
|
19371
|
+
sort_order: number;
|
|
19041
19372
|
trade_item_id: string;
|
|
19042
19373
|
};
|
|
19043
19374
|
Insert: {
|
|
@@ -19045,6 +19376,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19045
19376
|
id?: string;
|
|
19046
19377
|
product_group_id: string;
|
|
19047
19378
|
quantity?: number;
|
|
19379
|
+
sort_order?: number;
|
|
19048
19380
|
trade_item_id: string;
|
|
19049
19381
|
};
|
|
19050
19382
|
Update: {
|
|
@@ -19052,6 +19384,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19052
19384
|
id?: string;
|
|
19053
19385
|
product_group_id?: string;
|
|
19054
19386
|
quantity?: number;
|
|
19387
|
+
sort_order?: number;
|
|
19055
19388
|
trade_item_id?: string;
|
|
19056
19389
|
};
|
|
19057
19390
|
Relationships: [{
|
|
@@ -19066,6 +19399,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19066
19399
|
Row: {
|
|
19067
19400
|
created_at: string;
|
|
19068
19401
|
description: string | null;
|
|
19402
|
+
head_product_id: string | null;
|
|
19403
|
+
head_trade_item_floriday_id: string | null;
|
|
19069
19404
|
id: string;
|
|
19070
19405
|
is_active: boolean;
|
|
19071
19406
|
name: string;
|
|
@@ -19075,6 +19410,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19075
19410
|
Insert: {
|
|
19076
19411
|
created_at?: string;
|
|
19077
19412
|
description?: string | null;
|
|
19413
|
+
head_product_id?: string | null;
|
|
19414
|
+
head_trade_item_floriday_id?: string | null;
|
|
19078
19415
|
id?: string;
|
|
19079
19416
|
is_active?: boolean;
|
|
19080
19417
|
name: string;
|
|
@@ -19084,16 +19421,85 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19084
19421
|
Update: {
|
|
19085
19422
|
created_at?: string;
|
|
19086
19423
|
description?: string | null;
|
|
19424
|
+
head_product_id?: string | null;
|
|
19425
|
+
head_trade_item_floriday_id?: string | null;
|
|
19087
19426
|
id?: string;
|
|
19088
19427
|
is_active?: boolean;
|
|
19089
19428
|
name?: string;
|
|
19090
19429
|
tenant_id?: string;
|
|
19091
19430
|
updated_at?: string;
|
|
19092
19431
|
};
|
|
19093
|
-
Relationships: [
|
|
19432
|
+
Relationships: [{
|
|
19433
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
19434
|
+
columns: ["head_product_id"];
|
|
19435
|
+
isOneToOne: false;
|
|
19436
|
+
referencedRelation: "products";
|
|
19437
|
+
referencedColumns: ["id"];
|
|
19438
|
+
}];
|
|
19439
|
+
};
|
|
19440
|
+
product_load_settings: {
|
|
19441
|
+
Row: {
|
|
19442
|
+
created_at: string;
|
|
19443
|
+
id: string;
|
|
19444
|
+
is_package: boolean;
|
|
19445
|
+
layers_per_load_carrier: number | null;
|
|
19446
|
+
load_carrier: string | null;
|
|
19447
|
+
package_id: string | null;
|
|
19448
|
+
package_label: string | null;
|
|
19449
|
+
packages_per_layer: number | null;
|
|
19450
|
+
product_id: string | null;
|
|
19451
|
+
tenant_id: string;
|
|
19452
|
+
trade_item_floriday_id: string | null;
|
|
19453
|
+
units_per_package: number | null;
|
|
19454
|
+
updated_at: string;
|
|
19455
|
+
};
|
|
19456
|
+
Insert: {
|
|
19457
|
+
created_at?: string;
|
|
19458
|
+
id?: string;
|
|
19459
|
+
is_package?: boolean;
|
|
19460
|
+
layers_per_load_carrier?: number | null;
|
|
19461
|
+
load_carrier?: string | null;
|
|
19462
|
+
package_id?: string | null;
|
|
19463
|
+
package_label?: string | null;
|
|
19464
|
+
packages_per_layer?: number | null;
|
|
19465
|
+
product_id?: string | null;
|
|
19466
|
+
tenant_id: string;
|
|
19467
|
+
trade_item_floriday_id?: string | null;
|
|
19468
|
+
units_per_package?: number | null;
|
|
19469
|
+
updated_at?: string;
|
|
19470
|
+
};
|
|
19471
|
+
Update: {
|
|
19472
|
+
created_at?: string;
|
|
19473
|
+
id?: string;
|
|
19474
|
+
is_package?: boolean;
|
|
19475
|
+
layers_per_load_carrier?: number | null;
|
|
19476
|
+
load_carrier?: string | null;
|
|
19477
|
+
package_id?: string | null;
|
|
19478
|
+
package_label?: string | null;
|
|
19479
|
+
packages_per_layer?: number | null;
|
|
19480
|
+
product_id?: string | null;
|
|
19481
|
+
tenant_id?: string;
|
|
19482
|
+
trade_item_floriday_id?: string | null;
|
|
19483
|
+
units_per_package?: number | null;
|
|
19484
|
+
updated_at?: string;
|
|
19485
|
+
};
|
|
19486
|
+
Relationships: [{
|
|
19487
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
19488
|
+
columns: ["package_id"];
|
|
19489
|
+
isOneToOne: false;
|
|
19490
|
+
referencedRelation: "packages";
|
|
19491
|
+
referencedColumns: ["id"];
|
|
19492
|
+
}, {
|
|
19493
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
19494
|
+
columns: ["product_id"];
|
|
19495
|
+
isOneToOne: false;
|
|
19496
|
+
referencedRelation: "products";
|
|
19497
|
+
referencedColumns: ["id"];
|
|
19498
|
+
}];
|
|
19094
19499
|
};
|
|
19095
19500
|
products: {
|
|
19096
19501
|
Row: {
|
|
19502
|
+
article_number: string | null;
|
|
19097
19503
|
barcode: string | null;
|
|
19098
19504
|
batch: string;
|
|
19099
19505
|
crates_per_layer: number;
|
|
@@ -19117,6 +19523,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19117
19523
|
weight: string | null;
|
|
19118
19524
|
};
|
|
19119
19525
|
Insert: {
|
|
19526
|
+
article_number?: string | null;
|
|
19120
19527
|
barcode?: string | null;
|
|
19121
19528
|
batch: string;
|
|
19122
19529
|
crates_per_layer?: number;
|
|
@@ -19140,6 +19547,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19140
19547
|
weight?: string | null;
|
|
19141
19548
|
};
|
|
19142
19549
|
Update: {
|
|
19550
|
+
article_number?: string | null;
|
|
19143
19551
|
barcode?: string | null;
|
|
19144
19552
|
batch?: string;
|
|
19145
19553
|
crates_per_layer?: number;
|
|
@@ -20053,8 +20461,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20053
20461
|
order_id: string | null;
|
|
20054
20462
|
order_item_id: string | null;
|
|
20055
20463
|
order_source: string | null;
|
|
20464
|
+
parent_trade_item_key: string | null;
|
|
20056
20465
|
physical_after: number | null;
|
|
20057
20466
|
physical_before: number | null;
|
|
20467
|
+
production_batch_id: string | null;
|
|
20058
20468
|
qty_delta: number;
|
|
20059
20469
|
reason: string | null;
|
|
20060
20470
|
reserved_after: number | null;
|
|
@@ -20070,8 +20480,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20070
20480
|
order_id?: string | null;
|
|
20071
20481
|
order_item_id?: string | null;
|
|
20072
20482
|
order_source?: string | null;
|
|
20483
|
+
parent_trade_item_key?: string | null;
|
|
20073
20484
|
physical_after?: number | null;
|
|
20074
20485
|
physical_before?: number | null;
|
|
20486
|
+
production_batch_id?: string | null;
|
|
20075
20487
|
qty_delta: number;
|
|
20076
20488
|
reason?: string | null;
|
|
20077
20489
|
reserved_after?: number | null;
|
|
@@ -20087,8 +20499,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20087
20499
|
order_id?: string | null;
|
|
20088
20500
|
order_item_id?: string | null;
|
|
20089
20501
|
order_source?: string | null;
|
|
20502
|
+
parent_trade_item_key?: string | null;
|
|
20090
20503
|
physical_after?: number | null;
|
|
20091
20504
|
physical_before?: number | null;
|
|
20505
|
+
production_batch_id?: string | null;
|
|
20092
20506
|
qty_delta?: number;
|
|
20093
20507
|
reason?: string | null;
|
|
20094
20508
|
reserved_after?: number | null;
|
|
@@ -20547,7 +20961,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20547
20961
|
twinfield_connections: {
|
|
20548
20962
|
Row: {
|
|
20549
20963
|
access_token: string | null;
|
|
20550
|
-
client_id: string;
|
|
20964
|
+
client_id: string | null;
|
|
20551
20965
|
client_secret: string | null;
|
|
20552
20966
|
cluster_uri: string | null;
|
|
20553
20967
|
company_code: string | null;
|
|
@@ -20559,7 +20973,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20559
20973
|
is_active: boolean;
|
|
20560
20974
|
label: string | null;
|
|
20561
20975
|
office_code: string | null;
|
|
20562
|
-
redirect_uri: string;
|
|
20976
|
+
redirect_uri: string | null;
|
|
20563
20977
|
refresh_token: string | null;
|
|
20564
20978
|
token_expires_at: string | null;
|
|
20565
20979
|
updated_at: string;
|
|
@@ -20567,7 +20981,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20567
20981
|
};
|
|
20568
20982
|
Insert: {
|
|
20569
20983
|
access_token?: string | null;
|
|
20570
|
-
client_id
|
|
20984
|
+
client_id?: string | null;
|
|
20571
20985
|
client_secret?: string | null;
|
|
20572
20986
|
cluster_uri?: string | null;
|
|
20573
20987
|
company_code?: string | null;
|
|
@@ -20579,7 +20993,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20579
20993
|
is_active?: boolean;
|
|
20580
20994
|
label?: string | null;
|
|
20581
20995
|
office_code?: string | null;
|
|
20582
|
-
redirect_uri
|
|
20996
|
+
redirect_uri?: string | null;
|
|
20583
20997
|
refresh_token?: string | null;
|
|
20584
20998
|
token_expires_at?: string | null;
|
|
20585
20999
|
updated_at?: string;
|
|
@@ -20587,7 +21001,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20587
21001
|
};
|
|
20588
21002
|
Update: {
|
|
20589
21003
|
access_token?: string | null;
|
|
20590
|
-
client_id?: string;
|
|
21004
|
+
client_id?: string | null;
|
|
20591
21005
|
client_secret?: string | null;
|
|
20592
21006
|
cluster_uri?: string | null;
|
|
20593
21007
|
company_code?: string | null;
|
|
@@ -20599,7 +21013,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20599
21013
|
is_active?: boolean;
|
|
20600
21014
|
label?: string | null;
|
|
20601
21015
|
office_code?: string | null;
|
|
20602
|
-
redirect_uri?: string;
|
|
21016
|
+
redirect_uri?: string | null;
|
|
20603
21017
|
refresh_token?: string | null;
|
|
20604
21018
|
token_expires_at?: string | null;
|
|
20605
21019
|
updated_at?: string;
|
|
@@ -21794,25 +22208,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
21794
22208
|
};
|
|
21795
22209
|
Relationships: [];
|
|
21796
22210
|
};
|
|
21797
|
-
floriday_customer_discounts: {
|
|
21798
|
-
Row: {
|
|
21799
|
-
base_price: number | null;
|
|
21800
|
-
buyer_organization_id: string | null;
|
|
21801
|
-
currency: string | null;
|
|
21802
|
-
discount_type: string | null;
|
|
21803
|
-
discount_value: number | null;
|
|
21804
|
-
min_quantity: number | null;
|
|
21805
|
-
net_price: number | null;
|
|
21806
|
-
product_group_id: string | null;
|
|
21807
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
21808
|
-
source: string | null;
|
|
21809
|
-
source_id: string | null;
|
|
21810
|
-
trade_item_id: string | null;
|
|
21811
|
-
valid_from: string | null;
|
|
21812
|
-
valid_until: string | null;
|
|
21813
|
-
};
|
|
21814
|
-
Relationships: [];
|
|
21815
|
-
};
|
|
21816
22211
|
local_customer_discounts: {
|
|
21817
22212
|
Row: {
|
|
21818
22213
|
base_price: number | null;
|
|
@@ -22231,6 +22626,28 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22231
22626
|
Args: never;
|
|
22232
22627
|
Returns: undefined;
|
|
22233
22628
|
};
|
|
22629
|
+
consume_bom_for_production: {
|
|
22630
|
+
Args: {
|
|
22631
|
+
p_connection_id: string;
|
|
22632
|
+
p_parent_id: string;
|
|
22633
|
+
p_parent_key: string;
|
|
22634
|
+
p_parent_kind: string;
|
|
22635
|
+
p_quantity: number;
|
|
22636
|
+
p_user_id: string;
|
|
22637
|
+
};
|
|
22638
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22639
|
+
} | {
|
|
22640
|
+
Args: {
|
|
22641
|
+
p_batch_id?: string;
|
|
22642
|
+
p_connection_id: string;
|
|
22643
|
+
p_parent_id: string;
|
|
22644
|
+
p_parent_key: string;
|
|
22645
|
+
p_parent_kind: string;
|
|
22646
|
+
p_quantity: number;
|
|
22647
|
+
p_user_id: string;
|
|
22648
|
+
};
|
|
22649
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22650
|
+
};
|
|
22234
22651
|
consume_floriday_rate_limit: {
|
|
22235
22652
|
Args: {
|
|
22236
22653
|
p_bucket: string;
|
|
@@ -22282,6 +22699,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22282
22699
|
table_name: string;
|
|
22283
22700
|
}[];
|
|
22284
22701
|
};
|
|
22702
|
+
delete_samenstelling: {
|
|
22703
|
+
Args: {
|
|
22704
|
+
p_parent_id: string;
|
|
22705
|
+
p_parent_kind: string;
|
|
22706
|
+
};
|
|
22707
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22708
|
+
};
|
|
22285
22709
|
dispatch_carrier_signups_sql: {
|
|
22286
22710
|
Args: {
|
|
22287
22711
|
_catchup?: string;
|
|
@@ -22442,19 +22866,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22442
22866
|
resource: string;
|
|
22443
22867
|
}[];
|
|
22444
22868
|
};
|
|
22445
|
-
get_floriday_agreements_active: {
|
|
22446
|
-
Args: {
|
|
22447
|
-
p_on_date?: string;
|
|
22448
|
-
};
|
|
22449
|
-
Returns: {
|
|
22450
|
-
buyer_organization_id: string;
|
|
22451
|
-
data: import("../integrations/supabase/types").Json;
|
|
22452
|
-
floriday_id: string;
|
|
22453
|
-
status: string;
|
|
22454
|
-
valid_from: string;
|
|
22455
|
-
valid_until: string;
|
|
22456
|
-
}[];
|
|
22457
|
-
};
|
|
22458
22869
|
get_floriday_clock_supplies_window: {
|
|
22459
22870
|
Args: {
|
|
22460
22871
|
p_from: string;
|
|
@@ -22527,6 +22938,21 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22527
22938
|
minutes_since_success: number;
|
|
22528
22939
|
}[];
|
|
22529
22940
|
};
|
|
22941
|
+
get_group_allocation_keys: {
|
|
22942
|
+
Args: {
|
|
22943
|
+
p_product_id: string;
|
|
22944
|
+
};
|
|
22945
|
+
Returns: {
|
|
22946
|
+
k: string;
|
|
22947
|
+
ord: number;
|
|
22948
|
+
}[];
|
|
22949
|
+
};
|
|
22950
|
+
get_group_head_key: {
|
|
22951
|
+
Args: {
|
|
22952
|
+
p_group_id: string;
|
|
22953
|
+
};
|
|
22954
|
+
Returns: string;
|
|
22955
|
+
};
|
|
22530
22956
|
get_offer_by_link_code: {
|
|
22531
22957
|
Args: {
|
|
22532
22958
|
p_code: string;
|
|
@@ -22637,6 +23063,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22637
23063
|
};
|
|
22638
23064
|
Returns: undefined;
|
|
22639
23065
|
};
|
|
23066
|
+
mark_shipment_shipped: {
|
|
23067
|
+
Args: {
|
|
23068
|
+
p_shipment_id: string;
|
|
23069
|
+
};
|
|
23070
|
+
Returns: undefined;
|
|
23071
|
+
};
|
|
22640
23072
|
next_manufacture_partij: {
|
|
22641
23073
|
Args: {
|
|
22642
23074
|
_tenant_id: string;
|
|
@@ -22721,6 +23153,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22721
23153
|
};
|
|
22722
23154
|
Returns: undefined;
|
|
22723
23155
|
};
|
|
23156
|
+
produce_designed_product: {
|
|
23157
|
+
Args: {
|
|
23158
|
+
p_parent_id: string;
|
|
23159
|
+
p_parent_kind: string;
|
|
23160
|
+
p_quantity: number;
|
|
23161
|
+
};
|
|
23162
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
23163
|
+
};
|
|
22724
23164
|
promote_trade_item_key: {
|
|
22725
23165
|
Args: {
|
|
22726
23166
|
p_new: string;
|
|
@@ -22728,6 +23168,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22728
23168
|
};
|
|
22729
23169
|
Returns: undefined;
|
|
22730
23170
|
};
|
|
23171
|
+
recompute_all_reserved_stock: {
|
|
23172
|
+
Args: never;
|
|
23173
|
+
Returns: undefined;
|
|
23174
|
+
};
|
|
22731
23175
|
recompute_order_status: {
|
|
22732
23176
|
Args: {
|
|
22733
23177
|
p_order_id: string;
|
|
@@ -22777,27 +23221,45 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22777
23221
|
};
|
|
22778
23222
|
Returns: undefined;
|
|
22779
23223
|
};
|
|
23224
|
+
resolve_group_allocation: {
|
|
23225
|
+
Args: {
|
|
23226
|
+
_needed: number;
|
|
23227
|
+
_product_group_id: string;
|
|
23228
|
+
};
|
|
23229
|
+
Returns: {
|
|
23230
|
+
allocated: number;
|
|
23231
|
+
trade_item_id: string;
|
|
23232
|
+
}[];
|
|
23233
|
+
};
|
|
23234
|
+
resolve_group_member_stock_key: {
|
|
23235
|
+
Args: {
|
|
23236
|
+
p_trade_item_id: string;
|
|
23237
|
+
};
|
|
23238
|
+
Returns: string;
|
|
23239
|
+
};
|
|
22780
23240
|
resolve_product_id_for_item: {
|
|
22781
23241
|
Args: {
|
|
22782
23242
|
p_product_name: string;
|
|
22783
23243
|
};
|
|
22784
23244
|
Returns: string;
|
|
22785
23245
|
};
|
|
22786
|
-
|
|
23246
|
+
resolve_stock_trade_item_key: {
|
|
22787
23247
|
Args: {
|
|
22788
|
-
|
|
22789
|
-
p_url: string;
|
|
23248
|
+
p_product_id: string;
|
|
22790
23249
|
};
|
|
22791
|
-
Returns:
|
|
23250
|
+
Returns: string;
|
|
22792
23251
|
};
|
|
22793
|
-
|
|
23252
|
+
reverse_production: {
|
|
22794
23253
|
Args: {
|
|
22795
|
-
|
|
22796
|
-
|
|
23254
|
+
p_connection_id?: string;
|
|
23255
|
+
p_parent_key: string;
|
|
23256
|
+
p_quantity: number;
|
|
23257
|
+
p_reason?: string;
|
|
23258
|
+
p_user_id?: string;
|
|
22797
23259
|
};
|
|
22798
|
-
Returns:
|
|
23260
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22799
23261
|
};
|
|
22800
|
-
|
|
23262
|
+
schedule_floriday_additional_services_sync: {
|
|
22801
23263
|
Args: {
|
|
22802
23264
|
p_apikey: string;
|
|
22803
23265
|
p_url: string;
|