@flowselections/floriday-verkoop-module 1.0.103 → 1.0.106

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 (140) hide show
  1. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  2. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  3. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  4. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/CartLayersDialog.d.ts +1 -1
  6. package/dist-lib/components/verkoop/CartLayersDialog.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/ConfirmDialog.d.ts +1 -1
  8. package/dist-lib/components/verkoop/ConfirmDialog.d.ts.map +1 -1
  9. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  10. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  11. package/dist-lib/components/verkoop/CreateOrderPage.js +10 -1
  12. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  13. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  14. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  15. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  16. package/dist-lib/components/verkoop/EngineBufferCard.d.ts +1 -1
  17. package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
  18. package/dist-lib/components/verkoop/FloridayStageLine.d.ts +2 -2
  19. package/dist-lib/components/verkoop/FloridayStageLine.d.ts.map +1 -1
  20. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +1 -1
  21. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -1
  22. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  23. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  24. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts +1 -1
  25. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts.map +1 -1
  26. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  27. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  28. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  29. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  30. package/dist-lib/components/verkoop/OrderLinePackingCard.d.ts +1 -1
  31. package/dist-lib/components/verkoop/OrderLinePackingCard.d.ts.map +1 -1
  32. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts +1 -1
  33. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts.map +1 -1
  34. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  35. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  36. package/dist-lib/components/verkoop/PlanCoverageBadge.d.ts +1 -1
  37. package/dist-lib/components/verkoop/PlanCoverageBadge.d.ts.map +1 -1
  38. package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts +1 -1
  39. package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts.map +1 -1
  40. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  41. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  42. package/dist-lib/components/verkoop/SalesOrderDetailPage.js +6 -6
  43. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  44. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  45. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  46. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  47. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  48. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  49. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +2 -1
  50. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  51. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  52. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  53. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts +1 -1
  54. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts.map +1 -1
  55. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  56. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  57. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  58. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  59. package/dist-lib/integrations/supabase/client.js +1 -1
  60. package/dist-lib/integrations/supabase/client.server.js +1 -1
  61. package/dist-lib/integrations/supabase/types.d.ts +402 -18
  62. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  63. package/dist-lib/lib/belading.server.d.ts +3 -0
  64. package/dist-lib/lib/belading.server.d.ts.map +1 -1
  65. package/dist-lib/lib/belading.server.js +9 -3
  66. package/dist-lib/lib/create-order.functions.d.ts +7 -4
  67. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/create-order.functions.js +60 -33
  69. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/floriday-mirror.functions.js +101 -161
  71. package/dist-lib/lib/floriday-promote-customer.check.d.ts +2 -0
  72. package/dist-lib/lib/floriday-promote-customer.check.d.ts.map +1 -0
  73. package/dist-lib/lib/floriday-promote-customer.check.js +28 -0
  74. package/dist-lib/lib/floriday-promote-customer.d.ts +12 -0
  75. package/dist-lib/lib/floriday-promote-customer.d.ts.map +1 -0
  76. package/dist-lib/lib/floriday-promote-customer.js +43 -0
  77. package/dist-lib/lib/module-version.d.ts +1 -1
  78. package/dist-lib/lib/module-version.js +1 -1
  79. package/dist-lib/lib/order-cart-count.server.d.ts +8 -0
  80. package/dist-lib/lib/order-cart-count.server.d.ts.map +1 -0
  81. package/dist-lib/lib/order-cart-count.server.js +69 -0
  82. package/dist-lib/lib/packing-snapshot.check.d.ts +2 -0
  83. package/dist-lib/lib/packing-snapshot.check.d.ts.map +1 -0
  84. package/dist-lib/lib/packing-snapshot.check.js +45 -0
  85. package/dist-lib/lib/packing-snapshot.d.ts +50 -0
  86. package/dist-lib/lib/packing-snapshot.d.ts.map +1 -0
  87. package/dist-lib/lib/packing-snapshot.js +105 -0
  88. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  89. package/dist-lib/lib/salesorders-list.server.js +12 -7
  90. package/dist-lib/lib/tradeitems.functions.d.ts +1117 -12
  91. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  92. package/dist-lib/lib/useBufferEvents.d.ts +2 -2
  93. package/dist-lib/lib/useBufferEvents.d.ts.map +1 -1
  94. package/dist-lib/lib/useLocalSalesOrderDetailQuery.d.ts +2 -2
  95. package/dist-lib/lib/useLocalSalesOrderDetailQuery.d.ts.map +1 -1
  96. package/dist-lib/lib/useSalesOrderDetailQuery.d.ts +1 -1
  97. package/dist-lib/lib/useSalesOrderDetailQuery.d.ts.map +1 -1
  98. package/dist-lib/lib/useSalesOrdersQuery.d.ts +1 -1
  99. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  100. package/package.json +1 -1
  101. package/schema/verkoop.sql +86 -14
  102. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +0 -9
  103. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +0 -1
  104. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +0 -26
  105. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +0 -6
  106. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +0 -1
  107. package/dist-lib/components/karindeling/AfmetingenTab.js +0 -128
  108. package/dist-lib/components/karindeling/KarindelingPage.d.ts +0 -2
  109. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +0 -1
  110. package/dist-lib/components/karindeling/KarindelingPage.js +0 -102
  111. package/dist-lib/components/ui/dropdown-menu.d.ts +0 -9
  112. package/dist-lib/components/ui/dropdown-menu.d.ts.map +0 -1
  113. package/dist-lib/components/ui/dropdown-menu.js +0 -14
  114. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +0 -4
  115. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +0 -1
  116. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.js +0 -95
  117. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +0 -5
  118. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +0 -1
  119. package/dist-lib/components/verkoop/CreateOrderDialog.js +0 -33
  120. package/dist-lib/lib/cron/mirror-floriday-orders.d.ts +0 -4
  121. package/dist-lib/lib/cron/mirror-floriday-orders.d.ts.map +0 -1
  122. package/dist-lib/lib/cron/mirror-floriday-orders.js +0 -23
  123. package/dist-lib/lib/cron/push-order-statuses.d.ts +0 -4
  124. package/dist-lib/lib/cron/push-order-statuses.d.ts.map +0 -1
  125. package/dist-lib/lib/cron/push-order-statuses.js +0 -23
  126. package/dist-lib/lib/floriday/floriday.server.d.ts +0 -14
  127. package/dist-lib/lib/floriday/floriday.server.d.ts.map +0 -1
  128. package/dist-lib/lib/floriday/floriday.server.js +0 -92
  129. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +0 -4736
  130. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +0 -1
  131. package/dist-lib/lib/floriday/sales-orders.functions.js +0 -193
  132. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +0 -77581
  133. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +0 -1
  134. package/dist-lib/lib/floriday-auto-fulfillment.functions.js +0 -65
  135. package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts +0 -21
  136. package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts.map +0 -1
  137. package/dist-lib/lib/floriday-auto-fulfillment.server.js +0 -352
  138. package/dist-lib/lib/floriday-status-sync.server.d.ts +0 -14
  139. package/dist-lib/lib/floriday-status-sync.server.d.ts.map +0 -1
  140. package/dist-lib/lib/floriday-status-sync.server.js +0 -130
