@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
@@ -7409,6 +7409,39 @@ export type Database = {
7409
7409
  }
7410
7410
  ];
7411
7411
  };
7412
+ floriday_merge_log: {
7413
+ Row: {
7414
+ action: string;
7415
+ created_at: string;
7416
+ floriday_sales_order_ids: Json;
7417
+ id: string;
7418
+ kept_order_id: string | null;
7419
+ lines: Json;
7420
+ reason: string | null;
7421
+ removed_order_id: string | null;
7422
+ };
7423
+ Insert: {
7424
+ action: string;
7425
+ created_at?: string;
7426
+ floriday_sales_order_ids?: Json;
7427
+ id?: string;
7428
+ kept_order_id?: string | null;
7429
+ lines?: Json;
7430
+ reason?: string | null;
7431
+ removed_order_id?: string | null;
7432
+ };
7433
+ Update: {
7434
+ action?: string;
7435
+ created_at?: string;
7436
+ floriday_sales_order_ids?: Json;
7437
+ id?: string;
7438
+ kept_order_id?: string | null;
7439
+ lines?: Json;
7440
+ reason?: string | null;
7441
+ removed_order_id?: string | null;
7442
+ };
7443
+ Relationships: [];
7444
+ };
7412
7445
  floriday_network_cache: {
7413
7446
  Row: {
7414
7447
  city: string | null;
@@ -8138,6 +8171,148 @@ export type Database = {
8138
8171
  }
8139
8172
  ];
8140
8173
  };
