@flowselections/floriday-verkoop-module 1.0.60 → 1.0.62

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 (149) hide show
  1. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +9 -0
  2. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -0
  3. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +26 -0
  4. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +6 -0
  5. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +1 -0
  6. package/dist-lib/components/karindeling/AfmetingenTab.js +128 -0
  7. package/dist-lib/components/karindeling/KarindelingPage.d.ts +2 -0
  8. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +1 -0
  9. package/dist-lib/components/karindeling/KarindelingPage.js +102 -0
  10. package/dist-lib/components/ui/dropdown-menu.d.ts +9 -0
  11. package/dist-lib/components/ui/dropdown-menu.d.ts.map +1 -0
  12. package/dist-lib/components/ui/dropdown-menu.js +14 -0
  13. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  14. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  15. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +1 -1
  16. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -1
  17. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  18. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  19. package/dist-lib/components/verkoop/CartLayersDialog.d.ts +1 -1
  20. package/dist-lib/components/verkoop/CartLayersDialog.d.ts.map +1 -1
  21. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +5 -0
  22. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +1 -0
  23. package/dist-lib/components/verkoop/CreateOrderDialog.js +33 -0
  24. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  25. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  26. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  27. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  28. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  29. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  30. package/dist-lib/components/verkoop/EngineBufferCard.d.ts +1 -1
  31. package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
  32. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +1 -1
  33. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -1
  34. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  35. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  36. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts +1 -1
  37. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts.map +1 -1
  38. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  39. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  40. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  41. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  42. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts +1 -1
  43. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts.map +1 -1
  44. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  45. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  46. package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts +1 -1
  47. package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts.map +1 -1
  48. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  49. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  50. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  51. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  52. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  53. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  54. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  55. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  56. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +1 -2
  57. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  58. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  59. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  60. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts +1 -1
  61. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts.map +1 -1
  62. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  63. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  64. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +18 -5
  65. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  66. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  67. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1061 -15
  68. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  69. package/dist-lib/integrations/supabase/client.server.d.ts +1061 -15
  70. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  71. package/dist-lib/integrations/supabase/types.d.ts +1061 -10
  72. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  73. package/dist-lib/lib/buffer-events.functions.d.ts +1061 -15
  74. package/dist-lib/lib/buffer-events.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/cart-layers.functions.d.ts +4188 -36
  76. package/dist-lib/lib/cart-layers.functions.d.ts.map +1 -1
  77. package/dist-lib/lib/cart-lock.functions.d.ts +1061 -15
  78. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  79. package/dist-lib/lib/cart-planning-settings.functions.d.ts +11506 -0
  80. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  81. package/dist-lib/lib/cart-replan.functions.d.ts +3139 -1
  82. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  83. package/dist-lib/lib/cart-replan.functions.js +8 -47
  84. package/dist-lib/lib/create-order.functions.d.ts +17799 -102
  85. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  86. package/dist-lib/lib/create-order.functions.js +3 -16
  87. package/dist-lib/lib/cron/push-order-statuses.d.ts +4 -0
  88. package/dist-lib/lib/cron/push-order-statuses.d.ts.map +1 -0
  89. package/dist-lib/lib/cron/push-order-statuses.js +23 -0
  90. package/dist-lib/lib/cron/replan-carts.d.ts +1 -1
  91. package/dist-lib/lib/cron/replan-carts.d.ts.map +1 -1
  92. package/dist-lib/lib/cron/replan-carts.js +10 -15
  93. package/dist-lib/lib/floriday/floriday.server.d.ts +14 -0
  94. package/dist-lib/lib/floriday/floriday.server.d.ts.map +1 -0
  95. package/dist-lib/lib/floriday/floriday.server.js +92 -0
  96. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +4736 -0
  97. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +1 -0
  98. package/dist-lib/lib/floriday/sales-orders.functions.js +193 -0
  99. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +13288 -2362
  100. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  101. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +2092 -0
  102. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  103. package/dist-lib/lib/floriday-mirror.functions.d.ts +1061 -15
  104. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  105. package/dist-lib/lib/floriday-mirror.functions.js +282 -117
  106. package/dist-lib/lib/floriday-public.functions.d.ts +7322 -0
  107. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  108. package/dist-lib/lib/floriday-status-sync.server.d.ts +14 -0
  109. package/dist-lib/lib/floriday-status-sync.server.d.ts.map +1 -0
  110. package/dist-lib/lib/floriday-status-sync.server.js +130 -0
  111. package/dist-lib/lib/floriday-writes.functions.d.ts +2092 -0
  112. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  113. package/dist-lib/lib/invoice-timing.functions.d.ts +4184 -0
  114. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  115. package/dist-lib/lib/load-carriers.functions.d.ts +1061 -15
  116. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  117. package/dist-lib/lib/logistics-engine.functions.d.ts +5235 -15
  118. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  119. package/dist-lib/lib/logistics-engine.server.d.ts.map +1 -1
  120. package/dist-lib/lib/logistics-engine.server.js +2 -9
  121. package/dist-lib/lib/logistics-stock.functions.d.ts +2092 -0
  122. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  123. package/dist-lib/lib/order-addresses.functions.d.ts +1061 -15
  124. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  125. package/dist-lib/lib/order-buffers.functions.d.ts +3147 -3
  126. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  127. package/dist-lib/lib/order-buffers.functions.js +3 -12
  128. package/dist-lib/lib/order-carrier.functions.d.ts +2092 -0
  129. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  130. package/dist-lib/lib/order-fulfill.functions.d.ts +1061 -15
  131. package/dist-lib/lib/order-fulfill.functions.d.ts.map +1 -1
  132. package/dist-lib/lib/order-pickup.functions.d.ts +2092 -0
  133. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  134. package/dist-lib/lib/order-shipments.functions.d.ts +4184 -0
  135. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  136. package/dist-lib/lib/product-dimensions.functions.d.ts +2092 -0
  137. package/dist-lib/lib/product-dimensions.functions.d.ts.map +1 -1
  138. package/dist-lib/lib/salesorders-list.functions.d.ts +2092 -0
  139. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  140. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  141. package/dist-lib/lib/salesorders-list.server.js +62 -3
  142. package/dist-lib/lib/salesorders.functions.d.ts +6303 -17
  143. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  144. package/dist-lib/lib/salesorders.functions.js +22 -22
  145. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +2092 -0
  146. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  147. package/dist-lib/lib/tradeitems.functions.d.ts +1061 -15
  148. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  149. package/package.json +1 -1
@@ -2272,6 +2272,45 @@ export type Database = {
2272
2272
  };
2273
2273
  Relationships: [];
2274
2274
  };
