@flowselections/logistiek-engine 1.0.100 → 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 (48) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +290 -0
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.server.d.ts +290 -0
  4. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/moduleClient.d.ts +290 -0
  6. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +296 -0
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/cartCoverage.functions.d.ts +290 -0
  10. package/dist-lib/lib/cartCoverage.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/controlScan.server.d.ts.map +1 -1
  12. package/dist-lib/lib/controlScan.server.js +37 -0
  13. package/dist-lib/lib/floridayCartCarriers.d.ts +61 -0
  14. package/dist-lib/lib/floridayCartCarriers.d.ts.map +1 -0
  15. package/dist-lib/lib/floridayCartCarriers.js +113 -0
  16. package/dist-lib/lib/floridayCartCarriers.test.d.ts +2 -0
  17. package/dist-lib/lib/floridayCartCarriers.test.d.ts.map +1 -0
  18. package/dist-lib/lib/floridayCartCarriers.test.js +66 -0
  19. package/dist-lib/lib/floridayDocuments.functions.d.ts +870 -0
  20. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/floridayDocuments.server.d.ts +7 -0
  22. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  23. package/dist-lib/lib/floridayDocuments.server.js +16 -1
  24. package/dist-lib/lib/floridayPush.functions.d.ts +290 -0
  25. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floridayPush.server.d.ts +2 -0
  27. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  28. package/dist-lib/lib/floridayPush.server.js +54 -3
  29. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1450 -0
  30. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  32. package/dist-lib/lib/loadCarrierPlanning.server.js +6 -3
  33. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +580 -0
  34. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +290 -0
  36. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  38. package/dist-lib/lib/modulePrompts.js +81 -0
  39. package/dist-lib/lib/moduleVersion.d.ts +1 -1
  40. package/dist-lib/lib/moduleVersion.js +1 -1
  41. package/dist-lib/lib/plannerDiff.functions.d.ts +290 -0
  42. package/dist-lib/lib/plannerDiff.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/quarantineFilter.test.d.ts +2 -0
  44. package/dist-lib/lib/quarantineFilter.test.d.ts.map +1 -0
  45. package/dist-lib/lib/quarantineFilter.test.js +18 -0
  46. package/dist-lib/lib/shippingNoteQueue.server.d.ts.map +1 -1
  47. package/dist-lib/lib/shippingNoteQueue.server.js +29 -1
  48. package/package.json +3 -3
@@ -7236,6 +7236,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
7236
7236
  referencedColumns: ["id"];
7237
7237
  }];
7238
7238
  };
7239
+ floriday_merge_log: {
7240
+ Row: {
7241
+ action: string;
7242
+ created_at: string;
7243
+ floriday_sales_order_ids: import("../integrations/supabase/types").Json;
7244
+ id: string;
7245
+ kept_order_id: string | null;
7246
+ lines: import("../integrations/supabase/types").Json;
7247
+ reason: string | null;
7248
+ removed_order_id: string | null;
7249
+ };
7250
+ Insert: {
7251
+ action: string;
7252
+ created_at?: string;
7253
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
7254
+ id?: string;
7255
+ kept_order_id?: string | null;
7256
+ lines?: import("../integrations/supabase/types").Json;
7257
+ reason?: string | null;
7258
+ removed_order_id?: string | null;
7259
+ };
7260
+ Update: {
7261
+ action?: string;
7262
+ created_at?: string;
7263
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
7264
+ id?: string;
7265
+ kept_order_id?: string | null;
7266
+ lines?: import("../integrations/supabase/types").Json;
7267
+ reason?: string | null;
7268
+ removed_order_id?: string | null;
7269
+ };
7270
+ Relationships: [];
7271
+ };
7239
7272
  floriday_network_cache: {
7240
7273
  Row: {
7241
7274
  city: string | null;
@@ -7941,6 +7974,144 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
7941
7974
  referencedColumns: ["id"];
7942
7975
  }];
7943
7976
  };
