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