2275
+ customer_product_stickers: {
2276
+ Row: {
2277
+ created_at: string;
2278
+ customer_key: string;
2279
+ file_name: string;
2280
+ file_path: string;
2281
+ file_size: number | null;
2282
+ id: string;
2283
+ mime_type: string | null;
2284
+ trade_item_key: string;
2285
+ updated_at: string;
2286
+ uploaded_by: string | null;
2287
+ };
2288
+ Insert: {
2289
+ created_at?: string;
2290
+ customer_key: string;
2291
+ file_name: string;
2292
+ file_path: string;
2293
+ file_size?: number | null;
2294
+ id?: string;
2295
+ mime_type?: string | null;
2296
+ trade_item_key: string;
2297
+ updated_at?: string;
2298
+ uploaded_by?: string | null;
2299
+ };
2300
+ Update: {
2301
+ created_at?: string;
2302
+ customer_key?: string;
2303
+ file_name?: string;
2304
+ file_path?: string;
2305
+ file_size?: number | null;
2306
+ id?: string;
2307
+ mime_type?: string | null;
2308
+ trade_item_key?: string;
2309
+ updated_at?: string;
2310
+ uploaded_by?: string | null;
2311
+ };
2312
+ Relationships: [];
2313
+ };
2275
2314
  customer_selected_assortment: {
2276
2315
  Row: {
2277
2316
  article_number: string | null;
@@ -2322,6 +2361,30 @@ export type Database = {
2322
2361
  }
2323
2362
  ];
2324
2363
  };
2364
+ customer_sticker_settings: {
2365
+ Row: {
2366
+ created_at: string;
2367
+ customer_key: string;
2368
+ height_mm: number;
2369
+ updated_at: string;
2370
+ width_mm: number;
2371
+ };
2372
+ Insert: {
2373
+ created_at?: string;
2374
+ customer_key: string;
2375
+ height_mm?: number;
2376
+ updated_at?: string;
2377
+ width_mm?: number;
2378
+ };
2379
+ Update: {
2380
+ created_at?: string;
2381
+ customer_key?: string;
2382
+ height_mm?: number;
2383
+ updated_at?: string;
2384
+ width_mm?: number;
2385
+ };
2386
+ Relationships: [];
2387
+ };
2325
2388
  customer_trade_settings: {
2326
2389
  Row: {
2327
2390
  category: string;
@@ -5731,6 +5794,105 @@ export type Database = {
5731
5794
  }
5732
5795
  ];
5733
5796
  };
5797
+ floriday_api_log: {
5798
+ Row: {
5799
+ action: string | null;
5800
+ caller: string | null;
5801
+ connection_id: string | null;
5802
+ created_at: string;
5803
+ cursor_from: number | null;
5804
+ direction: string;
5805
+ duration_ms: number | null;
5806
+ environment: string | null;
5807
+ error: string | null;
5808
+ floriday_id: string | null;
5809
+ floriday_reference: string | null;
5810
+ http_status: number;
5811
+ id: string;
5812
+ item_count: number | null;
5813
+ kind: string | null;
5814
+ local_id: string | null;
5815
+ local_reference: string | null;
5816
+ method: string;
5817
+ module: string | null;
5818
+ ok: boolean;
5819
+ path: string;
5820
+ request: Json | null;
5821
+ resource_type: string | null;
5822
+ response: Json | null;
5823
+ write_log_id: string | null;
5824
+ };
5825
+ Insert: {
5826
+ action?: string | null;
5827
+ caller?: string | null;
5828
+ connection_id?: string | null;
5829
+ created_at?: string;
5830
+ cursor_from?: number | null;
5831
+ direction: string;
5832
+ duration_ms?: number | null;
5833
+ environment?: string | null;
5834
+ error?: string | null;
5835
+ floriday_id?: string | null;
5836
+ floriday_reference?: string | null;
5837
+ http_status?: number;
5838
+ id?: string;
5839
+ item_count?: number | null;
5840
+ kind?: string | null;
5841
+ local_id?: string | null;
5842
+ local_reference?: string | null;
5843
+ method: string;
5844
+ module?: string | null;
5845
+ ok?: boolean;
5846
+ path: string;
5847
+ request?: Json | null;
5848
+ resource_type?: string | null;
5849
+ response?: Json | null;
5850
+ write_log_id?: string | null;
5851
+ };
5852
+ Update: {
5853
+ action?: string | null;
5854
+ caller?: string | null;
5855
+ connection_id?: string | null;
5856
+ created_at?: string;
5857
+ cursor_from?: number | null;
5858
+ direction?: string;
5859
+ duration_ms?: number | null;
5860
+ environment?: string | null;
5861
+ error?: string | null;
5862
+ floriday_id?: string | null;
5863
+ floriday_reference?: string | null;
5864
+ http_status?: number;
5865
+ id?: string;
5866
+ item_count?: number | null;
5867
+ kind?: string | null;
5868
+ local_id?: string | null;
5869
+ local_reference?: string | null;
5870
+ method?: string;
5871
+ module?: string | null;
5872
+ ok?: boolean;
5873
+ path?: string;
5874
+ request?: Json | null;
5875
+ resource_type?: string | null;
5876
+ response?: Json | null;
5877
+ write_log_id?: string | null;
5878
+ };
5879
+ Relationships: [
5880
+ {
5881
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5882
+ columns: ["connection_id"];
5883
+ isOneToOne: false;
5884
+ referencedRelation: "floriday_connections";
5885
+ referencedColumns: ["id"];
5886
+ },
5887
+ {
5888
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5889
+ columns: ["write_log_id"];
5890
+ isOneToOne: false;
5891
+ referencedRelation: "floriday_write_log";
5892
+ referencedColumns: ["id"];
5893
+ }
5894
+ ];
5895
+ };
5734
5896
  floriday_auction_letters_cache: {
5735
5897
  Row: {
5736
5898
  auction_letter_code: string;
@@ -5948,6 +6110,86 @@ export type Database = {
5948
6110
  }
5949
6111
  ];
5950
6112
  };
