@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
@@ -7232,6 +7232,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7232
7232
  referencedColumns: ["id"];
7233
7233
  }];
7234
7234
  };
7235
+ floriday_merge_log: {
7236
+ Row: {
7237
+ action: string;
7238
+ created_at: string;
7239
+ floriday_sales_order_ids: import("./types").Json;
7240
+ id: string;
7241
+ kept_order_id: string | null;
7242
+ lines: import("./types").Json;
7243
+ reason: string | null;
7244
+ removed_order_id: string | null;
7245
+ };
7246
+ Insert: {
7247
+ action: string;
7248
+ created_at?: string;
7249
+ floriday_sales_order_ids?: import("./types").Json;
7250
+ id?: string;
7251
+ kept_order_id?: string | null;
7252
+ lines?: import("./types").Json;
7253
+ reason?: string | null;
7254
+ removed_order_id?: string | null;
7255
+ };
7256
+ Update: {
7257
+ action?: string;
7258
+ created_at?: string;
7259
+ floriday_sales_order_ids?: import("./types").Json;
7260
+ id?: string;
7261
+ kept_order_id?: string | null;
7262
+ lines?: import("./types").Json;
7263
+ reason?: string | null;
7264
+ removed_order_id?: string | null;
7265
+ };
7266
+ Relationships: [];
7267
+ };
7235
7268
  floriday_network_cache: {
7236
7269
  Row: {
7237
7270
  city: string | null;
@@ -7937,6 +7970,144 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7937
7970
  referencedColumns: ["id"];
7938
7971
  }];
7939
7972
  };
7973
+ floriday_webhook_events: {
7974
+ Row: {
7975
+ aggregate_id: string | null;
7976
+ aggregate_type: string | null;
7977
+ attempts: number;
7978
+ connection_id: string | null;
7979
+ dedupe_key: string;
7980
+ duplicate_count: number;
7981
+ event_type: string | null;
7982
+ id: string;
7983
+ last_error: string | null;
7984
+ max_attempts: number;
7985
+ message_type: string | null;
7986
+ next_attempt_at: string | null;
7987
+ payload: import("./types").Json | null;
7988
+ processed_at: string | null;
7989
+ received_at: string;
7990
+ status: string;
7991
+ updated_at: string;
7992
+ };
7993
+ Insert: {
7994
+ aggregate_id?: string | null;
7995
+ aggregate_type?: string | null;
7996
+ attempts?: number;
7997
+ connection_id?: string | null;
7998
+ dedupe_key: string;
7999
+ duplicate_count?: number;
8000
+ event_type?: string | null;
8001
+ id?: string;
8002
+ last_error?: string | null;
8003
+ max_attempts?: number;
8004
+ message_type?: string | null;
8005
+ next_attempt_at?: string | null;
8006
+ payload?: import("./types").Json | null;
8007
+ processed_at?: string | null;
8008
+ received_at?: string;
8009
+ status?: string;
8010
+ updated_at?: string;
8011
+ };
8012
+ Update: {
8013
+ aggregate_id?: string | null;
8014
+ aggregate_type?: string | null;
8015
+ attempts?: number;
8016
+ connection_id?: string | null;
8017
+ dedupe_key?: string;
8018
+ duplicate_count?: number;
8019
+ event_type?: string | null;
8020
+ id?: string;
8021
+ last_error?: string | null;
8022
+ max_attempts?: number;
8023
+ message_type?: string | null;
8024
+ next_attempt_at?: string | null;
8025
+ payload?: import("./types").Json | null;
8026
+ processed_at?: string | null;
8027
+ received_at?: string;
8028
+ status?: string;
8029
+ updated_at?: string;
8030
+ };
8031
+ Relationships: [{
8032
+ foreignKeyName: "floriday_webhook_events_connection_id_fkey";
8033
+ columns: ["connection_id"];
8034
+ isOneToOne: false;
8035
+ referencedRelation: "floriday_connections";
8036
+ referencedColumns: ["id"];
8037
+ }];
8038
+ };
8039
+ floriday_webhook_subscriptions: {
8040
+ Row: {
8041
+ attempts: number;
8042
+ callback_token_hash: string;
8043
+ callback_url: string;
8044
+ confirmed_at: string | null;
8045
+ connection_id: string;
8046
+ created_at: string;
8047
+ environment: string;
8048
+ id: string;
8049
+ last_attempt_at: string | null;
8050
+ last_error: string | null;
8051
+ last_error_kind: string | null;
8052
+ last_event_at: string | null;
8053
+ locked_until: string | null;
8054
+ managed_by: string;
8055
+ next_attempt_at: string | null;
8056
+ status: string;
8057
+ subscribe_url: string | null;
8058
+ subscribed_at: string;
8059
+ updated_at: string;
8060
+ };
8061
+ Insert: {
8062
+ attempts?: number;
8063
+ callback_token_hash: string;
8064
+ callback_url: string;
8065
+ confirmed_at?: string | null;
8066
+ connection_id: string;
8067
+ created_at?: string;
8068
+ environment: string;
8069
+ id?: string;
8070
+ last_attempt_at?: string | null;
8071
+ last_error?: string | null;
8072
+ last_error_kind?: string | null;
8073
+ last_event_at?: string | null;
8074
+ locked_until?: string | null;
8075
+ managed_by?: string;
8076
+ next_attempt_at?: string | null;
8077
+ status?: string;
8078
+ subscribe_url?: string | null;
8079
+ subscribed_at?: string;
8080
+ updated_at?: string;
8081
+ };
8082
+ Update: {
8083
+ attempts?: number;
8084
+ callback_token_hash?: string;
8085
+ callback_url?: string;
8086
+ confirmed_at?: string | null;
8087
+ connection_id?: string;
8088
+ created_at?: string;
8089
+ environment?: string;
8090
+ id?: string;
8091
+ last_attempt_at?: string | null;
8092
+ last_error?: string | null;
8093
+ last_error_kind?: string | null;
8094
+ last_event_at?: string | null;
8095
+ locked_until?: string | null;
8096
+ managed_by?: string;
8097
+ next_attempt_at?: string | null;
8098
+ status?: string;
8099
+ subscribe_url?: string | null;
8100
+ subscribed_at?: string;
8101
+ updated_at?: string;
8102
+ };
8103
+ Relationships: [{
8104
+ foreignKeyName: "floriday_webhook_subscriptions_connection_id_fkey";
8105
+ columns: ["connection_id"];
8106
+ isOneToOne: true;
8107
+ referencedRelation: "floriday_connections";
8108
+ referencedColumns: ["id"];
8109
+ }];
8110
+ };
7940
8111
  floriday_write_log: {
7941
8112
  Row: {
7942
8113
  action: string;
@@ -11306,6 +11477,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11306
11477
  };
11307
11478
  Relationships: [];
11308
11479
  };
