@flowselections/floriday-verkoop-module 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/CreateOrderPage.js +12 -12
- 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/SalesOrdersFilters.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersFilters.js +2 -8
- 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/index.js +2 -2
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +607 -169
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +607 -169
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +607 -169
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +623 -164
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/cart-lock.functions.d.ts +607 -169
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +1221 -345
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.d.ts +40700 -1397
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +792 -52
- package/dist-lib/lib/expand-group-order-items.d.ts +13 -0
- package/dist-lib/lib/expand-group-order-items.d.ts.map +1 -0
- package/dist-lib/lib/expand-group-order-items.js +216 -0
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1767 -453
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +607 -169
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +4123 -1057
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +2945 -755
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +47158 -0
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -0
- package/dist-lib/lib/order-shipments.functions.js +178 -0
- package/dist-lib/lib/salesorders-mapping.d.ts +1 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.d.ts +1767 -453
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +607 -169
- 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
|
@@ -246,6 +246,165 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
246
246
|
};
|
|
247
247
|
Relationships: [];
|
|
248
248
|
};
|
|
249
|
+
ai_credentials: {
|
|
250
|
+
Row: {
|
|
251
|
+
active: boolean;
|
|
252
|
+
api_key: string;
|
|
253
|
+
created_at: string;
|
|
254
|
+
created_by: string | null;
|
|
255
|
+
id: string;
|
|
256
|
+
label: string;
|
|
257
|
+
provider_id: string;
|
|
258
|
+
updated_at: string;
|
|
259
|
+
};
|
|
260
|
+
Insert: {
|
|
261
|
+
active?: boolean;
|
|
262
|
+
api_key: string;
|
|
263
|
+
created_at?: string;
|
|
264
|
+
created_by?: string | null;
|
|
265
|
+
id?: string;
|
|
266
|
+
label: string;
|
|
267
|
+
provider_id: string;
|
|
268
|
+
updated_at?: string;
|
|
269
|
+
};
|
|
270
|
+
Update: {
|
|
271
|
+
active?: boolean;
|
|
272
|
+
api_key?: string;
|
|
273
|
+
created_at?: string;
|
|
274
|
+
created_by?: string | null;
|
|
275
|
+
id?: string;
|
|
276
|
+
label?: string;
|
|
277
|
+
provider_id?: string;
|
|
278
|
+
updated_at?: string;
|
|
279
|
+
};
|
|
280
|
+
Relationships: [{
|
|
281
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
282
|
+
columns: ["provider_id"];
|
|
283
|
+
isOneToOne: false;
|
|
284
|
+
referencedRelation: "ai_providers";
|
|
285
|
+
referencedColumns: ["id"];
|
|
286
|
+
}];
|
|
287
|
+
};
|
|
288
|
+
ai_models: {
|
|
289
|
+
Row: {
|
|
290
|
+
active: boolean;
|
|
291
|
+
context_window: number | null;
|
|
292
|
+
created_at: string;
|
|
293
|
+
display_name: string;
|
|
294
|
+
id: string;
|
|
295
|
+
is_default: boolean;
|
|
296
|
+
modality: string;
|
|
297
|
+
provider_id: string;
|
|
298
|
+
slug: string;
|
|
299
|
+
updated_at: string;
|
|
300
|
+
};
|
|
301
|
+
Insert: {
|
|
302
|
+
active?: boolean;
|
|
303
|
+
context_window?: number | null;
|
|
304
|
+
created_at?: string;
|
|
305
|
+
display_name: string;
|
|
306
|
+
id?: string;
|
|
307
|
+
is_default?: boolean;
|
|
308
|
+
modality?: string;
|
|
309
|
+
provider_id: string;
|
|
310
|
+
slug: string;
|
|
311
|
+
updated_at?: string;
|
|
312
|
+
};
|
|
313
|
+
Update: {
|
|
314
|
+
active?: boolean;
|
|
315
|
+
context_window?: number | null;
|
|
316
|
+
created_at?: string;
|
|
317
|
+
display_name?: string;
|
|
318
|
+
id?: string;
|
|
319
|
+
is_default?: boolean;
|
|
320
|
+
modality?: string;
|
|
321
|
+
provider_id?: string;
|
|
322
|
+
slug?: string;
|
|
323
|
+
updated_at?: string;
|
|
324
|
+
};
|
|
325
|
+
Relationships: [{
|
|
326
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
327
|
+
columns: ["provider_id"];
|
|
328
|
+
isOneToOne: false;
|
|
329
|
+
referencedRelation: "ai_providers";
|
|
330
|
+
referencedColumns: ["id"];
|
|
331
|
+
}];
|
|
332
|
+
};
|
|
333
|
+
ai_module_bindings: {
|
|
334
|
+
Row: {
|
|
335
|
+
consumer_module_id: string;
|
|
336
|
+
created_at: string;
|
|
337
|
+
credential_id: string;
|
|
338
|
+
id: string;
|
|
339
|
+
model_id: string;
|
|
340
|
+
notes: string | null;
|
|
341
|
+
updated_at: string;
|
|
342
|
+
};
|
|
343
|
+
Insert: {
|
|
344
|
+
consumer_module_id: string;
|
|
345
|
+
created_at?: string;
|
|
346
|
+
credential_id: string;
|
|
347
|
+
id?: string;
|
|
348
|
+
model_id: string;
|
|
349
|
+
notes?: string | null;
|
|
350
|
+
updated_at?: string;
|
|
351
|
+
};
|
|
352
|
+
Update: {
|
|
353
|
+
consumer_module_id?: string;
|
|
354
|
+
created_at?: string;
|
|
355
|
+
credential_id?: string;
|
|
356
|
+
id?: string;
|
|
357
|
+
model_id?: string;
|
|
358
|
+
notes?: string | null;
|
|
359
|
+
updated_at?: string;
|
|
360
|
+
};
|
|
361
|
+
Relationships: [{
|
|
362
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
363
|
+
columns: ["credential_id"];
|
|
364
|
+
isOneToOne: false;
|
|
365
|
+
referencedRelation: "ai_credentials";
|
|
366
|
+
referencedColumns: ["id"];
|
|
367
|
+
}, {
|
|
368
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
369
|
+
columns: ["model_id"];
|
|
370
|
+
isOneToOne: false;
|
|
371
|
+
referencedRelation: "ai_models";
|
|
372
|
+
referencedColumns: ["id"];
|
|
373
|
+
}];
|
|
374
|
+
};
|
|
375
|
+
ai_providers: {
|
|
376
|
+
Row: {
|
|
377
|
+
active: boolean;
|
|
378
|
+
auth_type: string;
|
|
379
|
+
base_url: string | null;
|
|
380
|
+
created_at: string;
|
|
381
|
+
id: string;
|
|
382
|
+
name: string;
|
|
383
|
+
slug: string;
|
|
384
|
+
updated_at: string;
|
|
385
|
+
};
|
|
386
|
+
Insert: {
|
|
387
|
+
active?: boolean;
|
|
388
|
+
auth_type?: string;
|
|
389
|
+
base_url?: string | null;
|
|
390
|
+
created_at?: string;
|
|
391
|
+
id?: string;
|
|
392
|
+
name: string;
|
|
393
|
+
slug: string;
|
|
394
|
+
updated_at?: string;
|
|
395
|
+
};
|
|
396
|
+
Update: {
|
|
397
|
+
active?: boolean;
|
|
398
|
+
auth_type?: string;
|
|
399
|
+
base_url?: string | null;
|
|
400
|
+
created_at?: string;
|
|
401
|
+
id?: string;
|
|
402
|
+
name?: string;
|
|
403
|
+
slug?: string;
|
|
404
|
+
updated_at?: string;
|
|
405
|
+
};
|
|
406
|
+
Relationships: [];
|
|
407
|
+
};
|
|
249
408
|
app_settings: {
|
|
250
409
|
Row: {
|
|
251
410
|
created_at: string;
|
|
@@ -3252,105 +3411,6 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
3252
3411
|
referencedColumns: ["id"];
|
|
3253
3412
|
}];
|
|
3254
3413
|
};
|
|
3255
|
-
floriday_agreement_calloffs_cache: {
|
|
3256
|
-
Row: {
|
|
3257
|
-
agreement_id: string | null;
|
|
3258
|
-
connection_id: string;
|
|
3259
|
-
data: import("../integrations/supabase/types").Json;
|
|
3260
|
-
delivery_date: string | null;
|
|
3261
|
-
fetched_at: string;
|
|
3262
|
-
floriday_id: string;
|
|
3263
|
-
id: string;
|
|
3264
|
-
is_deleted: boolean;
|
|
3265
|
-
sequence_number: number;
|
|
3266
|
-
status: string | null;
|
|
3267
|
-
updated_at: string;
|
|
3268
|
-
};
|
|
3269
|
-
Insert: {
|
|
3270
|
-
agreement_id?: string | null;
|
|
3271
|
-
connection_id: string;
|
|
3272
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3273
|
-
delivery_date?: string | null;
|
|
3274
|
-
fetched_at?: string;
|
|
3275
|
-
floriday_id: string;
|
|
3276
|
-
id?: string;
|
|
3277
|
-
is_deleted?: boolean;
|
|
3278
|
-
sequence_number?: number;
|
|
3279
|
-
status?: string | null;
|
|
3280
|
-
updated_at?: string;
|
|
3281
|
-
};
|
|
3282
|
-
Update: {
|
|
3283
|
-
agreement_id?: string | null;
|
|
3284
|
-
connection_id?: string;
|
|
3285
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3286
|
-
delivery_date?: string | null;
|
|
3287
|
-
fetched_at?: string;
|
|
3288
|
-
floriday_id?: string;
|
|
3289
|
-
id?: string;
|
|
3290
|
-
is_deleted?: boolean;
|
|
3291
|
-
sequence_number?: number;
|
|
3292
|
-
status?: string | null;
|
|
3293
|
-
updated_at?: string;
|
|
3294
|
-
};
|
|
3295
|
-
Relationships: [{
|
|
3296
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
3297
|
-
columns: ["connection_id"];
|
|
3298
|
-
isOneToOne: false;
|
|
3299
|
-
referencedRelation: "floriday_connections";
|
|
3300
|
-
referencedColumns: ["id"];
|
|
3301
|
-
}];
|
|
3302
|
-
};
|
|
3303
|
-
floriday_agreements_cache: {
|
|
3304
|
-
Row: {
|
|
3305
|
-
buyer_organization_id: string | null;
|
|
3306
|
-
connection_id: string;
|
|
3307
|
-
data: import("../integrations/supabase/types").Json;
|
|
3308
|
-
fetched_at: string;
|
|
3309
|
-
floriday_id: string;
|
|
3310
|
-
id: string;
|
|
3311
|
-
is_deleted: boolean;
|
|
3312
|
-
sequence_number: number;
|
|
3313
|
-
status: string | null;
|
|
3314
|
-
updated_at: string;
|
|
3315
|
-
valid_from: string | null;
|
|
3316
|
-
valid_until: string | null;
|
|
3317
|
-
};
|
|
3318
|
-
Insert: {
|
|
3319
|
-
buyer_organization_id?: string | null;
|
|
3320
|
-
connection_id: string;
|
|
3321
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3322
|
-
fetched_at?: string;
|
|
3323
|
-
floriday_id: string;
|
|
3324
|
-
id?: string;
|
|
3325
|
-
is_deleted?: boolean;
|
|
3326
|
-
sequence_number?: number;
|
|
3327
|
-
status?: string | null;
|
|
3328
|
-
updated_at?: string;
|
|
3329
|
-
valid_from?: string | null;
|
|
3330
|
-
valid_until?: string | null;
|
|
3331
|
-
};
|
|
3332
|
-
Update: {
|
|
3333
|
-
buyer_organization_id?: string | null;
|
|
3334
|
-
connection_id?: string;
|
|
3335
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3336
|
-
fetched_at?: string;
|
|
3337
|
-
floriday_id?: string;
|
|
3338
|
-
id?: string;
|
|
3339
|
-
is_deleted?: boolean;
|
|
3340
|
-
sequence_number?: number;
|
|
3341
|
-
status?: string | null;
|
|
3342
|
-
updated_at?: string;
|
|
3343
|
-
valid_from?: string | null;
|
|
3344
|
-
valid_until?: string | null;
|
|
3345
|
-
};
|
|
3346
|
-
Relationships: [{
|
|
3347
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
3348
|
-
columns: ["connection_id"];
|
|
3349
|
-
isOneToOne: false;
|
|
3350
|
-
referencedRelation: "floriday_connections";
|
|
3351
|
-
referencedColumns: ["id"];
|
|
3352
|
-
}];
|
|
3353
|
-
};
|
|
3354
3414
|
floriday_auction_letters_cache: {
|
|
3355
3415
|
Row: {
|
|
3356
3416
|
auction_letter_code: string;
|
|
@@ -3849,6 +3909,27 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
3849
3909
|
referencedColumns: ["id"];
|
|
3850
3910
|
}];
|
|
3851
3911
|
};
|
|
3912
|
+
floriday_continuous_stock_cache: {
|
|
3913
|
+
Row: {
|
|
3914
|
+
connection_id: string;
|
|
3915
|
+
fetched_at: string;
|
|
3916
|
+
number_of_pieces: number;
|
|
3917
|
+
trade_item_id: string;
|
|
3918
|
+
};
|
|
3919
|
+
Insert: {
|
|
3920
|
+
connection_id: string;
|
|
3921
|
+
fetched_at?: string;
|
|
3922
|
+
number_of_pieces?: number;
|
|
3923
|
+
trade_item_id: string;
|
|
3924
|
+
};
|
|
3925
|
+
Update: {
|
|
3926
|
+
connection_id?: string;
|
|
3927
|
+
fetched_at?: string;
|
|
3928
|
+
number_of_pieces?: number;
|
|
3929
|
+
trade_item_id?: string;
|
|
3930
|
+
};
|
|
3931
|
+
Relationships: [];
|
|
3932
|
+
};
|
|
3852
3933
|
floriday_continuous_stock_queue: {
|
|
3853
3934
|
Row: {
|
|
3854
3935
|
attempts: number;
|
|
@@ -4827,6 +4908,45 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
4827
4908
|
referencedColumns: ["id"];
|
|
4828
4909
|
}];
|
|
4829
4910
|
};
|
|
4911
|
+
floriday_trade_settings_customers_cache: {
|
|
4912
|
+
Row: {
|
|
4913
|
+
connection_id: string;
|
|
4914
|
+
data: import("../integrations/supabase/types").Json;
|
|
4915
|
+
fetched_at: string;
|
|
4916
|
+
floriday_id: string;
|
|
4917
|
+
id: string;
|
|
4918
|
+
is_deleted: boolean;
|
|
4919
|
+
sequence_number: number;
|
|
4920
|
+
updated_at: string;
|
|
4921
|
+
};
|
|
4922
|
+
Insert: {
|
|
4923
|
+
connection_id: string;
|
|
4924
|
+
data: import("../integrations/supabase/types").Json;
|
|
4925
|
+
fetched_at?: string;
|
|
4926
|
+
floriday_id: string;
|
|
4927
|
+
id?: string;
|
|
4928
|
+
is_deleted?: boolean;
|
|
4929
|
+
sequence_number?: number;
|
|
4930
|
+
updated_at?: string;
|
|
4931
|
+
};
|
|
4932
|
+
Update: {
|
|
4933
|
+
connection_id?: string;
|
|
4934
|
+
data?: import("../integrations/supabase/types").Json;
|
|
4935
|
+
fetched_at?: string;
|
|
4936
|
+
floriday_id?: string;
|
|
4937
|
+
id?: string;
|
|
4938
|
+
is_deleted?: boolean;
|
|
4939
|
+
sequence_number?: number;
|
|
4940
|
+
updated_at?: string;
|
|
4941
|
+
};
|
|
4942
|
+
Relationships: [{
|
|
4943
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
4944
|
+
columns: ["connection_id"];
|
|
4945
|
+
isOneToOne: false;
|
|
4946
|
+
referencedRelation: "floriday_connections";
|
|
4947
|
+
referencedColumns: ["id"];
|
|
4948
|
+
}];
|
|
4949
|
+
};
|
|
4830
4950
|
floriday_trips_cache: {
|
|
4831
4951
|
Row: {
|
|
4832
4952
|
carrier_organization_id: string | null;
|
|
@@ -5972,39 +6092,60 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5972
6092
|
};
|
|
5973
6093
|
manufacture_products: {
|
|
5974
6094
|
Row: {
|
|
6095
|
+
aantal_te_produceren: number;
|
|
5975
6096
|
created_at: string;
|
|
5976
6097
|
description: string | null;
|
|
5977
6098
|
id: string;
|
|
5978
6099
|
is_active: boolean;
|
|
6100
|
+
location_id: string | null;
|
|
5979
6101
|
name: string;
|
|
6102
|
+
partij_nummer: string | null;
|
|
6103
|
+
photos: import("../integrations/supabase/types").Json;
|
|
5980
6104
|
produced_stock: number;
|
|
5981
6105
|
product_code: string;
|
|
5982
6106
|
tenant_id: string;
|
|
6107
|
+
unit: string;
|
|
5983
6108
|
updated_at: string;
|
|
5984
6109
|
};
|
|
5985
6110
|
Insert: {
|
|
6111
|
+
aantal_te_produceren?: number;
|
|
5986
6112
|
created_at?: string;
|
|
5987
6113
|
description?: string | null;
|
|
5988
6114
|
id?: string;
|
|
5989
6115
|
is_active?: boolean;
|
|
6116
|
+
location_id?: string | null;
|
|
5990
6117
|
name: string;
|
|
6118
|
+
partij_nummer?: string | null;
|
|
6119
|
+
photos?: import("../integrations/supabase/types").Json;
|
|
5991
6120
|
produced_stock?: number;
|
|
5992
6121
|
product_code: string;
|
|
5993
6122
|
tenant_id: string;
|
|
6123
|
+
unit?: string;
|
|
5994
6124
|
updated_at?: string;
|
|
5995
6125
|
};
|
|
5996
6126
|
Update: {
|
|
6127
|
+
aantal_te_produceren?: number;
|
|
5997
6128
|
created_at?: string;
|
|
5998
6129
|
description?: string | null;
|
|
5999
6130
|
id?: string;
|
|
6000
6131
|
is_active?: boolean;
|
|
6132
|
+
location_id?: string | null;
|
|
6001
6133
|
name?: string;
|
|
6134
|
+
partij_nummer?: string | null;
|
|
6135
|
+
photos?: import("../integrations/supabase/types").Json;
|
|
6002
6136
|
produced_stock?: number;
|
|
6003
6137
|
product_code?: string;
|
|
6004
6138
|
tenant_id?: string;
|
|
6139
|
+
unit?: string;
|
|
6005
6140
|
updated_at?: string;
|
|
6006
6141
|
};
|
|
6007
|
-
Relationships: [
|
|
6142
|
+
Relationships: [{
|
|
6143
|
+
foreignKeyName: "manufacture_products_location_id_fkey";
|
|
6144
|
+
columns: ["location_id"];
|
|
6145
|
+
isOneToOne: false;
|
|
6146
|
+
referencedRelation: "locations";
|
|
6147
|
+
referencedColumns: ["id"];
|
|
6148
|
+
}];
|
|
6008
6149
|
};
|
|
6009
6150
|
monteurs: {
|
|
6010
6151
|
Row: {
|
|
@@ -6978,6 +7119,105 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6978
7119
|
};
|
|
6979
7120
|
Relationships: [];
|
|
6980
7121
|
};
|
|
7122
|
+
order_shipment_items: {
|
|
7123
|
+
Row: {
|
|
7124
|
+
created_at: string;
|
|
7125
|
+
id: string;
|
|
7126
|
+
order_item_id: string;
|
|
7127
|
+
product_id: string | null;
|
|
7128
|
+
product_name: string;
|
|
7129
|
+
quantity: number;
|
|
7130
|
+
shipment_id: string;
|
|
7131
|
+
updated_at: string;
|
|
7132
|
+
};
|
|
7133
|
+
Insert: {
|
|
7134
|
+
created_at?: string;
|
|
7135
|
+
id?: string;
|
|
7136
|
+
order_item_id: string;
|
|
7137
|
+
product_id?: string | null;
|
|
7138
|
+
product_name: string;
|
|
7139
|
+
quantity: number;
|
|
7140
|
+
shipment_id: string;
|
|
7141
|
+
updated_at?: string;
|
|
7142
|
+
};
|
|
7143
|
+
Update: {
|
|
7144
|
+
created_at?: string;
|
|
7145
|
+
id?: string;
|
|
7146
|
+
order_item_id?: string;
|
|
7147
|
+
product_id?: string | null;
|
|
7148
|
+
product_name?: string;
|
|
7149
|
+
quantity?: number;
|
|
7150
|
+
shipment_id?: string;
|
|
7151
|
+
updated_at?: string;
|
|
7152
|
+
};
|
|
7153
|
+
Relationships: [{
|
|
7154
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
7155
|
+
columns: ["order_item_id"];
|
|
7156
|
+
isOneToOne: false;
|
|
7157
|
+
referencedRelation: "order_items";
|
|
7158
|
+
referencedColumns: ["id"];
|
|
7159
|
+
}, {
|
|
7160
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
7161
|
+
columns: ["shipment_id"];
|
|
7162
|
+
isOneToOne: false;
|
|
7163
|
+
referencedRelation: "order_shipments";
|
|
7164
|
+
referencedColumns: ["id"];
|
|
7165
|
+
}];
|
|
7166
|
+
};
|
|
7167
|
+
order_shipments: {
|
|
7168
|
+
Row: {
|
|
7169
|
+
carrier_id: string | null;
|
|
7170
|
+
created_at: string;
|
|
7171
|
+
delivery_date: string | null;
|
|
7172
|
+
delivery_location_id: string | null;
|
|
7173
|
+
id: string;
|
|
7174
|
+
notes: string | null;
|
|
7175
|
+
order_id: string;
|
|
7176
|
+
shipment_number: number;
|
|
7177
|
+
shipped_at: string | null;
|
|
7178
|
+
status: string;
|
|
7179
|
+
updated_at: string;
|
|
7180
|
+
};
|
|
7181
|
+
Insert: {
|
|
7182
|
+
carrier_id?: string | null;
|
|
7183
|
+
created_at?: string;
|
|
7184
|
+
delivery_date?: string | null;
|
|
7185
|
+
delivery_location_id?: string | null;
|
|
7186
|
+
id?: string;
|
|
7187
|
+
notes?: string | null;
|
|
7188
|
+
order_id: string;
|
|
7189
|
+
shipment_number: number;
|
|
7190
|
+
shipped_at?: string | null;
|
|
7191
|
+
status?: string;
|
|
7192
|
+
updated_at?: string;
|
|
7193
|
+
};
|
|
7194
|
+
Update: {
|
|
7195
|
+
carrier_id?: string | null;
|
|
7196
|
+
created_at?: string;
|
|
7197
|
+
delivery_date?: string | null;
|
|
7198
|
+
delivery_location_id?: string | null;
|
|
7199
|
+
id?: string;
|
|
7200
|
+
notes?: string | null;
|
|
7201
|
+
order_id?: string;
|
|
7202
|
+
shipment_number?: number;
|
|
7203
|
+
shipped_at?: string | null;
|
|
7204
|
+
status?: string;
|
|
7205
|
+
updated_at?: string;
|
|
7206
|
+
};
|
|
7207
|
+
Relationships: [{
|
|
7208
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
7209
|
+
columns: ["carrier_id"];
|
|
7210
|
+
isOneToOne: false;
|
|
7211
|
+
referencedRelation: "carriers";
|
|
7212
|
+
referencedColumns: ["id"];
|
|
7213
|
+
}, {
|
|
7214
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
7215
|
+
columns: ["order_id"];
|
|
7216
|
+
isOneToOne: false;
|
|
7217
|
+
referencedRelation: "orders";
|
|
7218
|
+
referencedColumns: ["id"];
|
|
7219
|
+
}];
|
|
7220
|
+
};
|
|
6981
7221
|
orders: {
|
|
6982
7222
|
Row: {
|
|
6983
7223
|
created_at: string;
|
|
@@ -6985,8 +7225,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6985
7225
|
customer_id: string | null;
|
|
6986
7226
|
customer_name: string;
|
|
6987
7227
|
deleted_at: string | null;
|
|
6988
|
-
delivery_date: string;
|
|
7228
|
+
delivery_date: string | null;
|
|
6989
7229
|
id: string;
|
|
7230
|
+
is_reservation: boolean;
|
|
6990
7231
|
notes: string | null;
|
|
6991
7232
|
order_date: string;
|
|
6992
7233
|
order_number: string;
|
|
@@ -7003,8 +7244,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7003
7244
|
customer_id?: string | null;
|
|
7004
7245
|
customer_name?: string;
|
|
7005
7246
|
deleted_at?: string | null;
|
|
7006
|
-
delivery_date
|
|
7247
|
+
delivery_date?: string | null;
|
|
7007
7248
|
id?: string;
|
|
7249
|
+
is_reservation?: boolean;
|
|
7008
7250
|
notes?: string | null;
|
|
7009
7251
|
order_date?: string;
|
|
7010
7252
|
order_number: string;
|
|
@@ -7021,8 +7263,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7021
7263
|
customer_id?: string | null;
|
|
7022
7264
|
customer_name?: string;
|
|
7023
7265
|
deleted_at?: string | null;
|
|
7024
|
-
delivery_date?: string;
|
|
7266
|
+
delivery_date?: string | null;
|
|
7025
7267
|
id?: string;
|
|
7268
|
+
is_reservation?: boolean;
|
|
7026
7269
|
notes?: string | null;
|
|
7027
7270
|
order_date?: string;
|
|
7028
7271
|
order_number?: string;
|
|
@@ -7164,6 +7407,63 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7164
7407
|
};
|
|
7165
7408
|
Relationships: [];
|
|
7166
7409
|
};
|
|
7410
|
+
product_bom_items: {
|
|
7411
|
+
Row: {
|
|
7412
|
+
component_product_id: string | null;
|
|
7413
|
+
component_trade_item_floriday_id: string | null;
|
|
7414
|
+
created_at: string;
|
|
7415
|
+
id: string;
|
|
7416
|
+
notes: string | null;
|
|
7417
|
+
parent_product_id: string | null;
|
|
7418
|
+
parent_trade_item_floriday_id: string | null;
|
|
7419
|
+
quantity: number;
|
|
7420
|
+
sort_order: number;
|
|
7421
|
+
tenant_id: string;
|
|
7422
|
+
unit: string;
|
|
7423
|
+
updated_at: string;
|
|
7424
|
+
};
|
|
7425
|
+
Insert: {
|
|
7426
|
+
component_product_id?: string | null;
|
|
7427
|
+
component_trade_item_floriday_id?: string | null;
|
|
7428
|
+
created_at?: string;
|
|
7429
|
+
id?: string;
|
|
7430
|
+
notes?: string | null;
|
|
7431
|
+
parent_product_id?: string | null;
|
|
7432
|
+
parent_trade_item_floriday_id?: string | null;
|
|
7433
|
+
quantity?: number;
|
|
7434
|
+
sort_order?: number;
|
|
7435
|
+
tenant_id: string;
|
|
7436
|
+
unit?: string;
|
|
7437
|
+
updated_at?: string;
|
|
7438
|
+
};
|
|
7439
|
+
Update: {
|
|
7440
|
+
component_product_id?: string | null;
|
|
7441
|
+
component_trade_item_floriday_id?: string | null;
|
|
7442
|
+
created_at?: string;
|
|
7443
|
+
id?: string;
|
|
7444
|
+
notes?: string | null;
|
|
7445
|
+
parent_product_id?: string | null;
|
|
7446
|
+
parent_trade_item_floriday_id?: string | null;
|
|
7447
|
+
quantity?: number;
|
|
7448
|
+
sort_order?: number;
|
|
7449
|
+
tenant_id?: string;
|
|
7450
|
+
unit?: string;
|
|
7451
|
+
updated_at?: string;
|
|
7452
|
+
};
|
|
7453
|
+
Relationships: [{
|
|
7454
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
7455
|
+
columns: ["component_product_id"];
|
|
7456
|
+
isOneToOne: false;
|
|
7457
|
+
referencedRelation: "products";
|
|
7458
|
+
referencedColumns: ["id"];
|
|
7459
|
+
}, {
|
|
7460
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
7461
|
+
columns: ["parent_product_id"];
|
|
7462
|
+
isOneToOne: false;
|
|
7463
|
+
referencedRelation: "products";
|
|
7464
|
+
referencedColumns: ["id"];
|
|
7465
|
+
}];
|
|
7466
|
+
};
|
|
7167
7467
|
product_categories: {
|
|
7168
7468
|
Row: {
|
|
7169
7469
|
color: string;
|
|
@@ -7269,6 +7569,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7269
7569
|
id: string;
|
|
7270
7570
|
product_group_id: string;
|
|
7271
7571
|
quantity: number;
|
|
7572
|
+
sort_order: number;
|
|
7272
7573
|
trade_item_id: string;
|
|
7273
7574
|
};
|
|
7274
7575
|
Insert: {
|
|
@@ -7276,6 +7577,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7276
7577
|
id?: string;
|
|
7277
7578
|
product_group_id: string;
|
|
7278
7579
|
quantity?: number;
|
|
7580
|
+
sort_order?: number;
|
|
7279
7581
|
trade_item_id: string;
|
|
7280
7582
|
};
|
|
7281
7583
|
Update: {
|
|
@@ -7283,6 +7585,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7283
7585
|
id?: string;
|
|
7284
7586
|
product_group_id?: string;
|
|
7285
7587
|
quantity?: number;
|
|
7588
|
+
sort_order?: number;
|
|
7286
7589
|
trade_item_id?: string;
|
|
7287
7590
|
};
|
|
7288
7591
|
Relationships: [{
|
|
@@ -7297,6 +7600,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7297
7600
|
Row: {
|
|
7298
7601
|
created_at: string;
|
|
7299
7602
|
description: string | null;
|
|
7603
|
+
head_product_id: string | null;
|
|
7604
|
+
head_trade_item_floriday_id: string | null;
|
|
7300
7605
|
id: string;
|
|
7301
7606
|
is_active: boolean;
|
|
7302
7607
|
name: string;
|
|
@@ -7306,6 +7611,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7306
7611
|
Insert: {
|
|
7307
7612
|
created_at?: string;
|
|
7308
7613
|
description?: string | null;
|
|
7614
|
+
head_product_id?: string | null;
|
|
7615
|
+
head_trade_item_floriday_id?: string | null;
|
|
7309
7616
|
id?: string;
|
|
7310
7617
|
is_active?: boolean;
|
|
7311
7618
|
name: string;
|
|
@@ -7315,16 +7622,85 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7315
7622
|
Update: {
|
|
7316
7623
|
created_at?: string;
|
|
7317
7624
|
description?: string | null;
|
|
7625
|
+
head_product_id?: string | null;
|
|
7626
|
+
head_trade_item_floriday_id?: string | null;
|
|
7318
7627
|
id?: string;
|
|
7319
7628
|
is_active?: boolean;
|
|
7320
7629
|
name?: string;
|
|
7321
7630
|
tenant_id?: string;
|
|
7322
7631
|
updated_at?: string;
|
|
7323
7632
|
};
|
|
7324
|
-
Relationships: [
|
|
7633
|
+
Relationships: [{
|
|
7634
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
7635
|
+
columns: ["head_product_id"];
|
|
7636
|
+
isOneToOne: false;
|
|
7637
|
+
referencedRelation: "products";
|
|
7638
|
+
referencedColumns: ["id"];
|
|
7639
|
+
}];
|
|
7640
|
+
};
|
|
7641
|
+
product_load_settings: {
|
|
7642
|
+
Row: {
|
|
7643
|
+
created_at: string;
|
|
7644
|
+
id: string;
|
|
7645
|
+
is_package: boolean;
|
|
7646
|
+
layers_per_load_carrier: number | null;
|
|
7647
|
+
load_carrier: string | null;
|
|
7648
|
+
package_id: string | null;
|
|
7649
|
+
package_label: string | null;
|
|
7650
|
+
packages_per_layer: number | null;
|
|
7651
|
+
product_id: string | null;
|
|
7652
|
+
tenant_id: string;
|
|
7653
|
+
trade_item_floriday_id: string | null;
|
|
7654
|
+
units_per_package: number | null;
|
|
7655
|
+
updated_at: string;
|
|
7656
|
+
};
|
|
7657
|
+
Insert: {
|
|
7658
|
+
created_at?: string;
|
|
7659
|
+
id?: string;
|
|
7660
|
+
is_package?: boolean;
|
|
7661
|
+
layers_per_load_carrier?: number | null;
|
|
7662
|
+
load_carrier?: string | null;
|
|
7663
|
+
package_id?: string | null;
|
|
7664
|
+
package_label?: string | null;
|
|
7665
|
+
packages_per_layer?: number | null;
|
|
7666
|
+
product_id?: string | null;
|
|
7667
|
+
tenant_id: string;
|
|
7668
|
+
trade_item_floriday_id?: string | null;
|
|
7669
|
+
units_per_package?: number | null;
|
|
7670
|
+
updated_at?: string;
|
|
7671
|
+
};
|
|
7672
|
+
Update: {
|
|
7673
|
+
created_at?: string;
|
|
7674
|
+
id?: string;
|
|
7675
|
+
is_package?: boolean;
|
|
7676
|
+
layers_per_load_carrier?: number | null;
|
|
7677
|
+
load_carrier?: string | null;
|
|
7678
|
+
package_id?: string | null;
|
|
7679
|
+
package_label?: string | null;
|
|
7680
|
+
packages_per_layer?: number | null;
|
|
7681
|
+
product_id?: string | null;
|
|
7682
|
+
tenant_id?: string;
|
|
7683
|
+
trade_item_floriday_id?: string | null;
|
|
7684
|
+
units_per_package?: number | null;
|
|
7685
|
+
updated_at?: string;
|
|
7686
|
+
};
|
|
7687
|
+
Relationships: [{
|
|
7688
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
7689
|
+
columns: ["package_id"];
|
|
7690
|
+
isOneToOne: false;
|
|
7691
|
+
referencedRelation: "packages";
|
|
7692
|
+
referencedColumns: ["id"];
|
|
7693
|
+
}, {
|
|
7694
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
7695
|
+
columns: ["product_id"];
|
|
7696
|
+
isOneToOne: false;
|
|
7697
|
+
referencedRelation: "products";
|
|
7698
|
+
referencedColumns: ["id"];
|
|
7699
|
+
}];
|
|
7325
7700
|
};
|
|
7326
7701
|
products: {
|
|
7327
7702
|
Row: {
|
|
7703
|
+
article_number: string | null;
|
|
7328
7704
|
barcode: string | null;
|
|
7329
7705
|
batch: string;
|
|
7330
7706
|
crates_per_layer: number;
|
|
@@ -7348,6 +7724,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7348
7724
|
weight: string | null;
|
|
7349
7725
|
};
|
|
7350
7726
|
Insert: {
|
|
7727
|
+
article_number?: string | null;
|
|
7351
7728
|
barcode?: string | null;
|
|
7352
7729
|
batch: string;
|
|
7353
7730
|
crates_per_layer?: number;
|
|
@@ -7371,6 +7748,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7371
7748
|
weight?: string | null;
|
|
7372
7749
|
};
|
|
7373
7750
|
Update: {
|
|
7751
|
+
article_number?: string | null;
|
|
7374
7752
|
barcode?: string | null;
|
|
7375
7753
|
batch?: string;
|
|
7376
7754
|
crates_per_layer?: number;
|
|
@@ -8284,8 +8662,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8284
8662
|
order_id: string | null;
|
|
8285
8663
|
order_item_id: string | null;
|
|
8286
8664
|
order_source: string | null;
|
|
8665
|
+
parent_trade_item_key: string | null;
|
|
8287
8666
|
physical_after: number | null;
|
|
8288
8667
|
physical_before: number | null;
|
|
8668
|
+
production_batch_id: string | null;
|
|
8289
8669
|
qty_delta: number;
|
|
8290
8670
|
reason: string | null;
|
|
8291
8671
|
reserved_after: number | null;
|
|
@@ -8301,8 +8681,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8301
8681
|
order_id?: string | null;
|
|
8302
8682
|
order_item_id?: string | null;
|
|
8303
8683
|
order_source?: string | null;
|
|
8684
|
+
parent_trade_item_key?: string | null;
|
|
8304
8685
|
physical_after?: number | null;
|
|
8305
8686
|
physical_before?: number | null;
|
|
8687
|
+
production_batch_id?: string | null;
|
|
8306
8688
|
qty_delta: number;
|
|
8307
8689
|
reason?: string | null;
|
|
8308
8690
|
reserved_after?: number | null;
|
|
@@ -8318,8 +8700,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8318
8700
|
order_id?: string | null;
|
|
8319
8701
|
order_item_id?: string | null;
|
|
8320
8702
|
order_source?: string | null;
|
|
8703
|
+
parent_trade_item_key?: string | null;
|
|
8321
8704
|
physical_after?: number | null;
|
|
8322
8705
|
physical_before?: number | null;
|
|
8706
|
+
production_batch_id?: string | null;
|
|
8323
8707
|
qty_delta?: number;
|
|
8324
8708
|
reason?: string | null;
|
|
8325
8709
|
reserved_after?: number | null;
|
|
@@ -8778,7 +9162,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8778
9162
|
twinfield_connections: {
|
|
8779
9163
|
Row: {
|
|
8780
9164
|
access_token: string | null;
|
|
8781
|
-
client_id: string;
|
|
9165
|
+
client_id: string | null;
|
|
8782
9166
|
client_secret: string | null;
|
|
8783
9167
|
cluster_uri: string | null;
|
|
8784
9168
|
company_code: string | null;
|
|
@@ -8790,7 +9174,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8790
9174
|
is_active: boolean;
|
|
8791
9175
|
label: string | null;
|
|
8792
9176
|
office_code: string | null;
|
|
8793
|
-
redirect_uri: string;
|
|
9177
|
+
redirect_uri: string | null;
|
|
8794
9178
|
refresh_token: string | null;
|
|
8795
9179
|
token_expires_at: string | null;
|
|
8796
9180
|
updated_at: string;
|
|
@@ -8798,7 +9182,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8798
9182
|
};
|
|
8799
9183
|
Insert: {
|
|
8800
9184
|
access_token?: string | null;
|
|
8801
|
-
client_id
|
|
9185
|
+
client_id?: string | null;
|
|
8802
9186
|
client_secret?: string | null;
|
|
8803
9187
|
cluster_uri?: string | null;
|
|
8804
9188
|
company_code?: string | null;
|
|
@@ -8810,7 +9194,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8810
9194
|
is_active?: boolean;
|
|
8811
9195
|
label?: string | null;
|
|
8812
9196
|
office_code?: string | null;
|
|
8813
|
-
redirect_uri
|
|
9197
|
+
redirect_uri?: string | null;
|
|
8814
9198
|
refresh_token?: string | null;
|
|
8815
9199
|
token_expires_at?: string | null;
|
|
8816
9200
|
updated_at?: string;
|
|
@@ -8818,7 +9202,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8818
9202
|
};
|
|
8819
9203
|
Update: {
|
|
8820
9204
|
access_token?: string | null;
|
|
8821
|
-
client_id?: string;
|
|
9205
|
+
client_id?: string | null;
|
|
8822
9206
|
client_secret?: string | null;
|
|
8823
9207
|
cluster_uri?: string | null;
|
|
8824
9208
|
company_code?: string | null;
|
|
@@ -8830,7 +9214,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8830
9214
|
is_active?: boolean;
|
|
8831
9215
|
label?: string | null;
|
|
8832
9216
|
office_code?: string | null;
|
|
8833
|
-
redirect_uri?: string;
|
|
9217
|
+
redirect_uri?: string | null;
|
|
8834
9218
|
refresh_token?: string | null;
|
|
8835
9219
|
token_expires_at?: string | null;
|
|
8836
9220
|
updated_at?: string;
|
|
@@ -10025,25 +10409,6 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10025
10409
|
};
|
|
10026
10410
|
Relationships: [];
|
|
10027
10411
|
};
|
|
10028
|
-
floriday_customer_discounts: {
|
|
10029
|
-
Row: {
|
|
10030
|
-
base_price: number | null;
|
|
10031
|
-
buyer_organization_id: string | null;
|
|
10032
|
-
currency: string | null;
|
|
10033
|
-
discount_type: string | null;
|
|
10034
|
-
discount_value: number | null;
|
|
10035
|
-
min_quantity: number | null;
|
|
10036
|
-
net_price: number | null;
|
|
10037
|
-
product_group_id: string | null;
|
|
10038
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
10039
|
-
source: string | null;
|
|
10040
|
-
source_id: string | null;
|
|
10041
|
-
trade_item_id: string | null;
|
|
10042
|
-
valid_from: string | null;
|
|
10043
|
-
valid_until: string | null;
|
|
10044
|
-
};
|
|
10045
|
-
Relationships: [];
|
|
10046
|
-
};
|
|
10047
10412
|
local_customer_discounts: {
|
|
10048
10413
|
Row: {
|
|
10049
10414
|
base_price: number | null;
|
|
@@ -10462,6 +10827,28 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10462
10827
|
Args: never;
|
|
10463
10828
|
Returns: undefined;
|
|
10464
10829
|
};
|
|
10830
|
+
consume_bom_for_production: {
|
|
10831
|
+
Args: {
|
|
10832
|
+
p_connection_id: string;
|
|
10833
|
+
p_parent_id: string;
|
|
10834
|
+
p_parent_key: string;
|
|
10835
|
+
p_parent_kind: string;
|
|
10836
|
+
p_quantity: number;
|
|
10837
|
+
p_user_id: string;
|
|
10838
|
+
};
|
|
10839
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10840
|
+
} | {
|
|
10841
|
+
Args: {
|
|
10842
|
+
p_batch_id?: string;
|
|
10843
|
+
p_connection_id: string;
|
|
10844
|
+
p_parent_id: string;
|
|
10845
|
+
p_parent_key: string;
|
|
10846
|
+
p_parent_kind: string;
|
|
10847
|
+
p_quantity: number;
|
|
10848
|
+
p_user_id: string;
|
|
10849
|
+
};
|
|
10850
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10851
|
+
};
|
|
10465
10852
|
consume_floriday_rate_limit: {
|
|
10466
10853
|
Args: {
|
|
10467
10854
|
p_bucket: string;
|
|
@@ -10513,6 +10900,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10513
10900
|
table_name: string;
|
|
10514
10901
|
}[];
|
|
10515
10902
|
};
|
|
10903
|
+
delete_samenstelling: {
|
|
10904
|
+
Args: {
|
|
10905
|
+
p_parent_id: string;
|
|
10906
|
+
p_parent_kind: string;
|
|
10907
|
+
};
|
|
10908
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10909
|
+
};
|
|
10516
10910
|
dispatch_carrier_signups_sql: {
|
|
10517
10911
|
Args: {
|
|
10518
10912
|
_catchup?: string;
|
|
@@ -10673,19 +11067,6 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10673
11067
|
resource: string;
|
|
10674
11068
|
}[];
|
|
10675
11069
|
};
|
|
10676
|
-
get_floriday_agreements_active: {
|
|
10677
|
-
Args: {
|
|
10678
|
-
p_on_date?: string;
|
|
10679
|
-
};
|
|
10680
|
-
Returns: {
|
|
10681
|
-
buyer_organization_id: string;
|
|
10682
|
-
data: import("../integrations/supabase/types").Json;
|
|
10683
|
-
floriday_id: string;
|
|
10684
|
-
status: string;
|
|
10685
|
-
valid_from: string;
|
|
10686
|
-
valid_until: string;
|
|
10687
|
-
}[];
|
|
10688
|
-
};
|
|
10689
11070
|
get_floriday_clock_supplies_window: {
|
|
10690
11071
|
Args: {
|
|
10691
11072
|
p_from: string;
|
|
@@ -10758,6 +11139,21 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10758
11139
|
minutes_since_success: number;
|
|
10759
11140
|
}[];
|
|
10760
11141
|
};
|
|
11142
|
+
get_group_allocation_keys: {
|
|
11143
|
+
Args: {
|
|
11144
|
+
p_product_id: string;
|
|
11145
|
+
};
|
|
11146
|
+
Returns: {
|
|
11147
|
+
k: string;
|
|
11148
|
+
ord: number;
|
|
11149
|
+
}[];
|
|
11150
|
+
};
|
|
11151
|
+
get_group_head_key: {
|
|
11152
|
+
Args: {
|
|
11153
|
+
p_group_id: string;
|
|
11154
|
+
};
|
|
11155
|
+
Returns: string;
|
|
11156
|
+
};
|
|
10761
11157
|
get_offer_by_link_code: {
|
|
10762
11158
|
Args: {
|
|
10763
11159
|
p_code: string;
|
|
@@ -10868,6 +11264,18 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10868
11264
|
};
|
|
10869
11265
|
Returns: undefined;
|
|
10870
11266
|
};
|
|
11267
|
+
mark_shipment_shipped: {
|
|
11268
|
+
Args: {
|
|
11269
|
+
p_shipment_id: string;
|
|
11270
|
+
};
|
|
11271
|
+
Returns: undefined;
|
|
11272
|
+
};
|
|
11273
|
+
next_manufacture_partij: {
|
|
11274
|
+
Args: {
|
|
11275
|
+
_tenant_id: string;
|
|
11276
|
+
};
|
|
11277
|
+
Returns: string;
|
|
11278
|
+
};
|
|
10871
11279
|
next_order_number: {
|
|
10872
11280
|
Args: {
|
|
10873
11281
|
p_prefix: string;
|
|
@@ -10946,6 +11354,14 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10946
11354
|
};
|
|
10947
11355
|
Returns: undefined;
|
|
10948
11356
|
};
|
|
11357
|
+
produce_designed_product: {
|
|
11358
|
+
Args: {
|
|
11359
|
+
p_parent_id: string;
|
|
11360
|
+
p_parent_kind: string;
|
|
11361
|
+
p_quantity: number;
|
|
11362
|
+
};
|
|
11363
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11364
|
+
};
|
|
10949
11365
|
promote_trade_item_key: {
|
|
10950
11366
|
Args: {
|
|
10951
11367
|
p_new: string;
|
|
@@ -10953,6 +11369,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
10953
11369
|
};
|
|
10954
11370
|
Returns: undefined;
|
|
10955
11371
|
};
|
|
11372
|
+
recompute_all_reserved_stock: {
|
|
11373
|
+
Args: never;
|
|
11374
|
+
Returns: undefined;
|
|
11375
|
+
};
|
|
10956
11376
|
recompute_order_status: {
|
|
10957
11377
|
Args: {
|
|
10958
11378
|
p_order_id: string;
|
|
@@ -11002,27 +11422,45 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
11002
11422
|
};
|
|
11003
11423
|
Returns: undefined;
|
|
11004
11424
|
};
|
|
11425
|
+
resolve_group_allocation: {
|
|
11426
|
+
Args: {
|
|
11427
|
+
_needed: number;
|
|
11428
|
+
_product_group_id: string;
|
|
11429
|
+
};
|
|
11430
|
+
Returns: {
|
|
11431
|
+
allocated: number;
|
|
11432
|
+
trade_item_id: string;
|
|
11433
|
+
}[];
|
|
11434
|
+
};
|
|
11435
|
+
resolve_group_member_stock_key: {
|
|
11436
|
+
Args: {
|
|
11437
|
+
p_trade_item_id: string;
|
|
11438
|
+
};
|
|
11439
|
+
Returns: string;
|
|
11440
|
+
};
|
|
11005
11441
|
resolve_product_id_for_item: {
|
|
11006
11442
|
Args: {
|
|
11007
11443
|
p_product_name: string;
|
|
11008
11444
|
};
|
|
11009
11445
|
Returns: string;
|
|
11010
11446
|
};
|
|
11011
|
-
|
|
11447
|
+
resolve_stock_trade_item_key: {
|
|
11012
11448
|
Args: {
|
|
11013
|
-
|
|
11014
|
-
p_url: string;
|
|
11449
|
+
p_product_id: string;
|
|
11015
11450
|
};
|
|
11016
|
-
Returns:
|
|
11451
|
+
Returns: string;
|
|
11017
11452
|
};
|
|
11018
|
-
|
|
11453
|
+
reverse_production: {
|
|
11019
11454
|
Args: {
|
|
11020
|
-
|
|
11021
|
-
|
|
11455
|
+
p_connection_id?: string;
|
|
11456
|
+
p_parent_key: string;
|
|
11457
|
+
p_quantity: number;
|
|
11458
|
+
p_reason?: string;
|
|
11459
|
+
p_user_id?: string;
|
|
11022
11460
|
};
|
|
11023
|
-
Returns:
|
|
11461
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11024
11462
|
};
|
|
11025
|
-
|
|
11463
|
+
schedule_floriday_additional_services_sync: {
|
|
11026
11464
|
Args: {
|
|
11027
11465
|
p_apikey: string;
|
|
11028
11466
|
p_url: string;
|
|
@@ -11586,6 +12024,165 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
11586
12024
|
};
|
|
11587
12025
|
Relationships: [];
|
|
11588
12026
|
};
|
|
12027
|
+
ai_credentials: {
|
|
12028
|
+
Row: {
|
|
12029
|
+
active: boolean;
|
|
12030
|
+
api_key: string;
|
|
12031
|
+
created_at: string;
|
|
12032
|
+
created_by: string | null;
|
|
12033
|
+
id: string;
|
|
12034
|
+
label: string;
|
|
12035
|
+
provider_id: string;
|
|
12036
|
+
updated_at: string;
|
|
12037
|
+
};
|
|
12038
|
+
Insert: {
|
|
12039
|
+
active?: boolean;
|
|
12040
|
+
api_key: string;
|
|
12041
|
+
created_at?: string;
|
|
12042
|
+
created_by?: string | null;
|
|
12043
|
+
id?: string;
|
|
12044
|
+
label: string;
|
|
12045
|
+
provider_id: string;
|
|
12046
|
+
updated_at?: string;
|
|
12047
|
+
};
|
|
12048
|
+
Update: {
|
|
12049
|
+
active?: boolean;
|
|
12050
|
+
api_key?: string;
|
|
12051
|
+
created_at?: string;
|
|
12052
|
+
created_by?: string | null;
|
|
12053
|
+
id?: string;
|
|
12054
|
+
label?: string;
|
|
12055
|
+
provider_id?: string;
|
|
12056
|
+
updated_at?: string;
|
|
12057
|
+
};
|
|
12058
|
+
Relationships: [{
|
|
12059
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
12060
|
+
columns: ["provider_id"];
|
|
12061
|
+
isOneToOne: false;
|
|
12062
|
+
referencedRelation: "ai_providers";
|
|
12063
|
+
referencedColumns: ["id"];
|
|
12064
|
+
}];
|
|
12065
|
+
};
|
|
12066
|
+
ai_models: {
|
|
12067
|
+
Row: {
|
|
12068
|
+
active: boolean;
|
|
12069
|
+
context_window: number | null;
|
|
12070
|
+
created_at: string;
|
|
12071
|
+
display_name: string;
|
|
12072
|
+
id: string;
|
|
12073
|
+
is_default: boolean;
|
|
12074
|
+
modality: string;
|
|
12075
|
+
provider_id: string;
|
|
12076
|
+
slug: string;
|
|
12077
|
+
updated_at: string;
|
|
12078
|
+
};
|
|
12079
|
+
Insert: {
|
|
12080
|
+
active?: boolean;
|
|
12081
|
+
context_window?: number | null;
|
|
12082
|
+
created_at?: string;
|
|
12083
|
+
display_name: string;
|
|
12084
|
+
id?: string;
|
|
12085
|
+
is_default?: boolean;
|
|
12086
|
+
modality?: string;
|
|
12087
|
+
provider_id: string;
|
|
12088
|
+
slug: string;
|
|
12089
|
+
updated_at?: string;
|
|
12090
|
+
};
|
|
12091
|
+
Update: {
|
|
12092
|
+
active?: boolean;
|
|
12093
|
+
context_window?: number | null;
|
|
12094
|
+
created_at?: string;
|
|
12095
|
+
display_name?: string;
|
|
12096
|
+
id?: string;
|
|
12097
|
+
is_default?: boolean;
|
|
12098
|
+
modality?: string;
|
|
12099
|
+
provider_id?: string;
|
|
12100
|
+
slug?: string;
|
|
12101
|
+
updated_at?: string;
|
|
12102
|
+
};
|
|
12103
|
+
Relationships: [{
|
|
12104
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
12105
|
+
columns: ["provider_id"];
|
|
12106
|
+
isOneToOne: false;
|
|
12107
|
+
referencedRelation: "ai_providers";
|
|
12108
|
+
referencedColumns: ["id"];
|
|
12109
|
+
}];
|
|
12110
|
+
};
|
|
12111
|
+
ai_module_bindings: {
|
|
12112
|
+
Row: {
|
|
12113
|
+
consumer_module_id: string;
|
|
12114
|
+
created_at: string;
|
|
12115
|
+
credential_id: string;
|
|
12116
|
+
id: string;
|
|
12117
|
+
model_id: string;
|
|
12118
|
+
notes: string | null;
|
|
12119
|
+
updated_at: string;
|
|
12120
|
+
};
|
|
12121
|
+
Insert: {
|
|
12122
|
+
consumer_module_id: string;
|
|
12123
|
+
created_at?: string;
|
|
12124
|
+
credential_id: string;
|
|
12125
|
+
id?: string;
|
|
12126
|
+
model_id: string;
|
|
12127
|
+
notes?: string | null;
|
|
12128
|
+
updated_at?: string;
|
|
12129
|
+
};
|
|
12130
|
+
Update: {
|
|
12131
|
+
consumer_module_id?: string;
|
|
12132
|
+
created_at?: string;
|
|
12133
|
+
credential_id?: string;
|
|
12134
|
+
id?: string;
|
|
12135
|
+
model_id?: string;
|
|
12136
|
+
notes?: string | null;
|
|
12137
|
+
updated_at?: string;
|
|
12138
|
+
};
|
|
12139
|
+
Relationships: [{
|
|
12140
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
12141
|
+
columns: ["credential_id"];
|
|
12142
|
+
isOneToOne: false;
|
|
12143
|
+
referencedRelation: "ai_credentials";
|
|
12144
|
+
referencedColumns: ["id"];
|
|
12145
|
+
}, {
|
|
12146
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
12147
|
+
columns: ["model_id"];
|
|
12148
|
+
isOneToOne: false;
|
|
12149
|
+
referencedRelation: "ai_models";
|
|
12150
|
+
referencedColumns: ["id"];
|
|
12151
|
+
}];
|
|
12152
|
+
};
|
|
12153
|
+
ai_providers: {
|
|
12154
|
+
Row: {
|
|
12155
|
+
active: boolean;
|
|
12156
|
+
auth_type: string;
|
|
12157
|
+
base_url: string | null;
|
|
12158
|
+
created_at: string;
|
|
12159
|
+
id: string;
|
|
12160
|
+
name: string;
|
|
12161
|
+
slug: string;
|
|
12162
|
+
updated_at: string;
|
|
12163
|
+
};
|
|
12164
|
+
Insert: {
|
|
12165
|
+
active?: boolean;
|
|
12166
|
+
auth_type?: string;
|
|
12167
|
+
base_url?: string | null;
|
|
12168
|
+
created_at?: string;
|
|
12169
|
+
id?: string;
|
|
12170
|
+
name: string;
|
|
12171
|
+
slug: string;
|
|
12172
|
+
updated_at?: string;
|
|
12173
|
+
};
|
|
12174
|
+
Update: {
|
|
12175
|
+
active?: boolean;
|
|
12176
|
+
auth_type?: string;
|
|
12177
|
+
base_url?: string | null;
|
|
12178
|
+
created_at?: string;
|
|
12179
|
+
id?: string;
|
|
12180
|
+
name?: string;
|
|
12181
|
+
slug?: string;
|
|
12182
|
+
updated_at?: string;
|
|
12183
|
+
};
|
|
12184
|
+
Relationships: [];
|
|
12185
|
+
};
|
|
11589
12186
|
app_settings: {
|
|
11590
12187
|
Row: {
|
|
11591
12188
|
created_at: string;
|
|
@@ -14592,105 +15189,6 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
14592
15189
|
referencedColumns: ["id"];
|
|
14593
15190
|
}];
|
|
14594
15191
|
};
|
|
14595
|
-
floriday_agreement_calloffs_cache: {
|
|
14596
|
-
Row: {
|
|
14597
|
-
agreement_id: string | null;
|
|
14598
|
-
connection_id: string;
|
|
14599
|
-
data: import("../integrations/supabase/types").Json;
|
|
14600
|
-
delivery_date: string | null;
|
|
14601
|
-
fetched_at: string;
|
|
14602
|
-
floriday_id: string;
|
|
14603
|
-
id: string;
|
|
14604
|
-
is_deleted: boolean;
|
|
14605
|
-
sequence_number: number;
|
|
14606
|
-
status: string | null;
|
|
14607
|
-
updated_at: string;
|
|
14608
|
-
};
|
|
14609
|
-
Insert: {
|
|
14610
|
-
agreement_id?: string | null;
|
|
14611
|
-
connection_id: string;
|
|
14612
|
-
data?: import("../integrations/supabase/types").Json;
|
|
14613
|
-
delivery_date?: string | null;
|
|
14614
|
-
fetched_at?: string;
|
|
14615
|
-
floriday_id: string;
|
|
14616
|
-
id?: string;
|
|
14617
|
-
is_deleted?: boolean;
|
|
14618
|
-
sequence_number?: number;
|
|
14619
|
-
status?: string | null;
|
|
14620
|
-
updated_at?: string;
|
|
14621
|
-
};
|
|
14622
|
-
Update: {
|
|
14623
|
-
agreement_id?: string | null;
|
|
14624
|
-
connection_id?: string;
|
|
14625
|
-
data?: import("../integrations/supabase/types").Json;
|
|
14626
|
-
delivery_date?: string | null;
|
|
14627
|
-
fetched_at?: string;
|
|
14628
|
-
floriday_id?: string;
|
|
14629
|
-
id?: string;
|
|
14630
|
-
is_deleted?: boolean;
|
|
14631
|
-
sequence_number?: number;
|
|
14632
|
-
status?: string | null;
|
|
14633
|
-
updated_at?: string;
|
|
14634
|
-
};
|
|
14635
|
-
Relationships: [{
|
|
14636
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
14637
|
-
columns: ["connection_id"];
|
|
14638
|
-
isOneToOne: false;
|
|
14639
|
-
referencedRelation: "floriday_connections";
|
|
14640
|
-
referencedColumns: ["id"];
|
|
14641
|
-
}];
|
|
14642
|
-
};
|
|
14643
|
-
floriday_agreements_cache: {
|
|
14644
|
-
Row: {
|
|
14645
|
-
buyer_organization_id: string | null;
|
|
14646
|
-
connection_id: string;
|
|
14647
|
-
data: import("../integrations/supabase/types").Json;
|
|
14648
|
-
fetched_at: string;
|
|
14649
|
-
floriday_id: string;
|
|
14650
|
-
id: string;
|
|
14651
|
-
is_deleted: boolean;
|
|
14652
|
-
sequence_number: number;
|
|
14653
|
-
status: string | null;
|
|
14654
|
-
updated_at: string;
|
|
14655
|
-
valid_from: string | null;
|
|
14656
|
-
valid_until: string | null;
|
|
14657
|
-
};
|
|
14658
|
-
Insert: {
|
|
14659
|
-
buyer_organization_id?: string | null;
|
|
14660
|
-
connection_id: string;
|
|
14661
|
-
data?: import("../integrations/supabase/types").Json;
|
|
14662
|
-
fetched_at?: string;
|
|
14663
|
-
floriday_id: string;
|
|
14664
|
-
id?: string;
|
|
14665
|
-
is_deleted?: boolean;
|
|
14666
|
-
sequence_number?: number;
|
|
14667
|
-
status?: string | null;
|
|
14668
|
-
updated_at?: string;
|
|
14669
|
-
valid_from?: string | null;
|
|
14670
|
-
valid_until?: string | null;
|
|
14671
|
-
};
|
|
14672
|
-
Update: {
|
|
14673
|
-
buyer_organization_id?: string | null;
|
|
14674
|
-
connection_id?: string;
|
|
14675
|
-
data?: import("../integrations/supabase/types").Json;
|
|
14676
|
-
fetched_at?: string;
|
|
14677
|
-
floriday_id?: string;
|
|
14678
|
-
id?: string;
|
|
14679
|
-
is_deleted?: boolean;
|
|
14680
|
-
sequence_number?: number;
|
|
14681
|
-
status?: string | null;
|
|
14682
|
-
updated_at?: string;
|
|
14683
|
-
valid_from?: string | null;
|
|
14684
|
-
valid_until?: string | null;
|
|
14685
|
-
};
|
|
14686
|
-
Relationships: [{
|
|
14687
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
14688
|
-
columns: ["connection_id"];
|
|
14689
|
-
isOneToOne: false;
|
|
14690
|
-
referencedRelation: "floriday_connections";
|
|
14691
|
-
referencedColumns: ["id"];
|
|
14692
|
-
}];
|
|
14693
|
-
};
|
|
14694
15192
|
floriday_auction_letters_cache: {
|
|
14695
15193
|
Row: {
|
|
14696
15194
|
auction_letter_code: string;
|
|
@@ -15189,6 +15687,27 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
15189
15687
|
referencedColumns: ["id"];
|
|
15190
15688
|
}];
|
|
15191
15689
|
};
|
|
15690
|
+
floriday_continuous_stock_cache: {
|
|
15691
|
+
Row: {
|
|
15692
|
+
connection_id: string;
|
|
15693
|
+
fetched_at: string;
|
|
15694
|
+
number_of_pieces: number;
|
|
15695
|
+
trade_item_id: string;
|
|
15696
|
+
};
|
|
15697
|
+
Insert: {
|
|
15698
|
+
connection_id: string;
|
|
15699
|
+
fetched_at?: string;
|
|
15700
|
+
number_of_pieces?: number;
|
|
15701
|
+
trade_item_id: string;
|
|
15702
|
+
};
|
|
15703
|
+
Update: {
|
|
15704
|
+
connection_id?: string;
|
|
15705
|
+
fetched_at?: string;
|
|
15706
|
+
number_of_pieces?: number;
|
|
15707
|
+
trade_item_id?: string;
|
|
15708
|
+
};
|
|
15709
|
+
Relationships: [];
|
|
15710
|
+
};
|
|
15192
15711
|
floriday_continuous_stock_queue: {
|
|
15193
15712
|
Row: {
|
|
15194
15713
|
attempts: number;
|
|
@@ -16167,6 +16686,45 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16167
16686
|
referencedColumns: ["id"];
|
|
16168
16687
|
}];
|
|
16169
16688
|
};
|
|
16689
|
+
floriday_trade_settings_customers_cache: {
|
|
16690
|
+
Row: {
|
|
16691
|
+
connection_id: string;
|
|
16692
|
+
data: import("../integrations/supabase/types").Json;
|
|
16693
|
+
fetched_at: string;
|
|
16694
|
+
floriday_id: string;
|
|
16695
|
+
id: string;
|
|
16696
|
+
is_deleted: boolean;
|
|
16697
|
+
sequence_number: number;
|
|
16698
|
+
updated_at: string;
|
|
16699
|
+
};
|
|
16700
|
+
Insert: {
|
|
16701
|
+
connection_id: string;
|
|
16702
|
+
data: import("../integrations/supabase/types").Json;
|
|
16703
|
+
fetched_at?: string;
|
|
16704
|
+
floriday_id: string;
|
|
16705
|
+
id?: string;
|
|
16706
|
+
is_deleted?: boolean;
|
|
16707
|
+
sequence_number?: number;
|
|
16708
|
+
updated_at?: string;
|
|
16709
|
+
};
|
|
16710
|
+
Update: {
|
|
16711
|
+
connection_id?: string;
|
|
16712
|
+
data?: import("../integrations/supabase/types").Json;
|
|
16713
|
+
fetched_at?: string;
|
|
16714
|
+
floriday_id?: string;
|
|
16715
|
+
id?: string;
|
|
16716
|
+
is_deleted?: boolean;
|
|
16717
|
+
sequence_number?: number;
|
|
16718
|
+
updated_at?: string;
|
|
16719
|
+
};
|
|
16720
|
+
Relationships: [{
|
|
16721
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
16722
|
+
columns: ["connection_id"];
|
|
16723
|
+
isOneToOne: false;
|
|
16724
|
+
referencedRelation: "floriday_connections";
|
|
16725
|
+
referencedColumns: ["id"];
|
|
16726
|
+
}];
|
|
16727
|
+
};
|
|
16170
16728
|
floriday_trips_cache: {
|
|
16171
16729
|
Row: {
|
|
16172
16730
|
carrier_organization_id: string | null;
|
|
@@ -17312,39 +17870,60 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17312
17870
|
};
|
|
17313
17871
|
manufacture_products: {
|
|
17314
17872
|
Row: {
|
|
17873
|
+
aantal_te_produceren: number;
|
|
17315
17874
|
created_at: string;
|
|
17316
17875
|
description: string | null;
|
|
17317
17876
|
id: string;
|
|
17318
17877
|
is_active: boolean;
|
|
17878
|
+
location_id: string | null;
|
|
17319
17879
|
name: string;
|
|
17880
|
+
partij_nummer: string | null;
|
|
17881
|
+
photos: import("../integrations/supabase/types").Json;
|
|
17320
17882
|
produced_stock: number;
|
|
17321
17883
|
product_code: string;
|
|
17322
17884
|
tenant_id: string;
|
|
17885
|
+
unit: string;
|
|
17323
17886
|
updated_at: string;
|
|
17324
17887
|
};
|
|
17325
17888
|
Insert: {
|
|
17889
|
+
aantal_te_produceren?: number;
|
|
17326
17890
|
created_at?: string;
|
|
17327
17891
|
description?: string | null;
|
|
17328
17892
|
id?: string;
|
|
17329
17893
|
is_active?: boolean;
|
|
17894
|
+
location_id?: string | null;
|
|
17330
17895
|
name: string;
|
|
17896
|
+
partij_nummer?: string | null;
|
|
17897
|
+
photos?: import("../integrations/supabase/types").Json;
|
|
17331
17898
|
produced_stock?: number;
|
|
17332
17899
|
product_code: string;
|
|
17333
17900
|
tenant_id: string;
|
|
17901
|
+
unit?: string;
|
|
17334
17902
|
updated_at?: string;
|
|
17335
17903
|
};
|
|
17336
17904
|
Update: {
|
|
17905
|
+
aantal_te_produceren?: number;
|
|
17337
17906
|
created_at?: string;
|
|
17338
17907
|
description?: string | null;
|
|
17339
17908
|
id?: string;
|
|
17340
17909
|
is_active?: boolean;
|
|
17910
|
+
location_id?: string | null;
|
|
17341
17911
|
name?: string;
|
|
17912
|
+
partij_nummer?: string | null;
|
|
17913
|
+
photos?: import("../integrations/supabase/types").Json;
|
|
17342
17914
|
produced_stock?: number;
|
|
17343
17915
|
product_code?: string;
|
|
17344
17916
|
tenant_id?: string;
|
|
17917
|
+
unit?: string;
|
|
17345
17918
|
updated_at?: string;
|
|
17346
17919
|
};
|
|
17347
|
-
Relationships: [
|
|
17920
|
+
Relationships: [{
|
|
17921
|
+
foreignKeyName: "manufacture_products_location_id_fkey";
|
|
17922
|
+
columns: ["location_id"];
|
|
17923
|
+
isOneToOne: false;
|
|
17924
|
+
referencedRelation: "locations";
|
|
17925
|
+
referencedColumns: ["id"];
|
|
17926
|
+
}];
|
|
17348
17927
|
};
|
|
17349
17928
|
monteurs: {
|
|
17350
17929
|
Row: {
|
|
@@ -18318,6 +18897,105 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18318
18897
|
};
|
|
18319
18898
|
Relationships: [];
|
|
18320
18899
|
};
|
|
18900
|
+
order_shipment_items: {
|
|
18901
|
+
Row: {
|
|
18902
|
+
created_at: string;
|
|
18903
|
+
id: string;
|
|
18904
|
+
order_item_id: string;
|
|
18905
|
+
product_id: string | null;
|
|
18906
|
+
product_name: string;
|
|
18907
|
+
quantity: number;
|
|
18908
|
+
shipment_id: string;
|
|
18909
|
+
updated_at: string;
|
|
18910
|
+
};
|
|
18911
|
+
Insert: {
|
|
18912
|
+
created_at?: string;
|
|
18913
|
+
id?: string;
|
|
18914
|
+
order_item_id: string;
|
|
18915
|
+
product_id?: string | null;
|
|
18916
|
+
product_name: string;
|
|
18917
|
+
quantity: number;
|
|
18918
|
+
shipment_id: string;
|
|
18919
|
+
updated_at?: string;
|
|
18920
|
+
};
|
|
18921
|
+
Update: {
|
|
18922
|
+
created_at?: string;
|
|
18923
|
+
id?: string;
|
|
18924
|
+
order_item_id?: string;
|
|
18925
|
+
product_id?: string | null;
|
|
18926
|
+
product_name?: string;
|
|
18927
|
+
quantity?: number;
|
|
18928
|
+
shipment_id?: string;
|
|
18929
|
+
updated_at?: string;
|
|
18930
|
+
};
|
|
18931
|
+
Relationships: [{
|
|
18932
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
18933
|
+
columns: ["order_item_id"];
|
|
18934
|
+
isOneToOne: false;
|
|
18935
|
+
referencedRelation: "order_items";
|
|
18936
|
+
referencedColumns: ["id"];
|
|
18937
|
+
}, {
|
|
18938
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
18939
|
+
columns: ["shipment_id"];
|
|
18940
|
+
isOneToOne: false;
|
|
18941
|
+
referencedRelation: "order_shipments";
|
|
18942
|
+
referencedColumns: ["id"];
|
|
18943
|
+
}];
|
|
18944
|
+
};
|
|
18945
|
+
order_shipments: {
|
|
18946
|
+
Row: {
|
|
18947
|
+
carrier_id: string | null;
|
|
18948
|
+
created_at: string;
|
|
18949
|
+
delivery_date: string | null;
|
|
18950
|
+
delivery_location_id: string | null;
|
|
18951
|
+
id: string;
|
|
18952
|
+
notes: string | null;
|
|
18953
|
+
order_id: string;
|
|
18954
|
+
shipment_number: number;
|
|
18955
|
+
shipped_at: string | null;
|
|
18956
|
+
status: string;
|
|
18957
|
+
updated_at: string;
|
|
18958
|
+
};
|
|
18959
|
+
Insert: {
|
|
18960
|
+
carrier_id?: string | null;
|
|
18961
|
+
created_at?: string;
|
|
18962
|
+
delivery_date?: string | null;
|
|
18963
|
+
delivery_location_id?: string | null;
|
|
18964
|
+
id?: string;
|
|
18965
|
+
notes?: string | null;
|
|
18966
|
+
order_id: string;
|
|
18967
|
+
shipment_number: number;
|
|
18968
|
+
shipped_at?: string | null;
|
|
18969
|
+
status?: string;
|
|
18970
|
+
updated_at?: string;
|
|
18971
|
+
};
|
|
18972
|
+
Update: {
|
|
18973
|
+
carrier_id?: string | null;
|
|
18974
|
+
created_at?: string;
|
|
18975
|
+
delivery_date?: string | null;
|
|
18976
|
+
delivery_location_id?: string | null;
|
|
18977
|
+
id?: string;
|
|
18978
|
+
notes?: string | null;
|
|
18979
|
+
order_id?: string;
|
|
18980
|
+
shipment_number?: number;
|
|
18981
|
+
shipped_at?: string | null;
|
|
18982
|
+
status?: string;
|
|
18983
|
+
updated_at?: string;
|
|
18984
|
+
};
|
|
18985
|
+
Relationships: [{
|
|
18986
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
18987
|
+
columns: ["carrier_id"];
|
|
18988
|
+
isOneToOne: false;
|
|
18989
|
+
referencedRelation: "carriers";
|
|
18990
|
+
referencedColumns: ["id"];
|
|
18991
|
+
}, {
|
|
18992
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
18993
|
+
columns: ["order_id"];
|
|
18994
|
+
isOneToOne: false;
|
|
18995
|
+
referencedRelation: "orders";
|
|
18996
|
+
referencedColumns: ["id"];
|
|
18997
|
+
}];
|
|
18998
|
+
};
|
|
18321
18999
|
orders: {
|
|
18322
19000
|
Row: {
|
|
18323
19001
|
created_at: string;
|
|
@@ -18325,8 +19003,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18325
19003
|
customer_id: string | null;
|
|
18326
19004
|
customer_name: string;
|
|
18327
19005
|
deleted_at: string | null;
|
|
18328
|
-
delivery_date: string;
|
|
19006
|
+
delivery_date: string | null;
|
|
18329
19007
|
id: string;
|
|
19008
|
+
is_reservation: boolean;
|
|
18330
19009
|
notes: string | null;
|
|
18331
19010
|
order_date: string;
|
|
18332
19011
|
order_number: string;
|
|
@@ -18343,8 +19022,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18343
19022
|
customer_id?: string | null;
|
|
18344
19023
|
customer_name?: string;
|
|
18345
19024
|
deleted_at?: string | null;
|
|
18346
|
-
delivery_date
|
|
19025
|
+
delivery_date?: string | null;
|
|
18347
19026
|
id?: string;
|
|
19027
|
+
is_reservation?: boolean;
|
|
18348
19028
|
notes?: string | null;
|
|
18349
19029
|
order_date?: string;
|
|
18350
19030
|
order_number: string;
|
|
@@ -18361,8 +19041,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18361
19041
|
customer_id?: string | null;
|
|
18362
19042
|
customer_name?: string;
|
|
18363
19043
|
deleted_at?: string | null;
|
|
18364
|
-
delivery_date?: string;
|
|
19044
|
+
delivery_date?: string | null;
|
|
18365
19045
|
id?: string;
|
|
19046
|
+
is_reservation?: boolean;
|
|
18366
19047
|
notes?: string | null;
|
|
18367
19048
|
order_date?: string;
|
|
18368
19049
|
order_number?: string;
|
|
@@ -18504,6 +19185,63 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18504
19185
|
};
|
|
18505
19186
|
Relationships: [];
|
|
18506
19187
|
};
|
|
19188
|
+
product_bom_items: {
|
|
19189
|
+
Row: {
|
|
19190
|
+
component_product_id: string | null;
|
|
19191
|
+
component_trade_item_floriday_id: string | null;
|
|
19192
|
+
created_at: string;
|
|
19193
|
+
id: string;
|
|
19194
|
+
notes: string | null;
|
|
19195
|
+
parent_product_id: string | null;
|
|
19196
|
+
parent_trade_item_floriday_id: string | null;
|
|
19197
|
+
quantity: number;
|
|
19198
|
+
sort_order: number;
|
|
19199
|
+
tenant_id: string;
|
|
19200
|
+
unit: string;
|
|
19201
|
+
updated_at: string;
|
|
19202
|
+
};
|
|
19203
|
+
Insert: {
|
|
19204
|
+
component_product_id?: string | null;
|
|
19205
|
+
component_trade_item_floriday_id?: string | null;
|
|
19206
|
+
created_at?: string;
|
|
19207
|
+
id?: string;
|
|
19208
|
+
notes?: string | null;
|
|
19209
|
+
parent_product_id?: string | null;
|
|
19210
|
+
parent_trade_item_floriday_id?: string | null;
|
|
19211
|
+
quantity?: number;
|
|
19212
|
+
sort_order?: number;
|
|
19213
|
+
tenant_id: string;
|
|
19214
|
+
unit?: string;
|
|
19215
|
+
updated_at?: string;
|
|
19216
|
+
};
|
|
19217
|
+
Update: {
|
|
19218
|
+
component_product_id?: string | null;
|
|
19219
|
+
component_trade_item_floriday_id?: string | null;
|
|
19220
|
+
created_at?: string;
|
|
19221
|
+
id?: string;
|
|
19222
|
+
notes?: string | null;
|
|
19223
|
+
parent_product_id?: string | null;
|
|
19224
|
+
parent_trade_item_floriday_id?: string | null;
|
|
19225
|
+
quantity?: number;
|
|
19226
|
+
sort_order?: number;
|
|
19227
|
+
tenant_id?: string;
|
|
19228
|
+
unit?: string;
|
|
19229
|
+
updated_at?: string;
|
|
19230
|
+
};
|
|
19231
|
+
Relationships: [{
|
|
19232
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
19233
|
+
columns: ["component_product_id"];
|
|
19234
|
+
isOneToOne: false;
|
|
19235
|
+
referencedRelation: "products";
|
|
19236
|
+
referencedColumns: ["id"];
|
|
19237
|
+
}, {
|
|
19238
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
19239
|
+
columns: ["parent_product_id"];
|
|
19240
|
+
isOneToOne: false;
|
|
19241
|
+
referencedRelation: "products";
|
|
19242
|
+
referencedColumns: ["id"];
|
|
19243
|
+
}];
|
|
19244
|
+
};
|
|
18507
19245
|
product_categories: {
|
|
18508
19246
|
Row: {
|
|
18509
19247
|
color: string;
|
|
@@ -18609,6 +19347,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18609
19347
|
id: string;
|
|
18610
19348
|
product_group_id: string;
|
|
18611
19349
|
quantity: number;
|
|
19350
|
+
sort_order: number;
|
|
18612
19351
|
trade_item_id: string;
|
|
18613
19352
|
};
|
|
18614
19353
|
Insert: {
|
|
@@ -18616,6 +19355,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18616
19355
|
id?: string;
|
|
18617
19356
|
product_group_id: string;
|
|
18618
19357
|
quantity?: number;
|
|
19358
|
+
sort_order?: number;
|
|
18619
19359
|
trade_item_id: string;
|
|
18620
19360
|
};
|
|
18621
19361
|
Update: {
|
|
@@ -18623,6 +19363,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18623
19363
|
id?: string;
|
|
18624
19364
|
product_group_id?: string;
|
|
18625
19365
|
quantity?: number;
|
|
19366
|
+
sort_order?: number;
|
|
18626
19367
|
trade_item_id?: string;
|
|
18627
19368
|
};
|
|
18628
19369
|
Relationships: [{
|
|
@@ -18637,6 +19378,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18637
19378
|
Row: {
|
|
18638
19379
|
created_at: string;
|
|
18639
19380
|
description: string | null;
|
|
19381
|
+
head_product_id: string | null;
|
|
19382
|
+
head_trade_item_floriday_id: string | null;
|
|
18640
19383
|
id: string;
|
|
18641
19384
|
is_active: boolean;
|
|
18642
19385
|
name: string;
|
|
@@ -18646,6 +19389,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18646
19389
|
Insert: {
|
|
18647
19390
|
created_at?: string;
|
|
18648
19391
|
description?: string | null;
|
|
19392
|
+
head_product_id?: string | null;
|
|
19393
|
+
head_trade_item_floriday_id?: string | null;
|
|
18649
19394
|
id?: string;
|
|
18650
19395
|
is_active?: boolean;
|
|
18651
19396
|
name: string;
|
|
@@ -18655,16 +19400,85 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18655
19400
|
Update: {
|
|
18656
19401
|
created_at?: string;
|
|
18657
19402
|
description?: string | null;
|
|
19403
|
+
head_product_id?: string | null;
|
|
19404
|
+
head_trade_item_floriday_id?: string | null;
|
|
18658
19405
|
id?: string;
|
|
18659
19406
|
is_active?: boolean;
|
|
18660
19407
|
name?: string;
|
|
18661
19408
|
tenant_id?: string;
|
|
18662
19409
|
updated_at?: string;
|
|
18663
19410
|
};
|
|
18664
|
-
Relationships: [
|
|
19411
|
+
Relationships: [{
|
|
19412
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
19413
|
+
columns: ["head_product_id"];
|
|
19414
|
+
isOneToOne: false;
|
|
19415
|
+
referencedRelation: "products";
|
|
19416
|
+
referencedColumns: ["id"];
|
|
19417
|
+
}];
|
|
19418
|
+
};
|
|
19419
|
+
product_load_settings: {
|
|
19420
|
+
Row: {
|
|
19421
|
+
created_at: string;
|
|
19422
|
+
id: string;
|
|
19423
|
+
is_package: boolean;
|
|
19424
|
+
layers_per_load_carrier: number | null;
|
|
19425
|
+
load_carrier: string | null;
|
|
19426
|
+
package_id: string | null;
|
|
19427
|
+
package_label: string | null;
|
|
19428
|
+
packages_per_layer: number | null;
|
|
19429
|
+
product_id: string | null;
|
|
19430
|
+
tenant_id: string;
|
|
19431
|
+
trade_item_floriday_id: string | null;
|
|
19432
|
+
units_per_package: number | null;
|
|
19433
|
+
updated_at: string;
|
|
19434
|
+
};
|
|
19435
|
+
Insert: {
|
|
19436
|
+
created_at?: string;
|
|
19437
|
+
id?: string;
|
|
19438
|
+
is_package?: boolean;
|
|
19439
|
+
layers_per_load_carrier?: number | null;
|
|
19440
|
+
load_carrier?: string | null;
|
|
19441
|
+
package_id?: string | null;
|
|
19442
|
+
package_label?: string | null;
|
|
19443
|
+
packages_per_layer?: number | null;
|
|
19444
|
+
product_id?: string | null;
|
|
19445
|
+
tenant_id: string;
|
|
19446
|
+
trade_item_floriday_id?: string | null;
|
|
19447
|
+
units_per_package?: number | null;
|
|
19448
|
+
updated_at?: string;
|
|
19449
|
+
};
|
|
19450
|
+
Update: {
|
|
19451
|
+
created_at?: string;
|
|
19452
|
+
id?: string;
|
|
19453
|
+
is_package?: boolean;
|
|
19454
|
+
layers_per_load_carrier?: number | null;
|
|
19455
|
+
load_carrier?: string | null;
|
|
19456
|
+
package_id?: string | null;
|
|
19457
|
+
package_label?: string | null;
|
|
19458
|
+
packages_per_layer?: number | null;
|
|
19459
|
+
product_id?: string | null;
|
|
19460
|
+
tenant_id?: string;
|
|
19461
|
+
trade_item_floriday_id?: string | null;
|
|
19462
|
+
units_per_package?: number | null;
|
|
19463
|
+
updated_at?: string;
|
|
19464
|
+
};
|
|
19465
|
+
Relationships: [{
|
|
19466
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
19467
|
+
columns: ["package_id"];
|
|
19468
|
+
isOneToOne: false;
|
|
19469
|
+
referencedRelation: "packages";
|
|
19470
|
+
referencedColumns: ["id"];
|
|
19471
|
+
}, {
|
|
19472
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
19473
|
+
columns: ["product_id"];
|
|
19474
|
+
isOneToOne: false;
|
|
19475
|
+
referencedRelation: "products";
|
|
19476
|
+
referencedColumns: ["id"];
|
|
19477
|
+
}];
|
|
18665
19478
|
};
|
|
18666
19479
|
products: {
|
|
18667
19480
|
Row: {
|
|
19481
|
+
article_number: string | null;
|
|
18668
19482
|
barcode: string | null;
|
|
18669
19483
|
batch: string;
|
|
18670
19484
|
crates_per_layer: number;
|
|
@@ -18688,6 +19502,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18688
19502
|
weight: string | null;
|
|
18689
19503
|
};
|
|
18690
19504
|
Insert: {
|
|
19505
|
+
article_number?: string | null;
|
|
18691
19506
|
barcode?: string | null;
|
|
18692
19507
|
batch: string;
|
|
18693
19508
|
crates_per_layer?: number;
|
|
@@ -18711,6 +19526,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18711
19526
|
weight?: string | null;
|
|
18712
19527
|
};
|
|
18713
19528
|
Update: {
|
|
19529
|
+
article_number?: string | null;
|
|
18714
19530
|
barcode?: string | null;
|
|
18715
19531
|
batch?: string;
|
|
18716
19532
|
crates_per_layer?: number;
|
|
@@ -19624,8 +20440,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19624
20440
|
order_id: string | null;
|
|
19625
20441
|
order_item_id: string | null;
|
|
19626
20442
|
order_source: string | null;
|
|
20443
|
+
parent_trade_item_key: string | null;
|
|
19627
20444
|
physical_after: number | null;
|
|
19628
20445
|
physical_before: number | null;
|
|
20446
|
+
production_batch_id: string | null;
|
|
19629
20447
|
qty_delta: number;
|
|
19630
20448
|
reason: string | null;
|
|
19631
20449
|
reserved_after: number | null;
|
|
@@ -19641,8 +20459,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19641
20459
|
order_id?: string | null;
|
|
19642
20460
|
order_item_id?: string | null;
|
|
19643
20461
|
order_source?: string | null;
|
|
20462
|
+
parent_trade_item_key?: string | null;
|
|
19644
20463
|
physical_after?: number | null;
|
|
19645
20464
|
physical_before?: number | null;
|
|
20465
|
+
production_batch_id?: string | null;
|
|
19646
20466
|
qty_delta: number;
|
|
19647
20467
|
reason?: string | null;
|
|
19648
20468
|
reserved_after?: number | null;
|
|
@@ -19658,8 +20478,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
19658
20478
|
order_id?: string | null;
|
|
19659
20479
|
order_item_id?: string | null;
|
|
19660
20480
|
order_source?: string | null;
|
|
20481
|
+
parent_trade_item_key?: string | null;
|
|
19661
20482
|
physical_after?: number | null;
|
|
19662
20483
|
physical_before?: number | null;
|
|
20484
|
+
production_batch_id?: string | null;
|
|
19663
20485
|
qty_delta?: number;
|
|
19664
20486
|
reason?: string | null;
|
|
19665
20487
|
reserved_after?: number | null;
|
|
@@ -20118,7 +20940,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20118
20940
|
twinfield_connections: {
|
|
20119
20941
|
Row: {
|
|
20120
20942
|
access_token: string | null;
|
|
20121
|
-
client_id: string;
|
|
20943
|
+
client_id: string | null;
|
|
20122
20944
|
client_secret: string | null;
|
|
20123
20945
|
cluster_uri: string | null;
|
|
20124
20946
|
company_code: string | null;
|
|
@@ -20130,7 +20952,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20130
20952
|
is_active: boolean;
|
|
20131
20953
|
label: string | null;
|
|
20132
20954
|
office_code: string | null;
|
|
20133
|
-
redirect_uri: string;
|
|
20955
|
+
redirect_uri: string | null;
|
|
20134
20956
|
refresh_token: string | null;
|
|
20135
20957
|
token_expires_at: string | null;
|
|
20136
20958
|
updated_at: string;
|
|
@@ -20138,7 +20960,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20138
20960
|
};
|
|
20139
20961
|
Insert: {
|
|
20140
20962
|
access_token?: string | null;
|
|
20141
|
-
client_id
|
|
20963
|
+
client_id?: string | null;
|
|
20142
20964
|
client_secret?: string | null;
|
|
20143
20965
|
cluster_uri?: string | null;
|
|
20144
20966
|
company_code?: string | null;
|
|
@@ -20150,7 +20972,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20150
20972
|
is_active?: boolean;
|
|
20151
20973
|
label?: string | null;
|
|
20152
20974
|
office_code?: string | null;
|
|
20153
|
-
redirect_uri
|
|
20975
|
+
redirect_uri?: string | null;
|
|
20154
20976
|
refresh_token?: string | null;
|
|
20155
20977
|
token_expires_at?: string | null;
|
|
20156
20978
|
updated_at?: string;
|
|
@@ -20158,7 +20980,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20158
20980
|
};
|
|
20159
20981
|
Update: {
|
|
20160
20982
|
access_token?: string | null;
|
|
20161
|
-
client_id?: string;
|
|
20983
|
+
client_id?: string | null;
|
|
20162
20984
|
client_secret?: string | null;
|
|
20163
20985
|
cluster_uri?: string | null;
|
|
20164
20986
|
company_code?: string | null;
|
|
@@ -20170,7 +20992,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
20170
20992
|
is_active?: boolean;
|
|
20171
20993
|
label?: string | null;
|
|
20172
20994
|
office_code?: string | null;
|
|
20173
|
-
redirect_uri?: string;
|
|
20995
|
+
redirect_uri?: string | null;
|
|
20174
20996
|
refresh_token?: string | null;
|
|
20175
20997
|
token_expires_at?: string | null;
|
|
20176
20998
|
updated_at?: string;
|
|
@@ -21365,25 +22187,6 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21365
22187
|
};
|
|
21366
22188
|
Relationships: [];
|
|
21367
22189
|
};
|
|
21368
|
-
floriday_customer_discounts: {
|
|
21369
|
-
Row: {
|
|
21370
|
-
base_price: number | null;
|
|
21371
|
-
buyer_organization_id: string | null;
|
|
21372
|
-
currency: string | null;
|
|
21373
|
-
discount_type: string | null;
|
|
21374
|
-
discount_value: number | null;
|
|
21375
|
-
min_quantity: number | null;
|
|
21376
|
-
net_price: number | null;
|
|
21377
|
-
product_group_id: string | null;
|
|
21378
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
21379
|
-
source: string | null;
|
|
21380
|
-
source_id: string | null;
|
|
21381
|
-
trade_item_id: string | null;
|
|
21382
|
-
valid_from: string | null;
|
|
21383
|
-
valid_until: string | null;
|
|
21384
|
-
};
|
|
21385
|
-
Relationships: [];
|
|
21386
|
-
};
|
|
21387
22190
|
local_customer_discounts: {
|
|
21388
22191
|
Row: {
|
|
21389
22192
|
base_price: number | null;
|
|
@@ -21802,6 +22605,28 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21802
22605
|
Args: never;
|
|
21803
22606
|
Returns: undefined;
|
|
21804
22607
|
};
|
|
22608
|
+
consume_bom_for_production: {
|
|
22609
|
+
Args: {
|
|
22610
|
+
p_connection_id: string;
|
|
22611
|
+
p_parent_id: string;
|
|
22612
|
+
p_parent_key: string;
|
|
22613
|
+
p_parent_kind: string;
|
|
22614
|
+
p_quantity: number;
|
|
22615
|
+
p_user_id: string;
|
|
22616
|
+
};
|
|
22617
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22618
|
+
} | {
|
|
22619
|
+
Args: {
|
|
22620
|
+
p_batch_id?: string;
|
|
22621
|
+
p_connection_id: string;
|
|
22622
|
+
p_parent_id: string;
|
|
22623
|
+
p_parent_key: string;
|
|
22624
|
+
p_parent_kind: string;
|
|
22625
|
+
p_quantity: number;
|
|
22626
|
+
p_user_id: string;
|
|
22627
|
+
};
|
|
22628
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22629
|
+
};
|
|
21805
22630
|
consume_floriday_rate_limit: {
|
|
21806
22631
|
Args: {
|
|
21807
22632
|
p_bucket: string;
|
|
@@ -21853,6 +22678,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
21853
22678
|
table_name: string;
|
|
21854
22679
|
}[];
|
|
21855
22680
|
};
|
|
22681
|
+
delete_samenstelling: {
|
|
22682
|
+
Args: {
|
|
22683
|
+
p_parent_id: string;
|
|
22684
|
+
p_parent_kind: string;
|
|
22685
|
+
};
|
|
22686
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22687
|
+
};
|
|
21856
22688
|
dispatch_carrier_signups_sql: {
|
|
21857
22689
|
Args: {
|
|
21858
22690
|
_catchup?: string;
|
|
@@ -22013,19 +22845,6 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22013
22845
|
resource: string;
|
|
22014
22846
|
}[];
|
|
22015
22847
|
};
|
|
22016
|
-
get_floriday_agreements_active: {
|
|
22017
|
-
Args: {
|
|
22018
|
-
p_on_date?: string;
|
|
22019
|
-
};
|
|
22020
|
-
Returns: {
|
|
22021
|
-
buyer_organization_id: string;
|
|
22022
|
-
data: import("../integrations/supabase/types").Json;
|
|
22023
|
-
floriday_id: string;
|
|
22024
|
-
status: string;
|
|
22025
|
-
valid_from: string;
|
|
22026
|
-
valid_until: string;
|
|
22027
|
-
}[];
|
|
22028
|
-
};
|
|
22029
22848
|
get_floriday_clock_supplies_window: {
|
|
22030
22849
|
Args: {
|
|
22031
22850
|
p_from: string;
|
|
@@ -22098,6 +22917,21 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22098
22917
|
minutes_since_success: number;
|
|
22099
22918
|
}[];
|
|
22100
22919
|
};
|
|
22920
|
+
get_group_allocation_keys: {
|
|
22921
|
+
Args: {
|
|
22922
|
+
p_product_id: string;
|
|
22923
|
+
};
|
|
22924
|
+
Returns: {
|
|
22925
|
+
k: string;
|
|
22926
|
+
ord: number;
|
|
22927
|
+
}[];
|
|
22928
|
+
};
|
|
22929
|
+
get_group_head_key: {
|
|
22930
|
+
Args: {
|
|
22931
|
+
p_group_id: string;
|
|
22932
|
+
};
|
|
22933
|
+
Returns: string;
|
|
22934
|
+
};
|
|
22101
22935
|
get_offer_by_link_code: {
|
|
22102
22936
|
Args: {
|
|
22103
22937
|
p_code: string;
|
|
@@ -22208,6 +23042,18 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22208
23042
|
};
|
|
22209
23043
|
Returns: undefined;
|
|
22210
23044
|
};
|
|
23045
|
+
mark_shipment_shipped: {
|
|
23046
|
+
Args: {
|
|
23047
|
+
p_shipment_id: string;
|
|
23048
|
+
};
|
|
23049
|
+
Returns: undefined;
|
|
23050
|
+
};
|
|
23051
|
+
next_manufacture_partij: {
|
|
23052
|
+
Args: {
|
|
23053
|
+
_tenant_id: string;
|
|
23054
|
+
};
|
|
23055
|
+
Returns: string;
|
|
23056
|
+
};
|
|
22211
23057
|
next_order_number: {
|
|
22212
23058
|
Args: {
|
|
22213
23059
|
p_prefix: string;
|
|
@@ -22286,6 +23132,14 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22286
23132
|
};
|
|
22287
23133
|
Returns: undefined;
|
|
22288
23134
|
};
|
|
23135
|
+
produce_designed_product: {
|
|
23136
|
+
Args: {
|
|
23137
|
+
p_parent_id: string;
|
|
23138
|
+
p_parent_kind: string;
|
|
23139
|
+
p_quantity: number;
|
|
23140
|
+
};
|
|
23141
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
23142
|
+
};
|
|
22289
23143
|
promote_trade_item_key: {
|
|
22290
23144
|
Args: {
|
|
22291
23145
|
p_new: string;
|
|
@@ -22293,6 +23147,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22293
23147
|
};
|
|
22294
23148
|
Returns: undefined;
|
|
22295
23149
|
};
|
|
23150
|
+
recompute_all_reserved_stock: {
|
|
23151
|
+
Args: never;
|
|
23152
|
+
Returns: undefined;
|
|
23153
|
+
};
|
|
22296
23154
|
recompute_order_status: {
|
|
22297
23155
|
Args: {
|
|
22298
23156
|
p_order_id: string;
|
|
@@ -22342,27 +23200,45 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
22342
23200
|
};
|
|
22343
23201
|
Returns: undefined;
|
|
22344
23202
|
};
|
|
23203
|
+
resolve_group_allocation: {
|
|
23204
|
+
Args: {
|
|
23205
|
+
_needed: number;
|
|
23206
|
+
_product_group_id: string;
|
|
23207
|
+
};
|
|
23208
|
+
Returns: {
|
|
23209
|
+
allocated: number;
|
|
23210
|
+
trade_item_id: string;
|
|
23211
|
+
}[];
|
|
23212
|
+
};
|
|
23213
|
+
resolve_group_member_stock_key: {
|
|
23214
|
+
Args: {
|
|
23215
|
+
p_trade_item_id: string;
|
|
23216
|
+
};
|
|
23217
|
+
Returns: string;
|
|
23218
|
+
};
|
|
22345
23219
|
resolve_product_id_for_item: {
|
|
22346
23220
|
Args: {
|
|
22347
23221
|
p_product_name: string;
|
|
22348
23222
|
};
|
|
22349
23223
|
Returns: string;
|
|
22350
23224
|
};
|
|
22351
|
-
|
|
23225
|
+
resolve_stock_trade_item_key: {
|
|
22352
23226
|
Args: {
|
|
22353
|
-
|
|
22354
|
-
p_url: string;
|
|
23227
|
+
p_product_id: string;
|
|
22355
23228
|
};
|
|
22356
|
-
Returns:
|
|
23229
|
+
Returns: string;
|
|
22357
23230
|
};
|
|
22358
|
-
|
|
23231
|
+
reverse_production: {
|
|
22359
23232
|
Args: {
|
|
22360
|
-
|
|
22361
|
-
|
|
23233
|
+
p_connection_id?: string;
|
|
23234
|
+
p_parent_key: string;
|
|
23235
|
+
p_quantity: number;
|
|
23236
|
+
p_reason?: string;
|
|
23237
|
+
p_user_id?: string;
|
|
22362
23238
|
};
|
|
22363
|
-
Returns:
|
|
23239
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22364
23240
|
};
|
|
22365
|
-
|
|
23241
|
+
schedule_floriday_additional_services_sync: {
|
|
22366
23242
|
Args: {
|
|
22367
23243
|
p_apikey: string;
|
|
22368
23244
|
p_url: string;
|
|
@@ -22936,6 +23812,165 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
22936
23812
|
};
|
|
22937
23813
|
Relationships: [];
|
|
22938
23814
|
};
|
|
23815
|
+
ai_credentials: {
|
|
23816
|
+
Row: {
|
|
23817
|
+
active: boolean;
|
|
23818
|
+
api_key: string;
|
|
23819
|
+
created_at: string;
|
|
23820
|
+
created_by: string | null;
|
|
23821
|
+
id: string;
|
|
23822
|
+
label: string;
|
|
23823
|
+
provider_id: string;
|
|
23824
|
+
updated_at: string;
|
|
23825
|
+
};
|
|
23826
|
+
Insert: {
|
|
23827
|
+
active?: boolean;
|
|
23828
|
+
api_key: string;
|
|
23829
|
+
created_at?: string;
|
|
23830
|
+
created_by?: string | null;
|
|
23831
|
+
id?: string;
|
|
23832
|
+
label: string;
|
|
23833
|
+
provider_id: string;
|
|
23834
|
+
updated_at?: string;
|
|
23835
|
+
};
|
|
23836
|
+
Update: {
|
|
23837
|
+
active?: boolean;
|
|
23838
|
+
api_key?: string;
|
|
23839
|
+
created_at?: string;
|
|
23840
|
+
created_by?: string | null;
|
|
23841
|
+
id?: string;
|
|
23842
|
+
label?: string;
|
|
23843
|
+
provider_id?: string;
|
|
23844
|
+
updated_at?: string;
|
|
23845
|
+
};
|
|
23846
|
+
Relationships: [{
|
|
23847
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
23848
|
+
columns: ["provider_id"];
|
|
23849
|
+
isOneToOne: false;
|
|
23850
|
+
referencedRelation: "ai_providers";
|
|
23851
|
+
referencedColumns: ["id"];
|
|
23852
|
+
}];
|
|
23853
|
+
};
|
|
23854
|
+
ai_models: {
|
|
23855
|
+
Row: {
|
|
23856
|
+
active: boolean;
|
|
23857
|
+
context_window: number | null;
|
|
23858
|
+
created_at: string;
|
|
23859
|
+
display_name: string;
|
|
23860
|
+
id: string;
|
|
23861
|
+
is_default: boolean;
|
|
23862
|
+
modality: string;
|
|
23863
|
+
provider_id: string;
|
|
23864
|
+
slug: string;
|
|
23865
|
+
updated_at: string;
|
|
23866
|
+
};
|
|
23867
|
+
Insert: {
|
|
23868
|
+
active?: boolean;
|
|
23869
|
+
context_window?: number | null;
|
|
23870
|
+
created_at?: string;
|
|
23871
|
+
display_name: string;
|
|
23872
|
+
id?: string;
|
|
23873
|
+
is_default?: boolean;
|
|
23874
|
+
modality?: string;
|
|
23875
|
+
provider_id: string;
|
|
23876
|
+
slug: string;
|
|
23877
|
+
updated_at?: string;
|
|
23878
|
+
};
|
|
23879
|
+
Update: {
|
|
23880
|
+
active?: boolean;
|
|
23881
|
+
context_window?: number | null;
|
|
23882
|
+
created_at?: string;
|
|
23883
|
+
display_name?: string;
|
|
23884
|
+
id?: string;
|
|
23885
|
+
is_default?: boolean;
|
|
23886
|
+
modality?: string;
|
|
23887
|
+
provider_id?: string;
|
|
23888
|
+
slug?: string;
|
|
23889
|
+
updated_at?: string;
|
|
23890
|
+
};
|
|
23891
|
+
Relationships: [{
|
|
23892
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
23893
|
+
columns: ["provider_id"];
|
|
23894
|
+
isOneToOne: false;
|
|
23895
|
+
referencedRelation: "ai_providers";
|
|
23896
|
+
referencedColumns: ["id"];
|
|
23897
|
+
}];
|
|
23898
|
+
};
|
|
23899
|
+
ai_module_bindings: {
|
|
23900
|
+
Row: {
|
|
23901
|
+
consumer_module_id: string;
|
|
23902
|
+
created_at: string;
|
|
23903
|
+
credential_id: string;
|
|
23904
|
+
id: string;
|
|
23905
|
+
model_id: string;
|
|
23906
|
+
notes: string | null;
|
|
23907
|
+
updated_at: string;
|
|
23908
|
+
};
|
|
23909
|
+
Insert: {
|
|
23910
|
+
consumer_module_id: string;
|
|
23911
|
+
created_at?: string;
|
|
23912
|
+
credential_id: string;
|
|
23913
|
+
id?: string;
|
|
23914
|
+
model_id: string;
|
|
23915
|
+
notes?: string | null;
|
|
23916
|
+
updated_at?: string;
|
|
23917
|
+
};
|
|
23918
|
+
Update: {
|
|
23919
|
+
consumer_module_id?: string;
|
|
23920
|
+
created_at?: string;
|
|
23921
|
+
credential_id?: string;
|
|
23922
|
+
id?: string;
|
|
23923
|
+
model_id?: string;
|
|
23924
|
+
notes?: string | null;
|
|
23925
|
+
updated_at?: string;
|
|
23926
|
+
};
|
|
23927
|
+
Relationships: [{
|
|
23928
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
23929
|
+
columns: ["credential_id"];
|
|
23930
|
+
isOneToOne: false;
|
|
23931
|
+
referencedRelation: "ai_credentials";
|
|
23932
|
+
referencedColumns: ["id"];
|
|
23933
|
+
}, {
|
|
23934
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
23935
|
+
columns: ["model_id"];
|
|
23936
|
+
isOneToOne: false;
|
|
23937
|
+
referencedRelation: "ai_models";
|
|
23938
|
+
referencedColumns: ["id"];
|
|
23939
|
+
}];
|
|
23940
|
+
};
|
|
23941
|
+
ai_providers: {
|
|
23942
|
+
Row: {
|
|
23943
|
+
active: boolean;
|
|
23944
|
+
auth_type: string;
|
|
23945
|
+
base_url: string | null;
|
|
23946
|
+
created_at: string;
|
|
23947
|
+
id: string;
|
|
23948
|
+
name: string;
|
|
23949
|
+
slug: string;
|
|
23950
|
+
updated_at: string;
|
|
23951
|
+
};
|
|
23952
|
+
Insert: {
|
|
23953
|
+
active?: boolean;
|
|
23954
|
+
auth_type?: string;
|
|
23955
|
+
base_url?: string | null;
|
|
23956
|
+
created_at?: string;
|
|
23957
|
+
id?: string;
|
|
23958
|
+
name: string;
|
|
23959
|
+
slug: string;
|
|
23960
|
+
updated_at?: string;
|
|
23961
|
+
};
|
|
23962
|
+
Update: {
|
|
23963
|
+
active?: boolean;
|
|
23964
|
+
auth_type?: string;
|
|
23965
|
+
base_url?: string | null;
|
|
23966
|
+
created_at?: string;
|
|
23967
|
+
id?: string;
|
|
23968
|
+
name?: string;
|
|
23969
|
+
slug?: string;
|
|
23970
|
+
updated_at?: string;
|
|
23971
|
+
};
|
|
23972
|
+
Relationships: [];
|
|
23973
|
+
};
|
|
22939
23974
|
app_settings: {
|
|
22940
23975
|
Row: {
|
|
22941
23976
|
created_at: string;
|
|
@@ -25942,105 +26977,6 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
25942
26977
|
referencedColumns: ["id"];
|
|
25943
26978
|
}];
|
|
25944
26979
|
};
|
|
25945
|
-
floriday_agreement_calloffs_cache: {
|
|
25946
|
-
Row: {
|
|
25947
|
-
agreement_id: string | null;
|
|
25948
|
-
connection_id: string;
|
|
25949
|
-
data: import("../integrations/supabase/types").Json;
|
|
25950
|
-
delivery_date: string | null;
|
|
25951
|
-
fetched_at: string;
|
|
25952
|
-
floriday_id: string;
|
|
25953
|
-
id: string;
|
|
25954
|
-
is_deleted: boolean;
|
|
25955
|
-
sequence_number: number;
|
|
25956
|
-
status: string | null;
|
|
25957
|
-
updated_at: string;
|
|
25958
|
-
};
|
|
25959
|
-
Insert: {
|
|
25960
|
-
agreement_id?: string | null;
|
|
25961
|
-
connection_id: string;
|
|
25962
|
-
data?: import("../integrations/supabase/types").Json;
|
|
25963
|
-
delivery_date?: string | null;
|
|
25964
|
-
fetched_at?: string;
|
|
25965
|
-
floriday_id: string;
|
|
25966
|
-
id?: string;
|
|
25967
|
-
is_deleted?: boolean;
|
|
25968
|
-
sequence_number?: number;
|
|
25969
|
-
status?: string | null;
|
|
25970
|
-
updated_at?: string;
|
|
25971
|
-
};
|
|
25972
|
-
Update: {
|
|
25973
|
-
agreement_id?: string | null;
|
|
25974
|
-
connection_id?: string;
|
|
25975
|
-
data?: import("../integrations/supabase/types").Json;
|
|
25976
|
-
delivery_date?: string | null;
|
|
25977
|
-
fetched_at?: string;
|
|
25978
|
-
floriday_id?: string;
|
|
25979
|
-
id?: string;
|
|
25980
|
-
is_deleted?: boolean;
|
|
25981
|
-
sequence_number?: number;
|
|
25982
|
-
status?: string | null;
|
|
25983
|
-
updated_at?: string;
|
|
25984
|
-
};
|
|
25985
|
-
Relationships: [{
|
|
25986
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
25987
|
-
columns: ["connection_id"];
|
|
25988
|
-
isOneToOne: false;
|
|
25989
|
-
referencedRelation: "floriday_connections";
|
|
25990
|
-
referencedColumns: ["id"];
|
|
25991
|
-
}];
|
|
25992
|
-
};
|
|
25993
|
-
floriday_agreements_cache: {
|
|
25994
|
-
Row: {
|
|
25995
|
-
buyer_organization_id: string | null;
|
|
25996
|
-
connection_id: string;
|
|
25997
|
-
data: import("../integrations/supabase/types").Json;
|
|
25998
|
-
fetched_at: string;
|
|
25999
|
-
floriday_id: string;
|
|
26000
|
-
id: string;
|
|
26001
|
-
is_deleted: boolean;
|
|
26002
|
-
sequence_number: number;
|
|
26003
|
-
status: string | null;
|
|
26004
|
-
updated_at: string;
|
|
26005
|
-
valid_from: string | null;
|
|
26006
|
-
valid_until: string | null;
|
|
26007
|
-
};
|
|
26008
|
-
Insert: {
|
|
26009
|
-
buyer_organization_id?: string | null;
|
|
26010
|
-
connection_id: string;
|
|
26011
|
-
data?: import("../integrations/supabase/types").Json;
|
|
26012
|
-
fetched_at?: string;
|
|
26013
|
-
floriday_id: string;
|
|
26014
|
-
id?: string;
|
|
26015
|
-
is_deleted?: boolean;
|
|
26016
|
-
sequence_number?: number;
|
|
26017
|
-
status?: string | null;
|
|
26018
|
-
updated_at?: string;
|
|
26019
|
-
valid_from?: string | null;
|
|
26020
|
-
valid_until?: string | null;
|
|
26021
|
-
};
|
|
26022
|
-
Update: {
|
|
26023
|
-
buyer_organization_id?: string | null;
|
|
26024
|
-
connection_id?: string;
|
|
26025
|
-
data?: import("../integrations/supabase/types").Json;
|
|
26026
|
-
fetched_at?: string;
|
|
26027
|
-
floriday_id?: string;
|
|
26028
|
-
id?: string;
|
|
26029
|
-
is_deleted?: boolean;
|
|
26030
|
-
sequence_number?: number;
|
|
26031
|
-
status?: string | null;
|
|
26032
|
-
updated_at?: string;
|
|
26033
|
-
valid_from?: string | null;
|
|
26034
|
-
valid_until?: string | null;
|
|
26035
|
-
};
|
|
26036
|
-
Relationships: [{
|
|
26037
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
26038
|
-
columns: ["connection_id"];
|
|
26039
|
-
isOneToOne: false;
|
|
26040
|
-
referencedRelation: "floriday_connections";
|
|
26041
|
-
referencedColumns: ["id"];
|
|
26042
|
-
}];
|
|
26043
|
-
};
|
|
26044
26980
|
floriday_auction_letters_cache: {
|
|
26045
26981
|
Row: {
|
|
26046
26982
|
auction_letter_code: string;
|
|
@@ -26539,6 +27475,27 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26539
27475
|
referencedColumns: ["id"];
|
|
26540
27476
|
}];
|
|
26541
27477
|
};
|
|
27478
|
+
floriday_continuous_stock_cache: {
|
|
27479
|
+
Row: {
|
|
27480
|
+
connection_id: string;
|
|
27481
|
+
fetched_at: string;
|
|
27482
|
+
number_of_pieces: number;
|
|
27483
|
+
trade_item_id: string;
|
|
27484
|
+
};
|
|
27485
|
+
Insert: {
|
|
27486
|
+
connection_id: string;
|
|
27487
|
+
fetched_at?: string;
|
|
27488
|
+
number_of_pieces?: number;
|
|
27489
|
+
trade_item_id: string;
|
|
27490
|
+
};
|
|
27491
|
+
Update: {
|
|
27492
|
+
connection_id?: string;
|
|
27493
|
+
fetched_at?: string;
|
|
27494
|
+
number_of_pieces?: number;
|
|
27495
|
+
trade_item_id?: string;
|
|
27496
|
+
};
|
|
27497
|
+
Relationships: [];
|
|
27498
|
+
};
|
|
26542
27499
|
floriday_continuous_stock_queue: {
|
|
26543
27500
|
Row: {
|
|
26544
27501
|
attempts: number;
|
|
@@ -27517,6 +28474,45 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27517
28474
|
referencedColumns: ["id"];
|
|
27518
28475
|
}];
|
|
27519
28476
|
};
|
|
28477
|
+
floriday_trade_settings_customers_cache: {
|
|
28478
|
+
Row: {
|
|
28479
|
+
connection_id: string;
|
|
28480
|
+
data: import("../integrations/supabase/types").Json;
|
|
28481
|
+
fetched_at: string;
|
|
28482
|
+
floriday_id: string;
|
|
28483
|
+
id: string;
|
|
28484
|
+
is_deleted: boolean;
|
|
28485
|
+
sequence_number: number;
|
|
28486
|
+
updated_at: string;
|
|
28487
|
+
};
|
|
28488
|
+
Insert: {
|
|
28489
|
+
connection_id: string;
|
|
28490
|
+
data: import("../integrations/supabase/types").Json;
|
|
28491
|
+
fetched_at?: string;
|
|
28492
|
+
floriday_id: string;
|
|
28493
|
+
id?: string;
|
|
28494
|
+
is_deleted?: boolean;
|
|
28495
|
+
sequence_number?: number;
|
|
28496
|
+
updated_at?: string;
|
|
28497
|
+
};
|
|
28498
|
+
Update: {
|
|
28499
|
+
connection_id?: string;
|
|
28500
|
+
data?: import("../integrations/supabase/types").Json;
|
|
28501
|
+
fetched_at?: string;
|
|
28502
|
+
floriday_id?: string;
|
|
28503
|
+
id?: string;
|
|
28504
|
+
is_deleted?: boolean;
|
|
28505
|
+
sequence_number?: number;
|
|
28506
|
+
updated_at?: string;
|
|
28507
|
+
};
|
|
28508
|
+
Relationships: [{
|
|
28509
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
28510
|
+
columns: ["connection_id"];
|
|
28511
|
+
isOneToOne: false;
|
|
28512
|
+
referencedRelation: "floriday_connections";
|
|
28513
|
+
referencedColumns: ["id"];
|
|
28514
|
+
}];
|
|
28515
|
+
};
|
|
27520
28516
|
floriday_trips_cache: {
|
|
27521
28517
|
Row: {
|
|
27522
28518
|
carrier_organization_id: string | null;
|
|
@@ -28662,39 +29658,60 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
28662
29658
|
};
|
|
28663
29659
|
manufacture_products: {
|
|
28664
29660
|
Row: {
|
|
29661
|
+
aantal_te_produceren: number;
|
|
28665
29662
|
created_at: string;
|
|
28666
29663
|
description: string | null;
|
|
28667
29664
|
id: string;
|
|
28668
29665
|
is_active: boolean;
|
|
29666
|
+
location_id: string | null;
|
|
28669
29667
|
name: string;
|
|
29668
|
+
partij_nummer: string | null;
|
|
29669
|
+
photos: import("../integrations/supabase/types").Json;
|
|
28670
29670
|
produced_stock: number;
|
|
28671
29671
|
product_code: string;
|
|
28672
29672
|
tenant_id: string;
|
|
29673
|
+
unit: string;
|
|
28673
29674
|
updated_at: string;
|
|
28674
29675
|
};
|
|
28675
29676
|
Insert: {
|
|
29677
|
+
aantal_te_produceren?: number;
|
|
28676
29678
|
created_at?: string;
|
|
28677
29679
|
description?: string | null;
|
|
28678
29680
|
id?: string;
|
|
28679
29681
|
is_active?: boolean;
|
|
29682
|
+
location_id?: string | null;
|
|
28680
29683
|
name: string;
|
|
29684
|
+
partij_nummer?: string | null;
|
|
29685
|
+
photos?: import("../integrations/supabase/types").Json;
|
|
28681
29686
|
produced_stock?: number;
|
|
28682
29687
|
product_code: string;
|
|
28683
29688
|
tenant_id: string;
|
|
29689
|
+
unit?: string;
|
|
28684
29690
|
updated_at?: string;
|
|
28685
29691
|
};
|
|
28686
29692
|
Update: {
|
|
29693
|
+
aantal_te_produceren?: number;
|
|
28687
29694
|
created_at?: string;
|
|
28688
29695
|
description?: string | null;
|
|
28689
29696
|
id?: string;
|
|
28690
29697
|
is_active?: boolean;
|
|
29698
|
+
location_id?: string | null;
|
|
28691
29699
|
name?: string;
|
|
29700
|
+
partij_nummer?: string | null;
|
|
29701
|
+
photos?: import("../integrations/supabase/types").Json;
|
|
28692
29702
|
produced_stock?: number;
|
|
28693
29703
|
product_code?: string;
|
|
28694
29704
|
tenant_id?: string;
|
|
29705
|
+
unit?: string;
|
|
28695
29706
|
updated_at?: string;
|
|
28696
29707
|
};
|
|
28697
|
-
Relationships: [
|
|
29708
|
+
Relationships: [{
|
|
29709
|
+
foreignKeyName: "manufacture_products_location_id_fkey";
|
|
29710
|
+
columns: ["location_id"];
|
|
29711
|
+
isOneToOne: false;
|
|
29712
|
+
referencedRelation: "locations";
|
|
29713
|
+
referencedColumns: ["id"];
|
|
29714
|
+
}];
|
|
28698
29715
|
};
|
|
28699
29716
|
monteurs: {
|
|
28700
29717
|
Row: {
|
|
@@ -29668,6 +30685,105 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29668
30685
|
};
|
|
29669
30686
|
Relationships: [];
|
|
29670
30687
|
};
|
|
30688
|
+
order_shipment_items: {
|
|
30689
|
+
Row: {
|
|
30690
|
+
created_at: string;
|
|
30691
|
+
id: string;
|
|
30692
|
+
order_item_id: string;
|
|
30693
|
+
product_id: string | null;
|
|
30694
|
+
product_name: string;
|
|
30695
|
+
quantity: number;
|
|
30696
|
+
shipment_id: string;
|
|
30697
|
+
updated_at: string;
|
|
30698
|
+
};
|
|
30699
|
+
Insert: {
|
|
30700
|
+
created_at?: string;
|
|
30701
|
+
id?: string;
|
|
30702
|
+
order_item_id: string;
|
|
30703
|
+
product_id?: string | null;
|
|
30704
|
+
product_name: string;
|
|
30705
|
+
quantity: number;
|
|
30706
|
+
shipment_id: string;
|
|
30707
|
+
updated_at?: string;
|
|
30708
|
+
};
|
|
30709
|
+
Update: {
|
|
30710
|
+
created_at?: string;
|
|
30711
|
+
id?: string;
|
|
30712
|
+
order_item_id?: string;
|
|
30713
|
+
product_id?: string | null;
|
|
30714
|
+
product_name?: string;
|
|
30715
|
+
quantity?: number;
|
|
30716
|
+
shipment_id?: string;
|
|
30717
|
+
updated_at?: string;
|
|
30718
|
+
};
|
|
30719
|
+
Relationships: [{
|
|
30720
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
30721
|
+
columns: ["order_item_id"];
|
|
30722
|
+
isOneToOne: false;
|
|
30723
|
+
referencedRelation: "order_items";
|
|
30724
|
+
referencedColumns: ["id"];
|
|
30725
|
+
}, {
|
|
30726
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
30727
|
+
columns: ["shipment_id"];
|
|
30728
|
+
isOneToOne: false;
|
|
30729
|
+
referencedRelation: "order_shipments";
|
|
30730
|
+
referencedColumns: ["id"];
|
|
30731
|
+
}];
|
|
30732
|
+
};
|
|
30733
|
+
order_shipments: {
|
|
30734
|
+
Row: {
|
|
30735
|
+
carrier_id: string | null;
|
|
30736
|
+
created_at: string;
|
|
30737
|
+
delivery_date: string | null;
|
|
30738
|
+
delivery_location_id: string | null;
|
|
30739
|
+
id: string;
|
|
30740
|
+
notes: string | null;
|
|
30741
|
+
order_id: string;
|
|
30742
|
+
shipment_number: number;
|
|
30743
|
+
shipped_at: string | null;
|
|
30744
|
+
status: string;
|
|
30745
|
+
updated_at: string;
|
|
30746
|
+
};
|
|
30747
|
+
Insert: {
|
|
30748
|
+
carrier_id?: string | null;
|
|
30749
|
+
created_at?: string;
|
|
30750
|
+
delivery_date?: string | null;
|
|
30751
|
+
delivery_location_id?: string | null;
|
|
30752
|
+
id?: string;
|
|
30753
|
+
notes?: string | null;
|
|
30754
|
+
order_id: string;
|
|
30755
|
+
shipment_number: number;
|
|
30756
|
+
shipped_at?: string | null;
|
|
30757
|
+
status?: string;
|
|
30758
|
+
updated_at?: string;
|
|
30759
|
+
};
|
|
30760
|
+
Update: {
|
|
30761
|
+
carrier_id?: string | null;
|
|
30762
|
+
created_at?: string;
|
|
30763
|
+
delivery_date?: string | null;
|
|
30764
|
+
delivery_location_id?: string | null;
|
|
30765
|
+
id?: string;
|
|
30766
|
+
notes?: string | null;
|
|
30767
|
+
order_id?: string;
|
|
30768
|
+
shipment_number?: number;
|
|
30769
|
+
shipped_at?: string | null;
|
|
30770
|
+
status?: string;
|
|
30771
|
+
updated_at?: string;
|
|
30772
|
+
};
|
|
30773
|
+
Relationships: [{
|
|
30774
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
30775
|
+
columns: ["carrier_id"];
|
|
30776
|
+
isOneToOne: false;
|
|
30777
|
+
referencedRelation: "carriers";
|
|
30778
|
+
referencedColumns: ["id"];
|
|
30779
|
+
}, {
|
|
30780
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
30781
|
+
columns: ["order_id"];
|
|
30782
|
+
isOneToOne: false;
|
|
30783
|
+
referencedRelation: "orders";
|
|
30784
|
+
referencedColumns: ["id"];
|
|
30785
|
+
}];
|
|
30786
|
+
};
|
|
29671
30787
|
orders: {
|
|
29672
30788
|
Row: {
|
|
29673
30789
|
created_at: string;
|
|
@@ -29675,8 +30791,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29675
30791
|
customer_id: string | null;
|
|
29676
30792
|
customer_name: string;
|
|
29677
30793
|
deleted_at: string | null;
|
|
29678
|
-
delivery_date: string;
|
|
30794
|
+
delivery_date: string | null;
|
|
29679
30795
|
id: string;
|
|
30796
|
+
is_reservation: boolean;
|
|
29680
30797
|
notes: string | null;
|
|
29681
30798
|
order_date: string;
|
|
29682
30799
|
order_number: string;
|
|
@@ -29693,8 +30810,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29693
30810
|
customer_id?: string | null;
|
|
29694
30811
|
customer_name?: string;
|
|
29695
30812
|
deleted_at?: string | null;
|
|
29696
|
-
delivery_date
|
|
30813
|
+
delivery_date?: string | null;
|
|
29697
30814
|
id?: string;
|
|
30815
|
+
is_reservation?: boolean;
|
|
29698
30816
|
notes?: string | null;
|
|
29699
30817
|
order_date?: string;
|
|
29700
30818
|
order_number: string;
|
|
@@ -29711,8 +30829,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29711
30829
|
customer_id?: string | null;
|
|
29712
30830
|
customer_name?: string;
|
|
29713
30831
|
deleted_at?: string | null;
|
|
29714
|
-
delivery_date?: string;
|
|
30832
|
+
delivery_date?: string | null;
|
|
29715
30833
|
id?: string;
|
|
30834
|
+
is_reservation?: boolean;
|
|
29716
30835
|
notes?: string | null;
|
|
29717
30836
|
order_date?: string;
|
|
29718
30837
|
order_number?: string;
|
|
@@ -29854,6 +30973,63 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29854
30973
|
};
|
|
29855
30974
|
Relationships: [];
|
|
29856
30975
|
};
|
|
30976
|
+
product_bom_items: {
|
|
30977
|
+
Row: {
|
|
30978
|
+
component_product_id: string | null;
|
|
30979
|
+
component_trade_item_floriday_id: string | null;
|
|
30980
|
+
created_at: string;
|
|
30981
|
+
id: string;
|
|
30982
|
+
notes: string | null;
|
|
30983
|
+
parent_product_id: string | null;
|
|
30984
|
+
parent_trade_item_floriday_id: string | null;
|
|
30985
|
+
quantity: number;
|
|
30986
|
+
sort_order: number;
|
|
30987
|
+
tenant_id: string;
|
|
30988
|
+
unit: string;
|
|
30989
|
+
updated_at: string;
|
|
30990
|
+
};
|
|
30991
|
+
Insert: {
|
|
30992
|
+
component_product_id?: string | null;
|
|
30993
|
+
component_trade_item_floriday_id?: string | null;
|
|
30994
|
+
created_at?: string;
|
|
30995
|
+
id?: string;
|
|
30996
|
+
notes?: string | null;
|
|
30997
|
+
parent_product_id?: string | null;
|
|
30998
|
+
parent_trade_item_floriday_id?: string | null;
|
|
30999
|
+
quantity?: number;
|
|
31000
|
+
sort_order?: number;
|
|
31001
|
+
tenant_id: string;
|
|
31002
|
+
unit?: string;
|
|
31003
|
+
updated_at?: string;
|
|
31004
|
+
};
|
|
31005
|
+
Update: {
|
|
31006
|
+
component_product_id?: string | null;
|
|
31007
|
+
component_trade_item_floriday_id?: string | null;
|
|
31008
|
+
created_at?: string;
|
|
31009
|
+
id?: string;
|
|
31010
|
+
notes?: string | null;
|
|
31011
|
+
parent_product_id?: string | null;
|
|
31012
|
+
parent_trade_item_floriday_id?: string | null;
|
|
31013
|
+
quantity?: number;
|
|
31014
|
+
sort_order?: number;
|
|
31015
|
+
tenant_id?: string;
|
|
31016
|
+
unit?: string;
|
|
31017
|
+
updated_at?: string;
|
|
31018
|
+
};
|
|
31019
|
+
Relationships: [{
|
|
31020
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
31021
|
+
columns: ["component_product_id"];
|
|
31022
|
+
isOneToOne: false;
|
|
31023
|
+
referencedRelation: "products";
|
|
31024
|
+
referencedColumns: ["id"];
|
|
31025
|
+
}, {
|
|
31026
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
31027
|
+
columns: ["parent_product_id"];
|
|
31028
|
+
isOneToOne: false;
|
|
31029
|
+
referencedRelation: "products";
|
|
31030
|
+
referencedColumns: ["id"];
|
|
31031
|
+
}];
|
|
31032
|
+
};
|
|
29857
31033
|
product_categories: {
|
|
29858
31034
|
Row: {
|
|
29859
31035
|
color: string;
|
|
@@ -29959,6 +31135,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29959
31135
|
id: string;
|
|
29960
31136
|
product_group_id: string;
|
|
29961
31137
|
quantity: number;
|
|
31138
|
+
sort_order: number;
|
|
29962
31139
|
trade_item_id: string;
|
|
29963
31140
|
};
|
|
29964
31141
|
Insert: {
|
|
@@ -29966,6 +31143,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29966
31143
|
id?: string;
|
|
29967
31144
|
product_group_id: string;
|
|
29968
31145
|
quantity?: number;
|
|
31146
|
+
sort_order?: number;
|
|
29969
31147
|
trade_item_id: string;
|
|
29970
31148
|
};
|
|
29971
31149
|
Update: {
|
|
@@ -29973,6 +31151,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29973
31151
|
id?: string;
|
|
29974
31152
|
product_group_id?: string;
|
|
29975
31153
|
quantity?: number;
|
|
31154
|
+
sort_order?: number;
|
|
29976
31155
|
trade_item_id?: string;
|
|
29977
31156
|
};
|
|
29978
31157
|
Relationships: [{
|
|
@@ -29987,6 +31166,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29987
31166
|
Row: {
|
|
29988
31167
|
created_at: string;
|
|
29989
31168
|
description: string | null;
|
|
31169
|
+
head_product_id: string | null;
|
|
31170
|
+
head_trade_item_floriday_id: string | null;
|
|
29990
31171
|
id: string;
|
|
29991
31172
|
is_active: boolean;
|
|
29992
31173
|
name: string;
|
|
@@ -29996,6 +31177,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
29996
31177
|
Insert: {
|
|
29997
31178
|
created_at?: string;
|
|
29998
31179
|
description?: string | null;
|
|
31180
|
+
head_product_id?: string | null;
|
|
31181
|
+
head_trade_item_floriday_id?: string | null;
|
|
29999
31182
|
id?: string;
|
|
30000
31183
|
is_active?: boolean;
|
|
30001
31184
|
name: string;
|
|
@@ -30005,16 +31188,85 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
30005
31188
|
Update: {
|
|
30006
31189
|
created_at?: string;
|
|
30007
31190
|
description?: string | null;
|
|
31191
|
+
head_product_id?: string | null;
|
|
31192
|
+
head_trade_item_floriday_id?: string | null;
|
|
30008
31193
|
id?: string;
|
|
30009
31194
|
is_active?: boolean;
|
|
30010
31195
|
name?: string;
|
|
30011
31196
|
tenant_id?: string;
|
|
30012
31197
|
updated_at?: string;
|
|
30013
31198
|
};
|
|
30014
|
-
Relationships: [
|
|
31199
|
+
Relationships: [{
|
|
31200
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
31201
|
+
columns: ["head_product_id"];
|
|
31202
|
+
isOneToOne: false;
|
|
31203
|
+
referencedRelation: "products";
|
|
31204
|
+
referencedColumns: ["id"];
|
|
31205
|
+
}];
|
|
31206
|
+
};
|
|
31207
|
+
product_load_settings: {
|
|
31208
|
+
Row: {
|
|
31209
|
+
created_at: string;
|
|
31210
|
+
id: string;
|
|
31211
|
+
is_package: boolean;
|
|
31212
|
+
layers_per_load_carrier: number | null;
|
|
31213
|
+
load_carrier: string | null;
|
|
31214
|
+
package_id: string | null;
|
|
31215
|
+
package_label: string | null;
|
|
31216
|
+
packages_per_layer: number | null;
|
|
31217
|
+
product_id: string | null;
|
|
31218
|
+
tenant_id: string;
|
|
31219
|
+
trade_item_floriday_id: string | null;
|
|
31220
|
+
units_per_package: number | null;
|
|
31221
|
+
updated_at: string;
|
|
31222
|
+
};
|
|
31223
|
+
Insert: {
|
|
31224
|
+
created_at?: string;
|
|
31225
|
+
id?: string;
|
|
31226
|
+
is_package?: boolean;
|
|
31227
|
+
layers_per_load_carrier?: number | null;
|
|
31228
|
+
load_carrier?: string | null;
|
|
31229
|
+
package_id?: string | null;
|
|
31230
|
+
package_label?: string | null;
|
|
31231
|
+
packages_per_layer?: number | null;
|
|
31232
|
+
product_id?: string | null;
|
|
31233
|
+
tenant_id: string;
|
|
31234
|
+
trade_item_floriday_id?: string | null;
|
|
31235
|
+
units_per_package?: number | null;
|
|
31236
|
+
updated_at?: string;
|
|
31237
|
+
};
|
|
31238
|
+
Update: {
|
|
31239
|
+
created_at?: string;
|
|
31240
|
+
id?: string;
|
|
31241
|
+
is_package?: boolean;
|
|
31242
|
+
layers_per_load_carrier?: number | null;
|
|
31243
|
+
load_carrier?: string | null;
|
|
31244
|
+
package_id?: string | null;
|
|
31245
|
+
package_label?: string | null;
|
|
31246
|
+
packages_per_layer?: number | null;
|
|
31247
|
+
product_id?: string | null;
|
|
31248
|
+
tenant_id?: string;
|
|
31249
|
+
trade_item_floriday_id?: string | null;
|
|
31250
|
+
units_per_package?: number | null;
|
|
31251
|
+
updated_at?: string;
|
|
31252
|
+
};
|
|
31253
|
+
Relationships: [{
|
|
31254
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
31255
|
+
columns: ["package_id"];
|
|
31256
|
+
isOneToOne: false;
|
|
31257
|
+
referencedRelation: "packages";
|
|
31258
|
+
referencedColumns: ["id"];
|
|
31259
|
+
}, {
|
|
31260
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
31261
|
+
columns: ["product_id"];
|
|
31262
|
+
isOneToOne: false;
|
|
31263
|
+
referencedRelation: "products";
|
|
31264
|
+
referencedColumns: ["id"];
|
|
31265
|
+
}];
|
|
30015
31266
|
};
|
|
30016
31267
|
products: {
|
|
30017
31268
|
Row: {
|
|
31269
|
+
article_number: string | null;
|
|
30018
31270
|
barcode: string | null;
|
|
30019
31271
|
batch: string;
|
|
30020
31272
|
crates_per_layer: number;
|
|
@@ -30038,6 +31290,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
30038
31290
|
weight: string | null;
|
|
30039
31291
|
};
|
|
30040
31292
|
Insert: {
|
|
31293
|
+
article_number?: string | null;
|
|
30041
31294
|
barcode?: string | null;
|
|
30042
31295
|
batch: string;
|
|
30043
31296
|
crates_per_layer?: number;
|
|
@@ -30061,6 +31314,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
30061
31314
|
weight?: string | null;
|
|
30062
31315
|
};
|
|
30063
31316
|
Update: {
|
|
31317
|
+
article_number?: string | null;
|
|
30064
31318
|
barcode?: string | null;
|
|
30065
31319
|
batch?: string;
|
|
30066
31320
|
crates_per_layer?: number;
|
|
@@ -30974,8 +32228,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
30974
32228
|
order_id: string | null;
|
|
30975
32229
|
order_item_id: string | null;
|
|
30976
32230
|
order_source: string | null;
|
|
32231
|
+
parent_trade_item_key: string | null;
|
|
30977
32232
|
physical_after: number | null;
|
|
30978
32233
|
physical_before: number | null;
|
|
32234
|
+
production_batch_id: string | null;
|
|
30979
32235
|
qty_delta: number;
|
|
30980
32236
|
reason: string | null;
|
|
30981
32237
|
reserved_after: number | null;
|
|
@@ -30991,8 +32247,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
30991
32247
|
order_id?: string | null;
|
|
30992
32248
|
order_item_id?: string | null;
|
|
30993
32249
|
order_source?: string | null;
|
|
32250
|
+
parent_trade_item_key?: string | null;
|
|
30994
32251
|
physical_after?: number | null;
|
|
30995
32252
|
physical_before?: number | null;
|
|
32253
|
+
production_batch_id?: string | null;
|
|
30996
32254
|
qty_delta: number;
|
|
30997
32255
|
reason?: string | null;
|
|
30998
32256
|
reserved_after?: number | null;
|
|
@@ -31008,8 +32266,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31008
32266
|
order_id?: string | null;
|
|
31009
32267
|
order_item_id?: string | null;
|
|
31010
32268
|
order_source?: string | null;
|
|
32269
|
+
parent_trade_item_key?: string | null;
|
|
31011
32270
|
physical_after?: number | null;
|
|
31012
32271
|
physical_before?: number | null;
|
|
32272
|
+
production_batch_id?: string | null;
|
|
31013
32273
|
qty_delta?: number;
|
|
31014
32274
|
reason?: string | null;
|
|
31015
32275
|
reserved_after?: number | null;
|
|
@@ -31468,7 +32728,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31468
32728
|
twinfield_connections: {
|
|
31469
32729
|
Row: {
|
|
31470
32730
|
access_token: string | null;
|
|
31471
|
-
client_id: string;
|
|
32731
|
+
client_id: string | null;
|
|
31472
32732
|
client_secret: string | null;
|
|
31473
32733
|
cluster_uri: string | null;
|
|
31474
32734
|
company_code: string | null;
|
|
@@ -31480,7 +32740,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31480
32740
|
is_active: boolean;
|
|
31481
32741
|
label: string | null;
|
|
31482
32742
|
office_code: string | null;
|
|
31483
|
-
redirect_uri: string;
|
|
32743
|
+
redirect_uri: string | null;
|
|
31484
32744
|
refresh_token: string | null;
|
|
31485
32745
|
token_expires_at: string | null;
|
|
31486
32746
|
updated_at: string;
|
|
@@ -31488,7 +32748,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31488
32748
|
};
|
|
31489
32749
|
Insert: {
|
|
31490
32750
|
access_token?: string | null;
|
|
31491
|
-
client_id
|
|
32751
|
+
client_id?: string | null;
|
|
31492
32752
|
client_secret?: string | null;
|
|
31493
32753
|
cluster_uri?: string | null;
|
|
31494
32754
|
company_code?: string | null;
|
|
@@ -31500,7 +32760,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31500
32760
|
is_active?: boolean;
|
|
31501
32761
|
label?: string | null;
|
|
31502
32762
|
office_code?: string | null;
|
|
31503
|
-
redirect_uri
|
|
32763
|
+
redirect_uri?: string | null;
|
|
31504
32764
|
refresh_token?: string | null;
|
|
31505
32765
|
token_expires_at?: string | null;
|
|
31506
32766
|
updated_at?: string;
|
|
@@ -31508,7 +32768,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31508
32768
|
};
|
|
31509
32769
|
Update: {
|
|
31510
32770
|
access_token?: string | null;
|
|
31511
|
-
client_id?: string;
|
|
32771
|
+
client_id?: string | null;
|
|
31512
32772
|
client_secret?: string | null;
|
|
31513
32773
|
cluster_uri?: string | null;
|
|
31514
32774
|
company_code?: string | null;
|
|
@@ -31520,7 +32780,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
31520
32780
|
is_active?: boolean;
|
|
31521
32781
|
label?: string | null;
|
|
31522
32782
|
office_code?: string | null;
|
|
31523
|
-
redirect_uri?: string;
|
|
32783
|
+
redirect_uri?: string | null;
|
|
31524
32784
|
refresh_token?: string | null;
|
|
31525
32785
|
token_expires_at?: string | null;
|
|
31526
32786
|
updated_at?: string;
|
|
@@ -32715,25 +33975,6 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
32715
33975
|
};
|
|
32716
33976
|
Relationships: [];
|
|
32717
33977
|
};
|
|
32718
|
-
floriday_customer_discounts: {
|
|
32719
|
-
Row: {
|
|
32720
|
-
base_price: number | null;
|
|
32721
|
-
buyer_organization_id: string | null;
|
|
32722
|
-
currency: string | null;
|
|
32723
|
-
discount_type: string | null;
|
|
32724
|
-
discount_value: number | null;
|
|
32725
|
-
min_quantity: number | null;
|
|
32726
|
-
net_price: number | null;
|
|
32727
|
-
product_group_id: string | null;
|
|
32728
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
32729
|
-
source: string | null;
|
|
32730
|
-
source_id: string | null;
|
|
32731
|
-
trade_item_id: string | null;
|
|
32732
|
-
valid_from: string | null;
|
|
32733
|
-
valid_until: string | null;
|
|
32734
|
-
};
|
|
32735
|
-
Relationships: [];
|
|
32736
|
-
};
|
|
32737
33978
|
local_customer_discounts: {
|
|
32738
33979
|
Row: {
|
|
32739
33980
|
base_price: number | null;
|
|
@@ -33152,6 +34393,28 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
33152
34393
|
Args: never;
|
|
33153
34394
|
Returns: undefined;
|
|
33154
34395
|
};
|
|
34396
|
+
consume_bom_for_production: {
|
|
34397
|
+
Args: {
|
|
34398
|
+
p_connection_id: string;
|
|
34399
|
+
p_parent_id: string;
|
|
34400
|
+
p_parent_key: string;
|
|
34401
|
+
p_parent_kind: string;
|
|
34402
|
+
p_quantity: number;
|
|
34403
|
+
p_user_id: string;
|
|
34404
|
+
};
|
|
34405
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34406
|
+
} | {
|
|
34407
|
+
Args: {
|
|
34408
|
+
p_batch_id?: string;
|
|
34409
|
+
p_connection_id: string;
|
|
34410
|
+
p_parent_id: string;
|
|
34411
|
+
p_parent_key: string;
|
|
34412
|
+
p_parent_kind: string;
|
|
34413
|
+
p_quantity: number;
|
|
34414
|
+
p_user_id: string;
|
|
34415
|
+
};
|
|
34416
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34417
|
+
};
|
|
33155
34418
|
consume_floriday_rate_limit: {
|
|
33156
34419
|
Args: {
|
|
33157
34420
|
p_bucket: string;
|
|
@@ -33203,6 +34466,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
33203
34466
|
table_name: string;
|
|
33204
34467
|
}[];
|
|
33205
34468
|
};
|
|
34469
|
+
delete_samenstelling: {
|
|
34470
|
+
Args: {
|
|
34471
|
+
p_parent_id: string;
|
|
34472
|
+
p_parent_kind: string;
|
|
34473
|
+
};
|
|
34474
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34475
|
+
};
|
|
33206
34476
|
dispatch_carrier_signups_sql: {
|
|
33207
34477
|
Args: {
|
|
33208
34478
|
_catchup?: string;
|
|
@@ -33363,19 +34633,6 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
33363
34633
|
resource: string;
|
|
33364
34634
|
}[];
|
|
33365
34635
|
};
|
|
33366
|
-
get_floriday_agreements_active: {
|
|
33367
|
-
Args: {
|
|
33368
|
-
p_on_date?: string;
|
|
33369
|
-
};
|
|
33370
|
-
Returns: {
|
|
33371
|
-
buyer_organization_id: string;
|
|
33372
|
-
data: import("../integrations/supabase/types").Json;
|
|
33373
|
-
floriday_id: string;
|
|
33374
|
-
status: string;
|
|
33375
|
-
valid_from: string;
|
|
33376
|
-
valid_until: string;
|
|
33377
|
-
}[];
|
|
33378
|
-
};
|
|
33379
34636
|
get_floriday_clock_supplies_window: {
|
|
33380
34637
|
Args: {
|
|
33381
34638
|
p_from: string;
|
|
@@ -33448,6 +34705,21 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
33448
34705
|
minutes_since_success: number;
|
|
33449
34706
|
}[];
|
|
33450
34707
|
};
|
|
34708
|
+
get_group_allocation_keys: {
|
|
34709
|
+
Args: {
|
|
34710
|
+
p_product_id: string;
|
|
34711
|
+
};
|
|
34712
|
+
Returns: {
|
|
34713
|
+
k: string;
|
|
34714
|
+
ord: number;
|
|
34715
|
+
}[];
|
|
34716
|
+
};
|
|
34717
|
+
get_group_head_key: {
|
|
34718
|
+
Args: {
|
|
34719
|
+
p_group_id: string;
|
|
34720
|
+
};
|
|
34721
|
+
Returns: string;
|
|
34722
|
+
};
|
|
33451
34723
|
get_offer_by_link_code: {
|
|
33452
34724
|
Args: {
|
|
33453
34725
|
p_code: string;
|
|
@@ -33558,6 +34830,18 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
33558
34830
|
};
|
|
33559
34831
|
Returns: undefined;
|
|
33560
34832
|
};
|
|
34833
|
+
mark_shipment_shipped: {
|
|
34834
|
+
Args: {
|
|
34835
|
+
p_shipment_id: string;
|
|
34836
|
+
};
|
|
34837
|
+
Returns: undefined;
|
|
34838
|
+
};
|
|
34839
|
+
next_manufacture_partij: {
|
|
34840
|
+
Args: {
|
|
34841
|
+
_tenant_id: string;
|
|
34842
|
+
};
|
|
34843
|
+
Returns: string;
|
|
34844
|
+
};
|
|
33561
34845
|
next_order_number: {
|
|
33562
34846
|
Args: {
|
|
33563
34847
|
p_prefix: string;
|
|
@@ -33636,6 +34920,14 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
33636
34920
|
};
|
|
33637
34921
|
Returns: undefined;
|
|
33638
34922
|
};
|
|
34923
|
+
produce_designed_product: {
|
|
34924
|
+
Args: {
|
|
34925
|
+
p_parent_id: string;
|
|
34926
|
+
p_parent_kind: string;
|
|
34927
|
+
p_quantity: number;
|
|
34928
|
+
};
|
|
34929
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34930
|
+
};
|
|
33639
34931
|
promote_trade_item_key: {
|
|
33640
34932
|
Args: {
|
|
33641
34933
|
p_new: string;
|
|
@@ -33643,6 +34935,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
33643
34935
|
};
|
|
33644
34936
|
Returns: undefined;
|
|
33645
34937
|
};
|
|
34938
|
+
recompute_all_reserved_stock: {
|
|
34939
|
+
Args: never;
|
|
34940
|
+
Returns: undefined;
|
|
34941
|
+
};
|
|
33646
34942
|
recompute_order_status: {
|
|
33647
34943
|
Args: {
|
|
33648
34944
|
p_order_id: string;
|
|
@@ -33692,27 +34988,45 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
33692
34988
|
};
|
|
33693
34989
|
Returns: undefined;
|
|
33694
34990
|
};
|
|
34991
|
+
resolve_group_allocation: {
|
|
34992
|
+
Args: {
|
|
34993
|
+
_needed: number;
|
|
34994
|
+
_product_group_id: string;
|
|
34995
|
+
};
|
|
34996
|
+
Returns: {
|
|
34997
|
+
allocated: number;
|
|
34998
|
+
trade_item_id: string;
|
|
34999
|
+
}[];
|
|
35000
|
+
};
|
|
35001
|
+
resolve_group_member_stock_key: {
|
|
35002
|
+
Args: {
|
|
35003
|
+
p_trade_item_id: string;
|
|
35004
|
+
};
|
|
35005
|
+
Returns: string;
|
|
35006
|
+
};
|
|
33695
35007
|
resolve_product_id_for_item: {
|
|
33696
35008
|
Args: {
|
|
33697
35009
|
p_product_name: string;
|
|
33698
35010
|
};
|
|
33699
35011
|
Returns: string;
|
|
33700
35012
|
};
|
|
33701
|
-
|
|
35013
|
+
resolve_stock_trade_item_key: {
|
|
33702
35014
|
Args: {
|
|
33703
|
-
|
|
33704
|
-
p_url: string;
|
|
35015
|
+
p_product_id: string;
|
|
33705
35016
|
};
|
|
33706
|
-
Returns:
|
|
35017
|
+
Returns: string;
|
|
33707
35018
|
};
|
|
33708
|
-
|
|
35019
|
+
reverse_production: {
|
|
33709
35020
|
Args: {
|
|
33710
|
-
|
|
33711
|
-
|
|
35021
|
+
p_connection_id?: string;
|
|
35022
|
+
p_parent_key: string;
|
|
35023
|
+
p_quantity: number;
|
|
35024
|
+
p_reason?: string;
|
|
35025
|
+
p_user_id?: string;
|
|
33712
35026
|
};
|
|
33713
|
-
Returns:
|
|
35027
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
33714
35028
|
};
|
|
33715
|
-
|
|
35029
|
+
schedule_floriday_additional_services_sync: {
|
|
33716
35030
|
Args: {
|
|
33717
35031
|
p_apikey: string;
|
|
33718
35032
|
p_url: string;
|