7977
+ floriday_webhook_events: {
7978
+ Row: {
7979
+ aggregate_id: string | null;
7980
+ aggregate_type: string | null;
7981
+ attempts: number;
7982
+ connection_id: string | null;
7983
+ dedupe_key: string;
7984
+ duplicate_count: number;
7985
+ event_type: string | null;
7986
+ id: string;
7987
+ last_error: string | null;
7988
+ max_attempts: number;
7989
+ message_type: string | null;
7990
+ next_attempt_at: string | null;
7991
+ payload: import("../integrations/supabase/types").Json | null;
7992
+ processed_at: string | null;
7993
+ received_at: string;
7994
+ status: string;
7995
+ updated_at: string;
7996
+ };
7997
+ Insert: {
7998
+ aggregate_id?: string | null;
7999
+ aggregate_type?: string | null;
8000
+ attempts?: number;
8001
+ connection_id?: string | null;
8002
+ dedupe_key: string;
8003
+ duplicate_count?: number;
8004
+ event_type?: string | null;
8005
+ id?: string;
8006
+ last_error?: string | null;
8007
+ max_attempts?: number;
8008
+ message_type?: string | null;
8009
+ next_attempt_at?: string | null;
8010
+ payload?: import("../integrations/supabase/types").Json | null;
8011
+ processed_at?: string | null;
8012
+ received_at?: string;
8013
+ status?: string;
8014
+ updated_at?: string;
8015
+ };
8016
+ Update: {
8017
+ aggregate_id?: string | null;
8018
+ aggregate_type?: string | null;
8019
+ attempts?: number;
8020
+ connection_id?: string | null;
8021
+ dedupe_key?: string;
8022
+ duplicate_count?: number;
8023
+ event_type?: string | null;
8024
+ id?: string;
8025
+ last_error?: string | null;
8026
+ max_attempts?: number;
8027
+ message_type?: string | null;
8028
+ next_attempt_at?: string | null;
8029
+ payload?: import("../integrations/supabase/types").Json | null;
8030
+ processed_at?: string | null;
8031
+ received_at?: string;
8032
+ status?: string;
8033
+ updated_at?: string;
8034
+ };
8035
+ Relationships: [{
8036
+ foreignKeyName: "floriday_webhook_events_connection_id_fkey";
8037
+ columns: ["connection_id"];
8038
+ isOneToOne: false;
8039
+ referencedRelation: "floriday_connections";
8040
+ referencedColumns: ["id"];
8041
+ }];
8042
+ };
8043
+ floriday_webhook_subscriptions: {
8044
+ Row: {
8045
+ attempts: number;
8046
+ callback_token_hash: string;
8047
+ callback_url: string;
8048
+ confirmed_at: string | null;
8049
+ connection_id: string;
8050
+ created_at: string;
8051
+ environment: string;
8052
+ id: string;
8053
+ last_attempt_at: string | null;
8054
+ last_error: string | null;
8055
+ last_error_kind: string | null;
8056
+ last_event_at: string | null;
8057
+ locked_until: string | null;
8058
+ managed_by: string;
8059
+ next_attempt_at: string | null;
8060
+ status: string;
8061
+ subscribe_url: string | null;
8062
+ subscribed_at: string;
8063
+ updated_at: string;
8064
+ };
8065
+ Insert: {
8066
+ attempts?: number;
8067
+ callback_token_hash: string;
8068
+ callback_url: string;
8069
+ confirmed_at?: string | null;
8070
+ connection_id: string;
8071
+ created_at?: string;
8072
+ environment: string;
8073
+ id?: string;
8074
+ last_attempt_at?: string | null;
8075
+ last_error?: string | null;
8076
+ last_error_kind?: string | null;
8077
+ last_event_at?: string | null;
8078
+ locked_until?: string | null;
8079
+ managed_by?: string;
8080
+ next_attempt_at?: string | null;
8081
+ status?: string;
8082
+ subscribe_url?: string | null;
8083
+ subscribed_at?: string;
8084
+ updated_at?: string;
8085
+ };
8086
+ Update: {
8087
+ attempts?: number;
8088
+ callback_token_hash?: string;
8089
+ callback_url?: string;
8090
+ confirmed_at?: string | null;
8091
+ connection_id?: string;
8092
+ created_at?: string;
8093
+ environment?: string;
8094
+ id?: string;
8095
+ last_attempt_at?: string | null;
8096
+ last_error?: string | null;
8097
+ last_error_kind?: string | null;
8098
+ last_event_at?: string | null;
8099
+ locked_until?: string | null;
8100
+ managed_by?: string;
8101
+ next_attempt_at?: string | null;
8102
+ status?: string;
8103
+ subscribe_url?: string | null;
8104
+ subscribed_at?: string;
8105
+ updated_at?: string;
8106
+ };
8107
+ Relationships: [{
8108
+ foreignKeyName: "floriday_webhook_subscriptions_connection_id_fkey";
8109
+ columns: ["connection_id"];
8110
+ isOneToOne: true;
8111
+ referencedRelation: "floriday_connections";
8112
+ referencedColumns: ["id"];
8113
+ }];
8114
+ };
7944
8115
  floriday_write_log: {
7945
8116
  Row: {
7946
8117
  action: string;
@@ -11310,6 +11481,60 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
11310
11481
  };
11311
11482
  Relationships: [];
11312
11483
  };
