@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
@@ -3407,105 +3407,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3407
3407
  referencedColumns: ["id"];
3408
3408
  }];
3409
3409
  };
3410
- floriday_agreement_calloffs_cache: {
3411
- Row: {
3412
- agreement_id: string | null;
3413
- connection_id: string;
3414
- data: import("./types").Json;
3415
- delivery_date: string | null;
3416
- fetched_at: string;
3417
- floriday_id: string;
3418
- id: string;
3419
- is_deleted: boolean;
3420
- sequence_number: number;
3421
- status: string | null;
3422
- updated_at: string;
3423
- };
3424
- Insert: {
3425
- agreement_id?: string | null;
3426
- connection_id: string;
3427
- data?: import("./types").Json;
3428
- delivery_date?: string | null;
3429
- fetched_at?: string;
3430
- floriday_id: string;
3431
- id?: string;
3432
- is_deleted?: boolean;
3433
- sequence_number?: number;
3434
- status?: string | null;
3435
- updated_at?: string;
3436
- };
3437
- Update: {
3438
- agreement_id?: string | null;
3439
- connection_id?: string;
3440
- data?: import("./types").Json;
3441
- delivery_date?: string | null;
3442
- fetched_at?: string;
3443
- floriday_id?: string;
3444
- id?: string;
3445
- is_deleted?: boolean;
3446
- sequence_number?: number;
3447
- status?: string | null;
3448
- updated_at?: string;
3449
- };
3450
- Relationships: [{
3451
- foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3452
- columns: ["connection_id"];
3453
- isOneToOne: false;
3454
- referencedRelation: "floriday_connections";
3455
- referencedColumns: ["id"];
3456
- }];
3457
- };
3458
- floriday_agreements_cache: {
3459
- Row: {
3460
- buyer_organization_id: string | null;
3461
- connection_id: string;
3462
- data: import("./types").Json;
3463
- fetched_at: string;
3464
- floriday_id: string;
3465
- id: string;
3466
- is_deleted: boolean;
3467
- sequence_number: number;
3468
- status: string | null;
3469
- updated_at: string;
3470
- valid_from: string | null;
3471
- valid_until: string | null;
3472
- };
3473
- Insert: {
3474
- buyer_organization_id?: string | null;
3475
- connection_id: string;
3476
- data?: import("./types").Json;
3477
- fetched_at?: string;
3478
- floriday_id: string;
3479
- id?: string;
3480
- is_deleted?: boolean;
3481
- sequence_number?: number;
3482
- status?: string | null;
3483
- updated_at?: string;
3484
- valid_from?: string | null;
3485
- valid_until?: string | null;
3486
- };
3487
- Update: {
3488
- buyer_organization_id?: string | null;
3489
- connection_id?: string;
3490
- data?: import("./types").Json;
3491
- fetched_at?: string;
3492
- floriday_id?: string;
3493
- id?: string;
3494
- is_deleted?: boolean;
3495
- sequence_number?: number;
3496
- status?: string | null;
3497
- updated_at?: string;
3498
- valid_from?: string | null;
3499
- valid_until?: string | null;
3500
- };
3501
- Relationships: [{
3502
- foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3503
- columns: ["connection_id"];
3504
- isOneToOne: false;
3505
- referencedRelation: "floriday_connections";
3506
- referencedColumns: ["id"];
3507
- }];
3508
- };
3509
3410
  floriday_auction_letters_cache: {
3510
3411
  Row: {
3511
3412
  auction_letter_code: string;
@@ -5003,6 +4904,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5003
4904
  referencedColumns: ["id"];
5004
4905
  }];
5005
4906
  };
