@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
|
@@ -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,21 +7626,126 @@ 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
|
};
|
|
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
|
+
}];
|
|
7704
|
+
};
|
|
7705
|
+
product_merge_log: {
|
|
7706
|
+
Row: {
|
|
7707
|
+
canonical_product_id: string | null;
|
|
7708
|
+
id: string;
|
|
7709
|
+
merged_at: string;
|
|
7710
|
+
merged_from_id: string;
|
|
7711
|
+
notes: string | null;
|
|
7712
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
7713
|
+
source_table: string;
|
|
7714
|
+
status: string;
|
|
7715
|
+
};
|
|
7716
|
+
Insert: {
|
|
7717
|
+
canonical_product_id?: string | null;
|
|
7718
|
+
id?: string;
|
|
7719
|
+
merged_at?: string;
|
|
7720
|
+
merged_from_id: string;
|
|
7721
|
+
notes?: string | null;
|
|
7722
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
7723
|
+
source_table: string;
|
|
7724
|
+
status?: string;
|
|
7725
|
+
};
|
|
7726
|
+
Update: {
|
|
7727
|
+
canonical_product_id?: string | null;
|
|
7728
|
+
id?: string;
|
|
7729
|
+
merged_at?: string;
|
|
7730
|
+
merged_from_id?: string;
|
|
7731
|
+
notes?: string | null;
|
|
7732
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
7733
|
+
source_table?: string;
|
|
7734
|
+
status?: string;
|
|
7735
|
+
};
|
|
7529
7736
|
Relationships: [];
|
|
7530
7737
|
};
|
|
7531
7738
|
products: {
|
|
7532
7739
|
Row: {
|
|
7740
|
+
article_number: string | null;
|
|
7533
7741
|
barcode: string | null;
|
|
7534
7742
|
batch: string;
|
|
7535
7743
|
crates_per_layer: number;
|
|
7536
7744
|
created_at: string;
|
|
7537
7745
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7746
|
+
floriday_active: boolean;
|
|
7747
|
+
floriday_payload: import("../integrations/supabase/types").Json;
|
|
7748
|
+
floriday_trade_item_id: string | null;
|
|
7538
7749
|
id: string;
|
|
7539
7750
|
image_url: string | null;
|
|
7540
7751
|
incoming_quantity: number;
|
|
@@ -7553,11 +7764,15 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7553
7764
|
weight: string | null;
|
|
7554
7765
|
};
|
|
7555
7766
|
Insert: {
|
|
7767
|
+
article_number?: string | null;
|
|
7556
7768
|
barcode?: string | null;
|
|
7557
7769
|
batch: string;
|
|
7558
7770
|
crates_per_layer?: number;
|
|
7559
7771
|
created_at?: string;
|
|
7560
7772
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7773
|
+
floriday_active?: boolean;
|
|
7774
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
7775
|
+
floriday_trade_item_id?: string | null;
|
|
7561
7776
|
id?: string;
|
|
7562
7777
|
image_url?: string | null;
|
|
7563
7778
|
incoming_quantity?: number;
|
|
@@ -7576,11 +7791,15 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
7576
7791
|
weight?: string | null;
|
|
7577
7792
|
};
|
|
7578
7793
|
Update: {
|
|
7794
|
+
article_number?: string | null;
|
|
7579
7795
|
barcode?: string | null;
|
|
7580
7796
|
batch?: string;
|
|
7581
7797
|
crates_per_layer?: number;
|
|
7582
7798
|
created_at?: string;
|
|
7583
7799
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7800
|
+
floriday_active?: boolean;
|
|
7801
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
7802
|
+
floriday_trade_item_id?: string | null;
|
|
7584
7803
|
id?: string;
|
|
7585
7804
|
image_url?: string | null;
|
|
7586
7805
|
incoming_quantity?: number;
|
|
@@ -8489,8 +8708,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
8489
8708
|
order_id: string | null;
|
|
8490
8709
|
order_item_id: string | null;
|
|
8491
8710
|
order_source: string | null;
|
|
8711
|
+
parent_trade_item_key: string | null;
|
|
8492
8712
|
physical_after: number | null;
|
|
8493
8713
|
physical_before: number | null;
|
|
8714
|
+
production_batch_id: string | null;
|
|
8494
8715
|
qty_delta: number;
|
|
8495
8716
|
reason: string | null;
|
|
8496
8717
|
reserved_after: number | null;
|
|
@@ -8506,8 +8727,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
8506
8727
|
order_id?: string | null;
|
|
8507
8728
|
order_item_id?: string | null;
|
|
8508
8729
|
order_source?: string | null;
|
|
8730
|
+
parent_trade_item_key?: string | null;
|
|
8509
8731
|
physical_after?: number | null;
|
|
8510
8732
|
physical_before?: number | null;
|
|
8733
|
+
production_batch_id?: string | null;
|
|
8511
8734
|
qty_delta: number;
|
|
8512
8735
|
reason?: string | null;
|
|
8513
8736
|
reserved_after?: number | null;
|
|
@@ -8523,8 +8746,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
8523
8746
|
order_id?: string | null;
|
|
8524
8747
|
order_item_id?: string | null;
|
|
8525
8748
|
order_source?: string | null;
|
|
8749
|
+
parent_trade_item_key?: string | null;
|
|
8526
8750
|
physical_after?: number | null;
|
|
8527
8751
|
physical_before?: number | null;
|
|
8752
|
+
production_batch_id?: string | null;
|
|
8528
8753
|
qty_delta?: number;
|
|
8529
8754
|
reason?: string | null;
|
|
8530
8755
|
reserved_after?: number | null;
|
|
@@ -8983,7 +9208,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
8983
9208
|
twinfield_connections: {
|
|
8984
9209
|
Row: {
|
|
8985
9210
|
access_token: string | null;
|
|
8986
|
-
client_id: string;
|
|
9211
|
+
client_id: string | null;
|
|
8987
9212
|
client_secret: string | null;
|
|
8988
9213
|
cluster_uri: string | null;
|
|
8989
9214
|
company_code: string | null;
|
|
@@ -8995,7 +9220,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
8995
9220
|
is_active: boolean;
|
|
8996
9221
|
label: string | null;
|
|
8997
9222
|
office_code: string | null;
|
|
8998
|
-
redirect_uri: string;
|
|
9223
|
+
redirect_uri: string | null;
|
|
8999
9224
|
refresh_token: string | null;
|
|
9000
9225
|
token_expires_at: string | null;
|
|
9001
9226
|
updated_at: string;
|
|
@@ -9003,7 +9228,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
9003
9228
|
};
|
|
9004
9229
|
Insert: {
|
|
9005
9230
|
access_token?: string | null;
|
|
9006
|
-
client_id
|
|
9231
|
+
client_id?: string | null;
|
|
9007
9232
|
client_secret?: string | null;
|
|
9008
9233
|
cluster_uri?: string | null;
|
|
9009
9234
|
company_code?: string | null;
|
|
@@ -9015,7 +9240,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
9015
9240
|
is_active?: boolean;
|
|
9016
9241
|
label?: string | null;
|
|
9017
9242
|
office_code?: string | null;
|
|
9018
|
-
redirect_uri
|
|
9243
|
+
redirect_uri?: string | null;
|
|
9019
9244
|
refresh_token?: string | null;
|
|
9020
9245
|
token_expires_at?: string | null;
|
|
9021
9246
|
updated_at?: string;
|
|
@@ -9023,7 +9248,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
9023
9248
|
};
|
|
9024
9249
|
Update: {
|
|
9025
9250
|
access_token?: string | null;
|
|
9026
|
-
client_id?: string;
|
|
9251
|
+
client_id?: string | null;
|
|
9027
9252
|
client_secret?: string | null;
|
|
9028
9253
|
cluster_uri?: string | null;
|
|
9029
9254
|
company_code?: string | null;
|
|
@@ -9035,7 +9260,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
9035
9260
|
is_active?: boolean;
|
|
9036
9261
|
label?: string | null;
|
|
9037
9262
|
office_code?: string | null;
|
|
9038
|
-
redirect_uri?: string;
|
|
9263
|
+
redirect_uri?: string | null;
|
|
9039
9264
|
refresh_token?: string | null;
|
|
9040
9265
|
token_expires_at?: string | null;
|
|
9041
9266
|
updated_at?: string;
|
|
@@ -10230,25 +10455,6 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
10230
10455
|
};
|
|
10231
10456
|
Relationships: [];
|
|
10232
10457
|
};
|
|
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;
|
|
10249
|
-
};
|
|
10250
|
-
Relationships: [];
|
|
10251
|
-
};
|
|
10252
10458
|
local_customer_discounts: {
|
|
10253
10459
|
Row: {
|
|
10254
10460
|
base_price: number | null;
|
|
@@ -10552,6 +10758,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
10552
10758
|
};
|
|
10553
10759
|
Returns: number;
|
|
10554
10760
|
};
|
|
10761
|
+
_migrate_rewrite_stock_key: {
|
|
10762
|
+
Args: {
|
|
10763
|
+
_from_key: string;
|
|
10764
|
+
_to_key: string;
|
|
10765
|
+
};
|
|
10766
|
+
Returns: undefined;
|
|
10767
|
+
};
|
|
10555
10768
|
afh_city_code: {
|
|
10556
10769
|
Args: {
|
|
10557
10770
|
_city: string;
|
|
@@ -10667,6 +10880,28 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
10667
10880
|
Args: never;
|
|
10668
10881
|
Returns: undefined;
|
|
10669
10882
|
};
|
|
10883
|
+
consume_bom_for_production: {
|
|
10884
|
+
Args: {
|
|
10885
|
+
p_connection_id: string;
|
|
10886
|
+
p_parent_id: string;
|
|
10887
|
+
p_parent_key: string;
|
|
10888
|
+
p_parent_kind: string;
|
|
10889
|
+
p_quantity: number;
|
|
10890
|
+
p_user_id: string;
|
|
10891
|
+
};
|
|
10892
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10893
|
+
} | {
|
|
10894
|
+
Args: {
|
|
10895
|
+
p_batch_id?: string;
|
|
10896
|
+
p_connection_id: string;
|
|
10897
|
+
p_parent_id: string;
|
|
10898
|
+
p_parent_key: string;
|
|
10899
|
+
p_parent_kind: string;
|
|
10900
|
+
p_quantity: number;
|
|
10901
|
+
p_user_id: string;
|
|
10902
|
+
};
|
|
10903
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10904
|
+
};
|
|
10670
10905
|
consume_floriday_rate_limit: {
|
|
10671
10906
|
Args: {
|
|
10672
10907
|
p_bucket: string;
|
|
@@ -10718,6 +10953,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
10718
10953
|
table_name: string;
|
|
10719
10954
|
}[];
|
|
10720
10955
|
};
|
|
10956
|
+
delete_samenstelling: {
|
|
10957
|
+
Args: {
|
|
10958
|
+
p_parent_id: string;
|
|
10959
|
+
p_parent_kind: string;
|
|
10960
|
+
};
|
|
10961
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10962
|
+
};
|
|
10721
10963
|
dispatch_carrier_signups_sql: {
|
|
10722
10964
|
Args: {
|
|
10723
10965
|
_catchup?: string;
|
|
@@ -10878,19 +11120,6 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
10878
11120
|
resource: string;
|
|
10879
11121
|
}[];
|
|
10880
11122
|
};
|
|
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
11123
|
get_floriday_clock_supplies_window: {
|
|
10895
11124
|
Args: {
|
|
10896
11125
|
p_from: string;
|
|
@@ -10963,6 +11192,21 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
10963
11192
|
minutes_since_success: number;
|
|
10964
11193
|
}[];
|
|
10965
11194
|
};
|
|
11195
|
+
get_group_allocation_keys: {
|
|
11196
|
+
Args: {
|
|
11197
|
+
p_product_id: string;
|
|
11198
|
+
};
|
|
11199
|
+
Returns: {
|
|
11200
|
+
k: string;
|
|
11201
|
+
ord: number;
|
|
11202
|
+
}[];
|
|
11203
|
+
};
|
|
11204
|
+
get_group_head_key: {
|
|
11205
|
+
Args: {
|
|
11206
|
+
p_group_id: string;
|
|
11207
|
+
};
|
|
11208
|
+
Returns: string;
|
|
11209
|
+
};
|
|
10966
11210
|
get_offer_by_link_code: {
|
|
10967
11211
|
Args: {
|
|
10968
11212
|
p_code: string;
|
|
@@ -11073,6 +11317,19 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
11073
11317
|
};
|
|
11074
11318
|
Returns: undefined;
|
|
11075
11319
|
};
|
|
11320
|
+
mark_shipment_shipped: {
|
|
11321
|
+
Args: {
|
|
11322
|
+
p_shipment_id: string;
|
|
11323
|
+
};
|
|
11324
|
+
Returns: undefined;
|
|
11325
|
+
};
|
|
11326
|
+
merge_products: {
|
|
11327
|
+
Args: {
|
|
11328
|
+
_canonical: string;
|
|
11329
|
+
_loser: string;
|
|
11330
|
+
};
|
|
11331
|
+
Returns: undefined;
|
|
11332
|
+
};
|
|
11076
11333
|
next_manufacture_partij: {
|
|
11077
11334
|
Args: {
|
|
11078
11335
|
_tenant_id: string;
|
|
@@ -11157,6 +11414,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
11157
11414
|
};
|
|
11158
11415
|
Returns: undefined;
|
|
11159
11416
|
};
|
|
11417
|
+
produce_designed_product: {
|
|
11418
|
+
Args: {
|
|
11419
|
+
p_parent_id: string;
|
|
11420
|
+
p_parent_kind: string;
|
|
11421
|
+
p_quantity: number;
|
|
11422
|
+
};
|
|
11423
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11424
|
+
};
|
|
11160
11425
|
promote_trade_item_key: {
|
|
11161
11426
|
Args: {
|
|
11162
11427
|
p_new: string;
|
|
@@ -11164,6 +11429,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
11164
11429
|
};
|
|
11165
11430
|
Returns: undefined;
|
|
11166
11431
|
};
|
|
11432
|
+
recompute_all_reserved_stock: {
|
|
11433
|
+
Args: never;
|
|
11434
|
+
Returns: undefined;
|
|
11435
|
+
};
|
|
11167
11436
|
recompute_order_status: {
|
|
11168
11437
|
Args: {
|
|
11169
11438
|
p_order_id: string;
|
|
@@ -11213,27 +11482,45 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
|
|
|
11213
11482
|
};
|
|
11214
11483
|
Returns: undefined;
|
|
11215
11484
|
};
|
|
11485
|
+
resolve_group_allocation: {
|
|
11486
|
+
Args: {
|
|
11487
|
+
_needed: number;
|
|
11488
|
+
_product_group_id: string;
|
|
11489
|
+
};
|
|
11490
|
+
Returns: {
|
|
11491
|
+
allocated: number;
|
|
11492
|
+
trade_item_id: string;
|
|
11493
|
+
}[];
|
|
11494
|
+
};
|
|
11495
|
+
resolve_group_member_stock_key: {
|
|
11496
|
+
Args: {
|
|
11497
|
+
p_trade_item_id: string;
|
|
11498
|
+
};
|
|
11499
|
+
Returns: string;
|
|
11500
|
+
};
|
|
11216
11501
|
resolve_product_id_for_item: {
|
|
11217
11502
|
Args: {
|
|
11218
11503
|
p_product_name: string;
|
|
11219
11504
|
};
|
|
11220
11505
|
Returns: string;
|
|
11221
11506
|
};
|
|
11222
|
-
|
|
11507
|
+
resolve_stock_trade_item_key: {
|
|
11223
11508
|
Args: {
|
|
11224
|
-
|
|
11225
|
-
p_url: string;
|
|
11509
|
+
p_product_id: string;
|
|
11226
11510
|
};
|
|
11227
|
-
Returns:
|
|
11511
|
+
Returns: string;
|
|
11228
11512
|
};
|
|
11229
|
-
|
|
11513
|
+
reverse_production: {
|
|
11230
11514
|
Args: {
|
|
11231
|
-
|
|
11232
|
-
|
|
11515
|
+
p_connection_id?: string;
|
|
11516
|
+
p_parent_key: string;
|
|
11517
|
+
p_quantity: number;
|
|
11518
|
+
p_reason?: string;
|
|
11519
|
+
p_user_id?: string;
|
|
11233
11520
|
};
|
|
11234
|
-
Returns:
|
|
11521
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11235
11522
|
};
|
|
11236
|
-
|
|
11523
|
+
schedule_floriday_additional_services_sync: {
|
|
11237
11524
|
Args: {
|
|
11238
11525
|
p_apikey: string;
|
|
11239
11526
|
p_url: string;
|
|
@@ -14979,105 +15266,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
14979
15266
|
referencedColumns: ["id"];
|
|
14980
15267
|
}];
|
|
14981
15268
|
};
|
|
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
15269
|
floriday_auction_letters_cache: {
|
|
15082
15270
|
Row: {
|
|
15083
15271
|
auction_letter_code: string;
|
|
@@ -16575,6 +16763,45 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
16575
16763
|
referencedColumns: ["id"];
|
|
16576
16764
|
}];
|
|
16577
16765
|
};
|
|
16766
|
+
floriday_trade_settings_customers_cache: {
|
|
16767
|
+
Row: {
|
|
16768
|
+
connection_id: string;
|
|
16769
|
+
data: import("../integrations/supabase/types").Json;
|
|
16770
|
+
fetched_at: string;
|
|
16771
|
+
floriday_id: string;
|
|
16772
|
+
id: string;
|
|
16773
|
+
is_deleted: boolean;
|
|
16774
|
+
sequence_number: number;
|
|
16775
|
+
updated_at: string;
|
|
16776
|
+
};
|
|
16777
|
+
Insert: {
|
|
16778
|
+
connection_id: string;
|
|
16779
|
+
data: import("../integrations/supabase/types").Json;
|
|
16780
|
+
fetched_at?: string;
|
|
16781
|
+
floriday_id: string;
|
|
16782
|
+
id?: string;
|
|
16783
|
+
is_deleted?: boolean;
|
|
16784
|
+
sequence_number?: number;
|
|
16785
|
+
updated_at?: string;
|
|
16786
|
+
};
|
|
16787
|
+
Update: {
|
|
16788
|
+
connection_id?: string;
|
|
16789
|
+
data?: import("../integrations/supabase/types").Json;
|
|
16790
|
+
fetched_at?: string;
|
|
16791
|
+
floriday_id?: string;
|
|
16792
|
+
id?: string;
|
|
16793
|
+
is_deleted?: boolean;
|
|
16794
|
+
sequence_number?: number;
|
|
16795
|
+
updated_at?: string;
|
|
16796
|
+
};
|
|
16797
|
+
Relationships: [{
|
|
16798
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
16799
|
+
columns: ["connection_id"];
|
|
16800
|
+
isOneToOne: false;
|
|
16801
|
+
referencedRelation: "floriday_connections";
|
|
16802
|
+
referencedColumns: ["id"];
|
|
16803
|
+
}];
|
|
16804
|
+
};
|
|
16578
16805
|
floriday_trips_cache: {
|
|
16579
16806
|
Row: {
|
|
16580
16807
|
carrier_organization_id: string | null;
|
|
@@ -18719,33 +18946,132 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
18719
18946
|
foreignKeyName: "order_items_order_id_fkey";
|
|
18720
18947
|
columns: ["order_id"];
|
|
18721
18948
|
isOneToOne: false;
|
|
18722
|
-
referencedRelation: "orders";
|
|
18949
|
+
referencedRelation: "orders";
|
|
18950
|
+
referencedColumns: ["id"];
|
|
18951
|
+
}, {
|
|
18952
|
+
foreignKeyName: "order_items_product_id_fkey";
|
|
18953
|
+
columns: ["product_id"];
|
|
18954
|
+
isOneToOne: false;
|
|
18955
|
+
referencedRelation: "products";
|
|
18956
|
+
referencedColumns: ["id"];
|
|
18957
|
+
}];
|
|
18958
|
+
};
|
|
18959
|
+
order_number_counters: {
|
|
18960
|
+
Row: {
|
|
18961
|
+
last_value: number;
|
|
18962
|
+
updated_at: string;
|
|
18963
|
+
year: number;
|
|
18964
|
+
};
|
|
18965
|
+
Insert: {
|
|
18966
|
+
last_value?: number;
|
|
18967
|
+
updated_at?: string;
|
|
18968
|
+
year: number;
|
|
18969
|
+
};
|
|
18970
|
+
Update: {
|
|
18971
|
+
last_value?: number;
|
|
18972
|
+
updated_at?: string;
|
|
18973
|
+
year?: number;
|
|
18974
|
+
};
|
|
18975
|
+
Relationships: [];
|
|
18976
|
+
};
|
|
18977
|
+
order_shipment_items: {
|
|
18978
|
+
Row: {
|
|
18979
|
+
created_at: string;
|
|
18980
|
+
id: string;
|
|
18981
|
+
order_item_id: string;
|
|
18982
|
+
product_id: string | null;
|
|
18983
|
+
product_name: string;
|
|
18984
|
+
quantity: number;
|
|
18985
|
+
shipment_id: string;
|
|
18986
|
+
updated_at: string;
|
|
18987
|
+
};
|
|
18988
|
+
Insert: {
|
|
18989
|
+
created_at?: string;
|
|
18990
|
+
id?: string;
|
|
18991
|
+
order_item_id: string;
|
|
18992
|
+
product_id?: string | null;
|
|
18993
|
+
product_name: string;
|
|
18994
|
+
quantity: number;
|
|
18995
|
+
shipment_id: string;
|
|
18996
|
+
updated_at?: string;
|
|
18997
|
+
};
|
|
18998
|
+
Update: {
|
|
18999
|
+
created_at?: string;
|
|
19000
|
+
id?: string;
|
|
19001
|
+
order_item_id?: string;
|
|
19002
|
+
product_id?: string | null;
|
|
19003
|
+
product_name?: string;
|
|
19004
|
+
quantity?: number;
|
|
19005
|
+
shipment_id?: string;
|
|
19006
|
+
updated_at?: string;
|
|
19007
|
+
};
|
|
19008
|
+
Relationships: [{
|
|
19009
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
19010
|
+
columns: ["order_item_id"];
|
|
19011
|
+
isOneToOne: false;
|
|
19012
|
+
referencedRelation: "order_items";
|
|
18723
19013
|
referencedColumns: ["id"];
|
|
18724
19014
|
}, {
|
|
18725
|
-
foreignKeyName: "
|
|
18726
|
-
columns: ["
|
|
19015
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
19016
|
+
columns: ["shipment_id"];
|
|
18727
19017
|
isOneToOne: false;
|
|
18728
|
-
referencedRelation: "
|
|
19018
|
+
referencedRelation: "order_shipments";
|
|
18729
19019
|
referencedColumns: ["id"];
|
|
18730
19020
|
}];
|
|
18731
19021
|
};
|
|
18732
|
-
|
|
19022
|
+
order_shipments: {
|
|
18733
19023
|
Row: {
|
|
18734
|
-
|
|
19024
|
+
carrier_id: string | null;
|
|
19025
|
+
created_at: string;
|
|
19026
|
+
delivery_date: string | null;
|
|
19027
|
+
delivery_location_id: string | null;
|
|
19028
|
+
id: string;
|
|
19029
|
+
notes: string | null;
|
|
19030
|
+
order_id: string;
|
|
19031
|
+
shipment_number: number;
|
|
19032
|
+
shipped_at: string | null;
|
|
19033
|
+
status: string;
|
|
18735
19034
|
updated_at: string;
|
|
18736
|
-
year: number;
|
|
18737
19035
|
};
|
|
18738
19036
|
Insert: {
|
|
18739
|
-
|
|
19037
|
+
carrier_id?: string | null;
|
|
19038
|
+
created_at?: string;
|
|
19039
|
+
delivery_date?: string | null;
|
|
19040
|
+
delivery_location_id?: string | null;
|
|
19041
|
+
id?: string;
|
|
19042
|
+
notes?: string | null;
|
|
19043
|
+
order_id: string;
|
|
19044
|
+
shipment_number: number;
|
|
19045
|
+
shipped_at?: string | null;
|
|
19046
|
+
status?: string;
|
|
18740
19047
|
updated_at?: string;
|
|
18741
|
-
year: number;
|
|
18742
19048
|
};
|
|
18743
19049
|
Update: {
|
|
18744
|
-
|
|
19050
|
+
carrier_id?: string | null;
|
|
19051
|
+
created_at?: string;
|
|
19052
|
+
delivery_date?: string | null;
|
|
19053
|
+
delivery_location_id?: string | null;
|
|
19054
|
+
id?: string;
|
|
19055
|
+
notes?: string | null;
|
|
19056
|
+
order_id?: string;
|
|
19057
|
+
shipment_number?: number;
|
|
19058
|
+
shipped_at?: string | null;
|
|
19059
|
+
status?: string;
|
|
18745
19060
|
updated_at?: string;
|
|
18746
|
-
year?: number;
|
|
18747
19061
|
};
|
|
18748
|
-
Relationships: [
|
|
19062
|
+
Relationships: [{
|
|
19063
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
19064
|
+
columns: ["carrier_id"];
|
|
19065
|
+
isOneToOne: false;
|
|
19066
|
+
referencedRelation: "carriers";
|
|
19067
|
+
referencedColumns: ["id"];
|
|
19068
|
+
}, {
|
|
19069
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
19070
|
+
columns: ["order_id"];
|
|
19071
|
+
isOneToOne: false;
|
|
19072
|
+
referencedRelation: "orders";
|
|
19073
|
+
referencedColumns: ["id"];
|
|
19074
|
+
}];
|
|
18749
19075
|
};
|
|
18750
19076
|
orders: {
|
|
18751
19077
|
Row: {
|
|
@@ -18754,8 +19080,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
18754
19080
|
customer_id: string | null;
|
|
18755
19081
|
customer_name: string;
|
|
18756
19082
|
deleted_at: string | null;
|
|
18757
|
-
delivery_date: string;
|
|
19083
|
+
delivery_date: string | null;
|
|
18758
19084
|
id: string;
|
|
19085
|
+
is_reservation: boolean;
|
|
18759
19086
|
notes: string | null;
|
|
18760
19087
|
order_date: string;
|
|
18761
19088
|
order_number: string;
|
|
@@ -18772,8 +19099,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
18772
19099
|
customer_id?: string | null;
|
|
18773
19100
|
customer_name?: string;
|
|
18774
19101
|
deleted_at?: string | null;
|
|
18775
|
-
delivery_date
|
|
19102
|
+
delivery_date?: string | null;
|
|
18776
19103
|
id?: string;
|
|
19104
|
+
is_reservation?: boolean;
|
|
18777
19105
|
notes?: string | null;
|
|
18778
19106
|
order_date?: string;
|
|
18779
19107
|
order_number: string;
|
|
@@ -18790,8 +19118,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
18790
19118
|
customer_id?: string | null;
|
|
18791
19119
|
customer_name?: string;
|
|
18792
19120
|
deleted_at?: string | null;
|
|
18793
|
-
delivery_date?: string;
|
|
19121
|
+
delivery_date?: string | null;
|
|
18794
19122
|
id?: string;
|
|
19123
|
+
is_reservation?: boolean;
|
|
18795
19124
|
notes?: string | null;
|
|
18796
19125
|
order_date?: string;
|
|
18797
19126
|
order_number?: string;
|
|
@@ -18933,6 +19262,63 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
18933
19262
|
};
|
|
18934
19263
|
Relationships: [];
|
|
18935
19264
|
};
|
|
19265
|
+
product_bom_items: {
|
|
19266
|
+
Row: {
|
|
19267
|
+
component_product_id: string | null;
|
|
19268
|
+
component_trade_item_floriday_id: string | null;
|
|
19269
|
+
created_at: string;
|
|
19270
|
+
id: string;
|
|
19271
|
+
notes: string | null;
|
|
19272
|
+
parent_product_id: string | null;
|
|
19273
|
+
parent_trade_item_floriday_id: string | null;
|
|
19274
|
+
quantity: number;
|
|
19275
|
+
sort_order: number;
|
|
19276
|
+
tenant_id: string;
|
|
19277
|
+
unit: string;
|
|
19278
|
+
updated_at: string;
|
|
19279
|
+
};
|
|
19280
|
+
Insert: {
|
|
19281
|
+
component_product_id?: string | null;
|
|
19282
|
+
component_trade_item_floriday_id?: string | null;
|
|
19283
|
+
created_at?: string;
|
|
19284
|
+
id?: string;
|
|
19285
|
+
notes?: string | null;
|
|
19286
|
+
parent_product_id?: string | null;
|
|
19287
|
+
parent_trade_item_floriday_id?: string | null;
|
|
19288
|
+
quantity?: number;
|
|
19289
|
+
sort_order?: number;
|
|
19290
|
+
tenant_id: string;
|
|
19291
|
+
unit?: string;
|
|
19292
|
+
updated_at?: string;
|
|
19293
|
+
};
|
|
19294
|
+
Update: {
|
|
19295
|
+
component_product_id?: string | null;
|
|
19296
|
+
component_trade_item_floriday_id?: string | null;
|
|
19297
|
+
created_at?: string;
|
|
19298
|
+
id?: string;
|
|
19299
|
+
notes?: string | null;
|
|
19300
|
+
parent_product_id?: string | null;
|
|
19301
|
+
parent_trade_item_floriday_id?: string | null;
|
|
19302
|
+
quantity?: number;
|
|
19303
|
+
sort_order?: number;
|
|
19304
|
+
tenant_id?: string;
|
|
19305
|
+
unit?: string;
|
|
19306
|
+
updated_at?: string;
|
|
19307
|
+
};
|
|
19308
|
+
Relationships: [{
|
|
19309
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
19310
|
+
columns: ["component_product_id"];
|
|
19311
|
+
isOneToOne: false;
|
|
19312
|
+
referencedRelation: "products";
|
|
19313
|
+
referencedColumns: ["id"];
|
|
19314
|
+
}, {
|
|
19315
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
19316
|
+
columns: ["parent_product_id"];
|
|
19317
|
+
isOneToOne: false;
|
|
19318
|
+
referencedRelation: "products";
|
|
19319
|
+
referencedColumns: ["id"];
|
|
19320
|
+
}];
|
|
19321
|
+
};
|
|
18936
19322
|
product_categories: {
|
|
18937
19323
|
Row: {
|
|
18938
19324
|
color: string;
|
|
@@ -19038,6 +19424,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19038
19424
|
id: string;
|
|
19039
19425
|
product_group_id: string;
|
|
19040
19426
|
quantity: number;
|
|
19427
|
+
sort_order: number;
|
|
19041
19428
|
trade_item_id: string;
|
|
19042
19429
|
};
|
|
19043
19430
|
Insert: {
|
|
@@ -19045,6 +19432,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19045
19432
|
id?: string;
|
|
19046
19433
|
product_group_id: string;
|
|
19047
19434
|
quantity?: number;
|
|
19435
|
+
sort_order?: number;
|
|
19048
19436
|
trade_item_id: string;
|
|
19049
19437
|
};
|
|
19050
19438
|
Update: {
|
|
@@ -19052,6 +19440,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19052
19440
|
id?: string;
|
|
19053
19441
|
product_group_id?: string;
|
|
19054
19442
|
quantity?: number;
|
|
19443
|
+
sort_order?: number;
|
|
19055
19444
|
trade_item_id?: string;
|
|
19056
19445
|
};
|
|
19057
19446
|
Relationships: [{
|
|
@@ -19066,6 +19455,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19066
19455
|
Row: {
|
|
19067
19456
|
created_at: string;
|
|
19068
19457
|
description: string | null;
|
|
19458
|
+
head_product_id: string | null;
|
|
19459
|
+
head_trade_item_floriday_id: string | null;
|
|
19069
19460
|
id: string;
|
|
19070
19461
|
is_active: boolean;
|
|
19071
19462
|
name: string;
|
|
@@ -19075,6 +19466,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19075
19466
|
Insert: {
|
|
19076
19467
|
created_at?: string;
|
|
19077
19468
|
description?: string | null;
|
|
19469
|
+
head_product_id?: string | null;
|
|
19470
|
+
head_trade_item_floriday_id?: string | null;
|
|
19078
19471
|
id?: string;
|
|
19079
19472
|
is_active?: boolean;
|
|
19080
19473
|
name: string;
|
|
@@ -19084,21 +19477,126 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19084
19477
|
Update: {
|
|
19085
19478
|
created_at?: string;
|
|
19086
19479
|
description?: string | null;
|
|
19480
|
+
head_product_id?: string | null;
|
|
19481
|
+
head_trade_item_floriday_id?: string | null;
|
|
19087
19482
|
id?: string;
|
|
19088
19483
|
is_active?: boolean;
|
|
19089
19484
|
name?: string;
|
|
19090
19485
|
tenant_id?: string;
|
|
19091
19486
|
updated_at?: string;
|
|
19092
19487
|
};
|
|
19488
|
+
Relationships: [{
|
|
19489
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
19490
|
+
columns: ["head_product_id"];
|
|
19491
|
+
isOneToOne: false;
|
|
19492
|
+
referencedRelation: "products";
|
|
19493
|
+
referencedColumns: ["id"];
|
|
19494
|
+
}];
|
|
19495
|
+
};
|
|
19496
|
+
product_load_settings: {
|
|
19497
|
+
Row: {
|
|
19498
|
+
created_at: string;
|
|
19499
|
+
id: string;
|
|
19500
|
+
is_package: boolean;
|
|
19501
|
+
layers_per_load_carrier: number | null;
|
|
19502
|
+
load_carrier: string | null;
|
|
19503
|
+
package_id: string | null;
|
|
19504
|
+
package_label: string | null;
|
|
19505
|
+
packages_per_layer: number | null;
|
|
19506
|
+
product_id: string | null;
|
|
19507
|
+
tenant_id: string;
|
|
19508
|
+
trade_item_floriday_id: string | null;
|
|
19509
|
+
units_per_package: number | null;
|
|
19510
|
+
updated_at: string;
|
|
19511
|
+
};
|
|
19512
|
+
Insert: {
|
|
19513
|
+
created_at?: string;
|
|
19514
|
+
id?: string;
|
|
19515
|
+
is_package?: boolean;
|
|
19516
|
+
layers_per_load_carrier?: number | null;
|
|
19517
|
+
load_carrier?: string | null;
|
|
19518
|
+
package_id?: string | null;
|
|
19519
|
+
package_label?: string | null;
|
|
19520
|
+
packages_per_layer?: number | null;
|
|
19521
|
+
product_id?: string | null;
|
|
19522
|
+
tenant_id: string;
|
|
19523
|
+
trade_item_floriday_id?: string | null;
|
|
19524
|
+
units_per_package?: number | null;
|
|
19525
|
+
updated_at?: string;
|
|
19526
|
+
};
|
|
19527
|
+
Update: {
|
|
19528
|
+
created_at?: string;
|
|
19529
|
+
id?: string;
|
|
19530
|
+
is_package?: boolean;
|
|
19531
|
+
layers_per_load_carrier?: number | null;
|
|
19532
|
+
load_carrier?: string | null;
|
|
19533
|
+
package_id?: string | null;
|
|
19534
|
+
package_label?: string | null;
|
|
19535
|
+
packages_per_layer?: number | null;
|
|
19536
|
+
product_id?: string | null;
|
|
19537
|
+
tenant_id?: string;
|
|
19538
|
+
trade_item_floriday_id?: string | null;
|
|
19539
|
+
units_per_package?: number | null;
|
|
19540
|
+
updated_at?: string;
|
|
19541
|
+
};
|
|
19542
|
+
Relationships: [{
|
|
19543
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
19544
|
+
columns: ["package_id"];
|
|
19545
|
+
isOneToOne: false;
|
|
19546
|
+
referencedRelation: "packages";
|
|
19547
|
+
referencedColumns: ["id"];
|
|
19548
|
+
}, {
|
|
19549
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
19550
|
+
columns: ["product_id"];
|
|
19551
|
+
isOneToOne: false;
|
|
19552
|
+
referencedRelation: "products";
|
|
19553
|
+
referencedColumns: ["id"];
|
|
19554
|
+
}];
|
|
19555
|
+
};
|
|
19556
|
+
product_merge_log: {
|
|
19557
|
+
Row: {
|
|
19558
|
+
canonical_product_id: string | null;
|
|
19559
|
+
id: string;
|
|
19560
|
+
merged_at: string;
|
|
19561
|
+
merged_from_id: string;
|
|
19562
|
+
notes: string | null;
|
|
19563
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
19564
|
+
source_table: string;
|
|
19565
|
+
status: string;
|
|
19566
|
+
};
|
|
19567
|
+
Insert: {
|
|
19568
|
+
canonical_product_id?: string | null;
|
|
19569
|
+
id?: string;
|
|
19570
|
+
merged_at?: string;
|
|
19571
|
+
merged_from_id: string;
|
|
19572
|
+
notes?: string | null;
|
|
19573
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
19574
|
+
source_table: string;
|
|
19575
|
+
status?: string;
|
|
19576
|
+
};
|
|
19577
|
+
Update: {
|
|
19578
|
+
canonical_product_id?: string | null;
|
|
19579
|
+
id?: string;
|
|
19580
|
+
merged_at?: string;
|
|
19581
|
+
merged_from_id?: string;
|
|
19582
|
+
notes?: string | null;
|
|
19583
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
19584
|
+
source_table?: string;
|
|
19585
|
+
status?: string;
|
|
19586
|
+
};
|
|
19093
19587
|
Relationships: [];
|
|
19094
19588
|
};
|
|
19095
19589
|
products: {
|
|
19096
19590
|
Row: {
|
|
19591
|
+
article_number: string | null;
|
|
19097
19592
|
barcode: string | null;
|
|
19098
19593
|
batch: string;
|
|
19099
19594
|
crates_per_layer: number;
|
|
19100
19595
|
created_at: string;
|
|
19101
19596
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
19597
|
+
floriday_active: boolean;
|
|
19598
|
+
floriday_payload: import("../integrations/supabase/types").Json;
|
|
19599
|
+
floriday_trade_item_id: string | null;
|
|
19102
19600
|
id: string;
|
|
19103
19601
|
image_url: string | null;
|
|
19104
19602
|
incoming_quantity: number;
|
|
@@ -19117,11 +19615,15 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19117
19615
|
weight: string | null;
|
|
19118
19616
|
};
|
|
19119
19617
|
Insert: {
|
|
19618
|
+
article_number?: string | null;
|
|
19120
19619
|
barcode?: string | null;
|
|
19121
19620
|
batch: string;
|
|
19122
19621
|
crates_per_layer?: number;
|
|
19123
19622
|
created_at?: string;
|
|
19124
19623
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
19624
|
+
floriday_active?: boolean;
|
|
19625
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
19626
|
+
floriday_trade_item_id?: string | null;
|
|
19125
19627
|
id?: string;
|
|
19126
19628
|
image_url?: string | null;
|
|
19127
19629
|
incoming_quantity?: number;
|
|
@@ -19140,11 +19642,15 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
19140
19642
|
weight?: string | null;
|
|
19141
19643
|
};
|
|
19142
19644
|
Update: {
|
|
19645
|
+
article_number?: string | null;
|
|
19143
19646
|
barcode?: string | null;
|
|
19144
19647
|
batch?: string;
|
|
19145
19648
|
crates_per_layer?: number;
|
|
19146
19649
|
created_at?: string;
|
|
19147
19650
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
19651
|
+
floriday_active?: boolean;
|
|
19652
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
19653
|
+
floriday_trade_item_id?: string | null;
|
|
19148
19654
|
id?: string;
|
|
19149
19655
|
image_url?: string | null;
|
|
19150
19656
|
incoming_quantity?: number;
|
|
@@ -20053,8 +20559,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20053
20559
|
order_id: string | null;
|
|
20054
20560
|
order_item_id: string | null;
|
|
20055
20561
|
order_source: string | null;
|
|
20562
|
+
parent_trade_item_key: string | null;
|
|
20056
20563
|
physical_after: number | null;
|
|
20057
20564
|
physical_before: number | null;
|
|
20565
|
+
production_batch_id: string | null;
|
|
20058
20566
|
qty_delta: number;
|
|
20059
20567
|
reason: string | null;
|
|
20060
20568
|
reserved_after: number | null;
|
|
@@ -20070,8 +20578,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20070
20578
|
order_id?: string | null;
|
|
20071
20579
|
order_item_id?: string | null;
|
|
20072
20580
|
order_source?: string | null;
|
|
20581
|
+
parent_trade_item_key?: string | null;
|
|
20073
20582
|
physical_after?: number | null;
|
|
20074
20583
|
physical_before?: number | null;
|
|
20584
|
+
production_batch_id?: string | null;
|
|
20075
20585
|
qty_delta: number;
|
|
20076
20586
|
reason?: string | null;
|
|
20077
20587
|
reserved_after?: number | null;
|
|
@@ -20087,8 +20597,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20087
20597
|
order_id?: string | null;
|
|
20088
20598
|
order_item_id?: string | null;
|
|
20089
20599
|
order_source?: string | null;
|
|
20600
|
+
parent_trade_item_key?: string | null;
|
|
20090
20601
|
physical_after?: number | null;
|
|
20091
20602
|
physical_before?: number | null;
|
|
20603
|
+
production_batch_id?: string | null;
|
|
20092
20604
|
qty_delta?: number;
|
|
20093
20605
|
reason?: string | null;
|
|
20094
20606
|
reserved_after?: number | null;
|
|
@@ -20547,7 +21059,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20547
21059
|
twinfield_connections: {
|
|
20548
21060
|
Row: {
|
|
20549
21061
|
access_token: string | null;
|
|
20550
|
-
client_id: string;
|
|
21062
|
+
client_id: string | null;
|
|
20551
21063
|
client_secret: string | null;
|
|
20552
21064
|
cluster_uri: string | null;
|
|
20553
21065
|
company_code: string | null;
|
|
@@ -20559,7 +21071,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20559
21071
|
is_active: boolean;
|
|
20560
21072
|
label: string | null;
|
|
20561
21073
|
office_code: string | null;
|
|
20562
|
-
redirect_uri: string;
|
|
21074
|
+
redirect_uri: string | null;
|
|
20563
21075
|
refresh_token: string | null;
|
|
20564
21076
|
token_expires_at: string | null;
|
|
20565
21077
|
updated_at: string;
|
|
@@ -20567,7 +21079,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20567
21079
|
};
|
|
20568
21080
|
Insert: {
|
|
20569
21081
|
access_token?: string | null;
|
|
20570
|
-
client_id
|
|
21082
|
+
client_id?: string | null;
|
|
20571
21083
|
client_secret?: string | null;
|
|
20572
21084
|
cluster_uri?: string | null;
|
|
20573
21085
|
company_code?: string | null;
|
|
@@ -20579,7 +21091,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20579
21091
|
is_active?: boolean;
|
|
20580
21092
|
label?: string | null;
|
|
20581
21093
|
office_code?: string | null;
|
|
20582
|
-
redirect_uri
|
|
21094
|
+
redirect_uri?: string | null;
|
|
20583
21095
|
refresh_token?: string | null;
|
|
20584
21096
|
token_expires_at?: string | null;
|
|
20585
21097
|
updated_at?: string;
|
|
@@ -20587,7 +21099,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20587
21099
|
};
|
|
20588
21100
|
Update: {
|
|
20589
21101
|
access_token?: string | null;
|
|
20590
|
-
client_id?: string;
|
|
21102
|
+
client_id?: string | null;
|
|
20591
21103
|
client_secret?: string | null;
|
|
20592
21104
|
cluster_uri?: string | null;
|
|
20593
21105
|
company_code?: string | null;
|
|
@@ -20599,7 +21111,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
20599
21111
|
is_active?: boolean;
|
|
20600
21112
|
label?: string | null;
|
|
20601
21113
|
office_code?: string | null;
|
|
20602
|
-
redirect_uri?: string;
|
|
21114
|
+
redirect_uri?: string | null;
|
|
20603
21115
|
refresh_token?: string | null;
|
|
20604
21116
|
token_expires_at?: string | null;
|
|
20605
21117
|
updated_at?: string;
|
|
@@ -21794,25 +22306,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
21794
22306
|
};
|
|
21795
22307
|
Relationships: [];
|
|
21796
22308
|
};
|
|
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
22309
|
local_customer_discounts: {
|
|
21817
22310
|
Row: {
|
|
21818
22311
|
base_price: number | null;
|
|
@@ -22116,6 +22609,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22116
22609
|
};
|
|
22117
22610
|
Returns: number;
|
|
22118
22611
|
};
|
|
22612
|
+
_migrate_rewrite_stock_key: {
|
|
22613
|
+
Args: {
|
|
22614
|
+
_from_key: string;
|
|
22615
|
+
_to_key: string;
|
|
22616
|
+
};
|
|
22617
|
+
Returns: undefined;
|
|
22618
|
+
};
|
|
22119
22619
|
afh_city_code: {
|
|
22120
22620
|
Args: {
|
|
22121
22621
|
_city: string;
|
|
@@ -22231,6 +22731,28 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22231
22731
|
Args: never;
|
|
22232
22732
|
Returns: undefined;
|
|
22233
22733
|
};
|
|
22734
|
+
consume_bom_for_production: {
|
|
22735
|
+
Args: {
|
|
22736
|
+
p_connection_id: string;
|
|
22737
|
+
p_parent_id: string;
|
|
22738
|
+
p_parent_key: string;
|
|
22739
|
+
p_parent_kind: string;
|
|
22740
|
+
p_quantity: number;
|
|
22741
|
+
p_user_id: string;
|
|
22742
|
+
};
|
|
22743
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22744
|
+
} | {
|
|
22745
|
+
Args: {
|
|
22746
|
+
p_batch_id?: string;
|
|
22747
|
+
p_connection_id: string;
|
|
22748
|
+
p_parent_id: string;
|
|
22749
|
+
p_parent_key: string;
|
|
22750
|
+
p_parent_kind: string;
|
|
22751
|
+
p_quantity: number;
|
|
22752
|
+
p_user_id: string;
|
|
22753
|
+
};
|
|
22754
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22755
|
+
};
|
|
22234
22756
|
consume_floriday_rate_limit: {
|
|
22235
22757
|
Args: {
|
|
22236
22758
|
p_bucket: string;
|
|
@@ -22282,6 +22804,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22282
22804
|
table_name: string;
|
|
22283
22805
|
}[];
|
|
22284
22806
|
};
|
|
22807
|
+
delete_samenstelling: {
|
|
22808
|
+
Args: {
|
|
22809
|
+
p_parent_id: string;
|
|
22810
|
+
p_parent_kind: string;
|
|
22811
|
+
};
|
|
22812
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22813
|
+
};
|
|
22285
22814
|
dispatch_carrier_signups_sql: {
|
|
22286
22815
|
Args: {
|
|
22287
22816
|
_catchup?: string;
|
|
@@ -22442,19 +22971,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22442
22971
|
resource: string;
|
|
22443
22972
|
}[];
|
|
22444
22973
|
};
|
|
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
22974
|
get_floriday_clock_supplies_window: {
|
|
22459
22975
|
Args: {
|
|
22460
22976
|
p_from: string;
|
|
@@ -22527,6 +23043,21 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22527
23043
|
minutes_since_success: number;
|
|
22528
23044
|
}[];
|
|
22529
23045
|
};
|
|
23046
|
+
get_group_allocation_keys: {
|
|
23047
|
+
Args: {
|
|
23048
|
+
p_product_id: string;
|
|
23049
|
+
};
|
|
23050
|
+
Returns: {
|
|
23051
|
+
k: string;
|
|
23052
|
+
ord: number;
|
|
23053
|
+
}[];
|
|
23054
|
+
};
|
|
23055
|
+
get_group_head_key: {
|
|
23056
|
+
Args: {
|
|
23057
|
+
p_group_id: string;
|
|
23058
|
+
};
|
|
23059
|
+
Returns: string;
|
|
23060
|
+
};
|
|
22530
23061
|
get_offer_by_link_code: {
|
|
22531
23062
|
Args: {
|
|
22532
23063
|
p_code: string;
|
|
@@ -22637,6 +23168,19 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22637
23168
|
};
|
|
22638
23169
|
Returns: undefined;
|
|
22639
23170
|
};
|
|
23171
|
+
mark_shipment_shipped: {
|
|
23172
|
+
Args: {
|
|
23173
|
+
p_shipment_id: string;
|
|
23174
|
+
};
|
|
23175
|
+
Returns: undefined;
|
|
23176
|
+
};
|
|
23177
|
+
merge_products: {
|
|
23178
|
+
Args: {
|
|
23179
|
+
_canonical: string;
|
|
23180
|
+
_loser: string;
|
|
23181
|
+
};
|
|
23182
|
+
Returns: undefined;
|
|
23183
|
+
};
|
|
22640
23184
|
next_manufacture_partij: {
|
|
22641
23185
|
Args: {
|
|
22642
23186
|
_tenant_id: string;
|
|
@@ -22721,6 +23265,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22721
23265
|
};
|
|
22722
23266
|
Returns: undefined;
|
|
22723
23267
|
};
|
|
23268
|
+
produce_designed_product: {
|
|
23269
|
+
Args: {
|
|
23270
|
+
p_parent_id: string;
|
|
23271
|
+
p_parent_kind: string;
|
|
23272
|
+
p_quantity: number;
|
|
23273
|
+
};
|
|
23274
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
23275
|
+
};
|
|
22724
23276
|
promote_trade_item_key: {
|
|
22725
23277
|
Args: {
|
|
22726
23278
|
p_new: string;
|
|
@@ -22728,6 +23280,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22728
23280
|
};
|
|
22729
23281
|
Returns: undefined;
|
|
22730
23282
|
};
|
|
23283
|
+
recompute_all_reserved_stock: {
|
|
23284
|
+
Args: never;
|
|
23285
|
+
Returns: undefined;
|
|
23286
|
+
};
|
|
22731
23287
|
recompute_order_status: {
|
|
22732
23288
|
Args: {
|
|
22733
23289
|
p_order_id: string;
|
|
@@ -22777,27 +23333,45 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
|
|
|
22777
23333
|
};
|
|
22778
23334
|
Returns: undefined;
|
|
22779
23335
|
};
|
|
23336
|
+
resolve_group_allocation: {
|
|
23337
|
+
Args: {
|
|
23338
|
+
_needed: number;
|
|
23339
|
+
_product_group_id: string;
|
|
23340
|
+
};
|
|
23341
|
+
Returns: {
|
|
23342
|
+
allocated: number;
|
|
23343
|
+
trade_item_id: string;
|
|
23344
|
+
}[];
|
|
23345
|
+
};
|
|
23346
|
+
resolve_group_member_stock_key: {
|
|
23347
|
+
Args: {
|
|
23348
|
+
p_trade_item_id: string;
|
|
23349
|
+
};
|
|
23350
|
+
Returns: string;
|
|
23351
|
+
};
|
|
22780
23352
|
resolve_product_id_for_item: {
|
|
22781
23353
|
Args: {
|
|
22782
23354
|
p_product_name: string;
|
|
22783
23355
|
};
|
|
22784
23356
|
Returns: string;
|
|
22785
23357
|
};
|
|
22786
|
-
|
|
23358
|
+
resolve_stock_trade_item_key: {
|
|
22787
23359
|
Args: {
|
|
22788
|
-
|
|
22789
|
-
p_url: string;
|
|
23360
|
+
p_product_id: string;
|
|
22790
23361
|
};
|
|
22791
|
-
Returns:
|
|
23362
|
+
Returns: string;
|
|
22792
23363
|
};
|
|
22793
|
-
|
|
23364
|
+
reverse_production: {
|
|
22794
23365
|
Args: {
|
|
22795
|
-
|
|
22796
|
-
|
|
23366
|
+
p_connection_id?: string;
|
|
23367
|
+
p_parent_key: string;
|
|
23368
|
+
p_quantity: number;
|
|
23369
|
+
p_reason?: string;
|
|
23370
|
+
p_user_id?: string;
|
|
22797
23371
|
};
|
|
22798
|
-
Returns:
|
|
23372
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22799
23373
|
};
|
|
22800
|
-
|
|
23374
|
+
schedule_floriday_additional_services_sync: {
|
|
22801
23375
|
Args: {
|
|
22802
23376
|
p_apikey: string;
|
|
22803
23377
|
p_url: string;
|