11484
+ logistics_order_merge_lines: {
11485
+ Row: {
11486
+ from_order_id: string;
11487
+ from_order_number: string | null;
11488
+ group_key: string;
11489
+ id: string;
11490
+ merged_at: string;
11491
+ order_item_id: string;
11492
+ ordered_at: string | null;
11493
+ product_id: string | null;
11494
+ product_name: string | null;
11495
+ quantity: number | null;
11496
+ reason: string;
11497
+ sales_order_id: string | null;
11498
+ source_line_key: string | null;
11499
+ to_order_id: string;
11500
+ to_order_number: string | null;
11501
+ };
11502
+ Insert: {
11503
+ from_order_id: string;
11504
+ from_order_number?: string | null;
11505
+ group_key: string;
11506
+ id?: string;
11507
+ merged_at?: string;
11508
+ order_item_id: string;
11509
+ ordered_at?: string | null;
11510
+ product_id?: string | null;
11511
+ product_name?: string | null;
11512
+ quantity?: number | null;
11513
+ reason: string;
11514
+ sales_order_id?: string | null;
11515
+ source_line_key?: string | null;
11516
+ to_order_id: string;
11517
+ to_order_number?: string | null;
11518
+ };
11519
+ Update: {
11520
+ from_order_id?: string;
11521
+ from_order_number?: string | null;
11522
+ group_key?: string;
11523
+ id?: string;
11524
+ merged_at?: string;
11525
+ order_item_id?: string;
11526
+ ordered_at?: string | null;
11527
+ product_id?: string | null;
11528
+ product_name?: string | null;
11529
+ quantity?: number | null;
11530
+ reason?: string;
11531
+ sales_order_id?: string | null;
11532
+ source_line_key?: string | null;
11533
+ to_order_id?: string;
11534
+ to_order_number?: string | null;
11535
+ };
11536
+ Relationships: [];
11537
+ };
11313
11538
  logistics_order_merges: {
11314
11539
  Row: {
11315
11540
  group_key: string;
@@ -14950,6 +15175,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14950
15175
  product_id: string | null;
14951
15176
  product_name: string;
14952
15177
  quantity: number;
15178
+ quarantine_reason: string | null;
15179
+ quarantined_at: string | null;
15180
+ quarantined_into_order_id: string | null;
14953
15181
  source_line_key: string | null;
14954
15182
  unit: string;
14955
15183
  unit_price: number | null;
@@ -14966,6 +15194,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14966
15194
  product_id?: string | null;
14967
15195
  product_name: string;
14968
15196
  quantity?: number;
15197
+ quarantine_reason?: string | null;
15198
+ quarantined_at?: string | null;
15199
+ quarantined_into_order_id?: string | null;
14969
15200
  source_line_key?: string | null;
14970
15201
  unit?: string;
14971
15202
  unit_price?: number | null;
@@ -14982,6 +15213,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14982
15213
  product_id?: string | null;
14983
15214
  product_name?: string;
14984
15215
  quantity?: number;
15216
+ quarantine_reason?: string | null;
15217
+ quarantined_at?: string | null;
15218
+ quarantined_into_order_id?: string | null;
14985
15219
  source_line_key?: string | null;
14986
15220
  unit?: string;
14987
15221
  unit_price?: number | null;
@@ -16418,6 +16652,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16418
16652
  created_at: string;
16419
16653
  end_at: string;
16420
16654
  id: string;
16655
+ kind: string;
16421
16656
  outbox_id: string | null;
16422
16657
  planning_item_id: string;
16423
16658
  reason: string | null;
@@ -16429,6 +16664,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16429
16664
  created_at?: string;
16430
16665
  end_at: string;
16431
16666
  id?: string;
16667
+ kind?: string;
16432
16668
  outbox_id?: string | null;
16433
16669
  planning_item_id: string;
16434
16670
  reason?: string | null;
@@ -16440,6 +16676,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16440
16676
  created_at?: string;
16441
16677
  end_at?: string;
16442
16678
  id?: string;
16679
+ kind?: string;
16443
16680
  outbox_id?: string | null;
16444
16681
  planning_item_id?: string;
16445
16682
  reason?: string | null;
@@ -16555,6 +16792,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16555
16792
  enabled: boolean;
16556
16793
  id: boolean;
16557
16794
  reply_to: string | null;
16795
+ reschedule_body_template: string;
16796
+ reschedule_subject_template: string;
16558
16797
  subject_template: string;
16559
16798
  timezone: string;
16560
16799
  updated_at: string;
@@ -16569,6 +16808,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16569
16808
  enabled?: boolean;
16570
16809
  id?: boolean;
16571
16810
  reply_to?: string | null;
16811
+ reschedule_body_template?: string;
16812
+ reschedule_subject_template?: string;
16572
16813
  subject_template?: string;
16573
16814
  timezone?: string;
16574
16815
  updated_at?: string;
@@ -16583,6 +16824,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16583
16824
  enabled?: boolean;
16584
16825
  id?: boolean;
16585
16826
  reply_to?: string | null;
16827
+ reschedule_body_template?: string;
16828
+ reschedule_subject_template?: string;
16586
16829
  subject_template?: string;
16587
16830
  timezone?: string;
16588
16831
  updated_at?: string;
@@ -22035,6 +22278,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22035
22278
  };
22036
22279
  Relationships: [];
22037
22280
  };