@@ -1531,6 +1531,7 @@ export type Database = {
1531
1531
  cart_numbers: {
1532
1532
  Row: {
1533
1533
  assigned_at: string;
1534
+ cart_id: string | null;
1534
1535
  cart_index: number;
1535
1536
  cart_number: string;
1536
1537
  day_seq: number | null;
@@ -1544,6 +1545,7 @@ export type Database = {
1544
1545
  };
1545
1546
  Insert: {
1546
1547
  assigned_at?: string;
1548
+ cart_id?: string | null;
1547
1549
  cart_index: number;
1548
1550
  cart_number: string;
1549
1551
  day_seq?: number | null;
@@ -1557,6 +1559,7 @@ export type Database = {
1557
1559
  };
1558
1560
  Update: {
1559
1561
  assigned_at?: string;
1562
+ cart_id?: string | null;
1560
1563
  cart_index?: number;
1561
1564
  cart_number?: string;
1562
1565
  day_seq?: number | null;
@@ -8206,6 +8209,53 @@ export type Database = {
8206
8209
  };
8207
8210
  Relationships: [];
8208
8211
  };
8212
+ floriday_packing_mismatches: {
8213
+ Row: {
8214
+ api_value: Json | null;
8215
+ cache_value: Json | null;
8216
+ connection_id: string;
8217
+ details: string | null;
8218
+ detected_at: string;
8219
+ entity: string;
8220
+ floriday_id: string;
8221
+ id: string;
8222
+ last_checked_at: string;
8223
+ resolved_at: string | null;
8224
+ };
8225
+ Insert: {
8226
+ api_value?: Json | null;
8227
+ cache_value?: Json | null;
8228
+ connection_id: string;
8229
+ details?: string | null;
8230
+ detected_at?: string;
8231
+ entity: string;
8232
+ floriday_id: string;
8233
+ id?: string;
8234
+ last_checked_at?: string;
8235
+ resolved_at?: string | null;
8236
+ };
8237
+ Update: {
8238
+ api_value?: Json | null;
8239
+ cache_value?: Json | null;
8240
+ connection_id?: string;
8241
+ details?: string | null;
8242
+ detected_at?: string;
8243
+ entity?: string;
8244
+ floriday_id?: string;
8245
+ id?: string;
8246
+ last_checked_at?: string;
8247
+ resolved_at?: string | null;
8248
+ };
8249
+ Relationships: [
8250
+ {
8251
+ foreignKeyName: "floriday_packing_mismatches_connection_id_fkey";
8252
+ columns: ["connection_id"];
8253
+ isOneToOne: false;
8254
+ referencedRelation: "floriday_connections";
8255
+ referencedColumns: ["id"];
8256
+ }
8257
+ ];
8258
+ };
8209
8259
  floriday_packings_cache: {
8210
8260
  Row: {
8211
8261
  connection_id: string;
@@ -12149,6 +12199,36 @@ export type Database = {
12149
12199
  };
12150
12200
  Relationships: [];
12151
12201
  };
12202
+ logistics_belading_bevestigingen: {
12203
+ Row: {
12204
+ bevestigd_door: string | null;
12205
+ bevestigd_op: string;
12206
+ created_at: string;
12207
+ id: string;
12208
+ order_id: string;
12209
+ redenen: string[];
12210
+ verpakking_sleutel: string;
12211
+ };
12212
+ Insert: {
12213
+ bevestigd_door?: string | null;
12214
+ bevestigd_op?: string;
12215
+ created_at?: string;
12216
+ id?: string;
12217
+ order_id: string;
12218
+ redenen?: string[];
12219
+ verpakking_sleutel: string;
12220
+ };
12221
+ Update: {
12222
+ bevestigd_door?: string | null;
12223
+ bevestigd_op?: string;
12224
+ created_at?: string;
12225
+ id?: string;
12226
+ order_id?: string;
12227
+ redenen?: string[];
12228
+ verpakking_sleutel?: string;
12229
+ };
12230
+ Relationships: [];
12231
+ };
12152
12232
  logistics_capacity_alerts: {
12153
12233
  Row: {
12154
12234
  available_minutes: number;
@@ -14188,6 +14268,7 @@ export type Database = {
14188
14268
  bron_id: string;
14189
14269
  cart_id: string | null;
14190
14270
  created_at: string;
14271
+ eigen_sticker_id: string | null;
14191
14272
  fulfillment_order_id: string | null;
14192
14273
  handled_at: string | null;
14193
14274
  handled_error: string | null;
@@ -14214,6 +14295,7 @@ export type Database = {
14214
14295
  bron_id: string;
14215
14296
  cart_id?: string | null;
14216
14297
  created_at?: string;
14298
+ eigen_sticker_id?: string | null;
14217
14299
  fulfillment_order_id?: string | null;
14218
14300
  handled_at?: string | null;
14219
14301
  handled_error?: string | null;
@@ -14240,6 +14322,7 @@ export type Database = {
14240
14322
  bron_id?: string;
14241
14323
  cart_id?: string | null;
14242
14324
  created_at?: string;
14325
+ eigen_sticker_id?: string | null;
14243
14326
  fulfillment_order_id?: string | null;
14244
14327
  handled_at?: string | null;
14245
14328
  handled_error?: string | null;
@@ -17516,60 +17599,72 @@ export type Database = {
17516
17599
  created_at: string;
17517
17600
  id: string;
17518
17601
  layers_per_cart: number | null;
17602
+ load_carrier_type: string | null;
17519
17603
  needs_sticker: boolean;
17520
17604
  order_id: string;
17521
17605
  packing_locked_at: string | null;
17522
17606
  packing_locked_by: string | null;
17607
+ packing_source: string | null;
17523
17608
  plants_per_crate: number | null;
17524
17609
  product_id: string | null;
17525
17610
  product_name: string;
17526
17611
  quantity: number;
17612
+ quantity_crates: number | null;
17527
17613
  quarantine_reason: string | null;
17528
17614
  quarantined_at: string | null;
17529
17615
  quarantined_into_order_id: string | null;
17530
17616
  source_line_key: string | null;
17531
17617
  unit: string;
17532
17618
  unit_price: number | null;
17619
+ vbn_package_code: string | null;
17533
17620
  };
17534
17621
  Insert: {
17535
17622
  crates_per_layer?: number | null;
17536
17623
  created_at?: string;
17537
17624
  id?: string;
17538
17625
  layers_per_cart?: number | null;
17626
+ load_carrier_type?: string | null;
17539
17627
  needs_sticker?: boolean;
17540
17628
  order_id: string;
17541
17629
  packing_locked_at?: string | null;
17542
17630
  packing_locked_by?: string | null;
17631
+ packing_source?: string | null;
17543
17632
  plants_per_crate?: number | null;
17544
17633
  product_id?: string | null;
17545
17634
  product_name: string;
17546
17635
  quantity?: number;
17636
+ quantity_crates?: number | null;
17547
17637
  quarantine_reason?: string | null;
17548
17638
  quarantined_at?: string | null;
17549
17639
  quarantined_into_order_id?: string | null;
17550
17640
  source_line_key?: string | null;
17551
17641
  unit?: string;
17552
17642
  unit_price?: number | null;
17643
+ vbn_package_code?: string | null;
17553
17644
  };
17554
17645
  Update: {
17555
17646
  crates_per_layer?: number | null;
17556
17647
  created_at?: string;
17557
17648
  id?: string;
17558
17649
  layers_per_cart?: number | null;
17650
+ load_carrier_type?: string | null;
17559
17651
  needs_sticker?: boolean;
17560
17652
  order_id?: string;
17561
17653
  packing_locked_at?: string | null;
17562
17654
  packing_locked_by?: string | null;
17655
+ packing_source?: string | null;
17563
17656
  plants_per_crate?: number | null;
17564
17657
  product_id?: string | null;
17565
17658
  product_name?: string;
17566
17659
  quantity?: number;
17660
+ quantity_crates?: number | null;
17567
17661
  quarantine_reason?: string | null;
17568
17662
  quarantined_at?: string | null;
17569
17663
  quarantined_into_order_id?: string | null;
17570
17664
  source_line_key?: string | null;
17571
17665
  unit?: string;
17572
17666
  unit_price?: number | null;
17667
+ vbn_package_code?: string | null;
17573
17668
  };
17574
17669
  Relationships: [
17575
17670
  {
@@ -21439,6 +21534,85 @@ export type Database = {
21439
21534
  };
21440
21535
  Relationships: [];
21441
21536
  };
21537
+ product_packings: {
21538
+ Row: {
21539
+ created_at: string;
21540
+ custom_package_id: string | null;
21541
+ customer_organization_ids: string[];
21542
+ floriday_packing_id: string | null;
21543
+ fust_type_id: string | null;
21544
+ id: string;
21545
+ is_primary: boolean;
21546
+ layers_per_load_carrier: number | null;
21547
+ load_carrier: string | null;
21548
+ packages_per_layer: number | null;
21549
+ pieces_per_package: number | null;
21550
+ product_id: string;
21551
+ sort_order: number;
21552
+ source: string;
21553
+ updated_at: string;
21554
+ vbn_package_code: number | null;
21555
+ };
21556
+ Insert: {
21557
+ created_at?: string;
21558
+ custom_package_id?: string | null;
21559
+ customer_organization_ids?: string[];
21560
+ floriday_packing_id?: string | null;
21561
+ fust_type_id?: string | null;
21562
+ id?: string;
21563
+ is_primary?: boolean;
21564
+ layers_per_load_carrier?: number | null;
21565
+ load_carrier?: string | null;
21566
+ packages_per_layer?: number | null;
21567
+ pieces_per_package?: number | null;
21568
+ product_id: string;
21569
+ sort_order?: number;
21570
+ source?: string;
21571
+ updated_at?: string;
21572
+ vbn_package_code?: number | null;
21573
+ };
21574
+ Update: {
21575
+ created_at?: string;
21576
+ custom_package_id?: string | null;
21577
+ customer_organization_ids?: string[];
21578
+ floriday_packing_id?: string | null;
21579
+ fust_type_id?: string | null;
21580
+ id?: string;
21581
+ is_primary?: boolean;
21582
+ layers_per_load_carrier?: number | null;
21583
+ load_carrier?: string | null;
21584
+ packages_per_layer?: number | null;
21585
+ pieces_per_package?: number | null;
21586
+ product_id?: string;
21587
+ sort_order?: number;
21588
+ source?: string;
21589
+ updated_at?: string;
21590
+ vbn_package_code?: number | null;
21591
+ };
21592
+ Relationships: [
21593
+ {
21594
+ foreignKeyName: "product_packings_fust_type_id_fkey";
21595
+ columns: ["fust_type_id"];
21596
+ isOneToOne: false;
21597
+ referencedRelation: "fust_types";
21598
+ referencedColumns: ["id"];
21599
+ },
21600
+ {
21601
+ foreignKeyName: "product_packings_product_id_fkey";
21602
+ columns: ["product_id"];
21603
+ isOneToOne: false;
21604
+ referencedRelation: "logistics_product_dimensions";
21605
+ referencedColumns: ["product_id"];
21606
+ },
21607
+ {
21608
+ foreignKeyName: "product_packings_product_id_fkey";
21609
+ columns: ["product_id"];
21610
+ isOneToOne: false;
21611
+ referencedRelation: "products";
21612
+ referencedColumns: ["id"];
21613
+ }
21614
+ ];
21615
+ };
21442
21616
  product_suppliers: {
21443
21617
  Row: {
21444
21618
  created_at: string;
@@ -24640,6 +24814,10 @@ export type Database = {
24640
24814
  superseded_at: string | null;
24641
24815
  updated_at: string;
24642
24816
  user_id: string;
24817
+ write_enabled: boolean;
24818
+ write_enabled_at: string | null;
24819
+ write_enabled_by: string | null;
24820
+ write_enabled_reason: string | null;
24643
24821
  };
24644
24822
  Insert: {
24645
24823
  account_key?: string | null;
@@ -24666,6 +24844,10 @@ export type Database = {
24666
24844
  superseded_at?: string | null;
24667
24845
  updated_at?: string;
24668
24846
  user_id: string;
24847
+ write_enabled?: boolean;
24848
+ write_enabled_at?: string | null;
24849
+ write_enabled_by?: string | null;
24850
+ write_enabled_reason?: string | null;
24669
24851
  };
24670
24852
  Update: {
24671
24853
  account_key?: string | null;
@@ -24692,6 +24874,10 @@ export type Database = {
24692
24874
  superseded_at?: string | null;
24693
24875
  updated_at?: string;
24694
24876
  user_id?: string;
24877
+ write_enabled?: boolean;
24878
+ write_enabled_at?: string | null;
24879
+ write_enabled_by?: string | null;
24880
+ write_enabled_reason?: string | null;
24695
24881
  };
24696
24882
  Relationships: [];
24697
24883
  };
@@ -25580,6 +25766,21 @@ export type Database = {
25580
25766
  };
25581
25767
  Relationships: [];
25582
25768
  };
25769
+ twinfield_schema_upgrades: {
25770
+ Row: {
25771
+ applied_at: string;
25772
+ key: string;
25773
+ };
25774
+ Insert: {
25775
+ applied_at?: string;
25776
+ key: string;
25777
+ };
25778
+ Update: {
25779
+ applied_at?: string;
25780
+ key?: string;
25781
+ };
25782
+ Relationships: [];
25783
+ };
25583
25784
  twinfield_session_cache: {
25584
25785
  Row: {
25585
25786
  cluster: string;
@@ -29592,6 +29793,15 @@ export type Database = {
29592
29793
  };
29593
29794
  Returns: Json;
29594
29795
  };
29796
+ afh_resolve_cart_id: {
29797
+ Args: {
29798
+ p_cart_index: number;
29799
+ p_given: string;
29800
+ p_order: string;
29801
+ p_source: string;
29802
+ };
29803
+ Returns: string;
29804
+ };
29595
29805
  afh_signup_config: {
29596
29806
  Args: never;
29597
29807
  Returns: Json;
@@ -30423,6 +30633,8 @@ export type Database = {
30423
30633
  cart_index: number;
30424
30634
  cart_number: string;
30425
30635
  cart_number_id: string;
30636
+ country_code: string;
30637
+ crates_on_cart: number;
30426
30638
  order_id: string;
30427
30639
  order_number: string;
30428
30640
  order_source: string;
@@ -31883,6 +32095,10 @@ export type Database = {
31883
32095
  Args: never;
31884
32096
  Returns: Json;
31885
32097
  };
32098
+ klanten_refresh_grouped_if_stale: {
32099
+ Args: never;
32100
+ Returns: boolean;
32101
+ };
31886
32102
  klanten_set_auto_promote: {
31887
32103
  Args: {
31888
32104
  p_kind: string;
@@ -31941,6 +32157,13 @@ export type Database = {
31941
32157
  Args: never;
31942
32158
  Returns: Json;
31943
32159
  };
32160
+ layout_voor_document: {
32161
+ Args: {
32162
+ p_documenttype: string;
32163
+ p_order_id: string;
32164
+ };
32165
+ Returns: Json;
32166
+ };
31944
32167
  layout_zorg_systeemlayouts: {
31945
32168
  Args: never;
31946
32169
  Returns: number;
@@ -32227,6 +32450,14 @@ export type Database = {
32227
32450
  Args: never;
32228
32451
  Returns: number;
32229
32452
  };
32453
+ logistics_belading_bevestig: {
32454
+ Args: {
32455
+ p_order_id: string;
32456
+ p_redenen?: string[];
32457
+ p_sleutel: string;
32458
+ };
32459
+ Returns: Json;
32460
+ };
32230
32461
  logistics_belading_verstuurder: {
32231
32462
  Args: never;
32232
32463
  Returns: string;
@@ -32613,6 +32844,16 @@ export type Database = {
32613
32844
  order_uuid: string;
32614
32845
  }[];
32615
32846
  };
32847
+ logistics_cart_seq_dubbel: {
32848
+ Args: {
32849
+ p_order_uuid?: string;
32850
+ };
32851
+ Returns: {
32852
+ cart_ids: string[];
32853
+ cart_index: number;
32854
+ order_uuid: string;
32855
+ }[];
32856
+ };
32616
32857
  logistics_cart_slip_plan: {
32617
32858
  Args: {
32618
32859
  p_order_id: string;
@@ -33035,6 +33276,13 @@ export type Database = {
33035
33276
  };
33036
33277
  Returns: Json;
33037
33278
  };
33279
+ logistics_document_for_order: {
33280
+ Args: {
33281
+ p_documenttype: string;
33282
+ p_order_id: string;
33283
+ };
33284
+ Returns: Json;
33285
+ };
33038
33286
  logistics_document_layout: {
33039
33287
  Args: {
33040
33288
  _document_code: string;
@@ -33048,6 +33296,10 @@ export type Database = {
33048
33296
  };
33049
33297
  Returns: Json;
33050
33298
  };
33299
+ logistics_document_selection_status: {
33300
+ Args: never;
33301
+ Returns: Json;
33302
+ };
33051
33303
  logistics_document_station: {
33052
33304
  Args: {
33053
33305
  _document_code: string;
@@ -33353,6 +33605,12 @@ export type Database = {
33353
33605
  Args: never;
33354
33606
  Returns: Json;
33355
33607
  };
33608
+ logistics_floriday_shipping_document: {
33609
+ Args: {
33610
+ p_order_id: string;
33611
+ };
33612
+ Returns: Json;
33613
+ };
33356
33614
  logistics_floriday_status_updates_enabled: {
33357
33615
  Args: never;
33358
33616
  Returns: boolean;
@@ -33866,6 +34124,21 @@ export type Database = {
33866
34124
  Args: never;
33867
34125
  Returns: Json;
33868
34126
  };
34127
+ logistics_own_sticker_count: {
34128
+ Args: {
34129
+ p_ppc_product: number;
34130
+ p_ppc_regel: number;
34131
+ p_quantity: number;
34132
+ p_unit: string;
34133
+ };
34134
+ Returns: number;
34135
+ };
34136
+ logistics_own_sticker_sync: {
34137
+ Args: {
34138
+ p_limit?: number;
34139
+ };
34140
+ Returns: Json;
34141
+ };
33869
34142
  logistics_own_transport_departure: {
33870
34143
  Args: {
33871
34144
  p_delivery_date: string;
@@ -33873,6 +34146,18 @@ export type Database = {
33873
34146
  };
33874
34147
  Returns: Json;
33875
34148
  };
34149
+ logistics_own_traysticker_payload: {
34150
+ Args: {
34151
+ p_id: string;
34152
+ };
34153
+ Returns: Json;
34154
+ };
34155
+ logistics_own_traysticker_sync: {
34156
+ Args: {
34157
+ p_limit?: number;
34158
+ };
34159
+ Returns: Json;
34160
+ };
33876
34161
  logistics_packing_autofix: {
33877
34162
  Args: {
33878
34163
  p_limit?: number;
@@ -34173,6 +34458,15 @@ export type Database = {
34173
34458
  Args: never;
34174
34459
  Returns: number;
34175
34460
  };
34461
+ logistics_plan_queue_dubbel: {
34462
+ Args: never;
34463
+ Returns: {
34464
+ nieuwste: string;
34465
+ open_opdrachten: number;
34466
+ order_id: string;
34467
+ oudste: string;
34468
+ }[];
34469
+ };
34176
34470
  logistics_plan_queue_list: {
34177
34471
  Args: {
34178
34472
  p_limit?: number;
@@ -34214,6 +34508,13 @@ export type Database = {
34214
34508
  };
34215
34509
  Returns: number;
34216
34510
  };
34511
+ logistics_plan_retry_later: {
34512
+ Args: {
34513
+ p_id: string;
34514
+ p_seconds?: number;
34515
+ };
34516
+ Returns: undefined;
34517
+ };
34217
34518
  logistics_plan_setting: {
34218
34519
  Args: {
34219
34520
  p_default: number;
@@ -35248,6 +35549,15 @@ export type Database = {
35248
35549
  };
35249
35550
  Returns: Json;
35250
35551
  };
35552
+ logistics_tray_plants: {
35553
+ Args: {
35554
+ p_fust: number;
35555
+ p_fusten: number;
35556
+ p_ppc: number;
35557
+ p_regel_totaal: number;
35558
+ };
35559
+ Returns: number;
35560
+ };
35251
35561
  logistics_try_uuid: {
35252
35562
  Args: {
35253
35563
  p: string;
@@ -36252,6 +36562,13 @@ export type Database = {
36252
36562
  };
36253
36563
  Returns: Json;
36254
36564
  };
36565
+ pickstation_document_for_order: {
36566
+ Args: {
36567
+ p_queue_item_id: string;
36568
+ p_slug: string;
36569
+ };
36570
+ Returns: Json;
36571
+ };
36255
36572
  pickstation_get_orders_raw: {
36256
36573
  Args: never;
36257
36574
  Returns: Json;
@@ -36618,6 +36935,34 @@ export type Database = {
36618
36935
  };
36619
36936
  Returns: Record<string, unknown>;
36620
36937
  };
36938
+ product_packings_derive: {
36939
+ Args: {
36940
+ p_product_id: string;
36941
+ };
36942
+ Returns: undefined;
36943
+ };
36944
+ product_packings_replace: {
36945
+ Args: {
36946
+ p_packings: Json;
36947
+ p_product_id: string;
36948
+ p_source: string;
36949
+ };
36950
+ Returns: number;
36951
+ };
36952
+ product_packings_sync_from_floriday: {
36953
+ Args: {
36954
+ p_connection_id: string;
36955
+ p_only_existing?: boolean;
36956
+ p_product_ids: string[];
36957
+ };
36958
+ Returns: Json;
36959
+ };
36960
+ product_primary_pieces: {
36961
+ Args: {
36962
+ p_product_id: string;
36963
+ };
36964
+ Returns: number;
36965
+ };
36621
36966
  product_set_depth_above: {
36622
36967
  Args: {
36623
36968
  p_path?: string[];
@@ -37841,12 +38186,6 @@ export type Database = {
37841
38186
  Args: never;
37842
38187
  Returns: undefined;
37843
38188
  };
37844
- sync_cached_packing_from_product: {
37845
- Args: {
37846
- p_product_id: string;
37847
- };
37848
- Returns: undefined;
37849
- };
37850
38189
  sync_floriday_prices_into_price_groups: {
37851
38190
  Args: never;
37852
38191
  Returns: number;
@@ -37857,12 +38196,6 @@ export type Database = {
37857
38196
  };
37858
38197
  Returns: undefined;
37859
38198
  };
37860
- sync_order_cart_item_packing_from_product: {
37861
- Args: {
37862
- p_product_id: string;
37863
- };
37864
- Returns: undefined;
37865
- };
37866
38199
  sync_order_item_fusten: {
37867
38200
  Args: {
37868
38201
  _order_item_id: string;
@@ -37875,12 +38208,6 @@ export type Database = {
37875
38208
  };
37876
38209
  Returns: undefined;
37877
38210
  };
37878
- sync_product_packing_from_floriday_cache: {
37879
- Args: {
37880
- p_floriday_id: string;
37881
- };
37882
- Returns: undefined;
37883
- };
37884
38211
  sync_sick_time_off: {
37885
38212
  Args: {
37886
38213
  _period_id: string;
@@ -37911,6 +38238,12 @@ export type Database = {
37911
38238
  };
37912
38239
  Returns: boolean;
37913
38240
  };
38241
+ twinfield_cancel_queue_item: {
38242
+ Args: {
38243
+ p_id: string;
38244
+ };
38245
+ Returns: boolean;
38246
+ };
37914
38247
  twinfield_connection_offices: {
37915
38248
  Args: never;
37916
38249
  Returns: {
@@ -37940,6 +38273,19 @@ export type Database = {
37940
38273
  };
37941
38274
  Returns: Json;
37942
38275
  };
38276
+ twinfield_gated_queue: {
38277
+ Args: {
38278
+ p_connection_id: string;
38279
+ };
38280
+ Returns: {
38281
+ action: string;
38282
+ created_at: string;
38283
+ customer_id: string;
38284
+ id: string;
38285
+ payload: Json;
38286
+ status: string;
38287
+ }[];
38288
+ };
37943
38289
  twinfield_handle_administration_change: {
37944
38290
  Args: {
37945
38291
  _administration_code: string;
@@ -37947,6 +38293,10 @@ export type Database = {
37947
38293
  };
37948
38294
  Returns: undefined;
37949
38295
  };
38296
+ twinfield_is_admin: {
38297
+ Args: never;
38298
+ Returns: boolean;
38299
+ };
37950
38300
  twinfield_prune_push_queue: {
37951
38301
  Args: never;
37952
38302
  Returns: number;
@@ -37958,6 +38308,13 @@ export type Database = {
37958
38308
  };
37959
38309
  Returns: Json;
37960
38310
  };
38311
+ twinfield_set_write_enabled: {
38312
+ Args: {
38313
+ p_connection_id: string;
38314
+ p_enabled: boolean;
38315
+ };
38316
+ Returns: Json;
38317
+ };
37961
38318
  twinfield_sync_apply: {
37962
38319
  Args: {
37963
38320
  _base: Json;
@@ -37994,6 +38351,12 @@ export type Database = {
37994
38351
  };
37995
38352
  Returns: Json;
37996
38353
  };
38354
+ twinfield_write_allowed: {
38355
+ Args: {
38356
+ p_connection_id: string;
38357
+ };
38358
+ Returns: boolean;
38359
+ };
37997
38360
  upsert_auto_fulfillment_log: {
37998
38361
  Args: {
37999
38362
  p_connection_id: string;
@@ -38539,6 +38902,15 @@ export type Database = {
38539
38902
  };
38540
38903
  Returns: Json;
38541
38904
  };
38905
+ voorraad_alert_floriday_not_updated: {
38906
+ Args: {
38907
+ p_key: string;
38908
+ p_order_id: string;
38909
+ p_order_item_id: string;
38910
+ p_qty: number;
38911
+ };
38912
+ Returns: undefined;
38913
+ };
38542
38914
  voorraad_can_write: {
38543
38915
  Args: never;
38544
38916
  Returns: boolean;
@@ -38561,6 +38933,12 @@ export type Database = {
38561
38933
  };
38562
38934
  Returns: string[];
38563
38935
  };
38936
+ voorraad_floriday_leads_key: {
38937
+ Args: {
38938
+ p_key: string;
38939
+ };
38940
+ Returns: boolean;
38941
+ };
38564
38942
  voorraad_hook_base_url: {
38565
38943
  Args: never;
38566
38944
  Returns: string;
@@ -38578,6 +38956,12 @@ export type Database = {
38578
38956
  };
38579
38957
  Returns: undefined;
38580
38958
  };
38959
+ voorraad_mark_floriday_sold_before_switch: {
38960
+ Args: {
38961
+ p_product_id: string;
38962
+ };
38963
+ Returns: number;
38964
+ };
38581
38965
  voorraad_production_enabled: {
38582
38966
  Args: never;
38583
38967
  Returns: boolean;