6113
+ floriday_catalog_prices_cache: {
6114
+ Row: {
6115
+ connection_id: string;
6116
+ created_at: string;
6117
+ currency: string;
6118
+ id: string;
6119
+ is_deleted: boolean;
6120
+ price: number | null;
6121
+ price_group_id: string | null;
6122
+ price_group_name: string | null;
6123
+ price_type: string;
6124
+ raw: Json | null;
6125
+ sales_unit: string | null;
6126
+ sequence_number: number;
6127
+ supplier_article_code: string | null;
6128
+ supply_line_id: string;
6129
+ synced_at: string;
6130
+ trade_item_id: string | null;
6131
+ updated_at: string;
6132
+ valid_from: string | null;
6133
+ valid_to: string | null;
6134
+ week: number | null;
6135
+ year: number | null;
6136
+ };
6137
+ Insert: {
6138
+ connection_id: string;
6139
+ created_at?: string;
6140
+ currency?: string;
6141
+ id?: string;
6142
+ is_deleted?: boolean;
6143
+ price?: number | null;
6144
+ price_group_id?: string | null;
6145
+ price_group_name?: string | null;
6146
+ price_type?: string;
6147
+ raw?: Json | null;
6148
+ sales_unit?: string | null;
6149
+ sequence_number?: number;
6150
+ supplier_article_code?: string | null;
6151
+ supply_line_id: string;
6152
+ synced_at?: string;
6153
+ trade_item_id?: string | null;
6154
+ updated_at?: string;
6155
+ valid_from?: string | null;
6156
+ valid_to?: string | null;
6157
+ week?: number | null;
6158
+ year?: number | null;
6159
+ };
6160
+ Update: {
6161
+ connection_id?: string;
6162
+ created_at?: string;
6163
+ currency?: string;
6164
+ id?: string;
6165
+ is_deleted?: boolean;
6166
+ price?: number | null;
6167
+ price_group_id?: string | null;
6168
+ price_group_name?: string | null;
6169
+ price_type?: string;
6170
+ raw?: Json | null;
6171
+ sales_unit?: string | null;
6172
+ sequence_number?: number;
6173
+ supplier_article_code?: string | null;
6174
+ supply_line_id?: string;
6175
+ synced_at?: string;
6176
+ trade_item_id?: string | null;
6177
+ updated_at?: string;
6178
+ valid_from?: string | null;
6179
+ valid_to?: string | null;
6180
+ week?: number | null;
6181
+ year?: number | null;
6182
+ };
6183
+ Relationships: [
6184
+ {
6185
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6186
+ columns: ["connection_id"];
6187
+ isOneToOne: false;
6188
+ referencedRelation: "floriday_connections";
6189
+ referencedColumns: ["id"];
6190
+ }
6191
+ ];
6192
+ };
5951
6193
  floriday_clock_presales_cache: {
5952
6194
  Row: {
5953
6195
  buyer_organization_id: string | null;
@@ -6893,6 +7135,69 @@ export type Database = {
6893
7135
  }
6894
7136
  ];
6895
7137
  };