11480
+ logistics_order_merge_lines: {
11481
+ Row: {
11482
+ from_order_id: string;
11483
+ from_order_number: string | null;
11484
+ group_key: string;
11485
+ id: string;
11486
+ merged_at: string;
11487
+ order_item_id: string;
11488
+ ordered_at: string | null;
11489
+ product_id: string | null;
11490
+ product_name: string | null;
11491
+ quantity: number | null;
11492
+ reason: string;
11493
+ sales_order_id: string | null;
11494
+ source_line_key: string | null;
11495
+ to_order_id: string;
11496
+ to_order_number: string | null;
11497
+ };
11498
+ Insert: {
11499
+ from_order_id: string;
11500
+ from_order_number?: string | null;
11501
+ group_key: string;
11502
+ id?: string;
11503
+ merged_at?: string;
11504
+ order_item_id: string;
11505
+ ordered_at?: string | null;
11506
+ product_id?: string | null;
11507
+ product_name?: string | null;
11508
+ quantity?: number | null;
11509
+ reason: string;
11510
+ sales_order_id?: string | null;
11511
+ source_line_key?: string | null;
11512
+ to_order_id: string;
11513
+ to_order_number?: string | null;
11514
+ };
11515
+ Update: {
11516
+ from_order_id?: string;
11517
+ from_order_number?: string | null;
11518
+ group_key?: string;
11519
+ id?: string;
11520
+ merged_at?: string;
11521
+ order_item_id?: string;
11522
+ ordered_at?: string | null;
11523
+ product_id?: string | null;
11524
+ product_name?: string | null;
11525
+ quantity?: number | null;
11526
+ reason?: string;
11527
+ sales_order_id?: string | null;
11528
+ source_line_key?: string | null;
11529
+ to_order_id?: string;
11530
+ to_order_number?: string | null;
11531
+ };
11532
+ Relationships: [];
11533
+ };
11309
11534
  logistics_order_merges: {
11310
11535
  Row: {
11311
11536
  group_key: string;
@@ -14946,6 +15171,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14946
15171
  product_id: string | null;
14947
15172
  product_name: string;
14948
15173
  quantity: number;
15174
+ quarantine_reason: string | null;
15175
+ quarantined_at: string | null;
15176
+ quarantined_into_order_id: string | null;
14949
15177
  source_line_key: string | null;
14950
15178
  unit: string;
14951
15179
  unit_price: number | null;
@@ -14962,6 +15190,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14962
15190
  product_id?: string | null;
14963
15191
  product_name: string;
14964
15192
  quantity?: number;
15193
+ quarantine_reason?: string | null;
15194
+ quarantined_at?: string | null;
15195
+ quarantined_into_order_id?: string | null;
14965
15196
  source_line_key?: string | null;
14966
15197
  unit?: string;
14967
15198
  unit_price?: number | null;
@@ -14978,6 +15209,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14978
15209
  product_id?: string | null;
14979
15210
  product_name?: string;
14980
15211
  quantity?: number;
15212
+ quarantine_reason?: string | null;
15213
+ quarantined_at?: string | null;
15214
+ quarantined_into_order_id?: string | null;
14981
15215
  source_line_key?: string | null;
14982
15216
  unit?: string;
14983
15217
  unit_price?: number | null;
@@ -16414,6 +16648,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16414
16648
  created_at: string;
16415
16649
  end_at: string;
16416
16650
  id: string;
16651
+ kind: string;
16417
16652
  outbox_id: string | null;
16418
16653
  planning_item_id: string;
16419
16654
  reason: string | null;
@@ -16425,6 +16660,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16425
16660
  created_at?: string;
16426
16661
  end_at: string;
16427
16662
  id?: string;
16663
+ kind?: string;
16428
16664
  outbox_id?: string | null;
16429
16665
  planning_item_id: string;
16430
16666
  reason?: string | null;
@@ -16436,6 +16672,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16436
16672
  created_at?: string;
16437
16673
  end_at?: string;
16438
16674
  id?: string;
16675
+ kind?: string;
16439
16676
  outbox_id?: string | null;
16440
16677
  planning_item_id?: string;
16441
16678
  reason?: string | null;
@@ -16551,6 +16788,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16551
16788
  enabled: boolean;
16552
16789
  id: boolean;
16553
16790
  reply_to: string | null;
16791
+ reschedule_body_template: string;
16792
+ reschedule_subject_template: string;
16554
16793
  subject_template: string;
16555
16794
  timezone: string;
16556
16795
  updated_at: string;
@@ -16565,6 +16804,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16565
16804
  enabled?: boolean;
16566
16805
  id?: boolean;
16567
16806
  reply_to?: string | null;
16807
+ reschedule_body_template?: string;
16808
+ reschedule_subject_template?: string;
16568
16809
  subject_template?: string;
16569
16810
  timezone?: string;
16570
16811
  updated_at?: string;
@@ -16579,6 +16820,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16579
16820
  enabled?: boolean;
16580
16821
  id?: boolean;
16581
16822
  reply_to?: string | null;
16823
+ reschedule_body_template?: string;
16824
+ reschedule_subject_template?: string;
16582
16825
  subject_template?: string;
16583
16826
  timezone?: string;
16584
16827
  updated_at?: string;
@@ -22031,6 +22274,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22031
22274
  };
22032
22275
  Relationships: [];
22033
22276
  };
