@flowselections/floriday-verkoop-module 1.0.17 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/CreateOrderPage.js +6 -4
  3. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +6 -0
  4. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -0
  5. package/dist-lib/components/verkoop/EditLocalOrderDialog.js +102 -0
  6. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/OrderKarindelingCard.js +26 -28
  8. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +5 -0
  9. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -0
  10. package/dist-lib/components/verkoop/OrderShipmentsCard.js +137 -0
  11. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  12. package/dist-lib/components/verkoop/SalesOrderDetailPage.js +8 -2
  13. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  14. package/dist-lib/components/verkoop/SalesOrderDetailView.js +2 -1
  15. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +4 -1
  16. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  17. package/dist-lib/components/verkoop/SalesOrdersTable.js +2 -2
  18. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  19. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +43 -1
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts +436 -149
  21. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/client.d.ts +436 -149
  23. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/client.server.d.ts +436 -149
  25. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  26. package/dist-lib/integrations/supabase/types.d.ts +452 -153
  27. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  28. package/dist-lib/lib/cart-lock.functions.d.ts +436 -149
  29. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/cart-replan.functions.d.ts +884 -310
  31. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/create-order.functions.d.ts +39491 -1379
  33. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/create-order.functions.js +814 -64
  35. package/dist-lib/lib/expand-group-order-items.d.ts +13 -0
  36. package/dist-lib/lib/expand-group-order-items.d.ts.map +1 -0
  37. package/dist-lib/lib/expand-group-order-items.js +216 -0
  38. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1321 -460
  39. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +436 -149
  41. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/floriday-public.functions.d.ts +3052 -1043
  43. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-writes.functions.d.ts +2180 -745
  45. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/order-shipments.functions.d.ts +47382 -0
  47. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -0
  48. package/dist-lib/lib/order-shipments.functions.js +178 -0
  49. package/dist-lib/lib/salesorders-mapping.d.ts +1 -0
  50. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  51. package/dist-lib/lib/salesorders.functions.d.ts +1321 -460
  52. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/tradeitems.functions.d.ts +436 -149
  54. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  56. package/dist-lib/lib/useSalesOrdersQuery.js +39 -2
  57. package/package.json +2 -2
@@ -3411,105 +3411,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
3411
3411
  referencedColumns: ["id"];
3412
3412
  }];
3413
3413
  };
