@flowselections/floriday-voorraad 1.0.42 → 1.0.43

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 (44) hide show
  1. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/ArtikelWizard.js +15 -11
  3. package/dist-lib/components/voorraad/OrderHistoryCard.js +2 -2
  4. package/dist-lib/components/voorraad/StockMutationHistoryCard.d.ts +7 -0
  5. package/dist-lib/components/voorraad/StockMutationHistoryCard.d.ts.map +1 -0
  6. package/dist-lib/components/voorraad/StockMutationHistoryCard.js +134 -0
  7. package/dist-lib/components/voorraad/StockPushMonitor.d.ts.map +1 -1
  8. package/dist-lib/components/voorraad/StockPushMonitor.js +90 -12
  9. package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
  10. package/dist-lib/components/voorraad/VoorraadPage.js +1 -1
  11. package/dist-lib/hooks/useFloriday.d.ts.map +1 -1
  12. package/dist-lib/hooks/useFloriday.js +5 -2
  13. package/dist-lib/hooks/useStockPushJobs.d.ts +2 -0
  14. package/dist-lib/hooks/useStockPushJobs.d.ts.map +1 -1
  15. package/dist-lib/hooks/useStockPushJobs.js +18 -5
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +440 -0
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.d.ts +440 -0
  19. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.server.d.ts +440 -0
  21. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +443 -0
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/lib/floricode-required-features.functions.d.ts +440 -0
  25. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-2026v1.server.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-2026v1.server.js +6 -0
  28. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +440 -0
  29. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-env.functions.d.ts +880 -0
  31. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday-gateway.functions.d.ts +2640 -0
  33. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +880 -0
  35. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-warehouse.functions.d.ts +1320 -0
  37. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-writes.functions.d.ts +880 -0
  39. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/inventory-settings.functions.d.ts +880 -0
  41. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/stock-sync.functions.d.ts +880 -0
  43. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  44. 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;
@@ -6973,6 +7135,69 @@ export type Database = {
6973
7135
  }
6974
7136
  ];
6975
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
+ };
6976
7201
  floriday_logistic_labels_cache: {
6977
7202
  Row: {
6978
7203
  byte_size: number | null;
@@ -11624,6 +11849,111 @@ export type Database = {
11624
11849
  };
11625
11850
  Relationships: [];
11626
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
+ };
11627
11957
  logistics_variables: {
11628
11958
  Row: {
11629
11959
  created_at: string;
@@ -22500,6 +22830,15 @@ export type Database = {
22500
22830
  Args: never;
22501
22831
  Returns: boolean;
22502
22832
  };
22833
+ cancel_open_print_jobs: {
22834
+ Args: {
22835
+ _cutoff: string;
22836
+ };
22837
+ Returns: {
22838
+ extern_job_id: string;
22839
+ id: string;
22840
+ }[];
22841
+ };
22503
22842
  check_offer_product_available_stock: {
22504
22843
  Args: {
22505
22844
  p_campaign_product_id: string;
@@ -24112,6 +24451,12 @@ export type Database = {
24112
24451
  };
24113
24452
  Returns: Json;
24114
24453
  };
24454
+ logistics_cart_plan_status_core: {
24455
+ Args: {
24456
+ p_ref: string;
24457
+ };
24458
+ Returns: Json;
24459
+ };
24115
24460
  logistics_cart_release_reason: {
24116
24461
  Args: {
24117
24462
  p_cart_id: string;
@@ -24544,6 +24889,12 @@ export type Database = {
24544
24889
  };
24545
24890
  Returns: Json;
24546
24891
  };
24892
+ logistics_ensure_shipping_notes: {
24893
+ Args: {
24894
+ p_limit?: number;
24895
+ };
24896
+ Returns: Json;
24897
+ };
24547
24898
  logistics_fail_task: {
24548
24899
  Args: {
24549
24900
  p_error: string;
@@ -24589,6 +24940,10 @@ export type Database = {
24589
24940
  isSetofReturn: false;
24590
24941
  };
24591
24942
  };
24943
+ logistics_fix_wrong_shipping_notes: {
24944
+ Args: never;
24945
+ Returns: Json;
24946
+ };
24592
24947
  logistics_floriday_cart_plan: {
24593
24948
  Args: {
24594
24949
  p_order_id: string;
@@ -24616,6 +24971,10 @@ export type Database = {
24616
24971
  revision: number;
24617
24972
  }[];
24618
24973
  };
24974
+ logistics_floriday_delivery_note_create_enabled: {
24975
+ Args: never;
24976
+ Returns: boolean;
24977
+ };
24619
24978
  logistics_floriday_finish_push: {
24620
24979
  Args: {
24621
24980
  _error?: string;
@@ -24859,6 +25218,12 @@ export type Database = {
24859
25218
  };
24860
25219
  Returns: string;
24861
25220
  };
25221
+ logistics_payload_is_floriday: {
25222
+ Args: {
25223
+ _payload: Json;
25224
+ };
25225
+ Returns: boolean;
25226
+ };
24862
25227
  logistics_pick_agenda: {
24863
25228
  Args: {
24864
25229
  p_from?: string;
@@ -24981,6 +25346,20 @@ export type Database = {
24981
25346
  Args: never;
24982
25347
  Returns: undefined;
24983
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
+ };
24984
25363
  logistics_plan_prune: {
24985
25364
  Args: never;
24986
25365
  Returns: number;
@@ -25002,6 +25381,12 @@ export type Database = {
25002
25381
  };
25003
25382
  Returns: number;
25004
25383
  };
25384
+ logistics_plan_state_for: {
25385
+ Args: {
25386
+ p_ref: string;
25387
+ };
25388
+ Returns: Json;
25389
+ };
25005
25390
  logistics_prepare_pick_documents: {
25006
25391
  Args: {
25007
25392
  p_limit?: number;
@@ -25060,6 +25445,12 @@ export type Database = {
25060
25445
  };
25061
25446
  Returns: Json;
25062
25447
  };
25448
+ logistics_refresh_plan_state: {
25449
+ Args: {
25450
+ p_limit?: number;
25451
+ };
25452
+ Returns: Json;
25453
+ };
25063
25454
  logistics_replan_all: {
25064
25455
  Args: {
25065
25456
  p_reason?: string;
@@ -25234,6 +25625,16 @@ export type Database = {
25234
25625
  };
25235
25626
  Returns: string;
25236
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
+ };
25237
25638
  logistics_slip_note_claim: {
25238
25639
  Args: {
25239
25640
  _lease_seconds?: number;
@@ -25340,6 +25741,40 @@ export type Database = {
25340
25741
  name: string;
25341
25742
  }[];
25342
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
+ };
25343
25778
  logistics_upsert_task: {
25344
25779
  Args: {
25345
25780
  p_buffer_ref: string;
@@ -26381,6 +26816,10 @@ export type Database = {
26381
26816
  };
26382
26817
  Returns: undefined;
26383
26818
  };
26819
+ prune_floriday_api_log: {
26820
+ Args: never;
26821
+ Returns: number;
26822
+ };
26384
26823
  quote_create_from_source: {
26385
26824
  Args: {
26386
26825
  _payload?: Json;
@@ -27257,6 +27696,10 @@ export type Database = {
27257
27696
  Args: never;
27258
27697
  Returns: string;
27259
27698
  };
27699
+ voorraad_cleanup_old_rows: {
27700
+ Args: never;
27701
+ Returns: Json;
27702
+ };
27260
27703
  wake_print_queue: {
27261
27704
  Args: {
27262
27705
  _min_interval_ms?: number;