@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
@@ -7250,6 +7250,39 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
7250
7250
  referencedColumns: ["id"];
7251
7251
  }];
7252
7252
  };
7253
+ floriday_merge_log: {
7254
+ Row: {
7255
+ action: string;
7256
+ created_at: string;
7257
+ floriday_sales_order_ids: import("../integrations/supabase/types").Json;
7258
+ id: string;
7259
+ kept_order_id: string | null;
7260
+ lines: import("../integrations/supabase/types").Json;
7261
+ reason: string | null;
7262
+ removed_order_id: string | null;
7263
+ };
7264
+ Insert: {
7265
+ action: string;
7266
+ created_at?: string;
7267
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
7268
+ id?: string;
7269
+ kept_order_id?: string | null;
7270
+ lines?: import("../integrations/supabase/types").Json;
7271
+ reason?: string | null;
7272
+ removed_order_id?: string | null;
7273
+ };
7274
+ Update: {
7275
+ action?: string;
7276
+ created_at?: string;
7277
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
7278
+ id?: string;
7279
+ kept_order_id?: string | null;
7280
+ lines?: import("../integrations/supabase/types").Json;
7281
+ reason?: string | null;
7282
+ removed_order_id?: string | null;
7283
+ };
7284
+ Relationships: [];
7285
+ };
7253
7286
  floriday_network_cache: {
7254
7287
  Row: {
7255
7288
  city: string | null;
@@ -7955,6 +7988,144 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
7955
7988
  referencedColumns: ["id"];
7956
7989
  }];
7957
7990
  };
7991
+ floriday_webhook_events: {
7992
+ Row: {
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("../integrations/supabase/types").Json | null;
8006
+ processed_at: string | null;
8007
+ received_at: string;
8008
+ status: string;
8009
+ updated_at: string;
8010
+ };
8011
+ Insert: {
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("../integrations/supabase/types").Json | null;
8025
+ processed_at?: string | null;
8026
+ received_at?: string;
8027
+ status?: string;
8028
+ updated_at?: string;
8029
+ };
8030
+ Update: {
8031
+ aggregate_id?: string | null;
8032
+ aggregate_type?: string | null;
8033
+ attempts?: number;
8034
+ connection_id?: string | null;
8035
+ dedupe_key?: string;
8036
+ duplicate_count?: number;
8037
+ event_type?: string | null;
8038
+ id?: string;
8039
+ last_error?: string | null;
8040
+ max_attempts?: number;
8041
+ message_type?: string | null;
8042
+ next_attempt_at?: string | null;
8043
+ payload?: import("../integrations/supabase/types").Json | null;
8044
+ processed_at?: string | null;
8045
+ received_at?: string;
8046
+ status?: string;
8047
+ updated_at?: string;
8048
+ };
8049
+ Relationships: [{
8050
+ foreignKeyName: "floriday_webhook_events_connection_id_fkey";
8051
+ columns: ["connection_id"];
8052
+ isOneToOne: false;
8053
+ referencedRelation: "floriday_connections";
8054
+ referencedColumns: ["id"];
8055
+ }];
8056
+ };
8057
+ floriday_webhook_subscriptions: {
8058
+ Row: {
8059
+ attempts: number;
8060
+ callback_token_hash: string;
8061
+ callback_url: string;
8062
+ confirmed_at: string | null;
8063
+ connection_id: string;
8064
+ created_at: string;
8065
+ environment: string;
8066
+ id: string;
8067
+ last_attempt_at: string | null;
8068
+ last_error: string | null;
8069
+ last_error_kind: string | null;
8070
+ last_event_at: string | null;
8071
+ locked_until: string | null;
8072
+ managed_by: string;
8073
+ next_attempt_at: string | null;
8074
+ status: string;
8075
+ subscribe_url: string | null;
8076
+ subscribed_at: string;
8077
+ updated_at: string;
8078
+ };
8079
+ Insert: {
8080
+ attempts?: number;
8081
+ callback_token_hash: string;
8082
+ callback_url: string;
8083
+ confirmed_at?: string | null;
8084
+ connection_id: string;
8085
+ created_at?: string;
8086
+ environment: string;
8087
+ id?: string;
8088
+ last_attempt_at?: string | null;
8089
+ last_error?: string | null;
8090
+ last_error_kind?: string | null;
8091
+ last_event_at?: string | null;
8092
+ locked_until?: string | null;
8093
+ managed_by?: string;
8094
+ next_attempt_at?: string | null;
8095
+ status?: string;
8096
+ subscribe_url?: string | null;
8097
+ subscribed_at?: string;
8098
+ updated_at?: string;
8099
+ };
8100
+ Update: {
8101
+ attempts?: number;
8102
+ callback_token_hash?: string;
8103
+ callback_url?: string;
8104
+ confirmed_at?: string | null;
8105
+ connection_id?: string;
8106
+ created_at?: string;
8107
+ environment?: string;
8108
+ id?: string;
8109
+ last_attempt_at?: string | null;
8110
+ last_error?: string | null;
8111
+ last_error_kind?: string | null;
8112
+ last_event_at?: string | null;
8113
+ locked_until?: string | null;
8114
+ managed_by?: string;
8115
+ next_attempt_at?: string | null;
8116
+ status?: string;
8117
+ subscribe_url?: string | null;
8118
+ subscribed_at?: string;
8119
+ updated_at?: string;
8120
+ };
8121
+ Relationships: [{
8122
+ foreignKeyName: "floriday_webhook_subscriptions_connection_id_fkey";
8123
+ columns: ["connection_id"];
8124
+ isOneToOne: true;
8125
+ referencedRelation: "floriday_connections";
8126
+ referencedColumns: ["id"];
8127
+ }];
8128
+ };
7958
8129
  floriday_write_log: {
7959
8130
  Row: {
7960
8131
  action: string;
@@ -11324,6 +11495,60 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
11324
11495
  };
11325
11496
  Relationships: [];
11326
11497
  };