22277
+ uren_pagina_toegang: {
22278
+ Row: {
22279
+ created_at: string;
22280
+ id: string;
22281
+ user_id: string;
22282
+ };
22283
+ Insert: {
22284
+ created_at?: string;
22285
+ id?: string;
22286
+ user_id: string;
22287
+ };
22288
+ Update: {
22289
+ created_at?: string;
22290
+ id?: string;
22291
+ user_id?: string;
22292
+ };
22293
+ Relationships: [{
22294
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
22295
+ columns: ["user_id"];
22296
+ isOneToOne: true;
22297
+ referencedRelation: "profiles";
22298
+ referencedColumns: ["id"];
22299
+ }];
22300
+ };
22034
22301
  uren_settings: {
22035
22302
  Row: {
22036
22303
  break_minutes: number;
@@ -29980,6 +30247,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29980
30247
  };
29981
30248
  Returns: undefined;
29982
30249
  };
30250
+ planning_html_escape: {
30251
+ Args: {
30252
+ t: string;
30253
+ };
30254
+ Returns: string;
30255
+ };
29983
30256
  planning_list: {
29984
30257
  Args: {
29985
30258
  _from: string;
@@ -30034,6 +30307,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
30034
30307
  id: string;
30035
30308
  }[];
30036
30309
  };
30310
+ planning_urlencode: {
30311
+ Args: {
30312
+ t: string;
30313
+ };
30314
+ Returns: string;
30315
+ };
30037
30316
  print_preview_toestaan: {
30038
30317
  Args: {
30039
30318
  _max?: number;
@@ -31179,6 +31458,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
31179
31458
  };
31180
31459
  Returns: number;
31181
31460
  };
31461
+ uren_heeft_pagina_toegang: {
31462
+ Args: never;
31463
+ Returns: boolean;
31464
+ };
31182
31465
  uren_is_beheerder: {
31183
31466
  Args: never;
31184
31467
  Returns: boolean;
@@ -31262,6 +31545,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
31262
31545
  Args: never;
31263
31546
  Returns: string;
31264
31547
  };
31548
+ uren_pagina_toegang_instellen: {
31549
+ Args: {
31550
+ _toegang: boolean;
31551
+ _user_id: string;
31552
+ };
31553
+ Returns: undefined;
31554
+ };
31265
31555
  uren_planning_dagagenda: {
31266
31556
  Args: {
31267
31557
  _tot: string;