@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
@@ -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,16 +7617,85 @@ 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
  };
7520
- Relationships: [];
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
+ }];
7521
7695
  };
7522
7696
  products: {
7523
7697
  Row: {
7698
+ article_number: string | null;
7524
7699
  barcode: string | null;
7525
7700
  batch: string;
7526
7701
  crates_per_layer: number;
@@ -7544,6 +7719,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7544
7719
  weight: string | null;
7545
7720
  };
7546
7721
  Insert: {
7722
+ article_number?: string | null;
7547
7723
  barcode?: string | null;
7548
7724
  batch: string;
7549
7725
  crates_per_layer?: number;
@@ -7567,6 +7743,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7567
7743
  weight?: string | null;
7568
7744
  };
7569
7745
  Update: {
7746
+ article_number?: string | null;
7570
7747
  barcode?: string | null;
7571
7748
  batch?: string;
7572
7749
  crates_per_layer?: number;
@@ -8480,8 +8657,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8480
8657
  order_id: string | null;
8481
8658
  order_item_id: string | null;
8482
8659
  order_source: string | null;
8660
+ parent_trade_item_key: string | null;
8483
8661
  physical_after: number | null;
8484
8662
  physical_before: number | null;
8663
+ production_batch_id: string | null;
8485
8664
  qty_delta: number;
8486
8665
  reason: string | null;
8487
8666
  reserved_after: number | null;
@@ -8497,8 +8676,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8497
8676
  order_id?: string | null;
8498
8677
  order_item_id?: string | null;
8499
8678
  order_source?: string | null;
8679
+ parent_trade_item_key?: string | null;
8500
8680
  physical_after?: number | null;
8501
8681
  physical_before?: number | null;
8682
+ production_batch_id?: string | null;
8502
8683
  qty_delta: number;
8503
8684
  reason?: string | null;
8504
8685
  reserved_after?: number | null;
@@ -8514,8 +8695,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8514
8695
  order_id?: string | null;
8515
8696
  order_item_id?: string | null;
8516
8697
  order_source?: string | null;
8698
+ parent_trade_item_key?: string | null;
8517
8699
  physical_after?: number | null;
8518
8700
  physical_before?: number | null;
8701
+ production_batch_id?: string | null;
8519
8702
  qty_delta?: number;
8520
8703
  reason?: string | null;
8521
8704
  reserved_after?: number | null;
@@ -8974,7 +9157,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8974
9157
  twinfield_connections: {
8975
9158
  Row: {
8976
9159
  access_token: string | null;
8977
- client_id: string;
9160
+ client_id: string | null;
8978
9161
  client_secret: string | null;
8979
9162
  cluster_uri: string | null;
8980
9163
  company_code: string | null;
@@ -8986,7 +9169,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8986
9169
  is_active: boolean;
8987
9170
  label: string | null;
8988
9171
  office_code: string | null;
8989
- redirect_uri: string;
9172
+ redirect_uri: string | null;
8990
9173
  refresh_token: string | null;
8991
9174
  token_expires_at: string | null;
8992
9175
  updated_at: string;
@@ -8994,7 +9177,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8994
9177
  };
8995
9178
  Insert: {
8996
9179
  access_token?: string | null;
8997
- client_id: string;
9180
+ client_id?: string | null;
8998
9181
  client_secret?: string | null;
8999
9182
  cluster_uri?: string | null;
9000
9183
  company_code?: string | null;
@@ -9006,7 +9189,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9006
9189
  is_active?: boolean;
9007
9190
  label?: string | null;
9008
9191
  office_code?: string | null;
9009
- redirect_uri: string;
9192
+ redirect_uri?: string | null;
9010
9193
  refresh_token?: string | null;
9011
9194
  token_expires_at?: string | null;
9012
9195
  updated_at?: string;
@@ -9014,7 +9197,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9014
9197
  };
9015
9198
  Update: {
9016
9199
  access_token?: string | null;
9017
- client_id?: string;
9200
+ client_id?: string | null;
9018
9201
  client_secret?: string | null;
9019
9202
  cluster_uri?: string | null;
9020
9203
  company_code?: string | null;
@@ -9026,7 +9209,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9026
9209
  is_active?: boolean;
9027
9210
  label?: string | null;
9028
9211
  office_code?: string | null;
9029
- redirect_uri?: string;
9212
+ redirect_uri?: string | null;
9030
9213
  refresh_token?: string | null;
9031
9214
  token_expires_at?: string | null;
9032
9215
  updated_at?: string;
@@ -10221,25 +10404,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10221
10404
  };
10222
10405
  Relationships: [];
10223
10406
  };
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
10407
  local_customer_discounts: {
10244
10408
  Row: {
10245
10409
  base_price: number | null;
@@ -10658,6 +10822,28 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10658
10822
  Args: never;
10659
10823
  Returns: undefined;
10660
10824
  };
10825
+ consume_bom_for_production: {
10826
+ Args: {
10827
+ p_connection_id: string;
10828
+ p_parent_id: string;
10829
+ p_parent_key: string;
10830
+ p_parent_kind: string;
10831
+ p_quantity: number;
10832
+ p_user_id: string;
10833
+ };
10834
+ Returns: import("./types").Json;
10835
+ } | {
10836
+ Args: {
10837
+ p_batch_id?: string;
10838
+ p_connection_id: string;
10839
+ p_parent_id: string;
10840
+ p_parent_key: string;
10841
+ p_parent_kind: string;
10842
+ p_quantity: number;
10843
+ p_user_id: string;
10844
+ };
10845
+ Returns: import("./types").Json;
10846
+ };
10661
10847
  consume_floriday_rate_limit: {
10662
10848
  Args: {
10663
10849
  p_bucket: string;
@@ -10709,6 +10895,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10709
10895
  table_name: string;
10710
10896
  }[];
10711
10897
  };
10898
+ delete_samenstelling: {
10899
+ Args: {
10900
+ p_parent_id: string;
10901
+ p_parent_kind: string;
10902
+ };
10903
+ Returns: import("./types").Json;
10904
+ };
10712
10905
  dispatch_carrier_signups_sql: {
10713
10906
  Args: {
10714
10907
  _catchup?: string;
@@ -10869,19 +11062,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10869
11062
  resource: string;
10870
11063
  }[];
10871
11064
  };
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
11065
  get_floriday_clock_supplies_window: {
10886
11066
  Args: {
10887
11067
  p_from: string;
@@ -10954,6 +11134,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10954
11134
  minutes_since_success: number;
10955
11135
  }[];
10956
11136
  };
11137
+ get_group_allocation_keys: {
11138
+ Args: {
11139
+ p_product_id: string;
11140
+ };
11141
+ Returns: {
11142
+ k: string;
11143
+ ord: number;
11144
+ }[];
11145
+ };
11146
+ get_group_head_key: {
11147
+ Args: {
11148
+ p_group_id: string;
11149
+ };
11150
+ Returns: string;
11151
+ };
10957
11152
  get_offer_by_link_code: {
10958
11153
  Args: {
10959
11154
  p_code: string;
@@ -11064,6 +11259,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11064
11259
  };
11065
11260
  Returns: undefined;
11066
11261
  };
11262
+ mark_shipment_shipped: {
11263
+ Args: {
11264
+ p_shipment_id: string;
11265
+ };
11266
+ Returns: undefined;
11267
+ };
11067
11268
  next_manufacture_partij: {
11068
11269
  Args: {
11069
11270
  _tenant_id: string;
@@ -11148,6 +11349,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11148
11349
  };
11149
11350
  Returns: undefined;
11150
11351
  };
11352
+ produce_designed_product: {
11353
+ Args: {
11354
+ p_parent_id: string;
11355
+ p_parent_kind: string;
11356
+ p_quantity: number;
11357
+ };
11358
+ Returns: import("./types").Json;
11359
+ };
11151
11360
  promote_trade_item_key: {
11152
11361
  Args: {
11153
11362
  p_new: string;
@@ -11155,6 +11364,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11155
11364
  };
11156
11365
  Returns: undefined;
11157
11366
  };
11367
+ recompute_all_reserved_stock: {
11368
+ Args: never;
11369
+ Returns: undefined;
11370
+ };
11158
11371
  recompute_order_status: {
11159
11372
  Args: {
11160
11373
  p_order_id: string;
@@ -11204,27 +11417,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11204
11417
  };
11205
11418
  Returns: undefined;
11206
11419
  };
11420
+ resolve_group_allocation: {
11421
+ Args: {
11422
+ _needed: number;
11423
+ _product_group_id: string;
11424
+ };
11425
+ Returns: {
11426
+ allocated: number;
11427
+ trade_item_id: string;
11428
+ }[];
11429
+ };
11430
+ resolve_group_member_stock_key: {
11431
+ Args: {
11432
+ p_trade_item_id: string;
11433
+ };
11434
+ Returns: string;
11435
+ };
11207
11436
  resolve_product_id_for_item: {
11208
11437
  Args: {
11209
11438
  p_product_name: string;
11210
11439
  };
11211
11440
  Returns: string;
11212
11441
  };
11213
- schedule_floriday_additional_services_sync: {
11442
+ resolve_stock_trade_item_key: {
11214
11443
  Args: {
11215
- p_apikey: string;
11216
- p_url: string;
11444
+ p_product_id: string;
11217
11445
  };
11218
- Returns: number;
11446
+ Returns: string;
11219
11447
  };
11220
- schedule_floriday_agreement_calloffs_sync: {
11448
+ reverse_production: {
11221
11449
  Args: {
11222
- p_apikey: string;
11223
- p_url: string;
11450
+ p_connection_id?: string;
11451
+ p_parent_key: string;
11452
+ p_quantity: number;
11453
+ p_reason?: string;
11454
+ p_user_id?: string;
11224
11455
  };
11225
- Returns: number;
11456
+ Returns: import("./types").Json;
11226
11457
  };
11227
- schedule_floriday_agreements_sync: {
11458
+ schedule_floriday_additional_services_sync: {
11228
11459
  Args: {
11229
11460
  p_apikey: string;
11230
11461
  p_url: string;