@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
|
@@ -3407,105 +3407,6 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
3407
3407
|
referencedColumns: ["id"];
|
|
3408
3408
|
}];
|
|
3409
3409
|
};
|
|
3410
|
-
floriday_agreement_calloffs_cache: {
|
|
3411
|
-
Row: {
|
|
3412
|
-
agreement_id: string | null;
|
|
3413
|
-
connection_id: string;
|
|
3414
|
-
data: import("../integrations/supabase/types").Json;
|
|
3415
|
-
delivery_date: string | null;
|
|
3416
|
-
fetched_at: string;
|
|
3417
|
-
floriday_id: string;
|
|
3418
|
-
id: string;
|
|
3419
|
-
is_deleted: boolean;
|
|
3420
|
-
sequence_number: number;
|
|
3421
|
-
status: string | null;
|
|
3422
|
-
updated_at: string;
|
|
3423
|
-
};
|
|
3424
|
-
Insert: {
|
|
3425
|
-
agreement_id?: string | null;
|
|
3426
|
-
connection_id: string;
|
|
3427
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3428
|
-
delivery_date?: string | null;
|
|
3429
|
-
fetched_at?: string;
|
|
3430
|
-
floriday_id: string;
|
|
3431
|
-
id?: string;
|
|
3432
|
-
is_deleted?: boolean;
|
|
3433
|
-
sequence_number?: number;
|
|
3434
|
-
status?: string | null;
|
|
3435
|
-
updated_at?: string;
|
|
3436
|
-
};
|
|
3437
|
-
Update: {
|
|
3438
|
-
agreement_id?: string | null;
|
|
3439
|
-
connection_id?: string;
|
|
3440
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3441
|
-
delivery_date?: string | null;
|
|
3442
|
-
fetched_at?: string;
|
|
3443
|
-
floriday_id?: string;
|
|
3444
|
-
id?: string;
|
|
3445
|
-
is_deleted?: boolean;
|
|
3446
|
-
sequence_number?: number;
|
|
3447
|
-
status?: string | null;
|
|
3448
|
-
updated_at?: string;
|
|
3449
|
-
};
|
|
3450
|
-
Relationships: [{
|
|
3451
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
3452
|
-
columns: ["connection_id"];
|
|
3453
|
-
isOneToOne: false;
|
|
3454
|
-
referencedRelation: "floriday_connections";
|
|
3455
|
-
referencedColumns: ["id"];
|
|
3456
|
-
}];
|
|
3457
|
-
};
|
|
3458
|
-
floriday_agreements_cache: {
|
|
3459
|
-
Row: {
|
|
3460
|
-
buyer_organization_id: string | null;
|
|
3461
|
-
connection_id: string;
|
|
3462
|
-
data: import("../integrations/supabase/types").Json;
|
|
3463
|
-
fetched_at: string;
|
|
3464
|
-
floriday_id: string;
|
|
3465
|
-
id: string;
|
|
3466
|
-
is_deleted: boolean;
|
|
3467
|
-
sequence_number: number;
|
|
3468
|
-
status: string | null;
|
|
3469
|
-
updated_at: string;
|
|
3470
|
-
valid_from: string | null;
|
|
3471
|
-
valid_until: string | null;
|
|
3472
|
-
};
|
|
3473
|
-
Insert: {
|
|
3474
|
-
buyer_organization_id?: string | null;
|
|
3475
|
-
connection_id: string;
|
|
3476
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3477
|
-
fetched_at?: string;
|
|
3478
|
-
floriday_id: string;
|
|
3479
|
-
id?: string;
|
|
3480
|
-
is_deleted?: boolean;
|
|
3481
|
-
sequence_number?: number;
|
|
3482
|
-
status?: string | null;
|
|
3483
|
-
updated_at?: string;
|
|
3484
|
-
valid_from?: string | null;
|
|
3485
|
-
valid_until?: string | null;
|
|
3486
|
-
};
|
|
3487
|
-
Update: {
|
|
3488
|
-
buyer_organization_id?: string | null;
|
|
3489
|
-
connection_id?: string;
|
|
3490
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3491
|
-
fetched_at?: string;
|
|
3492
|
-
floriday_id?: string;
|
|
3493
|
-
id?: string;
|
|
3494
|
-
is_deleted?: boolean;
|
|
3495
|
-
sequence_number?: number;
|
|
3496
|
-
status?: string | null;
|
|
3497
|
-
updated_at?: string;
|
|
3498
|
-
valid_from?: string | null;
|
|
3499
|
-
valid_until?: string | null;
|
|
3500
|
-
};
|
|
3501
|
-
Relationships: [{
|
|
3502
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
3503
|
-
columns: ["connection_id"];
|
|
3504
|
-
isOneToOne: false;
|
|
3505
|
-
referencedRelation: "floriday_connections";
|
|
3506
|
-
referencedColumns: ["id"];
|
|
3507
|
-
}];
|
|
3508
|
-
};
|
|
3509
3410
|
floriday_auction_letters_cache: {
|
|
3510
3411
|
Row: {
|
|
3511
3412
|
auction_letter_code: string;
|
|
@@ -5003,6 +4904,45 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
5003
4904
|
referencedColumns: ["id"];
|
|
5004
4905
|
}];
|
|
5005
4906
|
};
|
|
4907
|
+
floriday_trade_settings_customers_cache: {
|
|
4908
|
+
Row: {
|
|
4909
|
+
connection_id: string;
|
|
4910
|
+
data: import("../integrations/supabase/types").Json;
|
|
4911
|
+
fetched_at: string;
|
|
4912
|
+
floriday_id: string;
|
|
4913
|
+
id: string;
|
|
4914
|
+
is_deleted: boolean;
|
|
4915
|
+
sequence_number: number;
|
|
4916
|
+
updated_at: string;
|
|
4917
|
+
};
|
|
4918
|
+
Insert: {
|
|
4919
|
+
connection_id: string;
|
|
4920
|
+
data: import("../integrations/supabase/types").Json;
|
|
4921
|
+
fetched_at?: string;
|
|
4922
|
+
floriday_id: string;
|
|
4923
|
+
id?: string;
|
|
4924
|
+
is_deleted?: boolean;
|
|
4925
|
+
sequence_number?: number;
|
|
4926
|
+
updated_at?: string;
|
|
4927
|
+
};
|
|
4928
|
+
Update: {
|
|
4929
|
+
connection_id?: string;
|
|
4930
|
+
data?: import("../integrations/supabase/types").Json;
|
|
4931
|
+
fetched_at?: string;
|
|
4932
|
+
floriday_id?: string;
|
|
4933
|
+
id?: string;
|
|
4934
|
+
is_deleted?: boolean;
|
|
4935
|
+
sequence_number?: number;
|
|
4936
|
+
updated_at?: string;
|
|
4937
|
+
};
|
|
4938
|
+
Relationships: [{
|
|
4939
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
4940
|
+
columns: ["connection_id"];
|
|
4941
|
+
isOneToOne: false;
|
|
4942
|
+
referencedRelation: "floriday_connections";
|
|
4943
|
+
referencedColumns: ["id"];
|
|
4944
|
+
}];
|
|
4945
|
+
};
|
|
5006
4946
|
floriday_trips_cache: {
|
|
5007
4947
|
Row: {
|
|
5008
4948
|
carrier_organization_id: string | null;
|
|
@@ -7175,6 +7115,105 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7175
7115
|
};
|
|
7176
7116
|
Relationships: [];
|
|
7177
7117
|
};
|
|
7118
|
+
order_shipment_items: {
|
|
7119
|
+
Row: {
|
|
7120
|
+
created_at: string;
|
|
7121
|
+
id: string;
|
|
7122
|
+
order_item_id: string;
|
|
7123
|
+
product_id: string | null;
|
|
7124
|
+
product_name: string;
|
|
7125
|
+
quantity: number;
|
|
7126
|
+
shipment_id: string;
|
|
7127
|
+
updated_at: string;
|
|
7128
|
+
};
|
|
7129
|
+
Insert: {
|
|
7130
|
+
created_at?: string;
|
|
7131
|
+
id?: string;
|
|
7132
|
+
order_item_id: string;
|
|
7133
|
+
product_id?: string | null;
|
|
7134
|
+
product_name: string;
|
|
7135
|
+
quantity: number;
|
|
7136
|
+
shipment_id: string;
|
|
7137
|
+
updated_at?: string;
|
|
7138
|
+
};
|
|
7139
|
+
Update: {
|
|
7140
|
+
created_at?: string;
|
|
7141
|
+
id?: string;
|
|
7142
|
+
order_item_id?: string;
|
|
7143
|
+
product_id?: string | null;
|
|
7144
|
+
product_name?: string;
|
|
7145
|
+
quantity?: number;
|
|
7146
|
+
shipment_id?: string;
|
|
7147
|
+
updated_at?: string;
|
|
7148
|
+
};
|
|
7149
|
+
Relationships: [{
|
|
7150
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
7151
|
+
columns: ["order_item_id"];
|
|
7152
|
+
isOneToOne: false;
|
|
7153
|
+
referencedRelation: "order_items";
|
|
7154
|
+
referencedColumns: ["id"];
|
|
7155
|
+
}, {
|
|
7156
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
7157
|
+
columns: ["shipment_id"];
|
|
7158
|
+
isOneToOne: false;
|
|
7159
|
+
referencedRelation: "order_shipments";
|
|
7160
|
+
referencedColumns: ["id"];
|
|
7161
|
+
}];
|
|
7162
|
+
};
|
|
7163
|
+
order_shipments: {
|
|
7164
|
+
Row: {
|
|
7165
|
+
carrier_id: string | null;
|
|
7166
|
+
created_at: string;
|
|
7167
|
+
delivery_date: string | null;
|
|
7168
|
+
delivery_location_id: string | null;
|
|
7169
|
+
id: string;
|
|
7170
|
+
notes: string | null;
|
|
7171
|
+
order_id: string;
|
|
7172
|
+
shipment_number: number;
|
|
7173
|
+
shipped_at: string | null;
|
|
7174
|
+
status: string;
|
|
7175
|
+
updated_at: string;
|
|
7176
|
+
};
|
|
7177
|
+
Insert: {
|
|
7178
|
+
carrier_id?: string | null;
|
|
7179
|
+
created_at?: string;
|
|
7180
|
+
delivery_date?: string | null;
|
|
7181
|
+
delivery_location_id?: string | null;
|
|
7182
|
+
id?: string;
|
|
7183
|
+
notes?: string | null;
|
|
7184
|
+
order_id: string;
|
|
7185
|
+
shipment_number: number;
|
|
7186
|
+
shipped_at?: string | null;
|
|
7187
|
+
status?: string;
|
|
7188
|
+
updated_at?: string;
|
|
7189
|
+
};
|
|
7190
|
+
Update: {
|
|
7191
|
+
carrier_id?: string | null;
|
|
7192
|
+
created_at?: string;
|
|
7193
|
+
delivery_date?: string | null;
|
|
7194
|
+
delivery_location_id?: string | null;
|
|
7195
|
+
id?: string;
|
|
7196
|
+
notes?: string | null;
|
|
7197
|
+
order_id?: string;
|
|
7198
|
+
shipment_number?: number;
|
|
7199
|
+
shipped_at?: string | null;
|
|
7200
|
+
status?: string;
|
|
7201
|
+
updated_at?: string;
|
|
7202
|
+
};
|
|
7203
|
+
Relationships: [{
|
|
7204
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
7205
|
+
columns: ["carrier_id"];
|
|
7206
|
+
isOneToOne: false;
|
|
7207
|
+
referencedRelation: "carriers";
|
|
7208
|
+
referencedColumns: ["id"];
|
|
7209
|
+
}, {
|
|
7210
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
7211
|
+
columns: ["order_id"];
|
|
7212
|
+
isOneToOne: false;
|
|
7213
|
+
referencedRelation: "orders";
|
|
7214
|
+
referencedColumns: ["id"];
|
|
7215
|
+
}];
|
|
7216
|
+
};
|
|
7178
7217
|
orders: {
|
|
7179
7218
|
Row: {
|
|
7180
7219
|
created_at: string;
|
|
@@ -7182,8 +7221,9 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7182
7221
|
customer_id: string | null;
|
|
7183
7222
|
customer_name: string;
|
|
7184
7223
|
deleted_at: string | null;
|
|
7185
|
-
delivery_date: string;
|
|
7224
|
+
delivery_date: string | null;
|
|
7186
7225
|
id: string;
|
|
7226
|
+
is_reservation: boolean;
|
|
7187
7227
|
notes: string | null;
|
|
7188
7228
|
order_date: string;
|
|
7189
7229
|
order_number: string;
|
|
@@ -7200,8 +7240,9 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7200
7240
|
customer_id?: string | null;
|
|
7201
7241
|
customer_name?: string;
|
|
7202
7242
|
deleted_at?: string | null;
|
|
7203
|
-
delivery_date
|
|
7243
|
+
delivery_date?: string | null;
|
|
7204
7244
|
id?: string;
|
|
7245
|
+
is_reservation?: boolean;
|
|
7205
7246
|
notes?: string | null;
|
|
7206
7247
|
order_date?: string;
|
|
7207
7248
|
order_number: string;
|
|
@@ -7218,8 +7259,9 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7218
7259
|
customer_id?: string | null;
|
|
7219
7260
|
customer_name?: string;
|
|
7220
7261
|
deleted_at?: string | null;
|
|
7221
|
-
delivery_date?: string;
|
|
7262
|
+
delivery_date?: string | null;
|
|
7222
7263
|
id?: string;
|
|
7264
|
+
is_reservation?: boolean;
|
|
7223
7265
|
notes?: string | null;
|
|
7224
7266
|
order_date?: string;
|
|
7225
7267
|
order_number?: string;
|
|
@@ -7361,6 +7403,63 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7361
7403
|
};
|
|
7362
7404
|
Relationships: [];
|
|
7363
7405
|
};
|
|
7406
|
+
product_bom_items: {
|
|
7407
|
+
Row: {
|
|
7408
|
+
component_product_id: string | null;
|
|
7409
|
+
component_trade_item_floriday_id: string | null;
|
|
7410
|
+
created_at: string;
|
|
7411
|
+
id: string;
|
|
7412
|
+
notes: string | null;
|
|
7413
|
+
parent_product_id: string | null;
|
|
7414
|
+
parent_trade_item_floriday_id: string | null;
|
|
7415
|
+
quantity: number;
|
|
7416
|
+
sort_order: number;
|
|
7417
|
+
tenant_id: string;
|
|
7418
|
+
unit: string;
|
|
7419
|
+
updated_at: string;
|
|
7420
|
+
};
|
|
7421
|
+
Insert: {
|
|
7422
|
+
component_product_id?: string | null;
|
|
7423
|
+
component_trade_item_floriday_id?: string | null;
|
|
7424
|
+
created_at?: string;
|
|
7425
|
+
id?: string;
|
|
7426
|
+
notes?: string | null;
|
|
7427
|
+
parent_product_id?: string | null;
|
|
7428
|
+
parent_trade_item_floriday_id?: string | null;
|
|
7429
|
+
quantity?: number;
|
|
7430
|
+
sort_order?: number;
|
|
7431
|
+
tenant_id: string;
|
|
7432
|
+
unit?: string;
|
|
7433
|
+
updated_at?: string;
|
|
7434
|
+
};
|
|
7435
|
+
Update: {
|
|
7436
|
+
component_product_id?: string | null;
|
|
7437
|
+
component_trade_item_floriday_id?: string | null;
|
|
7438
|
+
created_at?: string;
|
|
7439
|
+
id?: string;
|
|
7440
|
+
notes?: string | null;
|
|
7441
|
+
parent_product_id?: string | null;
|
|
7442
|
+
parent_trade_item_floriday_id?: string | null;
|
|
7443
|
+
quantity?: number;
|
|
7444
|
+
sort_order?: number;
|
|
7445
|
+
tenant_id?: string;
|
|
7446
|
+
unit?: string;
|
|
7447
|
+
updated_at?: string;
|
|
7448
|
+
};
|
|
7449
|
+
Relationships: [{
|
|
7450
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
7451
|
+
columns: ["component_product_id"];
|
|
7452
|
+
isOneToOne: false;
|
|
7453
|
+
referencedRelation: "products";
|
|
7454
|
+
referencedColumns: ["id"];
|
|
7455
|
+
}, {
|
|
7456
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
7457
|
+
columns: ["parent_product_id"];
|
|
7458
|
+
isOneToOne: false;
|
|
7459
|
+
referencedRelation: "products";
|
|
7460
|
+
referencedColumns: ["id"];
|
|
7461
|
+
}];
|
|
7462
|
+
};
|
|
7364
7463
|
product_categories: {
|
|
7365
7464
|
Row: {
|
|
7366
7465
|
color: string;
|
|
@@ -7466,6 +7565,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7466
7565
|
id: string;
|
|
7467
7566
|
product_group_id: string;
|
|
7468
7567
|
quantity: number;
|
|
7568
|
+
sort_order: number;
|
|
7469
7569
|
trade_item_id: string;
|
|
7470
7570
|
};
|
|
7471
7571
|
Insert: {
|
|
@@ -7473,6 +7573,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7473
7573
|
id?: string;
|
|
7474
7574
|
product_group_id: string;
|
|
7475
7575
|
quantity?: number;
|
|
7576
|
+
sort_order?: number;
|
|
7476
7577
|
trade_item_id: string;
|
|
7477
7578
|
};
|
|
7478
7579
|
Update: {
|
|
@@ -7480,6 +7581,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7480
7581
|
id?: string;
|
|
7481
7582
|
product_group_id?: string;
|
|
7482
7583
|
quantity?: number;
|
|
7584
|
+
sort_order?: number;
|
|
7483
7585
|
trade_item_id?: string;
|
|
7484
7586
|
};
|
|
7485
7587
|
Relationships: [{
|
|
@@ -7494,6 +7596,8 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7494
7596
|
Row: {
|
|
7495
7597
|
created_at: string;
|
|
7496
7598
|
description: string | null;
|
|
7599
|
+
head_product_id: string | null;
|
|
7600
|
+
head_trade_item_floriday_id: string | null;
|
|
7497
7601
|
id: string;
|
|
7498
7602
|
is_active: boolean;
|
|
7499
7603
|
name: string;
|
|
@@ -7503,6 +7607,8 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7503
7607
|
Insert: {
|
|
7504
7608
|
created_at?: string;
|
|
7505
7609
|
description?: string | null;
|
|
7610
|
+
head_product_id?: string | null;
|
|
7611
|
+
head_trade_item_floriday_id?: string | null;
|
|
7506
7612
|
id?: string;
|
|
7507
7613
|
is_active?: boolean;
|
|
7508
7614
|
name: string;
|
|
@@ -7512,21 +7618,126 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7512
7618
|
Update: {
|
|
7513
7619
|
created_at?: string;
|
|
7514
7620
|
description?: string | null;
|
|
7621
|
+
head_product_id?: string | null;
|
|
7622
|
+
head_trade_item_floriday_id?: string | null;
|
|
7515
7623
|
id?: string;
|
|
7516
7624
|
is_active?: boolean;
|
|
7517
7625
|
name?: string;
|
|
7518
7626
|
tenant_id?: string;
|
|
7519
7627
|
updated_at?: string;
|
|
7520
7628
|
};
|
|
7629
|
+
Relationships: [{
|
|
7630
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
7631
|
+
columns: ["head_product_id"];
|
|
7632
|
+
isOneToOne: false;
|
|
7633
|
+
referencedRelation: "products";
|
|
7634
|
+
referencedColumns: ["id"];
|
|
7635
|
+
}];
|
|
7636
|
+
};
|
|
7637
|
+
product_load_settings: {
|
|
7638
|
+
Row: {
|
|
7639
|
+
created_at: string;
|
|
7640
|
+
id: string;
|
|
7641
|
+
is_package: boolean;
|
|
7642
|
+
layers_per_load_carrier: number | null;
|
|
7643
|
+
load_carrier: string | null;
|
|
7644
|
+
package_id: string | null;
|
|
7645
|
+
package_label: string | null;
|
|
7646
|
+
packages_per_layer: number | null;
|
|
7647
|
+
product_id: string | null;
|
|
7648
|
+
tenant_id: string;
|
|
7649
|
+
trade_item_floriday_id: string | null;
|
|
7650
|
+
units_per_package: number | null;
|
|
7651
|
+
updated_at: string;
|
|
7652
|
+
};
|
|
7653
|
+
Insert: {
|
|
7654
|
+
created_at?: string;
|
|
7655
|
+
id?: string;
|
|
7656
|
+
is_package?: boolean;
|
|
7657
|
+
layers_per_load_carrier?: number | null;
|
|
7658
|
+
load_carrier?: string | null;
|
|
7659
|
+
package_id?: string | null;
|
|
7660
|
+
package_label?: string | null;
|
|
7661
|
+
packages_per_layer?: number | null;
|
|
7662
|
+
product_id?: string | null;
|
|
7663
|
+
tenant_id: string;
|
|
7664
|
+
trade_item_floriday_id?: string | null;
|
|
7665
|
+
units_per_package?: number | null;
|
|
7666
|
+
updated_at?: string;
|
|
7667
|
+
};
|
|
7668
|
+
Update: {
|
|
7669
|
+
created_at?: string;
|
|
7670
|
+
id?: string;
|
|
7671
|
+
is_package?: boolean;
|
|
7672
|
+
layers_per_load_carrier?: number | null;
|
|
7673
|
+
load_carrier?: string | null;
|
|
7674
|
+
package_id?: string | null;
|
|
7675
|
+
package_label?: string | null;
|
|
7676
|
+
packages_per_layer?: number | null;
|
|
7677
|
+
product_id?: string | null;
|
|
7678
|
+
tenant_id?: string;
|
|
7679
|
+
trade_item_floriday_id?: string | null;
|
|
7680
|
+
units_per_package?: number | null;
|
|
7681
|
+
updated_at?: string;
|
|
7682
|
+
};
|
|
7683
|
+
Relationships: [{
|
|
7684
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
7685
|
+
columns: ["package_id"];
|
|
7686
|
+
isOneToOne: false;
|
|
7687
|
+
referencedRelation: "packages";
|
|
7688
|
+
referencedColumns: ["id"];
|
|
7689
|
+
}, {
|
|
7690
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
7691
|
+
columns: ["product_id"];
|
|
7692
|
+
isOneToOne: false;
|
|
7693
|
+
referencedRelation: "products";
|
|
7694
|
+
referencedColumns: ["id"];
|
|
7695
|
+
}];
|
|
7696
|
+
};
|
|
7697
|
+
product_merge_log: {
|
|
7698
|
+
Row: {
|
|
7699
|
+
canonical_product_id: string | null;
|
|
7700
|
+
id: string;
|
|
7701
|
+
merged_at: string;
|
|
7702
|
+
merged_from_id: string;
|
|
7703
|
+
notes: string | null;
|
|
7704
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
7705
|
+
source_table: string;
|
|
7706
|
+
status: string;
|
|
7707
|
+
};
|
|
7708
|
+
Insert: {
|
|
7709
|
+
canonical_product_id?: string | null;
|
|
7710
|
+
id?: string;
|
|
7711
|
+
merged_at?: string;
|
|
7712
|
+
merged_from_id: string;
|
|
7713
|
+
notes?: string | null;
|
|
7714
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
7715
|
+
source_table: string;
|
|
7716
|
+
status?: string;
|
|
7717
|
+
};
|
|
7718
|
+
Update: {
|
|
7719
|
+
canonical_product_id?: string | null;
|
|
7720
|
+
id?: string;
|
|
7721
|
+
merged_at?: string;
|
|
7722
|
+
merged_from_id?: string;
|
|
7723
|
+
notes?: string | null;
|
|
7724
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
7725
|
+
source_table?: string;
|
|
7726
|
+
status?: string;
|
|
7727
|
+
};
|
|
7521
7728
|
Relationships: [];
|
|
7522
7729
|
};
|
|
7523
7730
|
products: {
|
|
7524
7731
|
Row: {
|
|
7732
|
+
article_number: string | null;
|
|
7525
7733
|
barcode: string | null;
|
|
7526
7734
|
batch: string;
|
|
7527
7735
|
crates_per_layer: number;
|
|
7528
7736
|
created_at: string;
|
|
7529
7737
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7738
|
+
floriday_active: boolean;
|
|
7739
|
+
floriday_payload: import("../integrations/supabase/types").Json;
|
|
7740
|
+
floriday_trade_item_id: string | null;
|
|
7530
7741
|
id: string;
|
|
7531
7742
|
image_url: string | null;
|
|
7532
7743
|
incoming_quantity: number;
|
|
@@ -7545,11 +7756,15 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7545
7756
|
weight: string | null;
|
|
7546
7757
|
};
|
|
7547
7758
|
Insert: {
|
|
7759
|
+
article_number?: string | null;
|
|
7548
7760
|
barcode?: string | null;
|
|
7549
7761
|
batch: string;
|
|
7550
7762
|
crates_per_layer?: number;
|
|
7551
7763
|
created_at?: string;
|
|
7552
7764
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7765
|
+
floriday_active?: boolean;
|
|
7766
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
7767
|
+
floriday_trade_item_id?: string | null;
|
|
7553
7768
|
id?: string;
|
|
7554
7769
|
image_url?: string | null;
|
|
7555
7770
|
incoming_quantity?: number;
|
|
@@ -7568,11 +7783,15 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7568
7783
|
weight?: string | null;
|
|
7569
7784
|
};
|
|
7570
7785
|
Update: {
|
|
7786
|
+
article_number?: string | null;
|
|
7571
7787
|
barcode?: string | null;
|
|
7572
7788
|
batch?: string;
|
|
7573
7789
|
crates_per_layer?: number;
|
|
7574
7790
|
created_at?: string;
|
|
7575
7791
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7792
|
+
floriday_active?: boolean;
|
|
7793
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
7794
|
+
floriday_trade_item_id?: string | null;
|
|
7576
7795
|
id?: string;
|
|
7577
7796
|
image_url?: string | null;
|
|
7578
7797
|
incoming_quantity?: number;
|
|
@@ -8481,8 +8700,10 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8481
8700
|
order_id: string | null;
|
|
8482
8701
|
order_item_id: string | null;
|
|
8483
8702
|
order_source: string | null;
|
|
8703
|
+
parent_trade_item_key: string | null;
|
|
8484
8704
|
physical_after: number | null;
|
|
8485
8705
|
physical_before: number | null;
|
|
8706
|
+
production_batch_id: string | null;
|
|
8486
8707
|
qty_delta: number;
|
|
8487
8708
|
reason: string | null;
|
|
8488
8709
|
reserved_after: number | null;
|
|
@@ -8498,8 +8719,10 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8498
8719
|
order_id?: string | null;
|
|
8499
8720
|
order_item_id?: string | null;
|
|
8500
8721
|
order_source?: string | null;
|
|
8722
|
+
parent_trade_item_key?: string | null;
|
|
8501
8723
|
physical_after?: number | null;
|
|
8502
8724
|
physical_before?: number | null;
|
|
8725
|
+
production_batch_id?: string | null;
|
|
8503
8726
|
qty_delta: number;
|
|
8504
8727
|
reason?: string | null;
|
|
8505
8728
|
reserved_after?: number | null;
|
|
@@ -8515,8 +8738,10 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8515
8738
|
order_id?: string | null;
|
|
8516
8739
|
order_item_id?: string | null;
|
|
8517
8740
|
order_source?: string | null;
|
|
8741
|
+
parent_trade_item_key?: string | null;
|
|
8518
8742
|
physical_after?: number | null;
|
|
8519
8743
|
physical_before?: number | null;
|
|
8744
|
+
production_batch_id?: string | null;
|
|
8520
8745
|
qty_delta?: number;
|
|
8521
8746
|
reason?: string | null;
|
|
8522
8747
|
reserved_after?: number | null;
|
|
@@ -8975,7 +9200,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8975
9200
|
twinfield_connections: {
|
|
8976
9201
|
Row: {
|
|
8977
9202
|
access_token: string | null;
|
|
8978
|
-
client_id: string;
|
|
9203
|
+
client_id: string | null;
|
|
8979
9204
|
client_secret: string | null;
|
|
8980
9205
|
cluster_uri: string | null;
|
|
8981
9206
|
company_code: string | null;
|
|
@@ -8987,7 +9212,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8987
9212
|
is_active: boolean;
|
|
8988
9213
|
label: string | null;
|
|
8989
9214
|
office_code: string | null;
|
|
8990
|
-
redirect_uri: string;
|
|
9215
|
+
redirect_uri: string | null;
|
|
8991
9216
|
refresh_token: string | null;
|
|
8992
9217
|
token_expires_at: string | null;
|
|
8993
9218
|
updated_at: string;
|
|
@@ -8995,7 +9220,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8995
9220
|
};
|
|
8996
9221
|
Insert: {
|
|
8997
9222
|
access_token?: string | null;
|
|
8998
|
-
client_id
|
|
9223
|
+
client_id?: string | null;
|
|
8999
9224
|
client_secret?: string | null;
|
|
9000
9225
|
cluster_uri?: string | null;
|
|
9001
9226
|
company_code?: string | null;
|
|
@@ -9007,7 +9232,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9007
9232
|
is_active?: boolean;
|
|
9008
9233
|
label?: string | null;
|
|
9009
9234
|
office_code?: string | null;
|
|
9010
|
-
redirect_uri
|
|
9235
|
+
redirect_uri?: string | null;
|
|
9011
9236
|
refresh_token?: string | null;
|
|
9012
9237
|
token_expires_at?: string | null;
|
|
9013
9238
|
updated_at?: string;
|
|
@@ -9015,7 +9240,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9015
9240
|
};
|
|
9016
9241
|
Update: {
|
|
9017
9242
|
access_token?: string | null;
|
|
9018
|
-
client_id?: string;
|
|
9243
|
+
client_id?: string | null;
|
|
9019
9244
|
client_secret?: string | null;
|
|
9020
9245
|
cluster_uri?: string | null;
|
|
9021
9246
|
company_code?: string | null;
|
|
@@ -9027,7 +9252,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9027
9252
|
is_active?: boolean;
|
|
9028
9253
|
label?: string | null;
|
|
9029
9254
|
office_code?: string | null;
|
|
9030
|
-
redirect_uri?: string;
|
|
9255
|
+
redirect_uri?: string | null;
|
|
9031
9256
|
refresh_token?: string | null;
|
|
9032
9257
|
token_expires_at?: string | null;
|
|
9033
9258
|
updated_at?: string;
|
|
@@ -10222,25 +10447,6 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
10222
10447
|
};
|
|
10223
10448
|
Relationships: [];
|
|
10224
10449
|
};
|
|
10225
|
-
floriday_customer_discounts: {
|
|
10226
|
-
Row: {
|
|
10227
|
-
base_price: number | null;
|
|
10228
|
-
buyer_organization_id: string | null;
|
|
10229
|
-
currency: string | null;
|
|
10230
|
-
discount_type: string | null;
|
|
10231
|
-
discount_value: number | null;
|
|
10232
|
-
min_quantity: number | null;
|
|
10233
|
-
net_price: number | null;
|
|
10234
|
-
product_group_id: string | null;
|
|
10235
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
10236
|
-
source: string | null;
|
|
10237
|
-
source_id: string | null;
|
|
10238
|
-
trade_item_id: string | null;
|
|
10239
|
-
valid_from: string | null;
|
|
10240
|
-
valid_until: string | null;
|
|
10241
|
-
};
|
|
10242
|
-
Relationships: [];
|
|
10243
|
-
};
|
|
10244
10450
|
local_customer_discounts: {
|
|
10245
10451
|
Row: {
|
|
10246
10452
|
base_price: number | null;
|
|
@@ -10544,6 +10750,13 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
10544
10750
|
};
|
|
10545
10751
|
Returns: number;
|
|
10546
10752
|
};
|
|
10753
|
+
_migrate_rewrite_stock_key: {
|
|
10754
|
+
Args: {
|
|
10755
|
+
_from_key: string;
|
|
10756
|
+
_to_key: string;
|
|
10757
|
+
};
|
|
10758
|
+
Returns: undefined;
|
|
10759
|
+
};
|
|
10547
10760
|
afh_city_code: {
|
|
10548
10761
|
Args: {
|
|
10549
10762
|
_city: string;
|
|
@@ -10659,6 +10872,28 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
10659
10872
|
Args: never;
|
|
10660
10873
|
Returns: undefined;
|
|
10661
10874
|
};
|
|
10875
|
+
consume_bom_for_production: {
|
|
10876
|
+
Args: {
|
|
10877
|
+
p_connection_id: string;
|
|
10878
|
+
p_parent_id: string;
|
|
10879
|
+
p_parent_key: string;
|
|
10880
|
+
p_parent_kind: string;
|
|
10881
|
+
p_quantity: number;
|
|
10882
|
+
p_user_id: string;
|
|
10883
|
+
};
|
|
10884
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10885
|
+
} | {
|
|
10886
|
+
Args: {
|
|
10887
|
+
p_batch_id?: string;
|
|
10888
|
+
p_connection_id: string;
|
|
10889
|
+
p_parent_id: string;
|
|
10890
|
+
p_parent_key: string;
|
|
10891
|
+
p_parent_kind: string;
|
|
10892
|
+
p_quantity: number;
|
|
10893
|
+
p_user_id: string;
|
|
10894
|
+
};
|
|
10895
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10896
|
+
};
|
|
10662
10897
|
consume_floriday_rate_limit: {
|
|
10663
10898
|
Args: {
|
|
10664
10899
|
p_bucket: string;
|
|
@@ -10710,6 +10945,13 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
10710
10945
|
table_name: string;
|
|
10711
10946
|
}[];
|
|
10712
10947
|
};
|
|
10948
|
+
delete_samenstelling: {
|
|
10949
|
+
Args: {
|
|
10950
|
+
p_parent_id: string;
|
|
10951
|
+
p_parent_kind: string;
|
|
10952
|
+
};
|
|
10953
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10954
|
+
};
|
|
10713
10955
|
dispatch_carrier_signups_sql: {
|
|
10714
10956
|
Args: {
|
|
10715
10957
|
_catchup?: string;
|
|
@@ -10870,19 +11112,6 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
10870
11112
|
resource: string;
|
|
10871
11113
|
}[];
|
|
10872
11114
|
};
|
|
10873
|
-
get_floriday_agreements_active: {
|
|
10874
|
-
Args: {
|
|
10875
|
-
p_on_date?: string;
|
|
10876
|
-
};
|
|
10877
|
-
Returns: {
|
|
10878
|
-
buyer_organization_id: string;
|
|
10879
|
-
data: import("../integrations/supabase/types").Json;
|
|
10880
|
-
floriday_id: string;
|
|
10881
|
-
status: string;
|
|
10882
|
-
valid_from: string;
|
|
10883
|
-
valid_until: string;
|
|
10884
|
-
}[];
|
|
10885
|
-
};
|
|
10886
11115
|
get_floriday_clock_supplies_window: {
|
|
10887
11116
|
Args: {
|
|
10888
11117
|
p_from: string;
|
|
@@ -10955,6 +11184,21 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
10955
11184
|
minutes_since_success: number;
|
|
10956
11185
|
}[];
|
|
10957
11186
|
};
|
|
11187
|
+
get_group_allocation_keys: {
|
|
11188
|
+
Args: {
|
|
11189
|
+
p_product_id: string;
|
|
11190
|
+
};
|
|
11191
|
+
Returns: {
|
|
11192
|
+
k: string;
|
|
11193
|
+
ord: number;
|
|
11194
|
+
}[];
|
|
11195
|
+
};
|
|
11196
|
+
get_group_head_key: {
|
|
11197
|
+
Args: {
|
|
11198
|
+
p_group_id: string;
|
|
11199
|
+
};
|
|
11200
|
+
Returns: string;
|
|
11201
|
+
};
|
|
10958
11202
|
get_offer_by_link_code: {
|
|
10959
11203
|
Args: {
|
|
10960
11204
|
p_code: string;
|
|
@@ -11065,6 +11309,19 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
11065
11309
|
};
|
|
11066
11310
|
Returns: undefined;
|
|
11067
11311
|
};
|
|
11312
|
+
mark_shipment_shipped: {
|
|
11313
|
+
Args: {
|
|
11314
|
+
p_shipment_id: string;
|
|
11315
|
+
};
|
|
11316
|
+
Returns: undefined;
|
|
11317
|
+
};
|
|
11318
|
+
merge_products: {
|
|
11319
|
+
Args: {
|
|
11320
|
+
_canonical: string;
|
|
11321
|
+
_loser: string;
|
|
11322
|
+
};
|
|
11323
|
+
Returns: undefined;
|
|
11324
|
+
};
|
|
11068
11325
|
next_manufacture_partij: {
|
|
11069
11326
|
Args: {
|
|
11070
11327
|
_tenant_id: string;
|
|
@@ -11149,6 +11406,14 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
11149
11406
|
};
|
|
11150
11407
|
Returns: undefined;
|
|
11151
11408
|
};
|
|
11409
|
+
produce_designed_product: {
|
|
11410
|
+
Args: {
|
|
11411
|
+
p_parent_id: string;
|
|
11412
|
+
p_parent_kind: string;
|
|
11413
|
+
p_quantity: number;
|
|
11414
|
+
};
|
|
11415
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11416
|
+
};
|
|
11152
11417
|
promote_trade_item_key: {
|
|
11153
11418
|
Args: {
|
|
11154
11419
|
p_new: string;
|
|
@@ -11156,6 +11421,10 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
11156
11421
|
};
|
|
11157
11422
|
Returns: undefined;
|
|
11158
11423
|
};
|
|
11424
|
+
recompute_all_reserved_stock: {
|
|
11425
|
+
Args: never;
|
|
11426
|
+
Returns: undefined;
|
|
11427
|
+
};
|
|
11159
11428
|
recompute_order_status: {
|
|
11160
11429
|
Args: {
|
|
11161
11430
|
p_order_id: string;
|
|
@@ -11205,27 +11474,45 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
11205
11474
|
};
|
|
11206
11475
|
Returns: undefined;
|
|
11207
11476
|
};
|
|
11477
|
+
resolve_group_allocation: {
|
|
11478
|
+
Args: {
|
|
11479
|
+
_needed: number;
|
|
11480
|
+
_product_group_id: string;
|
|
11481
|
+
};
|
|
11482
|
+
Returns: {
|
|
11483
|
+
allocated: number;
|
|
11484
|
+
trade_item_id: string;
|
|
11485
|
+
}[];
|
|
11486
|
+
};
|
|
11487
|
+
resolve_group_member_stock_key: {
|
|
11488
|
+
Args: {
|
|
11489
|
+
p_trade_item_id: string;
|
|
11490
|
+
};
|
|
11491
|
+
Returns: string;
|
|
11492
|
+
};
|
|
11208
11493
|
resolve_product_id_for_item: {
|
|
11209
11494
|
Args: {
|
|
11210
11495
|
p_product_name: string;
|
|
11211
11496
|
};
|
|
11212
11497
|
Returns: string;
|
|
11213
11498
|
};
|
|
11214
|
-
|
|
11499
|
+
resolve_stock_trade_item_key: {
|
|
11215
11500
|
Args: {
|
|
11216
|
-
|
|
11217
|
-
p_url: string;
|
|
11501
|
+
p_product_id: string;
|
|
11218
11502
|
};
|
|
11219
|
-
Returns:
|
|
11503
|
+
Returns: string;
|
|
11220
11504
|
};
|
|
11221
|
-
|
|
11505
|
+
reverse_production: {
|
|
11222
11506
|
Args: {
|
|
11223
|
-
|
|
11224
|
-
|
|
11507
|
+
p_connection_id?: string;
|
|
11508
|
+
p_parent_key: string;
|
|
11509
|
+
p_quantity: number;
|
|
11510
|
+
p_reason?: string;
|
|
11511
|
+
p_user_id?: string;
|
|
11225
11512
|
};
|
|
11226
|
-
Returns:
|
|
11513
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11227
11514
|
};
|
|
11228
|
-
|
|
11515
|
+
schedule_floriday_additional_services_sync: {
|
|
11229
11516
|
Args: {
|
|
11230
11517
|
p_apikey: string;
|
|
11231
11518
|
p_url: string;
|
|
@@ -14958,105 +15245,6 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
14958
15245
|
referencedColumns: ["id"];
|
|
14959
15246
|
}];
|
|
14960
15247
|
};
|
|
14961
|
-
floriday_agreement_calloffs_cache: {
|
|
14962
|
-
Row: {
|
|
14963
|
-
agreement_id: string | null;
|
|
14964
|
-
connection_id: string;
|
|
14965
|
-
data: import("../integrations/supabase/types").Json;
|
|
14966
|
-
delivery_date: string | null;
|
|
14967
|
-
fetched_at: string;
|
|
14968
|
-
floriday_id: string;
|
|
14969
|
-
id: string;
|
|
14970
|
-
is_deleted: boolean;
|
|
14971
|
-
sequence_number: number;
|
|
14972
|
-
status: string | null;
|
|
14973
|
-
updated_at: string;
|
|
14974
|
-
};
|
|
14975
|
-
Insert: {
|
|
14976
|
-
agreement_id?: string | null;
|
|
14977
|
-
connection_id: string;
|
|
14978
|
-
data?: import("../integrations/supabase/types").Json;
|
|
14979
|
-
delivery_date?: string | null;
|
|
14980
|
-
fetched_at?: string;
|
|
14981
|
-
floriday_id: string;
|
|
14982
|
-
id?: string;
|
|
14983
|
-
is_deleted?: boolean;
|
|
14984
|
-
sequence_number?: number;
|
|
14985
|
-
status?: string | null;
|
|
14986
|
-
updated_at?: string;
|
|
14987
|
-
};
|
|
14988
|
-
Update: {
|
|
14989
|
-
agreement_id?: string | null;
|
|
14990
|
-
connection_id?: string;
|
|
14991
|
-
data?: import("../integrations/supabase/types").Json;
|
|
14992
|
-
delivery_date?: string | null;
|
|
14993
|
-
fetched_at?: string;
|
|
14994
|
-
floriday_id?: string;
|
|
14995
|
-
id?: string;
|
|
14996
|
-
is_deleted?: boolean;
|
|
14997
|
-
sequence_number?: number;
|
|
14998
|
-
status?: string | null;
|
|
14999
|
-
updated_at?: string;
|
|
15000
|
-
};
|
|
15001
|
-
Relationships: [{
|
|
15002
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
15003
|
-
columns: ["connection_id"];
|
|
15004
|
-
isOneToOne: false;
|
|
15005
|
-
referencedRelation: "floriday_connections";
|
|
15006
|
-
referencedColumns: ["id"];
|
|
15007
|
-
}];
|
|
15008
|
-
};
|
|
15009
|
-
floriday_agreements_cache: {
|
|
15010
|
-
Row: {
|
|
15011
|
-
buyer_organization_id: string | null;
|
|
15012
|
-
connection_id: string;
|
|
15013
|
-
data: import("../integrations/supabase/types").Json;
|
|
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
|
-
valid_from: string | null;
|
|
15022
|
-
valid_until: string | null;
|
|
15023
|
-
};
|
|
15024
|
-
Insert: {
|
|
15025
|
-
buyer_organization_id?: string | null;
|
|
15026
|
-
connection_id: string;
|
|
15027
|
-
data?: import("../integrations/supabase/types").Json;
|
|
15028
|
-
fetched_at?: string;
|
|
15029
|
-
floriday_id: string;
|
|
15030
|
-
id?: string;
|
|
15031
|
-
is_deleted?: boolean;
|
|
15032
|
-
sequence_number?: number;
|
|
15033
|
-
status?: string | null;
|
|
15034
|
-
updated_at?: string;
|
|
15035
|
-
valid_from?: string | null;
|
|
15036
|
-
valid_until?: string | null;
|
|
15037
|
-
};
|
|
15038
|
-
Update: {
|
|
15039
|
-
buyer_organization_id?: string | null;
|
|
15040
|
-
connection_id?: string;
|
|
15041
|
-
data?: import("../integrations/supabase/types").Json;
|
|
15042
|
-
fetched_at?: string;
|
|
15043
|
-
floriday_id?: string;
|
|
15044
|
-
id?: string;
|
|
15045
|
-
is_deleted?: boolean;
|
|
15046
|
-
sequence_number?: number;
|
|
15047
|
-
status?: string | null;
|
|
15048
|
-
updated_at?: string;
|
|
15049
|
-
valid_from?: string | null;
|
|
15050
|
-
valid_until?: string | null;
|
|
15051
|
-
};
|
|
15052
|
-
Relationships: [{
|
|
15053
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
15054
|
-
columns: ["connection_id"];
|
|
15055
|
-
isOneToOne: false;
|
|
15056
|
-
referencedRelation: "floriday_connections";
|
|
15057
|
-
referencedColumns: ["id"];
|
|
15058
|
-
}];
|
|
15059
|
-
};
|
|
15060
15248
|
floriday_auction_letters_cache: {
|
|
15061
15249
|
Row: {
|
|
15062
15250
|
auction_letter_code: string;
|
|
@@ -16554,6 +16742,45 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16554
16742
|
referencedColumns: ["id"];
|
|
16555
16743
|
}];
|
|
16556
16744
|
};
|
|
16745
|
+
floriday_trade_settings_customers_cache: {
|
|
16746
|
+
Row: {
|
|
16747
|
+
connection_id: string;
|
|
16748
|
+
data: import("../integrations/supabase/types").Json;
|
|
16749
|
+
fetched_at: string;
|
|
16750
|
+
floriday_id: string;
|
|
16751
|
+
id: string;
|
|
16752
|
+
is_deleted: boolean;
|
|
16753
|
+
sequence_number: number;
|
|
16754
|
+
updated_at: string;
|
|
16755
|
+
};
|
|
16756
|
+
Insert: {
|
|
16757
|
+
connection_id: string;
|
|
16758
|
+
data: import("../integrations/supabase/types").Json;
|
|
16759
|
+
fetched_at?: string;
|
|
16760
|
+
floriday_id: string;
|
|
16761
|
+
id?: string;
|
|
16762
|
+
is_deleted?: boolean;
|
|
16763
|
+
sequence_number?: number;
|
|
16764
|
+
updated_at?: string;
|
|
16765
|
+
};
|
|
16766
|
+
Update: {
|
|
16767
|
+
connection_id?: string;
|
|
16768
|
+
data?: import("../integrations/supabase/types").Json;
|
|
16769
|
+
fetched_at?: string;
|
|
16770
|
+
floriday_id?: string;
|
|
16771
|
+
id?: string;
|
|
16772
|
+
is_deleted?: boolean;
|
|
16773
|
+
sequence_number?: number;
|
|
16774
|
+
updated_at?: string;
|
|
16775
|
+
};
|
|
16776
|
+
Relationships: [{
|
|
16777
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
16778
|
+
columns: ["connection_id"];
|
|
16779
|
+
isOneToOne: false;
|
|
16780
|
+
referencedRelation: "floriday_connections";
|
|
16781
|
+
referencedColumns: ["id"];
|
|
16782
|
+
}];
|
|
16783
|
+
};
|
|
16557
16784
|
floriday_trips_cache: {
|
|
16558
16785
|
Row: {
|
|
16559
16786
|
carrier_organization_id: string | null;
|
|
@@ -18726,6 +18953,105 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18726
18953
|
};
|
|
18727
18954
|
Relationships: [];
|
|
18728
18955
|
};
|
|
18956
|
+
order_shipment_items: {
|
|
18957
|
+
Row: {
|
|
18958
|
+
created_at: string;
|
|
18959
|
+
id: string;
|
|
18960
|
+
order_item_id: string;
|
|
18961
|
+
product_id: string | null;
|
|
18962
|
+
product_name: string;
|
|
18963
|
+
quantity: number;
|
|
18964
|
+
shipment_id: string;
|
|
18965
|
+
updated_at: string;
|
|
18966
|
+
};
|
|
18967
|
+
Insert: {
|
|
18968
|
+
created_at?: string;
|
|
18969
|
+
id?: string;
|
|
18970
|
+
order_item_id: string;
|
|
18971
|
+
product_id?: string | null;
|
|
18972
|
+
product_name: string;
|
|
18973
|
+
quantity: number;
|
|
18974
|
+
shipment_id: string;
|
|
18975
|
+
updated_at?: string;
|
|
18976
|
+
};
|
|
18977
|
+
Update: {
|
|
18978
|
+
created_at?: string;
|
|
18979
|
+
id?: string;
|
|
18980
|
+
order_item_id?: string;
|
|
18981
|
+
product_id?: string | null;
|
|
18982
|
+
product_name?: string;
|
|
18983
|
+
quantity?: number;
|
|
18984
|
+
shipment_id?: string;
|
|
18985
|
+
updated_at?: string;
|
|
18986
|
+
};
|
|
18987
|
+
Relationships: [{
|
|
18988
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
18989
|
+
columns: ["order_item_id"];
|
|
18990
|
+
isOneToOne: false;
|
|
18991
|
+
referencedRelation: "order_items";
|
|
18992
|
+
referencedColumns: ["id"];
|
|
18993
|
+
}, {
|
|
18994
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
18995
|
+
columns: ["shipment_id"];
|
|
18996
|
+
isOneToOne: false;
|
|
18997
|
+
referencedRelation: "order_shipments";
|
|
18998
|
+
referencedColumns: ["id"];
|
|
18999
|
+
}];
|
|
19000
|
+
};
|
|
19001
|
+
order_shipments: {
|
|
19002
|
+
Row: {
|
|
19003
|
+
carrier_id: string | null;
|
|
19004
|
+
created_at: string;
|
|
19005
|
+
delivery_date: string | null;
|
|
19006
|
+
delivery_location_id: string | null;
|
|
19007
|
+
id: string;
|
|
19008
|
+
notes: string | null;
|
|
19009
|
+
order_id: string;
|
|
19010
|
+
shipment_number: number;
|
|
19011
|
+
shipped_at: string | null;
|
|
19012
|
+
status: string;
|
|
19013
|
+
updated_at: string;
|
|
19014
|
+
};
|
|
19015
|
+
Insert: {
|
|
19016
|
+
carrier_id?: string | null;
|
|
19017
|
+
created_at?: string;
|
|
19018
|
+
delivery_date?: string | null;
|
|
19019
|
+
delivery_location_id?: string | null;
|
|
19020
|
+
id?: string;
|
|
19021
|
+
notes?: string | null;
|
|
19022
|
+
order_id: string;
|
|
19023
|
+
shipment_number: number;
|
|
19024
|
+
shipped_at?: string | null;
|
|
19025
|
+
status?: string;
|
|
19026
|
+
updated_at?: string;
|
|
19027
|
+
};
|
|
19028
|
+
Update: {
|
|
19029
|
+
carrier_id?: string | null;
|
|
19030
|
+
created_at?: string;
|
|
19031
|
+
delivery_date?: string | null;
|
|
19032
|
+
delivery_location_id?: string | null;
|
|
19033
|
+
id?: string;
|
|
19034
|
+
notes?: string | null;
|
|
19035
|
+
order_id?: string;
|
|
19036
|
+
shipment_number?: number;
|
|
19037
|
+
shipped_at?: string | null;
|
|
19038
|
+
status?: string;
|
|
19039
|
+
updated_at?: string;
|
|
19040
|
+
};
|
|
19041
|
+
Relationships: [{
|
|
19042
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
19043
|
+
columns: ["carrier_id"];
|
|
19044
|
+
isOneToOne: false;
|
|
19045
|
+
referencedRelation: "carriers";
|
|
19046
|
+
referencedColumns: ["id"];
|
|
19047
|
+
}, {
|
|
19048
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
19049
|
+
columns: ["order_id"];
|
|
19050
|
+
isOneToOne: false;
|
|
19051
|
+
referencedRelation: "orders";
|
|
19052
|
+
referencedColumns: ["id"];
|
|
19053
|
+
}];
|
|
19054
|
+
};
|
|
18729
19055
|
orders: {
|
|
18730
19056
|
Row: {
|
|
18731
19057
|
created_at: string;
|
|
@@ -18733,8 +19059,9 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18733
19059
|
customer_id: string | null;
|
|
18734
19060
|
customer_name: string;
|
|
18735
19061
|
deleted_at: string | null;
|
|
18736
|
-
delivery_date: string;
|
|
19062
|
+
delivery_date: string | null;
|
|
18737
19063
|
id: string;
|
|
19064
|
+
is_reservation: boolean;
|
|
18738
19065
|
notes: string | null;
|
|
18739
19066
|
order_date: string;
|
|
18740
19067
|
order_number: string;
|
|
@@ -18751,8 +19078,9 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18751
19078
|
customer_id?: string | null;
|
|
18752
19079
|
customer_name?: string;
|
|
18753
19080
|
deleted_at?: string | null;
|
|
18754
|
-
delivery_date
|
|
19081
|
+
delivery_date?: string | null;
|
|
18755
19082
|
id?: string;
|
|
19083
|
+
is_reservation?: boolean;
|
|
18756
19084
|
notes?: string | null;
|
|
18757
19085
|
order_date?: string;
|
|
18758
19086
|
order_number: string;
|
|
@@ -18769,8 +19097,9 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18769
19097
|
customer_id?: string | null;
|
|
18770
19098
|
customer_name?: string;
|
|
18771
19099
|
deleted_at?: string | null;
|
|
18772
|
-
delivery_date?: string;
|
|
19100
|
+
delivery_date?: string | null;
|
|
18773
19101
|
id?: string;
|
|
19102
|
+
is_reservation?: boolean;
|
|
18774
19103
|
notes?: string | null;
|
|
18775
19104
|
order_date?: string;
|
|
18776
19105
|
order_number?: string;
|
|
@@ -18912,6 +19241,63 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18912
19241
|
};
|
|
18913
19242
|
Relationships: [];
|
|
18914
19243
|
};
|
|
19244
|
+
product_bom_items: {
|
|
19245
|
+
Row: {
|
|
19246
|
+
component_product_id: string | null;
|
|
19247
|
+
component_trade_item_floriday_id: string | null;
|
|
19248
|
+
created_at: string;
|
|
19249
|
+
id: string;
|
|
19250
|
+
notes: string | null;
|
|
19251
|
+
parent_product_id: string | null;
|
|
19252
|
+
parent_trade_item_floriday_id: string | null;
|
|
19253
|
+
quantity: number;
|
|
19254
|
+
sort_order: number;
|
|
19255
|
+
tenant_id: string;
|
|
19256
|
+
unit: string;
|
|
19257
|
+
updated_at: string;
|
|
19258
|
+
};
|
|
19259
|
+
Insert: {
|
|
19260
|
+
component_product_id?: string | null;
|
|
19261
|
+
component_trade_item_floriday_id?: string | null;
|
|
19262
|
+
created_at?: string;
|
|
19263
|
+
id?: string;
|
|
19264
|
+
notes?: string | null;
|
|
19265
|
+
parent_product_id?: string | null;
|
|
19266
|
+
parent_trade_item_floriday_id?: string | null;
|
|
19267
|
+
quantity?: number;
|
|
19268
|
+
sort_order?: number;
|
|
19269
|
+
tenant_id: string;
|
|
19270
|
+
unit?: string;
|
|
19271
|
+
updated_at?: string;
|
|
19272
|
+
};
|
|
19273
|
+
Update: {
|
|
19274
|
+
component_product_id?: string | null;
|
|
19275
|
+
component_trade_item_floriday_id?: string | null;
|
|
19276
|
+
created_at?: string;
|
|
19277
|
+
id?: string;
|
|
19278
|
+
notes?: string | null;
|
|
19279
|
+
parent_product_id?: string | null;
|
|
19280
|
+
parent_trade_item_floriday_id?: string | null;
|
|
19281
|
+
quantity?: number;
|
|
19282
|
+
sort_order?: number;
|
|
19283
|
+
tenant_id?: string;
|
|
19284
|
+
unit?: string;
|
|
19285
|
+
updated_at?: string;
|
|
19286
|
+
};
|
|
19287
|
+
Relationships: [{
|
|
19288
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
19289
|
+
columns: ["component_product_id"];
|
|
19290
|
+
isOneToOne: false;
|
|
19291
|
+
referencedRelation: "products";
|
|
19292
|
+
referencedColumns: ["id"];
|
|
19293
|
+
}, {
|
|
19294
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
19295
|
+
columns: ["parent_product_id"];
|
|
19296
|
+
isOneToOne: false;
|
|
19297
|
+
referencedRelation: "products";
|
|
19298
|
+
referencedColumns: ["id"];
|
|
19299
|
+
}];
|
|
19300
|
+
};
|
|
18915
19301
|
product_categories: {
|
|
18916
19302
|
Row: {
|
|
18917
19303
|
color: string;
|
|
@@ -19017,6 +19403,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19017
19403
|
id: string;
|
|
19018
19404
|
product_group_id: string;
|
|
19019
19405
|
quantity: number;
|
|
19406
|
+
sort_order: number;
|
|
19020
19407
|
trade_item_id: string;
|
|
19021
19408
|
};
|
|
19022
19409
|
Insert: {
|
|
@@ -19024,6 +19411,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19024
19411
|
id?: string;
|
|
19025
19412
|
product_group_id: string;
|
|
19026
19413
|
quantity?: number;
|
|
19414
|
+
sort_order?: number;
|
|
19027
19415
|
trade_item_id: string;
|
|
19028
19416
|
};
|
|
19029
19417
|
Update: {
|
|
@@ -19031,6 +19419,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19031
19419
|
id?: string;
|
|
19032
19420
|
product_group_id?: string;
|
|
19033
19421
|
quantity?: number;
|
|
19422
|
+
sort_order?: number;
|
|
19034
19423
|
trade_item_id?: string;
|
|
19035
19424
|
};
|
|
19036
19425
|
Relationships: [{
|
|
@@ -19045,6 +19434,8 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19045
19434
|
Row: {
|
|
19046
19435
|
created_at: string;
|
|
19047
19436
|
description: string | null;
|
|
19437
|
+
head_product_id: string | null;
|
|
19438
|
+
head_trade_item_floriday_id: string | null;
|
|
19048
19439
|
id: string;
|
|
19049
19440
|
is_active: boolean;
|
|
19050
19441
|
name: string;
|
|
@@ -19054,6 +19445,8 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19054
19445
|
Insert: {
|
|
19055
19446
|
created_at?: string;
|
|
19056
19447
|
description?: string | null;
|
|
19448
|
+
head_product_id?: string | null;
|
|
19449
|
+
head_trade_item_floriday_id?: string | null;
|
|
19057
19450
|
id?: string;
|
|
19058
19451
|
is_active?: boolean;
|
|
19059
19452
|
name: string;
|
|
@@ -19063,21 +19456,126 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19063
19456
|
Update: {
|
|
19064
19457
|
created_at?: string;
|
|
19065
19458
|
description?: string | null;
|
|
19459
|
+
head_product_id?: string | null;
|
|
19460
|
+
head_trade_item_floriday_id?: string | null;
|
|
19066
19461
|
id?: string;
|
|
19067
19462
|
is_active?: boolean;
|
|
19068
19463
|
name?: string;
|
|
19069
19464
|
tenant_id?: string;
|
|
19070
19465
|
updated_at?: string;
|
|
19071
19466
|
};
|
|
19467
|
+
Relationships: [{
|
|
19468
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
19469
|
+
columns: ["head_product_id"];
|
|
19470
|
+
isOneToOne: false;
|
|
19471
|
+
referencedRelation: "products";
|
|
19472
|
+
referencedColumns: ["id"];
|
|
19473
|
+
}];
|
|
19474
|
+
};
|
|
19475
|
+
product_load_settings: {
|
|
19476
|
+
Row: {
|
|
19477
|
+
created_at: string;
|
|
19478
|
+
id: string;
|
|
19479
|
+
is_package: boolean;
|
|
19480
|
+
layers_per_load_carrier: number | null;
|
|
19481
|
+
load_carrier: string | null;
|
|
19482
|
+
package_id: string | null;
|
|
19483
|
+
package_label: string | null;
|
|
19484
|
+
packages_per_layer: number | null;
|
|
19485
|
+
product_id: string | null;
|
|
19486
|
+
tenant_id: string;
|
|
19487
|
+
trade_item_floriday_id: string | null;
|
|
19488
|
+
units_per_package: number | null;
|
|
19489
|
+
updated_at: string;
|
|
19490
|
+
};
|
|
19491
|
+
Insert: {
|
|
19492
|
+
created_at?: string;
|
|
19493
|
+
id?: string;
|
|
19494
|
+
is_package?: boolean;
|
|
19495
|
+
layers_per_load_carrier?: number | null;
|
|
19496
|
+
load_carrier?: string | null;
|
|
19497
|
+
package_id?: string | null;
|
|
19498
|
+
package_label?: string | null;
|
|
19499
|
+
packages_per_layer?: number | null;
|
|
19500
|
+
product_id?: string | null;
|
|
19501
|
+
tenant_id: string;
|
|
19502
|
+
trade_item_floriday_id?: string | null;
|
|
19503
|
+
units_per_package?: number | null;
|
|
19504
|
+
updated_at?: string;
|
|
19505
|
+
};
|
|
19506
|
+
Update: {
|
|
19507
|
+
created_at?: string;
|
|
19508
|
+
id?: string;
|
|
19509
|
+
is_package?: boolean;
|
|
19510
|
+
layers_per_load_carrier?: number | null;
|
|
19511
|
+
load_carrier?: string | null;
|
|
19512
|
+
package_id?: string | null;
|
|
19513
|
+
package_label?: string | null;
|
|
19514
|
+
packages_per_layer?: number | null;
|
|
19515
|
+
product_id?: string | null;
|
|
19516
|
+
tenant_id?: string;
|
|
19517
|
+
trade_item_floriday_id?: string | null;
|
|
19518
|
+
units_per_package?: number | null;
|
|
19519
|
+
updated_at?: string;
|
|
19520
|
+
};
|
|
19521
|
+
Relationships: [{
|
|
19522
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
19523
|
+
columns: ["package_id"];
|
|
19524
|
+
isOneToOne: false;
|
|
19525
|
+
referencedRelation: "packages";
|
|
19526
|
+
referencedColumns: ["id"];
|
|
19527
|
+
}, {
|
|
19528
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
19529
|
+
columns: ["product_id"];
|
|
19530
|
+
isOneToOne: false;
|
|
19531
|
+
referencedRelation: "products";
|
|
19532
|
+
referencedColumns: ["id"];
|
|
19533
|
+
}];
|
|
19534
|
+
};
|
|
19535
|
+
product_merge_log: {
|
|
19536
|
+
Row: {
|
|
19537
|
+
canonical_product_id: string | null;
|
|
19538
|
+
id: string;
|
|
19539
|
+
merged_at: string;
|
|
19540
|
+
merged_from_id: string;
|
|
19541
|
+
notes: string | null;
|
|
19542
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
19543
|
+
source_table: string;
|
|
19544
|
+
status: string;
|
|
19545
|
+
};
|
|
19546
|
+
Insert: {
|
|
19547
|
+
canonical_product_id?: string | null;
|
|
19548
|
+
id?: string;
|
|
19549
|
+
merged_at?: string;
|
|
19550
|
+
merged_from_id: string;
|
|
19551
|
+
notes?: string | null;
|
|
19552
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
19553
|
+
source_table: string;
|
|
19554
|
+
status?: string;
|
|
19555
|
+
};
|
|
19556
|
+
Update: {
|
|
19557
|
+
canonical_product_id?: string | null;
|
|
19558
|
+
id?: string;
|
|
19559
|
+
merged_at?: string;
|
|
19560
|
+
merged_from_id?: string;
|
|
19561
|
+
notes?: string | null;
|
|
19562
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
19563
|
+
source_table?: string;
|
|
19564
|
+
status?: string;
|
|
19565
|
+
};
|
|
19072
19566
|
Relationships: [];
|
|
19073
19567
|
};
|
|
19074
19568
|
products: {
|
|
19075
19569
|
Row: {
|
|
19570
|
+
article_number: string | null;
|
|
19076
19571
|
barcode: string | null;
|
|
19077
19572
|
batch: string;
|
|
19078
19573
|
crates_per_layer: number;
|
|
19079
19574
|
created_at: string;
|
|
19080
19575
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
19576
|
+
floriday_active: boolean;
|
|
19577
|
+
floriday_payload: import("../integrations/supabase/types").Json;
|
|
19578
|
+
floriday_trade_item_id: string | null;
|
|
19081
19579
|
id: string;
|
|
19082
19580
|
image_url: string | null;
|
|
19083
19581
|
incoming_quantity: number;
|
|
@@ -19096,11 +19594,15 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19096
19594
|
weight: string | null;
|
|
19097
19595
|
};
|
|
19098
19596
|
Insert: {
|
|
19597
|
+
article_number?: string | null;
|
|
19099
19598
|
barcode?: string | null;
|
|
19100
19599
|
batch: string;
|
|
19101
19600
|
crates_per_layer?: number;
|
|
19102
19601
|
created_at?: string;
|
|
19103
19602
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
19603
|
+
floriday_active?: boolean;
|
|
19604
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
19605
|
+
floriday_trade_item_id?: string | null;
|
|
19104
19606
|
id?: string;
|
|
19105
19607
|
image_url?: string | null;
|
|
19106
19608
|
incoming_quantity?: number;
|
|
@@ -19119,11 +19621,15 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19119
19621
|
weight?: string | null;
|
|
19120
19622
|
};
|
|
19121
19623
|
Update: {
|
|
19624
|
+
article_number?: string | null;
|
|
19122
19625
|
barcode?: string | null;
|
|
19123
19626
|
batch?: string;
|
|
19124
19627
|
crates_per_layer?: number;
|
|
19125
19628
|
created_at?: string;
|
|
19126
19629
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
19630
|
+
floriday_active?: boolean;
|
|
19631
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
19632
|
+
floriday_trade_item_id?: string | null;
|
|
19127
19633
|
id?: string;
|
|
19128
19634
|
image_url?: string | null;
|
|
19129
19635
|
incoming_quantity?: number;
|
|
@@ -20032,8 +20538,10 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20032
20538
|
order_id: string | null;
|
|
20033
20539
|
order_item_id: string | null;
|
|
20034
20540
|
order_source: string | null;
|
|
20541
|
+
parent_trade_item_key: string | null;
|
|
20035
20542
|
physical_after: number | null;
|
|
20036
20543
|
physical_before: number | null;
|
|
20544
|
+
production_batch_id: string | null;
|
|
20037
20545
|
qty_delta: number;
|
|
20038
20546
|
reason: string | null;
|
|
20039
20547
|
reserved_after: number | null;
|
|
@@ -20049,8 +20557,10 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20049
20557
|
order_id?: string | null;
|
|
20050
20558
|
order_item_id?: string | null;
|
|
20051
20559
|
order_source?: string | null;
|
|
20560
|
+
parent_trade_item_key?: string | null;
|
|
20052
20561
|
physical_after?: number | null;
|
|
20053
20562
|
physical_before?: number | null;
|
|
20563
|
+
production_batch_id?: string | null;
|
|
20054
20564
|
qty_delta: number;
|
|
20055
20565
|
reason?: string | null;
|
|
20056
20566
|
reserved_after?: number | null;
|
|
@@ -20066,8 +20576,10 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20066
20576
|
order_id?: string | null;
|
|
20067
20577
|
order_item_id?: string | null;
|
|
20068
20578
|
order_source?: string | null;
|
|
20579
|
+
parent_trade_item_key?: string | null;
|
|
20069
20580
|
physical_after?: number | null;
|
|
20070
20581
|
physical_before?: number | null;
|
|
20582
|
+
production_batch_id?: string | null;
|
|
20071
20583
|
qty_delta?: number;
|
|
20072
20584
|
reason?: string | null;
|
|
20073
20585
|
reserved_after?: number | null;
|
|
@@ -20526,7 +21038,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20526
21038
|
twinfield_connections: {
|
|
20527
21039
|
Row: {
|
|
20528
21040
|
access_token: string | null;
|
|
20529
|
-
client_id: string;
|
|
21041
|
+
client_id: string | null;
|
|
20530
21042
|
client_secret: string | null;
|
|
20531
21043
|
cluster_uri: string | null;
|
|
20532
21044
|
company_code: string | null;
|
|
@@ -20538,7 +21050,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20538
21050
|
is_active: boolean;
|
|
20539
21051
|
label: string | null;
|
|
20540
21052
|
office_code: string | null;
|
|
20541
|
-
redirect_uri: string;
|
|
21053
|
+
redirect_uri: string | null;
|
|
20542
21054
|
refresh_token: string | null;
|
|
20543
21055
|
token_expires_at: string | null;
|
|
20544
21056
|
updated_at: string;
|
|
@@ -20546,7 +21058,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20546
21058
|
};
|
|
20547
21059
|
Insert: {
|
|
20548
21060
|
access_token?: string | null;
|
|
20549
|
-
client_id
|
|
21061
|
+
client_id?: string | null;
|
|
20550
21062
|
client_secret?: string | null;
|
|
20551
21063
|
cluster_uri?: string | null;
|
|
20552
21064
|
company_code?: string | null;
|
|
@@ -20558,7 +21070,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20558
21070
|
is_active?: boolean;
|
|
20559
21071
|
label?: string | null;
|
|
20560
21072
|
office_code?: string | null;
|
|
20561
|
-
redirect_uri
|
|
21073
|
+
redirect_uri?: string | null;
|
|
20562
21074
|
refresh_token?: string | null;
|
|
20563
21075
|
token_expires_at?: string | null;
|
|
20564
21076
|
updated_at?: string;
|
|
@@ -20566,7 +21078,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20566
21078
|
};
|
|
20567
21079
|
Update: {
|
|
20568
21080
|
access_token?: string | null;
|
|
20569
|
-
client_id?: string;
|
|
21081
|
+
client_id?: string | null;
|
|
20570
21082
|
client_secret?: string | null;
|
|
20571
21083
|
cluster_uri?: string | null;
|
|
20572
21084
|
company_code?: string | null;
|
|
@@ -20578,7 +21090,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20578
21090
|
is_active?: boolean;
|
|
20579
21091
|
label?: string | null;
|
|
20580
21092
|
office_code?: string | null;
|
|
20581
|
-
redirect_uri?: string;
|
|
21093
|
+
redirect_uri?: string | null;
|
|
20582
21094
|
refresh_token?: string | null;
|
|
20583
21095
|
token_expires_at?: string | null;
|
|
20584
21096
|
updated_at?: string;
|
|
@@ -21773,25 +22285,6 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21773
22285
|
};
|
|
21774
22286
|
Relationships: [];
|
|
21775
22287
|
};
|
|
21776
|
-
floriday_customer_discounts: {
|
|
21777
|
-
Row: {
|
|
21778
|
-
base_price: number | null;
|
|
21779
|
-
buyer_organization_id: string | null;
|
|
21780
|
-
currency: string | null;
|
|
21781
|
-
discount_type: string | null;
|
|
21782
|
-
discount_value: number | null;
|
|
21783
|
-
min_quantity: number | null;
|
|
21784
|
-
net_price: number | null;
|
|
21785
|
-
product_group_id: string | null;
|
|
21786
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
21787
|
-
source: string | null;
|
|
21788
|
-
source_id: string | null;
|
|
21789
|
-
trade_item_id: string | null;
|
|
21790
|
-
valid_from: string | null;
|
|
21791
|
-
valid_until: string | null;
|
|
21792
|
-
};
|
|
21793
|
-
Relationships: [];
|
|
21794
|
-
};
|
|
21795
22288
|
local_customer_discounts: {
|
|
21796
22289
|
Row: {
|
|
21797
22290
|
base_price: number | null;
|
|
@@ -22095,6 +22588,13 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22095
22588
|
};
|
|
22096
22589
|
Returns: number;
|
|
22097
22590
|
};
|
|
22591
|
+
_migrate_rewrite_stock_key: {
|
|
22592
|
+
Args: {
|
|
22593
|
+
_from_key: string;
|
|
22594
|
+
_to_key: string;
|
|
22595
|
+
};
|
|
22596
|
+
Returns: undefined;
|
|
22597
|
+
};
|
|
22098
22598
|
afh_city_code: {
|
|
22099
22599
|
Args: {
|
|
22100
22600
|
_city: string;
|
|
@@ -22210,6 +22710,28 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22210
22710
|
Args: never;
|
|
22211
22711
|
Returns: undefined;
|
|
22212
22712
|
};
|
|
22713
|
+
consume_bom_for_production: {
|
|
22714
|
+
Args: {
|
|
22715
|
+
p_connection_id: string;
|
|
22716
|
+
p_parent_id: string;
|
|
22717
|
+
p_parent_key: string;
|
|
22718
|
+
p_parent_kind: string;
|
|
22719
|
+
p_quantity: number;
|
|
22720
|
+
p_user_id: string;
|
|
22721
|
+
};
|
|
22722
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22723
|
+
} | {
|
|
22724
|
+
Args: {
|
|
22725
|
+
p_batch_id?: string;
|
|
22726
|
+
p_connection_id: string;
|
|
22727
|
+
p_parent_id: string;
|
|
22728
|
+
p_parent_key: string;
|
|
22729
|
+
p_parent_kind: string;
|
|
22730
|
+
p_quantity: number;
|
|
22731
|
+
p_user_id: string;
|
|
22732
|
+
};
|
|
22733
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22734
|
+
};
|
|
22213
22735
|
consume_floriday_rate_limit: {
|
|
22214
22736
|
Args: {
|
|
22215
22737
|
p_bucket: string;
|
|
@@ -22261,6 +22783,13 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22261
22783
|
table_name: string;
|
|
22262
22784
|
}[];
|
|
22263
22785
|
};
|
|
22786
|
+
delete_samenstelling: {
|
|
22787
|
+
Args: {
|
|
22788
|
+
p_parent_id: string;
|
|
22789
|
+
p_parent_kind: string;
|
|
22790
|
+
};
|
|
22791
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22792
|
+
};
|
|
22264
22793
|
dispatch_carrier_signups_sql: {
|
|
22265
22794
|
Args: {
|
|
22266
22795
|
_catchup?: string;
|
|
@@ -22421,19 +22950,6 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22421
22950
|
resource: string;
|
|
22422
22951
|
}[];
|
|
22423
22952
|
};
|
|
22424
|
-
get_floriday_agreements_active: {
|
|
22425
|
-
Args: {
|
|
22426
|
-
p_on_date?: string;
|
|
22427
|
-
};
|
|
22428
|
-
Returns: {
|
|
22429
|
-
buyer_organization_id: string;
|
|
22430
|
-
data: import("../integrations/supabase/types").Json;
|
|
22431
|
-
floriday_id: string;
|
|
22432
|
-
status: string;
|
|
22433
|
-
valid_from: string;
|
|
22434
|
-
valid_until: string;
|
|
22435
|
-
}[];
|
|
22436
|
-
};
|
|
22437
22953
|
get_floriday_clock_supplies_window: {
|
|
22438
22954
|
Args: {
|
|
22439
22955
|
p_from: string;
|
|
@@ -22506,6 +23022,21 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22506
23022
|
minutes_since_success: number;
|
|
22507
23023
|
}[];
|
|
22508
23024
|
};
|
|
23025
|
+
get_group_allocation_keys: {
|
|
23026
|
+
Args: {
|
|
23027
|
+
p_product_id: string;
|
|
23028
|
+
};
|
|
23029
|
+
Returns: {
|
|
23030
|
+
k: string;
|
|
23031
|
+
ord: number;
|
|
23032
|
+
}[];
|
|
23033
|
+
};
|
|
23034
|
+
get_group_head_key: {
|
|
23035
|
+
Args: {
|
|
23036
|
+
p_group_id: string;
|
|
23037
|
+
};
|
|
23038
|
+
Returns: string;
|
|
23039
|
+
};
|
|
22509
23040
|
get_offer_by_link_code: {
|
|
22510
23041
|
Args: {
|
|
22511
23042
|
p_code: string;
|
|
@@ -22616,6 +23147,19 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22616
23147
|
};
|
|
22617
23148
|
Returns: undefined;
|
|
22618
23149
|
};
|
|
23150
|
+
mark_shipment_shipped: {
|
|
23151
|
+
Args: {
|
|
23152
|
+
p_shipment_id: string;
|
|
23153
|
+
};
|
|
23154
|
+
Returns: undefined;
|
|
23155
|
+
};
|
|
23156
|
+
merge_products: {
|
|
23157
|
+
Args: {
|
|
23158
|
+
_canonical: string;
|
|
23159
|
+
_loser: string;
|
|
23160
|
+
};
|
|
23161
|
+
Returns: undefined;
|
|
23162
|
+
};
|
|
22619
23163
|
next_manufacture_partij: {
|
|
22620
23164
|
Args: {
|
|
22621
23165
|
_tenant_id: string;
|
|
@@ -22700,6 +23244,14 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22700
23244
|
};
|
|
22701
23245
|
Returns: undefined;
|
|
22702
23246
|
};
|
|
23247
|
+
produce_designed_product: {
|
|
23248
|
+
Args: {
|
|
23249
|
+
p_parent_id: string;
|
|
23250
|
+
p_parent_kind: string;
|
|
23251
|
+
p_quantity: number;
|
|
23252
|
+
};
|
|
23253
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
23254
|
+
};
|
|
22703
23255
|
promote_trade_item_key: {
|
|
22704
23256
|
Args: {
|
|
22705
23257
|
p_new: string;
|
|
@@ -22707,6 +23259,10 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22707
23259
|
};
|
|
22708
23260
|
Returns: undefined;
|
|
22709
23261
|
};
|
|
23262
|
+
recompute_all_reserved_stock: {
|
|
23263
|
+
Args: never;
|
|
23264
|
+
Returns: undefined;
|
|
23265
|
+
};
|
|
22710
23266
|
recompute_order_status: {
|
|
22711
23267
|
Args: {
|
|
22712
23268
|
p_order_id: string;
|
|
@@ -22756,27 +23312,45 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22756
23312
|
};
|
|
22757
23313
|
Returns: undefined;
|
|
22758
23314
|
};
|
|
23315
|
+
resolve_group_allocation: {
|
|
23316
|
+
Args: {
|
|
23317
|
+
_needed: number;
|
|
23318
|
+
_product_group_id: string;
|
|
23319
|
+
};
|
|
23320
|
+
Returns: {
|
|
23321
|
+
allocated: number;
|
|
23322
|
+
trade_item_id: string;
|
|
23323
|
+
}[];
|
|
23324
|
+
};
|
|
23325
|
+
resolve_group_member_stock_key: {
|
|
23326
|
+
Args: {
|
|
23327
|
+
p_trade_item_id: string;
|
|
23328
|
+
};
|
|
23329
|
+
Returns: string;
|
|
23330
|
+
};
|
|
22759
23331
|
resolve_product_id_for_item: {
|
|
22760
23332
|
Args: {
|
|
22761
23333
|
p_product_name: string;
|
|
22762
23334
|
};
|
|
22763
23335
|
Returns: string;
|
|
22764
23336
|
};
|
|
22765
|
-
|
|
23337
|
+
resolve_stock_trade_item_key: {
|
|
22766
23338
|
Args: {
|
|
22767
|
-
|
|
22768
|
-
p_url: string;
|
|
23339
|
+
p_product_id: string;
|
|
22769
23340
|
};
|
|
22770
|
-
Returns:
|
|
23341
|
+
Returns: string;
|
|
22771
23342
|
};
|
|
22772
|
-
|
|
23343
|
+
reverse_production: {
|
|
22773
23344
|
Args: {
|
|
22774
|
-
|
|
22775
|
-
|
|
23345
|
+
p_connection_id?: string;
|
|
23346
|
+
p_parent_key: string;
|
|
23347
|
+
p_quantity: number;
|
|
23348
|
+
p_reason?: string;
|
|
23349
|
+
p_user_id?: string;
|
|
22776
23350
|
};
|
|
22777
|
-
Returns:
|
|
23351
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22778
23352
|
};
|
|
22779
|
-
|
|
23353
|
+
schedule_floriday_additional_services_sync: {
|
|
22780
23354
|
Args: {
|
|
22781
23355
|
p_apikey: string;
|
|
22782
23356
|
p_url: string;
|
|
@@ -26506,105 +27080,6 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
26506
27080
|
referencedColumns: ["id"];
|
|
26507
27081
|
}];
|
|
26508
27082
|
};
|
|
26509
|
-
floriday_agreement_calloffs_cache: {
|
|
26510
|
-
Row: {
|
|
26511
|
-
agreement_id: string | null;
|
|
26512
|
-
connection_id: string;
|
|
26513
|
-
data: import("../integrations/supabase/types").Json;
|
|
26514
|
-
delivery_date: string | null;
|
|
26515
|
-
fetched_at: string;
|
|
26516
|
-
floriday_id: string;
|
|
26517
|
-
id: string;
|
|
26518
|
-
is_deleted: boolean;
|
|
26519
|
-
sequence_number: number;
|
|
26520
|
-
status: string | null;
|
|
26521
|
-
updated_at: string;
|
|
26522
|
-
};
|
|
26523
|
-
Insert: {
|
|
26524
|
-
agreement_id?: string | null;
|
|
26525
|
-
connection_id: string;
|
|
26526
|
-
data?: import("../integrations/supabase/types").Json;
|
|
26527
|
-
delivery_date?: string | null;
|
|
26528
|
-
fetched_at?: string;
|
|
26529
|
-
floriday_id: string;
|
|
26530
|
-
id?: string;
|
|
26531
|
-
is_deleted?: boolean;
|
|
26532
|
-
sequence_number?: number;
|
|
26533
|
-
status?: string | null;
|
|
26534
|
-
updated_at?: string;
|
|
26535
|
-
};
|
|
26536
|
-
Update: {
|
|
26537
|
-
agreement_id?: string | null;
|
|
26538
|
-
connection_id?: string;
|
|
26539
|
-
data?: import("../integrations/supabase/types").Json;
|
|
26540
|
-
delivery_date?: string | null;
|
|
26541
|
-
fetched_at?: string;
|
|
26542
|
-
floriday_id?: string;
|
|
26543
|
-
id?: string;
|
|
26544
|
-
is_deleted?: boolean;
|
|
26545
|
-
sequence_number?: number;
|
|
26546
|
-
status?: string | null;
|
|
26547
|
-
updated_at?: string;
|
|
26548
|
-
};
|
|
26549
|
-
Relationships: [{
|
|
26550
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
26551
|
-
columns: ["connection_id"];
|
|
26552
|
-
isOneToOne: false;
|
|
26553
|
-
referencedRelation: "floriday_connections";
|
|
26554
|
-
referencedColumns: ["id"];
|
|
26555
|
-
}];
|
|
26556
|
-
};
|
|
26557
|
-
floriday_agreements_cache: {
|
|
26558
|
-
Row: {
|
|
26559
|
-
buyer_organization_id: string | null;
|
|
26560
|
-
connection_id: string;
|
|
26561
|
-
data: import("../integrations/supabase/types").Json;
|
|
26562
|
-
fetched_at: string;
|
|
26563
|
-
floriday_id: string;
|
|
26564
|
-
id: string;
|
|
26565
|
-
is_deleted: boolean;
|
|
26566
|
-
sequence_number: number;
|
|
26567
|
-
status: string | null;
|
|
26568
|
-
updated_at: string;
|
|
26569
|
-
valid_from: string | null;
|
|
26570
|
-
valid_until: string | null;
|
|
26571
|
-
};
|
|
26572
|
-
Insert: {
|
|
26573
|
-
buyer_organization_id?: string | null;
|
|
26574
|
-
connection_id: string;
|
|
26575
|
-
data?: import("../integrations/supabase/types").Json;
|
|
26576
|
-
fetched_at?: string;
|
|
26577
|
-
floriday_id: string;
|
|
26578
|
-
id?: string;
|
|
26579
|
-
is_deleted?: boolean;
|
|
26580
|
-
sequence_number?: number;
|
|
26581
|
-
status?: string | null;
|
|
26582
|
-
updated_at?: string;
|
|
26583
|
-
valid_from?: string | null;
|
|
26584
|
-
valid_until?: string | null;
|
|
26585
|
-
};
|
|
26586
|
-
Update: {
|
|
26587
|
-
buyer_organization_id?: string | null;
|
|
26588
|
-
connection_id?: string;
|
|
26589
|
-
data?: import("../integrations/supabase/types").Json;
|
|
26590
|
-
fetched_at?: string;
|
|
26591
|
-
floriday_id?: string;
|
|
26592
|
-
id?: string;
|
|
26593
|
-
is_deleted?: boolean;
|
|
26594
|
-
sequence_number?: number;
|
|
26595
|
-
status?: string | null;
|
|
26596
|
-
updated_at?: string;
|
|
26597
|
-
valid_from?: string | null;
|
|
26598
|
-
valid_until?: string | null;
|
|
26599
|
-
};
|
|
26600
|
-
Relationships: [{
|
|
26601
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
26602
|
-
columns: ["connection_id"];
|
|
26603
|
-
isOneToOne: false;
|
|
26604
|
-
referencedRelation: "floriday_connections";
|
|
26605
|
-
referencedColumns: ["id"];
|
|
26606
|
-
}];
|
|
26607
|
-
};
|
|
26608
27083
|
floriday_auction_letters_cache: {
|
|
26609
27084
|
Row: {
|
|
26610
27085
|
auction_letter_code: string;
|
|
@@ -28102,6 +28577,45 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
28102
28577
|
referencedColumns: ["id"];
|
|
28103
28578
|
}];
|
|
28104
28579
|
};
|
|
28580
|
+
floriday_trade_settings_customers_cache: {
|
|
28581
|
+
Row: {
|
|
28582
|
+
connection_id: string;
|
|
28583
|
+
data: import("../integrations/supabase/types").Json;
|
|
28584
|
+
fetched_at: string;
|
|
28585
|
+
floriday_id: string;
|
|
28586
|
+
id: string;
|
|
28587
|
+
is_deleted: boolean;
|
|
28588
|
+
sequence_number: number;
|
|
28589
|
+
updated_at: string;
|
|
28590
|
+
};
|
|
28591
|
+
Insert: {
|
|
28592
|
+
connection_id: string;
|
|
28593
|
+
data: import("../integrations/supabase/types").Json;
|
|
28594
|
+
fetched_at?: string;
|
|
28595
|
+
floriday_id: string;
|
|
28596
|
+
id?: string;
|
|
28597
|
+
is_deleted?: boolean;
|
|
28598
|
+
sequence_number?: number;
|
|
28599
|
+
updated_at?: string;
|
|
28600
|
+
};
|
|
28601
|
+
Update: {
|
|
28602
|
+
connection_id?: string;
|
|
28603
|
+
data?: import("../integrations/supabase/types").Json;
|
|
28604
|
+
fetched_at?: string;
|
|
28605
|
+
floriday_id?: string;
|
|
28606
|
+
id?: string;
|
|
28607
|
+
is_deleted?: boolean;
|
|
28608
|
+
sequence_number?: number;
|
|
28609
|
+
updated_at?: string;
|
|
28610
|
+
};
|
|
28611
|
+
Relationships: [{
|
|
28612
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
28613
|
+
columns: ["connection_id"];
|
|
28614
|
+
isOneToOne: false;
|
|
28615
|
+
referencedRelation: "floriday_connections";
|
|
28616
|
+
referencedColumns: ["id"];
|
|
28617
|
+
}];
|
|
28618
|
+
};
|
|
28105
28619
|
floriday_trips_cache: {
|
|
28106
28620
|
Row: {
|
|
28107
28621
|
carrier_organization_id: string | null;
|
|
@@ -30274,6 +30788,105 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30274
30788
|
};
|
|
30275
30789
|
Relationships: [];
|
|
30276
30790
|
};
|
|
30791
|
+
order_shipment_items: {
|
|
30792
|
+
Row: {
|
|
30793
|
+
created_at: string;
|
|
30794
|
+
id: string;
|
|
30795
|
+
order_item_id: string;
|
|
30796
|
+
product_id: string | null;
|
|
30797
|
+
product_name: string;
|
|
30798
|
+
quantity: number;
|
|
30799
|
+
shipment_id: string;
|
|
30800
|
+
updated_at: string;
|
|
30801
|
+
};
|
|
30802
|
+
Insert: {
|
|
30803
|
+
created_at?: string;
|
|
30804
|
+
id?: string;
|
|
30805
|
+
order_item_id: string;
|
|
30806
|
+
product_id?: string | null;
|
|
30807
|
+
product_name: string;
|
|
30808
|
+
quantity: number;
|
|
30809
|
+
shipment_id: string;
|
|
30810
|
+
updated_at?: string;
|
|
30811
|
+
};
|
|
30812
|
+
Update: {
|
|
30813
|
+
created_at?: string;
|
|
30814
|
+
id?: string;
|
|
30815
|
+
order_item_id?: string;
|
|
30816
|
+
product_id?: string | null;
|
|
30817
|
+
product_name?: string;
|
|
30818
|
+
quantity?: number;
|
|
30819
|
+
shipment_id?: string;
|
|
30820
|
+
updated_at?: string;
|
|
30821
|
+
};
|
|
30822
|
+
Relationships: [{
|
|
30823
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
30824
|
+
columns: ["order_item_id"];
|
|
30825
|
+
isOneToOne: false;
|
|
30826
|
+
referencedRelation: "order_items";
|
|
30827
|
+
referencedColumns: ["id"];
|
|
30828
|
+
}, {
|
|
30829
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
30830
|
+
columns: ["shipment_id"];
|
|
30831
|
+
isOneToOne: false;
|
|
30832
|
+
referencedRelation: "order_shipments";
|
|
30833
|
+
referencedColumns: ["id"];
|
|
30834
|
+
}];
|
|
30835
|
+
};
|
|
30836
|
+
order_shipments: {
|
|
30837
|
+
Row: {
|
|
30838
|
+
carrier_id: string | null;
|
|
30839
|
+
created_at: string;
|
|
30840
|
+
delivery_date: string | null;
|
|
30841
|
+
delivery_location_id: string | null;
|
|
30842
|
+
id: string;
|
|
30843
|
+
notes: string | null;
|
|
30844
|
+
order_id: string;
|
|
30845
|
+
shipment_number: number;
|
|
30846
|
+
shipped_at: string | null;
|
|
30847
|
+
status: string;
|
|
30848
|
+
updated_at: string;
|
|
30849
|
+
};
|
|
30850
|
+
Insert: {
|
|
30851
|
+
carrier_id?: string | null;
|
|
30852
|
+
created_at?: string;
|
|
30853
|
+
delivery_date?: string | null;
|
|
30854
|
+
delivery_location_id?: string | null;
|
|
30855
|
+
id?: string;
|
|
30856
|
+
notes?: string | null;
|
|
30857
|
+
order_id: string;
|
|
30858
|
+
shipment_number: number;
|
|
30859
|
+
shipped_at?: string | null;
|
|
30860
|
+
status?: string;
|
|
30861
|
+
updated_at?: string;
|
|
30862
|
+
};
|
|
30863
|
+
Update: {
|
|
30864
|
+
carrier_id?: string | null;
|
|
30865
|
+
created_at?: string;
|
|
30866
|
+
delivery_date?: string | null;
|
|
30867
|
+
delivery_location_id?: string | null;
|
|
30868
|
+
id?: string;
|
|
30869
|
+
notes?: string | null;
|
|
30870
|
+
order_id?: string;
|
|
30871
|
+
shipment_number?: number;
|
|
30872
|
+
shipped_at?: string | null;
|
|
30873
|
+
status?: string;
|
|
30874
|
+
updated_at?: string;
|
|
30875
|
+
};
|
|
30876
|
+
Relationships: [{
|
|
30877
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
30878
|
+
columns: ["carrier_id"];
|
|
30879
|
+
isOneToOne: false;
|
|
30880
|
+
referencedRelation: "carriers";
|
|
30881
|
+
referencedColumns: ["id"];
|
|
30882
|
+
}, {
|
|
30883
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
30884
|
+
columns: ["order_id"];
|
|
30885
|
+
isOneToOne: false;
|
|
30886
|
+
referencedRelation: "orders";
|
|
30887
|
+
referencedColumns: ["id"];
|
|
30888
|
+
}];
|
|
30889
|
+
};
|
|
30277
30890
|
orders: {
|
|
30278
30891
|
Row: {
|
|
30279
30892
|
created_at: string;
|
|
@@ -30281,8 +30894,9 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30281
30894
|
customer_id: string | null;
|
|
30282
30895
|
customer_name: string;
|
|
30283
30896
|
deleted_at: string | null;
|
|
30284
|
-
delivery_date: string;
|
|
30897
|
+
delivery_date: string | null;
|
|
30285
30898
|
id: string;
|
|
30899
|
+
is_reservation: boolean;
|
|
30286
30900
|
notes: string | null;
|
|
30287
30901
|
order_date: string;
|
|
30288
30902
|
order_number: string;
|
|
@@ -30299,8 +30913,9 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30299
30913
|
customer_id?: string | null;
|
|
30300
30914
|
customer_name?: string;
|
|
30301
30915
|
deleted_at?: string | null;
|
|
30302
|
-
delivery_date
|
|
30916
|
+
delivery_date?: string | null;
|
|
30303
30917
|
id?: string;
|
|
30918
|
+
is_reservation?: boolean;
|
|
30304
30919
|
notes?: string | null;
|
|
30305
30920
|
order_date?: string;
|
|
30306
30921
|
order_number: string;
|
|
@@ -30317,8 +30932,9 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30317
30932
|
customer_id?: string | null;
|
|
30318
30933
|
customer_name?: string;
|
|
30319
30934
|
deleted_at?: string | null;
|
|
30320
|
-
delivery_date?: string;
|
|
30935
|
+
delivery_date?: string | null;
|
|
30321
30936
|
id?: string;
|
|
30937
|
+
is_reservation?: boolean;
|
|
30322
30938
|
notes?: string | null;
|
|
30323
30939
|
order_date?: string;
|
|
30324
30940
|
order_number?: string;
|
|
@@ -30460,6 +31076,63 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30460
31076
|
};
|
|
30461
31077
|
Relationships: [];
|
|
30462
31078
|
};
|
|
31079
|
+
product_bom_items: {
|
|
31080
|
+
Row: {
|
|
31081
|
+
component_product_id: string | null;
|
|
31082
|
+
component_trade_item_floriday_id: string | null;
|
|
31083
|
+
created_at: string;
|
|
31084
|
+
id: string;
|
|
31085
|
+
notes: string | null;
|
|
31086
|
+
parent_product_id: string | null;
|
|
31087
|
+
parent_trade_item_floriday_id: string | null;
|
|
31088
|
+
quantity: number;
|
|
31089
|
+
sort_order: number;
|
|
31090
|
+
tenant_id: string;
|
|
31091
|
+
unit: string;
|
|
31092
|
+
updated_at: string;
|
|
31093
|
+
};
|
|
31094
|
+
Insert: {
|
|
31095
|
+
component_product_id?: string | null;
|
|
31096
|
+
component_trade_item_floriday_id?: string | null;
|
|
31097
|
+
created_at?: string;
|
|
31098
|
+
id?: string;
|
|
31099
|
+
notes?: string | null;
|
|
31100
|
+
parent_product_id?: string | null;
|
|
31101
|
+
parent_trade_item_floriday_id?: string | null;
|
|
31102
|
+
quantity?: number;
|
|
31103
|
+
sort_order?: number;
|
|
31104
|
+
tenant_id: string;
|
|
31105
|
+
unit?: string;
|
|
31106
|
+
updated_at?: string;
|
|
31107
|
+
};
|
|
31108
|
+
Update: {
|
|
31109
|
+
component_product_id?: string | null;
|
|
31110
|
+
component_trade_item_floriday_id?: string | null;
|
|
31111
|
+
created_at?: string;
|
|
31112
|
+
id?: string;
|
|
31113
|
+
notes?: string | null;
|
|
31114
|
+
parent_product_id?: string | null;
|
|
31115
|
+
parent_trade_item_floriday_id?: string | null;
|
|
31116
|
+
quantity?: number;
|
|
31117
|
+
sort_order?: number;
|
|
31118
|
+
tenant_id?: string;
|
|
31119
|
+
unit?: string;
|
|
31120
|
+
updated_at?: string;
|
|
31121
|
+
};
|
|
31122
|
+
Relationships: [{
|
|
31123
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
31124
|
+
columns: ["component_product_id"];
|
|
31125
|
+
isOneToOne: false;
|
|
31126
|
+
referencedRelation: "products";
|
|
31127
|
+
referencedColumns: ["id"];
|
|
31128
|
+
}, {
|
|
31129
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
31130
|
+
columns: ["parent_product_id"];
|
|
31131
|
+
isOneToOne: false;
|
|
31132
|
+
referencedRelation: "products";
|
|
31133
|
+
referencedColumns: ["id"];
|
|
31134
|
+
}];
|
|
31135
|
+
};
|
|
30463
31136
|
product_categories: {
|
|
30464
31137
|
Row: {
|
|
30465
31138
|
color: string;
|
|
@@ -30565,6 +31238,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30565
31238
|
id: string;
|
|
30566
31239
|
product_group_id: string;
|
|
30567
31240
|
quantity: number;
|
|
31241
|
+
sort_order: number;
|
|
30568
31242
|
trade_item_id: string;
|
|
30569
31243
|
};
|
|
30570
31244
|
Insert: {
|
|
@@ -30572,6 +31246,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30572
31246
|
id?: string;
|
|
30573
31247
|
product_group_id: string;
|
|
30574
31248
|
quantity?: number;
|
|
31249
|
+
sort_order?: number;
|
|
30575
31250
|
trade_item_id: string;
|
|
30576
31251
|
};
|
|
30577
31252
|
Update: {
|
|
@@ -30579,6 +31254,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30579
31254
|
id?: string;
|
|
30580
31255
|
product_group_id?: string;
|
|
30581
31256
|
quantity?: number;
|
|
31257
|
+
sort_order?: number;
|
|
30582
31258
|
trade_item_id?: string;
|
|
30583
31259
|
};
|
|
30584
31260
|
Relationships: [{
|
|
@@ -30593,6 +31269,8 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30593
31269
|
Row: {
|
|
30594
31270
|
created_at: string;
|
|
30595
31271
|
description: string | null;
|
|
31272
|
+
head_product_id: string | null;
|
|
31273
|
+
head_trade_item_floriday_id: string | null;
|
|
30596
31274
|
id: string;
|
|
30597
31275
|
is_active: boolean;
|
|
30598
31276
|
name: string;
|
|
@@ -30602,6 +31280,8 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30602
31280
|
Insert: {
|
|
30603
31281
|
created_at?: string;
|
|
30604
31282
|
description?: string | null;
|
|
31283
|
+
head_product_id?: string | null;
|
|
31284
|
+
head_trade_item_floriday_id?: string | null;
|
|
30605
31285
|
id?: string;
|
|
30606
31286
|
is_active?: boolean;
|
|
30607
31287
|
name: string;
|
|
@@ -30611,21 +31291,126 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30611
31291
|
Update: {
|
|
30612
31292
|
created_at?: string;
|
|
30613
31293
|
description?: string | null;
|
|
31294
|
+
head_product_id?: string | null;
|
|
31295
|
+
head_trade_item_floriday_id?: string | null;
|
|
30614
31296
|
id?: string;
|
|
30615
31297
|
is_active?: boolean;
|
|
30616
31298
|
name?: string;
|
|
30617
31299
|
tenant_id?: string;
|
|
30618
31300
|
updated_at?: string;
|
|
30619
31301
|
};
|
|
31302
|
+
Relationships: [{
|
|
31303
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
31304
|
+
columns: ["head_product_id"];
|
|
31305
|
+
isOneToOne: false;
|
|
31306
|
+
referencedRelation: "products";
|
|
31307
|
+
referencedColumns: ["id"];
|
|
31308
|
+
}];
|
|
31309
|
+
};
|
|
31310
|
+
product_load_settings: {
|
|
31311
|
+
Row: {
|
|
31312
|
+
created_at: string;
|
|
31313
|
+
id: string;
|
|
31314
|
+
is_package: boolean;
|
|
31315
|
+
layers_per_load_carrier: number | null;
|
|
31316
|
+
load_carrier: string | null;
|
|
31317
|
+
package_id: string | null;
|
|
31318
|
+
package_label: string | null;
|
|
31319
|
+
packages_per_layer: number | null;
|
|
31320
|
+
product_id: string | null;
|
|
31321
|
+
tenant_id: string;
|
|
31322
|
+
trade_item_floriday_id: string | null;
|
|
31323
|
+
units_per_package: number | null;
|
|
31324
|
+
updated_at: string;
|
|
31325
|
+
};
|
|
31326
|
+
Insert: {
|
|
31327
|
+
created_at?: string;
|
|
31328
|
+
id?: string;
|
|
31329
|
+
is_package?: boolean;
|
|
31330
|
+
layers_per_load_carrier?: number | null;
|
|
31331
|
+
load_carrier?: string | null;
|
|
31332
|
+
package_id?: string | null;
|
|
31333
|
+
package_label?: string | null;
|
|
31334
|
+
packages_per_layer?: number | null;
|
|
31335
|
+
product_id?: string | null;
|
|
31336
|
+
tenant_id: string;
|
|
31337
|
+
trade_item_floriday_id?: string | null;
|
|
31338
|
+
units_per_package?: number | null;
|
|
31339
|
+
updated_at?: string;
|
|
31340
|
+
};
|
|
31341
|
+
Update: {
|
|
31342
|
+
created_at?: string;
|
|
31343
|
+
id?: string;
|
|
31344
|
+
is_package?: boolean;
|
|
31345
|
+
layers_per_load_carrier?: number | null;
|
|
31346
|
+
load_carrier?: string | null;
|
|
31347
|
+
package_id?: string | null;
|
|
31348
|
+
package_label?: string | null;
|
|
31349
|
+
packages_per_layer?: number | null;
|
|
31350
|
+
product_id?: string | null;
|
|
31351
|
+
tenant_id?: string;
|
|
31352
|
+
trade_item_floriday_id?: string | null;
|
|
31353
|
+
units_per_package?: number | null;
|
|
31354
|
+
updated_at?: string;
|
|
31355
|
+
};
|
|
31356
|
+
Relationships: [{
|
|
31357
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
31358
|
+
columns: ["package_id"];
|
|
31359
|
+
isOneToOne: false;
|
|
31360
|
+
referencedRelation: "packages";
|
|
31361
|
+
referencedColumns: ["id"];
|
|
31362
|
+
}, {
|
|
31363
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
31364
|
+
columns: ["product_id"];
|
|
31365
|
+
isOneToOne: false;
|
|
31366
|
+
referencedRelation: "products";
|
|
31367
|
+
referencedColumns: ["id"];
|
|
31368
|
+
}];
|
|
31369
|
+
};
|
|
31370
|
+
product_merge_log: {
|
|
31371
|
+
Row: {
|
|
31372
|
+
canonical_product_id: string | null;
|
|
31373
|
+
id: string;
|
|
31374
|
+
merged_at: string;
|
|
31375
|
+
merged_from_id: string;
|
|
31376
|
+
notes: string | null;
|
|
31377
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
31378
|
+
source_table: string;
|
|
31379
|
+
status: string;
|
|
31380
|
+
};
|
|
31381
|
+
Insert: {
|
|
31382
|
+
canonical_product_id?: string | null;
|
|
31383
|
+
id?: string;
|
|
31384
|
+
merged_at?: string;
|
|
31385
|
+
merged_from_id: string;
|
|
31386
|
+
notes?: string | null;
|
|
31387
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
31388
|
+
source_table: string;
|
|
31389
|
+
status?: string;
|
|
31390
|
+
};
|
|
31391
|
+
Update: {
|
|
31392
|
+
canonical_product_id?: string | null;
|
|
31393
|
+
id?: string;
|
|
31394
|
+
merged_at?: string;
|
|
31395
|
+
merged_from_id?: string;
|
|
31396
|
+
notes?: string | null;
|
|
31397
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
31398
|
+
source_table?: string;
|
|
31399
|
+
status?: string;
|
|
31400
|
+
};
|
|
30620
31401
|
Relationships: [];
|
|
30621
31402
|
};
|
|
30622
31403
|
products: {
|
|
30623
31404
|
Row: {
|
|
31405
|
+
article_number: string | null;
|
|
30624
31406
|
barcode: string | null;
|
|
30625
31407
|
batch: string;
|
|
30626
31408
|
crates_per_layer: number;
|
|
30627
31409
|
created_at: string;
|
|
30628
31410
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
31411
|
+
floriday_active: boolean;
|
|
31412
|
+
floriday_payload: import("../integrations/supabase/types").Json;
|
|
31413
|
+
floriday_trade_item_id: string | null;
|
|
30629
31414
|
id: string;
|
|
30630
31415
|
image_url: string | null;
|
|
30631
31416
|
incoming_quantity: number;
|
|
@@ -30644,11 +31429,15 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30644
31429
|
weight: string | null;
|
|
30645
31430
|
};
|
|
30646
31431
|
Insert: {
|
|
31432
|
+
article_number?: string | null;
|
|
30647
31433
|
barcode?: string | null;
|
|
30648
31434
|
batch: string;
|
|
30649
31435
|
crates_per_layer?: number;
|
|
30650
31436
|
created_at?: string;
|
|
30651
31437
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
31438
|
+
floriday_active?: boolean;
|
|
31439
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
31440
|
+
floriday_trade_item_id?: string | null;
|
|
30652
31441
|
id?: string;
|
|
30653
31442
|
image_url?: string | null;
|
|
30654
31443
|
incoming_quantity?: number;
|
|
@@ -30667,11 +31456,15 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
30667
31456
|
weight?: string | null;
|
|
30668
31457
|
};
|
|
30669
31458
|
Update: {
|
|
31459
|
+
article_number?: string | null;
|
|
30670
31460
|
barcode?: string | null;
|
|
30671
31461
|
batch?: string;
|
|
30672
31462
|
crates_per_layer?: number;
|
|
30673
31463
|
created_at?: string;
|
|
30674
31464
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
31465
|
+
floriday_active?: boolean;
|
|
31466
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
31467
|
+
floriday_trade_item_id?: string | null;
|
|
30675
31468
|
id?: string;
|
|
30676
31469
|
image_url?: string | null;
|
|
30677
31470
|
incoming_quantity?: number;
|
|
@@ -31580,8 +32373,10 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
31580
32373
|
order_id: string | null;
|
|
31581
32374
|
order_item_id: string | null;
|
|
31582
32375
|
order_source: string | null;
|
|
32376
|
+
parent_trade_item_key: string | null;
|
|
31583
32377
|
physical_after: number | null;
|
|
31584
32378
|
physical_before: number | null;
|
|
32379
|
+
production_batch_id: string | null;
|
|
31585
32380
|
qty_delta: number;
|
|
31586
32381
|
reason: string | null;
|
|
31587
32382
|
reserved_after: number | null;
|
|
@@ -31597,8 +32392,10 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
31597
32392
|
order_id?: string | null;
|
|
31598
32393
|
order_item_id?: string | null;
|
|
31599
32394
|
order_source?: string | null;
|
|
32395
|
+
parent_trade_item_key?: string | null;
|
|
31600
32396
|
physical_after?: number | null;
|
|
31601
32397
|
physical_before?: number | null;
|
|
32398
|
+
production_batch_id?: string | null;
|
|
31602
32399
|
qty_delta: number;
|
|
31603
32400
|
reason?: string | null;
|
|
31604
32401
|
reserved_after?: number | null;
|
|
@@ -31614,8 +32411,10 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
31614
32411
|
order_id?: string | null;
|
|
31615
32412
|
order_item_id?: string | null;
|
|
31616
32413
|
order_source?: string | null;
|
|
32414
|
+
parent_trade_item_key?: string | null;
|
|
31617
32415
|
physical_after?: number | null;
|
|
31618
32416
|
physical_before?: number | null;
|
|
32417
|
+
production_batch_id?: string | null;
|
|
31619
32418
|
qty_delta?: number;
|
|
31620
32419
|
reason?: string | null;
|
|
31621
32420
|
reserved_after?: number | null;
|
|
@@ -32074,7 +32873,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
32074
32873
|
twinfield_connections: {
|
|
32075
32874
|
Row: {
|
|
32076
32875
|
access_token: string | null;
|
|
32077
|
-
client_id: string;
|
|
32876
|
+
client_id: string | null;
|
|
32078
32877
|
client_secret: string | null;
|
|
32079
32878
|
cluster_uri: string | null;
|
|
32080
32879
|
company_code: string | null;
|
|
@@ -32086,7 +32885,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
32086
32885
|
is_active: boolean;
|
|
32087
32886
|
label: string | null;
|
|
32088
32887
|
office_code: string | null;
|
|
32089
|
-
redirect_uri: string;
|
|
32888
|
+
redirect_uri: string | null;
|
|
32090
32889
|
refresh_token: string | null;
|
|
32091
32890
|
token_expires_at: string | null;
|
|
32092
32891
|
updated_at: string;
|
|
@@ -32094,7 +32893,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
32094
32893
|
};
|
|
32095
32894
|
Insert: {
|
|
32096
32895
|
access_token?: string | null;
|
|
32097
|
-
client_id
|
|
32896
|
+
client_id?: string | null;
|
|
32098
32897
|
client_secret?: string | null;
|
|
32099
32898
|
cluster_uri?: string | null;
|
|
32100
32899
|
company_code?: string | null;
|
|
@@ -32106,7 +32905,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
32106
32905
|
is_active?: boolean;
|
|
32107
32906
|
label?: string | null;
|
|
32108
32907
|
office_code?: string | null;
|
|
32109
|
-
redirect_uri
|
|
32908
|
+
redirect_uri?: string | null;
|
|
32110
32909
|
refresh_token?: string | null;
|
|
32111
32910
|
token_expires_at?: string | null;
|
|
32112
32911
|
updated_at?: string;
|
|
@@ -32114,7 +32913,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
32114
32913
|
};
|
|
32115
32914
|
Update: {
|
|
32116
32915
|
access_token?: string | null;
|
|
32117
|
-
client_id?: string;
|
|
32916
|
+
client_id?: string | null;
|
|
32118
32917
|
client_secret?: string | null;
|
|
32119
32918
|
cluster_uri?: string | null;
|
|
32120
32919
|
company_code?: string | null;
|
|
@@ -32126,7 +32925,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
32126
32925
|
is_active?: boolean;
|
|
32127
32926
|
label?: string | null;
|
|
32128
32927
|
office_code?: string | null;
|
|
32129
|
-
redirect_uri?: string;
|
|
32928
|
+
redirect_uri?: string | null;
|
|
32130
32929
|
refresh_token?: string | null;
|
|
32131
32930
|
token_expires_at?: string | null;
|
|
32132
32931
|
updated_at?: string;
|
|
@@ -33321,25 +34120,6 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
33321
34120
|
};
|
|
33322
34121
|
Relationships: [];
|
|
33323
34122
|
};
|
|
33324
|
-
floriday_customer_discounts: {
|
|
33325
|
-
Row: {
|
|
33326
|
-
base_price: number | null;
|
|
33327
|
-
buyer_organization_id: string | null;
|
|
33328
|
-
currency: string | null;
|
|
33329
|
-
discount_type: string | null;
|
|
33330
|
-
discount_value: number | null;
|
|
33331
|
-
min_quantity: number | null;
|
|
33332
|
-
net_price: number | null;
|
|
33333
|
-
product_group_id: string | null;
|
|
33334
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
33335
|
-
source: string | null;
|
|
33336
|
-
source_id: string | null;
|
|
33337
|
-
trade_item_id: string | null;
|
|
33338
|
-
valid_from: string | null;
|
|
33339
|
-
valid_until: string | null;
|
|
33340
|
-
};
|
|
33341
|
-
Relationships: [];
|
|
33342
|
-
};
|
|
33343
34123
|
local_customer_discounts: {
|
|
33344
34124
|
Row: {
|
|
33345
34125
|
base_price: number | null;
|
|
@@ -33643,6 +34423,13 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
33643
34423
|
};
|
|
33644
34424
|
Returns: number;
|
|
33645
34425
|
};
|
|
34426
|
+
_migrate_rewrite_stock_key: {
|
|
34427
|
+
Args: {
|
|
34428
|
+
_from_key: string;
|
|
34429
|
+
_to_key: string;
|
|
34430
|
+
};
|
|
34431
|
+
Returns: undefined;
|
|
34432
|
+
};
|
|
33646
34433
|
afh_city_code: {
|
|
33647
34434
|
Args: {
|
|
33648
34435
|
_city: string;
|
|
@@ -33758,6 +34545,28 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
33758
34545
|
Args: never;
|
|
33759
34546
|
Returns: undefined;
|
|
33760
34547
|
};
|
|
34548
|
+
consume_bom_for_production: {
|
|
34549
|
+
Args: {
|
|
34550
|
+
p_connection_id: string;
|
|
34551
|
+
p_parent_id: string;
|
|
34552
|
+
p_parent_key: string;
|
|
34553
|
+
p_parent_kind: string;
|
|
34554
|
+
p_quantity: number;
|
|
34555
|
+
p_user_id: string;
|
|
34556
|
+
};
|
|
34557
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34558
|
+
} | {
|
|
34559
|
+
Args: {
|
|
34560
|
+
p_batch_id?: string;
|
|
34561
|
+
p_connection_id: string;
|
|
34562
|
+
p_parent_id: string;
|
|
34563
|
+
p_parent_key: string;
|
|
34564
|
+
p_parent_kind: string;
|
|
34565
|
+
p_quantity: number;
|
|
34566
|
+
p_user_id: string;
|
|
34567
|
+
};
|
|
34568
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34569
|
+
};
|
|
33761
34570
|
consume_floriday_rate_limit: {
|
|
33762
34571
|
Args: {
|
|
33763
34572
|
p_bucket: string;
|
|
@@ -33809,6 +34618,13 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
33809
34618
|
table_name: string;
|
|
33810
34619
|
}[];
|
|
33811
34620
|
};
|
|
34621
|
+
delete_samenstelling: {
|
|
34622
|
+
Args: {
|
|
34623
|
+
p_parent_id: string;
|
|
34624
|
+
p_parent_kind: string;
|
|
34625
|
+
};
|
|
34626
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34627
|
+
};
|
|
33812
34628
|
dispatch_carrier_signups_sql: {
|
|
33813
34629
|
Args: {
|
|
33814
34630
|
_catchup?: string;
|
|
@@ -33969,19 +34785,6 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
33969
34785
|
resource: string;
|
|
33970
34786
|
}[];
|
|
33971
34787
|
};
|
|
33972
|
-
get_floriday_agreements_active: {
|
|
33973
|
-
Args: {
|
|
33974
|
-
p_on_date?: string;
|
|
33975
|
-
};
|
|
33976
|
-
Returns: {
|
|
33977
|
-
buyer_organization_id: string;
|
|
33978
|
-
data: import("../integrations/supabase/types").Json;
|
|
33979
|
-
floriday_id: string;
|
|
33980
|
-
status: string;
|
|
33981
|
-
valid_from: string;
|
|
33982
|
-
valid_until: string;
|
|
33983
|
-
}[];
|
|
33984
|
-
};
|
|
33985
34788
|
get_floriday_clock_supplies_window: {
|
|
33986
34789
|
Args: {
|
|
33987
34790
|
p_from: string;
|
|
@@ -34054,6 +34857,21 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
34054
34857
|
minutes_since_success: number;
|
|
34055
34858
|
}[];
|
|
34056
34859
|
};
|
|
34860
|
+
get_group_allocation_keys: {
|
|
34861
|
+
Args: {
|
|
34862
|
+
p_product_id: string;
|
|
34863
|
+
};
|
|
34864
|
+
Returns: {
|
|
34865
|
+
k: string;
|
|
34866
|
+
ord: number;
|
|
34867
|
+
}[];
|
|
34868
|
+
};
|
|
34869
|
+
get_group_head_key: {
|
|
34870
|
+
Args: {
|
|
34871
|
+
p_group_id: string;
|
|
34872
|
+
};
|
|
34873
|
+
Returns: string;
|
|
34874
|
+
};
|
|
34057
34875
|
get_offer_by_link_code: {
|
|
34058
34876
|
Args: {
|
|
34059
34877
|
p_code: string;
|
|
@@ -34164,6 +34982,19 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
34164
34982
|
};
|
|
34165
34983
|
Returns: undefined;
|
|
34166
34984
|
};
|
|
34985
|
+
mark_shipment_shipped: {
|
|
34986
|
+
Args: {
|
|
34987
|
+
p_shipment_id: string;
|
|
34988
|
+
};
|
|
34989
|
+
Returns: undefined;
|
|
34990
|
+
};
|
|
34991
|
+
merge_products: {
|
|
34992
|
+
Args: {
|
|
34993
|
+
_canonical: string;
|
|
34994
|
+
_loser: string;
|
|
34995
|
+
};
|
|
34996
|
+
Returns: undefined;
|
|
34997
|
+
};
|
|
34167
34998
|
next_manufacture_partij: {
|
|
34168
34999
|
Args: {
|
|
34169
35000
|
_tenant_id: string;
|
|
@@ -34248,6 +35079,14 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
34248
35079
|
};
|
|
34249
35080
|
Returns: undefined;
|
|
34250
35081
|
};
|
|
35082
|
+
produce_designed_product: {
|
|
35083
|
+
Args: {
|
|
35084
|
+
p_parent_id: string;
|
|
35085
|
+
p_parent_kind: string;
|
|
35086
|
+
p_quantity: number;
|
|
35087
|
+
};
|
|
35088
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
35089
|
+
};
|
|
34251
35090
|
promote_trade_item_key: {
|
|
34252
35091
|
Args: {
|
|
34253
35092
|
p_new: string;
|
|
@@ -34255,6 +35094,10 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
34255
35094
|
};
|
|
34256
35095
|
Returns: undefined;
|
|
34257
35096
|
};
|
|
35097
|
+
recompute_all_reserved_stock: {
|
|
35098
|
+
Args: never;
|
|
35099
|
+
Returns: undefined;
|
|
35100
|
+
};
|
|
34258
35101
|
recompute_order_status: {
|
|
34259
35102
|
Args: {
|
|
34260
35103
|
p_order_id: string;
|
|
@@ -34304,27 +35147,45 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
34304
35147
|
};
|
|
34305
35148
|
Returns: undefined;
|
|
34306
35149
|
};
|
|
35150
|
+
resolve_group_allocation: {
|
|
35151
|
+
Args: {
|
|
35152
|
+
_needed: number;
|
|
35153
|
+
_product_group_id: string;
|
|
35154
|
+
};
|
|
35155
|
+
Returns: {
|
|
35156
|
+
allocated: number;
|
|
35157
|
+
trade_item_id: string;
|
|
35158
|
+
}[];
|
|
35159
|
+
};
|
|
35160
|
+
resolve_group_member_stock_key: {
|
|
35161
|
+
Args: {
|
|
35162
|
+
p_trade_item_id: string;
|
|
35163
|
+
};
|
|
35164
|
+
Returns: string;
|
|
35165
|
+
};
|
|
34307
35166
|
resolve_product_id_for_item: {
|
|
34308
35167
|
Args: {
|
|
34309
35168
|
p_product_name: string;
|
|
34310
35169
|
};
|
|
34311
35170
|
Returns: string;
|
|
34312
35171
|
};
|
|
34313
|
-
|
|
35172
|
+
resolve_stock_trade_item_key: {
|
|
34314
35173
|
Args: {
|
|
34315
|
-
|
|
34316
|
-
p_url: string;
|
|
35174
|
+
p_product_id: string;
|
|
34317
35175
|
};
|
|
34318
|
-
Returns:
|
|
35176
|
+
Returns: string;
|
|
34319
35177
|
};
|
|
34320
|
-
|
|
35178
|
+
reverse_production: {
|
|
34321
35179
|
Args: {
|
|
34322
|
-
|
|
34323
|
-
|
|
35180
|
+
p_connection_id?: string;
|
|
35181
|
+
p_parent_key: string;
|
|
35182
|
+
p_quantity: number;
|
|
35183
|
+
p_reason?: string;
|
|
35184
|
+
p_user_id?: string;
|
|
34324
35185
|
};
|
|
34325
|
-
Returns:
|
|
35186
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34326
35187
|
};
|
|
34327
|
-
|
|
35188
|
+
schedule_floriday_additional_services_sync: {
|
|
34328
35189
|
Args: {
|
|
34329
35190
|
p_apikey: string;
|
|
34330
35191
|
p_url: string;
|
|
@@ -38057,105 +38918,6 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
38057
38918
|
referencedColumns: ["id"];
|
|
38058
38919
|
}];
|
|
38059
38920
|
};
|
|
38060
|
-
floriday_agreement_calloffs_cache: {
|
|
38061
|
-
Row: {
|
|
38062
|
-
agreement_id: string | null;
|
|
38063
|
-
connection_id: string;
|
|
38064
|
-
data: import("../integrations/supabase/types").Json;
|
|
38065
|
-
delivery_date: string | null;
|
|
38066
|
-
fetched_at: string;
|
|
38067
|
-
floriday_id: string;
|
|
38068
|
-
id: string;
|
|
38069
|
-
is_deleted: boolean;
|
|
38070
|
-
sequence_number: number;
|
|
38071
|
-
status: string | null;
|
|
38072
|
-
updated_at: string;
|
|
38073
|
-
};
|
|
38074
|
-
Insert: {
|
|
38075
|
-
agreement_id?: string | null;
|
|
38076
|
-
connection_id: string;
|
|
38077
|
-
data?: import("../integrations/supabase/types").Json;
|
|
38078
|
-
delivery_date?: string | null;
|
|
38079
|
-
fetched_at?: string;
|
|
38080
|
-
floriday_id: string;
|
|
38081
|
-
id?: string;
|
|
38082
|
-
is_deleted?: boolean;
|
|
38083
|
-
sequence_number?: number;
|
|
38084
|
-
status?: string | null;
|
|
38085
|
-
updated_at?: string;
|
|
38086
|
-
};
|
|
38087
|
-
Update: {
|
|
38088
|
-
agreement_id?: string | null;
|
|
38089
|
-
connection_id?: string;
|
|
38090
|
-
data?: import("../integrations/supabase/types").Json;
|
|
38091
|
-
delivery_date?: string | null;
|
|
38092
|
-
fetched_at?: string;
|
|
38093
|
-
floriday_id?: string;
|
|
38094
|
-
id?: string;
|
|
38095
|
-
is_deleted?: boolean;
|
|
38096
|
-
sequence_number?: number;
|
|
38097
|
-
status?: string | null;
|
|
38098
|
-
updated_at?: string;
|
|
38099
|
-
};
|
|
38100
|
-
Relationships: [{
|
|
38101
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
38102
|
-
columns: ["connection_id"];
|
|
38103
|
-
isOneToOne: false;
|
|
38104
|
-
referencedRelation: "floriday_connections";
|
|
38105
|
-
referencedColumns: ["id"];
|
|
38106
|
-
}];
|
|
38107
|
-
};
|
|
38108
|
-
floriday_agreements_cache: {
|
|
38109
|
-
Row: {
|
|
38110
|
-
buyer_organization_id: string | null;
|
|
38111
|
-
connection_id: string;
|
|
38112
|
-
data: import("../integrations/supabase/types").Json;
|
|
38113
|
-
fetched_at: string;
|
|
38114
|
-
floriday_id: string;
|
|
38115
|
-
id: string;
|
|
38116
|
-
is_deleted: boolean;
|
|
38117
|
-
sequence_number: number;
|
|
38118
|
-
status: string | null;
|
|
38119
|
-
updated_at: string;
|
|
38120
|
-
valid_from: string | null;
|
|
38121
|
-
valid_until: string | null;
|
|
38122
|
-
};
|
|
38123
|
-
Insert: {
|
|
38124
|
-
buyer_organization_id?: string | null;
|
|
38125
|
-
connection_id: string;
|
|
38126
|
-
data?: import("../integrations/supabase/types").Json;
|
|
38127
|
-
fetched_at?: string;
|
|
38128
|
-
floriday_id: string;
|
|
38129
|
-
id?: string;
|
|
38130
|
-
is_deleted?: boolean;
|
|
38131
|
-
sequence_number?: number;
|
|
38132
|
-
status?: string | null;
|
|
38133
|
-
updated_at?: string;
|
|
38134
|
-
valid_from?: string | null;
|
|
38135
|
-
valid_until?: string | null;
|
|
38136
|
-
};
|
|
38137
|
-
Update: {
|
|
38138
|
-
buyer_organization_id?: string | null;
|
|
38139
|
-
connection_id?: string;
|
|
38140
|
-
data?: import("../integrations/supabase/types").Json;
|
|
38141
|
-
fetched_at?: string;
|
|
38142
|
-
floriday_id?: string;
|
|
38143
|
-
id?: string;
|
|
38144
|
-
is_deleted?: boolean;
|
|
38145
|
-
sequence_number?: number;
|
|
38146
|
-
status?: string | null;
|
|
38147
|
-
updated_at?: string;
|
|
38148
|
-
valid_from?: string | null;
|
|
38149
|
-
valid_until?: string | null;
|
|
38150
|
-
};
|
|
38151
|
-
Relationships: [{
|
|
38152
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
38153
|
-
columns: ["connection_id"];
|
|
38154
|
-
isOneToOne: false;
|
|
38155
|
-
referencedRelation: "floriday_connections";
|
|
38156
|
-
referencedColumns: ["id"];
|
|
38157
|
-
}];
|
|
38158
|
-
};
|
|
38159
38921
|
floriday_auction_letters_cache: {
|
|
38160
38922
|
Row: {
|
|
38161
38923
|
auction_letter_code: string;
|
|
@@ -39653,6 +40415,45 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
39653
40415
|
referencedColumns: ["id"];
|
|
39654
40416
|
}];
|
|
39655
40417
|
};
|
|
40418
|
+
floriday_trade_settings_customers_cache: {
|
|
40419
|
+
Row: {
|
|
40420
|
+
connection_id: string;
|
|
40421
|
+
data: import("../integrations/supabase/types").Json;
|
|
40422
|
+
fetched_at: string;
|
|
40423
|
+
floriday_id: string;
|
|
40424
|
+
id: string;
|
|
40425
|
+
is_deleted: boolean;
|
|
40426
|
+
sequence_number: number;
|
|
40427
|
+
updated_at: string;
|
|
40428
|
+
};
|
|
40429
|
+
Insert: {
|
|
40430
|
+
connection_id: string;
|
|
40431
|
+
data: import("../integrations/supabase/types").Json;
|
|
40432
|
+
fetched_at?: string;
|
|
40433
|
+
floriday_id: string;
|
|
40434
|
+
id?: string;
|
|
40435
|
+
is_deleted?: boolean;
|
|
40436
|
+
sequence_number?: number;
|
|
40437
|
+
updated_at?: string;
|
|
40438
|
+
};
|
|
40439
|
+
Update: {
|
|
40440
|
+
connection_id?: string;
|
|
40441
|
+
data?: import("../integrations/supabase/types").Json;
|
|
40442
|
+
fetched_at?: string;
|
|
40443
|
+
floriday_id?: string;
|
|
40444
|
+
id?: string;
|
|
40445
|
+
is_deleted?: boolean;
|
|
40446
|
+
sequence_number?: number;
|
|
40447
|
+
updated_at?: string;
|
|
40448
|
+
};
|
|
40449
|
+
Relationships: [{
|
|
40450
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
40451
|
+
columns: ["connection_id"];
|
|
40452
|
+
isOneToOne: false;
|
|
40453
|
+
referencedRelation: "floriday_connections";
|
|
40454
|
+
referencedColumns: ["id"];
|
|
40455
|
+
}];
|
|
40456
|
+
};
|
|
39656
40457
|
floriday_trips_cache: {
|
|
39657
40458
|
Row: {
|
|
39658
40459
|
carrier_organization_id: string | null;
|
|
@@ -41825,6 +42626,105 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
41825
42626
|
};
|
|
41826
42627
|
Relationships: [];
|
|
41827
42628
|
};
|
|
42629
|
+
order_shipment_items: {
|
|
42630
|
+
Row: {
|
|
42631
|
+
created_at: string;
|
|
42632
|
+
id: string;
|
|
42633
|
+
order_item_id: string;
|
|
42634
|
+
product_id: string | null;
|
|
42635
|
+
product_name: string;
|
|
42636
|
+
quantity: number;
|
|
42637
|
+
shipment_id: string;
|
|
42638
|
+
updated_at: string;
|
|
42639
|
+
};
|
|
42640
|
+
Insert: {
|
|
42641
|
+
created_at?: string;
|
|
42642
|
+
id?: string;
|
|
42643
|
+
order_item_id: string;
|
|
42644
|
+
product_id?: string | null;
|
|
42645
|
+
product_name: string;
|
|
42646
|
+
quantity: number;
|
|
42647
|
+
shipment_id: string;
|
|
42648
|
+
updated_at?: string;
|
|
42649
|
+
};
|
|
42650
|
+
Update: {
|
|
42651
|
+
created_at?: string;
|
|
42652
|
+
id?: string;
|
|
42653
|
+
order_item_id?: string;
|
|
42654
|
+
product_id?: string | null;
|
|
42655
|
+
product_name?: string;
|
|
42656
|
+
quantity?: number;
|
|
42657
|
+
shipment_id?: string;
|
|
42658
|
+
updated_at?: string;
|
|
42659
|
+
};
|
|
42660
|
+
Relationships: [{
|
|
42661
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
42662
|
+
columns: ["order_item_id"];
|
|
42663
|
+
isOneToOne: false;
|
|
42664
|
+
referencedRelation: "order_items";
|
|
42665
|
+
referencedColumns: ["id"];
|
|
42666
|
+
}, {
|
|
42667
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
42668
|
+
columns: ["shipment_id"];
|
|
42669
|
+
isOneToOne: false;
|
|
42670
|
+
referencedRelation: "order_shipments";
|
|
42671
|
+
referencedColumns: ["id"];
|
|
42672
|
+
}];
|
|
42673
|
+
};
|
|
42674
|
+
order_shipments: {
|
|
42675
|
+
Row: {
|
|
42676
|
+
carrier_id: string | null;
|
|
42677
|
+
created_at: string;
|
|
42678
|
+
delivery_date: string | null;
|
|
42679
|
+
delivery_location_id: string | null;
|
|
42680
|
+
id: string;
|
|
42681
|
+
notes: string | null;
|
|
42682
|
+
order_id: string;
|
|
42683
|
+
shipment_number: number;
|
|
42684
|
+
shipped_at: string | null;
|
|
42685
|
+
status: string;
|
|
42686
|
+
updated_at: string;
|
|
42687
|
+
};
|
|
42688
|
+
Insert: {
|
|
42689
|
+
carrier_id?: string | null;
|
|
42690
|
+
created_at?: string;
|
|
42691
|
+
delivery_date?: string | null;
|
|
42692
|
+
delivery_location_id?: string | null;
|
|
42693
|
+
id?: string;
|
|
42694
|
+
notes?: string | null;
|
|
42695
|
+
order_id: string;
|
|
42696
|
+
shipment_number: number;
|
|
42697
|
+
shipped_at?: string | null;
|
|
42698
|
+
status?: string;
|
|
42699
|
+
updated_at?: string;
|
|
42700
|
+
};
|
|
42701
|
+
Update: {
|
|
42702
|
+
carrier_id?: string | null;
|
|
42703
|
+
created_at?: string;
|
|
42704
|
+
delivery_date?: string | null;
|
|
42705
|
+
delivery_location_id?: string | null;
|
|
42706
|
+
id?: string;
|
|
42707
|
+
notes?: string | null;
|
|
42708
|
+
order_id?: string;
|
|
42709
|
+
shipment_number?: number;
|
|
42710
|
+
shipped_at?: string | null;
|
|
42711
|
+
status?: string;
|
|
42712
|
+
updated_at?: string;
|
|
42713
|
+
};
|
|
42714
|
+
Relationships: [{
|
|
42715
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
42716
|
+
columns: ["carrier_id"];
|
|
42717
|
+
isOneToOne: false;
|
|
42718
|
+
referencedRelation: "carriers";
|
|
42719
|
+
referencedColumns: ["id"];
|
|
42720
|
+
}, {
|
|
42721
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
42722
|
+
columns: ["order_id"];
|
|
42723
|
+
isOneToOne: false;
|
|
42724
|
+
referencedRelation: "orders";
|
|
42725
|
+
referencedColumns: ["id"];
|
|
42726
|
+
}];
|
|
42727
|
+
};
|
|
41828
42728
|
orders: {
|
|
41829
42729
|
Row: {
|
|
41830
42730
|
created_at: string;
|
|
@@ -41832,8 +42732,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
41832
42732
|
customer_id: string | null;
|
|
41833
42733
|
customer_name: string;
|
|
41834
42734
|
deleted_at: string | null;
|
|
41835
|
-
delivery_date: string;
|
|
42735
|
+
delivery_date: string | null;
|
|
41836
42736
|
id: string;
|
|
42737
|
+
is_reservation: boolean;
|
|
41837
42738
|
notes: string | null;
|
|
41838
42739
|
order_date: string;
|
|
41839
42740
|
order_number: string;
|
|
@@ -41850,8 +42751,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
41850
42751
|
customer_id?: string | null;
|
|
41851
42752
|
customer_name?: string;
|
|
41852
42753
|
deleted_at?: string | null;
|
|
41853
|
-
delivery_date
|
|
42754
|
+
delivery_date?: string | null;
|
|
41854
42755
|
id?: string;
|
|
42756
|
+
is_reservation?: boolean;
|
|
41855
42757
|
notes?: string | null;
|
|
41856
42758
|
order_date?: string;
|
|
41857
42759
|
order_number: string;
|
|
@@ -41868,8 +42770,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
41868
42770
|
customer_id?: string | null;
|
|
41869
42771
|
customer_name?: string;
|
|
41870
42772
|
deleted_at?: string | null;
|
|
41871
|
-
delivery_date?: string;
|
|
42773
|
+
delivery_date?: string | null;
|
|
41872
42774
|
id?: string;
|
|
42775
|
+
is_reservation?: boolean;
|
|
41873
42776
|
notes?: string | null;
|
|
41874
42777
|
order_date?: string;
|
|
41875
42778
|
order_number?: string;
|
|
@@ -42011,6 +42914,63 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
42011
42914
|
};
|
|
42012
42915
|
Relationships: [];
|
|
42013
42916
|
};
|
|
42917
|
+
product_bom_items: {
|
|
42918
|
+
Row: {
|
|
42919
|
+
component_product_id: string | null;
|
|
42920
|
+
component_trade_item_floriday_id: string | null;
|
|
42921
|
+
created_at: string;
|
|
42922
|
+
id: string;
|
|
42923
|
+
notes: string | null;
|
|
42924
|
+
parent_product_id: string | null;
|
|
42925
|
+
parent_trade_item_floriday_id: string | null;
|
|
42926
|
+
quantity: number;
|
|
42927
|
+
sort_order: number;
|
|
42928
|
+
tenant_id: string;
|
|
42929
|
+
unit: string;
|
|
42930
|
+
updated_at: string;
|
|
42931
|
+
};
|
|
42932
|
+
Insert: {
|
|
42933
|
+
component_product_id?: string | null;
|
|
42934
|
+
component_trade_item_floriday_id?: string | null;
|
|
42935
|
+
created_at?: string;
|
|
42936
|
+
id?: string;
|
|
42937
|
+
notes?: string | null;
|
|
42938
|
+
parent_product_id?: string | null;
|
|
42939
|
+
parent_trade_item_floriday_id?: string | null;
|
|
42940
|
+
quantity?: number;
|
|
42941
|
+
sort_order?: number;
|
|
42942
|
+
tenant_id: string;
|
|
42943
|
+
unit?: string;
|
|
42944
|
+
updated_at?: string;
|
|
42945
|
+
};
|
|
42946
|
+
Update: {
|
|
42947
|
+
component_product_id?: string | null;
|
|
42948
|
+
component_trade_item_floriday_id?: string | null;
|
|
42949
|
+
created_at?: string;
|
|
42950
|
+
id?: string;
|
|
42951
|
+
notes?: string | null;
|
|
42952
|
+
parent_product_id?: string | null;
|
|
42953
|
+
parent_trade_item_floriday_id?: string | null;
|
|
42954
|
+
quantity?: number;
|
|
42955
|
+
sort_order?: number;
|
|
42956
|
+
tenant_id?: string;
|
|
42957
|
+
unit?: string;
|
|
42958
|
+
updated_at?: string;
|
|
42959
|
+
};
|
|
42960
|
+
Relationships: [{
|
|
42961
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
42962
|
+
columns: ["component_product_id"];
|
|
42963
|
+
isOneToOne: false;
|
|
42964
|
+
referencedRelation: "products";
|
|
42965
|
+
referencedColumns: ["id"];
|
|
42966
|
+
}, {
|
|
42967
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
42968
|
+
columns: ["parent_product_id"];
|
|
42969
|
+
isOneToOne: false;
|
|
42970
|
+
referencedRelation: "products";
|
|
42971
|
+
referencedColumns: ["id"];
|
|
42972
|
+
}];
|
|
42973
|
+
};
|
|
42014
42974
|
product_categories: {
|
|
42015
42975
|
Row: {
|
|
42016
42976
|
color: string;
|
|
@@ -42116,6 +43076,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
42116
43076
|
id: string;
|
|
42117
43077
|
product_group_id: string;
|
|
42118
43078
|
quantity: number;
|
|
43079
|
+
sort_order: number;
|
|
42119
43080
|
trade_item_id: string;
|
|
42120
43081
|
};
|
|
42121
43082
|
Insert: {
|
|
@@ -42123,6 +43084,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
42123
43084
|
id?: string;
|
|
42124
43085
|
product_group_id: string;
|
|
42125
43086
|
quantity?: number;
|
|
43087
|
+
sort_order?: number;
|
|
42126
43088
|
trade_item_id: string;
|
|
42127
43089
|
};
|
|
42128
43090
|
Update: {
|
|
@@ -42130,6 +43092,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
42130
43092
|
id?: string;
|
|
42131
43093
|
product_group_id?: string;
|
|
42132
43094
|
quantity?: number;
|
|
43095
|
+
sort_order?: number;
|
|
42133
43096
|
trade_item_id?: string;
|
|
42134
43097
|
};
|
|
42135
43098
|
Relationships: [{
|
|
@@ -42144,6 +43107,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
42144
43107
|
Row: {
|
|
42145
43108
|
created_at: string;
|
|
42146
43109
|
description: string | null;
|
|
43110
|
+
head_product_id: string | null;
|
|
43111
|
+
head_trade_item_floriday_id: string | null;
|
|
42147
43112
|
id: string;
|
|
42148
43113
|
is_active: boolean;
|
|
42149
43114
|
name: string;
|
|
@@ -42153,6 +43118,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
42153
43118
|
Insert: {
|
|
42154
43119
|
created_at?: string;
|
|
42155
43120
|
description?: string | null;
|
|
43121
|
+
head_product_id?: string | null;
|
|
43122
|
+
head_trade_item_floriday_id?: string | null;
|
|
42156
43123
|
id?: string;
|
|
42157
43124
|
is_active?: boolean;
|
|
42158
43125
|
name: string;
|
|
@@ -42162,21 +43129,126 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
42162
43129
|
Update: {
|
|
42163
43130
|
created_at?: string;
|
|
42164
43131
|
description?: string | null;
|
|
43132
|
+
head_product_id?: string | null;
|
|
43133
|
+
head_trade_item_floriday_id?: string | null;
|
|
42165
43134
|
id?: string;
|
|
42166
43135
|
is_active?: boolean;
|
|
42167
43136
|
name?: string;
|
|
42168
43137
|
tenant_id?: string;
|
|
42169
43138
|
updated_at?: string;
|
|
42170
43139
|
};
|
|
43140
|
+
Relationships: [{
|
|
43141
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
43142
|
+
columns: ["head_product_id"];
|
|
43143
|
+
isOneToOne: false;
|
|
43144
|
+
referencedRelation: "products";
|
|
43145
|
+
referencedColumns: ["id"];
|
|
43146
|
+
}];
|
|
43147
|
+
};
|
|
43148
|
+
product_load_settings: {
|
|
43149
|
+
Row: {
|
|
43150
|
+
created_at: string;
|
|
43151
|
+
id: string;
|
|
43152
|
+
is_package: boolean;
|
|
43153
|
+
layers_per_load_carrier: number | null;
|
|
43154
|
+
load_carrier: string | null;
|
|
43155
|
+
package_id: string | null;
|
|
43156
|
+
package_label: string | null;
|
|
43157
|
+
packages_per_layer: number | null;
|
|
43158
|
+
product_id: string | null;
|
|
43159
|
+
tenant_id: string;
|
|
43160
|
+
trade_item_floriday_id: string | null;
|
|
43161
|
+
units_per_package: number | null;
|
|
43162
|
+
updated_at: string;
|
|
43163
|
+
};
|
|
43164
|
+
Insert: {
|
|
43165
|
+
created_at?: string;
|
|
43166
|
+
id?: string;
|
|
43167
|
+
is_package?: boolean;
|
|
43168
|
+
layers_per_load_carrier?: number | null;
|
|
43169
|
+
load_carrier?: string | null;
|
|
43170
|
+
package_id?: string | null;
|
|
43171
|
+
package_label?: string | null;
|
|
43172
|
+
packages_per_layer?: number | null;
|
|
43173
|
+
product_id?: string | null;
|
|
43174
|
+
tenant_id: string;
|
|
43175
|
+
trade_item_floriday_id?: string | null;
|
|
43176
|
+
units_per_package?: number | null;
|
|
43177
|
+
updated_at?: string;
|
|
43178
|
+
};
|
|
43179
|
+
Update: {
|
|
43180
|
+
created_at?: string;
|
|
43181
|
+
id?: string;
|
|
43182
|
+
is_package?: boolean;
|
|
43183
|
+
layers_per_load_carrier?: number | null;
|
|
43184
|
+
load_carrier?: string | null;
|
|
43185
|
+
package_id?: string | null;
|
|
43186
|
+
package_label?: string | null;
|
|
43187
|
+
packages_per_layer?: number | null;
|
|
43188
|
+
product_id?: string | null;
|
|
43189
|
+
tenant_id?: string;
|
|
43190
|
+
trade_item_floriday_id?: string | null;
|
|
43191
|
+
units_per_package?: number | null;
|
|
43192
|
+
updated_at?: string;
|
|
43193
|
+
};
|
|
43194
|
+
Relationships: [{
|
|
43195
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
43196
|
+
columns: ["package_id"];
|
|
43197
|
+
isOneToOne: false;
|
|
43198
|
+
referencedRelation: "packages";
|
|
43199
|
+
referencedColumns: ["id"];
|
|
43200
|
+
}, {
|
|
43201
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
43202
|
+
columns: ["product_id"];
|
|
43203
|
+
isOneToOne: false;
|
|
43204
|
+
referencedRelation: "products";
|
|
43205
|
+
referencedColumns: ["id"];
|
|
43206
|
+
}];
|
|
43207
|
+
};
|
|
43208
|
+
product_merge_log: {
|
|
43209
|
+
Row: {
|
|
43210
|
+
canonical_product_id: string | null;
|
|
43211
|
+
id: string;
|
|
43212
|
+
merged_at: string;
|
|
43213
|
+
merged_from_id: string;
|
|
43214
|
+
notes: string | null;
|
|
43215
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
43216
|
+
source_table: string;
|
|
43217
|
+
status: string;
|
|
43218
|
+
};
|
|
43219
|
+
Insert: {
|
|
43220
|
+
canonical_product_id?: string | null;
|
|
43221
|
+
id?: string;
|
|
43222
|
+
merged_at?: string;
|
|
43223
|
+
merged_from_id: string;
|
|
43224
|
+
notes?: string | null;
|
|
43225
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
43226
|
+
source_table: string;
|
|
43227
|
+
status?: string;
|
|
43228
|
+
};
|
|
43229
|
+
Update: {
|
|
43230
|
+
canonical_product_id?: string | null;
|
|
43231
|
+
id?: string;
|
|
43232
|
+
merged_at?: string;
|
|
43233
|
+
merged_from_id?: string;
|
|
43234
|
+
notes?: string | null;
|
|
43235
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
43236
|
+
source_table?: string;
|
|
43237
|
+
status?: string;
|
|
43238
|
+
};
|
|
42171
43239
|
Relationships: [];
|
|
42172
43240
|
};
|
|
42173
43241
|
products: {
|
|
42174
43242
|
Row: {
|
|
43243
|
+
article_number: string | null;
|
|
42175
43244
|
barcode: string | null;
|
|
42176
43245
|
batch: string;
|
|
42177
43246
|
crates_per_layer: number;
|
|
42178
43247
|
created_at: string;
|
|
42179
43248
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
43249
|
+
floriday_active: boolean;
|
|
43250
|
+
floriday_payload: import("../integrations/supabase/types").Json;
|
|
43251
|
+
floriday_trade_item_id: string | null;
|
|
42180
43252
|
id: string;
|
|
42181
43253
|
image_url: string | null;
|
|
42182
43254
|
incoming_quantity: number;
|
|
@@ -42195,11 +43267,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
42195
43267
|
weight: string | null;
|
|
42196
43268
|
};
|
|
42197
43269
|
Insert: {
|
|
43270
|
+
article_number?: string | null;
|
|
42198
43271
|
barcode?: string | null;
|
|
42199
43272
|
batch: string;
|
|
42200
43273
|
crates_per_layer?: number;
|
|
42201
43274
|
created_at?: string;
|
|
42202
43275
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
43276
|
+
floriday_active?: boolean;
|
|
43277
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
43278
|
+
floriday_trade_item_id?: string | null;
|
|
42203
43279
|
id?: string;
|
|
42204
43280
|
image_url?: string | null;
|
|
42205
43281
|
incoming_quantity?: number;
|
|
@@ -42218,11 +43294,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
42218
43294
|
weight?: string | null;
|
|
42219
43295
|
};
|
|
42220
43296
|
Update: {
|
|
43297
|
+
article_number?: string | null;
|
|
42221
43298
|
barcode?: string | null;
|
|
42222
43299
|
batch?: string;
|
|
42223
43300
|
crates_per_layer?: number;
|
|
42224
43301
|
created_at?: string;
|
|
42225
43302
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
43303
|
+
floriday_active?: boolean;
|
|
43304
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
43305
|
+
floriday_trade_item_id?: string | null;
|
|
42226
43306
|
id?: string;
|
|
42227
43307
|
image_url?: string | null;
|
|
42228
43308
|
incoming_quantity?: number;
|
|
@@ -43131,8 +44211,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
43131
44211
|
order_id: string | null;
|
|
43132
44212
|
order_item_id: string | null;
|
|
43133
44213
|
order_source: string | null;
|
|
44214
|
+
parent_trade_item_key: string | null;
|
|
43134
44215
|
physical_after: number | null;
|
|
43135
44216
|
physical_before: number | null;
|
|
44217
|
+
production_batch_id: string | null;
|
|
43136
44218
|
qty_delta: number;
|
|
43137
44219
|
reason: string | null;
|
|
43138
44220
|
reserved_after: number | null;
|
|
@@ -43148,8 +44230,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
43148
44230
|
order_id?: string | null;
|
|
43149
44231
|
order_item_id?: string | null;
|
|
43150
44232
|
order_source?: string | null;
|
|
44233
|
+
parent_trade_item_key?: string | null;
|
|
43151
44234
|
physical_after?: number | null;
|
|
43152
44235
|
physical_before?: number | null;
|
|
44236
|
+
production_batch_id?: string | null;
|
|
43153
44237
|
qty_delta: number;
|
|
43154
44238
|
reason?: string | null;
|
|
43155
44239
|
reserved_after?: number | null;
|
|
@@ -43165,8 +44249,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
43165
44249
|
order_id?: string | null;
|
|
43166
44250
|
order_item_id?: string | null;
|
|
43167
44251
|
order_source?: string | null;
|
|
44252
|
+
parent_trade_item_key?: string | null;
|
|
43168
44253
|
physical_after?: number | null;
|
|
43169
44254
|
physical_before?: number | null;
|
|
44255
|
+
production_batch_id?: string | null;
|
|
43170
44256
|
qty_delta?: number;
|
|
43171
44257
|
reason?: string | null;
|
|
43172
44258
|
reserved_after?: number | null;
|
|
@@ -43625,7 +44711,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
43625
44711
|
twinfield_connections: {
|
|
43626
44712
|
Row: {
|
|
43627
44713
|
access_token: string | null;
|
|
43628
|
-
client_id: string;
|
|
44714
|
+
client_id: string | null;
|
|
43629
44715
|
client_secret: string | null;
|
|
43630
44716
|
cluster_uri: string | null;
|
|
43631
44717
|
company_code: string | null;
|
|
@@ -43637,7 +44723,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
43637
44723
|
is_active: boolean;
|
|
43638
44724
|
label: string | null;
|
|
43639
44725
|
office_code: string | null;
|
|
43640
|
-
redirect_uri: string;
|
|
44726
|
+
redirect_uri: string | null;
|
|
43641
44727
|
refresh_token: string | null;
|
|
43642
44728
|
token_expires_at: string | null;
|
|
43643
44729
|
updated_at: string;
|
|
@@ -43645,7 +44731,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
43645
44731
|
};
|
|
43646
44732
|
Insert: {
|
|
43647
44733
|
access_token?: string | null;
|
|
43648
|
-
client_id
|
|
44734
|
+
client_id?: string | null;
|
|
43649
44735
|
client_secret?: string | null;
|
|
43650
44736
|
cluster_uri?: string | null;
|
|
43651
44737
|
company_code?: string | null;
|
|
@@ -43657,7 +44743,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
43657
44743
|
is_active?: boolean;
|
|
43658
44744
|
label?: string | null;
|
|
43659
44745
|
office_code?: string | null;
|
|
43660
|
-
redirect_uri
|
|
44746
|
+
redirect_uri?: string | null;
|
|
43661
44747
|
refresh_token?: string | null;
|
|
43662
44748
|
token_expires_at?: string | null;
|
|
43663
44749
|
updated_at?: string;
|
|
@@ -43665,7 +44751,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
43665
44751
|
};
|
|
43666
44752
|
Update: {
|
|
43667
44753
|
access_token?: string | null;
|
|
43668
|
-
client_id?: string;
|
|
44754
|
+
client_id?: string | null;
|
|
43669
44755
|
client_secret?: string | null;
|
|
43670
44756
|
cluster_uri?: string | null;
|
|
43671
44757
|
company_code?: string | null;
|
|
@@ -43677,7 +44763,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
43677
44763
|
is_active?: boolean;
|
|
43678
44764
|
label?: string | null;
|
|
43679
44765
|
office_code?: string | null;
|
|
43680
|
-
redirect_uri?: string;
|
|
44766
|
+
redirect_uri?: string | null;
|
|
43681
44767
|
refresh_token?: string | null;
|
|
43682
44768
|
token_expires_at?: string | null;
|
|
43683
44769
|
updated_at?: string;
|
|
@@ -44872,25 +45958,6 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
44872
45958
|
};
|
|
44873
45959
|
Relationships: [];
|
|
44874
45960
|
};
|
|
44875
|
-
floriday_customer_discounts: {
|
|
44876
|
-
Row: {
|
|
44877
|
-
base_price: number | null;
|
|
44878
|
-
buyer_organization_id: string | null;
|
|
44879
|
-
currency: string | null;
|
|
44880
|
-
discount_type: string | null;
|
|
44881
|
-
discount_value: number | null;
|
|
44882
|
-
min_quantity: number | null;
|
|
44883
|
-
net_price: number | null;
|
|
44884
|
-
product_group_id: string | null;
|
|
44885
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
44886
|
-
source: string | null;
|
|
44887
|
-
source_id: string | null;
|
|
44888
|
-
trade_item_id: string | null;
|
|
44889
|
-
valid_from: string | null;
|
|
44890
|
-
valid_until: string | null;
|
|
44891
|
-
};
|
|
44892
|
-
Relationships: [];
|
|
44893
|
-
};
|
|
44894
45961
|
local_customer_discounts: {
|
|
44895
45962
|
Row: {
|
|
44896
45963
|
base_price: number | null;
|
|
@@ -45194,6 +46261,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
45194
46261
|
};
|
|
45195
46262
|
Returns: number;
|
|
45196
46263
|
};
|
|
46264
|
+
_migrate_rewrite_stock_key: {
|
|
46265
|
+
Args: {
|
|
46266
|
+
_from_key: string;
|
|
46267
|
+
_to_key: string;
|
|
46268
|
+
};
|
|
46269
|
+
Returns: undefined;
|
|
46270
|
+
};
|
|
45197
46271
|
afh_city_code: {
|
|
45198
46272
|
Args: {
|
|
45199
46273
|
_city: string;
|
|
@@ -45309,6 +46383,28 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
45309
46383
|
Args: never;
|
|
45310
46384
|
Returns: undefined;
|
|
45311
46385
|
};
|
|
46386
|
+
consume_bom_for_production: {
|
|
46387
|
+
Args: {
|
|
46388
|
+
p_connection_id: string;
|
|
46389
|
+
p_parent_id: string;
|
|
46390
|
+
p_parent_key: string;
|
|
46391
|
+
p_parent_kind: string;
|
|
46392
|
+
p_quantity: number;
|
|
46393
|
+
p_user_id: string;
|
|
46394
|
+
};
|
|
46395
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
46396
|
+
} | {
|
|
46397
|
+
Args: {
|
|
46398
|
+
p_batch_id?: string;
|
|
46399
|
+
p_connection_id: string;
|
|
46400
|
+
p_parent_id: string;
|
|
46401
|
+
p_parent_key: string;
|
|
46402
|
+
p_parent_kind: string;
|
|
46403
|
+
p_quantity: number;
|
|
46404
|
+
p_user_id: string;
|
|
46405
|
+
};
|
|
46406
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
46407
|
+
};
|
|
45312
46408
|
consume_floriday_rate_limit: {
|
|
45313
46409
|
Args: {
|
|
45314
46410
|
p_bucket: string;
|
|
@@ -45360,6 +46456,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
45360
46456
|
table_name: string;
|
|
45361
46457
|
}[];
|
|
45362
46458
|
};
|
|
46459
|
+
delete_samenstelling: {
|
|
46460
|
+
Args: {
|
|
46461
|
+
p_parent_id: string;
|
|
46462
|
+
p_parent_kind: string;
|
|
46463
|
+
};
|
|
46464
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
46465
|
+
};
|
|
45363
46466
|
dispatch_carrier_signups_sql: {
|
|
45364
46467
|
Args: {
|
|
45365
46468
|
_catchup?: string;
|
|
@@ -45520,19 +46623,6 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
45520
46623
|
resource: string;
|
|
45521
46624
|
}[];
|
|
45522
46625
|
};
|
|
45523
|
-
get_floriday_agreements_active: {
|
|
45524
|
-
Args: {
|
|
45525
|
-
p_on_date?: string;
|
|
45526
|
-
};
|
|
45527
|
-
Returns: {
|
|
45528
|
-
buyer_organization_id: string;
|
|
45529
|
-
data: import("../integrations/supabase/types").Json;
|
|
45530
|
-
floriday_id: string;
|
|
45531
|
-
status: string;
|
|
45532
|
-
valid_from: string;
|
|
45533
|
-
valid_until: string;
|
|
45534
|
-
}[];
|
|
45535
|
-
};
|
|
45536
46626
|
get_floriday_clock_supplies_window: {
|
|
45537
46627
|
Args: {
|
|
45538
46628
|
p_from: string;
|
|
@@ -45605,6 +46695,21 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
45605
46695
|
minutes_since_success: number;
|
|
45606
46696
|
}[];
|
|
45607
46697
|
};
|
|
46698
|
+
get_group_allocation_keys: {
|
|
46699
|
+
Args: {
|
|
46700
|
+
p_product_id: string;
|
|
46701
|
+
};
|
|
46702
|
+
Returns: {
|
|
46703
|
+
k: string;
|
|
46704
|
+
ord: number;
|
|
46705
|
+
}[];
|
|
46706
|
+
};
|
|
46707
|
+
get_group_head_key: {
|
|
46708
|
+
Args: {
|
|
46709
|
+
p_group_id: string;
|
|
46710
|
+
};
|
|
46711
|
+
Returns: string;
|
|
46712
|
+
};
|
|
45608
46713
|
get_offer_by_link_code: {
|
|
45609
46714
|
Args: {
|
|
45610
46715
|
p_code: string;
|
|
@@ -45715,6 +46820,19 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
45715
46820
|
};
|
|
45716
46821
|
Returns: undefined;
|
|
45717
46822
|
};
|
|
46823
|
+
mark_shipment_shipped: {
|
|
46824
|
+
Args: {
|
|
46825
|
+
p_shipment_id: string;
|
|
46826
|
+
};
|
|
46827
|
+
Returns: undefined;
|
|
46828
|
+
};
|
|
46829
|
+
merge_products: {
|
|
46830
|
+
Args: {
|
|
46831
|
+
_canonical: string;
|
|
46832
|
+
_loser: string;
|
|
46833
|
+
};
|
|
46834
|
+
Returns: undefined;
|
|
46835
|
+
};
|
|
45718
46836
|
next_manufacture_partij: {
|
|
45719
46837
|
Args: {
|
|
45720
46838
|
_tenant_id: string;
|
|
@@ -45799,6 +46917,14 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
45799
46917
|
};
|
|
45800
46918
|
Returns: undefined;
|
|
45801
46919
|
};
|
|
46920
|
+
produce_designed_product: {
|
|
46921
|
+
Args: {
|
|
46922
|
+
p_parent_id: string;
|
|
46923
|
+
p_parent_kind: string;
|
|
46924
|
+
p_quantity: number;
|
|
46925
|
+
};
|
|
46926
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
46927
|
+
};
|
|
45802
46928
|
promote_trade_item_key: {
|
|
45803
46929
|
Args: {
|
|
45804
46930
|
p_new: string;
|
|
@@ -45806,6 +46932,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
45806
46932
|
};
|
|
45807
46933
|
Returns: undefined;
|
|
45808
46934
|
};
|
|
46935
|
+
recompute_all_reserved_stock: {
|
|
46936
|
+
Args: never;
|
|
46937
|
+
Returns: undefined;
|
|
46938
|
+
};
|
|
45809
46939
|
recompute_order_status: {
|
|
45810
46940
|
Args: {
|
|
45811
46941
|
p_order_id: string;
|
|
@@ -45855,27 +46985,45 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
45855
46985
|
};
|
|
45856
46986
|
Returns: undefined;
|
|
45857
46987
|
};
|
|
46988
|
+
resolve_group_allocation: {
|
|
46989
|
+
Args: {
|
|
46990
|
+
_needed: number;
|
|
46991
|
+
_product_group_id: string;
|
|
46992
|
+
};
|
|
46993
|
+
Returns: {
|
|
46994
|
+
allocated: number;
|
|
46995
|
+
trade_item_id: string;
|
|
46996
|
+
}[];
|
|
46997
|
+
};
|
|
46998
|
+
resolve_group_member_stock_key: {
|
|
46999
|
+
Args: {
|
|
47000
|
+
p_trade_item_id: string;
|
|
47001
|
+
};
|
|
47002
|
+
Returns: string;
|
|
47003
|
+
};
|
|
45858
47004
|
resolve_product_id_for_item: {
|
|
45859
47005
|
Args: {
|
|
45860
47006
|
p_product_name: string;
|
|
45861
47007
|
};
|
|
45862
47008
|
Returns: string;
|
|
45863
47009
|
};
|
|
45864
|
-
|
|
47010
|
+
resolve_stock_trade_item_key: {
|
|
45865
47011
|
Args: {
|
|
45866
|
-
|
|
45867
|
-
p_url: string;
|
|
47012
|
+
p_product_id: string;
|
|
45868
47013
|
};
|
|
45869
|
-
Returns:
|
|
47014
|
+
Returns: string;
|
|
45870
47015
|
};
|
|
45871
|
-
|
|
47016
|
+
reverse_production: {
|
|
45872
47017
|
Args: {
|
|
45873
|
-
|
|
45874
|
-
|
|
47018
|
+
p_connection_id?: string;
|
|
47019
|
+
p_parent_key: string;
|
|
47020
|
+
p_quantity: number;
|
|
47021
|
+
p_reason?: string;
|
|
47022
|
+
p_user_id?: string;
|
|
45875
47023
|
};
|
|
45876
|
-
Returns:
|
|
47024
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
45877
47025
|
};
|
|
45878
|
-
|
|
47026
|
+
schedule_floriday_additional_services_sync: {
|
|
45879
47027
|
Args: {
|
|
45880
47028
|
p_apikey: string;
|
|
45881
47029
|
p_url: string;
|
|
@@ -49605,105 +50753,6 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
49605
50753
|
referencedColumns: ["id"];
|
|
49606
50754
|
}];
|
|
49607
50755
|
};
|
|
49608
|
-
floriday_agreement_calloffs_cache: {
|
|
49609
|
-
Row: {
|
|
49610
|
-
agreement_id: string | null;
|
|
49611
|
-
connection_id: string;
|
|
49612
|
-
data: import("../integrations/supabase/types").Json;
|
|
49613
|
-
delivery_date: string | null;
|
|
49614
|
-
fetched_at: string;
|
|
49615
|
-
floriday_id: string;
|
|
49616
|
-
id: string;
|
|
49617
|
-
is_deleted: boolean;
|
|
49618
|
-
sequence_number: number;
|
|
49619
|
-
status: string | null;
|
|
49620
|
-
updated_at: string;
|
|
49621
|
-
};
|
|
49622
|
-
Insert: {
|
|
49623
|
-
agreement_id?: string | null;
|
|
49624
|
-
connection_id: string;
|
|
49625
|
-
data?: import("../integrations/supabase/types").Json;
|
|
49626
|
-
delivery_date?: string | null;
|
|
49627
|
-
fetched_at?: string;
|
|
49628
|
-
floriday_id: string;
|
|
49629
|
-
id?: string;
|
|
49630
|
-
is_deleted?: boolean;
|
|
49631
|
-
sequence_number?: number;
|
|
49632
|
-
status?: string | null;
|
|
49633
|
-
updated_at?: string;
|
|
49634
|
-
};
|
|
49635
|
-
Update: {
|
|
49636
|
-
agreement_id?: string | null;
|
|
49637
|
-
connection_id?: string;
|
|
49638
|
-
data?: import("../integrations/supabase/types").Json;
|
|
49639
|
-
delivery_date?: string | null;
|
|
49640
|
-
fetched_at?: string;
|
|
49641
|
-
floriday_id?: string;
|
|
49642
|
-
id?: string;
|
|
49643
|
-
is_deleted?: boolean;
|
|
49644
|
-
sequence_number?: number;
|
|
49645
|
-
status?: string | null;
|
|
49646
|
-
updated_at?: string;
|
|
49647
|
-
};
|
|
49648
|
-
Relationships: [{
|
|
49649
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
49650
|
-
columns: ["connection_id"];
|
|
49651
|
-
isOneToOne: false;
|
|
49652
|
-
referencedRelation: "floriday_connections";
|
|
49653
|
-
referencedColumns: ["id"];
|
|
49654
|
-
}];
|
|
49655
|
-
};
|
|
49656
|
-
floriday_agreements_cache: {
|
|
49657
|
-
Row: {
|
|
49658
|
-
buyer_organization_id: string | null;
|
|
49659
|
-
connection_id: string;
|
|
49660
|
-
data: import("../integrations/supabase/types").Json;
|
|
49661
|
-
fetched_at: string;
|
|
49662
|
-
floriday_id: string;
|
|
49663
|
-
id: string;
|
|
49664
|
-
is_deleted: boolean;
|
|
49665
|
-
sequence_number: number;
|
|
49666
|
-
status: string | null;
|
|
49667
|
-
updated_at: string;
|
|
49668
|
-
valid_from: string | null;
|
|
49669
|
-
valid_until: string | null;
|
|
49670
|
-
};
|
|
49671
|
-
Insert: {
|
|
49672
|
-
buyer_organization_id?: string | null;
|
|
49673
|
-
connection_id: string;
|
|
49674
|
-
data?: import("../integrations/supabase/types").Json;
|
|
49675
|
-
fetched_at?: string;
|
|
49676
|
-
floriday_id: string;
|
|
49677
|
-
id?: string;
|
|
49678
|
-
is_deleted?: boolean;
|
|
49679
|
-
sequence_number?: number;
|
|
49680
|
-
status?: string | null;
|
|
49681
|
-
updated_at?: string;
|
|
49682
|
-
valid_from?: string | null;
|
|
49683
|
-
valid_until?: string | null;
|
|
49684
|
-
};
|
|
49685
|
-
Update: {
|
|
49686
|
-
buyer_organization_id?: string | null;
|
|
49687
|
-
connection_id?: string;
|
|
49688
|
-
data?: import("../integrations/supabase/types").Json;
|
|
49689
|
-
fetched_at?: string;
|
|
49690
|
-
floriday_id?: string;
|
|
49691
|
-
id?: string;
|
|
49692
|
-
is_deleted?: boolean;
|
|
49693
|
-
sequence_number?: number;
|
|
49694
|
-
status?: string | null;
|
|
49695
|
-
updated_at?: string;
|
|
49696
|
-
valid_from?: string | null;
|
|
49697
|
-
valid_until?: string | null;
|
|
49698
|
-
};
|
|
49699
|
-
Relationships: [{
|
|
49700
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
49701
|
-
columns: ["connection_id"];
|
|
49702
|
-
isOneToOne: false;
|
|
49703
|
-
referencedRelation: "floriday_connections";
|
|
49704
|
-
referencedColumns: ["id"];
|
|
49705
|
-
}];
|
|
49706
|
-
};
|
|
49707
50756
|
floriday_auction_letters_cache: {
|
|
49708
50757
|
Row: {
|
|
49709
50758
|
auction_letter_code: string;
|
|
@@ -51201,6 +52250,45 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
51201
52250
|
referencedColumns: ["id"];
|
|
51202
52251
|
}];
|
|
51203
52252
|
};
|
|
52253
|
+
floriday_trade_settings_customers_cache: {
|
|
52254
|
+
Row: {
|
|
52255
|
+
connection_id: string;
|
|
52256
|
+
data: import("../integrations/supabase/types").Json;
|
|
52257
|
+
fetched_at: string;
|
|
52258
|
+
floriday_id: string;
|
|
52259
|
+
id: string;
|
|
52260
|
+
is_deleted: boolean;
|
|
52261
|
+
sequence_number: number;
|
|
52262
|
+
updated_at: string;
|
|
52263
|
+
};
|
|
52264
|
+
Insert: {
|
|
52265
|
+
connection_id: string;
|
|
52266
|
+
data: import("../integrations/supabase/types").Json;
|
|
52267
|
+
fetched_at?: string;
|
|
52268
|
+
floriday_id: string;
|
|
52269
|
+
id?: string;
|
|
52270
|
+
is_deleted?: boolean;
|
|
52271
|
+
sequence_number?: number;
|
|
52272
|
+
updated_at?: string;
|
|
52273
|
+
};
|
|
52274
|
+
Update: {
|
|
52275
|
+
connection_id?: string;
|
|
52276
|
+
data?: import("../integrations/supabase/types").Json;
|
|
52277
|
+
fetched_at?: string;
|
|
52278
|
+
floriday_id?: string;
|
|
52279
|
+
id?: string;
|
|
52280
|
+
is_deleted?: boolean;
|
|
52281
|
+
sequence_number?: number;
|
|
52282
|
+
updated_at?: string;
|
|
52283
|
+
};
|
|
52284
|
+
Relationships: [{
|
|
52285
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
52286
|
+
columns: ["connection_id"];
|
|
52287
|
+
isOneToOne: false;
|
|
52288
|
+
referencedRelation: "floriday_connections";
|
|
52289
|
+
referencedColumns: ["id"];
|
|
52290
|
+
}];
|
|
52291
|
+
};
|
|
51204
52292
|
floriday_trips_cache: {
|
|
51205
52293
|
Row: {
|
|
51206
52294
|
carrier_organization_id: string | null;
|
|
@@ -53373,6 +54461,105 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53373
54461
|
};
|
|
53374
54462
|
Relationships: [];
|
|
53375
54463
|
};
|
|
54464
|
+
order_shipment_items: {
|
|
54465
|
+
Row: {
|
|
54466
|
+
created_at: string;
|
|
54467
|
+
id: string;
|
|
54468
|
+
order_item_id: string;
|
|
54469
|
+
product_id: string | null;
|
|
54470
|
+
product_name: string;
|
|
54471
|
+
quantity: number;
|
|
54472
|
+
shipment_id: string;
|
|
54473
|
+
updated_at: string;
|
|
54474
|
+
};
|
|
54475
|
+
Insert: {
|
|
54476
|
+
created_at?: string;
|
|
54477
|
+
id?: string;
|
|
54478
|
+
order_item_id: string;
|
|
54479
|
+
product_id?: string | null;
|
|
54480
|
+
product_name: string;
|
|
54481
|
+
quantity: number;
|
|
54482
|
+
shipment_id: string;
|
|
54483
|
+
updated_at?: string;
|
|
54484
|
+
};
|
|
54485
|
+
Update: {
|
|
54486
|
+
created_at?: string;
|
|
54487
|
+
id?: string;
|
|
54488
|
+
order_item_id?: string;
|
|
54489
|
+
product_id?: string | null;
|
|
54490
|
+
product_name?: string;
|
|
54491
|
+
quantity?: number;
|
|
54492
|
+
shipment_id?: string;
|
|
54493
|
+
updated_at?: string;
|
|
54494
|
+
};
|
|
54495
|
+
Relationships: [{
|
|
54496
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
54497
|
+
columns: ["order_item_id"];
|
|
54498
|
+
isOneToOne: false;
|
|
54499
|
+
referencedRelation: "order_items";
|
|
54500
|
+
referencedColumns: ["id"];
|
|
54501
|
+
}, {
|
|
54502
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
54503
|
+
columns: ["shipment_id"];
|
|
54504
|
+
isOneToOne: false;
|
|
54505
|
+
referencedRelation: "order_shipments";
|
|
54506
|
+
referencedColumns: ["id"];
|
|
54507
|
+
}];
|
|
54508
|
+
};
|
|
54509
|
+
order_shipments: {
|
|
54510
|
+
Row: {
|
|
54511
|
+
carrier_id: string | null;
|
|
54512
|
+
created_at: string;
|
|
54513
|
+
delivery_date: string | null;
|
|
54514
|
+
delivery_location_id: string | null;
|
|
54515
|
+
id: string;
|
|
54516
|
+
notes: string | null;
|
|
54517
|
+
order_id: string;
|
|
54518
|
+
shipment_number: number;
|
|
54519
|
+
shipped_at: string | null;
|
|
54520
|
+
status: string;
|
|
54521
|
+
updated_at: string;
|
|
54522
|
+
};
|
|
54523
|
+
Insert: {
|
|
54524
|
+
carrier_id?: string | null;
|
|
54525
|
+
created_at?: string;
|
|
54526
|
+
delivery_date?: string | null;
|
|
54527
|
+
delivery_location_id?: string | null;
|
|
54528
|
+
id?: string;
|
|
54529
|
+
notes?: string | null;
|
|
54530
|
+
order_id: string;
|
|
54531
|
+
shipment_number: number;
|
|
54532
|
+
shipped_at?: string | null;
|
|
54533
|
+
status?: string;
|
|
54534
|
+
updated_at?: string;
|
|
54535
|
+
};
|
|
54536
|
+
Update: {
|
|
54537
|
+
carrier_id?: string | null;
|
|
54538
|
+
created_at?: string;
|
|
54539
|
+
delivery_date?: string | null;
|
|
54540
|
+
delivery_location_id?: string | null;
|
|
54541
|
+
id?: string;
|
|
54542
|
+
notes?: string | null;
|
|
54543
|
+
order_id?: string;
|
|
54544
|
+
shipment_number?: number;
|
|
54545
|
+
shipped_at?: string | null;
|
|
54546
|
+
status?: string;
|
|
54547
|
+
updated_at?: string;
|
|
54548
|
+
};
|
|
54549
|
+
Relationships: [{
|
|
54550
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
54551
|
+
columns: ["carrier_id"];
|
|
54552
|
+
isOneToOne: false;
|
|
54553
|
+
referencedRelation: "carriers";
|
|
54554
|
+
referencedColumns: ["id"];
|
|
54555
|
+
}, {
|
|
54556
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
54557
|
+
columns: ["order_id"];
|
|
54558
|
+
isOneToOne: false;
|
|
54559
|
+
referencedRelation: "orders";
|
|
54560
|
+
referencedColumns: ["id"];
|
|
54561
|
+
}];
|
|
54562
|
+
};
|
|
53376
54563
|
orders: {
|
|
53377
54564
|
Row: {
|
|
53378
54565
|
created_at: string;
|
|
@@ -53380,8 +54567,9 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53380
54567
|
customer_id: string | null;
|
|
53381
54568
|
customer_name: string;
|
|
53382
54569
|
deleted_at: string | null;
|
|
53383
|
-
delivery_date: string;
|
|
54570
|
+
delivery_date: string | null;
|
|
53384
54571
|
id: string;
|
|
54572
|
+
is_reservation: boolean;
|
|
53385
54573
|
notes: string | null;
|
|
53386
54574
|
order_date: string;
|
|
53387
54575
|
order_number: string;
|
|
@@ -53398,8 +54586,9 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53398
54586
|
customer_id?: string | null;
|
|
53399
54587
|
customer_name?: string;
|
|
53400
54588
|
deleted_at?: string | null;
|
|
53401
|
-
delivery_date
|
|
54589
|
+
delivery_date?: string | null;
|
|
53402
54590
|
id?: string;
|
|
54591
|
+
is_reservation?: boolean;
|
|
53403
54592
|
notes?: string | null;
|
|
53404
54593
|
order_date?: string;
|
|
53405
54594
|
order_number: string;
|
|
@@ -53416,8 +54605,9 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53416
54605
|
customer_id?: string | null;
|
|
53417
54606
|
customer_name?: string;
|
|
53418
54607
|
deleted_at?: string | null;
|
|
53419
|
-
delivery_date?: string;
|
|
54608
|
+
delivery_date?: string | null;
|
|
53420
54609
|
id?: string;
|
|
54610
|
+
is_reservation?: boolean;
|
|
53421
54611
|
notes?: string | null;
|
|
53422
54612
|
order_date?: string;
|
|
53423
54613
|
order_number?: string;
|
|
@@ -53559,6 +54749,63 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53559
54749
|
};
|
|
53560
54750
|
Relationships: [];
|
|
53561
54751
|
};
|
|
54752
|
+
product_bom_items: {
|
|
54753
|
+
Row: {
|
|
54754
|
+
component_product_id: string | null;
|
|
54755
|
+
component_trade_item_floriday_id: string | null;
|
|
54756
|
+
created_at: string;
|
|
54757
|
+
id: string;
|
|
54758
|
+
notes: string | null;
|
|
54759
|
+
parent_product_id: string | null;
|
|
54760
|
+
parent_trade_item_floriday_id: string | null;
|
|
54761
|
+
quantity: number;
|
|
54762
|
+
sort_order: number;
|
|
54763
|
+
tenant_id: string;
|
|
54764
|
+
unit: string;
|
|
54765
|
+
updated_at: string;
|
|
54766
|
+
};
|
|
54767
|
+
Insert: {
|
|
54768
|
+
component_product_id?: string | null;
|
|
54769
|
+
component_trade_item_floriday_id?: string | null;
|
|
54770
|
+
created_at?: string;
|
|
54771
|
+
id?: string;
|
|
54772
|
+
notes?: string | null;
|
|
54773
|
+
parent_product_id?: string | null;
|
|
54774
|
+
parent_trade_item_floriday_id?: string | null;
|
|
54775
|
+
quantity?: number;
|
|
54776
|
+
sort_order?: number;
|
|
54777
|
+
tenant_id: string;
|
|
54778
|
+
unit?: string;
|
|
54779
|
+
updated_at?: string;
|
|
54780
|
+
};
|
|
54781
|
+
Update: {
|
|
54782
|
+
component_product_id?: string | null;
|
|
54783
|
+
component_trade_item_floriday_id?: string | null;
|
|
54784
|
+
created_at?: string;
|
|
54785
|
+
id?: string;
|
|
54786
|
+
notes?: string | null;
|
|
54787
|
+
parent_product_id?: string | null;
|
|
54788
|
+
parent_trade_item_floriday_id?: string | null;
|
|
54789
|
+
quantity?: number;
|
|
54790
|
+
sort_order?: number;
|
|
54791
|
+
tenant_id?: string;
|
|
54792
|
+
unit?: string;
|
|
54793
|
+
updated_at?: string;
|
|
54794
|
+
};
|
|
54795
|
+
Relationships: [{
|
|
54796
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
54797
|
+
columns: ["component_product_id"];
|
|
54798
|
+
isOneToOne: false;
|
|
54799
|
+
referencedRelation: "products";
|
|
54800
|
+
referencedColumns: ["id"];
|
|
54801
|
+
}, {
|
|
54802
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
54803
|
+
columns: ["parent_product_id"];
|
|
54804
|
+
isOneToOne: false;
|
|
54805
|
+
referencedRelation: "products";
|
|
54806
|
+
referencedColumns: ["id"];
|
|
54807
|
+
}];
|
|
54808
|
+
};
|
|
53562
54809
|
product_categories: {
|
|
53563
54810
|
Row: {
|
|
53564
54811
|
color: string;
|
|
@@ -53664,6 +54911,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53664
54911
|
id: string;
|
|
53665
54912
|
product_group_id: string;
|
|
53666
54913
|
quantity: number;
|
|
54914
|
+
sort_order: number;
|
|
53667
54915
|
trade_item_id: string;
|
|
53668
54916
|
};
|
|
53669
54917
|
Insert: {
|
|
@@ -53671,6 +54919,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53671
54919
|
id?: string;
|
|
53672
54920
|
product_group_id: string;
|
|
53673
54921
|
quantity?: number;
|
|
54922
|
+
sort_order?: number;
|
|
53674
54923
|
trade_item_id: string;
|
|
53675
54924
|
};
|
|
53676
54925
|
Update: {
|
|
@@ -53678,6 +54927,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53678
54927
|
id?: string;
|
|
53679
54928
|
product_group_id?: string;
|
|
53680
54929
|
quantity?: number;
|
|
54930
|
+
sort_order?: number;
|
|
53681
54931
|
trade_item_id?: string;
|
|
53682
54932
|
};
|
|
53683
54933
|
Relationships: [{
|
|
@@ -53692,6 +54942,8 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53692
54942
|
Row: {
|
|
53693
54943
|
created_at: string;
|
|
53694
54944
|
description: string | null;
|
|
54945
|
+
head_product_id: string | null;
|
|
54946
|
+
head_trade_item_floriday_id: string | null;
|
|
53695
54947
|
id: string;
|
|
53696
54948
|
is_active: boolean;
|
|
53697
54949
|
name: string;
|
|
@@ -53701,6 +54953,8 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53701
54953
|
Insert: {
|
|
53702
54954
|
created_at?: string;
|
|
53703
54955
|
description?: string | null;
|
|
54956
|
+
head_product_id?: string | null;
|
|
54957
|
+
head_trade_item_floriday_id?: string | null;
|
|
53704
54958
|
id?: string;
|
|
53705
54959
|
is_active?: boolean;
|
|
53706
54960
|
name: string;
|
|
@@ -53710,21 +54964,126 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53710
54964
|
Update: {
|
|
53711
54965
|
created_at?: string;
|
|
53712
54966
|
description?: string | null;
|
|
54967
|
+
head_product_id?: string | null;
|
|
54968
|
+
head_trade_item_floriday_id?: string | null;
|
|
53713
54969
|
id?: string;
|
|
53714
54970
|
is_active?: boolean;
|
|
53715
54971
|
name?: string;
|
|
53716
54972
|
tenant_id?: string;
|
|
53717
54973
|
updated_at?: string;
|
|
53718
54974
|
};
|
|
54975
|
+
Relationships: [{
|
|
54976
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
54977
|
+
columns: ["head_product_id"];
|
|
54978
|
+
isOneToOne: false;
|
|
54979
|
+
referencedRelation: "products";
|
|
54980
|
+
referencedColumns: ["id"];
|
|
54981
|
+
}];
|
|
54982
|
+
};
|
|
54983
|
+
product_load_settings: {
|
|
54984
|
+
Row: {
|
|
54985
|
+
created_at: string;
|
|
54986
|
+
id: string;
|
|
54987
|
+
is_package: boolean;
|
|
54988
|
+
layers_per_load_carrier: number | null;
|
|
54989
|
+
load_carrier: string | null;
|
|
54990
|
+
package_id: string | null;
|
|
54991
|
+
package_label: string | null;
|
|
54992
|
+
packages_per_layer: number | null;
|
|
54993
|
+
product_id: string | null;
|
|
54994
|
+
tenant_id: string;
|
|
54995
|
+
trade_item_floriday_id: string | null;
|
|
54996
|
+
units_per_package: number | null;
|
|
54997
|
+
updated_at: string;
|
|
54998
|
+
};
|
|
54999
|
+
Insert: {
|
|
55000
|
+
created_at?: string;
|
|
55001
|
+
id?: string;
|
|
55002
|
+
is_package?: boolean;
|
|
55003
|
+
layers_per_load_carrier?: number | null;
|
|
55004
|
+
load_carrier?: string | null;
|
|
55005
|
+
package_id?: string | null;
|
|
55006
|
+
package_label?: string | null;
|
|
55007
|
+
packages_per_layer?: number | null;
|
|
55008
|
+
product_id?: string | null;
|
|
55009
|
+
tenant_id: string;
|
|
55010
|
+
trade_item_floriday_id?: string | null;
|
|
55011
|
+
units_per_package?: number | null;
|
|
55012
|
+
updated_at?: string;
|
|
55013
|
+
};
|
|
55014
|
+
Update: {
|
|
55015
|
+
created_at?: string;
|
|
55016
|
+
id?: string;
|
|
55017
|
+
is_package?: boolean;
|
|
55018
|
+
layers_per_load_carrier?: number | null;
|
|
55019
|
+
load_carrier?: string | null;
|
|
55020
|
+
package_id?: string | null;
|
|
55021
|
+
package_label?: string | null;
|
|
55022
|
+
packages_per_layer?: number | null;
|
|
55023
|
+
product_id?: string | null;
|
|
55024
|
+
tenant_id?: string;
|
|
55025
|
+
trade_item_floriday_id?: string | null;
|
|
55026
|
+
units_per_package?: number | null;
|
|
55027
|
+
updated_at?: string;
|
|
55028
|
+
};
|
|
55029
|
+
Relationships: [{
|
|
55030
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
55031
|
+
columns: ["package_id"];
|
|
55032
|
+
isOneToOne: false;
|
|
55033
|
+
referencedRelation: "packages";
|
|
55034
|
+
referencedColumns: ["id"];
|
|
55035
|
+
}, {
|
|
55036
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
55037
|
+
columns: ["product_id"];
|
|
55038
|
+
isOneToOne: false;
|
|
55039
|
+
referencedRelation: "products";
|
|
55040
|
+
referencedColumns: ["id"];
|
|
55041
|
+
}];
|
|
55042
|
+
};
|
|
55043
|
+
product_merge_log: {
|
|
55044
|
+
Row: {
|
|
55045
|
+
canonical_product_id: string | null;
|
|
55046
|
+
id: string;
|
|
55047
|
+
merged_at: string;
|
|
55048
|
+
merged_from_id: string;
|
|
55049
|
+
notes: string | null;
|
|
55050
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
55051
|
+
source_table: string;
|
|
55052
|
+
status: string;
|
|
55053
|
+
};
|
|
55054
|
+
Insert: {
|
|
55055
|
+
canonical_product_id?: string | null;
|
|
55056
|
+
id?: string;
|
|
55057
|
+
merged_at?: string;
|
|
55058
|
+
merged_from_id: string;
|
|
55059
|
+
notes?: string | null;
|
|
55060
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
55061
|
+
source_table: string;
|
|
55062
|
+
status?: string;
|
|
55063
|
+
};
|
|
55064
|
+
Update: {
|
|
55065
|
+
canonical_product_id?: string | null;
|
|
55066
|
+
id?: string;
|
|
55067
|
+
merged_at?: string;
|
|
55068
|
+
merged_from_id?: string;
|
|
55069
|
+
notes?: string | null;
|
|
55070
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
55071
|
+
source_table?: string;
|
|
55072
|
+
status?: string;
|
|
55073
|
+
};
|
|
53719
55074
|
Relationships: [];
|
|
53720
55075
|
};
|
|
53721
55076
|
products: {
|
|
53722
55077
|
Row: {
|
|
55078
|
+
article_number: string | null;
|
|
53723
55079
|
barcode: string | null;
|
|
53724
55080
|
batch: string;
|
|
53725
55081
|
crates_per_layer: number;
|
|
53726
55082
|
created_at: string;
|
|
53727
55083
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
55084
|
+
floriday_active: boolean;
|
|
55085
|
+
floriday_payload: import("../integrations/supabase/types").Json;
|
|
55086
|
+
floriday_trade_item_id: string | null;
|
|
53728
55087
|
id: string;
|
|
53729
55088
|
image_url: string | null;
|
|
53730
55089
|
incoming_quantity: number;
|
|
@@ -53743,11 +55102,15 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53743
55102
|
weight: string | null;
|
|
53744
55103
|
};
|
|
53745
55104
|
Insert: {
|
|
55105
|
+
article_number?: string | null;
|
|
53746
55106
|
barcode?: string | null;
|
|
53747
55107
|
batch: string;
|
|
53748
55108
|
crates_per_layer?: number;
|
|
53749
55109
|
created_at?: string;
|
|
53750
55110
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
55111
|
+
floriday_active?: boolean;
|
|
55112
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
55113
|
+
floriday_trade_item_id?: string | null;
|
|
53751
55114
|
id?: string;
|
|
53752
55115
|
image_url?: string | null;
|
|
53753
55116
|
incoming_quantity?: number;
|
|
@@ -53766,11 +55129,15 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
53766
55129
|
weight?: string | null;
|
|
53767
55130
|
};
|
|
53768
55131
|
Update: {
|
|
55132
|
+
article_number?: string | null;
|
|
53769
55133
|
barcode?: string | null;
|
|
53770
55134
|
batch?: string;
|
|
53771
55135
|
crates_per_layer?: number;
|
|
53772
55136
|
created_at?: string;
|
|
53773
55137
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
55138
|
+
floriday_active?: boolean;
|
|
55139
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
55140
|
+
floriday_trade_item_id?: string | null;
|
|
53774
55141
|
id?: string;
|
|
53775
55142
|
image_url?: string | null;
|
|
53776
55143
|
incoming_quantity?: number;
|
|
@@ -54679,8 +56046,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
54679
56046
|
order_id: string | null;
|
|
54680
56047
|
order_item_id: string | null;
|
|
54681
56048
|
order_source: string | null;
|
|
56049
|
+
parent_trade_item_key: string | null;
|
|
54682
56050
|
physical_after: number | null;
|
|
54683
56051
|
physical_before: number | null;
|
|
56052
|
+
production_batch_id: string | null;
|
|
54684
56053
|
qty_delta: number;
|
|
54685
56054
|
reason: string | null;
|
|
54686
56055
|
reserved_after: number | null;
|
|
@@ -54696,8 +56065,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
54696
56065
|
order_id?: string | null;
|
|
54697
56066
|
order_item_id?: string | null;
|
|
54698
56067
|
order_source?: string | null;
|
|
56068
|
+
parent_trade_item_key?: string | null;
|
|
54699
56069
|
physical_after?: number | null;
|
|
54700
56070
|
physical_before?: number | null;
|
|
56071
|
+
production_batch_id?: string | null;
|
|
54701
56072
|
qty_delta: number;
|
|
54702
56073
|
reason?: string | null;
|
|
54703
56074
|
reserved_after?: number | null;
|
|
@@ -54713,8 +56084,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
54713
56084
|
order_id?: string | null;
|
|
54714
56085
|
order_item_id?: string | null;
|
|
54715
56086
|
order_source?: string | null;
|
|
56087
|
+
parent_trade_item_key?: string | null;
|
|
54716
56088
|
physical_after?: number | null;
|
|
54717
56089
|
physical_before?: number | null;
|
|
56090
|
+
production_batch_id?: string | null;
|
|
54718
56091
|
qty_delta?: number;
|
|
54719
56092
|
reason?: string | null;
|
|
54720
56093
|
reserved_after?: number | null;
|
|
@@ -55173,7 +56546,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
55173
56546
|
twinfield_connections: {
|
|
55174
56547
|
Row: {
|
|
55175
56548
|
access_token: string | null;
|
|
55176
|
-
client_id: string;
|
|
56549
|
+
client_id: string | null;
|
|
55177
56550
|
client_secret: string | null;
|
|
55178
56551
|
cluster_uri: string | null;
|
|
55179
56552
|
company_code: string | null;
|
|
@@ -55185,7 +56558,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
55185
56558
|
is_active: boolean;
|
|
55186
56559
|
label: string | null;
|
|
55187
56560
|
office_code: string | null;
|
|
55188
|
-
redirect_uri: string;
|
|
56561
|
+
redirect_uri: string | null;
|
|
55189
56562
|
refresh_token: string | null;
|
|
55190
56563
|
token_expires_at: string | null;
|
|
55191
56564
|
updated_at: string;
|
|
@@ -55193,7 +56566,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
55193
56566
|
};
|
|
55194
56567
|
Insert: {
|
|
55195
56568
|
access_token?: string | null;
|
|
55196
|
-
client_id
|
|
56569
|
+
client_id?: string | null;
|
|
55197
56570
|
client_secret?: string | null;
|
|
55198
56571
|
cluster_uri?: string | null;
|
|
55199
56572
|
company_code?: string | null;
|
|
@@ -55205,7 +56578,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
55205
56578
|
is_active?: boolean;
|
|
55206
56579
|
label?: string | null;
|
|
55207
56580
|
office_code?: string | null;
|
|
55208
|
-
redirect_uri
|
|
56581
|
+
redirect_uri?: string | null;
|
|
55209
56582
|
refresh_token?: string | null;
|
|
55210
56583
|
token_expires_at?: string | null;
|
|
55211
56584
|
updated_at?: string;
|
|
@@ -55213,7 +56586,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
55213
56586
|
};
|
|
55214
56587
|
Update: {
|
|
55215
56588
|
access_token?: string | null;
|
|
55216
|
-
client_id?: string;
|
|
56589
|
+
client_id?: string | null;
|
|
55217
56590
|
client_secret?: string | null;
|
|
55218
56591
|
cluster_uri?: string | null;
|
|
55219
56592
|
company_code?: string | null;
|
|
@@ -55225,7 +56598,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
55225
56598
|
is_active?: boolean;
|
|
55226
56599
|
label?: string | null;
|
|
55227
56600
|
office_code?: string | null;
|
|
55228
|
-
redirect_uri?: string;
|
|
56601
|
+
redirect_uri?: string | null;
|
|
55229
56602
|
refresh_token?: string | null;
|
|
55230
56603
|
token_expires_at?: string | null;
|
|
55231
56604
|
updated_at?: string;
|
|
@@ -56420,25 +57793,6 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
56420
57793
|
};
|
|
56421
57794
|
Relationships: [];
|
|
56422
57795
|
};
|
|
56423
|
-
floriday_customer_discounts: {
|
|
56424
|
-
Row: {
|
|
56425
|
-
base_price: number | null;
|
|
56426
|
-
buyer_organization_id: string | null;
|
|
56427
|
-
currency: string | null;
|
|
56428
|
-
discount_type: string | null;
|
|
56429
|
-
discount_value: number | null;
|
|
56430
|
-
min_quantity: number | null;
|
|
56431
|
-
net_price: number | null;
|
|
56432
|
-
product_group_id: string | null;
|
|
56433
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
56434
|
-
source: string | null;
|
|
56435
|
-
source_id: string | null;
|
|
56436
|
-
trade_item_id: string | null;
|
|
56437
|
-
valid_from: string | null;
|
|
56438
|
-
valid_until: string | null;
|
|
56439
|
-
};
|
|
56440
|
-
Relationships: [];
|
|
56441
|
-
};
|
|
56442
57796
|
local_customer_discounts: {
|
|
56443
57797
|
Row: {
|
|
56444
57798
|
base_price: number | null;
|
|
@@ -56742,6 +58096,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
56742
58096
|
};
|
|
56743
58097
|
Returns: number;
|
|
56744
58098
|
};
|
|
58099
|
+
_migrate_rewrite_stock_key: {
|
|
58100
|
+
Args: {
|
|
58101
|
+
_from_key: string;
|
|
58102
|
+
_to_key: string;
|
|
58103
|
+
};
|
|
58104
|
+
Returns: undefined;
|
|
58105
|
+
};
|
|
56745
58106
|
afh_city_code: {
|
|
56746
58107
|
Args: {
|
|
56747
58108
|
_city: string;
|
|
@@ -56857,6 +58218,28 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
56857
58218
|
Args: never;
|
|
56858
58219
|
Returns: undefined;
|
|
56859
58220
|
};
|
|
58221
|
+
consume_bom_for_production: {
|
|
58222
|
+
Args: {
|
|
58223
|
+
p_connection_id: string;
|
|
58224
|
+
p_parent_id: string;
|
|
58225
|
+
p_parent_key: string;
|
|
58226
|
+
p_parent_kind: string;
|
|
58227
|
+
p_quantity: number;
|
|
58228
|
+
p_user_id: string;
|
|
58229
|
+
};
|
|
58230
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
58231
|
+
} | {
|
|
58232
|
+
Args: {
|
|
58233
|
+
p_batch_id?: string;
|
|
58234
|
+
p_connection_id: string;
|
|
58235
|
+
p_parent_id: string;
|
|
58236
|
+
p_parent_key: string;
|
|
58237
|
+
p_parent_kind: string;
|
|
58238
|
+
p_quantity: number;
|
|
58239
|
+
p_user_id: string;
|
|
58240
|
+
};
|
|
58241
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
58242
|
+
};
|
|
56860
58243
|
consume_floriday_rate_limit: {
|
|
56861
58244
|
Args: {
|
|
56862
58245
|
p_bucket: string;
|
|
@@ -56908,6 +58291,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
56908
58291
|
table_name: string;
|
|
56909
58292
|
}[];
|
|
56910
58293
|
};
|
|
58294
|
+
delete_samenstelling: {
|
|
58295
|
+
Args: {
|
|
58296
|
+
p_parent_id: string;
|
|
58297
|
+
p_parent_kind: string;
|
|
58298
|
+
};
|
|
58299
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
58300
|
+
};
|
|
56911
58301
|
dispatch_carrier_signups_sql: {
|
|
56912
58302
|
Args: {
|
|
56913
58303
|
_catchup?: string;
|
|
@@ -57068,19 +58458,6 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
57068
58458
|
resource: string;
|
|
57069
58459
|
}[];
|
|
57070
58460
|
};
|
|
57071
|
-
get_floriday_agreements_active: {
|
|
57072
|
-
Args: {
|
|
57073
|
-
p_on_date?: string;
|
|
57074
|
-
};
|
|
57075
|
-
Returns: {
|
|
57076
|
-
buyer_organization_id: string;
|
|
57077
|
-
data: import("../integrations/supabase/types").Json;
|
|
57078
|
-
floriday_id: string;
|
|
57079
|
-
status: string;
|
|
57080
|
-
valid_from: string;
|
|
57081
|
-
valid_until: string;
|
|
57082
|
-
}[];
|
|
57083
|
-
};
|
|
57084
58461
|
get_floriday_clock_supplies_window: {
|
|
57085
58462
|
Args: {
|
|
57086
58463
|
p_from: string;
|
|
@@ -57153,6 +58530,21 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
57153
58530
|
minutes_since_success: number;
|
|
57154
58531
|
}[];
|
|
57155
58532
|
};
|
|
58533
|
+
get_group_allocation_keys: {
|
|
58534
|
+
Args: {
|
|
58535
|
+
p_product_id: string;
|
|
58536
|
+
};
|
|
58537
|
+
Returns: {
|
|
58538
|
+
k: string;
|
|
58539
|
+
ord: number;
|
|
58540
|
+
}[];
|
|
58541
|
+
};
|
|
58542
|
+
get_group_head_key: {
|
|
58543
|
+
Args: {
|
|
58544
|
+
p_group_id: string;
|
|
58545
|
+
};
|
|
58546
|
+
Returns: string;
|
|
58547
|
+
};
|
|
57156
58548
|
get_offer_by_link_code: {
|
|
57157
58549
|
Args: {
|
|
57158
58550
|
p_code: string;
|
|
@@ -57263,6 +58655,19 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
57263
58655
|
};
|
|
57264
58656
|
Returns: undefined;
|
|
57265
58657
|
};
|
|
58658
|
+
mark_shipment_shipped: {
|
|
58659
|
+
Args: {
|
|
58660
|
+
p_shipment_id: string;
|
|
58661
|
+
};
|
|
58662
|
+
Returns: undefined;
|
|
58663
|
+
};
|
|
58664
|
+
merge_products: {
|
|
58665
|
+
Args: {
|
|
58666
|
+
_canonical: string;
|
|
58667
|
+
_loser: string;
|
|
58668
|
+
};
|
|
58669
|
+
Returns: undefined;
|
|
58670
|
+
};
|
|
57266
58671
|
next_manufacture_partij: {
|
|
57267
58672
|
Args: {
|
|
57268
58673
|
_tenant_id: string;
|
|
@@ -57347,6 +58752,14 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
57347
58752
|
};
|
|
57348
58753
|
Returns: undefined;
|
|
57349
58754
|
};
|
|
58755
|
+
produce_designed_product: {
|
|
58756
|
+
Args: {
|
|
58757
|
+
p_parent_id: string;
|
|
58758
|
+
p_parent_kind: string;
|
|
58759
|
+
p_quantity: number;
|
|
58760
|
+
};
|
|
58761
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
58762
|
+
};
|
|
57350
58763
|
promote_trade_item_key: {
|
|
57351
58764
|
Args: {
|
|
57352
58765
|
p_new: string;
|
|
@@ -57354,6 +58767,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
57354
58767
|
};
|
|
57355
58768
|
Returns: undefined;
|
|
57356
58769
|
};
|
|
58770
|
+
recompute_all_reserved_stock: {
|
|
58771
|
+
Args: never;
|
|
58772
|
+
Returns: undefined;
|
|
58773
|
+
};
|
|
57357
58774
|
recompute_order_status: {
|
|
57358
58775
|
Args: {
|
|
57359
58776
|
p_order_id: string;
|
|
@@ -57403,27 +58820,45 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
57403
58820
|
};
|
|
57404
58821
|
Returns: undefined;
|
|
57405
58822
|
};
|
|
58823
|
+
resolve_group_allocation: {
|
|
58824
|
+
Args: {
|
|
58825
|
+
_needed: number;
|
|
58826
|
+
_product_group_id: string;
|
|
58827
|
+
};
|
|
58828
|
+
Returns: {
|
|
58829
|
+
allocated: number;
|
|
58830
|
+
trade_item_id: string;
|
|
58831
|
+
}[];
|
|
58832
|
+
};
|
|
58833
|
+
resolve_group_member_stock_key: {
|
|
58834
|
+
Args: {
|
|
58835
|
+
p_trade_item_id: string;
|
|
58836
|
+
};
|
|
58837
|
+
Returns: string;
|
|
58838
|
+
};
|
|
57406
58839
|
resolve_product_id_for_item: {
|
|
57407
58840
|
Args: {
|
|
57408
58841
|
p_product_name: string;
|
|
57409
58842
|
};
|
|
57410
58843
|
Returns: string;
|
|
57411
58844
|
};
|
|
57412
|
-
|
|
58845
|
+
resolve_stock_trade_item_key: {
|
|
57413
58846
|
Args: {
|
|
57414
|
-
|
|
57415
|
-
p_url: string;
|
|
58847
|
+
p_product_id: string;
|
|
57416
58848
|
};
|
|
57417
|
-
Returns:
|
|
58849
|
+
Returns: string;
|
|
57418
58850
|
};
|
|
57419
|
-
|
|
58851
|
+
reverse_production: {
|
|
57420
58852
|
Args: {
|
|
57421
|
-
|
|
57422
|
-
|
|
58853
|
+
p_connection_id?: string;
|
|
58854
|
+
p_parent_key: string;
|
|
58855
|
+
p_quantity: number;
|
|
58856
|
+
p_reason?: string;
|
|
58857
|
+
p_user_id?: string;
|
|
57423
58858
|
};
|
|
57424
|
-
Returns:
|
|
58859
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
57425
58860
|
};
|
|
57426
|
-
|
|
58861
|
+
schedule_floriday_additional_services_sync: {
|
|
57427
58862
|
Args: {
|
|
57428
58863
|
p_apikey: string;
|
|
57429
58864
|
p_url: string;
|