4907
+ floriday_trade_settings_customers_cache: {
4908
+ Row: {
4909
+ connection_id: string;
4910
+ data: import("./types").Json;
4911
+ fetched_at: string;
4912
+ floriday_id: string;
4913
+ id: string;
4914
+ is_deleted: boolean;
4915
+ sequence_number: number;
4916
+ updated_at: string;
4917
+ };
4918
+ Insert: {
4919
+ connection_id: string;
4920
+ data: import("./types").Json;
4921
+ fetched_at?: string;
4922
+ floriday_id: string;
4923
+ id?: string;
4924
+ is_deleted?: boolean;
4925
+ sequence_number?: number;
4926
+ updated_at?: string;
4927
+ };
4928
+ Update: {
4929
+ connection_id?: string;
4930
+ data?: import("./types").Json;
4931
+ fetched_at?: string;
4932
+ floriday_id?: string;
4933
+ id?: string;
4934
+ is_deleted?: boolean;
4935
+ sequence_number?: number;
4936
+ updated_at?: string;
4937
+ };
4938
+ Relationships: [{
4939
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
4940
+ columns: ["connection_id"];
4941
+ isOneToOne: false;
4942
+ referencedRelation: "floriday_connections";
4943
+ referencedColumns: ["id"];
4944
+ }];
4945
+ };
5006
4946
  floriday_trips_cache: {
5007
4947
  Row: {
5008
4948
  carrier_organization_id: string | null;
@@ -7175,6 +7115,105 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7175
7115
  };
7176
7116
  Relationships: [];
7177
7117
  };
7118
+ order_shipment_items: {
7119
+ Row: {
7120
+ created_at: string;
7121
+ id: string;
7122
+ order_item_id: string;
7123
+ product_id: string | null;
7124
+ product_name: string;
7125
+ quantity: number;
7126
+ shipment_id: string;
7127
+ updated_at: string;
7128
+ };
7129
+ Insert: {
7130
+ created_at?: string;
7131
+ id?: string;
7132
+ order_item_id: string;
7133
+ product_id?: string | null;
7134
+ product_name: string;
7135
+ quantity: number;
7136
+ shipment_id: string;
7137
+ updated_at?: string;
7138
+ };
7139
+ Update: {
7140
+ created_at?: string;
7141
+ id?: string;
7142
+ order_item_id?: string;
7143
+ product_id?: string | null;
7144
+ product_name?: string;
7145
+ quantity?: number;
7146
+ shipment_id?: string;
7147
+ updated_at?: string;
7148
+ };
7149
+ Relationships: [{
7150
+ foreignKeyName: "order_shipment_items_order_item_id_fkey";
7151
+ columns: ["order_item_id"];
7152
+ isOneToOne: false;
7153
+ referencedRelation: "order_items";
7154
+ referencedColumns: ["id"];
7155
+ }, {
7156
+ foreignKeyName: "order_shipment_items_shipment_id_fkey";
7157
+ columns: ["shipment_id"];
7158
+ isOneToOne: false;
7159
+ referencedRelation: "order_shipments";
7160
+ referencedColumns: ["id"];
7161
+ }];
7162
+ };
7163
+ order_shipments: {
7164
+ Row: {
7165
+ carrier_id: string | null;
7166
+ created_at: string;
7167
+ delivery_date: string | null;
7168
+ delivery_location_id: string | null;
7169
+ id: string;
7170
+ notes: string | null;
7171
+ order_id: string;
7172
+ shipment_number: number;
7173
+ shipped_at: string | null;
7174
+ status: string;
7175
+ updated_at: string;
7176
+ };
7177
+ Insert: {
7178
+ carrier_id?: string | null;
7179
+ created_at?: string;
7180
+ delivery_date?: string | null;
7181
+ delivery_location_id?: string | null;
7182
+ id?: string;
7183
+ notes?: string | null;
7184
+ order_id: string;
7185
+ shipment_number: number;
7186
+ shipped_at?: string | null;
7187
+ status?: string;
7188
+ updated_at?: string;
7189
+ };
7190
+ Update: {
7191
+ carrier_id?: string | null;
7192
+ created_at?: string;
7193
+ delivery_date?: string | null;
7194
+ delivery_location_id?: string | null;
7195
+ id?: string;
7196
+ notes?: string | null;
7197
+ order_id?: string;
7198
+ shipment_number?: number;
7199
+ shipped_at?: string | null;
7200
+ status?: string;
7201
+ updated_at?: string;
7202
+ };
7203
+ Relationships: [{
7204
+ foreignKeyName: "order_shipments_carrier_id_fkey";
7205
+ columns: ["carrier_id"];
7206
+ isOneToOne: false;
7207
+ referencedRelation: "carriers";
7208
+ referencedColumns: ["id"];
7209
+ }, {
7210
+ foreignKeyName: "order_shipments_order_id_fkey";
7211
+ columns: ["order_id"];
7212
+ isOneToOne: false;
7213
+ referencedRelation: "orders";
7214
+ referencedColumns: ["id"];
7215
+ }];
7216
+ };
7178
7217
  orders: {
7179
7218
  Row: {
7180
7219
  created_at: string;
@@ -7182,8 +7221,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7182
7221
  customer_id: string | null;
7183
7222
  customer_name: string;
7184
7223
  deleted_at: string | null;
7185
- delivery_date: string;
7224
+ delivery_date: string | null;
7186
7225
  id: string;
7226
+ is_reservation: boolean;
7187
7227
  notes: string | null;
7188
7228
  order_date: string;
7189
7229
  order_number: string;
@@ -7200,8 +7240,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7200
7240
  customer_id?: string | null;
7201
7241
  customer_name?: string;
7202
7242
  deleted_at?: string | null;
7203
- delivery_date: string;
7243
+ delivery_date?: string | null;
7204
7244
  id?: string;
7245
+ is_reservation?: boolean;
7205
7246
  notes?: string | null;
7206
7247
  order_date?: string;
7207
7248
  order_number: string;
@@ -7218,8 +7259,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7218
7259
  customer_id?: string | null;
7219
7260
  customer_name?: string;
7220
7261
  deleted_at?: string | null;
7221
- delivery_date?: string;
7262
+ delivery_date?: string | null;
7222
7263
  id?: string;
7264
+ is_reservation?: boolean;
7223
7265
  notes?: string | null;
7224
7266
  order_date?: string;
7225
7267
  order_number?: string;
@@ -7361,6 +7403,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7361
7403
  };
7362
7404
  Relationships: [];
7363
7405
  };