3414
- floriday_agreement_calloffs_cache: {
3415
- Row: {
3416
- agreement_id: string | null;
3417
- connection_id: string;
3418
- data: import("../integrations/supabase/types").Json;
3419
- delivery_date: string | null;
3420
- fetched_at: string;
3421
- floriday_id: string;
3422
- id: string;
3423
- is_deleted: boolean;
3424
- sequence_number: number;
3425
- status: string | null;
3426
- updated_at: string;
3427
- };
3428
- Insert: {
3429
- agreement_id?: string | null;
3430
- connection_id: string;
3431
- data?: import("../integrations/supabase/types").Json;
3432
- delivery_date?: string | null;
3433
- fetched_at?: string;
3434
- floriday_id: string;
3435
- id?: string;
3436
- is_deleted?: boolean;
3437
- sequence_number?: number;
3438
- status?: string | null;
3439
- updated_at?: string;
3440
- };
3441
- Update: {
3442
- agreement_id?: string | null;
3443
- connection_id?: string;
3444
- data?: import("../integrations/supabase/types").Json;
3445
- delivery_date?: string | null;
3446
- fetched_at?: string;
3447
- floriday_id?: string;
3448
- id?: string;
3449
- is_deleted?: boolean;
3450
- sequence_number?: number;
3451
- status?: string | null;
3452
- updated_at?: string;
3453
- };
3454
- Relationships: [{
3455
- foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3456
- columns: ["connection_id"];
3457
- isOneToOne: false;
3458
- referencedRelation: "floriday_connections";
3459
- referencedColumns: ["id"];
3460
- }];
3461
- };
3462
- floriday_agreements_cache: {
3463
- Row: {
3464
- buyer_organization_id: string | null;
3465
- connection_id: string;
3466
- data: import("../integrations/supabase/types").Json;
3467
- fetched_at: string;
3468
- floriday_id: string;
3469
- id: string;
3470
- is_deleted: boolean;
3471
- sequence_number: number;
3472
- status: string | null;
3473
- updated_at: string;
3474
- valid_from: string | null;
3475
- valid_until: string | null;
3476
- };
3477
- Insert: {
3478
- buyer_organization_id?: string | null;
3479
- connection_id: string;
3480
- data?: import("../integrations/supabase/types").Json;
3481
- fetched_at?: string;
3482
- floriday_id: string;
3483
- id?: string;
3484
- is_deleted?: boolean;
3485
- sequence_number?: number;
3486
- status?: string | null;
3487
- updated_at?: string;
3488
- valid_from?: string | null;
3489
- valid_until?: string | null;
3490
- };
3491
- Update: {
3492
- buyer_organization_id?: string | null;
3493
- connection_id?: string;
3494
- data?: import("../integrations/supabase/types").Json;
3495
- fetched_at?: string;
3496
- floriday_id?: string;
3497
- id?: string;
3498
- is_deleted?: boolean;
3499
- sequence_number?: number;
3500
- status?: string | null;
3501
- updated_at?: string;
3502
- valid_from?: string | null;
3503
- valid_until?: string | null;
3504
- };
3505
- Relationships: [{
3506
- foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3507
- columns: ["connection_id"];
3508
- isOneToOne: false;
3509
- referencedRelation: "floriday_connections";
3510
- referencedColumns: ["id"];
3511
- }];
3512
- };
3513
3414
  floriday_auction_letters_cache: {
3514
3415
  Row: {
3515
3416
  auction_letter_code: string;
@@ -5007,6 +4908,45 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5007
4908
  referencedColumns: ["id"];
5008
4909
  }];