8174
+ floriday_webhook_events: {
8175
+ Row: {
8176
+ aggregate_id: string | null;
8177
+ aggregate_type: string | null;
8178
+ attempts: number;
8179
+ connection_id: string | null;
8180
+ dedupe_key: string;
8181
+ duplicate_count: number;
8182
+ event_type: string | null;
8183
+ id: string;
8184
+ last_error: string | null;
8185
+ max_attempts: number;
8186
+ message_type: string | null;
8187
+ next_attempt_at: string | null;
8188
+ payload: Json | null;
8189
+ processed_at: string | null;
8190
+ received_at: string;
8191
+ status: string;
8192
+ updated_at: string;
8193
+ };
8194
+ Insert: {
8195
+ aggregate_id?: string | null;
8196
+ aggregate_type?: string | null;
8197
+ attempts?: number;
8198
+ connection_id?: string | null;
8199
+ dedupe_key: string;
8200
+ duplicate_count?: number;
8201
+ event_type?: string | null;
8202
+ id?: string;
8203
+ last_error?: string | null;
8204
+ max_attempts?: number;
8205
+ message_type?: string | null;
8206
+ next_attempt_at?: string | null;
8207
+ payload?: Json | null;
8208
+ processed_at?: string | null;
8209
+ received_at?: string;
8210
+ status?: string;
8211
+ updated_at?: string;
8212
+ };
8213
+ Update: {
8214
+ aggregate_id?: string | null;
8215
+ aggregate_type?: string | null;
8216
+ attempts?: number;
8217
+ connection_id?: string | null;
8218
+ dedupe_key?: string;
8219
+ duplicate_count?: number;
8220
+ event_type?: string | null;
8221
+ id?: string;
8222
+ last_error?: string | null;
8223
+ max_attempts?: number;
8224
+ message_type?: string | null;
8225
+ next_attempt_at?: string | null;
8226
+ payload?: Json | null;
8227
+ processed_at?: string | null;
8228
+ received_at?: string;
8229
+ status?: string;
8230
+ updated_at?: string;
8231
+ };
8232
+ Relationships: [
8233
+ {
8234
+ foreignKeyName: "floriday_webhook_events_connection_id_fkey";
8235
+ columns: ["connection_id"];
8236
+ isOneToOne: false;
8237
+ referencedRelation: "floriday_connections";
8238
+ referencedColumns: ["id"];
8239
+ }
8240
+ ];
8241
+ };
8242
+ floriday_webhook_subscriptions: {
8243
+ Row: {
8244
+ attempts: number;
8245
+ callback_token_hash: string;
8246
+ callback_url: string;
8247
+ confirmed_at: string | null;
8248
+ connection_id: string;
8249
+ created_at: string;
8250
+ environment: string;
8251
+ id: string;
8252
+ last_attempt_at: string | null;
8253
+ last_error: string | null;
8254
+ last_error_kind: string | null;
8255
+ last_event_at: string | null;
8256
+ locked_until: string | null;
8257
+ managed_by: string;
8258
+ next_attempt_at: string | null;
8259
+ status: string;
8260
+ subscribe_url: string | null;
8261
+ subscribed_at: string;
8262
+ updated_at: string;
8263
+ };
8264
+ Insert: {
8265
+ attempts?: number;
8266
+ callback_token_hash: string;
8267
+ callback_url: string;
8268
+ confirmed_at?: string | null;
8269
+ connection_id: string;
8270
+ created_at?: string;
8271
+ environment: string;
8272
+ id?: string;
8273
+ last_attempt_at?: string | null;
8274
+ last_error?: string | null;
8275
+ last_error_kind?: string | null;
8276
+ last_event_at?: string | null;
8277
+ locked_until?: string | null;
8278
+ managed_by?: string;
8279
+ next_attempt_at?: string | null;
8280
+ status?: string;
8281
+ subscribe_url?: string | null;
8282
+ subscribed_at?: string;
8283
+ updated_at?: string;
8284
+ };
8285
+ Update: {
8286
+ attempts?: number;
8287
+ callback_token_hash?: string;
8288
+ callback_url?: string;
8289
+ confirmed_at?: string | null;
8290
+ connection_id?: string;
8291
+ created_at?: string;
8292
+ environment?: string;
8293
+ id?: string;
8294
+ last_attempt_at?: string | null;
8295
+ last_error?: string | null;
8296
+ last_error_kind?: string | null;
8297
+ last_event_at?: string | null;
8298
+ locked_until?: string | null;
8299
+ managed_by?: string;
8300
+ next_attempt_at?: string | null;
8301
+ status?: string;
8302
+ subscribe_url?: string | null;
8303
+ subscribed_at?: string;
8304
+ updated_at?: string;
8305
+ };
8306
+ Relationships: [
8307
+ {
8308
+ foreignKeyName: "floriday_webhook_subscriptions_connection_id_fkey";
8309
+ columns: ["connection_id"];
8310
+ isOneToOne: true;
8311
+ referencedRelation: "floriday_connections";
8312
+ referencedColumns: ["id"];
8313
+ }
8314
+ ];
8315
+ };
8141
8316
  floriday_write_log: {
8142
8317
  Row: {
8143
8318
  action: string;
@@ -11587,6 +11762,60 @@ export type Database = {
11587
11762
  };
11588
11763
  Relationships: [];
11589
11764
  };
11765
+ logistics_order_merge_lines: {
11766
+ Row: {
11767
+ from_order_id: string;
11768
+ from_order_number: string | null;
11769
+ group_key: string;
11770
+ id: string;
11771
+ merged_at: string;
11772
+ order_item_id: string;
11773
+ ordered_at: string | null;
11774
+ product_id: string | null;
11775
+ product_name: string | null;
11776
+ quantity: number | null;
11777
+ reason: string;
11778
+ sales_order_id: string | null;
11779
+ source_line_key: string | null;
11780
+ to_order_id: string;
11781
+ to_order_number: string | null;
11782
+ };
11783
+ Insert: {
11784
+ from_order_id: string;
11785
+ from_order_number?: string | null;
11786
+ group_key: string;
11787
+ id?: string;
11788
+ merged_at?: string;
11789
+ order_item_id: string;
11790
+ ordered_at?: string | null;
11791
+ product_id?: string | null;
11792
+ product_name?: string | null;
11793
+ quantity?: number | null;
11794
+ reason: string;
11795
+ sales_order_id?: string | null;
11796
+ source_line_key?: string | null;
11797
+ to_order_id: string;
11798
+ to_order_number?: string | null;
11799
+ };
11800
+ Update: {
11801
+ from_order_id?: string;
11802
+ from_order_number?: string | null;
11803
+ group_key?: string;
11804
+ id?: string;
11805
+ merged_at?: string;
11806
+ order_item_id?: string;
11807
+ ordered_at?: string | null;
11808
+ product_id?: string | null;
11809
+ product_name?: string | null;
11810
+ quantity?: number | null;
11811
+ reason?: string;
11812
+ sales_order_id?: string | null;
11813
+ source_line_key?: string | null;
11814
+ to_order_id?: string;
11815
+ to_order_number?: string | null;
11816
+ };
11817
+ Relationships: [];
11818
+ };
11590
11819
  logistics_order_merges: {
11591
11820
  Row: {
11592
11821
  group_key: string;
@@ -15305,6 +15534,9 @@ export type Database = {
15305
15534
  product_id: string | null;
15306
15535
  product_name: string;
15307
15536
  quantity: number;
15537
+ quarantine_reason: string | null;
15538
+ quarantined_at: string | null;
15539
+ quarantined_into_order_id: string | null;
15308
15540
  source_line_key: string | null;
15309
15541
  unit: string;
15310
15542
  unit_price: number | null;
@@ -15321,6 +15553,9 @@ export type Database = {
15321
15553
  product_id?: string | null;
15322
15554
  product_name: string;
15323
15555
  quantity?: number;
15556
+ quarantine_reason?: string | null;
15557
+ quarantined_at?: string | null;
15558
+ quarantined_into_order_id?: string | null;
15324
15559
  source_line_key?: string | null;
15325
15560
  unit?: string;
15326
15561
  unit_price?: number | null;
@@ -15337,6 +15572,9 @@ export type Database = {
15337
15572
  product_id?: string | null;
15338
15573
  product_name?: string;
15339
15574
  quantity?: number;
15575
+ quarantine_reason?: string | null;
15576
+ quarantined_at?: string | null;
15577
+ quarantined_into_order_id?: string | null;
15340
15578
  source_line_key?: string | null;
15341
15579
  unit?: string;
15342
15580
  unit_price?: number | null;
@@ -16821,6 +17059,7 @@ export type Database = {
16821
17059
  created_at: string;
16822
17060
  end_at: string;
16823
17061
  id: string;
17062
+ kind: string;
16824
17063
  outbox_id: string | null;
16825
17064
  planning_item_id: string;
16826
17065
  reason: string | null;
@@ -16832,6 +17071,7 @@ export type Database = {
16832
17071
  created_at?: string;
16833
17072
  end_at: string;
16834
17073
  id?: string;
17074
+ kind?: string;
16835
17075
  outbox_id?: string | null;
16836
17076
  planning_item_id: string;
16837
17077
  reason?: string | null;
@@ -16843,6 +17083,7 @@ export type Database = {
16843
17083
  created_at?: string;
16844
17084
  end_at?: string;
16845
17085
  id?: string;
17086
+ kind?: string;
16846
17087
  outbox_id?: string | null;
16847
17088
  planning_item_id?: string;
16848
17089
  reason?: string | null;
@@ -16967,6 +17208,8 @@ export type Database = {
16967
17208
  enabled: boolean;
16968
17209
  id: boolean;
16969
17210
  reply_to: string | null;
17211
+ reschedule_body_template: string;
17212
+ reschedule_subject_template: string;
16970
17213
  subject_template: string;
16971
17214
  timezone: string;
16972
17215
  updated_at: string;
@@ -16981,6 +17224,8 @@ export type Database = {
16981
17224
  enabled?: boolean;
16982
17225
  id?: boolean;
16983
17226
  reply_to?: string | null;
17227
+ reschedule_body_template?: string;
17228
+ reschedule_subject_template?: string;
16984
17229
  subject_template?: string;
16985
17230
  timezone?: string;
16986
17231
  updated_at?: string;
@@ -16995,6 +17240,8 @@ export type Database = {
16995
17240
  enabled?: boolean;
16996
17241
  id?: boolean;
16997
17242
  reply_to?: string | null;
17243
+ reschedule_body_template?: string;
17244
+ reschedule_subject_template?: string;
16998
17245
  subject_template?: string;
16999
17246
  timezone?: string;
17000
17247
  updated_at?: string;
@@ -22609,6 +22856,32 @@ export type Database = {
22609
22856
  };
22610
22857
  Relationships: [];
22611
22858
  };
22859
+ uren_pagina_toegang: {
22860
+ Row: {
22861
+ created_at: string;
22862
+ id: string;
22863
+ user_id: string;
22864
+ };
22865
+ Insert: {
22866
+ created_at?: string;
22867
+ id?: string;
22868
+ user_id: string;
22869
+ };
22870
+ Update: {
22871
+ created_at?: string;
22872
+ id?: string;
22873
+ user_id?: string;
22874
+ };
22875
+ Relationships: [
22876
+ {
22877
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
22878
+ columns: ["user_id"];
22879
+ isOneToOne: true;
22880
+ referencedRelation: "profiles";
22881
+ referencedColumns: ["id"];
22882
+ }
22883
+ ];
22884
+ };
22612
22885
  uren_settings: {
22613
22886
  Row: {
22614
22887
  break_minutes: number;
@@ -30642,6 +30915,12 @@ export type Database = {
30642
30915
  };
30643
30916
  Returns: undefined;
30644
30917
  };
30918
+ planning_html_escape: {
30919
+ Args: {
30920
+ t: string;
30921
+ };
30922
+ Returns: string;
30923
+ };
30645
30924
  planning_list: {
30646
30925
  Args: {
30647
30926
  _from: string;
@@ -30696,6 +30975,12 @@ export type Database = {
30696
30975
  id: string;
30697
30976
  }[];
30698
30977
  };
30978
+ planning_urlencode: {
30979
+ Args: {
30980
+ t: string;
30981
+ };
30982
+ Returns: string;
30983
+ };
30699
30984
  print_preview_toestaan: {
30700
30985
  Args: {
30701
30986
  _max?: number;
@@ -31841,6 +32126,10 @@ export type Database = {
31841
32126
  };
31842
32127
  Returns: number;
31843
32128
  };
32129
+ uren_heeft_pagina_toegang: {
32130
+ Args: never;
32131
+ Returns: boolean;
32132
+ };
31844
32133
  uren_is_beheerder: {
31845
32134
  Args: never;
31846
32135
  Returns: boolean;
@@ -31924,6 +32213,13 @@ export type Database = {
31924
32213
  Args: never;
31925
32214
  Returns: string;
31926
32215
  };
32216
+ uren_pagina_toegang_instellen: {
32217
+ Args: {
32218
+ _toegang: boolean;
32219
+ _user_id: string;
32220
+ };
32221
+ Returns: undefined;
32222
+ };
31927
32223
  uren_planning_dagagenda: {
31928
32224
  Args: {
31929
32225
  _tot: string;