@flowselections/floriday-verkoop-module 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +381 -150
  21. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/client.d.ts +381 -150
  23. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/client.server.d.ts +381 -150
  25. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  26. package/dist-lib/integrations/supabase/types.d.ts +397 -154
  27. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  28. package/dist-lib/lib/cart-lock.functions.d.ts +381 -150
  29. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/cart-replan.functions.d.ts +789 -327
  31. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/create-order.functions.d.ts +38897 -1457
  33. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/create-order.functions.js +792 -52
  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 +1174 -481
  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 +381 -150
  41. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/floriday-public.functions.d.ts +2701 -1084
  43. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-writes.functions.d.ts +1939 -784
  45. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/order-shipments.functions.d.ts +47158 -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 +1174 -481
  52. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/tradeitems.functions.d.ts +381 -150
  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,16 +7622,85 @@ 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
  };
7525
- 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
+ }];
7526
7700
  };
7527
7701
  products: {
7528
7702
  Row: {
7703
+ article_number: string | null;
7529
7704
  barcode: string | null;
7530
7705
  batch: string;
7531
7706
  crates_per_layer: number;
@@ -7549,6 +7724,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7549
7724
  weight: string | null;
7550
7725
  };
7551
7726
  Insert: {
7727
+ article_number?: string | null;
7552
7728
  barcode?: string | null;
7553
7729
  batch: string;
7554
7730
  crates_per_layer?: number;
@@ -7572,6 +7748,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7572
7748
  weight?: string | null;
7573
7749
  };
7574
7750
  Update: {
7751
+ article_number?: string | null;
7575
7752
  barcode?: string | null;
7576
7753
  batch?: string;
7577
7754
  crates_per_layer?: number;
@@ -8485,8 +8662,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8485
8662
  order_id: string | null;
8486
8663
  order_item_id: string | null;
8487
8664
  order_source: string | null;
8665
+ parent_trade_item_key: string | null;
8488
8666
  physical_after: number | null;
8489
8667
  physical_before: number | null;
8668
+ production_batch_id: string | null;
8490
8669
  qty_delta: number;
8491
8670
  reason: string | null;
8492
8671
  reserved_after: number | null;
@@ -8502,8 +8681,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8502
8681
  order_id?: string | null;
8503
8682
  order_item_id?: string | null;
8504
8683
  order_source?: string | null;
8684
+ parent_trade_item_key?: string | null;
8505
8685
  physical_after?: number | null;
8506
8686
  physical_before?: number | null;
8687
+ production_batch_id?: string | null;
8507
8688
  qty_delta: number;
8508
8689
  reason?: string | null;
8509
8690
  reserved_after?: number | null;
@@ -8519,8 +8700,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8519
8700
  order_id?: string | null;
8520
8701
  order_item_id?: string | null;
8521
8702
  order_source?: string | null;
8703
+ parent_trade_item_key?: string | null;
8522
8704
  physical_after?: number | null;
8523
8705
  physical_before?: number | null;
8706
+ production_batch_id?: string | null;
8524
8707
  qty_delta?: number;
8525
8708
  reason?: string | null;
8526
8709
  reserved_after?: number | null;
@@ -8979,7 +9162,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8979
9162
  twinfield_connections: {
8980
9163
  Row: {
8981
9164
  access_token: string | null;
8982
- client_id: string;
9165
+ client_id: string | null;
8983
9166
  client_secret: string | null;
8984
9167
  cluster_uri: string | null;
8985
9168
  company_code: string | null;
@@ -8991,7 +9174,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8991
9174
  is_active: boolean;
8992
9175
  label: string | null;
8993
9176
  office_code: string | null;
8994
- redirect_uri: string;
9177
+ redirect_uri: string | null;
8995
9178
  refresh_token: string | null;
8996
9179
  token_expires_at: string | null;
8997
9180
  updated_at: string;
@@ -8999,7 +9182,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8999
9182
  };
9000
9183
  Insert: {
9001
9184
  access_token?: string | null;
9002
- client_id: string;
9185
+ client_id?: string | null;
9003
9186
  client_secret?: string | null;
9004
9187
  cluster_uri?: string | null;
9005
9188
  company_code?: string | null;
@@ -9011,7 +9194,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9011
9194
  is_active?: boolean;
9012
9195
  label?: string | null;
9013
9196
  office_code?: string | null;
9014
- redirect_uri: string;
9197
+ redirect_uri?: string | null;
9015
9198
  refresh_token?: string | null;
9016
9199
  token_expires_at?: string | null;
9017
9200
  updated_at?: string;
@@ -9019,7 +9202,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9019
9202
  };
9020
9203
  Update: {
9021
9204
  access_token?: string | null;
9022
- client_id?: string;
9205
+ client_id?: string | null;
9023
9206
  client_secret?: string | null;
9024
9207
  cluster_uri?: string | null;
9025
9208
  company_code?: string | null;
@@ -9031,7 +9214,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9031
9214
  is_active?: boolean;
9032
9215
  label?: string | null;
9033
9216
  office_code?: string | null;
9034
- redirect_uri?: string;
9217
+ redirect_uri?: string | null;
9035
9218
  refresh_token?: string | null;
9036
9219
  token_expires_at?: string | null;
9037
9220
  updated_at?: string;
@@ -10226,25 +10409,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10226
10409
  };
10227
10410
  Relationships: [];
10228
10411
  };
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
10412
  local_customer_discounts: {
10249
10413
  Row: {
10250
10414
  base_price: number | null;
@@ -10663,6 +10827,28 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10663
10827
  Args: never;
10664
10828
  Returns: undefined;
10665
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
+ };
10666
10852
  consume_floriday_rate_limit: {
10667
10853
  Args: {
10668
10854
  p_bucket: string;
@@ -10714,6 +10900,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10714
10900
  table_name: string;
10715
10901
  }[];
10716
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
+ };
10717
10910
  dispatch_carrier_signups_sql: {
10718
10911
  Args: {
10719
10912
  _catchup?: string;
@@ -10874,19 +11067,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10874
11067
  resource: string;
10875
11068
  }[];
10876
11069
  };
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
11070
  get_floriday_clock_supplies_window: {
10891
11071
  Args: {
10892
11072
  p_from: string;
@@ -10959,6 +11139,21 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10959
11139
  minutes_since_success: number;
10960
11140
  }[];
10961
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
+ };
10962
11157
  get_offer_by_link_code: {
10963
11158
  Args: {
10964
11159
  p_code: string;
@@ -11069,6 +11264,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11069
11264
  };
11070
11265
  Returns: undefined;
11071
11266
  };
11267
+ mark_shipment_shipped: {
11268
+ Args: {
11269
+ p_shipment_id: string;
11270
+ };
11271
+ Returns: undefined;
11272
+ };
11072
11273
  next_manufacture_partij: {
11073
11274
  Args: {
11074
11275
  _tenant_id: string;
@@ -11153,6 +11354,14 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11153
11354
  };
11154
11355
  Returns: undefined;
11155
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
+ };
11156
11365
  promote_trade_item_key: {
11157
11366
  Args: {
11158
11367
  p_new: string;
@@ -11160,6 +11369,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11160
11369
  };
11161
11370
  Returns: undefined;
11162
11371
  };
11372
+ recompute_all_reserved_stock: {
11373
+ Args: never;
11374
+ Returns: undefined;
11375
+ };
11163
11376
  recompute_order_status: {
11164
11377
  Args: {
11165
11378
  p_order_id: string;
@@ -11209,27 +11422,45 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11209
11422
  };
11210
11423
  Returns: undefined;
11211
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
+ };
11212
11441
  resolve_product_id_for_item: {
11213
11442
  Args: {
11214
11443
  p_product_name: string;
11215
11444
  };
11216
11445
  Returns: string;
11217
11446
  };
11218
- schedule_floriday_additional_services_sync: {
11447
+ resolve_stock_trade_item_key: {
11219
11448
  Args: {
11220
- p_apikey: string;
11221
- p_url: string;
11449
+ p_product_id: string;
11222
11450
  };
11223
- Returns: number;
11451
+ Returns: string;
11224
11452
  };
11225
- schedule_floriday_agreement_calloffs_sync: {
11453
+ reverse_production: {
11226
11454
  Args: {
11227
- p_apikey: string;
11228
- p_url: string;
11455
+ p_connection_id?: string;
11456
+ p_parent_key: string;
11457
+ p_quantity: number;
11458
+ p_reason?: string;
11459
+ p_user_id?: string;
11229
11460
  };
11230
- Returns: number;
11461
+ Returns: import("../integrations/supabase/types").Json;
11231
11462
  };
11232
- schedule_floriday_agreements_sync: {
11463
+ schedule_floriday_additional_services_sync: {
11233
11464
  Args: {
11234
11465
  p_apikey: string;
11235
11466
  p_url: string;