11498
+ logistics_order_merge_lines: {
11499
+ Row: {
11500
+ from_order_id: string;
11501
+ from_order_number: string | null;
11502
+ group_key: string;
11503
+ id: string;
11504
+ merged_at: string;
11505
+ order_item_id: string;
11506
+ ordered_at: string | null;
11507
+ product_id: string | null;
11508
+ product_name: string | null;
11509
+ quantity: number | null;
11510
+ reason: string;
11511
+ sales_order_id: string | null;
11512
+ source_line_key: string | null;
11513
+ to_order_id: string;
11514
+ to_order_number: string | null;
11515
+ };
11516
+ Insert: {
11517
+ from_order_id: string;
11518
+ from_order_number?: string | null;
11519
+ group_key: string;
11520
+ id?: string;
11521
+ merged_at?: string;
11522
+ order_item_id: string;
11523
+ ordered_at?: string | null;
11524
+ product_id?: string | null;
11525
+ product_name?: string | null;
11526
+ quantity?: number | null;
11527
+ reason: string;
11528
+ sales_order_id?: string | null;
11529
+ source_line_key?: string | null;
11530
+ to_order_id: string;
11531
+ to_order_number?: string | null;
11532
+ };
11533
+ Update: {
11534
+ from_order_id?: string;
11535
+ from_order_number?: string | null;
11536
+ group_key?: string;
11537
+ id?: string;
11538
+ merged_at?: string;
11539
+ order_item_id?: string;
11540
+ ordered_at?: string | null;
11541
+ product_id?: string | null;
11542
+ product_name?: string | null;
11543
+ quantity?: number | null;
11544
+ reason?: string;
11545
+ sales_order_id?: string | null;
11546
+ source_line_key?: string | null;
11547
+ to_order_id?: string;
11548
+ to_order_number?: string | null;
11549
+ };
11550
+ Relationships: [];
11551
+ };
11327
11552
  logistics_order_merges: {
11328
11553
  Row: {
11329
11554
  group_key: string;
@@ -14964,6 +15189,9 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
14964
15189
  product_id: string | null;
14965
15190
  product_name: string;
14966
15191
  quantity: number;
15192
+ quarantine_reason: string | null;
15193
+ quarantined_at: string | null;
15194
+ quarantined_into_order_id: string | null;
14967
15195
  source_line_key: string | null;
14968
15196
  unit: string;
14969
15197
  unit_price: number | null;
@@ -14980,6 +15208,9 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
14980
15208
  product_id?: string | null;
14981
15209
  product_name: string;
14982
15210
  quantity?: number;
15211
+ quarantine_reason?: string | null;
15212
+ quarantined_at?: string | null;
15213
+ quarantined_into_order_id?: string | null;
14983
15214
  source_line_key?: string | null;
14984
15215
  unit?: string;
14985
15216
  unit_price?: number | null;
@@ -14996,6 +15227,9 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
14996
15227
  product_id?: string | null;
14997
15228
  product_name?: string;
14998
15229
  quantity?: number;
15230
+ quarantine_reason?: string | null;
15231
+ quarantined_at?: string | null;
15232
+ quarantined_into_order_id?: string | null;
14999
15233
  source_line_key?: string | null;
15000
15234
  unit?: string;
15001
15235
  unit_price?: number | null;
@@ -16432,6 +16666,7 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
16432
16666
  created_at: string;
16433
16667
  end_at: string;
16434
16668
  id: string;
16669
+ kind: string;
16435
16670
  outbox_id: string | null;
16436
16671
  planning_item_id: string;
16437
16672
  reason: string | null;
@@ -16443,6 +16678,7 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
16443
16678
  created_at?: string;
16444
16679
  end_at: string;
16445
16680
  id?: string;
16681
+ kind?: string;
16446
16682
  outbox_id?: string | null;
16447
16683
  planning_item_id: string;
16448
16684
  reason?: string | null;
@@ -16454,6 +16690,7 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
16454
16690
  created_at?: string;
16455
16691
  end_at?: string;
16456
16692
  id?: string;
16693
+ kind?: string;
16457
16694
  outbox_id?: string | null;
16458
16695
  planning_item_id?: string;
16459
16696
  reason?: string | null;
@@ -16569,6 +16806,8 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
16569
16806
  enabled: boolean;
16570
16807
  id: boolean;
16571
16808
  reply_to: string | null;
16809
+ reschedule_body_template: string;
16810
+ reschedule_subject_template: string;
16572
16811
  subject_template: string;
16573
16812
  timezone: string;
16574
16813
  updated_at: string;
@@ -16583,6 +16822,8 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
16583
16822
  enabled?: boolean;
16584
16823
  id?: boolean;
16585
16824
  reply_to?: string | null;
16825
+ reschedule_body_template?: string;
16826
+ reschedule_subject_template?: string;
16586
16827
  subject_template?: string;
16587
16828
  timezone?: string;
16588
16829
  updated_at?: string;
@@ -16597,6 +16838,8 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
16597
16838
  enabled?: boolean;
16598
16839
  id?: boolean;
16599
16840
  reply_to?: string | null;
16841
+ reschedule_body_template?: string;
16842
+ reschedule_subject_template?: string;
16600
16843
  subject_template?: string;
16601
16844
  timezone?: string;
16602
16845
  updated_at?: string;
@@ -22049,6 +22292,30 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
22049
22292
  };
22050
22293
  Relationships: [];
22051
22294
  };
