@flowselections/logistiek-engine 1.0.3 → 1.0.5

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 (61) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/FloridayPushCard.d.ts +2 -0
  3. package/dist-lib/components/FloridayPushCard.d.ts.map +1 -0
  4. package/dist-lib/components/FloridayPushCard.js +32 -0
  5. package/dist-lib/components/PrintjobsCard.d.ts +2 -0
  6. package/dist-lib/components/PrintjobsCard.d.ts.map +1 -0
  7. package/dist-lib/components/PrintjobsCard.js +35 -0
  8. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  9. package/dist-lib/components/RegiePage.js +3 -1
  10. package/dist-lib/hooks/useFloridayPushes.d.ts +20 -0
  11. package/dist-lib/hooks/useFloridayPushes.d.ts.map +1 -0
  12. package/dist-lib/hooks/useFloridayPushes.js +55 -0
  13. package/dist-lib/hooks/usePrintjobs.d.ts +19 -0
  14. package/dist-lib/hooks/usePrintjobs.d.ts.map +1 -0
  15. package/dist-lib/hooks/usePrintjobs.js +60 -0
  16. package/dist-lib/index.d.ts +3 -0
  17. package/dist-lib/index.d.ts.map +1 -1
  18. package/dist-lib/index.js +3 -0
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts +387 -1
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/client.d.ts +387 -1
  22. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts +387 -1
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/types.d.ts +388 -2
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/types.js +12 -1
  28. package/dist-lib/lib/bulkLoadCarrierPlanning.server.d.ts +4 -3
  29. package/dist-lib/lib/bulkLoadCarrierPlanning.server.d.ts.map +1 -1
  30. package/dist-lib/lib/bulkLoadCarrierPlanning.server.js +13 -15
  31. package/dist-lib/lib/floridayDocuments.functions.d.ts +1161 -3
  32. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floridayPush.functions.d.ts +20689 -0
  34. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -0
  35. package/dist-lib/lib/floridayPush.functions.js +20 -0
  36. package/dist-lib/lib/floridayPush.server.d.ts +45 -0
  37. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -0
  38. package/dist-lib/lib/floridayPush.server.js +219 -0
  39. package/dist-lib/lib/handlers/logistics-tick.server.d.ts +2 -1
  40. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  41. package/dist-lib/lib/handlers/logistics-tick.server.js +14 -2
  42. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1935 -5
  43. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/loadCarrierPlanning.functions.js +13 -8
  45. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +7 -6
  46. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  47. package/dist-lib/lib/loadCarrierPlanning.server.js +31 -33
  48. package/dist-lib/lib/loadCarrierTaskSync.server.d.ts +2 -1
  49. package/dist-lib/lib/loadCarrierTaskSync.server.d.ts.map +1 -1
  50. package/dist-lib/lib/loadCarrierTaskSync.server.js +13 -6
  51. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +774 -2
  52. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/logisticsRecalcJob.functions.js +4 -2
  54. package/dist-lib/lib/logisticsRecalcJob.server.d.ts +6 -5
  55. package/dist-lib/lib/logisticsRecalcJob.server.d.ts.map +1 -1
  56. package/dist-lib/lib/logisticsRecalcJob.server.js +17 -19
  57. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +387 -1
  58. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  59. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  60. package/dist-lib/lib/modulePrompts.js +949 -911
  61. package/package.json +2 -2
@@ -5694,12 +5694,17 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
5694
5694
  attempts: number;
5695
5695
  connection_id: string;
5696
5696
  created_at: string;
5697
+ desired_available: boolean | null;
5697
5698
  gateway_attempt_id: string | null;
5698
5699
  id: string;
5699
5700
  last_error: string | null;
5701
+ locked_at: string | null;
5702
+ locked_by: string | null;
5703
+ next_attempt_at: string;
5700
5704
  number_of_pieces: number;
5701
5705
  sent_at: string | null;
5702
5706
  status: string;
5707
+ superseded_by: string | null;
5703
5708
  trade_item_id: string;
5704
5709
  updated_at: string;
5705
5710
  user_id: string;
@@ -5708,12 +5713,17 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
5708
5713
  attempts?: number;
5709
5714
  connection_id: string;
5710
5715
  created_at?: string;
5716
+ desired_available?: boolean | null;
5711
5717
  gateway_attempt_id?: string | null;
5712
5718
  id?: string;
5713
5719
  last_error?: string | null;
5720
+ locked_at?: string | null;
5721
+ locked_by?: string | null;
5722
+ next_attempt_at?: string;
5714
5723
  number_of_pieces?: number;
5715
5724
  sent_at?: string | null;
5716
5725
  status?: string;
5726
+ superseded_by?: string | null;
5717
5727
  trade_item_id: string;
5718
5728
  updated_at?: string;
5719
5729
  user_id: string;
@@ -5722,12 +5732,17 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
5722
5732
  attempts?: number;
5723
5733
  connection_id?: string;
5724
5734
  created_at?: string;
5735
+ desired_available?: boolean | null;
5725
5736
  gateway_attempt_id?: string | null;
5726
5737
  id?: string;
5727
5738
  last_error?: string | null;
5739
+ locked_at?: string | null;
5740
+ locked_by?: string | null;
5741
+ next_attempt_at?: string;
5728
5742
  number_of_pieces?: number;
5729
5743
  sent_at?: string | null;
5730
5744
  status?: string;
5745
+ superseded_by?: string | null;
5731
5746
  trade_item_id?: string;
5732
5747
  updated_at?: string;
5733
5748
  user_id?: string;
@@ -8476,6 +8491,69 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
8476
8491
  };
8477
8492
  Relationships: [];
8478
8493
  };