5009
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
+ };
5010
4950
  floriday_trips_cache: {
5011
4951
  Row: {
5012
4952
  carrier_organization_id: string | null;
@@ -7179,6 +7119,105 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7179
7119
  };
7180
7120
  Relationships: [];
7181
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
+ };
7182
7221
  orders: {
7183
7222
  Row: {
7184
7223
  created_at: string;
@@ -7186,8 +7225,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7186
7225
  customer_id: string | null;
7187
7226
  customer_name: string;
7188
7227
  deleted_at: string | null;
7189
- delivery_date: string;
7228
+ delivery_date: string | null;
7190
7229
  id: string;
7230
+ is_reservation: boolean;
7191
7231
  notes: string | null;
7192
7232
  order_date: string;
7193
7233
  order_number: string;
@@ -7204,8 +7244,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7204
7244
  customer_id?: string | null;
7205
7245
  customer_name?: string;
7206
7246
  deleted_at?: string | null;
7207
- delivery_date: string;
7247
+ delivery_date?: string | null;
7208
7248
  id?: string;
7249
+ is_reservation?: boolean;
7209
7250
  notes?: string | null;
7210
7251
  order_date?: string;
7211
7252
  order_number: string;
@@ -7222,8 +7263,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7222
7263
  customer_id?: string | null;
7223
7264
  customer_name?: string;
7224
7265
  deleted_at?: string | null;
7225
- delivery_date?: string;
7266
+ delivery_date?: string | null;
7226
7267
  id?: string;
7268
+ is_reservation?: boolean;
7227
7269
  notes?: string | null;
7228
7270
  order_date?: string;
7229
7271
  order_number?: string;
@@ -7365,6 +7407,63 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7365
7407
  };
7366
7408
  Relationships: [];
7367
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
+ };
7368
7467
  product_categories: {
7369
7468
  Row: {
7370
7469
  color: string;
@@ -7470,6 +7569,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7470
7569
  id: string;
7471
7570
  product_group_id: string;
7472
7571
  quantity: number;
7572
+ sort_order: number;
7473
7573
  trade_item_id: string;
7474
7574
  };
7475
7575
  Insert: {
@@ -7477,6 +7577,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7477
7577
  id?: string;
7478
7578
  product_group_id: string;
7479
7579
  quantity?: number;
7580
+ sort_order?: number;
7480
7581
  trade_item_id: string;
7481
7582
  };
7482
7583
  Update: {
@@ -7484,6 +7585,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7484
7585
  id?: string;
7485
7586
  product_group_id?: string;
7486
7587
  quantity?: number;
7588
+ sort_order?: number;
7487
7589
  trade_item_id?: string;
7488
7590
  };
7489
7591
  Relationships: [{
@@ -7498,6 +7600,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7498
7600
  Row: {
7499
7601
  created_at: string;
7500
7602
  description: string | null;
7603
+ head_product_id: string | null;
7604
+ head_trade_item_floriday_id: string | null;
7501
7605
  id: string;
7502
7606
  is_active: boolean;
7503
7607
  name: string;
@@ -7507,6 +7611,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7507
7611
  Insert: {
7508
7612
  created_at?: string;
7509
7613
  description?: string | null;
7614
+ head_product_id?: string | null;
7615
+ head_trade_item_floriday_id?: string | null;
7510
7616
  id?: string;
7511
7617
  is_active?: boolean;
7512
7618
  name: string;
@@ -7516,21 +7622,126 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7516
7622
  Update: {
7517
7623
  created_at?: string;
7518
7624
  description?: string | null;
7625
+ head_product_id?: string | null;
7626
+ head_trade_item_floriday_id?: string | null;
7519
7627
  id?: string;
7520
7628
  is_active?: boolean;
7521
7629
  name?: string;
7522
7630
  tenant_id?: string;
7523
7631
  updated_at?: string;
7524
7632
  };
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
+ }];
7700
+ };
7701
+ product_merge_log: {
7702
+ Row: {
7703
+ canonical_product_id: string | null;
7704
+ id: string;
7705
+ merged_at: string;
7706
+ merged_from_id: string;
7707
+ notes: string | null;
7708
+ snapshot: import("../integrations/supabase/types").Json;
7709
+ source_table: string;
7710
+ status: string;
7711
+ };
7712
+ Insert: {
7713
+ canonical_product_id?: string | null;
7714
+ id?: string;
7715
+ merged_at?: string;
7716
+ merged_from_id: string;
7717
+ notes?: string | null;
7718
+ snapshot?: import("../integrations/supabase/types").Json;
7719
+ source_table: string;
7720
+ status?: string;
7721
+ };
7722
+ Update: {
7723
+ canonical_product_id?: string | null;
7724
+ id?: string;
7725
+ merged_at?: string;
7726
+ merged_from_id?: string;
7727
+ notes?: string | null;
7728
+ snapshot?: import("../integrations/supabase/types").Json;
7729
+ source_table?: string;
7730
+ status?: string;
7731
+ };
7525
7732
  Relationships: [];
7526
7733
  };
7527
7734
  products: {
7528
7735
  Row: {
7736
+ article_number: string | null;
7529
7737
  barcode: string | null;
7530
7738
  batch: string;
7531
7739
  crates_per_layer: number;
7532
7740
  created_at: string;
7533
7741
  custom_fields: import("../integrations/supabase/types").Json;
7742
+ floriday_active: boolean;
7743
+ floriday_payload: import("../integrations/supabase/types").Json;
7744
+ floriday_trade_item_id: string | null;
7534
7745
  id: string;
7535
7746
  image_url: string | null;
7536
7747
  incoming_quantity: number;
@@ -7549,11 +7760,15 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7549
7760
  weight: string | null;
7550
7761
  };
7551
7762
  Insert: {
7763
+ article_number?: string | null;
7552
7764
  barcode?: string | null;
7553
7765
  batch: string;
7554
7766
  crates_per_layer?: number;
7555
7767
  created_at?: string;
7556
7768
  custom_fields?: import("../integrations/supabase/types").Json;
7769
+ floriday_active?: boolean;
7770
+ floriday_payload?: import("../integrations/supabase/types").Json;
7771
+ floriday_trade_item_id?: string | null;
7557
7772
  id?: string;
7558
7773
  image_url?: string | null;
7559
7774
  incoming_quantity?: number;
@@ -7572,11 +7787,15 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7572
7787
  weight?: string | null;
7573
7788
  };
7574
7789
  Update: {
7790
+ article_number?: string | null;
7575
7791
  barcode?: string | null;
7576
7792
  batch?: string;
7577
7793
  crates_per_layer?: number;
7578
7794
  created_at?: string;
7579
7795
  custom_fields?: import("../integrations/supabase/types").Json;
7796
+ floriday_active?: boolean;
7797
+ floriday_payload?: import("../integrations/supabase/types").Json;
7798
+ floriday_trade_item_id?: string | null;
7580
7799
  id?: string;
7581
7800
  image_url?: string | null;
7582
7801
  incoming_quantity?: number;
@@ -8485,8 +8704,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8485
8704
  order_id: string | null;
8486
8705
  order_item_id: string | null;
8487
8706
  order_source: string | null;
8707
+ parent_trade_item_key: string | null;
8488
8708
  physical_after: number | null;
8489
8709
  physical_before: number | null;
8710
+ production_batch_id: string | null;
8490
8711
  qty_delta: number;
8491
8712
  reason: string | null;
8492
8713
  reserved_after: number | null;
@@ -8502,8 +8723,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8502
8723
  order_id?: string | null;
8503
8724
  order_item_id?: string | null;
8504
8725
  order_source?: string | null;
8726
+ parent_trade_item_key?: string | null;
8505
8727
  physical_after?: number | null;
8506
8728
  physical_before?: number | null;
8729
+ production_batch_id?: string | null;
8507
8730
  qty_delta: number;
8508
8731
  reason?: string | null;
8509
8732
  reserved_after?: number | null;
@@ -8519,8 +8742,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8519
8742
  order_id?: string | null;
8520
8743
  order_item_id?: string | null;
8521
8744
  order_source?: string | null;
8745
+ parent_trade_item_key?: string | null;
8522
8746
  physical_after?: number | null;
8523
8747
  physical_before?: number | null;
8748
+ production_batch_id?: string | null;
8524
8749
  qty_delta?: number;
8525
8750
  reason?: string | null;
8526
8751
  reserved_after?: number | null;
@@ -8979,7 +9204,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8979
9204
  twinfield_connections: {
8980
9205
  Row: {
8981
9206
  access_token: string | null;
8982
- client_id: string;
9207
+ client_id: string | null;
8983
9208
  client_secret: string | null;
8984
9209
  cluster_uri: string | null;
8985
9210
  company_code: string | null;
@@ -8991,7 +9216,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8991
9216
  is_active: boolean;
8992
9217
  label: string | null;
8993
9218
  office_code: string | null;
8994
- redirect_uri: string;
9219
+ redirect_uri: string | null;
8995
9220
  refresh_token: string | null;
8996
9221
  token_expires_at: string | null;
8997
9222
  updated_at: string;
@@ -8999,7 +9224,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8999
9224
  };
9000
9225
  Insert: {
9001
9226
  access_token?: string | null;
9002
- client_id: string;
9227
+ client_id?: string | null;
9003
9228
  client_secret?: string | null;
9004
9229
  cluster_uri?: string | null;
9005
9230
  company_code?: string | null;
@@ -9011,7 +9236,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9011
9236
  is_active?: boolean;
9012
9237
  label?: string | null;
9013
9238
  office_code?: string | null;
9014
- redirect_uri: string;
9239
+ redirect_uri?: string | null;
9015
9240
  refresh_token?: string | null;
9016
9241
  token_expires_at?: string | null;
9017
9242
  updated_at?: string;
@@ -9019,7 +9244,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9019
9244
  };
9020
9245
  Update: {
9021
9246
  access_token?: string | null;
9022
- client_id?: string;
9247
+ client_id?: string | null;
9023
9248
  client_secret?: string | null;
9024
9249
  cluster_uri?: string | null;
9025
9250
  company_code?: string | null;
@@ -9031,7 +9256,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9031
9256
  is_active?: boolean;
9032
9257
  label?: string | null;
9033
9258
  office_code?: string | null;
9034
- redirect_uri?: string;
9259
+ redirect_uri?: string | null;
9035
9260
  refresh_token?: string | null;
9036
9261
  token_expires_at?: string | null;
9037
9262
  updated_at?: string;
@@ -10226,25 +10451,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10226
10451
  };
10227
10452
  Relationships: [];
10228
10453
  };
10229
- floriday_customer_discounts: {
10230
- Row: {
10231
- base_price: number | null;
10232
- buyer_organization_id: string | null;
10233
- currency: string | null;
10234
- discount_type: string | null;
10235
- discount_value: number | null;
10236
- min_quantity: number | null;
10237
- net_price: number | null;
10238
- product_group_id: string | null;
10239
- raw: import("../integrations/supabase/types").Json | null;
10240
- source: string | null;
10241
- source_id: string | null;
10242
- trade_item_id: string | null;
10243
- valid_from: string | null;
10244
- valid_until: string | null;
10245
- };
10246
- Relationships: [];
10247
- };
10248
10454
  local_customer_discounts: {
10249
10455
  Row: {
10250
10456
  base_price: number | null;
@@ -10548,6 +10754,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10548
10754
  };
10549
10755
  Returns: number;
10550
10756
  };
10757
+ _migrate_rewrite_stock_key: {
10758
+ Args: {
10759
+ _from_key: string;
10760
+ _to_key: string;
10761
+ };
10762
+ Returns: undefined;
10763
+ };
10551
10764
  afh_city_code: {
10552
10765
  Args: {
10553
10766
  _city: string;
@@ -10663,6 +10876,28 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10663
10876
  Args: never;
10664
10877
  Returns: undefined;
10665
10878
  };
10879
+ consume_bom_for_production: {
10880
+ Args: {
10881
+ p_connection_id: string;
10882
+ p_parent_id: string;
10883
+ p_parent_key: string;
10884
+ p_parent_kind: string;
10885
+ p_quantity: number;
10886
+ p_user_id: string;
10887
+ };
10888
+ Returns: import("../integrations/supabase/types").Json;
10889
+ } | {
10890
+ Args: {
10891
+ p_batch_id?: string;
10892
+ p_connection_id: string;
10893
+ p_parent_id: string;
10894
+ p_parent_key: string;
10895
+ p_parent_kind: string;
10896
+ p_quantity: number;
10897
+ p_user_id: string;
10898
+ };
10899
+ Returns: import("../integrations/supabase/types").Json;
10900
+ };
10666
10901
  consume_floriday_rate_limit: {
10667
10902
  Args: {
10668
10903
  p_bucket: string;
@@ -10714,6 +10949,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10714
10949
  table_name: string;
10715
10950
  }[];
10716
10951
  };
10952
+ delete_samenstelling: {
10953
+ Args: {
10954
+ p_parent_id: string;
10955
+ p_parent_kind: string;
10956
+ };
10957
+ Returns: import("../integrations/supabase/types").Json;
10958
+ };
10717
10959
  dispatch_carrier_signups_sql: {
10718
10960
  Args: {
10719
10961
  _catchup?: string;
@@ -10874,19 +11116,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10874
11116
  resource: string;
10875
11117
  }[];
10876
11118
  };
10877
- get_floriday_agreements_active: {
10878
- Args: {
10879
- p_on_date?: string;
10880
- };
10881
- Returns: {
10882
- buyer_organization_id: string;
10883
- data: import("../integrations/supabase/types").Json;
10884
- floriday_id: string;
10885
- status: string;
10886
- valid_from: string;
10887
- valid_until: string;
10888
- }[];
10889
- };
10890
11119
  get_floriday_clock_supplies_window: {
10891
11120
  Args: {
10892
11121
  p_from: string;
@@ -10959,6 +11188,21 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10959
11188
  minutes_since_success: number;
10960
11189
  }[];
10961
11190
  };
11191
+ get_group_allocation_keys: {
11192
+ Args: {
11193
+ p_product_id: string;
11194
+ };
11195
+ Returns: {
11196
+ k: string;
11197
+ ord: number;
11198
+ }[];
11199
+ };
11200
+ get_group_head_key: {
11201
+ Args: {
11202
+ p_group_id: string;
11203
+ };
11204
+ Returns: string;
11205
+ };
10962
11206
  get_offer_by_link_code: {
10963
11207
  Args: {
10964
11208
  p_code: string;
@@ -11069,6 +11313,19 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11069
11313
  };
11070
11314
  Returns: undefined;
11071
11315
  };
11316
+ mark_shipment_shipped: {
11317
+ Args: {
11318
+ p_shipment_id: string;
11319
+ };
11320
+ Returns: undefined;
11321
+ };
11322
+ merge_products: {
11323
+ Args: {
11324
+ _canonical: string;
11325
+ _loser: string;
11326
+ };
11327
+ Returns: undefined;
11328
+ };
11072
11329
  next_manufacture_partij: {
11073
11330
  Args: {
11074
11331
  _tenant_id: string;
@@ -11153,6 +11410,14 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11153
11410
  };
11154
11411
  Returns: undefined;
11155
11412
  };
11413
+ produce_designed_product: {
11414
+ Args: {
11415
+ p_parent_id: string;
11416
+ p_parent_kind: string;
11417
+ p_quantity: number;
11418
+ };
11419
+ Returns: import("../integrations/supabase/types").Json;
11420
+ };
11156
11421
  promote_trade_item_key: {
11157
11422
  Args: {
11158
11423
  p_new: string;
@@ -11160,6 +11425,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11160
11425
  };
11161
11426
  Returns: undefined;
11162
11427
  };
11428
+ recompute_all_reserved_stock: {
11429
+ Args: never;
11430
+ Returns: undefined;
11431
+ };
11163
11432
  recompute_order_status: {
11164
11433
  Args: {
11165
11434
  p_order_id: string;
@@ -11209,27 +11478,45 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11209
11478
  };
11210
11479
  Returns: undefined;
11211
11480
  };
11481
+ resolve_group_allocation: {
11482
+ Args: {
11483
+ _needed: number;
11484
+ _product_group_id: string;
11485
+ };
11486
+ Returns: {
11487
+ allocated: number;
11488
+ trade_item_id: string;
11489
+ }[];
11490
+ };
11491
+ resolve_group_member_stock_key: {
11492
+ Args: {
11493
+ p_trade_item_id: string;
11494
+ };
11495
+ Returns: string;
11496
+ };
11212
11497
  resolve_product_id_for_item: {
11213
11498
  Args: {
11214
11499
  p_product_name: string;
11215
11500
  };
11216
11501
  Returns: string;
11217
11502
  };
11218
- schedule_floriday_additional_services_sync: {
11503
+ resolve_stock_trade_item_key: {
11219
11504
  Args: {
11220
- p_apikey: string;
11221
- p_url: string;
11505
+ p_product_id: string;
11222
11506
  };
11223
- Returns: number;
11507
+ Returns: string;
11224
11508
  };
11225
- schedule_floriday_agreement_calloffs_sync: {
11509
+ reverse_production: {
11226
11510
  Args: {
11227
- p_apikey: string;
11228
- p_url: string;
11511
+ p_connection_id?: string;
11512
+ p_parent_key: string;
11513
+ p_quantity: number;
11514
+ p_reason?: string;
11515
+ p_user_id?: string;
11229
11516
  };
11230
- Returns: number;
11517
+ Returns: import("../integrations/supabase/types").Json;
11231
11518
  };
11232
- schedule_floriday_agreements_sync: {
11519
+ schedule_floriday_additional_services_sync: {
11233
11520
  Args: {
11234
11521
  p_apikey: string;
11235
11522
  p_url: string;