22295
+ uren_pagina_toegang: {
22296
+ Row: {
22297
+ created_at: string;
22298
+ id: string;
22299
+ user_id: string;
22300
+ };
22301
+ Insert: {
22302
+ created_at?: string;
22303
+ id?: string;
22304
+ user_id: string;
22305
+ };
22306
+ Update: {
22307
+ created_at?: string;
22308
+ id?: string;
22309
+ user_id?: string;
22310
+ };
22311
+ Relationships: [{
22312
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
22313
+ columns: ["user_id"];
22314
+ isOneToOne: true;
22315
+ referencedRelation: "profiles";
22316
+ referencedColumns: ["id"];
22317
+ }];
22318
+ };
22052
22319
  uren_settings: {
22053
22320
  Row: {
22054
22321
  break_minutes: number;
@@ -29998,6 +30265,12 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
29998
30265
  };
29999
30266
  Returns: undefined;
30000
30267
  };
30268
+ planning_html_escape: {
30269
+ Args: {
30270
+ t: string;
30271
+ };
30272
+ Returns: string;
30273
+ };
30001
30274
  planning_list: {
30002
30275
  Args: {
30003
30276
  _from: string;
@@ -30052,6 +30325,12 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
30052
30325
  id: string;
30053
30326
  }[];
30054
30327
  };
30328
+ planning_urlencode: {
30329
+ Args: {
30330
+ t: string;
30331
+ };
30332
+ Returns: string;
30333
+ };
30055
30334
  print_preview_toestaan: {
30056
30335
  Args: {
30057
30336
  _max?: number;
@@ -31197,6 +31476,10 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
31197
31476
  };
31198
31477
  Returns: number;
31199
31478
  };
31479
+ uren_heeft_pagina_toegang: {
31480
+ Args: never;
31481
+ Returns: boolean;
31482
+ };
31200
31483
  uren_is_beheerder: {
31201
31484
  Args: never;
31202
31485
  Returns: boolean;
@@ -31280,6 +31563,13 @@ export declare const getCartCoverage: import("@tanstack/start-client-core").Opti
31280
31563
  Args: never;
31281
31564
  Returns: string;
31282
31565
  };
31566
+ uren_pagina_toegang_instellen: {
31567
+ Args: {
31568
+ _toegang: boolean;
31569
+ _user_id: string;
31570
+ };
31571
+ Returns: undefined;
31572
+ };
31283
31573
  uren_planning_dagagenda: {
31284
31574
  Args: {
31285
31575
  _tot: string;