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