7138
+ floriday_link_templates: {
7139
+ Row: {
7140
+ created_at: string;
7141
+ floriday_url_template: string | null;
7142
+ is_active: boolean;
7143
+ label: string;
7144
+ local_url_template: string | null;
7145
+ resource_type: string;
7146
+ updated_at: string;
7147
+ };
7148
+ Insert: {
7149
+ created_at?: string;
7150
+ floriday_url_template?: string | null;
7151
+ is_active?: boolean;
7152
+ label: string;
7153
+ local_url_template?: string | null;
7154
+ resource_type: string;
7155
+ updated_at?: string;
7156
+ };
7157
+ Update: {
7158
+ created_at?: string;
7159
+ floriday_url_template?: string | null;
7160
+ is_active?: boolean;
7161
+ label?: string;
7162
+ local_url_template?: string | null;
7163
+ resource_type?: string;
7164
+ updated_at?: string;
7165
+ };
7166
+ Relationships: [];
7167
+ };
7168
+ floriday_log_retention: {
7169
+ Row: {
7170
+ created_at: string;
7171
+ direction: string | null;
7172
+ id: string;
7173
+ keep_failed_days: number | null;
7174
+ keep_ok_days: number | null;
7175
+ note: string | null;
7176
+ resource_type: string | null;
7177
+ updated_at: string;
7178
+ };
7179
+ Insert: {
7180
+ created_at?: string;
7181
+ direction?: string | null;
7182
+ id?: string;
7183
+ keep_failed_days?: number | null;
7184
+ keep_ok_days?: number | null;
7185
+ note?: string | null;
7186
+ resource_type?: string | null;
7187
+ updated_at?: string;
7188
+ };
7189
+ Update: {
7190
+ created_at?: string;
7191
+ direction?: string | null;
7192
+ id?: string;
7193
+ keep_failed_days?: number | null;
7194
+ keep_ok_days?: number | null;
7195
+ note?: string | null;
7196
+ resource_type?: string | null;
7197
+ updated_at?: string;
7198
+ };
7199
+ Relationships: [];
7200
+ };
6896
7201
  floriday_logistic_labels_cache: {
6897
7202
  Row: {
6898
7203
  byte_size: number | null;
@@ -10343,22 +10648,31 @@ export type Database = {
10343
10648
  };
10344
10649
  logistics_floriday_push_refusals: {
10345
10650
  Row: {
10651
+ action: string | null;
10346
10652
  created_at: string;
10347
10653
  id: string;
10348
10654
  order_ref: string;
10349
10655
  reason: string;
10656
+ source_module: string | null;
10657
+ source_shell: string | null;
10350
10658
  };
10351
10659
  Insert: {
10660
+ action?: string | null;
10352
10661
  created_at?: string;
10353
10662
  id?: string;
10354
10663
  order_ref: string;
10355
10664
  reason: string;
10665
+ source_module?: string | null;
10666
+ source_shell?: string | null;
10356
10667
  };
10357
10668
  Update: {
10669
+ action?: string | null;
10358
10670
  created_at?: string;
10359
10671
  id?: string;
10360
10672
  order_ref?: string;
10361
10673
  reason?: string;
10674
+ source_module?: string | null;
10675
+ source_shell?: string | null;
10362
10676
  };
10363
10677
  Relationships: [];
10364
10678
  };
@@ -10437,6 +10751,42 @@ export type Database = {
10437
10751
  };
10438
10752
  Relationships: [];
10439
10753
  };
10754
+ logistics_floriday_status_sends: {
10755
+ Row: {
10756
+ action: string;
10757
+ created_at: string;
10758
+ detail: string | null;
10759
+ http_status: number | null;
10760
+ id: string;
10761
+ ok: boolean;
10762
+ order_ref: string;
10763
+ source_module: string | null;
10764
+ source_shell: string | null;
10765
+ };
10766
+ Insert: {
10767
+ action: string;
10768
+ created_at?: string;
10769
+ detail?: string | null;
10770
+ http_status?: number | null;
10771
+ id?: string;
10772
+ ok?: boolean;
10773
+ order_ref: string;
10774
+ source_module?: string | null;
10775
+ source_shell?: string | null;
10776
+ };
10777
+ Update: {
10778
+ action?: string;
10779
+ created_at?: string;
10780
+ detail?: string | null;
10781
+ http_status?: number | null;
10782
+ id?: string;
10783
+ ok?: boolean;
10784
+ order_ref?: string;
10785
+ source_module?: string | null;
10786
+ source_shell?: string | null;
10787
+ };
10788
+ Relationships: [];
10789
+ };
10440
10790
  logistics_formulas: {
10441
10791
  Row: {
10442
10792
  created_at: string;
@@ -10511,23 +10861,125 @@ export type Database = {
10511
10861
  };
10512
10862
  Relationships: [];
10513
10863
  };
10514
- logistics_pickup_moments: {
10864
+ logistics_opening_exceptions: {
10515
10865
  Row: {
10516
- carrier_ref: string | null;
10866
+ closes: string | null;
10517
10867
  created_at: string;
10868
+ day: string;
10518
10869
  id: string;
10519
- label: string | null;
10520
- moment_date: string;
10521
- pickup_time: string;
10522
- sequence: number;
10523
- updated_at: string;
10524
- user_id: string;
10870
+ is_closed: boolean;
10871
+ note: string | null;
10872
+ opens: string | null;
10525
10873
  };
10526
10874
  Insert: {
10527
- carrier_ref?: string | null;
10875
+ closes?: string | null;
10528
10876
  created_at?: string;
10877
+ day: string;
10529
10878
  id?: string;
10530
- label?: string | null;
10879
+ is_closed?: boolean;
10880
+ note?: string | null;
10881
+ opens?: string | null;
10882
+ };
10883
+ Update: {
10884
+ closes?: string | null;
10885
+ created_at?: string;
10886
+ day?: string;
10887
+ id?: string;
10888
+ is_closed?: boolean;
10889
+ note?: string | null;
10890
+ opens?: string | null;
10891
+ };
10892
+ Relationships: [];
10893
+ };
10894
+ logistics_opening_hours: {
10895
+ Row: {
10896
+ closes: string;
10897
+ created_at: string;
10898
+ id: string;
10899
+ is_active: boolean;
10900
+ note: string | null;
10901
+ opens: string;
10902
+ weekday: number;
10903
+ };
10904
+ Insert: {
10905
+ closes: string;
10906
+ created_at?: string;
10907
+ id?: string;
10908
+ is_active?: boolean;
10909
+ note?: string | null;
10910
+ opens: string;
10911
+ weekday: number;
10912
+ };
10913
+ Update: {
10914
+ closes?: string;
10915
+ created_at?: string;
10916
+ id?: string;
10917
+ is_active?: boolean;
10918
+ note?: string | null;
10919
+ opens?: string;
10920
+ weekday?: number;
10921
+ };
10922
+ Relationships: [];
10923
+ };
10924
+ logistics_pick_data_requests: {
10925
+ Row: {
10926
+ actions: Json;
10927
+ created_at: string;
10928
+ event_id: string | null;
10929
+ finished_at: string | null;
10930
+ id: string;
10931
+ missing: Json;
10932
+ order_ref: string;
10933
+ reason: string | null;
10934
+ result: Json | null;
10935
+ status: string;
10936
+ unit_ref: string | null;
10937
+ };
10938
+ Insert: {
10939
+ actions?: Json;
10940
+ created_at?: string;
10941
+ event_id?: string | null;
10942
+ finished_at?: string | null;
10943
+ id?: string;
10944
+ missing?: Json;
10945
+ order_ref: string;
10946
+ reason?: string | null;
10947
+ result?: Json | null;
10948
+ status?: string;
10949
+ unit_ref?: string | null;
10950
+ };
10951
+ Update: {
10952
+ actions?: Json;
10953
+ created_at?: string;
10954
+ event_id?: string | null;
10955
+ finished_at?: string | null;
10956
+ id?: string;
10957
+ missing?: Json;
10958
+ order_ref?: string;
10959
+ reason?: string | null;
10960
+ result?: Json | null;
10961
+ status?: string;
10962
+ unit_ref?: string | null;
10963
+ };
10964
+ Relationships: [];
10965
+ };
10966
+ logistics_pickup_moments: {
10967
+ Row: {
10968
+ carrier_ref: string | null;
10969
+ created_at: string;
10970
+ id: string;
10971
+ label: string | null;
10972
+ moment_date: string;
10973
+ pickup_time: string;
10974
+ sequence: number;
10975
+ updated_at: string;
10976
+ user_id: string;
10977
+ };
10978
+ Insert: {
10979
+ carrier_ref?: string | null;
10980
+ created_at?: string;
10981
+ id?: string;
10982
+ label?: string | null;
10531
10983
  moment_date: string;
10532
10984
  pickup_time: string;
10533
10985
  sequence?: number;
@@ -10977,6 +11429,69 @@ export type Database = {
10977
11429
  };
10978
11430
  Relationships: [];
10979
11431
  };
11432
+ logistics_slip_shipping_note: {
11433
+ Row: {
11434
+ attempts: number;
11435
+ batch_key: string | null;
11436
+ cart_id: string | null;
11437
+ created_at: string;
11438
+ error: string | null;
11439
+ error_code: string | null;
11440
+ fulfillment_order_id: string | null;
11441
+ id: string;
11442
+ locked_until: string | null;
11443
+ next_attempt_at: string | null;
11444
+ order_id: string | null;
11445
+ order_number: string | null;
11446
+ print_job_id: string | null;
11447
+ printer_id: string | null;
11448
+ retry_class: string | null;
11449
+ slip_job_id: string;
11450
+ status: string;
11451
+ updated_at: string;
11452
+ };
11453
+ Insert: {
11454
+ attempts?: number;
11455
+ batch_key?: string | null;
11456
+ cart_id?: string | null;
11457
+ created_at?: string;
11458
+ error?: string | null;
11459
+ error_code?: string | null;
11460
+ fulfillment_order_id?: string | null;
11461
+ id?: string;
11462
+ locked_until?: string | null;
11463
+ next_attempt_at?: string | null;
11464
+ order_id?: string | null;
11465
+ order_number?: string | null;
11466
+ print_job_id?: string | null;
11467
+ printer_id?: string | null;
11468
+ retry_class?: string | null;
11469
+ slip_job_id: string;
11470
+ status?: string;
11471
+ updated_at?: string;
11472
+ };
11473
+ Update: {
11474
+ attempts?: number;
11475
+ batch_key?: string | null;
11476
+ cart_id?: string | null;
11477
+ created_at?: string;
11478
+ error?: string | null;
11479
+ error_code?: string | null;
11480
+ fulfillment_order_id?: string | null;
11481
+ id?: string;
11482
+ locked_until?: string | null;
11483
+ next_attempt_at?: string | null;
11484
+ order_id?: string | null;
11485
+ order_number?: string | null;
11486
+ print_job_id?: string | null;
11487
+ printer_id?: string | null;
11488
+ retry_class?: string | null;
11489
+ slip_job_id?: string;
11490
+ status?: string;
11491
+ updated_at?: string;
11492
+ };
11493
+ Relationships: [];
11494
+ };
10980
11495
  logistics_staff_planning: {
10981
11496
  Row: {
10982
11497
  created_at: string;
@@ -11316,6 +11831,129 @@ export type Database = {
11316
11831
  };
11317
11832
  Relationships: [];
11318
11833
  };
11834
+ logistics_time_settings: {
11835
+ Row: {
11836
+ id: boolean;
11837
+ timezone: string;
11838
+ updated_at: string;
11839
+ };
11840
+ Insert: {
11841
+ id?: boolean;
11842
+ timezone: string;
11843
+ updated_at?: string;
11844
+ };
11845
+ Update: {
11846
+ id?: boolean;
11847
+ timezone?: string;
11848
+ updated_at?: string;
11849
+ };
11850
+ Relationships: [];
11851
+ };
11852
+ logistics_trace_events: {
11853
+ Row: {
11854
+ actor: string | null;
11855
+ attempts: number;
11856
+ cart_ref: string | null;
11857
+ created_at: string;
11858
+ db_action: string | null;
11859
+ db_new: Json | null;
11860
+ db_old: Json | null;
11861
+ db_record: string | null;
11862
+ db_table: string | null;
11863
+ decision: string | null;
11864
+ duration_ms: number | null;
11865
+ error: string | null;
11866
+ external_action: string | null;
11867
+ external_ref: string | null;
11868
+ external_response: Json | null;
11869
+ external_status: string | null;
11870
+ external_system: string | null;
11871
+ id: string;
11872
+ input: Json | null;
11873
+ next_attempt_at: string | null;
11874
+ order_ref: string | null;
11875
+ order_source: string | null;
11876
+ output: Json | null;
11877
+ phase: string;
11878
+ reads: Json | null;
11879
+ reason: string | null;
11880
+ rule: string | null;
11881
+ slip_ref: string | null;
11882
+ status: string;
11883
+ step: string;
11884
+ trace_id: string;
11885
+ values_used: Json | null;
11886
+ };
11887
+ Insert: {
11888
+ actor?: string | null;
11889
+ attempts?: number;
11890
+ cart_ref?: string | null;
11891
+ created_at?: string;
11892
+ db_action?: string | null;
11893
+ db_new?: Json | null;
11894
+ db_old?: Json | null;
11895
+ db_record?: string | null;
11896
+ db_table?: string | null;
11897
+ decision?: string | null;
11898
+ duration_ms?: number | null;
11899
+ error?: string | null;
11900
+ external_action?: string | null;
11901
+ external_ref?: string | null;
11902
+ external_response?: Json | null;
11903
+ external_status?: string | null;
11904
+ external_system?: string | null;
11905
+ id?: string;
11906
+ input?: Json | null;
11907
+ next_attempt_at?: string | null;
11908
+ order_ref?: string | null;
11909
+ order_source?: string | null;
11910
+ output?: Json | null;
11911
+ phase: string;
11912
+ reads?: Json | null;
11913
+ reason?: string | null;
11914
+ rule?: string | null;
11915
+ slip_ref?: string | null;
11916
+ status: string;
11917
+ step: string;
11918
+ trace_id?: string;
11919
+ values_used?: Json | null;
11920
+ };
11921
+ Update: {
11922
+ actor?: string | null;
11923
+ attempts?: number;
11924
+ cart_ref?: string | null;
11925
+ created_at?: string;
11926
+ db_action?: string | null;
11927
+ db_new?: Json | null;
11928
+ db_old?: Json | null;
11929
+ db_record?: string | null;
11930
+ db_table?: string | null;
11931
+ decision?: string | null;
11932
+ duration_ms?: number | null;
11933
+ error?: string | null;
11934
+ external_action?: string | null;
11935
+ external_ref?: string | null;
11936
+ external_response?: Json | null;
11937
+ external_status?: string | null;
11938
+ external_system?: string | null;
11939
+ id?: string;
11940
+ input?: Json | null;
11941
+ next_attempt_at?: string | null;
11942
+ order_ref?: string | null;
11943
+ order_source?: string | null;
11944
+ output?: Json | null;
11945
+ phase?: string;
11946
+ reads?: Json | null;
11947
+ reason?: string | null;
11948
+ rule?: string | null;
11949
+ slip_ref?: string | null;
11950
+ status?: string;
11951
+ step?: string;
11952
+ trace_id?: string;
11953
+ values_used?: Json | null;
11954
+ };
11955
+ Relationships: [];
11956
+ };
11319
11957
  logistics_variables: {
11320
11958
  Row: {
11321
11959
  created_at: string;
@@ -13780,6 +14418,7 @@ export type Database = {
13780
14418
  customer_name: string;
13781
14419
  deleted_at: string | null;
13782
14420
  delivery_date: string | null;
14421
+ floriday_order_group_key: string | null;
13783
14422
  floriday_sales_order_id: string | null;
13784
14423
  id: string;
13785
14424
  invoice_due_at: string | null;
@@ -13807,6 +14446,7 @@ export type Database = {
13807
14446
  customer_name?: string;
13808
14447
  deleted_at?: string | null;
13809
14448
  delivery_date?: string | null;
14449
+ floriday_order_group_key?: string | null;
13810
14450
  floriday_sales_order_id?: string | null;
13811
14451
  id?: string;
13812
14452
  invoice_due_at?: string | null;
@@ -13834,6 +14474,7 @@ export type Database = {
13834
14474
  customer_name?: string;
13835
14475
  deleted_at?: string | null;
13836
14476
  delivery_date?: string | null;
14477
+ floriday_order_group_key?: string | null;
13837
14478
  floriday_sales_order_id?: string | null;
13838
14479
  id?: string;
13839
14480
  invoice_due_at?: string | null;
@@ -19864,6 +20505,36 @@ export type Database = {
19864
20505
  }
19865
20506
  ];
19866
20507
  };
20508
+ voorraad_buffer_state: {
20509
+ Row: {
20510
+ buffer_id: string;
20511
+ buffer_key: string | null;
20512
+ closed_at: string | null;
20513
+ created_at: string;
20514
+ detached_orders: Json;
20515
+ reason: string | null;
20516
+ updated_at: string;
20517
+ };
20518
+ Insert: {
20519
+ buffer_id: string;
20520
+ buffer_key?: string | null;
20521
+ closed_at?: string | null;
20522
+ created_at?: string;
20523
+ detached_orders?: Json;
20524
+ reason?: string | null;
20525
+ updated_at?: string;
20526
+ };
20527
+ Update: {
20528
+ buffer_id?: string;
20529
+ buffer_key?: string | null;
20530
+ closed_at?: string | null;
20531
+ created_at?: string;
20532
+ detached_orders?: Json;
20533
+ reason?: string | null;
20534
+ updated_at?: string;
20535
+ };
20536
+ Relationships: [];
20537
+ };
19867
20538
  voorraad_custom_fields: {
19868
20539
  Row: {
19869
20540
  created_at: string;
@@ -19906,6 +20577,36 @@ export type Database = {
19906
20577
  };
19907
20578
  Relationships: [];
19908
20579
  };
20580
+ voorraad_logistics_event_log: {
20581
+ Row: {
20582
+ created_at: string;
20583
+ event_id: string;
20584
+ event_type: string;
20585
+ order_ref: string | null;
20586
+ processed_at: string;
20587
+ result: Json;
20588
+ updated_at: string;
20589
+ };
20590
+ Insert: {
20591
+ created_at?: string;
20592
+ event_id: string;
20593
+ event_type: string;
20594
+ order_ref?: string | null;
20595
+ processed_at?: string;
20596
+ result?: Json;
20597
+ updated_at?: string;
20598
+ };
20599
+ Update: {
20600
+ created_at?: string;
20601
+ event_id?: string;
20602
+ event_type?: string;
20603
+ order_ref?: string | null;
20604
+ processed_at?: string;
20605
+ result?: Json;
20606
+ updated_at?: string;
20607
+ };
20608
+ Relationships: [];
20609
+ };
19909
20610
  voorraad_media_upload_failures: {
19910
20611
  Row: {
19911
20612
  action: string;
@@ -22129,6 +22830,15 @@ export type Database = {
22129
22830
  Args: never;
22130
22831
  Returns: boolean;
22131
22832
  };
22833
+ cancel_open_print_jobs: {
22834
+ Args: {
22835
+ _cutoff: string;
22836
+ };
22837
+ Returns: {
22838
+ extern_job_id: string;
22839
+ id: string;
22840
+ }[];
22841
+ };
22132
22842
  check_offer_product_available_stock: {
22133
22843
  Args: {
22134
22844
  p_campaign_product_id: string;
@@ -23667,6 +24377,12 @@ export type Database = {
23667
24377
  };
23668
24378
  Returns: string;
23669
24379
  };
24380
+ logistics_cart_checkin_at: {
24381
+ Args: {
24382
+ p_cart_id: string;
24383
+ };
24384
+ Returns: string;
24385
+ };
23670
24386
  logistics_cart_handled: {
23671
24387
  Args: {
23672
24388
  p_cart_index: number;
@@ -23700,10 +24416,22 @@ export type Database = {
23700
24416
  task_status: string;
23701
24417
  }[];
23702
24418
  };
24419
+ logistics_cart_is_full: {
24420
+ Args: {
24421
+ p_cart_id: string;
24422
+ };
24423
+ Returns: boolean;
24424
+ };
23703
24425
  logistics_cart_layout_method: {
23704
24426
  Args: never;
23705
24427
  Returns: Json;
23706
24428
  };
24429
+ logistics_cart_order_refs: {
24430
+ Args: {
24431
+ p_cart_id: string;
24432
+ };
24433
+ Returns: string[];
24434
+ };
23707
24435
  logistics_cart_plan_overview: {
23708
24436
  Args: {
23709
24437
  p_days?: number;
@@ -23723,6 +24451,24 @@ export type Database = {
23723
24451
  };
23724
24452
  Returns: Json;
23725
24453
  };
24454
+ logistics_cart_plan_status_core: {
24455
+ Args: {
24456
+ p_ref: string;
24457
+ };
24458
+ Returns: Json;
24459
+ };
24460
+ logistics_cart_release_reason: {
24461
+ Args: {
24462
+ p_cart_id: string;
24463
+ };
24464
+ Returns: string;
24465
+ };
24466
+ logistics_cart_released: {
24467
+ Args: {
24468
+ p_cart_id: string;
24469
+ };
24470
+ Returns: boolean;
24471
+ };
23726
24472
  logistics_cart_seq: {
23727
24473
  Args: {
23728
24474
  p_order_uuid?: string;
@@ -23773,6 +24519,10 @@ export type Database = {
23773
24519
  unit_ref: string;
23774
24520
  }[];
23775
24521
  };
24522
+ logistics_carts_per_print: {
24523
+ Args: never;
24524
+ Returns: number;
24525
+ };
23776
24526
  logistics_check_order_allowed: {
23777
24527
  Args: {
23778
24528
  p_lines: Json;
@@ -23876,6 +24626,10 @@ export type Database = {
23876
24626
  isSetofReturn: false;
23877
24627
  };
23878
24628
  };
24629
+ logistics_cleanup_orphan_print_jobs: {
24630
+ Args: never;
24631
+ Returns: Json;
24632
+ };
23879
24633
  logistics_complete_task: {
23880
24634
  Args: {
23881
24635
  p_result?: Json;
@@ -23938,6 +24692,12 @@ export type Database = {
23938
24692
  station_carts: number;
23939
24693
  }[];
23940
24694
  };
24695
+ logistics_control_complete_cart: {
24696
+ Args: {
24697
+ p_cart_id: string;
24698
+ };
24699
+ Returns: number;
24700
+ };
23941
24701
  logistics_control_scan_approve: {
23942
24702
  Args: {
23943
24703
  p_allow_reprint?: boolean;
@@ -24017,6 +24777,15 @@ export type Database = {
24017
24777
  Args: never;
24018
24778
  Returns: Json;
24019
24779
  };
24780
+ logistics_day_windows: {
24781
+ Args: {
24782
+ p_day: string;
24783
+ };
24784
+ Returns: {
24785
+ win_end: string;
24786
+ win_start: string;
24787
+ }[];
24788
+ };
24020
24789
  logistics_delay_customer_email: {
24021
24790
  Args: {
24022
24791
  p_customer: string;
@@ -24084,6 +24853,17 @@ export type Database = {
24084
24853
  };
24085
24854
  Returns: Json;
24086
24855
  };
24856
+ logistics_enqueue_shipping_note_with_slip: {
24857
+ Args: {
24858
+ _cart_id: string;
24859
+ _is_herprint: boolean;
24860
+ _printer_id: string;
24861
+ _queue_item_id: string;
24862
+ _session_id: string;
24863
+ _slip_job_id: string;
24864
+ };
24865
+ Returns: string;
24866
+ };
24087
24867
  logistics_enqueue_sticker_with_slip: {
24088
24868
  Args: {
24089
24869
  _cart_id: string;
@@ -24101,6 +24881,20 @@ export type Database = {
24101
24881
  };
24102
24882
  Returns: string;
24103
24883
  };
24884
+ logistics_ensure_pick_data: {
24885
+ Args: {
24886
+ p_event_id?: string;
24887
+ p_missing?: Json;
24888
+ p_ref: string;
24889
+ };
24890
+ Returns: Json;
24891
+ };
24892
+ logistics_ensure_shipping_notes: {
24893
+ Args: {
24894
+ p_limit?: number;
24895
+ };
24896
+ Returns: Json;
24897
+ };
24104
24898
  logistics_fail_task: {
24105
24899
  Args: {
24106
24900
  p_error: string;
@@ -24146,6 +24940,10 @@ export type Database = {
24146
24940
  isSetofReturn: false;
24147
24941
  };
24148
24942
  };
24943
+ logistics_fix_wrong_shipping_notes: {
24944
+ Args: never;
24945
+ Returns: Json;
24946
+ };
24149
24947
  logistics_floriday_cart_plan: {
24150
24948
  Args: {
24151
24949
  p_order_id: string;
@@ -24173,6 +24971,10 @@ export type Database = {
24173
24971
  revision: number;
24174
24972
  }[];
24175
24973
  };
24974
+ logistics_floriday_delivery_note_create_enabled: {
24975
+ Args: never;
24976
+ Returns: boolean;
24977
+ };
24176
24978
  logistics_floriday_finish_push: {
24177
24979
  Args: {
24178
24980
  _error?: string;
@@ -24222,6 +25024,32 @@ export type Database = {
24222
25024
  };
24223
25025
  Returns: string;
24224
25026
  };
25027
+ logistics_floriday_gate_status: {
25028
+ Args: never;
25029
+ Returns: Json;
25030
+ };
25031
+ logistics_floriday_log_refusal: {
25032
+ Args: {
25033
+ _action?: string;
25034
+ _module?: string;
25035
+ _order_ref: string;
25036
+ _reason: string;
25037
+ _shell?: string;
25038
+ };
25039
+ Returns: undefined;
25040
+ };
25041
+ logistics_floriday_log_send: {
25042
+ Args: {
25043
+ _action: string;
25044
+ _detail?: string;
25045
+ _http_status?: number;
25046
+ _module?: string;
25047
+ _ok: boolean;
25048
+ _order_ref: string;
25049
+ _shell?: string;
25050
+ };
25051
+ Returns: undefined;
25052
+ };
24225
25053
  logistics_floriday_order_approved: {
24226
25054
  Args: {
24227
25055
  _order_ref: string;
@@ -24246,6 +25074,16 @@ export type Database = {
24246
25074
  Args: never;
24247
25075
  Returns: boolean;
24248
25076
  };
25077
+ logistics_floriday_stock_updates_enabled: {
25078
+ Args: never;
25079
+ Returns: boolean;
25080
+ };
25081
+ logistics_floriday_write_allowed: {
25082
+ Args: {
25083
+ _action: string;
25084
+ };
25085
+ Returns: boolean;
25086
+ };
24249
25087
  logistics_fulfill_barcode_requests: {
24250
25088
  Args: {
24251
25089
  p_limit?: number;
@@ -24288,6 +25126,12 @@ export type Database = {
24288
25126
  };
24289
25127
  Returns: number;
24290
25128
  };
25129
+ logistics_merge_partial_carts: {
25130
+ Args: {
25131
+ p_limit?: number;
25132
+ };
25133
+ Returns: Json;
25134
+ };
24291
25135
  logistics_next_workday_date: {
24292
25136
  Args: {
24293
25137
  p_date: string;
@@ -24314,6 +25158,10 @@ export type Database = {
24314
25158
  };
24315
25159
  Returns: string;
24316
25160
  };
25161
+ logistics_opening_timezone: {
25162
+ Args: never;
25163
+ Returns: string;
25164
+ };
24317
25165
  logistics_order_cart_count: {
24318
25166
  Args: {
24319
25167
  p_order_ref: string;
@@ -24370,6 +25218,12 @@ export type Database = {
24370
25218
  };
24371
25219
  Returns: string;
24372
25220
  };
25221
+ logistics_payload_is_floriday: {
25222
+ Args: {
25223
+ _payload: Json;
25224
+ };
25225
+ Returns: boolean;
25226
+ };
24373
25227
  logistics_pick_agenda: {
24374
25228
  Args: {
24375
25229
  p_from?: string;
@@ -24398,6 +25252,10 @@ export type Database = {
24398
25252
  Args: never;
24399
25253
  Returns: Json;
24400
25254
  };
25255
+ logistics_pick_partial_mode: {
25256
+ Args: never;
25257
+ Returns: string;
25258
+ };
24401
25259
  logistics_pick_start_estimate: {
24402
25260
  Args: {
24403
25261
  p_order: Json;
@@ -24488,6 +25346,20 @@ export type Database = {
24488
25346
  Args: never;
24489
25347
  Returns: undefined;
24490
25348
  };
25349
+ logistics_plan_progress: {
25350
+ Args: {
25351
+ p_refs: string[];
25352
+ };
25353
+ Returns: {
25354
+ cart_plan_ready: boolean;
25355
+ cart_plan_reason: string;
25356
+ cart_plan_released: boolean;
25357
+ plan_progress: number;
25358
+ plan_state: string;
25359
+ plan_state_since: string;
25360
+ unit_ref: string;
25361
+ }[];
25362
+ };
24491
25363
  logistics_plan_prune: {
24492
25364
  Args: never;
24493
25365
  Returns: number;
@@ -24509,6 +25381,18 @@ export type Database = {
24509
25381
  };
24510
25382
  Returns: number;
24511
25383
  };
25384
+ logistics_plan_state_for: {
25385
+ Args: {
25386
+ p_ref: string;
25387
+ };
25388
+ Returns: Json;
25389
+ };
25390
+ logistics_prepare_pick_documents: {
25391
+ Args: {
25392
+ p_limit?: number;
25393
+ };
25394
+ Returns: Json;
25395
+ };
24512
25396
  logistics_prune_buffer_member_queue: {
24513
25397
  Args: never;
24514
25398
  Returns: number;
@@ -24549,18 +25433,36 @@ export type Database = {
24549
25433
  Args: never;
24550
25434
  Returns: Json;
24551
25435
  };
25436
+ logistics_refresh_pick_queue_status: {
25437
+ Args: {
25438
+ p_ref: string;
25439
+ };
25440
+ Returns: number;
25441
+ };
24552
25442
  logistics_refresh_pickup_moments: {
24553
25443
  Args: {
24554
25444
  p_weeks?: number;
24555
25445
  };
24556
25446
  Returns: Json;
24557
25447
  };
25448
+ logistics_refresh_plan_state: {
25449
+ Args: {
25450
+ p_limit?: number;
25451
+ };
25452
+ Returns: Json;
25453
+ };
24558
25454
  logistics_replan_all: {
24559
25455
  Args: {
24560
25456
  p_reason?: string;
24561
25457
  };
24562
25458
  Returns: Json;
24563
25459
  };
25460
+ logistics_replan_all_force: {
25461
+ Args: {
25462
+ p_reason?: string;
25463
+ };
25464
+ Returns: Json;
25465
+ };
24564
25466
  logistics_report_delay: {
24565
25467
  Args: {
24566
25468
  p_expected_date?: string;
@@ -24705,6 +25607,10 @@ export type Database = {
24705
25607
  };
24706
25608
  Returns: string;
24707
25609
  };
25610
+ logistics_shipping_note_follows_slip: {
25611
+ Args: never;
25612
+ Returns: boolean;
25613
+ };
24708
25614
  logistics_shipping_note_from_barcode: {
24709
25615
  Args: {
24710
25616
  p_allow_reprint?: boolean;
@@ -24713,10 +25619,86 @@ export type Database = {
24713
25619
  };
24714
25620
  Returns: Json;
24715
25621
  };
25622
+ logistics_shipping_note_job_for_slip: {
25623
+ Args: {
25624
+ _slip_job_id: string;
25625
+ };
25626
+ Returns: string;
25627
+ };
25628
+ logistics_shipping_notes_wake_all: {
25629
+ Args: never;
25630
+ Returns: Json;
25631
+ };
25632
+ logistics_slip_is_floriday: {
25633
+ Args: {
25634
+ _slip_job_id: string;
25635
+ };
25636
+ Returns: boolean;
25637
+ };
25638
+ logistics_slip_note_claim: {
25639
+ Args: {
25640
+ _lease_seconds?: number;
25641
+ _limit?: number;
25642
+ };
25643
+ Returns: {
25644
+ attempts: number;
25645
+ batch_key: string | null;
25646
+ cart_id: string | null;
25647
+ created_at: string;
25648
+ error: string | null;
25649
+ error_code: string | null;
25650
+ fulfillment_order_id: string | null;
25651
+ id: string;
25652
+ locked_until: string | null;
25653
+ next_attempt_at: string | null;
25654
+ order_id: string | null;
25655
+ order_number: string | null;
25656
+ print_job_id: string | null;
25657
+ printer_id: string | null;
25658
+ retry_class: string | null;
25659
+ slip_job_id: string;
25660
+ status: string;
25661
+ updated_at: string;
25662
+ }[];
25663
+ SetofOptions: {
25664
+ from: "*";
25665
+ to: "logistics_slip_shipping_note";
25666
+ isOneToOne: false;
25667
+ isSetofReturn: true;
25668
+ };
25669
+ };
25670
+ logistics_slip_note_finish: {
25671
+ Args: {
25672
+ _error?: string;
25673
+ _error_code?: string;
25674
+ _fulfillment_order_id?: string;
25675
+ _id: string;
25676
+ _ok: boolean;
25677
+ _print_job_id?: string;
25678
+ _status?: string;
25679
+ };
25680
+ Returns: undefined;
25681
+ };
25682
+ logistics_slip_note_keep_waiting: {
25683
+ Args: {
25684
+ _class?: string;
25685
+ _id: string;
25686
+ _reason: string;
25687
+ };
25688
+ Returns: undefined;
25689
+ };
24716
25690
  logistics_sticker_follows_slip: {
24717
25691
  Args: never;
24718
25692
  Returns: boolean;
24719
25693
  };
25694
+ logistics_subtract_working_minutes: {
25695
+ Args: {
25696
+ p_deadline: string;
25697
+ p_max_workdays?: number;
25698
+ p_minutes: number;
25699
+ };
25700
+ Returns: Json;
25701
+ };
24720
25702
  logistics_supersede_stale_tasks: {
24721
25703
  Args: {
24722
25704
  p_keep: string[];
@@ -24753,6 +25735,46 @@ export type Database = {
24753
25735
  Args: never;
24754
25736
  Returns: string;
24755
25737
  };
25738
+ logistics_timezone_options: {
25739
+ Args: never;
25740
+ Returns: {
25741
+ name: string;
25742
+ }[];
25743
+ };
25744
+ logistics_trace: {
25745
+ Args: {
25746
+ p: Json;
25747
+ };
25748
+ Returns: string;
25749
+ };
25750
+ logistics_trace_batch: {
25751
+ Args: {
25752
+ p: Json;
25753
+ };
25754
+ Returns: number;
25755
+ };
25756
+ logistics_trace_orders: {
25757
+ Args: {
25758
+ p_limit?: number;
25759
+ p_search?: string;
25760
+ p_since?: string;
25761
+ p_status?: string;
25762
+ };
25763
+ Returns: Json;
25764
+ };
25765
+ logistics_trace_redact: {
25766
+ Args: {
25767
+ p: Json;
25768
+ };
25769
+ Returns: Json;
25770
+ };
25771
+ logistics_trace_timeline: {
25772
+ Args: {
25773
+ p_limit?: number;
25774
+ p_order_ref: string;
25775
+ };
25776
+ Returns: Json;
25777
+ };
24756
25778
  logistics_upsert_task: {
24757
25779
  Args: {
24758
25780
  p_buffer_ref: string;
@@ -24772,6 +25794,16 @@ export type Database = {
24772
25794
  };
24773
25795
  Returns: string;
24774
25796
  };
25797
+ logistics_valid_timezone: {
25798
+ Args: {
25799
+ _tz: string;
25800
+ };
25801
+ Returns: boolean;
25802
+ };
25803
+ logistics_working_hours_status: {
25804
+ Args: never;
25805
+ Returns: Json;
25806
+ };
24775
25807
  logistics_write_buffer_layer_positions: {
24776
25808
  Args: {
24777
25809
  p_buffer_id: string;
@@ -25784,6 +26816,10 @@ export type Database = {
25784
26816
  };
25785
26817
  Returns: undefined;
25786
26818
  };
26819
+ prune_floriday_api_log: {
26820
+ Args: never;
26821
+ Returns: number;
26822
+ };
25787
26823
  quote_create_from_source: {
25788
26824
  Args: {
25789
26825
  _payload?: Json;
@@ -26217,6 +27253,13 @@ export type Database = {
26217
27253
  };
26218
27254
  Returns: number;
26219
27255
  };
27256
+ schedule_floriday_catalog_prices_sync: {
27257
+ Args: {
27258
+ p_apikey: string;
27259
+ p_url: string;
27260
+ };
27261
+ Returns: number;
27262
+ };
26220
27263
  schedule_floriday_clock_presales_sync: {
26221
27264
  Args: {
26222
27265
  p_apikey: string;
@@ -26517,6 +27560,10 @@ export type Database = {
26517
27560
  };
26518
27561
  Returns: undefined;
26519
27562
  };
27563
+ sync_floriday_prices_into_price_groups: {
27564
+ Args: never;
27565
+ Returns: number;
27566
+ };
26520
27567
  sync_layer_stock: {
26521
27568
  Args: {
26522
27569
  p_product_id: string;
@@ -26649,6 +27696,10 @@ export type Database = {
26649
27696
  Args: never;
26650
27697
  Returns: string;
26651
27698
  };
27699
+ voorraad_cleanup_old_rows: {
27700
+ Args: never;
27701
+ Returns: Json;
27702
+ };
26652
27703
  wake_print_queue: {
26653
27704
  Args: {
26654
27705
  _min_interval_ms?: number;