7406
+ product_bom_items: {
7407
+ Row: {
7408
+ component_product_id: string | null;
7409
+ component_trade_item_floriday_id: string | null;
7410
+ created_at: string;
7411
+ id: string;
7412
+ notes: string | null;
7413
+ parent_product_id: string | null;
7414
+ parent_trade_item_floriday_id: string | null;
7415
+ quantity: number;
7416
+ sort_order: number;
7417
+ tenant_id: string;
7418
+ unit: string;
7419
+ updated_at: string;
7420
+ };
7421
+ Insert: {
7422
+ component_product_id?: string | null;
7423
+ component_trade_item_floriday_id?: string | null;
7424
+ created_at?: string;
7425
+ id?: string;
7426
+ notes?: string | null;
7427
+ parent_product_id?: string | null;
7428
+ parent_trade_item_floriday_id?: string | null;
7429
+ quantity?: number;
7430
+ sort_order?: number;
7431
+ tenant_id: string;
7432
+ unit?: string;
7433
+ updated_at?: string;
7434
+ };
7435
+ Update: {
7436
+ component_product_id?: string | null;
7437
+ component_trade_item_floriday_id?: string | null;
7438
+ created_at?: string;
7439
+ id?: string;
7440
+ notes?: string | null;
7441
+ parent_product_id?: string | null;
7442
+ parent_trade_item_floriday_id?: string | null;
7443
+ quantity?: number;
7444
+ sort_order?: number;
7445
+ tenant_id?: string;
7446
+ unit?: string;
7447
+ updated_at?: string;
7448
+ };
7449
+ Relationships: [{
7450
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
7451
+ columns: ["component_product_id"];
7452
+ isOneToOne: false;
7453
+ referencedRelation: "products";
7454
+ referencedColumns: ["id"];
7455
+ }, {
7456
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
7457
+ columns: ["parent_product_id"];
7458
+ isOneToOne: false;
7459
+ referencedRelation: "products";
7460
+ referencedColumns: ["id"];
7461
+ }];
7462
+ };
7364
7463
  product_categories: {
7365
7464
  Row: {
7366
7465
  color: string;
@@ -7466,6 +7565,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7466
7565
  id: string;
7467
7566
  product_group_id: string;
7468
7567
  quantity: number;
7568
+ sort_order: number;
7469
7569
  trade_item_id: string;
7470
7570
  };
7471
7571
  Insert: {
@@ -7473,6 +7573,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7473
7573
  id?: string;
7474
7574
  product_group_id: string;
7475
7575
  quantity?: number;
7576
+ sort_order?: number;
7476
7577
  trade_item_id: string;
7477
7578
  };
7478
7579
  Update: {
@@ -7480,6 +7581,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7480
7581
  id?: string;
7481
7582
  product_group_id?: string;
7482
7583
  quantity?: number;
7584
+ sort_order?: number;
7483
7585
  trade_item_id?: string;
7484
7586
  };
7485
7587
  Relationships: [{
@@ -7494,6 +7596,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7494
7596
  Row: {
7495
7597
  created_at: string;
7496
7598
  description: string | null;
7599
+ head_product_id: string | null;
7600
+ head_trade_item_floriday_id: string | null;
7497
7601
  id: string;
7498
7602
  is_active: boolean;
7499
7603
  name: string;
@@ -7503,6 +7607,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7503
7607
  Insert: {
7504
7608
  created_at?: string;
7505
7609
  description?: string | null;
7610
+ head_product_id?: string | null;
7611
+ head_trade_item_floriday_id?: string | null;
7506
7612
  id?: string;
7507
7613
  is_active?: boolean;
7508
7614
  name: string;
@@ -7512,21 +7618,126 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7512
7618
  Update: {
7513
7619
  created_at?: string;
7514
7620
  description?: string | null;
7621
+ head_product_id?: string | null;
7622
+ head_trade_item_floriday_id?: string | null;
7515
7623
  id?: string;
7516
7624
  is_active?: boolean;
7517
7625
  name?: string;
7518
7626
  tenant_id?: string;
7519
7627
  updated_at?: string;
7520
7628
  };
7629
+ Relationships: [{
7630
+ foreignKeyName: "product_groups_head_product_id_fkey";
7631
+ columns: ["head_product_id"];
7632
+ isOneToOne: false;
7633
+ referencedRelation: "products";
7634
+ referencedColumns: ["id"];
7635
+ }];
7636
+ };
7637
+ product_load_settings: {
7638
+ Row: {
7639
+ created_at: string;
7640
+ id: string;
7641
+ is_package: boolean;
7642
+ layers_per_load_carrier: number | null;
7643
+ load_carrier: string | null;
7644
+ package_id: string | null;
7645
+ package_label: string | null;
7646
+ packages_per_layer: number | null;
7647
+ product_id: string | null;
7648
+ tenant_id: string;
7649
+ trade_item_floriday_id: string | null;
7650
+ units_per_package: number | null;
7651
+ updated_at: string;
7652
+ };
7653
+ Insert: {
7654
+ created_at?: string;
7655
+ id?: string;
7656
+ is_package?: boolean;
7657
+ layers_per_load_carrier?: number | null;
7658
+ load_carrier?: string | null;
7659
+ package_id?: string | null;
7660
+ package_label?: string | null;
7661
+ packages_per_layer?: number | null;
7662
+ product_id?: string | null;
7663
+ tenant_id: string;
7664
+ trade_item_floriday_id?: string | null;
7665
+ units_per_package?: number | null;
7666
+ updated_at?: string;
7667
+ };
7668
+ Update: {
7669
+ created_at?: string;
7670
+ id?: string;
7671
+ is_package?: boolean;
7672
+ layers_per_load_carrier?: number | null;
7673
+ load_carrier?: string | null;
7674
+ package_id?: string | null;
7675
+ package_label?: string | null;
7676
+ packages_per_layer?: number | null;
7677
+ product_id?: string | null;
7678
+ tenant_id?: string;
7679
+ trade_item_floriday_id?: string | null;
7680
+ units_per_package?: number | null;
7681
+ updated_at?: string;
7682
+ };
7683
+ Relationships: [{
7684
+ foreignKeyName: "product_load_settings_package_id_fkey";
7685
+ columns: ["package_id"];
7686
+ isOneToOne: false;
7687
+ referencedRelation: "packages";
7688
+ referencedColumns: ["id"];
7689
+ }, {
7690
+ foreignKeyName: "product_load_settings_product_id_fkey";
7691
+ columns: ["product_id"];
7692
+ isOneToOne: false;
7693
+ referencedRelation: "products";
7694
+ referencedColumns: ["id"];
7695
+ }];
7696
+ };
7697
+ product_merge_log: {
7698
+ Row: {
7699
+ canonical_product_id: string | null;
7700
+ id: string;
7701
+ merged_at: string;
7702
+ merged_from_id: string;
7703
+ notes: string | null;
7704
+ snapshot: import("./types").Json;
7705
+ source_table: string;
7706
+ status: string;
7707
+ };
7708
+ Insert: {
7709
+ canonical_product_id?: string | null;
7710
+ id?: string;
7711
+ merged_at?: string;
7712
+ merged_from_id: string;
7713
+ notes?: string | null;
7714
+ snapshot?: import("./types").Json;
7715
+ source_table: string;
7716
+ status?: string;
7717
+ };
7718
+ Update: {
7719
+ canonical_product_id?: string | null;
7720
+ id?: string;
7721
+ merged_at?: string;
7722
+ merged_from_id?: string;
7723
+ notes?: string | null;
7724
+ snapshot?: import("./types").Json;
7725
+ source_table?: string;
7726
+ status?: string;
7727
+ };
7521
7728
  Relationships: [];
7522
7729
  };
7523
7730
  products: {
7524
7731
  Row: {
7732
+ article_number: string | null;
7525
7733
  barcode: string | null;
7526
7734
  batch: string;
7527
7735
  crates_per_layer: number;
7528
7736
  created_at: string;
7529
7737
  custom_fields: import("./types").Json;
7738
+ floriday_active: boolean;
7739
+ floriday_payload: import("./types").Json;
7740
+ floriday_trade_item_id: string | null;
7530
7741
  id: string;
7531
7742
  image_url: string | null;
7532
7743
  incoming_quantity: number;
@@ -7545,11 +7756,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7545
7756
  weight: string | null;
7546
7757
  };
7547
7758
  Insert: {
7759
+ article_number?: string | null;
7548
7760
  barcode?: string | null;
7549
7761
  batch: string;
7550
7762
  crates_per_layer?: number;
7551
7763
  created_at?: string;
7552
7764
  custom_fields?: import("./types").Json;
7765
+ floriday_active?: boolean;
7766
+ floriday_payload?: import("./types").Json;
7767
+ floriday_trade_item_id?: string | null;
7553
7768
  id?: string;
7554
7769
  image_url?: string | null;
7555
7770
  incoming_quantity?: number;
@@ -7568,11 +7783,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7568
7783
  weight?: string | null;
7569
7784
  };
7570
7785
  Update: {
7786
+ article_number?: string | null;
7571
7787
  barcode?: string | null;
7572
7788
  batch?: string;
7573
7789
  crates_per_layer?: number;
7574
7790
  created_at?: string;
7575
7791
  custom_fields?: import("./types").Json;
7792
+ floriday_active?: boolean;
7793
+ floriday_payload?: import("./types").Json;
7794
+ floriday_trade_item_id?: string | null;
7576
7795
  id?: string;
7577
7796
  image_url?: string | null;
7578
7797
  incoming_quantity?: number;
@@ -8481,8 +8700,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8481
8700
  order_id: string | null;
8482
8701
  order_item_id: string | null;
8483
8702
  order_source: string | null;
8703
+ parent_trade_item_key: string | null;
8484
8704
  physical_after: number | null;
8485
8705
  physical_before: number | null;
8706
+ production_batch_id: string | null;
8486
8707
  qty_delta: number;
8487
8708
  reason: string | null;
8488
8709
  reserved_after: number | null;
@@ -8498,8 +8719,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8498
8719
  order_id?: string | null;
8499
8720
  order_item_id?: string | null;
8500
8721
  order_source?: string | null;
8722
+ parent_trade_item_key?: string | null;
8501
8723
  physical_after?: number | null;
8502
8724
  physical_before?: number | null;
8725
+ production_batch_id?: string | null;
8503
8726
  qty_delta: number;
8504
8727
  reason?: string | null;
8505
8728
  reserved_after?: number | null;
@@ -8515,8 +8738,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8515
8738
  order_id?: string | null;
8516
8739
  order_item_id?: string | null;
8517
8740
  order_source?: string | null;
8741
+ parent_trade_item_key?: string | null;
8518
8742
  physical_after?: number | null;
8519
8743
  physical_before?: number | null;
8744
+ production_batch_id?: string | null;
8520
8745
  qty_delta?: number;
8521
8746
  reason?: string | null;
8522
8747
  reserved_after?: number | null;
@@ -8975,7 +9200,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8975
9200
  twinfield_connections: {
8976
9201
  Row: {
8977
9202
  access_token: string | null;
8978
- client_id: string;
9203
+ client_id: string | null;
8979
9204
  client_secret: string | null;
8980
9205
  cluster_uri: string | null;
8981
9206
  company_code: string | null;
@@ -8987,7 +9212,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8987
9212
  is_active: boolean;
8988
9213
  label: string | null;
8989
9214
  office_code: string | null;
8990
- redirect_uri: string;
9215
+ redirect_uri: string | null;
8991
9216
  refresh_token: string | null;
8992
9217
  token_expires_at: string | null;
8993
9218
  updated_at: string;
@@ -8995,7 +9220,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8995
9220
  };
8996
9221
  Insert: {
8997
9222
  access_token?: string | null;
8998
- client_id: string;
9223
+ client_id?: string | null;
8999
9224
  client_secret?: string | null;
9000
9225
  cluster_uri?: string | null;
9001
9226
  company_code?: string | null;
@@ -9007,7 +9232,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9007
9232
  is_active?: boolean;
9008
9233
  label?: string | null;
9009
9234
  office_code?: string | null;
9010
- redirect_uri: string;
9235
+ redirect_uri?: string | null;
9011
9236
  refresh_token?: string | null;
9012
9237
  token_expires_at?: string | null;
9013
9238
  updated_at?: string;
@@ -9015,7 +9240,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9015
9240
  };
9016
9241
  Update: {
9017
9242
  access_token?: string | null;
9018
- client_id?: string;
9243
+ client_id?: string | null;
9019
9244
  client_secret?: string | null;
9020
9245
  cluster_uri?: string | null;
9021
9246
  company_code?: string | null;
@@ -9027,7 +9252,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9027
9252
  is_active?: boolean;
9028
9253
  label?: string | null;
9029
9254
  office_code?: string | null;
9030
- redirect_uri?: string;
9255
+ redirect_uri?: string | null;
9031
9256
  refresh_token?: string | null;
9032
9257
  token_expires_at?: string | null;
9033
9258
  updated_at?: string;
@@ -10222,25 +10447,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10222
10447
  };
10223
10448
  Relationships: [];
10224
10449
  };
10225
- floriday_customer_discounts: {
10226
- Row: {
10227
- base_price: number | null;
10228
- buyer_organization_id: string | null;
10229
- currency: string | null;
10230
- discount_type: string | null;
10231
- discount_value: number | null;
10232
- min_quantity: number | null;
10233
- net_price: number | null;
10234
- product_group_id: string | null;
10235
- raw: import("./types").Json | null;
10236
- source: string | null;
10237
- source_id: string | null;
10238
- trade_item_id: string | null;
10239
- valid_from: string | null;
10240
- valid_until: string | null;
10241
- };
10242
- Relationships: [];
10243
- };
10244
10450
  local_customer_discounts: {
10245
10451
  Row: {
10246
10452
  base_price: number | null;
@@ -10544,6 +10750,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10544
10750
  };
10545
10751
  Returns: number;
10546
10752
  };
10753
+ _migrate_rewrite_stock_key: {
10754
+ Args: {
10755
+ _from_key: string;
10756
+ _to_key: string;
10757
+ };
10758
+ Returns: undefined;
10759
+ };
10547
10760
  afh_city_code: {
10548
10761
  Args: {
10549
10762
  _city: string;
@@ -10659,6 +10872,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10659
10872
  Args: never;
10660
10873
  Returns: undefined;
10661
10874
  };
10875
+ consume_bom_for_production: {
10876
+ Args: {
10877
+ p_connection_id: string;
10878
+ p_parent_id: string;
10879
+ p_parent_key: string;
10880
+ p_parent_kind: string;
10881
+ p_quantity: number;
10882
+ p_user_id: string;
10883
+ };
10884
+ Returns: import("./types").Json;
10885
+ } | {
10886
+ Args: {
10887
+ p_batch_id?: string;
10888
+ p_connection_id: string;
10889
+ p_parent_id: string;
10890
+ p_parent_key: string;
10891
+ p_parent_kind: string;
10892
+ p_quantity: number;
10893
+ p_user_id: string;
10894
+ };
10895
+ Returns: import("./types").Json;
10896
+ };
10662
10897
  consume_floriday_rate_limit: {
10663
10898
  Args: {
10664
10899
  p_bucket: string;
@@ -10710,6 +10945,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10710
10945
  table_name: string;
10711
10946
  }[];
10712
10947
  };
10948
+ delete_samenstelling: {
10949
+ Args: {
10950
+ p_parent_id: string;
10951
+ p_parent_kind: string;
10952
+ };
10953
+ Returns: import("./types").Json;
10954
+ };
10713
10955
  dispatch_carrier_signups_sql: {
10714
10956
  Args: {
10715
10957
  _catchup?: string;
@@ -10870,19 +11112,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10870
11112
  resource: string;
10871
11113
  }[];
10872
11114
  };
10873
- get_floriday_agreements_active: {
10874
- Args: {
10875
- p_on_date?: string;
10876
- };
10877
- Returns: {
10878
- buyer_organization_id: string;
10879
- data: import("./types").Json;
10880
- floriday_id: string;
10881
- status: string;
10882
- valid_from: string;
10883
- valid_until: string;
10884
- }[];
10885
- };
10886
11115
  get_floriday_clock_supplies_window: {
10887
11116
  Args: {
10888
11117
  p_from: string;
@@ -10955,6 +11184,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10955
11184
  minutes_since_success: number;
10956
11185
  }[];
10957
11186
  };
11187
+ get_group_allocation_keys: {
11188
+ Args: {
11189
+ p_product_id: string;
11190
+ };
11191
+ Returns: {
11192
+ k: string;
11193
+ ord: number;
11194
+ }[];
11195
+ };
11196
+ get_group_head_key: {
11197
+ Args: {
11198
+ p_group_id: string;
11199
+ };
11200
+ Returns: string;
11201
+ };
10958
11202
  get_offer_by_link_code: {
10959
11203
  Args: {
10960
11204
  p_code: string;
@@ -11065,6 +11309,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11065
11309
  };
11066
11310
  Returns: undefined;
11067
11311
  };
11312
+ mark_shipment_shipped: {
11313
+ Args: {
11314
+ p_shipment_id: string;
11315
+ };
11316
+ Returns: undefined;
11317
+ };
11318
+ merge_products: {
11319
+ Args: {
11320
+ _canonical: string;
11321
+ _loser: string;
11322
+ };
11323
+ Returns: undefined;
11324
+ };
11068
11325
  next_manufacture_partij: {
11069
11326
  Args: {
11070
11327
  _tenant_id: string;
@@ -11149,6 +11406,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11149
11406
  };
11150
11407
  Returns: undefined;
11151
11408
  };
11409
+ produce_designed_product: {
11410
+ Args: {
11411
+ p_parent_id: string;
11412
+ p_parent_kind: string;
11413
+ p_quantity: number;
11414
+ };
11415
+ Returns: import("./types").Json;
11416
+ };
11152
11417
  promote_trade_item_key: {
11153
11418
  Args: {
11154
11419
  p_new: string;
@@ -11156,6 +11421,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11156
11421
  };
11157
11422
  Returns: undefined;
11158
11423
  };
11424
+ recompute_all_reserved_stock: {
11425
+ Args: never;
11426
+ Returns: undefined;
11427
+ };
11159
11428
  recompute_order_status: {
11160
11429
  Args: {
11161
11430
  p_order_id: string;
@@ -11205,27 +11474,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11205
11474
  };
11206
11475
  Returns: undefined;
11207
11476
  };
11477
+ resolve_group_allocation: {
11478
+ Args: {
11479
+ _needed: number;
11480
+ _product_group_id: string;
11481
+ };
11482
+ Returns: {
11483
+ allocated: number;
11484
+ trade_item_id: string;
11485
+ }[];
11486
+ };
11487
+ resolve_group_member_stock_key: {
11488
+ Args: {
11489
+ p_trade_item_id: string;
11490
+ };
11491
+ Returns: string;
11492
+ };
11208
11493
  resolve_product_id_for_item: {
11209
11494
  Args: {
11210
11495
  p_product_name: string;
11211
11496
  };
11212
11497
  Returns: string;
11213
11498
  };
11214
- schedule_floriday_additional_services_sync: {
11499
+ resolve_stock_trade_item_key: {
11215
11500
  Args: {
11216
- p_apikey: string;
11217
- p_url: string;
11501
+ p_product_id: string;
11218
11502
  };
11219
- Returns: number;
11503
+ Returns: string;
11220
11504
  };
11221
- schedule_floriday_agreement_calloffs_sync: {
11505
+ reverse_production: {
11222
11506
  Args: {
11223
- p_apikey: string;
11224
- p_url: string;
11507
+ p_connection_id?: string;
11508
+ p_parent_key: string;
11509
+ p_quantity: number;
11510
+ p_reason?: string;
11511
+ p_user_id?: string;
11225
11512
  };
11226
- Returns: number;
11513
+ Returns: import("./types").Json;
11227
11514
  };
11228
- schedule_floriday_agreements_sync: {
11515
+ schedule_floriday_additional_services_sync: {
11229
11516
  Args: {
11230
11517
  p_apikey: string;
11231
11518
  p_url: string;