8494
+ logistics_floriday_pushes: {
8495
+ Row: {
8496
+ attempts: number;
8497
+ created_at: string;
8498
+ first_queued_at: string;
8499
+ fulfillment_order_id: string | null;
8500
+ id: string;
8501
+ last_error: string | null;
8502
+ last_error_at: string | null;
8503
+ last_sent_hash: string | null;
8504
+ locked_by: string | null;
8505
+ locked_until: string | null;
8506
+ next_attempt_at: string;
8507
+ order_ref: string;
8508
+ payload: import("../integrations/supabase/types").Json;
8509
+ payload_hash: string | null;
8510
+ revision: number;
8511
+ sent_at: string | null;
8512
+ status: string;
8513
+ updated_at: string;
8514
+ };
8515
+ Insert: {
8516
+ attempts?: number;
8517
+ created_at?: string;
8518
+ first_queued_at?: string;
8519
+ fulfillment_order_id?: string | null;
8520
+ id?: string;
8521
+ last_error?: string | null;
8522
+ last_error_at?: string | null;
8523
+ last_sent_hash?: string | null;
8524
+ locked_by?: string | null;
8525
+ locked_until?: string | null;
8526
+ next_attempt_at?: string;
8527
+ order_ref: string;
8528
+ payload?: import("../integrations/supabase/types").Json;
8529
+ payload_hash?: string | null;
8530
+ revision?: number;
8531
+ sent_at?: string | null;
8532
+ status?: string;
8533
+ updated_at?: string;
8534
+ };
8535
+ Update: {
8536
+ attempts?: number;
8537
+ created_at?: string;
8538
+ first_queued_at?: string;
8539
+ fulfillment_order_id?: string | null;
8540
+ id?: string;
8541
+ last_error?: string | null;
8542
+ last_error_at?: string | null;
8543
+ last_sent_hash?: string | null;
8544
+ locked_by?: string | null;
8545
+ locked_until?: string | null;
8546
+ next_attempt_at?: string;
8547
+ order_ref?: string;
8548
+ payload?: import("../integrations/supabase/types").Json;
8549
+ payload_hash?: string | null;
8550
+ revision?: number;
8551
+ sent_at?: string | null;
8552
+ status?: string;
8553
+ updated_at?: string;
8554
+ };
8555
+ Relationships: [];
8556
+ };
8479
8557
  logistics_formulas: {
8480
8558
  Row: {
8481
8559
  created_at: string;
@@ -9087,6 +9165,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
9087
9165
  };
9088
9166
  logistics_tasks: {
9089
9167
  Row: {
9168
+ attempt_log: import("../integrations/supabase/types").Json;
9169
+ attempts: number;
9090
9170
  buffer_ref: string | null;
9091
9171
  claimed_at: string | null;
9092
9172
  claimed_by: string | null;
@@ -9096,6 +9176,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
9096
9176
  due_at: string | null;
9097
9177
  error: string | null;
9098
9178
  id: string;
9179
+ last_error: string | null;
9180
+ next_attempt_at: string | null;
9099
9181
  order_ref: string;
9100
9182
  owner_module: string;
9101
9183
  payload: import("../integrations/supabase/types").Json;
@@ -9116,6 +9198,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
9116
9198
  user_id: string;
9117
9199
  };
9118
9200
  Insert: {
9201
+ attempt_log?: import("../integrations/supabase/types").Json;
9202
+ attempts?: number;
9119
9203
  buffer_ref?: string | null;
9120
9204
  claimed_at?: string | null;
9121
9205
  claimed_by?: string | null;
@@ -9125,6 +9209,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
9125
9209
  due_at?: string | null;
9126
9210
  error?: string | null;
9127
9211
  id?: string;
9212
+ last_error?: string | null;
9213
+ next_attempt_at?: string | null;
9128
9214
  order_ref: string;
9129
9215
  owner_module: string;
9130
9216
  payload?: import("../integrations/supabase/types").Json;
@@ -9145,6 +9231,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
9145
9231
  user_id?: string;
9146
9232
  };
9147
9233
  Update: {
9234
+ attempt_log?: import("../integrations/supabase/types").Json;
9235
+ attempts?: number;
9148
9236
  buffer_ref?: string | null;
9149
9237
  claimed_at?: string | null;
9150
9238
  claimed_by?: string | null;
@@ -9154,6 +9242,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
9154
9242
  due_at?: string | null;
9155
9243
  error?: string | null;
9156
9244
  id?: string;
9245
+ last_error?: string | null;
9246
+ next_attempt_at?: string | null;
9157
9247
  order_ref?: string;
9158
9248
  owner_module?: string;
9159
9249
  payload?: import("../integrations/supabase/types").Json;
@@ -10503,6 +10593,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10503
10593
  };
10504
10594
  offer_settings: {
10505
10595
  Row: {
10596
+ brand_name: string | null;
10506
10597
  button_color: string;
10507
10598
  created_at: string;
10508
10599
  default_countries: string[];
@@ -10524,6 +10615,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10524
10615
  updated_at: string;
10525
10616
  };
10526
10617
  Insert: {
10618
+ brand_name?: string | null;
10527
10619
  button_color?: string;
10528
10620
  created_at?: string;
10529
10621
  default_countries?: string[];
@@ -10545,6 +10637,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10545
10637
  updated_at?: string;
10546
10638
  };
10547
10639
  Update: {
10640
+ brand_name?: string | null;
10548
10641
  button_color?: string;
10549
10642
  created_at?: string;
10550
10643
  default_countries?: string[];
@@ -12263,22 +12356,27 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12263
12356
  created_at: string;
12264
12357
  documentnaam: string;
12265
12358
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12359
+ extern_job_id: string | null;
12266
12360
  foutmelding: string | null;
12267
12361
  gebruiker_id: string | null;
12268
12362
  gebruiker_naam: string;
12269
12363
  gestart_op: string | null;
12270
12364
  id: string;
12365
+ idempotentie_sleutel: string | null;
12271
12366
  is_herprint: boolean;
12272
12367
  kopieen: number;
12273
12368
  layout_id: string | null;
12274
12369
  opgepakt_op: string | null;
12275
12370
  paginas: number;
12276
12371
  payload: import("../integrations/supabase/types").Json;
12372
+ pdf_base64: string | null;
12373
+ pdf_url: string | null;
12277
12374
  pogingen: number;
12278
12375
  printer_id: string | null;
12279
12376
  render_html: string | null;
12280
12377
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12281
12378
  updated_at: string;
12379
+ volgende_poging: string | null;
12282
12380
  voltooid_op: string | null;
12283
12381
  };
12284
12382
  Insert: {
@@ -12287,22 +12385,27 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12287
12385
  created_at?: string;
12288
12386
  documentnaam?: string;
12289
12387
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12388
+ extern_job_id?: string | null;
12290
12389
  foutmelding?: string | null;
12291
12390
  gebruiker_id?: string | null;
12292
12391
  gebruiker_naam?: string;
12293
12392
  gestart_op?: string | null;
12294
12393
  id?: string;
12394
+ idempotentie_sleutel?: string | null;
12295
12395
  is_herprint?: boolean;
12296
12396
  kopieen?: number;
12297
12397
  layout_id?: string | null;
12298
12398
  opgepakt_op?: string | null;
12299
12399
  paginas?: number;
12300
12400
  payload?: import("../integrations/supabase/types").Json;
12401
+ pdf_base64?: string | null;
12402
+ pdf_url?: string | null;
12301
12403
  pogingen?: number;
12302
12404
  printer_id?: string | null;
12303
12405
  render_html?: string | null;
12304
12406
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12305
12407
  updated_at?: string;
12408
+ volgende_poging?: string | null;
12306
12409
  voltooid_op?: string | null;
12307
12410
  };
12308
12411
  Update: {
@@ -12311,22 +12414,27 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12311
12414
  created_at?: string;
12312
12415
  documentnaam?: string;
12313
12416
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12417
+ extern_job_id?: string | null;
12314
12418
  foutmelding?: string | null;
12315
12419
  gebruiker_id?: string | null;
12316
12420
  gebruiker_naam?: string;
12317
12421
  gestart_op?: string | null;
12318
12422
  id?: string;
12423
+ idempotentie_sleutel?: string | null;
12319
12424
  is_herprint?: boolean;
12320
12425
  kopieen?: number;
12321
12426
  layout_id?: string | null;
12322
12427
  opgepakt_op?: string | null;
12323
12428
  paginas?: number;
12324
12429
  payload?: import("../integrations/supabase/types").Json;
12430
+ pdf_base64?: string | null;
12431
+ pdf_url?: string | null;
12325
12432
  pogingen?: number;
12326
12433
  printer_id?: string | null;
12327
12434
  render_html?: string | null;
12328
12435
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12329
12436
  updated_at?: string;
12437
+ volgende_poging?: string | null;
12330
12438
  voltooid_op?: string | null;
12331
12439
  };
12332
12440
  Relationships: [{
@@ -12509,6 +12617,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12509
12617
  agent_id: string | null;
12510
12618
  created_at: string;
12511
12619
  driver: string;
12620
+ extern_printer_id: string | null;
12512
12621
  id: string;
12513
12622
  ip_adres: string | null;
12514
12623
  laatst_gezien: string | null;
@@ -12530,6 +12639,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12530
12639
  agent_id?: string | null;
12531
12640
  created_at?: string;
12532
12641
  driver?: string;
12642
+ extern_printer_id?: string | null;
12533
12643
  id?: string;
12534
12644
  ip_adres?: string | null;
12535
12645
  laatst_gezien?: string | null;
@@ -12551,6 +12661,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12551
12661
  agent_id?: string | null;
12552
12662
  created_at?: string;
12553
12663
  driver?: string;
12664
+ extern_printer_id?: string | null;
12554
12665
  id?: string;
12555
12666
  ip_adres?: string | null;
12556
12667
  laatst_gezien?: string | null;
@@ -18155,6 +18266,125 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18155
18266
  };
18156
18267
  Returns: import("../integrations/supabase/types").Json;
18157
18268
  };
18269
+ claim_cloud_print_jobs: {
18270
+ Args: {
18271
+ _max?: number;
18272
+ };
18273
+ Returns: {
18274
+ agent_id: string | null;
18275
+ bron_job_id: string | null;
18276
+ created_at: string;
18277
+ documentnaam: string;
18278
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18279
+ extern_job_id: string | null;
18280
+ foutmelding: string | null;
18281
+ gebruiker_id: string | null;
18282
+ gebruiker_naam: string;
18283
+ gestart_op: string | null;
18284
+ id: string;
18285
+ idempotentie_sleutel: string | null;
18286
+ is_herprint: boolean;
18287
+ kopieen: number;
18288
+ layout_id: string | null;
18289
+ opgepakt_op: string | null;
18290
+ paginas: number;
18291
+ payload: import("../integrations/supabase/types").Json;
18292
+ pdf_base64: string | null;
18293
+ pdf_url: string | null;
18294
+ pogingen: number;
18295
+ printer_id: string | null;
18296
+ render_html: string | null;
18297
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18298
+ updated_at: string;
18299
+ volgende_poging: string | null;
18300
+ voltooid_op: string | null;
18301
+ }[];
18302
+ SetofOptions: {
18303
+ from: "*";
18304
+ to: "print_jobs";
18305
+ isOneToOne: false;
18306
+ isSetofReturn: true;
18307
+ };
18308
+ };
18309
+ claim_floriday_stock_queue: {
18310
+ Args: {
18311
+ p_limit?: number;
18312
+ p_worker?: string;
18313
+ };
18314
+ Returns: {
18315
+ attempts: number;
18316
+ connection_id: string;
18317
+ created_at: string;
18318
+ desired_available: boolean | null;
18319
+ gateway_attempt_id: string | null;
18320
+ id: string;
18321
+ last_error: string | null;
18322
+ locked_at: string | null;
18323
+ locked_by: string | null;
18324
+ next_attempt_at: string;
18325
+ number_of_pieces: number;
18326
+ sent_at: string | null;
18327
+ status: string;
18328
+ superseded_by: string | null;
18329
+ trade_item_id: string;
18330
+ updated_at: string;
18331
+ user_id: string;
18332
+ }[];
18333
+ SetofOptions: {
18334
+ from: "*";
18335
+ to: "floriday_continuous_stock_queue";
18336
+ isOneToOne: false;
18337
+ isSetofReturn: true;
18338
+ };
18339
+ };
18340
+ claim_logistics_tasks: {
18341
+ Args: {
18342
+ _limit?: number;
18343
+ _owner_module: string;
18344
+ _stale_minutes?: number;
18345
+ _task_type: string;
18346
+ _worker: string;
18347
+ };
18348
+ Returns: {
18349
+ attempt_log: import("../integrations/supabase/types").Json;
18350
+ attempts: number;
18351
+ buffer_ref: string | null;
18352
+ claimed_at: string | null;
18353
+ claimed_by: string | null;
18354
+ completed_at: string | null;
18355
+ created_at: string;
18356
+ depends_on: string[];
18357
+ due_at: string | null;
18358
+ error: string | null;
18359
+ id: string;
18360
+ last_error: string | null;
18361
+ next_attempt_at: string | null;
18362
+ order_ref: string;
18363
+ owner_module: string;
18364
+ payload: import("../integrations/supabase/types").Json;
18365
+ plan_run_id: string | null;
18366
+ planned_end: string | null;
18367
+ planned_start: string | null;
18368
+ priority: number;
18369
+ result: import("../integrations/supabase/types").Json | null;
18370
+ rule_config_id: string | null;
18371
+ rule_version: number | null;
18372
+ sequence: number;
18373
+ shadow: boolean;
18374
+ started_at: string | null;
18375
+ status: string;
18376
+ strategy_id: string | null;
18377
+ task_type: string;
18378
+ updated_at: string;
18379
+ user_id: string;
18380
+ }[];
18381
+ SetofOptions: {
18382
+ from: "*";
18383
+ to: "logistics_tasks";
18384
+ isOneToOne: false;
18385
+ isSetofReturn: true;
18386
+ };
18387
+ };
18158
18388
  claim_print_jobs: {
18159
18389
  Args: {
18160
18390
  _agent_id: string;
@@ -18166,22 +18396,27 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18166
18396
  created_at: string;
18167
18397
  documentnaam: string;
18168
18398
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
18399
+ extern_job_id: string | null;
18169
18400
  foutmelding: string | null;
18170
18401
  gebruiker_id: string | null;
18171
18402
  gebruiker_naam: string;
18172
18403
  gestart_op: string | null;
18173
18404
  id: string;
18405
+ idempotentie_sleutel: string | null;
18174
18406
  is_herprint: boolean;
18175
18407
  kopieen: number;
18176
18408
  layout_id: string | null;
18177
18409
  opgepakt_op: string | null;
18178
18410
  paginas: number;
18179
18411
  payload: import("../integrations/supabase/types").Json;
18412
+ pdf_base64: string | null;
18413
+ pdf_url: string | null;
18180
18414
  pogingen: number;
18181
18415
  printer_id: string | null;
18182
18416
  render_html: string | null;
18183
18417
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18184
18418
  updated_at: string;
18419
+ volgende_poging: string | null;
18185
18420
  voltooid_op: string | null;
18186
18421
  }[];
18187
18422
  SetofOptions: {
@@ -18219,10 +18454,24 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18219
18454
  isSetofReturn: true;
18220
18455
  };
18221
18456
  };
18457
+ cleanup_floriday_stock_queue: {
18458
+ Args: never;
18459
+ Returns: undefined;
18460
+ };
18222
18461
  cleanup_old_bookings: {
18223
18462
  Args: never;
18224
18463
  Returns: undefined;
18225
18464
  };
18465
+ complete_floriday_stock_queue: {
18466
+ Args: {
18467
+ p_attempt_id?: string;
18468
+ p_error?: string;
18469
+ p_id: string;
18470
+ p_ok: boolean;
18471
+ p_permanent?: boolean;
18472
+ };
18473
+ Returns: undefined;
18474
+ };
18226
18475
  consume_bom_for_production: {
18227
18476
  Args: {
18228
18477
  p_connection_id: string;
@@ -18619,6 +18868,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18619
18868
  };
18620
18869
  Returns: number;
18621
18870
  };
18871
+ get_offer_branding: {
18872
+ Args: never;
18873
+ Returns: import("../integrations/supabase/types").Json;
18874
+ };
18622
18875
  get_offer_by_link_code: {
18623
18876
  Args: {
18624
18877
  p_code: string;
@@ -18910,6 +19163,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18910
19163
  p_worker?: string;
18911
19164
  };
18912
19165
  Returns: {
19166
+ attempt_log: import("../integrations/supabase/types").Json;
19167
+ attempts: number;
18913
19168
  buffer_ref: string | null;
18914
19169
  claimed_at: string | null;
18915
19170
  claimed_by: string | null;
@@ -18919,6 +19174,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18919
19174
  due_at: string | null;
18920
19175
  error: string | null;
18921
19176
  id: string;
19177
+ last_error: string | null;
19178
+ next_attempt_at: string | null;
18922
19179
  order_ref: string;
18923
19180
  owner_module: string;
18924
19181
  payload: import("../integrations/supabase/types").Json;
@@ -18951,6 +19208,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18951
19208
  p_worker?: string;
18952
19209
  };
18953
19210
  Returns: {
19211
+ attempt_log: import("../integrations/supabase/types").Json;
19212
+ attempts: number;
18954
19213
  buffer_ref: string | null;
18955
19214
  claimed_at: string | null;
18956
19215
  claimed_by: string | null;
@@ -18960,6 +19219,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18960
19219
  due_at: string | null;
18961
19220
  error: string | null;
18962
19221
  id: string;
19222
+ last_error: string | null;
19223
+ next_attempt_at: string | null;
18963
19224
  order_ref: string;
18964
19225
  owner_module: string;
18965
19226
  payload: import("../integrations/supabase/types").Json;
@@ -18992,6 +19253,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18992
19253
  p_task_id: string;
18993
19254
  };
18994
19255
  Returns: {
19256
+ attempt_log: import("../integrations/supabase/types").Json;
19257
+ attempts: number;
18995
19258
  buffer_ref: string | null;
18996
19259
  claimed_at: string | null;
18997
19260
  claimed_by: string | null;
@@ -19001,6 +19264,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19001
19264
  due_at: string | null;
19002
19265
  error: string | null;
19003
19266
  id: string;
19267
+ last_error: string | null;
19268
+ next_attempt_at: string | null;
19004
19269
  order_ref: string;
19005
19270
  owner_module: string;
19006
19271
  payload: import("../integrations/supabase/types").Json;
@@ -19082,6 +19347,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19082
19347
  p_task_id: string;
19083
19348
  };
19084
19349
  Returns: {
19350
+ attempt_log: import("../integrations/supabase/types").Json;
19351
+ attempts: number;
19085
19352
  buffer_ref: string | null;
19086
19353
  claimed_at: string | null;
19087
19354
  claimed_by: string | null;
@@ -19091,6 +19358,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19091
19358
  due_at: string | null;
19092
19359
  error: string | null;
19093
19360
  id: string;
19361
+ last_error: string | null;
19362
+ next_attempt_at: string | null;
19094
19363
  order_ref: string;
19095
19364
  owner_module: string;
19096
19365
  payload: import("../integrations/supabase/types").Json;
@@ -19117,6 +19386,51 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19117
19386
  isSetofReturn: false;
19118
19387
  };
19119
19388
  };
19389
+ logistics_floriday_claim_pushes: {
19390
+ Args: {
19391
+ _lease_seconds?: number;
19392
+ _limit?: number;
19393
+ _worker?: string;
19394
+ };
19395
+ Returns: {
19396
+ attempts: number;
19397
+ fulfillment_order_id: string;
19398
+ id: string;
19399
+ last_sent_hash: string;
19400
+ order_ref: string;
19401
+ payload: import("../integrations/supabase/types").Json;
19402
+ payload_hash: string;
19403
+ revision: number;
19404
+ }[];
19405
+ };
19406
+ logistics_floriday_finish_push: {
19407
+ Args: {
19408
+ _error?: string;
19409
+ _fulfillment_order_id?: string;
19410
+ _id: string;
19411
+ _max_age_hours?: number;
19412
+ _max_attempts?: number;
19413
+ _ok: boolean;
19414
+ _permanent?: boolean;
19415
+ _revision: number;
19416
+ _sent_hash?: string;
19417
+ };
19418
+ Returns: string;
19419
+ };
19420
+ logistics_floriday_prune_pushes: {
19421
+ Args: {
19422
+ _days?: number;
19423
+ };
19424
+ Returns: number;
19425
+ };
19426
+ logistics_floriday_queue_push: {
19427
+ Args: {
19428
+ _order_ref: string;
19429
+ _payload?: import("../integrations/supabase/types").Json;
19430
+ _payload_hash?: string;
19431
+ };
19432
+ Returns: string;
19433
+ };
19120
19434
  logistics_live_carriers: {
19121
19435
  Args: {
19122
19436
  p_order_ref: string;
@@ -19464,6 +19778,15 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19464
19778
  };
19465
19779
  Returns: string;
19466
19780
  };
19781
+ pick_active_printers: {
19782
+ Args: never;
19783
+ Returns: {
19784
+ id: string;
19785
+ locatie: string;
19786
+ naam: string;
19787
+ online: boolean;
19788
+ }[];
19789
+ };
19467
19790
  pick_claim_document: {
19468
19791
  Args: {
19469
19792
  _queue_item_id: string;
@@ -19650,6 +19973,52 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19650
19973
  };
19651
19974
  Returns: undefined;
19652
19975
  };
19976
+ pick_reset_print: {
19977
+ Args: {
19978
+ _queue_item_id: string;
19979
+ _session_id: string;
19980
+ };
19981
+ Returns: {
19982
+ announced_at: string;
19983
+ assigned_user_id: string | null;
19984
+ barcode: string | null;
19985
+ cancelled_at: string | null;
19986
+ cart_count: number;
19987
+ completed_at: string | null;
19988
+ country_code: string | null;
19989
+ created_at: string;
19990
+ customer_name: string | null;
19991
+ delivery_address: string | null;
19992
+ document_number: string | null;
19993
+ document_type_id: string | null;
19994
+ due_at: string | null;
19995
+ id: string;
19996
+ is_urgent: boolean;
19997
+ line_count: number;
19998
+ order_number: string | null;
19999
+ order_type: string | null;
20000
+ payload: import("../integrations/supabase/types").Json;
20001
+ print_count: number;
20002
+ print_job_id: string | null;
20003
+ printed_at: string | null;
20004
+ printed_by: string | null;
20005
+ printer_id: string | null;
20006
+ priority: number;
20007
+ reference: string | null;
20008
+ route: string | null;
20009
+ screen_id: string | null;
20010
+ station_id: string | null;
20011
+ status_id: string | null;
20012
+ updated_at: string;
20013
+ warnings: import("../integrations/supabase/types").Json;
20014
+ };
20015
+ SetofOptions: {
20016
+ from: "*";
20017
+ to: "pick_queue";
20018
+ isOneToOne: true;
20019
+ isSetofReturn: false;
20020
+ };
20021
+ };
19653
20022
  pick_station_dashboard: {
19654
20023
  Args: never;
19655
20024
  Returns: {
@@ -19840,10 +20209,20 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19840
20209
  };
19841
20210
  Returns: import("../integrations/supabase/types").Json;
19842
20211
  };
20212
+ ruim_print_jobs_op: {
20213
+ Args: {
20214
+ _bewaar_dagen?: number;
20215
+ };
20216
+ Returns: number;
20217
+ };
19843
20218
  run_floriday_continuous_stock_sync: {
19844
20219
  Args: never;
19845
20220
  Returns: undefined;
19846
20221
  };
20222
+ run_logistics_tasks_dispatch: {
20223
+ Args: never;
20224
+ Returns: undefined;
20225
+ };
19847
20226
  run_twinfield_queue_tick: {
19848
20227
  Args: never;
19849
20228
  Returns: undefined;
@@ -20084,6 +20463,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20084
20463
  };
20085
20464
  Returns: number;
20086
20465
  };
20466
+ schedule_floriday_stock_queue_process: {
20467
+ Args: {
20468
+ p_apikey: string;
20469
+ p_url: string;
20470
+ };
20471
+ Returns: number;
20472
+ };
20087
20473
  schedule_floriday_token_refresh: {
20088
20474
  Args: {
20089
20475
  p_apikey: string;
@@ -20273,7 +20659,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20273
20659
  };
20274
20660
  Enums: {
20275
20661
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20276
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20662
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20277
20663
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20278
20664
  doc_orientation: "portrait" | "landscape";
20279
20665
  exact_env: "staging" | "live";
@@ -25997,12 +26383,17 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
25997
26383
  attempts: number;
25998
26384
  connection_id: string;
25999
26385
  created_at: string;
26386
+ desired_available: boolean | null;
26000
26387
  gateway_attempt_id: string | null;
26001
26388
  id: string;
26002
26389
  last_error: string | null;
26390
+ locked_at: string | null;
26391
+ locked_by: string | null;
26392
+ next_attempt_at: string;
26003
26393
  number_of_pieces: number;
26004
26394
  sent_at: string | null;
26005
26395
  status: string;
26396
+ superseded_by: string | null;
26006
26397
  trade_item_id: string;
26007
26398
  updated_at: string;
26008
26399
  user_id: string;
@@ -26011,12 +26402,17 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
26011
26402
  attempts?: number;
26012
26403
  connection_id: string;
26013
26404
  created_at?: string;
26405
+ desired_available?: boolean | null;
26014
26406
  gateway_attempt_id?: string | null;
26015
26407
  id?: string;
26016
26408
  last_error?: string | null;
26409
+ locked_at?: string | null;
26410
+ locked_by?: string | null;
26411
+ next_attempt_at?: string;
26017
26412
  number_of_pieces?: number;
26018
26413
  sent_at?: string | null;
26019
26414
  status?: string;
26415
+ superseded_by?: string | null;
26020
26416
  trade_item_id: string;
26021
26417
  updated_at?: string;
26022
26418
  user_id: string;
@@ -26025,12 +26421,17 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
26025
26421
  attempts?: number;
26026
26422
  connection_id?: string;
26027
26423
  created_at?: string;
26424
+ desired_available?: boolean | null;
26028
26425
  gateway_attempt_id?: string | null;
26029
26426
  id?: string;
26030
26427
  last_error?: string | null;
26428
+ locked_at?: string | null;
26429
+ locked_by?: string | null;
26430
+ next_attempt_at?: string;
26031
26431
  number_of_pieces?: number;
26032
26432
  sent_at?: string | null;
26033
26433
  status?: string;
26434
+ superseded_by?: string | null;
26034
26435
  trade_item_id?: string;
26035
26436
  updated_at?: string;
26036
26437
  user_id?: string;
@@ -28779,6 +29180,69 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
28779
29180
  };
28780
29181
  Relationships: [];
28781
29182
  };
29183
+ logistics_floriday_pushes: {
29184
+ Row: {
29185
+ attempts: number;
29186
+ created_at: string;
29187
+ first_queued_at: string;
29188
+ fulfillment_order_id: string | null;
29189
+ id: string;
29190
+ last_error: string | null;
29191
+ last_error_at: string | null;
29192
+ last_sent_hash: string | null;
29193
+ locked_by: string | null;
29194
+ locked_until: string | null;
29195
+ next_attempt_at: string;
29196
+ order_ref: string;
29197
+ payload: import("../integrations/supabase/types").Json;
29198
+ payload_hash: string | null;
29199
+ revision: number;
29200
+ sent_at: string | null;
29201
+ status: string;
29202
+ updated_at: string;
29203
+ };
29204
+ Insert: {
29205
+ attempts?: number;
29206
+ created_at?: string;
29207
+ first_queued_at?: string;
29208
+ fulfillment_order_id?: string | null;
29209
+ id?: string;
29210
+ last_error?: string | null;
29211
+ last_error_at?: string | null;
29212
+ last_sent_hash?: string | null;
29213
+ locked_by?: string | null;
29214
+ locked_until?: string | null;
29215
+ next_attempt_at?: string;
29216
+ order_ref: string;
29217
+ payload?: import("../integrations/supabase/types").Json;
29218
+ payload_hash?: string | null;
29219
+ revision?: number;
29220
+ sent_at?: string | null;
29221
+ status?: string;
29222
+ updated_at?: string;
29223
+ };
29224
+ Update: {
29225
+ attempts?: number;
29226
+ created_at?: string;
29227
+ first_queued_at?: string;
29228
+ fulfillment_order_id?: string | null;
29229
+ id?: string;
29230
+ last_error?: string | null;
29231
+ last_error_at?: string | null;
29232
+ last_sent_hash?: string | null;
29233
+ locked_by?: string | null;
29234
+ locked_until?: string | null;
29235
+ next_attempt_at?: string;
29236
+ order_ref?: string;
29237
+ payload?: import("../integrations/supabase/types").Json;
29238
+ payload_hash?: string | null;
29239
+ revision?: number;
29240
+ sent_at?: string | null;
29241
+ status?: string;
29242
+ updated_at?: string;
29243
+ };
29244
+ Relationships: [];
29245
+ };
28782
29246
  logistics_formulas: {
28783
29247
  Row: {
28784
29248
  created_at: string;
@@ -29390,6 +29854,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29390
29854
  };
29391
29855
  logistics_tasks: {
29392
29856
  Row: {
29857
+ attempt_log: import("../integrations/supabase/types").Json;
29858
+ attempts: number;
29393
29859
  buffer_ref: string | null;
29394
29860
  claimed_at: string | null;
29395
29861
  claimed_by: string | null;
@@ -29399,6 +29865,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29399
29865
  due_at: string | null;
29400
29866
  error: string | null;
29401
29867
  id: string;
29868
+ last_error: string | null;
29869
+ next_attempt_at: string | null;
29402
29870
  order_ref: string;
29403
29871
  owner_module: string;
29404
29872
  payload: import("../integrations/supabase/types").Json;
@@ -29419,6 +29887,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29419
29887
  user_id: string;
29420
29888
  };
29421
29889
  Insert: {
29890
+ attempt_log?: import("../integrations/supabase/types").Json;
29891
+ attempts?: number;
29422
29892
  buffer_ref?: string | null;
29423
29893
  claimed_at?: string | null;
29424
29894
  claimed_by?: string | null;
@@ -29428,6 +29898,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29428
29898
  due_at?: string | null;
29429
29899
  error?: string | null;
29430
29900
  id?: string;
29901
+ last_error?: string | null;
29902
+ next_attempt_at?: string | null;
29431
29903
  order_ref: string;
29432
29904
  owner_module: string;
29433
29905
  payload?: import("../integrations/supabase/types").Json;
@@ -29448,6 +29920,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29448
29920
  user_id?: string;
29449
29921
  };
29450
29922
  Update: {
29923
+ attempt_log?: import("../integrations/supabase/types").Json;
29924
+ attempts?: number;
29451
29925
  buffer_ref?: string | null;
29452
29926
  claimed_at?: string | null;
29453
29927
  claimed_by?: string | null;
@@ -29457,6 +29931,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29457
29931
  due_at?: string | null;
29458
29932
  error?: string | null;
29459
29933
  id?: string;
29934
+ last_error?: string | null;
29935
+ next_attempt_at?: string | null;
29460
29936
  order_ref?: string;
29461
29937
  owner_module?: string;
29462
29938
  payload?: import("../integrations/supabase/types").Json;
@@ -30806,6 +31282,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
30806
31282
  };
30807
31283
  offer_settings: {
30808
31284
  Row: {
31285
+ brand_name: string | null;
30809
31286
  button_color: string;
30810
31287
  created_at: string;
30811
31288
  default_countries: string[];
@@ -30827,6 +31304,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
30827
31304
  updated_at: string;
30828
31305
  };
30829
31306
  Insert: {
31307
+ brand_name?: string | null;
30830
31308
  button_color?: string;
30831
31309
  created_at?: string;
30832
31310
  default_countries?: string[];
@@ -30848,6 +31326,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
30848
31326
  updated_at?: string;
30849
31327
  };
30850
31328
  Update: {
31329
+ brand_name?: string | null;
30851
31330
  button_color?: string;
30852
31331
  created_at?: string;
30853
31332
  default_countries?: string[];
@@ -32566,22 +33045,27 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32566
33045
  created_at: string;
32567
33046
  documentnaam: string;
32568
33047
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33048
+ extern_job_id: string | null;
32569
33049
  foutmelding: string | null;
32570
33050
  gebruiker_id: string | null;
32571
33051
  gebruiker_naam: string;
32572
33052
  gestart_op: string | null;
32573
33053
  id: string;
33054
+ idempotentie_sleutel: string | null;
32574
33055
  is_herprint: boolean;
32575
33056
  kopieen: number;
32576
33057
  layout_id: string | null;
32577
33058
  opgepakt_op: string | null;
32578
33059
  paginas: number;
32579
33060
  payload: import("../integrations/supabase/types").Json;
33061
+ pdf_base64: string | null;
33062
+ pdf_url: string | null;
32580
33063
  pogingen: number;
32581
33064
  printer_id: string | null;
32582
33065
  render_html: string | null;
32583
33066
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32584
33067
  updated_at: string;
33068
+ volgende_poging: string | null;
32585
33069
  voltooid_op: string | null;
32586
33070
  };
32587
33071
  Insert: {
@@ -32590,22 +33074,27 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32590
33074
  created_at?: string;
32591
33075
  documentnaam?: string;
32592
33076
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33077
+ extern_job_id?: string | null;
32593
33078
  foutmelding?: string | null;
32594
33079
  gebruiker_id?: string | null;
32595
33080
  gebruiker_naam?: string;
32596
33081
  gestart_op?: string | null;
32597
33082
  id?: string;
33083
+ idempotentie_sleutel?: string | null;
32598
33084
  is_herprint?: boolean;
32599
33085
  kopieen?: number;
32600
33086
  layout_id?: string | null;
32601
33087
  opgepakt_op?: string | null;
32602
33088
  paginas?: number;
32603
33089
  payload?: import("../integrations/supabase/types").Json;
33090
+ pdf_base64?: string | null;
33091
+ pdf_url?: string | null;
32604
33092
  pogingen?: number;
32605
33093
  printer_id?: string | null;
32606
33094
  render_html?: string | null;
32607
33095
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32608
33096
  updated_at?: string;
33097
+ volgende_poging?: string | null;
32609
33098
  voltooid_op?: string | null;
32610
33099
  };
32611
33100
  Update: {
@@ -32614,22 +33103,27 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32614
33103
  created_at?: string;
32615
33104
  documentnaam?: string;
32616
33105
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
33106
+ extern_job_id?: string | null;
32617
33107
  foutmelding?: string | null;
32618
33108
  gebruiker_id?: string | null;
32619
33109
  gebruiker_naam?: string;
32620
33110
  gestart_op?: string | null;
32621
33111
  id?: string;
33112
+ idempotentie_sleutel?: string | null;
32622
33113
  is_herprint?: boolean;
32623
33114
  kopieen?: number;
32624
33115
  layout_id?: string | null;
32625
33116
  opgepakt_op?: string | null;
32626
33117
  paginas?: number;
32627
33118
  payload?: import("../integrations/supabase/types").Json;
33119
+ pdf_base64?: string | null;
33120
+ pdf_url?: string | null;
32628
33121
  pogingen?: number;
32629
33122
  printer_id?: string | null;
32630
33123
  render_html?: string | null;
32631
33124
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32632
33125
  updated_at?: string;
33126
+ volgende_poging?: string | null;
32633
33127
  voltooid_op?: string | null;
32634
33128
  };
32635
33129
  Relationships: [{
@@ -32812,6 +33306,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32812
33306
  agent_id: string | null;
32813
33307
  created_at: string;
32814
33308
  driver: string;
33309
+ extern_printer_id: string | null;
32815
33310
  id: string;
32816
33311
  ip_adres: string | null;
32817
33312
  laatst_gezien: string | null;
@@ -32833,6 +33328,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32833
33328
  agent_id?: string | null;
32834
33329
  created_at?: string;
32835
33330
  driver?: string;
33331
+ extern_printer_id?: string | null;
32836
33332
  id?: string;
32837
33333
  ip_adres?: string | null;
32838
33334
  laatst_gezien?: string | null;
@@ -32854,6 +33350,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32854
33350
  agent_id?: string | null;
32855
33351
  created_at?: string;
32856
33352
  driver?: string;
33353
+ extern_printer_id?: string | null;
32857
33354
  id?: string;
32858
33355
  ip_adres?: string | null;
32859
33356
  laatst_gezien?: string | null;
@@ -38458,6 +38955,125 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
38458
38955
  };
38459
38956
  Returns: import("../integrations/supabase/types").Json;
38460
38957
  };
38958
+ claim_cloud_print_jobs: {
38959
+ Args: {
38960
+ _max?: number;
38961
+ };
38962
+ Returns: {
38963
+ agent_id: string | null;
38964
+ bron_job_id: string | null;
38965
+ created_at: string;
38966
+ documentnaam: string;
38967
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
38968
+ extern_job_id: string | null;
38969
+ foutmelding: string | null;
38970
+ gebruiker_id: string | null;
38971
+ gebruiker_naam: string;
38972
+ gestart_op: string | null;
38973
+ id: string;
38974
+ idempotentie_sleutel: string | null;
38975
+ is_herprint: boolean;
38976
+ kopieen: number;
38977
+ layout_id: string | null;
38978
+ opgepakt_op: string | null;
38979
+ paginas: number;
38980
+ payload: import("../integrations/supabase/types").Json;
38981
+ pdf_base64: string | null;
38982
+ pdf_url: string | null;
38983
+ pogingen: number;
38984
+ printer_id: string | null;
38985
+ render_html: string | null;
38986
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38987
+ updated_at: string;
38988
+ volgende_poging: string | null;
38989
+ voltooid_op: string | null;
38990
+ }[];
38991
+ SetofOptions: {
38992
+ from: "*";
38993
+ to: "print_jobs";
38994
+ isOneToOne: false;
38995
+ isSetofReturn: true;
38996
+ };
38997
+ };
38998
+ claim_floriday_stock_queue: {
38999
+ Args: {
39000
+ p_limit?: number;
39001
+ p_worker?: string;
39002
+ };
39003
+ Returns: {
39004
+ attempts: number;
39005
+ connection_id: string;
39006
+ created_at: string;
39007
+ desired_available: boolean | null;
39008
+ gateway_attempt_id: string | null;
39009
+ id: string;
39010
+ last_error: string | null;
39011
+ locked_at: string | null;
39012
+ locked_by: string | null;
39013
+ next_attempt_at: string;
39014
+ number_of_pieces: number;
39015
+ sent_at: string | null;
39016
+ status: string;
39017
+ superseded_by: string | null;
39018
+ trade_item_id: string;
39019
+ updated_at: string;
39020
+ user_id: string;
39021
+ }[];
39022
+ SetofOptions: {
39023
+ from: "*";
39024
+ to: "floriday_continuous_stock_queue";
39025
+ isOneToOne: false;
39026
+ isSetofReturn: true;
39027
+ };
39028
+ };
39029
+ claim_logistics_tasks: {
39030
+ Args: {
39031
+ _limit?: number;
39032
+ _owner_module: string;
39033
+ _stale_minutes?: number;
39034
+ _task_type: string;
39035
+ _worker: string;
39036
+ };
39037
+ Returns: {
39038
+ attempt_log: import("../integrations/supabase/types").Json;
39039
+ attempts: number;
39040
+ buffer_ref: string | null;
39041
+ claimed_at: string | null;
39042
+ claimed_by: string | null;
39043
+ completed_at: string | null;
39044
+ created_at: string;
39045
+ depends_on: string[];
39046
+ due_at: string | null;
39047
+ error: string | null;
39048
+ id: string;
39049
+ last_error: string | null;
39050
+ next_attempt_at: string | null;
39051
+ order_ref: string;
39052
+ owner_module: string;
39053
+ payload: import("../integrations/supabase/types").Json;
39054
+ plan_run_id: string | null;
39055
+ planned_end: string | null;
39056
+ planned_start: string | null;
39057
+ priority: number;
39058
+ result: import("../integrations/supabase/types").Json | null;
39059
+ rule_config_id: string | null;
39060
+ rule_version: number | null;
39061
+ sequence: number;
39062
+ shadow: boolean;
39063
+ started_at: string | null;
39064
+ status: string;
39065
+ strategy_id: string | null;
39066
+ task_type: string;
39067
+ updated_at: string;
39068
+ user_id: string;
39069
+ }[];
39070
+ SetofOptions: {
39071
+ from: "*";
39072
+ to: "logistics_tasks";
39073
+ isOneToOne: false;
39074
+ isSetofReturn: true;
39075
+ };
39076
+ };
38461
39077
  claim_print_jobs: {
38462
39078
  Args: {
38463
39079
  _agent_id: string;
@@ -38469,22 +39085,27 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
38469
39085
  created_at: string;
38470
39086
  documentnaam: string;
38471
39087
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
39088
+ extern_job_id: string | null;
38472
39089
  foutmelding: string | null;
38473
39090
  gebruiker_id: string | null;
38474
39091
  gebruiker_naam: string;
38475
39092
  gestart_op: string | null;
38476
39093
  id: string;
39094
+ idempotentie_sleutel: string | null;
38477
39095
  is_herprint: boolean;
38478
39096
  kopieen: number;
38479
39097
  layout_id: string | null;
38480
39098
  opgepakt_op: string | null;
38481
39099
  paginas: number;
38482
39100
  payload: import("../integrations/supabase/types").Json;
39101
+ pdf_base64: string | null;
39102
+ pdf_url: string | null;
38483
39103
  pogingen: number;
38484
39104
  printer_id: string | null;
38485
39105
  render_html: string | null;
38486
39106
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38487
39107
  updated_at: string;
39108
+ volgende_poging: string | null;
38488
39109
  voltooid_op: string | null;
38489
39110
  }[];
38490
39111
  SetofOptions: {
@@ -38522,10 +39143,24 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
38522
39143
  isSetofReturn: true;
38523
39144
  };
38524
39145
  };
39146
+ cleanup_floriday_stock_queue: {
39147
+ Args: never;
39148
+ Returns: undefined;
39149
+ };
38525
39150
  cleanup_old_bookings: {
38526
39151
  Args: never;
38527
39152
  Returns: undefined;
38528
39153
  };
39154
+ complete_floriday_stock_queue: {
39155
+ Args: {
39156
+ p_attempt_id?: string;
39157
+ p_error?: string;
39158
+ p_id: string;
39159
+ p_ok: boolean;
39160
+ p_permanent?: boolean;
39161
+ };
39162
+ Returns: undefined;
39163
+ };
38529
39164
  consume_bom_for_production: {
38530
39165
  Args: {
38531
39166
  p_connection_id: string;
@@ -38922,6 +39557,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
38922
39557
  };
38923
39558
  Returns: number;
38924
39559
  };
39560
+ get_offer_branding: {
39561
+ Args: never;
39562
+ Returns: import("../integrations/supabase/types").Json;
39563
+ };
38925
39564
  get_offer_by_link_code: {
38926
39565
  Args: {
38927
39566
  p_code: string;
@@ -39213,6 +39852,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39213
39852
  p_worker?: string;
39214
39853
  };
39215
39854
  Returns: {
39855
+ attempt_log: import("../integrations/supabase/types").Json;
39856
+ attempts: number;
39216
39857
  buffer_ref: string | null;
39217
39858
  claimed_at: string | null;
39218
39859
  claimed_by: string | null;
@@ -39222,6 +39863,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39222
39863
  due_at: string | null;
39223
39864
  error: string | null;
39224
39865
  id: string;
39866
+ last_error: string | null;
39867
+ next_attempt_at: string | null;
39225
39868
  order_ref: string;
39226
39869
  owner_module: string;
39227
39870
  payload: import("../integrations/supabase/types").Json;
@@ -39254,6 +39897,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39254
39897
  p_worker?: string;
39255
39898
  };
39256
39899
  Returns: {
39900
+ attempt_log: import("../integrations/supabase/types").Json;
39901
+ attempts: number;
39257
39902
  buffer_ref: string | null;
39258
39903
  claimed_at: string | null;
39259
39904
  claimed_by: string | null;
@@ -39263,6 +39908,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39263
39908
  due_at: string | null;
39264
39909
  error: string | null;
39265
39910
  id: string;
39911
+ last_error: string | null;
39912
+ next_attempt_at: string | null;
39266
39913
  order_ref: string;
39267
39914
  owner_module: string;
39268
39915
  payload: import("../integrations/supabase/types").Json;
@@ -39295,6 +39942,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39295
39942
  p_task_id: string;
39296
39943
  };
39297
39944
  Returns: {
39945
+ attempt_log: import("../integrations/supabase/types").Json;
39946
+ attempts: number;
39298
39947
  buffer_ref: string | null;
39299
39948
  claimed_at: string | null;
39300
39949
  claimed_by: string | null;
@@ -39304,6 +39953,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39304
39953
  due_at: string | null;
39305
39954
  error: string | null;
39306
39955
  id: string;
39956
+ last_error: string | null;
39957
+ next_attempt_at: string | null;
39307
39958
  order_ref: string;
39308
39959
  owner_module: string;
39309
39960
  payload: import("../integrations/supabase/types").Json;
@@ -39385,6 +40036,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39385
40036
  p_task_id: string;
39386
40037
  };
39387
40038
  Returns: {
40039
+ attempt_log: import("../integrations/supabase/types").Json;
40040
+ attempts: number;
39388
40041
  buffer_ref: string | null;
39389
40042
  claimed_at: string | null;
39390
40043
  claimed_by: string | null;
@@ -39394,6 +40047,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39394
40047
  due_at: string | null;
39395
40048
  error: string | null;
39396
40049
  id: string;
40050
+ last_error: string | null;
40051
+ next_attempt_at: string | null;
39397
40052
  order_ref: string;
39398
40053
  owner_module: string;
39399
40054
  payload: import("../integrations/supabase/types").Json;
@@ -39420,6 +40075,51 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39420
40075
  isSetofReturn: false;
39421
40076
  };
39422
40077
  };
40078
+ logistics_floriday_claim_pushes: {
40079
+ Args: {
40080
+ _lease_seconds?: number;
40081
+ _limit?: number;
40082
+ _worker?: string;
40083
+ };
40084
+ Returns: {
40085
+ attempts: number;
40086
+ fulfillment_order_id: string;
40087
+ id: string;
40088
+ last_sent_hash: string;
40089
+ order_ref: string;
40090
+ payload: import("../integrations/supabase/types").Json;
40091
+ payload_hash: string;
40092
+ revision: number;
40093
+ }[];
40094
+ };
40095
+ logistics_floriday_finish_push: {
40096
+ Args: {
40097
+ _error?: string;
40098
+ _fulfillment_order_id?: string;
40099
+ _id: string;
40100
+ _max_age_hours?: number;
40101
+ _max_attempts?: number;
40102
+ _ok: boolean;
40103
+ _permanent?: boolean;
40104
+ _revision: number;
40105
+ _sent_hash?: string;
40106
+ };
40107
+ Returns: string;
40108
+ };
40109
+ logistics_floriday_prune_pushes: {
40110
+ Args: {
40111
+ _days?: number;
40112
+ };
40113
+ Returns: number;
40114
+ };
40115
+ logistics_floriday_queue_push: {
40116
+ Args: {
40117
+ _order_ref: string;
40118
+ _payload?: import("../integrations/supabase/types").Json;
40119
+ _payload_hash?: string;
40120
+ };
40121
+ Returns: string;
40122
+ };
39423
40123
  logistics_live_carriers: {
39424
40124
  Args: {
39425
40125
  p_order_ref: string;
@@ -39767,6 +40467,15 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39767
40467
  };
39768
40468
  Returns: string;
39769
40469
  };
40470
+ pick_active_printers: {
40471
+ Args: never;
40472
+ Returns: {
40473
+ id: string;
40474
+ locatie: string;
40475
+ naam: string;
40476
+ online: boolean;
40477
+ }[];
40478
+ };
39770
40479
  pick_claim_document: {
39771
40480
  Args: {
39772
40481
  _queue_item_id: string;
@@ -39953,6 +40662,52 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39953
40662
  };
39954
40663
  Returns: undefined;
39955
40664
  };
40665
+ pick_reset_print: {
40666
+ Args: {
40667
+ _queue_item_id: string;
40668
+ _session_id: string;
40669
+ };
40670
+ Returns: {
40671
+ announced_at: string;
40672
+ assigned_user_id: string | null;
40673
+ barcode: string | null;
40674
+ cancelled_at: string | null;
40675
+ cart_count: number;
40676
+ completed_at: string | null;
40677
+ country_code: string | null;
40678
+ created_at: string;
40679
+ customer_name: string | null;
40680
+ delivery_address: string | null;
40681
+ document_number: string | null;
40682
+ document_type_id: string | null;
40683
+ due_at: string | null;
40684
+ id: string;
40685
+ is_urgent: boolean;
40686
+ line_count: number;
40687
+ order_number: string | null;
40688
+ order_type: string | null;
40689
+ payload: import("../integrations/supabase/types").Json;
40690
+ print_count: number;
40691
+ print_job_id: string | null;
40692
+ printed_at: string | null;
40693
+ printed_by: string | null;
40694
+ printer_id: string | null;
40695
+ priority: number;
40696
+ reference: string | null;
40697
+ route: string | null;
40698
+ screen_id: string | null;
40699
+ station_id: string | null;
40700
+ status_id: string | null;
40701
+ updated_at: string;
40702
+ warnings: import("../integrations/supabase/types").Json;
40703
+ };
40704
+ SetofOptions: {
40705
+ from: "*";
40706
+ to: "pick_queue";
40707
+ isOneToOne: true;
40708
+ isSetofReturn: false;
40709
+ };
40710
+ };
39956
40711
  pick_station_dashboard: {
39957
40712
  Args: never;
39958
40713
  Returns: {
@@ -40143,10 +40898,20 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40143
40898
  };
40144
40899
  Returns: import("../integrations/supabase/types").Json;
40145
40900
  };
40901
+ ruim_print_jobs_op: {
40902
+ Args: {
40903
+ _bewaar_dagen?: number;
40904
+ };
40905
+ Returns: number;
40906
+ };
40146
40907
  run_floriday_continuous_stock_sync: {
40147
40908
  Args: never;
40148
40909
  Returns: undefined;
40149
40910
  };
40911
+ run_logistics_tasks_dispatch: {
40912
+ Args: never;
40913
+ Returns: undefined;
40914
+ };
40150
40915
  run_twinfield_queue_tick: {
40151
40916
  Args: never;
40152
40917
  Returns: undefined;
@@ -40387,6 +41152,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40387
41152
  };
40388
41153
  Returns: number;
40389
41154
  };
41155
+ schedule_floriday_stock_queue_process: {
41156
+ Args: {
41157
+ p_apikey: string;
41158
+ p_url: string;
41159
+ };
41160
+ Returns: number;
41161
+ };
40390
41162
  schedule_floriday_token_refresh: {
40391
41163
  Args: {
40392
41164
  p_apikey: string;
@@ -40576,7 +41348,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40576
41348
  };
40577
41349
  Enums: {
40578
41350
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40579
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
41351
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40580
41352
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40581
41353
  doc_orientation: "portrait" | "landscape";
40582
41354
  exact_env: "staging" | "live";