22281
+ uren_pagina_toegang: {
22282
+ Row: {
22283
+ created_at: string;
22284
+ id: string;
22285
+ user_id: string;
22286
+ };
22287
+ Insert: {
22288
+ created_at?: string;
22289
+ id?: string;
22290
+ user_id: string;
22291
+ };
22292
+ Update: {
22293
+ created_at?: string;
22294
+ id?: string;
22295
+ user_id?: string;
22296
+ };
22297
+ Relationships: [{
22298
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
22299
+ columns: ["user_id"];
22300
+ isOneToOne: true;
22301
+ referencedRelation: "profiles";
22302
+ referencedColumns: ["id"];
22303
+ }];
22304
+ };
22038
22305
  uren_settings: {
22039
22306
  Row: {
22040
22307
  break_minutes: number;
@@ -29984,6 +30251,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
29984
30251
  };
29985
30252
  Returns: undefined;
29986
30253
  };
30254
+ planning_html_escape: {
30255
+ Args: {
30256
+ t: string;
30257
+ };
30258
+ Returns: string;
30259
+ };
29987
30260
  planning_list: {
29988
30261
  Args: {
29989
30262
  _from: string;
@@ -30038,6 +30311,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
30038
30311
  id: string;
30039
30312
  }[];
30040
30313
  };
30314
+ planning_urlencode: {
30315
+ Args: {
30316
+ t: string;
30317
+ };
30318
+ Returns: string;
30319
+ };
30041
30320
  print_preview_toestaan: {
30042
30321
  Args: {
30043
30322
  _max?: number;
@@ -31183,6 +31462,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
31183
31462
  };
31184
31463
  Returns: number;
31185
31464
  };
31465
+ uren_heeft_pagina_toegang: {
31466
+ Args: never;
31467
+ Returns: boolean;
31468
+ };
31186
31469
  uren_is_beheerder: {
31187
31470
  Args: never;
31188
31471
  Returns: boolean;
@@ -31266,6 +31549,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
31266
31549
  Args: never;
31267
31550
  Returns: string;
31268
31551
  };
31552
+ uren_pagina_toegang_instellen: {
31553
+ Args: {
31554
+ _toegang: boolean;
31555
+ _user_id: string;
31556
+ };
31557
+ Returns: undefined;
31558
+ };
31269
31559
  uren_planning_dagagenda: {
31270
31560
  Args: {
31271
31561
  _tot: string;